mkdtemp: Use gnulib naming conventions.
[gnulib.git] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         mkdtemp: Use gnulib naming conventions.
4         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
5         * modules/mkdtemp (configure.ac): Update.
6
7 2011-05-20  Eric Blake  <eblake@redhat.com>
8
9         strerror_r: avoid corrupting errno on Solaris
10         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12
13         strerror_r: avoid compiler warning
14         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15
16         strerror_r: simplify AIX code
17         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18
19         test-perror: avoid spurious failure on FreeBSD
20         * modules/perror-tests (Depends-on): Add strerror, now that
21         strerror_r no longer pulls it in.
22
23 2011-05-20  Bruno Haible  <bruno@clisp.org>
24
25         strerror_r-posix: Remove unused dependencies.
26         * modules/strerror_r-posix (Depends-on): Remove strerror.
27         Reported by Eric Blake.
28
29 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30
31         intprops: remove assumption about A|B representation
32         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
33         is a valid integer if both A and B are.  Although this is true for
34         all known practical hosts, the C standard doesn't guarantee it,
35         and the code need not assume it.  Also, this change may work around
36         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
37         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
38
39 2011-05-20  Eric Blake  <eblake@redhat.com>
40
41         perror: work around FreeBSD bug
42         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
43         is broken.  Move AC_LIBOBJ...
44         * modules/perror (configure.ac): Here.
45         * doc/posix-functions/perror.texi (perror): Document this.
46         * tests/test-perror2.c (main): Enhance test.
47
48         test-perror: check for strerror interactions
49         * tests/macros.h (STREQ) Add macro.
50         * modules/perror-tests (Files): Add second test.
51         * tests/test-perror2.c (main): New file.
52         * doc/posix-functions/perror.texi (perror): Document glibc bug.
53
54         test-perror: rewrite to use init script
55         * modules/perror-tests (Files): Add init.sh.
56         * tests/test-perror.sh: Use temporary directory.
57
58 2011-05-20  Jim Meyering  <meyering@redhat.com>
59
60         maint: replace misused "a" with "an"
61         * doc/intprops.texi: "a integer"
62         * doc/regex.texi: "a explanation"
63         * lib/alignof.h: "a object"
64         * lib/argmatch.h: "a explanation"
65         * lib/argp-help.c: "a option" and "a OPTION_DOC"
66         * lib/stdint.in.h: "a integer"
67         * lib/userspec.c: "a owner"
68         * doc/gnulib.texi: Fix "a idea", and reword.
69
70 2011-05-19  Jim Meyering  <meyering@redhat.com>
71
72         maint: correct misuse of "a" and "an"
73         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
74         * lib/argp-help.c: "an docum...": s/an/a/
75         * lib/argp-parse.c: "An vector": s/An/A/
76         * lib/execute.c: "an native": s/an/a/
77         * lib/spawn-pipe.c: Likewise.
78         * lib/gc.h: "an Gc_rc": s/an/a/
79         * lib/unigbrk.in.h: "an grapheme": s/an/a/
80         * lib/fts.c: "an stat.st_dev": s/an/a/
81
82 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83
84         intprops-tests: work around HP-UX 11.23 cc bug with constants
85         * tests/test-intprops.c (VERIFY): New macro.
86         (main): Use it, instead of verify, to work around the compiler bug; see
87         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
88
89         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
90         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
91         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
92         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
93         (_GL_REMAINDER_OVERFLOW): Use it.
94
95         intprops-tests: revert unsigned part of previous change
96         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
97         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
98         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
99         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
100
101 2011-05-19  Bruno Haible  <bruno@clisp.org>
102
103         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
104         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
105         strerror_r() returned without filling the buffer.
106         Reported by Eric Blake.
107
108 2011-05-19  Eric Blake  <eblake@redhat.com>
109
110         strerror_r: guarantee unchanged errno
111         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
112         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
113         failure.
114         * tests/test-strerror_r.c (main): Enhance test.
115
116 2011-05-19  Bruno Haible  <bruno@clisp.org>
117
118         strerror_r: Reorder #if blocks.
119         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
120         for consistency with the previous commit.
121
122 2011-05-19  Bruno Haible  <bruno@clisp.org>
123
124         perror: Avoid clobbering the strerror buffer when possible.
125         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
126         * lib/strerror.c: Include it.
127         * modules/strerror (Files): Add lib/strerror-impl.h.
128         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
129         (my_strerror): New function, defined through lib/strerror-impl.h.
130         (perror): Use it instead of strerror.
131         * modules/perror (Files): Add lib/strerror-impl.h.
132         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
133
134 2011-05-19  Eric Blake  <eblake@redhat.com>
135
136         strerror_r: fix on newer cygwin
137         * lib/strerror_r.c (strerror_r): Cygwin now has
138         __xpg_strerror_r, use it.
139
140 2011-05-19  Bruno Haible  <bruno@clisp.org>
141
142         strerror_r: Avoid clobbering the strerror buffer when possible.
143         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
144         (sys_nerr, sys_errlist): New declarations.
145         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
146         HP-UX, native Win32, IRIX, and 32-bit Solaris.
147         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
148
149 2011-05-19  Bruno Haible  <bruno@clisp.org>
150
151         strerror_r: Fix test failure on mingw.
152         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
153         EXTEND_STRERROR_R.
154         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
155         macros from errno.in.h instead.
156
157 2011-05-19  Eric Blake  <eblake@redhat.com>
158
159         strerror: relax test for Solaris
160         * tests/test-strerror.c (main): Permit Solaris behavior.
161         * tests/test-strerror_r.c (main): Likewise.
162
163         strerror: enforce POSIX ruling on strerror(0)
164         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
165         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
166         * lib/strerror_r.c (rpl_strerror_r): Work around it.
167         * doc/posix-functions/strerror.texi (strerror): Document it.
168         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
169         * tests/test-strerror.c (main): Strengthen test.
170         * tests/test-strerror_r.c (main): Likewise.
171
172 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
173
174         intprop-tests: port to older and more-pedantic compilers
175         * modules/intprops-tests (Files): Add tests/macros.h.
176         * tests/test-intprops.c: Include macros.h.
177         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
178         it's no longer documented to expand to an integer constant expression.
179         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
180         argument is floating point, as it's no longer documented to expand
181         to an integer constant expression in that case.
182         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
183         compiler bugs reported by Bruno Haible.  See
184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
185         (U0, U1): New constants, to work around the same bugs.  Also,
186         in tests, use e.g., "(unsigned int) 39" rather than "39u".
187
188         intprops: work around C compiler bugs
189         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
190         bug in Sun C 5.11 2010/08/13 and other compilers; see
191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
192
193         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
194         * doc/intprops.texi (Integer Type Determination): Fix
195         documentation for TYPE_IS_INTEGER: it returns an constant
196         expression, not an integer constant expression.  Fix doc for
197         TYPE_SIGNED: it returns an integer constant expression only if its
198         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
199         hardly worth documented that way....)
200
201 2011-05-18  Bruno Haible  <bruno@clisp.org>
202
203         strerror_r: Avoid clobbering the strerror buffer when possible.
204         * lib/strerror_r.c (strerror_r): Merge the three implementations.
205         Handle gnulib defined errno values here. When strerror() returns NULL
206         or an empty string, return EINVAL.
207         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
208         gnulib defined errno values here.
209         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
210
211 2011-05-18  Eric Blake  <eblake@redhat.com>
212
213         fnmatch: avoid compiler warning
214         * lib/fnmatch_loop.c (FCT): Use correct type.
215         Reported by Matthias Bolte.
216
217 2011-05-13  Jim Meyering  <meyering@redhat.com>
218
219         maint.mk: three new prohibit_<HDR>_without_use rules
220         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
221         (sc_prohibit_stdio-safer_without_use): Likewise.
222         (sc_prohibit_xfreopen_without_use): Likewise.
223
224 2011-05-17  Jim Meyering  <meyering@redhat.com>
225
226         announce-gen: fail if the NEWS delta is empty
227         If there's nothing noteworthy in NEWS, then either you forgot
228         or you shouldn't be releasing.
229         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
230
231 2011-05-17  Pádraig Brady <P@draigBrady.com>
232
233         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
234         reserved symbols starting with double underscore from the check.
235
236 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
237
238         intprops: add doc
239         * doc/intprops.texi: New file, documenting intprops.
240         * doc/gnulib.texi (Particular Modules): Include it.
241
242         verify: add doc to gnulib manual and fix example
243         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
244         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
245         (Compile-time Assertions): Fix example so it can't overflow.
246
247 2011-05-17  Jim Meyering  <meyering@redhat.com>
248
249         warnings.m4: don't usurp save_CPPFLAGS variable name
250         * m4/warnings.m4: Prefix local temporary variable name with gl_.
251
252         doc: fix typo
253         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
254
255 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
256             Bruno Haible  <bruno@clisp.org>
257
258         doc: Tweak recent change.
259         * README (Portability guidelines): Tweak new text.
260         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
261         Interix 6.1.
262
263 2011-05-16  Eric Blake  <eblake@redhat.com>
264
265         inttypes: avoid autoconf warning
266         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
267         * m4/stdint.m4 (gl_STDINT_H): Likewise.
268
269 2011-05-16  Sam Steingold <sds@gnu.org>
270         and Eric Blake  <eblake@redhat.com>
271
272         vc-list-files: accept multiple directory operands
273         * build-aux/vc-list-files: Iterate over all remaining operands.
274
275 2011-05-16  Bruno Haible  <bruno@clisp.org>
276
277         Fix confusion regarding deprecated modules.
278         * modules/calloc (Status, Notice): Mark module as deprecated, not
279         obsolete.
280         * modules/fnmatch-posix (Status, Notice): Likewise.
281         * modules/getdate (Status, Notice): Likewise.
282         * modules/getopt (Status, Notice): Likewise.
283         * modules/malloc (Status, Notice): Likewise.
284         * modules/pipe (Status, Notice): Likewise.
285         * modules/realloc (Status, Notice): Likewise.
286         * modules/rename-dest-slash (Status, Notice): Likewise.
287         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
288         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
289         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
290         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
291         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
292
293 2011-05-16  Bruno Haible  <bruno@clisp.org>
294
295         doc: List the target platforms.
296         * doc/gnulib-intro.texi (Target Platforms): New section.
297         * doc/gnulib.texi (Introduction): Update menu.
298         * README (Portability guidelines): Refer to the new section. Update
299         statement about oldest supported environment. Remove rationale why
300         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
301         unportable C89 function.
302         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
303         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
304
305 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
306
307         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
308
309 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
310
311         intprops-tests: new module
312         * modules/intprops-tests, tests/test-intprops.c: New files.
313
314         intprops: add safe, portable integer overflow checking
315         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
316         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
317         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
318         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
319         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
320         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
321         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
322         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
323         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
324         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
325         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
326
327 2011-05-12  James Youngman  <jay@gnu.org>
328
329         Add a test for glibc's Bugzilla bug #12378.
330         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
331         doesn't allow the literal matching of a lone "[" (which is
332         required by POSIX).
333         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
334
335 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
336
337         Sync glibc change fixing Bugzilla bug #12378.
338         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
339         beginning and fall back to matching as normal character if the
340         string ends before the matching ']' is found.  This is what POSIX
341         requires.
342
343 2011-05-13  Eric Blake  <eblake@redhat.com>
344
345         getcwd-lgpl: relax test for FreeBSD
346         * doc/posix-functions/getcwd.texi (getcwd): Document portability
347         issue.
348         * tests/test-getcwd-lgpl.c (main): Relax test.
349         Reported by Matthias Bolte.
350
351 2011-05-11  Eric Blake  <eblake@redhat.com>
352
353         test-fflush: silence compiler warning
354         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
355
356 2011-05-11  Bruno Haible  <bruno@clisp.org>
357
358         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
359         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
360         * modules/canonicalize (Depends-on): Add 'nocrash'.
361         * modules/canonicalize-lgpl (Depends-on): Likewise.
362         * doc/posix-functions/realpath.texi: Update platforms list.
363         Reported by Ryan Schmidt <ryandesign@macports.org>.
364
365 2011-05-11  Bruno Haible  <bruno@clisp.org>
366
367         group-member: Declare function in <unistd.h>.
368         * lib/unistd.in.h (group_member): New declaration.
369         * lib/group-member.h: Remove file.
370         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
371         * tests/test-unistd-c++.cc: Check signature of group_member.
372         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
373         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
374         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
375         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
376         HAVE_GROUP_MEMBER.
377         * modules/group-member (Files): Remove lib/group-member.h.
378         (Depends-on): Add unistd. Specify conditions.
379         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
380         (Include): Change to <unistd.h>.
381         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
382         HAVE_GROUP_MEMBER.
383         * NEWS: Mention the change.
384         * lib/euidaccess.c: Don't include group-member.h.
385
386 2011-05-11  Bruno Haible  <bruno@clisp.org>
387
388         group-member: Document module.
389         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
390         module.
391
392 2011-05-11  Bruno Haible  <bruno@clisp.org>
393
394         fclose: Fix mistake earlier today.
395         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
396
397 2011-05-11  Eric Blake  <eblake@redhat.com>
398
399         fclose: preserve fflush errors
400         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
401         Reported by Jim Meyering.
402
403         bootstrap: support a prereq of 'rpcgen -' on RHEL5
404         * build-aux/bootstrap (check_versions): When no specific version
405         is required, merely check that the app produces an exit status
406         that indicates its existence.
407
408         maint.mk: drop redundant check
409         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
410         the same but better.
411
412 2011-05-11  Bruno Haible  <bruno@clisp.org>
413
414         fclose: Fix possible link error.
415         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
416         unregister_shadow_fd. Improve comments.
417         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
418         Eric Blake.
419
420 2011-05-11  Jim Meyering  <meyering@redhat.com>
421
422         maint.mk: improve "can not" detection and generalize rule name
423         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
424         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
425         Use the same technique as in sc_prohibit_doubled_word, so that
426         we recognize "can not" also when the words are separated by a newline.
427         Suggested by Eric Blake.
428         (perl_filename_lineno_text_): Define.  Factored out of...
429         (prohibit_doubled_word_): ...here.  Use the new definition.
430         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
431         (prohibit_undesirable_word_seq_RE_): New overridable variable.
432         (ignore_undesirable_word_sequence_RE_): New overridable variable.
433
434 2011-05-10  Eric Blake  <eblake@redhat.com>
435
436         fclose: avoid double close race when possible
437         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
438         all but WINDOWS_SOCKETS.
439
440 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
441
442         openat: correct new comment
443         * lib/openat-proc.c (openat_proc_name): Correct the comment.
444
445 2011-05-10  Jim Meyering  <meyering@redhat.com>
446
447         openat: add comments
448         * lib/openat-proc.c (openat_proc_name): Add comments,
449         mostly from Eric Blake.
450
451 2011-05-09  Eric Blake  <eblake@redhat.com>
452
453         openat: reduce syscalls in first probe of /proc
454         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
455         be a directory.  Simplify the probe for .. bugs.
456         * modules/openat (Depends-on): Drop same-inode.
457         Reported by Bastien ROUCARIES.
458
459 2011-05-09  Jim Meyering  <meyering@redhat.com>
460
461         maint.mk: change semantics/name of tight_scope variables
462         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
463         Rename variables to align with semantics that make them more useful.
464
465         maint.mk: tweak new rule's name not to impinge
466         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
467         (sc_tight_scope): Use new rule name rather than $@-0.
468
469         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
470         * top/maint.mk (sc_tight_scope): New rule.
471         (sc_tight_scope-0): New rule, ifdef'd out.
472         (_gl_TS_dir): Default.
473         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
474         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
475
476 2011-05-09  Simon Josefsson  <simon@josefsson.org>
477
478         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
479         Haible <bruno@clisp.org>.
480
481 2011-05-08  Bruno Haible  <bruno@clisp.org>
482
483         Comments.
484         * m4/isnanf.m4: Add comment.
485         * m4/isnanl.m4: Likewise.
486
487 2011-05-08  Bruno Haible  <bruno@clisp.org>
488
489         glob: Remove obsolete macro.
490         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
491
492 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
493
494         intprops: Sun C 5.11 supports __typeof__
495         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
496         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
497         which is new.
498         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
499
500         intprops: switch to usual gnulib indenting and naming
501         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
502         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
503
504         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
505
506 2011-05-08  Jim Meyering  <meyering@redhat.com>
507
508         maint.mk: suppress "Entering/Leaving directory" diag in announcement
509         * top/maint.mk (release-prep): Use make's --no-print-directory
510         option when generating the announcement.  This eliminates the
511         pesky "make[2]: Entering/Leaving directory" diagnostics in the
512         generated announcement template.
513
514 2011-05-08  Bruno Haible  <bruno@clisp.org>
515
516         tzset: Fix gettimeofday wrapper on Solaris 2.6.
517         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
518         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
519
520 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
521
522         ignore-value, verify: Omit include files from lib_SOURCES.
523         * modules/ignore-value, modules/verify (Makefile.am):
524         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
525         that leads Automake to duplicate use of am__objects_... variables
526         in Makefile.in.  See
527         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
528
529 2011-05-07  Bruno Haible  <bruno@clisp.org>
530
531         fclose: Simplify autoconf macro.
532         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
533         defined.
534
535 2011-05-07  Bruno Haible  <bruno@clisp.org>
536
537         canonicalize-lgpl: Fix autoconf macro ordering bug.
538         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
539         gl_STDLIB_H_DEFAULTS.
540
541 2011-05-06  Eric Blake  <eblake@redhat.com>
542
543         maintainer-makefile: make sc_po_check easier to tune
544         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
545         to probe for strings, such as an alternate location for gnulib.
546
547         fclose: guarantee behavior on seekable stdin
548         * modules/fclose (Depends-on): Add fflush.
549         * doc/posix-functions/fclose.texi (fclose): Document this.
550         * tests/test-fclose.c (main): Make test for this unconditional.
551
552 2011-05-06  Bruno Haible  <bruno@clisp.org>
553
554         fflush, fpurge: Relicense under LGPLv2+.
555         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
556         * modules/fpurge (License): Likewise.
557         With permission from Eric Blake and Jim Meyering.
558         Suggested by Eric Blake.
559
560 2011-05-06  Karl Berry  <karl@gnu.org>
561
562         * MODULES.html.sh (func_all_modules): remove exit.
563
564 2011-05-06  Jim Meyering  <meyering@redhat.com>
565
566         maint.mk: use info-gnu@ as the default only for a stable release
567         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
568         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
569         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
570         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
571
572 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
573
574         assert-h: new module, which supports C1X-style static_assert
575         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
576         * lib/verify.h: Revamp so that this can be copied into assert.h,
577         while retaining the ability to use it standalone as before.
578         Rename private identifiers so as not to encroach on the
579         standard C namespace, since this is now used by assert.h.
580         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
581         the old verify_true.
582         (_GL_VERIFY_TRUE): New macro, with much of the contents of
583         the old verify_true.  Use _GL_VERIFY_TYPE.
584         (_GL_VERIFY): New macro, with much of the contents of the old verify.
585         (static_assert): New macro, if _GL_STATIC_ASSERT_H
586         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
587         defined when this file is copied into the replacement assert.h.
588         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
589         and _Static_assert is not built in.
590         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
591         defined, and use the new macros mentioned above.
592         * doc/posix-headers/assert.texi: Document this.
593
594 2011-05-05  Bruno Haible  <bruno@clisp.org>
595
596         fclose, fflush: Respect rules for use of AC_LIBOBJ.
597         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
598         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
599         gl_REPLACE_FCLOSE here.
600         * modules/fflush (Depends-on): Remove fclose.
601         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
602         combination with module 'fclose'.
603
604 2011-05-05  Bruno Haible  <bruno@clisp.org>
605
606         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
607         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
608         gl_FUNC_FFLUSH.
609         (gl_FUNC_FFLUSH): Use it.
610         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
611         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
612         gl_REPLACE_FSEEKO here.
613
614 2011-05-05  Bruno Haible  <bruno@clisp.org>
615
616         tzset: Relicense under LGPL.
617         * modules/tzset (License): Change to LGPL.
618         No agreement needed; it's a no-op.
619
620         strtoimax, strtoumax: Relicense under LGPL.
621         * modules/strtoimax (License): Change to LGPL.
622         * modules/strtoumax (License): Likewise.
623         With permission from Jim Meyering, Paul Eggert:
624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
626
627         getgroups: Relicense under LGPL.
628         * modules/getgroups (License): Change to LGPL.
629         With permission from Jim Meyering, Paul Eggert, Eric Blake:
630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
633
634         nanosleep: Relicense under LGPL.
635         * modules/nanosleep (License): Change to LGPL.
636         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
637         Haible:
638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
642
643         futimens: Relicense under LGPL.
644         * modules/futimens (License): Change to LGPL.
645         With permission from Eric Blake:
646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
647
648         fflush: Relicense under LGPL.
649         * modules/fflush (License): Change to LGPL.
650         With permission from Eric Blake, Bruno Haible, Jim Meyering:
651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
654
655         tmpfile: Relicense under LGPL.
656         * modules/tmpfile (License): Change to LGPL.
657         With permission from Ben Pfaff:
658         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
659
660         isfinite: Relicense under LGPL.
661         * modules/isfinite (License): Change to LGPL.
662         With permission from Ben Pfaff, Bruno Haible:
663         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
665
666         acosl..tanl: Relicense under LGPL.
667         * modules/acosl (License): Change to LGPL.
668         * modules/asinl (License): Likewise.
669         * modules/atanl (License): Likewise.
670         * modules/cosl (License): Likewise.
671         * modules/expl (License): Likewise.
672         * modules/logl (License): Likewise.
673         * modules/sinl (License): Likewise.
674         * modules/sqrtl (License): Likewise.
675         * modules/tanl (License): Likewise.
676         Source code originally from glibc and Paolo Bonzini. Agreements:
677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
679
680 2011-05-05  Bruno Haible  <bruno@clisp.org>
681
682         signal: Define sighandler_t.
683         * lib/signal.in.h (sighandler_t): New type.
684         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
685         whether sighandler_t is defined.
686         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
687         * modules/signal (Depends-on): Add extensions.
688         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
689         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
690         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
691
692 2011-05-05  Eric Blake  <eblake@redhat.com>
693
694         maint: remove useless REPLACE_*_H macros
695         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
696         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
697         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
698         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
699         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
700         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
701         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
702         * m4/btowc.m4: Update callers.
703         * m4/dirfd.m4: Likewise.
704         * m4/duplocale.m4: Likewise.
705         * m4/fchdir.m4: Likewise.
706         * m4/fdopendir.m4: Likewise.
707         * m4/inet_ntop.m4: Likewise.
708         * m4/inet_pton.m4: Likewise.
709         * m4/ioctl.m4: Likewise.
710         * m4/mbrlen.m4: Likewise.
711         * m4/mbrtowc.m4: Likewise.
712         * m4/mbsinit.m4: Likewise.
713         * m4/mbsnrtowcs.m4: Likewise.
714         * m4/mbsrtowcs.m4: Likewise.
715         * m4/poll.m4: Likewise.
716         * m4/setlocale.m4: Likewise.
717         * m4/wcrtomb.m4: Likewise.
718         * m4/wcsnrtombs.m4: Likewise.
719         * m4/wcsrtombs.m4: Likewise.
720         * m4/wctob.m4: Likewise.
721         * m4/wcwidth.m4: Likewise.
722         * modules/posix_spawn: Likewise.
723         * modules/posix_spawn_file_actions_addclose: Likewise.
724         * modules/posix_spawn_file_actions_adddup2: Likewise.
725         * modules/posix_spawn_file_actions_addopen: Likewise.
726         * modules/posix_spawn_file_actions_destroy: Likewise.
727         * modules/posix_spawn_file_actions_init: Likewise.
728         * modules/posix_spawnattr_destroy: Likewise.
729         * modules/posix_spawnattr_getflags: Likewise.
730         * modules/posix_spawnattr_getpgroup: Likewise.
731         * modules/posix_spawnattr_getschedparam: Likewise.
732         * modules/posix_spawnattr_getschedpolicy: Likewise.
733         * modules/posix_spawnattr_getsigdefault: Likewise.
734         * modules/posix_spawnattr_getsigmask: Likewise.
735         * modules/posix_spawnattr_init: Likewise.
736         * modules/posix_spawnattr_setflags: Likewise.
737         * modules/posix_spawnattr_setpgroup: Likewise.
738         * modules/posix_spawnattr_setschedparam: Likewise.
739         * modules/posix_spawnattr_setschedpolicy: Likewise.
740         * modules/posix_spawnattr_setsigdefault: Likewise.
741         * modules/posix_spawnattr_setsigmask: Likewise.
742         * modules/posix_spawnp: Likewise.
743
744 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
745
746         Add option to do-release-commit-and-tag to specify branch.
747         * build-aux/do-release-commit-and-tag: Add --branch.
748
749 2011-05-03  Bruno Haible  <bruno@clisp.org>
750
751         Avoid unnecessary compilation units, through conditional dependencies.
752         * modules/accept (Depends-on): Add conditions to the dependencies.
753         * modules/acosl (Depends-on): Likewise.
754         * modules/argz (Depends-on): Likewise.
755         * modules/asinl (Depends-on): Likewise.
756         * modules/atanl (Depends-on): Likewise.
757         * modules/atoll (Depends-on): Likewise.
758         * modules/bind (Depends-on): Likewise.
759         * modules/btowc (Depends-on): Likewise.
760         * modules/canonicalize-lgpl (Depends-on): Likewise.
761         * modules/ceil (Depends-on): Likewise.
762         * modules/ceilf (Depends-on): Likewise.
763         * modules/ceill (Depends-on): Likewise.
764         * modules/chdir-long (Depends-on): Likewise.
765         * modules/chown (Depends-on): Likewise.
766         * modules/close (Depends-on): Likewise.
767         * modules/connect (Depends-on): Likewise.
768         * modules/cosl (Depends-on): Likewise.
769         * modules/dirfd (Depends-on): Likewise.
770         * modules/dprintf (Depends-on): Likewise.
771         * modules/dprintf-posix (Depends-on): Likewise.
772         * modules/error (Depends-on): Likewise.
773         * modules/euidaccess (Depends-on): Likewise.
774         * modules/expl (Depends-on): Likewise.
775         * modules/faccessat (Depends-on): Likewise.
776         * modules/fchdir (Depends-on): Likewise.
777         * modules/fclose (Depends-on): Likewise.
778         * modules/fcntl (Depends-on): Likewise.
779         * modules/fdopendir (Depends-on): Likewise.
780         * modules/fflush (Depends-on): Likewise.
781         * modules/floor (Depends-on): Likewise.
782         * modules/floorf (Depends-on): Likewise.
783         * modules/floorl (Depends-on): Likewise.
784         * modules/fnmatch (Depends-on): Likewise.
785         * modules/fopen (Depends-on): Likewise.
786         * modules/fprintf-posix (Depends-on): Likewise.
787         * modules/frexp (Depends-on): Likewise.
788         * modules/frexp-nolibm (Depends-on): Likewise.
789         * modules/frexpl (Depends-on): Likewise.
790         * modules/frexpl-nolibm (Depends-on): Likewise.
791         * modules/fseek (Depends-on): Likewise.
792         * modules/fsusage (Depends-on): Likewise.
793         * modules/ftell (Depends-on): Likewise.
794         * modules/ftello (Depends-on): Likewise.
795         * modules/futimens (Depends-on): Likewise.
796         * modules/getcwd (Depends-on): Likewise.
797         * modules/getcwd-lgpl (Depends-on): Likewise.
798         * modules/getdelim (Depends-on): Likewise.
799         * modules/getdomainname (Depends-on): Likewise.
800         * modules/getgroups (Depends-on): Likewise.
801         * modules/gethostname (Depends-on): Likewise.
802         * modules/getline (Depends-on): Likewise.
803         * modules/getlogin_r (Depends-on): Likewise.
804         * modules/getopt-posix (Depends-on): Likewise.
805         * modules/getpeername (Depends-on): Likewise.
806         * modules/getsockname (Depends-on): Likewise.
807         * modules/getsockopt (Depends-on): Likewise.
808         * modules/getsubopt (Depends-on): Likewise.
809         * modules/getusershell (Depends-on): Likewise.
810         * modules/glob (Depends-on): Likewise.
811         * modules/grantpt (Depends-on): Likewise.
812         * modules/iconv_open (Depends-on): Likewise.
813         * modules/iconv_open-utf (Depends-on): Likewise.
814         * modules/inet_ntop (Depends-on): Likewise.
815         * modules/inet_pton (Depends-on): Likewise.
816         * modules/ioctl (Depends-on): Likewise.
817         * modules/isapipe (Depends-on): Likewise.
818         * modules/isfinite (Depends-on): Likewise.
819         * modules/isinf (Depends-on): Likewise.
820         * modules/lchown (Depends-on): Likewise.
821         * modules/ldexpl (Depends-on): Likewise.
822         * modules/link (Depends-on): Likewise.
823         * modules/linkat (Depends-on): Likewise.
824         * modules/listen (Depends-on): Likewise.
825         * modules/logl (Depends-on): Likewise.
826         * modules/lstat (Depends-on): Likewise.
827         * modules/mbrlen (Depends-on): Likewise.
828         * modules/mbrtowc (Depends-on): Likewise.
829         * modules/mbsinit (Depends-on): Likewise.
830         * modules/mbsnrtowcs (Depends-on): Likewise.
831         * modules/mbsrtowcs (Depends-on): Likewise.
832         * modules/mbtowc (Depends-on): Likewise.
833         * modules/memcmp (Depends-on): Likewise.
834         * modules/mkdir (Depends-on): Likewise.
835         * modules/mkdtemp (Depends-on): Likewise.
836         * modules/mkfifo (Depends-on): Likewise.
837         * modules/mkfifoat (Depends-on): Likewise.
838         * modules/mknod (Depends-on): Likewise.
839         * modules/mkostemp (Depends-on): Likewise.
840         * modules/mkostemps (Depends-on): Likewise.
841         * modules/mkstemp (Depends-on): Likewise.
842         * modules/mkstemps (Depends-on): Likewise.
843         * modules/mktime (Depends-on): Likewise.
844         * modules/nanosleep (Depends-on): Likewise.
845         * modules/open (Depends-on): Likewise.
846         * modules/openat (Depends-on): Likewise.
847         * modules/perror (Depends-on): Likewise.
848         * modules/poll (Depends-on): Likewise.
849         * modules/popen (Depends-on): Likewise.
850         * modules/posix_spawn (Depends-on): Likewise.
851         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
852         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
853         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
854         * modules/posix_spawnp (Depends-on): Likewise.
855         * modules/pread (Depends-on): Likewise.
856         * modules/printf-posix (Depends-on): Likewise.
857         * modules/ptsname (Depends-on): Likewise.
858         * modules/putenv (Depends-on): Likewise.
859         * modules/pwrite (Depends-on): Likewise.
860         * modules/readline (Depends-on): Likewise.
861         * modules/readlink (Depends-on): Likewise.
862         * modules/readlinkat (Depends-on): Likewise.
863         * modules/recv (Depends-on): Likewise.
864         * modules/recvfrom (Depends-on): Likewise.
865         * modules/regex (Depends-on): Likewise.
866         * modules/remove (Depends-on): Likewise.
867         * modules/rename (Depends-on): Likewise.
868         * modules/renameat (Depends-on): Likewise.
869         * modules/rmdir (Depends-on): Likewise.
870         * modules/round (Depends-on): Likewise.
871         * modules/roundf (Depends-on): Likewise.
872         * modules/roundl (Depends-on): Likewise.
873         * modules/rpmatch (Depends-on): Likewise.
874         * modules/select (Depends-on): Likewise.
875         * modules/send (Depends-on): Likewise.
876         * modules/sendto (Depends-on): Likewise.
877         * modules/setenv (Depends-on): Likewise.
878         * modules/setlocale (Depends-on): Likewise.
879         * modules/setsockopt (Depends-on): Likewise.
880         * modules/shutdown (Depends-on): Likewise.
881         * modules/sigaction (Depends-on): Likewise.
882         * modules/signbit (Depends-on): Likewise.
883         * modules/sigprocmask (Depends-on): Likewise.
884         * modules/sinl (Depends-on): Likewise.
885         * modules/sleep (Depends-on): Likewise.
886         * modules/snprintf (Depends-on): Likewise.
887         * modules/snprintf-posix (Depends-on): Likewise.
888         * modules/socket (Depends-on): Likewise.
889         * modules/sprintf-posix (Depends-on): Likewise.
890         * modules/sqrtl (Depends-on): Likewise.
891         * modules/stat (Depends-on): Likewise.
892         * modules/strchrnul (Depends-on): Likewise.
893         * modules/strdup-posix (Depends-on): Likewise.
894         * modules/strerror (Depends-on): Likewise.
895         * modules/strerror_r-posix (Depends-on): Likewise.
896         * modules/strndup (Depends-on): Likewise.
897         * modules/strnlen (Depends-on): Likewise.
898         * modules/strptime (Depends-on): Likewise.
899         * modules/strsep (Depends-on): Likewise.
900         * modules/strsignal (Depends-on): Likewise.
901         * modules/strstr-simple (Depends-on): Likewise.
902         * modules/strtod (Depends-on): Likewise.
903         * modules/strtoimax (Depends-on): Likewise.
904         * modules/strtok_r (Depends-on): Likewise.
905         * modules/strtoumax (Depends-on): Likewise.
906         * modules/symlink (Depends-on): Likewise.
907         * modules/symlinkat (Depends-on): Likewise.
908         * modules/tanl (Depends-on): Likewise.
909         * modules/tcgetsid (Depends-on): Likewise.
910         * modules/tmpfile (Depends-on): Likewise.
911         * modules/trunc (Depends-on): Likewise.
912         * modules/truncf (Depends-on): Likewise.
913         * modules/truncl (Depends-on): Likewise.
914         * modules/uname (Depends-on): Likewise.
915         * modules/unlink (Depends-on): Likewise.
916         * modules/unlockpt (Depends-on): Likewise.
917         * modules/unsetenv (Depends-on): Likewise.
918         * modules/usleep (Depends-on): Likewise.
919         * modules/utimensat (Depends-on): Likewise.
920         * modules/vasprintf (Depends-on): Likewise.
921         * modules/vdprintf (Depends-on): Likewise.
922         * modules/vdprintf-posix (Depends-on): Likewise.
923         * modules/vfprintf-posix (Depends-on): Likewise.
924         * modules/vprintf-posix (Depends-on): Likewise.
925         * modules/vsnprintf (Depends-on): Likewise.
926         * modules/vsnprintf-posix (Depends-on): Likewise.
927         * modules/vsprintf-posix (Depends-on): Likewise.
928         * modules/wcrtomb (Depends-on): Likewise.
929         * modules/wcscasecmp (Depends-on): Likewise.
930         * modules/wcscspn (Depends-on): Likewise.
931         * modules/wcsdup (Depends-on): Likewise.
932         * modules/wcsncasecmp (Depends-on): Likewise.
933         * modules/wcsnrtombs (Depends-on): Likewise.
934         * modules/wcspbrk (Depends-on): Likewise.
935         * modules/wcsrtombs (Depends-on): Likewise.
936         * modules/wcsspn (Depends-on): Likewise.
937         * modules/wcsstr (Depends-on): Likewise.
938         * modules/wcstok (Depends-on): Likewise.
939         * modules/wcswidth (Depends-on): Likewise.
940         * modules/wctob (Depends-on): Likewise.
941         * modules/wctomb (Depends-on): Likewise.
942         * modules/wctype (Depends-on): Likewise.
943         * modules/wcwidth (Depends-on): Likewise.
944         * modules/write (Depends-on): Likewise.
945
946 2011-05-03  Bruno Haible  <bruno@clisp.org>
947
948         Support for conditional dependencies.
949         * doc/gnulib.texi (Module description): Document the syntax of
950         conditional dependencies.
951         * gnulib-tool: New option --conditional-dependencies.
952         (func_usage): Document it.
953         (cond_dependencies): New variable.
954         (func_get_automake_snippet_conditional,
955         func_get_automake_snippet_unconditional): New functions, extracted from
956         func_get_automake_snippet.
957         (func_get_automake_snippet): Use them.
958         (sed_first_32_chars): New variable.
959         (func_module_shellfunc_name): New function.
960         (func_module_shellvar_name): New function.
961         (func_module_conditional_name): New function.
962         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
963         func_cond_module_condition): New functions.
964         (func_modules_transitive_closure): Add support for conditional
965         dependencies.
966         (func_emit_lib_Makefile_am): For a conditional module, enclose the
967         conditional automake snippet in an automake conditional.
968         (func_emit_autoconf_snippets): Emit shell functions that contain the
969         code for conditional modules.
970         (func_import, func_create_testdir): Update specification.
971
972 2011-05-03  Eric Blake  <eblake@redhat.com>
973
974         test-getaddrinfo: report error information
975         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
976
977 2011-05-03  Jim Meyering  <meyering@redhat.com>
978
979         bootstrap: avoid build failure when $GZIP is set
980         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
981         program name.  If defined at all, it is supposed to list gzip options.
982         Reported by Alan Curry in http://debbugs.gnu.org/8609
983
984 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
985
986         readme-release: new module with release instructions
987         * modules/readme-release: New module.
988         * top/README-release: New file, from coreutils, grep, diffutils.
989         * MODULES.html.sh (Support for maintaining and releasing): Add it.
990
991 2011-05-02  Eric Blake  <eblake@redhat.com>
992
993         fflush: also replace fclose when fixing fflush
994         * modules/fflush (Depends-on): Add fclose.
995         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
996         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
997         memstreams with no backing fd.
998         * doc/posix-functions/fclose.texi (fclose): Document the use of
999         fflush module to fix the bug.
1000         * tests/test-fclose.c (main): Relax test when fclose is used in
1001         isolation.
1002
1003         fclose: add some tests
1004         * modules/fclose-tests: New test module.
1005         * tests/test-fclose.c: New file.
1006         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1007
1008         fclose: reduced dependencies
1009         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1010         simpler lseek.
1011         * lib/fclose.c (rpl_fclose): Likewise.
1012         Reported by Simon Josefsson.
1013
1014         exit: drop remaining clients
1015         * modules/argmatch (Depends-on): Replace exit with stdlib.
1016         * modules/copy-file (Depends-on): Likewise.
1017         * modules/execute (Depends-on): Likewise.
1018         * modules/exitfail (Depends-on): Likewise.
1019         * modules/obstack (Depends-on): Likewise.
1020         * modules/pagealign_alloc (Depends-on): Likewise.
1021         * modules/pipe-filter-gi (Depends-on): Likewise.
1022         * modules/pipe-filter-ii (Depends-on): Likewise.
1023         * modules/savewd (Depends-on): Likewise.
1024         * modules/spawn-pipe (Depends-on): Likewise.
1025         * modules/wait-process (Depends-on): Likewise.
1026         * modules/xsetenv (Depends-on): Likewise.
1027         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1028         * modules/git-merge-changelog (Depends-on): Likewise.
1029         * modules/long-options (Depends-on): Likewise.
1030         * modules/pt_chown (Depends-on): Likewise.
1031         * modules/sysexits (Depends-on): Likewise.
1032
1033         freading: relax license from LGPLv3+ to LGPLv2+
1034         * modules/freading (License): Relax LGPL version.
1035
1036 2011-05-02  Bruno Haible  <bruno@clisp.org>
1037
1038         fchdir: Remove unused dependencies.
1039         * modules/fchdir (Depends-on): Remove include_next.
1040
1041 2011-05-02  Bruno Haible  <bruno@clisp.org>
1042
1043         gnulib-tool: Refactor.
1044         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1045         from func_emit_autoconf_snippets.
1046         (func_emit_autoconf_snippets): Use it.
1047
1048 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1049
1050         * NEWS: Document removal of 'exit'.
1051         * modules/exit: Remove file.
1052
1053 2011-05-01  Bruno Haible  <bruno@clisp.org>
1054
1055         Update DEPENDENCIES.
1056         * DEPENDENCIES (gettext): Recommend the newest release.
1057         Reported by Simon Josefsson.
1058
1059 2011-05-01  Bruno Haible  <bruno@clisp.org>
1060
1061         gnulib-tool: Reduce code duplication.
1062         * gnulib-tool (func_emit_autoconf_snippets): New function.
1063         (func_import, func_create_testdir): Use it.
1064
1065 2011-04-30  Eric Blake  <eblake@redhat.com>
1066
1067         fclose: don't fail on non-seekable input stream
1068         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1069         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1070         since fflush is allowed to fail in that case.
1071
1072 2011-04-30  Bruno Haible  <bruno@clisp.org>
1073
1074         dup3: cleanup
1075         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1076
1077 2011-04-30  Bruno Haible  <bruno@clisp.org>
1078
1079         netdb: Make it work in C++ mode.
1080         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1081         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1082         module.
1083         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1084         gl_MODULE_INDICATOR_FOR_TESTS.
1085         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1086         * modules/netdb-c++-tests: New file.
1087         * tests/test-netdb-c++.cc: New file.
1088
1089 2011-04-30  Bruno Haible  <bruno@clisp.org>
1090
1091         New modules 'vfscanf', 'vscanf'.
1092         * modules/vfscanf: New file.
1093         * modules/vscanf: New file.
1094         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1095         here.
1096         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1097         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1098
1099 2011-04-30  Bruno Haible  <bruno@clisp.org>
1100
1101         passfd: Add comments.
1102         * lib/passfd.c: Add comments about platforms.
1103
1104 2011-04-30  Bruno Haible  <bruno@clisp.org>
1105
1106         sys_uio: Make <sys/uio.h> self-contained.
1107         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1108         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1109
1110 2011-04-30  Bruno Haible  <bruno@clisp.org>
1111
1112         sys_socket: Ensure 'struct iovec' definition.
1113         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1114         <sys/socket.h>.
1115         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1116
1117 2011-04-30  Bruno Haible  <bruno@clisp.org>
1118
1119         sys_uio: Protect definition of 'struct iovec'.
1120         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1121         it as a C struct.
1122
1123 2011-04-30  Bruno Haible  <bruno@clisp.org>
1124
1125         manywarnings: fix indentation
1126         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1127
1128 2011-04-30  Pádraig Brady <P@draigBrady.com>
1129
1130         manywarnings: add -Wno-missing-field-initializers if needed.
1131         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1132         option if it's needed to allow initialization with { 0, }
1133
1134 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1135
1136         announce-gen: cosmetic improvement
1137         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1138
1139 2011-04-29  Jim Meyering  <meyering@redhat.com>
1140
1141         vc-list-files: indent with spaces, not TABs
1142         * build-aux/vc-list-files: Convert leading TABs to spaces,
1143         to match the style of most other files in gnulib.
1144
1145         announce-gen: indent with spaces, not TABs
1146         * build-aux/announce-gen: Convert all TABs to spaces, to match
1147         the style of most other files in gnulib.
1148
1149 2011-04-29  Eric Blake  <eblake@redhat.com>
1150
1151         quotearg: avoid uninitialized variable use
1152         * lib/quotearg.c (quoting_options_from_style): Initialize
1153         remaining fields, and ensure that custom styles are only used via
1154         quoting_options rather than quoting_style.
1155
1156 2011-04-29  Jim Meyering  <meyering@redhat.com>
1157
1158         maint.mk: remove unused VC-tag variable
1159         * top/maint.mk (VC-tag): Remove unused variable.
1160
1161 2011-04-29  Bruno Haible  <bruno@clisp.org>
1162
1163         netdb: fix gai_strerror replacements
1164         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1165         * modules/netdb: Substitute it.
1166
1167 2011-04-29  Jim Meyering  <meyering@redhat.com>
1168
1169         test-getcwd.c: avoid new set-but-not-used warning
1170         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1171         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1172         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1173         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1174
1175         test-hash.c: avoid a new shadowing warning
1176         * tests/test-hash.c (main): Don't shadow "dup".
1177
1178 2011-04-28  Eric Blake  <eblake@redhat.com>
1179
1180         getaddrinfo: fix gai_strerror signature
1181         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1182         and work around mingw with UNICODE defined.
1183         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1184         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1185         * modules/netdb (Makefile.am): Substitute it.
1186         * lib/netdb.in.h (gai_strerror): Declare replacement.
1187         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1188         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1189         the fix.
1190
1191         getsockopt: avoid compiler warning
1192         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1193         Reported by Matthias Bolte.
1194
1195         tests: drop unused link dependency
1196         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1197         * modules/dirent-safer-tests (Makefile.am): Likewise.
1198         * modules/fdopendir-tests (Makefile.am): Likewise.
1199         * modules/mkfifoat-tests (Makefile.am): Likewise.
1200         * modules/openat-safer-tests (Makefile.am): Likewise.
1201         * modules/openat-tests (Makefile.am): Likewise.
1202         * modules/readlinkat-tests (Makefile.am): Likewise.
1203         * modules/symlinkat-tests (Makefile.am): Likewise.
1204         * modules/linkat-tests (Makefile.am): Likewise.
1205         (Depends-on): Switch to filenamecat-lgpl.
1206         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1207         LIBINTL.
1208         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1209         * tests/test-linkat.c (main): Don't require xalloc.
1210
1211         hash, mgetgroups: drop xalloc dependency
1212         * lib/hash.c (includes): Adjust includes.
1213         * lib/mgetgroups.c (includes): Likewise.
1214         (xgetgroups): Move...
1215         * lib/xgetgroups.c: ...to new file.
1216         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1217         * modules/xgetgroups: New file, split from...
1218         * modules/mgetgroups: ...here.
1219         (Depends-on): Add xalloc-oversized.
1220         * modules/hash (Depends-on): Likewise.
1221         * modules/hash-tests (Depends-on): Drop xalloc.
1222         (test_hash_LDADD): Drop unused library.
1223         * tests/test-hash.c (main): Break xalloc dependency.
1224         (includes): Drop unused include.
1225
1226         xalloc-oversized: new module
1227         * modules/xalloc-oversized: New module.
1228         * modules/xalloc (Depends-on): Add it.
1229         * lib/xalloc.h (xalloc_oversized): Move...
1230         * lib/xalloc-oversized.h: ...into new file.
1231
1232         utimecmp: drop dependency on xmalloc
1233         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1234         due to memory pressure.
1235         * modules/utimecmp (Depends-on): Drop xalloc.
1236
1237 2011-04-27  Eric Blake  <eblake@redhat.com>
1238
1239         getcwd: fix mingw bugs
1240         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1241         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1242         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1243
1244 2011-04-27  Bruno Haible  <bruno@clisp.org>
1245
1246         mkstemps: Ensure declaration on MacOS X 10.5.
1247         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1248         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1249         MacOS X.
1250
1251 2011-04-27  Bruno Haible  <bruno@clisp.org>
1252
1253         mkstemp: More documentation.
1254         * doc/posix-functions/mkstemp.texi: Document header file problem on
1255         MacOS X.
1256
1257 2011-04-27  Bruno Haible  <bruno@clisp.org>
1258
1259         mkstemp: Tweak configure message when cross-compiling.
1260         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1261         result as a guess.
1262
1263 2011-04-27  Bruno Haible  <bruno@clisp.org>
1264
1265         clean-temp: Clarify what it does.
1266         * lib/clean-temp.h: Add more comments.
1267         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1268         module.
1269         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1270         * doc/glibc-functions/mkstemps.texi: Likewise.
1271         * doc/glibc-functions/mkostemps.texi: Likewise.
1272
1273 2011-04-27  Eric Blake  <eblake@redhat.com>
1274
1275         fchdir: avoid extra chdir and fix test
1276         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1277         getcwd-lgpl.
1278         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1279         have to be canonical.
1280         (canonicalize_file_name): Drop unused macro.
1281         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1282
1283         filenamecat-lgpl: fix licence
1284         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1285         when it was first created.
1286
1287         linkat, renameat: add missing dependency
1288         * modules/linkat (Depends-on): Require getcwd-lgpl.
1289         * modules/renameat (Depends-on): Likewise.
1290
1291         tests: reduce dependencies
1292         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1293         * tests/test-renameat.c (main): Likewise.
1294         * modules/linkat-tests (Depends-on): Relax dependency.
1295         * modules/renameat-tests (Depends-on): Likewise.
1296         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1297         dependency explicit.
1298
1299         save-cwd: reduce default dependency
1300         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1301         * lib/save-cwd.c: Update comments.
1302         * NEWS: Document the semantic change.
1303
1304         getcwd: enhance tests
1305         * tests/test-getcwd-lgpl.c: New file, taken from...
1306         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1307         repeat long path stress tests from m4 probe.
1308         * modules/getcwd-lgpl-tests: New module.
1309         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1310         * m4/getcwd-abort-bug.m4: Update comment.
1311         * m4/getcwd-path-max.m4: Likewise.
1312
1313         getcwd-lgpl: new module
1314         * modules/getcwd-lgpl: New module.
1315         * lib/getcwd-lgpl.c: New file.
1316         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1317         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1318         * modules/getcwd (configure.ac): Set C witness.
1319         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1320
1321         getcwd: tweak comments
1322         * m4/getcwd-abort-bug.m4: Fix comments.
1323         * m4/getcwd-path-max.m4: Likewise.
1324         * m4/getcwd.m4: Likewise.
1325
1326 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1327         and Eric Blake  <eblake@redhat.com>
1328
1329         mkstemp: replace if system version uses wrong permissions
1330         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1331         read/write mode bits set in file created by mkstemp.
1332         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1333
1334 2011-04-27  Eric Blake  <eblake@redhat.com>
1335
1336         passfd: avoid compiler warning
1337         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1338         Reported by Laine Stump.
1339
1340 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1341
1342         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1343         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1344
1345 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1346         and Eric Blake  <eblake@redhat.com>
1347
1348         mkstemp: mention clean-temp module
1349         * lib/mkstemp.c: Add comment.
1350         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1351
1352 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1353
1354         inttypes: also provide default values for 32-bit tests
1355         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1356         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1357
1358 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1359
1360         strtoumax: remove dependency on strtoimax
1361         This is like the strtoull change of yesterday.
1362         * modules/strtoumax (Files): Add lib/strtoimax.c.
1363         (Depends-on): Remove strtoimax and add verify.
1364
1365         inttypes-incomplete: new module
1366         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1367         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1368         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1369         of gl_INTTYPES_H.
1370         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1371         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1372         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1373         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1374         * modules/strtoumax, modules/xstrtol (Depends-on):
1375         Depend on inttypes-incomplete, not inttypes.
1376         * modules/inttypes-incomplete: New module, containing the contents
1377         of the old modules/inttypes module, except that the Files: section
1378         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1379         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1380         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1381         (Depends-on): Depend only on inttypes-incomplete.
1382         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1383
1384         inttypes: omit now-redundant strtoimax and strtoumax work
1385         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1386         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1387
1388         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1389         This supports apps that need pointers to strtoimax and strtoumax,
1390         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1391         nonexistent functions.  See
1392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1393         et seq.
1394         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1395         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1396         a macro.
1397         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1398
1399 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1400
1401         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1402
1403 2011-04-25  Bruno Haible  <bruno@clisp.org>
1404
1405         strtol, strtoul: Mark modules as obsolete.
1406         * modules/strtol (Status, Notice): New sections.
1407         * modules/strtoul (Status, Notice): New sections.
1408
1409 2011-04-25  Bruno Haible  <bruno@clisp.org>
1410
1411         strtod: Remove check for strtod, unless supporting old platforms.
1412         * modules/strtod-obsolete: New file.
1413         * m4/strtod-obsolete.m4: New file.
1414         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1415         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1416         * modules/strtod (Depends-on): Add strtod-obsolete.
1417         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1418
1419 2011-04-25  Bruno Haible  <bruno@clisp.org>
1420
1421         strcase: Make module obsolete.
1422         * modules/strcase (Status, Notice): New sections.
1423
1424 2011-04-25  Bruno Haible  <bruno@clisp.org>
1425
1426         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1427         * modules/dup2-obsolete: New file.
1428         * m4/dup2-obsolete.m4: New file.
1429         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1430         gl_FUNC_DUP2_OBSOLETE is not also defined.
1431         * modules/dup2 (Depends-on): Add dup2-obsolete.
1432         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1433
1434 2011-04-25  Bruno Haible  <bruno@clisp.org>
1435
1436         strnlen: Avoid memchr related link error on old obsolete platforms.
1437         * modules/memchr-obsolete: New file.
1438         * m4/memchr-obsolete.m4: New file.
1439         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1440         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1441         * modules/memchr (Depends-on): Add memchr-obsolete.
1442         * modules/strnlen (Depends-on): Likewise.
1443         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1444
1445 2011-04-25  Jim Meyering  <meyering@redhat.com>
1446
1447         maint.mk: makefile_at_at_check extend and clean up
1448         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1449         in addition to */Makefile.am.
1450         Exempt legitimate uses of @VAR@ notation, e.g.,
1451         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1452         Remove obsolete coreutils-specific comment.
1453         Prompted by discussion here:
1454         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1455
1456 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1457
1458         strtoul: remove dependency on strtol
1459         This is so that 'configure' need not check for strtol merely because
1460         the application needs strtoul.
1461         * modules/strtoul (Files): Add lib/strtol.c.
1462         (Depends-on): Remove strtol.
1463
1464         strtoull: remove dependency on strtoul
1465         This is like the strtoll change.
1466         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1467         (Depends-on): Remove strtoul.
1468
1469         strtoll: remove dependency on strtol
1470         This is so that 'configure' need not check for strtol merely because
1471         the application needs strtoll.
1472         * modules/strtoll (Files): Add lib/strtol.c.
1473         (Depends-on): Remove strtol.
1474
1475 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1476
1477         inttypes: Move some configure check to module 'imaxdiv'.
1478         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1479         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1480         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1481
1482 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1483
1484         inttypes: Move some configure check to module 'imaxabs'.
1485         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1486         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1487         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1488
1489 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1490
1491         inttypes: Remove configure tests that are not needed since 2009-12-31.
1492         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1493         gl_cv_header_working_inttypes_h.
1494
1495 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1496
1497         * modules/strnlen (Depends-on): Remove memchr.
1498         The strnlen implementation doesn't need the memchr module's fixes; see
1499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1500
1501         strtol: remove dependency on wchar
1502         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1503         * modules/strtol (Depends-on): Remove wchar.
1504
1505 2011-04-21  Eric Blake  <eblake@redhat.com>
1506
1507         passfd: fix test regression on Linux
1508         * modules/passfd-tests (configure.ac): Correct socketpair check.
1509
1510         passfd: speed up configure and drop unused code
1511         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1512         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1513         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1514         Instead of probing at configure for unix_scm_rights_bsd44_way,
1515         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1516         check to a struct member probe.
1517         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1518         (sendfd, recvfd): Update preprocessor checks.
1519         * modules/passfd (Files): Reflect rename, and drop unused file.
1520         (Depends-on): Drop unused dependency.
1521
1522         passfd: allow compilation on mingw
1523         * modules/sys_socket (Depends-on): Add sys_uio.
1524         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1525         iovec and a minimal struct msghdr.
1526         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1527         * tests/test-sys_socket.c (main): Enhance test.
1528         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1529         guaranteed to provide what we need.
1530         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1531         * modules/passfd-tests (Depends-on): Add sys_wait.
1532         * tests/test-passfd.c (main): Skip test on mingw, for now.
1533         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1534         partial 'struct msghdr' implementation.
1535
1536         sys_uio: new module
1537         * modules/sys_uio: New module.
1538         * modules/sys_uio-tests: Likewise.
1539         * lib/sys_uio.in.h: New file.
1540         * m4/sys_uio_h.m4: Likewise.
1541         * tests/test-sys_uio.c: Likewise.
1542         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1543         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1544
1545 2011-04-20  Jim Meyering  <meyering@redhat.com>
1546
1547         useless-if-before-free: avoid false-positive
1548         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1549         disjunct so that it too requires a terminating ";".  Without that,
1550         this script would identify as useless one statement from gcc that
1551         was not:
1552           if (aligned_ptr)
1553             free (((void **) aligned_ptr) [-1]);
1554
1555 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1556
1557         doc: update users.txt.
1558         * users.txt: Add barcode.
1559
1560 2011-04-19  Bruno Haible  <bruno@clisp.org>
1561
1562         ioctl: Remove link dependency on native Windows.
1563         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1564         (gl_close_fn, gl_ioctl_fn): New types.
1565         (struct fd_hook): Renamed from struct close_hook. Change type of
1566         private_close_fn field. Add private_ioctl_fn field.
1567         (close_hook_fn): Add parameter for primary close method.
1568         (execute_close_hooks, execute_all_close_hooks): Likewise.
1569         (ioctl_hook_fn): New type.
1570         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1571         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1572         argument.
1573         (unregister_fd_hook): Renamed from unregister_close_hook.
1574         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1575         Don't include <unistd.h>.
1576         (close): Remove undef.
1577         (anchor): Update.
1578         (execute_close_hooks): Add argument for primary close method.
1579         (execute_all_close_hooks): Likewise.
1580         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1581         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1582         argument. Allow each argument to be NULL.
1583         (unregister_fd_hook): Renamed from unregister_close_hook.
1584         * lib/close.c (rpl_close): Pass 'close' function pointer to
1585         execute_all_close_hooks.
1586         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1587         (primary_ioctl): New function.
1588         (ioctl): Don't call ioctlsocket here. Instead, call
1589         execute_all_ioctl_hooks.
1590         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1591         close method.
1592         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1593         (fd_sockets_hook): Renamed from close_sockets_hook.
1594         (gl_sockets_startup, gl_sockets_cleanup): Update.
1595         * modules/fd-hook: Renamed from modules/close-hook. Update.
1596         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1597         * modules/sockets (Depends-on): Likewise.
1598         * modules/ioctl (Depends-on): Add fd-hook.
1599         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1600         GNULIB_SOCKET.
1601
1602 2011-04-19  Bruno Haible  <bruno@clisp.org>
1603
1604         Move the support of O_NONBLOCK in open() to the 'open' module.
1605         * modules/nonblocking (Depends-on): Remove 'open'.
1606         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1607         gl_cv_have_open_O_NONBLOCK.
1608         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1609         O_NONBLOCK support.
1610         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1611
1612 2011-04-17  Bruno Haible  <bruno@clisp.org>
1613
1614         pipe2: Simplify code.
1615         * lib/pipe2.c (pipe2): Reduce code duplication.
1616
1617 2011-04-17  Bruno Haible  <bruno@clisp.org>
1618
1619         nonblocking: Add comment.
1620         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1621
1622 2011-04-17  Bruno Haible  <bruno@clisp.org>
1623
1624         nonblocking: Add tests for sockets.
1625         * tests/test-nonblocking-socket.sh: New file.
1626         * tests/test-nonblocking-socket-main.c: New file.
1627         * tests/test-nonblocking-socket-child.c: New file.
1628         * tests/test-nonblocking-socket.h: New file.
1629         * tests/socket-server.h: New file.
1630         * tests/socket-client.h: New file.
1631         * modules/nonblocking-socket-tests: New file.
1632         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1633
1634 2011-04-17  Bruno Haible  <bruno@clisp.org>
1635
1636         nonblocking: Add tests for pipes.
1637         * tests/test-nonblocking-pipe.sh: New file.
1638         * tests/test-nonblocking-pipe-main.c: New file.
1639         * tests/test-nonblocking-pipe-child.c: New file.
1640         * tests/test-nonblocking-pipe.h: New file.
1641         * tests/test-nonblocking-writer.h: New file.
1642         * tests/test-nonblocking-reader.h: New file.
1643         * tests/test-nonblocking-misc.h: New file.
1644         * modules/nonblocking-pipe-tests: New file.
1645         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1646
1647 2011-04-16  Bruno Haible  <bruno@clisp.org>
1648
1649         gettext: Clarify the needed programmer actions.
1650         * modules/gettext (Notice): New field.
1651         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1652
1653 2011-04-16  Bruno Haible  <bruno@clisp.org>
1654
1655         strchrnul: Tweak last commit.
1656         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1657         bug.
1658         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1659         as in _GL_FUNCDECL_SYS.
1660         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1661         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1662
1663 2011-04-15  Eric Blake  <eblake@redhat.com>
1664
1665         strchrnul: work around cygwin bug
1666         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1667         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1669         * modules/string (Makefile.am): Substitute it.
1670         * lib/string.in.h (strchrnul): Use it.
1671
1672 2011-04-15  Bruno Haible  <bruno@clisp.org>
1673
1674         Don't require lib/stdio-write.c when only module 'stdio' is used.
1675         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1676         invocation.
1677         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1678
1679 2011-04-14  Bruno Haible  <bruno@clisp.org>
1680
1681         Support non-blocking pipe I/O in read() on native Windows.
1682         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1683         (read): New declaration.
1684         * lib/read.c: New file.
1685         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1686         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1687         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1688         vscanf): New declarations.
1689         * lib/stdio-read.c: New file.
1690         * m4/read.m4: New file.
1691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1692         REPLACE_READ.
1693         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1694         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1695         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1696         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1697         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1698         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1699         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1700         * modules/read: New file.
1701         * modules/nonblocking (Files): Add lib/stdio-read.c.
1702         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1703         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1704         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1705         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1706         * modules/pread (Depends-on): Add read.
1707         * modules/safe-read (Depends-on): Likewise.
1708         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1709         gets, scanf, vfscanf, vscanf): Verify signatures.
1710         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1711         problem with non-blocking pipes.
1712         * doc/posix-functions/fgetc.texi: Likewise.
1713         * doc/posix-functions/fgets.texi: Likewise.
1714         * doc/posix-functions/fread.texi: Likewise.
1715         * doc/posix-functions/fscanf.texi: Likewise.
1716         * doc/posix-functions/getc.texi: Likewise.
1717         * doc/posix-functions/getchar.texi: Likewise.
1718         * doc/posix-functions/gets.texi: Likewise.
1719         * doc/posix-functions/scanf.texi: Likewise.
1720         * doc/posix-functions/vfscanf.texi: Likewise.
1721         * doc/posix-functions/vscanf.texi: Likewise.
1722
1723 2011-04-14  Bruno Haible  <bruno@clisp.org>
1724
1725         Support non-blocking pipe I/O in write() on native Windows.
1726         * lib/write.c (rpl_write): Split a write request that failed merely
1727         because the byte count was larger than the pipe buffer's size.
1728         * doc/posix-functions/write.texi: Mention the problem with large byte
1729         counts.
1730
1731 2011-04-14  Bruno Haible  <bruno@clisp.org>
1732
1733         wchar: Ensure that wchar_t gets defined on uClibc.
1734         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1735         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1736
1737 2011-04-13  Bruno Haible  <bruno@clisp.org>
1738
1739         safe-write, full-read: Avoid unnecessary compilation units.
1740         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1741         (Depends-on): Remove safe-read. Add ssize_t.
1742         * modules/full-read (Files): Add lib/full-write.c.
1743         (Depends-on): Add full-write.
1744
1745 2011-04-13  Bruno Haible  <bruno@clisp.org>
1746
1747         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1748         * modules/pwrite (Depends-on): Add 'write'.
1749
1750 2011-04-13  Bruno Haible  <bruno@clisp.org>
1751
1752         Support non-blocking pipe I/O in write() on native Windows.
1753         * lib/unistd.in.h (write): Enable replacement also if
1754         GNULIB_UNISTD_H_NONBLOCKING is 1.
1755         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1756         (rpl_write): When failing to write on a non-blocking pipe, change
1757         errno from ENOSPC to EAGAIN.
1758         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1759         putchar, puts, vfprintf, vprintf): Enable replacement also if
1760         GNULIB_STDIO_H_NONBLOCKING is 1.
1761         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1762         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1763         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1764         CALL_WITH_SIGPIPE_EMULATION.
1765         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1766         * m4/nonblocking.m4: New file.
1767         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1768         for non-blocking I/O support.
1769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1770         GNULIB_UNISTD_H_NONBLOCKING.
1771         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1772         required for non-blocking I/O support.
1773         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1774         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1775         lib/stdio-write.c, m4/asm-underscore.m4.
1776         (Depends-on): Add stdio, unistd.
1777         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1778         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1779         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1780         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1781         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1782         problem with non-blocking pipes.
1783         * doc/posix-functions/fputc.texi: Likewise.
1784         * doc/posix-functions/fputs.texi: Likewise.
1785         * doc/posix-functions/fwrite.texi: Likewise.
1786         * doc/posix-functions/printf.texi: Likewise.
1787         * doc/posix-functions/putc.texi: Likewise.
1788         * doc/posix-functions/putchar.texi: Likewise.
1789         * doc/posix-functions/puts.texi: Likewise.
1790         * doc/posix-functions/vfprintf.texi: Likewise.
1791         * doc/posix-functions/vprintf.texi: Likewise.
1792         * doc/posix-functions/write.texi: Likewise.
1793
1794 2011-04-10  Jim Meyering  <meyering@redhat.com>
1795
1796         maint.mk: prohibit doubled words
1797         Detect them also when they're separated by a newline.
1798         There are 3 ways to customize it:
1799           - disable the test on a per file basis, as usual with rules using
1800             $(VC_LIST_EXCEPT)
1801           - replace the default doubled-word-selecting regexp (affects all files)
1802           - ignore a particular file-vs-doubled-word match
1803         I nearly used that last one to ignore the "is is" match in
1804         coreutils' NEWS file, since the text was "ls -is is ..."
1805         To do that, I would have added this line to cfg.mk:
1806           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1807         but it would have ignored any "is is" match in NEWS.
1808         Low probability, but still...
1809         Instead, I changed the text, slightly:
1810           -  ls -is is now consistent with ls -lis in ignoring values returned
1811           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1812         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1813         (prohibit_doubled_word_): Define.
1814         (sc_prohibit_doubled_word): New rule.
1815         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1816
1817 2011-04-10  Jim Meyering  <meyering@redhat.com>
1818
1819         maint: fix doubled-word typo in comment
1820         * m4/gethostname.m4: s/is is/it is/
1821         * m4/getdomainname.m4: Likewise.
1822
1823 2011-04-10  Jim Meyering  <meyering@redhat.com>
1824
1825         maint: remove doubled word: s/it it/it/
1826         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1827
1828 2011-04-10  Jim Meyering  <meyering@redhat.com>
1829
1830         maint.mk: remove useless semicolon and backslash
1831         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1832         semicolon and backslash.
1833
1834 2011-04-10  Bruno Haible  <bruno@clisp.org>
1835
1836         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1837         * modules/stdint-tests (Depends-on): Add wchar.
1838
1839 2011-04-10  Jim Meyering  <meyering@redhat.com>
1840
1841         maint: remove doubled words in comments, e.g., s/a a/a/
1842         * lib/strptime.c (day_of_the_week): s/the the/the/
1843         * tests/test-chown.h (test_chown): s/a a/a/
1844
1845         test-chown.h: correct a cast
1846         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1847         when the destination is a stat.st_gid.
1848
1849 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1850
1851         getaddrinfo: Fix test for sa_len member.
1852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1853         include <sys/types.h> before <sys/socket.h>.
1854
1855 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1856
1857         maint: change "can not" to "cannot"
1858         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1859         boundaries.
1860
1861 2011-04-09  Jim Meyering  <meyering@redhat.com>
1862
1863         maint: change "a a" to "a"
1864         * tests/test-lchown.h (test_lchown): s/a a/a/
1865
1866         maint.mk: prohibit \<the the\>
1867         * top/maint.mk (sc_prohibit_the_the): New rule.
1868
1869         maint: fix "the the" in comment
1870         * lib/count-one-bits.h: s/the the/the/
1871
1872         maint: change "can not" to "cannot"
1873         But do not change the occurrences in maintain.texi or in
1874         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1875         * doc/gnulib-tool.texi: s/can not/cannot/
1876         * doc/posix-functions/accept.texi (accept): Likewise.
1877         * doc/posix-functions/socket.texi (socket): Likewise.
1878         * lib/mbrtowc.c: Likewise.
1879
1880         maint.mk: prohibit use of "can not"
1881         * top/maint.mk (sc_prohibit_can_not): New rule.
1882         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1883
1884 2011-04-09  Bruno Haible  <bruno@clisp.org>
1885
1886         careadlinkat: Guard against misuse of careadlinkatcwd.
1887         * lib/careadlinkat.c: Include <stdlib.h>.
1888         (careadlinkatcwd): Check that the fd argument is as expected.
1889
1890 2011-04-09  Bruno Haible  <bruno@clisp.org>
1891
1892         careadlinkat: Use common coding style.
1893         * lib/careadlinkat.c: Move gnulib includes after system includes.
1894
1895 2011-04-09  Bruno Haible  <bruno@clisp.org>
1896
1897         careadlinkat: Clarify specification.
1898         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1899         (careadlinkatcwd): Add comment.
1900         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1901
1902 2011-04-09  Bruno Haible  <bruno@clisp.org>
1903
1904         areadlinkat: Avoid link error on many platforms.
1905         * modules/areadlinkat (Depends-on): Add areadlink.
1906
1907 2011-04-09  Bruno Haible  <bruno@clisp.org>
1908
1909         allocator, careadlinkat: Fix double-inclusion guard.
1910         * lib/allocator.h: Fix double-inclusion guard.
1911         * lib/careadlinkat.h: Likewise.
1912
1913 2011-04-09  Bruno Haible  <bruno@clisp.org>
1914
1915         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1916         * lib/relocwrapper.c: Update dependencies hierarchy.
1917         * build-aux/install-reloc: Update list of files to be compiled.
1918         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1919         lib/allocator.[hc].
1920
1921 2011-04-08  Eric Blake  <eblake@redhat.com>
1922
1923         strftime: silence gnulib-tool warning
1924         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1925
1926 2011-04-08  Bruno Haible  <bruno@clisp.org>
1927
1928         verify: Fix syntax error with GCC 4.6 in C++ mode.
1929         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1930         (HAVE_STATIC_ASSERT): New macro.
1931         (verify_true, verify): Use 'static_assert' if it is supported and
1932         '_Static_assert' is not supported.
1933
1934 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1935
1936         allocator: New module.
1937         * modules/allocator, lib/allocator.c: New files.
1938         * lib/allocator.h (stdlib_allocator): New decl.
1939         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1940         Remove.  Do not include <stdlib.h>.
1941         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1942         * modules/careadlinkat (Files): Remove lib/allocator.h.
1943         (Depends-on): Add allocator.
1944
1945         stdlib: let modules use system malloc, realloc
1946         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1947         if !_GL_USE_STDLIB_ALLOC.
1948         (malloc, realloc): Limit this change to a smaller scope.
1949
1950         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1951         (malloc, realloc): Don't #undef; no longer needed.
1952         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1953         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1954         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1955         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1956         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1957         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1958         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1959         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1960
1961         careadlinkat: rename members to avoid problem
1962         * lib/allocator.h (struct allocator): Rename members from
1963         malloc/realloc to allocate/reallocate, to avoid problems if malloc
1964         and realloc are #define'd.  Reported by Eric Blake in
1965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
1966         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
1967
1968 2011-04-08  Eric Blake  <eblake@redhat.com>
1969
1970         nonblocking: reduce dependency
1971         * tests/test-nonblocking.c: Only test sockets when in use.
1972         * modules/nonblocking-tests (Depends-on): Drop socket.
1973         (Makefile.am): Link even if sockets are not present.
1974         * modules/pipe2-tests (Makefile.am): Likewise.
1975         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
1976
1977         pipe2: fix O_NONBLOCK support on mingw
1978         * modules/pipe2 (Depends-on): Add nonblocking.
1979         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
1980         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
1981         * tests/test-nonblocking.c (main): Likewise.
1982         * modules/pipe2-tests (Makefile.am): Avoid link failure.
1983
1984         fcntl-h: fix O_ACCMODE on cygwin
1985         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
1986         * lib/fcntl.in.h (O_ACCMODE): Fix it.
1987
1988         pipe-filter: drop O_NONBLOCK workarounds
1989         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
1990         * modules/pipe-filter-ii (Depends-on): Likewise.
1991         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
1992
1993         nonblocking: provide O_NONBLOCK for mingw
1994         * modules/nonblocking (Depends-on): Add open.
1995         (configure.ac): Set new witness macro.
1996         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
1997         * modules/fcntl-h (Makefile.am): Substitute it.
1998         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
1999         nonblocking module is in use.
2000         * lib/nonblocking.c: Adjust portability test.
2001         * lib/open.c (open): Don't let native open see gnulib flag.
2002         * tests/test-fcntl-h.c (main): Enhance test.
2003         * tests/test-open.h (test_open): Likewise.
2004         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2005
2006         careadlinkat: fix compilation error on mingw
2007         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2008         within struct allocator.
2009
2010 2011-04-06  Eric Blake  <eblake@redhat.com>
2011
2012         binary-io: relicense under LGPLv2+
2013         * modules/binary-io (License): Relax to LGPLv2+.
2014         Requested for libvirt, and required by pipe2.
2015
2016 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2017
2018         verify: use _Static_assert if available
2019         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2020         (verify_true, verify): Use it if available.  This generates better
2021         diagnostics with GCC 4.6.0 and later.
2022
2023 2011-04-05  Bruno Haible  <bruno@clisp.org>
2024
2025         Remove leftover generated .h files after config.status changed.
2026
2027         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2028         GL_GENERATE_ALLOCA_H.
2029         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2030         GL_GENERATE_ALLOCA_H evaluates to false.
2031
2032         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2033         GL_GENERATE_ARGZ_H.
2034         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2035         evaluates to false.
2036
2037         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2038         GL_GENERATE_BYTESWAP_H.
2039         * modules/byteswap (Makefile.am): Remove byteswap.h if
2040         GL_GENERATE_BYTESWAP_H evaluates to false.
2041
2042         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2043         GL_GENERATE_ERRNO_H.
2044         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2045         evaluates to false.
2046
2047         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2048         GL_GENERATE_FLOAT_H.
2049         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2050         evaluates to false.
2051
2052         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2053         GL_GENERATE_FNMATCH_H.
2054         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2055         GL_GENERATE_FNMATCH_H evaluates to false.
2056
2057         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2058         GL_GENERATE_GLOB_H.
2059         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2060         evaluates to false.
2061
2062         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2063         automake conditional GL_GENERATE_ICONV_H.
2064         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2065         evaluates to false.
2066
2067         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2068         GL_GENERATE_NETINET_IN_H.
2069         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2070         GL_GENERATE_NETINET_IN_H evaluates to false.
2071
2072         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2073         conditional GL_GENERATE_PTHREAD_H.
2074         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2075         * modules/pthread (Makefile.am): Remove pthread.h if
2076         GL_GENERATE_PTHREAD_H evaluates to false.
2077
2078         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2079         GL_GENERATE_SCHED_H.
2080         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2081         evaluates to false.
2082
2083         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2084         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2085         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2086         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2087
2088         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2089         GL_GENERATE_STDARG_H.
2090         * modules/stdarg (Makefile.am): Remove stdarg.h if
2091         GL_GENERATE_STDARG_H evaluates to false.
2092
2093         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2094         GL_GENERATE_STDBOOL_H.
2095         * modules/stdbool (Makefile.am): Remove stdbool.h if
2096         GL_GENERATE_STDBOOL_H evaluates to false.
2097
2098         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2099         conditional GL_GENERATE_STDDEF_H.
2100         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2101         * modules/stddef (Makefile.am): Remove stddef.h if
2102         GL_GENERATE_STDDEF_H evaluates to false.
2103
2104         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2105         GL_GENERATE_STDINT_H.
2106         * modules/stdint (Makefile.am): Remove stdint.h if
2107         GL_GENERATE_STDINT_H evaluates to false.
2108
2109         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2110         GL_GENERATE_SYSEXITS_H.
2111         * modules/sysexits (Makefile.am): Remove sysexits.h if
2112         GL_GENERATE_SYSEXITS_H evaluates to false.
2113
2114         Reported by Karl Berry and Ralf Wildenhues.
2115
2116 2011-04-05  Bruno Haible  <bruno@clisp.org>
2117
2118         Ensure to rebuild generated .h files when config.status has changed.
2119         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2120         config.status.
2121         * modules/ctype (Makefile.am): Likewise.
2122         * modules/dirent (Makefile.am): Likewise.
2123         * modules/errno (Makefile.am): Likewise.
2124         * modules/fcntl-h (Makefile.am): Likewise.
2125         * modules/float (Makefile.am): Likewise.
2126         * modules/getopt-posix (Makefile.am): Likewise.
2127         * modules/glob (Makefile.am): Likewise.
2128         * modules/iconv-h (Makefile.am): Likewise.
2129         * modules/inttypes (Makefile.am): Likewise.
2130         * modules/langinfo (Makefile.am): Likewise.
2131         * modules/locale (Makefile.am): Likewise.
2132         * modules/math (Makefile.am): Likewise.
2133         * modules/netdb (Makefile.am): Likewise.
2134         * modules/netinet_in (Makefile.am): Likewise.
2135         * modules/poll-h (Makefile.am): Likewise.
2136         * modules/pthread (Makefile.am): Likewise.
2137         * modules/pty (Makefile.am): Likewise.
2138         * modules/sched (Makefile.am): Likewise.
2139         * modules/search (Makefile.am): Likewise.
2140         * modules/selinux-h (Makefile.am): Likewise.
2141         * modules/signal (Makefile.am): Likewise.
2142         * modules/spawn (Makefile.am): Likewise.
2143         * modules/stdarg (Makefile.am): Likewise.
2144         * modules/stdbool (Makefile.am): Likewise.
2145         * modules/stddef (Makefile.am): Likewise.
2146         * modules/stdint (Makefile.am): Likewise.
2147         * modules/stdio (Makefile.am): Likewise.
2148         * modules/stdlib (Makefile.am): Likewise.
2149         * modules/string (Makefile.am): Likewise.
2150         * modules/strings (Makefile.am): Likewise.
2151         * modules/sys_file (Makefile.am): Likewise.
2152         * modules/sys_ioctl (Makefile.am): Likewise.
2153         * modules/sys_select (Makefile.am): Likewise.
2154         * modules/sys_socket (Makefile.am): Likewise.
2155         * modules/sys_stat (Makefile.am): Likewise.
2156         * modules/sys_time (Makefile.am): Likewise.
2157         * modules/sys_times (Makefile.am): Likewise.
2158         * modules/sys_utsname (Makefile.am): Likewise.
2159         * modules/sys_wait (Makefile.am): Likewise.
2160         * modules/sysexits (Makefile.am): Likewise.
2161         * modules/termios (Makefile.am): Likewise.
2162         * modules/time (Makefile.am): Likewise.
2163         * modules/unistd (Makefile.am): Likewise.
2164         * modules/wchar (Makefile.am): Likewise.
2165         * modules/wctype-h (Makefile.am): Likewise.
2166         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2167
2168 2011-04-05  Bruno Haible  <bruno@clisp.org>
2169
2170         pipe2: Relicense under LGPLv2+.
2171         * modules/pipe2 (License): Change to LGPLv2+.
2172         Requested by Eric Blake, for libvirt.
2173
2174 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2175
2176         bootstrap: compute gnulib_extra_files after updating build_aux
2177         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2178         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2179
2180 2011-04-05  Eric Blake  <eblake@redhat.com>
2181
2182         bootstrap: preserve git whitelist item sorting
2183         * build-aux/bootstrap (sort_patterns): New function.
2184         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2185
2186 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2187
2188         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2189         sc_space_tab check.
2190
2191 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2192
2193         areadlink, areadlinkat: rewrite in terms of careadlinkat
2194         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2195         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2196         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2197         (malloc, realloc): Remove #undefs.
2198         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2199         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2200         readlink, ssize_t, stdint, unistd.
2201         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2202         areadlink, stdint.
2203
2204         careadlinkat: new module
2205         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2206         * modules/careadlinkat: New files, written by me with
2207         a review and feedback from Ben Pfaff in
2208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2209
2210 2011-04-01  Bruno Haible  <bruno@clisp.org>
2211
2212         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2213         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2214         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2215         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2216         Reported by Bruce Korb <bruce.korb@gmail.com>.
2217
2218 2011-04-01  Bruno Haible  <bruno@clisp.org>
2219
2220         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2221         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2222         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2223         * modules/wcpcpy (Depends-on): Add extensions.
2224         * modules/wcpncpy (Depends-on): Likewise.
2225         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2226         systems.
2227         * doc/posix-functions/wcpncpy.texi: Likewise.
2228         * doc/posix-functions/wcwidth.texi: Likewise.
2229
2230 2011-03-31  Eric Blake  <eblake@redhat.com>
2231
2232         nonblocking: fix mingw test failures
2233         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2234         non-blocking flag on regular file.
2235         (get_nonblocking_flag): Set errno on invalid fd.
2236         * tests/test-nonblocking.c (main): Avoid test failure on
2237         directories if fchdir is not active.
2238         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2239
2240 2011-03-31  Bruno Haible  <bruno@clisp.org>
2241
2242         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2243         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2244         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2245         Reported by Simon Josefsson <simon@josefsson.org>.
2246
2247 2011-03-31  Bruno Haible  <bruno@clisp.org>
2248         and Eric Blake  <eblake@redhat.com>
2249
2250         nonblocking: new module
2251         * modules/nonblocking: New module.
2252         * modules/nonblocking-tests: Likewise.
2253         * lib/nonblocking.h: New file.
2254         * lib/nonblocking.c: Likewise.
2255         * tests/test-nonblocking.c: New test.
2256         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2257
2258 2011-03-30  Bruno Haible  <bruno@clisp.org>
2259
2260         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2261         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2262         instead of 'printf' format for GCC >= 4.4.
2263         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2264         (fprintf, printf, vfprintf, vprintf): Declare with
2265         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2266         the system's vfprintf() function.
2267         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2268
2269 2011-03-30  Eric Blake  <eblake@redhat.com>
2270
2271         passfd: fix scoping bug
2272         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2273         before sendmsg/recvmsg.
2274
2275         passfd: standardize coding conventions
2276         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2277         can be learned at compile time.
2278         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2279         ifdefs.
2280         (sendfd, recvfd): Follow gnulib code conventions.
2281
2282         passfd: fix incorrect sendmsg arguments
2283         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2284         incorrect msg_controllen value.
2285         * modules/passfd-tests (Depends-on): Check for alarm.
2286         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2287         Reported by Bastien ROUCARIES.
2288
2289 2011-03-30  Bruno Haible  <bruno@clisp.org>
2290
2291         c-strcasestr: Relicense under LGPLv2+.
2292         * modules/c-strcasestr (License): Change to LGPLv2+.
2293         Requested by Eric Blake, for libvirt.
2294
2295 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2296
2297         * users.txt: Add libidn2.  Fix libtasn1 link.
2298
2299 2011-03-30  Jim Meyering  <meyering@redhat.com>
2300
2301         tests: readlink* ("",... fails with EINVAL on newer kernels
2302         readlink and readlinkat have typically failed with ENOENT for
2303         the invalid, empty file name,  "".  However, with the advent
2304         of linux-2.6.39, they fail with EINVAL.
2305         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2306         when operating on the empty file name.
2307         * tests/test-readlink.h (test_readlink): Likewise.
2308
2309 2011-03-29  Bruno Haible  <bruno@clisp.org>
2310
2311         Relicense some modules under LGPLv2+, for libidn2.
2312         * modules/array-mergesort (License): Change to LGPLv2+.
2313         * modules/c-strcaseeq (License): Likewise.
2314         * modules/striconveh (License): Likewise.
2315         * modules/striconveha (License): Likewise.
2316         * modules/uniconv/base (License): Likewise.
2317         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2318         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2319         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2320         * modules/unictype/base (License): Likewise.
2321         * modules/unictype/bidiclass-of (License): Likewise.
2322         * modules/unictype/category-M (License): Likewise.
2323         * modules/unictype/category-none (License): Likewise.
2324         * modules/unictype/category-of (License): Likewise.
2325         * modules/unictype/category-test (License): Likewise.
2326         * modules/unictype/category-test-withtable (License): Likewise.
2327         * modules/unictype/combining-class (License): Likewise.
2328         * modules/unictype/joiningtype-of (License): Likewise.
2329         * modules/unictype/scripts (License): Likewise.
2330         * modules/uninorm/base (License): Likewise.
2331         * modules/uninorm/canonical-decomposition (License): Likewise.
2332         * modules/uninorm/composition (License): Likewise.
2333         * modules/uninorm/decompose-internal (License): Likewise.
2334         * modules/uninorm/decomposition-table (License): Likewise.
2335         * modules/uninorm/nfc (License): Likewise.
2336         * modules/uninorm/nfd (License): Likewise.
2337         * modules/uninorm/u32-normalize (License): Likewise.
2338         * modules/unistr/base (License): Likewise.
2339         * modules/unistr/u32-cpy (License): Likewise.
2340         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2341         * modules/unistr/u32-to-u8 (License): Likewise.
2342         * modules/unistr/u32-uctomb (License): Likewise.
2343         * modules/unistr/u8-check (License): Likewise.
2344         * modules/unistr/u8-mblen (License): Likewise.
2345         * modules/unistr/u8-mbtouc (License): Likewise.
2346         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2347         * modules/unistr/u8-mbtoucr (License): Likewise.
2348         * modules/unistr/u8-prev (License): Likewise.
2349         * modules/unistr/u8-strlen (License): Likewise.
2350         * modules/unistr/u8-to-u32 (License): Likewise.
2351         * modules/unistr/u8-uctomb (License): Likewise.
2352         * modules/unitypes (License): Likewise.
2353         Requested by Simon Josefsson.
2354
2355 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2356
2357         lib-symbol-visibility: Add a notice.
2358         * modules/lib-symbol-visibility (Notice): New field.
2359
2360 2011-03-29  Bruno Haible  <bruno@clisp.org>
2361
2362         getaddrinfo: Doc fix.
2363         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2364         section "fixed in Gnulib".
2365
2366 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2367
2368         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2369         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2370
2371 2011-03-26  Bruno Haible  <bruno@clisp.org>
2372
2373         unictype/property-byname: Reduce the number of load-time relocations.
2374         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2375         (UC_PROPERTY_INDEX_*): New enumeration values.
2376         (uc_property_byname): Convert an index from the lookup table to an
2377         uc_property_t.
2378         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2379         values.
2380
2381 2011-03-26  Bruno Haible  <bruno@clisp.org>
2382
2383         unictype/property-byname: Allow omitted word separators and aliases.
2384         * lib/unictype/pr_byname.gperf: Add property names without word
2385         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2386         for 'space'.
2387
2388 2011-03-26  Bruno Haible  <bruno@clisp.org>
2389
2390         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2391         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2392         also hyphens to space.
2393         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2394         without spaces.
2395         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2396
2397 2011-03-26  Bruno Haible  <bruno@clisp.org>
2398
2399         unictype/joiningtype-byname: Recognize long names as well.
2400         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2401         a long name.
2402         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2403         unictype/joiningtype_byname.h.
2404         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2405         * lib/unictype/joiningtype_byname.gperf: New file.
2406         * modules/unictype/joiningtype-byname (Files): Add
2407         lib/unictype/joiningtype_byname.gperf.
2408         (Depends-on): Add gperf.
2409         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2410         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2411         long names.
2412
2413         Tests for module 'unictype/joiningtype-longname'.
2414         * modules/unictype/joiningtype-longname-tests: New file.
2415         * tests/unictype/test-joiningtype_longname.c: New file.
2416
2417         New module 'unictype/joiningtype-longname'.
2418         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2419         * lib/unictype/joiningtype_longname.c: New file.
2420         * modules/unictype/joiningtype-longname: New file.
2421         * modules/unictype/joiningtype-all (Depends-on): Add
2422         unictype/joiningtype-longname.
2423
2424 2011-03-26  Bruno Haible  <bruno@clisp.org>
2425
2426         unictype/bidiclass-byname: Recognize long names as well.
2427         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2428         name.
2429         * lib/unictype/bidi_byname.c: Include <string.h>,
2430         unictype/bidi_byname.h.
2431         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2432         * lib/unictype/bidi_byname.gperf: New file.
2433         * modules/unictype/bidiclass-byname (Files): Add
2434         lib/unictype/bidi_byname.gperf.
2435         (Depends-on): Add gperf.
2436         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2437         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2438         long names.
2439
2440         Tests for module 'unictype/bidiclass-longname'.
2441         * modules/unictype/bidiclass-longname-tests: New file.
2442         * tests/unictype/test-bidi_longname.c: New file.
2443
2444         New module 'unictype/bidiclass-longname'.
2445         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2446         * lib/unictype/bidi_longname.c: New file.
2447         * modules/unictype/bidiclass-longname: New file.
2448         * modules/unictype/bidiclass-all (Depends-on): Add
2449         unictype/bidiclass-longname.
2450
2451 2011-03-26  Bruno Haible  <bruno@clisp.org>
2452
2453         unictype/bidi*: Rename modules.
2454         * modules/unictype/bidiclass-all: Renamed from
2455         modules/unictype/bidicategory-all.
2456         * modules/unictype/bidiclass-name: Renamed from
2457         modules/unictype/bidiclass-name.
2458         (Description): Update.
2459         * modules/unictype/bidiclass-name-tests: Renamed from
2460         modules/unictype/bidicategory-name-tests.
2461         * modules/unictype/bidiclass-byname: Renamed from
2462         modules/unictype/bidicategory-byname.
2463         (Description): Update.
2464         * modules/unictype/bidiclass-byname-tests: Renamed from
2465         modules/unictype/bidicategory-byname-tests.
2466         * modules/unictype/bidiclass-of: Renamed from
2467         modules/unictype/bidicategory-of.
2468         (Description): Update.
2469         * modules/unictype/bidiclass-of-tests: Renamed from
2470         modules/unictype/bidicategory-of-tests.
2471         * modules/unictype/bidiclass-test: Renamed from
2472         modules/unictype/bidicategory-test.
2473         (Description): Update.
2474         * modules/unictype/bidiclass-test-tests: Renamed from
2475         modules/unictype/bidicategory-test-tests.
2476         * modules/unictype/bidicategory-all: New file, a simple redirection.
2477         * modules/unictype/bidicategory-name: Likewise.
2478         * modules/unictype/bidicategory-byname: Likewise.
2479         * modules/unictype/bidicategory-of: Likewise.
2480         * modules/unictype/bidicategory-test: Likewise.
2481         * modules/unictype/property-bidi-* (Dependencies): Update.
2482         * lib/unictype/bidi_*.c: Update comment.
2483
2484 2011-03-26  Bruno Haible  <bruno@clisp.org>
2485
2486         unictype/bidi*: Rename functions, part 2.
2487         * modules/unictype/bidicategory-name (configure.ac): Update required
2488         libunistring version.
2489         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2490
2491 2011-03-25  Bruno Haible  <bruno@clisp.org>
2492
2493         New module 'unictype/combining-class-all'.
2494         * modules/unictype/combining-class-all: New file.
2495
2496         Tests for module 'unictype/combining-class-byname'.
2497         * modules/unictype/combining-class-byname-tests: New file.
2498         * tests/unictype/test-combiningclass_byname.c: New file.
2499
2500         New module 'unictype/combining-class-byname'.
2501         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2502         * lib/unictype/combiningclass_byname.c: New file.
2503         * lib/unictype/combiningclass_byname.gperf: New file.
2504         * modules/unictype/combining-class-byname: New file.
2505
2506         Tests for module 'unictype/combining-class-longname'.
2507         * modules/unictype/combining-class-longname-tests: New file.
2508         * tests/unictype/test-combiningclass_longname.c: New file.
2509
2510         New module 'unictype/combining-class-longname'.
2511         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2512         * lib/unictype/combiningclass_longname.c: New file.
2513         * modules/unictype/combining-class-longname: New file.
2514
2515         Tests for module 'unictype/combining-class-name'.
2516         * modules/unictype/combining-class-name-tests: New file.
2517         * tests/unictype/test-combiningclass_name.c: New file.
2518
2519         New module 'unictype/combining-class-name'.
2520         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2521         * lib/unictype/combiningclass_name.c: New file.
2522         * modules/unictype/combining-class-name: New file.
2523
2524 2011-03-25  Bruno Haible  <bruno@clisp.org>
2525
2526         unictype/combining-class: Rename source files.
2527         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2528         of unictype/combining.h.
2529         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2530         Update.
2531         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2532         * modules/unictype/combining-class (Description): Fix.
2533         (Files, Makefile.am): Update.
2534         * tests/unictype/test-combiningclass.c: Renamed from
2535         tests/unictype/test-combining.c.
2536         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2537
2538 2011-03-25  Bruno Haible  <bruno@clisp.org>
2539
2540         unictype: Update list of canonical combining classes.
2541         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2542
2543 2011-03-25  Bruno Haible  <bruno@clisp.org>
2544
2545         unictype/category-byname: Recognize long names as well.
2546         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2547         a long name.
2548         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2549         unictype/categ_byname.h.
2550         (UC_CATEGORY_INDEX_*): New enumeration values.
2551         (uc_general_category_byname): Use uc_general_category_lookup and
2552         convert from index to value.
2553         * lib/unictype/categ_byname.gperf: New file.
2554         * modules/unictype/category-byname (Files): Add
2555         lib/unictype/categ_byname.gperf.
2556         (Depends-on): Add gperf.
2557         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2558         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2559         long names.
2560
2561         Tests for module 'unictype/category-longname'.
2562         * modules/unictype/category-longname-tests: New file.
2563         * tests/unictype/test-categ_longname.c: New file.
2564
2565         New module 'unictype/category-longname'.
2566         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2567         * lib/unictype/categ_longname.c: New file.
2568         * modules/unictype/category-longname: New file.
2569         * modules/unictype/category-all (Depends-on): Add it.
2570
2571 2011-03-25  Bruno Haible  <bruno@clisp.org>
2572
2573         Tests for module 'unictype/category-LC'.
2574         * modules/unictype/category-LC-tests: New file.
2575         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2576
2577         New module 'unictype/category-LC'.
2578         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2579         (UC_CATEGORY_LC): New declaration.
2580         (UC_CASED_LETTER): New macro.
2581         * lib/gen-uni-tables.c (is_category_LC): New function.
2582         (output_categories): Also handle category LC.
2583         (UC_CATEGORY_MASK_LC): New enumeration value.
2584         (general_category_byname): Also handle category LC.
2585         * lib/unictype/categ_LC.c: New file.
2586         * lib/unictype/categ_LC.h: New file, automatically generated.
2587         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2588         category LC.
2589         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2590         * modules/unictype/category-LC: New file.
2591         * modules/unictype/category-byname (Depends-on): Add
2592         unictype/category-LC.
2593         * modules/unictype/category-all (Depends-on): Likewise.
2594
2595 2011-03-25  Eric Blake  <eblake@redhat.com>
2596
2597         xmalloc: revert yesterday's regression
2598         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2599         realloc's underlying behavior (allowing allocation of zero-size
2600         objects, especially if malloc-gnu is also in use).
2601
2602 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2603
2604         maint.mk: add missing version to VC-tag
2605         * top/maint.mk: git tag was missing actual tag name; add it.
2606
2607         valgrind: do leak checking, and exit with code 1 on error (not 0)
2608         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2609         to VALGRIND.
2610
2611 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2612
2613         posix-modules: say what it does.
2614         * posix-modules: Add a line to the --help output saying what it does.
2615
2616 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2617
2618         xmalloc: Do not leak if underlying realloc is C99 compatible.
2619         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2620         This avoids a leak on C99-based systems.  See
2621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2622
2623 2011-03-24  Eric Blake  <eblake@redhat.com>
2624
2625         realloc: document portability problem
2626         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2627         passing 0 size to realloc.
2628
2629 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2630
2631         doc: update users.txt
2632         * users.txt: Add cvsps, tmpwatch
2633
2634 2011-03-23  Matt Rice  <ratmice@gmail.com>
2635
2636         doc: update users.txt
2637         * users.txt: Add gdb.
2638
2639 2011-03-23  Jim Meyering  <meyering@redhat.com>
2640
2641         doc: update users.txt
2642         Looking through matches up to the following URL (there are still
2643         several more pages), I found several projects that use gnulib:
2644         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2645         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2646         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2647
2648 2011-03-22  Bruno Haible  <bruno@clisp.org>
2649
2650         unictype/bidi*: Rename functions.
2651         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2652         uc_bidi_class, uc_is_bidi_class): New declarations.
2653         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2654         uc_bidi_category_byname.
2655         (uc_bidi_category_byname): New function.
2656         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2657         u_bidi_category_name.
2658         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2659         (uc_bidi_category_name): New function.
2660         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2661         uc_bidi_category.
2662         (uc_bidi_category): New function.
2663         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2664         uc_is_bidi_category. Invoke uc_bidi_class.
2665         (uc_is_bidi_category): New function.
2666         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2667         instead of uc_bidi_category_byname.
2668         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2669         instead of uc_bidi_category_name.
2670         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2671         uc_bidi_category.
2672         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2673         instead of uc_is_bidi_category.
2674
2675 2011-03-21  Bruno Haible  <bruno@clisp.org>
2676
2677         New module 'unictype/joininggroup-all'.
2678         * modules/unictype/joininggroup-all: New file.
2679
2680         Tests for module 'unictype/joininggroup-of'.
2681         * modules/unictype/joininggroup-of-tests: New file.
2682         * tests/unictype/test-joininggroup_of.c: New file.
2683         * tests/unictype/test-joininggroup_of.h: New file, automatically
2684         generated by gen-uni-tables.
2685
2686         New module 'unictype/joininggroup-of'.
2687         * modules/unictype/joininggroup-of: New file.
2688         * lib/unictype/joininggroup_of.c: New file.
2689         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2690         gen-uni-tables.
2691
2692         Tests for module 'unictype/joininggroup-byname'.
2693         * modules/unictype/joininggroup-byname-tests: New file.
2694         * tests/unictype/test-joininggroup_byname.c: New file.
2695
2696         New module 'unictype/joininggroup-byname'.
2697         * modules/unictype/joininggroup-byname: New file.
2698         * lib/unictype/joininggroup_byname.c: New file.
2699         * lib/unictype/joininggroup_byname.gperf: New file.
2700
2701         Tests for module 'unictype/joininggroup-name'.
2702         * modules/unictype/joininggroup-name-tests: New file.
2703         * tests/unictype/test-joininggroup_name.c: New file.
2704
2705         New module 'unictype/joininggroup-name'.
2706         * modules/unictype/joininggroup-name: New file.
2707         * lib/unictype/joininggroup_name.c: New file.
2708         * lib/unictype/joininggroup_name.h: New file.
2709
2710         New module 'unictype/joiningtype-all'.
2711         * modules/unictype/joiningtype-all: New file.
2712
2713         Tests for module 'unictype/joiningtype-of'.
2714         * modules/unictype/joiningtype-of-tests: New file.
2715         * tests/unictype/test-joiningtype_of.c: New file.
2716         * tests/unictype/test-joiningtype_of.h: New file, automatically
2717         generated by gen-uni-tables.
2718
2719         New module 'unictype/joiningtype-of'.
2720         * modules/unictype/joiningtype-of: New file.
2721         * lib/unictype/joiningtype_of.c: New file.
2722         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2723         gen-uni-tables.
2724
2725         Tests for module 'unictype/joiningtype-byname'.
2726         * modules/unictype/joiningtype-byname-tests: New file.
2727         * tests/unictype/test-joiningtype_byname.c: New file.
2728
2729         New module 'unictype/joiningtype-byname'.
2730         * modules/unictype/joiningtype-byname: New file.
2731         * lib/unictype/joiningtype_byname.c: New file.
2732
2733         Tests for module 'unictype/joiningtype-name'.
2734         * modules/unictype/joiningtype-name-tests: New file.
2735         * tests/unictype/test-joiningtype_name.c: New file.
2736
2737         New module 'unictype/joiningtype-name'.
2738         * modules/unictype/joiningtype-name: New file.
2739         * lib/unictype/joiningtype_name.c: New file.
2740
2741         unictype: Add support for Arabic shaping properties.
2742         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2743         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2744         declarations.
2745         (UC_JOINING_GROUP_*): New enumeration values.
2746         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2747         declarations.
2748         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2749         (unicode_joining_type): New variable.
2750         (UC_JOINING_GROUP_*): New enumeration values.
2751         (unicode_joining_group): New variable.
2752         (fill_arabicshaping, joining_type_as_c_identifier,
2753         output_joining_type_test, output_joining_type,
2754         joining_group_as_c_identifier, output_joining_group_test,
2755         output_joining_group): New functions.
2756         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2757         fill_arabicshaping and output_joining_type_test, output_joining_type,
2758         output_joining_group_test, output_joining_group.
2759         Reported by Simon Josefsson.
2760
2761 2011-03-21  Jim Meyering  <meyering@redhat.com>
2762
2763         strftime: fix a bug in yesterday's change
2764         * lib/strftime.c (add): Accommodate width's initial value of -1.
2765         Otherwise, nstrftime would copy uninitialized data into
2766         the result buffer.
2767
2768 2011-03-21  Jim Meyering  <meyering@redhat.com>
2769
2770         tests: add strftime-tests module
2771         * tests/test-strftime.c: New file.
2772         * modules/strftime-tests: New module.
2773
2774 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2775
2776         strftime: don't assume a byte count fits in 'int'
2777         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2778         found this problem by static analysis, using gcc -Wstrict-overflow
2779         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2780         on an integer overflow having undefined behavior, but it turns out
2781         that the argument is a size, which might not fit in 'int' anyway,
2782
2783 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2784
2785         stdio: don't require ignore_value around fwrite
2786
2787         This patch works around libc bug 11959
2788         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2789         Without this patch, applications must often write
2790         ignore_value (fwrite (...)) even though the ignore_value is
2791         not helpful here.  It's common to write many objects, using
2792         fwrite/printf/etc., and then use ferror to detect output error.
2793
2794         I considered making this patch optional, but decided against it,
2795         because libc is obviously being inconsistent here: there is no
2796         reason libc should insist that user code must inspect fwrite
2797         return's value without also insisting that it inspect printf's,
2798         putchar's, etc.  If user code wants to have a strict style where
2799         all these functions' values are checked (so that ferror need not
2800         be checked), we could add support for that style in a new gnulib
2801         module, but in the meantime it's better to be consistent and to
2802         support common usage.
2803
2804         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2805         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2806         that we are compiling in checking mode, and if not C++, and
2807         if not already wrapping fwrite for some other reason.
2808         (fwrite): #define to rpl_fwrite if the latter is defined.
2809
2810 2011-03-20  Bruno Haible  <bruno@clisp.org>
2811
2812         verror: Fix compilation error introduced on 2011-02-13.
2813         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2814         instead of __attribute__.
2815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2816
2817 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2818             Bruno Haible  <bruno@clisp.org>
2819
2820         socklen: do not depend on sys_socket
2821         While trying to modify Emacs to use gnulib's socklen module,
2822         I discovered a circular dependency: socklen depends on sys_socket
2823         and vice versa.  Emacs can use socklen, but it does not need
2824         sys_socket because it has its own substitute for sys/socket.h.
2825         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2826         gl_TYPE_SOCKLEN_T.
2827         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2828         gl_PREREQ_SYS_H_SOCKET.
2829         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2830         gl_PREREQ_SYS_H_SOCKET.
2831         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2832         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2833         * modules/socklen (Depends-on): Do not depend on sys_socket.
2834         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2835
2836 2011-03-20  Jim Meyering  <meyering@redhat.com>
2837
2838         maint.mk: sort file names *after* new transformation
2839         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2840         prefix would have led to an unwarranted failure in GNU parted.
2841         Sort after that transformation.
2842
2843 2011-03-19  Jim Meyering  <meyering@redhat.com>
2844
2845         maint.mk: fix po-file syntax-check rule
2846         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2847         Patch by Bruno Haible.
2848
2849 2011-03-19  Bruno Haible  <bruno@clisp.org>
2850
2851         socklen: Update comment.
2852         * m4/socklen.m4: Update comment about platforms.
2853
2854 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2855             Bruno Haible  <bruno@clisp.org>
2856
2857         inet_ntop, inet_pton: Simplify.
2858         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2859         documented to provide socklen_t and we already depend on sys_socket.
2860         * modules/inet_pton (Depends-on): Likewise.
2861         * lib/arpa_inet.in.h: Adjust comment.
2862
2863 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2864             Bruno Haible  <bruno@clisp.org>
2865
2866         netdb: Simplify.
2867         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2868         documented to provide socklen_t and we already depend on sys_socket.
2869         * lib/netdb.in.h: Adjust comment.
2870
2871 2011-03-19  Bruno Haible  <bruno@clisp.org>
2872
2873         sys_socket, netdb: Document problem with socklen_t.
2874         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2875         platforms.
2876         * doc/posix-headers/netdb.texi: Likewise.
2877
2878 2011-03-18  Eric Blake  <eblake@redhat.com>
2879
2880         maint.mk: let po check work in VPATH build
2881         * top/maint.mk (po_file): Allow cfg.mk override.
2882         (sc_po_check): Allow VPATH use.
2883         Reported by Jiri Denemark.
2884
2885 2011-03-16  Jim Meyering  <meyering@redhat.com>
2886
2887         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2888         Before, you would have had to create one .x-sc_ file per rule in order
2889         to exempt offending files.  Now, you may instead use a Make variable --
2890         usually defined in cfg.mk -- whose name identifies the affected rule.
2891         * top/maint.mk (_sc_excl): Define.
2892         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2893         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2894
2895 2011-03-13  Bruno Haible  <bruno@clisp.org>
2896
2897         ignore-value tests: Avoid warnings.
2898         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2899         empty for gcc < 3.4.
2900
2901 2011-03-13  Bruno Haible  <bruno@clisp.org>
2902
2903         passfd: Fix link error on Solaris.
2904         * modules/passfd (Description): Correct.
2905         (Depends-on): Add socketlib.
2906         (Link): New section.
2907         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2908
2909 2011-03-13  Bruno Haible  <bruno@clisp.org>
2910
2911         passfd: Fix link error on AIX 5.2.
2912         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2913
2914 2011-03-13  Bruno Haible  <bruno@clisp.org>
2915
2916         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2917         * lib/sys_socket.in.h: Include <stddef.h>.
2918         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2919         CMSG_FIRSTHDR. Remove unused variable.
2920
2921 2011-03-13  Bruno Haible  <bruno@clisp.org>
2922
2923         passfd: Fix compilation error on OpenBSD.
2924         * lib/passfd.c: Include <sys/uio.h>.
2925
2926 2011-03-13  Bruno Haible  <bruno@clisp.org>
2927
2928         passfd test: Fix warnings.
2929         * tests/test-passfd.c: Include <sys/wait.h>.
2930         (main): Fix typo.
2931
2932 2011-03-13  Bruno Haible  <bruno@clisp.org>
2933
2934         passfd module, part 4, tweaks.
2935         * tests/test-passfd.c: Reorder includes.
2936         (main): Fix perror and printf calls.
2937
2938 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2939
2940         passfd module, part 4.
2941         * modules/passfd-tests: New file.
2942         * tests/test-passfd.c: New file.
2943
2944 2011-03-13  Jim Meyering  <meyering@redhat.com>
2945
2946         Makefile: rely on GNU make; derive syntax-check rule names
2947         Rather than requiring that each sc_ rule be listed as a dependent
2948         of "check", use features of GNU make to derive the list.
2949         * Makefile (syntax-check-rules): Define.
2950         (check): Depend on the new variable, not the hard-coded list.
2951
2952 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2953             Bruno Haible  <bruno@clisp.org>
2954
2955         passfd module, part 3.
2956         * lib/passfd.h (recvfd): Add a flags argument.
2957         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
2958         (recvfd): Add a flags argument.
2959         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
2960         exists.
2961         * modules/passfd (Depends-on): Add cloexec.
2962         Suggested by Eric Blake.
2963
2964 2011-03-13  Bruno Haible  <bruno@clisp.org>
2965
2966         passfd module, part 2, tweaks.
2967         * modules/passfd (Files): Reorder.
2968         (Depends-on): Remove errno.
2969         (Include): Remove <sys/socket.h>, <sys/un.h>.
2970         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
2971         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
2972         specification header. Include <sys/socket.h> always. Don't include
2973         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
2974         (sendfd): Clarify that it sets errno when it fails.
2975         (recvfd): Fix specification.
2976
2977 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2978
2979         passfd module, part 2.
2980         * modules/passfd: New file.
2981         * lib/passfd.h: New file.
2982         * lib/passfd.c: New file.
2983
2984 2011-03-12  Bruno Haible  <bruno@clisp.org>
2985
2986         wcswidth, mbswidth: Avoid integer overflow.
2987         * lib/wcswidth.c: Include <limits.h>.
2988         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
2989         * lib/mbswidth.c: Include <limits.h>.
2990         (mbsnwidth): Avoid 'int' overflow.
2991         Reported by Jim Meyering.
2992
2993 2011-03-12  Bruno Haible  <bruno@clisp.org>
2994
2995         futimens, utimensat: Avoid endless recursion on Solaris 10.
2996         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
2997         Solaris.
2998         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
2999         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3000
3001 2011-03-11  Jim Meyering  <meyering@redhat.com>
3002
3003         maint.mk: relax a regexp to accommodate other formatting styles
3004         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3005         between "ngettext" and the following "(".
3006
3007 2011-03-11  Pádraig Brady <P@draigBrady.com>
3008
3009         maint.mk: suppress a false positive warning
3010         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3011         diagnostics are marked with ngettext.
3012
3013 2011-03-10  Eric Blake  <eblake@redhat.com>
3014
3015         wchar: add explicit dependencies, for Tru64
3016         * modules/mbmemcasecoll (Depends-on): Add wchar.
3017         * modules/mbtowc (Depends-on): Likewise.
3018         * modules/vasnprintf (Depends-on): Likewise.
3019         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3020         * modules/wctomb (Depends-on): Likewise.
3021         Reported by Peter O'Gorman.
3022
3023 2011-03-08  Bruno Haible  <bruno@clisp.org>
3024
3025         passfd module, part 1, tweaks.
3026         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3027         Improve indentation. Improve AC_MSG_CHECKING messages.
3028         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3029         gl_SOCKET_FAMILIES.
3030
3031 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3032
3033         passfd module, part 1.
3034         * m4/afunix.m4: New file.
3035         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3036         sockets.
3037
3038 2011-03-08  Bruno Haible  <bruno@clisp.org>
3039
3040         regex-quote: New API.
3041         * lib/regex-quote.h: Include <stdbool.h>.
3042         (struct regex_quote_spec): New type.
3043         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3044         New declarations.
3045         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3046         'const struct regex_quote_spec *' argument.
3047         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3048         (pcre_special): New constant.
3049         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3050         New functions.
3051         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3052         'const struct regex_quote_spec *' argument.
3053         * modules/regex-quote (Depends-on): Add stdbool.
3054         * tests/test-regex-quote.c (check): Update for new API. Add test for
3055         anchored results.
3056         * NEWS: Mention the API change.
3057         Reported by Reuben Thomas and Eric Blake.
3058
3059 2011-03-06  Bruno Haible  <bruno@clisp.org>
3060
3061         regex-quote: Fix creation of POSIX extended regular expressions.
3062         * lib/regex-quote.c (ere_special): Add grouping and alternation
3063         operators.
3064
3065 2011-03-05  Bruno Haible  <bruno@clisp.org>
3066
3067         doc: Improve doc regarding autopoint vs. gnulib.
3068         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3069         disable autopoint while running autoreconf.
3070         Suggested by Ralf Wildenhues.
3071
3072 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3073
3074         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3075         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3076
3077 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3078
3079         parse-duration: remove xalloc.h dependency
3080         * lib/parse-duration.c (parse_period): handle NULL return from
3081         strdup instead of calling xstrdup().
3082         * modules/parse-duration: remove "xalloc" dependency
3083
3084 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3085
3086         bootstrap: honor m4_base when running aclocal
3087         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3088
3089 2011-03-02  Jim Meyering  <meyering@redhat.com>
3090
3091         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3092         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3093         on request from Matt Booth.
3094
3095 2011-03-01  Eric Blake  <eblake@redhat.com>
3096
3097         test-link: work on Hurd
3098         * tests/test-link.h (test_link): Hurd rejects linking directories
3099         with EISDIR instead of the POSIX-mandated EPERM.
3100
3101 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3102
3103         stdio: simplify by moving files to printf-posix, sigpipe
3104         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3105         since this symbol is needed only if printf is replaced.
3106         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3107         Require gl_ASM_SYMBOL_PREFIX.
3108         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3109         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3110         (Depends-on): Add 'raise'.
3111         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3112         * modules/stdio (Files): Remove lib/stdio-write.c,
3113         m4/asm-underscore.m4.
3114         (Depends-on): Remove 'raise'.
3115
3116         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3117         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3118         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3119         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3120
3121 2011-02-28  Bruno Haible  <bruno@clisp.org>
3122
3123         localcharset: Assume ANSI C behaviour of free().
3124         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3125         calling free().
3126         Suggested by Simon Josefsson <simon@josefsson.org>.
3127
3128 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3129             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3130             Bruno Haible  <bruno@clisp.org>  (tiny change)
3131
3132         On Cygwin, use /proc file system instead of win32 API.
3133         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3134         Win32 file names.
3135         (DllMain): Simplify by removing Cygwin specific code.
3136         (find_shared_library_fullname): Use Linux specific implementation also
3137         for Cygwin.
3138         (get_shared_library_fullname): Update accordingly.
3139         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3140         Win32 file names.
3141         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3142         Cygwin specific code.
3143
3144 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3145             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3146
3147         Fix OpenMP flag detection for various Fortran compilers.
3148         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3149         OpenMP-conditional compilation construct, to force compile
3150         failure with missing OpenMP flag.
3151         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3152
3153 2011-02-25  Eric Blake  <eblake@redhat.com>
3154
3155         strstr: expand test coverage
3156         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3157         compilation.
3158         * tests/test-memmem.c (main): Duplicate tests.
3159         * tests/test-strcasestr.c (main): Likewise.
3160         * tests/test-c-strcasestr.c (main): Likewise.
3161
3162 2011-02-25  Jim Meyering  <meyering@redhat.com>
3163
3164         maint.mk: detect missing-NL-at-EOF, too
3165         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3166         it also detects when a file lacks a newline at EOF.
3167         (require_exactly_one_NL_at_EOF_): Renamed from
3168         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3169         since people may well have .x-sc_... file names tied to the
3170         existing name.  Suggested by Eric Blake.
3171
3172 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3173
3174         dirname: move m4/dos.m4 functionality into lib/dosname.h
3175
3176         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3177         extracts symbols from it, puts them into config.h; but it's much
3178         easier to use the symbols directly.  filename.h already does this,
3179         but it disagrees with dos.m4 in some respects.  This patch
3180         introduces a different include file dosname.h that packages up
3181         dos.m4, and then later we can work on merging filename.h and
3182         dosname.h.  Applications that need only the easy-to-configure
3183         symbols should consider including dosname.h rather than dirname.h.
3184         * NEWS: Mention incompatible changes.
3185         * m4/dos.m4: Remove.
3186         * lib/dosname.h, modules/dosname: New files.
3187         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3188         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3189         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3190         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3191         Include dosname.h, not dirname.h.
3192         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3193         Include dosname.h, for definitions of symbols like ISSLASH
3194         that used to be in config.h.
3195         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3196         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3197         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3198         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3199         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3200         * modules/rmdir (Files): Likewise.
3201         * modules/stat (Files): Likewise.
3202         * modules/unlink (Files): Likewise.
3203         * modules/dirname-lgpl (Depends-on): Add dosname.
3204         * modules/lstat (Depends-on): Likewise.
3205         * modules/openat (Depends-on): Likewise.
3206         * modules/rmdir (Depends-on): Likewise.
3207         * modules/savewd (Depends-on): Likewise.
3208         * modules/stat (Depends-on): Likewise.
3209         * modules/unlink (Depends-on): Likewise.
3210         * modules/openat (Depends-on): Remove dirname-lgpl.
3211         * modules/savewd (Depends-on): Likewise.
3212         * tests/test-dirname.c: Do not use removed symbols like
3213         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3214         the remaining symbols, e.g., ISSLASH ('\\').
3215
3216 2011-02-25  Eric Blake  <eblake@redhat.com>
3217
3218         strstr: revert patches that introduced bug and pessimization
3219         * lib/str-two-way.h: Add another reference.
3220         (two_way_short_needle, two_way_long_needle): Revert changes from
3221         2011-02-24; they pessimize search speed.
3222         (critical_factorization): Partially revert changes from
3223         2010-06-22; they violate the requirement that the left half of the
3224         needle be smaller than the period of the needle.
3225
3226 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3227
3228         filenamecat: remove unnecessary dependency on dirname-lgpl
3229         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3230         is no direct dependency, just an indirect one via filenamecat-lgpl.
3231
3232         remove: remove unnecessary use of m4/dos.m4
3233         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3234         * modules/remove (FILES): Remove m4/dos.m4.
3235
3236         * lib/openat-proc.c: Don't include dirname.h; not needed.
3237
3238         backupfile: remove unnecessary use of m4/dos.m4
3239         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3240         of its symbols are used by the backupfile code.  backupfile.c does
3241         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3242         for the rare case of programs that want all their backup file
3243         names to live within 8+3 limits, and dos.m4 doesn't address that.
3244         * modules/backupfile (Files): Remove m4/dos.m4.
3245
3246 2011-02-24  Jim Meyering  <meyering@redhat.com>
3247
3248         strstr: fix a bug whereby strstr would mistakenly return NULL
3249         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3250         in period calculation.
3251         (two_way_long_needle): Likewise.
3252         The original problem was reported by Mike Stump in
3253         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3254         Ralf Wildenhues provided the short needle and haystack.
3255         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3256         Add a more involved test to trigger the bug in two_way_long_needle.
3257
3258 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3259
3260         gnulib-tool: remove use of bold display in help screen
3261         * gnulib-tool (func_usage): Do not use bold display anymore in the
3262         help screen.  That was just meant to be a temporary emphasis for a
3263         backward-incompatible change.
3264
3265 2011-02-23  Bruno Haible  <bruno@clisp.org>
3266
3267         Fix misindentation of preprocessor directives.
3268         * lib/argp-namefrob.h: Reindent preprocessor directives.
3269         * lib/getopt_int.h (struct _getopt_data): Likewise.
3270         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3271         * lib/vasnprintf.c (decode_long_double): Likewise.
3272         * tests/test-argmatch.c: Insert blank lines, for clarity.
3273         * tests/test-exclude.c: Likewise.
3274
3275 2011-02-22  Bruno Haible  <bruno@clisp.org>
3276
3277         ioctl: Fix for MacOS X in 64-bit mode.
3278         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3279         value.
3280         Suggested by Eric Blake.
3281         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3282
3283 2011-02-22  Jim Meyering  <meyering@redhat.com>
3284
3285         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3286         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3287         in lib/.
3288
3289 2011-02-22  Eric Blake  <eblake@redhat.com>
3290
3291         maint: avoid any CDPATH issue
3292         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3293
3294         maint: adjust cpp indentation for my modules, as well
3295         * Makefile (sc_cpp_indent_check): Add my name.
3296         * lib/fbufmode.c: Filter through cppi.
3297         * lib/fpurge.c: Likewise.
3298         * lib/freadable.c: Likewise.
3299         * lib/freading.c: Likewise.
3300         * lib/fwritable.c: Likewise.
3301         * lib/fwriting.c: Likewise.
3302         * lib/sigaction.c: Likewise.
3303
3304 2011-02-22  Jim Meyering  <meyering@redhat.com>
3305
3306         maint: adjust cpp indentation to reflect nesting depth
3307         I.e., in a block of code that begins with an unnested "#if",
3308         put one space between the "#" in column 1 and following token.
3309         For example,
3310         -#include <sys/vfs.h>
3311         +# include <sys/vfs.h>
3312         Do this only in .c files that are part of a module I maintain.
3313         * lib/linkat.c: Filter through cppi.
3314         * lib/nanosleep.c: Likewise.
3315         * lib/openat.c: Likewise.
3316         * lib/openat-die.c: Likewise.
3317         * lib/dup3.c: Likewise.
3318         * lib/fchownat.c: Likewise.
3319         * lib/flock.c: Likewise.
3320         * lib/fsync.c: Likewise.
3321         * lib/fts.c: Likewise.
3322         * lib/getpass.c: Likewise.
3323         * lib/gettimeofday.c: Likewise.
3324         * lib/userspec.c: Likewise.
3325         * Makefile (sc_cpp_indent_check): New rule, to check this.
3326
3327 2011-02-22  Bruno Haible  <bruno@clisp.org>
3328
3329         New module 'wctomb'.
3330         * lib/stdlib.in.h (wctomb): New declaration.
3331         * lib/wctomb.c: New file.
3332         * lib/wctomb-impl.h: New file.
3333         * m4/wctomb.m4: New file.
3334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3335         REPLACE_WCTOMB.
3336         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3337         REPLACE_WCTOMB.
3338         * modules/wctomb: New file.
3339         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3340         * doc/posix-functions/wctomb.texi: Mention the new module.
3341         * modules/wctob (Depends-on): Add wctomb.
3342
3343 2011-02-22  Bruno Haible  <bruno@clisp.org>
3344
3345         New module 'mbtowc'.
3346         * lib/stdlib.in.h (mbtowc): New declaration.
3347         * lib/mbtowc.c: New file.
3348         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3349         * m4/mbtowc.m4: New file.
3350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3351         REPLACE_MBTOWC.
3352         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3353         REPLACE_MBTOWC.
3354         * modules/mbtowc: New file.
3355         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3356         * doc/posix-functions/mbtowc.texi: Mention the new module.
3357         * modules/btowc (Depends-on): Add mbtowc.
3358
3359 2011-02-22  Bruno Haible  <bruno@clisp.org>
3360
3361         wcrtomb: Add more tests for native Windows platforms.
3362         * tests/test-wcrtomb-w32-1.sh: New file.
3363         * tests/test-wcrtomb-w32-2.sh: New file.
3364         * tests/test-wcrtomb-w32-3.sh: New file.
3365         * tests/test-wcrtomb-w32-4.sh: New file.
3366         * tests/test-wcrtomb-w32-5.sh: New file.
3367         * tests/test-wcrtomb-w32.c: New file.
3368         * modules/wcrtomb-tests (Files): Add them.
3369         (Makefile.am): Arrange to run these tests.
3370         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3371         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3372
3373 2011-02-20  Bruno Haible  <bruno@clisp.org>
3374
3375         wcrtomb: Enhance test.
3376         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3377
3378 2011-02-20  Bruno Haible  <bruno@clisp.org>
3379
3380         mbrtowc: Tiny optimization.
3381         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3382
3383 2011-02-20  Jim Meyering  <meyering@redhat.com>
3384
3385         test-exclude.c: remove unmatched #endif
3386         * tests/test-exclude.c: Remove stray #endif, left over from
3387         the change of a week ago.
3388
3389 2011-02-19  Jim Meyering  <meyering@redhat.com>
3390
3391         git-version-gen: skip "-dirty" check when appropriate
3392         * build-aux/git-version-gen: Don't run any git commands when the
3393         version string comes from .tarball-version.  Prior to this, we
3394         would run git update-index --refresh even from a just-unpacked
3395         tarball directory, and that could affect a .git/ directory in a
3396         parent of the build directory.  Reported by Mike Frysinger.
3397
3398 2011-02-19  Bruno Haible  <bruno@clisp.org>
3399
3400         unictype/property-byname: Reduce the size of the 'data' segment.
3401         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3402
3403 2011-02-19  Bruno Haible  <bruno@clisp.org>
3404
3405         unictype/scripts: Reduce the size of the 'data' segment.
3406         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3407         '%pic'.
3408         * lib/unictype/scripts_byname.gperf: Regenerated.
3409
3410 2011-02-19  Bruno Haible  <bruno@clisp.org>
3411
3412         stdint: Update documentation.
3413         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3414
3415 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3416
3417         stdint: omit redundant check for wchar.h
3418         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3419         always tests whether wchar.h exists, so remove the now-redundant test.
3420
3421 2011-02-18  Bruno Haible  <bruno@clisp.org>
3422
3423         stdint: Cut dependency to module 'wchar'.
3424         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3425         include the necessary prerequisites.
3426         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3427         * modules/stdint (Depends-on): Remove wchar.
3428         (Makefile.am): Substitute HAVE_WCHAR_H.
3429         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3430
3431 2011-02-18  Eric Blake  <eblake@redhat.com>
3432
3433         longlong: skip, rather than fail, on cross-compilation
3434         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3435         when cross-compiling; regression from 2011-02-16.
3436
3437 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3438
3439         * NEWS: Mention 2011-02-08 change to stdlib.
3440
3441 2011-02-17  Bruno Haible  <bruno@clisp.org>
3442
3443         getloadavg: Add comments about platforms.
3444         * m4/getloadavg.m4: Add comment.
3445         * lib/getloadavg.c: Likewise.
3446
3447 2011-02-17  Bruno Haible  <bruno@clisp.org>
3448
3449         getloadavg: Fix link error on Solaris 2.6.
3450         * modules/getloadavg (Link): New section.
3451         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3452         linking test-getloadavg.
3453         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3454         getloadavg.
3455
3456 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3457
3458         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3459         It was 'int', but this doesn't match the IRIX 6.5 manual.
3460         Suggested by Bruno Haible in
3461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3462
3463 2011-02-17  Bruno Haible  <bruno@clisp.org>
3464
3465         havelib: Fix comments.
3466         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3467         change.
3468
3469 2011-02-17  Bruno Haible  <bruno@clisp.org>
3470
3471         havelib: Update config.rpath.
3472         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3473
3474 2011-02-17  Bruno Haible  <bruno@clisp.org>
3475
3476         getloadavg test: Add some plausibility checks.
3477         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3478         is improbable.
3479
3480 2011-02-16  Eric Blake  <eblake@redhat.com>
3481
3482         maintainer-makefile: make syntax-check a no-op from tarballs
3483         * top/maint.mk (no-vc-detected): New rule.
3484         (local-checks-available): Use it to avoid hanging if someone tries
3485         'make syntax-check' from a tarball.  Also append to any non-syntax
3486         checks already defined in cfg.mk.
3487
3488 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3489
3490         longlong: tune, particularly for common case of c99
3491
3492         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3493         or running anything if c99, or if unsigned long long int does not
3494         work.  In either case, we know the answer without further tests.
3495         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3496         it at most once, and use its results for both long long int and
3497         unsigned long long int.  This is more likely to be efficient in
3498         the common case where the program wants to check for both long
3499         long int and unsigned long long int.
3500         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3501         since the answer is already known.
3502
3503 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3504
3505         getloadavg: set errno
3506         * lib/getloadavg.c: Set errno when returning -1.  If no other
3507         error number looks appropriate, set it to ENOSYS if the getloadavg
3508         looks like it can't possibly ever work, ENOTSUP otherwise.
3509         Suggested by Bruno Haible in
3510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3511
3512         getloadavg: trim unused parts and speed up 'configure'
3513         * NEWS: Document this.
3514         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3515         always compiled if getloadavg is absent.
3516         Move test code to ...
3517         * tests/test-getloadavg.c: New file, containing previous
3518         contents of test from lib/getloadavg.c.  It also contains
3519         suggestions by Bruno Haible in
3520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3521         * modules/getloadavg-tests: New file.
3522         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3523         Do tests in the same order as they're needed for getloadavg.c.
3524         Omit setgid-related tests that generate symbols KMEM_GROUP,
3525         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3526         Do only the tests that are needed to see whether the system has
3527         getloadavg, moving the other tests into ...
3528         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3529         NLIST_NAME_UNION; nobody should be using it.  Do not define
3530         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3531         relevant, as the user of this module shouldn't care how getloadavg
3532         is implemented.
3533
3534         getloadavg: omit unused var
3535         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3536
3537 2011-02-15  Jim Meyering  <meyering@redhat.com>
3538
3539         doc: update users.txt
3540         * users.txt: Update iwhd's URL.
3541
3542 2011-02-13  Bruno Haible  <bruno@clisp.org>
3543
3544         Consistent macro naming for macros that use GCC __attribute__.
3545         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3546         _ATTRIBUTE_NONNULL_.
3547         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3548         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3549         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3550         ATTRIBUTE_DEPRECATED.
3551         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3552         ATTRIBUTE_NORETURN.
3553         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3554         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3555         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3556         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3557         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3558         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3559         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3560         ATTRIBUTE_SENTINEL.
3561         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3562         ATTRIBUTE_RETURN_CHECK.
3563         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3564         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3565         ATTRIBUTE_NORETURN.
3566         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3567         Reported by Paul Eggert.
3568
3569 2011-02-13  Bruno Haible  <bruno@clisp.org>
3570
3571         Don't interfere with a program's definition of __attribute__.
3572         * lib/argp.h (__attribute__): Remove definition.
3573         (_GL_ATTRIBUTE_FORMAT): New macro.
3574         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3575         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3576         (_GL_ATTRIBUTE_FORMAT): New macro.
3577         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3578         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3579         GCC 3 or newer.
3580         * lib/error.h (__attribute__): Remove definition.
3581         (_GL_ATTRIBUTE_FORMAT): New macro.
3582         (error, error_at_line): Use it.
3583         * lib/hash.h (__attribute__): Remove definition.
3584         (ATTRIBUTE_WUR): Update definition. Define always.
3585         * lib/openat.h (__attribute__): Remove definition.
3586         (ATTRIBUTE_NORETURN): Update definition. Define always.
3587         * lib/sigpipe-die.h (__attribute__): Remove definition.
3588         (ATTRIBUTE_NORETURN): Update definition. Define always.
3589         * lib/vasnprintf.h (__attribute__): Remove definition.
3590         (_GL_ATTRIBUTE_FORMAT): New macro.
3591         (asnprintf, vasnprintf): Use it.
3592         * lib/xalloc.h (__attribute__): Remove definition.
3593         (ATTRIBUTE_NORETURN): Update definition. Define always.
3594         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3595         * lib/xmemdup0.h (__attribute__): Remove definition.
3596         (ATTRIBUTE_NORETURN): Update definition. Define always.
3597         * lib/xprintf.h (__attribute__): Remove definition.
3598         (_GL_ATTRIBUTE_FORMAT): New macro.
3599         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3600         * lib/xstrtol.h (__attribute__): Remove definition.
3601         (ATTRIBUTE_NORETURN): Update definition. Define always.
3602         * lib/xvasprintf.h (__attribute__): Remove definition.
3603         (_GL_ATTRIBUTE_FORMAT): New macro.
3604         (xasprintf, xvasprintf): Use it.
3605         * tests/test-argmatch.c (__attribute__): Remove definition.
3606         (ATTRIBUTE_NORETURN): Update definition. Define always.
3607         * tests/test-exclude.c (__attribute__): Remove definition.
3608         (ATTRIBUTE_NORETURN): Update definition. Define always.
3609         Reported by Paul Eggert.
3610
3611 2011-02-13  Bruno Haible  <bruno@clisp.org>
3612
3613         mbrtowc: Add more tests for native Windows platforms.
3614         * tests/test-mbrtowc-w32-1.sh: New file.
3615         * tests/test-mbrtowc-w32-2.sh: New file.
3616         * tests/test-mbrtowc-w32-3.sh: New file.
3617         * tests/test-mbrtowc-w32-4.sh: New file.
3618         * tests/test-mbrtowc-w32-5.sh: New file.
3619         * tests/test-mbrtowc-w32.c: New file.
3620         * modules/mbrtowc-tests (Files): Add them.
3621         (Makefile.am): Arrange to run these tests.
3622         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3623         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3624
3625 2011-02-13  Bruno Haible  <bruno@clisp.org>
3626
3627         mbrtowc: Work around native Windows bug.
3628         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3629         guess when no suitable locale for testing was found.
3630         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3631
3632 2011-02-13  Bruno Haible  <bruno@clisp.org>
3633
3634         mbsinit: Work around mingw bug.
3635         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3636         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3637         Windows.
3638         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3639
3640 2011-02-13  Bruno Haible  <bruno@clisp.org>
3641
3642         mbsinit: Don't crash for a NULL argument.
3643         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3644         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3645
3646 2011-02-13  Bruno Haible  <bruno@clisp.org>
3647
3648         Don't interfere with a program's definition of __attribute__.
3649         * lib/stdio.in.h (__attribute__): Remove definition.
3650         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3651         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3652         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3653         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3654         * lib/string.in.h (__attribute__): Remove definition.
3655         Reported by Paul Eggert.
3656
3657 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3658
3659         stdlib: don't get in the way of non-GCC __attribute__
3660         See thread starting at
3661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3662         Revert previous stdlib change, installing the following instead:
3663         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3664         to get in the way of a non-GCC compiler that supports __attribute__.
3665         (_GL_ATTRIBUTE_RETURN): New macro.
3666         (_Exit): Use it instead of __attribute__.
3667
3668 2011-02-12  Bruno Haible  <bruno@clisp.org>
3669
3670         quotearg test: Avoid test failure on mingw.
3671         * tests/test-quotearg.sh: Convert the locale identifier from native
3672         Windows syntax to Unix syntax.
3673
3674 2011-02-12  Bruno Haible  <bruno@clisp.org>
3675
3676         setlocale: Prefer gnulib's override over libintl's override.
3677         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3678         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3679         GNULIB_defined_setlocale is set.
3680
3681 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3682
3683         stdlib: support non-GCC __attribute__
3684
3685         Fix a serious and tricky problem encountered when attempting to
3686         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3687         5.5, but it crashed due to memory corruption on Solaris 10 with
3688         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3689         bits that are otherwise zero.  This tagging is optional inside
3690         Emacs but is preferred and is used when __attribute__ ((__aligned
3691         (8))) works, as it does with both recent-enough GCC and with Sun C
3692         5.11.  However, Sun C 5.11 is not GCC and does not #define
3693         __GNUC__ and __GNUC_MINOR__.
3694
3695         When I added the getloadavg module to Emacs, it brought in
3696         stdlib.in.h, which contained this fragment:
3697
3698            #ifndef __attribute__
3699            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3700            #  define __attribute__(Spec)   /* empty */
3701            # endif
3702            #endif
3703
3704         When files that include <stdlib.h> were compiled with Sun C 5.11,
3705         the above code disabled __attribute__ ((__aligned (8))), which
3706         caused variables to not be properly aligned, which eventually led
3707         to the pointer corruption mentioned above.  (This was a bit hard
3708         to diagnose, unfortunately.)
3709
3710         Several "#define __attribute__(X) /* empty */" code snippets need
3711         to be eradicated from Gnulib to work with non-GCC compilers that
3712         support __attribute__.  The Autoconf way to do this is to test for
3713         each kind of attribute that we want support for, and selectively
3714         enable that in source code.
3715
3716         Fix this problem just for stdlib.h, by adding a test for the
3717         __noreturn__ attribute, and change stdlib.in.h to use that test
3718         when needed.  This technique can be easily generalized to the
3719         other *.in.h files and attributes, and a similar technique can be
3720         used for *.h and *.c files.  This patch is enough to solve the
3721         problem for Emacs + getloadavg, and I thought I'd publish it for
3722         feedback before undertaking further, similar fixes in other
3723         modules.
3724
3725         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3726         because it's not needed for stdlib.h.  It merely substitutes the
3727         value directly into stdlib.h.  We may well need to #define it, or
3728         similar symbols, for other modules, but it's nice to also have an
3729         option to not #define it for applications like Emacs that do not
3730         need it.
3731
3732         * lib/stdlib.in.h (__attribute__): Do not #define.
3733         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3734         be defined only if the _Exit module is also used.
3735         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3737         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3738         platforms.
3739         * modules/_Exit (Files): Add m4/attribute.m4.
3740         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3741         * m4/attribute.m4: New file.
3742
3743 2011-02-12  Bruno Haible  <bruno@clisp.org>
3744
3745         wcsrtombs: Work around bug on native Windows.
3746         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3747         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3748         instead of len.
3749         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3750
3751 2011-02-12  Bruno Haible  <bruno@clisp.org>
3752
3753         mbsrtowcs: Work around bug on native Windows.
3754         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3755         against mingw bug.
3756         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3757
3758 2011-02-12  Bruno Haible  <bruno@clisp.org>
3759
3760         Avoid setlocale bugs in tests.
3761         * modules/btowc (Dependencies): Add setlocale.
3762         * modules/c-strcase (Dependencies): Likewise.
3763         * modules/mbmemcasecmp (Dependencies): Likewise.
3764         * modules/mbmemcasecoll (Dependencies): Likewise.
3765         * modules/mbrtowc (Dependencies): Likewise.
3766         * modules/mbscasecmp (Dependencies): Likewise.
3767         * modules/mbscasestr (Dependencies): Likewise.
3768         * modules/mbschr (Dependencies): Likewise.
3769         * modules/mbscspn (Dependencies): Likewise.
3770         * modules/mbsinit (Dependencies): Likewise.
3771         * modules/mbsncasecmp (Dependencies): Likewise.
3772         * modules/mbsnrtowcs (Dependencies): Likewise.
3773         * modules/mbspbrk (Dependencies): Likewise.
3774         * modules/mbspcasecmp (Dependencies): Likewise.
3775         * modules/mbsrchr (Dependencies): Likewise.
3776         * modules/mbsrtowcs (Dependencies): Likewise.
3777         * modules/mbsspn (Dependencies): Likewise.
3778         * modules/mbsstr (Dependencies): Likewise.
3779         * modules/nl_langinfo (Dependencies): Likewise.
3780         * modules/quotearg (Dependencies): Likewise.
3781         * modules/unicase/locale-language (Dependencies): Likewise.
3782         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3783         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3784         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3785         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3786         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3787         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3788         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3789         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3790         * modules/vasnprintf-posix (Dependencies): Likewise.
3791         * modules/wcrtomb (Dependencies): Likewise.
3792         * modules/wcsnrtombs (Dependencies): Likewise.
3793         * modules/wcsrtombs (Dependencies): Likewise.
3794
3795 2011-02-12  Bruno Haible  <bruno@clisp.org>
3796
3797         setlocale: Workaround native Windows bug.
3798         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3799         succeeds but sets LC_CTYPE to "C", report a failure.
3800         * tests/test-setlocale2.sh: New file.
3801         * tests/test-setlocale2.c: New file.
3802         * modules/setlocale-tests (Files): Add the new files.
3803         (Makefile.am): Enable test-setlocale2.sh test.
3804         * doc/posix-functions/setlocale.texi: Mention workaround.
3805
3806 2011-02-11  Bruno Haible  <bruno@clisp.org>
3807
3808         Tests for module 'setlocale'.
3809         * modules/setlocale-tests: New file.
3810         * tests/test-setlocale1.sh: New file.
3811         * tests/test-setlocale1.c: New file.
3812
3813         New module 'setlocale'.
3814         * lib/locale.in.h (setlocale): New declaration.
3815         * lib/setlocale.c: New file, based on
3816         gettext/gettext-runtime/intl/setlocale.c.
3817         * m4/setlocale.m4: New file.
3818         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3819         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3820         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3821         REPLACE_SETLOCALE.
3822         * modules/setlocale: New file.
3823         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3824         * doc/posix-functions/setlocale.texi: Mention the new module.
3825
3826 2011-02-11  Bruno Haible  <bruno@clisp.org>
3827
3828         Prepare for locale dependent tests on mingw.
3829         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3830         because it has the wrong locale encoding.
3831         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3832         French_France.1252 instead of "fr".
3833         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3834         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3835         because it has the wrong locale encoding.
3836         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3837         native Windows, try Turkish_Turkey.65001.
3838         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3839         Chinese_China.54936.
3840
3841         Prepare for locale dependent tests on mingw.
3842         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3843         differently.
3844         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3845         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3846         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3847         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3848
3849 2011-02-11  Eric Blake  <eblake@redhat.com>
3850
3851         strptime: avoid compiler warnings
3852         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3853         compiler warnings about dead code.
3854         Reported by Daniel P. Berrange.
3855
3856 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3857
3858         doc: update users.txt
3859         * users.txt: Add rcs.
3860
3861 2011-02-10  John W. Eaton  <jwe@gnu.org>
3862
3863         doc: update users.txt
3864         * users.txt: Add octave.
3865
3866 2011-02-10  Jim Meyering  <meyering@redhat.com>
3867
3868         doc: update users.txt
3869         * users.txt: Add iwhd.
3870
3871 2011-02-09  Bruno Haible  <bruno@clisp.org>
3872
3873         gnulib-tool: Make copyright notice adjustment more robust.
3874         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3875         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3876         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3877         License".
3878         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3879
3880 2011-02-06  Bruno Haible  <bruno@clisp.org>
3881
3882         New module 'towctrans'.
3883         * modules/towctrans: New file.
3884         * lib/wctype.in.h (towctrans): New declaration.
3885         * lib/towctrans.c: New file.
3886         * lib/towctrans-impl.h: New file.
3887         * m4/towctrans.m4: New file.
3888         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3889         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3890         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3891         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3892         * doc/posix-functions/towctrans.texi: Mention the new module.
3893
3894 2011-02-06  Bruno Haible  <bruno@clisp.org>
3895
3896         New module 'wctrans'.
3897         * modules/wctrans: New file.
3898         * lib/wctype.in.h (wctrans): New declaration.
3899         * lib/wctrans.c: New file.
3900         * lib/wctrans-impl.h: New file.
3901         * m4/wctrans.m4: New file.
3902         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3903         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3904         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3905         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3906         * doc/posix-functions/wctrans.texi: Mention the new module.
3907
3908 2011-02-06  Bruno Haible  <bruno@clisp.org>
3909
3910         New module 'iswctype'.
3911         * modules/iswctype: New file.
3912         * lib/wctype.in.h (iswctype): New declaration.
3913         * lib/iswctype.c: New file.
3914         * lib/iswctype-impl.h: New file.
3915         * m4/iswctype.m4: New file.
3916         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3917         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3918         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3919         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3920         * doc/posix-functions/iswctype.texi: Mention the new module and the
3921         HP-UX 11.00 problem.
3922
3923 2011-02-06  Bruno Haible  <bruno@clisp.org>
3924
3925         New module 'wctype'.
3926         * modules/wctype: Change to represent the wctype() substitute.
3927         * lib/wctype.in.h (wctype): New declaration.
3928         * lib/wctype.c: New file.
3929         * lib/wctype-impl.h: New file.
3930         * m4/wctype.m4: New file.
3931         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3932         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3933         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3934         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3935         * doc/posix-functions/wctype.texi: Mention the new module and the
3936         HP-UX 11.00 problem.
3937
3938 2011-02-06  Bruno Haible  <bruno@clisp.org>
3939
3940         wctype-h: Ensure wctype_t and wctrans_t are defined.
3941         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3942         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3943         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3944         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3945         HAVE_WCTRANS_T.
3946         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3947
3948 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3949
3950         flock: fix license typo
3951
3952         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3953         omitted.
3954
3955 2011-02-08  Bruno Haible  <bruno@clisp.org>
3956
3957         Split large sed scripts, for HP-UX sed.
3958         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
3959         to avoid HP-UX limit of 99 commands, in the near future.
3960         * modules/stdlib (Makefile.am): Likewise.
3961         * modules/unistd (Makefile.am): Likewise.
3962         * modules/wchar (Makefile.am): Likewise.
3963         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3964         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
3965         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
3966
3967 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3968             Bruno Haible  <bruno@clisp.org>
3969
3970         stdlib: improve random_r modularization
3971         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
3972         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
3973         you also need the random_r module to get this material right.
3974         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
3975         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
3976         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
3977
3978 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3979
3980         stdlib: don't depend on stdint
3981         * lib/stdlib.in.h: Don't include <stdint.h> merely because
3982         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
3983         be independent of whether stdint.h is needed.
3984         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
3985         here, instead of ...
3986         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
3987         struct random_data should be using the random_r module, not just
3988         the stdlib module (which wouldn't make sense: what package needs
3989         just struct random_data without also needing random_r?).
3990         * modules/stdlib (Depends-on): Remove stdint.
3991
3992         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
3993         See the thread rooted at
3994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
3995         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
3996         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
3997         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
3998         __VMS)); previously it was always included (via fcntl--.h).
3999         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4000         hand; this is good enough for load averages.  Also, do not use
4001         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4002         flags directly if available and don't bother otherwise.  (Packages
4003         that need the extra reliability should use the modules that define
4004         these flags on older platforms that lack them.)
4005         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4006         fcntl-safer.
4007
4008 2011-02-08  Jim Meyering  <meyering@redhat.com>
4009
4010         di-set.h, ino-map.h: add multiple-inclusion guard
4011         Technically, the guard is required only for ino-map.h, due to its
4012         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4013         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4014         * lib/ino-map.h: Likewise.
4015
4016 2011-02-06  Bruno Haible  <bruno@clisp.org>
4017
4018         iswblank: Ensure declaration on glibc systems.
4019         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4020         * modules/iswblank (Dependencies): Add 'extensions'.
4021         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4022
4023 2011-02-06  Bruno Haible  <bruno@clisp.org>
4024
4025         New module 'iswblank'.
4026         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4027         * modules/iswblank: New file.
4028         * modules/wctype-h (Files): Remove lib/iswblank.c.
4029         (Makefile.am): Substitute GNULIB_ISWBLANK.
4030         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4031         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4032         (gl_WCTYPE_H_DEFAULTS): New macro.
4033         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4034         * modules/iswblank-tests: New file.
4035         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4036         * tests/test-wctype-h.c (main): Remove iswblank tests.
4037         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4038         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4039         of 'wctype-h'.
4040         * NEWS: Mention the change.
4041         * modules/mbchar (Depends-on): Add iswblank.
4042
4043 2011-02-08  Bruno Haible  <bruno@clisp.org>
4044
4045         di-set tests: Refactor.
4046         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4047         unnecessary includes.
4048         (ASSERT): Remove macro.
4049         (main): Make C90 compliant by avoiding variable declaration after
4050         statement.
4051         * modules/di-set-tests (Files): Add tests/macros.h.
4052
4053 2011-02-08  Bruno Haible  <bruno@clisp.org>
4054
4055         ino-map tests: Refactor.
4056         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4057         unnecessary includes.
4058         (ASSERT): Remove macro.
4059         (main): Make C90 compliant by avoiding variable declaration after
4060         statement.
4061         * modules/ino-map-tests (Files): Add tests/macros.h.
4062
4063 2011-02-08  Jim Meyering  <meyering@redhat.com>
4064
4065         di-set: add "const" to a cast
4066         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4067         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4068
4069 2011-02-06  Bruno Haible  <bruno@clisp.org>
4070
4071         Rename module 'wctype' to 'wctype-h'.
4072         * modules/wctype-h: Renamed from modules/wctype.
4073         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4074         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4075         (Files, Depends-on, Makefile.am): Update.
4076         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4077         (Files, Makefile.am): Update.
4078         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4079         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4080         * doc/posix-headers/wctype.texi: Update.
4081         * doc/posix-functions/iswalnum.texi: Update.
4082         * doc/posix-functions/iswalpha.texi: Update.
4083         * doc/posix-functions/iswblank.texi: Update.
4084         * doc/posix-functions/iswcntrl.texi: Update.
4085         * doc/posix-functions/iswdigit.texi: Update.
4086         * doc/posix-functions/iswgraph.texi: Update.
4087         * doc/posix-functions/iswlower.texi: Update.
4088         * doc/posix-functions/iswprint.texi: Update.
4089         * doc/posix-functions/iswpunct.texi: Update.
4090         * doc/posix-functions/iswspace.texi: Update.
4091         * doc/posix-functions/iswupper.texi: Update.
4092         * doc/posix-functions/iswxdigit.texi: Update.
4093         * doc/posix-functions/towlower.texi: Update.
4094         * doc/posix-functions/towupper.texi: Update.
4095         * NEWS: Mention the change.
4096         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4097         * modules/mbchar (Dependencies): Likewise.
4098         * modules/mbswidth (Dependencies): Likewise.
4099         * modules/quotearg (Dependencies): Likewise.
4100         * modules/regex (Dependencies): Likewise.
4101         * modules/wcscasecmp (Dependencies): Likewise.
4102         * modules/wcsncasecmp (Dependencies): Likewise.
4103         * modules/wcwidth (Dependencies): Likewise.
4104
4105 2011-02-06  Bruno Haible  <bruno@clisp.org>
4106
4107         New module 'wcswidth'.
4108         * modules/wcswidth: New file.
4109         * lib/wchar.in.h (wcswidth): New declaration.
4110         * lib/wcswidth.c: New file.
4111         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4112         * m4/wcswidth.m4: New file.
4113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4115         REPLACE_WCSWIDTH.
4116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4117         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4118         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4119         * doc/posix-functions/wcswidth.texi: Mention the new module.
4120
4121 2011-02-06  Bruno Haible  <bruno@clisp.org>
4122
4123         New module 'wcstok'.
4124         * modules/wcstok: New file.
4125         * lib/wchar.in.h (wcstok): New declaration.
4126         * lib/wcstok.c: New file.
4127         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4128         * m4/wcstok.m4: New file.
4129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4132         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4133         * doc/posix-functions/wcstok.texi: Mention the new module.
4134
4135 2011-02-06  Bruno Haible  <bruno@clisp.org>
4136
4137         New module 'wcsstr'.
4138         * modules/wcsstr: New file.
4139         * lib/wchar.in.h (wcsstr): New declaration.
4140         * lib/wcsstr.c: New file.
4141         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4142         * m4/wcsstr.m4: New file.
4143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4146         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4147         * doc/posix-functions/wcsstr.texi: Mention the new module.
4148
4149 2011-02-06  Bruno Haible  <bruno@clisp.org>
4150
4151         New module 'wcspbrk'.
4152         * modules/wcspbrk: New file.
4153         * lib/wchar.in.h (wcspbrk): New declaration.
4154         * lib/wcspbrk.c: New file.
4155         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4156         * m4/wcspbrk.m4: New file.
4157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4159         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4160         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4161         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4162
4163 2011-02-06  Bruno Haible  <bruno@clisp.org>
4164
4165         New module 'wcsspn'.
4166         * modules/wcsspn: New file.
4167         * lib/wchar.in.h (wcsspn): New declaration.
4168         * lib/wcsspn.c: New file.
4169         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4170         * m4/wcsspn.m4: New file.
4171         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4172         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4173         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4174         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4175         * doc/posix-functions/wcsspn.texi: Mention the new module.
4176
4177 2011-02-06  Bruno Haible  <bruno@clisp.org>
4178
4179         New module 'wcscspn'.
4180         * modules/wcscspn: New file.
4181         * lib/wchar.in.h (wcscspn): New declaration.
4182         * lib/wcscspn.c: New file.
4183         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4184         * m4/wcscspn.m4: New file.
4185         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4186         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4187         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4188         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4189         * doc/posix-functions/wcscspn.texi: Mention the new module.
4190
4191 2011-02-06  Bruno Haible  <bruno@clisp.org>
4192
4193         New module 'wcsrchr'.
4194         * modules/wcsrchr: New file.
4195         * lib/wchar.in.h (wcsrchr): New declaration.
4196         * lib/wcsrchr.c: New file.
4197         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4198         * m4/wcsrchr.m4: New file.
4199         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4200         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4201         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4202         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4203         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4204
4205 2011-02-06  Bruno Haible  <bruno@clisp.org>
4206
4207         New module 'wcschr'.
4208         * modules/wcschr: New file.
4209         * lib/wchar.in.h (wcschr): New declaration.
4210         * lib/wcschr.c: New file.
4211         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4212         * m4/wcschr.m4: New file.
4213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4215         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4216         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4217         * doc/posix-functions/wcschr.texi: Mention the new module.
4218
4219 2011-02-06  Bruno Haible  <bruno@clisp.org>
4220
4221         New module 'wcsdup'.
4222         * modules/wcsdup: New file.
4223         * lib/wchar.in.h (wcsdup): New declaration.
4224         * lib/wcsdup.c: New file.
4225         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4226         * m4/wcsdup.m4: New file.
4227         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4228         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4230         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4231         * doc/posix-functions/wcsdup.texi: Mention the new module.
4232
4233 2011-02-06  Bruno Haible  <bruno@clisp.org>
4234
4235         New module 'wcsxfrm'.
4236         * modules/wcsxfrm: New file.
4237         * lib/wchar.in.h (wcsxfrm): New declaration.
4238         * lib/wcsxfrm.c: New file.
4239         * lib/wcsxfrm-impl.h: New file.
4240         * m4/wcsxfrm.m4: New file.
4241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4243         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4244         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4245         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4246
4247 2011-02-06  Bruno Haible  <bruno@clisp.org>
4248
4249         New module 'wcscoll'.
4250         * modules/wcscoll: New file.
4251         * lib/wchar.in.h (wcscoll): New declaration.
4252         * lib/wcscoll.c: New file.
4253         * lib/wcscoll-impl.h: New file.
4254         * m4/wcscoll.m4: New file.
4255         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4256         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4258         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4259         * doc/posix-functions/wcscoll.texi: Mention the new module.
4260
4261 2011-02-06  Bruno Haible  <bruno@clisp.org>
4262
4263         New module 'wcsncasecmp'.
4264         * modules/wcsncasecmp: New file.
4265         * lib/wchar.in.h (wcsncasecmp): New declaration.
4266         * lib/wcsncasecmp.c: New file.
4267         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4268         * m4/wcsncasecmp.m4: New file.
4269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4271         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4272         HAVE_WCSNCASECMP.
4273         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4274         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4275
4276 2011-02-06  Bruno Haible  <bruno@clisp.org>
4277
4278         New module 'wcscasecmp'.
4279         * modules/wcscasecmp: New file.
4280         * lib/wchar.in.h (wcscasecmp): New declaration.
4281         * lib/wcscasecmp.c: New file.
4282         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4283         * m4/wcscasecmp.m4: New file.
4284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4287         HAVE_WCSCASECMP.
4288         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4289         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4290
4291 2011-02-05  Bruno Haible  <bruno@clisp.org>
4292
4293         New module 'wcsncmp'.
4294         * modules/wcsncmp: New file.
4295         * lib/wchar.in.h (wcsncmp): New declaration.
4296         * lib/wcsncmp.c: New file.
4297         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4298         * m4/wcsncmp.m4: New file.
4299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4302         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4303         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4304
4305 2011-02-05  Bruno Haible  <bruno@clisp.org>
4306
4307         New module 'wcscmp'.
4308         * modules/wcscmp: New file.
4309         * lib/wchar.in.h (wcscmp): New declaration.
4310         * lib/wcscmp.c: New file.
4311         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4312         * m4/wcscmp.m4: New file.
4313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4316         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4317         * doc/posix-functions/wcscmp.texi: Mention the new module.
4318
4319 2011-02-05  Bruno Haible  <bruno@clisp.org>
4320
4321         New module 'wcsncat'.
4322         * modules/wcsncat: New file.
4323         * lib/wchar.in.h (wcsncat): New declaration.
4324         * lib/wcsncat.c: New file.
4325         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4326         * m4/wcsncat.m4: New file.
4327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4330         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4331         * doc/posix-functions/wcsncat.texi: Mention the new module.
4332
4333 2011-02-05  Bruno Haible  <bruno@clisp.org>
4334
4335         New module 'wcscat'.
4336         * modules/wcscat: New file.
4337         * lib/wchar.in.h (wcscat): New declaration.
4338         * lib/wcscat.c: New file.
4339         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4340         * m4/wcscat.m4: New file.
4341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4344         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4345         * doc/posix-functions/wcscat.texi: Mention the new module.
4346
4347 2011-02-05  Bruno Haible  <bruno@clisp.org>
4348
4349         New module 'wcpncpy'.
4350         * modules/wcpncpy: New file.
4351         * lib/wchar.in.h (wcpncpy): New declaration.
4352         * lib/wcpncpy.c: New file.
4353         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4354         * m4/wcpncpy.m4: New file.
4355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4357         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4358         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4359         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4360
4361 2011-02-05  Bruno Haible  <bruno@clisp.org>
4362
4363         New module 'wcsncpy'.
4364         * modules/wcsncpy: New file.
4365         * lib/wchar.in.h (wcsncpy): New declaration.
4366         * lib/wcsncpy.c: New file.
4367         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4368         * m4/wcsncpy.m4: New file.
4369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4372         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4373         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4374
4375 2011-02-05  Bruno Haible  <bruno@clisp.org>
4376
4377         New module 'wcpcpy'.
4378         * modules/wcpcpy: New file.
4379         * lib/wchar.in.h (wcpcpy): New declaration.
4380         * lib/wcpcpy.c: New file.
4381         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4382         * m4/wcpcpy.m4: New file.
4383         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4384         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4385         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4386         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4387         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4388
4389 2011-02-05  Bruno Haible  <bruno@clisp.org>
4390
4391         New module 'wcscpy'.
4392         * modules/wcscpy: New file.
4393         * lib/wchar.in.h (wcscpy): New declaration.
4394         * lib/wcscpy.c: New file.
4395         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4396         * m4/wcscpy.m4: New file.
4397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4400         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4401         * doc/posix-functions/wcscpy.texi: Mention the new module.
4402
4403 2011-02-05  Bruno Haible  <bruno@clisp.org>
4404
4405         New module 'wcsnlen'.
4406         * modules/wcsnlen: New file.
4407         * lib/wchar.in.h (wcsnlen): New declaration.
4408         * lib/wcsnlen.c: New file.
4409         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4410         * m4/wcsnlen.m4: New file.
4411         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4412         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4413         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4414         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4415         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4416
4417 2011-02-05  Bruno Haible  <bruno@clisp.org>
4418
4419         New module 'wcslen'.
4420         * modules/wcslen: New file.
4421         * lib/wchar.in.h (wcslen): New declaration.
4422         * lib/wcslen.c: New file.
4423         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4424         * m4/wcslen.m4: New file.
4425         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4426         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4427         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4428         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4429         * doc/posix-functions/wcslen.texi: Mention the new module.
4430
4431 2011-02-05  Bruno Haible  <bruno@clisp.org>
4432
4433         New module 'wmemset'.
4434         * modules/wmemset: New file.
4435         * lib/wchar.in.h (wmemset): New declaration.
4436         * lib/wmemset.c: New file.
4437         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4438         * m4/wmemset.m4: New file.
4439         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4440         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4441         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4442         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4443         * doc/posix-functions/wmemset.texi: Mention the new module.
4444
4445 2011-02-05  Bruno Haible  <bruno@clisp.org>
4446
4447         New module 'wmemmove'.
4448         * modules/wmemmove: New file.
4449         * lib/wchar.in.h (wmemmove): New declaration.
4450         * lib/wmemmove.c: New file.
4451         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4452         * m4/wmemmove.m4: New file.
4453         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4454         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4455         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4456         HAVE_WMEMMOVE.
4457         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4458         * doc/posix-functions/wmemmove.texi: Mention the new module.
4459
4460 2011-02-05  Bruno Haible  <bruno@clisp.org>
4461
4462         New module 'wmemcpy'.
4463         * modules/wmemcpy: New file.
4464         * lib/wchar.in.h (wmemcpy): New declaration.
4465         * lib/wmemcpy.c: New file.
4466         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4467         * m4/wmemcpy.m4: New file.
4468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4470         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4471         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4472         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4473
4474 2011-02-05  Bruno Haible  <bruno@clisp.org>
4475
4476         New module 'wmemcmp'.
4477         * modules/wmemcmp: New file.
4478         * lib/wchar.in.h (wmemcmp): New declaration.
4479         * lib/wmemcmp.c: New file.
4480         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4481         * m4/wmemcmp.m4: New file.
4482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4484         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4485         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4486         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4487
4488 2011-02-07  Jim Meyering  <meyering@redhat.com>
4489
4490         di-set, ino-map: new modules, from coreutils
4491         * lib/di-set.c: New file.
4492         * lib/di-set.h: Likewise.
4493         * lib/ino-map.c: Likewise.
4494         * lib/ino-map.h: Likewise.
4495         * modules/di-set: Likewise.
4496         * modules/di-set-tests: Likewise.
4497         * modules/ino-map: Likewise.
4498         * modules/ino-map-tests: Likewise.
4499         * tests/test-di-set.c: Likewise.
4500         * tests/test-ino-map.c: Likewise.
4501
4502 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4503
4504         getloadavg: merge minor changes from Emacs
4505
4506         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4507         (getloadavg): Use memset, not bzero.
4508
4509         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4510         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4511         clash (bug#86).
4512
4513 2010-11-14  Bruno Haible  <bruno@clisp.org>
4514
4515         Allow multiple gnulib generated replacements to coexist.
4516         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4517         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4518         * lib/langinfo.in.h (nl_item): Likewise.
4519         * lib/math.in.h (_NaN, NAN): Likewise.
4520         * lib/netdb.in.h (struct addrinfo): Likewise.
4521         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4522         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4523         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4524         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4525         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4526         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4527         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4528         pthread_mutexattr_init, pthread_mutexattr_settype,
4529         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4530         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4531         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4532         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4533         * lib/sched.in.h (struct sched_param): Likewise.
4534         * lib/se-selinux.in.h (security_class_t, security_context_t,
4535         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4536         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4537         lsetfilecon, fsetfilecon, security_check_context,
4538         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4539         Likewise.
4540         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4541         Likewise.
4542         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4543         _gl_function_taking_int_returning_void_t, union sigval,
4544         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4545         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4546         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4547         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4548         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4549         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4550         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4551         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4552         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4553         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4554         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4555         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4556         socklen_t, rpl_fd_isset): Likewise.
4557         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4558         * lib/sys_time.in.h (struct timeval): Likewise.
4559         * lib/sys_times.in.h (struct tms): Likewise.
4560         * lib/sys_utsname.in.h (struct utsname):
4561         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4562         * lib/unistd.in.h (getpagesize): Likewise.
4563         * lib/wchar.in.h (mbstate_t): Likewise.
4564         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4565         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4566         towlower, towupper): Likewise.
4567         Reported by Sam Steingold <sds@gnu.org>.
4568
4569 2011-02-05  Eric Blake  <eblake@redhat.com>
4570
4571         unsetenv: work around Haiku issues
4572         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4573         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4574
4575 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4576
4577         libposix: avoid calling error() within libposix
4578         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4579         is defined.
4580
4581 2011-02-05  Eric Blake  <eblake@redhat.com>
4582
4583         strerror_r-posix: port to cygwin
4584         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4585         implementation.
4586         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4587         * tests/test-strerror_r.c (main): Fix test.
4588         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4589         issue.
4590
4591 2011-02-05  Bruno Haible  <bruno@clisp.org>
4592
4593         New module 'wmemchr'.
4594         * modules/wmemchr: New file.
4595         * lib/wchar.in.h (wmemchr): New declaration.
4596         * lib/wmemchr.c: New file.
4597         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4598         * m4/wmemchr.m4: New file.
4599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4601         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4602         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4603         * doc/posix-functions/wmemchr.texi: Mention the new module.
4604
4605 2011-02-04  Eric Blake  <eblake@redhat.com>
4606
4607         fdopendir: detect FreeBSD bug
4608         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4609         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4610
4611 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4612
4613         stdbool: do not define HAVE_STDBOOL_H
4614         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4615         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4616         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4617         imported from the latest Autoconf git.  It was motivated by Emacs,
4618         which uses gnulib but does not need HAVE_STDBOOL_H.
4619
4620 2011-02-04  Bruno Haible  <bruno@clisp.org>
4621
4622         wcsnrtombs: Prepare for new module wwcsnrtombs.
4623         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4624         * lib/wcsnrtombs.c: Include it.
4625         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4626
4627         wcsrtombs: Prepare for new module wwcsrtombs.
4628         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4629         * lib/wcsrtombs.c: Include it.
4630         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4631
4632         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4633         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4634         * lib/mbsnrtowcs.c: Include it.
4635         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4636
4637         mbsrtowcs: Prepare for new module mbsrtowwcs.
4638         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4639         * lib/mbsrtowcs.c: Include it.
4640         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4641
4642 2011-02-04  Bruno Haible  <bruno@clisp.org>
4643
4644         vasnprintf: Reduce use of malloc for small format strings.
4645         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4646         (arguments): Add room for the first 7 arguments.
4647         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4648         (char_directives, u8_directives, u16_directives, u32_directives): Add
4649         room for the first 7 directives.
4650         * lib/printf-parse.c: Include <string.h>.
4651         (PRINTF_PARSE): Change memory handling code so that it uses the first
4652         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4653         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4654         Reported by Pádraig Brady <P@draigbrady.com>.
4655
4656 2011-01-31  Eric Blake  <eblake@redhat.com>
4657
4658         dup2: work around Haiku bug
4659         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4660         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4661         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4662         * tests/test-dup2.c (main): Enhance test.
4663
4664 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4665
4666         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4667         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4668         declared by eglibc 2.11.2.
4669         * lib/stdio.in.h: Likewise.
4670
4671 2011-01-31  Eric Blake  <eblake@redhat.com>
4672
4673         ignore-value: add missing test dependency
4674         * tests/test-ignore-value.c: Revert previous change; stdio.h
4675         provides off_t.
4676         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4677
4678 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4679
4680         mktime: clarify long_int width checking
4681         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4682         the top level, to make it clearer that the assumption about
4683         long_int width is being checked.  See
4684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4685
4686 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4687
4688         ignore-value: Fix self-test.
4689         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4690
4691 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4692
4693         TYPE_MAXIMUM: avoid theoretically undefined behavior
4694         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4695         negative number, which the C Standard says has undefined behavior.
4696         In practice this is not a problem, but might as well do it by the book.
4697         Reported by Rich Felker and Eric Blake; see
4698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4699         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4700         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4702         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4703         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4704         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4705
4706         mktime: #undef mktime before #defining it
4707         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4708
4709         mktime: systematically normalize tm_isdst comparisons
4710         * lib/mktime.c (isdst_differ): New function.
4711         (__mktime_internal): Use it systematically for all isdst comparisons.
4712         This completes the fix for libc BZ #6723, and removes the need for
4713         normalizing tm_isdst.  See
4714         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4715         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4716
4717         mktime: fix some integer overflow issues and sidestep the rest
4718
4719         This was prompted by a bug report by Benjamin Lindner for MinGW
4720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4721         His bug is due to signed integer overflow (0 - INT_MIN), and I
4722         I scanned through mktime.c looking for other integer overflow
4723         problems, fixing all the bugs I found.
4724
4725         Although the C Standard says the resulting code is still not safe
4726         in the presence of integer overflow, in practice it should be good
4727         enough for all real-world two's-complement implementations, except
4728         for debugging environments that deliberately trap on integer
4729         overflow (e.g., gcc -ftrapv).
4730
4731         * lib/mktime.c (WRAPV): New macro.
4732         (SHR): Also check that long_int and time_t shift right in the
4733         usual way, before using the fast-but-unportable method.
4734         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4735         used.  The code already assumed two's complement, so there's
4736         no need to test for alternatives.  All uses removed.
4737         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4738         the C standard.  Problem reported by Rich Felker in
4739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4740         (twos_complement_arithmetic): Also check long_int and time_t.
4741         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4742         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4743         (__mktime_internal): Avoid integer overflow with unary subtraction
4744         in two instances where -1 - X is an adequate replacement for -X,
4745         since the calculations are approximate.
4746
4747 2011-01-29  Eric Blake  <eblake@redhat.com>
4748
4749         mktime: avoid infinite loop
4750         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4751         type; behavior is still undefined but portable to all known targets.
4752         Reported by Rich Felker.
4753
4754 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4755
4756         rename, unlink, same-inode: Relicense.
4757         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4758         * modules/unlink (License): Likewise.
4759         * modules/same-inode (License): Likewise.
4760
4761 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4762
4763         mktime: avoid problems on NetBSD 5 / i386
4764         * lib/mktime.c (long_int): New type.  This works around a problem
4765         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4766         but time_t is 64 bits, and where I expect the existing code is
4767         wrong in some cases.
4768         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4769         (ydhms_diff): Bring back the compile-time check for wide-enough
4770         year and yday.
4771
4772         mktime: fix misspelling in comment
4773         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4774         This merges all recent glibc changes of importance.
4775
4776 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4777
4778         move-if-change: cope with concurrent mv of identical file.
4779         * build-aux/move-if-change (CMPPROG): Accept environment
4780         variable as an override for `cmp'.
4781         (usage): Document CMPPROG.
4782         Adjust comparison to drop stdout.  Cope with failure of mv if
4783         the target file exists and is identical to the source, for
4784         parallel builds.
4785         Report from H.J. Lu against binutils in PR binutils/12283.
4786
4787 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4788
4789         * users.txt: Mention sharutils.
4790
4791 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4792
4793         * users.txt: Mention OATH Toolkit.
4794
4795 2011-01-27  Bruno Haible  <bruno@clisp.org>
4796
4797         Prepare for supporting FreeBSD 10.
4798         * build-aux/config.libpath: Remove handling of freebsd1*.
4799
4800 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4801
4802         Prepare for supporting FreeBSD 10.
4803         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4804         match FreeBSD 10.0.
4805
4806 2011-01-27  Bruno Haible  <bruno@clisp.org>
4807
4808         vma-iter, get-rusage-as: Add OpenBSD support.
4809         * modules/vma-iter (configure.ac): Test for mquery.
4810         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4811         * lib/vma-iter.c: Include <sys/mman.h>.
4812         (vma_iterate): Add an implementation based on mquery().
4813         * lib/resource-ext.h (get_rusage_as): Update comments.
4814         * lib/get-rusage-as.c: Likewise.
4815         * lib/get-rusage-data.c: Likewise.
4816
4817 2011-01-26  Karl Berry  <karl@gnu.org>
4818
4819         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4820         variables to make it easier to override the makeinfo program used.
4821
4822 2011-01-26  Eric Blake  <eblake@redhat.com>
4823
4824         fcntl: work around Haiku F_DUPFD bugs
4825         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4826         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4827         cloexec bit on duplication.
4828         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4829
4830 2011-01-26  Bruno Haible  <bruno@clisp.org>
4831
4832         Enable memory leak tests on AIX.
4833         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4834         * tests/test-fprintf-posix3.c (main): Likewise.
4835
4836 2011-01-26  Bruno Haible  <bruno@clisp.org>
4837
4838         Tests for module 'get-rusage-data'.
4839         * modules/get-rusage-data-tests: New file.
4840         * tests/test-get-rusage-data.c: New file.
4841
4842         New module 'get-rusage-data'.
4843         * lib/resource-ext.h (get_rusage_data): New declaration.
4844         * lib/get-rusage-data.c: New file.
4845         * modules/get-rusage-data: New file.
4846
4847 2011-01-25  Bruno Haible  <bruno@clisp.org>
4848
4849         get-rusage-as: Allow for easier testing.
4850         * lib/resource-ext.h (get_rusage_as): Add comment.
4851         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4852         (main): New function for interactive testing.
4853
4854 2011-01-25  Bruno Haible  <bruno@clisp.org>
4855
4856         vma-iter: Treat Haiku like BeOS.
4857         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4858         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4859
4860 2011-01-25  Eric Blake  <eblake@redhat.com>
4861
4862         c-stack: fix regression on cygwin when libsigsegv is present
4863         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4864
4865 2011-01-24  Bruno Haible  <bruno@clisp.org>
4866
4867         vma-iter: Avoid empty intervals.
4868         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4869         on an empty interval.
4870
4871 2011-01-24  Jim Meyering  <meyering@redhat.com>
4872
4873         u64: remove unnecessary #include
4874         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4875
4876 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4877
4878         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4879         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4880
4881 2011-01-23  Bruno Haible  <bruno@clisp.org>
4882
4883         New module 'vma-iter'.
4884         * lib/vma-iter.h: New file.
4885         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4886         * modules/vma-iter: New file.
4887         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4888         for get_rusage_as_via_iterator.
4889         (vma_iterate_callback): New function.
4890         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4891         * modules/get-rusage-as (Depends-on): Add vma-iter.
4892
4893 2011-01-23  Bruno Haible  <bruno@clisp.org>
4894
4895         uninorm: Tweak includes.
4896         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4897         Reported by Jim Meyering.
4898
4899 2011-01-23  Bruno Haible  <bruno@clisp.org>
4900
4901         get-rusage-as: Improve on NetBSD.
4902         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4903         /proc, like on FreeBSD.
4904
4905 2011-01-23  Jim Meyering  <meyering@redhat.com>
4906
4907         xreadlink.h: remove unnecessary #include
4908         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4909
4910         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4911         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4912
4913 2011-01-23  Bruno Haible  <bruno@clisp.org>
4914
4915         get-rusage-as: Fix bug.
4916         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4917         original limit when aborting the first loop.
4918
4919 2011-01-23  Bruno Haible  <bruno@clisp.org>
4920
4921         wctype: Ensure valid C syntax.
4922         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4923         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4924
4925 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4926
4927         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4929         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4930         as they are needed only for configure's test case.
4931         This removes two unnecessary symbols from config.h.
4932
4933         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4934         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4935         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4936         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4937         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4938         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4939         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4940         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4941         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4942         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4943         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4944         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4945         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4946         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4947         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4948         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4949         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4950         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4951
4952 2011-01-21  Eric Blake  <eblake@redhat.com>
4953
4954         maintainer-makefile: work with older git for submodule check
4955         * top/maint.mk (public-submodule-commit): Rewrite to avoid
4956         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
4957         Reported by Matthias Bolte.
4958
4959         bootstrap: minor portability fixes
4960         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
4961         (usage): Omit leading capital and trailing . on help phrases, per
4962         GNU Coding Standards.
4963         (check_versions, top level): Prefix messages with script name.
4964
4965 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
4966
4967         bootstrap: support --no-git option
4968         * build-aux/bootstrap: Add --no-git option, to be used when
4969         --gnulib-srcdir points to the exact desired checkout.
4970
4971 2011-01-21  Eric Blake  <eblake@redhat.com>
4972
4973         strerror_r-posix: work with glibc 2.13
4974         * lib/strerror_r.c (strerror_r): Fix return type.
4975
4976 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4977             Bruno Haible  <bruno@clisp.org>
4978
4979         uN_strstr: New unit tests.
4980         * modules/unistr/u8-strstr-tests: New file.
4981         * modules/unistr/u16-strstr-tests: New file.
4982         * modules/unistr/u32-strstr-tests: New file.
4983         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
4984         * tests/unistr/test-u8-strstr.c: New file.
4985         * tests/unistr/test-u16-strstr.c: New file.
4986         * tests/unistr/test-u32-strstr.c: New file.
4987
4988 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4989             Bruno Haible  <bruno@clisp.org>
4990
4991         Make uN_strstr functions O(n) worst-case.
4992         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
4993         16-bit and 32-bit unit cases, use the unibyte algorithm from
4994         lib/mbsstr.c.
4995         * lib/unistr/u8-strstr.c: Include <string.h>.
4996         (UNIT_IS_UINT8_T): New macro.
4997         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
4998         (U_STRLEN, U_STRNLEN): New macros.
4999         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5000         (U_STRLEN, U_STRNLEN): New macros.
5001         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5002         (configure.ac): Update required libunistring version.
5003         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5004         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5005         malloca.
5006         (configure.ac): Update required libunistring version.
5007         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5008         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5009         malloca.
5010         (configure.ac): Update required libunistring version.
5011
5012 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5013             Bruno Haible  <bruno@clisp.org>
5014
5015         Prepare for faster uN_strstr functions.
5016         * lib/str-kmp.h: Support definable UNITs.
5017         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5018         needle_len argument.
5019         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5020         * lib/mbscasestr.c (mbscasestr): Likewise.
5021
5022 2011-01-21  Pádraig Brady <P@draigBrady.com>
5023
5024         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5025         * tests/test-malloca.c (main): Unset the environment variable
5026         to greatly speed up the test.
5027         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5028         * modules/malloca-tests: Depend on unsetenv.
5029
5030 2011-01-21  Pádraig Brady <P@draigBrady.com>
5031
5032         ignore-value: remove stdint dependency
5033         * lib/ignore-value.h: Remove <stdint.h>
5034         * modules/ignore-value: Remove stdint dependency.
5035
5036 2011-01-21  Jim Meyering  <meyering@redhat.com>
5037
5038         maint.mk: adjust variable name to be consistent with other gl_ vars
5039         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5040         to be lower case.
5041
5042 2011-01-20  Jim Meyering  <meyering@redhat.com>
5043
5044         maint.mk: make "check" depend on public-submodule-commit by default
5045         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5046
5047 2011-01-20  Bruno Haible  <bruno@clisp.org>
5048
5049         mbfile, mbiter: Complete change from 2008-12-21.
5050         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5051         * m4/mbiter.m4 (gl_MBITER): Likewise.
5052
5053 2011-01-20  Jim Meyering  <meyering@redhat.com>
5054
5055         init.sh: insert space between each function name and "()"
5056         * tests/init.sh: Make it a little easier to see that a function's
5057         name is "warn_", and not "warn" when looking at the first part of
5058         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5059
5060 2011-01-20  Jim Meyering  <meyering@redhat.com>
5061
5062         mountlist: clean up code formatting
5063         * lib/mountlist.c (read_file_system_list): Split a long line,
5064         correct bracing style, use NULL in place of "(struct statfs *)0",
5065         don't parenthesize return value, add spaces around "=" and after
5066         ";-in-for-stmt".
5067
5068 2011-01-14  Markus Duft <mduft@gentoo.org>
5069
5070         mountlist: add support for Interix
5071         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5072         Apply statvfs to all entries of /dev/fs.
5073         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5074         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5075
5076 2011-01-20  Jim Meyering  <meyering@redhat.com>
5077
5078         maint.mk: improve the public-submodule-commit rule
5079         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5080         to suppress printing of its commands... unless V=1.
5081         Add git submodule's --quiet option to suppress printing of e.g.,
5082         "Entering gnulib" output.
5083         "cd" into $(srcdir) before running git submodule.
5084
5085 2011-01-20  Bruno Haible  <bruno@clisp.org>
5086
5087         include_next: Fix bug introduced on 2011-01-18.
5088         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5089         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5090         ac_cv_header_... variable if the second argument is not 'check'.
5091         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5092         gl_NEXT_HEADERS_INTERNAL.
5093
5094 2011-01-20  Bruno Haible  <bruno@clisp.org>
5095
5096         Allow the user to avoid the GNULIB_TEST_* macros.
5097         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5098         Suggested by Paul Eggert.
5099
5100 2011-01-14  Jim Meyering  <meyering@redhat.com>
5101
5102         bootstrap: avoid failure when there is no .gitmodules file
5103         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5104         has been assigned to, even when its value is the empty string.
5105         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5106         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5107         Reported by John W. Eaton <jwe@gnu.org>.
5108
5109 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5110
5111         assume <ctype.h>, ..., <time.h> exist
5112         For years gnulib has been assuming the existence of the headers
5113         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5114         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5115         them, since they don't appear to be needed.
5116         * README (Portability guidelines): Document this.
5117         * lib/flock.c: Assume <fcntl.h> exists.
5118         * lib/regex_internal.h: Assume <locale.h> exists.
5119         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5120         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5121         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5122         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5123         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5124         * m4/regex.m4 (gl_REGEX): Likewise.
5125         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5126         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5127         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5128         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5129         * tests/test-argp.c: Likewise.
5130         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5131
5132         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5133         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5134         AA_APPLE_UNIVERSAL_BUILD.  See
5135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5136         * NEWS: Document this.
5137
5138 2011-01-19  Eric Blake  <eblake@redhat.com>
5139
5140         c-stack: assume stack overflow if SA_SIGINFO unsupported
5141         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5142         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5143         sigaction will work.
5144         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5145         behavior match Linux.
5146         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5147
5148         stdbool-tests: accomodate Haiku
5149         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5150
5151         binary-io: fix O_TEXT on Haiku
5152         * modules/binary-io (Depends-on): Add fcntl-h.
5153         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5154         than blindly undefining O_TEXT.
5155         Reported by Scott McCreary.
5156
5157 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5158
5159         include_next: do not check for standard headers like stddef.h
5160
5161         I found this problem when modifying Emacs to use gnulib.
5162         I noticed that it added HAVE_STDDEF_H to config.h, even though
5163         gnulib always assumes <stddef.h> exists as per README and this
5164         symbol is unnecessary.
5165         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5166         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5167         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5168         faster for headers like stddef.h that are known to exist.
5169         (gl_CHECK_NEXT_HEADERS): Use it.
5170         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5171         rather than gl_CHECK_NEXT_HEADERS.
5172         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5173         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5174
5175 2011-01-18  Eric Blake  <eblake@redhat.com>
5176
5177         ansi-c++-opt: skip C++ dependency style if C++ is unused
5178         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5179         tests when we know C++ compilation is not desired.
5180         Reported by Scott McCreary.
5181
5182 2011-01-18  Bruno Haible  <bruno@clisp.org>
5183
5184         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5185         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5186         (main): Perform test also when getrlimit and setrlimit don't exist or
5187         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5188         limiting the address space size using setrlimit, compare the address
5189         space size before and after the the test.
5190         * tests/test-dprintf-posix2.c: Likewise.
5191         * tests/test-fprintf-posix3.sh: Update skip messages.
5192         * tests/test-dprintf-posix2.sh: Likewise.
5193         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5194         * modules/dprintf-posix-tests (Depends-on): Likewise.
5195         Reported by Bruce Korb <bkorb@gnu.org> and
5196         Gary V. Vaughan <gary@gnu.org>.
5197
5198 2011-01-18  Bruno Haible  <bruno@clisp.org>
5199
5200         get-rusage-as: Improvement for Cygwin.
5201         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5202         areas that are merely reserved.
5203
5204 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5205
5206         strftime: remove dependencies on multibyte modules
5207
5208         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5209         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5210         only if __osf__ is defined, and I suspect OSF doesn't need these
5211         other modules.  If my guess is wrong, we'll need to come up with a
5212         variant of strftime that doesn't need the multibyte modules.
5213
5214         I discovered this problem when attempting modify Emacs to use the
5215         strftime module.  With the previous gnulib, this caused Emacs to
5216         need 31 new files, ranging from lib/config.charset to
5217         m4/wint_t.m4.  This was overkill and I expect would be offputting
5218         to the Emacs maintainers.  After this change, only 6 new files are
5219         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5220         stdbool.m4, and tm_gmtoff.m4.
5221
5222         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5223         Suggested by Bruno Haible in
5224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5225         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5226         and do not check for wchar.h.
5227         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5228         (Depends-on): Remove mbrlen, mbsinit, wchar.
5229
5230 2011-01-18  Bruno Haible  <bruno@clisp.org>
5231
5232         Tests for module 'get-rusage-as'.
5233         * modules/get-rusage-as-tests: New file.
5234         * tests/test-get-rusage-as.c: New file.
5235
5236         New module 'get-rusage-as'.
5237         * modules/get-rusage-as: New file.
5238         * lib/resource-ext.h: New file.
5239         * lib/get-rusage-as.c: New file.
5240
5241 2011-01-17  Eric Blake  <eblake@redhat.com>
5242
5243         sigaction: relax license from LGPLv3+ to LGPLv2+
5244         * modules/sigaction (License): Relax to LGPLv2+.
5245
5246 2011-01-14  Bruno Haible  <bruno@clisp.org>
5247
5248         filemode: Make function declarations usable in C++ mode.
5249         * lib/filemode.h: Enclose function declarations in extern "C" block.
5250         Reported by John W. Eaton <jwe@gnu.org>.
5251
5252 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5253
5254         save-cwd: no longer include "xgetcwd.h"
5255         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5256         This avoids a compilation failure in projects that use save-cwd
5257         without also using the xgetcwd module.
5258
5259 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5260
5261         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5262         This is so that a program like Emacs, which needs only dtoastr,
5263         does not have to bother with distributing and compiling ftoastr
5264         and ldtoastr.
5265         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5266         * modules/dtoastr, modules/ldtoastr: New files.
5267         * modules/ftoastr: Now works just for 'float'.
5268         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5269         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5270         dtoastr.c, ldtoastr.c.
5271
5272 2011-01-11  Jim Meyering  <meyering@redhat.com>
5273
5274         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5275         There is no need to work around the lack of the fchdir function,
5276         since gnulib can now provide a replacement when required.
5277         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5278         * modules/save-cwd (Depends-on): Add fchdir.
5279
5280 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5281
5282         openat, save-cwd: avoid xmalloc
5283
5284         This removes a direct (but undocumented) dependency of openat on
5285         xalloc, along with an indirect dependency via save-cwd.  It also
5286         removes a dependency of save-cwd on xgetcwd, and thereby
5287         indirectly on xalloc.  This change causes the openat substitute
5288         to fall back on save_cwd when memory is tight, and for save_cwd to
5289         fail instead of dying when memory is tight, but that's good enough.
5290         Problem and initial idea for fix reported by Bastien Roucaries in
5291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5292
5293         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5294         xalloc.h (for xmalloc).
5295         (openat_proc_name): Use malloc, not xmalloc.
5296         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5297         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5298
5299         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5300         This avoids heap allocation for file names whose lengths are in
5301         the range 512..1023, with the upper bound increasing to at most
5302         4031 depending on the platform's PATH_MAX.  (We do not want
5303         pathmax.h here as it might supply a non-constant PATH_MAX.)
5304         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5305         Perhaps they should be moved to malloca.h?
5306         (OPENAT_BUFFER_SIZE): Use them.
5307
5308 2011-01-10  Bruno Haible  <bruno@clisp.org>
5309
5310         doc: Update users.txt.
5311         * users.txt: Add recutils.
5312
5313 2011-01-09  Karl Berry  <karl@gnu.org>
5314
5315         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5316
5317         * doc/configmake.texi: New file.
5318         * doc/gnulib.texi: Include it.
5319         * modules/configmake: Move documentation from here.
5320
5321 2011-01-09  Bruno Haible  <bruno@clisp.org>
5322
5323         Update to Unicode 6.0.0.
5324         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5325         (get_lbp): Update for Unicode 6.0.0.
5326         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5327         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5328         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5329         U+11001, U+11038..U+11046. Remove U+06DE.
5330         (uc_width): Fix bounds of planes.
5331         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5332         lib/uniwidth/width.c.
5333         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5334         trailing whitespace removed.
5335         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5336         without comments, but with the original copyright notice.
5337         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5338         * lib/unicase/ignorable.h: Likewise.
5339         * lib/unicase/tocasefold.h: Likewise.
5340         * lib/unicase/tolower.h: Likewise.
5341         * lib/unicase/totitle.h: Likewise.
5342         * lib/unicase/toupper.h: Likewise.
5343         * lib/unictype/bidi_of.h: Likewise.
5344         * lib/unictype/blocks.h: Likewise.
5345         * lib/unictype/categ_C.h: Likewise.
5346         * lib/unictype/categ_Cn.h: Likewise.
5347         * lib/unictype/categ_L.h: Likewise.
5348         * lib/unictype/categ_Ll.h: Likewise.
5349         * lib/unictype/categ_Lm.h: Likewise.
5350         * lib/unictype/categ_Lo.h: Likewise.
5351         * lib/unictype/categ_Lu.h: Likewise.
5352         * lib/unictype/categ_M.h: Likewise.
5353         * lib/unictype/categ_Mc.h: Likewise.
5354         * lib/unictype/categ_Me.h: Likewise.
5355         * lib/unictype/categ_Mn.h: Likewise.
5356         * lib/unictype/categ_N.h: Likewise.
5357         * lib/unictype/categ_Nd.h: Likewise.
5358         * lib/unictype/categ_No.h: Likewise.
5359         * lib/unictype/categ_P.h: Likewise.
5360         * lib/unictype/categ_Po.h: Likewise.
5361         * lib/unictype/categ_S.h: Likewise.
5362         * lib/unictype/categ_Sc.h: Likewise.
5363         * lib/unictype/categ_Sk.h: Likewise.
5364         * lib/unictype/categ_Sm.h: Likewise.
5365         * lib/unictype/categ_So.h: Likewise.
5366         * lib/unictype/categ_of.h: Likewise.
5367         * lib/unictype/combining.h: Likewise.
5368         * lib/unictype/ctype_alnum.h: Likewise.
5369         * lib/unictype/ctype_alpha.h: Likewise.
5370         * lib/unictype/ctype_graph.h: Likewise.
5371         * lib/unictype/ctype_lower.h: Likewise.
5372         * lib/unictype/ctype_print.h: Likewise.
5373         * lib/unictype/ctype_punct.h: Likewise.
5374         * lib/unictype/ctype_upper.h: Likewise.
5375         * lib/unictype/decdigit.h: Likewise.
5376         * lib/unictype/digit.h: Likewise.
5377         * lib/unictype/numeric.h: Likewise.
5378         * lib/unictype/pr_alphabetic.h: Likewise.
5379         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5380         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5381         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5382         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5383         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5384         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5385         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5386         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5387         * lib/unictype/pr_case_ignorable.h: Likewise.
5388         * lib/unictype/pr_cased.h: Likewise.
5389         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5390         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5391         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5392         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5393         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5394         * lib/unictype/pr_combining.h: Likewise.
5395         * lib/unictype/pr_composite.h: Likewise.
5396         * lib/unictype/pr_currency_symbol.h: Likewise.
5397         * lib/unictype/pr_decimal_digit.h: Likewise.
5398         * lib/unictype/pr_deprecated.h: Likewise.
5399         * lib/unictype/pr_format_control.h: Likewise.
5400         * lib/unictype/pr_grapheme_base.h: Likewise.
5401         * lib/unictype/pr_grapheme_extend.h: Likewise.
5402         * lib/unictype/pr_grapheme_link.h: Likewise.
5403         * lib/unictype/pr_id_continue.h: Likewise.
5404         * lib/unictype/pr_id_start.h: Likewise.
5405         * lib/unictype/pr_ideographic.h: Likewise.
5406         * lib/unictype/pr_lowercase.h: Likewise.
5407         * lib/unictype/pr_math.h: Likewise.
5408         * lib/unictype/pr_numeric.h: Likewise.
5409         * lib/unictype/pr_other_alphabetic.h: Likewise.
5410         * lib/unictype/pr_other_id_continue.h: Likewise.
5411         * lib/unictype/pr_other_math.h: Likewise.
5412         * lib/unictype/pr_punctuation.h: Likewise.
5413         * lib/unictype/pr_sentence_terminal.h: Likewise.
5414         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5415         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5416         * lib/unictype/pr_unified_ideograph.h: Likewise.
5417         * lib/unictype/pr_uppercase.h: Likewise.
5418         * lib/unictype/pr_xid_continue.h: Likewise.
5419         * lib/unictype/pr_xid_start.h: Likewise.
5420         * lib/unictype/scripts.h: Likewise.
5421         * lib/unictype/scripts_byname.gperf: Likewise.
5422         * lib/unictype/sy_java_ident.h: Likewise.
5423         * lib/unigbrk/gbrkprop.h: Likewise.
5424         * lib/unilbrk/lbrkprop1.h: Likewise.
5425         * lib/unilbrk/lbrkprop2.h: Likewise.
5426         * lib/uninorm/decomposition-table2.h: Likewise.
5427         * lib/uniwbrk/wbrkprop.h: Likewise.
5428         * tests/unicase/test-cased.c: Likewise.
5429         * tests/unicase/test-ignorable.c: Likewise.
5430         * tests/unicase/test-uc_tolower.c: Likewise.
5431         * tests/unicase/test-uc_totitle.c: Likewise.
5432         * tests/unicase/test-uc_toupper.c: Likewise.
5433         * tests/unictype/test-categ_C.c: Likewise.
5434         * tests/unictype/test-categ_Cn.c: Likewise.
5435         * tests/unictype/test-categ_L.c: Likewise.
5436         * tests/unictype/test-categ_Ll.c: Likewise.
5437         * tests/unictype/test-categ_Lm.c: Likewise.
5438         * tests/unictype/test-categ_Lo.c: Likewise.
5439         * tests/unictype/test-categ_Lu.c: Likewise.
5440         * tests/unictype/test-categ_M.c: Likewise.
5441         * tests/unictype/test-categ_Mc.c: Likewise.
5442         * tests/unictype/test-categ_Me.c: Likewise.
5443         * tests/unictype/test-categ_Mn.c: Likewise.
5444         * tests/unictype/test-categ_N.c: Likewise.
5445         * tests/unictype/test-categ_Nd.c: Likewise.
5446         * tests/unictype/test-categ_No.c: Likewise.
5447         * tests/unictype/test-categ_P.c: Likewise.
5448         * tests/unictype/test-categ_Po.c: Likewise.
5449         * tests/unictype/test-categ_S.c: Likewise.
5450         * tests/unictype/test-categ_Sc.c: Likewise.
5451         * tests/unictype/test-categ_Sk.c: Likewise.
5452         * tests/unictype/test-categ_Sm.c: Likewise.
5453         * tests/unictype/test-categ_So.c: Likewise.
5454         * tests/unictype/test-ctype_alnum.c: Likewise.
5455         * tests/unictype/test-ctype_alpha.c: Likewise.
5456         * tests/unictype/test-ctype_graph.c: Likewise.
5457         * tests/unictype/test-ctype_lower.c: Likewise.
5458         * tests/unictype/test-ctype_print.c: Likewise.
5459         * tests/unictype/test-ctype_punct.c: Likewise.
5460         * tests/unictype/test-ctype_upper.c: Likewise.
5461         * tests/unictype/test-decdigit.h: Likewise.
5462         * tests/unictype/test-digit.h: Likewise.
5463         * tests/unictype/test-numeric.h: Likewise.
5464         * tests/unictype/test-pr_alphabetic.c: Likewise.
5465         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5466         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5467         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5468         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5469         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5470         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5471         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5472         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5473         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5474         * tests/unictype/test-pr_cased.c: Likewise.
5475         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5476         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5477         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5478         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5479         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5480         * tests/unictype/test-pr_combining.c: Likewise.
5481         * tests/unictype/test-pr_composite.c: Likewise.
5482         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5483         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5484         * tests/unictype/test-pr_deprecated.c: Likewise.
5485         * tests/unictype/test-pr_format_control.c: Likewise.
5486         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5487         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5488         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5489         * tests/unictype/test-pr_id_continue.c: Likewise.
5490         * tests/unictype/test-pr_id_start.c: Likewise.
5491         * tests/unictype/test-pr_ideographic.c: Likewise.
5492         * tests/unictype/test-pr_lowercase.c: Likewise.
5493         * tests/unictype/test-pr_math.c: Likewise.
5494         * tests/unictype/test-pr_numeric.c: Likewise.
5495         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5496         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5497         * tests/unictype/test-pr_other_math.c: Likewise.
5498         * tests/unictype/test-pr_punctuation.c: Likewise.
5499         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5500         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5501         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5502         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5503         * tests/unictype/test-pr_uppercase.c: Likewise.
5504         * tests/unictype/test-pr_xid_continue.c: Likewise.
5505         * tests/unictype/test-pr_xid_start.c: Likewise.
5506         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5507         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5508         changes.
5509         * lib/unictype/categ_Cc.h: Likewise.
5510         * lib/unictype/categ_Cf.h: Likewise.
5511         * lib/unictype/categ_Co.h: Likewise.
5512         * lib/unictype/categ_Cs.h: Likewise.
5513         * lib/unictype/categ_Lt.h: Likewise.
5514         * lib/unictype/categ_Nl.h: Likewise.
5515         * lib/unictype/categ_Pc.h: Likewise.
5516         * lib/unictype/categ_Pd.h: Likewise.
5517         * lib/unictype/categ_Pe.h: Likewise.
5518         * lib/unictype/categ_Pf.h: Likewise.
5519         * lib/unictype/categ_Pi.h: Likewise.
5520         * lib/unictype/categ_Ps.h: Likewise.
5521         * lib/unictype/categ_Z.h: Likewise.
5522         * lib/unictype/categ_Zl.h: Likewise.
5523         * lib/unictype/categ_Zp.h: Likewise.
5524         * lib/unictype/categ_Zs.h: Likewise.
5525         * lib/unictype/ctype_blank.h: Likewise.
5526         * lib/unictype/ctype_cntrl.h: Likewise.
5527         * lib/unictype/ctype_digit.h: Likewise.
5528         * lib/unictype/ctype_space.h: Likewise.
5529         * lib/unictype/ctype_xdigit.h: Likewise.
5530         * lib/unictype/mirror.h: Likewise.
5531         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5532         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5533         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5534         * lib/unictype/pr_bidi_control.h: Likewise.
5535         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5536         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5537         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5538         * lib/unictype/pr_bidi_pdf.h: Likewise.
5539         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5540         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5541         * lib/unictype/pr_dash.h: Likewise.
5542         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5543         * lib/unictype/pr_diacritic.h: Likewise.
5544         * lib/unictype/pr_extender.h: Likewise.
5545         * lib/unictype/pr_hex_digit.h: Likewise.
5546         * lib/unictype/pr_hyphen.h: Likewise.
5547         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5548         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5549         * lib/unictype/pr_ignorable_control.h: Likewise.
5550         * lib/unictype/pr_iso_control.h: Likewise.
5551         * lib/unictype/pr_join_control.h: Likewise.
5552         * lib/unictype/pr_left_of_pair.h: Likewise.
5553         * lib/unictype/pr_line_separator.h: Likewise.
5554         * lib/unictype/pr_logical_order_exception.h: Likewise.
5555         * lib/unictype/pr_non_break.h: Likewise.
5556         * lib/unictype/pr_not_a_character.h: Likewise.
5557         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5558         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5559         * lib/unictype/pr_other_id_start.h: Likewise.
5560         * lib/unictype/pr_other_lowercase.h: Likewise.
5561         * lib/unictype/pr_other_uppercase.h: Likewise.
5562         * lib/unictype/pr_paired_punctuation.h: Likewise.
5563         * lib/unictype/pr_paragraph_separator.h: Likewise.
5564         * lib/unictype/pr_pattern_syntax.h: Likewise.
5565         * lib/unictype/pr_pattern_white_space.h: Likewise.
5566         * lib/unictype/pr_private_use.h: Likewise.
5567         * lib/unictype/pr_quotation_mark.h: Likewise.
5568         * lib/unictype/pr_radical.h: Likewise.
5569         * lib/unictype/pr_soft_dotted.h: Likewise.
5570         * lib/unictype/pr_space.h: Likewise.
5571         * lib/unictype/pr_titlecase.h: Likewise.
5572         * lib/unictype/pr_variation_selector.h: Likewise.
5573         * lib/unictype/pr_white_space.h: Likewise.
5574         * lib/unictype/pr_zero_width.h: Likewise.
5575         * lib/unictype/sy_c_ident.h: Likewise.
5576         * lib/unictype/sy_c_whitespace.h: Likewise.
5577         * lib/unictype/sy_java_whitespace.h: Likewise.
5578         * lib/uninorm/composition-table.gperf: Likewise.
5579         * lib/uninorm/decomposition-table1.h: Likewise.
5580         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5581         LB8.
5582         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5583         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5584         * modules/unictype/*: Bump version number of expected libunistring
5585         version.
5586
5587 2011-01-09  Bruno Haible  <bruno@clisp.org>
5588
5589         Update to Unicode 5.2.0.
5590         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5591         trailing whitespace removed.
5592
5593 2011-01-09  Bruno Haible  <bruno@clisp.org>
5594
5595         New Unicode character properties, from Unicode 5.2.0.
5596         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5597         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5598         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5599         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5600         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5601         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5602         uc_is_property_cased, uc_is_property_case_ignorable,
5603         uc_is_property_changes_when_lowercased,
5604         uc_is_property_changes_when_uppercased,
5605         uc_is_property_changes_when_titlecased,
5606         uc_is_property_changes_when_casefolded,
5607         uc_is_property_changes_when_casemapped): New declarations.
5608         * lib/unictype/pr_byname.gperf: Add the new properties.
5609         * modules/unictype/property-byname (Depends-on): Depend on the new
5610         properties modules.
5611         * modules/unictype/property-all (Depends-on): Likewise.
5612         * MODULES.html.sh (Unicode string functions): Add
5613         unictype/property-case-ignorable, unictype/property-cased,
5614         unictype/property-changes-when-casefolded,
5615         unictype/property-changes-when-casemapped,
5616         unictype/property-changes-when-lowercased,
5617         unictype/property-changes-when-titlecased,
5618         unictype/property-changes-when-uppercased.
5619
5620         New module 'unictype/property-changes-when-casemapped'.
5621         * modules/unictype/property-changes-when-casemapped: New file.
5622         * lib/unictype/pr_changes_when_casemapped.c: New file.
5623         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5624         generated by gen-uni-tables.
5625         * modules/unictype/property-changes-when-casemapped-tests: New file.
5626         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5627         automatically generated by gen-uni-tables.
5628
5629         New module 'unictype/property-changes-when-casefolded'.
5630         * modules/unictype/property-changes-when-casefolded: New file.
5631         * lib/unictype/pr_changes_when_casefolded.c: New file.
5632         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5633         generated by gen-uni-tables.
5634         * modules/unictype/property-changes-when-casefolded-tests: New file.
5635         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5636         automatically generated by gen-uni-tables.
5637
5638         New module 'unictype/property-changes-when-titlecased'.
5639         * modules/unictype/property-changes-when-titlecased: New file.
5640         * lib/unictype/pr_changes_when_titlecased.c: New file.
5641         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5642         generated by gen-uni-tables.
5643         * modules/unictype/property-changes-when-titlecased-tests: New file.
5644         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5645         automatically generated by gen-uni-tables.
5646
5647         New module 'unictype/property-changes-when-uppercased'.
5648         * modules/unictype/property-changes-when-uppercased: New file.
5649         * lib/unictype/pr_changes_when_uppercased.c: New file.
5650         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5651         generated by gen-uni-tables.
5652         * modules/unictype/property-changes-when-uppercased-tests: New file.
5653         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5654         automatically generated by gen-uni-tables.
5655
5656         New module 'unictype/property-changes-when-lowercased'.
5657         * modules/unictype/property-changes-when-lowercased: New file.
5658         * lib/unictype/pr_changes_when_lowercased.c: New file.
5659         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5660         generated by gen-uni-tables.
5661         * modules/unictype/property-changes-when-lowercased-tests: New file.
5662         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5663         automatically generated by gen-uni-tables.
5664
5665         New module 'unictype/property-case-ignorable'.
5666         * modules/unictype/property-case-ignorable: New file.
5667         * lib/unictype/pr_case_ignorable.c: New file.
5668         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5669         by gen-uni-tables.
5670         * modules/unictype/property-case-ignorable-tests: New file.
5671         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5672         generated by gen-uni-tables.
5673
5674         New module 'unictype/property-cased'.
5675         * modules/unictype/property-cased: New file.
5676         * lib/unictype/pr_cased.c: New file.
5677         * lib/unictype/pr_cased.h: New file, automatically generated by
5678         gen-uni-tables.
5679         * modules/unictype/property-cased-tests: New file.
5680         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5681         gen-uni-tables.
5682
5683 2011-01-09  Bruno Haible  <bruno@clisp.org>
5684
5685         Update to Unicode 5.2.0.
5686         * lib/gen-uni-tables.c (output_predicate, output_category,
5687         output_combclass, output_bidi_category, output_decimal_digit_test,
5688         output_decimal_digit, output_digit_test, output_digit,
5689         output_numeric_test, output_numeric, output_mirror, output_scripts,
5690         output_scripts_byname, output_blocks, output_ident_category): Fix
5691         comment header.
5692         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5693         get_wbp.
5694         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5695         items.
5696         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5697         Changes_When_Lowercased, Changes_When_Uppercased,
5698         Changes_When_Titlecased, Changes_When_Casefolded,
5699         Changes_When_Casemapped.
5700         (is_property_alphabetic, is_property_default_ignorable_code_point):
5701         Update for Unicode 5.2.0.
5702         (is_property_cased, is_property_case_ignorable,
5703         is_property_changes_when_lowercased,
5704         is_property_changes_when_uppercased,
5705         is_property_changes_when_titlecased,
5706         is_property_changes_when_casefolded,
5707         is_property_changes_when_casemapped): New functions.
5708         (output_properties): Output also the properties cased, case_ignorable,
5709         changes_when_lowercased, changes_when_uppercased,
5710         changes_when_titlecased, changes_when_casefolded,
5711         changes_when_casemapped.
5712         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5713         Unicode TR#11 revision 17 -> 19.
5714         (LBP_CP): New enumeration value.
5715         (LBP_*): Adjust values accordingly.
5716         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5717         TR#14 revision 22 -> 24.
5718         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5719         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5720         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5721         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5722         is_WBP_MIDLETTER.
5723         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5724         the code1 and code2 of each composition rule.
5725         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5726         * lib/unicase/ignorable.h: Likewise.
5727         * lib/unicase/tocasefold.h: Likewise.
5728         * lib/unicase/tolower.h: Likewise.
5729         * lib/unicase/totitle.h: Likewise.
5730         * lib/unicase/toupper.h: Likewise.
5731         * lib/unictype/bidi_of.h: Likewise.
5732         * lib/unictype/blocks.h: Likewise.
5733         * lib/unictype/categ_C.h: Likewise.
5734         * lib/unictype/categ_Cf.h: Likewise.
5735         * lib/unictype/categ_Cn.h: Likewise.
5736         * lib/unictype/categ_L.h: Likewise.
5737         * lib/unictype/categ_Ll.h: Likewise.
5738         * lib/unictype/categ_Lm.h: Likewise.
5739         * lib/unictype/categ_Lo.h: Likewise.
5740         * lib/unictype/categ_Lu.h: Likewise.
5741         * lib/unictype/categ_M.h: Likewise.
5742         * lib/unictype/categ_Mc.h: Likewise.
5743         * lib/unictype/categ_Mn.h: Likewise.
5744         * lib/unictype/categ_N.h: Likewise.
5745         * lib/unictype/categ_Nd.h: Likewise.
5746         * lib/unictype/categ_Nl.h: Likewise.
5747         * lib/unictype/categ_No.h: Likewise.
5748         * lib/unictype/categ_P.h: Likewise.
5749         * lib/unictype/categ_Pd.h: Likewise.
5750         * lib/unictype/categ_Po.h: Likewise.
5751         * lib/unictype/categ_S.h: Likewise.
5752         * lib/unictype/categ_Sc.h: Likewise.
5753         * lib/unictype/categ_So.h: Likewise.
5754         * lib/unictype/categ_of.h: Likewise.
5755         * lib/unictype/combining.h: Likewise.
5756         * lib/unictype/ctype_alnum.h: Likewise.
5757         * lib/unictype/ctype_alpha.h: Likewise.
5758         * lib/unictype/ctype_graph.h: Likewise.
5759         * lib/unictype/ctype_lower.h: Likewise.
5760         * lib/unictype/ctype_print.h: Likewise.
5761         * lib/unictype/ctype_punct.h: Likewise.
5762         * lib/unictype/ctype_upper.h: Likewise.
5763         * lib/unictype/decdigit.h: Likewise.
5764         * lib/unictype/digit.h: Likewise.
5765         * lib/unictype/numeric.h: Likewise.
5766         * lib/unictype/pr_alphabetic.h: Likewise.
5767         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5768         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5769         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5770         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5771         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5772         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5773         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5774         * lib/unictype/pr_combining.h: Likewise.
5775         * lib/unictype/pr_composite.h: Likewise.
5776         * lib/unictype/pr_currency_symbol.h: Likewise.
5777         * lib/unictype/pr_dash.h: Likewise.
5778         * lib/unictype/pr_decimal_digit.h: Likewise.
5779         * lib/unictype/pr_deprecated.h: Likewise.
5780         * lib/unictype/pr_diacritic.h: Likewise.
5781         * lib/unictype/pr_extender.h: Likewise.
5782         * lib/unictype/pr_grapheme_base.h: Likewise.
5783         * lib/unictype/pr_grapheme_extend.h: Likewise.
5784         * lib/unictype/pr_grapheme_link.h: Likewise.
5785         * lib/unictype/pr_id_continue.h: Likewise.
5786         * lib/unictype/pr_id_start.h: Likewise.
5787         * lib/unictype/pr_ideographic.h: Likewise.
5788         * lib/unictype/pr_ignorable_control.h: Likewise.
5789         * lib/unictype/pr_logical_order_exception.h: Likewise.
5790         * lib/unictype/pr_lowercase.h: Likewise.
5791         * lib/unictype/pr_numeric.h: Likewise.
5792         * lib/unictype/pr_other_alphabetic.h: Likewise.
5793         * lib/unictype/pr_punctuation.h: Likewise.
5794         * lib/unictype/pr_sentence_terminal.h: Likewise.
5795         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5796         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5797         * lib/unictype/pr_unified_ideograph.h: Likewise.
5798         * lib/unictype/pr_uppercase.h: Likewise.
5799         * lib/unictype/pr_xid_continue.h: Likewise.
5800         * lib/unictype/pr_xid_start.h: Likewise.
5801         * lib/unictype/pr_zero_width.h: Likewise.
5802         * lib/unictype/scripts.h: Likewise.
5803         * lib/unictype/scripts_byname.gperf: Likewise.
5804         * lib/unictype/sy_java_ident.h: Likewise.
5805         * lib/unigbrk/gbrkprop.h: Likewise.
5806         * lib/unilbrk/lbrkprop1.h: Likewise.
5807         * lib/unilbrk/lbrkprop2.h: Likewise.
5808         * lib/unilbrk/lbrktables.h: Likewise.
5809         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5810         LBP_CP. Implement rule LB30.
5811         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5812         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5813         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5814         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5815         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5816         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5817         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5818         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5819         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5820         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5821         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5822         bits instead of 16 bits in the code1 and code2 of each composition
5823         rule.
5824         (uc_composition): Update for Unicode 5.2.0.
5825         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5826         * lib/uninorm/decomposition-table2.h: Likewise.
5827         * lib/uniwbrk/wbrkprop.h: Likewise.
5828         * tests/unicase/test-cased.c: Likewise.
5829         * tests/unicase/test-ignorable.c: Likewise.
5830         * tests/unicase/test-uc_tolower.c: Likewise.
5831         * tests/unicase/test-uc_totitle.c: Likewise.
5832         * tests/unicase/test-uc_toupper.c: Likewise.
5833         * tests/unictype/test-categ_C.c: Likewise.
5834         * tests/unictype/test-categ_Cf.c: Likewise.
5835         * tests/unictype/test-categ_Cn.c: Likewise.
5836         * tests/unictype/test-categ_L.c: Likewise.
5837         * tests/unictype/test-categ_Ll.c: Likewise.
5838         * tests/unictype/test-categ_Lm.c: Likewise.
5839         * tests/unictype/test-categ_Lo.c: Likewise.
5840         * tests/unictype/test-categ_Lu.c: Likewise.
5841         * tests/unictype/test-categ_M.c: Likewise.
5842         * tests/unictype/test-categ_Mc.c: Likewise.
5843         * tests/unictype/test-categ_Mn.c: Likewise.
5844         * tests/unictype/test-categ_N.c: Likewise.
5845         * tests/unictype/test-categ_Nd.c: Likewise.
5846         * tests/unictype/test-categ_Nl.c: Likewise.
5847         * tests/unictype/test-categ_No.c: Likewise.
5848         * tests/unictype/test-categ_P.c: Likewise.
5849         * tests/unictype/test-categ_Pd.c: Likewise.
5850         * tests/unictype/test-categ_Po.c: Likewise.
5851         * tests/unictype/test-categ_S.c: Likewise.
5852         * tests/unictype/test-categ_Sc.c: Likewise.
5853         * tests/unictype/test-categ_So.c: Likewise.
5854         * tests/unictype/test-ctype_alnum.c: Likewise.
5855         * tests/unictype/test-ctype_alpha.c: Likewise.
5856         * tests/unictype/test-ctype_graph.c: Likewise.
5857         * tests/unictype/test-ctype_lower.c: Likewise.
5858         * tests/unictype/test-ctype_print.c: Likewise.
5859         * tests/unictype/test-ctype_punct.c: Likewise.
5860         * tests/unictype/test-ctype_upper.c: Likewise.
5861         * tests/unictype/test-decdigit.h: Likewise.
5862         * tests/unictype/test-digit.h: Likewise.
5863         * tests/unictype/test-numeric.h: Likewise.
5864         * tests/unictype/test-pr_alphabetic.c: Likewise.
5865         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5866         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5867         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5868         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5869         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5870         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5871         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5872         * tests/unictype/test-pr_combining.c: Likewise.
5873         * tests/unictype/test-pr_composite.c: Likewise.
5874         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5875         * tests/unictype/test-pr_dash.c: Likewise.
5876         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5877         * tests/unictype/test-pr_deprecated.c: Likewise.
5878         * tests/unictype/test-pr_diacritic.c: Likewise.
5879         * tests/unictype/test-pr_extender.c: Likewise.
5880         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5881         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5882         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5883         * tests/unictype/test-pr_id_continue.c: Likewise.
5884         * tests/unictype/test-pr_id_start.c: Likewise.
5885         * tests/unictype/test-pr_ideographic.c: Likewise.
5886         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5887         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5888         * tests/unictype/test-pr_lowercase.c: Likewise.
5889         * tests/unictype/test-pr_numeric.c: Likewise.
5890         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5891         * tests/unictype/test-pr_punctuation.c: Likewise.
5892         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5893         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5894         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5895         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5896         * tests/unictype/test-pr_uppercase.c: Likewise.
5897         * tests/unictype/test-pr_xid_continue.c: Likewise.
5898         * tests/unictype/test-pr_xid_start.c: Likewise.
5899         * tests/unictype/test-pr_zero_width.c: Likewise.
5900         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5901         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5902         changed behaviour: line breaking is now disallowed between a letter
5903         or '=' and '('.
5904         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5905         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5906         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5907         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5908         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5909         lib/uniwidth/width.c.
5910         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5911         without comments, but with the original copyright notice.
5912         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5913         changes.
5914         * lib/unictype/categ_Cc.h: Likewise.
5915         * lib/unictype/categ_Co.h: Likewise.
5916         * lib/unictype/categ_Cs.h: Likewise.
5917         * lib/unictype/categ_Lt.h: Likewise.
5918         * lib/unictype/categ_Me.h: Likewise.
5919         * lib/unictype/categ_Pc.h: Likewise.
5920         * lib/unictype/categ_Pe.h: Likewise.
5921         * lib/unictype/categ_Pf.h: Likewise.
5922         * lib/unictype/categ_Pi.h: Likewise.
5923         * lib/unictype/categ_Ps.h: Likewise.
5924         * lib/unictype/categ_Sk.h: Likewise.
5925         * lib/unictype/categ_Sm.h: Likewise.
5926         * lib/unictype/categ_Z.h: Likewise.
5927         * lib/unictype/categ_Zl.h: Likewise.
5928         * lib/unictype/categ_Zp.h: Likewise.
5929         * lib/unictype/categ_Zs.h: Likewise.
5930         * lib/unictype/ctype_blank.h: Likewise.
5931         * lib/unictype/ctype_cntrl.h: Likewise.
5932         * lib/unictype/ctype_digit.h: Likewise.
5933         * lib/unictype/ctype_space.h: Likewise.
5934         * lib/unictype/ctype_xdigit.h: Likewise.
5935         * lib/unictype/mirror.h: Likewise.
5936         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5937         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5938         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5939         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5940         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5941         * lib/unictype/pr_bidi_control.h: Likewise.
5942         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5943         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5944         * lib/unictype/pr_bidi_pdf.h: Likewise.
5945         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5946         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5947         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5948         * lib/unictype/pr_format_control.h: Likewise.
5949         * lib/unictype/pr_hex_digit.h: Likewise.
5950         * lib/unictype/pr_hyphen.h: Likewise.
5951         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5952         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5953         * lib/unictype/pr_iso_control.h: Likewise.
5954         * lib/unictype/pr_join_control.h: Likewise.
5955         * lib/unictype/pr_left_of_pair.h: Likewise.
5956         * lib/unictype/pr_line_separator.h: Likewise.
5957         * lib/unictype/pr_math.h: Likewise.
5958         * lib/unictype/pr_non_break.h: Likewise.
5959         * lib/unictype/pr_not_a_character.h: Likewise.
5960         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5961         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5962         * lib/unictype/pr_other_id_continue.h: Likewise.
5963         * lib/unictype/pr_other_id_start.h: Likewise.
5964         * lib/unictype/pr_other_lowercase.h: Likewise.
5965         * lib/unictype/pr_other_math.h: Likewise.
5966         * lib/unictype/pr_other_uppercase.h: Likewise.
5967         * lib/unictype/pr_paired_punctuation.h: Likewise.
5968         * lib/unictype/pr_paragraph_separator.h: Likewise.
5969         * lib/unictype/pr_pattern_syntax.h: Likewise.
5970         * lib/unictype/pr_pattern_white_space.h: Likewise.
5971         * lib/unictype/pr_private_use.h: Likewise.
5972         * lib/unictype/pr_quotation_mark.h: Likewise.
5973         * lib/unictype/pr_radical.h: Likewise.
5974         * lib/unictype/pr_soft_dotted.h: Likewise.
5975         * lib/unictype/pr_space.h: Likewise.
5976         * lib/unictype/pr_titlecase.h: Likewise.
5977         * lib/unictype/pr_variation_selector.h: Likewise.
5978         * lib/unictype/pr_white_space.h: Likewise.
5979         * lib/unictype/sy_c_ident.h: Likewise.
5980         * lib/unictype/sy_c_whitespace.h: Likewise.
5981         * lib/unictype/sy_java_whitespace.h: Likewise.
5982         * modules/uni*/*: Bump version number of expected libunistring version.
5983         Reported by Simon Josefsson.
5984
5985 2011-01-09  Karl Heuer  <kwzh@gnu.org>
5986
5987         useless-if-before-free: fix typo in --help and make the internal,
5988         automatic version date update process work once again.
5989         --help output contained a NUL character instead of the
5990         backslash-zero that was intended.  Also, the "must lie within
5991         the first 8 lines" line is on line 9, and hence not getting
5992         automatically updated.
5993         * build-aux/useless-if-before-free: Fix the former by adding a
5994         backslash, and the latter by condensing the three lines of what-it-does
5995         to a single line, leaving one line of slack for the future.
5996
5997 2011-01-09  Bruno Haible  <bruno@clisp.org>
5998
5999         uniwidth/width: Fix width of U+1D173..U+1D17A.
6000         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6001         symbolic_width, output_width_property_test): New functions.
6002         (main): Invoke output_nonspacing_property, output_width_property_test.
6003         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6004         U+1D173..U+1D17A.
6005         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6006         1.
6007         * modules/uniwidth/*: Bump version number of expected libunistring
6008         version.
6009         * modules/unilbrk/*: Likewise.
6010
6011 2011-01-08  Bruno Haible  <bruno@clisp.org>
6012
6013         uninorm tests: Preserve copyright of Unicode data file.
6014         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6015         Mention modifications.
6016
6017 2011-01-08  Bruno Haible  <bruno@clisp.org>
6018
6019         gen-uni-tables: Prepare for Unicode 5.2.0.
6020         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6021         (debug_output_lbp, output_lbp): Update.
6022
6023 2011-01-08  Bruno Haible  <bruno@clisp.org>
6024
6025         unilbrk: Clarify gen-uni-tables.c code.
6026         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6027         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6028         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6029
6030 2011-01-07  Bruno Haible  <bruno@clisp.org>
6031
6032         strtod: Restore errno when successfully parsing Infinity or NaN.
6033         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6034         restore the original errno.
6035
6036 2011-01-07  Bruno Haible  <bruno@clisp.org>
6037
6038         remove test: Avoid failure on HP-UX 11.
6039         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6040
6041 2011-01-07  Bruno Haible  <bruno@clisp.org>
6042
6043         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6044         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6045         error code.
6046
6047 2011-01-07  Pádraig Brady <P@draigBrady.com>
6048
6049         ignore-value: fixup comments, and add Eric Blake
6050         as an author since he rewrote the macros.
6051         * lib/ignore-value.h (ignore_value):  State that
6052         we now support aggregates.  Also specify exactly
6053         when the GCC warn_unused_result feature was added.
6054
6055 2011-01-06  Eric Blake  <eblake@redhat.com>
6056
6057         ignore-value: support aggregate types
6058         * lib/ignore-value.h (ignore_value): Provide separate gcc
6059         definition.
6060         * modules/ignore-value-tests: New test module.
6061         * tests/test-ignore-value.c: New test.
6062
6063         maint.mk: improve sc_prohibit_strcmp regex
6064         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6065         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6066         definition of STRNEQ.
6067
6068         signal: work around Haiku issue with SIGBUS
6069         * lib/siglist.h: Add comment.
6070         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6071         strsignal's favoring of SIGSEGV.
6072         * tests/test-signal.c (main): Avoid test failure.
6073         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6074         Reported by Scott McCreary.
6075
6076         maint.mk: add pre-release check to ensure submodule commits are public
6077         * top/maint.mk (public-submodule-commit): New rule.
6078         (submodule-checks): New variable.
6079         (alpha beta stable): Depend on the variable.
6080
6081 2011-01-05  Pádraig Brady <P@draigBrady.com>
6082         and Jim Meyering  <meyering@redhat.com>
6083
6084         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6085         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6086         (ATTRIBUTE_DEPRECATED): Define.
6087         (_ignore_case): New function.
6088         (ignore_value): New macro, to replace the old function.
6089         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6090         * modules/ignore-value (Depends-on): Add stdint.
6091
6092 2011-01-04  Eric Blake  <eblake@redhat.com>
6093
6094         doc: regenerate INSTALL
6095         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6096         @firstparagraphindent support, now that autoconf dropped it.
6097         (INSTALL_PRELUDE): Reinstate old macro.
6098         * doc/install.texi: Resync from autoconf.
6099         * doc/INSTALL: Reflect recent autoconf update.
6100         * doc/INSTALL.ISO: Likewise.
6101         * doc/INSTALL.UTF-8: Likewise.
6102         Reported by Karl Berry.
6103
6104 2011-01-04  Bruce Korb  <address@hidden>
6105
6106         git-version-gen: avoid a sub-shell
6107         * build-aux/git-version-gen: Redirect stderr in `...` via
6108         "exec 2>...", rather than via an added sub-shell.
6109
6110 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6111
6112         git-version-gen: use (...) rather than sh -c '...'
6113         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6114         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6115
6116 2011-01-03  Jim Meyering  <meyering@redhat.com>
6117
6118         git-version-gen: convert leading TABs to spaces
6119         * build-aux/git-version-gen: Expand leading TABs.
6120
6121         git-version-gen: handle failed "git rev-list"
6122         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6123         from git and proceeding as if it had succeeded but printed no SHA1
6124         checksums, suppress the diagnostic and handle the failure.
6125         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6126
6127         git-version-gen: include command name in one more diagnostic
6128         * build-aux/git-version-gen: When the required .tarball-version file
6129         was missing or unreadable, you might see the diagnostic from "cat",
6130         but no trace of the name of the invoking script.  Now, you still see
6131         the diagnostic from cat, but also get one from "git-version-gen: ".
6132         Inspired by a patch from Bruce Korb.
6133
6134         update-copyright: adjust test to match changed code
6135         * tests/test-update-copyright.sh: Change test's expected output
6136         to match new actual output.
6137
6138 2011-01-02  Bruno Haible  <bruno@clisp.org>
6139
6140         getlogin_r: Avoid test failure on HP-UX 11.
6141         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6142         ERANGE when the second argument is zero.
6143         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6144         portability problem.
6145
6146 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6147
6148         * build-aux/update-copyright: doc Simon's changes
6149
6150 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6151
6152         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6153         environment variable.
6154
6155 2011-01-02  Bruno Haible  <bruno@clisp.org>
6156
6157         unigbrk: Avoid gcc warnings.
6158         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6159         unused variable.
6160         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6161         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6162         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6163         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6164         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6165         Change type of first argument to 'const char *'.
6166         (main): Remove unused variable.
6167         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6168         type of first argument to 'const char *'.
6169         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6170         Likewise.
6171         (main): Change type of variable 's'.
6172         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6173         to 'int'.
6174
6175 2011-01-02  Bruno Haible  <bruno@clisp.org>
6176
6177         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6178         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6179         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6180         bug.
6181         * lib/pwrite.c: Undo 2010-12-31 patch.
6182         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6183
6184 2011-01-02  Bruno Haible  <bruno@clisp.org>
6185
6186         pread: Fix test whether it works.
6187         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6188
6189 2011-01-02  Bruno Haible  <bruno@clisp.org>
6190
6191         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6192         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6193         ends in "6". Don't require a specific month name. Try also the locale
6194         names found on HP-UX 11 and Solaris 7.
6195
6196 2011-01-02  Bruno Haible  <bruno@clisp.org>
6197
6198         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6199         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6200         C linkage.
6201         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6202
6203 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6204
6205         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6206         for consistency, since the "cluster" term is not used elsewhere.
6207         * lib/unigbrk.in.h: Update name.
6208         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6209         * lib/unigbrk/u16-grapheme-next.c: Update name.
6210         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6211         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6212         * lib/unigbrk/u32-grapheme-next.c: Update name.
6213         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6214         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6215         * lib/unigbrk/u8-grapheme-next.c: Update name.
6216         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6217         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6218         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6219         Suggested by Bruno Haible.
6220
6221 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6222
6223         Remove module 'u8-grapheme-len' as too redundant with
6224         'u8-grapheme-next'.
6225         * modules/unigbrk/u8-grapheme-len: Delete file.
6226         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6227         * lib/unigbrk.in.h: Remove prototype for deleted function.
6228         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6229         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6230
6231         Remove module 'u16-grapheme-len' as too redundant with
6232         'u16-grapheme-next'.
6233         * modules/unigbrk/u16-grapheme-len: Delete file.
6234         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6235         * lib/unigbrk.in.h: Remove prototype for deleted function.
6236         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6237         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6238
6239         Remove module 'u32-grapheme-len' as too redundant with
6240         'u32-grapheme-next'.
6241         * modules/unigbrk/u32-grapheme-len: Delete file.
6242         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6243         * lib/unigbrk.in.h: Remove prototype for deleted function.
6244         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6245         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6246
6247         Suggested by Bruno Haible.
6248
6249 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6250
6251         * unigbrk.in.h: Fix typo: "ben" => "been".
6252         Reported by Bruno Haible.
6253
6254 2011-01-01  Jim Meyering  <meyering@redhat.com>
6255
6256         maint: update almost all copyright ranges to include 2011
6257         Run the new "make update-copyright" rule.
6258
6259 2011-01-01  Jim Meyering  <meyering@redhat.com>
6260
6261         maint: update-copyright: exempt doc/INSTALL*
6262         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6263         since they are generated.  Suggested by Bruno Haible.
6264
6265 2011-01-01  Jim Meyering  <meyering@redhat.com>
6266
6267         maint: refine the update-copyright rule
6268         * Makefile (update-copyright): Also exclude any file that includes
6269         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6270         code that merely generates the comment.
6271
6272 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6273
6274         New module 'u8-grapheme-len'.
6275         * modules/unigbrk/u8-grapheme-len: New file.
6276         * modules/unigbrk/u8-grapheme-len-tests: New file.
6277         * lib/unigbrk.in.h: Add prototype for new function.
6278         * lib/unigbrk/u8-grapheme-len.c: New file.
6279         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6280
6281         New module 'u16-grapheme-len'.
6282         * modules/unigbrk/u16-grapheme-len: New file.
6283         * modules/unigbrk/u16-grapheme-len-tests: New file.
6284         * lib/unigbrk.in.h: Add prototype for new function.
6285         * lib/unigbrk/u16-grapheme-len.c: New file.
6286         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6287
6288         New module 'u32-grapheme-len'.
6289         * modules/unigbrk/u32-grapheme-len: New file.
6290         * modules/unigbrk/u32-grapheme-len-tests: New file.
6291         * lib/unigbrk.in.h: Add prototype for new function.
6292         * lib/unigbrk/u32-grapheme-len.c: New file.
6293         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6294
6295         New module 'u8-grapheme-next'.
6296         * modules/unigbrk/u8-grapheme-next: New file.
6297         * modules/unigbrk/u8-grapheme-next-tests: New file.
6298         * lib/unigbrk.in.h: Add prototype for new function.
6299         * lib/unigbrk/u8-grapheme-next.c: New file.
6300         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6301
6302         New module 'u16-grapheme-next'.
6303         * modules/unigbrk/u16-grapheme-next: New file.
6304         * modules/unigbrk/u16-grapheme-next-tests: New file.
6305         * lib/unigbrk.in.h: Add prototype for new function.
6306         * lib/unigbrk/u16-grapheme-next.c: New file.
6307         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6308
6309         New module 'u32-grapheme-next'.
6310         * modules/unigbrk/u32-grapheme-next: New file.
6311         * modules/unigbrk/u32-grapheme-next-tests: New file.
6312         * lib/unigbrk.in.h: Add prototype for new function.
6313         * lib/unigbrk/u32-grapheme-next.c: New file.
6314         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6315
6316         New module 'u8-grapheme-prev'.
6317         * modules/unigbrk/u8-grapheme-prev: New file.
6318         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6319         * lib/unigbrk.in.h: Add prototype for new function.
6320         * lib/unigbrk/u8-grapheme-prev.c: New file.
6321         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6322
6323         New module 'u16-grapheme-prev'.
6324         * modules/unigbrk/u16-grapheme-prev: New file.
6325         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6326         * lib/unigbrk.in.h: Add prototype for new function.
6327         * lib/unigbrk/u16-grapheme-prev.c: New file.
6328         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6329
6330         New module 'u32-grapheme-prev'.
6331         * modules/unigbrk/u32-grapheme-prev: New file.
6332         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6333         * lib/unigbrk.in.h: Add prototype for new function.
6334         * lib/unigbrk/u32-grapheme-prev.c: New file.
6335         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6336
6337         New module 'u8-grapheme-breaks'.
6338         * modules/unigbrk/u8-grapheme-breaks: New file.
6339         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6340         * lib/unigbrk.in.h: Add prototype for new function.
6341         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6342         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6343
6344         New module 'u16-grapheme-breaks'.
6345         * modules/unigbrk/u16-grapheme-breaks: New file.
6346         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6347         * lib/unigbrk.in.h: Add prototype for new function.
6348         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6349         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6350
6351         New module 'u32-grapheme-breaks'.
6352         * modules/unigbrk/u32-grapheme-breaks: New file.
6353         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6354         * lib/unigbrk.in.h: Add prototype for new function.
6355         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6356         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6357
6358         New module 'ulc-grapheme-breaks'.
6359         * modules/unigbrk/ulc-grapheme-breaks: New file.
6360         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6361         * m4/locale-ar.m4: New file.
6362         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6363         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6364         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6365
6366 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6367
6368         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6369         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6370         modified how this file was generated before I initially submitted
6371         the module, but failed to regenerate it.  This meant that several
6372         of the level2 entries were wrong.
6373         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6374         Remove the division-by-2 that is folded into the table now that
6375         gbrkprop.h has been regenerated properly.  Now -1 entries are
6376         handled correctly.
6377
6378         New module 'unigbrk/uc-gbrk-prop-tests'.
6379         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6380         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6381         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6382         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6383
6384 2011-01-01  Bruno Haible  <bruno@clisp.org>
6385
6386         Avoid use of hexadecimal escapes.
6387         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6388         instead of hexadecimal escapes.
6389
6390 2011-01-01  Jim Meyering  <meyering@redhat.com>
6391
6392         maint: new rule to update copyright year ranges
6393         * Makefile (update-copyright): New rule.
6394
6395         maint: indent with TABs in Makefile
6396         * Makefile: Expand leading sequences of spaces to TABs
6397
6398         version-etc: update the copyright year it reports
6399         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6400
6401 2010-12-31  Bruno Haible  <bruno@clisp.org>
6402
6403         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6404         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6405         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6406         zero.
6407
6408 2010-12-31  Bruno Haible  <bruno@clisp.org>
6409
6410         pwrite: Work around HP-UX 11.11 bug.
6411         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6412         works and set REPLACE_PWRITE if not.
6413         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6414         function.
6415         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6416
6417 2010-12-31  Bruno Haible  <bruno@clisp.org>
6418
6419         pread: Work around HP-UX 11 bugs.
6420         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6421         and set REPLACE_PREAD if not.
6422         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6423
6424 2010-12-31  Eric Blake  <eblake@redhat.com>
6425
6426         nl_langinfo: fix YESEXPR on Irix 6.5
6427         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6428         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6429         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6430         it.
6431
6432 2010-12-31  Bruno Haible  <bruno@clisp.org>
6433
6434         iconv: Document HP-UX 11 bug.
6435         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6436
6437 2010-12-31  Bruno Haible  <bruno@clisp.org>
6438
6439         ldexpl: Fix link error on HP-UX 11.
6440         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6441         LDEXPL_LIBM, using $ISNANL_LIBM.
6442
6443 2010-12-31  Eric Blake  <eblake@redhat.com>
6444
6445         ftello: avoid compilation failure with SunStudio c89
6446         * lib/ftello.c (ftello): Use lseek, not llseek.
6447
6448         tests: avoid failing coreutils tests on cygwin
6449         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6450         (create_exe_shims_): Return 0 when skipping.
6451
6452 2010-12-31  Bruno Haible  <bruno@clisp.org>
6453
6454         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6455         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6456
6457 2010-12-31  Bruno Haible  <bruno@clisp.org>
6458
6459         waitpid: Fix link error in C++ mode.
6460         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6461
6462 2010-12-31  Bruno Haible  <bruno@clisp.org>
6463
6464         isnan: Use GCC built-ins when possible.
6465         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6466         __builtin_isnan.
6467         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6468         (isnan): Define using GCC built-ins for GCC >= 4.0.
6469
6470 2010-12-31  Bruno Haible  <bruno@clisp.org>
6471
6472         isnand: Fix mistake.
6473         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6474         __builtin_isnand.
6475
6476 2010-12-31  Bruno Haible  <bruno@clisp.org>
6477
6478         open: Avoid C++ error on HP-UX 11.
6479         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6480
6481 2010-12-31  Bruno Haible  <bruno@clisp.org>
6482
6483         time_r: Add missing declarations on HP-UX 11.
6484         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6485         instead of HAVE_LOCALTIME_R.
6486         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6487         HAVE_LOCALTIME_R always.
6488         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6489         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6490         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6491         HAVE_LOCALTIME_R.
6492         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6493         * doc/posix-functions/localtime_r.texi: Likewise.
6494
6495 2010-12-29  Eric Blake  <eblake@redhat.com>
6496
6497         mountlist: tweak previous commit
6498         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6499         Reported by Paul Eggert.
6500
6501         mountlist: fix local drive detection on cygwin
6502         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6503         that works for cygwin.
6504
6505 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6506
6507         ftoastr, snprintf: ftoastr + snprintf module
6508         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6509         since the snprintf module now should be good enough here.
6510         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6511         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6512         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6513         GNULIB_SNPRINTF only for the test directory, and the latter
6514         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6515         seems to suffice by itself.
6516
6517 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6518
6519         alloca: one step towards thread-safety
6520         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6521         need for a static variable.  All callers changed.  This does not
6522         make the alloca replacement thread-safe, but it's one step.
6523
6524         tests: minor indenting change
6525         * tests/init.sh: Sync from coreutils housekeeping patch
6526         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6527         to keep lines within 80 columns.
6528
6529 2010-12-28  Jim Meyering  <meyering@redhat.com>
6530
6531         regex: don't infloop on persistent failing calloc
6532         * lib/regexec.c (build_trtable): Return failure indication upon
6533         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6534         In glibc, this was fixed for version 2.13:
6535         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6536
6537 2010-12-28  Bruno Haible  <bruno@clisp.org>
6538             Paul Eggert <eggert@cs.ucla.edu>
6539
6540         linkat: Make implementation robust against system behaviour variations.
6541         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6542         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6543         way, and to -2 if it needs a generic runtime test.
6544         * lib/linkat.c (solaris_optimized_link_immediate,
6545         solaris_optimized_link_follow): New functions.
6546         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6547         (check_same_link): Use it.
6548
6549 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6550
6551         New module 'unigbrk/base'.
6552         * modules/unigbrk/base: New file.
6553         * lib/unigbrk.in.h: New file.
6554
6555         New module 'unigbrk/uc-gbrk-prop'.
6556         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6557         * modules/unigbrk/uc-gbrk-prop: New file.
6558         * lib/unigbrk/gbrkprop.h: New file.
6559         * lib/unigbrk/uc-gbrk-prop.c: New file.
6560
6561         New module 'unigbrk/uc-is-grapheme-break'.
6562         * modules/unigbrk/uc-is-grapheme-break: New file.
6563         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6564         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6565         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6566         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6567         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6568
6569         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6570
6571 2010-12-27  Bruno Haible  <bruno@clisp.org>
6572
6573         linkat test: Avoid failure on Solaris 11 2010-11.
6574         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6575
6576 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6577
6578         utimens: work around glibc rounding bug on more platforms
6579         * lib/utimens.c (fdutimens): Work around rounding bug even if
6580         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6581         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6582
6583 2010-12-27  Bruno Haible  <bruno@clisp.org>
6584
6585         select tests: Improve comments.
6586         * tests/test-select.c (do_select): Add comments.
6587
6588 2010-12-27  Bruno Haible  <bruno@clisp.org>
6589
6590         select tests: Safer way of handling timeout.
6591         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6592         at every invocation.
6593
6594 2010-12-27  Bruno Haible  <bruno@clisp.org>
6595
6596         select tests: Use 'bool' where appropriate.
6597         * tests/test-select.c (connect_to_socket): Change argument type to
6598         'bool'.
6599
6600 2010-12-27  Bruno Haible  <bruno@clisp.org>
6601
6602         select tests: Use existing modules.
6603         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6604         (configure.ac): Don't test for unistd.h.
6605         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6606         declared in <unistd.h>.
6607
6608 2010-12-27  Bruno Haible  <bruno@clisp.org>
6609
6610         mbrtowc: Work around a Solaris 7 bug.
6611         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6612         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6613         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6614         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6615         MBRTOWC_NULL_ARG1_BUG.
6616         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6617         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6618         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6619         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6620
6621 2010-12-27  Jim Meyering  <meyering@redhat.com>
6622
6623         read-file.c: tweak syntax
6624         * lib/read-file.c (fread_file): Remove space after "*" in function
6625         definitions.
6626
6627 2010-12-27  Bruno Haible  <bruno@clisp.org>
6628
6629         times test: Avoid gcc warnings on OSF/1.
6630         * tests/test-times.c (main): Cast printf arguments from clock_t to
6631         'long int'.
6632
6633 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6634
6635         utimens: work around glibc rounding bug on older Linux kernels
6636         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6637         on Linux with a glibc whose utimes might not work, then work
6638         around a longstanding glibc bug involving rounding rather than
6639         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6640         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6641
6642 2010-12-26  Bruno Haible  <bruno@clisp.org>
6643
6644         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6645         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6646         _GL_CXXALIAS_SYS.
6647         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6648
6649 2010-12-26  Bruno Haible  <bruno@clisp.org>
6650
6651         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6652         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6653         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6654         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6655         looking for the declaration.
6656         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6657         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6658         problem.
6659         * doc/posix-functions/inet_pton.texi: Likewise.
6660
6661 2010-12-26  Bruno Haible  <bruno@clisp.org>
6662
6663         arpa_inet: Use the common idioms with C++ support.
6664         * lib/arpa_inet.in.h: Include c++defs.h.
6665         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6666         support.
6667         * modules/arpa_inet (Depends-on): Add c++defs.
6668         (Makefile.am): Substitute the contents of c++defs.h.
6669         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6670         * modules/arpa_inet-c++-tests: New file.
6671         * tests/test-arpa_inet-c++.cc: New file.
6672
6673 2010-12-25  Bruno Haible  <bruno@clisp.org>
6674
6675         Fix more C++ link errors on Solaris 8.
6676         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6677         $(LIB_EACCESS).
6678         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6679         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6680         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6681         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6682         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6683
6684 2010-12-25  Bruno Haible  <bruno@clisp.org>
6685
6686         printf-posix: Fix link error when a non-GCC compiler is used.
6687         * lib/stdio.in.h (printf): When not using GCC, override printf
6688         correctly.
6689         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6690
6691 2010-12-25  Bruno Haible  <bruno@clisp.org>
6692
6693         strerror_r-posix: Update doc.
6694         * doc/posix-functions/strerror_r.texi: Update doc about the return
6695         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6696
6697 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6698
6699         utimens: simplify the logic of the previous change
6700         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6701         This should not affect whether the test succeeds or fails.
6702
6703         utimens: configure better on hosts with NFS clock skew
6704         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6705         uses the clock of the local host.  It might use the clock of the
6706         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6707         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6708
6709 2010-12-25  Bruno Haible  <bruno@clisp.org>
6710
6711         ptsname test: Avoid failure on Solaris.
6712         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6713         open a pseudo-terminal; don't use BSD-style ptys.
6714         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6715
6716 2010-12-25  Bruno Haible  <bruno@clisp.org>
6717
6718         ptsname: Avoid ERANGE failure on some systems.
6719         * lib/ptsname.c (buffer): Increase size.
6720
6721 2010-12-25  Bruno Haible  <bruno@clisp.org>
6722
6723         rename, renameat: Avoid test failures at NFS mounted locations.
6724         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6725         so that subsequent mkdir calls succeed.
6726
6727 2010-12-25  Bruno Haible  <bruno@clisp.org>
6728
6729         iswblank: Fix C++ link error on Solaris 8.
6730         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6731         _GL_FUNCDECL_SYS.
6732
6733 2010-12-25  Bruno Haible  <bruno@clisp.org>
6734
6735         unistd: Fix C++ link error on Solaris 8.
6736         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6737
6738 2010-12-25  Bruno Haible  <bruno@clisp.org>
6739
6740         readlink doc: Mention an old glibc bug.
6741         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6742
6743 2010-12-25  Bruno Haible  <bruno@clisp.org>
6744
6745         fcntl-h: Fix for use of C++ on glibc systems.
6746         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6747         also on glibc systems in C++ mode.
6748         Reported by Gary V. Vaughan <gary@gnu.org>.
6749
6750 2010-12-25  Bruno Haible  <bruno@clisp.org>
6751
6752         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6753         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6754
6755 2010-12-25  Bruno Haible  <bruno@clisp.org>
6756
6757         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6758         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6759         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6760         test whether truncl works according to ISO C 99 with IEC 60559.
6761         * m4/truncl-ieee.m4: New file.
6762         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6763         m4/signbit.m4.
6764         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6765
6766 2010-12-25  Bruno Haible  <bruno@clisp.org>
6767
6768         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6769         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6770         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6771         test whether ceill works according to ISO C 99 with IEC 60559.
6772         * m4/ceill-ieee.m4: New file.
6773         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6774         m4/signbit.m4.
6775         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6776
6777 2010-12-25  Bruno Haible  <bruno@clisp.org>
6778
6779         Ensure all prerequisites of <wchar.h> are included.
6780         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6781         before <wchar.h>.
6782         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6783         gl_MBRLEN_NUL_RETVAL): Likewise.
6784         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6785         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6786         AC_FUNC_MBRTOWC): Likewise.
6787         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6788         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6789         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6790         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6791         Likewise.
6792         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6793         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6794         (gl_WCHAR_H): Improve comments.
6795         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6796
6797 2010-12-25  Bruno Haible  <bruno@clisp.org>
6798
6799         strtok_r: Fix C syntax error in autoconf macro.
6800         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6801         characters in test program.
6802
6803 2010-12-24  Bruno Haible  <bruno@clisp.org>
6804
6805         ceil, trunc, round: Fix gcc warnings.
6806         * lib/ceil.c (MIN): Undefine before redefining.
6807         * lib/trunc.c (MIN): Likewise.
6808         * lib/round.c (MIN): Likewise.
6809         Include <math.h> first.
6810
6811 2010-12-24  Bruno Haible  <bruno@clisp.org>
6812
6813         select tests: Avoid failures on OSF/1 5.1.
6814         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6815         failure of closing the last socket; it may fail with ECONNRESET.
6816
6817 2010-12-24  Eric Blake  <eblake@redhat.com>
6818
6819         stdint: avoid HP-UX 10.20 preprocessor bug
6820         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6821         than #if.
6822         * tests/test-floor2.c (main): Likewise.
6823         Reported by Peter O'Gorman.
6824
6825         pipe: make obsoletion transition easier
6826         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6827         * modules/pipe (Files): Include revived file.
6828         (Include): Drop reference, to mirror getdate's behavior.
6829
6830 2010-12-24  Bruno Haible  <bruno@clisp.org>
6831
6832         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6833         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6834         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6835         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6836
6837 2010-12-24  Bruno Haible  <bruno@clisp.org>
6838
6839         gethostname: Ensure declaration on NonStop Kernel.
6840         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6841         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6842
6843 2010-12-24  Bruno Haible  <bruno@clisp.org>
6844
6845         sys_select: Ensure all necessary types on NonStop Kernel.
6846         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6847         include <sys/time.h>.
6848         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6849         NonStop Kernel.
6850         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6851
6852 2010-12-24  Bruno Haible  <bruno@clisp.org>
6853
6854         sys_select: Remove unneeded include.
6855         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6856         have <sys/select.h>.
6857
6858 2010-12-24  Bruno Haible  <bruno@clisp.org>
6859
6860         gethostname: Provide a fallback for HOST_NAME_MAX.
6861         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6862         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6863         instead.
6864         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6865
6866 2010-12-24  Bruno Haible  <bruno@clisp.org>
6867
6868         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6869         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6870         (SA_RESTART): Likewise.
6871         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6872
6873 2010-12-24  Bruno Haible  <bruno@clisp.org>
6874
6875         signal: Define NSIG.
6876         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6877         * tests/test-signal.c (nsig): New variable.
6878         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6879
6880 2010-12-24  Bruno Haible  <bruno@clisp.org>
6881
6882         rename, renameat: Avoid test failures on OSF/1 5.1.
6883         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6884         alternative error codes.
6885         * tests/test-renameat.c (main): Likewise.
6886
6887 2010-12-24  Bruno Haible  <bruno@clisp.org>
6888
6889         *printf: Detect large precisions bug on Solaris 10/SPARC.
6890         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6891         by Paul Eggert.
6892         * tests/test-snprintf-posix.h (test_function): Add this test code here
6893         too.
6894         * tests/test-sprintf-posix.h (test_function): Likewise.
6895         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6896         * tests/test-vasprintf-posix.c (test_function): Likewise.
6897         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6898         around by gnulib.
6899         * doc/posix-functions/printf.texi: Likewise.
6900         * doc/posix-functions/snprintf.texi: Likewise.
6901         * doc/posix-functions/sprintf.texi: Likewise.
6902         * doc/posix-functions/vfprintf.texi: Likewise.
6903         * doc/posix-functions/vprintf.texi: Likewise.
6904         * doc/posix-functions/vsnprintf.texi: Likewise.
6905         * doc/posix-functions/vsprintf.texi: Likewise.
6906         * doc/posix-functions/dprintf.texi: Undo last commit.
6907         * doc/posix-functions/vdprintf.texi: Likewise.
6908
6909 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6910
6911         tests: port test-fdutimensat.c to Solaris 8
6912         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6913         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6914         On Solaris 8, it fails with errno == ENOSYS, because there is no
6915         futimens (so it can't use the fd), and there is no lutimens (so it
6916         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6917
6918         vsnprintf: make more consistent with snprintf; doc fixes
6919
6920         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6921         the byte count return problem was promoted from the snprintf-posix
6922         to the snprintf module.
6923         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6924         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6925         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6926         * tests/test-snprintf.c (main): Check the byte count returned.
6927         * tests/test-vsnprintf.c (main): Likewise.
6928
6929 2010-12-23  Eric Blake  <eblake@redhat.com>
6930
6931         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6932         * modules/sigpipe (License): Relax license.
6933
6934 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6935
6936         doc: document Solaris printf bug with large float precisions
6937         * doc/posix-functions/dprintf.texi (dprintf):
6938         * doc/posix-functions/fprintf.texi (fprintf):
6939         * doc/posix-functions/printf.texi (printf):
6940         * doc/posix-functions/snprintf.texi (snprintf):
6941         * doc/posix-functions/sprintf.texi (sprintf):
6942         * doc/posix-functions/vdprintf.texi (vdprintf):
6943         * doc/posix-functions/vfprintf.texi (vfprintf):
6944         * doc/posix-functions/vprintf.texi (vprintf):
6945         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6946         * doc/posix-functions/vsprintf.texi (vsprintf):
6947         Mention that these functions mishandle large floating point
6948         precisions on Solaris 10.  The same bug is also present in Solaris
6949         8, and I assume earlier.  This causes "cd gnulib-tests; make
6950         check" to fail on Solaris 8 (and I assume, later) when building
6951         the latest coreutils, in test-vasprintf-posix's call to
6952         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6953         the wide flavors (e.g., wprintf) so this patch just updates the
6954         documentation for the narrow ones.
6955
6956         test-posixtm.c: add two tests
6957         * tests/test-posixtm.c: Add two tests, to highlight the
6958         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
6959         around this bug; this is merely to document it.
6960
6961 2010-12-22  Bruno Haible  <bruno@clisp.org>
6962
6963         getlogin_r: Work around portability problem on OSF/1.
6964         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
6965         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
6966         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
6967         test for a truncated result.
6968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
6969         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
6970         * modules/getlogin_r (Depends-on): Add memchr.
6971         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
6972
6973 2010-12-22  Bruno Haible  <bruno@clisp.org>
6974
6975         ptsname: Avoid test failure on OSF/1 5.1.
6976         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
6977         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
6978         (same_slave): New function.
6979         (main): Use it to compare ptsname's result with the expected file name.
6980
6981 2010-12-22  Bruno Haible  <bruno@clisp.org>
6982
6983         Port extended stdio modules to HP NonStop Kernel.
6984         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
6985         macros.
6986         * lib/fbufmode.c: Update comments.
6987         * lib/fflush.c: Likewise.
6988         * lib/fpurge.c: Likewise.
6989         * lib/freadable.c: Likewise.
6990         * lib/freadahead.c: Likewise.
6991         * lib/freading.c: Likewise.
6992         * lib/freadptr.c: Likewise.
6993         * lib/freadseek.c: Likewise.
6994         * lib/fseeko.c: Likewise.
6995         * lib/fseterr.c: Likewise.
6996         * lib/fwritable.c: Likewise.
6997         * lib/fwriting.c: Likewise.
6998         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6999
7000 2010-12-22  Bruno Haible  <bruno@clisp.org>
7001
7002         ttyname_r: Work around bug on OSF/1 5.1.
7003         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7004         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7005         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7006         present.
7007         * lib/ttyname_r.c (ttyname_r): Update comments.
7008
7009 2010-12-22  Bruno Haible  <bruno@clisp.org>
7010
7011         round: Implement result sign according to IEEE 754.
7012         * lib/round.c (MIN, MINUS_ZERO): New macros.
7013         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7014         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7015         * tests/test-round-ieee.c (main): Likewise.
7016         * tests/test-roundl-ieee.c (main): Likewise.
7017
7018         trunc: Implement result sign according to IEEE 754.
7019         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7020         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7021         * tests/test-trunc2.c: Include minus-zero.h.
7022         (MINUS_ZERO): New macro.
7023         (trunc_reference): Keep in sync with lib/trunc.c.
7024         * tests/test-truncf2.c: Include minus-zero.h.
7025         (MINUS_ZERO): New macro.
7026         (truncf_reference): Keep in sync with lib/trunc.c.
7027         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7028         * tests/test-trunc-ieee.c (main): Likewise.
7029         * tests/test-truncl-ieee.c (main): Likewise.
7030
7031         ceil: Implement result sign according to IEEE 754.
7032         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7033         (FUNC): Return -0.0 for -1 < x < 0.
7034         * tests/test-ceil2.c: Include minus-zero.h.
7035         (MINUS_ZERO): New macro.
7036         (ceil_reference): Keep in sync with lib/ceil.c.
7037         * tests/test-ceilf2.c: Include minus-zero.h.
7038         (MINUS_ZERO): New macro.
7039         (ceilf_reference): Keep in sync with lib/ceil.c.
7040         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7041         * tests/test-ceil-ieee.c (main): Likewise.
7042         * tests/test-ceill-ieee.c (main): Likewise.
7043
7044         floor: Implement result sign according to IEEE 754.
7045         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7046         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7047         * tests/test-floorf2.c (floorf_reference): Likewise.
7048         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7049         * tests/test-floor-ieee.c (main): Likewise.
7050         * tests/test-floorl-ieee.c (main): Likewise.
7051
7052 2010-12-22  Bruno Haible  <bruno@clisp.org>
7053
7054         getaddrinfo: Update doc.
7055         * doc/posix-functions/gai_strerror.texi: Return type is also different
7056         on AIX and HP-UX.
7057
7058 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7059
7060         getaddrinfo, inet_ntop: Update doc for Solaris.
7061         * doc/posix-functions/gai_strerror.texi: Return type is also an
7062         issue on Solaris 9 and earlier.
7063         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7064         on Solaris 10 and earlier.
7065
7066 2010-12-21  Bruno Haible  <bruno@clisp.org>
7067
7068         New module 'roundl-ieee'.
7069         * modules/roundl-ieee: New file.
7070         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7071         test whether roundl works according to ISO C 99 with IEC 60559.
7072         * m4/roundl-ieee.m4: New file.
7073         * modules/roundl-ieee-tests: New file.
7074         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7075         * tests/test-roundl.c (main): Remove signbit tests.
7076         * modules/roundl-tests (Depends-on): Remove signbit.
7077         * doc/posix-functions/roundl.texi: Mention the new module.
7078
7079 2010-12-21  Bruno Haible  <bruno@clisp.org>
7080
7081         New module 'truncl-ieee'.
7082         * modules/truncl-ieee: New file.
7083         * modules/truncl-ieee-tests: New file.
7084         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7085         * tests/test-truncl.c (main): Remove signbit tests.
7086         * modules/truncl-tests (Depends-on): Remove signbit.
7087         * doc/posix-functions/truncl.texi: Mention the new module.
7088
7089 2010-12-21  Bruno Haible  <bruno@clisp.org>
7090
7091         New module 'ceill-ieee'.
7092         * modules/ceill-ieee: New file.
7093         * modules/ceill-ieee-tests: New file.
7094         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7095         * tests/test-ceill.c (main): Remove signbit tests.
7096         * modules/ceill-tests (Depends-on): Remove signbit.
7097         * doc/posix-functions/ceill.texi: Mention the new module.
7098
7099 2010-12-21  Bruno Haible  <bruno@clisp.org>
7100
7101         New module 'floorl-ieee'.
7102         * modules/floorl-ieee: New file.
7103         * modules/floorl-ieee-tests: New file.
7104         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7105         * tests/test-floorl.c (main): Remove signbit tests.
7106         * modules/floorl-tests (Depends-on): Remove signbit.
7107         * doc/posix-functions/floorl.texi: Mention the new module.
7108
7109 2010-12-21  Bruno Haible  <bruno@clisp.org>
7110
7111         New module 'round-ieee'.
7112         * modules/round-ieee: New file.
7113         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7114         whether round works according to ISO C 99 with IEC 60559.
7115         * m4/round-ieee.m4: New file.
7116         * modules/round-ieee-tests: New file.
7117         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7118         * tests/test-round1.c (main): Remove signbit tests.
7119         * modules/round-tests (Depends-on): Remove 'signbit'.
7120         * doc/posix-functions/round.texi: Mention the new module.
7121
7122 2010-12-21  Bruno Haible  <bruno@clisp.org>
7123
7124         New module 'trunc-ieee'.
7125         * modules/trunc-ieee: New file.
7126         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7127         whether trunc works according to ISO C 99 with IEC 60559.
7128         * m4/trunc-ieee.m4: New file.
7129         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7131         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7132         * modules/trunc-ieee-tests: New file.
7133         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7134         * tests/test-trunc1.c (main): Remove signbit tests.
7135         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7136         * doc/posix-functions/trunc.texi: Mention the new module.
7137
7138 2010-12-21  Bruno Haible  <bruno@clisp.org>
7139
7140         New module 'ceil-ieee'.
7141         * modules/ceil-ieee: New file.
7142         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7143         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7144         ISO C 99 with IEC 60559.
7145         * m4/ceil-ieee.m4: New file.
7146         * modules/ceil (Files): Add lib/ceil.c.
7147         (Depends-on): Add 'float'.
7148         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7149         * lib/math.in.h (ceil): New declaration.
7150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7151         REPLACE_CEIL.
7152         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7153         * modules/ceil-ieee-tests: New file.
7154         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7155         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7156         * doc/posix-functions/ceil.texi: Mention the new module.
7157
7158 2010-12-21  Bruno Haible  <bruno@clisp.org>
7159
7160         New module 'floor-ieee'.
7161         * modules/floor-ieee: New file.
7162         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7163         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7164         ISO C 99 with IEC 60559.
7165         * m4/floor-ieee.m4: New file.
7166         * modules/floor (Files): Add lib/floor.c.
7167         (Depends-on): Add 'float'.
7168         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7169         * lib/math.in.h (floor): New declaration.
7170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7171         REPLACE_FLOOR.
7172         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7173         * modules/floor-ieee-tests: New file.
7174         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7175         * tests/test-math-c++.cc: Check the signature of 'floor'.
7176         * doc/posix-functions/floor.texi: Mention the new module.
7177
7178 2010-12-21  Bruno Haible  <bruno@clisp.org>
7179
7180         New module 'roundf-ieee'.
7181         * modules/roundf-ieee: New file.
7182         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7183         test whether roundf works according to ISO C 99 with IEC 60559.
7184         * m4/roundf-ieee.m4: New file.
7185         * modules/roundf-ieee-tests: New file.
7186         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7187         * tests/test-roundf1.c (main): Remove signbit tests.
7188         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7189         * doc/posix-functions/roundf.texi: Mention the new module.
7190
7191 2010-12-21  Bruno Haible  <bruno@clisp.org>
7192
7193         New module 'truncf-ieee'.
7194         * modules/truncf-ieee: New file.
7195         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7196         test whether truncf works according to ISO C 99 with IEC 60559.
7197         * m4/truncf-ieee.m4: New file.
7198         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7200         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7201         * modules/truncf-ieee-tests: New file.
7202         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7203         * tests/test-truncf1.c (main): Remove signbit tests.
7204         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7205         * doc/posix-functions/truncf.texi: Mention the new module.
7206
7207 2010-12-21  Bruno Haible  <bruno@clisp.org>
7208
7209         New module 'ceilf-ieee'.
7210         * modules/ceilf-ieee: New file.
7211         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7212         test whether ceilf works according to ISO C 99 with IEC 60559.
7213         * m4/ceilf-ieee.m4: New file.
7214         * modules/ceilf-ieee-tests: New file.
7215         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7216         * tests/test-ceilf1.c (main): Remove signbit tests.
7217         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7218         * doc/posix-functions/ceilf.texi: Mention the new module.
7219
7220 2010-12-21  Bruno Haible  <bruno@clisp.org>
7221
7222         New module 'floorf-ieee'.
7223         * modules/floorf-ieee: New file.
7224         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7225         test whether floorf works according to ISO C 99 with IEC 60559.
7226         * m4/floorf-ieee.m4: New file.
7227         * modules/floorf-ieee-tests: New file.
7228         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7229         * tests/test-floorf1.c (main): Remove signbit tests.
7230         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7231         * doc/posix-functions/floorf.texi: Mention the new module.
7232
7233 2010-12-21  Bruno Haible  <bruno@clisp.org>
7234
7235         Support for minus zero in autoconf macros.
7236         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7237         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7238         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7239         * tests/minus-zero.h: Update comments.
7240
7241 2010-12-21  Bruno Haible  <bruno@clisp.org>
7242
7243         Tests for module 'ceil'.
7244         * modules/ceil-tests: New file.
7245         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7246         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7247
7248 2010-12-21  Bruno Haible  <bruno@clisp.org>
7249
7250         Tests for module 'floor'.
7251         * modules/floor-tests: New file.
7252         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7253         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7254
7255 2010-12-21  Bruno Haible  <bruno@clisp.org>
7256
7257         math: Fix indentation.
7258         * lib/math.in.h (floorf): Fix indentation.
7259
7260 2010-12-21  Bruno Haible  <bruno@clisp.org>
7261
7262         Fix cross-compilation guesses on Solaris.
7263         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7264         not match "solaris2.10".
7265         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7266         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7267         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7268
7269 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7270
7271         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7272         This fixes a problem observed with the latest coreutils snapshot
7273         that caused a test to fail on Solaris 8.  src/csplit.c's call
7274         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7275         earlier, instead of returning the number of bytes that would have
7276         been generated; this causes csplit to incorrectly report memory
7277         exhaustion.
7278         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7279         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7280         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7281         comments to match.
7282         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7283         Fix typo in matching older versions of Solaris: "solaris2.10"
7284         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7285         only for guessing while cross-compiling.
7286         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7287
7288 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7289
7290         ftoastr: fix comment again
7291         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7293         Also, simplify example a bit by using flags = 0.
7294
7295 2010-12-20  Bruno Haible  <bruno@clisp.org>
7296
7297         round*, trunc*: Update documentation regarding glibc.
7298         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7299         * doc/posix-functions/round.texi: Likewise.
7300         * doc/posix-functions/roundl.texi: Likewise.
7301         * doc/posix-functions/truncf.texi: Likewise.
7302         * doc/posix-functions/trunc.texi: Likewise.
7303         * doc/posix-functions/truncl.texi: Likewise.
7304
7305 2010-12-20  Bruno Haible  <bruno@clisp.org>
7306
7307         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7308         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7309         * doc/posix-functions/round.texi: Likewise.
7310         * doc/posix-functions/roundl.texi: Likewise.
7311
7312 2010-12-20  Bruno Haible  <bruno@clisp.org>
7313
7314         ttyname_r: Add missing declaration on HP-UX 11.
7315         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7316         HAVE_TTYNAME_R.
7317         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7318         declared. Set HAVE_TTYNAME_R always.
7319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7320         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7321         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7322         HAVE_TTYNAME_R.
7323         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7324
7325 2010-12-20  Bruno Haible  <bruno@clisp.org>
7326
7327         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7328         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7329         * doc/posix-functions/getlogin_r.texi: Likewise.
7330         * tests/test-getlogin.c: Include <errno.h>.
7331         (main): Avoid test failure on HP-UX 11.11.
7332         * tests/test-getlogin_r.c (main): Likewise.
7333
7334 2010-12-20  Bruno Haible  <bruno@clisp.org>
7335
7336         getlogin_r: Add missing declaration on HP-UX 11.
7337         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7338         declared also when it exists as a function.
7339         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7340
7341 2010-12-20  Bruno Haible  <bruno@clisp.org>
7342
7343         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7344         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7345         through wcrtomb.
7346
7347 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7348
7349         ftoastr: fix comment
7350         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7351         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7352
7353 2010-12-19  Bruno Haible  <bruno@clisp.org>
7354
7355         isnan: Ensure it is a macro.
7356         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7357         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7358         Solaris.
7359
7360 2010-12-19  Bruno Haible  <bruno@clisp.org>
7361
7362         ldexpl test: Fix link error on OSF/1 5.1.
7363         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7364
7365 2010-12-19  Bruno Haible  <bruno@clisp.org>
7366
7367         wctype: Make it work in C++ mode on OSF/1 5.1.
7368         * lib/wctype.in.h (iswblank): Declare but not define here.
7369         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7370         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7371         * modules/wctype (Files): Add lib/iswblank.c.
7372
7373 2010-12-19  Bruno Haible  <bruno@clisp.org>
7374
7375         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7376         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7377         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7378
7379 2010-12-19  Bruno Haible  <bruno@clisp.org>
7380
7381         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7383         _POSIX_PII_SOCKET.
7384         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7385         * doc/posix-functions/recvfrom.texi: Likewise.
7386         * doc/posix-functions/send.texi: Likewise.
7387         * doc/posix-functions/sendto.texi: Likewise.
7388
7389 2010-12-19  Bruno Haible  <bruno@clisp.org>
7390
7391         tcgetsid: Add missing declaration on OSF/1 5.1.
7392         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7393         HAVE_TCGETSID.
7394         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7395         Don't set HAVE_TCGETSID.
7396         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7397         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7398         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7399         HAVE_TCGETSID.
7400         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7401
7402 2010-12-19  Bruno Haible  <bruno@clisp.org>
7403
7404         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7405         * lib/stdio.in.h: During the include_next statement, let recursive
7406         includes of this file include only the system header file.
7407
7408 2010-12-19  Bruno Haible  <bruno@clisp.org>
7409
7410         iconv_open: Fix regression from 2010-12-04.
7411         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7412         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7413
7414 2010-12-19  Bruno Haible  <bruno@clisp.org>
7415
7416         stdbool test: Avoid a gcc warning.
7417         * tests/test-stdbool.c (main): Fail if e1 is false.
7418         Reported by Jim Meyering.
7419
7420 2010-12-19  Jim Meyering  <meyering@redhat.com>
7421
7422         setenv: restore to working order
7423         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7424         mistakenly removed.
7425         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7426         HAVE_SETENV.
7427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7428         HAVE_SETENV.
7429
7430 2010-12-19  Bruno Haible  <bruno@clisp.org>
7431
7432         Document some different function declarations on OSF/1 5.1.
7433         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7434         * doc/posix-functions/inet_ntop.texi: Likewise.
7435         * doc/posix-functions/gethostname.texi: Likewise.
7436         * lib/unistd.in.h (gethostname): Update comment.
7437
7438 2010-12-19  Bruno Haible  <bruno@clisp.org>
7439
7440         doc: Mention vasprintf-posix module.
7441         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7442         the 'vasprintf-posix' module.
7443         * doc/glibc-functions/vasprintf.texi: Likewise.
7444
7445 2010-12-19  Bruno Haible  <bruno@clisp.org>
7446
7447         unsetenv: Add missing declaration on OSF/1 5.1.
7448         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7449         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7450         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7452         not HAVE_UNSETENV.
7453         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7454         HAVE_UNSETENV.
7455         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7456
7457 2010-12-19  Bruno Haible  <bruno@clisp.org>
7458
7459         setenv: Add missing declaration on OSF/1 5.1.
7460         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7461         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7462         declared. Don't set HAVE_SETENV.
7463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7464         not HAVE_SETENV.
7465         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7466         HAVE_SETENV.
7467         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7468
7469 2010-12-19  Bruno Haible  <bruno@clisp.org>
7470
7471         nl_langinfo tests: Avoid gcc warning.
7472         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7473
7474 2010-12-19  Bruno Haible  <bruno@clisp.org>
7475
7476         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7477         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7478         _GL_CXXALIAS_SYS.
7479
7480 2010-12-19  Bruno Haible  <bruno@clisp.org>
7481
7482         stdbool: Relax test.
7483         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7484         address to 'bool' work in static initializer, for compilers other than
7485         GCC.
7486
7487 2010-12-19  Bruno Haible  <bruno@clisp.org>
7488
7489         ftello: Add missing declaration on OSF/1 5.1.
7490         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7491         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7493         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7494         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7495
7496 2010-12-19  Bruno Haible  <bruno@clisp.org>
7497
7498         fseeko: Add missing declaration on OSF/1 5.1.
7499         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7500         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7502         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7503         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7504
7505 2010-12-19  Bruno Haible  <bruno@clisp.org>
7506
7507         fchdir: Add missing declaration on OSF/1 5.1.
7508         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7509         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7511         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7512         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7513
7514 2010-12-19  Bruno Haible  <bruno@clisp.org>
7515
7516         relocatable-prog-wrapper: Separate from relocatable-prog.
7517         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7518         uninstall-relocwrapper rule here.
7519         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7520         Reported by Ian Beckwith <ianb@erislabs.net>.
7521
7522 2010-12-19  Bruno Haible  <bruno@clisp.org>
7523
7524         unistr/u8-mbsnlen: Add missing dependency.
7525         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7526         Reported by Ian Beckwith <ianb@erislabs.net>.
7527
7528 2010-12-19  Bruno Haible  <bruno@clisp.org>
7529
7530         iconv: Make it possible again to use this module without 'iconv-h'.
7531         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7532         if it is not defined.
7533         Reported by Ian Beckwith <ianb@erislabs.net>.
7534
7535 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7536
7537         acl: port to Solaris 8 when copying from tmpfs to ufs
7538         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7539         error number.  Problem observed on Solaris 8 with latest
7540         coreutils, with "mv A B", where A is on a tmpfs file system and B
7541         is on a ufs file system.  This caused coreutils' mv/part-symlink
7542         test to fail.
7543
7544         tests: set fail=0 at start
7545         * tests/init.sh (setup_): Move fail=0 initialization here ...
7546         (mktempd_): ... from here, so that tests can rely on fail being
7547         set to 0 initially.  This fixes a problem in coreutils; see:
7548         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7549
7550 2010-12-18  Bruno Haible  <bruno@clisp.org>
7551
7552         memmem-simple: Stylistic changes.
7553         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7554         Fix preprocessor directive indentation.
7555
7556 2010-12-15  Pádraig Brady <P@draigBrady.com>
7557
7558         memmem, memmem-simple: reorganize and expand empty needle check
7559         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7560         functional checks to memmem-simple so that one has a fully functional
7561         memmem by using just this module.
7562         Restrict the performance only check to the memmem module.
7563         Also expand the empty needle check to ensure the correct
7564         pointer is returned, not just a non NULL pointer.
7565         * doc/glibc-functions/memmem.texi: Rearrange the portability
7566         documentation to correlate with the rearranged checks.
7567         Clarify exactly how the memmem and memmem-simple modules
7568         relate to each other.
7569
7570 2010-12-15  Pádraig Brady <P@draigBrady.com>
7571             Bruno Haible  <bruno@clisp.org>
7572
7573         Improve cross-compilation guesses for uClibc.
7574         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7575         that uClibc does not have the glibc bug.
7576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7577         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7578
7579 2010-12-14  Eric Blake  <eblake@redhat.com>
7580
7581         configmake: provide fallbacks for oldest supported autotools
7582         * m4/configmake.m4: New file.
7583         * modules/configmake (Files): Ship it.
7584         (configure.ac): Use it to guarantee fallbacks.
7585
7586 2010-12-13  Pádraig Brady <P@draigBrady.com>
7587
7588         read-file: Improve handling of large files
7589         * lib/read-file.c (fread_file): Minimize realloc()s
7590         for regular files, and better manage sizes around SIZE_MAX.
7591
7592 2010-12-13  Eric Blake  <eblake@redhat.com>
7593
7594         cloexec, fcntl: relax license
7595         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7596         consent from all contributors.
7597         * modules/fcntl (License): Likewise.
7598
7599 2010-12-10  Bruno Haible  <bruno@clisp.org>
7600
7601         Tests for module 'pipe-posix'.
7602         * modules/pipe-posix-tests: New file.
7603         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7604
7605 2010-12-10  Bruno Haible  <bruno@clisp.org>
7606
7607         pipe-posix: Make it work in C++ mode.
7608         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7609         (pipe): Use common idiom, not a macro definition.
7610         * lib/pipe.c: New file.
7611         * m4/pipe.m4: New file.
7612         * modules/pipe-posix (Description): Enhance.
7613         (Files): Add lib/pipe.c, m4/pipe.m4.
7614         (configure.ac): Invoke gl_FUNC_PIPE.
7615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7616         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7617         * tests/test-unistd-c++.cc: Check the signature of pipe.
7618
7619 2010-12-10  Bruno Haible  <bruno@clisp.org>
7620
7621         Rename module 'pipe' to 'spawn-pipe'.
7622         * modules/spawn-pipe: New file, renamed from modules/pipe.
7623         (Files, configure.ac, Makefile.am): Update.
7624         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7625         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7626         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7627         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7628         "spawn-pipe.h" instead of "pipe.h".
7629         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7630         to gl_SPAWN_PIPE.
7631         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7632         (Files, Makefile.am): Update.
7633         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7634         Update.
7635         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7636         Include "spawn-pipe.h" instead of "pipe.h".
7637         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7638         * lib/javacomp.c: Likewise.
7639         * lib/javaversion.c: Likewise.
7640         * lib/pipe-filter-gi.c: Likewise.
7641         * lib/pipe-filter-ii.c: Likewise.
7642         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7643         * modules/javacomp (Depends-on): Likewise.
7644         * modules/javaversion (Depends-on): Likewise.
7645         * modules/pipe-filter-gi (Depends-on): Likewise.
7646         * modules/pipe-filter-ii (Depends-on): Likewise.
7647         * MODULES.html.sh (Executing programs): Update.
7648         * NEWS: Mention the change.
7649
7650 2010-12-10  Eric Blake  <eblake@redhat.com>
7651
7652         pipe-posix: new module
7653         * modules/pipe-posix: New file.
7654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7655         (gl_UNISTD_H): Check for declaration.
7656         * modules/unistd (Makefile.am): Substitute it.
7657         * lib/unistd.in.h (pipe): Provide it for mingw.
7658         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7659         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7660
7661 2010-12-07  Bruno Haible  <bruno@clisp.org>
7662
7663         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7664         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7665         u8_strcmp_gnu.
7666         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7667
7668 2010-12-06  Bruno Haible  <bruno@clisp.org>
7669
7670         Update internal documentation.
7671         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7672
7673 2010-12-04  Bruno Haible  <bruno@clisp.org>
7674
7675         Put more information about failed tests into the test return codes.
7676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7677         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7678         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7679         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7680         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7681         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7682         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7683         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7684         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7686         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7687         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7688         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7689         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7690         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7691         returns a bit mask.
7692         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7693         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7694         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7695         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7696         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7697         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7698         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7700         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7701         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7702         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7703         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7704         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7706         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7707         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7708         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7709         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7710         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7711         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7713         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7714         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7715         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7716         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7717         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7718         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7719         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7720         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7721         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7722         gl_PRINTF_PRECISION): Likewise.
7723         * m4/regex.m4 (gl_REGEX): Likewise.
7724         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7725         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7726         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7727         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7728         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7729         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7730         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7731         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7732         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7733         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7734         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7735         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7736         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7737         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7738         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7739         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7740         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7741         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7743         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7744         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7745         enumerated value.
7746         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7747
7748 2010-12-04  Bruno Haible  <bruno@clisp.org>
7749
7750         Update for Solaris 11 2010-11.
7751         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7752         Express, released in November 2010.
7753
7754 2010-12-04  Bruno Haible  <bruno@clisp.org>
7755
7756         nproc: Relax license.
7757         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7758         and Paul Eggert.
7759         Requested by Ludovic Courtès <ludo@gnu.org>.
7760
7761 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7762
7763         utimecmp: fine-grained src to nearby coarse-grained dest
7764
7765         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7766         and the source is on a file system with higher-resolution time
7767         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7768         not work, and the time stamps are close together, the algorithm to
7769         determine the exact resolution from the read-back mtime was buggy:
7770         it had a "!=" where it should have had an "==".  This bug has been
7771         in the code ever since it was introduced to gnulib.
7772         Problem reported by Dan Jacobson in
7773         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7774
7775 2010-11-30  Bruno Haible  <bruno@clisp.org>
7776
7777         strerror_r-posix: Fix autoconf test.
7778         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7779
7780 2010-11-28  Bruno Haible  <bruno@clisp.org>
7781             Paul Eggert  <eggert@cs.ucla.edu>
7782
7783         Tests for module 'getdomainname'.
7784         * modules/getdomainname-tests: New file.
7785         * tests/test-getdomainname.c: New file, based on
7786         tests/test-gethostname.c.
7787
7788 2010-11-28  Bruno Haible  <bruno@clisp.org>
7789             Paul Eggert  <eggert@cs.ucla.edu>
7790
7791         getdomainname: Use the system function when possible.
7792         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7793         (getdomainname): Replace if needed. Provide the declaration if it is
7794         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7795         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7796         (getdomainname): When the system has getdomainname, call the system
7797         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7798         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7799         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7800         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7801         the function if its second argument is of type 'int' or if it is found
7802         in libnsl.
7803         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7804         <sys/systeminfo.h> and sysinfo().
7805         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7807         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7808         HAVE_GETDOMAINNAME.
7809         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7810         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7811         * doc/glibc-functions/getdomainname.texi: Document the problems with
7812         the getdomainname declaration.
7813
7814 2010-11-28  Bruno Haible  <bruno@clisp.org>
7815
7816         sys_socket: Ensure ss_family field on AIX.
7817         * lib/sys_socket.in.h (ss_family): New macro definition.
7818         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7819         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7820         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7821         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7822         * modules/sys_socket (Makefile.am): Substitute
7823         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7824         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7825
7826 2010-11-27  Bruno Haible  <bruno@clisp.org>
7827
7828         readline: Improve configure output.
7829         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7830         "checking for readline..." result understandable.
7831
7832 2010-11-27  Bruno Haible  <bruno@clisp.org>
7833
7834         *printf-posix: Detect a bug on Solaris 10/x86.
7835         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7836         for floating-point output.
7837         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7838         directive.
7839         * tests/test-snprintf-posix.h (test_function): Likewise.
7840         * tests/test-sprintf-posix.h (test_function): Likewise.
7841         * tests/test-vasprintf-posix.c (test_function): Likewise.
7842         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7843         * doc/posix-functions/printf.texi: Likewise.
7844         * doc/posix-functions/snprintf.texi: Likewise.
7845         * doc/posix-functions/sprintf.texi: Likewise.
7846         * doc/posix-functions/vfprintf.texi: Likewise.
7847         * doc/posix-functions/vprintf.texi: Likewise.
7848         * doc/posix-functions/vsnprintf.texi: Likewise.
7849         * doc/posix-functions/vsprintf.texi: Likewise.
7850         * doc/glibc-functions/obstack_printf.texi: Likewise.
7851         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7852
7853 2010-11-27  Bruno Haible  <bruno@clisp.org>
7854
7855         Fix link error when module libunistring-optional is in use.
7856         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7857         * modules/striconveha-tests (Makefile.am): Likewise.
7858
7859 2010-11-27  Bruno Haible  <bruno@clisp.org>
7860
7861         regex: Mention link dependencies.
7862         * modules/regex (Link): New section.
7863         * modules/rpmatch (Link): Likewise.
7864         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7865
7866 2010-11-27  Bruno Haible  <bruno@clisp.org>
7867
7868         ftoastr: Fix compilation error on Solaris.
7869         * lib/ftoastr.c: Include <config.h>.
7870
7871 2010-11-27  Bruno Haible  <bruno@clisp.org>
7872
7873         getloadavg: Update documentation.
7874         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7875
7876 2010-11-27  Bruno Haible  <bruno@clisp.org>
7877
7878         sys_socket: Fix test whether the functions are declared.
7879         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7880         not <sys/select.h>.
7881
7882 2010-11-27  Bruno Haible  <bruno@clisp.org>
7883
7884         getpass: Make sure to get system declaration on some platforms.
7885         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7886         gl_USE_SYSTEM_EXTENSIONS.
7887         * modules/getpass (Depends-on): Add extensions.
7888
7889 2010-11-26  Bruno Haible  <bruno@clisp.org>
7890
7891         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7892         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7893         'iconv' module is present.
7894         (ICONV_CONST): New macro.
7895         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7896         ICONV_CONST.
7897         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7898         set ICONV_CONST.
7899         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7900         here.
7901         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7902         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7903         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7904         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7905         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7906         present.
7907
7908 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7909
7910         ftoastr: comment fix
7911         * lib/ftoastr.c: "little" -> "little or no" in comment
7912
7913 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7914
7915         stdint: port to GCC 4.3 + OSX + Octave
7916         On this platform, stdint.h is buggy and defines int64_t to long
7917         long int.  The replacement defined it to long int, causing
7918         problems with C++ style name mangling.  Instead, trust the system
7919         definition if INT64_MAX is defined, and likewise for the unsigned
7920         variant.   Problem reported by Jarno Rajahalme in
7921         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7922         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7923         and don't mess with int64_t and INT64_MAX in this case.
7924         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7925
7926 2010-11-24  Bruno Haible  <bruno@clisp.org>
7927
7928         doc: Corrections regarding MacOS X 10.4 and 10.5.
7929         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7930         MacOS X.
7931         Reported by Simon Josefsson.
7932
7933 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7934
7935         Uninstall ".bin" files installed by relocwrapper.
7936         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7937         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7938         unless it is already there.
7939
7940 2010-11-21  Bruno Haible  <bruno@clisp.org>
7941
7942         Update for NetBSD 5.0.
7943         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7944         NetBSD; the test fails on NetBSD 5.0.
7945         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7946         about NetBSD.
7947
7948 2010-11-21  Bruno Haible  <bruno@clisp.org>
7949
7950         Update for HP-UX 11.23 and HP-UX 11.31.
7951         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7952         HP-UX.
7953
7954 2010-11-21  Bruno Haible  <bruno@clisp.org>
7955
7956         Update for MacOS X 10.5.
7957         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7958         MacOS X; the test fails on MacOS X 10.5.8.
7959         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7960         about MacOS X.
7961
7962 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
7963
7964         bootstrap: add bootstrap_sync option.
7965         See discussion at
7966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
7967         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
7968         * build-aux/bootstrap: Accept --bootstrap-sync to update
7969         bootstrap if it is not identical to the local gnulib's
7970         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
7971         enable this by default.  Accept --no-bootstrap-sync to disable
7972         it.
7973
7974 2010-11-20  Bruno Haible  <bruno@clisp.org>
7975
7976         Ensure that <features.h> is included before __GLIBC__ is tested.
7977         * lib/printf-parse.h: Include <features.h>.
7978         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
7979         Reported by Mike Frysinger <vapier@gentoo.org>.
7980
7981         Ensure that <features.h> is included before __GLIBC__ is tested.
7982         * lib/wchar.in.h: Include <features.h>.
7983         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
7984         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
7985         Reported by Mike Frysinger <vapier@gentoo.org>.
7986
7987         Ensure that <features.h> is included before __GLIBC__ is tested.
7988         * lib/arpa_inet.in.h: Include <features.h>.
7989         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
7990         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
7991         Reported by Mike Frysinger <vapier@gentoo.org>.
7992
7993         Ensure that <features.h> is included before __GLIBC__ is tested.
7994         * build-aux/link-warning.h: Include <features.h>.
7995         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
7996         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
7997         Reported by Mike Frysinger <vapier@gentoo.org>.
7998
7999         Ensure that <features.h> is included before __GLIBC__ is tested.
8000         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8001         Reported by Mike Frysinger <vapier@gentoo.org>.
8002
8003 2010-11-20  Bruno Haible  <bruno@clisp.org>
8004
8005         memmem: Fix autoconf test.
8006         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8007
8008 2010-11-20  Bruno Haible  <bruno@clisp.org>
8009
8010         Port to uClibc.
8011         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8012         * lib/fcntl.in.h: Likewise.
8013         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8014         * lib/mbrtowc.c (mbrtowc): Likewise.
8015         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8016         * lib/strerror_r.c: Likewise.
8017         * lib/unistr/u8-strnlen.c: Likewise.
8018         * lib/vasnprintf.c (decimal_point_char): Likewise.
8019         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8020         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8021         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8022         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8023         * tests/test-sigaction.c (handler, main): Likewise.
8024         * lib/freading.h: Treat uClibc like a non-glibc platform.
8025         * lib/freading.c: Likewise.
8026         * lib/gettext.h: Likewise.
8027         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8028         Likewise.
8029         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8030         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8031         * lib/propername.c (proper_name_utf8): Likewise.
8032         * lib/spawn.in.h: Likewise.
8033         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8034         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8035         mem_cd_iconveh_internal): Likewise.
8036         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8037         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8038         strstr, strcasestr): Likewise.
8039         * lib/unicodeio.c (unicode_to_mb): Likewise.
8040         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8041         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8042         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8043         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8044         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8045         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8046         * lib/unistr/u8-stpncpy.c: Likewise.
8047         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8048         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8049         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8050         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8051         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8052         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8053         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8054         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8056         Likewise.
8057         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8058         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8059         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8060         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8061         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8062         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8063         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8064         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8065         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8066         * tests/test-striconveha.c (main): Likewise.
8067         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8068         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8069         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8070         * doc/posix-functions/getline.texi: Likewise.
8071         Reported by Mike Frysinger <vapier@gentoo.org>.
8072
8073 2010-11-20  Bruno Haible  <bruno@clisp.org>
8074
8075         nproc: Fix condition.
8076         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8077         HAVE_PTHREAD_AFFINITY_NP.
8078
8079 2010-11-20  Bruno Haible  <bruno@clisp.org>
8080
8081         Fix a comment.
8082         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8083
8084 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8085
8086         ftoastr: don't assume snprintf
8087         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8088         Implement a subset of snprintf here, by using sprintf safely.
8089         * modules/ftoastr (Depends-on): Remove snprintf.
8090
8091 2010-11-19  Jim Meyering  <meyering@redhat.com>
8092
8093         test-rename.h: fix compilation failure
8094         * tests/test-rename.h (test_rename): Add omitted "}".
8095
8096 2010-11-17  Jim Meyering  <meyering@redhat.com>
8097
8098         maint.mk: add a URL discussing the no-@acronym policy
8099         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8100
8101 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8102
8103         ftoastr: depend on snprintf, improve comments
8104         * lib/ftoastr.c: Also mention Loitsch's draft.
8105         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8106         needed in the current implementation, but it might simplify
8107         speeding up the code later.
8108         * modules/ftoastr: Depend on snprintf; this improves portability.
8109         Suggested by Bruno Haible in the same email.
8110
8111         ftoastr: port to hosts lacking strtof and strtold
8112         Problem reported by Bruno Haible in
8113         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8114         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8115         environment and strtold (and presumably strtof) are not available.
8116         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8117         (configure.ac): Require gl_C99_STRTOLD.
8118
8119 2010-11-18  Bruno Haible  <bruno@clisp.org>
8120
8121         c-strtold: Avoid link error on AIX 7.
8122         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8123         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8124         (gl_C_STRTOLD): Test whether strtold_l exists.
8125         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8126
8127 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8128
8129         intprops: new macro INT_BITS_STRLEN_BOUND
8130         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8131         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8132         not exposed.  Also, it uses a slightly tighter bound than before;
8133         though this makes no practical difference, we might as well be as
8134         tight as we easily can.
8135
8136         ftoastr: new module, for lossless conversion of floats to short strings
8137         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8138         * modules/ftoastr: New files.
8139
8140 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8141
8142         bootstrap: port to Solaris sed
8143         * build-aux/bootstrap (get_version): Port to Solaris sed.
8144         See Ralf Wildenhues's note in
8145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8146
8147 2010-11-14  Jim Meyering  <meyering@redhat.com>
8148
8149         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8150         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8151         and move definition closer to sole use.
8152
8153 2010-11-13  Jim Meyering  <meyering@redhat.com>
8154
8155         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8156         Now we require at least autoconf-2.59, which means the work-around
8157         is no longer needed.
8158         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8159         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8160         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8161         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8162         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8163
8164 2010-11-13  Bruno Haible  <bruno@clisp.org>
8165
8166         rename, renameat: Avoid test failures at NFS mounted locations.
8167         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8168         functions.
8169         (test_rename): Use assert_nonexistent.
8170         * tests/test-rename.c: Include <dirent.h>.
8171         * tests/test-renameat.c: Likewise.
8172         Reported by Gary V. Vaughan <gary@gnu.org>.
8173
8174         rename, renameat: Document Linux bug with NFS
8175         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8176         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8177         * doc/posix-functions/renameat.texi: Likewise.
8178         Suggested by Eric Blake.
8179
8180 2010-11-13  Bruno Haible  <bruno@clisp.org>
8181
8182         rename test: Add comments.
8183         * tests/test-rename.h (test_rename): Add structure and comments.
8184
8185 2010-11-13  Eric Blake  <eblake@redhat.com>
8186
8187         maintainer-makefile: cover a few more files
8188         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8189         scripts generated within C files, for libvirt.
8190
8191 2010-11-13  Bruno Haible  <bruno@clisp.org>
8192
8193         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8194         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8195         character, return the number of bytes that belong together, not always
8196         1.
8197         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8198         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8199         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8200         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8201         number of bytes of an invalid character.
8202         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8203         (main): Invoke it.
8204         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8205         results.
8206         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8207         malformed byte sequences.
8208         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8209         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8210         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8211         Reported by Ben Pfaff and Paolo Bonzini.
8212
8213 2010-11-13  Bruno Haible  <bruno@clisp.org>
8214
8215         openat: Work around glibc bug with fchownat() and empty file names.
8216         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8217         (gl_FUNC_FCHOWNAT): Invoke it.
8218         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8219         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8220         Reported by Gary V. Vaughan <gary@gnu.org>.
8221
8222 2010-11-13  Bruno Haible  <bruno@clisp.org>
8223
8224         openat: Ensure autoconf macro ordering.
8225         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8226         gl_USE_SYSTEM_EXTENSIONS.
8227         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8228
8229 2010-11-13  Bruno Haible  <bruno@clisp.org>
8230
8231         Update comments.
8232         * lib/unistr/u8-check.c: Update file name in comments.
8233         * lib/unistr/u8-mblen.c: Likewise.
8234         * lib/unistr/u8-prev.c: Likewise.
8235         * lib/unistr/u8-strmblen.c: Likewise.
8236         * lib/unistr/u8-strmbtouc.c: Likewise.
8237
8238 2010-11-13  Jim Meyering  <meyering@redhat.com>
8239
8240         tests: avoid test failure on Solaris 10 due to lack of PATH export
8241         * tests/test-update-copyright.sh: Don't forget to export PATH.
8242
8243         init.sh: ensure that IFS is defined, just in case...
8244         * tests/init.sh (setup_): Ensure that IFS is defined,
8245         so that saving and restoring it works as expected.  This
8246         appears to be useful at least for an old version of dash
8247         from a long time ago (RH 6).  See here for details:
8248         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8249
8250         maint.mk: tighten "test a == b" check
8251         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8252         test to files that contain something like #!/bin/sh.
8253         Without this, coreutils would get two false positives in
8254         the comments of C source files.
8255
8256 2010-11-12  Eric Blake  <eblake@redhat.com>
8257
8258         bootstrap: fix typo in previous attempt
8259         * build-aux/bootstrap (buildreq): Correct the grouping.
8260         Reported by Paul Eggert.
8261
8262         maintainer-makefile: prohibit test x == x
8263         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8264         Based on a report by Matthias Bolte.
8265
8266         bootstrap: allow FreeBSD gzip
8267         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8268         which has no '.' and goes to stderr.
8269         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8270         Reported by Matthias Bolte.
8271
8272         maintainer-makefile: check for i18n setup
8273         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8274         will likely work.
8275
8276 2010-11-12  Bruno Haible  <bruno@clisp.org>
8277
8278         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8279         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8280         * lib/nanosleep.c (nanosleep): Likewise.
8281
8282 2010-11-11  Bruno Haible  <bruno@clisp.org>
8283
8284         fcntl-h: Fix for use of C++ on glibc systems.
8285         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8286         also on glibc systems in C++ mode.
8287         Reported by Gary V. Vaughan <gary@gnu.org>.
8288
8289 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8290
8291         mknod: avoid false failure with dash
8292         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8293
8294 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8295
8296         unlink: Fix "is it should" typo in diagnostic.
8297         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8298         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8299
8300 2010-11-11  Bruno Haible  <bruno@clisp.org>
8301
8302         Tests for module 'strerror_r-posix'.
8303         * modules/strerror_r-posix-tests: New file.
8304         * tests/test-strerror_r.c: New file.
8305         * tests/test-string-c++.cc: Check the signature of strerror_r.
8306
8307         New module 'strerror_r-posix'.
8308         * lib/string.in.h (strerror_r): New declaration.
8309         * lib/strerror_r.c: New file.
8310         * m4/strerror_r.m4: New file.
8311         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8312         of strerror_r.
8313         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8314         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8315         * modules/strerror_r-posix: New file.
8316         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8317         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8318         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8319         portability problems.
8320
8321 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8322
8323         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8324         line is also considered for output. Quoted function name in shell
8325         command, so temporary files for functions like MyClass::operator()
8326         are removed correctly without errors.
8327
8328 2010-11-09  Bruno Haible  <bruno@clisp.org>
8329
8330         * doc/posix-functions/strerror.texi: List more failing platforms.
8331
8332         * doc/posix-functions/strerror.texi: Add a comment.
8333
8334 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8335
8336         fdopendir: fix bug on MacOS X when low on file descriptors
8337
8338         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8339         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8340         All callers changed.
8341         (fdopendir): Invoke save_cwd at the top level, not after using
8342         multiple dup() calls to use up file descriptors.  Then retry
8343         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8344         less than the maximum number of open file descriptors, because
8345         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8346         on Mac OS X 10.6.4 for tar 1.24
8347         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8348         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8349         and for tar 1.25
8350         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8351
8352 2010-11-07  Bruno Haible  <bruno@clisp.org>
8353
8354         vasnprintf: Support I flag on glibc systems.
8355         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8356         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8357         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8358         snprintf function.
8359         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8360         glibc systems.
8361         * tests/test-vasnprintf-posix3.c: New file.
8362         * modules/vasnprintf-posix-tests (Files): Add it.
8363         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8364
8365 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8366
8367         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8368         * MODULES.html.sh: For compiler warnings, use name
8369         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8370
8371 2010-11-05  Eric Blake  <eblake@redhat.com>
8372
8373         ceil, floor: avoid spurious failure with icc
8374         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8375         [denormals-as-zero] when optimizing without -mieee-fp option.
8376         * tests/test-floorf2.c (floorf_reference): Likewise.
8377         * tests/test-ceilf1.c (dummy): New function.
8378         (main): Use it to outsmart icc's optimization.
8379         * tests/test-floorf1.c (dummy, main): Likewise.
8380
8381         tests: require working signbit
8382         * modules/ceilf-tests (Depends-on): Add signbit.
8383         * modules/ceill-tests (Depends-on): Likewise.
8384         * modules/floorf-tests (Depends-on): Likewise.
8385         * modules/floorl-tests (Depends-on): Likewise.
8386         * modules/round-tests (Depends-on): Likewise.
8387         * modules/roundf-tests (Depends-on): Likewise.
8388         * modules/roundl-tests (Depends-on): Likewise.
8389         * modules/trunc-tests (Depends-on): Likewise.
8390         * modules/truncf-tests (Depends-on): Likewise.
8391         * modules/truncl-tests (Depends-on): Likewise.
8392
8393         strtod: work around icc bug
8394         * lib/strtod.c (minus_zero): Define to working value.
8395         (strtod): Use it to avoid icc bug.
8396
8397         copysign: enhance tests
8398         * modules/copysign-tests (Files): Add minus-zero.h.
8399         * tests/test-copysign.c (main): Also test zeros.
8400
8401 2010-11-04  Eric Blake  <eblake@redhat.com>
8402
8403         ceil, floor, round, trunc: enhance tests of -0
8404         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8405         * tests/test-ceill.c (main): Likewise.
8406         * tests/test-floorf1.c (main): Likewise.
8407         * tests/test-floorl.c (main): Likewise.
8408         * tests/test-round1.c (main): Likewise.
8409         * tests/test-roundf1.c (main): Likewise.
8410         * tests/test-roundl.c (main): Likewise.
8411         * tests/test-trunc1.c (main): Likewise.
8412         * tests/test-truncf1.c (main): Likewise.
8413         * tests/test-truncl.c (main): Likewise.
8414
8415 2010-11-04  Eric Blake  <eblake@redhat.com>
8416
8417         frexp, tests: work around ICC bug with -zero
8418         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8419         works with more compilers.
8420         * tests/minus-zero.h: New file.
8421         * modules/ceilf-tests (Files): Include it.
8422         * modules/ceill-tests (Files): Likewise.
8423         * modules/floorf-tests (Files): Likewise.
8424         * modules/floorl-tests (Files): Likewise.
8425         * modules/frexp-nolibm-tests (Files): Likewise.
8426         * modules/frexp-tests (Files): Likewise.
8427         * modules/frexpl-nolibm-tests (Files): Likewise.
8428         * modules/frexpl-tests (Files): Likewise.
8429         * modules/isnan-tests (Files): Likewise.
8430         * modules/isnand-nolibm-tests (Files): Likewise.
8431         * modules/isnand-tests (Files): Likewise.
8432         * modules/isnanf-nolibm-tests (Files): Likewise.
8433         * modules/isnanf-tests (Files): Likewise.
8434         * modules/isnanl-nolibm-tests (Files): Likewise.
8435         * modules/isnanl-tests (Files): Likewise.
8436         * modules/round-tests (Files): Likewise.
8437         * modules/roundf-tests (Files): Likewise.
8438         * modules/roundl-tests (Files): Likewise.
8439         * modules/ldexpl-tests (Files): Likewise.
8440         * modules/signbit-tests (Files): Likewise.
8441         * modules/snprintf-posix-tests (Files): Likewise.
8442         * modules/sprintf-posix-tests (Files): Likewise.
8443         * modules/strtod-tests (Files): Likewise.
8444         * modules/trunc-tests (Files): Likewise.
8445         * modules/truncf-tests (Files): Likewise.
8446         * modules/truncl-tests (Files): Likewise.
8447         * modules/vsnprintf-posix-tests (Files): Likewise.
8448         * modules/vsprintf-posix-tests (Files): Likewise.
8449         * modules/vasnprintf-posix-tests (Files): Likewise.
8450         * modules/vasprintf-posix-tests (Files): Likewise.
8451         * tests/test-ceilf1.c (main): Use it.
8452         * tests/test-ceill.c (main): Likewise.
8453         * tests/test-floorf1.c (main): Likewise.
8454         * tests/test-floorl.c (main): Likewise.
8455         * tests/test-frexp.c (main): Likewise.
8456         * tests/test-frexpl.c (main): Likewise.
8457         * tests/test-isnan.c (main): Likewise.
8458         * tests/test-isnand.h (main): Likewise.
8459         * tests/test-isnanf.h (main): Likewise.
8460         * tests/test-isnanl.h (main): Likewise.
8461         * tests/test-ldexpl.c (main): Likewise.
8462         * tests/test-round.c (main): Likewise.
8463         * tests/test-roundf.c (main): Likewise.
8464         * tests/test-roundl.c (main): Likewise.
8465         * tests/test-signbit.c (test_signbitf, test_signbitd)
8466         (test_signbitl): Likewise.
8467         * tests/test-snprintf-posix.h (test_function): Likewise.
8468         * tests/test-sprintf-posix.h (test_function): Likewise.
8469         * tests/test-strtod.c (main): Likewise.
8470         * tests/test-trunc1.c (main): Likewise.
8471         * tests/test-truncf1.c (main): Likewise.
8472         * tests/test-truncl.c (main): Likewise.
8473
8474         isnanl: work around icc bug
8475         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8476
8477 2010-11-03  Eric Blake  <eblake@redhat.com>
8478
8479         tests: fix compiler warnings
8480         * tests/test-getopt.h (test_getopt): Fix condition.
8481         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8482         * tests/test-pipe2.c (main): Likewise.
8483         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8484
8485         utimens: fix broken m4 test
8486         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8487
8488 2010-10-28  Bruno Haible  <bruno@clisp.org>
8489
8490         posix_spawn*, getdtablesize: Relax license.
8491         * modules/posix_spawn (License): Change to LGPLv2+.
8492         * modules/posix_spawnp (License): Likewise.
8493         * modules/posix_spawn-internal (License): Likewise.
8494         * modules/posix_spawnattr_init (License): Likewise.
8495         * modules/posix_spawnattr_getflags (License): Likewise.
8496         * modules/posix_spawnattr_setflags (License): Likewise.
8497         * modules/posix_spawnattr_getpgroup (License): Likewise.
8498         * modules/posix_spawnattr_setpgroup (License): Likewise.
8499         * modules/posix_spawnattr_getschedparam (License): Likewise.
8500         * modules/posix_spawnattr_setschedparam (License): Likewise.
8501         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8502         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8503         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8504         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8505         * modules/posix_spawnattr_getsigmask (License): Likewise.
8506         * modules/posix_spawnattr_setsigmask (License): Likewise.
8507         * modules/posix_spawnattr_destroy (License): Likewise.
8508         * modules/posix_spawn_file_actions_init (License): Likewise.
8509         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8510         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8511         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8512         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8513         * modules/getdtablesize (License): Likewise.
8514         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8515
8516 2010-10-26  Bruno Haible  <bruno@clisp.org>
8517
8518         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8519         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8520         Cygwin and mingw.
8521         Suggested by Eric Blake.
8522
8523 2010-10-26  Bruno Haible  <bruno@clisp.org>
8524
8525         stdio: Work around compilation error due to renameat() on Solaris 10.
8526         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8527         * lib/renameat.c: Don't include <unistd.h> here.
8528         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8529         Reported by Paul Eggert and Eric Blake.
8530
8531 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8532
8533         renameat: port to Solaris 10, which declares renameat in unistd.h
8534
8535         * lib/renameat.c: Include unistd.h before stdio.h, because
8536         Solaris 10 declares renameat in unistd.h.  Problem encountered
8537         when building GNU tar 1.24 on Solaris 10.
8538
8539 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8540
8541         fdopendir: fix C89 compilation
8542         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8543         compilers.
8544
8545 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8546
8547         inttostr: simplify by removing unnecessary redundancy
8548         * lib/anytostr.c: Don't include verify.h.
8549         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8550         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8551         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8552         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8553         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8554         Likewise.
8555         * modules/inttostr (Depends-on): Remove 'verify'.
8556
8557 2010-10-23  Bruno Haible  <bruno@clisp.org>
8558
8559         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8560         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8561         Reported by Eric Blake.
8562
8563 2010-10-23  Bruno Haible  <bruno@clisp.org>
8564
8565         Tests: Fix LOCALE_JA on MirBSD 10.
8566         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8567         to an UTF-8 locale.
8568         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8569         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8570         Reported by Eric Blake.
8571
8572 2010-10-21  Bruno Haible  <bruno@clisp.org>
8573
8574         nl_langinfo test: Avoid test failure on NetBSD 5.
8575         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8576         Reported by Eric Blake.
8577
8578 2010-10-21  Eric Blake  <eblake@redhat.com>
8579
8580         c-stack: work around libsigsegv 2.8 bug
8581         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8582         overflow on at least PowerPC64.
8583
8584 2010-10-17  Bruno Haible  <bruno@clisp.org>
8585
8586         userspec: Drop redundant file.
8587         * modules/userspec (Files): Remove lib/inttostr.h.
8588
8589 2010-10-17  Bruno Haible  <bruno@clisp.org>
8590
8591         nl_langinfo tests: Silence some warnings.
8592         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8593         Reported by Jim Meyering.
8594
8595 2010-10-17  Bruno Haible  <bruno@clisp.org>
8596
8597         Make use of GCC's attribute __alloc_size__.
8598         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8599         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8600         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8601         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8602         __alloc_size__.
8603         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8604         Suggested by Jim Meyering.
8605
8606 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8607
8608         bootstrap: anchor .gitignore entries.
8609         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8610         with...
8611         (insert_vc_ignore): ... this new function, which prepends `/' to
8612         all .gitignore entries before passing them to
8613         insert_sorted_if_absent.
8614
8615 2010-10-16  Bruno Haible  <bruno@clisp.org>
8616
8617         nextafter: Fix configure check.
8618         * modules/nextafter (configure.ac): Correct expected prototype.
8619
8620 2010-10-16  Bruno Haible  <bruno@clisp.org>
8621
8622         termios: Update documentation.
8623         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8624
8625 2010-10-16  Bruno Haible  <bruno@clisp.org>
8626
8627         tests: Make them compile with TinyCC.
8628         * tests/test-strstr.c (main): Remove parentheses around array
8629         initializer.
8630
8631 2010-10-15  Eric Blake  <eblake@redhat.com>
8632
8633         ignore-value: make header idempotent
8634         * lib/ignore-value.h: Add double-inclusion guards.
8635         Reported by Stefan Berger.
8636
8637 2010-10-15  Jim Meyering  <meyering@redhat.com>
8638
8639         GNUmakefile: handle "stable" target, not "major"
8640         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8641         lists in maint.mk and announce-gen.  Without this, "make stable"
8642         would fail to ensure that $(VERSION) is up to date.
8643
8644 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8645
8646         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8647         & co.
8648
8649 2010-10-14  Bruno Haible  <bruno@clisp.org>
8650
8651         vasnprintf: Don't set errno to 0.
8652         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8653         block that sets it to 0.
8654         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8655
8656 2010-10-14  Bruno Haible  <bruno@clisp.org>
8657
8658         socketlib: Fix.
8659         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8660         gl_PREREQ_SYS_H_WINSOCK2.
8661         Reported by Ian Beckwith <ianb@erislabs.net>.
8662
8663 2010-10-13  Jim Meyering  <meyering@redhat.com>
8664
8665         test-select-stdin.c: avoid warn_unused_result warnings
8666         * tests/test-select-stdin.c: Include "macros.h".
8667         ASSERT that read and fflush succeed.
8668
8669 2010-10-13  Jim Meyering  <meyering@redhat.com>
8670
8671         git-version-gen: do require git-VC'd files in cwd
8672         * build-aux/git-version-gen: Reject a git version string
8673         if there are no commits associated with the current directory.
8674         This avoids an unlikely false-positive (unrelated dir whose parent
8675         repository also contains a tag matching v*), as pointed out
8676         by Giuseppe Scrivano in
8677         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8678
8679 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8680
8681         argv-iter: omit nonconforming declaration
8682         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8683         enum arg_iter_err declaration, which doesn't conform to C99.
8684         Solaris 10 cc warns about this.
8685
8686 2010-10-13  Eric Blake  <eblake@redhat.com>
8687
8688         termios: fix compilation on mingw
8689         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8690         (gl_TERMIOS_H): Adjust it on mingw.
8691         * modules/termios (Makefile.am): Substitute new key.
8692         * lib/termios.in.h (includes): Make include_next conditional.
8693         * doc/posix-headers/termios.texi (termios.h): Update
8694         documentation.
8695         Reported by Daniel P. Berrange.
8696
8697 2010-10-13  Jim Meyering  <meyering@redhat.com>
8698
8699         git-version-gen: don't require that .git/ be in the current dir
8700         * build-aux/git-version-gen: Adjust this script so that it works
8701         when run from any working directory beneath the top-level .git/-
8702         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8703         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8704
8705         test-select: avoid warn_unused_result warnings
8706         * tests/test-select.c: Include "macros.h".
8707         ASSERT that each call to read, write, and pipe succeeds.
8708         While not technically required, also check each "close".
8709         * modules/select-tests (Files): Add tests/macros.h.
8710
8711         test-symlinkat: remove declaration of unused local
8712         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8713
8714         test-inttostr: avoid shadowing warnings
8715         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8716         and use malloc rather than the stack for the same reason as
8717         mentioned in the comment justifying the other allocation.
8718
8719 2010-10-11  Bruno Haible  <bruno@clisp.org>
8720
8721         stdlib: Allow multiple gnulib generated replacements to coexist.
8722         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8723         Reported by Sam Steingold <sds@gnu.org>.
8724
8725 2010-10-11  Jim Meyering  <meyering@redhat.com>
8726
8727         fix a documentation typo
8728         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8729
8730 2010-10-11  Eric Blake  <eblake@redhat.com>
8731
8732         futimens: work around Solaris 11 bug
8733         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8734         * tests/test-futimens.h (test_futimens): Enhance, rather than
8735         weaken test.
8736         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8737
8738 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8739
8740         Indentation.
8741         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8742         higher-level operators more to the left.
8743
8744 2010-10-11  Jim Meyering  <meyering@redhat.com>
8745
8746         test-futimens: avoid unwarranted test failure on Solaris 5.11
8747         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8748         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8749         because it tries to dereference the NULL name argument.
8750
8751 2010-10-11  Bruno Haible  <bruno@clisp.org>
8752
8753         Indentation.
8754         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8755         indentation.
8756
8757 2010-10-11  Jim Meyering  <meyering@redhat.com>
8758
8759         spawn.in.h: make indentation consistent with parentheses
8760         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8761         Make indentation consistent with parentheses.
8762
8763 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8764
8765         Fix mismatched parens in previous commit
8766         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8767         parens.
8768
8769 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8770
8771         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8772
8773         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8774         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8775         * lib/malloca.c: Include "verify.h".
8776         (verify1): Remove, replacing with a verify call.
8777         * lib/relocwrapper.c (verify1): Likewise.
8778         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8779         Likewise.
8780         * modules/malloca (Depends-on): Add 'verify'.
8781         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8782         * modules/vasnprintf (Depends-on): Add 'verify'.
8783         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8784         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8785         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8786         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8787         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8788         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8789         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8790
8791         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8792
8793         Formerly the style was sometimes 2*X - 1, because the C standard
8794         was wrongly thought to disallow ?: in integral constant expressions.
8795         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8796         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8797         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8798         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8799         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8800         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8801         verify that time_t cannot be floating.
8802
8803 2010-10-08  Eric Blake  <eblake@redhat.com>
8804
8805         time: enforce recent POSIX ruling that time_t is integral
8806         * lib/time.in.h (__time_t_must_be_integral): Detect any
8807         problematic systems, allowing the rest of gnulib to assume POSIX.
8808
8809 2010-10-08  Jim Meyering  <meyering@redhat.com>
8810
8811         fdopendir: fix a bug on systems lacking openat and /proc support
8812         OpenBSD 4.7 is one such system.  The most noticeable effect was
8813         failure of any application making nontrivial use of fts: rm, du,
8814         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8815           ./rm: traversal failed: `a': Bad file descriptor
8816         Debugging that, you see that even though FD 6 was closed just
8817         prior to the opendir call in fd_clone_opendir, its resulting
8818         dir->dd_fd was 8, rather than the expected value of 6:
8819
8820         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8821         93                close (fd);
8822         (gdb) n
8823         94                dir = fd_clone_opendir (dupfd);
8824         (gdb) n
8825         95                saved_errno = errno;
8826         (gdb) p dir->dd_fd
8827         $11 = 8
8828
8829         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8830         The problem is that on OpenBSD, fd_clone_opendir has to resort
8831         to using the old-style save/restore CWD mechanism, due to its
8832         lack of openat/proc support, and *that* would steal the FD (6)
8833         that opendir was supposed to use.
8834
8835         The fix is to squirrel away the desired FD so that save_cwd uses a
8836         different one, and then free the dest FD right before calling opendir.
8837         That guarantees opendir will use the required file descriptor.
8838
8839         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8840
8841 2010-10-08  Bruno Haible  <bruno@clisp.org>
8842
8843         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8844         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8845
8846 2010-10-08  Bruno Haible  <bruno@clisp.org>
8847
8848         nanosleep: Make replacement POSIX compliant.
8849         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8850         is out of range.
8851         Reported by Jim Meyering.
8852
8853 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8854
8855         bootstrap: add hook for altering gnulib.mk, for Bison
8856         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8857         the Bison bootstrapping process can rewrite file names and variables
8858         in this file before later parts of 'bootstrap' use the file.
8859         Bison wants to include lib/gnulib.mk from the top-level makefile,
8860         so it needs the file names in this file to be relative to the top
8861         level, not relative to lib; plus it needs variable names to be
8862         rewritten.
8863         (slurp): Use the new function.
8864
8865         bootstrap: reformat for readability
8866         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8867
8868 2010-10-08  Eric Blake  <eblake@redhat.com>
8869
8870         docs: update cygwin progress
8871         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8872         1.7.7.
8873         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8874         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8875         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8876         * doc/posix-functions/carg.texi (carg): Likewise.
8877         * doc/posix-functions/cargf.texi (cargf): Likewise.
8878         * doc/posix-functions/casin.texi (casin): Likewise.
8879         * doc/posix-functions/casinf.texi (casinf): Likewise.
8880         * doc/posix-functions/casinh.texi (casinh): Likewise.
8881         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8882         * doc/posix-functions/catan.texi (catan): Likewise.
8883         * doc/posix-functions/catanf.texi (catanf): Likewise.
8884         * doc/posix-functions/catanh.texi (catanh): Likewise.
8885         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8886         * doc/posix-functions/ccos.texi (ccos): Likewise.
8887         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8888         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8889         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8890         * doc/posix-functions/cexp.texi (cexp): Likewise.
8891         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8892         * doc/posix-functions/cimag.texi (cimag): Likewise.
8893         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8894         * doc/posix-functions/clog.texi (clog): Likewise.
8895         * doc/posix-functions/clogf.texi (clogf): Likewise.
8896         * doc/posix-functions/conj.texi (conj): Likewise.
8897         * doc/posix-functions/conjf.texi (conjf): Likewise.
8898         * doc/posix-functions/cpow.texi (cpow): Likewise.
8899         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8900         * doc/posix-functions/cproj.texi (cproj): Likewise.
8901         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8902         * doc/posix-functions/creal.texi (creal): Likewise.
8903         * doc/posix-functions/crealf.texi (crealf): Likewise.
8904         * doc/posix-functions/csin.texi (csin): Likewise.
8905         * doc/posix-functions/csinf.texi (csinf): Likewise.
8906         * doc/posix-functions/csinh.texi (csinh): Likewise.
8907         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8908         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8909         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8910         * doc/posix-functions/ctan.texi (ctan): Likewise.
8911         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8912         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8913         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8914         * doc/posix-headers/complex.texi (complex.h): Likewise.
8915
8916 2010-10-07  Jim Meyering  <meyering@redhat.com>
8917
8918         parse-datetime: avoid compilation failure on OpenBSD 4.7
8919         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8920         This works around a compilation failure on OpenBSD 4.7:
8921         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8922
8923 2010-10-07  Eric Blake  <eblake@redhat.com>
8924
8925         docs: update cygwin progress
8926         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8927         1.7.6.
8928         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8929         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8930         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8931         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8932         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8933         Likewise.
8934         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8935         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8936         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8937         Likewise.
8938         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8939         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8940         Likewise.
8941         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8942         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8943         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8944         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8945         Likewise.
8946         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8947         Likewise.
8948         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8949
8950         docs: update parse-datetime history
8951         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8952         documentation of this function's history and alternatives.
8953
8954         cygwin: use more robust version check
8955         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
8956         exclude an eventual cygwin 1.9.1.
8957         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8958         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8959         (gl_FUNC_STRCASESTR): Likewise.
8960         Reported by Bruno Haible.
8961
8962 2010-10-06  Bruno Haible  <bruno@clisp.org>
8963
8964         string, sys_select: Avoid #including large headers unless necessary.
8965         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
8966         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
8967         OSF/1, BeOS, Haiku.
8968         Reported by Jim Meyering.
8969
8970 2010-10-05  Eric Blake  <eblake@redhat.com>
8971
8972         memmem, strstr, strcasestr: fix bug with long periodic needle
8973         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
8974         periodic needle having false positive.
8975         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
8976         and cygwin 1.7.7.
8977         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
8978         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8979         (gl_FUNC_STRCASESTR): Likewise.
8980         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8981         * tests/test-memmem.c (main): Expose the bug.
8982         * tests/test-strcasestr.c (main): Likewise.
8983         * tests/test-strstr.c (main): Likewise.
8984         * tests/test-c-strcasestr.c (main): Likewise.
8985         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
8986         * doc/posix-functions/strstr.texi (strstr): Likewise.
8987         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8988         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
8989
8990 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8991
8992         parse-datetime: do some more renaming
8993         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
8994         parse_datetime, not get_date.  Mention the renaming.
8995         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
8996         in comments.
8997         * m4/bison.m4: Likewise.
8998
8999 2010-10-05  Eric Blake  <eblake@redhat.com>
9000
9001         parse-datetime: better name than get_date
9002         * NEWS: Reword the deprecation notice.
9003         * modules/get_date: Rename to modules/parse-datetime.
9004         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9005         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9006         * lib/get_date.y: Rename to lib/parse-datetime.y.
9007         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9008         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9009         * doc/getdate.texi: Provide fallback wrapper.
9010         * lib/getdate.h: Move guts, and wrap...
9011         * lib/parse-datetime.h: ...new file.
9012         * lib/parse-datetime.y (get_date): Rename...
9013         (parse_datetime): ...to this.
9014         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9015         (gl_PARSE_DATETIME): ...to this.
9016         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9017         documentation.
9018         * modules/getdate (Files): Provide fallback docs and header.
9019         (Notice, Depends-on): Update references.
9020         * tests/test-parse-datetime.c: Likewise.
9021         * DEPENDENCIES: Likewise.
9022         * MODULES.html.sh (Date and time <time.h>): Likewise.
9023         * doc/parse-datetime.texi (Date input formats)
9024         (Authors of parse_datetime): Likewise.
9025         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9026         (Include): Likewise.
9027         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9028         * gnulib-tool: Likewise.
9029         * m4/bison.m4 (gl_BISON): Likewise.
9030         Suggested by Bruno Haible.
9031
9032 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9033
9034         more ports to Solaris tr, which needs [] around ranges
9035         * gnulib-tool: Solaris tr needs [] around ranges.
9036         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9037         * tests/test-pipe-filter-gi1.c (main): Likewise.
9038         * tests/test-pipe-filter-ii1.c (main): Likewise.
9039
9040 2010-10-05  Eric Blake  <eblake@redhat.com>
9041
9042         bootstrap: fix Solaris regression
9043         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9044         around ranges.
9045         Reported by Pádraig Brady.
9046
9047         bootstrap: work with pkg-config
9048         * build-aux/bootstrap (check_versions): Also transliterate - in
9049         prerequisite name.
9050         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9051         prerequisites that were already found, to avoid confusion.
9052         Reported by Justin Clift.
9053
9054         faccessat: remove unused wrappers
9055         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9056         presence of these wrappers dragged in -lgen on Solaris.
9057         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9058
9059 2010-10-05  Jim Meyering  <meyering@redhat.com>
9060
9061         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9062         * Makefile (sc_pragma_columns): New syntax-check rule.
9063
9064 2010-10-04  Bruno Haible  <bruno@clisp.org>
9065
9066         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9067         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9068         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9069         Reported by Bruce Korb and Eric Blake.
9070
9071 2010-10-04  Bruno Haible  <bruno@clisp.org>
9072
9073         threadlib: Make option --with-libpth-prefix work.
9074         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9075         use $LIBPTH, not just -lpth.
9076
9077 2010-10-04  Bruno Haible  <bruno@clisp.org>
9078
9079         Avoid line length limitation from HP NonStop system header files.
9080         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9081         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9082         * lib/ctype.in.h: Likewise.
9083         * lib/dirent.in.h: Likewise.
9084         * lib/errno.in.h: Likewise.
9085         * lib/fcntl.in.h: Likewise.
9086         * lib/float.in.h: Likewise.
9087         * lib/getopt.in.h: Likewise.
9088         * lib/iconv.in.h: Likewise.
9089         * lib/inttypes.in.h: Likewise.
9090         * lib/langinfo.in.h: Likewise.
9091         * lib/locale.in.h: Likewise.
9092         * lib/math.in.h: Likewise.
9093         * lib/netdb.in.h: Likewise.
9094         * lib/netinet_in.in.h: Likewise.
9095         * lib/poll.in.h: Likewise.
9096         * lib/pthread.in.h: Likewise.
9097         * lib/pty.in.h: Likewise.
9098         * lib/sched.in.h: Likewise.
9099         * lib/se-selinux.in.h: Likewise.
9100         * lib/search.in.h: Likewise.
9101         * lib/signal.in.h: Likewise.
9102         * lib/spawn.in.h: Likewise.
9103         * lib/stdarg.in.h: Likewise.
9104         * lib/stddef.in.h: Likewise.
9105         * lib/stdint.in.h: Likewise.
9106         * lib/stdio.in.h: Likewise.
9107         * lib/stdlib.in.h: Likewise.
9108         * lib/string.in.h: Likewise.
9109         * lib/strings.in.h: Likewise.
9110         * lib/sys_file.in.h: Likewise.
9111         * lib/sys_ioctl.in.h: Likewise.
9112         * lib/sys_select.in.h: Likewise.
9113         * lib/sys_socket.in.h: Likewise.
9114         * lib/sys_stat.in.h: Likewise.
9115         * lib/sys_time.in.h: Likewise.
9116         * lib/sys_times.in.h: Likewise.
9117         * lib/sys_utsname.in.h: Likewise.
9118         * lib/sys_wait.in.h: Likewise.
9119         * lib/sysexits.in.h: Likewise.
9120         * lib/termios.in.h: Likewise.
9121         * lib/time.in.h: Likewise.
9122         * lib/unistd.in.h: Likewise.
9123         * lib/wchar.in.h: Likewise.
9124         * lib/wctype.in.h: Likewise.
9125         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9126         * modules/ctype (Makefile.am): Likewise.
9127         * modules/dirent (Makefile.am): Likewise.
9128         * modules/errno (Makefile.am): Likewise.
9129         * modules/fcntl-h (Makefile.am): Likewise.
9130         * modules/float (Makefile.am): Likewise.
9131         * modules/getopt-posix (Makefile.am): Likewise.
9132         * modules/iconv-h (Makefile.am): Likewise.
9133         * modules/inttypes (Makefile.am): Likewise.
9134         * modules/langinfo (Makefile.am): Likewise.
9135         * modules/locale (Makefile.am): Likewise.
9136         * modules/math (Makefile.am): Likewise.
9137         * modules/netdb (Makefile.am): Likewise.
9138         * modules/netinet_in (Makefile.am): Likewise.
9139         * modules/poll-h (Makefile.am): Likewise.
9140         * modules/pthread (Makefile.am): Likewise.
9141         * modules/pty (Makefile.am): Likewise.
9142         * modules/sched (Makefile.am): Likewise.
9143         * modules/search (Makefile.am): Likewise.
9144         * modules/selinux-h (Makefile.am): Likewise.
9145         * modules/signal (Makefile.am): Likewise.
9146         * modules/spawn (Makefile.am): Likewise.
9147         * modules/stdarg (Makefile.am): Likewise.
9148         * modules/stddef (Makefile.am): Likewise.
9149         * modules/stdint (Makefile.am): Likewise.
9150         * modules/stdio (Makefile.am): Likewise.
9151         * modules/stdlib (Makefile.am): Likewise.
9152         * modules/string (Makefile.am): Likewise.
9153         * modules/strings (Makefile.am): Likewise.
9154         * modules/sys_file (Makefile.am): Likewise.
9155         * modules/sys_ioctl (Makefile.am): Likewise.
9156         * modules/sys_select (Makefile.am): Likewise.
9157         * modules/sys_socket (Makefile.am): Likewise.
9158         * modules/sys_stat (Makefile.am): Likewise.
9159         * modules/sys_time (Makefile.am): Likewise.
9160         * modules/sys_times (Makefile.am): Likewise.
9161         * modules/sys_utsname (Makefile.am): Likewise.
9162         * modules/sys_wait (Makefile.am): Likewise.
9163         * modules/sysexits (Makefile.am): Likewise.
9164         * modules/termios (Makefile.am): Likewise.
9165         * modules/time (Makefile.am): Likewise.
9166         * modules/unistd (Makefile.am): Likewise.
9167         * modules/wchar (Makefile.am): Likewise.
9168         * modules/wctype (Makefile.am): Likewise.
9169
9170 2010-10-04  Bruno Haible  <bruno@clisp.org>
9171
9172         read-file tests: Avoid a test failure on NonStop Kernel.
9173         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9174         a regular file.
9175         Reported by Joachim Schmitz <schmitz@hp.com>.
9176
9177 2010-10-03  Bruno Haible  <bruno@clisp.org>
9178
9179         gnulib-tool: Fixes for --create-testdir with --libtool.
9180         * gnulib-tool (func_get_automake_snippet): Don't augment
9181         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9182         an executable.
9183         (func_create_testdir): Handle module 'alloca' like func_import.
9184         Reported by Bruce Korb <bruce.korb@gmail.com>.
9185
9186 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9187
9188         Avoid some lines longer than 80 characters.
9189         * lib/stdint.in.h: Break long comment lines.
9190         * lib/math.in.h: Likewise.
9191         (_GL_NUM_UINT_WORDS): New macro, for readability.
9192         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9193         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9194         * lib/stdlib.in.h: Likewise.
9195         * lib/spawn.in.h: Likewise.
9196         * lib/sys_socket.in.h: Update an URL.
9197         * lib/sys_stat.in.h: Break long line.
9198
9199 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9200
9201         Improve pmccabe2html.
9202         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9203         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9204         when the sources change. Remove the line in the HTML about "Used
9205         ranges" (which implied that there might be other unused ranges),
9206         rename "Resume" to "Summary" (easier to understand for more users).
9207         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9208         styles, and some unnecessary blank lines.
9209
9210 2010-10-03  Bruno Haible  <bruno@clisp.org>
9211             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9212
9213         acl: Add support for ACLs on NonStop Kernel.
9214         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9215         Check whether the function aclsort() exists.
9216         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9217         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9218         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9219         (acl_nontrivial [HAVE_ACLSORT]: New function.
9220         (file_has_acl): Implement for NonStop Kernel.
9221         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9222         (qset_acl): Implement for NonStop Kernel.
9223         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9224         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9225         (main): Implement for NonStop Kernel.
9226         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9227         Kernel. Handle this flavor.
9228         * tests/test-set-mode-acl.sh: Likewise.
9229         * tests/test-copy-acl.sh: Likewise.
9230         * tests/test-copy-file.sh: Likewise.
9231
9232 2010-10-03  Bruno Haible  <bruno@clisp.org>
9233
9234         Info about ACLs on NonStop Kernel.
9235         * doc/acl-resources.txt: Add info about NonStop Kernel.
9236         References by Joachim Schmitz <schmitz@hp.com>.
9237
9238 2010-10-02  Bruno Haible  <bruno@clisp.org>
9239
9240         Define missing EDQUOT on NonStop Kernel.
9241         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9242         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9243         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9244         missing.
9245         * doc/posix-headers/errno.texi: Mention the NSK bug.
9246         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9247         Reported by Joachim Schmitz <schmitz@hp.com>.
9248
9249 2010-10-02  Bruno Haible  <bruno@clisp.org>
9250
9251         Update doc for POSIX:2008.
9252         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9253         Update URL of POSIX specification.
9254
9255 2010-10-02  Bruno Haible  <bruno@clisp.org>
9256
9257         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9258         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9259         from gnulib, not from Automake.
9260
9261 2010-10-02  Bruno Haible  <bruno@clisp.org>
9262
9263         New module 'system-posix'.
9264         * modules/system-posix: New file.
9265         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9266         module is present.
9267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9268         GNULIB_SYSTEM_POSIX.
9269         * modules/stdlib (Depends-on): Remove sys_wait.
9270         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9271         * doc/posix-functions/system.texi: Mention the new module.
9272         * doc/posix-headers/stdlib.texi: Likewise.
9273         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9274         define test_sys_wait_macros to a no-op.
9275         Reported by Sam Steingold <sds@gnu.org>.
9276
9277 2010-09-30  Bruno Haible  <bruno@clisp.org>
9278
9279         More renaming from 'getdate' to 'get_date'.
9280         * doc/get_date.texi: Renamed from doc/getdate.texi.
9281         * modules/get_date (Files): Update.
9282         * MODULES.html.sh (Date and time <time.h>): Update.
9283         * DEPENDENCIES: Update.
9284         * gnulib-tool: Update comment.
9285         * m4/bison.m4 (gl_BISON): Likewise.
9286         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9287
9288 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9289
9290         bootstrap: support ACLOCAL_FLAGS during aclocal
9291         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9292         can add additional -I dir for third-party .m4 files.
9293
9294 2010-09-30  Eric Blake  <eblake@redhat.com>
9295
9296         bootstrap: use glibtoolize on MacOS
9297         * build-aux/bootstrap (check_versions): Convert libtool into
9298         libtoolize.
9299         (tool search): Move libtool check earlier, and look for
9300         glibtoolize for MacOS.
9301         (gnulib_tool_options): Auto-add --libtool when appropriate.
9302         Reported by Justin Clift.
9303
9304         poll: fix typo that broke test on MacOS
9305         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9306         Reported by Justin Clift.
9307
9308         getdate: rename to get_date
9309         Note: getdate.h is not renamed, to minimize client impact.
9310         * modules/getdate: Mark obsolete.  Move old contents...
9311         * modules/get_date: ...to new module name.
9312         * modules/getdate-tests: Move...
9313         * modules/get_date-tests: ...here.
9314         * m4/getdate.m4: Move...
9315         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9316         * lib/getdate.y: Move...
9317         * lib/get_date.y: ...here.
9318         * tests/test-getdate.c: Move...
9319         * tests/test-get_date.c: ...here.
9320         * doc/posix-functions/getdate.texi (getdate): Update name.
9321         * NEWS: Mention the change.
9322
9323 2010-09-29  Bruno Haible  <bruno@clisp.org>
9324
9325         Separate the module 'waitpid' from the module 'sys_wait'.
9326         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9327         present.
9328         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9329         gl_MODULE_INDICATOR_FOR_TESTS.
9330         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9331         * modules/sys_wait (Depends-on): Remove waitpid.
9332         (Makefile.am): Substitute GNULIB_WAITPID.
9333         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9334         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9335         signature only if the 'waitpid' module is present.
9336         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9337         * NEWS: Mention the change.
9338         * modules/grantpt (Depends-on): Add waitpid.
9339         * modules/wait-process (Depends-on): Likewise.
9340
9341 2010-09-29  Bruno Haible  <bruno@clisp.org>
9342
9343         More tests for module 'sys_wait'.
9344         * modules/sys_wait-c++-tests: New file.
9345         * tests/test-sys_wait-c++.cc: New file.
9346         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9347         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9348
9349 2010-09-29  Bruno Haible  <bruno@clisp.org>
9350
9351         New module 'waitpid'.
9352         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9353         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9354         Don't include <process.h>.
9355         (waitpid): Declare only, using modern idiom.
9356         * m4/waitpid.m4: New file.
9357         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9358         * modules/waitpid: New file.
9359         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9360         (Makefile.am): Update.
9361         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9362
9363 2010-09-28  Bruno Haible  <bruno@clisp.org>
9364
9365         poll: Assume ANSI C.
9366         * lib/poll.c (poll): Use an ANSI C declaration.
9367
9368 2010-09-28  Bruno Haible  <bruno@clisp.org>
9369
9370         poll-h: Create poll.h on all platforms.
9371         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9372         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9373         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9374         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9375         (gl_REPLACE_POLL_H): Don't set POLL_H.
9376         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9377         * modules/poll-h (Depends-on): Add include_next.
9378         (Makefile.am): Create poll.h unconditionally. Substitute also
9379         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9380
9381 2010-09-28  Bruno Haible  <bruno@clisp.org>
9382
9383         Tests for module 'poll-h'.
9384         * modules/poll-h-c++-tests: New file.
9385         * tests/test-poll-h-c++.cc: New file.
9386
9387         Tests for module 'poll-h'.
9388         * modules/poll-h-tests: New file.
9389         * tests/test-poll-h.c: New file.
9390
9391 2010-09-28  Bruno Haible  <bruno@clisp.org>
9392
9393         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9394         * modules/poll-h (Depends-on): Add 'extensions'.
9395
9396 2010-09-28  Bruno Haible  <bruno@clisp.org>
9397
9398         New module 'poll-h'.
9399         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9400         (poll): Use modern idiom.
9401         * modules/poll-h: New file.
9402         * modules/poll (Files): Remove lib/poll.in.h.
9403         (Depends-on): Add poll-h.
9404         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9405         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9406         * m4/poll_h.m4: New file.
9407         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9408         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9409         and invoke gl_REPLACE_POLL_H.
9410         * lib/poll.c: Use common idiom.
9411         * tests/test-poll.c: Likewise.
9412         * doc/posix-headers/poll.texi: Mention the poll-h module.
9413         Suggested by Eric Blake.
9414
9415 2010-09-26  Bruno Haible  <bruno@clisp.org>
9416
9417         sys_wait: Implement WSTOPSIG.
9418         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9419         Reported by Simon Josefsson.
9420
9421 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9422
9423         stdlib, sys_wait: Avoid compilation error on mingw.
9424         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9425
9426 2010-09-26  Bruno Haible  <bruno@clisp.org>
9427
9428         stdlib tests: Avoid code duplication.
9429         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9430         * modules/sys_wait-tests (Files): Likewise.
9431         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9432         * tests/test-stdlib.c: Include test-sys_wait.h.
9433         (main): Invoke test_sys_wait_macros.
9434         * tests/test-sys_wait.c: Include test-sys_wait.h.
9435         (main): Invoke test_sys_wait_macros.
9436
9437 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9438
9439         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9440         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9441         sure Windows sockets are working before calling getaddrinfo.
9442         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9443         * doc/gnulib.texi (Windows sockets): Fix typo.
9444
9445 2010-09-25  Bruno Haible  <bruno@clisp.org>
9446
9447         Tests for module 'regex-quote'.
9448         * modules/regex-quote-tests: New file.
9449         * tests/test-regex-quote.c: New file.
9450
9451         New module 'regex-quote'.
9452         * lib/regex-quote.h: New file.
9453         * lib/regex-quote.c: New file.
9454         * modules/regex-quote: New file.
9455         Suggested by Reuben Thomas <rrt@sc3d.org>.
9456
9457 2010-09-24  Bruno Haible  <bruno@clisp.org>
9458
9459         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9460         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9461
9462 2010-09-23  Bruno Haible  <bruno@clisp.org>
9463
9464         setenv: Relax license.
9465         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9466         Blake.
9467         Requested by Eric Blake.
9468
9469 2010-09-22  Bruno Haible  <bruno@clisp.org>
9470
9471         termios: Relax license.
9472         * modules/termios (License): Change to LGPLv2+.
9473         Requested by Eric Blake.
9474
9475 2010-09-22  Bruno Haible  <bruno@clisp.org>
9476
9477         threadlib: Allow the package to change the default to 'no'.
9478         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9479         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9480         Reported by Paul Eggert.
9481
9482 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9483             Bruno Haible  <bruno@clisp.org>
9484
9485         Fix endless loop in mbmemcasecoll.
9486         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9487         byte.
9488         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9489
9490 2010-09-22  Bruno Haible  <bruno@clisp.org>
9491
9492         Tests for module 'memcoll'.
9493         * modules/memcoll-tests: New file.
9494         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9495
9496         memcoll, xmemcoll: Clarify size vs. length.
9497         * modules/memcoll.c (memcoll0): Clarify specification.
9498         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9499         passed to collate_error.
9500
9501 2010-09-22  Bruno Haible  <bruno@clisp.org>
9502
9503         Tests for module 'memcasecmp'.
9504         * modules/memcasecmp-tests: New file.
9505         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9506
9507 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9508
9509         * lib/pthread.in.h: Add split double-inclusion guard, and include
9510         system <pthread.h> if there is one.  Use @@-style as in other
9511         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9512         pthread.h doesn't.
9513         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9514         (pthread_mutexattr_settype, pthread_mutex_trylock):
9515         New static inline functions, if there's no system <pthread.h>.
9516         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9517         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9518         Approximate with mutexes if the system lacks spinlocks, as in
9519         MacOS.
9520         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9521         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9522         @@-style.  Check for spinlocks separately.
9523         (gl_PTHREAD_DEFAULTS): New macro.
9524         * modules/pthread: Redo to use a more typical style for in.h files.
9525
9526 2010-09-21  Eric Blake  <eblake@redhat.com>
9527
9528         net_if: enhance tests
9529         * tests/test-net_if.c (main): Move signature checks earlier.
9530         Print failures to stderr.
9531         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9532         Document the bug that we do not yet fix.
9533
9534 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9535
9536         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9537         about gnulib, not GSS.
9538
9539 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9540
9541         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9542         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9543         for Emacs.
9544         * build-aux/pmccabe2html: Make Makefile.am example code more
9545         cut-and-paste friendly.
9546
9547 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9548
9549         * tests/test-net_if.c: New file.
9550         * modules/net_if-tests: New file.
9551
9552 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9553
9554         pthread: add pthread_spin_destroy
9555         * lib/pthread.in.h (pthread_spin_destroy): New function.
9556
9557 2010-09-19  Bruno Haible  <bruno@clisp.org>
9558
9559         gnulib-tool: Fix --help output.
9560         * gnulib-tool (func_usage): Fix help message.
9561         Reported by Reuben Thomas <rrt@sc3d.org>.
9562
9563 2010-09-18  Jim Meyering  <meyering@redhat.com>
9564
9565         maint.mk: avoid unexpanded \n in two diagnostics
9566         * top/maint.mk (sc_prohibit_always_true_header_tests):
9567         Don't use a literal \n in a halt=... assignment.  It would not be
9568         expanded, and the two \n bytes would appear in the diagnostic output
9569         rather than the desired newline.  Use halt=$$(printf ... instead.
9570         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9571
9572 2010-09-18  Bruno Haible  <bruno@clisp.org>
9573
9574         netinet_in: Doc tweak.
9575         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9576         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9577
9578 2010-09-18  Jim Meyering  <meyering@redhat.com>
9579
9580         init.sh: correct an outdated comment
9581         * tests/init.sh (create_exe_shims_):  s/function/alias/
9582
9583         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9584         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9585         a file named "*.exe" is removed between the glob expansion and the
9586         processing of that oddly named file.
9587
9588 2010-09-17  Eric Blake  <eblake@redhat.com>
9589
9590         mirbsd: add some more support
9591         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9592         in BSD family.
9593         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9594         devices as OpenBSD.
9595         * m4/host-os.m4 (mirbsd): Add MirBSD.
9596
9597         tests: fix unportable assumption on sys/wait.h
9598         * tests/test-sys_wait.c (main): Relax test.
9599         * tests/test-stdlib.c (main): Likewise.
9600
9601         init.sh: accomodate directory with no .exes
9602         * tests/init.sh: Accomodate directory containing only scripts.
9603
9604         tests: avoid compiler warning
9605         * tests/test-stdlib.c (main): Use the variable.
9606
9607         fdutimens, fdutimensat: update signature, again
9608         * lib/utimens.h (gl_futimens): Delete, and move signature...
9609         (fdutimens): ...here.
9610         (fdutimensat): Rearrange signature.
9611         (lutimensat): Rename variable for clarity.
9612         * lib/fdutimensat.c (fdutimensat): Update signature.
9613         * lib/utimens.c (fdutimens): Likewise.
9614         (gl_futimens): Delete.
9615         (utimens, lutimens): Update callers.
9616         * lib/futimens.c (futimens): Likewise.
9617         * tests/test-fdutimensat.c: Likewise.
9618         * tests/test-utimens.c: Likewise.
9619         * tests/test-futimens.h: Update comment.
9620         * NEWS: Mention this.
9621         Suggested by Paul Eggert.
9622
9623 2010-09-17  Bruno Haible  <bruno@clisp.org>
9624
9625         Take over the maintenance of some older macros from Autoconf.
9626         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9627         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9628         GNU Autoconf.
9629         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9630         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9631
9632 2010-09-17  Eric Blake  <eblake@redhat.com>
9633
9634         fdutimensat: drop atflag validation
9635         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9636         with valid fd, to close a race scenario where futimens is
9637         unsupported and FILE was replaced by a symlink.
9638         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9639         accordingly.
9640         Suggested by Paul Eggert.
9641
9642 2010-09-16  Bruno Haible  <bruno@clisp.org>
9643
9644         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9645         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9646
9647 2010-09-16  Bruno Haible  <bruno@clisp.org>
9648
9649         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9650         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9651         login_tty exists.
9652         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9653
9654 2010-09-16  Bruno Haible  <bruno@clisp.org>
9655
9656         login_tty: Make the replacement code work on BSD systems.
9657         * lib/login_tty.c: Include <sys/ioctl.h>.
9658         (login_tty): Use ioctl TIOCSCTTY when available.
9659         * modules/login_tty (Depends-on): Add sys_ioctl.
9660         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9661
9662 2010-09-16  Bruno Haible  <bruno@clisp.org>
9663
9664         login_tty: Stricter unit test.
9665         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9666         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9667         and tcgetsid() after login_tty.
9668         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9669
9670 2010-09-16  Bruno Haible  <bruno@clisp.org>
9671
9672         New module 'tcgetsid'.
9673         * lib/tcgetsid.c: New file.
9674         * m4/tcgetsid.m4: New file.
9675         * modules/tcgetsid: New file.
9676         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9677         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9678         GNULIB_TCGETSID, HAVE_TCGETSID.
9679         * lib/termios.in.h: Include <sys/types.h>.
9680         (tcgetsid): New declaration.
9681         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9682         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9683         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9684         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9685
9686 2010-09-16  Bruno Haible  <bruno@clisp.org>
9687
9688         Tests for module 'termios'.
9689         * modules/termios-c++-tests: New file.
9690         * modules/termios-tests: New file.
9691         * tests/test-termios-c++.cc: New file.
9692         * tests/test-termios.c: New file.
9693
9694         New module 'termios'.
9695         * modules/termios: New file.
9696         * lib/termios.in.h: New file.
9697         * m4/termios_h.m4: New file.
9698         * doc/posix-headers/termios.texi: Mention the new module.
9699
9700 2010-09-16  Eric Blake  <eblake@redhat.com>
9701
9702         fdutimensat: add an atflag parameter
9703         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9704         * lib/utimens.h (fdutimensat): Update prototype.
9705         * tests/test-fdutimensat.c: Adjust test to match.
9706         * NEWS: Document the change.
9707         Suggested by Paul Eggert.
9708
9709 2010-09-16  Bruno Haible  <bruno@clisp.org>
9710
9711         Fix typos in comments.
9712         * lib/striconveh.h: Fix typo in comment.
9713         * lib/login_tty.c (login_tty): Likewise.
9714
9715 2010-09-15  Bruno Haible  <bruno@clisp.org>
9716
9717         stdlib: clarify MirBSD WEXITSTATUS bug
9718         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9719         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9720
9721 2010-09-15  Eric Blake  <eblake@redhat.com>
9722
9723         stdlib: work around MirBSD WEXITSTATUS bug
9724         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9725         * modules/stdlib (Depends-on): Add sys_wait.
9726         * tests/test-sys_wait.c (main): Enhance test.
9727         * tests/test-stdlib.c (main): Likewise.
9728         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9729
9730         docs: mention MacOS issue with WEXITSTATUS(constant)
9731         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9732         issue.
9733         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9734
9735         strnlen: add tests
9736         * modules/strnlen-tests: New file.
9737         * tests/test-strnlen.c: Likewise.
9738
9739 2010-09-14  Bruno Haible  <bruno@clisp.org>
9740
9741         unistr/base: Avoid link errors when module 'libunistring' is also used.
9742         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9743         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9744         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9745         Declare also when HAVE_LIBUNISTRING is set.
9746         Reported by Pádraig Brady <P@draigbrady.com>.
9747
9748 2010-09-14  Eric Blake  <eblake@redhat.com>
9749
9750         test-rawmemchr: make more robust
9751         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9752         (Depends-on, configure.ac): Add needed prerequisites to use it.
9753         * modules/memchr-tests (Files, Depends-on, configure.ac):
9754         Likewise, to avoid implicit reliance on memchr module prereqs.
9755         * tests/test-memchr.c (main): Ensure proper masking.
9756         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9757         reads.
9758
9759         memchr: detect glibc Alpha bug
9760         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9761         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9762         Alpha.
9763         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9764         * tests/test-memchr.c (main): Enhance test.
9765         Reported by Nelson H. F. Beebe.
9766
9767 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9768
9769         fts, getcwd, glob: audit for dirfd returning -1
9770         * lib/fts.c (opendir): Remove #define; no longer used.
9771         (opendirat): New arg PDIR_FD.  All callers changed.
9772         (fts_build, _opendir2): Use new opendirat to avoid the need for
9773         dirfd, or for checking whether dirfd returns a negative value.
9774         Don't use opendir; always use openat followed by fdopendir.
9775         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9776         it.
9777         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9778         returns -1 here.
9779         * modules/fts (Depends-on): Remove dirfd.
9780         * modules/getcwd (Depends-on): Likewise.
9781
9782 2010-09-13  Eric Blake  <eblake@redhat.com>
9783
9784         float: fix broken MirBSD header
9785         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9786         * doc/posix-headers/float.texi (float.h): Document it.
9787
9788 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9789
9790         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9791         * lib/fts.c (opendirat): New arg extra_flags.
9792         (__opendir2): Use it to avoid following symlinks when opening
9793         a directory, if symlinks are not supposed to be followed.  See
9794         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9795
9796         fdopendir: preserve argument fd before returning
9797         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9798         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9799         (fdopendir): Use them, arranging for FD to be open to the same
9800         directory that it was when it started.  (It might be temporarily
9801         closed while fdopendir is running, so this not thread- or
9802         signal-safe.)  Be careful to do the right thing even when file
9803         descriptors are scarce and dup fails with errno == EMFILE.  See
9804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9805
9806 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9807
9808         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9809         * NEWS: Document change.
9810         * m4/regex.m4: Disable test for regoff_t size.
9811
9812 2010-09-13  Jim Meyering  <meyering@redhat.com>
9813
9814         fts: don't operate on an invalid file descriptor after failed dup
9815         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9816         negative file descriptor.
9817
9818 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9819
9820         savedir: add streamsavedir, deprecate fdsavedir
9821         * NEWS: Mention deprecation of fdsavedir.
9822         * lib/savedir.c (streamsavedir): New extern function, whose name
9823         ends in "savedir" to be consistent with the others.  This differs
9824         from savedirstream in that it doesn't close its argument.  The
9825         next version of GNU tar will use this instead of fdsavedir, to
9826         avoid some race conditions and conserve file descriptors.
9827         (savedirstream): Reimplement as a wrapper around streamsavedir.
9828         (fdsavedir): Add a comment deprecating this function.  As far as
9829         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9830         * lib/savedir.h (streamsavedir): New decl.
9831         (fdsavedir): Add a comment deprecating this.
9832
9833 2010-09-10  Bruno Haible  <bruno@clisp.org>
9834
9835         langinfo: Fix last commit.
9836         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9837         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9839
9840 2010-09-10  Bruno Haible  <bruno@clisp.org>
9841
9842         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9843         * lib/progreloc.c (O_EXEC): Define fallback.
9844
9845 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9846
9847         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9848         * NEWS: Document recent changes to fcntl-h.
9849         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9850         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9851         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9852         Similarly for O_SEARCH; this last was already true, but not documented.
9853         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9854         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9855         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9856         Likewise.
9857         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9858         is zero, not whether it is defined.
9859         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9860         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9861         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9862
9863 2010-09-10  Bruno Haible  <bruno@clisp.org>
9864
9865         langinfo, nl_langinfo: Fix for IRIX 5.3.
9866         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9867         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9868         HAVE_LANGINFO_YESEXPR.
9869         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9870         HAVE_LANGINFO_YESEXPR.
9871         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9872         HAVE_LANGINFO_T_FMT_AMPM is 0.
9873         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9874         HAVE_LANGINFO_YESEXPR is 0.
9875         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9876         NOEXPR.
9877         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9878         * doc/posix-functions/nl_langinfo.texi: Likewise.
9879         Reported by Eric Blake.
9880
9881 2010-09-10  Bruno Haible  <bruno@clisp.org>
9882
9883         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9884         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9885         on FreeBSD 8.0 and OpenBSD 4.6.
9886         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9887         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9888         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9889         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9890         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9891         ac_includes_default.
9892         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9893
9894 2010-09-09  Eric Blake  <eblake@redhat.com>
9895
9896         strsignal: work around NetBSD bug
9897         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9898         * lib/string.in.h (includes): Likewise.
9899         * doc/posix-functions/strsignal.texi (strsignal): Document the
9900         bug.
9901         Reported by Nelson H. F. Beebe.
9902
9903         gnulib-tool: work with NetBSD /bin/sh
9904         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9905         (func_get_description, func_get_comment, func_get_status)
9906         (func_get_notice, func_get_applicability, func_get_filelist)
9907         (func_get_dependencies, func_get_autoconf_early_snippet)
9908         (func_get_autoconf_snippet, func_get_automake_snippet)
9909         (func_get_include_directive, func_get_link_directive)
9910         (func_get_license, func_get_maintainer, func_import): Avoid
9911         shell syntax errors from parsing syntax extensions.
9912
9913 2010-09-09  Bruno Haible  <bruno@clisp.org>
9914
9915         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9916         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9917         a reliable way to determine whether the 'alias' command works.
9918
9919 2010-09-08  Jim Meyering  <meyering@redhat.com>
9920
9921         init.sh: penalize a set-x-impaired shell; don't disqualify it
9922         * tests/init.sh: Too many shells corrupt application stderr when
9923         you set -x, so we can't afford to disqualify them, since at least
9924         on Irix-6.5, that would disqualify all bourne shells.
9925         Instead, use a two-pass approach.
9926         On the first pass, try to find a shell that meets the stricter
9927         condition that set -x does not corrupt stderr.
9928         If no shell meets the stricter condition, retest each candidate
9929         shell, but without that extra condition.  Finally, when
9930         VERBOSE=yes is requested and set -x might cause trouble, simply
9931         issue a warning and refrain from enabling debug output.
9932
9933 2010-09-08  Eric Blake  <eblake@redhat.com>
9934
9935         unsetenv: fix OpenBSD bug
9936         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9937         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9938         documentation.
9939         Reported by Jim Meyering.
9940
9941         strtod: work around IRIX 6.5 bug
9942         * lib/strtod.c (strtod): Reparse number on shorter string if
9943         exponent parse was invalid.
9944         * tests/test-strtod.c (main): Add check for "0x1p 2".
9945         Reported by Tom G. Christensen.
9946
9947         getopt: optimize previous patch
9948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9949         empty variable.  Speed up awk script.
9950         Reported by Paolo Bonzini.
9951
9952 2010-09-08  Jim Meyering  <meyering@redhat.com>
9953
9954         test.sh: disqualify shells for which set -x corrupts stderr
9955         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
9956         and OpenBSD 4.7.  They make it so with "set -x", environment settings
9957         appear in stderr output.  For example, this command:
9958             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
9959         prints "P=1" on those two systems:
9960
9961 2010-09-08  Bruno Haible  <bruno@clisp.org>
9962
9963         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9964         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
9965         commands, because some shells ignore redirections when there is an
9966         error in the command lookup.
9967         Reported by Eric Blake.
9968
9969 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
9970
9971         * lib/regex.h: Fix a mention of `regex_compile' (should be
9972         `re_compile_pattern').
9973         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
9974         (re_set_registers): Correct name of parameter in comment.
9975
9976         * doc/regex.texi: Add documentation for missing syntax flags.
9977         Remove commented-out documentation of defunct syntax option
9978         RE_NO_EMPTY_ALTS.
9979         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
9980         Add documentation of re_set_registers.
9981         Document trick to re-use a pattern buffer by setting fastmap manually.
9982         Update documentation of struct re_pattern_buffer per public members.
9983         Uncomment documentation of equivalence class operators and
9984         collating symbol operators, since they are now implemented,
9985         Explain leftmost-longest matching in relation to alternatives.
9986         Tidy documentation of substring matching.
9987         Remove POSIX documentation, which is done better in
9988         glibc, and refer the reader there. Keep BSD API documentation, as
9989         that is not readily available elsewhere.
9990
9991 2010-09-07  Eric Blake  <eblake@redhat.com>
9992
9993         getopt: handle POSIXLY_CORRECT set but not exported
9994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
9995         export state of POSIXLY_CORRECT, due to bash set -o posix.
9996         Reported by Dustin J. Mitchell.
9997
9998 2010-09-05  Bruno Haible  <bruno@clisp.org>
9999
10000         gnulib-tool: Highlight the changed options.
10001         * gnulib-tool (func_usage): Display the --import, --add-import,
10002         --remove-import explanations in bold font.
10003
10004 2010-09-06  Karl Berry  <karl@gnu.org>
10005
10006         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10007
10008 2010-09-05  Bruno Haible  <bruno@clisp.org>
10009
10010         uniwidth/width: Update comment.
10011         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10012         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10013
10014 2010-09-05  Bruno Haible  <bruno@clisp.org>
10015
10016         isinf, isnan: Relax license.
10017         * modules/isinf (License): Change from GPL to LGPL, with consent from
10018         Ben Pfaff.
10019         * modules/isnan (License): Likewise.
10020         Requested by Ludovic Courtès.
10021
10022 2010-09-04  Bruno Haible  <bruno@clisp.org>
10023
10024         gnulib-tool: Help migration from --import to --add-import or --update.
10025         * gnulib-tool: Emit a verbose error message when --import is used
10026         without any module name.
10027
10028 2010-09-04  Bruno Haible  <bruno@clisp.org>
10029
10030         Update doc about gnulib-tool.
10031         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10032         'gnulib-tool --update' in more detail.
10033         Reported by Eric Blake.
10034
10035 2010-09-04  Bruno Haible  <bruno@clisp.org>
10036
10037         gnulib-tool: Change --import. New options --add/remove-import.
10038         * gnulib-tool: New options --add-import, --remove-import.
10039         (func_usage): Document them.
10040         (have_associative): Define always.
10041         (func_import): In import mode, don't merge the specified settings with
10042         the cached settings. Implement remove-import mode.
10043         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10044         Explain when to use them versus --import.
10045         (Simple update): Use --add-import instead of --import.
10046         * NEWS: Mention the change.
10047
10048 2010-09-04  Bruno Haible  <bruno@clisp.org>
10049
10050         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10051         separate gnulib.mk.
10052
10053 2010-09-04  Bruno Haible  <bruno@clisp.org>
10054
10055         gnulib-tool: Don't talk about CVS any more.
10056         * gnulib-tool (func_usage, func_import): Write "version control"
10057         instead of CVS.
10058
10059 2010-09-04  Jim Meyering  <meyering@redhat.com>
10060
10061         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10062         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10063         false positives (whose names may be ill-chosen) when searching
10064         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10065         would cause a false-positive.
10066
10067         avoid coreutils "make distcheck" failure
10068         Coreutils tests with an absolute build directory name that contains
10069         a space.  Not quoting this directory name caused a failure.
10070         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10071         * tests/test-vc-list-files-cvs.sh: Likewise.
10072
10073 2010-09-04  Bruno Haible  <bruno@clisp.org>
10074
10075         gnulib-tool: Avoid error when run in a package without Makefile.am.
10076         * gnulib-tool: When collecting the m4dirs in a package that does not
10077         have a Makefile.am, eliminate those directories that contain no
10078         gnulib-cache.m4. Fix expression that counts these directories.
10079
10080 2010-09-04  Bruno Haible  <bruno@clisp.org>
10081
10082         update-copyright test: Improve output when perl is missing or too old.
10083         * tests/test-update-copyright.sh: Move test of Perl version down after
10084         the test whether Perl exists. Provide an explanation relating Perl's
10085         error message to Automake's SKIP: message.
10086
10087 2010-09-04  Bruno Haible  <bruno@clisp.org>
10088
10089         Don't augment PATH in TESTS_ENVIRONMENT.
10090         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10091         set abs_aux_dir instead of augmenting PATH.
10092         * modules/vc-list-files-tests (Makefile.am): Likewise.
10093         * tests/test-update-copyright.sh: Augment PATH here.
10094         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10095         path_prepend_.
10096         * tests/test-vc-list-files-git.sh: Likewise.
10097
10098 2010-09-04  Jim Meyering  <meyering@redhat.com>
10099
10100         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10101         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10102
10103 2010-09-04  Bruno Haible  <bruno@clisp.org>
10104
10105         strdup: Fix compilation error in C++ mode.
10106         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10107         the macro.
10108
10109 2010-09-04  Bruno Haible  <bruno@clisp.org>
10110
10111         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10112         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10113         macro into a function.
10114         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10115
10116 2010-09-04  Bruno Haible  <bruno@clisp.org>
10117
10118         Set PATH_SEPARATOR the same way autoconf does.
10119         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10120         the value of PATH_SEPARATOR the same way autoconf-generated configure
10121         scripts do.
10122         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10123         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10124
10125 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10126
10127         Set PATH_SEPARATOR the same way autoconf does.
10128         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10129         the same way autoconf-generated configure scripts do.
10130         * posix-modules: Likewise.
10131
10132 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10133
10134         hash: fix safe_hasher const typo
10135         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10136         const; otherwise, there is a type error later.
10137
10138 2010-09-02  Jim Meyering  <meyering@redhat.com>
10139
10140         test-update-copyright.sh: require perl 5.8.0
10141         * tests/test-update-copyright.sh: Require 5.8.0,
10142         which Tom G. Christensen has confirmed is adequate,
10143         while 5.6.1 is not.
10144
10145 2010-09-02  Eric Blake  <eblake@redhat.com>
10146
10147         tests: init.sh improvements for re-exec'ing with zsh
10148         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10149         -vx through shell re-exec.
10150         Reported by Tom G. Christensen.
10151
10152         wctype: fix typo in previous commit
10153         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10154         Reported by Ludovic Courtès.
10155
10156 2010-09-02  Jim Meyering  <meyering@redhat.com>
10157
10158         test-update-copyright.sh: skip test if Perl is too old
10159         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10160         Reported by Tom G. Christensen.
10161
10162 2010-09-02  Bruno Haible  <bruno@clisp.org>
10163
10164         wctype: Avoid compilation error on IRIX 6.5.30.
10165         * lib/wctype.in.h (iswblank): Declare with a replacement if
10166         REPLACE_ISWBLANK is set.
10167         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10168         declared. Set REPLACE_ISWBLANK.
10169         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10170         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10171         * doc/posix-headers/wctype.texi: Likewise.
10172         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10173
10174 2010-09-01  Bruno Haible  <bruno@clisp.org>
10175
10176         New module 'socketlib'.
10177         * modules/socketlib: New file.
10178         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10179         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10180         * modules/sockets (Depends-on): Add socketlib.
10181         Suggested by Sam Steingold <sds@gnu.org>.
10182
10183 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10184
10185         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10186
10187         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10188         when one needs search access to a directory but not read access.
10189         On systems where it is available, it works in some cases where
10190         O_RDONLY does not, namely on directories that are searchable but
10191         not readable, and which need only to be searchable.  If O_SEARCH
10192         is not available, fall back to the traditional method of using
10193         O_RDONLY.
10194
10195         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10196         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10197         when opening a directory that needs only to be searchable.
10198         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10199         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10200         * lib/openat-proc.c (openat_proc_name): Likewise.
10201         * lib/openat.c (openat_needs_fchdir): Likewise.
10202         * lib/save-cwd.c (save_cwd): Likewise.
10203         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10204
10205 2010-08-28  Bruno Haible  <bruno@clisp.org>
10206
10207         New module 'host-cpu-c-abi'.
10208         * modules/host-cpu-c-abi: New file.
10209         * m4/host-cpu-c-abi.m4: New file, based on part of
10210         clisp/src/m4/general.m4.
10211         Requested by Sam Steingold <sds@gnu.org>.
10212
10213 2010-08-31  Eric Blake  <eblake@redhat.com>
10214         and Jim Meyering  <meyering@redhat.com>
10215
10216         hash: factor, and guard against misbehaving hasher function
10217         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10218         of table->hasher's return value.  Also protect against a hash value
10219         so large that adding it to table->bucket results in a NULL pointer.
10220         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10221         Use it in place of open-coded check-and-abort.
10222
10223 2010-08-30  Bruno Haible  <bruno@clisp.org>
10224
10225         hash: silence spurious clang warning
10226         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10227         Reported by Eric Blake.
10228
10229 2010-08-30  Eric Blake  <eblake@redhat.com>
10230
10231         strstr, memmem, strcasestr: avoid leaked shell message
10232         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10233         FreeBSD.
10234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10235         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10236
10237         tests: silence clang warning
10238         * tests/test-malloca.c (do_allocation): Avoid dead store.
10239
10240 2010-08-29  Bruno Haible  <bruno@clisp.org>
10241
10242         gettext: Fix recent mistake.
10243         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10244
10245 2010-08-29  Bruno Haible  <bruno@clisp.org>
10246
10247         selinux-h: Offer a --without-selinux option.
10248         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10249         --without-selinux was specified, skip all tests and define
10250         HAVE_SELINUX_SELINUX_H to 0.
10251         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10252         set LIB_SELINUX to empty.
10253         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10254         gl_LIBSELINUX. If --without-selinux was specified, replace
10255         selinux/context.h.
10256         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10257
10258 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10259             Bruno Haible  <bruno@clisp.org>
10260
10261         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10262         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10263         of HAVE_REALLOC.
10264         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10265         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10266         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10267         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10268
10269 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10270             Bruno Haible  <bruno@clisp.org>
10271
10272         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10273         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10274         HAVE_CALLOC.
10275         * lib/xmalloc.c: Update accordingly.
10276         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10277         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10278         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10279
10280 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10281             Bruno Haible  <bruno@clisp.org>
10282
10283         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10284         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10285         HAVE_MALLOC.
10286         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10287         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10288         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10289
10290 2010-08-29  Bruno Haible  <bruno@clisp.org>
10291
10292         Update modules list.
10293         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10294         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10295         (String handling <string.h>): Add astrxfrm.
10296         (File system functions): Add readlinkat.
10297
10298 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10299
10300         Tests for module 'realloc-gnu'.
10301         * modules/realloc-gnu-tests: New file.
10302         * tests/test-realloc-gnu.c: New file.
10303
10304         Tests for module 'calloc-gnu'.
10305         * modules/calloc-gnu-tests: New file.
10306         * tests/test-calloc-gnu.c: New file.
10307
10308         Tests for module 'malloc-gnu'.
10309         * modules/malloc-gnu-tests: New file.
10310         * tests/test-malloc-gnu.c: New file.
10311
10312 2010-08-28  Bruno Haible  <bruno@clisp.org>
10313
10314         Rename module 'realloc' -> 'realloc-gnu'.
10315         * modules/realloc-gnu: New file, copied from modules/realloc.
10316         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10317         obsolete.
10318         * modules/mgetgroups (Depends-on): Update.
10319         * doc/posix-functions/realloc.texi: Update.
10320         * NEWS: Mention the change.
10321
10322         Rename module 'calloc' -> 'calloc-gnu'.
10323         * modules/calloc-gnu: New file, copied from modules/calloc.
10324         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10325         obsolete.
10326         * doc/posix-functions/calloc.texi: Update.
10327         * NEWS: Mention the change.
10328
10329         Rename module 'malloc' -> 'malloc-gnu'.
10330         * modules/malloc-gnu: New file, copied from modules/malloc.
10331         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10332         obsolete.
10333         * modules/argp (Depends-on): Update.
10334         * modules/regex (Depends-on): Update.
10335         * doc/posix-functions/malloc.texi: Update.
10336         * NEWS: Mention the change.
10337
10338 2010-08-28  Eric Blake  <eblake@redhat.com>
10339
10340         pread, pwrite: add missing dependency
10341         * modules/pread (Depends-on): Add extensions.
10342         * modules/pwrite (Depends-on): Likewise.
10343
10344 2010-08-28  Bruno Haible  <bruno@clisp.org>
10345
10346         unistr/u*-strchr: Fix tests dependencies.
10347         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10348         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10349         Reported by Ian Beckwith <ianb@erislabs.net>.
10350
10351 2010-08-28  Bruno Haible  <bruno@clisp.org>
10352
10353         read-file: Don't occupy too much unused memory.
10354         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10355
10356 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10357             Eric Blake  <eblake@redhat.com>
10358             Bruno Haible  <bruno@clisp.org>
10359
10360         read-file: Avoid memory reallocations with regular files.
10361         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10362         (fread_file): With regular files, use the remaining length as the
10363         initial buffer size.  Check against overflow.
10364         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10365         sys_stat.
10366
10367 2010-08-28  Bruno Haible  <bruno@clisp.org>
10368
10369         ftello: Relax license.
10370         * modules/ftello (License): Relax to LGPLv2+.
10371         Reported by Eric Blake.
10372
10373 2010-08-28  Bruno Haible  <bruno@clisp.org>
10374
10375         Avoid relocwrapper link errors due to gnulib replacement functions.
10376         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10377         function.
10378         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10379
10380 2010-08-28  Bruno Haible  <bruno@clisp.org>
10381
10382         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10383         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10384         defined.
10385         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10386         Suggested by Eric Blake.
10387
10388 2010-08-28  Bruno Haible  <bruno@clisp.org>
10389
10390         sys_socket, netdb: Ensure socklen_t gets defined.
10391         * modules/sys_socket (Depends-on): Add socklen.
10392         * modules/netdb (Depends-on): Likewise.
10393         * modules/getaddrinfo (Depends-on): Remove socklen.
10394         * modules/getsockopt (Depends-on): Likewise.
10395         * modules/setsockopt (Depends-on): Likewise.
10396         * tests/test-sys_socket.c: Check that socklen_t is defined.
10397         * tests/test-netdb.c: Likewise.
10398         * m4/socklen.m4: Update comments.
10399         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10400
10401 2010-08-27  Eric Blake  <eblake@redhat.com>
10402
10403         login_tty: add missing dependency
10404         * modules/login_tty (Depends-on): Add pty.
10405
10406 2010-08-26  Eric Blake  <eblake@redhat.com>
10407
10408         lib-symbol-versions: fix m4 quoting
10409         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10410         format for AC_LINK_IFELSE.
10411
10412         glob: fix compile test
10413         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10414
10415         btowc: fix missing file
10416         * modules/btowc (Files): Also ship locale-fr.m4.
10417
10418         lseek: fix link test
10419         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10420         AC_LINK_IFELSE.
10421
10422         include_next: silence autoconf 2.68 warning
10423         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10424         AC_COMPILE_IFELSE as special.
10425         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10426         autoconf < 2.68.
10427
10428         acl: fix compilation test
10429         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10430         AC_COMPILE_IFELSE.
10431
10432 2010-08-26  Bruno Haible  <bruno@clisp.org>
10433
10434         Modernize AC_TRY_RUN invocations.
10435         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10436         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10437         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10438         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10439         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10440         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10441         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10442         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10443         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10444         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10445         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10446         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10447         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10448         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10450         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10451         gl_MBRLEN_NUL_RETVAL): Likewise.
10452         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10453         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10454         Likewise.
10455         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10456         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10457         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10458         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10459         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10460         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10461         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10462         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10463         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10464         Likewise.
10465         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10466         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10467         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10468         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10469         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10470         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10472         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10473         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10475
10476 2010-08-26  Bruno Haible  <bruno@clisp.org>
10477
10478         Modernize AC_TRY_LINK invocations.
10479         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10480         AC_TRY_LINK.
10481         * m4/argp.m4 (gl_ARGP): Likewise.
10482         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10483         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10484         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10485         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10486         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10487         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10488         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10489         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10490         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10491         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10492         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10493         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10494         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10495         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10496         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10497         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10498         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10499         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10500         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10501         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10502         Likewise.
10503         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10504         Likewise.
10505         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10506         Likewise.
10507         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10508         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10509         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10510         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10511         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10512         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10513         * m4/servent.m4 (gl_SERVENT): Likewise.
10514         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10515         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10516         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10517         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10518         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10519         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10520         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10521         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10522         * modules/tsearch-tests (configure.ac): Likewise.
10523
10524 2010-08-26  Bruno Haible  <bruno@clisp.org>
10525
10526         Modernize AC_TRY_COMPILE invocations.
10527         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10528         AC_TRY_COMPILE.
10529         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10530         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10531         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10532         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10533         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10534         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10535         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10536         * m4/lock.m4 (gl_LOCK): Likewise.
10537         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10538         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10539         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10540         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10541         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10542         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10543         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10544         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10545         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10546         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10547         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10548         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10549         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10550         extraneous semicolon.
10551
10552 2010-08-26  Jim Meyering  <meyering@redhat.com>
10553
10554         stat-time: relax license LGPL
10555         * modules/stat-time (License): Change from GPL to LGPL,
10556         with consent from all contributors, for use in libguile.
10557         Requested by Ludovic Courtès.
10558
10559 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10560
10561         poll: return immediately on POLLHUP.
10562         * lib/poll.c (poll): Always set timeout before wait_timeout is
10563         computed.
10564
10565 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10566
10567         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10568         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10569         rmdir ("dir/.//"), unlinkat.
10570
10571 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10572
10573         stdbool: avoid spurious failure with modern xlc
10574         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10575
10576 2010-08-24  Bruno Haible  <bruno@clisp.org>
10577
10578         getloadavg: simplify code
10579         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10580         gl_have_func. Update comments.
10581
10582 2010-08-24  Eric Blake  <eblake@redhat.com>
10583
10584         getloadavg: don't define SVR4 on cygwin
10585         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10586         only define SVR4 when -lkvm is required.
10587         Reported by Yaakov Selkowitz.
10588
10589 2010-08-24  Bruno Haible  <bruno@clisp.org>
10590
10591         priv-set: fix comment
10592         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10593
10594 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10595
10596         priv-set: fix comments
10597         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10598         to match code, as suggested by David Bartley in:
10599         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10600
10601 2010-08-23  Eric Blake  <eblake@redhat.com>
10602
10603         stdbool: avoid rejecting clang
10604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10605         * tests/test-stdbool.c: Enable more tests if using the system
10606         <stdbool.h> instead of the gnulib replacement.
10607         (main): Move xlc bug test to a runtime test for all compilers.
10608         Reported by Anders Kaseorg.
10609
10610         argz: fix shell quoting issue
10611         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10612         Reported by Charles Wilson.
10613
10614 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10615             Erik Faye-Lund <kusmabite@gmail.com>
10616
10617         poll, select: handle ERROR_BROKEN_PIPE.
10618         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10619         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10620         * lib/select.c (win32_compute_revents): Do not mark a pipe
10621         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10622
10623 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10624
10625         fts: allow compilation with C++
10626         * lib/fts_.h: Specify extern "C" linkage with C++.
10627
10628 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10629
10630         Fix gnulib-tool sed script de-commentation for AIX sed.
10631         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10632         sed.
10633
10634 2010-08-17  Eric Blake  <eblake@redhat.com>
10635
10636         test-stddef: test for (some) offsetof bugs
10637         * tests/test-stddef.c: Enhance test to ensure correct type of
10638         offsetof.
10639         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10640         that we are not fixing at this time.
10641
10642 2010-08-15  Bruno Haible  <bruno@clisp.org>
10643
10644         stpncpy: Allow stpncpy to be defined as a macro.
10645         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10646         if it's already correctly declared.
10647         * lib/string.in.h (stpncpy): Undefine before redefining.
10648         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10649
10650 2010-08-14  Bruno Haible  <bruno@clisp.org>
10651
10652         Rename module 'memxfrm' to 'amemxfrm'.
10653         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10654         (amemxfrm): Renamed from memxfrm.
10655         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10656         (amemxfrm): Renamed from memxfrm.
10657         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10658         * NEWS: Mention the change.
10659         * MODULES.html.sh (String handling <string.h>): Update.
10660         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10661         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10662         * lib/unicase/u16-casexfrm.c: Likewise.
10663         * lib/unicase/u32-casexfrm.c: Likewise.
10664         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10665         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10666         * lib/uninorm/u16-normxfrm.c: Likewise.
10667         * lib/uninorm/u32-normxfrm.c: Likewise.
10668         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10669         memxfrm.
10670         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10671         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10672         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10673         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10674         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10675         Suggested by Paul Eggert.
10676
10677 2010-08-14  Bruno Haible  <bruno@clisp.org>
10678
10679         Tests for module 'astrxfrm'.
10680         * modules/astrxfrm-tests: New file.
10681         * tests/test-astrxfrm.c: New file.
10682
10683         New module 'astrxfrm'.
10684         * lib/astrxfrm.h: New file.
10685         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10686         * modules/astrxfrm: New file.
10687
10688 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10689
10690         regex: Tweak doc.
10691         * doc/regex.texi (Overview): Don't mention regex.c.
10692         (GNU Regular Expression Compiling): Likewise.
10693         (Match-end-of-line Operator): Mention 'not_eol'.
10694
10695 2010-08-14  Brian Gough  <bjg@gnu.org>
10696             Bruno Haible  <bruno@clisp.org>
10697
10698         git-merge-changelog: add doc relating to use with bzr and hg.
10699         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10700
10701 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10702
10703         pthread: fix pthread.h creation for srcdir != builddir
10704         * modules/pthread (Makefile.am): Fix the rule to work also in a
10705         non-srcdir build.
10706
10707 2010-08-13  Karl Berry  <karl@gnu.org>
10708
10709         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10710         * doc/posix-*/*: force line break before @url of POSIX
10711         specifications.
10712         Suggested by Werner Lemberg.
10713
10714 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10715
10716         strtod: fix const diagnostic
10717         * lib/strtod.c (strtod): Don't assign const char * to char *,
10718         as this elicits a warning from GCC when warnings are enabled.
10719
10720 2010-08-10  Pádraig Brady <P@draigbrady.com>
10721         and Eric Blake  <eblake@redhat.com>
10722
10723         copy-acl: ignore ENOTSUP on HP-UX
10724         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10725         so that it is available for HP-UX.
10726         * lib/copy-acl.c (qcopy_acl): Use it.
10727         Reported by Patrick M. Callahan.
10728
10729 2010-08-10  Eric Blake  <eblake@redhat.com>
10730
10731         open, chown: relax license
10732         * modules/open (License): Change to LGPLv2+, with consent by all
10733         authors, for use in augeas.
10734         * modules/chown (License): Likewise.
10735         * modules/lchown (Likewise): Likewise.
10736         Requested by Adam Stokes.
10737
10738 2010-08-09  Karl Berry  <karl@gnu.org>
10739
10740         * build-aux/ar-lib: new file, import from Automake.
10741         * config/srclist.txt: autocheck for updates.
10742
10743 2010-08-09  Eric Blake  <eblake@redhat.com>
10744
10745         readlinkat: adjust client modules
10746         * modules/areadlinkat (Depends-on): Use readlinkat, not
10747         symlinkat.
10748         * modules/areadlinkat-with-size (Depends-on): Likewise.
10749
10750         mknod: be more vocal about danger of running tests as root
10751         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10752         root, since that is just asking for problems.
10753         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10754
10755         readlinkat: split into its own module
10756         * modules/symlinkat: Split readlinkat...
10757         * modules/readlinkat: ...into separate module.
10758         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10759         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10760         * lib/symlinkat.c (readlinkat): Move...
10761         * lib/readlinkat.c: ...into new file.
10762         * modules/symlinkat-tests: Split readlinkat test...
10763         * modules/readlinkat-tests: ...into separate module.
10764         * tests/test-symlinkat.c: Split...
10765         * tests/test-readlinkat.c: ...into new file.
10766         * NEWS: Document the split.
10767         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10768         * lib/unistd.in.h (readlinkat): Likewise.
10769         Suggested by Bruno Haible.
10770
10771 2010-08-08  Bruno Haible  <bruno@clisp.org>
10772
10773         memxfrm: Speed up.
10774         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10775         that usually only one call to strxfrm is necessary for each string
10776         part.
10777         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10778
10779 2010-08-07  Karl Berry  <karl@gnu.org>
10780
10781         * doc/posix-headers/limits.texi,
10782         * doc/posix-functions/malloc.texi,
10783         * doc/posix-functions/strsignal.texi: missing @item.
10784         * doc/ld-version-script.texi: spurious leading i.
10785         * doc/regex.texi (Interval Operators): no commas inside @var.
10786
10787 2010-08-01  Bruno Haible  <bruno@clisp.org>
10788
10789         Integrate the regex documentation.
10790         * doc/gnulib.texi: Define 'cn' index.
10791         (Regular expressions): New a chapter that includes regex.texi and
10792         regexprops-generic.texi.
10793         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10794         syntax.
10795
10796         Whitespace cleanup.
10797         * doc/regex.texi: Remove trailing spaces.
10798
10799         Add regex documentation.
10800         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10801         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10802         Written by Kathy A. Hargreaves and Karl Berry.
10803
10804 2010-08-01  Bruno Haible  <bruno@clisp.org>
10805
10806         link: Update documentation.
10807         * doc/posix-functions/link.texi: Update regarding Solaris.
10808
10809 2010-07-31  Bruno Haible  <bruno@clisp.org>
10810
10811         Update modules list.
10812         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10813         (String handling <string.h>): Add memcmp2, memxfrm.
10814         (Container data structures): Add xlist, xsublist, xoset.
10815         (Core language properties): Add alignof, unused-parameter.
10816         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10817         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10818         (Unibyte characters <ctype.h>): New section.
10819         (String handling <string.h>): New section.
10820         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10821         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10822         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10823         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10824         tan, tanh, tanl, y0, y1, yn.
10825         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10826         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10827         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10828         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10829         unlockpt, vdprintf, vdprintf-posix.
10830         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10831         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10832         xconcat-filename.
10833         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10834         getdtablesize, pipe2, pipe2-safer.
10835         (Security): New section.
10836         (Networking functions): Add accept4.
10837         (Signal handling): Add sigpipe.
10838         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10839         mbmemcasecoll.
10840         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10841         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10842         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10843         pipe-filter-ii.
10844         (Misc): Add argp-version-etc, login_tty, parse-duration.
10845
10846 2010-07-31  Bruno Haible  <bruno@clisp.org>
10847
10848         Improve doc in MODULES.html.
10849         * modules/linkat (Description): Add the word "function".
10850         * modules/mkfifo (Description): Likewise.
10851         * modules/mknod (Description): Likewise.
10852         * modules/remove (Description): Likewise.
10853         * modules/renameat (Description): Likewise.
10854         * modules/stat (Description): Likewise.
10855         * modules/symlink (Description): Likewise.
10856         * modules/unlink (Description): Likewise.
10857
10858 2010-07-31  Bruno Haible  <bruno@clisp.org>
10859
10860         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10861         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10862         option --enable/disable-c++ instead of --enable/disable-cxx.
10863         * NEWS: Mention the change.
10864
10865 2010-07-31  Bruno Haible  <bruno@clisp.org>
10866
10867         readlink, areadlink: Relax test a bit.
10868         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10869         alternative to ENOTDIR.
10870         * tests/test-areadlink.h (test_areadlink): Likewise.
10871         Reported by Rainer Tammer.
10872
10873 2010-07-31  Bruno Haible  <bruno@clisp.org>
10874
10875         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10876         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10877         character, perform the search using U_STRCHR.
10878         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10879         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10880         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10881         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10882         Suggested by Paolo Bonzini.
10883
10884 2010-07-31  Bruno Haible  <bruno@clisp.org>
10885
10886         unistr/u*-strstr: Fix dependencies.
10887         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10888         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10889         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10890
10891 2010-07-31  Bruno Haible  <bruno@clisp.org>
10892
10893         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10894         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10895         the beginning of the loop.
10896         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10897         cases in 'switch' statement.
10898
10899         unistr/u8-strchr: Fix several bugs.
10900         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10901         the string. When not found, return NULL, not a pointer near the end.
10902
10903         More tests for unistr/u8-strchr.
10904         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10905         that the function does not read past the first occurrence of the byte
10906         being searched.
10907         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10908         * tests/unistr/test-u16-strchr.c (main): New function.
10909         * tests/unistr/test-u32-strchr.c (main): New function.
10910
10911 2010-07-31  Bruno Haible  <bruno@clisp.org>
10912
10913         posix-modules: Ignore backup files of documentation files.
10914         * posix-modules: grep only through files named *.texi.
10915
10916 2010-07-31  Bruno Haible  <bruno@clisp.org>
10917
10918         symlinkat: Fix documentation.
10919         * doc/posix-functions/readlinkat.texi: Fix module name.
10920
10921 2010-07-31  Bruno Haible  <bruno@clisp.org>
10922
10923         fchownat: Replace also when chown has the trailing slash bug.
10924         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10925         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10926         introduced on 2010-04-10.
10927         Reported by Rainer Tammer.
10928
10929 2010-07-31  Bruno Haible  <bruno@clisp.org>
10930
10931         linkat: Work around AIX 7.1 bug.
10932         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10933         whether linkat handles trailing slash correctly. If not, replace linkat
10934         and define LINKAT_TRAILING_SLASH_BUG.
10935         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10936         check whether (fd1,file1) points to a directory if file1 or file2 ends
10937         in a slash. Code taken from lib/link.c.
10938         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10939         Reported by Rainer Tammer.
10940
10941 2010-07-31  Bruno Haible  <bruno@clisp.org>
10942
10943         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10944         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10945         This disables an xlc optimization that was causing wrong test results.
10946         Reported by Rainer Tammer.
10947
10948 2010-07-31  Bruno Haible  <bruno@clisp.org>
10949
10950         iconv: Work around AIX 6.1..7.1 bug.
10951         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10952         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10953         cross-compiling, guess no on all versions of AIX.
10954         Reported by Rainer Tammer.
10955
10956 2010-07-31  Bruno Haible  <bruno@clisp.org>
10957
10958         readlink: Relax test a bit.
10959         * tests/test-readlink.h (test_readlink): Allow different errno value
10960         when readlink is called with a file name that ends in / and refers to
10961         a file.
10962         Suggested by Eric Blake.
10963         Reported by Rainer Tammer.
10964
10965 2010-07-31  Bruno Haible  <bruno@clisp.org>
10966
10967         copysign: Does not require -lm on glibc systems.
10968         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
10969         gl_COMMON_DOUBLE_MATHFUNC.
10970         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
10971
10972 2010-07-31  Bruno Haible  <bruno@clisp.org>
10973
10974         duplocale: Work around AIX 7.1 bug.
10975         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
10976         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
10977         * lib/duplocale.c (rpl_duplocale): Update comment.
10978         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
10979         Reported by Rainer Tammer.
10980
10981 2010-07-30  Bruno Haible  <bruno@clisp.org>
10982
10983         dirfd: Avoid link error on AIX 7.1.
10984         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
10985         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
10986         exist, set REPLACE_DIRFD.
10987         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
10988         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
10989         * doc/posix-functions/dirfd.texi: Update.
10990         Reported by Rainer Tammer.
10991
10992 2010-07-30  Eric Blake  <eblake@redhat.com>
10993
10994         strtod: next round of AIX fixes
10995         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
10996         exponent.
10997         * tests/test-strtod.c (main): Enhance tests.
10998         * doc/posix-functions/strtod.texi (strtod): Document next bug.
10999         Reported by Rainer Tammer.
11000
11001         futimens: fix configure check
11002         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11003         Reported by Bruno Haible.
11004
11005 2010-07-30  Bruno Haible  <bruno@clisp.org>
11006
11007         getline: Update regarding AIX.
11008         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11009         Reported by Rainer Tammer.
11010
11011 2010-07-30  Bruno Haible  <bruno@clisp.org>
11012
11013         wcwidth: Drop replacement on AIX 7.
11014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11015         AIX 7.
11016         Reported by Rainer Tammer.
11017
11018 2010-07-30  Bruno Haible  <bruno@clisp.org>
11019
11020         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11021         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11022         a 'char *'.
11023         Reported by Rainer Tammer.
11024
11025 2010-07-30  Bruno Haible  <bruno@clisp.org>
11026
11027         unlink: Update regarding AIX.
11028         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11029         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11030         Reported by Rainer Tammer.
11031
11032 2010-07-30  Bruno Haible  <bruno@clisp.org>
11033
11034         symlink: Update regarding AIX.
11035         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11036         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11037         Reported by Rainer Tammer.
11038
11039 2010-07-30  Bruno Haible  <bruno@clisp.org>
11040
11041         strndup: Update regarding AIX.
11042         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11043         AIX 7.
11044         Reported by Rainer Tammer.
11045
11046 2010-07-30  Bruno Haible  <bruno@clisp.org>
11047
11048         stat: Update regarding AIX.
11049         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11050         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11051         Reported by Rainer Tammer.
11052
11053 2010-07-30  Bruno Haible  <bruno@clisp.org>
11054
11055         truncl: Fix autoconf test.
11056         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11057         whether truncl works.
11058         Reported by Rainer Tammer.
11059
11060 2010-07-30  Bruno Haible  <bruno@clisp.org>
11061
11062         round: Update regarding AIX.
11063         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11064         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11065         Reported by Rainer Tammer.
11066
11067 2010-07-30  Bruno Haible  <bruno@clisp.org>
11068
11069         rename: Update regarding AIX.
11070         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11071         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11072         Reported by Rainer Tammer.
11073
11074 2010-07-30  Bruno Haible  <bruno@clisp.org>
11075
11076         printf.m4: Update regarding AIX.
11077         * m4/printf.m4: Update comments regarding AIX.
11078         Reported by Rainer Tammer.
11079
11080 2010-07-30  Bruno Haible  <bruno@clisp.org>
11081
11082         iconv: Update regarding AIX.
11083         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11084         AIX 7.
11085         Reported by Rainer Tammer.
11086
11087 2010-07-30  Bruno Haible  <bruno@clisp.org>
11088
11089         getopt: Update regarding AIX.
11090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11091         no on AIX.
11092         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11093         Reported by Rainer Tammer.
11094
11095 2010-07-30  Bruno Haible  <bruno@clisp.org>
11096
11097         ldexpl; Update regarding AIX.
11098         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11099         on AIX 7.
11100         Reported by Rainer Tammer.
11101
11102 2010-07-30  Bruno Haible  <bruno@clisp.org>
11103
11104         frexpl: Update regarding AIX.
11105         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11106         on AIX 7.
11107         Reported by Rainer Tammer.
11108
11109 2010-07-30  Bruno Haible  <bruno@clisp.org>
11110
11111         open, fopen: Update regarding AIX.
11112         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11113         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11114         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11115         * doc/posix-functions/fopen.texi: Likewise.
11116         Reported by Rainer Tammer.
11117
11118 2010-07-30  Bruno Haible  <bruno@clisp.org>
11119
11120         chown: Update doc regarding AIX.
11121         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11122         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11123         Reported by Rainer Tammer.
11124
11125 2010-07-30  Eric Blake  <eblake@redhat.com>
11126
11127         strtod: fix bug in replacement function on AIX
11128         * lib/strtod.c (strtod): Special case broken "0x" parse in
11129         underlying strtod.
11130         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11131         * doc/posix-functions/strtod.texi (strtod): Likewise.
11132         Reported by Rainer Tammer.
11133
11134 2010-07-30  Bruno Haible  <bruno@clisp.org>
11135
11136         mbrlen: Fix cross-compilation guess for AIX.
11137         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11138         guess. Leftover from 2008-12-22.
11139
11140 2010-07-30  Bruno Haible  <bruno@clisp.org>
11141
11142         mbrtowc: Fix cross-compilation guess for AIX.
11143         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11144         guess. Leftover from 2008-12-21.
11145
11146 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11147
11148         init.sh: work around trap limitation of some shells
11149         * tests/init.sh (setup_): Move exit trap outside of shell function.
11150
11151 2010-07-29  Eric Blake  <eblake@redhat.com>
11152
11153         strtod: aid debugging
11154         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11155         understanding why strtod is rejected.
11156
11157 2010-07-28  Bruno Haible  <bruno@clisp.org>
11158
11159         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11160         * lib/unistr/u8-chr.c: Include <string.h>.
11161         * tests/unistr/test-u8-chr.c: Likewise.
11162         * tests/unistr/test-u16-chr.c: Likewise.
11163         * tests/unistr/test-u32-chr.c: Likewise.
11164         * tests/unistr/test-u8-strchr.c: Likewise.
11165         * tests/unistr/test-u16-strchr.c: Likewise.
11166         * tests/unistr/test-u32-strchr.c: Likewise.
11167         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11168         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11169         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11170         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11171
11172 2010-07-28  Bruno Haible  <bruno@clisp.org>
11173
11174         Use spaces for indentation, not tabs.
11175         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11176
11177 2010-07-27  Bruno Haible  <bruno@clisp.org>
11178
11179         mbspcasecmp: Fix function specification.
11180         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11181         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11182         Reported by Eric Blake <eblake@redhat.com>.
11183
11184 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11185
11186         timespec: use cast and not conditional, as truncation isn't possible
11187         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11188         instead of a conditional.  Comment about the situation in more detail.
11189         This undoes most of the 2009-10-29 patch.
11190
11191 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11192
11193         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11194         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11195         * lib/unistr/u8-strchr.c: Likewise.
11196         * modules/unistr/u8-chr: Depend on memchr.
11197
11198         unistr/u*-strchr: add tests
11199         * modules/unistr/u8-strchr-tests: New file.
11200         * modules/unistr/u16-strchr-tests: New file.
11201         * modules/unistr/u32-strchr-tests: New file.
11202         * tests/unistr/test-strchr.h: New file.
11203         * tests/unistr/test-u8-strchr.c: New file.
11204         * tests/unistr/test-u16-strchr.c: New file.
11205         * tests/unistr/test-u32-strchr.c: New file.
11206
11207         unistr/u*-chr: test multibyte sequences more
11208         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11209         test vector.
11210         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11211         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11212         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11213
11214         unistr/u*-chr: test multibyte sequences
11215         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11216
11217         unistr/u*-chr: prepare for multibyte tests
11218         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11219         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11220         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11221         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11222         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11223         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11224
11225 2010-07-18  Bruno Haible  <bruno@clisp.org>
11226
11227         unistr/u8-strchr: Optimize non-ASCII argument case.
11228         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11229         because the first byte often matches anyway.
11230         Reported by Pádraig Brady <P@draigbrady.com>.
11231
11232 2010-07-15  Karl Berry  <karl@gnu.org>
11233
11234         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11235
11236 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11237
11238         getcwd: on Solaris, work better if ancestors are inaccessible
11239         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11240         buffer and size, try again with a large buffer.  This works better
11241         on Solaris, since its getcwd succeeds even if the path to the root
11242         is inaccessible, and this is helpful in common cases such as .zfs
11243         hidden directories.  Problem reported by J Chapman Flack in
11244         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11245         Use system getcwd if it's declared, not merely if it's partly
11246         working; use the partly-working test only to avoid needless effort
11247         if the system getcwd fails.
11248         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11249         comment that was already obsolete and is now even more obsolete.
11250         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11251         now might call strdup.
11252
11253 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11254
11255         pthread: Add enough so that coreutils/src/sort.c compiles.
11256         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11257         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11258         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11259         Include <sys/types.h>, in case it defines pthread_t.
11260         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11261         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11262         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11263         (pthread_rwlockattr_t, pthread_spinlock_t):
11264         New typedefs, if HAVE_PTHREAD_T is not defined.
11265         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11266         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11267         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11268         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11269         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11270         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11271         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11272         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11273         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11274         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11275         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11276         New macros.
11277         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11278         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11279         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11280         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11281         (pthread_spin_unlock): New dummy functions.
11282         (pthread_create): Return EAGAIN; don't set errno.
11283         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11284         require AC_C_INLINE.
11285         * modules/pthread (Depends-on): Add sched, time.
11286         (pthread.h): Use AM_V_GEN.
11287
11288 2010-07-13  Bruno Haible  <bruno@clisp.org>
11289
11290         striconveh: Don't malloc memory if the result buffer is sufficient.
11291         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11292         buffer if its size is sufficient.
11293         Reported by Ludovic Courtès <ludo@gnu.org>.
11294
11295 2010-07-13  Bruno Haible  <bruno@clisp.org>
11296
11297         strtod: Add safety check.
11298         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11299
11300 2010-07-12  Bruno Haible  <bruno@clisp.org>
11301
11302         Unify tests that set gl_cv_func_ldexpl_no_libm.
11303         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11304         gl_FUNC_LDEXPL.
11305         (gl_FUNC_LDEXPL): Invoke it.
11306         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11307
11308 2010-07-12  Bruno Haible  <bruno@clisp.org>
11309
11310         Unify tests that set gl_cv_func_ldexp_no_libm.
11311         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11312         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11313         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11314         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11315         * modules/strtod (Files): Add m4/ldexp.m4.
11316
11317 2010-07-12  Bruno Haible  <bruno@clisp.org>
11318
11319         Unify tests that set gl_cv_func_frexpl_no_libm.
11320         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11321         gl_FUNC_FREXPL_NO_LIBM.
11322         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11323         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11324
11325 2010-07-12  Bruno Haible  <bruno@clisp.org>
11326
11327         Unify tests that set gl_cv_func_frexp_no_libm.
11328         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11329         gl_FUNC_FREXP_NO_LIBM.
11330         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11331         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11332
11333 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11334
11335         memcoll: clarify sizes versus lengths, document better, and tweak perf
11336         * lib/memcoll.c (strcoll_loop, memcoll0):
11337         Improve quality of descriptive comments.  Name variables
11338         consistently as to whether they are lengths (which do not include
11339         terminating null) versus sizes (which do).
11340         * lib/xmemcoll.c (xmemcoll0): Likewise.
11341         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11342         returned when s1size == 0; this is easier to compile and saves
11343         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11344
11345 2010-07-12  Bruno Haible  <bruno@clisp.org>
11346
11347         Tests for module '_Exit'.
11348         * modules/_Exit-tests: New file.
11349         * tests/test-_Exit.sh: New file.
11350         * tests/test-_Exit.c: New file.
11351
11352         New module '_Exit'.
11353         * lib/stdlib.in.h (__attribute__): New macro.
11354         (_Exit): New declaration.
11355         * lib/_Exit.c: New file.
11356         * m4/_Exit.m4: New file.
11357         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11358         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11359         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11360         * modules/_Exit: New file.
11361         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11362         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11363
11364 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11365
11366         strtod: make it more-accurate typically, and don't require libm
11367         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11368         Include limits.h.  Don't include string.h.
11369         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11370         (locale_isspace): New function, so that no casts are needed to
11371         check whether *s is a space.
11372         (ldexp): Provide an unused dummy if not available.
11373         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11374         (strtod): Use them.  This implementation prefers to use the
11375         underlying strtod if available, falling back on our own code
11376         only to fix known bugs.  This is more likely to produce an
11377         accurate result.  Also, it avoids the use of libm functions.
11378         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11379         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11380         was absent, but it caused a test failure with coreutils.
11381         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11382         with libm.
11383         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11384         * modules/strtod-tests (Makefile.am): Likewise.
11385
11386 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11387             Bruno Haible  <bruno@clisp.org>
11388
11389         unistr/u8-strchr: Optimize ASCII argument case.
11390         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11391
11392 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11393
11394         (x)memcoll: minor tweaks
11395         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11396         is after the type that it qualifies.
11397         (memcoll0): Likewise.
11398         * lib/memcoll.h (memcoll0): Likewise.
11399         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11400         * lib/xmemcoll.h (xmemcoll0): Likewise.
11401         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11402         differs from memcoll in that the NUL byte is part of the argument.
11403         Omit the abort-checks, as performance is a real issue here.  Plus,
11404         the checks were wrong anyway (an off-by-one error).  Omit local
11405         variable 'diff', as it's a bit clearer that way.
11406         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11407         no longer needed.
11408
11409 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11410
11411         (x)memcoll: speedup when input is known to be NUL delimited
11412         * lib/memcoll.c: Include stdlib.
11413         (memcoll0) New function.
11414         (strcoll_loop) New function, refactored for use in both memcoll
11415         and memcoll0.
11416         * lib/memcoll.h: Add prototype for memcoll0.
11417         * lib/xmemcoll.c: (xmemcoll0) New function.
11418         (collate_error) New function, refactored for use in both xmemcoll
11419         and xmemcoll0.
11420         * lib/xmemcoll.h: Add prototype for xmemcoll0.
11421         * m4/memcoll.m4: add inline invocation.
11422
11423 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11424
11425         * build-aux/bootstrap: Remove any local translations
11426         from the translation project synchronization directory,
11427         so that local only translations are not distributed.
11428
11429 2010-07-04  Bruno Haible  <bruno@clisp.org>
11430
11431         fsusage: Clarify which code applies to which platforms.
11432         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11433         platform.
11434         * lib/fsusage.c (get_fs_usage): Likewise.
11435
11436 2010-07-04  Bruno Haible  <bruno@clisp.org>
11437
11438         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11439         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11440         Reported by Martin Lambers <marlam@marlam.de>.
11441
11442 2010-07-04  Jim Meyering  <meyering@redhat.com>
11443
11444         hash: once again explicitly disallow insertion of NULL
11445         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11446         inserting a NULL pointer cannot work with these functions.
11447         Add a comment with details.
11448         This reverts part of the 2010-07-01 commit, 5bef1a35
11449         "hash: extend module to deal with non-pointer keys".
11450
11451 2010-07-01  Bruno Haible  <bruno@clisp.org>
11452
11453         stdbool: Update doc.
11454         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11455         Info from Christian Weisgerber <naddy@mips.inka.de>.
11456
11457 2010-07-01  Jim Meyering  <meyering@redhat.com>
11458
11459         hash: extend module to deal with non-pointer keys
11460         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11461         but that allows insertion of non-pointer entries.
11462         Do not disallow an ENTRY value of NULL.
11463         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11464         * lib/hash.h (hash_insert0): Declare.
11465
11466 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11467
11468         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11469         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11470         not present (i.e. with autoconf 2.59 and when using gettextize, not
11471         gnulib), require AC_GNU_SOURCE instead.
11472
11473 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11474
11475         idpriv-drop: Fix tests.
11476         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11477         not to the test-idpriv-droptemp program.
11478
11479 2010-06-29  Bruno Haible  <bruno@clisp.org>
11480
11481         string: Fix syntax error with g++ 2.96.
11482         * lib/string.in.h (__pure__): Remove definition.
11483         (_GL_ATTRIBUTE_PURE): New macro.
11484         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11485         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11486         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11487
11488 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11489
11490         unitypes: Fix bug introduced on 2010-05-18.
11491         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11492
11493 2010-06-22  Eric Blake  <eblake@redhat.com>
11494
11495         memmem: slight optimization
11496         * lib/str-two-way.h (critical_factorization): Update comments.
11497         Reduce work during factorization phase.
11498         Reported by Carlos Bueno <carlos@bueno.org>.
11499
11500 2010-06-21  Bruno Haible  <bruno@clisp.org>
11501
11502         Fix HAVE_CALLOC_POSIX misnomer.
11503         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11504         !HAVE_CALLOC_POSIX.
11505         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11506         HAVE_CALLOC_POSIX.
11507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11508         instead of HAVE_CALLOC_POSIX.
11509         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11510         HAVE_CALLOC_POSIX.
11511
11512         Use modern idiom for calloc() replacement.
11513         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11514         AC_FUNC_CALLOC.
11515         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11516         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11517         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11518         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11519         (gl_REPLACE_CALLOC): New macro.
11520
11521 2010-06-21  Bruno Haible  <bruno@clisp.org>
11522
11523         Fix HAVE_REALLOC_POSIX misnomer.
11524         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11525         !HAVE_REALLOC_POSIX.
11526         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11527         HAVE_REALLOC_POSIX.
11528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11529         instead of HAVE_REALLOC_POSIX.
11530         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11531         HAVE_REALLOC_POSIX.
11532
11533         Use modern idiom for realloc() replacement.
11534         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11535         AC_FUNC_REALLOC.
11536         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11537         Autoconf's AC_FUNC_REALLOC.
11538         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11539         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11540         (gl_REPLACE_REALLOC): New macro.
11541         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11542
11543 2010-06-21  Bruno Haible  <bruno@clisp.org>
11544
11545         Fix HAVE_MALLOC_POSIX misnomer.
11546         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11547         !HAVE_MALLOC_POSIX.
11548         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11549         HAVE_MALLOC_POSIX.
11550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11551         instead of HAVE_MALLOC_POSIX.
11552         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11553         HAVE_MALLOC_POSIX.
11554
11555         Use modern idiom for malloc() replacement.
11556         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11557         AC_FUNC_MALLOC.
11558         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11559         Autoconf's AC_FUNC_MALLOC.
11560         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11561         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11562         (gl_REPLACE_MALLOC): New macro.
11563         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11564
11565 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11566
11567         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11568         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11569         This macro takes 3 arguments, not 4.
11570
11571 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11572
11573         ipv6: fix detection under mingw
11574         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11575         in6_addr.
11576
11577 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11578
11579         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11580         that strtod() works when cross-compiling to a glibc version known
11581         to work.
11582
11583 2010-06-15  Bruno Haible  <bruno@clisp.org>
11584
11585         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11586
11587 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11588
11589         select: Correct timeout.
11590         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11591
11592 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11593
11594         git-version-gen: init shell var to avoid env var influence
11595         * build-aux/git-version-gen (v): Init shell var to empty.
11596
11597 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11598
11599         priv-set: Don't assume that priv.h exists merely because getppriv does.
11600         See Jan Andersen's bug report about AIX 5L in
11601         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11602         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11603         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11604         * lib/priv-set.h: Likewise.
11605         * tests/test-priv-set.c: Likewise.
11606
11607 2010-06-13  Bruno Haible  <bruno@clisp.org>
11608
11609         relocatable: Make it easier to test whether to install wrappers.
11610         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11611         RELOCATABLE_VIA_WRAPPER.
11612
11613 2010-06-13  Bruno Haible  <bruno@clisp.org>
11614
11615         gnulib-tool: Display specified modules and dependencies differently.
11616         * gnulib-tool (func_show_module_list): New function.
11617         (func_import, func_create_testdir): Invoke it.
11618         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11619
11620 2010-06-13  Bruno Haible  <bruno@clisp.org>
11621
11622         gnulib-tool: Align code of func_import and func_create_testdir.
11623         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11624         specified_modules.
11625
11626 2010-06-12  Jim Meyering  <meyering@redhat.com>
11627
11628         test-inttostr: avoid spurious failure on Solaris 9
11629         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11630         to accept "%ju".  Reported by Bruno Haible.
11631
11632 2010-06-11  Jim Meyering  <meyering@redhat.com>
11633
11634         test-sys_socket: mark variables as used more readably
11635         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11636         as "used" explicitly via (void) statement casts.  This is more
11637         readable than using them in an artificial return expression.
11638         Suggestion from Bruno Haible.
11639
11640 2010-06-11  Bruno Haible  <bruno@clisp.org>
11641
11642         Avoid some more warnings from "gcc -Wwrite-strings".
11643         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11644         to 'const char *'.
11645         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11646         * tests/test-c-strcasestr.c (main): Likewise.
11647         * tests/test-mbscasestr1.c (main): Likewise.
11648         * tests/test-mbscasestr2.c (main): Likewise.
11649         * tests/test-memmem.c (main): Likewise.
11650         * tests/test-strstr.c (main): Likewise.
11651         * tests/test-strcasestr.c (main): Likewise.
11652
11653 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11654
11655         init.sh: change framework_failure_ to fail with status 99, not 1
11656         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11657         automake's parallel-tests rule that this is an unexpected failure,
11658         even if the test is listed in XFAIL_TESTS.
11659
11660 2010-06-11  Jim Meyering  <meyering@redhat.com>
11661
11662         test-inttostr: avoid warnings about 4-6KB literal strings
11663         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11664         Include "macros.h", for its definition of ASSERT.
11665         (CK): s/assert/ASSERT/
11666         * modules/inttostr-tests (Files): Add macros.h.
11667
11668         init.sh: don't use $ME_ or skip_ before they are defined
11669         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11670         their first uses.  Also hoist their companions: warn_, fail_,
11671         framework_failure_, $stderr_fileno.  Prompted by a patch from
11672         Stefano Lattarini.
11673
11674         test-sys_socket: avoid set-but-not-used warnings from gcc
11675         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11676         avoid warning about set-but-not-used variables.
11677
11678         test-xvasprintf: avoid 'const' discard warnings
11679         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11680         "const" when assigning from literal strings.
11681         (test_xasprintf): Add "void" in function argument list to placate
11682         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11683
11684         tests: avoid compilation warnings in argmatch and exclude tests...
11685         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11686         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11687         Since it always exits, declare with the "noreturn" attribute.
11688         * tests/test-argmatch.c: Likewise.
11689
11690         tests: avoid 'const' discard warnings in mbsstr tests
11691         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11692         * tests/test-mbsstr2.c (main): Likewise.
11693
11694         test-verify: avoid warning from gcc's -Wmissing-declarations
11695         * tests/test-verify.c (function): Declare to be static.
11696
11697         test-inttostr.c: include <string.h> for use of strcmp
11698         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11699
11700         test-linkat: avoid failed assertion on "other" architectures
11701         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11702         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11703         sparc: https://bugs.launchpad.net/bugs/591968
11704
11705 2010-06-11  Jim Meyering  <meyering@redhat.com>
11706
11707         printf.m4: avoid autoconf's "Expanded Before Required" warning
11708         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11709         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11710         autoconf warning.
11711
11712 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11713
11714         Replacement header templates are now named with ".in", not "_".
11715         * doc/gnulib-intro.texi: Correct.
11716
11717 2010-06-10  Jim Meyering  <meyering@redhat.com>
11718
11719         inttostr-tests: depend on snprintf, not snprintf-posix
11720         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11721         snprintf-posix, to avoid this aclocal failure:
11722           missing file gnulib-tests/vasnprintf.c
11723           configure.ac:45: error: expected source file, required through \
11724           AC_LIBSOURCES, not found
11725
11726 2010-06-10  Jim Meyering  <meyering@redhat.com>
11727
11728         inttostr: add a new function, inttostr, and tests
11729         The namesake function was not available.  The existence of the
11730         template file, inttostr.c makes its addition nontrivial.
11731         * lib/anytostr.c: Rename from inttostr.c.
11732         (anytostr): Rename from inttostr.
11733         * lib/inttostr.c: New file.
11734         * modules/inttostr (Files): Add anytostr.c.
11735         (Makefile.am): Set lib_SOURCES instead of ...
11736         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11737         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11738         * lib/offtostr.c: Likewise.
11739         * lib/uinttostr.c: Likewise.
11740         * lib/umaxtostr.c: Likewise.
11741         * modules/inttostr-tests: New file.
11742         * tests/test-inttostr.c: New file.  Test these functions.
11743
11744 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11745             Bruno Haible  <bruno@clisp.org>
11746
11747         Add "Extending Gnulib" chapter to manual.
11748         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11749         chapter.
11750         (Extending Gnulib): New chapter.
11751         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11752         chapter.
11753
11754 2010-06-09  Bruno Haible  <bruno@clisp.org>
11755
11756         Avoid relocwrapper link errors due to gnulib replacement functions.
11757         * lib/areadlink.c: Use the system's malloc, realloc functions.
11758         (areadlink): Set errno to ENOMEM explicitly.
11759         * modules/areadlink (Depends-on): Remove malloc-posix.
11760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11761
11762 2010-06-09  Bruno Haible  <bruno@clisp.org>
11763
11764         Avoid relocwrapper link errors due to gnulib replacement functions.
11765         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11766         * lib/malloca.c: Likewise.
11767         * lib/relocatable.c: Likewise.
11768         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11769         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11770         * lib/setenv.c: Use the system's malloc, realloc functions.
11771         * lib/strerror.c: Use the system's sprintf function.
11772         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11773
11774 2010-06-04  Bruno Haible  <bruno@clisp.org>
11775
11776         Prefer documented low-level autoconf macro names.
11777         * m4/lib-link.m4: Use m4_translit instead of translit.
11778         * m4/environ.m4: Likewise.
11779         * m4/mathfunc.m4: Likewise.
11780         * m4/onceonly.m4: Likewise.
11781         * m4/stdint.m4: Likewise.
11782         Suggested by Eric Blake.
11783
11784 2010-06-04  Martin Lambers  <marlam@marlam.de>
11785             Bruno Haible  <bruno@clisp.org>
11786
11787         havelib: Allow library names with '+' characters.
11788         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11789         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11790
11791 2010-06-09  Bruno Haible  <bruno@clisp.org>
11792
11793         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11794         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11795         realloc failed.
11796
11797 2010-06-08  Peter Simons  <simons@cryp.to>
11798
11799         maint.mk: make the news-check rule more configurable
11800         * top/maint.mk (news-check-lines-spec) New variable.
11801         (news-check): Use "sed -n 1,10p" in place of "head".
11802
11803 2010-06-07  Jim Meyering  <meyering@redhat.com>
11804
11805         do-release-commit-and-tag: fix typo in --help
11806         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11807
11808         regex: avoid new dead-code warning with gcc-4.6.0
11809         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11810         if-block containing a while-loop.  It's been unused for at least
11811         5 years.
11812
11813 2010-06-05  Bruno Haible  <bruno@clisp.org>
11814
11815         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11816         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11817
11818 2010-06-04  Bruno Haible  <bruno@clisp.org>
11819
11820         Update to GNU gettext 0.18.1.
11821         * modules/gettext (configure.ac): Require gettext infrastructure from
11822         version 0.18.1.
11823
11824 2010-06-03  Bruno Haible  <bruno@clisp.org>
11825
11826         Don't use AC_LIBOBJ with file names in subdirectories.
11827         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11828         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11829         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11830         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11831         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11832         gl_LIBUNISTRING_LIBSOURCE.
11833         (Makefile.am): Augment lib_SOURCES here, conditionally.
11834         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11835
11836 2010-06-03  Bruno Haible  <bruno@clisp.org>
11837
11838         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11839         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11840         expansion does not end with a newline.
11841         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11842         unnecessary newline.
11843
11844 2010-06-03  Bruno Haible  <bruno@clisp.org>
11845
11846         Reduce dependencies.
11847         * tests/test-quotearg.h: New file, extracted from
11848         tests/test-quotearg.c.
11849         * tests/test-quotearg-simple.c: New file, extracted from
11850         tests/test-quotearg.c.
11851         * tests/test-quotearg.c: Don't include <ctype.h>.
11852         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11853         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11854         use_quote_double_quotes, use_quotearg_colon): Moved to
11855         tests/test-quotearg.h.
11856         (results_g, flag_results, custom_quotes, custom_results): Moved
11857         to tests/test-quotearg-simple.c.
11858         (main): Moved the part that does not depend on gettext to
11859         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11860         performed.
11861         * modules/quotearg-simple: New file.
11862         * modules/quotearg-simple-tests: New file.
11863         * modules/quotearg (Depends-on): Add quotearg-simple.
11864         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11865         (Files): Add tests/test-quotearg.h.
11866         Reported by Paolo Bonzini.
11867
11868 2010-06-03  Bruno Haible  <bruno@clisp.org>
11869
11870         Reduce dependencies.
11871         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11872
11873 2010-06-03  Bruno Haible  <bruno@clisp.org>
11874
11875         time: Undefine more broken macros.
11876         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11877         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11878         Reported by Eric Blake.
11879
11880 2010-06-03  Bruno Haible  <bruno@clisp.org>
11881
11882         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11883         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11884         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11885         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11886         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11887         Reported by Ludovic Courtès <ludo@gnu.org>.
11888
11889 2010-06-02  Eric Blake  <eblake@redhat.com>
11890
11891         time: work with mingw + pthreads-win32 library
11892         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11893         if timespec is defined only in pthread.h.
11894         * modules/time (Makefile.am): Substitute it.
11895         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11896         <pthread.h>, when needed.
11897         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11898         from the library.
11899
11900 2010-05-31  Bruno Haible  <bruno@clisp.org>
11901
11902         Avoid expanding two macros in the wrong order.
11903         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11904         gl_LIBUNISTRING if it is defined.
11905         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11906         autoconf >= 2.64.
11907         Reported by Ludovic Courtès <ludo@gnu.org>.
11908
11909 2010-05-27  Jim Meyering  <meyering@redhat.com>
11910
11911         maint.mk: also prohibit "#undef" of always-defined symbols
11912         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11913         Allow more than one space before the symbol name.
11914         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11915         the regexp uses alternation.
11916
11917 2010-05-26  Eric Blake  <eblake@redhat.com>
11918
11919         maint.mk: avoid echo -e
11920         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11921         Convert all uses of echo -* to printf.
11922         Reported by Matthias Bolte.
11923
11924 2010-05-25  Bruno Haible  <bruno@clisp.org>
11925
11926         Update to GNU gettext 0.18, part 2.
11927         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11928         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11929
11930 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11931
11932         Add missing include in test-pwrite.c.
11933         * tests/test-pwrite.c: Include string.h, for strcmp.
11934
11935 2010-05-24  Bruno Haible  <bruno@clisp.org>
11936
11937         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11938
11939 2010-05-24  Bruno Haible  <bruno@clisp.org>
11940
11941         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11942         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11943         iconveh_error argument.
11944         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11945         U_STRCONV_TO_LOCALE.
11946         * lib/unistr/u16-strcoll.c: Likewise.
11947         * lib/unistr/u32-strcoll.c: Likewise.
11948         * modules/unistr/u8-strcoll (Depends-on): Add
11949         uniconv/u8-strconv-to-enc, localcharset. Remove
11950         uniconv/u8-strconv-to-locale.
11951         (configure.ac): Bump version number.
11952         * modules/unistr/u16-strcoll (Depends-on): Add
11953         uniconv/u16-strconv-to-enc, localcharset. Remove
11954         uniconv/u16-strconv-to-locale.
11955         (configure.ac): Bump version number.
11956         * modules/unistr/u32-strcoll (Depends-on): Add
11957         uniconv/u32-strconv-to-enc, localcharset. Remove
11958         uniconv/u32-strconv-to-locale.
11959         (configure.ac): Bump version number.
11960
11961 2010-05-24  Bruno Haible  <bruno@clisp.org>
11962
11963         Avoid a test failure on NetBSD 5.0.
11964         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
11965         an iconv() bug.
11966
11967 2010-05-24  Bruno Haible  <bruno@clisp.org>
11968
11969         Adjust #include directive style.
11970         * modules/regex (Includes): Recommend to write <regex.h>.
11971
11972 2010-05-24  Bruno Haible  <bruno@clisp.org>
11973
11974         regex: Don't require alloca.
11975         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
11976         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
11977         only inside if (0).
11978
11979 2010-05-23  Jim Meyering  <meyering@redhat.com>
11980
11981         test-renameat.c: include <sys/stat.h>
11982         * tests/test-renameat.c: Include <sys/stat.h>; required for
11983         definition of S_IS* macros.
11984
11985 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
11986
11987         Update maintainer documentation for 'relocatable-prog' module.
11988         * doc/relocatable-maint.texi: Update.
11989         Comments by Bruno Haible.
11990
11991 2010-05-23  Bruno Haible  <bruno@clisp.org>
11992
11993         git-merge-changelog: Enable --split-merged-entry by default.
11994         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
11995         (usage): Don't mention this option any more.
11996         Reported by Ralf Wildenhues.
11997
11998 2010-05-23  Jim Meyering  <meyering@redhat.com>
11999
12000         test-pwrite: do not leave behind a test file named "out"
12001         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12002         The trivial-looking use of init.sh is really necessary.
12003         It ensures that the temporary file, "out", is created in
12004         a temporary directory, and removed upon termination.
12005         * tests/test-pwrite.sh: Re-add file.
12006         * modules/pwrite-tests: Reference it.
12007
12008 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12009
12010         Fix output redirection buglet in init.sh.
12011         * tests/init.sh: Fix redirection of stderr.
12012
12013 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12014
12015         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12016
12017 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12018
12019         * modules/valgrind-tests: New file.
12020         * m4/valgrind-tests.m4: New file.
12021         * doc/valgrind-tests.texi: New file.
12022         * doc/gnulib.texi (Running self-tests under valgrind): New
12023         section.
12024
12025 2010-05-19  Bruno Haible  <bruno@clisp.org>
12026
12027         Clean up dead code in recent commit.
12028         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12029         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12030         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12031         Suggested by Paolo Bonzini.
12032
12033 2010-05-19  Bruno Haible  <bruno@clisp.org>
12034
12035         Avoid valgrind error reports from libunistring.
12036         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12037         * modules/libunistring (Files): Add it.
12038         * modules/libunistring-optional (Files): Likewise.
12039
12040 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12041             Bruno Haible  <bruno@clisp.org>
12042
12043         New module 'libunistring-optional'.
12044         * modules/libunistring-optional: New file.
12045         * m4/libunistring-base.m4: New file.
12046         * m4/libunistring-optional.m4: New file.
12047         * lib/unicase.in.h: Renamed from lib/unicase.h.
12048         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12049         * lib/unictype.in.h: Renamed from lib/unictype.h.
12050         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12051         * lib/uniname.in.h: Renamed from lib/uniname.h.
12052         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12053         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12054         * lib/unistr.in.h: Renamed from lib/unistr.h.
12055         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12056         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12057         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12058         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12059         gl_LIBUNISTRING. If the library was found, determine the installed
12060         version and set LIBUNISTRING_VERSION.
12061         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12062         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12063         handle a configuration option --with-included-libunistring.
12064         * modules/libunistring (Files): Add m4/absolute-header.m4.
12065         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12066         Add m4/libunistring-base.m4.
12067         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12068         (Makefile.am): Build unicase.h from unicase.in.h.
12069         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12070         Add m4/libunistring-base.m4.
12071         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12072         (Makefile.am): Build uniconv.h from uniconv.in.h.
12073         * modules/unictype/base (Files): Use unictype.in.h instead of
12074         unictype.h. Add m4/libunistring-base.m4.
12075         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12076         (Makefile.am): Build unictype.h from unictype.in.h.
12077         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12078         Add m4/libunistring-base.m4.
12079         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12080         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12081         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12082         Add m4/libunistring-base.m4.
12083         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12084         (Makefile.am): Build uniname.h from uniname.in.h.
12085         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12086         Add m4/libunistring-base.m4.
12087         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12088         (Makefile.am): Build uninorm.h from uninorm.in.h.
12089         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12090         unistdio.h. Add m4/libunistring-base.m4.
12091         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12092         (Makefile.am): Build unistdio.h from unistdio.in.h.
12093         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12094         Add m4/libunistring-base.m4.
12095         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12096         (Makefile.am): Build unistr.h from unistr.in.h.
12097         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12098         Add m4/libunistring-base.m4.
12099         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12100         (Makefile.am): Build unitypes.h from unitypes.in.h.
12101         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12102         Add m4/libunistring-base.m4.
12103         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12104         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12105         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12106         uniwidth.h. Add m4/libunistring-base.m4.
12107         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12108         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12109         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12110         instead of augmenting lib_SOURCES.
12111         * modules/unicase/empty-suffix-context: Likewise.
12112         * modules/unicase/locale-language: Likewise.
12113         * modules/unicase/tolower: Likewise.
12114         * modules/unicase/totitle: Likewise.
12115         * modules/unicase/toupper: Likewise.
12116         * modules/unicase/u8-casecmp: Likewise.
12117         * modules/unicase/u8-casecoll: Likewise.
12118         * modules/unicase/u8-casefold: Likewise.
12119         * modules/unicase/u8-casexfrm: Likewise.
12120         * modules/unicase/u8-ct-casefold: Likewise.
12121         * modules/unicase/u8-ct-tolower: Likewise.
12122         * modules/unicase/u8-ct-totitle: Likewise.
12123         * modules/unicase/u8-ct-toupper: Likewise.
12124         * modules/unicase/u8-is-cased: Likewise.
12125         * modules/unicase/u8-is-casefolded: Likewise.
12126         * modules/unicase/u8-is-lowercase: Likewise.
12127         * modules/unicase/u8-is-titlecase: Likewise.
12128         * modules/unicase/u8-is-uppercase: Likewise.
12129         * modules/unicase/u8-prefix-context: Likewise.
12130         * modules/unicase/u8-suffix-context: Likewise.
12131         * modules/unicase/u8-tolower: Likewise.
12132         * modules/unicase/u8-totitle: Likewise.
12133         * modules/unicase/u8-toupper: Likewise.
12134         * modules/unicase/u16-casecmp: Likewise.
12135         * modules/unicase/u16-casecoll: Likewise.
12136         * modules/unicase/u16-casefold: Likewise.
12137         * modules/unicase/u16-casexfrm: Likewise.
12138         * modules/unicase/u16-ct-casefold: Likewise.
12139         * modules/unicase/u16-ct-tolower: Likewise.
12140         * modules/unicase/u16-ct-totitle: Likewise.
12141         * modules/unicase/u16-ct-toupper: Likewise.
12142         * modules/unicase/u16-is-cased: Likewise.
12143         * modules/unicase/u16-is-casefolded: Likewise.
12144         * modules/unicase/u16-is-lowercase: Likewise.
12145         * modules/unicase/u16-is-titlecase: Likewise.
12146         * modules/unicase/u16-is-uppercase: Likewise.
12147         * modules/unicase/u16-prefix-context: Likewise.
12148         * modules/unicase/u16-suffix-context: Likewise.
12149         * modules/unicase/u16-tolower: Likewise.
12150         * modules/unicase/u16-totitle: Likewise.
12151         * modules/unicase/u16-toupper: Likewise.
12152         * modules/unicase/u32-casecmp: Likewise.
12153         * modules/unicase/u32-casecoll: Likewise.
12154         * modules/unicase/u32-casefold: Likewise.
12155         * modules/unicase/u32-casexfrm: Likewise.
12156         * modules/unicase/u32-ct-casefold: Likewise.
12157         * modules/unicase/u32-ct-tolower: Likewise.
12158         * modules/unicase/u32-ct-totitle: Likewise.
12159         * modules/unicase/u32-ct-toupper: Likewise.
12160         * modules/unicase/u32-is-cased: Likewise.
12161         * modules/unicase/u32-is-casefolded: Likewise.
12162         * modules/unicase/u32-is-lowercase: Likewise.
12163         * modules/unicase/u32-is-titlecase: Likewise.
12164         * modules/unicase/u32-is-uppercase: Likewise.
12165         * modules/unicase/u32-prefix-context: Likewise.
12166         * modules/unicase/u32-suffix-context: Likewise.
12167         * modules/unicase/u32-tolower: Likewise.
12168         * modules/unicase/u32-totitle: Likewise.
12169         * modules/unicase/u32-toupper: Likewise.
12170         * modules/unicase/ulc-casecmp: Likewise.
12171         * modules/unicase/ulc-casecoll: Likewise.
12172         * modules/unicase/ulc-casexfrm: Likewise.
12173         * modules/uniconv/u8-conv-from-enc: Likewise.
12174         * modules/uniconv/u8-conv-to-enc: Likewise.
12175         * modules/uniconv/u8-strconv-from-enc: Likewise.
12176         * modules/uniconv/u8-strconv-from-locale: Likewise.
12177         * modules/uniconv/u8-strconv-to-enc: Likewise.
12178         * modules/uniconv/u8-strconv-to-locale: Likewise.
12179         * modules/uniconv/u16-conv-from-enc: Likewise.
12180         * modules/uniconv/u16-conv-to-enc: Likewise.
12181         * modules/uniconv/u16-strconv-from-enc: Likewise.
12182         * modules/uniconv/u16-strconv-from-locale: Likewise.
12183         * modules/uniconv/u16-strconv-to-enc: Likewise.
12184         * modules/uniconv/u16-strconv-to-locale: Likewise.
12185         * modules/uniconv/u32-conv-from-enc: Likewise.
12186         * modules/uniconv/u32-conv-to-enc: Likewise.
12187         * modules/uniconv/u32-strconv-from-enc: Likewise.
12188         * modules/uniconv/u32-strconv-from-locale: Likewise.
12189         * modules/uniconv/u32-strconv-to-enc: Likewise.
12190         * modules/uniconv/u32-strconv-to-locale: Likewise.
12191         * modules/unictype/bidicategory-byname: Likewise.
12192         * modules/unictype/bidicategory-name: Likewise.
12193         * modules/unictype/bidicategory-of: Likewise.
12194         * modules/unictype/bidicategory-test: Likewise.
12195         * modules/unictype/block-list: Likewise.
12196         * modules/unictype/block-test: Likewise.
12197         * modules/unictype/category-C: Likewise.
12198         * modules/unictype/category-Cc: Likewise.
12199         * modules/unictype/category-Cf: Likewise.
12200         * modules/unictype/category-Cn: Likewise.
12201         * modules/unictype/category-Co: Likewise.
12202         * modules/unictype/category-Cs: Likewise.
12203         * modules/unictype/category-L: Likewise.
12204         * modules/unictype/category-Ll: Likewise.
12205         * modules/unictype/category-Lm: Likewise.
12206         * modules/unictype/category-Lo: Likewise.
12207         * modules/unictype/category-Lt: Likewise.
12208         * modules/unictype/category-Lu: Likewise.
12209         * modules/unictype/category-M: Likewise.
12210         * modules/unictype/category-Mc: Likewise.
12211         * modules/unictype/category-Me: Likewise.
12212         * modules/unictype/category-Mn: Likewise.
12213         * modules/unictype/category-N: Likewise.
12214         * modules/unictype/category-Nd: Likewise.
12215         * modules/unictype/category-Nl: Likewise.
12216         * modules/unictype/category-No: Likewise.
12217         * modules/unictype/category-P: Likewise.
12218         * modules/unictype/category-Pc: Likewise.
12219         * modules/unictype/category-Pd: Likewise.
12220         * modules/unictype/category-Pe: Likewise.
12221         * modules/unictype/category-Pf: Likewise.
12222         * modules/unictype/category-Pi: Likewise.
12223         * modules/unictype/category-Po: Likewise.
12224         * modules/unictype/category-Ps: Likewise.
12225         * modules/unictype/category-S: Likewise.
12226         * modules/unictype/category-Sc: Likewise.
12227         * modules/unictype/category-Sk: Likewise.
12228         * modules/unictype/category-Sm: Likewise.
12229         * modules/unictype/category-So: Likewise.
12230         * modules/unictype/category-Z: Likewise.
12231         * modules/unictype/category-Zl: Likewise.
12232         * modules/unictype/category-Zp: Likewise.
12233         * modules/unictype/category-Zs: Likewise.
12234         * modules/unictype/category-and: Likewise.
12235         * modules/unictype/category-and-not: Likewise.
12236         * modules/unictype/category-byname: Likewise.
12237         * modules/unictype/category-name: Likewise.
12238         * modules/unictype/category-none: Likewise.
12239         * modules/unictype/category-of: Likewise.
12240         * modules/unictype/category-or: Likewise.
12241         * modules/unictype/category-test: Likewise.
12242         * modules/unictype/combining-class: Likewise.
12243         * modules/unictype/ctype-alnum: Likewise.
12244         * modules/unictype/ctype-alpha: Likewise.
12245         * modules/unictype/ctype-blank: Likewise.
12246         * modules/unictype/ctype-cntrl: Likewise.
12247         * modules/unictype/ctype-digit: Likewise.
12248         * modules/unictype/ctype-graph: Likewise.
12249         * modules/unictype/ctype-lower: Likewise.
12250         * modules/unictype/ctype-print: Likewise.
12251         * modules/unictype/ctype-punct: Likewise.
12252         * modules/unictype/ctype-space: Likewise.
12253         * modules/unictype/ctype-upper: Likewise.
12254         * modules/unictype/ctype-xdigit: Likewise.
12255         * modules/unictype/decimal-digit: Likewise.
12256         * modules/unictype/digit: Likewise.
12257         * modules/unictype/mirror: Likewise.
12258         * modules/unictype/numeric: Likewise.
12259         * modules/unictype/property-alphabetic: Likewise.
12260         * modules/unictype/property-ascii-hex-digit: Likewise.
12261         * modules/unictype/property-bidi-arabic-digit: Likewise.
12262         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12263         * modules/unictype/property-bidi-block-separator: Likewise.
12264         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12265         * modules/unictype/property-bidi-common-separator: Likewise.
12266         * modules/unictype/property-bidi-control: Likewise.
12267         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12268         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12269         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12270         * modules/unictype/property-bidi-european-digit: Likewise.
12271         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12272         * modules/unictype/property-bidi-left-to-right: Likewise.
12273         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12274         * modules/unictype/property-bidi-other-neutral: Likewise.
12275         * modules/unictype/property-bidi-pdf: Likewise.
12276         * modules/unictype/property-bidi-segment-separator: Likewise.
12277         * modules/unictype/property-bidi-whitespace: Likewise.
12278         * modules/unictype/property-byname: Likewise.
12279         * modules/unictype/property-combining: Likewise.
12280         * modules/unictype/property-composite: Likewise.
12281         * modules/unictype/property-currency-symbol: Likewise.
12282         * modules/unictype/property-dash: Likewise.
12283         * modules/unictype/property-decimal-digit: Likewise.
12284         * modules/unictype/property-default-ignorable-code-point: Likewise.
12285         * modules/unictype/property-deprecated: Likewise.
12286         * modules/unictype/property-diacritic: Likewise.
12287         * modules/unictype/property-extender: Likewise.
12288         * modules/unictype/property-format-control: Likewise.
12289         * modules/unictype/property-grapheme-base: Likewise.
12290         * modules/unictype/property-grapheme-extend: Likewise.
12291         * modules/unictype/property-grapheme-link: Likewise.
12292         * modules/unictype/property-hex-digit: Likewise.
12293         * modules/unictype/property-hyphen: Likewise.
12294         * modules/unictype/property-id-continue: Likewise.
12295         * modules/unictype/property-id-start: Likewise.
12296         * modules/unictype/property-ideographic: Likewise.
12297         * modules/unictype/property-ids-binary-operator: Likewise.
12298         * modules/unictype/property-ids-trinary-operator: Likewise.
12299         * modules/unictype/property-ignorable-control: Likewise.
12300         * modules/unictype/property-iso-control: Likewise.
12301         * modules/unictype/property-join-control: Likewise.
12302         * modules/unictype/property-left-of-pair: Likewise.
12303         * modules/unictype/property-line-separator: Likewise.
12304         * modules/unictype/property-logical-order-exception: Likewise.
12305         * modules/unictype/property-lowercase: Likewise.
12306         * modules/unictype/property-math: Likewise.
12307         * modules/unictype/property-non-break: Likewise.
12308         * modules/unictype/property-not-a-character: Likewise.
12309         * modules/unictype/property-numeric: Likewise.
12310         * modules/unictype/property-other-alphabetic: Likewise.
12311         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12312         * modules/unictype/property-other-grapheme-extend: Likewise.
12313         * modules/unictype/property-other-id-continue: Likewise.
12314         * modules/unictype/property-other-id-start: Likewise.
12315         * modules/unictype/property-other-lowercase: Likewise.
12316         * modules/unictype/property-other-math: Likewise.
12317         * modules/unictype/property-other-uppercase: Likewise.
12318         * modules/unictype/property-paired-punctuation: Likewise.
12319         * modules/unictype/property-paragraph-separator: Likewise.
12320         * modules/unictype/property-pattern-syntax: Likewise.
12321         * modules/unictype/property-pattern-white-space: Likewise.
12322         * modules/unictype/property-private-use: Likewise.
12323         * modules/unictype/property-punctuation: Likewise.
12324         * modules/unictype/property-quotation-mark: Likewise.
12325         * modules/unictype/property-radical: Likewise.
12326         * modules/unictype/property-sentence-terminal: Likewise.
12327         * modules/unictype/property-soft-dotted: Likewise.
12328         * modules/unictype/property-space: Likewise.
12329         * modules/unictype/property-terminal-punctuation: Likewise.
12330         * modules/unictype/property-test: Likewise.
12331         * modules/unictype/property-titlecase: Likewise.
12332         * modules/unictype/property-unassigned-code-value: Likewise.
12333         * modules/unictype/property-unified-ideograph: Likewise.
12334         * modules/unictype/property-uppercase: Likewise.
12335         * modules/unictype/property-variation-selector: Likewise.
12336         * modules/unictype/property-white-space: Likewise.
12337         * modules/unictype/property-xid-continue: Likewise.
12338         * modules/unictype/property-xid-start: Likewise.
12339         * modules/unictype/property-zero-width: Likewise.
12340         * modules/unictype/scripts: Likewise.
12341         * modules/unictype/syntax-c-ident: Likewise.
12342         * modules/unictype/syntax-c-whitespace: Likewise.
12343         * modules/unictype/syntax-java-ident: Likewise.
12344         * modules/unictype/syntax-java-whitespace: Likewise.
12345         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12346         * modules/unilbrk/u8-width-linebreaks: Likewise.
12347         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12348         * modules/unilbrk/u16-width-linebreaks: Likewise.
12349         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12350         * modules/unilbrk/u32-width-linebreaks: Likewise.
12351         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12352         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12353         * modules/uniname/uniname: Likewise.
12354         * modules/uninorm/canonical-decomposition: Likewise.
12355         * modules/uninorm/composition: Likewise.
12356         * modules/uninorm/decomposing-form: Likewise.
12357         * modules/uninorm/decomposition: Likewise.
12358         * modules/uninorm/filter: Likewise.
12359         * modules/uninorm/nfc: Likewise.
12360         * modules/uninorm/nfd: Likewise.
12361         * modules/uninorm/nfkc: Likewise.
12362         * modules/uninorm/nfkd: Likewise.
12363         * modules/uninorm/u8-normalize: Likewise.
12364         * modules/uninorm/u8-normcmp: Likewise.
12365         * modules/uninorm/u8-normcoll: Likewise.
12366         * modules/uninorm/u8-normxfrm: Likewise.
12367         * modules/uninorm/u16-normalize: Likewise.
12368         * modules/uninorm/u16-normcmp: Likewise.
12369         * modules/uninorm/u16-normcoll: Likewise.
12370         * modules/uninorm/u16-normxfrm: Likewise.
12371         * modules/uninorm/u32-normalize: Likewise.
12372         * modules/uninorm/u32-normcmp: Likewise.
12373         * modules/uninorm/u32-normcoll: Likewise.
12374         * modules/uninorm/u32-normxfrm: Likewise.
12375         * modules/unistdio/u8-asnprintf: Likewise.
12376         * modules/unistdio/u8-asprintf: Likewise.
12377         * modules/unistdio/u8-snprintf: Likewise.
12378         * modules/unistdio/u8-sprintf: Likewise.
12379         * modules/unistdio/u8-u8-asnprintf: Likewise.
12380         * modules/unistdio/u8-u8-asprintf: Likewise.
12381         * modules/unistdio/u8-u8-snprintf: Likewise.
12382         * modules/unistdio/u8-u8-sprintf: Likewise.
12383         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12384         * modules/unistdio/u8-u8-vasprintf: Likewise.
12385         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12386         * modules/unistdio/u8-u8-vsprintf: Likewise.
12387         * modules/unistdio/u8-vasnprintf: Likewise.
12388         * modules/unistdio/u8-vasprintf: Likewise.
12389         * modules/unistdio/u8-vsnprintf: Likewise.
12390         * modules/unistdio/u8-vsprintf: Likewise.
12391         * modules/unistdio/u16-asnprintf: Likewise.
12392         * modules/unistdio/u16-asprintf: Likewise.
12393         * modules/unistdio/u16-snprintf: Likewise.
12394         * modules/unistdio/u16-sprintf: Likewise.
12395         * modules/unistdio/u16-u16-asnprintf: Likewise.
12396         * modules/unistdio/u16-u16-asprintf: Likewise.
12397         * modules/unistdio/u16-u16-snprintf: Likewise.
12398         * modules/unistdio/u16-u16-sprintf: Likewise.
12399         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12400         * modules/unistdio/u16-u16-vasprintf: Likewise.
12401         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12402         * modules/unistdio/u16-u16-vsprintf: Likewise.
12403         * modules/unistdio/u16-vasnprintf: Likewise.
12404         * modules/unistdio/u16-vasprintf: Likewise.
12405         * modules/unistdio/u16-vsnprintf: Likewise.
12406         * modules/unistdio/u16-vsprintf: Likewise.
12407         * modules/unistdio/u32-asnprintf: Likewise.
12408         * modules/unistdio/u32-asprintf: Likewise.
12409         * modules/unistdio/u32-snprintf: Likewise.
12410         * modules/unistdio/u32-sprintf: Likewise.
12411         * modules/unistdio/u32-u32-asnprintf: Likewise.
12412         * modules/unistdio/u32-u32-asprintf: Likewise.
12413         * modules/unistdio/u32-u32-snprintf: Likewise.
12414         * modules/unistdio/u32-u32-sprintf: Likewise.
12415         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12416         * modules/unistdio/u32-u32-vasprintf: Likewise.
12417         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12418         * modules/unistdio/u32-u32-vsprintf: Likewise.
12419         * modules/unistdio/u32-vasnprintf: Likewise.
12420         * modules/unistdio/u32-vasprintf: Likewise.
12421         * modules/unistdio/u32-vsnprintf: Likewise.
12422         * modules/unistdio/u32-vsprintf: Likewise.
12423         * modules/unistdio/ulc-asnprintf: Likewise.
12424         * modules/unistdio/ulc-asprintf: Likewise.
12425         * modules/unistdio/ulc-fprintf: Likewise.
12426         * modules/unistdio/ulc-snprintf: Likewise.
12427         * modules/unistdio/ulc-sprintf: Likewise.
12428         * modules/unistdio/ulc-vasnprintf: Likewise.
12429         * modules/unistdio/ulc-vasprintf: Likewise.
12430         * modules/unistdio/ulc-vfprintf: Likewise.
12431         * modules/unistdio/ulc-vsnprintf: Likewise.
12432         * modules/unistdio/ulc-vsprintf: Likewise.
12433         * modules/unistr/u8-check: Likewise.
12434         * modules/unistr/u8-chr: Likewise.
12435         * modules/unistr/u8-cmp: Likewise.
12436         * modules/unistr/u8-cmp2: Likewise.
12437         * modules/unistr/u8-cpy: Likewise.
12438         * modules/unistr/u8-cpy-alloc: Likewise.
12439         * modules/unistr/u8-endswith: Likewise.
12440         * modules/unistr/u8-mblen: Likewise.
12441         * modules/unistr/u8-mbsnlen: Likewise.
12442         * modules/unistr/u8-mbtouc: Likewise.
12443         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12444         * modules/unistr/u8-mbtoucr: Likewise.
12445         * modules/unistr/u8-move: Likewise.
12446         * modules/unistr/u8-next: Likewise.
12447         * modules/unistr/u8-prev: Likewise.
12448         * modules/unistr/u8-set: Likewise.
12449         * modules/unistr/u8-startswith: Likewise.
12450         * modules/unistr/u8-stpcpy: Likewise.
12451         * modules/unistr/u8-stpncpy: Likewise.
12452         * modules/unistr/u8-strcat: Likewise.
12453         * modules/unistr/u8-strchr: Likewise.
12454         * modules/unistr/u8-strcmp: Likewise.
12455         * modules/unistr/u8-strcoll: Likewise.
12456         * modules/unistr/u8-strcpy: Likewise.
12457         * modules/unistr/u8-strcspn: Likewise.
12458         * modules/unistr/u8-strdup: Likewise.
12459         * modules/unistr/u8-strlen: Likewise.
12460         * modules/unistr/u8-strmblen: Likewise.
12461         * modules/unistr/u8-strmbtouc: Likewise.
12462         * modules/unistr/u8-strncat: Likewise.
12463         * modules/unistr/u8-strncmp: Likewise.
12464         * modules/unistr/u8-strncpy: Likewise.
12465         * modules/unistr/u8-strnlen: Likewise.
12466         * modules/unistr/u8-strpbrk: Likewise.
12467         * modules/unistr/u8-strrchr: Likewise.
12468         * modules/unistr/u8-strspn: Likewise.
12469         * modules/unistr/u8-strstr: Likewise.
12470         * modules/unistr/u8-strtok: Likewise.
12471         * modules/unistr/u8-to-u16: Likewise.
12472         * modules/unistr/u8-to-u32: Likewise.
12473         * modules/unistr/u8-uctomb: Likewise.
12474         * modules/unistr/u16-check: Likewise.
12475         * modules/unistr/u16-chr: Likewise.
12476         * modules/unistr/u16-cmp: Likewise.
12477         * modules/unistr/u16-cmp2: Likewise.
12478         * modules/unistr/u16-cpy: Likewise.
12479         * modules/unistr/u16-cpy-alloc: Likewise.
12480         * modules/unistr/u16-endswith: Likewise.
12481         * modules/unistr/u16-mblen: Likewise.
12482         * modules/unistr/u16-mbsnlen: Likewise.
12483         * modules/unistr/u16-mbtouc: Likewise.
12484         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12485         * modules/unistr/u16-mbtoucr: Likewise.
12486         * modules/unistr/u16-move: Likewise.
12487         * modules/unistr/u16-next: Likewise.
12488         * modules/unistr/u16-prev: Likewise.
12489         * modules/unistr/u16-set: Likewise.
12490         * modules/unistr/u16-startswith: Likewise.
12491         * modules/unistr/u16-stpcpy: Likewise.
12492         * modules/unistr/u16-stpncpy: Likewise.
12493         * modules/unistr/u16-strcat: Likewise.
12494         * modules/unistr/u16-strchr: Likewise.
12495         * modules/unistr/u16-strcmp: Likewise.
12496         * modules/unistr/u16-strcoll: Likewise.
12497         * modules/unistr/u16-strcpy: Likewise.
12498         * modules/unistr/u16-strcspn: Likewise.
12499         * modules/unistr/u16-strdup: Likewise.
12500         * modules/unistr/u16-strlen: Likewise.
12501         * modules/unistr/u16-strmblen: Likewise.
12502         * modules/unistr/u16-strmbtouc: Likewise.
12503         * modules/unistr/u16-strncat: Likewise.
12504         * modules/unistr/u16-strncmp: Likewise.
12505         * modules/unistr/u16-strncpy: Likewise.
12506         * modules/unistr/u16-strnlen: Likewise.
12507         * modules/unistr/u16-strpbrk: Likewise.
12508         * modules/unistr/u16-strrchr: Likewise.
12509         * modules/unistr/u16-strspn: Likewise.
12510         * modules/unistr/u16-strstr: Likewise.
12511         * modules/unistr/u16-strtok: Likewise.
12512         * modules/unistr/u16-to-u32: Likewise.
12513         * modules/unistr/u16-to-u8: Likewise.
12514         * modules/unistr/u16-uctomb: Likewise.
12515         * modules/unistr/u32-check: Likewise.
12516         * modules/unistr/u32-chr: Likewise.
12517         * modules/unistr/u32-cmp: Likewise.
12518         * modules/unistr/u32-cmp2: Likewise.
12519         * modules/unistr/u32-cpy: Likewise.
12520         * modules/unistr/u32-cpy-alloc: Likewise.
12521         * modules/unistr/u32-endswith: Likewise.
12522         * modules/unistr/u32-mblen: Likewise.
12523         * modules/unistr/u32-mbsnlen: Likewise.
12524         * modules/unistr/u32-mbtouc: Likewise.
12525         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12526         * modules/unistr/u32-mbtoucr: Likewise.
12527         * modules/unistr/u32-move: Likewise.
12528         * modules/unistr/u32-next: Likewise.
12529         * modules/unistr/u32-prev: Likewise.
12530         * modules/unistr/u32-set: Likewise.
12531         * modules/unistr/u32-startswith: Likewise.
12532         * modules/unistr/u32-stpcpy: Likewise.
12533         * modules/unistr/u32-stpncpy: Likewise.
12534         * modules/unistr/u32-strcat: Likewise.
12535         * modules/unistr/u32-strchr: Likewise.
12536         * modules/unistr/u32-strcmp: Likewise.
12537         * modules/unistr/u32-strcoll: Likewise.
12538         * modules/unistr/u32-strcpy: Likewise.
12539         * modules/unistr/u32-strcspn: Likewise.
12540         * modules/unistr/u32-strdup: Likewise.
12541         * modules/unistr/u32-strlen: Likewise.
12542         * modules/unistr/u32-strmblen: Likewise.
12543         * modules/unistr/u32-strmbtouc: Likewise.
12544         * modules/unistr/u32-strncat: Likewise.
12545         * modules/unistr/u32-strncmp: Likewise.
12546         * modules/unistr/u32-strncpy: Likewise.
12547         * modules/unistr/u32-strnlen: Likewise.
12548         * modules/unistr/u32-strpbrk: Likewise.
12549         * modules/unistr/u32-strrchr: Likewise.
12550         * modules/unistr/u32-strspn: Likewise.
12551         * modules/unistr/u32-strstr: Likewise.
12552         * modules/unistr/u32-strtok: Likewise.
12553         * modules/unistr/u32-to-u16: Likewise.
12554         * modules/unistr/u32-to-u8: Likewise.
12555         * modules/unistr/u32-uctomb: Likewise.
12556         * modules/uniwbrk/u8-wordbreaks: Likewise.
12557         * modules/uniwbrk/u16-wordbreaks: Likewise.
12558         * modules/uniwbrk/u32-wordbreaks: Likewise.
12559         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12560         * modules/uniwbrk/wordbreak-property: Likewise.
12561         * modules/uniwidth/u8-strwidth: Likewise.
12562         * modules/uniwidth/u8-width: Likewise.
12563         * modules/uniwidth/u16-strwidth: Likewise.
12564         * modules/uniwidth/u16-width: Likewise.
12565         * modules/uniwidth/u32-strwidth: Likewise.
12566         * modules/uniwidth/u32-width: Likewise.
12567         * modules/uniwidth/width: Likewise.
12568         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12569         with $(LIBUNISTRING).
12570         * modules/unicase/ignorable-tests: Likewise.
12571         * modules/unicase/locale-language-tests: Likewise.
12572         * modules/unicase/tolower-tests: Likewise.
12573         * modules/unicase/totitle-tests: Likewise.
12574         * modules/unicase/toupper-tests: Likewise.
12575         * modules/unicase/u8-casecmp-tests: Likewise.
12576         * modules/unicase/u8-casecoll-tests: Likewise.
12577         * modules/unicase/u8-casefold-tests: Likewise.
12578         * modules/unicase/u8-is-cased-tests: Likewise.
12579         * modules/unicase/u8-is-casefolded-tests: Likewise.
12580         * modules/unicase/u8-is-lowercase-tests: Likewise.
12581         * modules/unicase/u8-is-titlecase-tests: Likewise.
12582         * modules/unicase/u8-is-uppercase-tests: Likewise.
12583         * modules/unicase/u8-tolower-tests: Likewise.
12584         * modules/unicase/u8-totitle-tests: Likewise.
12585         * modules/unicase/u8-toupper-tests: Likewise.
12586         * modules/unicase/u16-casecmp-tests: Likewise.
12587         * modules/unicase/u16-casecoll-tests: Likewise.
12588         * modules/unicase/u16-casefold-tests: Likewise.
12589         * modules/unicase/u16-is-cased-tests: Likewise.
12590         * modules/unicase/u16-is-casefolded-tests: Likewise.
12591         * modules/unicase/u16-is-lowercase-tests: Likewise.
12592         * modules/unicase/u16-is-titlecase-tests: Likewise.
12593         * modules/unicase/u16-is-uppercase-tests: Likewise.
12594         * modules/unicase/u16-tolower-tests: Likewise.
12595         * modules/unicase/u16-totitle-tests: Likewise.
12596         * modules/unicase/u16-toupper-tests: Likewise.
12597         * modules/unicase/u32-casecmp-tests: Likewise.
12598         * modules/unicase/u32-casecoll-tests: Likewise.
12599         * modules/unicase/u32-casefold-tests: Likewise.
12600         * modules/unicase/u32-is-cased-tests: Likewise.
12601         * modules/unicase/u32-is-casefolded-tests: Likewise.
12602         * modules/unicase/u32-is-lowercase-tests: Likewise.
12603         * modules/unicase/u32-is-titlecase-tests: Likewise.
12604         * modules/unicase/u32-is-uppercase-tests: Likewise.
12605         * modules/unicase/u32-tolower-tests: Likewise.
12606         * modules/unicase/u32-totitle-tests: Likewise.
12607         * modules/unicase/u32-toupper-tests: Likewise.
12608         * modules/unicase/ulc-casecmp-tests: Likewise.
12609         * modules/unicase/ulc-casecoll-tests: Likewise.
12610         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12611         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12612         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12613         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12614         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12615         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12616         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12617         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12618         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12619         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12620         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12621         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12622         * modules/unictype/bidicategory-byname-tests: Likewise.
12623         * modules/unictype/bidicategory-name-tests: Likewise.
12624         * modules/unictype/bidicategory-of-tests: Likewise.
12625         * modules/unictype/bidicategory-test-tests: Likewise.
12626         * modules/unictype/block-list-tests: Likewise.
12627         * modules/unictype/block-of-tests: Likewise.
12628         * modules/unictype/block-test-tests: Likewise.
12629         * modules/unictype/category-C-tests: Likewise.
12630         * modules/unictype/category-Cc-tests: Likewise.
12631         * modules/unictype/category-Cf-tests: Likewise.
12632         * modules/unictype/category-Cn-tests: Likewise.
12633         * modules/unictype/category-Co-tests: Likewise.
12634         * modules/unictype/category-Cs-tests: Likewise.
12635         * modules/unictype/category-L-tests: Likewise.
12636         * modules/unictype/category-Ll-tests: Likewise.
12637         * modules/unictype/category-Lm-tests: Likewise.
12638         * modules/unictype/category-Lo-tests: Likewise.
12639         * modules/unictype/category-Lt-tests: Likewise.
12640         * modules/unictype/category-Lu-tests: Likewise.
12641         * modules/unictype/category-M-tests: Likewise.
12642         * modules/unictype/category-Mc-tests: Likewise.
12643         * modules/unictype/category-Me-tests: Likewise.
12644         * modules/unictype/category-Mn-tests: Likewise.
12645         * modules/unictype/category-N-tests: Likewise.
12646         * modules/unictype/category-Nd-tests: Likewise.
12647         * modules/unictype/category-Nl-tests: Likewise.
12648         * modules/unictype/category-No-tests: Likewise.
12649         * modules/unictype/category-P-tests: Likewise.
12650         * modules/unictype/category-Pc-tests: Likewise.
12651         * modules/unictype/category-Pd-tests: Likewise.
12652         * modules/unictype/category-Pe-tests: Likewise.
12653         * modules/unictype/category-Pf-tests: Likewise.
12654         * modules/unictype/category-Pi-tests: Likewise.
12655         * modules/unictype/category-Po-tests: Likewise.
12656         * modules/unictype/category-Ps-tests: Likewise.
12657         * modules/unictype/category-S-tests: Likewise.
12658         * modules/unictype/category-Sc-tests: Likewise.
12659         * modules/unictype/category-Sk-tests: Likewise.
12660         * modules/unictype/category-Sm-tests: Likewise.
12661         * modules/unictype/category-So-tests: Likewise.
12662         * modules/unictype/category-Z-tests: Likewise.
12663         * modules/unictype/category-Zl-tests: Likewise.
12664         * modules/unictype/category-Zp-tests: Likewise.
12665         * modules/unictype/category-Zs-tests: Likewise.
12666         * modules/unictype/category-and-not-tests: Likewise.
12667         * modules/unictype/category-and-tests: Likewise.
12668         * modules/unictype/category-byname-tests: Likewise.
12669         * modules/unictype/category-name-tests: Likewise.
12670         * modules/unictype/category-none-tests: Likewise.
12671         * modules/unictype/category-of-tests: Likewise.
12672         * modules/unictype/category-or-tests: Likewise.
12673         * modules/unictype/category-test-withtable-tests: Likewise.
12674         * modules/unictype/combining-class-tests: Likewise.
12675         * modules/unictype/ctype-alnum-tests: Likewise.
12676         * modules/unictype/ctype-alpha-tests: Likewise.
12677         * modules/unictype/ctype-blank-tests: Likewise.
12678         * modules/unictype/ctype-cntrl-tests: Likewise.
12679         * modules/unictype/ctype-digit-tests: Likewise.
12680         * modules/unictype/ctype-graph-tests: Likewise.
12681         * modules/unictype/ctype-lower-tests: Likewise.
12682         * modules/unictype/ctype-print-tests: Likewise.
12683         * modules/unictype/ctype-punct-tests: Likewise.
12684         * modules/unictype/ctype-space-tests: Likewise.
12685         * modules/unictype/ctype-upper-tests: Likewise.
12686         * modules/unictype/ctype-xdigit-tests: Likewise.
12687         * modules/unictype/decimal-digit-tests: Likewise.
12688         * modules/unictype/digit-tests: Likewise.
12689         * modules/unictype/mirror-tests: Likewise.
12690         * modules/unictype/numeric-tests: Likewise.
12691         * modules/unictype/property-alphabetic-tests: Likewise.
12692         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12693         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12694         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12695         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12696         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12697         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12698         * modules/unictype/property-bidi-control-tests: Likewise.
12699         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12700         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12701         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12702         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12703         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12704         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12705         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12706         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12707         * modules/unictype/property-bidi-pdf-tests: Likewise.
12708         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12709         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12710         * modules/unictype/property-byname-tests: Likewise.
12711         * modules/unictype/property-combining-tests: Likewise.
12712         * modules/unictype/property-composite-tests: Likewise.
12713         * modules/unictype/property-currency-symbol-tests: Likewise.
12714         * modules/unictype/property-dash-tests: Likewise.
12715         * modules/unictype/property-decimal-digit-tests: Likewise.
12716         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12717         * modules/unictype/property-deprecated-tests: Likewise.
12718         * modules/unictype/property-diacritic-tests: Likewise.
12719         * modules/unictype/property-extender-tests: Likewise.
12720         * modules/unictype/property-format-control-tests: Likewise.
12721         * modules/unictype/property-grapheme-base-tests: Likewise.
12722         * modules/unictype/property-grapheme-extend-tests: Likewise.
12723         * modules/unictype/property-grapheme-link-tests: Likewise.
12724         * modules/unictype/property-hex-digit-tests: Likewise.
12725         * modules/unictype/property-hyphen-tests: Likewise.
12726         * modules/unictype/property-id-continue-tests: Likewise.
12727         * modules/unictype/property-id-start-tests: Likewise.
12728         * modules/unictype/property-ideographic-tests: Likewise.
12729         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12730         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12731         * modules/unictype/property-ignorable-control-tests: Likewise.
12732         * modules/unictype/property-iso-control-tests: Likewise.
12733         * modules/unictype/property-join-control-tests: Likewise.
12734         * modules/unictype/property-left-of-pair-tests: Likewise.
12735         * modules/unictype/property-line-separator-tests: Likewise.
12736         * modules/unictype/property-logical-order-exception-tests: Likewise.
12737         * modules/unictype/property-lowercase-tests: Likewise.
12738         * modules/unictype/property-math-tests: Likewise.
12739         * modules/unictype/property-non-break-tests: Likewise.
12740         * modules/unictype/property-not-a-character-tests: Likewise.
12741         * modules/unictype/property-numeric-tests: Likewise.
12742         * modules/unictype/property-other-alphabetic-tests: Likewise.
12743         * modules/unictype/property-other-default-ignorable-code-point-tests:
12744         Likewise.
12745         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12746         * modules/unictype/property-other-id-continue-tests: Likewise.
12747         * modules/unictype/property-other-id-start-tests: Likewise.
12748         * modules/unictype/property-other-lowercase-tests: Likewise.
12749         * modules/unictype/property-other-math-tests: Likewise.
12750         * modules/unictype/property-other-uppercase-tests: Likewise.
12751         * modules/unictype/property-paired-punctuation-tests: Likewise.
12752         * modules/unictype/property-paragraph-separator-tests: Likewise.
12753         * modules/unictype/property-pattern-syntax-tests: Likewise.
12754         * modules/unictype/property-pattern-white-space-tests: Likewise.
12755         * modules/unictype/property-private-use-tests: Likewise.
12756         * modules/unictype/property-punctuation-tests: Likewise.
12757         * modules/unictype/property-quotation-mark-tests: Likewise.
12758         * modules/unictype/property-radical-tests: Likewise.
12759         * modules/unictype/property-sentence-terminal-tests: Likewise.
12760         * modules/unictype/property-soft-dotted-tests: Likewise.
12761         * modules/unictype/property-space-tests: Likewise.
12762         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12763         * modules/unictype/property-test-tests: Likewise.
12764         * modules/unictype/property-titlecase-tests: Likewise.
12765         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12766         * modules/unictype/property-unified-ideograph-tests: Likewise.
12767         * modules/unictype/property-uppercase-tests: Likewise.
12768         * modules/unictype/property-variation-selector-tests: Likewise.
12769         * modules/unictype/property-white-space-tests: Likewise.
12770         * modules/unictype/property-xid-continue-tests: Likewise.
12771         * modules/unictype/property-xid-start-tests: Likewise.
12772         * modules/unictype/property-zero-width-tests: Likewise.
12773         * modules/unictype/scripts-tests: Likewise.
12774         * modules/unictype/syntax-c-ident-tests: Likewise.
12775         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12776         * modules/unictype/syntax-java-ident-tests: Likewise.
12777         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12778         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12779         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12780         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12781         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12782         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12783         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12784         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12785         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12786         * modules/uniname/uniname-tests: Likewise.
12787         * modules/uninorm/canonical-decomposition-tests: Likewise.
12788         * modules/uninorm/compat-decomposition-tests: Likewise.
12789         * modules/uninorm/composition-tests: Likewise.
12790         * modules/uninorm/decomposing-form-tests: Likewise.
12791         * modules/uninorm/decomposition-tests: Likewise.
12792         * modules/uninorm/filter-tests: Likewise.
12793         * modules/uninorm/nfc-tests: Likewise.
12794         * modules/uninorm/nfd-tests: Likewise.
12795         * modules/uninorm/nfkc-tests: Likewise.
12796         * modules/uninorm/nfkd-tests: Likewise.
12797         * modules/uninorm/u8-normcmp-tests: Likewise.
12798         * modules/uninorm/u8-normcoll-tests: Likewise.
12799         * modules/uninorm/u16-normcmp-tests: Likewise.
12800         * modules/uninorm/u16-normcoll-tests: Likewise.
12801         * modules/uninorm/u32-normcmp-tests: Likewise.
12802         * modules/uninorm/u32-normcoll-tests: Likewise.
12803         * modules/unistdio/u8-asnprintf-tests: Likewise.
12804         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12805         * modules/unistdio/u8-vasprintf-tests: Likewise.
12806         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12807         * modules/unistdio/u8-vsprintf-tests: Likewise.
12808         * modules/unistdio/u16-asnprintf-tests: Likewise.
12809         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12810         * modules/unistdio/u16-vasprintf-tests: Likewise.
12811         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12812         * modules/unistdio/u16-vsprintf-tests: Likewise.
12813         * modules/unistdio/u32-asnprintf-tests: Likewise.
12814         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12815         * modules/unistdio/u32-vasprintf-tests: Likewise.
12816         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12817         * modules/unistdio/u32-vsprintf-tests: Likewise.
12818         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12819         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12820         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12821         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12822         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12823         * modules/unistr/u8-check-tests: Likewise.
12824         * modules/unistr/u8-chr-tests: Likewise.
12825         * modules/unistr/u8-cmp-tests: Likewise.
12826         * modules/unistr/u8-cmp2-tests: Likewise.
12827         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12828         * modules/unistr/u8-cpy-tests: Likewise.
12829         * modules/unistr/u8-mblen-tests: Likewise.
12830         * modules/unistr/u8-mbsnlen-tests: Likewise.
12831         * modules/unistr/u8-mbtouc-tests: Likewise.
12832         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12833         * modules/unistr/u8-mbtoucr-tests: Likewise.
12834         * modules/unistr/u8-move-tests: Likewise.
12835         * modules/unistr/u8-next-tests: Likewise.
12836         * modules/unistr/u8-prev-tests: Likewise.
12837         * modules/unistr/u8-set-tests: Likewise.
12838         * modules/unistr/u8-stpcpy-tests: Likewise.
12839         * modules/unistr/u8-stpncpy-tests: Likewise.
12840         * modules/unistr/u8-strcat-tests: Likewise.
12841         * modules/unistr/u8-strcmp-tests: Likewise.
12842         * modules/unistr/u8-strcoll-tests: Likewise.
12843         * modules/unistr/u8-strcpy-tests: Likewise.
12844         * modules/unistr/u8-strdup-tests: Likewise.
12845         * modules/unistr/u8-strlen-tests: Likewise.
12846         * modules/unistr/u8-strmblen-tests: Likewise.
12847         * modules/unistr/u8-strmbtouc-tests: Likewise.
12848         * modules/unistr/u8-strncat-tests: Likewise.
12849         * modules/unistr/u8-strncmp-tests: Likewise.
12850         * modules/unistr/u8-strncpy-tests: Likewise.
12851         * modules/unistr/u8-strnlen-tests: Likewise.
12852         * modules/unistr/u8-to-u16-tests: Likewise.
12853         * modules/unistr/u8-to-u32-tests: Likewise.
12854         * modules/unistr/u8-uctomb-tests: Likewise.
12855         * modules/unistr/u16-check-tests: Likewise.
12856         * modules/unistr/u16-chr-tests: Likewise.
12857         * modules/unistr/u16-cmp-tests: Likewise.
12858         * modules/unistr/u16-cmp2-tests: Likewise.
12859         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12860         * modules/unistr/u16-cpy-tests: Likewise.
12861         * modules/unistr/u16-mblen-tests: Likewise.
12862         * modules/unistr/u16-mbsnlen-tests: Likewise.
12863         * modules/unistr/u16-mbtouc-tests: Likewise.
12864         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12865         * modules/unistr/u16-mbtoucr-tests: Likewise.
12866         * modules/unistr/u16-move-tests: Likewise.
12867         * modules/unistr/u16-next-tests: Likewise.
12868         * modules/unistr/u16-prev-tests: Likewise.
12869         * modules/unistr/u16-set-tests: Likewise.
12870         * modules/unistr/u16-stpcpy-tests: Likewise.
12871         * modules/unistr/u16-stpncpy-tests: Likewise.
12872         * modules/unistr/u16-strcat-tests: Likewise.
12873         * modules/unistr/u16-strcmp-tests: Likewise.
12874         * modules/unistr/u16-strcoll-tests: Likewise.
12875         * modules/unistr/u16-strcpy-tests: Likewise.
12876         * modules/unistr/u16-strdup-tests: Likewise.
12877         * modules/unistr/u16-strlen-tests: Likewise.
12878         * modules/unistr/u16-strmblen-tests: Likewise.
12879         * modules/unistr/u16-strmbtouc-tests: Likewise.
12880         * modules/unistr/u16-strncat-tests: Likewise.
12881         * modules/unistr/u16-strncmp-tests: Likewise.
12882         * modules/unistr/u16-strncpy-tests: Likewise.
12883         * modules/unistr/u16-strnlen-tests: Likewise.
12884         * modules/unistr/u16-to-u32-tests: Likewise.
12885         * modules/unistr/u16-to-u8-tests: Likewise.
12886         * modules/unistr/u16-uctomb-tests: Likewise.
12887         * modules/unistr/u32-check-tests: Likewise.
12888         * modules/unistr/u32-chr-tests: Likewise.
12889         * modules/unistr/u32-cmp-tests: Likewise.
12890         * modules/unistr/u32-cmp2-tests: Likewise.
12891         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12892         * modules/unistr/u32-cpy-tests: Likewise.
12893         * modules/unistr/u32-mblen-tests: Likewise.
12894         * modules/unistr/u32-mbsnlen-tests: Likewise.
12895         * modules/unistr/u32-mbtouc-tests: Likewise.
12896         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12897         * modules/unistr/u32-mbtoucr-tests: Likewise.
12898         * modules/unistr/u32-move-tests: Likewise.
12899         * modules/unistr/u32-next-tests: Likewise.
12900         * modules/unistr/u32-prev-tests: Likewise.
12901         * modules/unistr/u32-set-tests: Likewise.
12902         * modules/unistr/u32-stpcpy-tests: Likewise.
12903         * modules/unistr/u32-stpncpy-tests: Likewise.
12904         * modules/unistr/u32-strcat-tests: Likewise.
12905         * modules/unistr/u32-strcmp-tests: Likewise.
12906         * modules/unistr/u32-strcoll-tests: Likewise.
12907         * modules/unistr/u32-strcpy-tests: Likewise.
12908         * modules/unistr/u32-strdup-tests: Likewise.
12909         * modules/unistr/u32-strlen-tests: Likewise.
12910         * modules/unistr/u32-strmblen-tests: Likewise.
12911         * modules/unistr/u32-strmbtouc-tests: Likewise.
12912         * modules/unistr/u32-strncat-tests: Likewise.
12913         * modules/unistr/u32-strncmp-tests: Likewise.
12914         * modules/unistr/u32-strncpy-tests: Likewise.
12915         * modules/unistr/u32-strnlen-tests: Likewise.
12916         * modules/unistr/u32-to-u16-tests: Likewise.
12917         * modules/unistr/u32-to-u8-tests: Likewise.
12918         * modules/unistr/u32-uctomb-tests: Likewise.
12919         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12920         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12921         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12922         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12923         * modules/uniwidth/u8-strwidth-tests: Likewise.
12924         * modules/uniwidth/u8-width-tests: Likewise.
12925         * modules/uniwidth/u16-strwidth-tests: Likewise.
12926         * modules/uniwidth/u16-width-tests: Likewise.
12927         * modules/uniwidth/u32-strwidth-tests: Likewise.
12928         * modules/uniwidth/u32-width-tests: Likewise.
12929         * modules/uniwidth/width-tests: Likewise.
12930
12931 2010-05-18  Richard Jones  <rjones@redhat.com>
12932
12933         doc: users.txt: list hivex
12934         * users.txt: Add hivex.
12935
12936 2010-05-18  Richard Jones  <rjones@redhat.com>
12937
12938         doc: users.txt: list febootstrap
12939         * users.txt: Add febootstrap.
12940
12941 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12942
12943         bootstrap: fix an error when gnulib is not used as a git submodule
12944         * build-aux/bootstrap (gnulib_path): If its length is zero then
12945         assign "gnulib" to it.
12946         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12947
12948 2010-05-16  Bruno Haible  <bruno@clisp.org>
12949
12950         Avoid autoconf warnings about AM_ICONV.
12951         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12952         2.64.
12953
12954 2010-05-16  Bruno Haible  <bruno@clisp.org>
12955
12956         absolute-header: Make the macro usable in more situations.
12957         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
12958         from gl_ABSOLUTE_HEADER.
12959         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
12960
12961 2010-05-16  James Youngman  <jay@gnu.org>
12962
12963         doc: update users.txt
12964         * users.txt: Add CSSC.
12965
12966 2010-05-16  Jim Meyering  <meyering@redhat.com>
12967
12968         init.sh: fix an error in the previous change; add more comments
12969         * tests/init.sh: Compare exit code in loop against 9, not 2.
12970         Patch by Bruno Haible.
12971         Make the two tests more similar by adding an empty "then" clause.
12972         Add comments.
12973
12974         init.sh: avoid unnecessary shell re-exec
12975         * tests/init.sh: Improve the re-exec-required check to first test the
12976         current shell.  If it passes the test, do not search for a shell that
12977         does pass, and do not re-exec.  This test is particularly contorted to
12978         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
12979         of $(...) evokes a syntax error and causes immediate shell exit with
12980         status 2.  Bruno Haible reported that the re-exec made it impossible
12981         to single-step through any init.sh-using script.
12982
12983 2010-05-16  Bruno Haible  <bruno@clisp.org>
12984
12985         Fix collision between gnulib's and libintl's printf replacements.
12986         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
12987         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
12988         (printf): When using GNU C, map the __printf__ function to rpl_printf
12989         via __asm__. When not using GNU C, define rpl_printf instead of
12990         __printf__.
12991         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
12992         commit.
12993         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
12994         commit.
12995         * m4/asm-underscore.m4: New file.
12996         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
12997         * modules/stdio (Files): Add m4/asm-underscore.m4.
12998         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
12999         Reported by Ben Pfaff.
13000
13001 2010-05-16  Bruno Haible  <bruno@clisp.org>
13002
13003         verify: Avoid skipping the test on openSUSE 11.0.
13004         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13005
13006 2010-05-13  Bruno Haible  <bruno@clisp.org>
13007
13008         Avoid useless warnings from G++.
13009         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13010         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13011         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13012
13013 2010-05-11  Jim Meyering  <meyering@redhat.com>
13014
13015         maint.mk: tweak preceding change
13016         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13017         regexps tighter by anchoring at EOL, and make the new group "shy"
13018         for slightly decreased overhead.
13019
13020 2010-05-11  Eric Blake  <eblake@redhat.com>
13021
13022         maint.mk: gnulib doesn't guarantee NSIG
13023         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13024
13025 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13026
13027         test-pwrite.c: Remove unused variable declaration.
13028         * tests/test-pwrite.c (main): Remove read_buf declaration.
13029
13030         Remove useless test-pwrite.sh file.
13031         * tests/test-pwrite.sh: Delete file.
13032         * modules/pwrite-tests: Remove references.
13033         Reported by Bruno Haible.
13034
13035 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13036
13037         init.sh: fix a typo
13038         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13039
13040 2010-05-10  Jim Meyering  <meyering@redhat.com>
13041
13042         maint.mk: avoid using a temporary file in the always-defined-macros check
13043         * top/maint.mk (.re-defmac): Remove rule.
13044         (gl_trap_): Remove definition.
13045         (sc_prohibit_always-defined_macros): Rewrite not to create and
13046         depend on a temporary file.  Instead, depend on GNU grep's ability
13047         to read a list of regular expressions from stdin when given "-f -".
13048
13049 2010-05-09  Bruno Haible  <bruno@clisp.org>
13050
13051         Update to GNU gettext 0.18, part 1.
13052         * m4/gettext.m4: Update to GNU gettext 0.18.
13053         * m4/intl.m4: Likewise.
13054         * m4/po.m4: Likewise.
13055         * modules/gettext (Files): Add m4/fcntl-o.m4.
13056         (configure.ac): Require gettext infrastructure from version 0.18.
13057
13058 2010-05-09  Jim Meyering  <meyering@redhat.com>
13059
13060         init.sh: enable MALLOC_PERTURB_
13061         * tests/init.sh: Enable glibc's malloc-perturbing option.
13062
13063         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13064         With my recent change in init.sh from the two-line form:
13065             -#   : ${srcdir=.}
13066             -#   . "$srcdir/init.sh"; path_prepend_ .
13067             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13068         I noticed that using the one-line form would cause this test
13069         to fail with a false-positive, or to stop working altogether,
13070         depending on whether help-version changed or all the tests did.
13071         * top/maint.mk (_hv_regex): Remove this definition.
13072         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13073         (_hv_regex_strong): Use a stronger regex to check for conformance.
13074         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13075         Give a separate diagnostic for lack of conforming use.
13076
13077         maint.mk: prohibit definition of symbols defined by gnulib
13078         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13079         definition of symbols defined by gnulib.
13080
13081 2010-05-09  Bruno Haible  <bruno@clisp.org>
13082
13083         acl: Avoid test failure on Cygwin-hosted mingw.
13084         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13085
13086 2010-05-09  Bruno Haible  <bruno@clisp.org>
13087
13088         error: Use system's fcntl function.
13089         * lib/error.c (fcntl): Undefine.
13090
13091 2010-05-09  Jim Meyering  <meyering@redhat.com>
13092
13093         verify: adjust formatting to be more consistent
13094         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13095         argument-list '('s, and after one comma.
13096
13097 2010-05-09  Bruno Haible  <bruno@clisp.org>
13098
13099         error: More reliable output on mingw.
13100         * lib/error.c: Include <windows.h>.
13101         (is_open): New function.
13102         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13103         defined.
13104
13105 2010-05-09  Bruno Haible  <bruno@clisp.org>
13106
13107         vasnprintf: Fix syntax errors in libintl build on mingw.
13108         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13109         pad_ourselves and prec_ourselves after use.
13110
13111 2010-05-08  Bruno Haible  <bruno@clisp.org>
13112
13113         * lib/config.charset: Update comments for Cygwin 1.7.
13114         * lib/localcharset.c: Likewise.
13115
13116 2010-05-07  Jim Meyering  <meyering@redhat.com>
13117
13118         init.sh: improve comments
13119         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13120         . "${srcdir=.}/init.sh"; path_prepend_ .
13121         Add a note about path_prepend_ and the alternative of using
13122         TESTS_ENVIRONMENT.
13123
13124 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13125
13126         exclude: Unescape hashed patterns in wildcard mode.
13127         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13128         to the hash list.
13129         * tests/test-exclude8.sh: New test case.
13130         * modules/exclude-tests: Add new test.
13131
13132 2010-05-05  Eric Blake  <eblake@redhat.com>
13133
13134         verify: automate tests
13135         * modules/verify-tests: New module.
13136         * tests/test-verify.sh: New file.
13137         * tests/test-verify.c: Guard each negative test with a unique id.
13138         Also avoid warning about unused left hand of comma expressions.
13139
13140 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13141
13142         Further improvements to verify.h, suggested by Eric Blake.
13143         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13144         the GL_* versions, to avoid collision with OpenGL.
13145         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13146         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13147         than testing merely whether it's defined.
13148
13149         Modify verify.h to pacify gcc -Wredundant_decls.
13150         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13151         These use the prefix "GL_" since they're likely to be useful elsewhere.
13152         We may need to break them out into a different .h file.
13153         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13154         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13155         of verify_function__.
13156
13157 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13158
13159         Tests for module pwrite.
13160         * modules/pwrite-tests: New file.
13161         * tests/test-pwrite.sh: New file.
13162         * tests/test-pwrite.c: New file.
13163
13164         New module pwrite.
13165         * lib/unistd.in.h (pwrite): New declaration.
13166         * lib/pwrite.c: New file, from glibc with modifications.
13167         * m4/pwrite.m4: New file.
13168         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13169         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13170         REPLACE_PWRITE.
13171         * modules/pwrite: New file.
13172         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13173         REPLACE_PWRITE.
13174         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13175         * doc/posix-functions/pwrite.texi: Mention the new module.
13176
13177 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13178
13179         pread: Update documentation.
13180         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13181
13182 2010-05-04  Eric Blake  <eblake@redhat.com>
13183
13184         docs: update cygwin progress
13185         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13186         this bug.
13187         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13188         Added in cygwin 1.7.2.
13189         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13190         Likewise.
13191         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13192         Likewise.
13193         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13194         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13195         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13196         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13197         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13198         Mention nproc module.
13199         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13200         bug in cygwin 1.7.5 addition.
13201         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13202         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13203         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13204         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13205         1.7.5.
13206         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13207         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13208         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13209         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13210         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13211         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13212         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13213         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13214         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13215         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13216         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13217         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13218         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13219         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13220         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13221         Likewise.
13222         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13223         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13224         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13225         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13226         Likewise.
13227         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13228         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13229         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13230         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13231         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13232         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13233         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13234         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13235         Likewise.
13236         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13237         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13238         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13239         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13240         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13241         Likewise.
13242         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13243         Likewise.
13244         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13245         Likewise.
13246         * doc/glibc-functions/xdrrec_endofrecord.texi
13247         (xdrrec_endofrecord): Likewise.
13248         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13249         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13250         Likewise.
13251         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13252         Likewise.
13253
13254 2010-05-04  Jim Meyering  <meyering@redhat.com>
13255
13256         gendocs.sh: make its "-s FILE" option more useful
13257         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13258         $PACKAGE to reflect the probably-different basename of "FILE".
13259
13260 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13261
13262         bootstrap: don't ignore download_po_files failure
13263         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13264         failure.
13265
13266 2010-05-03  Jim Meyering  <meyering@redhat.com>
13267
13268         maint.mk: allow to pass options to gendocs.sh
13269         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13270         (gendocs_options_): New overridable variable.
13271
13272         gnu-web-doc-update: don't ignore configure or build failure
13273         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13274
13275         announce-gen: backslash-escape '@'s in --help output
13276         * build-aux/announce-gen: Fix syntax errors.
13277
13278         maint.mk, announce-gen: allow project-specific announcement mail headers
13279         * top/maint.mk (translation_project_): Define default.
13280         (announcement_Cc_, announcement_mail_headers_): Likewise.
13281         (announcement): Invoke announce-gen with new --mail-headers option.
13282         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13283
13284         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13285         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13286         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13287         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13288         line in the "err2" output file when running "make check" in verbose
13289         mode (i.e., with set -x enabled).
13290
13291 2010-05-03  Bruno Haible  <bruno@clisp.org>
13292
13293         wctob: Fix for weird platforms.
13294         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13295         argument value.
13296
13297 2010-05-03  Jim Meyering  <meyering@redhat.com>
13298
13299         maint.mk: prohibit unwarranted use of <strings.h>
13300         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13301         strings.h in a file that does not also use strcasecmp, strncasecmp,
13302         ffs or ffsll.
13303
13304         maint.mk: remove obsolete comments
13305         * top/maint.mk: Remove stale, commented-out rules.
13306
13307 2010-05-02  Bruno Haible  <bruno@clisp.org>
13308
13309         wcwidth: Declare also when it's aliased.
13310         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13311         macro.
13312
13313 2010-05-02  Bruno Haible  <bruno@clisp.org>
13314
13315         Fix regression from 2010-04-25.
13316         * gnulib-tool (func_modules_transitive_closure): Check the status of
13317         all modules, not only of the tests that are of the form foo-tests where
13318         foo is a module.
13319
13320 2010-05-02  Bruno Haible  <bruno@clisp.org>
13321
13322         wctob: Work around nasty Cygwin 1.7.2 bug.
13323         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13324         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13325
13326 2010-05-01  Bruno Haible  <bruno@clisp.org>
13327
13328         fpurge: Sharper test.
13329         * tests/test-fpurge.c (main): Add one more ftell check.
13330         * modules/fpurge-tests (Depends-on): Add ftell.
13331         Suggested by Eric Blake.
13332
13333 2010-05-01  Bruno Haible  <bruno@clisp.org>
13334
13335         ftello: Another test.
13336         * tests/test-ftello3.c: New file.
13337         * modules/ftello-tests (Files): Add it.
13338         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13339         MOSTLYCLEANFILES.
13340
13341         ftell: Another test.
13342         * tests/test-ftell3.c: New file.
13343         * modules/ftell-tests (Files): Add it.
13344         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13345         MOSTLYCLEANFILES.
13346
13347 2010-05-01  Bruno Haible  <bruno@clisp.org>
13348
13349         ftell, ftello: Work around Solaris bug.
13350         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13351         * lib/ftello.c: Include stdio-impl.h.
13352         (ftello): On Solaris, when _IOWRT is set, compute the result without
13353         looking at _IOREAD.
13354         * modules/ftello (Files): Add lib/stdio-impl.h.
13355         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13356         * doc/posix-functions/ftello.texi: Likewise.
13357         Reported by Eric Blake.
13358
13359 2010-05-01  Bruno Haible  <bruno@clisp.org>
13360
13361         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13362         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13363         the _IOWRT flag is also set.
13364
13365 2010-05-01  Bruno Haible  <bruno@clisp.org>
13366
13367         Fix doc about a HP-UX stdio bug.
13368         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13369         * doc/posix-functions/ftello.texi: Likewise.
13370
13371 2010-05-01  Bruno Haible  <bruno@clisp.org>
13372
13373         lseek test: Fix failure on Solaris.
13374         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13375         output.
13376
13377 2010-04-30  Jim Meyering  <meyering@redhat.com>
13378
13379         bootstrap: don't ignore failure to generate po*/Makevars
13380         * build-aux/bootstrap (with_gettext): Don't ignore failure
13381         to create po/Makevars or runtime-po/Makevars.
13382
13383 2010-04-29  Eric Blake  <eblake@redhat.com>
13384
13385         headers: relax license to LGPLv2+
13386         * modules/fcntl-h (License): Relax license.
13387         * modules/getopt-posix (License): Likewise.
13388         * modules/locale (License): Likewise.
13389         * modules/math (License): Likewise.
13390         * modules/pty (License): Likewise.
13391         * modules/sched (License): Likewise.
13392         * modules/search (License): Likewise.
13393         * modules/spawn (License): Likewise.
13394         * modules/stdarg (License): Likewise.
13395         * modules/sysexits (License): Likewise.
13396
13397 2010-04-29  Jim Meyering  <meyering@redhat.com>
13398
13399         inttypes: relax license to LGPLv2+
13400         * modules/inttypes (License): Relax license.
13401
13402 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13403
13404         * top/maint.mk (indent): Run twice to produce idempotent results.
13405
13406 2010-04-28  Bruno Haible  <bruno@clisp.org>
13407
13408         getdate: Generate getdate.c in the source directory.
13409         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13410         MOSTLYCLEANFILES.
13411         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13412
13413 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13414
13415         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13416         is not declared as a const *; avoid warnings in that case.
13417
13418 2010-04-28  Eric Blake  <eblake@redhat.com>
13419
13420         canonicalize-lgpl: avoid compiler warning
13421         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13422         declaration' / 'extraneous semicolon' warning with some compilers.
13423         Reported by Andreas Gruenbacher.
13424
13425 2010-04-28  Jim Meyering  <meyering@redhat.com>
13426
13427         init.sh: ensure a more reliable exit status when exiting via trap
13428         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13429         Inspired by patches from Dmitry V. Levin.
13430         Also trap on signal 3 (SIGQUIT).
13431
13432 2010-04-27  Bruno Haible  <bruno@clisp.org>
13433
13434         Update doc about utimes().
13435         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13436         'utimens' module.
13437         Reported by Andreas Gruenbacher <agruen@suse.de>.
13438
13439 2010-04-27  Eric Blake  <eblake@redhat.com>
13440
13441         full-read, full-write: relax license
13442         * modules/full-read (License): Drop to LGPLv2+.
13443         * modules/full-write (License): Likewise.
13444         * modules/safe-read (License): Likewise.
13445         * modules/safe-write (License): Likewise.
13446
13447         pthread: mention library for linking
13448         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13449
13450 2010-04-27  Jim Meyering  <meyering@redhat.com>
13451
13452         maint.mk: fix a bug introduced in last change
13453         * top/maint.mk (gl_assured_headers_): Now that all names are on
13454         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13455         is not anchored to end of word, it should be adequate.
13456
13457         maint.mk: avoid side-effect in latest syntax-check
13458         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13459         to run commands via $(shell...), and hence to incur cost only when
13460         the new rule is actually run.
13461
13462         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13463         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13464         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13465         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13466         (gl_assured_headers_, az_, AZ_): Define.
13467         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13468
13469 2010-04-26  Jim Meyering  <jim@meyering.net>
13470             Bruno Haible  <bruno@clisp.org>
13471
13472         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13473         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13474         Prompted by an exchange with Gilles Espinasse.
13475
13476 2010-04-26  Jim Meyering  <meyering@redhat.com>
13477
13478         git-version-gen: aesthetic tweak
13479         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13480         so that the command remains on a single line.
13481
13482 2010-04-26  Eric Blake  <eblake@redhat.com>
13483
13484         git-version-gen: allow use on EBCDIC hosts
13485         * build-aux/git-version-gen (dirty): Use literal rather than tying
13486         ourselves to ascii.
13487         Reported by Steve Goetze.
13488
13489 2010-04-25  Bruno Haible  <bruno@clisp.org>
13490
13491         netdb: Add support for GNULIB_POSIXCHECK.
13492         * lib/netdb.in.h: Include warn-on-use.h.
13493         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13494         functions are used when GNULIB_POSIXCHECK is defined and the
13495         getaddrinfo module is not in use.
13496         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13497         freeaddrinfo, gai_strerror, getnameinfo are declared.
13498         * modules/netdb (Depends-on): Add warn-on-use.
13499         (Makefile.am): Include warn-on-use.h in netdb.h.
13500
13501 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13502
13503         build: avoid "make check" failure without .git/ directory
13504         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13505         there is no .git/ directory.
13506
13507 2010-04-25  Bruno Haible  <bruno@clisp.org>
13508
13509         ptsname: Fix misuse of ttyname_r.
13510         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13511         of errno.
13512
13513 2010-04-25  Bruno Haible  <bruno@clisp.org>
13514
13515         ttyname_r: Make it work on Solaris 10.
13516         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13517         if the system function has the POSIX declaration. Test whether the
13518         function fails if the buffer is less than 128 bytes large.
13519         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13520         system's ttyname_r function. Provide a reasonably large buffer.
13521         * modules/ttyname_r (Depends-on): Add extensions.
13522         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13523
13524 2010-04-25  Bruno Haible  <bruno@clisp.org>
13525
13526         Use the 'extensions' module for some more functions on Solaris.
13527         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13528         module.
13529         * doc/posix-functions/ctime_r.texi: Likewise.
13530         * doc/posix-functions/getgrgid_r.texi: Likewise.
13531         * doc/posix-functions/getgrnam_r.texi: Likewise.
13532         * doc/posix-functions/getpwnam_r.texi: Likewise.
13533         * doc/posix-functions/getpwuid_r.texi: Likewise.
13534         * doc/posix-functions/readdir_r.texi: Likewise.
13535         * doc/posix-functions/sigwait.texi: Likewise.
13536         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13537         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13538
13539 2010-04-25  Bruno Haible  <bruno@clisp.org>
13540
13541         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13542         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13543         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13544         * lib/ttyname_r.c: Include <limits.h>.
13545         (ttyname_r): Define using the system's ttyname_r function, if it exists
13546         and not on Solaris.
13547         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13548         set.
13549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13550         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13551         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13552         Reported by Simon Josefsson.
13553
13554 2010-04-25  Bruno Haible  <bruno@clisp.org>
13555
13556         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13557         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13558         * doc/posix-functions/ctime_r.texi: Likewise.
13559         * doc/posix-functions/getgrgid_r.texi: Likewise.
13560         * doc/posix-functions/getgrnam_r.texi: Likewise.
13561         * doc/posix-functions/getlogin_r.texi: Likewise.
13562         * doc/posix-functions/getpwnam_r.texi: Likewise.
13563         * doc/posix-functions/getpwuid_r.texi: Likewise.
13564         * doc/posix-functions/readdir_r.texi: Likewise.
13565         * doc/posix-functions/sigwait.texi: Likewise.
13566         * doc/posix-functions/ttyname_r.texi: Likewise.
13567         Reported by Simon Josefsson.
13568
13569 2010-04-25  Bruno Haible  <bruno@clisp.org>
13570
13571         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13572         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13573         also to --create-testdir.
13574         (func_acceptable): Don't consider the status of *-tests modules here.
13575         (func_modules_transitive_closure): Consider it here, before including a
13576         test module.
13577         (func_import, func_create_testdir): Set inc_all_direct_tests,
13578         inc_all_indirect_tests.
13579         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13580         --create-testdir and --create-megatestdir.
13581
13582 2010-04-25  Bruno Haible  <bruno@clisp.org>
13583
13584         gnulib-tool: Add --without-*-tests options.
13585         * gnulib-tool (func_usage): Document the --without-*-tests options.
13586         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13587         excl_unportable_tests): New variables.
13588         Fail if they are specified with --import or --update.
13589         (func_acceptable): Respect the excl_*_tests variables.
13590         (func_import): Set the excl_*_tests variables to empty.
13591
13592 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13593             Bruno Haible  <bruno@clisp.org>
13594
13595         Work around a MacOS X 10.4 bug with openpty.
13596         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13597         * tests/test-openpty.c (main): Close the master side explicitly.
13598
13599 2010-04-25  Bruno Haible  <bruno@clisp.org>
13600
13601         strnlen: Fix a C++ test error on MacOS X and Solaris.
13602         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13603         the function is not declared.
13604         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13605         Simon Josefsson.
13606
13607 2010-04-24  Bruno Haible  <bruno@clisp.org>
13608
13609         Avoid a gcc warning.
13610         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13611         of correct type for %08lx directive.
13612         Reported by Eric Blake.
13613
13614 2010-04-24  Bruno Haible  <bruno@clisp.org>
13615
13616         vasnprintf: Correct errno value in case of out-of-memory.
13617         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13618         or sprintf. Use the errno value from SNPRINTF or sprintf.
13619         Reported by Ian Beckwith <ianb@erislabs.net>.
13620
13621 2010-04-24  Bruno Haible  <bruno@clisp.org>
13622
13623         ansi-c++-opt: Find correct compiler when cross-compiling.
13624         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13625         AC_CHECK_PROGS.
13626         Reported by Simon Josefsson.
13627
13628 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13629
13630         vc-list-files: Add support for subversion
13631         * build-aux/vc-list-files: Use "svn list" to generate the list of
13632         files controlled by subversion.
13633
13634 2010-04-23  Jim Meyering  <meyering@redhat.com>
13635
13636         vc-list-files tests: convert to use init.sh
13637         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13638         path_prepend_.
13639         Use Exit, not exit.
13640         Use skip_ rather than open coding it.
13641         Remove trap set-up and compare definitions.
13642         * tests/test-vc-list-files-git.sh: Likewise.
13643         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13644
13645 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13646
13647         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13648         backup files.
13649
13650 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13651
13652         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13653
13654 2010-04-20  Eric Blake  <eblake@redhat.com>
13655
13656         tests: be robust to ignored SIGPIPE
13657         * tests/test-select-in.sh: Consume all output.
13658         * tests/test-lseek.sh: Check correct exit status, while avoiding
13659         EPIPE.
13660
13661 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13662             Bruno Haible  <bruno@clisp.org>
13663
13664         visibility: Don't use -fvisibility if it leads to a warning.
13665         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13666         yes, don't pretend that visibility works if it leads to a warning.
13667         Reported by Mike Gran <spk121@yahoo.com>.
13668
13669 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13670
13671         * build-aux/bootstrap: Use "git -h" for testing for supported options
13672         instead of "git --help".  The short-form option only shows a summary,
13673         and doesn't layout the full man page.  Grep for the full option name
13674         in the summary, too.
13675
13676 2010-04-19  Bruno Haible  <bruno@clisp.org>
13677
13678         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13679         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13680         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13681         mention of RELOCATABLE_STRIP.
13682         Reported by Sylvain Beucler <beuc@beuc.net>.
13683
13684 2010-04-19  Bruno Haible  <bruno@clisp.org>
13685
13686         * lib/diffseq.h: Fix typo in comment.
13687         Reported by Eric Blake.
13688
13689 2010-04-19  Bruno Haible  <bruno@clisp.org>
13690
13691         ioctl: Move autoconf macro to a .m4 file.
13692         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13693         * modules/ioctl (Files): Add it.
13694         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13695         Reported by Ian Beckwith <ianb@erislabs.net>.
13696
13697 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13698             Bruno Haible  <bruno@clisp.org>
13699
13700         diffseq: Accommodate use-case with abstract arrays.
13701         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13702         is not defined.
13703         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13704         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13705
13706 2010-04-18  Bruno Haible  <bruno@clisp.org>
13707
13708         * doc/posix-headers/stdbool.texi: More precise wording.
13709
13710 2010-04-17  Jim Meyering  <meyering@redhat.com>
13711
13712         maint.mk: use gnu-style indentation in an embedded perl script
13713         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13714         Rename variable: s/two/last_two_bytes/
13715
13716 2010-04-16  Eric Blake  <eblake@redhat.com>
13717
13718         test-stdbool: skip test that fails with Solaris CC
13719         * tests/test-stdbool.c (f): Skip test that causes compilation
13720         error under buggy C++ compiler.
13721         * lib/stdbool.in.h: Document the limitation.
13722         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13723
13724         setenv: allow compilation with C++
13725         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13726         register keyword.
13727
13728         stdint: allow test to pass with C++
13729         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13730
13731         getopt: allow compilation with C++
13732         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13733         struct.
13734         * lib/getopt.c (_getopt_internal_r): Use correct type.
13735         Reported by Dagobert Michelson, via Joel E. Denny.
13736
13737 2010-04-16  Bruno Haible  <bruno@clisp.org>
13738
13739         Override netdb.h always.
13740         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13741         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13742         Reported by Ludovic Courtès <ludo@gnu.org>.
13743
13744 2010-04-15  Bruno Haible  <bruno@clisp.org>
13745
13746         openpty: Fix mistake from 2010-03-21.
13747         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13748         Reported by Simon Josefsson.
13749
13750 2010-04-15  Eric Blake  <eblake@redhat.com>
13751
13752         test-forkpty: fix expected signature
13753         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13754         Reported by Simon Josefsson.
13755
13756 2010-04-15  Jim Meyering  <meyering@redhat.com>
13757
13758         maint.mk: texinfo_suffix_re_: correct the default regexp
13759         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13760
13761         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13762         make it configurable via texinfo_suffix_re_.
13763
13764 2010-04-14  Eric Blake  <eblake@redhat.com>
13765
13766         strtok_r: relax license to LGPLv2+
13767         * modules/strtok_r (License): Relax license.
13768         Reported by Matthias Bolte.
13769
13770 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13771
13772         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13773         version 1.4.4 by default instead of requiring the libgcrypt
13774         version used during build.  This makes it possible to use the
13775         application with older but still binary compatible libgcrypt
13776         versions.
13777
13778 2010-04-13  Eric Blake  <eblake@redhat.com>
13779
13780         getopt-gnu: match recent glibc fixes and posix ruling
13781         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13782         '+' handling, when requesting extensions.
13783         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13784         'W;' handling.
13785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13786         * doc/posix-functions/getopt.texi (getopt): Document this.
13787         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13788         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13789         Likewise.
13790
13791         getopt: merge bug fixes from glibc
13792         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13793         diagnostics.  Honor '+:' correctly.  Reject ';'.
13794
13795         getopt-posix: detect MacOS bug
13796         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13797         optind when missing a required argument.
13798         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13799         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13800         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13801         Likewise.
13802
13803         getopt-posix: avoid spurious failure on Solaris
13804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13805         an indicator that setting optind=1 is sufficient for reset.
13806
13807         getopt-posix: avoid spurious failure on FreeBSD
13808         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13809         in POSIX mode, since the m4 test uses it.
13810
13811         gnulib-tool: silence warning on BSD sh
13812         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13813
13814 2010-04-13  Jim Meyering  <meyering@redhat.com>
13815
13816         doc: users.txt: GNU patch now uses gnulib
13817         * users.txt: Add patch.
13818
13819 2010-04-12  Jim Meyering  <meyering@redhat.com>
13820
13821         maint.mk: generate more concise timing data for syntax-check rules
13822         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13823         " done" from each line that reports a syntax-check test duration.
13824
13825 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13826
13827         git-version-gen: use "git update-index..." rather than "git status"
13828         * build-aux/git-version-gen: Use git update-index --refresh, not
13829         "git status".  With some versions of git, "git status" would fail
13830         to update the index and result in an unwarranted "-dirty" suffix.
13831
13832 2010-04-11  Jim Meyering  <meyering@redhat.com>
13833
13834         openat: correct formatting (no semantic change)
13835         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13836         Suggested by Bruno Haible.
13837
13838 2010-04-11  Bruno Haible  <bruno@clisp.org>
13839
13840         Stricter declaration checking in testdirs.
13841         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13842         If for_tests is true, augment AM_CPPFLAGS to define
13843         GNULIB_STRICT_CHECKING.
13844         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13845         GNULIB_STRICT_CHECKING is defined, verify that the function is
13846         declared.
13847
13848 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13849             Bruno Haible  <bruno@clisp.org>
13850
13851         libunistring: Improve configure output.
13852         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13853         Don't say "consider installing GNU libunistring" when checking again
13854         with libiconv.
13855
13856 2010-04-11  Bruno Haible  <bruno@clisp.org>
13857
13858         libunistring: Correct value of $LTLIBUNISTRING.
13859         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13860         correct the value of $LTLIBUNISTRING.
13861
13862 2010-04-11  Bruno Haible  <bruno@clisp.org>
13863
13864         havelib: Add static libraries to LIBS in the right order.
13865         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13866         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13867
13868 2010-04-11  Bruno Haible  <bruno@clisp.org>
13869
13870         libunistring: Detect libunistring also when it depends on libiconv.
13871         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13872         the second AC_LIB_HAVE_LINKFLAGS invocation.
13873
13874 2010-04-11  James Youngman  <jay@gnu.org>
13875
13876         close-stream: declare local scalars to be "const"
13877         * lib/close-stream.c (close_stream): Make boolean variables const
13878         to document the fact that we set but do not change them.
13879
13880 2010-04-11  Bruno Haible  <bruno@clisp.org>
13881
13882         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13883
13884 2010-04-11  Jim Meyering  <meyering@redhat.com>
13885
13886         maint.mk: don't include dist-check.mk
13887         * top/maint.mk: Remove bogus include directive.
13888
13889         maint.mk: improve empty-line-at-EOF check
13890         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13891         solution, rather than tail+Perl-based one.  The latter would read
13892         a few kilobytes from the end of each file, and did not handle empty
13893         files properly.
13894
13895         maint.mk: print the elapsed time for each syntax-check rule
13896         * top/maint.mk (sc_m_rules_): Save start time in a file.
13897         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13898         (local-check): Interpose the .z rules
13899
13900 2010-04-11  Jim Meyering  <meyering@redhat.com>
13901
13902         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13903         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13904         empty file with one that ends in an empty line.
13905
13906 2010-04-10  Bruno Haible  <bruno@clisp.org>
13907
13908         mkdir: Make it work on mingw64.
13909         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13910         * lib/mkdir.c: Update comment.
13911         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
13912
13913 2010-04-10  Bruno Haible  <bruno@clisp.org>
13914
13915         Don't override improved macro from newer autoconf.
13916         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13917         autoconf >= 2.62.
13918         Reported by Joel E. Denny <jdenny@clemson.edu>.
13919
13920 2010-04-10  Jim Meyering  <meyering@redhat.com>
13921
13922         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13923         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13924
13925         maint.mk: correct a diagnostic
13926         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13927         in diagnostic; now use $prohibit.
13928
13929 2010-04-10  Bruno Haible  <address@hidden>
13930
13931         fchownat: Fix a C++ test error on Solaris 8.
13932         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13933         the function does not exist.
13934
13935 2010-04-10  Bruno Haible  <bruno@clisp.org>
13936
13937         vasnprintf: Add more tests.
13938         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13939         (test_function): Test converting an invalid wide string.
13940
13941         vasnprintf: Correct handling of unconvertible wide string arguments.
13942         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13943         VASNPRINTF.
13944         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13945         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13946         smaller than the expected maximum need for the directive. Set errno to
13947         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13948         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13950         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13951         * modules/vasnprintf (Files): Add m4/printf.m4.
13952         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13953
13954 2010-04-10  Bruno Haible  <bruno@clisp.org>
13955
13956         vasnprintf: Fix crash in %ls directive.
13957         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
13958         string is passed as argument to %ls, with no precision and no width.
13959         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13960
13961 2010-04-10  Bruno Haible  <bruno@clisp.org>
13962
13963         vasnprintf: Fix multiple test failures on mingw.
13964         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
13965         _snprintf, or snwprintf, not _snwprintf.
13966
13967 2010-04-10  Bruno Haible  <bruno@clisp.org>
13968
13969         write: Fix a C++ test error on mingw.
13970         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
13971
13972 2010-04-10  Bruno Haible  <bruno@clisp.org>
13973
13974         vasnprintf test: Reduce code duplication.
13975         * tests/test-vasnprintf.c (test_function): New function, extracted from
13976         test_vasnprintf.
13977         (test_vasnprintf, test_asnprintf): Invoke it.
13978
13979 2010-04-10  Bruno Haible  <bruno@clisp.org>
13980
13981         strnlen: Fix warning in C++ mode on MacOS X.
13982         * lib/string.in.h (strnlen): Use the modern idiom.
13983         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
13984         defining strnlen as a macro already in <config.h>.
13985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13986         REPLACE_STRNLEN.
13987         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
13988         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13989
13990 2010-04-08  James Youngman  <jay@gnu.org>
13991
13992         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
13993         the example.
13994
13995 2010-04-09  Jim Meyering  <meyering@redhat.com>
13996
13997         maint.mk: print better diagnostic when there is no $(_hv_file)
13998         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
13999         announce that when $(_hv_file) (aka help-version) does not exist.
14000
14001         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14002         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14003         not try to interpret its random input bytes.  Jarno Rajahalme reported
14004         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14005         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14006         (mktempd_): Likewise, just in case.
14007
14008         ftruncate: add two years to projected module removal date: 2012
14009         * m4/ftruncate.m4: Adjust comments.
14010
14011         ftruncate: mark module as obsolete; even MinGW provides it, now
14012         * modules/ftruncate (Status): Obsolete.
14013         (Notice): Say that.
14014         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14015         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14016
14017 2010-04-08  Bruno Haible  <bruno@clisp.org>
14018
14019         Fix side effects from tests-related modules.
14020         * modules/dprintf-posix (Comment): New section.
14021         * modules/fprintf-posix (Comment): Likewise.
14022         * modules/obstack-printf-posix (Comment): Likewise.
14023         * modules/printf-posix (Comment): Likewise.
14024         * modules/snprintf-posix (Comment): Likewise.
14025         * modules/sprintf-posix (Comment): Likewise.
14026         * modules/vasnprintf-posix (Comment): Likewise.
14027         * modules/vasprintf-posix (Comment): Likewise.
14028         * modules/vdprintf-posix (Comment): Likewise.
14029         * modules/vfprintf-posix (Comment): Likewise.
14030         * modules/vprintf-posix (Comment): Likewise.
14031         * modules/vsnprintf-posix (Comment): Likewise.
14032         * modules/vsprintf-posix (Comment): Likewise.
14033         * modules/xprintf-posix (Comment): Likewise.
14034         * modules/xvasprintf-posix (Comment): Likewise.
14035         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14036         * modules/floorf-tests (Depends-on): Likewise.
14037         * modules/round-tests (Depends-on): Likewise.
14038         * modules/roundf-tests (Depends-on): Likewise.
14039         * modules/trunc-tests (Depends-on): Likewise.
14040         * modules/truncf-tests (Depends-on): Likewise.
14041         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14042         'fprintf-posix' module is not present.
14043         * tests/test-floorf2.c (check): Likewise.
14044         * tests/test-trunc2.c (check): Likewise.
14045         * tests/test-truncf2.c (check): Likewise.
14046         * tests/test-round2.c (equal): Likewise.
14047         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14048
14049 2010-04-07  Karl Berry  <karl@gnu.org>
14050
14051         * config/srclist.txt,
14052         * config/srclistvars.sh,
14053         * config/srclist-update: doc fixes.
14054
14055 2010-04-07  Jim Meyering  <meyering@redhat.com>
14056
14057         maint.mk: add a PATH crosschecking syntax-check rule
14058         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14059         Useful if you use a test like the one in help-version (coreutils,
14060         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14061         printed by prog --version.
14062
14063 2010-04-06  Bruno Haible  <bruno@clisp.org>
14064
14065         Fix link error on mingw.
14066         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14067         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14068
14069 2010-04-06  Bruno Haible  <bruno@clisp.org>
14070
14071         Assume rmdir exists.
14072         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14073
14074 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14075
14076         doc: update users.txt
14077         * users.txt: Add gcal.
14078
14079 2010-04-06  Jim Meyering  <meyering@redhat.com>
14080
14081         init.sh: simply unset TMPDIR rather than risking env -i
14082         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14083         although it probably works fine on all Unix-based systems, some
14084         systems (Cygwin?) cannot tolerate a totally cleared environment.
14085         Suggestion from Eric Blake.
14086
14087 2010-04-06  Jim Meyering  <meyering@redhat.com>
14088
14089         init.sh: portability fix: use env's POSIX-specified -i option not -u
14090         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14091         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14092
14093 2010-04-05  Bruno Haible  <bruno@clisp.org>
14094
14095         btowc: Work around Cygwin 1.7.2 bug.
14096         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14097         does not map NUL to 0.
14098         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14099
14100 2010-04-05  Bruno Haible  <bruno@clisp.org>
14101
14102         Make the multithread modules work on Cygwin 1.7.2.
14103         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14104         imported symbols can be declared weak, so that it returns "no" on
14105         Cygwin 1.7.2.
14106
14107 2010-04-05  Bruno Haible  <bruno@clisp.org>
14108
14109         Use the module 'strncat'.
14110         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14111
14112         Tests for module 'strncat'.
14113         * modules/strncat-tests: New file.
14114         * tests/test-strncat.c: New file.
14115
14116         New module 'strncat'.
14117         * lib/string.in.h (strncat): New declaration.
14118         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14119         * m4/strncat.m4: New file, based on m4/memchr.m4.
14120         * modules/strncat: New file.
14121         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14122         is declared.
14123         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14124         REPLACE_STRNCAT.
14125         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14126         REPLACE_STRNCAT.
14127         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14128         module.
14129         * tests/test-string-c++.cc: Check signature of strncat.
14130
14131 2010-04-05  Jim Meyering  <meyering@redhat.com>
14132
14133         xstrtoumax-tests: convert to use init.sh
14134         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14135         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14136         Use Exit, not exit.
14137         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14138
14139         xstrtoimax-tests: convert to use init.sh
14140         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14141         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14142         Use Exit, not exit.
14143         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14144
14145 2010-04-05  Bruno Haible  <bruno@clisp.org>
14146
14147         sys_socket: Avoid #define replacements in C++ mode.
14148         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14149         warning to the function if possible, rather than #defining the symbol
14150         to a dysfunctional alias.
14151
14152 2010-04-05  Bruno Haible  <bruno@clisp.org>
14153
14154         fseeko: Fix C++ test error on mingw.
14155         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14156         gl_FUNC_FSEEKO.
14157         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14158         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14159         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14160         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14161
14162 2010-04-05  Bruno Haible  <bruno@clisp.org>
14163
14164         duplocale: Improve test output.
14165         * tests/test-duplocale.c (main): Print reason for skipped test.
14166
14167 2010-04-05  Bruno Haible  <bruno@clisp.org>
14168
14169         Assume rmdir exists.
14170         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14171         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14172
14173 2010-04-05  Bruno Haible  <bruno@clisp.org>
14174
14175         Fix link error on Solaris 8 with cc.
14176         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14177
14178 2010-04-05  Bruno Haible  <bruno@clisp.org>
14179
14180         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14181         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14182
14183 2010-04-05  Bruno Haible  <bruno@clisp.org>
14184
14185         vasprintf: Update documentation.
14186         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14187
14188 2010-04-05  Bruno Haible  <bruno@clisp.org>
14189
14190         ptsname: Improve test.
14191         * tests/test-ptsname.c (main): Also try the various master names of BSD
14192         systems.
14193
14194 2010-04-05  Bruno Haible  <bruno@clisp.org>
14195
14196         memchr: Avoid a possible C++ test error.
14197         * lib/string.in.h (memchr): Provide declaration if function is missing.
14198         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14199         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14201         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14202
14203 2010-04-05  Bruno Haible  <bruno@clisp.org>
14204
14205         strtok_r: Improve idiom.
14206         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14207         AC_LIBOBJ is used.
14208
14209 2010-04-05  Bruno Haible  <bruno@clisp.org>
14210
14211         strdup: Improve idiom.
14212         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14213         AC_LIBOBJ is used.
14214         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14215         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14216         when AC_LIBOBJ is used.
14217
14218 2010-04-05  Bruno Haible  <bruno@clisp.org>
14219
14220         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14221         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14222         don't set REPLACE_MBSINIT to 1.
14223         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14224         don't set REPLACE_MBRTOWC to 1.
14225         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14226         exist, don't set REPLACE_MBSRTOWCS to 1.
14227         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14228         exist, don't set REPLACE_MBSNRTOWCS to 1.
14229         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14230         don't set REPLACE_WCRTOMB to 1.
14231         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14232         exist, don't set REPLACE_WCSRTOMBS to 1.
14233         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14234         exist, don't set REPLACE_WCSNRTOMBS to 1.
14235
14236 2010-04-05  Bruno Haible  <bruno@clisp.org>
14237
14238         ldexpl: Improve idiom.
14239         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14240         make sure to set HAVE_DECL_LDEXPL to 0.
14241
14242 2010-04-05  Jim Meyering  <meyering@redhat.com>
14243
14244         xstrtol-tests: convert to use init.sh
14245         * modules/xstrtol-tests (Files): Add tests/init.sh.
14246         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14247         Use Exit, not exit.
14248         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14249
14250         atexit-tests: convert to use init.sh
14251         * modules/atexit-tests (Files): Add tests/init.sh.
14252         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14253         Use Exit, not exit.
14254         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14255
14256         init.sh: fix typo
14257         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14258
14259         init.sh: make it easier for a test script to write to the tty, ...
14260         when using automake's parallel-tests mode.
14261         * tests/init.sh (stderr_fileno_): Define overridable variable.
14262         (warn_): New function, to use it.
14263         (fail_, skip_, framework_failure_): Use warn_.
14264
14265 2010-04-04  Bruno Haible  <bruno@clisp.org>
14266
14267         btowc: Avoid warning.
14268         * lib/btowc.c: Include <stdlib.h>.
14269         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14270
14271 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14272             Bruno Haible  <bruno@clisp.org>
14273
14274         wchar: Port to NetBSD 1.5.
14275         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14276         * lib/wctype.in.h (WEOF): Likewise.
14277
14278 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14279             Bruno Haible  <bruno@clisp.org>
14280
14281         Port extended stdio to NetBSD 1.5.
14282         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14283         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14284         older.
14285
14286 2010-04-04  Bruno Haible  <bruno@clisp.org>
14287
14288         string: Remove unused substitution.
14289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14290         HAVE_DECL_STRERROR.
14291         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14292
14293 2010-04-04  Bruno Haible  <bruno@clisp.org>
14294
14295         strtod: Avoid a possible C++ test error.
14296         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14297         set REPLACE_STRTOD.
14298
14299 2010-04-04  Bruno Haible  <bruno@clisp.org>
14300
14301         strerror: Update documentation.
14302         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14303
14304 2010-04-04  Bruno Haible  <bruno@clisp.org>
14305
14306         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14307         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14308         _GL_CXXALIAS_SYS_CAST.
14309
14310 2010-04-04  Bruno Haible  <bruno@clisp.org>
14311
14312         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14313         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14314         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14315         REPLACE_FREXPL to 1.
14316         * doc/posix-functions/frexpl.texi: Update documentation.
14317
14318 2010-04-04  Bruno Haible  <bruno@clisp.org>
14319
14320         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14321         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14322
14323 2010-04-04  Bruno Haible  <bruno@clisp.org>
14324
14325         Implement nanosleep for native Windows.
14326         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14327
14328 2010-04-04  Bruno Haible  <bruno@clisp.org>
14329
14330         math: Fix some C++ test errors on Solaris 8.
14331         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14332
14333 2010-04-04  Bruno Haible  <bruno@clisp.org>
14334
14335         math: Fix some C++ test errors on Cygwin.
14336         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14337         truncl): Provide declaration if the system does not have it.
14338         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14339         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14340         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14341         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14342         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14343         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14344         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14345         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14346         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14347         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14348         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14349         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14350         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14351         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14352         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14353         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14355         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14356         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14357         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14358         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14359         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14360
14361 2010-04-04  Bruno Haible  <bruno@clisp.org>
14362
14363         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14364         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14365         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14366         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14367         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14368         * m4/isinf.m4 (gl_ISINF): Likewise.
14369         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14370
14371 2010-04-04  Bruno Haible  <bruno@clisp.org>
14372
14373         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14374         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14375
14376 2010-04-04  Bruno Haible  <bruno@clisp.org>
14377
14378         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14379         * modules/tmpfile (configure.ac): Update.
14380
14381         tmpfile: Fix C++ test error on mingw.
14382         * lib/stdio.in.h (tmpfile): New declaration.
14383         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14384         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14385         * modules/tmpfile (Depends-on): Add stdio.
14386         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14387         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14388         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14389         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14390         REPLACE_TMPFILE.
14391         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14392
14393 2010-04-04  Bruno Haible  <bruno@clisp.org>
14394
14395         ioctl: Fix C++ test error on mingw.
14396         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14397         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14398         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14399
14400 2010-04-03  Bruno Haible  <bruno@clisp.org>
14401
14402         wcwidth: Fix C++ test error on mingw.
14403         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14405         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14406
14407 2010-04-03  Bruno Haible  <bruno@clisp.org>
14408
14409         nanosleep: Fix C++ test error on mingw.
14410         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14411         * lib/time.in.h (nanosleep): Use modern idiom.
14412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14413         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14414         REPLACE_NANOSLEEP to 1.
14415         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14416         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14417
14418 2010-04-03  Bruno Haible  <bruno@clisp.org>
14419
14420         strptime: Fix C++ test error on mingw.
14421         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14422         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14423         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14424         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14425         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14426         not REPLACE_STRPTIME.
14427         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14428         REPLACE_STRPTIME.
14429
14430 2010-04-03  Bruno Haible  <bruno@clisp.org>
14431
14432         timegm: Fix C++ test error on mingw.
14433         * lib/time.in.h (timegm): Use modern idiom.
14434         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14435         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14436         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14437         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14438
14439 2010-04-03  Bruno Haible  <bruno@clisp.org>
14440
14441         timegm: Assume declaration if function exists.
14442         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14443         if it exists. Don't clobber ac_cv_func_timegm.
14444
14445 2010-04-03  Bruno Haible  <bruno@clisp.org>
14446
14447         time_r: Fix C++ test error on mingw.
14448         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14449         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14450         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14451         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14452         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14453
14454 2010-04-03  Bruno Haible  <bruno@clisp.org>
14455
14456         time_r: Minor updates.
14457         * modules/time_r (Description): Mention the provided functions.
14458         * lib/time_r.c: Don't include <string.h>.
14459         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14460         * doc/posix-functions/localtime_r.texi: Likewise.
14461
14462 2010-04-03  Bruno Haible  <bruno@clisp.org>
14463
14464         time: Fix regression introduced on 2010-03-08.
14465         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14466         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14467
14468 2010-04-03  Jim Meyering  <meyering@redhat.com>
14469
14470         maint.mk: don't silently disable project-specific syntax-check rules
14471         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14472         that they need to convert their project-specific syntax-check rules
14473         to use the new _sc_search_regexp.
14474
14475 2010-04-03  Bruno Haible  <bruno@clisp.org>
14476
14477         fchdir: Fix regression introduced on 2010-03-08.
14478         * lib/unistd.in.h (fchdir): Fix declaration.
14479         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14481         REPLACE_FCHDIR.
14482         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14483         REPLACE_FCHDIR.
14484
14485 2010-04-03  Bruno Haible  <bruno@clisp.org>
14486
14487         getpagesize: Fix C++ test error on mingw.
14488         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14489         system does not declare the function.
14490         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14491         declared.
14492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14493         HAVE_DECL_GETPAGESIZE.
14494         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14495
14496 2010-04-03  Bruno Haible  <bruno@clisp.org>
14497
14498         stdio: Make C++ tests work on mingw.
14499         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14500         does not declare the function.
14501
14502 2010-04-03  Bruno Haible  <bruno@clisp.org>
14503
14504         ftello: Fix C++ test error on mingw.
14505         * lib/stdio.in.h (ftello): Use modern idiom.
14506         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14507         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14508         is missing and that it needs to be replaced.
14509         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14511         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14512
14513 2010-04-03  Bruno Haible  <bruno@clisp.org>
14514
14515         fseeko: Fix C++ test error on mingw.
14516         * lib/stdio.in.h (fseeko): Use modern idiom.
14517         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14518         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14519         is missing and that it needs to be replaced.
14520         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14522         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14523
14524 2010-04-03  Bruno Haible  <bruno@clisp.org>
14525
14526         mkstemp: Fix C++ test error on mingw.
14527         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14528         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14529         function is missing and that it needs to be replaced.
14530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14531         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14532
14533 2010-04-03  Bruno Haible  <bruno@clisp.org>
14534
14535         stpncpy: Fix C++ test error on mingw.
14536         * lib/string.in.h (stpncpy): Use modern idiom.
14537         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14538         function is missing and that it needs to be replaced.
14539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14540         REPLACE_STPNCPY.
14541         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14542
14543 2010-04-03  Bruno Haible  <bruno@clisp.org>
14544
14545         sys_stat: Fix C++ test error on mingw.
14546         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14547         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14548
14549 2010-04-03  Bruno Haible  <bruno@clisp.org>
14550
14551         pty: Update doc.
14552         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14553
14554 2010-04-03  Bruno Haible  <bruno@clisp.org>
14555
14556         unistd: Fix C++ test error on mingw.
14557         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14558
14559 2010-04-03  Bruno Haible  <bruno@clisp.org>
14560
14561         Update doc regarding mingw.
14562         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14563         * doc/glibc-functions/login_tty.texi: Likewise.
14564         * doc/glibc-functions/forkpty.texi: Likewise.
14565
14566 2010-04-03  Bruno Haible  <bruno@clisp.org>
14567
14568         stdlib: Avoid compilation failure of c-strtold on mingw.
14569         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14570
14571 2010-04-03  Bruno Haible  <bruno@clisp.org>
14572
14573         locale: Make C++ tests work on Cygwin and mingw.
14574         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14575         cannot provide the function.
14576         Reported by Simon Josefsson.
14577
14578 2010-04-03  Bruno Haible  <bruno@clisp.org>
14579
14580         localename: Port to MacOS X 10.6.
14581         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14582         memory layout of the locales in MacOS X 10.6 as well.
14583         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14584
14585 2010-04-02  Bruno Haible  <bruno@clisp.org>
14586
14587         gnulib-tool: Ensure that long-running tests are executed last.
14588         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14589         running tests after the one for the other tests.
14590
14591 2010-04-02  Bruno Haible  <bruno@clisp.org>
14592
14593         gnulib-tool: Ensure the tests in the main directory are executed first.
14594         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14595         start with the current directory.
14596
14597 2010-04-02  Bruno Haible  <bruno@clisp.org>
14598
14599         Tests for module 'havelib', moved here from GNU gettext.
14600         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14601         modifications.
14602         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14603         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14604         with modifications.
14605         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14606         modifications.
14607         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14608         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14609         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14610         with modifications.
14611         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14612         with modifications.
14613         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14614         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14615         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14616         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14617         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14618         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14619         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14620         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14621         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14622         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14623         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14624         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14625         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14626         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14627         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14628         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14629         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14630         with modifications.
14631         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14632         with modifications.
14633         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14634         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14635         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14636         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14637         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14638         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14639         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14640         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14641         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14642         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14643         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14644         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14645         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14646         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14647         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14648         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14649         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14650         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14651         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14652         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14653         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14654         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14655         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14656         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14657         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14658         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14659         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14660         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14661         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14662         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14663         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14664         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14665         * tests/havelib/rpathx/rpathx.c: New file, from
14666         gettext/autoconf-lib-link.
14667         * tests/havelib/rpathx/Makefile.am: New file, from
14668         gettext/autoconf-lib-link.
14669         * tests/havelib/rpathx/configure.ac: New file, from
14670         gettext/autoconf-lib-link with modifications.
14671         * tests/havelib/rpathy/rpathy.c: New file, from
14672         gettext/autoconf-lib-link.
14673         * tests/havelib/rpathy/Makefile.am: New file, from
14674         gettext/autoconf-lib-link.
14675         * tests/havelib/rpathy/configure.ac: New file, from
14676         gettext/autoconf-lib-link with modifications.
14677         * tests/havelib/rpathz/rpathz.c: New file, from
14678         gettext/autoconf-lib-link.
14679         * tests/havelib/rpathz/Makefile.am: New file, from
14680         gettext/autoconf-lib-link.
14681         * tests/havelib/rpathz/configure.ac: New file, from
14682         gettext/autoconf-lib-link with modifications.
14683         * tests/havelib/rpathlx/usex.c: New file, from
14684         gettext/autoconf-lib-link.
14685         * tests/havelib/rpathlx/Makefile.am: New file, from
14686         gettext/autoconf-lib-link.
14687         * tests/havelib/rpathlx/configure.ac: New file, from
14688         gettext/autoconf-lib-link with modifications.
14689         * tests/havelib/rpathly/usey.c: New file, from
14690         gettext/autoconf-lib-link.
14691         * tests/havelib/rpathly/Makefile.am: New file, from
14692         gettext/autoconf-lib-link.
14693         * tests/havelib/rpathly/configure.ac: New file, from
14694         gettext/autoconf-lib-link with modifications.
14695         * tests/havelib/rpathlz/usez.c: New file, from
14696         gettext/autoconf-lib-link.
14697         * tests/havelib/rpathlz/Makefile.am: New file, from
14698         gettext/autoconf-lib-link.
14699         * tests/havelib/rpathlz/configure.ac: New file, from
14700         gettext/autoconf-lib-link with modifications.
14701         * tests/havelib/rpathlyx/usey.c: New file, from
14702         gettext/autoconf-lib-link.
14703         * tests/havelib/rpathlyx/Makefile.am: New file, from
14704         gettext/autoconf-lib-link.
14705         * tests/havelib/rpathlyx/configure.ac: New file, from
14706         gettext/autoconf-lib-link with modifications.
14707         * tests/havelib/rpathlzyx/usez.c: New file, from
14708         gettext/autoconf-lib-link.
14709         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14710         gettext/autoconf-lib-link.
14711         * tests/havelib/rpathlzyx/configure.ac: New file, from
14712         gettext/autoconf-lib-link with modifications.
14713         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14714         with modifications.
14715
14716 2010-04-02  Bruno Haible  <bruno@clisp.org>
14717
14718         gnulib-tool: Create distributed built sources also for the tests.
14719         * gnulib-tool (func_create_testdir): Also generate distributed built
14720         sources in the tests directory.
14721
14722 2010-04-02  Bruno Haible  <bruno@clisp.org>
14723
14724         gnulib-tool: Obey user's environment variables.
14725         * gnulib-tool (func_create_testdir): When creating built sources,
14726         respect the environment variables for autoconf, automake, etc. given by
14727         the user.
14728
14729 2010-04-02  Bruno Haible  <bruno@clisp.org>
14730
14731         gnulib-tool: Provide the value of --m4-base to modules.
14732         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14733         of gl_m4_base.
14734
14735 2010-04-02  Eric Blake  <eblake@redhat.com>
14736
14737         maint.mk: fix some fallout
14738         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14739         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14740
14741 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14742
14743         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14744         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14745         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14746         (sc_cast_of_x_alloc_return_value): Likewise.
14747         (sc_cast_of_alloca_return_value): Likewise.
14748         (sc_space_tab): Likewise.
14749         (sc_prohibit_atoi_atof): Likewise.
14750         (sc_prohibit_magic_number_exit): Likewise.
14751         (sc_error_exit_success): Likewise.
14752         (sc_file_system): Likewise.
14753         (sc_prohibit_have_config_h): Likewise.
14754         (sc_require_config_h): Likewise.
14755         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14756         (sc_obsolete_symbols): Likewise.
14757         (sc_changelog): Likewise.
14758         (sc_program_name): Likewise.
14759         (sc_the_the): Likewise.
14760         (sc_trailing_blank): Likewise.
14761         (sc_two_space_separator_in_usage): Likewise.
14762         (sc_useless_cpp_parens): Likewise.
14763         (sc_GPL_version): Likewise.
14764         (sc_GFDL_version): Likewise.
14765         (sc_texinfo_acronym): Likewise.
14766         (sc_prohibit_cvs_keyword): Likewise.
14767         (sc_prohibit_stat_st_blocks): Likewise.
14768         (sc_prohibit_S_IS_definition): Likewise.
14769         (sc_redundant_const): Likewise.
14770         (sc_makefile_TAB_only_indentation): Likewise.
14771         (sc_m4_quote_check): Likewise.
14772         (sc_makefile_path_separator_check): Likewise.
14773         (sc_copyright_check): Likewise.
14774         (sc_Wundef_boolean): Likewise.
14775         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14776
14777         maint.mk: match 0 or more whitespace-before-function-call '('
14778         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14779         that have zero or two-and-more spaces between the function name
14780         and the open parenthesis.
14781         (sc_error_message_warn_fatal): Likewise.
14782         (sc_error_message_uppercase): Likewise.
14783         (sc_error_message_period): Likewise.
14784
14785 2010-03-31  Eric Blake  <eblake@redhat.com>
14786
14787         maint.mk: check for [ as well as test
14788         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14789         Based on a libvirt report by Matthias Bolte.
14790
14791         gnumakefile: don't squelch _version output
14792         * top/GNUmakefile (_version): Create one-shot dependency rather
14793         than using $(shell) when version must be regenerated.
14794         (_autoreconf): Run verbosely, by default.
14795
14796         sys_time: avoid compiler warnings
14797         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14798         unconditional, fixing regression from 2010-03-29.
14799         Reported by Simon Josefsson.
14800
14801 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14802
14803         maint.mk: s/_header_without_use/_sc_header_without_use/
14804         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14805         (sc_prohibit_assert_without_use): Use the new name.
14806         (sc_prohibit_close_stream_without_use): Likewise.
14807         (sc_prohibit_getopt_without_use): Likewise.
14808         (sc_prohibit_quotearg_without_use): Likewise.
14809         (sc_prohibit_quote_without_use): Likewise.
14810         (sc_prohibit_long_options_without_use): Likewise.
14811         (sc_prohibit_inttostr_without_use): Likewise.
14812         (sc_prohibit_ignore_value_without_use): Likewise.
14813         (sc_prohibit_error_without_use): Likewise.
14814         (sc_prohibit_xalloc_without_use): Likewise.
14815         (sc_prohibit_hash_without_use): Likewise.
14816         (sc_prohibit_hash_pjw_without_use): Likewise.
14817         (sc_prohibit_safe_read_without_use): Likewise.
14818         (sc_prohibit_argmatch_without_use): Likewise.
14819         (sc_prohibit_canonicalize_without_use): Likewise.
14820         (sc_prohibit_root_dev_ino_without_use): Likewise.
14821         (sc_prohibit_openat_without_use): Likewise.
14822         (sc_prohibit_c_ctype_without_use): Likewise.
14823         (sc_prohibit_signal_without_use): Likewise.
14824         (sc_prohibit_intprops_without_use): Likewise.
14825
14826 2010-03-30  Eric Blake  <eblake@redhat.com>
14827
14828         maint: improve module indicators
14829         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14830         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14831         columns, and avoid extra macro expansion.
14832
14833         fdopendir: work around FreeBSD bug
14834         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14835         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14836         * modules/dirent (Makefile.am): Substitute it.
14837         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14838         declaration.
14839         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14840         fix.
14841         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14842
14843 2010-03-29  Bruno Haible  <bruno@clisp.org>
14844
14845         Emit #pragma system_header after the inclusion guard, not before.
14846         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14847         guard that spans the entire file, not before. This enables an
14848         optimization in GCC's preprocessor.
14849         * lib/ctype.in.h: Likewise.
14850         * lib/dirent.in.h: Likewise.
14851         * lib/errno.in.h: Likewise.
14852         * lib/float.in.h: Likewise.
14853         * lib/getopt.in.h: Likewise.
14854         * lib/iconv.in.h: Likewise.
14855         * lib/langinfo.in.h: Likewise.
14856         * lib/locale.in.h: Likewise.
14857         * lib/math.in.h: Likewise.
14858         * lib/netdb.in.h: Likewise.
14859         * lib/netinet_in.in.h: Likewise.
14860         * lib/pty.in.h: Likewise.
14861         * lib/sched.in.h: Likewise.
14862         * lib/se-selinux.in.h: Likewise.
14863         * lib/search.in.h: Likewise.
14864         * lib/spawn.in.h: Likewise.
14865         * lib/stdarg.in.h: Likewise.
14866         * lib/stdint.in.h: Likewise.
14867         * lib/string.in.h: Likewise.
14868         * lib/strings.in.h: Likewise.
14869         * lib/sys_file.in.h: Likewise.
14870         * lib/sys_ioctl.in.h: Likewise.
14871         * lib/sys_time.in.h: Likewise.
14872         * lib/sys_times.in.h: Likewise.
14873         * lib/sys_utsname.in.h: Likewise.
14874         * lib/sys_wait.in.h: Likewise.
14875         * lib/sysexits.in.h: Likewise.
14876         * lib/wctype.in.h: Likewise.
14877
14878 2010-03-28  James Youngman  <jay@gnu.org>
14879
14880         save-cwd: don't leak a file descriptor when the caller execs.
14881         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14882         saved file descriptor.
14883         * modules/save-cwd (Depends-on): Depend on cloexec.
14884
14885 2010-03-29  Bruno Haible  <bruno@clisp.org>
14886
14887         Remove vestiges of fts-lgpl module.
14888         * lib/fts_.h: Assume GNULIB_FTS is 1.
14889         * lib/fts.c: Likewise.
14890         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14891
14892 2010-03-28  Bruno Haible  <bruno@clisp.org>
14893
14894         Fix definition of tests witness macro.
14895         * gnulib-tool (func_import): Fix definition of witness macro.
14896
14897 2010-03-28  Bruno Haible  <bruno@clisp.org>
14898
14899         Fix ioctl's protoype on glibc systems.
14900         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14901         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14902         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14903         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14904         signature. If not, arrange to replace the ioctl function.
14905         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14906         REPLACE_IOCTL.
14907         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14908         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14909         Reported by Ludovic Courtès <ludo@gnu.org>.
14910
14911 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14912
14913         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14914         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14915         made it so grep -r --include=GLOB* ... did not work.
14916
14917 2010-03-26  Jim Meyering  <meyering@redhat.com>
14918             Eric Blake  <eblake@redhat.com>
14919
14920         maint.mk: prohibit use of test's -o and -a operators
14921         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14922
14923 2010-03-28  Bruno Haible  <bruno@clisp.org>
14924
14925         Remove unused GNULIB_XYZ macro definitions.
14926         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14927         invocation.
14928
14929 2010-03-28  Bruno Haible  <bruno@clisp.org>
14930
14931         Mark privileged tests modules.
14932         * modules/idpriv-drop-tests (Status): New section.
14933         * modules/idpriv-droptemp-tests (Status): New section.
14934
14935 2010-03-28  Bruno Haible  <bruno@clisp.org>
14936
14937         Split C++ tests into separate tests modules.
14938         * modules/dirent-c++-tests: New file, extracted from
14939         modules/dirent-tests.
14940         * modules/dirent-tests: Depend on it.
14941         * modules/fcntl-h-c++-tests: New file, extracted from
14942         modules/fcntl-h-tests.
14943         * modules/fcntl-h-tests: Depend on it.
14944         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14945         * modules/glob-tests: Depend on it.
14946         * modules/iconv-h-c++-tests: New file, extracted from
14947         modules/iconv-h-tests.
14948         * modules/iconv-h-tests: Depend on it.
14949         * modules/langinfo-c++-tests: New file, extracted from
14950         modules/langinfo-tests.
14951         * modules/langinfo-tests: Depend on it.
14952         * modules/locale-c++-tests: New file, extracted from
14953         modules/locale-tests.
14954         * modules/locale-tests: Depend on it.
14955         * modules/math-c++-tests: New file, extracted from modules/math-tests.
14956         * modules/math-tests: Depend on it.
14957         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
14958         * modules/pty-tests: Depend on it.
14959         * modules/search-c++-tests: New file, extracted from
14960         modules/search-tests.
14961         * modules/search-tests: Depend on it.
14962         * modules/signal-c++-tests: New file, extracted from
14963         modules/signal-tests.
14964         * modules/signal-tests: Depend on it.
14965         * modules/spawn-c++-tests: New file, extracted from
14966         modules/spawn-tests.
14967         * modules/spawn-tests: Depend on it.
14968         * modules/stdio-c++-tests: New file, extracted from
14969         modules/stdio-tests.
14970         * modules/stdio-tests: Depend on it.
14971         * modules/stdlib-c++-tests: New file, extracted from
14972         modules/stdlib-tests.
14973         * modules/stdlib-tests: Depend on it.
14974         * modules/string-c++-tests: New file, extracted from
14975         modules/string-tests.
14976         * modules/string-tests: Depend on it.
14977         * modules/sys_ioctl-c++-tests: New file, extracted from
14978         modules/sys_ioctl-tests.
14979         * modules/sys_ioctl-tests: Depend on it.
14980         * modules/sys_select-c++-tests: New file, extracted from
14981         modules/sys_select-tests.
14982         * modules/sys_select-tests: Depend on it.
14983         * modules/sys_socket-c++-tests: New file, extracted from
14984         modules/sys_socket-tests.
14985         * modules/sys_socket-tests: Depend on it.
14986         * modules/sys_stat-c++-tests: New file, extracted from
14987         modules/sys_stat-tests.
14988         * modules/sys_stat-tests: Depend on it.
14989         * modules/sys_time-c++-tests: New file, extracted from
14990         modules/sys_time-tests.
14991         * modules/sys_time-tests: Depend on it.
14992         * modules/time-c++-tests: New file, extracted from modules/time-tests.
14993         * modules/time-tests: Depend on it.
14994         * modules/unistd-c++-tests: New file, extracted from
14995         modules/unistd-tests.
14996         * modules/unistd-tests: Depend on it.
14997         * modules/wchar-c++-tests: New file, extracted from
14998         modules/wchar-tests.
14999         * modules/wchar-tests: Depend on it.
15000         * modules/wctype-c++-tests: New file, extracted from
15001         modules/wctype-tests.
15002         * modules/wctype-tests: Depend on it.
15003         Reported by Simon Josefsson.
15004
15005 2010-03-28  Bruno Haible  <bruno@clisp.org>
15006
15007         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15008         * gnulib-tool (func_exists_module): New function, extracted from
15009         func_verify_module.
15010         (func_verify_module): Use it.
15011         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15012         'foo' only if 'foo' exists.
15013         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15014         module.
15015
15016 2010-03-28  Bruno Haible  <bruno@clisp.org>
15017
15018         gnulib-tool: Add support for special categories of tests.
15019         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15020         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15021         (func_usage): Document them.
15022         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15023         inc_unportable_tests, inc_all_tests): New variables.
15024         (func_acceptable): Consider these variables.
15025         (func_modules_transitive_closure): Make it work when the 'Status' field
15026         consists of multiple words.
15027         (func_import): Store and restore the values of inc_cxx_tests,
15028         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15029         inc_all_tests in gnulib-comp.m4.
15030         (func_create_testdir): Set inc_all_tests to true.
15031         * doc/gnulib.texi (Extra tests modules): New section.
15032         Suggested by Jim Meyering.
15033
15034 2010-03-28  Bruno Haible  <bruno@clisp.org>
15035
15036         ansi-c++-opt: Allow turning off the C++ build by default.
15037         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15038         gl_CXX_CHOICE_DEFAULT_NO is defined.
15039         Requested by Eric Blake.
15040
15041 2010-03-28  Bruno Haible  <bruno@clisp.org>
15042
15043         unistd: Avoid #define replacements in C++ mode.
15044         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15045         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15046         setsockopt, shutdown, select): In C++, attach a warning to the function
15047         if possible, rather than #defining the symbol to a dysfunctional alias.
15048         Reported by John W. Eaton <jwe@gnu.org>.
15049
15050 2010-03-28  Bruno Haible  <bruno@clisp.org>
15051
15052         Fix link errors on mingw.
15053         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15054         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15055         $(LIBSOCKET).
15056         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15057         $(LIBSOCKET).
15058
15059 2010-03-28  Bruno Haible  <bruno@clisp.org>
15060             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15061
15062         lib-ignore: Determine different options for different compilers.
15063         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15064         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15065         Add comments.
15066         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15067         * NEWS: Mention the change.
15068
15069 2010-03-27  Bruno Haible  <bruno@clisp.org>
15070
15071         Remove unused GNULIB_XYZ macro definitions.
15072         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15073         * modules/fseek (configure.ac): Likewise.
15074         * modules/ioctl (configure.ac): Likewise.
15075         * modules/open (configure.ac): Likewise.
15076         * modules/stdlib-safer (configure.ac): Likewise.
15077
15078 2010-03-27  Bruno Haible  <bruno@clisp.org>
15079
15080         Add a remark about certain modules.
15081         * modules/malloc (Comment): New section.
15082         * modules/realloc (Comment): Likewise.
15083         * modules/sigpipe (Comment): Likewise.
15084
15085 2010-03-27  Bruno Haible  <bruno@clisp.org>
15086
15087         Resolve conflict between the two kinds of module indicators.
15088         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15089         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15090         * modules/canonicalize (configure.ac): Invoke
15091         gl_MODULE_INDICATOR_FOR_TESTS.
15092         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15093         GNULIB_XYZ.
15094         * tests/test-dirent-c++.cc: Likewise.
15095         * tests/test-dirent-safer.c: Likewise.
15096         * tests/test-dup2.c: Likewise.
15097         * tests/test-fchdir.c: Likewise.
15098         * tests/test-fcntl-h-c++.cc: Likewise.
15099         * tests/test-getopt.c: Likewise.
15100         * tests/test-getopt.h: Likewise.
15101         * tests/test-langinfo-c++.cc: Likewise.
15102         * tests/test-locale-c++.cc: Likewise.
15103         * tests/test-math-c++.cc: Likewise.
15104         * tests/test-pty-c++.cc: Likewise.
15105         * tests/test-search-c++.cc: Likewise.
15106         * tests/test-signal-c++.cc: Likewise.
15107         * tests/test-spawn-c++.cc: Likewise.
15108         * tests/test-stdio-c++.cc: Likewise.
15109         * tests/test-stdlib-c++.cc: Likewise.
15110         * tests/test-string-c++.cc: Likewise.
15111         * tests/test-sys_ioctl-c++.cc: Likewise.
15112         * tests/test-sys_select-c++.cc: Likewise.
15113         * tests/test-sys_socket-c++.cc: Likewise.
15114         * tests/test-sys_stat-c++.cc: Likewise.
15115         * tests/test-sys_time-c++.cc: Likewise.
15116         * tests/test-time-c++.cc: Likewise.
15117         * tests/test-unistd-c++.cc: Likewise.
15118         * tests/test-wchar-c++.cc: Likewise.
15119         * tests/uninorm/test-u8-nfc.c: Likewise.
15120         * tests/uninorm/test-u8-nfd.c: Likewise.
15121         * tests/uninorm/test-u8-nfkc.c: Likewise.
15122         * tests/uninorm/test-u8-nfkd.c: Likewise.
15123         * tests/uninorm/test-u16-nfc.c: Likewise.
15124         * tests/uninorm/test-u16-nfd.c: Likewise.
15125         * tests/uninorm/test-u16-nfkc.c: Likewise.
15126         * tests/uninorm/test-u16-nfkd.c: Likewise.
15127         * tests/uninorm/test-u32-nfc.c: Likewise.
15128         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15129         * tests/uninorm/test-u32-nfd.c: Likewise.
15130         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15131         * tests/uninorm/test-u32-nfkc.c: Likewise.
15132         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15133         * tests/uninorm/test-u32-nfkd.c: Likewise.
15134         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15135         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15136
15137 2010-03-27  Bruno Haible  <bruno@clisp.org>
15138
15139         Distinguish two kinds of module indicators.
15140         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15141         gl_MODULE_INDICATOR.
15142         (gl_MODULE_INDICATOR): New macro.
15143         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15144         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15145         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15146         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15147         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15148         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15149         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15150         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15151         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15152         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15153         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15154         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15156         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15157         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15158         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15159         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15160         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15161         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15162         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15163         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15164         * modules/cloexec (configure.ac): Likewise.
15165         * modules/getopt-gnu (configure.ac): Likewise.
15166         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15167         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15168         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15169         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15170
15171 2010-03-27  Bruno Haible  <bruno@clisp.org>
15172
15173         New module description field 'Comment'.
15174         * gnulib-tool: New option --extract-comment.
15175         (func_usage): Document it.
15176         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15177         (func_get_comment): New function.
15178         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15179
15180 2010-03-27  Bruno Haible  <bruno@clisp.org>
15181
15182         Addendum to 2010-02-07 commit.
15183         * gnulib-tool (func_usage): Document --extract-applicability option.
15184
15185 2010-03-27  Bruno Haible  <bruno@clisp.org>
15186
15187         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15188         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15189         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15190         rather than link errors.
15191
15192 2010-03-27  Bruno Haible  <bruno@clisp.org>
15193
15194         Avoid side effects from tests-related modules on the compilation of lib.
15195         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15196         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15197         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15198         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15199         macro.
15200         (func_import): Define a witness macro. Assign it a value that depends
15201         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15202         tests-related modules.
15203         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15204         Reported by Jim Meyering.
15205
15206 2010-03-27  Bruno Haible  <bruno@clisp.org>
15207
15208         Factorize common .m4 code.
15209         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15210         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15211         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15212         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15213         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15214         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15215         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15216         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15217         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15218         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15219         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15220         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15221         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15222         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15223         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15224         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15225         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15226         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15228         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15229         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15230         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15231         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15232         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15233         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15234         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15235         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15236         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15237         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15238         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15239         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15240         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15241
15242 2010-03-27  Bruno Haible  <bruno@clisp.org>
15243
15244         Fix a compilation error on Cygwin with g++ >= 4.3.
15245         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15246         if it is undefined or if we alias it to chmod.
15247         (lstat): Don't warn about the use of this function if it is undefined
15248         or if we alias it to stat.
15249         Reported by Simon Josefsson.
15250
15251 2010-03-27  Bruno Haible  <bruno@clisp.org>
15252
15253         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15254         * modules/getlogin (configure.ac): Update.
15255
15256         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15257         * modules/getlogin_r (configure.ac): Update.
15258
15259         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15260         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15261         * modules/inet_ntop (configure.ac): Update.
15262
15263         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15264         * modules/inet_pton (configure.ac): Update.
15265
15266         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15267         * modules/mbslen (configure.ac): Update.
15268
15269         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15270         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15271         * modules/forkpty (configure.ac): Update.
15272         * modules/openpty (configure.ac): Update.
15273
15274 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15275
15276         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15277         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15278
15279 2010-03-25  Eric Blake  <eblake@redhat.com>
15280
15281         maint: use pragma consistently across replacement headers
15282         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15283         * lib/dirent.in.h (system_header): Likewise.
15284         * lib/errno.in.h (system_header): Likewise.
15285         * lib/float.in.h (system_header): Likewise.
15286         * lib/getopt.in.h (system_header): Likewise.
15287         * lib/iconv.in.h (system_header): Likewise.
15288         * lib/inttypes.in.h (system_header): Likewise.
15289         * lib/langinfo.in.h (system_header): Likewise.
15290         * lib/locale.in.h (system_header): Likewise.
15291         * lib/math.in.h (system_header): Likewise.
15292         * lib/netdb.in.h (system_header): Likewise.
15293         * lib/netinet_in.in.h (system_header): Likewise.
15294         * lib/pty.in.h (system_header): Likewise.
15295         * lib/sched.in.h (system_header): Likewise.
15296         * lib/se-selinux.in.h (system_header): Likewise.
15297         * lib/search.in.h (system_header): Likewise.
15298         * lib/spawn.in.h (system_header): Likewise.
15299         * lib/stdarg.in.h (system_header): Likewise.
15300         * lib/stdint.in.h (system_header): Likewise.
15301         * lib/string.in.h (system_header): Likewise.
15302         * lib/strings.in.h (system_header): Likewise.
15303         * lib/sys_file.in.h (system_header): Likewise.
15304         * lib/sys_ioctl.in.h (system_header): Likewise.
15305         * lib/sys_socket.in.h (system_header): Likewise.
15306         * lib/sys_times.in.h (system_header): Likewise.
15307         * lib/sys_utsname.in.h (system_header): Likewise.
15308         * lib/sys_wait.in.h (system_header): Likewise.
15309         * lib/sysexits.in.h (system_header): Likewise.
15310         * lib/unistd.in.h (system_header): Likewise.
15311         * lib/wctype.in.h (system_header): Likewise.
15312
15313         arpa/inet: fix mingw compilation warning
15314         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15315         Reported by Matthew Bolte.
15316
15317 2010-03-25  Bruno Haible  <bruno@clisp.org>
15318
15319         Avoid collision between gnulib wrapper and libintl wrapper.
15320         * lib/printf.c (printf): Don't define if a printf wrapper is already
15321         defined in intl/printf.c.
15322         Reported by Michel Boaventura <michel@michelboaventura.com>.
15323
15324 2010-03-25  Bruno Haible  <bruno@clisp.org>
15325
15326         Use ANSI C.
15327         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15328
15329 2010-03-25  Bruno Haible  <bruno@clisp.org>
15330
15331         Minor formatting changes.
15332         * lib/acosl.c: Insert space before function argument list.
15333         * lib/argz.c: Likewise.
15334         * lib/asinl.c: Likewise.
15335         * lib/expl.c: Likewise.
15336         * lib/gen-uni-tables.c: Likewise.
15337         * lib/gettext.h: Likewise.
15338         * lib/glthread/lock.h: Likewise.
15339         * lib/tanl.c: Likewise.
15340         * lib/uniname/uniname.c: Likewise.
15341         * tests/test-idpriv-drop.c: Likewise.
15342         * tests/test-idpriv-droptemp.c: Likewise.
15343         * tests/test-lock.c: Likewise.
15344         * tests/test-tls.c: Likewise.
15345         * lib/argp-help.c: Insert space before function-like macro argument
15346         list.
15347         * lib/memcmp.c: Likewise.
15348         * tests/test-base64.c: Likewise.
15349         * lib/localename.c: Insert space before sizeof's argument list.
15350         * lib/safe-alloc.h: Likewise.
15351         * lib/file-set.h: Insert space before macro argument list.
15352         * tests/test-argp.c: Likewise.
15353         * lib/argp-namefrob.h: Insert space before function parameter list.
15354         * lib/getaddrinfo.c: Likewise.
15355         * lib/netdb.in.h: Likewise.
15356         * lib/parse-duration.h: Likewise.
15357         * lib/parse-duration.c: Likewise.
15358         * lib/poll.c: Likewise.
15359         * lib/select.c: Likewise.
15360         * lib/trim.h: Likewise.
15361         * tests/test-usleep.c: Likewise.
15362         * lib/ldexpl.c: Insert space before function parameter list and before
15363         function argument list.
15364         * lib/logl.c: Likewise.
15365         * lib/sqrtl.c: Likewise.
15366         * lib/trim.c: Likewise.
15367         * lib/cosl.c: Use GNU style indentation. Insert space before function
15368         argument list.
15369         * lib/sinl.c: Likewise.
15370         * lib/tsearch.c: Insert space after 'for'.
15371         Reported by Jim Meyering.
15372
15373 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15374
15375         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15376         config header before grepping, as it's not present before
15377         autoreconf/configure are run.  Reported by Simon Josefsson.
15378
15379 2010-03-23  Bruno Haible  <bruno@clisp.org>
15380
15381         pt_chown: Make it work with automake < 1.11.
15382         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15383         Reported by Simon Josefsson.
15384
15385 2010-03-23  Bruno Haible  <bruno@clisp.org>
15386
15387         pt_chown: Don't depend on GPLed modules.
15388         * lib/pt_chown.c: Don't include idpriv.h.
15389         (main): Don't drop privileges.
15390         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15391         Reported by Simon Josefsson.
15392
15393 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15394
15395         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15396         suggestions from karl@freefriends.org (Karl Berry).
15397
15398 2010-03-22  Eric Blake  <eblake@redhat.com>
15399
15400         gethostname: further tweaks
15401         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15402         are overriding gethostname.
15403         Suggested by Bruno Haible.
15404
15405 2010-03-21  Bruno Haible  <bruno@clisp.org>
15406
15407         Fix comments.
15408         * lib/forkpty.c (rpl_forkpty): Fix comment.
15409         * lib/openpty.c (rpl_openpty): Likewise.
15410         Reported by Eric Blake.
15411
15412 2010-03-22  Eric Blake  <eblake@redhat.com>
15413
15414         gethostname: fix build on mingw
15415         * lib/unistd.in.h (includes): Work around fact that mingw
15416         <winsock2.h> re-includes <unistd.h>, by avoiding any
15417         redeclarations if we are being included by <winsock2.h>.
15418         Reported by Matthias Bolte.
15419
15420 2010-03-21  Bruno Haible  <bruno@clisp.org>
15421
15422         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15423         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15424         modifications.
15425         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15426         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15427         provide the replacement.
15428         * modules/forkpty (Depends-on): Add openpty, login_tty.
15429         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15430         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15431         * doc/glibc-functions/forkpty.texi: More supported platforms.
15432         * config/srclist.txt: Add forkpty.c (commented).
15433
15434 2010-03-21  Bruno Haible  <bruno@clisp.org>
15435
15436         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15437         (Makefile.am): Verify that PTY_LIB is defined.
15438
15439         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15440
15441 2010-03-21  Bruno Haible  <bruno@clisp.org>
15442
15443         Tests for module 'login_tty'.
15444         * modules/login_tty-tests: New file.
15445         * tests/test-login_tty.c: New file.
15446
15447         New module 'login_tty'.
15448         * lib/login_tty.c: New file.
15449         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15450         * modules/login_tty: New file.
15451         * doc/glibc-functions/login_tty.texi: Mention the new module.
15452
15453 2010-03-21  Bruno Haible  <bruno@clisp.org>
15454
15455         login_tty: Documentation.
15456         * doc/glibc-functions/login_tty.texi: New file.
15457         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15458
15459 2010-03-21  Bruno Haible  <bruno@clisp.org>
15460
15461         pty: Consistent macro naming.
15462         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15463         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15464         * modules/pty (configure.ac): Update.
15465
15466 2010-03-21  Bruno Haible  <bruno@clisp.org>
15467
15468         Tests for openpty: Make stricter.
15469         * tests/test-openpty.c (main): Add test of canonical processing and
15470         erase.
15471         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15472
15473         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15474         * lib/openpty.c (openpty): New replacement function.
15475         * lib/pty.in.h: Include <termios.h>.
15476         (openpty): Update declaration. Add comments.
15477         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15478         is not declared, arrange to provide the replacement. Check for _getpty
15479         and posix_openpt.
15480         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15481         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15482         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15483         * modules/pty-tests (test_pty_c___LDADD): New variable.
15484         * doc/glibc-functions/openpty.texi: More supported platforms.
15485
15486 2010-03-21  Bruno Haible  <bruno@clisp.org>
15487
15488         setenv: Tweaks.
15489         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15490         the test program.
15491         * doc/posix-functions/setenv.texi: Update platforms list.
15492
15493 2010-03-21  Bruno Haible  <bruno@clisp.org>
15494
15495         New module 'unlockpt'.
15496         * lib/unlockpt.c: New file, from glibc with modifications.
15497         * m4/unlockpt.m4: New file.
15498         * modules/unlockpt: New file.
15499         * lib/stdlib.in.h (unlockpt): New declaration.
15500         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15501         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15502         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15503         HAVE_UNLOCKPT.
15504         * doc/posix-functions/unlockpt.texi: Mention the new module.
15505         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15506         * config/srclist.txt: Add unlockpt.c (commented).
15507
15508 2010-03-21  Jim Meyering  <meyering@redhat.com>
15509
15510         maint.mk: prohibit inclusion of "intprops.h" without use
15511         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15512
15513 2010-03-21  Bruno Haible  <bruno@clisp.org>
15514
15515         New module 'grantpt'.
15516         * lib/grantpt.c: New file, from glibc with modifications.
15517         * m4/grantpt.m4: New file.
15518         * modules/grantpt: New file.
15519         * lib/stdlib.in.h (grantpt): New declaration.
15520         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15521         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15522         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15523         HAVE_GRANTPT.
15524         * doc/posix-functions/grantpt.texi: Mention the new module.
15525         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15526         * config/srclist.txt: Add grantpt.c (commented).
15527
15528 2010-03-21  Bruno Haible  <bruno@clisp.org>
15529
15530         New module 'pt_chown'.
15531         * lib/pt_chown.c: New file, from glibc with modifications.
15532         * lib/pty-private.h: New file, from glibc with modifications.
15533         * modules/pt_chown: New file.
15534         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15535
15536 2010-03-21  Bruno Haible  <bruno@clisp.org>
15537
15538         Tests for module 'ptsname'.
15539         * modules/ptsname-tests: New file.
15540         * tests/test-ptsname.c: New file.
15541
15542         New module 'ptsname'.
15543         * lib/ptsname.c: New file, from glibc with modifications.
15544         * m4/ptsname.m4: New file.
15545         * modules/ptsname: New file.
15546         * lib/stdlib.in.h (ptsname): New declaration.
15547         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15548         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15549         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15550         HAVE_PTSNAME.
15551         * doc/posix-functions/ptsname.texi: Mention the new module.
15552         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15553         * config/srclist.txt: Add ptsname.c (commented).
15554
15555 2010-03-21  Bruno Haible  <bruno@clisp.org>
15556
15557         Tests for module 'ttyname_r'.
15558         * modules/ttyname_r-tests: New file.
15559         * tests/test-ttyname_r.c: New file.
15560
15561         New module 'ttyname_r'.
15562         * lib/ttyname_r.c: New file.
15563         * m4/ttyname_r.m4: New file.
15564         * modules/ttyname_r: New file.
15565         * lib/unistd.in.h (ttyname_r): New declaration.
15566         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15567         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15568         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15569         HAVE_TTYNAME_R.
15570         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15571         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15572
15573 2010-03-20  Bruno Haible  <bruno@clisp.org>
15574
15575         signal: Undefine macro definitions in C++ mode.
15576         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15577         sigfillset): Undefine macro definitions from the system header in C++
15578         mode.
15579         Reported by John W. Eaton <jwe@gnu.org>.
15580
15581 2010-03-20  Bruno Haible  <bruno@clisp.org>
15582
15583         Ensure no #include statements inside extern "C" { ... }.
15584         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15585         contain #include statements.
15586         * lib/time.in.h: Likewise.
15587
15588 2010-03-20  Bruno Haible  <bruno@clisp.org>
15589
15590         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15591         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15592         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15593         Reported by John W. Eaton <jwe@gnu.org>.
15594
15595 2010-03-20  Bruno Haible  <bruno@clisp.org>
15596
15597         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15598         Reported by Jim Meyering.
15599
15600 2010-03-20  Bruno Haible  <bruno@clisp.org>
15601
15602         pipe: Set errno upon failure.
15603         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15604         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15605         errno value in error message.
15606
15607 2010-03-20  Bruno Haible  <bruno@clisp.org>
15608             Jim Meyering  <meyering@redhat.com>
15609
15610         lchown: Avoid "unused variable" warning.
15611         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15612
15613 2010-03-20  Bruno Haible  <bruno@clisp.org>
15614
15615         Work around unlink() bug on MacOS X 10.5.6.
15616         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15617         attempting to unlink a parent directory.
15618         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15619         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15620         activate for the replacement function.
15621         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15622
15623 2010-03-20  Bruno Haible  <bruno@clisp.org>
15624
15625         Fix link errors on Solaris 8.
15626         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15627         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15628
15629 2010-03-19  Jim Meyering  <meyering@redhat.com>
15630
15631         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15632         The _LIBC implementation of build_range_exp correctly honors the
15633         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15634         However, the non-_LIBC implementation would ignore that syntax-bit
15635         flag and return REG_ERANGE unconditionally.
15636         This change makes it honor that flag.
15637         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15638         Make two pointer parameters "const".
15639         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15640         (parse_bracket_exp): Update caller.
15641
15642         regex.m4: correct the reversed range endpoint ([b-a]) test
15643         * m4/regex.m4: When requiring that [b-a] evoke failure,
15644         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15645         test pass once again for x86-based systems.
15646
15647 2010-03-19  Bruno Haible  <bruno@clisp.org>
15648
15649         scandir: Fix link error on Solaris 8.
15650         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15651         macros.
15652
15653 2010-03-19  Bruno Haible  <bruno@clisp.org>
15654
15655         getusershell: Fix documentation.
15656         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15657         module.
15658         * doc/glibc-functions/setusershell.texi: Likewise.
15659
15660         getusershell: Provide declaration, missing on Solaris 9.
15661         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15662         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15663         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15664         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15666         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15667         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15668         HAVE_GETUSERSHELL.
15669         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15670
15671 2010-03-19  Bruno Haible  <bruno@clisp.org>
15672
15673         wctype: Provide iswblank function.
15674         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15675         exists and is fine.
15676         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15677         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15678         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15679         * doc/posix-functions/iswblank.texi: Update.
15680
15681 2010-03-19  Bruno Haible  <bruno@clisp.org>
15682
15683         Tests of module 'pty' in C++ mode.
15684         * modules/pty-tests: New file.
15685         * tests/test-pty-c++.cc: New file.
15686         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15687
15688 2010-03-19  Eric Blake  <eblake@redhat.com>
15689
15690         logb: fix documentation
15691         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15692         1.5 declaration bug.
15693
15694         forkpty, openpty: prefer glibc's const-safe prototype
15695         * lib/forkpty.c (rpl_forkpty): New file.
15696         * lib/openpty.c (rpl_openpty): Likewise.
15697         * modules/forkpty (Files): Distribute it.
15698         * modules/openpty (Files): Likewise.
15699         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15700         check...
15701         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15702         replacement for for non-const BSD signature.
15703         * modules/pty (Makefile.am): Substitute witnesses.
15704         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15705         * tests/test-forkpty.c: Update signature check.
15706         * tests/test-openpty.c: Likewise.
15707         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15708         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15709
15710         forkpty, openpty: split functions into new modules
15711         * modules/pty (Makefile.am): Substitute new witnesses.
15712         (Libraries): Move library detection...
15713         * modules/forkpty: ...into new module.
15714         * modules/openpty: Another new module.
15715         * modules/pty-tests: Rename and split...
15716         * modules/forkpty-tests: ...to this...
15717         * modules/openpty-tests: ...and this.
15718         * tests/test-pty.c: Rename and split...
15719         * tests/test-forkpty.c: ...to this...
15720         * tests/test-openpty.c: ...and this.
15721         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15722         (gl_PTY): Split library searching...
15723         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15724         (gl_FORKPTY, gl_OPENPTY): New macros.
15725         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15726         * NEWS: Mention the split.
15727         * MODULES.html.sh (Misc): Document the modules.
15728         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15729         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15730
15731         pty: improve replacement header
15732         * lib/pty.in.h: New file.
15733         * modules/pty (Files): Ship it.
15734         (Makefile.am): Always build replacement.
15735         * m4/pty.m4: Rename...
15736         * m4/pty_h.m4: ...to this.
15737         (gl_PTY): Modernize setting of witness macros; update check of
15738         forkpty to take proper advantage of cache.
15739         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15740
15741         getopt: avoid compiler warning
15742         * lib/getopt.c (attribute_hidden): Remove unused macro.
15743
15744 2010-03-18  Bruno Haible  <bruno@clisp.org>
15745
15746         Fix link errors on Solaris 8.
15747         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15748         * modules/search-tests (test_search_c___LDADD): Likewise.
15749         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15750         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15751         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15752         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15753         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15754         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15755         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15756
15757 2010-03-18  Bruno Haible  <bruno@clisp.org>
15758
15759         Fix bug introduced on 2010-03-14.
15760         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15761         (gl_SPAWN_H): Require it.
15762         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15763         Reported by Simon Josefsson.
15764
15765 2010-03-18  Bruno Haible  <bruno@clisp.org>
15766
15767         Fix typo introduced on 2009-12-31.
15768         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15769         posix_spawn_file_actions_adddup2.
15770
15771 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15772         and Eric Blake  <eblake@redhat.com>
15773
15774         test-vc-list-files-git: make more robust
15775         * tests/test-vc-list-files-git.sh: Unset problematic environment
15776         variables.  Chain commands together.
15777
15778 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15779
15780         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15781         `AC_CHECK_DECL' invocation.
15782
15783 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15784
15785         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15786         appears before executable statements. Suggested by Petr Sumbera
15787         <Petr.Sumbera@Sun.COM>.
15788
15789 2010-03-14  Bruno Haible  <bruno@clisp.org>
15790
15791         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15792         portability problems. Instead use a simpler test.
15793         (main): Check that invalid arguments are rejected only on Linux.
15794
15795 2010-03-14  Bruno Haible  <bruno@clisp.org>
15796
15797         Fix bug introduced on 2009-12-31.
15798         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15799         gl_PREREQ_SYS_H_WINSOCK2 always.
15800         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15801         SYS_SOCKET_H variable.
15802         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15803         Update comments.
15804         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15805         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15806         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15807         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15808         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15809
15810 2010-03-14  Bruno Haible  <bruno@clisp.org>
15811
15812         Fix values returned by sinl, cosl.
15813         * lib/trigl.h: Add specification comments.
15814         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15815         that combines the values from the precomputed table with the values of
15816         the Chebyshev polynomials.
15817
15818 2010-03-14  Bruno Haible  <bruno@clisp.org>
15819
15820         Fix compilation error when modules 'posix_spawn[p]' are not used.
15821         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15822         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15823
15824 2010-03-14  Bruno Haible  <bruno@clisp.org>
15825
15826         Fix compilation error on mingw when module 'time_r' is not used.
15827         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15828         is 1.
15829         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15830         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15831         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15832         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15833
15834 2010-03-14  Bruno Haible  <bruno@clisp.org>
15835
15836         Fix compilation error with Sun C.
15837         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15838         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15839         instead of GCC specific ULONG_LONG_MAX.
15840         * lib/xstrtoll.c: Likewise.
15841         * lib/xstrtoull.c: Likewise.
15842
15843 2010-03-13  Bruno Haible  <bruno@clisp.org>
15844
15845         Allow the user to disable C++ code and tests.
15846         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15847         (gl_PROG_ANSI_CXX): Require it.
15848
15849 2010-03-13  Bruno Haible  <bruno@clisp.org>
15850
15851         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15852         cases.
15853
15854 2010-03-13  Bruno Haible  <bruno@clisp.org>
15855
15856         Test that gnulib does not break the standard C++ headers.
15857         * tests/test-locale-c++2.cc: New file.
15858         * modules/locale-tests (Files): Add it.
15859         (Makefile.am): Compile it for test-locale-c++.
15860         * tests/test-math-c++2.cc: New file.
15861         * modules/math-tests (Files): Add it.
15862         (Makefile.am): Compile it for test-math-c++.
15863         * tests/test-signal-c++2.cc: New file.
15864         * modules/signal-tests (Files): Add it.
15865         (Makefile.am): Compile it for test-signal-c++.
15866         * tests/test-stdio-c++2.cc: New file.
15867         * modules/stdio-tests (Files): Add it.
15868         (Makefile.am): Compile it for test-stdio-c++.
15869         * tests/test-stdlib-c++2.cc: New file.
15870         * modules/stdlib-tests (Files): Add it.
15871         (Makefile.am): Compile it for test-stdlib-c++.
15872         * tests/test-string-c++2.cc: New file.
15873         * modules/string-tests (Files): Add it.
15874         (Makefile.am): Compile it for test-string-c++.
15875         * tests/test-time-c++2.cc: New file.
15876         * modules/time-tests (Files): Add it.
15877         (Makefile.am): Compile it for test-time-c++.
15878         Reported by John W. Eaton <jwe@gnu.org>.
15879
15880 2010-03-13  Bruno Haible  <bruno@clisp.org>
15881
15882         * gnulib-tool (func_usage): Clarify which options are available for
15883         --create-testdir and --create-megatestdir.
15884
15885 2010-03-13  Bruno Haible  <bruno@clisp.org>
15886
15887         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15888         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15889         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15890         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15891         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15892         when appropriate.
15893         Reported by Jim Meyering.
15894
15895 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15896
15897         * gnulib-tool (func_import): Explain origin of code.
15898
15899 2010-03-12  Bruno Haible  <bruno@clisp.org>
15900
15901         Fix problem with automake's definition of CXXLINK.
15902         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15903         Reported by Simon Josefsson and Ludovic Courtès.
15904
15905 2010-03-12  Bruno Haible  <bruno@clisp.org>
15906
15907         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15908         stable releases.
15909
15910 2010-03-11  Bruno Haible  <bruno@clisp.org>
15911
15912         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15913         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15914         whether the system provides one variant or multiple variants of the
15915         function.
15916         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15917         C++ compilers.
15918         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15919         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15920         Reported by Jim Meyering.
15921
15922 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15923
15924         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15925
15926 2010-03-08  Bruno Haible  <bruno@clisp.org>
15927
15928         gnulib-tool: Add support for --libtool in --create-testdir.
15929         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15930         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15931
15932 2010-03-08  Eric Blake  <eblake@redhat.com>
15933
15934         gnulib-tool.texi: mention possibility of git submodule
15935         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15936         submodules.
15937         * doc/.gitignore: Ignore another generated file.
15938
15939 2010-03-08  Karl Berry  <karl@gnu.org>
15940
15941         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15942         of committing gnulib files while skipping others.
15943
15944 2010-03-07  Bruno Haible  <bruno@clisp.org>
15945
15946         Tests of module 'wctype' in C++ mode.
15947         * tests/test-wctype-c++.cc: New file.
15948         * modules/wctype-tests (Files): Add it and tests/signature.h.
15949         (Depends-on): Add ansi-c++-opt.
15950         (Makefile.am): Arrange to compile and run test-wctype-c++.
15951
15952         Tests of module 'wchar' in C++ mode.
15953         * tests/test-wchar-c++.cc: New file.
15954         * modules/wchar-tests (Files): Add it and tests/signature.h.
15955         (Depends-on): Add ansi-c++-opt.
15956         (Makefile.am): Arrange to compile and run test-wchar-c++.
15957         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
15958         gl_MODULE_INDICATOR.
15959
15960         Tests of module 'unistd' in C++ mode.
15961         * tests/test-unistd-c++.cc: New file.
15962         * modules/unistd-tests (Files): Add it and tests/signature.h.
15963         (Depends-on): Add ansi-c++-opt.
15964         (Makefile.am): Arrange to compile and run test-unistd-c++.
15965         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
15966         gl_MODULE_INDICATOR.
15967
15968         Tests of module 'time' in C++ mode.
15969         * tests/test-time-c++.cc: New file.
15970         * modules/time-tests (Files): Add it and tests/signature.h.
15971         (Depends-on): Add ansi-c++-opt.
15972         (Makefile.am): Arrange to compile and run test-time-c++.
15973         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15974
15975         Tests of module 'sys_time' in C++ mode.
15976         * tests/test-sys_time-c++.cc: New file.
15977         * modules/sys_time-tests (Files): Add it and tests/signature.h.
15978         (Depends-on): Add ansi-c++-opt.
15979         (Makefile.am): Arrange to compile and run test-sys_time-c++.
15980         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
15981         gl_MODULE_INDICATOR.
15982
15983         Tests of module 'sys_stat' in C++ mode.
15984         * tests/test-sys_stat-c++.cc: New file.
15985         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
15986         (Depends-on): Add ansi-c++-opt.
15987         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
15988         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
15989         gl_MODULE_INDICATOR.
15990
15991         Tests of module 'sys_socket' in C++ mode.
15992         * tests/test-sys_socket-c++.cc: New file.
15993         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
15994         (Depends-on): Add ansi-c++-opt.
15995         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
15996         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
15997         gl_MODULE_INDICATOR.
15998
15999         Tests of module 'sys_select' in C++ mode.
16000         * tests/test-sys_select-c++.cc: New file.
16001         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16002         (Depends-on): Add ansi-c++-opt.
16003         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16004         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16005         gl_MODULE_INDICATOR.
16006
16007         Tests of module 'sys_ioctl' in C++ mode.
16008         * tests/test-sys_ioctl-c++.cc: New file.
16009         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16010         (Depends-on): Add ansi-c++-opt.
16011         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16012         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16013         gl_MODULE_INDICATOR.
16014
16015         Tests of module 'string' in C++ mode.
16016         * tests/test-string-c++.cc: New file.
16017         * modules/string-tests (Files): Add it and tests/signature.h.
16018         (Depends-on): Add ansi-c++-opt.
16019         (Makefile.am): Arrange to compile and run test-string-c++.
16020         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16021         gl_MODULE_INDICATOR.
16022
16023         Tests of module 'stdlib' in C++ mode.
16024         * tests/test-stdlib-c++.cc: New file.
16025         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16026         (Depends-on): Add ansi-c++-opt.
16027         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16028         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16029         gl_MODULE_INDICATOR.
16030
16031         Tests of module 'stdio' in C++ mode.
16032         * tests/test-stdio-c++.cc: New file.
16033         * modules/stdio-tests (Files): Add it and tests/signature.h.
16034         (Depends-on): Add ansi-c++-opt.
16035         (Makefile.am): Arrange to compile and run test-stdio-c++.
16036         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16037         gl_MODULE_INDICATOR.
16038
16039         Tests of module 'spawn' in C++ mode.
16040         * tests/test-spawn-c++.cc: New file.
16041         * modules/spawn-tests (Files): Add it and tests/signature.h.
16042         (Depends-on): Add ansi-c++-opt.
16043         (Makefile.am): Arrange to compile and run test-spawn-c++.
16044         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16045         gl_MODULE_INDICATOR.
16046
16047         Tests of module 'signal' in C++ mode.
16048         * tests/test-signal-c++.cc: New file.
16049         * modules/signal-tests (Files): Add it and tests/signature.h.
16050         (Depends-on): Add ansi-c++-opt.
16051         (Makefile.am): Arrange to compile and run test-signal-c++.
16052         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16053         gl_MODULE_INDICATOR.
16054
16055         Tests of module 'search' in C++ mode.
16056         * tests/test-search-c++.cc: New file.
16057         * modules/search-tests (Files): Add it and tests/signature.h.
16058         (Depends-on): Add ansi-c++-opt.
16059         (Makefile.am): Arrange to compile and run test-search-c++.
16060         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16061         gl_MODULE_INDICATOR.
16062
16063         Tests of module 'math' in C++ mode.
16064         * tests/test-math-c++.cc: New file.
16065         * modules/math-tests (Files): Add it and tests/signature.h.
16066         (Depends-on): Add ansi-c++-opt.
16067         (Makefile.am): Arrange to compile and run test-math-c++.
16068         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16069
16070         Tests of module 'locale' in C++ mode.
16071         * tests/test-locale-c++.cc: New file.
16072         * modules/locale-tests (Files): Add it and tests/signature.h.
16073         (Depends-on): Add ansi-c++-opt.
16074         (Makefile.am): Arrange to compile and run test-locale-c++.
16075         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16076         gl_MODULE_INDICATOR.
16077
16078         Tests of module 'langinfo' in C++ mode.
16079         * tests/test-langinfo-c++.cc: New file.
16080         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16081         (Depends-on): Add ansi-c++-opt.
16082         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16083         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16084         gl_MODULE_INDICATOR.
16085
16086         Tests of module 'iconv-h' in C++ mode.
16087         * tests/test-iconv-h-c++.cc: New file.
16088         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16089         (Depends-on): Add ansi-c++-opt.
16090         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16091
16092         Tests of module 'glob' in C++ mode.
16093         * tests/test-glob-c++.cc: New file.
16094         * modules/glob-tests (Files): Add it.
16095         (Depends-on): Add ansi-c++-opt.
16096         (Makefile.am): Arrange to compile and run test-glob-c++.
16097
16098         Tests of module 'fcntl-h' in C++ mode.
16099         * tests/test-fcntl-h-c++.cc: New file.
16100         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16101         (Depends-on): Add ansi-c++-opt.
16102         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16103         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16104         gl_MODULE_INDICATOR.
16105
16106         Tests of module 'dirent' in C++ mode.
16107         * tests/test-dirent-c++.cc: New file.
16108         * modules/dirent-tests (Files): Add it and tests/signature.h.
16109         (Depends-on): Add ansi-c++-opt.
16110         (Makefile.am): Arrange to compile and run test-dirent-c++.
16111         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16112         gl_MODULE_INDICATOR.
16113
16114         New module 'ansi-c++-opt'.
16115         * modules/ansi-c++-opt: New file.
16116         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16117
16118         Document C++ namespace mode.
16119         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16120
16121         wctype: Avoid #define replacements in C++ mode.
16122         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16123         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16124         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16125         In C++, define a namespaced alias symbol.
16126         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16127         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16128         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16129         rule.
16130
16131         wchar: Avoid #define replacements in C++ mode.
16132         * lib/wchar.in.h: Include c++defs.h.
16133         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16134         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16135         symbol.
16136         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16137         * modules/wchar (Depends-on): Add c++defs.
16138         (Makefile.am): Update wchar.h rule.
16139
16140         unistd: Avoid #define replacements in C++ mode.
16141         * lib/unistd.in.h: Include c++defs.h.
16142         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16143         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16144         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16145         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16146         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16147         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16148         symbol.
16149         (environ): Update.
16150         * modules/unistd (Depends-on): Add c++defs.
16151         (Makefile.am): Update unistd.h rule.
16152
16153         time: Avoid #define replacements in C++ mode.
16154         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16155         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16156         define a namespaced alias symbol.
16157         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16158         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16159         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16160         * modules/time (Depends-on): Add c++defs, warn-on-use.
16161         (Makefile.am): Update time.h rule.
16162         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16163         * modules/nanosleep (configure.ac): Likewise.
16164         * modules/strptime (configure.ac): Likewise.
16165         * modules/timegm (configure.ac): Likewise.
16166
16167         sys_time: Avoid #define replacements in C++ mode.
16168         * lib/sys_time.in.h: Include c++defs.h.
16169         (gettimeofday): In C++, define a namespaced alias symbol.
16170         * modules/sys_time (Depends-on): Add c++defs.
16171         (Makefile.am): Update sys/time.h rule.
16172
16173         sys_stat: Avoid #define replacements in C++ mode.
16174         * lib/sys_stat.in.h: Include c++defs.h.
16175         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16176         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16177         namespaced alias symbol.
16178         In C++, define a namespaced alias symbol.
16179         * modules/sys_stat (Depends-on): Add c++defs.
16180         (Makefile.am): Update sys/stat.h rule.
16181
16182         sys_socket: Avoid #define replacements in C++ mode.
16183         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16184         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16185         definitions also when the system has a <sys/socket.h>.
16186         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16187         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16188         In C++, define a namespaced alias symbol.
16189         * modules/sys_socket (Depends-on): Add c++defs.
16190         (Makefile.am): Update sys/socket.h rule.
16191
16192         sys_select: Avoid #define replacements in C++ mode.
16193         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16194         definitions also when the system has a <sys/select.h>.
16195         (select): In C++, define a namespaced alias symbol.
16196         * modules/sys_select (Depends-on): Add c++defs.
16197         (Makefile.am): Update sys/select.h rule.
16198
16199         sys_ioctl: Avoid #define replacements in C++ mode.
16200         * lib/sys_ioctl.in.h: Include c++defs.h.
16201         (ioctl): In C++, define a namespaced alias symbol.
16202         * modules/sys_ioctl (Depends-on): Add c++defs.
16203         (Makefile.am): Update sys/ioctl.h rule.
16204
16205         string: Avoid #define replacements in C++ mode.
16206         * lib/string.in.h: Include c++defs.h.
16207         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16208         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16209         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16210         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16211         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16212         * modules/string (Depends-on): Add c++defs.
16213         (Makefile.am): Update string.h rule.
16214
16215         stdlib: Avoid #define replacements in C++ mode.
16216         * lib/stdlib.in.h: Include c++defs.h.
16217         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16218         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16219         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16220         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16221         symbol.
16222         * modules/stdlib (Depends-on): Add c++defs.
16223         (Makefile.am): Update stdlib.h rule.
16224
16225         stdio: Avoid #define replacements in C++ mode.
16226         * lib/stdio.in.h: Include c++defs.h.
16227         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16228         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16229         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16230         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16231         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16232         namespaced alias symbol.
16233         * modules/stdio (Depends-on): Add c++defs.
16234         (Makefile.am): Update stdio.h rule.
16235
16236         spawn: Avoid #define replacements in C++ mode.
16237         * lib/spawn.in.h: Include c++defs.h.
16238         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16239         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16240         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16241         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16242         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16243         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16244         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16245         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16246         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16247         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16248         In C++, define a namespaced alias symbol.
16249         * modules/spawn (Depends-on): Add c++defs.
16250         (Makefile.am): Update spawn.h rule.
16251
16252         signal: Avoid #define replacements in C++ mode.
16253         * lib/signal.in.h: Include c++defs.h.
16254         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16255         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16256         namespaced alias symbol.
16257         * modules/signal (Depends-on): Add c++defs.
16258         (Makefile.am): Update signal.h rule.
16259
16260         search: Avoid #define replacements in C++ mode.
16261         * lib/search.in.h: Include c++defs.h.
16262         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16263         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16264         symbol.
16265         * modules/search (Depends-on): Add c++defs.
16266         (Makefile.am): Update search.h rule.
16267
16268         math: Avoid #define replacements in C++ mode.
16269         * lib/math.in.h: Include c++defs.h.
16270         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16271         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16272         trunc, truncl): In C++, define a namespaced alias symbol.
16273         * modules/math (Depends-on): Add c++defs.
16274         (Makefile.am): Update math.h rule.
16275
16276         locale: Avoid #define replacements in C++ mode.
16277         * lib/locale.in.h: Include c++defs.h.
16278         (duplocale): In C++, define a namespaced alias symbol.
16279         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16280         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16281         * modules/locale (Depends-on): Add c++defs.
16282         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16283
16284         langinfo: Avoid #define replacements in C++ mode.
16285         * lib/langinfo.in.h: Include c++defs.h.
16286         (nl_langinfo): In C++, define a namespaced alias symbol.
16287         * modules/langinfo (Depends-on): Add c++defs.
16288         (Makefile.am): Update langinfo.h rule.
16289
16290         iconv-h: Avoid #define replacements in C++ mode.
16291         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16292         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16293         symbol.
16294         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16295         whenever iconv is present.
16296         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16297         (Makefile.am): Update iconv.h rule.
16298
16299         glob: Avoid #define replacements in C++ mode.
16300         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16301         (_gl_glob_errfunc_fn): New type.
16302         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16303         symbol.
16304         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16305         (Makefile.am): Update glob.h rule.
16306
16307         fcntl-h: Avoid #define replacements in C++ mode.
16308         * lib/fcntl.in.h: Include c++defs.h.
16309         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16310         * modules/fcntl-h (Depends-on): Add c++defs.
16311         (Makefile.am): Update fcntl.h rule.
16312
16313         dirent: Avoid #define replacements in C++ mode.
16314         * lib/dirent.in.h: Include c++defs.h.
16315         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16316         namespaced alias symbol.
16317         (dirfd): Update declaration.
16318         * modules/dirent (Depends-on): Add c++defs.
16319         (Makefile.am): Update dirent.h rule.
16320
16321         ctype: Make it usable in C++ code.
16322         * lib/ctype.in.h: Include c++defs.h.
16323         (isblank): Declare as extern "C".
16324         * modules/ctype (Depends-on): Add c++defs.
16325         (Makefile.am): Update ctype.h rule.
16326
16327         New module 'c++defs'.
16328         * modules/c++defs: New file.
16329         * build-aux/c++defs.h: New file.
16330         Reported by John W. Eaton <jwe@gnu.org>.
16331
16332 2010-03-07  Bruno Haible  <bruno@clisp.org>
16333
16334         logb: Provide missing declaration for Cygwin.
16335         * lib/math.in.h (logb): New declaration.
16336         * m4/logb.m4: New file.
16337         * modules/logb (Files): Add m4/logb.m4.
16338         (Depends-on): Add math.
16339         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16340         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16342         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16343         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16344
16345 2010-03-07  Bruno Haible  <bruno@clisp.org>
16346
16347         Fix test-cond link error.
16348         * tests/test-cond.c: Include <stdio.h>.
16349
16350 2010-03-07  Bruno Haible  <bruno@clisp.org>
16351
16352         Fix test-dirent-safer link error.
16353         * modules/dirent-safer-tests (Makefile.am): Define
16354         test_dirent_safer_LDADD.
16355
16356 2010-03-07  Bruno Haible  <bruno@clisp.org>
16357
16358         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16359         among default module list.
16360
16361 2010-03-07  Bruno Haible  <bruno@clisp.org>
16362
16363         Fix link error on platforms with GNU libiconv.
16364         * modules/unistr/u8-strcoll-tests (Makefile): Define
16365         test_u8_strcoll_LDADD.
16366         * modules/unistr/u16-strcoll-tests (Makefile): Define
16367         test_u16_strcoll_LDADD.
16368         * modules/unistr/u32-strcoll-tests (Makefile): Define
16369         test_u32_strcoll_LDADD.
16370
16371 2010-03-07  Bruno Haible  <bruno@clisp.org>
16372
16373         Use POSIX declarations for socket functions.
16374         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16375         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16376         rpl_sendto): Change declaration to match POSIX.
16377         * lib/connect.c (rpl_connect): Likewise.
16378         * lib/accept.c (rpl_accept): Likewise.
16379         * lib/bind.c (rpl_bind): Likewise.
16380         * lib/getpeername.c (rpl_getpeername): Likewise.
16381         * lib/getsockname.c (rpl_getsockname): Likewise.
16382         * lib/recv.c (rpl_recv): Likewise.
16383         * lib/send.c (rpl_send): Likewise.
16384         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16385         * lib/sendto.c (rpl_sendto): Likewise.
16386
16387 2010-03-06  Bruno Haible  <bruno@clisp.org>
16388
16389         Clarify access, euidaccess, faccessat.
16390         * doc/posix-functions/faccessat.texi: Mention security problem under
16391         "Other problems", not "Portability problems".
16392         * doc/posix-functions/access.texi: Likewise. Mention a related security
16393         problem.
16394         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16395         * lib/euidaccess.c: Add comments about platforms.
16396         * lib/unistd.in.h (access, euidaccess): Add warnings.
16397
16398 2010-03-07  Bruno Haible  <bruno@clisp.org>
16399
16400         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16401         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16402         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16403         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16404         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16405         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16406         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16407         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16408         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16409         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16410         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16411         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16412         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16413         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16414         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16415         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16416         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16417         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16418         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16419         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16420         Likewise.
16421         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16422         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16423         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16424         Likewise.
16425         * tests/test-spawn.c (main): Make it work when
16426         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16427
16428 2010-03-07  Bruno Haible  <bruno@clisp.org>
16429
16430         Fix incorrect Makefile.am generation in German locale.
16431         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16432         Execute sed command with character range in C locale.
16433
16434 2010-03-06  Bruno Haible  <bruno@clisp.org>
16435
16436         Tests for module 'iconv-h'.
16437         * modules/iconv-h-tests: New file.
16438         * tests/test-iconv-h.c: New file.
16439
16440         New module 'iconv-h'.
16441         * modules/iconv-h: New file.
16442         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16443         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16444         (configure.ac): Remove gl_ICONV_H.
16445         (Makefile.am): Remove rule for iconv.h.
16446
16447 2010-03-06  Bruno Haible  <bruno@clisp.org>
16448
16449         More consistent naming of *.m4 files.
16450         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16451         * modules/wctype (Files): Update.
16452
16453         More consistent naming of *.m4 files.
16454         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16455         * modules/wchar (Files): Update.
16456
16457 2010-03-06  Jim Meyering  <meyering@redhat.com>
16458
16459         euidaccess: relax license to LGPLv2+
16460         * modules/euidaccess (License): Relax to LGPLv2+.
16461
16462 2010-03-06  Bruno Haible  <bruno@clisp.org>
16463
16464         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16465         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16466         (Makefile.am): Augment lib_SOURCES instead.
16467
16468 2010-03-04  Jim Meyering  <meyering@redhat.com>
16469
16470         utime: remove obsolete module
16471         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16472         unnecessary for years, and has been marked as obsolete for 10 months.
16473         * modules/utime: Remove file.
16474         * lib/utime.c: Remove file.
16475         * m4/utime.m4: Remove file.
16476         * m4/utimes-null.m4: Remove file.
16477         * doc/posix-functions/utime.texi (utime): Remove reference to
16478         the module.  Move the sole "fixed by gnulib" item into the
16479         "problems not fixed by Gnulib" list.
16480         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16481
16482 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16483
16484         * modules/exit (License): Relax license to LGPLv2+.
16485         (Status): Mark as obsolete.
16486         * NEWS: Mention deprecated 'exit' module.
16487         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16488         of now obsolete 'exit'.
16489
16490 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16491
16492         fts-lgpl: remove unused module
16493         * modules/fts-lgpl: Remove.
16494         * MODULES.html.sh (func_all_modules): Adjust.
16495         * check-module (find_included_lib_files): Adjust.
16496         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16497
16498 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16499
16500         copy-acl: enhance Solaris ACL error handling
16501         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16502         * lib/set-mode-acl.c (qset_acl): Likewise.
16503
16504 2010-03-02  Bruno Haible  <bruno@clisp.org>
16505
16506         spawn: Don't override the system defined values on FreeBSD 8.
16507         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16508         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16509         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16510         if HAVE_POSIX_SPAWN is 1.
16511         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16512
16513 2010-03-01  Bruno Haible  <bruno@clisp.org>
16514
16515         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16516         regarding Automake.
16517
16518 2010-02-25  Bruno Haible  <bruno@clisp.org>
16519
16520         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16521         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16522         setting, not afterwards.
16523         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16524
16525 2010-02-24  Eric Blake  <eblake@redhat.com>
16526
16527         bootstrap, git-version-gen: use timestamp
16528         * build-aux/git-version-gen (scriptversion): Force UTC.
16529         * build-aux/bootstrap (scriptversion): New variable.
16530
16531         bootstrap: allow older git
16532         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16533         older than 1.6.4.  Requested by the libvirt project.
16534
16535 2010-02-23  Eric Blake  <eblake@redhat.com>
16536
16537         warn-on-use: work with old autoconf
16538         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16539         AS_VAR semantics of autoconf 2.60.
16540         Reported by Bruno Haible.
16541
16542         bootstrap: improve some comments
16543         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16544         clarification comments.
16545
16546         gettimeofday: provide correct function
16547         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16548         when replacement is declared, otherwise provide gettimeofday.
16549         Reported by Michael Goffioul.
16550
16551 2010-02-23  Jim Meyering  <meyering@redhat.com>
16552
16553         lib-ignore: relax license to "unlimited", not LGPLv2+
16554         * modules/lib-ignore (License): Relax to "unlimited".
16555
16556 2010-02-23  Jim Meyering  <meyering@redhat.com>
16557
16558         lib-ignore: relax license to LGPLv2+
16559         * modules/lib-ignore (License): Relax to LGPLv2+.
16560
16561 2010-02-22  Eric Blake  <eblake@redhat.com>
16562
16563         lseek: avoid bash 3.2 broken pipe bug
16564         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16565         warning from bash 3.2.
16566         Reported by Ben Pfaff, with analysis from Bruno Haible.
16567
16568         bootstrap: support non-FSF copyright holder
16569         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16570         bootstrap.conf override of COPYRIGHT_HOLDER.
16571         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16572
16573         bootstrap: interoperate with gettext 0.14.1
16574         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16575
16576         bootstrap: allow for alternate submodule location
16577         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16578         hardcoding submodule location.
16579         (gnulib_mk): Allow direct use of Makefile.am.
16580
16581         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16582         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16583         rather than reconfiguring where the submodule points.
16584
16585         gettimeofday: restore support for platforms that lack function
16586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16587         replacement if function is missing.
16588         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16589         * modules/sys_time (Makefile.am): Substitute it.
16590         * lib/sys_time.in.h (gettimeofday): Check it.
16591         Reported by Michael Goffioul.
16592
16593 2010-02-21  Bruno Haible  <bruno@clisp.org>
16594
16595         * lib/stdio.in.h (obstack_printf): Fix typo.
16596
16597 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16598
16599         vc-list-files: use bzr ls's -R option
16600         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16601         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16602
16603 2010-02-21  Jim Meyering  <meyering@redhat.com>
16604
16605         init.sh: fix EXEEXT shims to work also for names like test-prog
16606         * tests/init.sh: Re-exec a better shell, when needed.
16607         If the current shell lacks support for posix $(...), an init.sh-using
16608         test will now try to find a shell that supports that.  If EXEEXT is
16609         nonempty, we also require support for hyphen-in-alias-name and shell
16610         substitutions like ${var#glob}.  Failure to find such a shell results
16611         in a skipped test.
16612
16613 2010-02-21  Bruno Haible  <bruno@clisp.org>
16614
16615         Really work around around "broken pipe" error message from bash 3.2.
16616         * gnulib-tool (func_reset_sigpipe): Remove function.
16617         (echo): In bash 3.2, define to a function that uses printf.
16618         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16619
16620 2010-02-20  Bruno Haible  <bruno@clisp.org>
16621
16622         Restore support for automake 1.9.6 with autoconf 2.61.
16623         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16624         Reported by James Youngman <jay@gnu.org>.
16625
16626 2010-02-20  Bruno Haible  <bruno@clisp.org>
16627
16628         Improve *printf warning condition.
16629         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16630         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16631         and the function is overridden due to SIGPIPE emulation.
16632
16633 2010-02-20  Bruno Haible  <bruno@clisp.org>
16634
16635         * lib/stdio.in.h: Tweak comments.
16636
16637 2010-02-19  Bruno Haible  <bruno@clisp.org>
16638
16639         Make it easier to find modules. New gnulib-tool option '--find'.
16640         * gnulib-tool: New option --find.
16641         (func_usage): Document it.
16642         (func_sanitize_modulelist): New function, extracted from
16643         func_all_modules.
16644         (func_all_modules): Invoke it.
16645         * doc/gnulib-tool.texi (Which modules?): New node.
16646
16647 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16648
16649         * lib/sys_select.in.h: Provide select replacement even if
16650         sys/select.h exists on a system, for Interix.
16651
16652 2010-02-18  Jim Meyering  <meyering@redhat.com>
16653
16654         init.sh: don't use $(...) just yet
16655         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16656         to accommodate e.g., Solaris' /bin/sh.
16657
16658 2010-02-17  Bruno Haible  <bruno@clisp.org>
16659
16660         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16661         Reported by Ludovic Courtès <ludo@gnu.org>.
16662
16663 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16664
16665         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16666         linking with -lintl.
16667
16668 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16669
16670         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16671         if not provided by the system's netdb.h.  Reported by
16672         ludo@gnu.org (Ludovic Courtès).
16673
16674 2010-02-15  Jim Meyering  <meyering@redhat.com>
16675
16676         init.sh: improve portability and efficiency
16677         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16678         "dummy" in a for loop.
16679         Use '!', not '^' to select the complement of a character set used
16680         in a "case" statement.
16681         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16682         Suggestions from Eric Blake.
16683
16684         init.sh: automatically accommodate programs with the .exe suffix
16685         Automatically arrange for an invocation of "prog" to execute the
16686         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16687         may use the simpler "prog", yet still work when built on a system
16688         that requires specifying the added suffix.
16689         Do this by constructing a function named "prog" that invokes
16690         "prog.exe" for each .exe file in selected directories.
16691         * tests/init.sh (find_exe_basenames_): New function.
16692         (create_exe_shim_functions_): New function.
16693         (path_prepend_): Use it.
16694
16695         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16696         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16697         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16698
16699 2010-02-14  Jim Meyering  <meyering@redhat.com>
16700
16701         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16702         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16703         (sc_prohibit_hash_pjw_without_use): New rule.
16704
16705         maint.mk: allow the default upload destination dir to be overridden
16706         * top/maint.mk (upload_dest_dir_): Define with a default that
16707         preserves the status quo.
16708         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16709         Reported by Peter Simons.
16710
16711         maint.mk: prohibit inclusion of "hash.h" without_use
16712         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16713
16714 2010-02-10  Jim Meyering  <meyering@redhat.com>
16715
16716         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16717         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16718
16719 2010-02-09  Eric Blake  <ebb9@byu.net>
16720         and Bruno Haible  <bruno@clisp.org>
16721
16722         obstack-printf-posix: ensure declaration
16723         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16724         extracted from gl_FUNC_OBSTACK_PRINTF.
16725         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16726         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16727         Likewise.
16728         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16729         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16730         0.
16731
16732 2010-02-08  Bruno Haible  <bruno@clisp.org>
16733
16734         gnulib-tool: Fix typo in 2010-02-07 commit.
16735         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16736         Reported by Eric Blake.
16737
16738 2010-02-07  Bruno Haible  <bruno@clisp.org>
16739
16740         gnulib-tool: Fix up caching patches.
16741         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16742         option --no-cache. Use associative arrays when supported by the shell.
16743         (sed_comments): New variable.
16744         (modcache): Renamed from do_cache.
16745         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16746         abbreviate unnecessarily.
16747         (have_associative): New variable.
16748         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16749         way also for ksh and zsh.
16750         (func_init_sed_convert_to_cache_statements): New function, extracted
16751         from func_cache_lookup_module. Add support for associative arrays.
16752         Don't set the c_MODULE_cached variable here. Ignore all lines before
16753         the first field header. Remove only the final newline, not all trailing
16754         newlines. Support empty fields correctly. Limit the use of 'eval' to
16755         assignments.
16756         (func_get_description, func_get_status, func_get_notice,
16757         func_get_applicability, func_get_filelist, func_get_dependencies,
16758         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16759         func_get_automake_snippet, func_get_include_directive,
16760         func_get_link_directive, func_get_license, func_get_maintainer):
16761         Update documentation. List the unoptimized code first. Add support for
16762         associative arrays. Limit the use of 'eval' to assignments.
16763         (func_get_applicability): Undo stylistic pessimisations.
16764         (func_get_automake_snippet, func_get_include_directive): Reduce code
16765         duplication.
16766         (func_modules_transitive_closure, func_modules_add_dummy,
16767         func_modules_notice, func_modules_to_filelist, func_add_file,
16768         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16769         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16770         func_create_testdir, func_create_megatestdir): Update documentation.
16771
16772 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16773
16774         * gnulib-tool (func_cache_lookup_module): Store the module name
16775         belonging to the cache variable; error out if two different
16776         module names map to the same cache variable name.
16777
16778 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16779
16780         gnulib-tool: Make caching optional.
16781         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16782         Update matching short versions of --no-changelog.
16783         (func_usage): Update.
16784         (sed_extract_cache_prog): Renamed from ...
16785         (sed_extract_prog): ... this; revert to old extraction script.
16786         (func_get_description, func_get_status)
16787         (func_get_notice, func_get_applicability, func_get_filelist)
16788         (func_get_dependencies, func_get_autoconf_early_snippet)
16789         (func_get_autoconf_snippet, func_get_automake_snippet)
16790         (func_get_include_directive, func_get_link_directive)
16791         (func_get_license, func_get_maintainer): If $do_cache is false,
16792         use old, non-caching extraction scripts.
16793         Suggestion by Bruno Haible.
16794
16795 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16796
16797         gnulib-tool: cache module metainformation.
16798         * gnulib-tool (sed_extract_prog): Match newline before each
16799         header, and rewrite header to a shell variable suffix.
16800         (func_cache_var, func_cache_lookup_module): New functions,
16801         to turn a module name into a cache variable prefix, and to
16802         look up and cache module metainformation.
16803         (func_get_description, func_get_status)
16804         (func_get_notice, func_get_applicability, func_get_filelist)
16805         (func_get_dependencies, func_get_autoconf_early_snippet)
16806         (func_get_autoconf_snippet, func_get_automake_snippet)
16807         (func_get_include_directive, func_get_link_directive)
16808         (func_get_license, func_get_maintainer): Use
16809         func_cache_lookup_module.
16810
16811 2010-02-07  Bruno Haible  <bruno@clisp.org>
16812
16813         fnctl: Fix missing dependency.
16814         * modules/fcntl (Depends-on): Add getdtablesize.
16815         Reported by John W. Eaton <jwe@gnu.org>.
16816
16817 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16818
16819         Argp: fix recognition of short alias options.
16820
16821         * lib/argp-parse.c (convert_options): Fix improper use of
16822         `|' between character values.
16823         * tests/test-argp.c (group1_option): New alias option
16824         --read (-r).
16825         (group1_parser): Special handling for 'r'.
16826         (test15): New test case.
16827         (test_fun): Add test15.
16828         * tests/test-argp-2.sh: Update expected --help and --usage
16829         outputs.
16830
16831 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16832
16833         * tests/test-argp.c: Fix indentation.
16834
16835 2010-02-04  Eric Blake  <ebb9@byu.net>
16836
16837         gettimeofday: expose type of second argument
16838         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16839         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16840         * tests/test-gettimeofday.c: Use it to silence warning.
16841         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16842         the issue.
16843
16844 2010-02-03  Jim Meyering  <meyering@redhat.com>
16845
16846         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16847         * lib/regcomp.c (TYPE_SIGNED): Define.
16848         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16849
16850         regcomp.c: avoid a new -Wshadow warning
16851         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16852
16853 2010-02-01  Jim Meyering  <meyering@redhat.com>
16854
16855         removing useless parentheses in cpp #define directives
16856         For motivation, see commit c0221df4, "define STREQ(a,b)
16857         consistently, removing useless parentheses"
16858         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16859         * lib/mountlist.c (MNT_IGNORE): Likewise.
16860         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16861
16862 2010-02-01  Eric Blake  <ebb9@byu.net>
16863
16864         sys_time: use link-warning
16865         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16866         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16867         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16868         * modules/sys_time (Depends-on): Add warn-on-use.
16869         (Makefile.am): Always build replacement.
16870         (configure.ac): Update substitutions.
16871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16872         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16873         bother with SYS_TIME_H.
16874         * modules/gettimeofday (configure.ac): Declare indicator.
16875         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16876         in use.
16877
16878         closein-tests: silence compiler warning
16879         * tests/test-closein.c (main): Ignore fread result.
16880         * modules/closein-tests (Depends-on): Add ignore-value.
16881
16882         tests: silence warning about system return
16883         * tests/test-areadlink-with-size.c (main): Ignore system result.
16884         * tests/test-areadlink.c (main): Likewise.
16885         * tests/test-areadlinkat-with-size.c (main): Likewise.
16886         * tests/test-areadlinkat.c (main): Likewise.
16887         * tests/test-canonicalize-lgpl.c (main): Likewise.
16888         * tests/test-canonicalize.c (main): Likewise.
16889         * tests/test-chown.c (main): Likewise.
16890         * tests/test-fchownat.c (main): Likewise.
16891         * tests/test-fdutimensat.c (main): Likewise.
16892         * tests/test-fstatat.c (main): Likewise.
16893         * tests/test-futimens.c (main): Likewise.
16894         * tests/test-lchown.c (main): Likewise.
16895         * tests/test-link.c (main): Likewise.
16896         * tests/test-linkat.c (main): Likewise.
16897         * tests/test-lstat.c (main): Likewise.
16898         * tests/test-mkdir.c (main): Likewise.
16899         * tests/test-mkdirat.c (main): Likewise.
16900         * tests/test-mkfifo.c (main): Likewise.
16901         * tests/test-mkfifoat.c (main): Likewise.
16902         * tests/test-mknod.c (main): Likewise.
16903         * tests/test-readlink.c (main): Likewise.
16904         * tests/test-remove.c (main): Likewise.
16905         * tests/test-rename.c (main): Likewise.
16906         * tests/test-renameat.c (main): Likewise.
16907         * tests/test-rmdir.c (main): Likewise.
16908         * tests/test-symlink.c (main): Likewise.
16909         * tests/test-symlinkat.c (main): Likewise.
16910         * tests/test-unlink.c (main): Likewise.
16911         * tests/test-unlinkat.c (main): Likewise.
16912         * tests/test-utimens.c (main): Likewise.
16913         * tests/test-utimensat.c (main): Likewise.
16914         * modules/areadlink-tests (Depends-on): Add ignore-value.
16915         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16916         * modules/areadlinkat-tests (Depends-on): Likewise.
16917         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16918         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16919         * modules/canonicalize-tests (Depends-on): Likewise.
16920         * modules/chown-tests (Depends-on): Likewise.
16921         * modules/fdutimensat-tests (Depends-on): Likewise.
16922         * modules/futimens-tests (Depends-on): Likewise.
16923         * modules/lchown-tests (Depends-on): Likewise.
16924         * modules/link-tests (Depends-on): Likewise.
16925         * modules/linkat-tests (Depends-on): Likewise.
16926         * modules/lstat-tests (Depends-on): Likewise.
16927         * modules/mkdir-tests (Depends-on): Likewise.
16928         * modules/mkfifo-tests (Depends-on): Likewise.
16929         * modules/mkfifoat-tests (Depends-on): Likewise.
16930         * modules/mknod-tests (Depends-on): Likewise.
16931         * modules/openat-tests (Depends-on): Likewise.
16932         * modules/readlink-tests (Depends-on): Likewise.
16933         * modules/remove-tests (Depends-on): Likewise.
16934         * modules/rename-tests (Depends-on): Likewise.
16935         * modules/renameat-tests (Depends-on): Likewise.
16936         * modules/rmdir-tests (Depends-on): Likewise.
16937         * modules/symlink-tests (Depends-on): Likewise.
16938         * modules/symlinkat-tests (Depends-on): Likewise.
16939         * modules/unlink-tests (Depends-on): Likewise.
16940         * modules/utimens-tests (Depends-on): Likewise.
16941         * modules/utimensat-tests (Depends-on): Likewise.
16942
16943 2010-01-31  Bruno Haible  <bruno@clisp.org>
16944
16945         Perform the same test for many <math.h> functions.
16946         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16947         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16948         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16949         of gl_MATHFUNC.
16950         * modules/acos (configure.ac): Likewise.
16951         * modules/asin (configure.ac): Likewise.
16952         * modules/atan (configure.ac): Likewise.
16953         * modules/atan2 (configure.ac): Likewise.
16954         * modules/cbrt (configure.ac): Likewise.
16955         * modules/copysign (configure.ac): Likewise.
16956         * modules/cos (configure.ac): Likewise.
16957         * modules/cosh (configure.ac): Likewise.
16958         * modules/erf (configure.ac): Likewise.
16959         * modules/erfc (configure.ac): Likewise.
16960         * modules/exp (configure.ac): Likewise.
16961         * modules/fmod (configure.ac): Likewise.
16962         * modules/hypot (configure.ac): Likewise.
16963         * modules/j0 (configure.ac): Likewise.
16964         * modules/j1 (configure.ac): Likewise.
16965         * modules/jn (configure.ac): Likewise.
16966         * modules/lgamma (configure.ac): Likewise.
16967         * modules/log (configure.ac): Likewise.
16968         * modules/log10 (configure.ac): Likewise.
16969         * modules/log1p (configure.ac): Likewise.
16970         * modules/pow (configure.ac): Likewise.
16971         * modules/remainder (configure.ac): Likewise.
16972         * modules/sin (configure.ac): Likewise.
16973         * modules/sinh (configure.ac): Likewise.
16974         * modules/tan (configure.ac): Likewise.
16975         * modules/tanh (configure.ac): Likewise.
16976         * modules/y0 (configure.ac): Likewise.
16977         * modules/y1 (configure.ac): Likewise.
16978         * modules/yn (configure.ac): Likewise.
16979         Suggested by Paolo Bonzini.
16980
16981 2010-01-31  Bruno Haible  <bruno@clisp.org>
16982
16983         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
16984
16985 2010-01-31  Bruno Haible  <bruno@clisp.org>
16986
16987         Work around getdelim() bug on FreeBSD 8.0.
16988         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
16989         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
16990         not work.
16991         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
16992         is 1.
16993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
16994         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
16995         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
16996         a non-zero size.
16997         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
16998
16999 2010-01-31  Bruno Haible  <bruno@clisp.org>
17000
17001         Work around getline() bug on FreeBSD 8.0.
17002         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17003         and a non-zero size.
17004         * tests/test-getline.c (main): Likewise.
17005         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17006         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17007
17008 2010-01-28  Eric Blake  <ebb9@byu.net>
17009
17010         regex: fix build failure
17011         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17012         platforms.
17013
17014 2010-01-28  Jim Meyering  <meyering@redhat.com>
17015
17016         regex: do not ignore memory allocation failure
17017         * lib/regex_internal.c (create_cd_newstate): Detect
17018         re_node_set_init_copy failure.   Extracted from glibc commit
17019         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17020
17021         regex: sync more white-space changes from libc
17022         * lib/regex_internal.c: White-space only changes.
17023         * lib/regexec.c: Likewise.
17024
17025         regex: add many uses of __attribute_warn_unused_result__
17026         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17027         * lib/regexec.c: Likewise.
17028         Extracted from a messy glibc commit.
17029
17030         regcomp.c: spelling and merge-artifact from glibc
17031         * lib/regcomp.c: Merge remainder of glibc's
17032         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17033
17034         regcomp.c: sync white-space changes from glibc
17035         * lib/regcomp.c: Merge to accommodate white space
17036         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17037
17038         regcomp.c: do not ignore internal return values
17039         * lib/regcomp.c: Do not ignore internal return values.
17040         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17041         but without its white-space changes and spelling fixes.
17042
17043         regex_internal.h: define __attribute_warn_unused_result__
17044         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17045
17046         maint: add a syntax-check rule to check for vulnerable Makefile.in
17047         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17048
17049 2010-01-27  Jim Meyering  <meyering@redhat.com>
17050
17051         ncftpput-ftp: clean up spaces
17052         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17053         Remove trailing blanks.
17054
17055 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17056
17057         * build-aux/git-version-gen: Fix copyright statement.
17058         * build-aux/gnupload: Likewise.
17059         * tests/test-arcfour.c: Likewise.
17060         * tests/test-arctwo.c: Likewise.
17061         * tests/test-count-one-bits.c: Likewise.
17062         * tests/test-crc.c: Likewise.
17063         * tests/test-des.c: Likewise.
17064         * tests/test-gc-arcfour.c: Likewise.
17065         * tests/test-gc-arctwo.c: Likewise.
17066         * tests/test-gc-des.c: Likewise.
17067         * tests/test-gc-hmac-md5.c: Likewise.
17068         * tests/test-gc-hmac-sha1.c: Likewise.
17069         * tests/test-gc-md2.c: Likewise.
17070         * tests/test-gc-md4.c: Likewise.
17071         * tests/test-gc-md5.c: Likewise.
17072         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17073         * tests/test-gc-rijndael.c: Likewise.
17074         * tests/test-gc-sha1.c: Likewise.
17075         * tests/test-gc.c: Likewise.
17076         * tests/test-gethostname.c: Likewise.
17077         * tests/test-gettimeofday.c: Likewise.
17078         * tests/test-hash.c: Likewise.
17079         * tests/test-hmac-md5.c: Likewise.
17080         * tests/test-hmac-sha1.c: Likewise.
17081         * tests/test-md2.c: Likewise.
17082         * tests/test-md4.c: Likewise.
17083         * tests/test-md5.c: Likewise.
17084         * tests/test-memchr.c: Likewise.
17085         * tests/test-memchr2.c: Likewise.
17086         * tests/test-memcmp.c: Likewise.
17087         * tests/test-memmem.c: Likewise.
17088         * tests/test-memrchr.c: Likewise.
17089         * tests/test-rawmemchr.c: Likewise.
17090         * tests/test-read-file.c: Likewise.
17091         * tests/test-rijndael.c: Likewise.
17092         * tests/test-sockets.c: Likewise.
17093         * tests/test-strchrnul.c: Likewise.
17094         * tests/test-strstr.c: Likewise.
17095         * tests/test-strtod.c: Likewise.
17096         * build-aux/ncftpput-ftp: Likewise.
17097
17098 2010-01-26  Eric Blake  <ebb9@byu.net>
17099
17100         ignore-value: update recommended header name
17101         * modules/ignore-value (Include): Only use <> for headers that
17102         exist in glibc.
17103
17104 2010-01-26  Jim Meyering  <meyering@redhat.com>
17105
17106         test-userspec.c: avoid compiler warnings
17107         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17108         and "initialization discards qualifiers..." warnings.
17109         Put the first "uid" in its own scope, and make char* members "const".
17110
17111 2010-01-25  Bruno Haible  <bruno@clisp.org>
17112
17113         gnulib-tool: Make warning diagnostics consistent.
17114         * gnulib-tool (func_warning): New function.
17115         Use it everywhere where gnulib-tool produces output to stderr and it is
17116         not a fatal error.
17117
17118 2010-01-25  Bruno Haible  <bruno@clisp.org>
17119
17120         Fix test dependencies.
17121         * modules/xstrtol-tests (Depends-on): Add inttypes.
17122         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17123
17124 2010-01-25 Pádraig Brady <P@draigBrady.com>
17125
17126         syntax-check: detect incorrect boolean macro values in config.h
17127         * modules/maintainer-makefile (configure.ac): Parameterize the location
17128         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17129         The logic is from Eric Blake and the location indicated by Jim Meyering.
17130         Note the more natural CONFIG_HEADER name is prohibited by automake
17131         for backwards compatibility reasons.
17132         * top/maint.mk (sc_Wundef_boolean): New rule.
17133
17134 2010-01-25  Jim Meyering  <meyering@redhat.com>
17135
17136         bootstrap: detect MacOS 10.6's shasum, too
17137         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17138         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17139
17140 2010-01-23  Jim Meyering  <meyering@redhat.com>
17141
17142         xstrtoll: new module
17143         * modules/xstrtoll: New file.
17144         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17145         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17146         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17147         ./configure fails if you use this module and lack "long long".
17148         * modules/xstrtoll-tests: New module.
17149         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17150         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17151         new init.sh-based test framework.
17152
17153 2010-01-24  Bruno Haible  <bruno@clisp.org>
17154
17155         Tests for module 'yn'.
17156         * modules/yn-tests: New file.
17157         * tests/test-yn.c: New file.
17158
17159         Tests for module 'y1'.
17160         * modules/y1-tests: New file.
17161         * tests/test-y1.c: New file.
17162
17163         Tests for module 'y0'.
17164         * modules/y0-tests: New file.
17165         * tests/test-y0.c: New file.
17166
17167         Tests for module 'tanh'.
17168         * modules/tanh-tests: New file.
17169         * tests/test-tanh.c: New file.
17170
17171         Tests for module 'tan'.
17172         * modules/tan-tests: New file.
17173         * tests/test-tan.c: New file.
17174
17175         Tests for module 'sqrt'.
17176         * modules/sqrt-tests: New file.
17177         * tests/test-sqrt.c: New file.
17178
17179         Tests for module 'sinh'.
17180         * modules/sinh-tests: New file.
17181         * tests/test-sinh.c: New file.
17182
17183         Tests for module 'sin'.
17184         * modules/sin-tests: New file.
17185         * tests/test-sin.c: New file.
17186
17187         Tests for module 'rint'.
17188         * modules/rint-tests: New file.
17189         * tests/test-rint.c: New file.
17190
17191         Tests for module 'remainder'.
17192         * modules/remainder-tests: New file.
17193         * tests/test-remainder.c: New file.
17194
17195         Tests for module 'pow'.
17196         * modules/pow-tests: New file.
17197         * tests/test-pow.c: New file.
17198
17199         Tests for module 'nextafter'.
17200         * modules/nextafter-tests: New file.
17201         * tests/test-nextafter.c: New file.
17202
17203         Tests for module 'modf'.
17204         * modules/modf-tests: New file.
17205         * tests/test-modf.c: New file.
17206
17207         Tests for module 'logb'.
17208         * modules/logb-tests: New file.
17209         * tests/test-logb.c: New file.
17210
17211         Tests for module 'log1p'.
17212         * modules/log1p-tests: New file.
17213         * tests/test-log1p.c: New file.
17214
17215         Tests for module 'log10'.
17216         * modules/log10-tests: New file.
17217         * tests/test-log10.c: New file.
17218
17219         Tests for module 'log'.
17220         * modules/log-tests: New file.
17221         * tests/test-log.c: New file.
17222
17223         Tests for module 'lgamma'.
17224         * modules/lgamma-tests: New file.
17225         * tests/test-lgamma.c: New file.
17226
17227         Tests for module 'ldexp'.
17228         * modules/ldexp-tests: New file.
17229         * tests/test-ldexp.c: New file.
17230
17231         Tests for module 'jn'.
17232         * modules/jn-tests: New file.
17233         * tests/test-jn.c: New file.
17234
17235         Tests for module 'j1'.
17236         * modules/j1-tests: New file.
17237         * tests/test-j1.c: New file.
17238
17239         Tests for module 'j0'.
17240         * modules/j0-tests: New file.
17241         * tests/test-j0.c: New file.
17242
17243         Tests for module 'hypot'.
17244         * modules/hypot-tests: New file.
17245         * tests/test-hypot.c: New file.
17246
17247         Tests for module 'fmod'.
17248         * modules/fmod-tests: New file.
17249         * tests/test-fmod.c: New file.
17250
17251         Tests for module 'fabs'.
17252         * modules/fabs-tests: New file.
17253         * tests/test-fabs.c: New file.
17254
17255         Tests for module 'exp'.
17256         * modules/exp-tests: New file.
17257         * tests/test-exp.c: New file.
17258
17259         Tests for module 'erfc'.
17260         * modules/erfc-tests: New file.
17261         * tests/test-erfc.c: New file.
17262
17263         Tests for module 'erf'.
17264         * modules/erf-tests: New file.
17265         * tests/test-erf.c: New file.
17266
17267         Tests for module 'cosh'.
17268         * modules/cosh-tests: New file.
17269         * tests/test-cosh.c: New file.
17270
17271         Tests for module 'cos'.
17272         * modules/cos-tests: New file.
17273         * tests/test-cos.c: New file.
17274
17275         Tests for module 'copysign'.
17276         * modules/copysign-tests: New file.
17277         * tests/test-copysign.c: New file.
17278
17279         Tests for module 'cbrt'.
17280         * modules/cbrt-tests: New file.
17281         * tests/test-cbrt.c: New file.
17282
17283         Tests for module 'atan2'.
17284         * modules/atan2-tests: New file.
17285         * tests/test-atan2.c: New file.
17286
17287         Tests for module 'atan'.
17288         * modules/atan-tests: New file.
17289         * tests/test-atan.c: New file.
17290
17291         Tests for module 'asin'.
17292         * modules/asin-tests: New file.
17293         * tests/test-asin.c: New file.
17294
17295         Tests for module 'acos'.
17296         * modules/acos-tests: New file.
17297         * tests/test-acos.c: New file.
17298
17299 2010-01-24  Bruno Haible  <bruno@clisp.org>
17300
17301         Fix tests for common <math.h> functions.
17302         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17303         code snippet that references the function pointer, rather than merely
17304         calling the function. Substitute the FUNC_LIBM variable.
17305         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17306         * modules/acos (configure.ac): Likewise.
17307         * modules/asin (configure.ac): Likewise.
17308         * modules/atan (configure.ac): Likewise.
17309         * modules/atan2 (configure.ac): Likewise.
17310         * modules/cbrt (configure.ac): Likewise.
17311         * modules/copysign (configure.ac): Likewise.
17312         * modules/cos (configure.ac): Likewise.
17313         * modules/cosh (configure.ac): Likewise.
17314         * modules/erf (configure.ac): Likewise.
17315         * modules/erfc (configure.ac): Likewise.
17316         * modules/exp (configure.ac): Likewise.
17317         * modules/fabs (configure.ac): Likewise.
17318         * modules/fmod (configure.ac): Likewise.
17319         * modules/hypot (configure.ac): Likewise.
17320         * modules/j0 (configure.ac): Likewise.
17321         * modules/j1 (configure.ac): Likewise.
17322         * modules/jn (configure.ac): Likewise.
17323         * modules/ldexp (configure.ac): Likewise.
17324         * modules/lgamma (configure.ac): Likewise.
17325         * modules/log (configure.ac): Likewise.
17326         * modules/log10 (configure.ac): Likewise.
17327         * modules/log1p (configure.ac): Likewise.
17328         * modules/logb (configure.ac): Likewise.
17329         * modules/modf (configure.ac): Likewise.
17330         * modules/nextafter (configure.ac): Likewise.
17331         * modules/pow (configure.ac): Likewise.
17332         * modules/remainder (configure.ac): Likewise.
17333         * modules/rint (configure.ac): Likewise.
17334         * modules/sin (configure.ac): Likewise.
17335         * modules/sinh (configure.ac): Likewise.
17336         * modules/tan (configure.ac): Likewise.
17337         * modules/tanh (configure.ac): Likewise.
17338         * modules/y0 (configure.ac): Likewise.
17339         * modules/y1 (configure.ac): Likewise.
17340         * modules/yn (configure.ac): Likewise.
17341
17342 2010-01-24  Bruno Haible  <bruno@clisp.org>
17343
17344         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17345         * tests/test-acosl.c (x): New variable.
17346         (main): Store argument in x and fetch it from x.
17347         * tests/test-asinl.c (x): New variable.
17348         (main): Store argument in x and fetch it from x.
17349         * tests/test-atanl.c (x): New variable.
17350         (main): Store argument in x and fetch it from x.
17351         * tests/test-cosl.c (x): New variable.
17352         (main): Store argument in x and fetch it from x.
17353         * tests/test-expl.c (x): New variable.
17354         (main): Store argument in x and fetch it from x.
17355         * tests/test-logl.c (x): New variable.
17356         (main): Store argument in x and fetch it from x.
17357         * tests/test-sinl.c (x): New variable.
17358         (main): Store argument in x and fetch it from x.
17359         * tests/test-sqrtl.c (x): New variable.
17360         (main): Store argument in x and fetch it from x.
17361         * tests/test-tanl.c (x): New variable.
17362         (main): Store argument in x and fetch it from x.
17363
17364 2010-01-24  Bruno Haible  <bruno@clisp.org>
17365
17366         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17367         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17368         assignments to the initial TESTS_ENVIRONMENT.
17369         * doc/gnulib.texi (Unit test modules): Document it.
17370         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17371         TESTS_ENVIRONMENT.
17372         * modules/btowc-tests (Makefile.am): Likewise.
17373         * modules/c-stack-tests (Makefile.am): Likewise.
17374         * modules/c-strcase-tests (Makefile.am): Likewise.
17375         * modules/copy-file-tests (Makefile.am): Likewise.
17376         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17377         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17378         * modules/mbrtowc-tests (Makefile.am): Likewise.
17379         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17380         * modules/mbscasestr-tests (Makefile.am): Likewise.
17381         * modules/mbschr-tests (Makefile.am): Likewise.
17382         * modules/mbscspn-tests (Makefile.am): Likewise.
17383         * modules/mbsinit-tests (Makefile.am): Likewise.
17384         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17385         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17386         * modules/mbspbrk-tests (Makefile.am): Likewise.
17387         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17388         * modules/mbsrchr-tests (Makefile.am): Likewise.
17389         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17390         * modules/mbsspn-tests (Makefile.am): Likewise.
17391         * modules/mbsstr-tests (Makefile.am): Likewise.
17392         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17393         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17394         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17395         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17396         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17397         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17398         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17399         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17400         * modules/wcrtomb-tests (Makefile.am): Likewise.
17401         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17402         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17403         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17404         assignments from TESTS_ENVIRONMENT.
17405         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17406         augmentation.
17407         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17408         * modules/atexit-tests (Makefile.am): Likewise.
17409         * modules/binary-io-tests (Makefile.am): Likewise.
17410         * modules/closein-tests (Makefile.am): Likewise.
17411         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17412         * modules/exclude-tests (Makefile.am): Likewise.
17413         * modules/fflush-tests (Makefile.am): Likewise.
17414         * modules/fpending-tests (Makefile.am): Likewise.
17415         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17416         * modules/freadahead-tests (Makefile.am): Likewise.
17417         * modules/freadptr-tests (Makefile.am): Likewise.
17418         * modules/freadseek-tests (Makefile.am): Likewise.
17419         * modules/fseek-tests (Makefile.am): Likewise.
17420         * modules/fseeko-tests (Makefile.am): Likewise.
17421         * modules/ftell-tests (Makefile.am): Likewise.
17422         * modules/ftello-tests (Makefile.am): Likewise.
17423         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17424         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17425         * modules/lseek-tests (Makefile.am): Likewise.
17426         * modules/parse-duration-tests (Makefile.am): Likewise.
17427         * modules/perror-tests (Makefile.am): Likewise.
17428         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17429         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17430         * modules/pipe-tests (Makefile.am): Likewise.
17431         * modules/pread-tests (Makefile.am): Likewise.
17432         * modules/printf-posix-tests (Makefile.am): Likewise.
17433         * modules/select-tests (Makefile.am): Likewise.
17434         * modules/sigpipe-tests (Makefile.am): Likewise.
17435         * modules/tsearch-tests (Makefile.am): Likewise.
17436         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17437         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17438         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17439         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17440         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17441         * modules/version-etc-tests (Makefile.am): Likewise.
17442         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17443         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17444         * modules/xalloc-die-tests (Makefile.am): Likewise.
17445         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17446         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17447         * modules/xstrtol-tests (Makefile.am): Likewise.
17448         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17449         * modules/yesno-tests (Makefile.am): Likewise.
17450         Suggested by Jim Meyering.
17451
17452 2010-01-24  Bruno Haible  <bruno@clisp.org>
17453
17454         More documentation.
17455         * doc/gnulib.texi (Writing modules): New chapter.
17456         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17457         the new chapter.
17458
17459 2010-01-24  Jim Meyering  <meyering@redhat.com>
17460
17461         maint.mk: do not prepend "./" after filtering
17462         * top/maint.mk (_prepend_srcdir_prefix): New variable
17463         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17464         "./" when $(srcdir) is ".".
17465
17466         define STREQ(a,b) consistently, removing useless parentheses
17467         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17468         since the only risk is that "a" or "b" contains an unparenthesized
17469         comma, but if either did that, STREQ would have 3 or more arguments.
17470         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17471         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17472         * lib/hash-triple.c (STREQ): Likewise.
17473         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17474         * lib/getugroups.c (STREQ): Likewise.
17475
17476 2010-01-23  Jim Meyering  <meyering@redhat.com>
17477
17478         maint.mk: fix syntax-check in a non-srcdir build directory
17479         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17480         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17481
17482 2010-01-22  Jim Meyering  <meyering@redhat.com>
17483
17484         userspec: add unit tests
17485         * tests/test-userspec.c: New file.
17486         * modules/userspec-tests: Likewise.
17487
17488 2010-01-21  Jim Meyering  <meyering@redhat.com>
17489
17490         maint.mk: handle source file names containing "." robustly
17491         * top/maint.mk (_dot_escaped_srcdir): Define.
17492         (VC_LIST): Use it in LHS of sed substitution.
17493
17494 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17495
17496         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17497         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17498         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17499         from a non-srcdir build.
17500
17501 2010-01-20  Eric Blake  <ebb9@byu.net>
17502
17503         warn-on-use: use instead of link-warning
17504         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17505         * modules/unistd (Depends-on, Makefile.am): Likewise.
17506         * modules/arpa_inet (Depends-on): Replace link-warning with
17507         warn-on-use.
17508         (Makefile.am): Update rules accordingly.
17509         * modules/ctype (Depends-on, Makefile.am): Likewise.
17510         * modules/dirent (Depends-on, Makefile.am): Likewise.
17511         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17512         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17513         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17514         * modules/locale (Depends-on, Makefile.am): Likewise.
17515         * modules/math (Depends-on, Makefile.am): Likewise.
17516         * modules/search (Depends-on, Makefile.am): Likewise.
17517         * modules/signal (Depends-on, Makefile.am): Likewise.
17518         * modules/spawn (Depends-on, Makefile.am): Likewise.
17519         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17520         * modules/string (Depends-on, Makefile.am): Likewise.
17521         * modules/strings (Depends-on, Makefile.am): Likewise.
17522         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17523         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17524         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17525         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17526         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17527         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17528         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17529         * modules/wchar (Depends-on, Makefile.am): Likewise.
17530         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17531         should be poisoned.
17532         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17533         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17534         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17535         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17536         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17537         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17538         * m4/math_h.m4 (gl_MATH_H): Likewise.
17539         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17540         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17541         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17542         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17543         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17544         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17545         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17546         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17547         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17548         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17549         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17550         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17551         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17552         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17553         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17554         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17555         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17556         GL_LINK_WARNING.
17557         * lib/ctype.in.h: Likewise.
17558         * lib/dirent.in.h: Likewise.
17559         * lib/fcntl.in.h: Likewise.
17560         * lib/inttypes.in.h: Likewise.
17561         * lib/langinfo.in.h: Likewise.
17562         * lib/locale.in.h: Likewise.
17563         * lib/math.in.h: Likewise.
17564         * lib/search.in.h: Likewise.
17565         * lib/signal.in.h: Likewise.
17566         * lib/spawn.in.h: Likewise.
17567         * lib/stdio.in.h: Likewise.
17568         * lib/stdlib.in.h: Likewise.
17569         * lib/string.in.h: Likewise.
17570         * lib/strings.in.h: Likewise.
17571         * lib/sys_file.in.h: Likewise.
17572         * lib/sys_ioctl.in.h: Likewise.
17573         * lib/sys_select.in.h: Likewise.
17574         * lib/sys_socket.in.h: Likewise.
17575         * lib/sys_stat.in.h: Likewise.
17576         * lib/sys_times.in.h: Likewise.
17577         * lib/sys_utsname.in.h: Likewise.
17578         * lib/unistd.in.h: Likewise.
17579         * lib/wchar.in.h: Likewise.
17580
17581 2010-01-20  Bruno Haible  <bruno@clisp.org>
17582
17583         Avoid duplicate -lm.
17584         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17585         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17586         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17587         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17588         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17589         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17590         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17591         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17592         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17593         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17594         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17595         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17596         Reported by Paolo Bonzini.
17597
17598 2010-01-19  Bruno Haible  <bruno@clisp.org>
17599
17600         langinfo, nl_langinfo: Relicense under LGPLv2+.
17601         * modules/langinfo (License): Change to LGPLv2+.
17602         * modules/nl_langinfo (License): Likewise.
17603         Patch by David Lutterkort <lutter@redhat.com>.
17604
17605 2010-01-19  Bruno Haible  <bruno@clisp.org>
17606
17607         Avoid compilation error with cc on OSF/1 5.1.
17608         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17609         statement, not before.
17610         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17611
17612 2010-01-18  Bruno Haible  <bruno@clisp.org>
17613
17614         Avoid a link error due to the __printf__ symbol.
17615         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17616         and 2.6.x.
17617         (__format__, __printf__): Remove definitions.
17618         * lib/argp-fmtstream.h: Likewise.
17619         * lib/argp.h: Likewise.
17620         * lib/error.h: Likewise.
17621         * lib/vasnprintf.h: Likewise.
17622         * lib/xprintf.h: Likewise.
17623         * lib/xvasprintf.h: Likewise.
17624         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17625
17626 2010-01-18  Bruno Haible  <bruno@clisp.org>
17627
17628         Tests for module 'tanl'.
17629         * modules/tanl-tests: New file.
17630         * tests/test-tanl.c: New file.
17631
17632         Tests for module 'sqrtl'.
17633         * modules/sqrtl-tests: New file.
17634         * tests/test-sqrtl.c: New file.
17635
17636         Tests for module 'sinl'.
17637         * modules/sinl-tests: New file.
17638         * tests/test-sinl.c: New file.
17639
17640         Tests for module 'logl'.
17641         * modules/logl-tests: New file.
17642         * tests/test-logl.c: New file.
17643
17644         Tests for module 'expl'.
17645         * modules/expl-tests: New file.
17646         * tests/test-expl.c: New file.
17647
17648         Tests for module 'cosl'.
17649         * modules/cosl-tests: New file.
17650         * tests/test-cosl.c: New file.
17651
17652         Tests for module 'atanl'.
17653         * modules/atanl-tests: New file.
17654         * tests/test-atanl.c: New file.
17655
17656         Tests for module 'asinl'.
17657         * modules/asinl-tests: New file.
17658         * tests/test-asinl.c: New file.
17659
17660         Tests for module 'acosl'.
17661         * modules/acosl-tests: New file.
17662         * tests/test-acosl.c: New file.
17663
17664         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17665         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17666         tanl): Use the standard gnulib idiom.
17667         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17668         * lib/sinl.c: Likewise.
17669         * lib/tanl.c: Don't include trigl.c.
17670         (kernel_tanl): Make static.
17671         * lib/sincosl.c: Include trigl.h first.
17672         * lib/trigl.c: Likewise.
17673         * m4/acosl.m4: New file.
17674         * m4/asinl.m4: New file.
17675         * m4/atanl.m4: New file.
17676         * m4/cosl.m4: New file.
17677         * m4/expl.m4: New file.
17678         * m4/logl.m4: New file.
17679         * m4/sinl.m4: New file.
17680         * m4/sqrtl.m4: New file.
17681         * m4/tanl.m4: New file.
17682         * m4/mathl.m4: Remove file.
17683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17684         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17685         Don't initialize GNULIB_MATHL.
17686         * modules/acosl: New file.
17687         * modules/asinl: New file.
17688         * modules/atanl: New file.
17689         * modules/cosl: New file.
17690         * modules/expl: New file.
17691         * modules/logl: New file.
17692         * modules/sinl: New file.
17693         * modules/sqrtl: New file.
17694         * modules/tanl: New file.
17695         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17696         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17697         substitute GNULIB_MATHL.
17698         * modules/mathl: Rewritten.
17699         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17700         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17701         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17702         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17703         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17704         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17705         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17706         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17707         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17708
17709 2010-01-18  Bruno Haible  <bruno@clisp.org>
17710
17711         sqrt: Make gl_FUNC_SQRT requirable.
17712         * m4/sqrt.m4: New file.
17713         * modules/sqrt (Files): Add it.
17714         (configure.ac): Invoke gl_FUNC_SQRT.
17715
17716 2010-01-18  Bruno Haible  <bruno@clisp.org>
17717
17718         New modules for common <math.h> functions.
17719         * m4/mathfunc.m4: New file.
17720         * modules/acos: New file.
17721         * modules/asin: New file.
17722         * modules/atan: New file.
17723         * modules/atan2: New file.
17724         * modules/cbrt: New file.
17725         * modules/copysign: New file.
17726         * modules/cos: New file.
17727         * modules/cosh: New file.
17728         * modules/erf: New file.
17729         * modules/erfc: New file.
17730         * modules/exp: New file.
17731         * modules/fabs: New file.
17732         * modules/fmod: New file.
17733         * modules/hypot: New file.
17734         * modules/j0: New file.
17735         * modules/j1: New file.
17736         * modules/jn: New file.
17737         * modules/ldexp: New file.
17738         * modules/lgamma: New file.
17739         * modules/log: New file.
17740         * modules/log10: New file.
17741         * modules/log1p: New file.
17742         * modules/logb: New file.
17743         * modules/modf: New file.
17744         * modules/nextafter: New file.
17745         * modules/pow: New file.
17746         * modules/remainder: New file.
17747         * modules/rint: New file.
17748         * modules/sin: New file.
17749         * modules/sinh: New file.
17750         * modules/sqrt: New file.
17751         * modules/tan: New file.
17752         * modules/tanh: New file.
17753         * modules/y0: New file.
17754         * modules/y1: New file.
17755         * modules/yn: New file.
17756         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17757         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17758         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17759         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17760         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17761         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17762         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17763         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17764         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17765         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17766         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17767         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17768         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17769         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17770         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17771         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17772         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17773         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17774         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17775         * doc/posix-functions/log.texi: Mention the 'log' module.
17776         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17777         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17778         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17779         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17780         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17781         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17782         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17783         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17784         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17785         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17786         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17787         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17788         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17789         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17790         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17791         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17792
17793 2010-01-18  Jim Meyering  <meyering@redhat.com>
17794
17795         ignore-value: relax license to LGPLv2+
17796         * modules/ignore-value (License): Relax to LGPLv2+.
17797
17798         getdate: don't leak when TZ contains two or more '"'s
17799         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17800         double quote in TZ after the first one.
17801
17802         readtokens: do not leak internal token_lengths buffer
17803         * lib/readtokens.c (readtokens): Free the local, lengths,
17804         when the supplied "token_lengths" parameter is NULL.
17805
17806 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17807
17808         Fix a couple of missing LIBTHREAD link failures on AIX.
17809         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17810         $(LIBTHREAD).
17811         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17812
17813         Link test-poll against INET_PTON_LIB.
17814         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17815         for inet_pton on Solaris 10.
17816
17817 2010-01-17  Bruno Haible  <bruno@clisp.org>
17818
17819         unistdio/*-sprintf: Fix typo in module description.
17820         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17821         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17822         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17823         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17824         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17825         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17826         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17828
17829 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17830
17831         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17832         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17833         variables in shell case patterns, for AIX and HP-UX ksh.
17834
17835         Split large sed scripts, for HP-UX sed.
17836         * modules/stdio: Split sed scripts around 50 sed commands,
17837         to avoid HP-UX limit of 99 commands, in the near future.
17838         * modules/string: Likewise.
17839         * modules/unistd: Likewise.
17840
17841         gnulib-tool: avoid writing in the current directory.
17842         * gnulib-tool (func_emit_lib_Makefile_am)
17843         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17844         not in the current directory, so concurrent gnulib-tool
17845         instances do not interfere.
17846
17847 2010-01-16  Jim Meyering  <meyering@redhat.com>
17848
17849         doc: update users.txt
17850         * users.txt: Add grep.
17851         (diffutils, gzip): Update URLs.
17852
17853 2010-01-12  Bruno Haible  <bruno@clisp.org>
17854
17855         posix_spawn: Avoid test failure on Cygwin.
17856         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17857         characters.
17858         Reported by Simon Josefsson.
17859
17860 2010-01-12  Bruno Haible  <bruno@clisp.org>
17861
17862         * tests/test-cond.c (main): When skipping the test, show the reason.
17863
17864 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17865
17866         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17867
17868 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17869
17870         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17871         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17872
17873 2010-01-12  Eric Blake  <ebb9@byu.net>
17874
17875         build: guarantee AS_VAR_IF
17876         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17877         (gl_AS_VAR_IF): Move...
17878         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17879         Reported by Simon Josefsson.
17880
17881 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17882
17883         * lib/stdio.in.h: Fix typo.
17884
17885 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17886
17887         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17888         libgpg-error.
17889
17890 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17891
17892         * tests/test-xalloc-die.sh: Use $EXEEXT.
17893
17894 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17895             Bruno Haible  <bruno@clisp.org>
17896
17897         getlogin, getlogin_r: Avoid test failure.
17898         * tests/test-getlogin.c: Include <stdio.h>.
17899         (main): Skip the test when the function fails because stdin is not a
17900         tty.
17901         * tests/test-getlogin_r.c: Include <stdio.h>.
17902         (main): Skip the test when the function fails because stdin is not a
17903         tty.
17904
17905 2010-01-11  Eric Blake  <ebb9@byu.net>
17906
17907         tests: avoid more large file warnings
17908         * tests/test-fflush.c: Avoid warning about ftell use.
17909         * tests/test-fseek.c: Avoid warning about fseek use.
17910
17911 2010-01-10  Bruno Haible  <bruno@clisp.org>
17912
17913         nproc: Work better on Linux when /proc and /sys are not mounted.
17914         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17915         as lower bound when, on glibc/Linux systems,
17916         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17917         Suggested by Pádraig Brady <P@draigbrady.com>.
17918         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17919
17920         nproc: Refactor.
17921         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17922         extracted from num_processors.
17923         (num_processors): Call it.
17924
17925 2010-01-11  Jim Meyering  <meyering@redhat.com>
17926
17927         utimecmp: avoid new warning from upcoming gcc-4.5.0
17928         * lib/utimecmp.c (BILLION): Define using #define rather than an
17929         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17930
17931 2010-01-11  Eric Blake  <ebb9@byu.net>
17932
17933         math: add portability warnings for classification macros
17934         * modules/math (Depends-on): Add warn-on-use.
17935         (Makefile.am): Provide new substitutions.
17936         * m4/math_h.m4 (gl_MATH_H): Require inline.
17937         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17938         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17939         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17940         implement warnings.
17941
17942         unistd: warn on use of environ without module
17943         * modules/unistd (Depends-on): Add warn-on-use.
17944         (Makefile.am): Provide new substitutions.
17945         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17946         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17947
17948         stdio: warn on suspicious uses
17949         * modules/stdio (Depends-on): Add warn-on-use.
17950         (Makefile.am): Provide new substitutions.
17951         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17952         fseeko.
17953         * lib/stdio.in.h (gets): Always warn on use.
17954         (fseek, ftell): Adjust when warnings are issued, and honor
17955         _GL_NO_LARGE_FILES as a way to silence the warning.
17956         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
17957         any warning about large file offsets.
17958         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
17959         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
17960         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
17961         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
17962         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
17963         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
17964         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
17965         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
17966
17967         warn-on-use: new module
17968         * modules/warn-on-use: New file.
17969         * build-aux/warn-on-use.h: Likewise.
17970         * m4/warn-on-use.m4: Likewise.
17971         * MODULES.html.sh (Support for building): Mention it.
17972
17973 2010-01-10  Bruno Haible  <bruno@clisp.org>
17974
17975         Tests for module 'unistr/u32-strdup'.
17976         * modules/unistr/u32-strdup-tests: New file.
17977         * tests/unistr/test-u32-strdup.c: New file.
17978
17979         Tests for module 'unistr/u16-strdup'.
17980         * modules/unistr/u16-strdup-tests: New file.
17981         * tests/unistr/test-u16-strdup.c: New file.
17982
17983         Tests for module 'unistr/u8-strdup'.
17984         * modules/unistr/u8-strdup-tests: New file.
17985         * tests/unistr/test-u8-strdup.c: New file.
17986         * tests/unistr/test-strdup.h: New file.
17987
17988         Tests for module 'unistr/u32-strncmp'.
17989         * modules/unistr/u32-strncmp-tests: New file.
17990         * tests/unistr/test-u32-strncmp.c: New file.
17991
17992         Tests for module 'unistr/u16-strncmp'.
17993         * modules/unistr/u16-strncmp-tests: New file.
17994         * tests/unistr/test-u16-strncmp.c: New file.
17995
17996         Tests for module 'unistr/u8-strncmp'.
17997         * modules/unistr/u8-strncmp-tests: New file.
17998         * tests/unistr/test-u8-strncmp.c: New file.
17999         * tests/unistr/test-strncmp.h: New file.
18000
18001         Tests for module 'unistr/u32-strcoll'.
18002         * modules/unistr/u32-strcoll-tests: New file.
18003         * tests/unistr/test-u32-strcoll.c: New file.
18004
18005         Tests for module 'unistr/u16-strcoll'.
18006         * modules/unistr/u16-strcoll-tests: New file.
18007         * tests/unistr/test-u16-strcoll.c: New file.
18008
18009         Tests for module 'unistr/u8-strcoll'.
18010         * modules/unistr/u8-strcoll-tests: New file.
18011         * tests/unistr/test-u8-strcoll.c: New file.
18012
18013         Tests for module 'unistr/u32-strcmp'.
18014         * modules/unistr/u32-strcmp-tests: New file.
18015         * tests/unistr/test-u32-strcmp.c: New file.
18016         * tests/unistr/test-u32-strcmp.h: New file.
18017
18018         Tests for module 'unistr/u16-strcmp'.
18019         * modules/unistr/u16-strcmp-tests: New file.
18020         * tests/unistr/test-u16-strcmp.c: New file.
18021         * tests/unistr/test-u16-strcmp.h: New file.
18022
18023         Tests for module 'unistr/u8-strcmp'.
18024         * modules/unistr/u8-strcmp-tests: New file.
18025         * tests/unistr/test-u8-strcmp.c: New file.
18026         * tests/unistr/test-u8-strcmp.h: New file.
18027         * tests/unistr/test-strcmp.h: New file.
18028
18029         Tests for module 'unistr/u32-strncat'.
18030         * modules/unistr/u32-strncat-tests: New file.
18031         * tests/unistr/test-u32-strncat.c: New file.
18032
18033         Tests for module 'unistr/u16-strncat'.
18034         * modules/unistr/u16-strncat-tests: New file.
18035         * tests/unistr/test-u16-strncat.c: New file.
18036
18037         Tests for module 'unistr/u8-strncat'.
18038         * modules/unistr/u8-strncat-tests: New file.
18039         * tests/unistr/test-u8-strncat.c: New file.
18040         * tests/unistr/test-strncat.h: New file.
18041
18042         Tests for module 'unistr/u32-strcat'.
18043         * modules/unistr/u32-strcat-tests: New file.
18044         * tests/unistr/test-u32-strcat.c: New file.
18045
18046         Tests for module 'unistr/u16-strcat'.
18047         * modules/unistr/u16-strcat-tests: New file.
18048         * tests/unistr/test-u16-strcat.c: New file.
18049
18050         Tests for module 'unistr/u8-strcat'.
18051         * modules/unistr/u8-strcat-tests: New file.
18052         * tests/unistr/test-u8-strcat.c: New file.
18053         * tests/unistr/test-strcat.h: New file.
18054
18055         Tests for module 'unistr/u32-stpncpy'.
18056         * modules/unistr/u32-stpncpy-tests: New file.
18057         * tests/unistr/test-u32-stpncpy.c: New file.
18058
18059         Tests for module 'unistr/u16-stpncpy'.
18060         * modules/unistr/u16-stpncpy-tests: New file.
18061         * tests/unistr/test-u16-stpncpy.c: New file.
18062
18063         Tests for module 'unistr/u8-stpncpy'.
18064         * modules/unistr/u8-stpncpy-tests: New file.
18065         * tests/unistr/test-u8-stpncpy.c: New file.
18066         * tests/unistr/test-stpncpy.h: New file.
18067
18068         Tests for module 'unistr/u32-strncpy'.
18069         * modules/unistr/u32-strncpy-tests: New file.
18070         * tests/unistr/test-u32-strncpy.c: New file.
18071
18072         Tests for module 'unistr/u16-strncpy'.
18073         * modules/unistr/u16-strncpy-tests: New file.
18074         * tests/unistr/test-u16-strncpy.c: New file.
18075
18076         Tests for module 'unistr/u8-strncpy'.
18077         * modules/unistr/u8-strncpy-tests: New file.
18078         * tests/unistr/test-u8-strncpy.c: New file.
18079         * tests/unistr/test-strncpy.h: New file.
18080
18081         Tests for module 'unistr/u32-stpcpy'.
18082         * modules/unistr/u32-stpcpy-tests: New file.
18083         * tests/unistr/test-u32-stpcpy.c: New file.
18084
18085         Tests for module 'unistr/u16-stpcpy'.
18086         * modules/unistr/u16-stpcpy-tests: New file.
18087         * tests/unistr/test-u16-stpcpy.c: New file.
18088
18089         Tests for module 'unistr/u8-stpcpy'.
18090         * modules/unistr/u8-stpcpy-tests: New file.
18091         * tests/unistr/test-u8-stpcpy.c: New file.
18092         * tests/unistr/test-stpcpy.h: New file.
18093
18094         Tests for module 'unistr/u32-strcpy'.
18095         * modules/unistr/u32-strcpy-tests: New file.
18096         * tests/unistr/test-u32-strcpy.c: New file.
18097
18098         Tests for module 'unistr/u16-strcpy'.
18099         * modules/unistr/u16-strcpy-tests: New file.
18100         * tests/unistr/test-u16-strcpy.c: New file.
18101
18102         Tests for module 'unistr/u8-strcpy'.
18103         * modules/unistr/u8-strcpy-tests: New file.
18104         * tests/unistr/test-u8-strcpy.c: New file.
18105         * tests/unistr/test-strcpy.h: New file.
18106
18107         Tests for module 'unistr/u32-strnlen'.
18108         * modules/unistr/u32-strnlen-tests: New file.
18109         * tests/unistr/test-u32-strnlen.c: New file.
18110
18111         Tests for module 'unistr/u16-strnlen'.
18112         * modules/unistr/u16-strnlen-tests: New file.
18113         * tests/unistr/test-u16-strnlen.c: New file.
18114
18115         Tests for module 'unistr/u8-strnlen'.
18116         * modules/unistr/u8-strnlen-tests: New file.
18117         * tests/unistr/test-u8-strnlen.c: New file.
18118         * tests/unistr/test-strnlen.h: New file.
18119
18120         Tests for module 'unistr/u32-strlen'.
18121         * modules/unistr/u32-strlen-tests: New file.
18122         * tests/unistr/test-u32-strlen.c: New file.
18123
18124         Tests for module 'unistr/u16-strlen'.
18125         * modules/unistr/u16-strlen-tests: New file.
18126         * tests/unistr/test-u16-strlen.c: New file.
18127
18128         Tests for module 'unistr/u8-strlen'.
18129         * modules/unistr/u8-strlen-tests: New file.
18130         * tests/unistr/test-u8-strlen.c: New file.
18131
18132         Tests for module 'unistr/u32-prev'.
18133         * modules/unistr/u32-prev-tests: New file.
18134         * tests/unistr/test-u32-prev.c: New file.
18135
18136         Tests for module 'unistr/u16-prev'.
18137         * modules/unistr/u16-prev-tests: New file.
18138         * tests/unistr/test-u16-prev.c: New file.
18139
18140         Tests for module 'unistr/u8-prev'.
18141         * modules/unistr/u8-prev-tests: New file.
18142         * tests/unistr/test-u8-prev.c: New file.
18143
18144         Tests for module 'unistr/u32-next'.
18145         * modules/unistr/u32-next-tests: New file.
18146         * tests/unistr/test-u32-next.c: New file.
18147
18148         Tests for module 'unistr/u16-next'.
18149         * modules/unistr/u16-next-tests: New file.
18150         * tests/unistr/test-u16-next.c: New file.
18151
18152         Tests for module 'unistr/u8-next'.
18153         * modules/unistr/u8-next-tests: New file.
18154         * tests/unistr/test-u8-next.c: New file.
18155
18156         Tests for module 'unistr/u32-strmbtouc'.
18157         * modules/unistr/u32-strmbtouc-tests: New file.
18158         * tests/unistr/test-u32-strmbtouc.c: New file.
18159
18160         Tests for module 'unistr/u16-strmbtouc'.
18161         * modules/unistr/u16-strmbtouc-tests: New file.
18162         * tests/unistr/test-u16-strmbtouc.c: New file.
18163
18164         Tests for module 'unistr/u8-strmbtouc'.
18165         * modules/unistr/u8-strmbtouc-tests: New file.
18166         * tests/unistr/test-u8-strmbtouc.c: New file.
18167
18168         Tests for module 'unistr/u32-strmblen'.
18169         * modules/unistr/u32-strmblen-tests: New file.
18170         * tests/unistr/test-u32-strmblen.c: New file.
18171
18172         Tests for module 'unistr/u16-strmblen'.
18173         * modules/unistr/u16-strmblen-tests: New file.
18174         * tests/unistr/test-u16-strmblen.c: New file.
18175
18176         Tests for module 'unistr/u8-strmblen'.
18177         * modules/unistr/u8-strmblen-tests: New file.
18178         * tests/unistr/test-u8-strmblen.c: New file.
18179
18180         Tests for module 'unistr/u32-cpy-alloc'.
18181         * modules/unistr/u32-cpy-alloc-tests: New file.
18182         * tests/unistr/test-u32-cpy-alloc.c: New file.
18183
18184         Tests for module 'unistr/u16-cpy-alloc'.
18185         * modules/unistr/u16-cpy-alloc-tests: New file.
18186         * tests/unistr/test-u16-cpy-alloc.c: New file.
18187
18188         Tests for module 'unistr/u8-cpy-alloc'.
18189         * modules/unistr/u8-cpy-alloc-tests: New file.
18190         * tests/unistr/test-u8-cpy-alloc.c: New file.
18191         * tests/unistr/test-cpy-alloc.h: New file.
18192
18193         Tests for module 'unistr/u32-mbsnlen'.
18194         * modules/unistr/u32-mbsnlen-tests: New file.
18195         * tests/unistr/test-u32-mbsnlen.c: New file.
18196
18197         Tests for module 'unistr/u16-mbsnlen'.
18198         * modules/unistr/u16-mbsnlen-tests: New file.
18199         * tests/unistr/test-u16-mbsnlen.c: New file.
18200
18201         Tests for module 'unistr/u8-mbsnlen'.
18202         * modules/unistr/u8-mbsnlen-tests: New file.
18203         * tests/unistr/test-u8-mbsnlen.c: New file.
18204
18205         Tests for module 'unistr/u32-chr'.
18206         * modules/unistr/u32-chr-tests: New file.
18207         * tests/unistr/test-u32-chr.c: New file.
18208
18209         Tests for module 'unistr/u16-chr'.
18210         * modules/unistr/u16-chr-tests: New file.
18211         * tests/unistr/test-u16-chr.c: New file.
18212
18213         Tests for module 'unistr/u8-chr'.
18214         * modules/unistr/u8-chr-tests: New file.
18215         * tests/unistr/test-u8-chr.c: New file.
18216         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18217
18218         Tests for module 'unistr/u32-cmp2'.
18219         * modules/unistr/u32-cmp2-tests: New file.
18220         * tests/unistr/test-u32-cmp2.c: New file.
18221
18222         Tests for module 'unistr/u16-cmp2'.
18223         * modules/unistr/u16-cmp2-tests: New file.
18224         * tests/unistr/test-u16-cmp2.c: New file.
18225
18226         Tests for module 'unistr/u8-cmp2'.
18227         * modules/unistr/u8-cmp2-tests: New file.
18228         * tests/unistr/test-u8-cmp2.c: New file.
18229         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18230
18231         Tests for module 'unistr/u32-cmp'.
18232         * modules/unistr/u32-cmp-tests: New file.
18233         * tests/unistr/test-u32-cmp.c: New file.
18234
18235         Tests for module 'unistr/u16-cmp'.
18236         * modules/unistr/u16-cmp-tests: New file.
18237         * tests/unistr/test-u16-cmp.c: New file.
18238
18239         Tests for module 'unistr/u8-cmp'.
18240         * modules/unistr/u8-cmp-tests: New file.
18241         * tests/unistr/test-u8-cmp.c: New file.
18242         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18243
18244         Tests for module 'unistr/u32-set'.
18245         * modules/unistr/u32-set-tests: New file.
18246         * tests/unistr/test-u32-set.c: New file.
18247
18248         Tests for module 'unistr/u16-set'.
18249         * modules/unistr/u16-set-tests: New file.
18250         * tests/unistr/test-u16-set.c: New file.
18251
18252         Tests for module 'unistr/u8-set'.
18253         * modules/unistr/u8-set-tests: New file.
18254         * tests/unistr/test-u8-set.c: New file.
18255         * tests/unistr/test-set.h: New file.
18256
18257         Tests for module 'unistr/u32-move'.
18258         * modules/unistr/u32-move-tests: New file.
18259         * tests/unistr/test-u32-move.c: New file.
18260
18261         Tests for module 'unistr/u16-move'.
18262         * modules/unistr/u16-move-tests: New file.
18263         * tests/unistr/test-u16-move.c: New file.
18264
18265         Tests for module 'unistr/u8-move'.
18266         * modules/unistr/u8-move-tests: New file.
18267         * tests/unistr/test-u8-move.c: New file.
18268         * tests/unistr/test-move.h: New file.
18269
18270         Tests for module 'unistr/u32-cpy'.
18271         * modules/unistr/u32-cpy-tests: New file.
18272         * tests/unistr/test-u32-cpy.c: New file.
18273
18274         Tests for module 'unistr/u16-cpy'.
18275         * modules/unistr/u16-cpy-tests: New file.
18276         * tests/unistr/test-u16-cpy.c: New file.
18277
18278         Tests for module 'unistr/u8-cpy'.
18279         * modules/unistr/u8-cpy-tests: New file.
18280         * tests/unistr/test-u8-cpy.c: New file.
18281         * tests/unistr/test-cpy.h: New file.
18282
18283 2010-01-09  Bruno Haible  <bruno@clisp.org>
18284
18285         Tests for module 'unistr/u32-uctomb'.
18286         * modules/unistr/u32-uctomb-tests: New file.
18287         * tests/unistr/test-u32-uctomb.c: New file.
18288
18289         Tests for module 'unistr/u16-uctomb'.
18290         * modules/unistr/u16-uctomb-tests: New file.
18291         * tests/unistr/test-u16-uctomb.c: New file.
18292
18293         Tests for module 'unistr/u8-uctomb'.
18294         * modules/unistr/u8-uctomb-tests: New file.
18295         * tests/unistr/test-u8-uctomb.c: New file.
18296
18297         Tests for module 'unistr/u32-mbtoucr'.
18298         * modules/unistr/u32-mbtoucr-tests: New file.
18299         * tests/unistr/test-u32-mbtoucr.c: New file.
18300
18301         Tests for module 'unistr/u16-mbtoucr'.
18302         * modules/unistr/u16-mbtoucr-tests: New file.
18303         * tests/unistr/test-u16-mbtoucr.c: New file.
18304
18305         Tests for module 'unistr/u8-mbtoucr'.
18306         * modules/unistr/u8-mbtoucr-tests: New file.
18307         * tests/unistr/test-u8-mbtoucr.c: New file.
18308
18309         Tests for module 'unistr/u32-mbtouc'.
18310         * modules/unistr/u32-mbtouc-tests: New file.
18311         * tests/unistr/test-u32-mbtouc.c: New file.
18312
18313         Tests for module 'unistr/u16-mbtouc'.
18314         * modules/unistr/u16-mbtouc-tests: New file.
18315         * tests/unistr/test-u16-mbtouc.c: New file.
18316
18317         Tests for module 'unistr/u8-mbtouc'.
18318         * modules/unistr/u8-mbtouc-tests: New file.
18319         * tests/unistr/test-u8-mbtouc.c: New file.
18320
18321         Tests for module 'unistr/u32-mbtouc-unsafe'.
18322         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18323         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18324         * tests/unistr/test-u32-mbtouc.h: New file.
18325
18326         Tests for module 'unistr/u16-mbtouc-unsafe'.
18327         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18328         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18329         * tests/unistr/test-u16-mbtouc.h: New file.
18330
18331         Tests for module 'unistr/u8-mbtouc-unsafe'.
18332         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18333         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18334         * tests/unistr/test-u8-mbtouc.h: New file.
18335
18336         Tests for module 'unistr/u32-mblen'.
18337         * modules/unistr/u32-mblen-tests: New file.
18338         * tests/unistr/test-u32-mblen.c: New file.
18339
18340         Tests for module 'unistr/u16-mblen'.
18341         * modules/unistr/u16-mblen-tests: New file.
18342         * tests/unistr/test-u16-mblen.c: New file.
18343
18344         Tests for module 'unistr/u8-mblen'.
18345         * modules/unistr/u8-mblen-tests: New file.
18346         * tests/unistr/test-u8-mblen.c: New file.
18347
18348         Tests for module 'unistr/u32-to-u16'.
18349         * modules/unistr/u32-to-u16-tests: New file.
18350         * tests/unistr/test-u32-to-u16.c: New file.
18351
18352         Tests for module 'unistr/u32-to-u8'.
18353         * modules/unistr/u32-to-u8-tests: New file.
18354         * tests/unistr/test-u32-to-u8.c: New file.
18355
18356         Tests for module 'unistr/u16-to-u32'.
18357         * modules/unistr/u16-to-u32-tests: New file.
18358         * tests/unistr/test-u16-to-u32.c: New file.
18359
18360         Tests for module 'unistr/u16-to-u8'.
18361         * modules/unistr/u16-to-u8-tests: New file.
18362         * tests/unistr/test-u16-to-u8.c: New file.
18363
18364         Tests for module 'unistr/u8-to-u32'.
18365         * modules/unistr/u8-to-u32-tests: New file.
18366         * tests/unistr/test-u8-to-u32.c: New file.
18367
18368         Tests for module 'unistr/u8-to-u16'.
18369         * modules/unistr/u8-to-u16-tests: New file.
18370         * tests/unistr/test-u8-to-u16.c: New file.
18371
18372         Tests for module 'unistr/u32-check'.
18373         * modules/unistr/u32-check-tests: New file.
18374         * tests/unistr/test-u32-check.c: New file.
18375
18376         Tests for module 'unistr/u16-check'.
18377         * modules/unistr/u16-check-tests: New file.
18378         * tests/unistr/test-u16-check.c: New file.
18379
18380         Tests for module 'unistr/u8-check'.
18381         * modules/unistr/u8-check-tests: New file.
18382         * tests/unistr/test-u8-check.c: New file.
18383
18384         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18385         (category_equals): New function.
18386         (main): Add more tests.
18387         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18388
18389         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18390
18391 2010-01-10  Bruno Haible  <bruno@clisp.org>
18392
18393         unistr/u*-strcoll: Try harder to distinguish different strings.
18394         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18395         compare s1 and s2 to see if they are different.
18396
18397 2010-01-10  Bruno Haible  <bruno@clisp.org>
18398
18399         unistr/u*-stpncpy: Fix the return value.
18400         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18401         description of the return value consistent with stpncpy in glibc.
18402         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18403         written non-NUL unit.
18404
18405 2010-01-10  Bruno Haible  <bruno@clisp.org>
18406
18407         unistr/u*-next: Add missing dependencies.
18408         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18409         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18410         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18411
18412 2010-01-10  Bruno Haible  <bruno@clisp.org>
18413
18414         unistr/u8-mbsnlen: Fix return value for incomplete character.
18415         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18416         u8_mblen.
18417         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18418         Remove unistr/u8-mblen.
18419         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18420         u16_mblen.
18421         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18422         Remove unistr/u16-mblen.
18423
18424 2010-01-10  Bruno Haible  <bruno@clisp.org>
18425
18426         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18427         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18428         Reported by Brian Gough <bjg@gnu.org> and
18429         Chris Clayton <chris2553@googlemail.com> via
18430         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18431
18432 2010-01-09  Bruno Haible  <bruno@clisp.org>
18433
18434         unistr/u16-to-u32: Reject invalid input.
18435         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18436         u16_mbtouc.
18437         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18438         Remove unistr/u16-mbtouc.
18439
18440         unistr/u16-to-u8: Reject invalid input.
18441         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18442         u16_mbtouc.
18443         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18444         Remove unistr/u16-mbtouc.
18445
18446         unistr/u8-to-u32: Reject invalid input.
18447         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18448         u8_mbtouc.
18449         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18450         Remove unistr/u8-mbtouc.
18451
18452         unistr/u8-to-u16: Reject invalid input.
18453         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18454         u8_mbtouc.
18455         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18456         Remove unistr/u8-mbtouc.
18457
18458 2010-01-09  Bruno Haible  <bruno@clisp.org>
18459
18460         Tests for module 'getlogin'.
18461         * modules/getlogin-tests: New file.
18462         * tests/test-getlogin.c: New file.
18463
18464         New module 'getlogin'.
18465         * lib/unistd.in.h (getlogin): New declaration.
18466         * lib/getlogin.c: New file.
18467         * m4/getlogin.m4: New file.
18468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18469         HAVE_GETLOGIN.
18470         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18471         HAVE_GETLOGIN.
18472         * modules/getlogin: New file.
18473         * doc/posix-functions/getlogin.texi: Mention the new module.
18474         Reported by John W. Eaton <jwe@gnu.org>.
18475
18476 2010-01-09  Bruno Haible  <bruno@clisp.org>
18477
18478         getlogin_r: Support for native Windows.
18479         * lib/getlogin_r.c: Include <windows.h>
18480         (getlogin_r): Implement for native Windows.
18481         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18482         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18483         via John W. Eaton <jwe@gnu.org>.
18484
18485 2010-01-09  Bruno Haible  <bruno@clisp.org>
18486
18487         getlogin_r: Small fixes.
18488         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18489         succeeds.
18490         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18491         before testing whether getlogin_r is declared. No need to set
18492         HAVE_DECL_GETLOGIN_R to 1.
18493         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18494
18495 2010-01-09  Bruno Haible  <bruno@clisp.org>
18496
18497         * lib/unistd.in.h (getlogin_r): Add comment.
18498
18499 2010-01-09  Bruno Haible  <bruno@clisp.org>
18500
18501         Tests for module 'getlogin_r'.
18502         * modules/getlogin_r-tests: New file.
18503         * tests/test-getlogin_r.c: New file.
18504
18505 2010-01-09  Jim Meyering  <meyering@redhat.com>
18506
18507         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18508         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18509         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18510
18511 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18512
18513         * lib/dup2.c (rpl_dup2): Improve comment.
18514
18515 2010-01-08  Eric Blake  <ebb9@byu.net>
18516
18517         maint.mk: allow packages to add makefile @@ exceptions
18518         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18519         (sc_makefile_check): Rename...
18520         (sc_makefile_at_at_check): ...to this, and use hook.
18521
18522         dup2: work around mingw bug
18523         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18524         Reported by Simon Josefsson.
18525
18526 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18527
18528         glob: Fix C++ compilation.
18529         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18530         C++.
18531
18532 2010-01-07  Bruno Haible  <bruno@clisp.org>
18533
18534         Fix indentation of wctype.in.h, broken since 2007-01-06.
18535         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18536
18537 2010-01-07  Bruno Haible  <bruno@clisp.org>
18538
18539         mbslen: Avoid collision with system function.
18540         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18541         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18542         * m4/mbslen.m4: New file.
18543         * modules/mbslen (Files): Add it.
18544         (configure.ac): Invoke gl_MBSLEN.
18545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18546         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18547         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18548         via Ian Beckwith <ianb@erislabs.net>.
18549
18550 2010-01-07  Bruno Haible  <bruno@clisp.org>
18551
18552         dirent: Document the last fix.
18553         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18554
18555 2010-01-07  Bruno Haible  <bruno@clisp.org>
18556
18557         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18558         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18559         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18560         va_list are defined.
18561         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18562         Reported by Eric Blake.
18563
18564 2010-01-07  Bruno Haible  <bruno@clisp.org>
18565
18566         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18567         * modules/xlist (Depends-on): Add 'list',
18568         * modules/xoset (Depends-on): Add 'oset'.
18569         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18570
18571 2010-01-07  Bruno Haible  <bruno@clisp.org>
18572
18573         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18574         * doc/posix-functions/strncasecmp.texi: Likewise.
18575
18576 2010-01-07  Bruno Haible  <bruno@clisp.org>
18577
18578         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18579
18580 2010-01-07  John W. Eaton  <jwe@octave.org>
18581
18582         wctype: allow C++ use
18583         * lib/wctype.in.h: Add extern "C" block for C++.
18584
18585 2010-01-06  Eric Blake  <ebb9@byu.net>
18586
18587         maint.mk: detect incorrect GFDL usage
18588         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18589
18590 2010-01-06  Jim Meyering  <meyering@redhat.com>
18591         and Eric Blake  <ebb9@byu.net>
18592
18593         maint.mk: ignore multi-line copyright in NEWS
18594         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18595
18596 2010-01-06  Eric Blake  <ebb9@byu.net>
18597
18598         select: add missing dependency
18599         * modules/select-tests (Depends-on): Move sockets dependency...
18600         * modules/select (Depends-on): ...here.
18601         Reported by Ian Beckwith.
18602
18603         doc: regenerate INSTALL
18604         * doc/INSTALL: Reflect recent autoconf update.
18605         * doc/INSTALL.ISO: Likewise.
18606         * doc/INSTALL.UTF-8: Likewise.
18607
18608         pread: fix compilation on glibc
18609         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18610         Reported by Ralf Wildenhues.
18611
18612         dirent: fix test failure
18613         * lib/dirent.in.h (includes): Guarantee ino_t.
18614         Reported by Ralf Wildenhues.
18615
18616 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18617
18618         linkat, renameat: avoid bad free
18619         * lib/at-func2.c (at_func2): Fix typo.
18620         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18621
18622 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18623
18624         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18625         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18626         to avoid failure of symlink test later.
18627
18628 2010-01-06  Eric Blake  <ebb9@byu.net>
18629
18630         stdio, unistd: guarantee ssize_t
18631         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18632         2008 are exposed when needed.
18633         * lib/stdio.in.h (includes): Likewise.
18634         Reported by Ralf Wildenhues.
18635
18636 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18637
18638         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18639         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18640         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18641
18642 2010-01-06  Jim Meyering  <meyering@redhat.com>
18643
18644         readtokens: this module *does* require xalloc.h
18645         It uses only functions that were omitted by the old syntax-check rule.
18646         * lib/readtokens.c: Include "xalloc.h" once again.
18647         * modules/readtokens (Depends-on): Add xalloc.
18648         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18649
18650 2010-01-05  Eric Blake  <ebb9@byu.net>
18651
18652         maint: support 'make announcement' from a VPATH build
18653         * top/maint.mk (announcement): Look for correct NEWS file.
18654
18655 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18656
18657         utimens (fdutimens): ignore a negative FD, per contract
18658         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18659         when we have a valid file descriptor.  Otherwise, using a brand
18660         new glibc (with just-patched futimens that now fails with EBADF)
18661         would cause this function to fail with ENOSYS.
18662         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18663         See also http://bugzilla.redhat.com/552320.
18664
18665 2010-01-05  Eric Blake  <ebb9@byu.net>
18666
18667         strcase: document what it provides
18668         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18669         gnulib module.
18670         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18671         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18672
18673 2010-01-05  Jim Meyering  <meyering@redhat.com>
18674
18675         maint: remove useless inclusions of "xalloc.h"
18676         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18677         * lib/readtokens.c: Likewise.
18678         * lib/same.c: Likewise.
18679         * modules/getloadavg (Depends-on): Remove xalloc.
18680         * modules/readtokens: Likewise.
18681         * modules/same: Likewise.
18682
18683         maint.mk: include 4 more function names in alloca.h-checking regexp
18684         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18685         regexp.  Before, we would give a false-positive (saying alloca.h
18686         is included unnecessarily) when the only uses involved omitted symbols.
18687
18688         xalloc.h: use consistent formatting
18689         * lib/xalloc.h: Move declarations to start in the first column.
18690
18691 2010-01-05  Eric Blake  <ebb9@byu.net>
18692
18693         mkdir: avoid xalloc
18694         * lib/mkdir.c (includes): Drop unused header.
18695         Reported by John W. Eaton.
18696
18697 2010-01-04  Jim Meyering  <meyering@redhat.com>
18698
18699         nl_langinfo: avoid configure-time syntax error
18700         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18701         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18702         the empty string.  Don't let that provoke a shell syntax error.
18703
18704         regcomp, regexec, fnmatch: avoid array bounds read error
18705         * lib/regcomp.c (build_equiv_class): From glibc:
18706         Use only the low 24 bits of a findidx return value as an index
18707         into the weights array.  Patch by Ulrich Drepper:
18708         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18709         * lib/regexec.c (check_node_accept_bytes): Likewise.
18710         * lib/fnmatch_loop.c (FCT): Likewise.
18711
18712         regcomp: skip collseq lookup when there are no rules
18713         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18714         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18715
18716         regcomp: recognize ill-formed { } expressions
18717         * lib/regcomp.c (parse_dup_op): From glibc:
18718         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18719
18720         regcomp: fix typo in comment
18721         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18722         s/satisfy/satisfies/.
18723
18724         regcomp: sync from glibc: remove dead store
18725         * lib/regcomp.c (duplicate_node_closure): Remove useless
18726         search_duplicated_node call and dead store.
18727
18728         regcomp: sync from glibc; always use nl_langinfo
18729         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18730         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18731         * modules/regex (Depends-on): Add nl_langinfo.
18732
18733 2010-01-04  Eric Blake  <ebb9@byu.net>
18734
18735         fdopendir: fix configure test
18736         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18737
18738 2010-01-01  Bruno Haible  <bruno@clisp.org>
18739
18740         wchar: Remove unused configure check.
18741         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18742
18743 2010-01-01  Eric Blake  <ebb9@byu.net>
18744
18745         headers: make check of system header explicit
18746         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18747         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18748         ourselves.
18749         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18751         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18752         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18753         internals.
18754         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18755         missing.
18756         Suggested by Bruno Haible.
18757
18758 2010-01-01  Jim Meyering  <meyering@redhat.com>
18759
18760         ChangeLog: tweak to eliminate unnecessary copyright line
18761         * ChangeLog: Remove a copyright line that was mistakenly updated
18762         by today's update-copyright run.  Reported by Eric Blake.
18763
18764         test-update-copyright: don't let envvar setting cause test failure
18765         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18766
18767 2010-01-01  Bruno Haible  <bruno@clisp.org>
18768
18769         localename: Avoid gcc warning.
18770         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18771         function if it is not used.
18772
18773 2010-01-01  Jim Meyering  <meyering@redhat.com>
18774
18775         update nearly all FSF copyright year lists to include 2010
18776         Use the same procedure as for 2009, outlined in
18777         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18778
18779         version-etc: set COPYRIGHT_YEAR to 2010
18780         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18781
18782 2009-12-31  Eric Blake  <ebb9@byu.net>
18783
18784         doc: correct availability of cygwin 1.5.x getopt
18785         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18786         variables.
18787         * doc/posix-functions/opterr.texi (opterr): Likewise.
18788         * doc/posix-functions/optind.texi (optind): Likewise.
18789         * doc/posix-functions/optopt.texi (optopt): Likewise.
18790         * doc/posix-functions/tzname.texi (tzname): Likewise.
18791
18792         openat: update maintainer
18793         * modules/openat (Maintainer): Add myself.
18794
18795         utimens: avoid shadowing warning
18796         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18797         buffers into one, to avoid shadowing, as well as avoiding a
18798         redundant stat.
18799         Reported by Jim Meyering.
18800
18801         test-dup2: avoid compiler warning
18802         * tests/test-dup2.c (is_inheritable): Only define if used.
18803
18804 2010-01-01  Bruno Haible  <bruno@clisp.org>
18805
18806         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18807         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18808         defined, use wctomb instead of wcrtomb.
18809
18810 2010-01-01  Bruno Haible  <bruno@clisp.org>
18811
18812         iconv: Reject native Solaris iconv.
18813         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18814         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18815
18816 2009-12-31  Bruno Haible  <bruno@clisp.org>
18817
18818         * tests/test-signal.c (main): Remove test of 'SIG'.
18819
18820 2009-12-31  Bruno Haible  <bruno@clisp.org>
18821
18822         spawn: Fix incomplete fix.
18823         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18824         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18825         warnings for GNULIB_POSIXCHECK again.
18826         Reported by Eric Blake.
18827
18828 2009-12-31  Bruno Haible  <bruno@clisp.org>
18829
18830         Avoid namespace pollution on glibc systems.
18831         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18832         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18833         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18834         glibc systems.
18835
18836 2009-12-31  Bruno Haible  <bruno@clisp.org>
18837
18838         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18839         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18840         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18841         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18842         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18843         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18844         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18845
18846 2009-12-31  Bruno Haible  <bruno@clisp.org>
18847
18848         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18849         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18850         afterwards.
18851
18852 2009-12-31  Bruno Haible  <bruno@clisp.org>
18853
18854         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18855         SYS_UTSNAME_H.
18856
18857 2009-12-31  Bruno Haible  <bruno@clisp.org>
18858
18859         spawn: Fix misapplied patch.
18860         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18861         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18862         warnings for GNULIB_POSIXCHECK.
18863
18864 2009-12-31  Bruno Haible  <bruno@clisp.org>
18865
18866         times: Update after sys_times changed.
18867         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18868         * modules/times (Files): Add it.
18869         (configure.ac): Invoke gl_FUNC_TIMES.
18870
18871 2009-12-31  Bruno Haible  <bruno@clisp.org>
18872
18873         Use AC_C_INLINE where necessary.
18874         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18875         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18876         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18877         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18878         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18879         * m4/mbiter.m4 (gl_MBITER): Likewise.
18880         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18881         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18882         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18883         * modules/u64 (configure.ac): Likewise.
18884
18885 2009-12-31  Bruno Haible  <bruno@clisp.org>
18886
18887         Use AC_C_INLINE instead of module 'inline' where possible.
18888         * modules/inline (Description): Clarify purpose.
18889         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18890         * modules/count-one-bits (Depends-on): Remove inline.
18891         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18892         * modules/openat (Depends-on): Remove inline.
18893         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18894         instead of depending on module 'inline'.
18895         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18896         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18897         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18898         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18899         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18900         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18901         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18902         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18903         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18904         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18905         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18906         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18907         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18908         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18909         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18910         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18911         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18912         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18913         Likewise.
18914         * modules/unictype/property-ascii-hex-digit (Depends-on,
18915         configure.ac): Likewise.
18916         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18917         configure.ac): Likewise.
18918         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18919         configure.ac): Likewise.
18920         * modules/unictype/property-bidi-block-separator (Depends-on,
18921         configure.ac): Likewise.
18922         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18923         configure.ac): Likewise.
18924         * modules/unictype/property-bidi-common-separator (Depends-on,
18925         configure.ac): Likewise.
18926         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18927         Likewise.
18928         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18929         configure.ac): Likewise.
18930         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18931         configure.ac): Likewise.
18932         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18933         configure.ac): Likewise.
18934         * modules/unictype/property-bidi-european-digit (Depends-on,
18935         configure.ac): Likewise.
18936         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18937         configure.ac): Likewise.
18938         * modules/unictype/property-bidi-left-to-right (Depends-on,
18939         configure.ac): Likewise.
18940         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18941         configure.ac): Likewise.
18942         * modules/unictype/property-bidi-other-neutral (Depends-on,
18943         configure.ac): Likewise.
18944         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18945         Likewise.
18946         * modules/unictype/property-bidi-segment-separator (Depends-on,
18947         configure.ac): Likewise.
18948         * modules/unictype/property-bidi-whitespace (Depends-on,
18949         configure.ac): Likewise.
18950         * modules/unictype/property-combining (Depends-on, configure.ac):
18951         Likewise.
18952         * modules/unictype/property-composite (Depends-on, configure.ac):
18953         Likewise.
18954         * modules/unictype/property-currency-symbol (Depends-on,
18955         configure.ac): Likewise.
18956         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
18957         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
18958         Likewise.
18959         * modules/unictype/property-default-ignorable-code-point (Depends-on,
18960         configure.ac): Likewise.
18961         * modules/unictype/property-deprecated (Depends-on, configure.ac):
18962         Likewise.
18963         * modules/unictype/property-diacritic (Depends-on, configure.ac):
18964         Likewise.
18965         * modules/unictype/property-extender (Depends-on, configure.ac):
18966         Likewise.
18967         * modules/unictype/property-format-control (Depends-on, configure.ac):
18968         Likewise.
18969         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
18970         Likewise.
18971         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
18972         Likewise.
18973         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
18974         Likewise.
18975         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
18976         Likewise.
18977         * modules/unictype/property-hyphen (Depends-on, configure.ac):
18978         Likewise.
18979         * modules/unictype/property-id-continue (Depends-on, configure.ac):
18980         Likewise.
18981         * modules/unictype/property-id-start (Depends-on, configure.ac):
18982         Likewise.
18983         * modules/unictype/property-ideographic (Depends-on, configure.ac):
18984         Likewise.
18985         * modules/unictype/property-ids-binary-operator (Depends-on,
18986         configure.ac): Likewise.
18987         * modules/unictype/property-ids-trinary-operator (Depends-on,
18988         configure.ac): Likewise.
18989         * modules/unictype/property-ignorable-control (Depends-on,
18990         configure.ac): Likewise.
18991         * modules/unictype/property-iso-control (Depends-on, configure.ac):
18992         Likewise.
18993         * modules/unictype/property-join-control (Depends-on, configure.ac):
18994         Likewise.
18995         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
18996         Likewise.
18997         * modules/unictype/property-line-separator (Depends-on, configure.ac):
18998         Likewise.
18999         * modules/unictype/property-logical-order-exception (Depends-on,
19000         configure.ac): Likewise.
19001         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19002         Likewise.
19003         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19004         * modules/unictype/property-non-break (Depends-on, configure.ac):
19005         Likewise.
19006         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19007         Likewise.
19008         * modules/unictype/property-numeric (Depends-on, configure.ac):
19009         Likewise.
19010         * modules/unictype/property-other-alphabetic (Depends-on,
19011         configure.ac): Likewise.
19012         * modules/unictype/property-other-default-ignorable-code-point
19013         (Depends-on, configure.ac): Likewise.
19014         * modules/unictype/property-other-grapheme-extend (Depends-on,
19015         configure.ac): Likewise.
19016         * modules/unictype/property-other-id-continue (Depends-on,
19017         configure.ac): Likewise.
19018         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19019         Likewise.
19020         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19021         Likewise.
19022         * modules/unictype/property-other-math (Depends-on, configure.ac):
19023         Likewise.
19024         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19025         Likewise.
19026         * modules/unictype/property-paired-punctuation (Depends-on,
19027         configure.ac): Likewise.
19028         * modules/unictype/property-paragraph-separator (Depends-on,
19029         configure.ac): Likewise.
19030         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19031         Likewise.
19032         * modules/unictype/property-pattern-white-space (Depends-on,
19033         configure.ac): Likewise.
19034         * modules/unictype/property-private-use (Depends-on, configure.ac):
19035         Likewise.
19036         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19037         Likewise.
19038         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19039         Likewise.
19040         * modules/unictype/property-radical (Depends-on, configure.ac):
19041         Likewise.
19042         * modules/unictype/property-sentence-terminal (Depends-on,
19043         configure.ac): Likewise.
19044         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19045         Likewise.
19046         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19047         * modules/unictype/property-terminal-punctuation (Depends-on,
19048         configure.ac): Likewise.
19049         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19050         Likewise.
19051         * modules/unictype/property-unassigned-code-value (Depends-on,
19052         configure.ac): Likewise.
19053         * modules/unictype/property-unified-ideograph (Depends-on,
19054         configure.ac): Likewise.
19055         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19056         Likewise.
19057         * modules/unictype/property-variation-selector (Depends-on,
19058         configure.ac): Likewise.
19059         * modules/unictype/property-white-space (Depends-on, configure.ac):
19060         Likewise.
19061         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19062         Likewise.
19063         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19064         Likewise.
19065         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19066         Likewise.
19067         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19068         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19069         Likewise.
19070
19071 2009-12-31  Bruno Haible  <bruno@clisp.org>
19072
19073         Remove unnecessary AC_C_INLINE invocation.
19074         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19075         since 2009-08-21.
19076
19077 2009-12-31  Jim Meyering  <meyering@redhat.com>
19078
19079         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19080         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19081         With this change, we can all remove the gpg_key_ID = ... definition
19082         from our respective cfg.mk files.
19083
19084         maint.mk: create announcement template in ~/, not in /tmp
19085         * top/maint.mk (emit_upload_commands): Adjust.
19086         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19087         Remove temporary file, .ci-msg.
19088
19089 2009-12-31  Eric Blake  <ebb9@byu.net>
19090
19091         link-warning: always build headers with link warnings
19092         * modules/arpa_inet (Makefile.am): Always build replacement
19093         header.
19094         * modules/ctype (Makefile.am): Likewise.
19095         * modules/dirent (Makefile.am): Likewise.
19096         * modules/inttypes (Makefile.am): Likewise.
19097         * modules/langinfo (Makefile.am): Likewise.
19098         * modules/locale (Makefile.am): Likewise.
19099         * modules/spawn (Makefile.am): Likewise.
19100         * modules/sys_file (Makefile.am): Likewise.
19101         * modules/sys_ioctl (Makefile.am): Likewise.
19102         * modules/sys_select (Makefile.am): Likewise.
19103         * modules/sys_socket (Makefile.am): Likewise.
19104         * modules/sys_times (Makefile.am): Likewise.
19105         * modules/sys_utsname (Makefile.am): Likewise.
19106         * modules/sys_wait (Makefile.am): Likewise.
19107         * modules/wchar (Makefile.am): Likewise.
19108         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19109         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19110         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19111         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19112         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19113         Likewise.
19114         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19115         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19116         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19117         Likewise.
19118         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19119         Likewise.
19120         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19121         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19122         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19123         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19124         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19125         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19126         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19127         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19128         (gl_WCHAR_H_DEFAULTS): Likewise.
19129
19130 2009-12-31  Eric Blake  <ebb9@byu.net>
19131
19132         signal, spawn: use link warnings
19133         * lib/signal.in.h (sigset_t): Make unconditional.
19134         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19135         (sigpending, sigprocmask, sigaction): Add link warnings.
19136         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19137         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19138         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19139         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19140         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19141         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19142         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19143         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19144         (posix_spawn_file_actions_destroy)
19145         (posix_spawn_file_actions_addopen)
19146         (posix_spawn_file_actions_addclose)
19147         (posix_spawn_file_actions_adddup2): Likewise.
19148         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19149         * tests/test-signal.c (main): Enhance test.
19150
19151         spawn: improve wrapper support
19152         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19153         (gl_SPAWN_H_DEFAULTS): New defaults.
19154         * modules/spawn (Makefile.am): Substitute them.
19155         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19156         Only declare if missing or broken.
19157
19158         sys_times, sys_utsname: use include_next
19159         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19160         header.
19161         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19162         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19163         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19164         * modules/sys_times (Depends-on): Add include_next.
19165         (Makefile.am): Substitute additional values.
19166         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19167         * lib/sys_times.in.h (includes): Include native header, if
19168         available.
19169         * lib/sys_utsname.in.h (includes): Likewise.
19170         * tests/test-sys_times.c (main): Enhance test.
19171
19172         fdutimensat: revert prior patch
19173         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19174         utimens.h.
19175         Reported by Bruno Haible.
19176
19177 2009-12-30  Eric Blake  <ebb9@byu.net>
19178
19179         sys_wait: drop link-warning dependency
19180         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19181         link-warning efforts.
19182         * lib/sys_wait.in.h: Likewise.
19183
19184         fdutimensat: remove bogus dependency
19185         * modules/fdutimensat (Depends-on): Drop inline.
19186
19187         unistd: fix typo
19188         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19189
19190 2009-12-30  Bruno Haible  <bruno@clisp.org>
19191
19192         Fix compilation error with Solaris cc.
19193         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19194         * lib/unicase/u16-is-invariant.c: Likewise.
19195         * lib/unicase/u32-is-invariant.c: Likewise.
19196         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19197
19198 2009-12-30  Bruno Haible  <bruno@clisp.org>
19199
19200         Fix test crash.
19201         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19202         locales.
19203         Reported by Simon Josefsson <simon@josefsson.org>.
19204
19205 2009-12-30  Bruno Haible  <bruno@clisp.org>
19206
19207         Fix compilation error on most platforms.
19208         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19209         Reported by Simon Josefsson <simon@josefsson.org>
19210         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19211
19212 2009-12-30  Eric Blake  <ebb9@byu.net>
19213
19214         futimens, utimensat: work around ntfs-3g bug
19215         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19216         a ctime bug is present, and expand workaround to cover ntfs-3g.
19217         * lib/utimens.c (fdutimens, lutimens): Likewise.
19218         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19219         (validate_timespec): Adjust return value.
19220         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19221         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19222         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19223
19224 2009-12-29  Eric Blake  <ebb9@byu.net>
19225
19226         link-warning: make usage consistent
19227         * modules/ctype (Depends-on): Add link-warning.
19228         (Makefile.am): Update rules accordingly.
19229         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19230         * modules/locale (Depends-on, Makefile.am): Likewise.
19231         * modules/sys_file (Makefile.am): Likewise.
19232         * modules/getopt-posix (Makefile.am): Delete unused link warning
19233         efforts.
19234         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19235         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19236         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19237         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19238
19239         stdio: remove unused variables
19240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19241         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19242         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19243
19244         tests: test more substitute headers
19245         * modules/ctype-tests: New file.
19246         * modules/dirent-tests: Likewise.
19247         * modules/spawn-tests: Likewise.
19248         * modules/sys_file-tests: Likewise.
19249         * modules/sys_ioctl-tests: Likewise.
19250         * modules/sys_wait-tests: Likewise.
19251         * tests/test-ctype.c: Likewise.
19252         * tests/test-dirent.c: Likewise.
19253         * tests/test-spawn.c: Likewise.
19254         * tests/test-sys_file.c: Likewise.
19255         * tests/test-sys_ioctl.c: Likewise.
19256         * tests/test-sys_wait.c: Likewise.
19257         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19258         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19259         whether or not flock is in use.
19260
19261         tests: remove License section from module
19262         * modules/arpa_inet-tests: Remove unneeded section.
19263         * modules/byteswap-tests: Likewise.
19264         * modules/ceilf-tests: Likewise.
19265         * modules/ceill-tests: Likewise.
19266         * modules/crypto/des-tests: Likewise.
19267         * modules/crypto/gc-arcfour-tests: Likewise.
19268         * modules/crypto/gc-arctwo-tests: Likewise.
19269         * modules/crypto/gc-des-tests: Likewise.
19270         * modules/crypto/gc-hmac-md5-tests: Likewise.
19271         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19272         * modules/crypto/gc-md2-tests: Likewise.
19273         * modules/crypto/gc-md4-tests: Likewise.
19274         * modules/crypto/gc-md5-tests: Likewise.
19275         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19276         * modules/crypto/gc-rijndael-tests: Likewise.
19277         * modules/crypto/gc-sha1-tests: Likewise.
19278         * modules/crypto/gc-tests: Likewise.
19279         * modules/crypto/md2-tests: Likewise.
19280         * modules/crypto/md4-tests: Likewise.
19281         * modules/fcntl-h-tests: Likewise.
19282         * modules/floorf-tests: Likewise.
19283         * modules/floorl-tests: Likewise.
19284         * modules/frexp-nolibm-tests: Likewise.
19285         * modules/frexp-tests: Likewise.
19286         * modules/frexpl-nolibm-tests: Likewise.
19287         * modules/frexpl-tests: Likewise.
19288         * modules/getaddrinfo-tests: Likewise.
19289         * modules/inttypes-tests: Likewise.
19290         * modules/isfinite-tests: Likewise.
19291         * modules/isinf-tests: Likewise.
19292         * modules/ldexpl-tests: Likewise.
19293         * modules/locale-tests: Likewise.
19294         * modules/math-tests: Likewise.
19295         * modules/netdb-tests: Likewise.
19296         * modules/netinet_in-tests: Likewise.
19297         * modules/printf-frexp-tests: Likewise.
19298         * modules/printf-frexpl-tests: Likewise.
19299         * modules/priv-set-tests: Likewise.
19300         * modules/random_r-tests: Likewise.
19301         * modules/round-tests: Likewise.
19302         * modules/roundf-tests: Likewise.
19303         * modules/roundl-tests: Likewise.
19304         * modules/search-tests: Likewise.
19305         * modules/select-tests: Likewise.
19306         * modules/signal-tests: Likewise.
19307         * modules/stdbool-tests: Likewise.
19308         * modules/stddef-tests: Likewise.
19309         * modules/stdint-tests: Likewise.
19310         * modules/stdio-tests: Likewise.
19311         * modules/stdlib-tests: Likewise.
19312         * modules/string-tests: Likewise.
19313         * modules/strings-tests: Likewise.
19314         * modules/sys_select-tests: Likewise.
19315         * modules/sys_socket-tests: Likewise.
19316         * modules/sys_stat-tests: Likewise.
19317         * modules/sys_time-tests: Likewise.
19318         * modules/sys_utsname-tests: Likewise.
19319         * modules/sysexits-tests: Likewise.
19320         * modules/time-tests: Likewise.
19321         * modules/trunc-tests: Likewise.
19322         * modules/truncf-tests: Likewise.
19323         * modules/truncl-tests: Likewise.
19324         * modules/tsearch-tests: Likewise.
19325         * modules/unistd-tests: Likewise.
19326         * modules/wchar-tests: Likewise.
19327         * modules/wctype-tests: Likewise.
19328
19329         tests: fix license on several tests
19330         * tests/test-des.c: Update to GPLv3+.
19331         * tests/test-flock.c: Likewise.
19332         * tests/test-fsync.c: Likewise.
19333         * tests/test-futimens.h: Likewise.
19334         * tests/test-gc-arcfour.c: Likewise.
19335         * tests/test-gc-arctwo.c: Likewise.
19336         * tests/test-gc-des.c: Likewise.
19337         * tests/test-gc-hmac-md5.c: Likewise.
19338         * tests/test-gc-hmac-sha1.c: Likewise.
19339         * tests/test-gc-md2.c: Likewise.
19340         * tests/test-gc-md4.c: Likewise.
19341         * tests/test-gc-md5.c: Likewise.
19342         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19343         * tests/test-gc-rijndael.c: Likewise.
19344         * tests/test-gc-sha1.c: Likewise.
19345         * tests/test-gc.c: Likewise.
19346         * tests/test-getcwd.c: Likewise.
19347         * tests/test-link.c: Likewise.
19348         * tests/test-link.h: Likewise.
19349         * tests/test-lutimens.h: Likewise.
19350         * tests/test-md2.c: Likewise.
19351         * tests/test-md4.c: Likewise.
19352         * tests/test-mkdir.h: Likewise.
19353         * tests/test-rename.c: Likewise.
19354         * tests/test-rename.h: Likewise.
19355         * tests/test-safe-alloc.c: Likewise.
19356         * tests/test-utimens-common.h: Likewise.
19357         * tests/test-utimens.h: Likewise.
19358
19359         maint: sync license texts
19360         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19361         * doc/gpl-3.0.texi: Revert copyright year update.
19362         * doc/lgpl-3.0.texi: Likewise.
19363
19364 2009-12-29  Jim Meyering  <meyering@redhat.com>
19365
19366         update nearly all FSF copyright year lists to include 2009
19367         The files named by the following are exempted:
19368             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19369               test -f "$dst" && { echo "$dst"; continue; }
19370               test -d "$dst" || continue
19371               echo "$dst"/$(basename "$src")
19372             done > exempt
19373             git ls-files tests/unictype >> exempt
19374         In the remaining files, convert to all-interval notation if
19375         - there is already at least one year interval like 2000-2003
19376         - the file is maintained by me
19377         - the file is in lib/uni*/, where that style already prevails
19378         Otherwise, use update-copyright's default.
19379
19380 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19381         and Eric Blake  <ebb9@byu.net>
19382
19383         tests: don't require debug system() to pass
19384         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19385         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19386         * tests/test-unlink.h (test_unlink_func): Likewise.
19387         * tests/test-fstatat.c (main): ...into callers.
19388         * tests/test-lstat.c (main): Likewise.
19389         * tests/test-rmdir.c (main): Likewise.
19390         * tests/test-unlink.c (main): Likewise.
19391         * tests/test-unlinkat.c (main): Likewise.
19392         * tests/test-areadlink-with-size.c (main): Don't require a
19393         debug-only system call to pass, aiding cross-testing to mingw.
19394         * tests/test-areadlink.c (main): Likewise.
19395         * tests/test-areadlinkat-with-size.c (main): Likewise.
19396         * tests/test-areadlinkat.c (main): Likewise.
19397         * tests/test-canonicalize-lgpl.c (main): Likewise.
19398         * tests/test-canonicalize.c (main): Likewise.
19399         * tests/test-chown.c (main): Likewise.
19400         * tests/test-fchownat.c (main): Likewise.
19401         * tests/test-lchown.c (main): Likewise.
19402         * tests/test-fdutimensat.c (main): Likewise.
19403         * tests/test-futimens.c (main): Likewise.
19404         * tests/test-link.c (main): Likewise.
19405         * tests/test-linkat.c (main): Likewise.
19406         * tests/test-mkdir.c (main): Likewise.
19407         * tests/test-mkdirat.c (main): Likewise.
19408         * tests/test-mkfifo.c (main): Likewise.
19409         * tests/test-mkfifoat.c (main): Likewise.
19410         * tests/test-mknod.c (main): Likewise.
19411         * tests/test-readlink.c (main): Likewise.
19412         * tests/test-remove.c (main): Likewise.
19413         * tests/test-rename.c (main): Likewise.
19414         * tests/test-renameat.c (main): Likewise.
19415         * tests/test-symlink.c (main): Likewise.
19416         * tests/test-symlinkat.c (main): Likewise.
19417         * tests/test-utimens.c (main): Likewise.
19418         * tests/test-utimensat.c (main): Likewise.
19419
19420 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19421
19422         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19423         on $(UNUSED_PARAMETER_H) to avoid build failure.
19424
19425 2009-12-28  Jim Meyering  <meyering@redhat.com>
19426
19427         update-copyright: you may specify a max. line length other than 72
19428         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19429
19430         maint: use consistent FSF copyright line syntax
19431         * lib/posixtm.c: Add missing comma in FSF copyright line.
19432         * lib/posixtm.h: Likewise.
19433         * lib/getugroups.c: Add missing ", Inc.".
19434
19435         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19436         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19437         FSF copyright line.  Remove trailing blanks.
19438
19439 2009-12-28  Eric Blake  <ebb9@byu.net>
19440
19441         test-dup2: reduce dependencies
19442         * modules/cloexec (Configure.ac): Set witness.
19443         * modules/dup2-tests (Depends-on): Drop cloexec.
19444         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19445         not present.
19446         Suggested by Bruno Haible.
19447
19448 2009-12-26  Bruno Haible  <bruno@clisp.org>
19449
19450         Remove an unneeded dependency.
19451         * modules/fseterr (Depends-on): Remove dup2.
19452
19453 2009-12-26  Eric Blake  <ebb9@byu.net>
19454
19455         tests: use macros.h in more places
19456         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19457         (ASSERT_STREAM): Provide default of stderr.
19458         * tests/test-dirent-safer.c: Include macros.h, using alternate
19459         stream for assertions.
19460         * tests/test-dup-safer.c: Likewise.
19461         * tests/test-freopen-safer.c: Likewise.
19462         * tests/test-getopt.c: Likewise.
19463         * tests/test-openat-safer.c: Likewise.
19464         * tests/test-pipe.c: Likewise.
19465         * tests/test-popen-safer.c: Likewise.
19466         * modules/dirent-safer-tests (Files): Include macros.h.
19467         * modules/unistd-safer-tests (Files): Likewise.
19468         * modules/freopen-safer-tests (Files): Likewise.
19469         * modules/getopt-posix-tests (Files): Likewise.
19470         * modules/openat-safer-tests (Files): Likewise.
19471         * modules/pipe-tests (Files): Likewise.
19472
19473 2009-12-26  Bruno Haible  <bruno@clisp.org>
19474
19475         javacomp: Portability fix.
19476         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19477         that it also works on Solaris.
19478
19479 2009-12-26  Bruno Haible  <bruno@clisp.org>
19480
19481         localename: Fix storage allocation of gl_locale_name_thread's result.
19482         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19483         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19484         all platforms that have 'uselocale'.
19485         (gl_locale_name_thread_unsafe): New function, extracted from
19486         gl_locale_name_thread.
19487         (gl_locale_name_thread): Call struniq on all platforms that have
19488         'uselocale'.
19489         * tests/test-localename.c (test_locale_name_thread): Check that the
19490         resulting strings are permanently allocated.
19491         * modules/localename-tests (Depends-on): Add strdup.
19492
19493 2009-12-26  Bruno Haible  <bruno@clisp.org>
19494
19495         * tests/test-localename.c (categories): Fill in the strings.
19496
19497 2009-12-26  Jim Meyering  <meyering@redhat.com>
19498
19499         isdir: complete the removal of m4/isdir.m4
19500         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19501
19502         isdir: clean up, since at least grep still uses it
19503         * lib/isdir.c: Include "isdir.h".
19504         (S_ISDIR): Remove now-unneeded definition.
19505         * modules/isdir (Files): Add lib/isdir.h.
19506         * lib/isdir.h: New file, with declaration.
19507         * m4/isdir.m4: Remove file -- unneeded.
19508
19509 2009-12-25  Bruno Haible  <bruno@clisp.org>
19510
19511         selinux-h: Make generated .h files standalone.
19512         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19513         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19514         * lib/se-selinux.in.h: Likewise.
19515         * modules/selinux-h (Depends-on): Add unused-parameter.
19516         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19517         selinux/selinux.h and selinux/context.h.
19518         Suggested by Eric Blake.
19519
19520 2009-12-25  Bruno Haible  <bruno@clisp.org>
19521
19522         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19523         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19524         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19525         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19526         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19527
19528 2009-12-24  Bruno Haible  <bruno@clisp.org>
19529
19530         openat: Fix warning.
19531         * lib/openat-proc.c: Include <unistd.h>.
19532
19533 2009-12-24  Bruno Haible  <bruno@clisp.org>
19534
19535         New module 'unused-parameter'.
19536         * build-aux/unused-parameter.h: New file, extracted from earlier
19537         gnulib-common.m4.
19538         * modules/unused-parameter: New file.
19539         * lib/unistr.h: Include unused-parameter.h.
19540         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19541         _GL_UNUSED.
19542         * modules/unistr/base (Depends-on): Add unused-parameter.
19543
19544 2009-12-24  Bruno Haible  <bruno@clisp.org>
19545
19546         Add missing dependencies to 'extensions' module.
19547         * m4/extensions.m4: Add comment.
19548         * modules/accept4 (Depends-on): Add extensions.
19549         * modules/dup3 (Depends-on): Likewise.
19550         * modules/fcntl (Depends-on): Likewise.
19551         * modules/futimens (Depends-on): Likewise.
19552         * modules/mknod (Depends-on): Likewise.
19553         * modules/pipe2 (Depends-on): Likewise.
19554         * modules/stat-time (Depends-on): Likewise.
19555         * modules/strcasestr-simple (Depends-on): Likewise.
19556         * modules/strsignal (Depends-on): Likewise.
19557         * modules/utimensat (Depends-on): Likewise.
19558         * modules/localcharset (Depends-on): Likewise. Needed because of
19559         gl_FCNTL_O_FLAGS.
19560         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19561         AC_TYPE_MBSTATE_T.
19562         * modules/wcsnrtombs (Depends-on): Likewise.
19563         * modules/wcsrtombs (Depends-on): Likewise.
19564
19565 2009-12-24  Bruno Haible  <bruno@clisp.org>
19566
19567         binary-io: Avoid gcc warning due to SET_BINARY.
19568         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19569         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19570
19571 2009-12-24  Bruno Haible  <bruno@clisp.org>
19572
19573         Avoid future namespace pollution on glibc systems.
19574         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19575         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19576         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19577         glibc systems.
19578
19579 2009-12-24  Bruno Haible  <bruno@clisp.org>
19580
19581         Refactor common macros used in tests.
19582         * tests/macros.h: New file.
19583         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19584         and/or <stdlib.h>, if appropriate.
19585         (ASSERT, SIZEOF): Remove macros.
19586         * tests/test-areadlink-with-size.c: Likewise.
19587         * tests/test-areadlinkat.c: Likewise.
19588         * tests/test-areadlinkat-with-size.c: Likewise.
19589         * tests/test-argmatch.c: Likewise.
19590         * tests/test-argv-iter.c: Likewise.
19591         * tests/test-array-mergesort.c: Likewise.
19592         * tests/test-array_list.c: Likewise.
19593         * tests/test-array_oset.c: Likewise.
19594         * tests/test-avltree_list.c: Likewise.
19595         * tests/test-avltree_oset.c: Likewise.
19596         * tests/test-avltreehash_list.c: Likewise.
19597         * tests/test-base64.c: Likewise.
19598         * tests/test-binary-io.c: Likewise.
19599         * tests/test-bitrotate.c: Likewise.
19600         * tests/test-btowc.c: Likewise.
19601         * tests/test-byteswap.c: Likewise.
19602         * tests/test-c-ctype.c: Likewise.
19603         * tests/test-c-stack.c: Likewise.
19604         * tests/test-c-strcasecmp.c: Likewise.
19605         * tests/test-c-strcasestr.c: Likewise.
19606         * tests/test-c-strncasecmp.c: Likewise.
19607         * tests/test-c-strstr.c: Likewise.
19608         * tests/test-canonicalize-lgpl.c: Likewise.
19609         * tests/test-canonicalize.c: Likewise.
19610         * tests/test-carray_list.c: Likewise.
19611         * tests/test-ceilf1.c: Likewise.
19612         * tests/test-ceilf2.c: Likewise.
19613         * tests/test-ceill.c: Likewise.
19614         * tests/test-chown.c: Likewise.
19615         * tests/test-cloexec.c: Likewise.
19616         * tests/test-copy-acl.c: Likewise.
19617         * tests/test-copy-file.c: Likewise.
19618         * tests/test-count-one-bits.c: Likewise.
19619         * tests/test-dprintf-posix.c: Likewise.
19620         * tests/test-dup2.c: Likewise.
19621         * tests/test-dup3.c: Likewise.
19622         * tests/test-duplocale.c: Likewise.
19623         * tests/test-fbufmode.c: Likewise.
19624         * tests/test-fchdir.c: Likewise.
19625         * tests/test-fchownat.c: Likewise.
19626         * tests/test-fcntl-safer.c: Likewise.
19627         * tests/test-fcntl.c: Likewise.
19628         * tests/test-fdopendir.c: Likewise.
19629         * tests/test-fdutimensat.c: Likewise.
19630         * tests/test-fflush2.c: Likewise.
19631         * tests/test-file-has-acl.c: Likewise.
19632         * tests/test-filevercmp.c: Likewise.
19633         * tests/test-flock.c: Likewise.
19634         * tests/test-floorf1.c: Likewise.
19635         * tests/test-floorf2.c: Likewise.
19636         * tests/test-floorl.c: Likewise.
19637         * tests/test-fnmatch.c: Likewise.
19638         * tests/test-fopen.h: Likewise.
19639         * tests/test-fpending.c: Likewise.
19640         * tests/test-fprintf-posix.c: Likewise.
19641         * tests/test-fpurge.c: Likewise.
19642         * tests/test-freadable.c: Likewise.
19643         * tests/test-freadahead.c: Likewise.
19644         * tests/test-freading.c: Likewise.
19645         * tests/test-freadptr.c: Likewise.
19646         * tests/test-freadptr2.c: Likewise.
19647         * tests/test-freadseek.c: Likewise.
19648         * tests/test-freopen.c: Likewise.
19649         * tests/test-frexp.c: Likewise.
19650         * tests/test-frexpl.c: Likewise.
19651         * tests/test-fseek.c: Likewise.
19652         * tests/test-fseeko.c: Likewise.
19653         * tests/test-fstatat.c: Likewise.
19654         * tests/test-fstrcmp.c: Likewise.
19655         * tests/test-fsync.c: Likewise.
19656         * tests/test-ftell.c: Likewise.
19657         * tests/test-ftello.c: Likewise.
19658         * tests/test-func.c: Likewise.
19659         * tests/test-futimens.c: Likewise.
19660         * tests/test-fwritable.c: Likewise.
19661         * tests/test-fwriting.c: Likewise.
19662         * tests/test-getcwd.c: Likewise.
19663         * tests/test-getdate.c: Likewise.
19664         * tests/test-getdelim.c: Likewise.
19665         * tests/test-getdtablesize.c: Likewise.
19666         * tests/test-getgroups.c: Likewise.
19667         * tests/test-getline.c: Likewise.
19668         * tests/test-getndelim2.c: Likewise.
19669         * tests/test-glob.c: Likewise.
19670         * tests/test-hash.c: Likewise.
19671         * tests/test-i-ring.c: Likewise.
19672         * tests/test-iconv-utf.c: Likewise.
19673         * tests/test-iconv.c: Likewise.
19674         * tests/test-idpriv-drop.c: Likewise.
19675         * tests/test-idpriv-droptemp.c: Likewise.
19676         * tests/test-inet_ntop.c: Likewise.
19677         * tests/test-inet_pton.c: Likewise.
19678         * tests/test-isblank.c: Likewise.
19679         * tests/test-isfinite.c: Likewise.
19680         * tests/test-isinf.c: Likewise.
19681         * tests/test-isnan.c: Likewise.
19682         * tests/test-isnand.h: Likewise.
19683         * tests/test-isnanf.h: Likewise.
19684         * tests/test-isnanl.h: Likewise.
19685         * tests/test-lchown.c: Likewise.
19686         * tests/test-ldexpl.c: Likewise.
19687         * tests/test-link.c: Likewise.
19688         * tests/test-linkat.c: Likewise.
19689         * tests/test-linked_list.c: Likewise.
19690         * tests/test-linkedhash_list.c: Likewise.
19691         * tests/test-localename.c: Likewise.
19692         * tests/test-lseek.c: Likewise.
19693         * tests/test-lstat.c: Likewise.
19694         * tests/test-mbmemcasecmp.c: Likewise.
19695         * tests/test-mbmemcasecoll.c: Likewise.
19696         * tests/test-mbrtowc.c: Likewise.
19697         * tests/test-mbscasecmp.c: Likewise.
19698         * tests/test-mbscasestr1.c: Likewise.
19699         * tests/test-mbscasestr2.c: Likewise.
19700         * tests/test-mbscasestr3.c: Likewise.
19701         * tests/test-mbscasestr4.c: Likewise.
19702         * tests/test-mbschr.c: Likewise.
19703         * tests/test-mbscspn.c: Likewise.
19704         * tests/test-mbsinit.c: Likewise.
19705         * tests/test-mbsncasecmp.c: Likewise.
19706         * tests/test-mbsnrtowcs.c: Likewise.
19707         * tests/test-mbspbrk.c: Likewise.
19708         * tests/test-mbspcasecmp.c: Likewise.
19709         * tests/test-mbsrchr.c: Likewise.
19710         * tests/test-mbsrtowcs.c: Likewise.
19711         * tests/test-mbsspn.c: Likewise.
19712         * tests/test-mbsstr1.c: Likewise.
19713         * tests/test-mbsstr2.c: Likewise.
19714         * tests/test-mbsstr3.c: Likewise.
19715         * tests/test-memchr.c: Likewise.
19716         * tests/test-memchr2.c: Likewise.
19717         * tests/test-memcmp.c: Likewise.
19718         * tests/test-memmem.c: Likewise.
19719         * tests/test-memrchr.c: Likewise.
19720         * tests/test-mkdir.c: Likewise.
19721         * tests/test-mkdirat.c: Likewise.
19722         * tests/test-mkfifo.c: Likewise.
19723         * tests/test-mkfifoat.c: Likewise.
19724         * tests/test-mknod.c: Likewise.
19725         * tests/test-nanosleep.c: Likewise.
19726         * tests/test-nl_langinfo.c: Likewise.
19727         * tests/test-obstack-printf.c: Likewise.
19728         * tests/test-open.c: Likewise.
19729         * tests/test-openat.c: Likewise.
19730         * tests/test-pipe-filter-gi1.c: Likewise.
19731         * tests/test-pipe-filter-gi2-main.c: Likewise.
19732         * tests/test-pipe-filter-ii1.c: Likewise.
19733         * tests/test-pipe-filter-ii2-main.c: Likewise.
19734         * tests/test-pipe2.c: Likewise.
19735         * tests/test-popen.h: Likewise.
19736         * tests/test-posixtm.c: Likewise.
19737         * tests/test-pread.c: Likewise.
19738         * tests/test-printf-frexp.c: Likewise.
19739         * tests/test-printf-frexpl.c: Likewise.
19740         * tests/test-printf-posix.c: Likewise.
19741         * tests/test-priv-set.c: Likewise.
19742         * tests/test-quotearg.c: Likewise.
19743         * tests/test-random_r.c: Likewise.
19744         * tests/test-rawmemchr.c: Likewise.
19745         * tests/test-rbtree_list.c: Likewise.
19746         * tests/test-rbtree_oset.c: Likewise.
19747         * tests/test-rbtreehash_list.c: Likewise.
19748         * tests/test-readlink.c: Likewise.
19749         * tests/test-remove.c: Likewise.
19750         * tests/test-rename.c: Likewise.
19751         * tests/test-renameat.c: Likewise.
19752         * tests/test-rmdir.c: Likewise.
19753         * tests/test-round1.c: Likewise.
19754         * tests/test-roundf1.c: Likewise.
19755         * tests/test-roundl.c: Likewise.
19756         * tests/test-safe-alloc.c: Likewise.
19757         * tests/test-sameacls.c: Likewise.
19758         * tests/test-set-mode-acl.c: Likewise.
19759         * tests/test-setenv.c: Likewise.
19760         * tests/test-sigaction.c: Likewise.
19761         * tests/test-signbit.c: Likewise.
19762         * tests/test-sleep.c: Likewise.
19763         * tests/test-snprintf-posix.c: Likewise.
19764         * tests/test-snprintf.c: Likewise.
19765         * tests/test-sprintf-posix.c: Likewise.
19766         * tests/test-stat-time.c: Likewise.
19767         * tests/test-stat.c: Likewise.
19768         * tests/test-strcasestr.c: Likewise.
19769         * tests/test-strchrnul.c: Likewise.
19770         * tests/test-strerror.c: Likewise.
19771         * tests/test-striconv.c: Likewise.
19772         * tests/test-striconveh.c: Likewise.
19773         * tests/test-striconveha.c: Likewise.
19774         * tests/test-strsignal.c: Likewise.
19775         * tests/test-strstr.c: Likewise.
19776         * tests/test-strtod.c: Likewise.
19777         * tests/test-strverscmp.c: Likewise.
19778         * tests/test-symlink.c: Likewise.
19779         * tests/test-symlinkat.c: Likewise.
19780         * tests/test-trunc1.c: Likewise.
19781         * tests/test-trunc2.c: Likewise.
19782         * tests/test-truncf1.c: Likewise.
19783         * tests/test-truncf2.c: Likewise.
19784         * tests/test-truncl.c: Likewise.
19785         * tests/test-uname.c: Likewise.
19786         * tests/test-unlink.c: Likewise.
19787         * tests/test-unlinkat.c: Likewise.
19788         * tests/test-unsetenv.c: Likewise.
19789         * tests/test-usleep.c: Likewise.
19790         * tests/test-utimens.c: Likewise.
19791         * tests/test-utimensat.c: Likewise.
19792         * tests/test-vasnprintf-posix.c: Likewise.
19793         * tests/test-vasnprintf-posix2.c: Likewise.
19794         * tests/test-vasnprintf.c: Likewise.
19795         * tests/test-vasprintf-posix.c: Likewise.
19796         * tests/test-vasprintf.c: Likewise.
19797         * tests/test-vdprintf-posix.c: Likewise.
19798         * tests/test-vfprintf-posix.c: Likewise.
19799         * tests/test-vprintf-posix.c: Likewise.
19800         * tests/test-vsnprintf-posix.c: Likewise.
19801         * tests/test-vsnprintf.c: Likewise.
19802         * tests/test-vsprintf-posix.c: Likewise.
19803         * tests/test-wcrtomb.c: Likewise.
19804         * tests/test-wcsnrtombs.c: Likewise.
19805         * tests/test-wcsrtombs.c: Likewise.
19806         * tests/test-wctype.c: Likewise.
19807         * tests/test-wcwidth.c: Likewise.
19808         * tests/test-xfprintf-posix.c: Likewise.
19809         * tests/test-xmemdup0.c: Likewise.
19810         * tests/test-xprintf-posix.c: Likewise.
19811         * tests/test-xvasprintf.c: Likewise.
19812         * tests/unicase/test-locale-language.c: Likewise.
19813         * tests/unicase/test-mapping-part1.h: Likewise.
19814         * tests/unicase/test-predicate-part1.h: Likewise.
19815         * tests/unicase/test-u8-casecmp.c: Likewise.
19816         * tests/unicase/test-u8-casecoll.c: Likewise.
19817         * tests/unicase/test-u8-casefold.c: Likewise.
19818         * tests/unicase/test-u8-is-cased.c: Likewise.
19819         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19820         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19821         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19822         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19823         * tests/unicase/test-u8-tolower.c: Likewise.
19824         * tests/unicase/test-u8-totitle.c: Likewise.
19825         * tests/unicase/test-u8-toupper.c: Likewise.
19826         * tests/unicase/test-u16-casecmp.c: Likewise.
19827         * tests/unicase/test-u16-casecoll.c: Likewise.
19828         * tests/unicase/test-u16-casefold.c: Likewise.
19829         * tests/unicase/test-u16-is-cased.c: Likewise.
19830         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19831         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19832         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19833         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19834         * tests/unicase/test-u16-tolower.c: Likewise.
19835         * tests/unicase/test-u16-totitle.c: Likewise.
19836         * tests/unicase/test-u16-toupper.c: Likewise.
19837         * tests/unicase/test-u32-casecmp.c: Likewise.
19838         * tests/unicase/test-u32-casecoll.c: Likewise.
19839         * tests/unicase/test-u32-casefold.c: Likewise.
19840         * tests/unicase/test-u32-is-cased.c: Likewise.
19841         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19842         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19843         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19844         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19845         * tests/unicase/test-u32-tolower.c: Likewise.
19846         * tests/unicase/test-u32-totitle.c: Likewise.
19847         * tests/unicase/test-u32-toupper.c: Likewise.
19848         * tests/unicase/test-ulc-casecmp.c: Likewise.
19849         * tests/unicase/test-ulc-casecoll.c: Likewise.
19850         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19851         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19852         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19853         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19854         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19855         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19856         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19857         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19858         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19859         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19860         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19861         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19862         * tests/unictype/test-bidi_byname.c: Likewise.
19863         * tests/unictype/test-bidi_name.c: Likewise.
19864         * tests/unictype/test-bidi_of.c: Likewise.
19865         * tests/unictype/test-bidi_test.c: Likewise.
19866         * tests/unictype/test-block_list.c: Likewise.
19867         * tests/unictype/test-block_of.c: Likewise.
19868         * tests/unictype/test-block_test.c: Likewise.
19869         * tests/unictype/test-categ_and.c: Likewise.
19870         * tests/unictype/test-categ_and_not.c: Likewise.
19871         * tests/unictype/test-categ_byname.c: Likewise.
19872         * tests/unictype/test-categ_name.c: Likewise.
19873         * tests/unictype/test-categ_none.c: Likewise.
19874         * tests/unictype/test-categ_of.c: Likewise.
19875         * tests/unictype/test-categ_or.c: Likewise.
19876         * tests/unictype/test-categ_test_withtable.c: Likewise.
19877         * tests/unictype/test-combining.c: Likewise.
19878         * tests/unictype/test-decdigit.c: Likewise.
19879         * tests/unictype/test-digit.c: Likewise.
19880         * tests/unictype/test-mirror.c: Likewise.
19881         * tests/unictype/test-numeric.c: Likewise.
19882         * tests/unictype/test-pr_byname.c: Likewise.
19883         * tests/unictype/test-pr_test.c: Likewise.
19884         * tests/unictype/test-predicate-part1.h: Likewise.
19885         * tests/unictype/test-scripts.c: Likewise.
19886         * tests/unictype/test-sy_c_ident.c: Likewise.
19887         * tests/unictype/test-sy_java_ident.c: Likewise.
19888         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19889         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19890         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19891         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19892         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19893         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19894         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19895         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19896         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19897         * tests/uninorm/test-compat-decomposition.c: Likewise.
19898         * tests/uninorm/test-composition.c: Likewise.
19899         * tests/uninorm/test-decomposing-form.c: Likewise.
19900         * tests/uninorm/test-decomposition.c: Likewise.
19901         * tests/uninorm/test-u8-nfc.c: Likewise.
19902         * tests/uninorm/test-u8-nfd.c: Likewise.
19903         * tests/uninorm/test-u8-nfkc.c: Likewise.
19904         * tests/uninorm/test-u8-nfkd.c: Likewise.
19905         * tests/uninorm/test-u8-normcmp.c: Likewise.
19906         * tests/uninorm/test-u8-normcoll.c: Likewise.
19907         * tests/uninorm/test-u16-nfc.c: Likewise.
19908         * tests/uninorm/test-u16-nfd.c: Likewise.
19909         * tests/uninorm/test-u16-nfkc.c: Likewise.
19910         * tests/uninorm/test-u16-nfkd.c: Likewise.
19911         * tests/uninorm/test-u16-normcmp.c: Likewise.
19912         * tests/uninorm/test-u16-normcoll.c: Likewise.
19913         * tests/uninorm/test-u32-nfc.c: Likewise.
19914         * tests/uninorm/test-u32-nfd.c: Likewise.
19915         * tests/uninorm/test-u32-nfkc.c: Likewise.
19916         * tests/uninorm/test-u32-nfkd.c: Likewise.
19917         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19918         * tests/uninorm/test-u32-normcmp.c: Likewise.
19919         * tests/uninorm/test-u32-normcoll.c: Likewise.
19920         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19921         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19922         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19923         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19924         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19925         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19926         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19927         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19928         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19929         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19930         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19931         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19932         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19933         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19934         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19935         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19936         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19937         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19938         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19939         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19940         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19941         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19942         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19943         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19944         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19945         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19946         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19947         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19948         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19949         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19950         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19951         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19952         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19953         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19954         * tests/uniwidth/test-u8-width.c: Likewise.
19955         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19956         * tests/uniwidth/test-u16-width.c: Likewise.
19957         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19958         * tests/uniwidth/test-u32-width.c: Likewise.
19959         * tests/uniwidth/test-uc_width.c: Likewise.
19960         * tests/uniwidth/test-uc_width2.c: Likewise.
19961         * modules/acl-tests (Files): Add tests/macros.h.
19962         * modules/areadlink-tests (Files): Likewise.
19963         * modules/areadlink-with-size-tests (Files): Likewise.
19964         * modules/areadlinkat-tests (Files): Likewise.
19965         * modules/areadlinkat-with-size-tests (Files): Likewise.
19966         * modules/argmatch-tests (Files): Likewise.
19967         * modules/argv-iter-tests (Files): Likewise.
19968         * modules/array-list-tests (Files): Likewise.
19969         * modules/array-mergesort-tests (Files): Likewise.
19970         * modules/array-oset-tests (Files): Likewise.
19971         * modules/avltree-list-tests (Files): Likewise.
19972         * modules/avltree-oset-tests (Files): Likewise.
19973         * modules/avltreehash-list-tests (Files): Likewise.
19974         * modules/base64-tests (Files): Likewise.
19975         * modules/binary-io-tests (Files): Likewise.
19976         * modules/bitrotate-tests (Files): Likewise.
19977         * modules/btowc-tests (Files): Likewise.
19978         * modules/byteswap-tests (Files): Likewise.
19979         * modules/c-ctype-tests (Files): Likewise.
19980         * modules/c-stack-tests (Files): Likewise.
19981         * modules/c-strcase-tests (Files): Likewise.
19982         * modules/c-strcasestr-tests (Files): Likewise.
19983         * modules/c-strstr-tests (Files): Likewise.
19984         * modules/canonicalize-lgpl-tests (Files): Likewise.
19985         * modules/canonicalize-tests (Files): Likewise.
19986         * modules/carray-list-tests (Files): Likewise.
19987         * modules/ceilf-tests (Files): Likewise.
19988         * modules/ceill-tests (Files): Likewise.
19989         * modules/chown-tests (Files): Likewise.
19990         * modules/cloexec-tests (Files): Likewise.
19991         * modules/copy-file-tests (Files): Likewise.
19992         * modules/count-one-bits-tests (Files): Likewise.
19993         * modules/dprintf-posix-tests (Files): Likewise.
19994         * modules/dup2-tests (Files): Likewise.
19995         * modules/dup3-tests (Files): Likewise.
19996         * modules/duplocale-tests (Files): Likewise.
19997         * modules/fbufmode-tests (Files): Likewise.
19998         * modules/fchdir-tests (Files): Likewise.
19999         * modules/fcntl-safer-tests (Files): Likewise.
20000         * modules/fcntl-tests (Files): Likewise.
20001         * modules/fdopendir-tests (Files): Likewise.
20002         * modules/fdutimensat-tests (Files): Likewise.
20003         * modules/fflush-tests (Files): Likewise.
20004         * modules/filevercmp-tests (Files): Likewise.
20005         * modules/flock-tests (Files): Likewise.
20006         * modules/floorf-tests (Files): Likewise.
20007         * modules/floorl-tests (Files): Likewise.
20008         * modules/fnmatch-tests (Files): Likewise.
20009         * modules/fopen-safer-tests (Files): Likewise.
20010         * modules/fopen-tests (Files): Likewise.
20011         * modules/fpending-tests (Files): Likewise.
20012         * modules/fprintf-posix-tests (Files): Likewise.
20013         * modules/fpurge-tests (Files): Likewise.
20014         * modules/freadable-tests (Files): Likewise.
20015         * modules/freadahead-tests (Files): Likewise.
20016         * modules/freading-tests (Files): Likewise.
20017         * modules/freadptr-tests (Files): Likewise.
20018         * modules/freadseek-tests (Files): Likewise.
20019         * modules/freopen-tests (Files): Likewise.
20020         * modules/frexp-nolibm-tests (Files): Likewise.
20021         * modules/frexp-tests (Files): Likewise.
20022         * modules/frexpl-nolibm-tests (Files): Likewise.
20023         * modules/frexpl-tests (Files): Likewise.
20024         * modules/fseek-tests (Files): Likewise.
20025         * modules/fseeko-tests (Files): Likewise.
20026         * modules/fstrcmp-tests (Files): Likewise.
20027         * modules/fsync-tests (Files): Likewise.
20028         * modules/ftell-tests (Files): Likewise.
20029         * modules/ftello-tests (Files): Likewise.
20030         * modules/func-tests (Files): Likewise.
20031         * modules/futimens-tests (Files): Likewise.
20032         * modules/fwritable-tests (Files): Likewise.
20033         * modules/fwriting-tests (Files): Likewise.
20034         * modules/getcwd-tests (Files): Likewise.
20035         * modules/getdate-tests (Files): Likewise.
20036         * modules/getdelim-tests (Files): Likewise.
20037         * modules/getdtablesize-tests (Files): Likewise.
20038         * modules/getgroups-tests (Files): Likewise.
20039         * modules/getline-tests (Files): Likewise.
20040         * modules/getndelim2-tests (Files): Likewise.
20041         * modules/glob-tests (Files): Likewise.
20042         * modules/hash-tests (Files): Likewise.
20043         * modules/i-ring-tests (Files): Likewise.
20044         * modules/iconv-tests (Files): Likewise.
20045         * modules/iconv_open-utf-tests (Files): Likewise.
20046         * modules/idpriv-drop-tests (Files): Likewise.
20047         * modules/idpriv-droptemp-tests (Files): Likewise.
20048         * modules/inet_ntop-tests (Files): Likewise.
20049         * modules/inet_pton-tests (Files): Likewise.
20050         * modules/isblank-tests (Files): Likewise.
20051         * modules/isfinite-tests (Files): Likewise.
20052         * modules/isinf-tests (Files): Likewise.
20053         * modules/isnan-tests (Files): Likewise.
20054         * modules/isnand-nolibm-tests (Files): Likewise.
20055         * modules/isnand-tests (Files): Likewise.
20056         * modules/isnanf-nolibm-tests (Files): Likewise.
20057         * modules/isnanf-tests (Files): Likewise.
20058         * modules/isnanl-nolibm-tests (Files): Likewise.
20059         * modules/isnanl-tests (Files): Likewise.
20060         * modules/lchown-tests (Files): Likewise.
20061         * modules/ldexpl-tests (Files): Likewise.
20062         * modules/link-tests (Files): Likewise.
20063         * modules/linkat-tests (Files): Likewise.
20064         * modules/linked-list-tests (Files): Likewise.
20065         * modules/linkedhash-list-tests (Files): Likewise.
20066         * modules/localename-tests (Files): Likewise.
20067         * modules/lseek-tests (Files): Likewise.
20068         * modules/lstat-tests (Files): Likewise.
20069         * modules/mbmemcasecmp-tests (Files): Likewise.
20070         * modules/mbmemcasecoll-tests (Files): Likewise.
20071         * modules/mbrtowc-tests (Files): Likewise.
20072         * modules/mbscasecmp-tests (Files): Likewise.
20073         * modules/mbscasestr-tests (Files): Likewise.
20074         * modules/mbschr-tests (Files): Likewise.
20075         * modules/mbscspn-tests (Files): Likewise.
20076         * modules/mbsinit-tests (Files): Likewise.
20077         * modules/mbsncasecmp-tests (Files): Likewise.
20078         * modules/mbsnrtowcs-tests (Files): Likewise.
20079         * modules/mbspbrk-tests (Files): Likewise.
20080         * modules/mbspcasecmp-tests (Files): Likewise.
20081         * modules/mbsrchr-tests (Files): Likewise.
20082         * modules/mbsrtowcs-tests (Files): Likewise.
20083         * modules/mbsspn-tests (Files): Likewise.
20084         * modules/mbsstr-tests (Files): Likewise.
20085         * modules/memchr-tests (Files): Likewise.
20086         * modules/memchr2-tests (Files): Likewise.
20087         * modules/memcmp-tests (Files): Likewise.
20088         * modules/memmem-tests (Files): Likewise.
20089         * modules/memrchr-tests (Files): Likewise.
20090         * modules/mkdir-tests (Files): Likewise.
20091         * modules/mkfifo-tests (Files): Likewise.
20092         * modules/mkfifoat-tests (Files): Likewise.
20093         * modules/mknod-tests (Files): Likewise.
20094         * modules/nanosleep-tests (Files): Likewise.
20095         * modules/nl_langinfo-tests (Files): Likewise.
20096         * modules/obstack-printf-tests (Files): Likewise.
20097         * modules/open-tests (Files): Likewise.
20098         * modules/openat-tests (Files): Likewise.
20099         * modules/pipe-filter-gi-tests (Files): Likewise.
20100         * modules/pipe-filter-ii-tests (Files): Likewise.
20101         * modules/pipe2-tests (Files): Likewise.
20102         * modules/popen-safer-tests (Files): Likewise.
20103         * modules/popen-tests (Files): Likewise.
20104         * modules/posixtm-tests (Files): Likewise.
20105         * modules/pread-tests (Files): Likewise.
20106         * modules/printf-frexp-tests (Files): Likewise.
20107         * modules/printf-frexpl-tests (Files): Likewise.
20108         * modules/printf-posix-tests (Files): Likewise.
20109         * modules/priv-set-tests (Files): Likewise.
20110         * modules/quotearg-tests (Files): Likewise.
20111         * modules/random_r-tests (Files): Likewise.
20112         * modules/rawmemchr-tests (Files): Likewise.
20113         * modules/rbtree-list-tests (Files): Likewise.
20114         * modules/rbtree-oset-tests (Files): Likewise.
20115         * modules/rbtreehash-list-tests (Files): Likewise.
20116         * modules/readlink-tests (Files): Likewise.
20117         * modules/remove-tests (Files): Likewise.
20118         * modules/rename-tests (Files): Likewise.
20119         * modules/renameat-tests (Files): Likewise.
20120         * modules/rmdir-tests (Files): Likewise.
20121         * modules/round-tests (Files): Likewise.
20122         * modules/roundf-tests (Files): Likewise.
20123         * modules/roundl-tests (Files): Likewise.
20124         * modules/safe-alloc-tests (Files): Likewise.
20125         * modules/setenv-tests (Files): Likewise.
20126         * modules/sigaction-tests (Files): Likewise.
20127         * modules/signbit-tests (Files): Likewise.
20128         * modules/sleep-tests (Files): Likewise.
20129         * modules/snprintf-posix-tests (Files): Likewise.
20130         * modules/snprintf-tests (Files): Likewise.
20131         * modules/sprintf-posix-tests (Files): Likewise.
20132         * modules/stat-tests (Files): Likewise.
20133         * modules/stat-time-tests (Files): Likewise.
20134         * modules/strcasestr-tests (Files): Likewise.
20135         * modules/strchrnul-tests (Files): Likewise.
20136         * modules/strerror-tests (Files): Likewise.
20137         * modules/striconv-tests (Files): Likewise.
20138         * modules/striconveh-tests (Files): Likewise.
20139         * modules/striconveha-tests (Files): Likewise.
20140         * modules/strsignal-tests (Files): Likewise.
20141         * modules/strstr-tests (Files): Likewise.
20142         * modules/strtod-tests (Files): Likewise.
20143         * modules/strverscmp-tests (Files): Likewise.
20144         * modules/symlink-tests (Files): Likewise.
20145         * modules/symlinkat-tests (Files): Likewise.
20146         * modules/trunc-tests (Files): Likewise.
20147         * modules/truncf-tests (Files): Likewise.
20148         * modules/truncl-tests (Files): Likewise.
20149         * modules/uname-tests (Files): Likewise.
20150         * modules/unicase/cased-tests (Files): Likewise.
20151         * modules/unicase/ignorable-tests (Files): Likewise.
20152         * modules/unicase/locale-language-tests (Files): Likewise.
20153         * modules/unicase/tolower-tests (Files): Likewise.
20154         * modules/unicase/totitle-tests (Files): Likewise.
20155         * modules/unicase/toupper-tests (Files): Likewise.
20156         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20157         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20158         * modules/unicase/u8-casefold-tests (Files): Likewise.
20159         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20160         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20161         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20162         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20163         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20164         * modules/unicase/u8-tolower-tests (Files): Likewise.
20165         * modules/unicase/u8-totitle-tests (Files): Likewise.
20166         * modules/unicase/u8-toupper-tests (Files): Likewise.
20167         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20168         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20169         * modules/unicase/u16-casefold-tests (Files): Likewise.
20170         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20171         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20172         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20173         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20174         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20175         * modules/unicase/u16-tolower-tests (Files): Likewise.
20176         * modules/unicase/u16-totitle-tests (Files): Likewise.
20177         * modules/unicase/u16-toupper-tests (Files): Likewise.
20178         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20179         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20180         * modules/unicase/u32-casefold-tests (Files): Likewise.
20181         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20182         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20183         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20184         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20185         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20186         * modules/unicase/u32-tolower-tests (Files): Likewise.
20187         * modules/unicase/u32-totitle-tests (Files): Likewise.
20188         * modules/unicase/u32-toupper-tests (Files): Likewise.
20189         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20190         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20191         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20192         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20193         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20194         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20195         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20196         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20197         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20198         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20199         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20200         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20201         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20202         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20203         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20204         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20205         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20206         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20207         * modules/unictype/block-list-tests (Files): Likewise.
20208         * modules/unictype/block-of-tests (Files): Likewise.
20209         * modules/unictype/block-test-tests (Files): Likewise.
20210         * modules/unictype/category-C-tests (Files): Likewise.
20211         * modules/unictype/category-Cc-tests (Files): Likewise.
20212         * modules/unictype/category-Cf-tests (Files): Likewise.
20213         * modules/unictype/category-Cn-tests (Files): Likewise.
20214         * modules/unictype/category-Co-tests (Files): Likewise.
20215         * modules/unictype/category-Cs-tests (Files): Likewise.
20216         * modules/unictype/category-L-tests (Files): Likewise.
20217         * modules/unictype/category-Ll-tests (Files): Likewise.
20218         * modules/unictype/category-Lm-tests (Files): Likewise.
20219         * modules/unictype/category-Lo-tests (Files): Likewise.
20220         * modules/unictype/category-Lt-tests (Files): Likewise.
20221         * modules/unictype/category-Lu-tests (Files): Likewise.
20222         * modules/unictype/category-M-tests (Files): Likewise.
20223         * modules/unictype/category-Mc-tests (Files): Likewise.
20224         * modules/unictype/category-Me-tests (Files): Likewise.
20225         * modules/unictype/category-Mn-tests (Files): Likewise.
20226         * modules/unictype/category-N-tests (Files): Likewise.
20227         * modules/unictype/category-Nd-tests (Files): Likewise.
20228         * modules/unictype/category-Nl-tests (Files): Likewise.
20229         * modules/unictype/category-No-tests (Files): Likewise.
20230         * modules/unictype/category-P-tests (Files): Likewise.
20231         * modules/unictype/category-Pc-tests (Files): Likewise.
20232         * modules/unictype/category-Pd-tests (Files): Likewise.
20233         * modules/unictype/category-Pe-tests (Files): Likewise.
20234         * modules/unictype/category-Pf-tests (Files): Likewise.
20235         * modules/unictype/category-Pi-tests (Files): Likewise.
20236         * modules/unictype/category-Po-tests (Files): Likewise.
20237         * modules/unictype/category-Ps-tests (Files): Likewise.
20238         * modules/unictype/category-S-tests (Files): Likewise.
20239         * modules/unictype/category-Sc-tests (Files): Likewise.
20240         * modules/unictype/category-Sk-tests (Files): Likewise.
20241         * modules/unictype/category-Sm-tests (Files): Likewise.
20242         * modules/unictype/category-So-tests (Files): Likewise.
20243         * modules/unictype/category-Z-tests (Files): Likewise.
20244         * modules/unictype/category-Zl-tests (Files): Likewise.
20245         * modules/unictype/category-Zp-tests (Files): Likewise.
20246         * modules/unictype/category-Zs-tests (Files): Likewise.
20247         * modules/unictype/category-and-not-tests (Files): Likewise.
20248         * modules/unictype/category-and-tests (Files): Likewise.
20249         * modules/unictype/category-byname-tests (Files): Likewise.
20250         * modules/unictype/category-name-tests (Files): Likewise.
20251         * modules/unictype/category-none-tests (Files): Likewise.
20252         * modules/unictype/category-of-tests (Files): Likewise.
20253         * modules/unictype/category-or-tests (Files): Likewise.
20254         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20255         * modules/unictype/combining-class-tests (Files): Likewise.
20256         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20257         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20258         * modules/unictype/ctype-blank-tests (Files): Likewise.
20259         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20260         * modules/unictype/ctype-digit-tests (Files): Likewise.
20261         * modules/unictype/ctype-graph-tests (Files): Likewise.
20262         * modules/unictype/ctype-lower-tests (Files): Likewise.
20263         * modules/unictype/ctype-print-tests (Files): Likewise.
20264         * modules/unictype/ctype-punct-tests (Files): Likewise.
20265         * modules/unictype/ctype-space-tests (Files): Likewise.
20266         * modules/unictype/ctype-upper-tests (Files): Likewise.
20267         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20268         * modules/unictype/decimal-digit-tests (Files): Likewise.
20269         * modules/unictype/digit-tests (Files): Likewise.
20270         * modules/unictype/mirror-tests (Files): Likewise.
20271         * modules/unictype/numeric-tests (Files): Likewise.
20272         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20273         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20274         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20275         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20276         Likewise.
20277         * modules/unictype/property-bidi-block-separator-tests (Files):
20278         Likewise.
20279         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20280         Likewise.
20281         * modules/unictype/property-bidi-common-separator-tests (Files):
20282         Likewise.
20283         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20284         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20285         Likewise.
20286         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20287         Likewise.
20288         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20289         Likewise.
20290         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20291         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20292         Likewise.
20293         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20294         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20295         Likewise.
20296         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20297         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20298         * modules/unictype/property-bidi-segment-separator-tests (Files):
20299         Likewise.
20300         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20301         * modules/unictype/property-byname-tests (Files): Likewise.
20302         * modules/unictype/property-combining-tests (Files): Likewise.
20303         * modules/unictype/property-composite-tests (Files): Likewise.
20304         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20305         * modules/unictype/property-dash-tests (Files): Likewise.
20306         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20307         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20308         Likewise.
20309         * modules/unictype/property-deprecated-tests (Files): Likewise.
20310         * modules/unictype/property-diacritic-tests (Files): Likewise.
20311         * modules/unictype/property-extender-tests (Files): Likewise.
20312         * modules/unictype/property-format-control-tests (Files): Likewise.
20313         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20314         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20315         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20316         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20317         * modules/unictype/property-hyphen-tests (Files): Likewise.
20318         * modules/unictype/property-id-continue-tests (Files): Likewise.
20319         * modules/unictype/property-id-start-tests (Files): Likewise.
20320         * modules/unictype/property-ideographic-tests (Files): Likewise.
20321         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20322         * modules/unictype/property-ids-trinary-operator-tests (Files):
20323         Likewise.
20324         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20325         * modules/unictype/property-iso-control-tests (Files): Likewise.
20326         * modules/unictype/property-join-control-tests (Files): Likewise.
20327         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20328         * modules/unictype/property-line-separator-tests (Files): Likewise.
20329         * modules/unictype/property-logical-order-exception-tests (Files):
20330         Likewise.
20331         * modules/unictype/property-lowercase-tests (Files): Likewise.
20332         * modules/unictype/property-math-tests (Files): Likewise.
20333         * modules/unictype/property-non-break-tests (Files): Likewise.
20334         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20335         * modules/unictype/property-numeric-tests (Files): Likewise.
20336         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20337         * modules/unictype/property-other-default-ignorable-code-point-tests
20338         (Files): Likewise.
20339         * modules/unictype/property-other-grapheme-extend-tests (Files):
20340         Likewise.
20341         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20342         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20343         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20344         * modules/unictype/property-other-math-tests (Files): Likewise.
20345         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20346         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20347         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20348         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20349         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20350         * modules/unictype/property-private-use-tests (Files): Likewise.
20351         * modules/unictype/property-punctuation-tests (Files): Likewise.
20352         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20353         * modules/unictype/property-radical-tests (Files): Likewise.
20354         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20355         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20356         * modules/unictype/property-space-tests (Files): Likewise.
20357         * modules/unictype/property-terminal-punctuation-tests (Files):
20358         Likewise.
20359         * modules/unictype/property-test-tests (Files): Likewise.
20360         * modules/unictype/property-titlecase-tests (Files): Likewise.
20361         * modules/unictype/property-unassigned-code-value-tests (Files):
20362         Likewise.
20363         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20364         * modules/unictype/property-uppercase-tests (Files): Likewise.
20365         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20366         * modules/unictype/property-white-space-tests (Files): Likewise.
20367         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20368         * modules/unictype/property-xid-start-tests (Files): Likewise.
20369         * modules/unictype/property-zero-width-tests (Files): Likewise.
20370         * modules/unictype/scripts-tests (Files): Likewise.
20371         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20372         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20373         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20374         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20375         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20376         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20377         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20378         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20379         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20380         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20381         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20382         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20383         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20384         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20385         * modules/uninorm/composition-tests (Files): Likewise.
20386         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20387         * modules/uninorm/decomposition-tests (Files): Likewise.
20388         * modules/uninorm/filter-tests (Files): Likewise.
20389         * modules/uninorm/nfc-tests (Files): Likewise.
20390         * modules/uninorm/nfd-tests (Files): Likewise.
20391         * modules/uninorm/nfkc-tests (Files): Likewise.
20392         * modules/uninorm/nfkd-tests (Files): Likewise.
20393         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20394         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20395         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20396         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20397         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20398         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20399         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20400         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20401         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20402         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20403         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20404         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20405         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20406         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20407         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20408         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20409         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20410         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20411         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20412         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20413         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20414         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20415         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20416         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20417         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20418         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20419         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20420         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20421         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20422         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20423         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20424         * modules/uniwidth/u8-width-tests (Files): Likewise.
20425         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20426         * modules/uniwidth/u16-width-tests (Files): Likewise.
20427         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20428         * modules/uniwidth/u32-width-tests (Files): Likewise.
20429         * modules/uniwidth/width-tests (Files): Likewise.
20430         * modules/unlink-tests (Files): Likewise.
20431         * modules/unsetenv-tests (Files): Likewise.
20432         * modules/usleep-tests (Files): Likewise.
20433         * modules/utimens-tests (Files): Likewise.
20434         * modules/utimensat-tests (Files): Likewise.
20435         * modules/vasnprintf-posix-tests (Files): Likewise.
20436         * modules/vasnprintf-tests (Files): Likewise.
20437         * modules/vasprintf-posix-tests (Files): Likewise.
20438         * modules/vasprintf-tests (Files): Likewise.
20439         * modules/vdprintf-posix-tests (Files): Likewise.
20440         * modules/vfprintf-posix-tests (Files): Likewise.
20441         * modules/vprintf-posix-tests (Files): Likewise.
20442         * modules/vsnprintf-posix-tests (Files): Likewise.
20443         * modules/vsnprintf-tests (Files): Likewise.
20444         * modules/vsprintf-posix-tests (Files): Likewise.
20445         * modules/wcrtomb-tests (Files): Likewise.
20446         * modules/wcsnrtombs-tests (Files): Likewise.
20447         * modules/wcsrtombs-tests (Files): Likewise.
20448         * modules/wctype-tests (Files): Likewise.
20449         * modules/wcwidth-tests (Files): Likewise.
20450         * modules/xmemdup0-tests (Files): Likewise.
20451         * modules/xprintf-posix-tests (Files): Likewise.
20452         * modules/xvasprintf-tests (Files): Likewise.
20453
20454 2009-12-24  Eric Blake  <ebb9@byu.net>
20455
20456         test-nanosleep: fix typo
20457         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20458         patch.
20459         Reported by Bruno Haible.
20460
20461 2009-12-24  Bruno Haible  <bruno@clisp.org>
20462
20463         Reduce namespace pollution on glibc systems.
20464         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20465         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20466         systems.
20467         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20468         <getopt.h> on glibc systems.
20469         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20470         systems.
20471         * lib/fcntl.c: Include <unistd.h> here instead.
20472
20473 2009-12-24  Bruno Haible  <bruno@clisp.org>
20474
20475         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20476
20477 2009-12-24  Eric Blake  <ebb9@byu.net>
20478
20479         tests: add signature checks
20480         * tests/signature.h (SIGNATURE_CHECK): New file.
20481         * modules/atexit-tests (Files): Use it.
20482         * modules/btowc-tests (Files): Likewise.
20483         * modules/canonicalize-lgpl-tests (Files): Likewise.
20484         * modules/ceilf-tests (Files): Likewise.
20485         * modules/ceill-tests (Files): Likewise.
20486         * modules/chown-tests (Files): Likewise.
20487         * modules/dprintf-posix-tests (Files): Likewise.
20488         * modules/dup2-tests (Files): Likewise.
20489         * modules/dup3-tests (Files): Likewise.
20490         * modules/duplocale-tests (Files): Likewise.
20491         * modules/fchdir-tests (Files): Likewise.
20492         * modules/fcntl-tests (Files): Likewise.
20493         * modules/fdopendir-tests (Files): Likewise.
20494         * modules/fflush-tests (Files): Likewise.
20495         * modules/flock-tests (Files): Likewise.
20496         * modules/floorf-tests (Files): Likewise.
20497         * modules/floorl-tests (Files): Likewise.
20498         * modules/fnmatch-tests (Files): Likewise.
20499         * modules/fopen-tests (Files): Likewise.
20500         * modules/fprintf-posix-tests (Files): Likewise.
20501         * modules/freopen-tests (Files): Likewise.
20502         * modules/frexp-nolibm-tests (Files): Likewise.
20503         * modules/frexp-tests (Files): Likewise.
20504         * modules/frexpl-nolibm-tests (Files): Likewise.
20505         * modules/frexpl-tests (Files): Likewise.
20506         * modules/fseek-tests (Files): Likewise.
20507         * modules/fseeko-tests (Files): Likewise.
20508         * modules/fsync-tests (Files): Likewise.
20509         * modules/ftell-tests (Files): Likewise.
20510         * modules/ftello-tests (Files): Likewise.
20511         * modules/futimens-tests (Files): Likewise.
20512         * modules/getaddrinfo-tests (Files): Likewise.
20513         * modules/getcwd-tests (Files): Likewise.
20514         * modules/getdelim-tests (Files): Likewise.
20515         * modules/getdtablesize-tests (Files): Likewise.
20516         * modules/getgroups-tests (Files): Likewise.
20517         * modules/gethostname-tests (Files): Likewise.
20518         * modules/getline-tests (Files): Likewise.
20519         * modules/getopt-posix-tests (Files): Likewise.
20520         * modules/gettimeofday-tests (Files): Likewise.
20521         * modules/glob-tests (Files): Likewise.
20522         * modules/iconv-tests (Files): Likewise.
20523         * modules/inet_ntop-tests (Files): Likewise.
20524         * modules/inet_pton-tests (Files): Likewise.
20525         * modules/isblank-tests (Files): Likewise.
20526         * modules/lchown-tests (Files): Likewise.
20527         * modules/ldexpl-tests (Files): Likewise.
20528         * modules/link-tests (Files): Likewise.
20529         * modules/linkat-tests (Files): Likewise.
20530         * modules/lseek-tests (Files): Likewise.
20531         * modules/lstat-tests (Files): Likewise.
20532         * modules/mbrtowc-tests (Files): Likewise.
20533         * modules/mbsinit-tests (Files): Likewise.
20534         * modules/mbsnrtowcs-tests (Files): Likewise.
20535         * modules/mbsrtowcs-tests (Files): Likewise.
20536         * modules/memchr-tests (Files): Likewise.
20537         * modules/memcmp-tests (Files): Likewise.
20538         * modules/memmem-tests (Files): Likewise.
20539         * modules/memrchr-tests (Files): Likewise.
20540         * modules/mkdir-tests (Files): Likewise.
20541         * modules/mkfifo-tests (Files): Likewise.
20542         * modules/mkfifoat-tests (Files): Likewise.
20543         * modules/mknod-tests (Files): Likewise.
20544         * modules/nanosleep-tests (Files): Likewise.
20545         * modules/nl_langinfo-tests (Files): Likewise.
20546         * modules/obstack-printf-tests (Files): Likewise.
20547         * modules/open-tests (Files): Likewise.
20548         * modules/openat-tests (Files): Likewise.
20549         * modules/perror-tests (Files): Likewise.
20550         * modules/pipe2-tests (Files): Likewise.
20551         * modules/poll-tests (Files): Likewise.
20552         * modules/popen-tests (Files): Likewise.
20553         * modules/posix_spawn-tests (Files): Likewise.
20554         * modules/posix_spawnp-tests (Files): Likewise.
20555         * modules/pread-tests (Files): Likewise.
20556         * modules/printf-posix-tests (Files): Likewise.
20557         * modules/pty-tests (Files): Likewise.
20558         * modules/random_r-tests (Files): Likewise.
20559         * modules/rawmemchr-tests (Files): Likewise.
20560         * modules/readlink-tests (Files): Likewise.
20561         * modules/remove-tests (Files): Likewise.
20562         * modules/rename-tests (Files): Likewise.
20563         * modules/renameat-tests (Files): Likewise.
20564         * modules/rmdir-tests (Files): Likewise.
20565         * modules/round-tests (Files): Likewise.
20566         * modules/roundf-tests (Files): Likewise.
20567         * modules/roundl-tests (Files): Likewise.
20568         * modules/select-tests (Files): Likewise.
20569         * modules/setenv-tests (Files): Likewise.
20570         * modules/sigaction-tests (Files): Likewise.
20571         * modules/sleep-tests (Files): Likewise.
20572         * modules/snprintf-posix-tests (Files): Likewise.
20573         * modules/snprintf-tests (Files): Likewise.
20574         * modules/sprintf-posix-tests (Files): Likewise.
20575         * modules/stat-tests (Files): Likewise.
20576         * modules/strcasestr-tests (Files): Likewise.
20577         * modules/strchrnul-tests (Files): Likewise.
20578         * modules/strerror-tests (Files): Likewise.
20579         * modules/strsignal-tests (Files): Likewise.
20580         * modules/strstr-tests (Files): Likewise.
20581         * modules/strtod-tests (Files): Likewise.
20582         * modules/strverscmp-tests (Files): Likewise.
20583         * modules/symlink-tests (Files): Likewise.
20584         * modules/symlinkat-tests (Files): Likewise.
20585         * modules/times-tests (Files): Likewise.
20586         * modules/trunc-tests (Files): Likewise.
20587         * modules/truncf-tests (Files): Likewise.
20588         * modules/truncl-tests (Files): Likewise.
20589         * modules/tsearch-tests (Files): Likewise.
20590         * modules/uname-tests (Files): Likewise.
20591         * modules/unlink-tests (Files): Likewise.
20592         * modules/unsetenv-tests (Files): Likewise.
20593         * modules/usleep-tests (Files): Likewise.
20594         * modules/utimensat-tests (Files): Likewise.
20595         * modules/vasprintf-tests (Files): Likewise.
20596         * modules/vdprintf-posix-tests (Files): Likewise.
20597         * modules/vfprintf-posix-tests (Files): Likewise.
20598         * modules/vprintf-posix-tests (Files): Likewise.
20599         * modules/vsnprintf-posix-tests (Files): Likewise.
20600         * modules/vsnprintf-tests (Files): Likewise.
20601         * modules/vsprintf-posix-tests (Files): Likewise.
20602         * modules/wcrtomb-tests (Files): Likewise.
20603         * modules/wcsnrtombs-tests (Files): Likewise.
20604         * modules/wcsrtombs-tests (Files): Likewise.
20605         * modules/wcwidth-tests (Files): Likewise.
20606         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20607         * tests/test-isinf.c (isinf): Likewise.
20608         * tests/test-isnan.c (isnan): Likewise.
20609         * tests/test-signbit.c (signbit): Likewise.
20610         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20611         declaration, either as macro or with correct signature.
20612         (select): Ensure function under test is declared with correct
20613         signature in correct header.
20614         * tests/test-atexit.c (atexit): Likewise.
20615         * tests/test-btowc.c (btowc): Likewise.
20616         * tests/test-canonicalize-lgpl.c (realpath)
20617         (canonicalize_file_name): Likewise.
20618         * tests/test-ceilf1.c (ceilf): Likewise.
20619         * tests/test-ceill.c (ceill): Likewise.
20620         * tests/test-chown.c (chown): Likewise.
20621         * tests/test-dprintf-posix.c (dprintf): Likewise.
20622         * tests/test-dup2.c (dup2): Likewise.
20623         * tests/test-dup3.c (dup3): Likewise.
20624         * tests/test-duplocale.c (duplocale): Likewise.
20625         * tests/test-fchdir.c (fchdir): Likewise.
20626         * tests/test-fchownat.c (fchownat): Likewise.
20627         * tests/test-fcntl.c (fcntl): Likewise.
20628         * tests/test-fdopendir.c (fdopendir): Likewise.
20629         * tests/test-fflush.c (fflush): Likewise.
20630         * tests/test-flock.c (flock): Likewise.
20631         * tests/test-floorf1.c (floorf): Likewise.
20632         * tests/test-floorl.c (floorl): Likewise.
20633         * tests/test-fnmatch.c (fnmatch): Likewise.
20634         * tests/test-fopen.c (fopen): Likewise.
20635         * tests/test-fprintf-posix.c (fprintf): Likewise.
20636         * tests/test-freopen.c (freopen): Likewise.
20637         * tests/test-frexp.c (frexp): Likewise.
20638         * tests/test-frexpl.c (frexpl): Likewise.
20639         * tests/test-fseek.c (fseek): Likewise.
20640         * tests/test-fseeko.c (fseeko): Likewise.
20641         * tests/test-fstatat.c (fstatat): Likewise.
20642         * tests/test-fsync.c (fsync): Likewise.
20643         * tests/test-ftell.c (ftell): Likewise.
20644         * tests/test-ftello.c (ftello): Likewise.
20645         * tests/test-futimens.c (futimens): Likewise.
20646         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20647         (gai_strerror): Likewise.
20648         * tests/test-getcwd.c (getcwd): Likewise.
20649         * tests/test-getdelim.c (getdelim): Likewise.
20650         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20651         * tests/test-getgroups.c (getgroups): Likewise.
20652         * tests/test-gethostname.c (gethostname): Likewise.
20653         * tests/test-getline.c (getline): Likewise.
20654         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20655         Likewise.
20656         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20657         * tests/test-glob.c (glob, globfree): Likewise.
20658         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20659         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20660         * tests/test-inet_pton.c (inet_pton): Likewise.
20661         * tests/test-isblank.c (isblank): Likewise.
20662         * tests/test-lchown.c (lchown): Likewise.
20663         * tests/test-ldexpl.c (ldexpl): Likewise.
20664         * tests/test-link.c (link): Likewise.
20665         * tests/test-linkat.c (linkat): Likewise.
20666         * tests/test-lseek.c (lseek): Likewise.
20667         * tests/test-lstat.c (lstat): Likewise.
20668         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20669         * tests/test-mbsinit.c (mbsinit): Likewise.
20670         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20671         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20672         * tests/test-memchr.c (memchr): Likewise.
20673         * tests/test-memcmp.c (memcmp): Likewise.
20674         * tests/test-memmem.c (memmem): Likewise.
20675         * tests/test-memrchr.c (memrchr): Likewise.
20676         * tests/test-mkdir.c (mkdir): Likewise.
20677         * tests/test-mkdirat.c (mkdirat): Likewise.
20678         * tests/test-mkfifo.c (mkfifo): Likewise.
20679         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20680         * tests/test-mknod.c (mknod): Likewise.
20681         * tests/test-nanosleep.c (nanosleep): Likewise.
20682         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20683         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20684         Likewise.
20685         * tests/test-open.c (open): Likewise.
20686         * tests/test-openat.c (openat): Likewise.
20687         * tests/test-perror.c (perror): Likewise.
20688         * tests/test-pipe2.c (pipe2): Likewise.
20689         * tests/test-poll.c (poll): Likewise.
20690         * tests/test-popen.c (popen, pclose): Likewise.
20691         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20692         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20693         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20694         (posix_spawn_file_actions_destroy)
20695         (posix_spawn_file_actions_addclose)
20696         (posix_spawn_file_actions_addopen)
20697         (posix_spawn_file_actions_adddup2): Likewise.
20698         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20699         * tests/test-pread.c (pread): Likewise.
20700         * tests/test-printf-posix.c (printf): Likewise.
20701         * tests/test-pty.c (openpty, forkpty): Likewise.
20702         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20703         (random_r): Likewise.
20704         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20705         * tests/test-readlink.c (readlink): Likewise.
20706         * tests/test-remove.c (remove): Likewise.
20707         * tests/test-rename.c (rename): Likewise.
20708         * tests/test-renameat.c (renameat): Likewise.
20709         * tests/test-rmdir.c (rmdir): Likewise.
20710         * tests/test-round1.c (round): Likewise.
20711         * tests/test-roundf1.c (roundf): Likewise.
20712         * tests/test-roundl.c (roundl): Likewise.
20713         * tests/test-setenv.c (setenv): Likewise.
20714         * tests/test-sigaction.c (sigaction): Likewise.
20715         * tests/test-sleep.c (sleep): Likewise.
20716         * tests/test-snprintf.c (snprintf): Likewise.
20717         * tests/test-sprintf-posix.c (sprintf): Likewise.
20718         * tests/test-stat.c (stat): Likewise.
20719         * tests/test-stpncpy.c (stpncpy): Likewise.
20720         * tests/test-strcasestr.c (strcasestr): Likewise.
20721         * tests/test-strchrnul.c (strchrnul): Likewise.
20722         * tests/test-strerror.c (strerror): Likewise.
20723         * tests/test-strsignal.c (strsignal): Likewise.
20724         * tests/test-strstr.c (strstr): Likewise.
20725         * tests/test-strtod.c (strtod): Likewise.
20726         * tests/test-strverscmp.c (strverscmp): Likewise.
20727         * tests/test-symlink.c (symlink): Likewise.
20728         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20729         * tests/test-times.c (times): Likewise.
20730         * tests/test-trunc1.c (trunc): Likewise.
20731         * tests/test-truncf1.c (truncf): Likewise.
20732         * tests/test-truncl.c (truncl): Likewise.
20733         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20734         Likewise.
20735         * tests/test-uname.c (uname): Likewise.
20736         * tests/test-unlink.c (unlink): Likewise.
20737         * tests/test-unlinkat.c (unlinkat): Likewise.
20738         * tests/test-unsetenv.c (unsetenv): Likewise.
20739         * tests/test-usleep.c (usleep): Likewise.
20740         * tests/test-utimensat.c (utimensat): Likewise.
20741         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20742         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20743         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20744         * tests/test-vprintf-posix.c (vprintf): Likewise.
20745         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20746         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20747         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20748         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20749         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20750         * tests/test-wcwidth.c (wcwidth): Likewise.
20751
20752         build: pull in conditional headers during GNULIB_POSIXCHECK
20753         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20754         definitions from any conditionally-included headers.
20755         * lib/stdlib.in.h (includes): Likewise.
20756         * lib/unistd.in.h (includes): Likewise.
20757
20758 2009-12-24  Bruno Haible  <bruno@clisp.org>
20759
20760         * tests/test-argv-iter.c: Include header file being tested immediately
20761         after config.h.
20762         * tests/test-base64.c: Likewise.
20763         * tests/test-flock.c: Likewise.
20764         * tests/test-fsync.c: Likewise.
20765         * tests/test-getdate.c: Likewise.
20766         * tests/test-getndelim2.c: Likewise.
20767         * tests/test-isfinite.c: Likewise.
20768         * tests/test-isinf.c: Likewise.
20769         * tests/test-strerror.c: Likewise.
20770         * tests/test-strsignal.c: Likewise.
20771
20772 2009-12-23  Eric Blake  <ebb9@byu.net>
20773
20774         unistd: work around cygwin bug
20775         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20776         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20777         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20778
20779 2009-12-23  Bruno Haible  <bruno@clisp.org>
20780
20781         localename: More tests.
20782         * tests/test-localename.c (SIZEOF): New macro.
20783         (categories): New variable.
20784         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20785         test_locale_name_default): Add test w.r.t. thread locale.
20786         (test_locale_name_thread): New function.
20787         (main): Invoke it.
20788
20789         localename: Make aware of thread locale.
20790         * lib/localename.h (gl_locale_name_thread): New declaration.
20791         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20792         behaviour with respect to thread locale.
20793         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20794         <langinfo.h>, glthread/lock.h.
20795         (SIZE_BITS): New macro.
20796         (string_hash): New function.
20797         (struct hash_node): New type.
20798         (HASH_TABLE_SIZE): New macro.
20799         (struniq_hash_table, struniq_lock): New variables.
20800         (struniq): New function.
20801         (gl_locale_name_thread): New function.
20802         (gl_locale_name): Invoke it.
20803         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20804         * modules/localename (Depends-on): Add lock.
20805         Reported by Mike Gran <spk121@yahoo.com>.
20806
20807 2009-12-23  Eric Blake  <ebb9@byu.net>
20808
20809         va-args: new module
20810         * modules/va-args: New file.
20811         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20812         * MODULES.html.sh (Core language properties): Mention it.
20813
20814         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20815         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20816         named alias for __attribute__((__unused__)).
20817         * lib/chown.c: Update client.
20818         * lib/fchmodat.c: Likewise.
20819         * lib/fts.c: Likewise.
20820         * lib/getdate.y: Likewise.
20821         * lib/getgroups.c: Likewise.
20822         * lib/getopt.c: Likewise.
20823         * lib/getugroups.c: Likewise.
20824         * lib/mkdir.c: Likewise.
20825         * lib/mkfifo.c: Likewise.
20826         * lib/mkfifoat.c: Likewise.
20827         * lib/mknod.c: Likewise.
20828         * lib/mknodat.c: Likewise.
20829         * lib/readlink.c: Likewise.
20830         * lib/se-context.in.h: Likewise.
20831         * lib/se-selinux.in.h: Likewise.
20832         * lib/sockets.c: Likewise.
20833         * lib/symlink.c: Likewise.
20834         * lib/symlinkat.c: Likewise.
20835         * lib/unicodeio.c: Likewise.
20836         * lib/unistr.h: Likewise.
20837         * tests/test-areadlink.c: Likewise.
20838         * tests/test-areadlinkat.c: Likewise.
20839         * tests/test-filenamecat.c: Likewise.
20840         * tests/test-fseeko.c: Likewise.
20841         * tests/test-ftello.c: Likewise.
20842         * tests/test-getdate.c: Likewise.
20843         * tests/test-getgroups.c: Likewise.
20844         * tests/test-gethostname.c: Likewise.
20845         * tests/test-quotearg.c: Likewise.
20846         * tests/test-version-etc.c: Likewise.
20847         * tests/test-xalloc-die.c: Likewise.
20848         * tests/test-xfprintf-posix.c: Likewise.
20849         * tests/test-xprintf-posix.c: Likewise.
20850         * tests/test-xvasprintf.c: Likewise.
20851
20852         tests: avoid compiler warnings
20853         * tests/test-fcntl.c (main): Delete unused parameters.
20854         * tests/test-freopen-safer.c (main): Likewise.
20855         * tests/test-xalloc-die.c (main): Mark unused parameters.
20856         * tests/test-fseeko.c (main): Likewise.
20857         * tests/test-ftello.c (main): Likewise.
20858         * tests/test-nanosleep.c (main): Avoid declaration warning.
20859         * tests/test-sleep.c (main): Likewise.
20860         * tests/test-unsetenv.c (main): Silence warning about string
20861         literal.
20862         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20863
20864 2009-12-23  Bruno Haible  <bruno@clisp.org>
20865
20866         * tests/test-localename.c (test_locale_name): New function, extracted
20867         from main. Also test mixed situations.
20868         (test_locale_name_posix, test_locale_name_environ,
20869         test_locale_name_default): New functions.
20870         (main): Invoke them all.
20871         * modules/localename-tests (configure.ac): Test for newlocale.
20872
20873 2009-12-23  Bruno Haible  <bruno@clisp.org>
20874
20875         unistd: Ensure getcwd gets declared before being overridden.
20876         * lib/unistd.in.h: Conditionally include <io.h>.
20877
20878 2009-12-22  Bruno Haible  <bruno@clisp.org>
20879
20880         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20881         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20882         (gl_WCHAR_H): Invoke it.
20883         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20884         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20885         Reported by Karl Berry <karl@freefriends.org>.
20886
20887 2009-12-22  Eric Blake  <ebb9@byu.net>
20888
20889         math, unistd: avoid redundant includes
20890         * lib/math.in.h (isnan): No need to re-include <math.h>.
20891         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20892
20893         getsubopt: work around cygwin bug
20894         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20895         avoid conflicting with system getsubopt.
20896         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20897         bug.
20898
20899         getopt: synchronize from glibc
20900         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20901         parameter order.  Adjust all callers.
20902         (_getopt_internal_r, main): Adjust quoting in error messages.
20903         Drop considerations for outdated POSIX 1003.2 error message.
20904         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20905         callers.
20906         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20907
20908         test-getopt: test stderr behavior
20909         * modules/getopt-posix-tests (Depends-on): Add dup2.
20910         * tests/test-getopt.c (ASSERT): Avoid stderr.
20911         (main): Move stderr to a temporary file.
20912         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20913         Instead, add parameter to inform caller if output occurred.
20914         (test_getopt): Adjust all existing tests to expect silence, and
20915         add new tests of leading ":".
20916         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20917         glibc shortcomings with leading "-:" or "+:" in optstring.
20918         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20919         Likewise.
20920         * doc/posix-functions/getopt.texi (getopt): Likewise.
20921
20922         test-getopt: enhance test
20923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20924         supports optind=0.
20925         * tests/test-getopt.c (OPTIND_MIN): Move...
20926         * tests/test-getopt.h (OPTIND_MIN): ...here.
20927         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20928         Require that optind=0 works, since modern BSD supports it in
20929         addition to optreset, and since coreutils expects it.
20930         (test_getopt_long_only): New test.
20931         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20932         glibc shortcomings with 'W;', and enforcement of optind=0.
20933         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20934         Likewise.
20935
20936 2009-12-21  Bruno Haible  <bruno@clisp.org>
20937
20938         localename: Improvements for MacOS X and Cygwin.
20939         * lib/localename.h (gl_locale_name_environ): New declaration.
20940         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20941         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20942         (gl_locale_name_posix): Invoke it.
20943         (gl_locale_name_default): Add comments. Use Windows native API also on
20944         Cygwin.
20945
20946 2009-12-21  Bruno Haible  <bruno@clisp.org>
20947
20948         Update list of Win32 locale ids.
20949         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20950         (LANG_SAMI): Renamed from LANG_SAAMI.
20951         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20952         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20953         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
20954         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
20955         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
20956         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
20957         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
20958         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
20959         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
20960         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
20961         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
20962         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
20963         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
20964         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
20965         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
20966         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
20967         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
20968         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
20969         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
20970         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
20971         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
20972         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
20973         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
20974         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
20975         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
20976         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
20977         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
20978         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
20979         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
20980         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
20981         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
20982         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
20983         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
20984         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
20985         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
20986         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
20987         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
20988         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
20989         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
20990         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
20991         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
20992         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
20993         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
20994         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
20995         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
20996         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
20997         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
20998         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
20999         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21000         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21001         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21002         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21003         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21004         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21005         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21006         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21007         Add more languages and countries for Sami, Sorbian. Add more countries
21008         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21009         for Pashto. Change country for Syriac, Tswana.
21010
21011 2009-12-21  Eric Blake  <ebb9@byu.net>
21012
21013         test-utimens: avoid spurious failure
21014         * tests/test-chown.h (nap): Factor...
21015         * tests/nap.h: ...into new file.
21016         * tests/test-lchown.h (nap): Avoid duplication.
21017         * tests/test-utimens-common.h (nap): Use shared implementation,
21018         necessary on file systems with 1-second resolution.
21019         * modules/chown-tests (Files): Include new file.
21020         * modules/fdutimensat-tests (Files): Likewise.
21021         * modules/futimens-tests (Files): Likewise.
21022         * modules/lchown-tests (Files): Likewise.
21023         * modules/openat-tests (Files): Likewise.
21024         * modules/utimens-tests (Files): Likewise.
21025         * modules/utimensat-tests (Files): Likewise.
21026
21027 2009-12-19  Eric Blake  <ebb9@byu.net>
21028
21029         futimens, utimensat: work around Linux bug
21030         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21031         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21032         * lib/utimensat.c (rpl_utimensat): Work around it.
21033         * lib/futimens.c (rpl_futimens): Adjust comment.
21034
21035         utimens: work around Linux ctime bug
21036         * lib/utimens.c (detect_ctime_bug): New helper function.
21037         (update_timespec): Differentiate between workaround needed for
21038         this bug vs. what is needed for systems that lack utimensat.
21039         (fdutimens, lutimens): Work around bug.
21040
21041         utimens: check for ctime update
21042         * tests/test-utimens-common.h (check_ctime): Define.
21043         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21044         * tests/test-futimens.h (test_futimens): Likewise.
21045         * tests/test-lutimens.h (test_lutimens): Likewise.
21046         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21047         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21048
21049 2009-12-19  Bruno Haible  <bruno@clisp.org>
21050
21051         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21052         * tests/test-dprintf-posix2.sh: New file.
21053         * tests/test-dprintf-posix2.c: New file.
21054         * modules/dprintf-posix-tests (Files): Add them.
21055         (configure.ac): Check for getrlimit and setrlimit.
21056         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21057
21058 2009-12-19  Bruno Haible  <bruno@clisp.org>
21059
21060         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21061         * tests/test-fprintf-posix3.sh: New file.
21062         * tests/test-fprintf-posix3.c: New file.
21063         * modules/fprintf-posix-tests (Files): Add them.
21064         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21065
21066 2009-12-19  Eric Blake  <ebb9@byu.net>
21067
21068         dirfd: fix prototype
21069         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21070         * lib/dirfd.c (dirfd): Likewise.
21071
21072         canonicalize: reduce memory usage
21073         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21074         allocation to size.
21075         Reported by Solar Designer <solar@openwall.com>.
21076
21077 2009-12-19  Bruno Haible  <bruno@clisp.org>
21078
21079         New module attribute 'Applicability'.
21080         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21081         * gnulib-tool: New option --extract-applicability.
21082         (func_usage): Document it.
21083         (sed_extract_prog): Recognize it.
21084         (func_get_applicability): New function.
21085         (func_import): Generalize handling of 'link-warning' module.
21086         * modules/link-warning (Applicability): New section.
21087         * modules/arg-nonnull (Applicability): New section.
21088         Repoted by Simon Josefsson <simon@josefsson.org>.
21089
21090 2009-12-19  Bruno Haible  <bruno@clisp.org>
21091
21092         fflush: tweak
21093         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21094         * lib/fseeko.c (rpl_fseeko): Likewise.
21095
21096 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21097
21098         * lib/gl_list.h: Fix typo in comment.
21099
21100 2009-12-16  Eric Blake  <ebb9@byu.net>
21101
21102         fcntl: use to simplify other modules
21103         * modules/cloexec (Depends-on): Add fcntl.
21104         * modules/fchdir (Depends-on): Likewise.
21105         * modules/fd-safer-flag (Depends-on): Likewise.
21106         * modules/unistd-safer (Depends-on): Likewise.
21107         * modules/dup3 (configure.ac): Set module indicator.
21108         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21109         missing.
21110         * lib/fchdir.c (_gl_register_dup): Fix comment.
21111         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21112         * lib/dup-safer.c (dup_safer): Likewise.
21113         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21114         * lib/dup3.c (dup3): Likewise.
21115         * tests/test-fchdir.c (main): Enhance test.
21116         Fixes a dup_cloexec bug reported by Ondřej Vašík.
21117
21118         fcntl: port portions of fcntl to mingw
21119         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21120         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21121         replacement for mingw.
21122         * modules/fcntl (Description): Update.
21123         (Depends-on): Add dup2.
21124         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21125         * modules/fcntl-h (Makefile.am): Substitute it.
21126         * lib/fcntl.in.h (fcntl): Update declaration.
21127         (F_DUPFD, F_GETFD): New macros, when needed.
21128         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21129         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21130         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21131         we now guarantee.
21132
21133         fcntl: work around cygwin bug in F_DUPFD
21134         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21135         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21136         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21137         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21138         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21139
21140         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21141         * modules/fcntl (Files): List new files.
21142         (configure.ac): Run a test.
21143         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21144         * lib/fcntl.c (rpl_fcntl): Likewise.
21145         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21146         (gl_FCNTL_H): Always replace fcntl.h.
21147         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21148         * lib/fcntl.in.h (fcntl): Declare replacement.
21149         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21150         needed, plus a witness.
21151         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21152         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21153         * tests/test-fcntl.c: New file.
21154         * modules/fcntl-tests: Likewise.
21155
21156         binary-io: avoid potential compilation warning
21157         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21158         directives.
21159
21160         fflush: avoid compilation error on NetBSD
21161         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21162         between off_t and fpos_t, since the latter is sometimes a struct.
21163         * lib/fseeko.c (rpl_fseeko): Likewise.
21164         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21165
21166 2009-12-15  Eric Blake  <ebb9@byu.net>
21167
21168         fcntl-h, stdio, sys_ioctl: fix declarations
21169         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21170         function must not take arguments.
21171         * lib/sys_ioctl.in.h (ioctl): Likewise.
21172         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21173         (open): Add a link warning.
21174
21175 2009-12-15  Jim Meyering  <meyering@redhat.com>
21176
21177         areadlink, areadlink-with-size: relax license to LGPLv2+
21178         * modules/areadlink (License): Relax to LGPLv2+.
21179         * modules/areadlink-with-size (License): Likewise.
21180
21181 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21182             Bruno Haible  <bruno@clisp.org>
21183
21184         *printf: Fix memory leak.
21185         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21186         * lib/vfprintf.c (vfprintf): Likewise.
21187         * lib/dprintf.c (dprintf): Likewise.
21188         * lib/vdprintf.c (vdprintf): Likewise.
21189
21190 2009-12-14  Eric Blake  <ebb9@byu.net>
21191
21192         accept4: adjust module dependencies
21193         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21194
21195         utimens: one more try at avoiding compiler warning
21196         * lib/utimens.c (lutimens): Lower scope of result.
21197
21198 2009-12-13  Bruno Haible  <bruno@clisp.org>
21199
21200         Move the malloc checking from module 'list' to new module 'xlist'.
21201         * modules/xlist: New file.
21202         * lib/gl_xlist.h: New file.
21203         * lib/gl_xlist.c: New file.
21204         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21205         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21206         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21207         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21208         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21209         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21210         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21211         gl_sortedlist_nx_add): New declarations.
21212         (struct gl_list_implementation): Rename and change methods accordingly.
21213         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21214         (gl_list_nx_create): Renamed from gl_list_create.
21215         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21216         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21217         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21218         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21219         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21220         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21221         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21222         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21223         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21224         gl_list_create_empty.
21225         (gl_list_nx_create): Renamed from gl_list_create.
21226         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21227         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21228         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21229         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21230         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21231         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21232         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21233         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21234         * lib/gl_array_list.c: Don't include xalloc.h.
21235         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21236         NULL upon out-of-memory.
21237         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21238         out-of-memory.
21239         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21240         Change return type to 'int'.
21241         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21242         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21243         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21244         upon out-of-memory.
21245         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21246         upon out-of-memory.
21247         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21248         upon out-of-memory.
21249         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21250         upon out-of-memory.
21251         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21252         out-of-memory.
21253         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21254         Update.
21255         (gl_array_list_implementation): Update.
21256         * lib/gl_carray_list.c: Don't include xalloc.h.
21257         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21258         Return NULL upon out-of-memory.
21259         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21260         out-of-memory.
21261         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21262         Change return type to 'int'.
21263         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21264         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21265         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21266         upon out-of-memory.
21267         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21268         upon out-of-memory.
21269         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21270         out-of-memory.
21271         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21272         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21273         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21274         Update.
21275         (gl_carray_list_implementation): Update.
21276         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21277         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21278         gl_linked_create_empty. Return NULL upon out-of-memory.
21279         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21280         out-of-memory.
21281         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21282         Change return type to 'int'. Return -1 upon out-of-memory.
21283         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21284         out-of-memory.
21285         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21286         upon out-of-memory.
21287         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21288         upon out-of-memory.
21289         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21290         NULL upon out-of-memory.
21291         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21292         upon out-of-memory.
21293         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21294         out-of-memory.
21295         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21296         Update.
21297         * lib/gl_linked_list.c: Don't include xalloc.h.
21298         (gl_linked_list_implementation): Update.
21299         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21300         (add_to_bucket): Change return type to 'int'.
21301         (gl_linkedhash_list_implementation): Update.
21302         * lib/gl_anytree_list1.h (free_subtree): New function.
21303         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21304         gl_tree_create_empty. Return NULL upon out-of-memory.
21305         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21306         Change return type to 'int'. Return -1 upon out-of-memory.
21307         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21308         out-of-memory.
21309         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21310         (gl_tree_remove_node): New function, moved here from
21311         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21312         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21313         Update.
21314         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21315         malloc, not xmalloc. Return NULL upon out-of-memory.
21316         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21317         out-of-memory.
21318         (gl_tree_remove_node_from_tree): New function, extracted from
21319         gl_tree_remove_node.
21320         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21321         upon out-of-memory.
21322         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21323         out-of-memory.
21324         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21325         upon out-of-memory.
21326         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21327         upon out-of-memory.
21328         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21329         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21330         not xmalloc. Return NULL upon out-of-memory.
21331         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21332         out-of-memory.
21333         (gl_tree_remove_node_from_tree): New function, extracted from
21334         gl_tree_remove_node.
21335         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21336         upon out-of-memory.
21337         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21338         out-of-memory.
21339         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21340         upon out-of-memory.
21341         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21342         upon out-of-memory.
21343         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21344         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21345         gl_anytree_list1.h before gl_anyavltree_list2.h.
21346         (gl_avltree_list_implementation): Update.
21347         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21348         gl_anytree_list1.h before gl_anyavltree_list2.h.
21349         (gl_rbtree_list_implementation): Update.
21350         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21351         Change return type to 'int'. Return -1 upon out-of-memory. Use
21352         __builtin_expect.
21353         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21354         (gl_avltreehash_list_implementation): Update.
21355         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21356         (gl_rbtreehash_list_implementation): Update.
21357         * modules/array-list (Depends-on): Remove xalloc.
21358         * modules/carray-list (Depends-on): Likewise.
21359         * modules/linked-list (Depends-on): Likewise.
21360         * modules/linkedhash-list (Depends-on): Likewise.
21361         * modules/avltree-list (Depends-on): Likewise.
21362         * modules/rbtree-list (Depends-on): Likewise.
21363         * modules/avltreehash-list (Depends-on): Likewise.
21364         * modules/rbtreehash-list (Depends-on): Likewise.
21365
21366         * modules/xsublist: New file.
21367         * lib/gl_xsublist.h: New file.
21368         * lib/gl_xsublist.c: New file.
21369         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21370         (gl_sublist_nx_create): New declaration.
21371         * lib/gl_sublist.c: Don't include xalloc.h.
21372         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21373         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21374         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21375         Change return type to 'int'. Return -1 upon out-of-memory.
21376         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21377         upon out-of-memory.
21378         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21379         NULL upon out-of-memory.
21380         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21381         upon out-of-memory.
21382         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21383         NULL upon out-of-memory.
21384         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21385         NULL upon out-of-memory.
21386         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21387         upon out-of-memory.
21388         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21389         (gl_sublist_list_implementation): Update.
21390         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21391         upon out-of-memory.
21392         * modules/sublist (Depends-on): Remove xalloc.
21393
21394         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21395         * tests/test-carray_list.c: Likewise.
21396         * tests/test-linked_list.c: Likewise.
21397         * tests/test-linkedhash_list.c: Likewise.
21398         * tests/test-avltree_list.c: Likewise.
21399         * tests/test-rbtree_list.c: Likewise.
21400         * tests/test-avltreehash_list.c: Likewise.
21401         * tests/test-rbtreehash_list.c: Likewise.
21402         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21403         * modules/carray-list-tests (Makefile.am): Likewise.
21404         * modules/linked-list-tests (Makefile.am): Likewise.
21405         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21406         * modules/avltree-list-tests (Makefile.am): Likewise.
21407         * modules/rbtree-list-tests (Makefile.am): Likewise.
21408         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21409         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21410
21411         * NEWS: Mention the changes.
21412
21413         * lib/clean-temp.c: Include gl_xlist.h.
21414         * modules/clean-temp (Depends-on): Add xlist.
21415
21416         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21417         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21418
21419         * tests/test-array_oset.c: Include gl_xlist.h.
21420         * modules/array-oset-tests (Depends-on): Add xlist.
21421
21422         Reported by José E. Marchesi <jemarch@gnu.org>.
21423
21424 2009-12-13  Bruno Haible  <bruno@clisp.org>
21425
21426         Move the malloc checking from module 'oset' to new module 'xoset'.
21427         * modules/xoset: New file.
21428         * lib/gl_xoset.h: New file.
21429         * lib/gl_xoset.c: New file.
21430         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21431         declarations.
21432         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21433         (struct gl_oset_implementation): Rename and change methods accordingly.
21434         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21435         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21436         'int'. Mark as __warn_unused_result__.
21437         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21438         gl_oset_create_empty.
21439         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21440         'int'.
21441         * lib/gl_array_oset.c: Don't include xalloc.h.
21442         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21443         malloc, not xmalloc.
21444         (grow): Change return type to 'int'. Don't call xalloc_die.
21445         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21446         to 'int'.
21447         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21448         'int'.
21449         (gl_array_oset_implementation): Update.
21450         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21451         gl_tree_create_empty.
21452         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21453         'int'.
21454         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21455         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21456         xmalloc.
21457         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21458         not xmalloc.
21459         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21460         xmalloc.
21461         (gl_avltree_oset_implementation): Update.
21462         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21463         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21464         xmalloc.
21465         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21466         not xmalloc.
21467         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21468         xmalloc.
21469         (gl_rbtree_oset_implementation): Update.
21470         * modules/array-oset (Depends-on): Remove xalloc.
21471         * modules/avltree-oset (Depends-on): Likewise.
21472         * modules/rbtree-oset (Depends-on): Likewise.
21473         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21474         * tests/test-avltree_oset.c: Likewise.
21475         * tests/test-rbtree_oset.c: Likewise.
21476         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21477         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21478         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21479         * NEWS: Mention the change.
21480
21481 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21482
21483         maint.mk: allow a project to override release-prep commands
21484         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21485         commands into a new rule.
21486         (release-prep): New rule.
21487         (release-prep-hook): New overridable variable.
21488
21489 2009-12-13  Bruno Haible  <bruno@clisp.org>
21490
21491         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21492
21493 2009-12-13  Jim Meyering  <meyering@redhat.com>
21494
21495         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21496         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21497
21498 2009-12-12  Bruno Haible  <bruno@clisp.org>
21499
21500         duplocale: Tweak.
21501         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21502
21503 2009-12-12  Karl Berry  <karl@gnu.org>
21504
21505         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21506
21507 2009-12-12  Bruno Haible  <bruno@clisp.org>
21508
21509         * m4/po.m4: Undo incorrect untabification.
21510
21511 2009-12-12  Bruno Haible  <bruno@clisp.org>
21512
21513         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21514         * modules/c-strtod (Depends-on): Add locale.
21515         * modules/c-strtold (Depends-on): Likewise.
21516
21517 2009-12-12  Bruno Haible  <bruno@clisp.org>
21518
21519         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21520
21521 2009-12-11  Eric Blake  <ebb9@byu.net>
21522
21523         setenv: relax requirement in light of POSIX ruling
21524         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21525         not NULL.
21526         * tests/test-setenv.c (main): Relax test.
21527         * tests/test-unsetenv.c (main): Likewise.
21528         * doc/posix-functions/setenv.texi (setenv): Document this.
21529         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21530
21531 2009-12-11  Bruno Haible  <bruno@clisp.org>
21532
21533         New module 'fd-safer-flag'.
21534         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21535         * lib/dup-safer.c (dup_safer_flag): Remove function.
21536         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21537         * lib/fd-safer.c (fd_safer_flag): Remove function.
21538         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21539         * modules/cloexec (configure.ac): Drop indicator macro.
21540         * modules/fd-safer-flag: New file.
21541         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21542         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21543         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21544
21545 2009-12-11  Bruno Haible  <bruno@clisp.org>
21546
21547         Tests for module 'nl_langinfo'.
21548         * modules/nl_langinfo-tests: New file.
21549         * tests/test-nl_langinfo.sh: New file.
21550         * tests/test-nl_langinfo.c: New file.
21551
21552         New module 'nl_langinfo'.
21553         * lib/nl_langinfo.c: New file.
21554         * m4/nl_langinfo.m4: New file.
21555         * modules/nl_langinfo: New file.
21556         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21557
21558 2009-12-11  Bruno Haible  <bruno@clisp.org>
21559
21560         Tests for module 'langinfo'.
21561         * modules/langinfo-tests: New file.
21562         * tests/test-langinfo.c: New file.
21563
21564         New module 'langinfo'.
21565         * lib/langinfo.in.h: New file.
21566         * m4/langinfo_h.m4: New file.
21567         * modules/langinfo: New file.
21568         * doc/posix-headers/langinfo.texi: Mention the new module.
21569
21570 2009-12-11  Bruno Haible  <bruno@clisp.org>
21571
21572         * lib/config.charset: Untabify.
21573
21574 2009-12-11  Bruno Haible  <bruno@clisp.org>
21575
21576         * modules/unistd-safer (configure.ac): Drop indicator macro.
21577
21578 2009-12-11  Bruno Haible  <bruno@clisp.org>
21579
21580         Move pipe2-safer code to its own file.
21581         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21582         * lib/pipe-safer.c (pipe2_safer): Remove function.
21583         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21584         (Makefile.am): Add it to lib_SOURCES.
21585
21586 2009-12-10  Bruno Haible  <bruno@clisp.org>
21587
21588         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21589
21590 2009-12-10  Bruno Haible  <bruno@clisp.org>
21591
21592         Declare which arguments expect non-NULL values, for GCC and clang.
21593         * build-aux/arg-nonnull.h: New file.
21594         * modules/arg-nonnull: New file.
21595         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21596         (inet_ntop, inet_pton): Use it.
21597         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21598         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21599         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21600         (open, openat): Use it.
21601         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21602         (fnmatch): Use it.
21603         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21604         (getopt, getopt_long, getopt_long_only): Use it.
21605         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21606         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21607         Use it.
21608         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21609         (iconv_open): Use it.
21610         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21611         (strtoimax, strtoumax): Use it.
21612         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21613         (duplocale): Use it.
21614         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21615         (frexp, frexpl): Use it.
21616         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21617         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21618         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21619         (tsearch, tfind, tdelete, twalk): Use it.
21620         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21621         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21622         sigpending): Use it.
21623         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21624         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21625         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21626         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21627         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21628         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21629         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21630         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21631         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21632         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21633         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21634         Use it.
21635         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21636         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21637         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21638         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21639         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21640         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21641         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21642         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21643         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21644         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21645         strtoull, unsetenv): Use it.
21646         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21647         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21648         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21649         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21650         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21651         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21652         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21653         (strcasecmp, strncasecmp): Use it.
21654         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21655         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21656         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21657         rpl_setsockopt): Use it.
21658         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21659         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21660         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21661         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21662         (gettimeofday): Use it.
21663         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21664         (times): Use it.
21665         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21666         (uname): Use it.
21667         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21668         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21669         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21670         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21671         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21672         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21673         unlinkat, write): Use it.
21674         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21675         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21676         * lib/argv-iter.h: Include arg-nonnull.h.
21677         (_ATTRIBUTE_NONNULL_): Remove macro.
21678         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21679         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21680         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21681         optimization.
21682         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21683         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21684         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21685         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21686         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21687         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21688         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21689         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21690         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21691         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21692         * modules/dirent (Depends-on): Add arg-nonnull.
21693         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21694         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21695         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21696         * modules/fnmatch (Depends-on): Add arg-nonnull.
21697         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21698         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21699         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21700         * modules/glob (Depends-on): Add arg-nonnull.
21701         (Makefile.am): Insert arg-nonnull.h into glob.h.
21702         * modules/iconv_open (Depends-on): Add arg-nonnull.
21703         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21704         * modules/inttypes (Depends-on): Add arg-nonnull.
21705         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21706         * modules/locale (Depends-on): Add arg-nonnull.
21707         (Makefile.am): Insert arg-nonnull.h into locale.h.
21708         * modules/math (Depends-on): Add arg-nonnull.
21709         (Makefile.am): Insert arg-nonnull.h into math.h.
21710         * modules/netdb (Depends-on): Add arg-nonnull.
21711         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21712         * modules/search (Depends-on): Add arg-nonnull.
21713         (Makefile.am): Insert arg-nonnull.h into search.h.
21714         * modules/signal (Depends-on): Add arg-nonnull.
21715         (Makefile.am): Insert arg-nonnull.h into signal.h.
21716         * modules/spawn (Depends-on): Add arg-nonnull.
21717         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21718         * modules/stdio (Depends-on): Add arg-nonnull.
21719         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21720         * modules/stdlib (Depends-on): Add arg-nonnull.
21721         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21722         * modules/string (Depends-on): Add arg-nonnull.
21723         (Makefile.am): Insert arg-nonnull.h into string.h.
21724         * modules/strings (Depends-on): Add arg-nonnull.
21725         (Makefile.am): Insert arg-nonnull.h into strings.h.
21726         * modules/sys_socket (Depends-on): Add arg-nonnull.
21727         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21728         * modules/sys_stat (Depends-on): Add arg-nonnull.
21729         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21730         * modules/sys_time (Depends-on): Add arg-nonnull.
21731         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21732         * modules/sys_times (Depends-on): Add arg-nonnull.
21733         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21734         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21735         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21736         * modules/time (Depends-on): Add arg-nonnull.
21737         (Makefile.am): Insert arg-nonnull.h into time.h.
21738         * modules/unistd (Depends-on): Add arg-nonnull.
21739         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21740         * modules/wchar (Depends-on): Add arg-nonnull.
21741         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21742         * modules/argv-iter (Depends-on): Add arg-nonnull.
21743         * tests/test-canonicalize.c (null_ptr): New function.
21744         (main): Use it.
21745         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21746         (main): Use it.
21747         * tests/test-memmem.c (null_ptr): New function.
21748         (main): Use it.
21749         Reported by Jim Meyering.
21750
21751 2009-12-10  Bruno Haible  <bruno@clisp.org>
21752
21753         Use spaces for indentation, not tabs.
21754         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21755         * m4/*.m4: Untabify.
21756         * build-aux/*.h: Untabify.
21757         * tests/**/*.[hc]: Untabify.
21758         * README: New section "Indent with spaces, not TABs", based on
21759         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21760         * NEWS: Mention the change.
21761
21762 2009-12-10  Bruno Haible  <bruno@clisp.org>
21763
21764         pty test: Fix link error.
21765         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21766         test_pty_LDADD.
21767
21768 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21769
21770         * modules/pty: New file.
21771         * modules/pty-tests: New file.
21772         * m4/pty.m4: New file.
21773         * tests/test-pty.c: New file.
21774         * doc/glibc-headers/pty.texi: Modified.
21775         * doc/glibc-functions/forkpty.texi: Modified.
21776         * doc/glibc-functions/openpty.texi: Modified.
21777
21778 2009-12-10  Bruno Haible  <bruno@clisp.org>
21779
21780         Avoid syntax error in C++ mode.
21781         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21782
21783 2009-12-10  Bruno Haible  <bruno@clisp.org>
21784
21785         Use sed with option -e.
21786         * gnulib-tool (func_version, func_emit_copyright_notice,
21787         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21788         option -e to sed.
21789         * modules/link-warning (Makefile.am): Likewise.
21790
21791 2009-12-10  Jim Meyering  <meyering@redhat.com>
21792
21793         mgetgroups: do not write bytes beyond end of malloc'd buffer
21794         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21795         username, we call getgroups with a one-element-shorter buffer,
21796         but still told it the length was original, max_n_groups.
21797
21798 2009-12-09  Eric Blake  <ebb9@byu.net>
21799
21800         cloexec: relax license
21801         * modules/cloexec (Maintainer): Add myself.
21802         (License): Use LGPL, not GPL.
21803
21804         link-warning: optimize generation
21805         * modules/link-warning (Makefile.am): Reduce process usage.
21806
21807 2009-12-09  Bruno Haible  <bruno@clisp.org>
21808
21809         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21810         workaround was added on 2009-11-17.
21811
21812 2009-12-09  Jim Meyering  <meyering@redhat.com>
21813             Bruno Haible  <bruno@clisp.org>
21814
21815         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21816         * modules/link-warning (Makefile.am): Make the comment-removing sed
21817         command more robust in the face of bootstrap-prepended comment lines.
21818
21819 2009-12-09  Bruno Haible  <bruno@clisp.org>
21820
21821         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21822         most one group.
21823
21824 2009-12-09  Simon Josefsson <simon@josefsson.org>
21825             Bruno Haible  <bruno@clisp.org>
21826
21827         * build-aux/link-warning.h: Add copyright notice.
21828         * modules/link-warning (Makefile.am): Generate link-warning.h from
21829         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21830         * NEWS: Mention change in link-warning module.
21831         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21832         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21833         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21834         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21835         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21836         * modules/math (Makefile.am): Add dependency to math.h.
21837         * modules/search (Makefile.am): Add dependency to search.h.
21838         * modules/signal (Makefile.am): Add dependency to signal.h.
21839         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21840         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21841         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21842         * modules/string (Makefile.am): Add dependency to string.h.
21843         * modules/strings (Makefile.am): Add dependency to strings.h.
21844         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21845         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21846         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21847         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21848         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21849         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21850         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21851         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21852         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21853
21854 2009-12-09  Bruno Haible  <bruno@clisp.org>
21855
21856         fchdir: Optimize away rpl_fstat when possible.
21857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21858         REPLACE_OPEN_DIRECTORY.
21859         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21860
21861 2009-12-09  Bruno Haible  <bruno@clisp.org>
21862
21863         * lib/fchdir.c: Update comment.
21864
21865 2009-12-09  Bruno Haible  <bruno@clisp.org>
21866
21867         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21868
21869 2009-12-08  Eric Blake  <ebb9@byu.net>
21870
21871         fchdir: avoid memory leak on re-registration.
21872         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21873
21874 2009-12-08  Jim Meyering  <meyering@redhat.com>
21875
21876         init.sh: avoid Solaris 10 /bin/sh portability problem
21877         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21878         sourced script:
21879           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21880           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21881           bar
21882         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21883         and two tests used that idiom.
21884         * tests/init.sh: Update suggested usage comments.
21885         (path_prepend_): New function, to be used in place
21886         of the --src-path=DIR option.
21887         (setup_): Move PATH-prepending code into path_prepend_.
21888         * tests/test-pread.sh: Adapt to new usage.
21889         * tests/test-xalloc-die.sh: Likewise.
21890
21891 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21892
21893         * doc/gnulib.texi (Glibc pty.h): Add.
21894         * doc/glibc-functions/forkpty.texi: Add.
21895         * doc/glibc-functions/openpty.texi: Add.
21896         Suggested by Bruno Haible.
21897
21898 2009-12-08  Eric Blake  <ebb9@byu.net>
21899
21900         fchdir: fix logic bugs
21901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21902         * tests/test-fchdir.c (main): Enhance test.
21903         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21904         is in use.
21905
21906         dup2: fix logic bugs
21907         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21908         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21909         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21910         exists.
21911         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21912
21913 2009-12-07  Eric Blake  <ebb9@byu.net>
21914
21915         unlink: fix m4 detection
21916         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21917
21918         unistd-safer: add unit test
21919         * modules/unistd-safer-tests: New file.
21920         * tests/test-dup-safer.c: Likewise.
21921         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21922         * tests/test-dup2.c (setmode): Likewise.
21923         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21924
21925         cloexec: preserve text vs. binary across dup_cloexec
21926         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21927         mode.
21928         * modules/dup2-tests (Depends-on): Add binary-io.
21929         * modules/cloexec-tests (Depends-on): Likewise.
21930         * tests/test-dup2.c (setmode, is_mode): New helpers.
21931         (main): Add tests that translation mode is preserved.
21932         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21933         Reported by Bruno Haible.
21934
21935         mgetgroups: reduce duplicate listings
21936         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21937         resulting array.
21938         * tests/test-chown.h (test_chown): Simplify client.
21939         * tests/test-lchown.h (test_lchown): Likewise.
21940
21941 2009-12-06  Bruno Haible  <bruno@clisp.org>
21942
21943         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21944         value.
21945
21946 2009-12-06  Bruno Haible  <bruno@clisp.org>
21947
21948         * lib/progname.c: Include stdio.h, stdlib.h.
21949         (set_program_name): Reject a NULL argument.
21950
21951 2009-12-05  Eric Blake  <ebb9@byu.net>
21952
21953         pipe2-safer: new module
21954         * modules/pipe2-safer: New file.
21955         * lib/unistd-safer.h (pipe2_safer): New prototype.
21956         * lib/unistd--.h (pipe2): New wrapper.
21957         * lib/pipe-safer.c (pipe2_safer): New function.
21958         * modules/pipe (Depends-on): Add pipe2-safer.
21959         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
21960
21961         stdlib-safer: preserve cloexec flag for mkostemp[s]
21962         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
21963         fd_safer_flag.
21964
21965         unistd-safer: allow preservation of cloexec status via flag
21966         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
21967         prototypes.
21968         * lib/dup-safer.c (dup_safer_flag): New function.
21969         * lib/fd-safer.c (fd_safer_flag): Likewise.
21970         * modules/cloexec (configure.ac): Set witness.
21971
21972         test-dup2: enhance test
21973         * modules/dup2-tests (Depends-on): Add cloexec.
21974         * tests/test-dup2.c (main): Enhance test.
21975
21976         cloexec: add dup_cloexec
21977         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
21978         header and comments.
21979         * lib/cloexec.c (set_cloexec_flag): Add comments.
21980         (dup_cloexec): New function, with mingw implementation borrowed
21981         from...
21982         * lib/w32spawn.h (dup_noinherit): ...here.
21983         * modules/execute (Depends-on): Add cloexec.
21984         * modules/pipe (Depends-on): Likewise.
21985         * modules/cloexec (Depends-on): Add dup2.
21986         * modules/cloexec-tests (Files): New file.
21987         * tests/test-cloexec.c: Likewise.
21988
21989         test-xalloc-die: fix test for mingw
21990         * modules/xalloc-die-tests (Files): Add tests/init.sh.
21991         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
21992         directory and .exe suffix off argv[0] output.
21993
21994         test-fseeko: fix test for mingw
21995         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
21996         than undefining fseek, so test will pass on mingw.
21997
21998 2009-12-05  Bruno Haible  <bruno@clisp.org>
21999
22000         * lib/progname.h (set_program_name): Clarify specification.
22001         * lib/progname.c (set_program_name): Likewise.
22002         Reported by Jim Meyering.
22003
22004 2009-12-05  Jim Meyering  <meyering@redhat.com>
22005
22006         maint.mk: backslash-escape parens in default regexp
22007         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22008         backslash-escape the literal parentheses.
22009
22010         maint.mk: news-date-check: use grep -E
22011         * top/maint.mk (today): Define a Make variable, not a...
22012         (news-date-check): ...shell variable.
22013         (news-date-regexp): Use the Make variable.
22014         Use grep's -E option.  Change the failing diagnostic to mention
22015         the variable, $(news-date-regexp).
22016
22017 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22018
22019         maintainer-makefile: allow customization of NEWS entry format
22020         * top/maint.mk (news-date-regexp): New overridable variable.
22021         (news-date-check): Use it.
22022
22023 2009-12-04  Eric Blake  <ebb9@byu.net>
22024
22025         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22026         * lib/mgetgroups.h (xgetgroups): New prototype.
22027         * lib/mgetgroups.c (xgetgroups): New wrapper.
22028         (mgetgroups): Handle ENOSYS.
22029         * modules/mgetgroups (Depends-on): Add realloc.
22030         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22031
22032         mgetgroups: avoid argument promotion issues with -1
22033         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22034         for invalid gid_t.
22035         * tests/test-chown.h (getegid, test_chown): Likewise.
22036         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22037
22038 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22039
22040         exclude: Fix header file problems.
22041         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22042
22043 2009-12-01  Jim Meyering  <meyering@redhat.com>
22044
22045         fts: fts_open: do not let an empty string cause immediate failure
22046         This is required in support of GNU rm, for which the command
22047         "rm A '' B" must process and remove both A and B, in spite of
22048         the empty string argument.
22049         * lib/fts.c (fts_open): Do not let the presence of an empty string
22050         cause fts_open to fail immediately.  Most fts-using tools must be
22051         able to process all arguments, in order, and can be expected to
22052         diagnose such arguments themselves.
22053
22054 2009-11-30  Eric Blake  <ebb9@byu.net>
22055
22056         utimens: fix compilation error
22057         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22058         Declare variable at right scope.
22059
22060 2009-11-29  Jim Meyering  <meyering@redhat.com>
22061
22062         bootstrap: handle perl-5.11's changed --version output
22063         * build-aux/bootstrap (get_version): Handle perl separately,
22064         since perl-5.11's --version output is different.
22065
22066 2009-11-28  Jim Meyering  <meyering@redhat.com>
22067
22068         userspec: depend on the inttostr module, too
22069         * modules/userspec (Depends-on): Add inttostr.
22070
22071         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22072         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22073         number of MAXUID when it evaluates to (uid_t) -1.
22074         Likewise for group ID.  Reported by Matt McCutchen in
22075         <http://savannah.gnu.org/bugs/?28113>
22076
22077         userspec: reformat to use spaces, not TABs
22078         * lib/userspec.c: Expand TABs to spaces.
22079         Add Emacs' "indent-tabs-mode: nil" hint.
22080
22081 2009-11-27  Eric Blake  <ebb9@byu.net>
22082
22083         getopt-gnu: flush out another BSD bug
22084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22085         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22086         flush out BSD bug.
22087         * tests/test-getopt.h (test_getopt): End lists with NULL.
22088         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22089         (test_getopt_long_posix): Enhance test.
22090         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22091         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22092         getopt-gnu.
22093         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22094         Likewise.
22095
22096 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22097
22098         * modules/idpriv-droptemp-tests (Notice): Fix text.
22099
22100 2009-11-27  Jim Meyering  <meyering@redhat.com>
22101
22102         test-xalloc-die: avoid spurious failure due to libtool argv difference
22103         In a libtool-enabled project, this test would fail due to a difference
22104         in the emitted program name, e.g.,
22105         -test-xalloc-die: memory exhausted
22106         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22107         Use program to avoid that.
22108         * modules/xalloc-die-tests (Depends-on): Add progname.
22109         * tests/test-xalloc-die.c: Include progname.h".
22110         (program_name): Remove decl.
22111         (main): Call set_program_name.
22112         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22113
22114 2009-11-26  Richard Jones  <rjones@redhat.com>
22115
22116         w32sock: leave win32 error in place.
22117         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22118
22119 2009-11-26  Eric Blake  <ebb9@byu.net>
22120
22121         init.sh: suggest to use skip_ and fail_ functions in comments
22122         * tests/init.sh: Add a sentence.
22123
22124 2009-11-25  Bruno Haible  <bruno@clisp.org>
22125
22126         init.sh: add documentation in comments
22127         * tests/init.sh: Add some developer and user documentation.
22128
22129 2009-11-26  Jim Meyering  <meyering@redhat.com>
22130
22131         init.sh: accommodate even those who specify bogus srcdir manually
22132         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22133         configure-time tests to be sanitized, so that there is no need to
22134         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22135         (with no double quotes) suffices.  However, since tests may be
22136         invoked manually, and since you may explicitly set srcdir to the
22137         name of a directory containing spaces, do quote its uses here.
22138         * tests/test-pread.sh: Likewise.
22139         Suggested by Bruno Haible.
22140
22141         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22142         * tests/test-pread.sh: Write no data into the pipe, because
22143         test-pread actually reads none.  This avoids a diagnostic,
22144         "bash: echo: write error: Broken pipe", that arises in the unusual
22145         event something is ignoring SIGPIPE, and might be interpreted
22146         as some sort of failure.  Reported by Bruno Haible.
22147
22148 2009-11-25  Jim Meyering  <meyering@redhat.com>
22149
22150         test-pread: cover failure with ESPIPE and EINVAL
22151         * tests/test-pread.c (main): Test for failure, too.
22152         * tests/test-pread.sh: Invoke with stdin on a pipe.
22153         Suggested by Eric Blake.
22154
22155         pread: improvement and fix
22156         * modules/pread (Depends-on): Depend on lseek, for portability to
22157         e.g., mingw.  Suggested by Eric Blake.
22158         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22159
22160         unistd.in.h: correct declaration of pread
22161         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22162         Reported by Richard W.M. Jones.
22163
22164         test-pread.sh: distribute the test script
22165         * modules/pread-tests (Files): Include test-pread.sh.
22166
22167         test-pread.sh: clean up
22168         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22169         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22170         That is unnecessary, since it's always ".".
22171         Suggestion from Eric Blake.
22172
22173         test-pread.sh: make executable
22174         * tests/test-pread.sh: Set executable bit.
22175         Reported by Eric Blake.
22176
22177         correct typo in test-pread.sh
22178         * tests/test-pread.sh: Add #! line.
22179
22180         test pread
22181         * tests/test-pread.c: New file.
22182         * tests/test-pread.sh: Likewise.
22183         * modules/pread-tests: Likewise.
22184
22185         pread: new module
22186         * modules/pread: New file.
22187         * lib/unistd.in.h (pread): Define/declare.
22188         * lib/pread.c (pread): New file.
22189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22190         * modules/unistd (Makefile.am): Substitute witnesses.
22191         * doc/posix-functions/pread.texi (pread): Update.
22192         * MODULES.html.sh: Add pread.
22193
22194 2009-11-25  Jim Meyering  <meyering@redhat.com>
22195
22196         tests/init.sh: new file to be used via most *.sh tests
22197         * tests/init.sh: New file.
22198
22199 2009-11-25  Eric Blake  <ebb9@byu.net>
22200
22201         utimens: work around older Linux failure with symlinks
22202         * lib/utimens.c (lutimensat_works_really): New variable.
22203         (fdutimens, lutimens): Use it to manage kernels that support
22204         nanosecond times on files, but not on symlinks.
22205         Reported by Ondřej Vašík.
22206
22207         utimes: fix configure grammar
22208         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22209
22210 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22211
22212         regex: Fix fastmap for multibyte character ranges.
22213         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22214         characters when a multibyte character range is included.
22215
22216 2009-11-22  Andy Wingo  <wingo@pobox.com>
22217
22218         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22219         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22220
22221 2009-11-24  Bruno Haible  <bruno@clisp.org>
22222
22223         doc: Most *_l functions exist in MacOS X 10.5.
22224         * doc/posix-functions/duplocale.texi: Update platforms list.
22225         * doc/posix-functions/freelocale.texi: Likewise.
22226         * doc/posix-functions/newlocale.texi: Likewise.
22227         * doc/posix-functions/uselocale.texi: Likewise.
22228         * doc/posix-functions/isalnum_l.texi: Likewise.
22229         * doc/posix-functions/isalpha_l.texi: Likewise.
22230         * doc/posix-functions/isblank_l.texi: Likewise.
22231         * doc/posix-functions/iscntrl_l.texi: Likewise.
22232         * doc/posix-functions/isdigit_l.texi: Likewise.
22233         * doc/posix-functions/isgraph_l.texi: Likewise.
22234         * doc/posix-functions/islower_l.texi: Likewise.
22235         * doc/posix-functions/isprint_l.texi: Likewise.
22236         * doc/posix-functions/ispunct_l.texi: Likewise.
22237         * doc/posix-functions/isspace_l.texi: Likewise.
22238         * doc/posix-functions/isupper_l.texi: Likewise.
22239         * doc/posix-functions/iswalnum_l.texi: Likewise.
22240         * doc/posix-functions/iswalpha_l.texi: Likewise.
22241         * doc/posix-functions/iswblank_l.texi: Likewise.
22242         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22243         * doc/posix-functions/iswctype_l.texi: Likewise.
22244         * doc/posix-functions/iswdigit_l.texi: Likewise.
22245         * doc/posix-functions/iswgraph_l.texi: Likewise.
22246         * doc/posix-functions/iswlower_l.texi: Likewise.
22247         * doc/posix-functions/iswprint_l.texi: Likewise.
22248         * doc/posix-functions/iswpunct_l.texi: Likewise.
22249         * doc/posix-functions/iswspace_l.texi: Likewise.
22250         * doc/posix-functions/iswupper_l.texi: Likewise.
22251         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22252         * doc/posix-functions/isxdigit_l.texi: Likewise.
22253         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22254         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22255         * doc/posix-functions/strcoll_l.texi: Likewise.
22256         * doc/posix-functions/strfmon_l.texi: Likewise.
22257         * doc/posix-functions/strftime_l.texi: Likewise.
22258         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22259         * doc/posix-functions/strxfrm_l.texi: Likewise.
22260         * doc/posix-functions/tolower_l.texi: Likewise.
22261         * doc/posix-functions/toupper_l.texi: Likewise.
22262         * doc/posix-functions/towctrans_l.texi: Likewise.
22263         * doc/posix-functions/towlower_l.texi: Likewise.
22264         * doc/posix-functions/towupper_l.texi: Likewise.
22265         * doc/posix-functions/wcscoll_l.texi: Likewise.
22266         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22267         * doc/posix-functions/wctrans_l.texi: Likewise.
22268         * doc/posix-functions/wctype_l.texi: Likewise.
22269         * doc/glibc-functions/strptime_l.texi: Likewise.
22270         * doc/glibc-functions/strtod_l.texi: Likewise.
22271         * doc/glibc-functions/strtof_l.texi: Likewise.
22272         * doc/glibc-functions/strtol_l.texi: Likewise.
22273         * doc/glibc-functions/strtold_l.texi: Likewise.
22274         * doc/glibc-functions/strtoll_l.texi: Likewise.
22275         * doc/glibc-functions/strtoul_l.texi: Likewise.
22276         * doc/glibc-functions/strtoull_l.texi: Likewise.
22277         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22278         * doc/glibc-functions/wcstod_l.texi: Likewise.
22279         * doc/glibc-functions/wcstof_l.texi: Likewise.
22280         * doc/glibc-functions/wcstol_l.texi: Likewise.
22281         * doc/glibc-functions/wcstold_l.texi: Likewise.
22282         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22283         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22284         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22285
22286 2009-11-24  Bruno Haible  <bruno@clisp.org>
22287
22288         duplocale: Fix logic bug.
22289         * lib/duplocale.c: Don't include <langinfo.h>.
22290         (_NL_LOCALE_NAME): Remove macro.
22291         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22292         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22293
22294 2009-11-23  Jim Meyering  <meyering@redhat.com>
22295
22296         test-update-copyright: don't hard-code /usr/bin/perl
22297         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22298         perl to print the current year.  Gilles Espinasse reported that
22299         the replaced use of perl was hard-coded as /usr/bin/perl.
22300
22301 2009-11-23  Bruno Haible  <bruno@clisp.org>
22302
22303         duplocale: Add support for glibc 2.3.x.
22304         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22305
22306 2009-11-22  Bruno Haible  <bruno@clisp.org>
22307
22308         vasnprintf: Tiny optimization.
22309         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22310         MacOS X.
22311
22312 2009-11-22  Bruno Haible  <bruno@clisp.org>
22313
22314         Tests for module 'duplocale'.
22315         * modules/duplocale-tests: New file.
22316         * tests/test-duplocale.c: New file.
22317
22318         New module 'duplocale'.
22319         * m4/duplocale.m4: New file.
22320         * lib/locale.in.h (duplocale): New declaration.
22321         * lib/duplocale.c: New file.
22322         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22323         gl_LOCALE_H_DEFAULTS): New macros.
22324         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22325         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22326         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22327         REPLACE_DUPLOCALE.
22328         * modules/duplocale: New file.
22329         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22330
22331 2009-11-22  Bruno Haible  <bruno@clisp.org>
22332
22333         * modules/locale-tests (configure.ac): Test for newlocale function.
22334         * tests/test-locale.c: When the system has extended locale functions,
22335         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22336
22337         locale: Make locale_t available when possible.
22338         * lib/locale.in.h: Include <xlocale.h> when it exists.
22339         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22340         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22341         * modules/locale (Depends-on): Add extensions.
22342         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22343         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22344
22345 2009-11-22  Bruno Haible  <bruno@clisp.org>
22346
22347         Add comments.
22348         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22349         invocation.
22350         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22351         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22352         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22353
22354 2009-11-22  Bruno Haible  <bruno@clisp.org>
22355
22356         error: account for the possibility of freopen (stdout).
22357         * lib/error.c: Include <unistd.h>.
22358         (flush_stdout): New function, extracted from error and error_at_line.
22359         Determine stdout's fd dynamically.
22360         (error, error_at_line): Invoke flush_stdout.
22361         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22362         * modules/error (Depends-on): Add unistd.
22363
22364 2009-11-22  Bruno Haible  <bruno@clisp.org>
22365
22366         diffseq: Add comment.
22367         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22368
22369 2009-11-22  Jim Meyering  <meyering@redhat.com>
22370
22371         c-stack: avoid defining an unused static function
22372         * lib/c-stack.c (find_stack_direction): Do not define this function
22373         when it will not be used.
22374
22375         diffseq: avoid spurious gcc warnings
22376         * lib/diffseq.h (IF_LINT2): Define.
22377         (compareseq): Use it to initialize two members of "part".
22378         This avoids two used-uninitialized warnings.
22379
22380 2009-11-21  Jim Meyering  <meyering@redhat.com>
22381
22382         c-stack: avoid "ignoring return value of `write'" warning
22383         * lib/c-stack.c: Include "ignore-value.h".
22384         (die): Explicitly ignore each write return value.
22385         * modules/c-stack (Depends-on): Add ignore-value.
22386
22387 2009-11-21  Bruno Haible  <bruno@clisp.org>
22388
22389         diffseq: reduce scope of variable 'best'.
22390         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22391         variable, earlier used for two different purposes.
22392
22393 2009-11-21  Jim Meyering  <meyering@redhat.com>
22394
22395         diffseq: remove useless assignment to "best"
22396         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22397         assignment.  At that point "best" is already guaranteed to be zero.
22398
22399 2009-11-20  Eric Blake  <ebb9@byu.net>
22400
22401         build: mention ftp redirector in release announcements
22402         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22403         values that used to come from cfg.mk; mention FTP redirect URL.
22404         * build-aux/announce-gen: Mention the mirror list.
22405         Suggested by Karl Berry.
22406
22407         nanosleep: improve port to mingw
22408         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22410         LIB_NANOSLEEP, but only when needed.
22411         * modules/select (Link): Document LIBSOCKET.
22412         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22413         enough.
22414
22415         nanosleep: work around cygwin bug
22416         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22417         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22418         bug.
22419         (getnow): Delete, not needed.
22420         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22421         LIB_CLOCK_GETTIME.
22422         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22423         clock-time, gettime.
22424         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22425         bug.
22426         * modules/nanosleep-tests: New test.
22427         * tests/test-nanosleep.c: New file.
22428
22429         sleep: work around cygwin bug
22430         * lib/sleep.c (rpl_sleep): Work around the bug.
22431         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22432         (gl_PREREQ_SLEEP): Delete unused macro.
22433         * modules/sleep (Depends-on): Add verify.
22434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22435         * modules/unistd (Makefile.am): Substitute witness.
22436         * lib/unistd.in.h (sleep): Update prototype.
22437         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22438         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22439         * modules/sleep-tests (Depends-on): Check for alarm.
22440
22441 2009-11-20  Jim Meyering  <meyering@redhat.com>
22442
22443         maint.mk: improve sc_prohibit_magic_number_exit
22444         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22445         so it does not match uses like System.exit(1).
22446         Add comments showing how to correct all offenders.
22447
22448 2009-11-19  Eric Blake  <ebb9@byu.net>
22449
22450         xalloc-die-tests: add missing library
22451         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22452
22453         test-xvasprintf: silence compiler warnings
22454         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22455         empty string from gcc.
22456
22457 2009-11-19  Jim Meyering  <meyering@redhat.com>
22458
22459         xfreopen: new module, from coreutils
22460         * modules/xfreopen: New module.
22461         * lib/xfreopen.c: New file.
22462         * lib/xfreopen.h: New file.
22463         * MODULES.html.sh (File stream based Input/Output"): Add it.
22464
22465 2009-11-19  Eric Blake  <ebb9@byu.net>
22466
22467         manywarnings: depend on warnings
22468         * modules/manywarnings (Depends-on): Add warnings.
22469
22470         build: avoid compiler warnings
22471         * lib/select.c (rpl_select): Delete unused variable.
22472         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22473
22474 2009-11-18  Eric Blake  <ebb9@byu.net>
22475
22476         tests: avoid false negative with --with-packager
22477         * tests/test-version-etc.sh: Discard packager information.
22478         * tests/test-argp-version-etc-1.sh: Likewise.
22479         Reported by Mike Frysinger.
22480
22481         utimens: fix regression on Solaris
22482         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22483         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22484         can only change fd timestamps via futimesat.  Instead, use an
22485         additional witness macro to avoid BSD bug.
22486         Reported by Jim Meyering.
22487
22488 2009-11-17  Eric Blake  <ebb9@byu.net>
22489
22490         usleep: use it to simplify tests
22491         * modules/stat-time-tests (Depends-on): Add usleep.
22492         (configure.ac): Drop usleep check.
22493         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22494         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22495         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22496         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22497         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22498         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22499         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22500         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22501         Likewise.
22502         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22503         * tests/test-lchown.h (nap): Likewise.
22504         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22505         * tests/test-stat-time.c (nap): Likewise.
22506         * tests/test-utimens-common.h (nap): Update comments.
22507
22508         usleep: new module
22509         * modules/usleep: New file.
22510         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22511         * lib/usleep.c (usleep): Likewise.
22512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22513         * modules/unistd (Makefile.am): Substitute witnesses.
22514         * lib/unistd.in.h (usleep): Add declaration.
22515         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22516         * MODULES.html.sh (Date and time): Likewise.
22517         * modules/usleep-tests (Depends-on): New test.
22518         * tests/test-usleep.c: New file.
22519
22520         chown: work around OpenBSD bug
22521         * lib/chown.c (rpl_chown): Work around the bug.
22522         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22523         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22524         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22525         * modules/chown (Depends-on): Add stdbool.
22526         * modules/lchown (Depends-on): Likewise.
22527         * doc/posix-functions/chown.texi (chown): Document the bug.
22528         * doc/posix-functions/lchown.texi (lchown): Likewise.
22529         * tests/test-lchown.h (test_chown): Relax test.
22530
22531         mkstemp: avoid conflict with C++ keyword template
22532         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22533         * lib/mkostemp.c (mkostemp): Likewise.
22534         * lib/mkostemps.c (mkostemps): Likewise.
22535         * lib/mkstemp.c (mkstemp): Likewise.
22536         * lib/mkstemps.c (mkstemps): Likewise.
22537
22538         xalloc-die-tests: optimize
22539         * tests/test-xalloc-die.sh: Reduce number of processes.
22540
22541 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22542
22543         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22544         patch from ludo@gnu.org (Ludovic Courtès).
22545
22546 2009-11-17  Jim Meyering  <meyering@redhat.com>
22547
22548         version-etc: use proper license string
22549         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22550         * modules/version-etc-fsf: Likewise.
22551
22552 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22553
22554         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22555         printed to stdout.  Deal with EOL differences.
22556
22557 2009-11-17  Eric Blake  <ebb9@byu.net>
22558
22559         unsetenv: work around Solaris bug
22560         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22561         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22562         Reported by Jim Meyering.
22563
22564         vasnprintf: avoid compiler warnings
22565         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22566         variables.
22567         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22568
22569 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22570
22571         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22572         settings since xalloc-die is no longer the self test,
22573         xalloc-die.sh is.
22574
22575 2009-11-17  Jim Meyering  <meyering@redhat.com>
22576
22577         test-xalloc-die.sh: make the code agree with the commit log
22578         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22579         at the end, just in case you happen to have a test-xalloc-die
22580         program in some other PATH directory.
22581
22582         test-xalloc-die.sh: fix a portability bug
22583         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22584         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22585         Otherwise, argv[0] (as often seen in diagnostics) would be too
22586         system-dependent, sometimes with, and sometimes without the leading "./".
22587
22588         version-etc-fsf: relax license to LGPLv3+
22589         * modules/version-etc-fsf (License): Relax license.
22590
22591 2009-11-16  Eric Blake  <ebb9@byu.net>
22592
22593         xalloc-die-tests: avoid printing null pointer
22594         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22595         shell script.
22596         * tests/test-xalloc-die.c (program_name): Declare.
22597         * tests/test-xalloc-die.sh (tmpfiles): New file.
22598
22599         setenv, unsetenv: work around various bugs
22600         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22601         (setenv) [HAVE_SETENV]: Work around bugs.
22602         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22603         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22604         for bugs.
22605         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22606         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22608         * modules/stdlib (Makefile.am): Update substitutions.
22609         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22610         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22611         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22612         * modules/setenv-tests: New test.
22613         * modules/unsetenv-tests: Likewise.
22614         * tests/test-setenv.c: New file.
22615         * tests/test-unsetenv.c: Likewise.
22616
22617 2009-11-16  Jim Meyering  <meyering@redhat.com>
22618
22619         version-etc: relax license to LGPLv3+
22620         * modules/version-etc (License): Relax license.
22621
22622         better AC_REQUIRE expanded-before-required-warning avoidance
22623         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22624         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22625         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22626         which is no longer needed.
22627
22628 2009-11-16  Eric Blake  <ebb9@byu.net>
22629
22630         test-freading: clean up temporary file
22631         * tests/test-freading.c (main): Remove file on success, and use
22632         ASSERT more liberally.
22633         Reported by Jim Meyering.
22634
22635 2009-11-16  Jim Meyering  <meyering@redhat.com>
22636
22637         avoid new AC_REQUIRE expanded-before-required warnings
22638         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22639         merely using it.
22640         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22641         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22642
22643 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22644
22645         * tests/test-xalloc-die.c: New file.
22646         * modules/xalloc-die-tests: New file.
22647         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22648         XFAIL_TESTS so it can be appended by modules.
22649
22650 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22651
22652         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22653         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22654
22655 2009-11-14  Eric Blake  <ebb9@byu.net>
22656
22657         fnmatch: avoid compiler warning
22658         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22659         to silence compiler warning about mismatch signedness in ?:.
22660         Reported by Robert Millan.
22661
22662         intprops: add double-inclusion guard
22663         * lib/intprops.h: Allow idempotent includes.
22664         Suggested by Bruce Korb.
22665
22666         openat: detect Solaris fchownat bug
22667         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22668         penalizing glibc chownat when only lchownat is broken.
22669         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22670         trailing slash bugs.
22671         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22672         * modules/openat-tests (Files): Include more files.
22673         (Depends-on): Add mgetgroups, sleep, stat-time.
22674         (configure.ac): Add additional checks.
22675         (Makefile.am): Build new test.
22676         * tests/test-fchownat.c: New file.
22677
22678         lchown: detect Solaris and FreeBSD bug
22679         * lib/lchown.c (rpl_lchown): Work around bug.
22680         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22682         * modules/unistd (Makefile.am): Populate it.
22683         * lib/unistd.in.h (lchown): Update declaration.
22684         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22685         * modules/lchown-tests: New file.
22686         * tests/test-lchown.h (test_lchown): Likewise.
22687         * tests/test-lchown.c (main): Likewise.
22688
22689         chown: detect Solaris and FreeBSD bug
22690         * lib/chown.c (rpl_chown): Work around bug.
22691         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22692         (gl_PREREQ_CHOWN): Delete.
22693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22694         * modules/unistd (Makefile.am): Populate it.
22695         * lib/unistd.in.h (chown): Update declaration.
22696         * lib/lchown.c (chown): Update client.
22697         * modules/lchown (Depends-on): Add lstat.
22698         * doc/posix-functions/chown.texi (chown): Document the bug.
22699         * doc/posix-functions/getgroups.texi (getgroups): Document
22700         getgroups pitfall.
22701         * modules/chown-tests: New file.
22702         * tests/test-chown.h (test_chown): Likewise.
22703         * tests/test-chown.c (main): Likewise.
22704
22705 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22706
22707         gnulib-tool: correctly detect absence of m4 directories
22708         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22709
22710 2009-11-14  Jim Meyering  <meyering@redhat.com>
22711
22712         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22713         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22714
22715 2009-11-14  John W. Eaton  <jwe@gnu.org>
22716
22717         strftime.h: wrap funtion declaration in extern "C" block
22718         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22719
22720 2009-11-13  Eric Blake  <ebb9@byu.net>
22721
22722         getgroups: avoid compiler warning
22723         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22724
22725         getgroups: work around FreeBSD bug
22726         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22727         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22728         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22729         * tests/test-getgroups.c (main): Fix buffer overrun.
22730
22731         getgroups: avoid compilation failure
22732         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22733         * modules/getgroups (Depends-on): Add stdint.
22734
22735 2009-11-13  Jim Meyering  <meyering@redhat.com>
22736
22737         test-getgroups: avoid compilation failure
22738         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22739
22740 2009-11-13  Eric Blake  <ebb9@byu.net>
22741
22742         mgetgroups: new module, taken from coreutils
22743         * modules/mgetgroups: New file.
22744         * lib/mgetgroups.h: Likewise.
22745         * lib/mgetgroups.c (mgetgroups): Likewise.
22746         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22747         * MODULES.html.sh (Users and groups): Mention it.
22748
22749         getgroups: don't expose GETGROUPS_T to user
22750         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22751         an element at a time if GETGROUPS_T is wrong size.
22752         * lib/getugroups.h (getugroups): Change signature.
22753         * lib/unistd.in.h (getgroups): Likewise.
22754         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22755         signature needs fixing.
22756         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22757         AC_TYPE_GETGROUPS.
22758         * modules/group-member (Depends-on): Add getgroups.
22759         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22760         (group_member): Rely on getgroups replacement.
22761         * lib/getugroups.c (getugroups): Use gid_t.
22762         * tests/test-getgroups.c (main): Likewise.
22763         * NEWS: Mention the signature change.
22764         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22765         problem with signature.
22766         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22767         GETGROUPS_T is still useful for setgroups.
22768
22769         getgroups, getugroups: provide stubs for mingw
22770         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22771         * lib/getugroups.c (getugroups): Likewise.
22772         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22773         function.  Modernize replacement scheme.
22774         (gl_PREREQ_GETGROUPS): Delete.
22775         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22776         * modules/getgroups (configure.ac): Declare witness.
22777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22778         * modules/unistd (Depends-on): Substitute witness.
22779         * lib/unistd.in.h (getgroups): Declare replacement.
22780
22781         getgroups: avoid calling exit
22782         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22783         drop xalloc.
22784         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22785         dependencies.
22786         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22787         exiting, in the rare case of malloc failure.
22788
22789         getgroups: fix logic error
22790         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22791         has more than 20 groups.
22792         * modules/getgroups-tests: New test.
22793         * tests/test-getgroups.c: New file.
22794
22795 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22796
22797         * tests/test-base64.c: Improve.
22798
22799 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22800
22801         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22802         Blake <ebb9@byu.net>.
22803
22804 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22805
22806         * tests/test-xvasprintf.c: Add %s%s related checks.
22807
22808 2009-11-12  Eric Blake  <ebb9@byu.net>
22809
22810         version-etc: match standards.texi style
22811         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22812         and use <> only for URLs.
22813
22814 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22815
22816         fts: do not fail on a submount during traversal
22817         * lib/fts.c (fts_build): Read the stat info again after opening
22818         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22819         Original report at http://bugzilla.redhat.com/501848.
22820
22821 2009-11-12  Jim Meyering  <meyering@redhat.com>
22822
22823         bootstrap: sync from coreutils
22824         * build-aux/bootstrap (bootstrap_epilogue): New function.
22825         Use git_modules_config in one more place.  This make bootstrap's
22826         --gnulib-srcdir option more useful for testing.
22827
22828         bootstrap: generalize autoheader check
22829         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22830         AC_CONFIG_HEADERS.
22831
22832 2009-11-11  Eric Blake  <ebb9@byu.net>
22833
22834         mkfifoat: use new modules for Solaris and BSD bugs
22835         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22836         * lib/mkfifoat.c (mknodat): Split...
22837         * lib/mknodat.c (mknodat): ...into new file.
22838         * modules/mkfifoat (Files): Ship new file.
22839         (Depends-on): Add mkfifo, mknod.
22840         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22841         (Depends-on): Add symlink.
22842         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22843         redundant with test_mkfifo.h.
22844         (do_mkfifoat, do_mknodat): New helpers.
22845
22846         mknod: new module
22847         * modules/mknod: New file.
22848         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22849         * lib/mknod.c (mknod): Likewise.
22850         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22851         defaults.
22852         * modules/sys_stat (Makefile.am): Substitute them.
22853         * lib/sys_stat.in.h (mknod): Declare replacement.
22854         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22855         Document it.
22856         * doc/posix-functions/mknod.texi (mknod): Likewise.
22857         * modules/mknod-tests: New test.
22858         * tests/test-mknod.c: Likewise.
22859
22860         mkfifo: new module
22861         * modules/mkfifo: New file.
22862         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22863         * lib/mkfifo.c (mkfifo): Likewise.
22864         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22865         defaults.
22866         * modules/sys_stat (Makefile.am): Substitute them.
22867         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22868         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22869         Document it.
22870         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22871         * modules/mkfifo-tests: New test.
22872         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22873         from test-mkfifoat.c.
22874         * tests/test-mkfifo.c: New file.
22875
22876         readlink: detect FreeBSD bug
22877         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22878         slash on symlink.
22879         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22880         * tests/test-readlink.h (test_readlink): Enhance test.
22881
22882         symlink: detect FreeBSD bug
22883         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22884         slash on symlink.
22885         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22886         * tests/test-symlink.h (test_symlink): Enhance test.
22887
22888 2009-11-10  Eric Blake  <ebb9@byu.net>
22889
22890         link: detect FreeBSD bug
22891         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22892         symlink.
22893         * doc/posix-functions/link.texi (link): Document the bug.
22894         * tests/test-link.h (test_link): Enhance test.
22895         * tests/test-linkat.c (main): Update caller.
22896
22897         unlink, remove: detect FreeBSD bug
22898         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22899         slash on symlink.
22900         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22901         * doc/posix-functions/remove.texi (remove): Likewise.
22902         * tests/test-unlink.h (test_unlink): Enhance test.
22903         * tests/test-remove.c (main): Likewise.
22904
22905 2009-11-09  Eric Blake  <ebb9@byu.net>
22906
22907         rename: detect FreeBSD bug
22908         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22909         slash on symlink.
22910         * modules/renameat-tests (Depends-on): Add filenamecat.
22911         * tests/test-rename.h (test_rename): Allow one more errno.
22912         * tests/test-renameat.c (main): Likewise.
22913         * doc/posix-functions/rename.texi (rename): Document the bug.
22914
22915         open: detect FreeBSD bug
22916         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22917         symlink.
22918         * doc/posix-functions/open.texi (open): Document the bug.
22919         * doc/posix-functions/utimes.texi (utimes): Likewise.
22920         * tests/test-open.h (test_open): Add parameters, and test symlink
22921         handling.
22922         * tests/test-open.c (main): Adjust caller.
22923         * tests/test-fcntl-safer.c (main): Likewise.
22924         * modules/open-tests (Depends-on): Add stdbool, symlink.
22925         * modules/fcntl-safer-tests (Depends-on): Likewise.
22926         * tests/test-openat.c (main): Add test-open tests.
22927
22928         stat: detect FreeBSD bug
22929         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22930         symlink.
22931         * doc/posix-functions/stat.texi (stat): Document the bug.
22932         * tests/test-stat.h (test_stat_func): Add argument.
22933         * tests/test-stat.c (main): Adjust caller.
22934         * tests/test-fstatat.c (main): Likewise.
22935         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22936         Reported by Jim Meyering.
22937
22938 2009-11-09  James Youngman  <jay@gnu.org>
22939
22940         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22941         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22942
22943 2009-11-08  Jim Meyering  <meyering@redhat.com>
22944
22945         utimens: remove invalid futimesat call
22946         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22947         It used the file descriptor of the target file as the DIR_FD
22948         parameter and NULL as the file name.  That caused failure with
22949         errno == EFAULT on FreeBSD-8.0-rc2
22950
22951 2009-11-07  Eric Blake  <ebb9@byu.net>
22952
22953         fflush, freadseek: use fseeko, not fseek
22954         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
22955         (clear_ungetc_buffer): Avoid potential problems on large files.
22956         * lib/freadseek.c (freadseek): Likewise.
22957         * modules/freadseek (Depends-on): Add fseeko.
22958         * modules/fseek (configure.ac): Set a witness.
22959         * tests/test-fflush.c (main): Use fseeko.
22960         * tests/test-fpurge.c (fseek): Disable link warning.
22961         * tests/test-freadable.c (fseek): Likewise.
22962         * tests/test-freading.c (fseek): Likewise.
22963         * tests/test-fseeko.c (fseek): Likewise.
22964         * tests/test-ftell.c (fseek): Likewise.
22965         * tests/test-ftello.c (fseek): Likewise.
22966         * tests/test-fwritable.c (fseek): Likewise.
22967         * tests/test-fwriting.c (fseek): Likewise.
22968
22969 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22970
22971         * modules/memchr (Depends-on): Drop getpagesize dependency.
22972
22973 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22974
22975         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
22976         Reported by Ludovic Courtès.
22977         * build-aux/pmccabe2html: Improve example usage.
22978         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
22979
22980 2009-11-06  Jim Meyering  <meyering@redhat.com>
22981
22982         do-release-commit-and-tag: New module.
22983         Automate the release-commit and tag process.
22984         * build-aux/do-release-commit-and-tag: New script, from coreutils.
22985         * modules/do-release-commit-and-tag: New file.
22986         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22987
22988 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22989
22990         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
22991         because test-select.c uses inet_pton.
22992
22993 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22994
22995         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
22996         GETADDRINFO_LIB.  Bump serial number.
22997         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
22998         Suggested by Eric Blake <ebb9@byu.net>.
22999
23000 2009-11-05  Eric Blake  <ebb9@byu.net>
23001
23002         strtod: detect darwin bug
23003         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23004         Reported by Leo Davis.
23005
23006         freopen-safer: new module
23007         * modules/freopen-safer: New module.
23008         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23009         * lib/freopen-safer.c (freopen_safer): New file.
23010         * lib/stdio-safer.h (freopen_safer): New declaration.
23011         * lib/stdio--.h (freopen): New override.
23012         * MODULES.html.sh (File stream based Input/Output): Mention it.
23013         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23014         freopen-safer module.
23015         * doc/posix-functions/stderr.texi (stderr): Likewise.
23016         * doc/posix-functions/stdin.texi (stdin): Likewise.
23017         * doc/posix-functions/stdout.texi (stdout): Likewise.
23018         * modules/freopen-safer-tests: New test.
23019         * tests/test-reopen-safer.c: New file.
23020
23021 2009-11-05  Jim Meyering  <meyering@redhat.com>
23022
23023         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23024         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23025
23026 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23027
23028         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23029
23030 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23031
23032         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23033
23034 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23035
23036         Fix link error.
23037         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23038         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23039
23040 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23041
23042         * tests/test-func.c: Also test value of __func__.
23043
23044 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23045
23046         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23047         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23048
23049 2009-11-05  Bruno Haible  <bruno@clisp.org>
23050
23051         Fix link error.
23052         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23053         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23054         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23055
23056 2009-11-05  Bruno Haible  <bruno@clisp.org>
23057
23058         Tests for module 'inet_pton'.
23059         * modules/inet_pton-tests: New file.
23060         * tests/test-inet_pton.c: New file.
23061
23062 2009-11-05  Bruno Haible  <bruno@clisp.org>
23063
23064         Tests for module 'inet_ntop'.
23065         * modules/inet_ntop-tests: New file.
23066         * tests/test-inet_ntop.c: New file.
23067
23068 2009-11-04  Eric Blake  <ebb9@byu.net>
23069
23070         stdlib-safer: wrap all mkstemp variants
23071         * modules/mkostemp (configure.ac): Set witness.
23072         * modules/mkostemps (configure.ac): Likewise.
23073         * modules/mkstemps (configure.ac): Likewise.
23074         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23075         (mkstemps_safer): Wrap more functions.
23076         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23077         wrapping.
23078         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23079         (mkstemps_safer): Implement the wrappers.
23080
23081         mkstemps, mkostemps: new modules
23082         * modules/mkostemps: New module.
23083         * modules/mkstemps: Likewise.
23084         * lib/mkostemps.c (mkostemps): New file.
23085         * lib/mkstemps.c (mkstemps): Likewise.
23086         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23087         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23089         * modules/stdlib (Makefile.am): Substitute them.
23090         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23091         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23092         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23093         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23094         * MODULES.html.sh (File system functions): Mention them.
23095
23096         tempname: resync from glibc
23097         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23098         same values for __GT_FILE as glibc.  Abort even when assertions
23099         are disabled.
23100         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23101         match its value otherwise.  Allow idempotent inclusion.
23102         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23103         * lib/mkostemp.c (mkostemp): Likewise.
23104         * lib/mkstemp.c (mkstemp): Likewise.
23105         * lib/tmpfile.c (tmpfile): Likewise.
23106         * NEWS: Document this.
23107
23108         utimens: fix use of futimens on older Linux
23109         * lib/utimens.c (fdutimens): Use updated, rather than original,
23110         timespec to avoid bug in older Linux kernel.
23111         Reported by Simon Josefsson.
23112
23113 2009-11-04  Bruno Haible  <bruno@clisp.org>
23114
23115         Make num_processors more flexible and consistent.
23116         * lib/nproc.h (enum nproc_query): New type.
23117         (num_processors): Add a 'query' argument.
23118         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23119         (num_processors): Add a 'query' argument. Test the value of the
23120         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23121         mingw, count the number of CPUs available for the current process.
23122         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23123         Check for sched_getaffinity and sched_getaffinity_np.
23124         * modules/nproc (Depends-on): Add c-ctype, extensions.
23125         * NEWS: Mention the change.
23126
23127 2009-11-03  Bruno Haible  <bruno@clisp.org>
23128
23129         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23130
23131 2009-11-03  Jim Meyering  <meyering@redhat.com>
23132
23133         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23134         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23135         if it is defined.
23136
23137 2009-11-02  Eric Blake  <ebb9@byu.net>
23138
23139         mktime, timegm: share common declaration
23140         * lib/mktime-internal.h: New file.
23141         * lib/mktime.c: Use it rather than open-coding a declaration.
23142         * lib/timegm.c: Likewise.
23143         * modules/mktime (Files): Ship it.
23144         * modules/timegm (Files): Likewise.
23145         Suggested by Bruno Haible.
23146
23147         test-update-copyright: update test to match script changes
23148         * tests/test-update-copyright.sh: Avoid hard-coding perl
23149         location.  Don't update *.bak created by earlier runs.
23150
23151 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23152             Simon Josefsson  <simon@josefsson.org>
23153             Bruno Haible  <bruno@clisp.org>
23154
23155         Fix link error on Solaris 8.
23156         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23157         also in libnsl. Define also INET_PTON_LIB.
23158         * modules/inet_pton (Link): New section.
23159
23160 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23161             Bruno Haible  <bruno@clisp.org>
23162
23163         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23164         * modules/inet_ntop (Link): New section.
23165         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23166
23167 2009-11-02  Eric Blake  <ebb9@byu.net>
23168
23169         maint: avoid compiler warnings in m4 macros
23170         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23171         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23172
23173 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23174
23175         * m4/pmccabe2html.m4: Remove file.
23176         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23177         function.  Change maintainer.
23178         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23179         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23180         Courtès).
23181
23182 2009-10-31  Eric Blake  <ebb9@byu.net>
23183
23184         fseeko: fix m4 regression
23185         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23186         regression from 2009-10-27.
23187         Reported by Ralf Wildenhues.
23188
23189 2009-10-31  Jim Meyering  <meyering@redhat.com>
23190
23191         inttostr: aesthetics and improved (compile-time) safety
23192         Define inttype_is_signed rather than inttype_is_unsigned,
23193         since the sole use is via "#if inttype_is_signed".
23194         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23195         inttype_is_unsigned.
23196         * lib/offtostr.c (inttype_is_signed): Likewise.
23197         * lib/uinttostr.c (inttype_is_signed): Likewise.
23198         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23199         * lib/inttostr.c (inttostr): Use verify to cross-check the
23200         inttype_is_signed value and the signedness of the actual type.
23201         * modules/inttostr (Depends-on): Add verify.
23202
23203 2009-10-30  Eric Blake  <ebb9@byu.net>
23204
23205         build: avoid compiler warnings
23206         * lib/fchmodat.c (lchmod): Mark unused variables.
23207         * lib/getopt.c (_getopt_initialize): Likewise.
23208         * lib/mktime.c (__mktime_internal): Provide prototype.
23209         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23210         older gcc that do not understand #pragma GCC diagnostic.
23211         * lib/uinttostr.c (inttype_is_unsigned): Define.
23212         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23213
23214 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23215
23216         stat: fix compilation on AIX
23217         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23218         only see struct stat64.
23219
23220 2009-10-30  Eric Blake  <ebb9@byu.net>
23221
23222         exclude: make more robust
23223         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23224         rather than masking a coding bug.
23225         Suggested by Bruno Haible.
23226
23227 2009-10-30  Jim Meyering  <meyering@redhat.com>
23228
23229         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23230         Rather than putting #!/usr/bin/perl on the first line,
23231         start with a variant of what's recommended by "man perlrun" that
23232         invokes the first "perl" program from your shell's search path.
23233         * build-aux/gitlog-to-changelog: Replace #!... as above.
23234         Add a "Local Variables" perl mode setting.
23235         Prompted by a patch from Ludovic Courtès.
23236         Improved by Eric Blake.
23237         * build-aux/useless-if-before-free: Likewise.
23238         * build-aux/announce-gen: Likewise.
23239         * build-aux/update-copyright: Likewise.
23240
23241 2009-10-29  Eric Blake  <ebb9@byu.net>
23242
23243         filenamecat-lgpl: adjust clients
23244         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23245         filenamecat.
23246         * modules/renameat (Depends-on): Likewise.
23247
23248         filenamecat: split into filenamecat-lgpl
23249         * modules/filenamecat-lgpl: New module.
23250         * modules/filenamecat (Files): Move library-safe files into
23251         filenamecat-lgpl.
23252         (Depends-on): Add filenamecat-lgpl.
23253         (configure.ac): Declare witness.
23254         * lib/filenamecat.h (file_name_concat): Only declare when using
23255         GPL module.
23256         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23257         Move...
23258         * lib/filenamecat-lgpl.c: ...into new file.
23259         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23260         (gl_FILE_NAME_CONCAT): Use it.
23261         * MODULES.html.sh (File system functions): Mention new module.
23262
23263         argp: avoid memory leak
23264         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23265         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23266         base_name, since the latter malloc()s and can call exit().
23267         Leak introduced 2006-07-03.
23268
23269         dirname-lgpl: adjust clients that don't need full dirname
23270         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23271         * modules/filenamecat (Depends-on): Likewise.
23272         * modules/linkat (Depends-on): Likewise.
23273         * modules/mkancesdirs (Depends-on): Likewise.
23274         * modules/mkdir (Depends-on): Likewise.
23275         * modules/openat (Depends-on): Likewise.
23276         * modules/savewd (Depends-on): Likewise.
23277         * modules/rename (Depends-on): Likewise.
23278         (License): Relax license.
23279         * modules/mkdir-tests (Depends-on): Drop progname.
23280         (Makefile.am): Delete unneeded LDADD.
23281         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23282
23283         dirname: split into dirname-lgpl
23284         * modules/dirname-lgpl: New module.
23285         * modules/dirname (Files): Move library-safe files into
23286         dirname-lgpl.
23287         (Depends-on): Add dirname-lgpl.
23288         (configure.ac): Declare witness.
23289         * modules/double-slash-root (License): Relax license.
23290         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23291         module.
23292         * lib/dirname.c (dir_len, mdir_name): Move...
23293         * lib/dirname-lgpl.c: ...into new file.
23294         * lib/basename.c (last_component, base_len): Move...
23295         * lib/basename-lgpl.c: ...into new file.
23296         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23297         (gl_DIRNAME): Use it.
23298         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23299         Mention new module.
23300         * modules/dirname-tests (Depends-on): Add progname.
23301         * tests/test-dirname.c (program_name): Delete.
23302
23303         mkdir: make safe for libraries
23304         * modules/mkdir (Depends-on): Drop xalloc.
23305         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23306         exit.
23307
23308         tests: avoid some compiler warnings
23309         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23310         literals.
23311         * tests/test-memchr.c (main): Avoid type mismatch.
23312         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23313         * tests/test-base64.c (main): Likewise.
23314         * tests/test-getdelim.c (main): Likewise.
23315         * tests/test-gethostname.c (main): Likewise.
23316         * tests/test-getline.c (main): Likewise.
23317         * tests/test-netinet_in.c (main): Likewise.
23318         * tests/test-select.c (open_server_socket, main): Likewise.
23319         * tests/test-select-stdin.c (main): Likewise.
23320         * tests/test-sockets.c (main): Likewise.
23321         * tests/test-strsignal.c (main): Likewise.
23322         * tests/test-sys_select.c (main): Likewise.
23323         * tests/test-sys_socket.c (main): Likewise.
23324         * tests/test-u64.c (main): Likewise.
23325         * tests/test-xfprintf-posix.c (main): Likewise.
23326         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23327
23328         sockets: avoid compiler warning
23329         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23330
23331         maint: detect usage(1) and other suspicious exits
23332         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23333
23334 2009-10-29  Jim Meyering  <meyering@redhat.com>
23335
23336         timespec: long-to-int truncation could make timespec_cmp malfunction
23337         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23338         a multiple of 2^32 nanoseconds as no difference.
23339
23340 2009-10-28  Jim Meyering  <meyering@redhat.com>
23341
23342         fprintftime: wrap macro code argument in "do {...} while(0)"
23343         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23344         cpy macro must be a statement that can be followed by a semicolon.
23345         Now that the else clause contains a comment and is hence longer
23346         than one line, I require curly braces.  That in turn requires
23347         that we wrap this code block in the standard do...while(0).
23348
23349         fprintftime: remove stray semicolon from previous change
23350         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23351
23352         fprintftime: avoid a warning about ignored fwrite return value
23353         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23354         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23355         that is unsafe.
23356         * modules/fprintftime (Depends-on): Add ignore-value.
23357
23358         exclude: avoid an unwarranted warning
23359         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23360
23361 2009-10-27  Eric Blake  <ebb9@byu.net>
23362
23363         fseek: avoid compilation failure when fflush is replaced
23364         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23365         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23366         module is in use.
23367         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23368         module is not in use; since REPLACE_FSEEK worked otherwise.
23369         (GNULIB_FTELLO): Likewise for ftell.
23370         Reported by Ian Beckwith and others.
23371
23372 2009-10-27  Bruno Haible  <bruno@clisp.org>
23373
23374         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23375         Reported by Jim Meyering.
23376
23377 2009-10-27  Jim Meyering  <jim@meyering.net>
23378             Bruno Haible  <bruno@clisp.org>
23379
23380         Avoid warning despite dropping the return value of fwrite.
23381         * lib/unicodeio.c: Include ignore-value.h.
23382         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23383         * modules/unicodeio (Depends-on): Add ignore-value.
23384
23385 2009-10-26  Eric Blake  <ebb9@byu.net>
23386
23387         areadlinkat: fix fallback path
23388         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23389         pointer and zero.
23390
23391 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23392
23393         Use a better IO block size for modern systems
23394         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23395         * lib/md2.c: Likewise.
23396         * lib/md4.c: Likewise.
23397         * lib/md5.c: Likewise.
23398         * lib/sha1.c: Likewise.
23399         * lib/sha256.c: Likewise.
23400         * lib/sha512.c: Likewise.
23401
23402 2009-10-22  Eric Blake  <ebb9@byu.net>
23403
23404         tests: avoid several compiler warnings
23405         * tests/test-getcwd.c (main): Avoid buffer underflow.
23406         * tests/test-getdate.c (main): String literals are not safe with
23407         putenv, so use setenv.  Declare unused argument.
23408         * modules/getdate-tests (Depends-on): Add setenv.
23409         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23410         problems with string literals in char *.
23411         * tests/test-hash.c (main): Avoid shadowing declaration.
23412         (insert_new): Treat string literals as char const *.
23413         * tests/test-getopt.h (test_getopt): Likewise.
23414         (getopt_loop): Alter types to minimize casting elsewhere.
23415         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23416         (test_getopt_long_posix): Likewise.
23417         (do_getopt_long): Add wrapper to minimize casting.
23418         * tests/test-atexit.c (clear_temp_file): Use void.
23419         * tests/test-areadlink-with-size.c (main): Declare unused
23420         arguments.
23421         * tests/test-areadlink.c (main): Likewise.
23422         * tests/test-areadlinkat-with-size.c (main): Likewise.
23423         * tests/test-areadlinkat.c (main): Likewise.
23424         * tests/test-canonicalize-lgpl.c (main): Likewise.
23425         * tests/test-canonicalize.c (main): Likewise.
23426         * tests/test-dirent-safer.c (main): Likewise.
23427         * tests/test-dirname.c (main): Likewise.
23428         * tests/test-dup2.c (main): Likewise.
23429         * tests/test-fchdir.c (main): Likewise.
23430         * tests/test-fcntl-h.c (main): Likewise.
23431         * tests/test-fcntl-safer.c (main): Likewise.
23432         * tests/test-fdopendir.c (main): Likewise.
23433         * tests/test-fdutimensat.c (main): Likewise.
23434         * tests/test-fflush.c (main): Likewise.
23435         * tests/test-filenamecat.c (main): Likewise.
23436         * tests/test-filevercmp.c (main): Likewise.
23437         * tests/test-fopen-safer.c (main): Likewise.
23438         * tests/test-fopen.c (main): Likewise.
23439         * tests/test-fpending.c (main): Likewise.
23440         * tests/test-fpurge.c (main): Likewise.
23441         * tests/test-freading.c (main): Likewise.
23442         * tests/test-fstatat.c (main): Likewise.
23443         * tests/test-fsync.c (main): Likewise.
23444         * tests/test-futimens.c (main): Likewise.
23445         * tests/test-getndelim2.c (main): Likewise.
23446         * tests/test-gettimeofday.c (main): Likewise.
23447         * tests/test-getopt.c (main): Likewise.
23448         * tests/test-i-ring.c (main): Likewise.
23449         * tests/test-inttypes.c (main): Likewise.
23450         * tests/test-link.c (main): Likewise.
23451         * tests/test-lstat.c (main): Likewise.
23452         * tests/test-math.c (main): Likewise.
23453         * tests/test-md5.c (main): Likewise.
23454         * tests/test-memchr2.c (main): Likewise.
23455         * tests/test-memrchr.c (main): Likewise.
23456         * tests/test-mkdir.c (main): Likewise.
23457         * tests/test-mkdirat.c (main): Likewise.
23458         * tests/test-mkfifoat.c (main): Likewise.
23459         * tests/test-open.c (main): Likewise.
23460         * tests/test-openat-safer.c (main): Likewise.
23461         * tests/test-openat.c (main): Likewise.
23462         * tests/test-quotearg.c (main): Likewise.
23463         * tests/test-rawmemchr.c (main): Likewise.
23464         * tests/test-readlink.c (main): Likewise.
23465         * tests/test-remove.c (main): Likewise.
23466         * tests/test-rename.c (main): Likewise.
23467         * tests/test-renameat.c (main): Likewise.
23468         * tests/test-rmdir.c (main): Likewise.
23469         * tests/test-sha1.c (main): Likewise.
23470         * tests/test-signal.c (main): Likewise.
23471         * tests/test-sigaction.c (main): Likewise.
23472         * tests/test-stat.c (main): Likewise.
23473         * tests/test-stat-time.c (main): Likewise.
23474         * tests/test-stddef.c (main): Likewise.
23475         * tests/test-stdint.c (main): Likewise.
23476         * tests/test-stdio.c (main): Likewise.
23477         * tests/test-stdlib.c (main): Likewise.
23478         * tests/test-strchrnul.c (main): Likewise.
23479         * tests/test-strerror.c (main): Likewise.
23480         * tests/test-string.c (main): Likewise.
23481         * tests/test-strtod.c (main): Likewise.
23482         * tests/test-strverscmp.c (main): Likewise.
23483         * tests/test-symlink.c (main): Likewise.
23484         * tests/test-symlinkat.c (main): Likewise.
23485         * tests/test-sys_stat.c (main): Likewise.
23486         * tests/test-sys_time.c (main): Likewise.
23487         * tests/test-time.c (main): Likewise.
23488         * tests/test-unistd.c (main): Likewise.
23489         * tests/test-unlink.c (main): Likewise.
23490         * tests/test-unlinkat.c (main): Likewise.
23491         * tests/test-utimens.c (main): Likewise.
23492         * tests/test-utimensat.c (main): Likewise.
23493         * tests/test-version-etc.c (main): Likewise.
23494         * tests/test-wchar.c (main): Likewise.
23495         * tests/test-wctype.c (main): Likewise.
23496         * tests/test-xprintf-posix.c (main): Likewise.
23497         * tests/test-posixtm.c (main): Likewise.
23498         (STREQ): Delete unused macro.
23499         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23500         shadowed variables.
23501         * tests/test-memchr.c (main): Likewise.
23502
23503 2009-10-21  Eric Blake  <ebb9@byu.net>
23504
23505         areadlinkat: avoid failure on older glibc
23506         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23507         rather than mis-comparing 0 against FUNC_RESULT of char*.
23508
23509 2009-10-21  Bruno Haible  <bruno@clisp.org>
23510
23511         * modules/stpncpy (License): Relicense under LGPLv2+.
23512         Reported by David Lutterkort <lutter@redhat.com>.
23513
23514 2009-10-20  Eric Blake  <ebb9@byu.net>
23515
23516         utimensat: work around Solaris 9 bug
23517         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23518         has trailing slash bugs.
23519         * tests/test-lutimens.h (test_lutimens): Enhance test.
23520         * tests/test-utimens.h (test_utimens): Likewise.
23521         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23522         * doc/posix-functions/utimes.texi (utimes): Likewise.
23523         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23524         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23525         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23526         * doc/posix-functions/futimens.texi (futimens): Likewise.
23527
23528         fdutimensat: new module
23529         * modules/fdutimensat: New file.
23530         * lib/fdutimensat.c (fdutimensat): Likewise.
23531         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23532         * MODULES.html.sh (File system functions): Mention module.
23533         * modules/fdutimensat-tests: New test.
23534         * tests/test-fdutimensat.c: Likewise.
23535
23536         doc: regenerate INSTALL
23537         * doc/INSTALL: Reflect recent autoconf update.
23538         * doc/INSTALL.ISO: Likewise.
23539         * doc/INSTALL.UTF-8: Likewise.
23540
23541 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23542
23543         acl: warn if ACL support is not detected
23544         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23545
23546 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23547
23548         * lib/nproc.h: Add extern "C" block for C++.
23549
23550 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23551             Bruno Haible  <bruno@clisp.org>
23552
23553         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23554         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23555         * doc/posix-functions/isalpha.texi: Likewise.
23556         * doc/posix-functions/isblank.texi: Likewise.
23557         * doc/posix-functions/iscntrl.texi: Likewise.
23558         * doc/posix-functions/isdigit.texi: Likewise.
23559         * doc/posix-functions/isgraph.texi: Likewise.
23560         * doc/posix-functions/islower.texi: Likewise.
23561         * doc/posix-functions/isprint.texi: Likewise.
23562         * doc/posix-functions/ispunct.texi: Likewise.
23563         * doc/posix-functions/isspace.texi: Likewise.
23564         * doc/posix-functions/isupper.texi: Likewise.
23565         * doc/posix-functions/isxdigit.texi: Likewise.
23566
23567 2009-10-18  Bruno Haible  <bruno@clisp.org>
23568
23569         Tests for module 'isblank'.
23570         * modules/isblank-tests: New file.
23571         * tests/test-isblank.c: New file.
23572
23573         New module 'isblank'.
23574         * lib/isblank.c: New file.
23575         * m4/isblank.m4: New file.
23576         * modules/isblank: New file.
23577         * doc/posix-functions/isblank.texi: Mention the new module.
23578
23579 2009-10-18  Bruno Haible  <bruno@clisp.org>
23580
23581         New module 'ctype'.
23582         * lib/ctype.in.h: New file.
23583         * m4/ctype.m4: New file.
23584         * modules/ctype: New file.
23585         * doc/posix-headers/ctype.texi: Mention the new module.
23586
23587 2009-10-18  Jim Meyering  <meyering@redhat.com>
23588
23589         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23590         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23591         right after its initialization, rather than farther down.
23592         Keeping these in close proximity makes it easier to ensure
23593         that each such variable is initialized.  E.g.,
23594
23595             LIB_CLOCK_GETTIME=
23596             AC_SUBST([LIB_CLOCK_GETTIME])
23597
23598         This change also increments these serial numbers.
23599         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23600         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23602
23603 2009-10-18  Bruno Haible  <bruno@clisp.org>
23604
23605         Don't let environment variables perturb build.
23606         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23607         (gl_PREREQ_GETHRXTIME): ... not here.
23608
23609 2009-10-18  Bruno Haible  <bruno@clisp.org>
23610
23611         Avoid symlink attack in localcharset module.
23612         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23613         (O_NOFOLLOW): Define fallback.
23614         (get_charset_aliases): Don't open the file if it is a symbolic link.
23615         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23616         gl_FCNTL_H.
23617         (gl_FCNTL_H): Require it.
23618         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23619         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23620         Reported by Fergal Glynn <fglynn@veracode.com>.
23621
23622 2009-10-18  Bruno Haible  <bruno@clisp.org>
23623
23624         Implement nproc for mingw.
23625         * lib/nproc.c: Include <windows.h>
23626         (num_processors): On native Windows platforms, try GetSystemInfo.
23627
23628 2009-10-18  Bruno Haible  <bruno@clisp.org>
23629
23630         Implement nproc for IRIX.
23631         * lib/nproc.c: Include <sys/sysmp.h>.
23632         (num_processors): On IRIX systems, try sysmp.
23633         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23634
23635 2009-10-18  Bruno Haible  <bruno@clisp.org>
23636
23637         Implement nproc for HP-UX.
23638         * lib/nproc.c: Include <sys/pstat.h>
23639         (num_processors): On HP-UX systems, try pstat_getdynamic.
23640         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23641         pstat_getdynamic.
23642
23643 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23644             Bruno Haible  <bruno@clisp.org>
23645
23646         Implement nproc for NetBSD, OpenBSD.
23647         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23648         (ARRAY_SIZE): New macro.
23649         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23650         * m4/nproc.m4: New file.
23651         * modules/nproc (Files): Add m4/nproc.m4.
23652         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23653         (Makefile.am): Instead, augment lib_SOURCES.
23654
23655 2009-10-18  Bruno Haible  <bruno@clisp.org>
23656
23657         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23658         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23659         sys/param.h.
23660
23661 2009-10-16  Eric Blake  <ebb9@byu.net>
23662
23663         utimensat: new module
23664         * modules/utimensat: New file.
23665         * lib/utimensat.c (utimensat): Likewise.
23666         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23667         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23668         so we can work around Linux bugs.
23669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23670         * modules/sys_stat (Makefile.am): Substitute them.
23671         * lib/sys_stat.in.h (utimensat): Declare it.
23672         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23673         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23674         * modules/utimensat-tests: New test.
23675         * tests/test-utimensat.c: Likewise.
23676
23677         utimens: let lutimens work on non-symlinks
23678         * lib/utimens.c (lutimens): Fall back to utimens rather than
23679         failing with ENOSYS, when file is not a symlink.
23680         (utimens): Reduce redirection.
23681         * tests/test-lutimens.h (test_lutimens): Update test to cover
23682         non-symlinks.
23683         * tests/test-utimens.h (test_utimens): Update test to cover
23684         symlinks.
23685         * tests/test-utimens.c (main): Update caller.
23686
23687         utimens: cache whether utimensat syscall works
23688         * lib/utimens.c (utimensat_works_really): New cache variable.
23689         (fdutimens, lutimens): Use it to avoid failing syscall.
23690
23691         test-stat-time, test-utimens: improve portability
23692         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23693         ext4 on alpha, and for cygwin.
23694         * tests/test-utimens-common.h: New file.
23695         (nap): Factor delays into single function.
23696         * tests/test-lutimens.h (test_lutimens): Use new header.
23697         * tests/test-futimens.h (test_futimens): Likewise.
23698         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23699         timestamps to occur from same machine, as was done previously for
23700         test_utimens.
23701         * modules/utimens-tests (Files): Ship new file.
23702         * modules/futimens-tests (Files): Likewise.
23703         Reported in part by Jim Meyering.
23704
23705         sys_stat: sort replacement declarations
23706         * lib/sys_stat.in.h: Sort declarations.
23707         * lib/futimens.c (futimens): Fix typo.
23708
23709 2009-10-15  Jim Meyering  <meyering@redhat.com>
23710
23711         don't let environment settings perturb build
23712         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23713         could cause a configure-time and/or build-time malfunction.
23714         Typically, a configure-time function-in-library test is performed
23715         via code like this:
23716
23717           LIB_VAR=
23718           AC_SUBST([LIB_VAR])
23719           prefix_saved_LIBS=$LIBS
23720             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23721                        [test "$ac_cv_search_FUNC" = "none required" ||
23722                         LIB_VAR=$ac_cv_search_FUNC])
23723           LIBS=$prefix_saved_LIBS
23724
23725         However, in each of the files affected by this change, the LIB_VAR=
23726         initialization was omitted.  Thus, when set in the environment, its
23727         value would propagate into generated Makefiles when FUNC is not found
23728         in LIB_NAME.
23729         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23730         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23731         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23732
23733 2009-10-14  Eric Blake  <ebb9@byu.net>
23734
23735         fchdir: avoid infinite recursion in mingw
23736         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23737         recursing.
23738
23739         test-stat-time: port to mingw
23740         * tests/test-stat-time.c (force_unlink): Return a value.
23741         (test_ctime) [W32]: Fix compilation error.
23742         (nap): Don't call usleep with too large an argument.  Use
23743         force_unlink.
23744         * doc/pastposix-functions/usleep.texi (usleep): Document the
23745         portability issue.
23746
23747 2009-10-13  Jim Meyering  <meyering@redhat.com>
23748
23749         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23750         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23751         * modules/pipe-filter-ii: Likewise.
23752         * modules/sys_socket-tests: Likewise.
23753         * modules/tsearch-tests: Likewise.
23754         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23755         (check): Depend on it.
23756
23757 2009-10-12  Eric Blake  <ebb9@byu.net>
23758
23759         utimens-tests: port to NFS file systems
23760         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23761         comparisons to avoid spurious failures from timestamp drift
23762         between NFS machines.
23763
23764 2009-10-12  Eric Blake  <ebb9@byu.net>
23765
23766         stat-time-tests: minor cleanups
23767         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23768         * tests/test-stat-time.c (nap): Separate assignment from call.
23769         Suggested by Paolo Bonzini and Bruno Haible.
23770
23771         sys_stat: guarantee struct timespec
23772         * lib/sys_stat.in.h (includes): Always include <time.h>
23773         * modules/sys_stat (Depends-on): Add time.
23774         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23775         mode_t permission values.
23776         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23777         get at subsecond timestamps.
23778
23779 2009-10-10  Eric Blake  <ebb9@byu.net>
23780
23781         futimens: new module
23782         * modules/futimens: New file.
23783         * lib/futimens.c (futimens): Likewise.
23784         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23785         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23786         we can work around Linux bugs.
23787         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23788         * modules/sys_stat (Makefile.am): Substitute them.
23789         * lib/sys_stat.in.h (futimens): Declare it.
23790         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23791         * doc/posix-functions/futimens.texi (futimens): Likewise.
23792         * modules/futimens-tests: New test.
23793         * tests/test-futimens.c: Likewise.
23794
23795         utimens: introduce fdutimens
23796         * lib/utimens.h (fdutimens): New prototype.
23797         * lib/utimens.c (gl_futimens): Move guts...
23798         (fdutimens): ...to new interface.
23799         * tests/test-utimens.c (do_fdutimens): Use it.
23800
23801         utimens: add UTIME_NOW and UTIME_OMIT support
23802         * lib/utimens.c (validate_timespec, update_timespec): New helper
23803         functions.
23804         (gl_futimens, lutimens): Use them.
23805         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23806         stdbool, sys_stat.
23807         (Link): Mention resulting library dependency.
23808         * modules/utimecmp (Link): Likewise.
23809         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23810         (Makefile.am): Pick up library dependency.
23811         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23812         definition.
23813         * tests/test-sys_stat.c: Test the definitions.
23814         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23815         * NEWS: Document library dependency.
23816
23817         utimecmp: support symlink timestamps
23818         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23819         hashing when possible.  Use pathconf when available.
23820         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23821         * modules/utimecmp (Depends-on): Add lstat.
23822
23823         utimens: add lutimens interface
23824         * lib/utimens.c (lutimens): New function.
23825         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23826         * lib/utimens.h (lutimens): Declare new interface.
23827         * tests/test-utimens.c (main): Enhance test.
23828         * tests/test-lutimens.h (test_lutimens): New file.
23829         * modules/utimens-tests (Files): Distribute it.
23830         (Depends-on): Add symlink.
23831         (configure.ac): Check for usleep.
23832
23833         utimens: validate futimens usage
23834         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23835         fewer syscalls on failure later on.  Avoid compiler warning on
23836         mingw.
23837         * modules/utimens (Depends-on): Add dup2.
23838
23839         utimens: add test
23840         * modules/utimens-tests: New test.
23841         * tests/test-utimens.h: New file.
23842         * tests/test-futimens.h: Likewise.
23843         * tests/test-utimens.c: Likewise.
23844
23845         doc: mention timestamp portability issues
23846         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23847         instead.
23848         * doc/posix-functions/utime.texi (utime): Likewise.
23849         * doc/posix-functions/utimes.texi (utimes): Likewise.
23850         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23851         instead.
23852         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23853         module.
23854         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23855         Mention weakness with symlink timestamps.
23856         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23857         to utimensat/futimens instead.
23858         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23859
23860         test-dup2: enhance test
23861         * tests/test-dup2.c (main): Also check AT_FDCWD.
23862
23863         test-stat-time: avoid more spurious failures
23864         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23865         xfs; and avoid race if the two timestamps cross quantization edge.
23866
23867         relocatable: prefer 'file system' over 'filesystem'
23868         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23869         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23870         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23871         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23872         * lib/relocatable.c (compute_curr_prefix): Likewise.
23873
23874 2009-10-10  Jim Meyering  <meyering@redhat.com>
23875
23876         stat-time-tests: check for the usleep function
23877         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23878
23879 2009-10-10  Bruno Haible  <bruno@clisp.org>
23880
23881         * modules/xnanosleep: Put the Link section after the Include section.
23882
23883 2009-10-09  Eric Blake  <ebb9@byu.net>
23884
23885         dup2: work around FreeBSD 6.1 bug
23886         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23887         * doc/posix-functions/dup2.texi (dup2): Document it.
23888         Reported by Nelson H. F. Beebe and Jim Meyering.
23889
23890         test-stat-time: port to buggy NFS clients
23891         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23892         (test_ctime): Also skip test if mtime and ctime are skewed.
23893
23894         maint: prefer 'file system' over 'filesystem'
23895         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23896         * doc/posix-functions/lstat.texi (lstat): Likewise.
23897         * lib/file-has-acl.c (file_has_acl): Likewise.
23898         * lib/fwriteerror.c [TEST]: Likewise.
23899         * tests/test-areadlink.h (test_areadlink): Likewise.
23900         * tests/test-areadlinkat-with-size.c (main): Likewise.
23901         * tests/test-areadlinkat.c (main): Likewise.
23902         * tests/test-canonicalize-lgpl.c (main): Likewise.
23903         * tests/test-canonicalize.c (main): Likewise.
23904         * tests/test-fstatat.c (main): Likewise.
23905         * tests/test-linkat.c (main): Likewise.
23906         * tests/test-lstat.h (test_lstat_func): Likewise.
23907         * tests/test-mkdir.h (test_mkdir): Likewise.
23908         * tests/test-readlink.h (test_readlink): Likewise.
23909         * tests/test-remove.c (main): Likewise.
23910         * tests/test-rename.h (test_rename): Likewise.
23911         * tests/test-renameat.c (main): Likewise.
23912         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23913         * tests/test-symlink.h (test_symlink): Likewise.
23914         * tests/test-symlinkat.c (main): Likewise.
23915         * tests/test-unlink.h (test_unlink_func): Likewise.
23916         * tests/test-unlinkat.c (main): Likewise.
23917
23918         maint: make realtime library usage explicit
23919         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23920         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23921         * modules/settime (Link): Likewise.
23922         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23923
23924         test-stat-time: speed up execution
23925         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23926         warning on mingw.
23927         (nap): New helper function.
23928         (prepare_test): Use it to reduce sleep time.
23929         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23930         execution.
23931         * modules/stat-time-tests (configure.ac): Check for usleep.
23932
23933 2009-10-09  Jim Meyering  <meyering@redhat.com>
23934
23935         selinux-h: always use getfilecon wrappers
23936         * lib/getfilecon.c: New file.
23937         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23938         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23939         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23940         (fgetfilecon): Provide a stub.
23941         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23942         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23943         file unconditionally.
23944         When <selinux/selinux.h> is found, arrange to use wrappers.
23945         * modules/selinux-h (Files): Add getfilecon.c.
23946         (Makefile.am): Substitute include-next-related bits
23947         into the now-always-generated selinux/selinux.h file.
23948         * doc/glibc-functions/lgetfilecon.texi: New file.
23949         * doc/glibc-functions/fgetfilecon.texi: New file.
23950         * doc/glibc-functions/getfilecon.texi: New file.
23951         * doc/glibc-functions/getfilecon-desc.texi: New file.
23952         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23953         which to pull in the new files.
23954         * MODULES.html.sh (Misc): Add selinux-h.
23955
23956 2009-10-08  Jim Meyering  <meyering@redhat.com>
23957
23958         unistd: fix comment typo
23959         * lib/unistd.in.h (euidaccess): Fix a comment typo.
23960
23961 2009-10-08  Eric Blake  <ebb9@byu.net>
23962
23963         areadlink: use SIZE_MAX consistently
23964         * modules/areadlink (Depends-on): Add stdint.
23965         * modules/areadlink-with-size (Depends-on): Likewise.
23966         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
23967         gives NULL; drop sys/types, since unistd gives size_t; and add
23968         stdint for SIZE_MAX.
23969         (SIZE_MAX): Rely on headers.
23970         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
23971         and add stdint.
23972         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
23973         (SIZE_MAX): Likewise.
23974         (INITIAL_BUF_SIZE): Turn into enum.
23975         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
23976
23977 2009-10-08  Jim Meyering  <meyering@redhat.com>
23978
23979         areadlinkat: avoid compilation failure
23980         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
23981         Fix typo in comment.
23982
23983 2009-10-07  Eric Blake  <ebb9@byu.net>
23984
23985         areadlinkat-with-size: new module
23986         * modules/areadlinkat-with-size: New module.
23987         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
23988         * lib/areadlink.h (areadlinkat): Declare it.
23989         * MODULES.html.sh (File system functions): Mention it.
23990         * modules/areadlinkat-with-size-tests: New test.
23991         * tests/test-areadlinkat-with-size.c: New file.
23992
23993         xreadlinkat: new module
23994         * modules/xreadlinkat: New module.
23995         * lib/xreadlinkat.c (xreadlinkat): New file.
23996         * lib/xreadlink.h (xreadlinkat): Declare it.
23997         * MODULES.html.sh (File system functions): Mention it.
23998
23999         areadlinkat: new module
24000         * lib/at-func.c (FUNC_FAIL): New define.
24001         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24002         * modules/areadlinkat: New module.
24003         * lib/linkat.c (areadlinkat): Move...
24004         * lib/areadlinkat.c (areadlinkat): ...to new file.
24005         * lib/areadlink.h (areadlinkat): Declare it.
24006         * modules/linkat (Depends-on): Add areadlinkat.
24007         * MODULES.html.sh (File system functions): Mention it.
24008         * modules/areadlinkat-tests: New test.
24009         * tests/test-areadlinkat.c: New file.
24010
24011         areadlink, areadlink-with-size: add tests
24012         * modules/areadlink-tests: New test.
24013         * modules/areadlink-with-size-tests: Likewise.
24014         * tests/test-areadlink.h: New file.
24015         * tests/test-areadlink.c: Likewise.
24016         * tests/test-areadlink-with-size.c: Likewise.
24017
24018         maint: minor cleanups
24019         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24020         _UNUSED_PARAMETER_ instead.
24021         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24022         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24023         * modules/linkat-tests (Files): Distribute test-link.h.
24024
24025         openat, utimens: whitespace cleanup
24026         * lib/openat.c: Prefer space throughout, rather than mix of 8
24027         spaces vs. tabs.
24028         * lib/at-func.c: Likewise.
24029         * lib/utimens.c: Likewise.
24030
24031         openat: avoid using wrong fd
24032         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24033         working directory chooses same fd.
24034         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24035
24036         mkdir, mkdirat: fix cygwin 1.5.x bug
24037         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24038         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24039         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24040         bug.
24041         (gl_PREREQ_MKDIR): Delete unused macro.
24042         * modules/mkdir (Files): Track file rename.
24043         (configure.ac): Update macro name.
24044         * modules/openat (Depends-on): Add mkdir.
24045         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24046
24047         mkdir, mkdirat: add tests
24048         * modules/mkdir-tests: New test.
24049         * tests/test-mkdir.h: New file.
24050         * tests/test-mkdir.c: Likewise.
24051         * tests/test-mkdirat.c: Likewise.
24052         * modules/openat-tests (Files): Add new files.
24053         (Makefile.am): Run new test.
24054
24055 2009-10-06  Eric Blake  <ebb9@byu.net>
24056
24057         doc: tweak *at function documentation
24058         * doc/posix-functions/faccessat.texi (faccessat): Mention
24059         known issue with replacement.
24060         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24061         * doc/posix-functions/linkat.texi (linkat): Likewise.
24062         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24063         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24064         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24065         * doc/posix-functions/renameat.texi (renameat): Likewise.
24066         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24067
24068         openat: fix GNU/Hurd bug in unlinkat
24069         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24070         broken.
24071         * doc/posix-functions/unlink.texi (unlink): Document this.
24072         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24073
24074         fdopendir: fix GNU/Hurd bug
24075         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24076         allowing non-directory fds.
24077         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24078         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24079         * modules/dirent (Makefile.am): Substitute it.
24080         * lib/dirent.in.h (fdopendir): Declare replacement.
24081         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24082         * tests/test-fdopendir.c (main): Test something other than
24083         /dev/null, since on Hurd that behaves like a directory.
24084
24085         test-symlink: port to GNU/Hurd
24086         * tests/test-symlink.h (test_symlink): Relax expected errno.
24087
24088         doc: tweak more cygwin information
24089         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24090         now compatible with glibc.
24091         * doc/posix-functions/getopt.texi (getopt): Likewise.
24092
24093         getopt-gnu: add another test
24094         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24095         guarantee behavior relied on by m4.
24096         * tests/test-getopt.c (main): Use it.
24097         * modules/getopt-posix-tests (Depends-on): Add setenv.
24098         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24099
24100         getopt: fix compilation on darwin
24101         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24102         include.
24103         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24104         Reported by Ludovic Courtès.
24105
24106 2009-10-06  Bruno Haible  <bruno@clisp.org>
24107
24108         * modules/size_max (Description): Discourage its use.
24109         Reported by Simon Josefsson.
24110
24111 2009-10-06  Jim Meyering  <meyering@redhat.com>
24112
24113         linkat: avoid compilation failure
24114         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24115
24116 2009-10-05  Eric Blake  <ebb9@byu.net>
24117
24118         linkat: support Linux 2.6.17
24119         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24120         linkat on Linux, but allow cache variable override.
24121         * lib/linkat.c (rpl_linkat): Define override.
24122         * modules/linkat (Depends-on): Add symlinkat.
24123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24124         * modules/unistd (Makefile.am): Substitute it.
24125         * lib/unistd.in.h (linkat): Declare replacement.
24126         Reported by Pádraig Brady.
24127
24128         quotearg: port test to systems with C.UTF-8 locale
24129         * tests/test-quotearg.c (struct result_strings): Add another
24130         member, differentiating between C.ASCII and C.UTF-8 handling.
24131         (compare_strings): Add parameter.
24132         (main): Adjust all callers.
24133
24134         getopt: avoid clash with FreeBSD _getopt_internal
24135         * lib/getopt.in.h (_getopt_internal): Override the name.
24136         * lib/getopt_int.h (includes): Pick up any overrides.
24137         Reported by Reuben Thomas.
24138
24139         hash: allow C89 compilation
24140         * lib/hash.c (check_tuning): Move declaration before statement.
24141         Reported by Reuben Thomas.
24142
24143 2009-10-05  Karl Berry  <karl@gnu.org>
24144
24145         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24146
24147 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24148             Bruno Haible  <bruno@clisp.org>
24149
24150         * lib/uname.c (uname): Use a table-driven algorithm to compute
24151         Windows NT versions.
24152
24153 2009-10-04  Bruno Haible  <bruno@clisp.org>
24154
24155         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24156         program_invocation_short_name.
24157         * modules/progname (configure.ac): Test for presence of
24158         program_invocation_short_name.
24159         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24160
24161 2009-10-04  Bruno Haible  <bruno@clisp.org>
24162
24163         * lib/progname.c (set_program_name): Fix comment.
24164         Reported by Jim Meyering.
24165
24166 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24167             Bruno Haible  <bruno@clisp.org>
24168
24169         * lib/uname.c: Include <string.h>.
24170         (uname): Do only one call to GetVersionEx in the common case.
24171
24172 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24173             Bruno Haible  <bruno@clisp.org>
24174
24175         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24176         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24177         (uname): Add support for Windows CE and various non-x86 CPU types.
24178
24179 2009-10-03  Bruno Haible  <bruno@clisp.org>
24180
24181         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24182         invocation to tests/configure.ac.
24183         Reported by Ian Beckwith <ianb@erislabs.net>.
24184
24185 2009-10-02  Eric Blake  <ebb9@byu.net>
24186
24187         fchdir: avoid compiler warning
24188         * lib/fchdir.c (canonicalize_file_name)
24189         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24190
24191         test-open: support mingw errno values
24192         * tests/test-open.h (test_open): Relax test.
24193         * tests/test-fopen.h (test_fopen): Likewise.
24194         * tests/test-openat-safer.c (main): Likewise.
24195
24196         open: fix opening directory on mingw
24197         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24198
24199         test-open: on GNU/Hurd, /dev/null is a directory
24200         * tests/test-fopen.h (main): Rename...
24201         (test_fopen): ...to this.  Use a guaranteed non-directory when
24202         confirming open behavior on trailing slash.
24203         * tests/test-openat-safer.c (main): Likewise.
24204         * tests/test-open.h (main): Likewise....
24205         (test_open): ...to this.
24206         * tests/test-fopen.c (main): Adjust caller.
24207         * tests/test-fopen-safer.c (main): Likewise.
24208         * tests/test-open.c (main): Likewise.
24209         * tests/test-fcntl-safer.c (main): Likewise.
24210         Reported by Samuel Thibault.
24211
24212         rename, fchdir: don't ignore chdir failure
24213         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24214         * lib/rename.c (rpl_rename) [W32]: Likewise.
24215         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24216         an empty destination directory if source cannot be renamed,
24217         although there is still possibility for failure.
24218         * doc/posix-functions/rename.texi (rename): Document the race.
24219         Reported by Jim Meyering.
24220
24221         maint: cleanup whitespace in recent commits
24222         * lib/rename.c (rpl_rename): Remove tabs.
24223         * tests/test-link.h (test_link): Likewise.
24224         * lib/fchdir.c (get_name): Likewise.
24225         Reported by Jim Meyering.
24226
24227 2009-10-02  Ben Pfaff  <blp@gnu.org>
24228
24229         relocatable-prog-wrapper: Add missing dependency on
24230         double-slash-root.
24231         * modules/relocatable-prog-wrapper: Add dependency.
24232         Reported by Ian Beckwith <ianb@erislabs.net>.
24233
24234 2009-10-02  Eric Blake  <ebb9@byu.net>
24235
24236         renameat: fix Solaris bugs
24237         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24238         needed fixing.
24239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24240         * modules/stdio (Makefile.am): Substitute it.
24241         * lib/stdio.in.h (renameat): Declare replacement.
24242         * lib/renameat.c (rpl_renameat): Implement fix.
24243
24244         renameat: new module
24245         * modules/renameat: New file.
24246         * lib/renameat.c (renameat): Likewise.
24247         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24249         * modules/stdio (Makefile.am): Substitute them.
24250         * lib/stdio.in.h (renameat): Declare it.
24251         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24252         * doc/posix-functions/renameat.texi (renameat): Likewise.
24253         * modules/renameat-tests: New test.
24254         * tests/test-renameat.c: Likewise.
24255
24256         rename: fix mingw bugs
24257         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24258         directory overwrite bugs.
24259
24260         rename: fix another cygwin 1.5 bug
24261         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24262         checks.
24263         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24264         unnecessary cygwin workarounds.  Also work around bug with moving
24265         full directory onto an empty one.
24266         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24267
24268         rename-dest-slash: merge into rename module
24269         * modules/rename-dest-slash (Status): Mark obsolete.
24270         (Depends-on): Add rename.
24271         (Files): Let rename do it all.
24272         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24273         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24274         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24275         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24276         * lib/rename.c (rpl_rename): Update comments.
24277
24278         rename: fix cygwin 1.5.x bugs
24279         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24280         * lib/rename.c (rpl_rename): Work around them.
24281         * modules/rename (Depends-on): Add same-inode.
24282
24283         rename: fix Solaris 10 bug
24284         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24285         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24286         was the only bug.
24287
24288         rename: fix Solaris 9 bug
24289         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24290         on non-directory.  Avoid calling exit.
24291         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24292         strdup.
24293         * modules/rename-tests (Depends-on): Drop lstat.
24294         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24295         (gl_PREREQ_RENAME): Delete unused macro.
24296
24297         rename-dest-slash: fix NetBSD bug
24298         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24299         links.
24300         * modules/rename-dest-slash (Depends-on): Add same-inode.
24301
24302         rename-tests: new test, exposes several platform bugs
24303         * modules/rename-tests: New file.
24304         * tests/test-rename.h: Likewise.
24305         * tests/test-rename.c: Likewise.
24306         * doc/posix-functions/rename.texi (rename): Improve documentation,
24307         including bugs that will eventually be fixed in gnulib.
24308
24309 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24310
24311         * lib/uname.c: Include <stdlib.h>
24312         (uname): Assume version info is available.
24313
24314 2009-10-02  Jim Meyering  <meyering@redhat.com>
24315
24316         gnu-web-doc-update: correct --help output
24317         * build-aux/gnu-web-doc-update: Make --help output relevant.
24318
24319         gnu-web-doc-update: add standard options
24320         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24321
24322         gnu-web-doc-update: New module.
24323         Use this script to automatically update the on-line web documentation
24324         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24325         * modules/gnu-web-doc-update: New file, from coreutils.
24326         * build-aux/gnu-web-doc-update: New script.
24327
24328 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24329
24330         link: LoadLibrary is not needed.
24331         * lib/link.c: Use GetModuleHandle.
24332
24333 2009-10-01  Eric Blake  <ebb9@byu.net>
24334
24335         getopt: bump serial number
24336         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24337         change.
24338
24339         tests: tighten link, rmdir, and remove tests
24340         * tests/test-link.h (includes): No need to use <config.h> here.
24341         Clean up if directory hard link was created, otherwise test for
24342         trailing '.'.
24343         * tests/test-linkat.c (main): Simplify.
24344         * tests/test-remove.c (main): Enhance test for trailing '.'.
24345         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24346
24347 2009-10-01  Jim Meyering  <meyering@redhat.com>
24348
24349         maint.mk: requiring "make major" was annoying, for a "minor" release.
24350         What is intended is "stable", to contrast with alpha and beta,
24351         so require "make stable", not "make major".
24352         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24353         (get_tool_versions): Likewise.
24354         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24355
24356 2009-09-30  Ben Pfaff  <blp@gnu.org>
24357
24358         Fix broken build of replacement for Windows tmpfile().
24359         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24360         flags argument added along with the 'mkostemp' module.
24361
24362 2009-09-28  Bruno Haible  <bruno@clisp.org>
24363
24364         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24365         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24366         to 'remove_elt'.
24367         (gl_list_remove): Update.
24368         * lib/gl_list.c (gl_list_remove): Update.
24369         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24370         to 'remove_elt'.
24371         (gl_oset_remove): Update.
24372         * lib/gl_list.c (gl_oset_remove): Update.
24373         Reported by Eric Blake.
24374
24375 2009-09-28  Eric Blake  <ebb9@byu.net>
24376
24377         doc: mention yet more cygwin 1.7 status
24378         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24379         cygwin.
24380         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24381         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24382
24383         argp: fix test failure
24384         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24385         that are not upper-case.  Pass correct range to tolower.
24386
24387 2009-09-27  Jim Meyering  <meyering@redhat.com>
24388
24389         test-yesno: work around sparc-dash here-document infelicity
24390         Without this change, the literal \177 byte in a here document
24391         would make dash 0.5.5.1-3 access uninitialized memory.
24392         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24393         Instead, use a marker, "@", and filter through tr to create the desired
24394         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24395
24396 2009-09-27  Bruno Haible  <bruno@clisp.org>
24397
24398         Disable untested support for new flavours of ACLs on AIX.
24399         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24400         progress.
24401         * lib/set-mode-acl.c (qset_acl): Likewise.
24402
24403 2008-12-07  Bruno Haible  <bruno@clisp.org>
24404
24405         Add support for new flavours of ACLs on AIX. (Untested.)
24406         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24407         (file_has_acl): Add support for newer AIX.
24408         * lib/set-mode-acl.c (qset_acl): Likewise.
24409         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24410         Rainer Tammer <tammer@tammer.net>.
24411
24412 2009-09-26  Eric Blake  <ebb9@byu.net>
24413
24414         argp: fix compilation of getopt
24415         * lib/getopt.in.h (includes): Use different guard than glibc.
24416         Reported by Sergey Poznyakoff.
24417
24418         doc: mention more cygwin 1.7 status
24419         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24420         bug.
24421         * doc/posix-functions/execl.texi (execl): Likewise.
24422         * doc/posix-functions/execle.texi (execle): Likewise.
24423         * doc/posix-functions/execlp.texi (execlp): Likewise.
24424         * doc/posix-functions/execv.texi (execv): Likewise.
24425         * doc/posix-functions/execve.texi (execve): Likewise.
24426         * doc/posix-functions/execvp.texi (execvp): Likewise.
24427         * doc/glibc-functions/canonicalize_file_name.texi
24428         (canonicalize_file_name): Cygwin 1.7 now provides this.
24429         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24430         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24431         on AT_SYMLINK_NOFOLLOW.
24432
24433 2009-09-24  Eric Blake  <ebb9@byu.net>
24434
24435         test-linkat: make test more robust
24436         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24437
24438         getopt: fix inclusion guards for cygwin
24439         * modules/getopt-posix (Depends-on): Add include-next.
24440         (Makefile.am): Substitute more items in replacement header.
24441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24442         <getopt.h>.
24443         * lib/getopt.in.h (includes): Use split inclusion guard, and
24444         prefer <getopt.h> over include <unistd.h> when one is present.
24445         (option): Also override name of 'struct option'.
24446
24447         same-inode: revert prior change; it is not yet ready
24448         * NEWS: Undo mention of this change.
24449         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24450         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24451         * lib/cycle-check.c (cycle_check): Likewise.
24452         * lib/same.c (same_name): Likewise.
24453         * lib/at-func2.c (at_func2): Likewise.
24454
24455 2009-09-23  Eric Blake  <ebb9@byu.net>
24456
24457         linkat: new module
24458         * modules/linkat: New file.
24459         * lib/at-func2.c (at_func2): Likewise.
24460         * lib/linkat.c (linkat): Likewise.
24461         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24462         * lib/openat-priv.h (at_func2): Add declaration.
24463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24464         * modules/unistd (Makefile.am): Substitute them.
24465         * lib/unistd.in.h (linkat): Declare it.
24466         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24467         * doc/posix-functions/linkat.texi (linkat): Likewise.
24468         * doc/posix-functions/link.texi (link): Tweak wording.
24469         * tests/test-link.c (main): Move guts...
24470         * tests/test-link.h (test_link): ...into new file.
24471         * modules/linkat-tests: New test.
24472         * tests/test-linkat.c: Likewise.
24473         * modules/link-tests (Files): Ship new file.
24474         (Depends-on): Add stdbool.
24475
24476         dirname: add library-safe mdir_name
24477         * lib/dirname.h (mdir_name): New prototype.
24478         * lib/dirname.c (dir_name): Move guts...
24479         (mdir_name): ...to new function that avoids xalloc_die.
24480
24481         fchdir: another mingw fix
24482         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24483         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24484         on mingw (where it has not yet been ported), and make it optional
24485         elsewhere.
24486         (_gl_register_fd): Use it.
24487
24488         same-inode: make SAME_INODE tri-state, to port to mingw
24489         * NEWS: Mention this change.
24490         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24491         st_ino always being 0.
24492         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24493         * lib/cycle-check.c (cycle_check): Likewise.
24494         * lib/same.c (same_name): Likewise.
24495
24496         lstat: avoid mingw compilation error
24497         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24498         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24499         lstat ourselves.
24500         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24501         was adequate.
24502         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24503         the checks for lstat.
24504         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24505
24506         link: fix test failure on Solaris 9
24507         * lib/link.c (rpl_link): Don't assume link will catch bogus
24508         trailing slash on source.
24509
24510         test-symlinkat: enhance test
24511         * tests/test-readlink.c (main): Move guts...
24512         * tests/test-readlink.h (test_readlink): ...into new file.
24513         * tests/test-symlink.c (main): Move guts...
24514         * tests/test-symlink.h (test_symlink): ...into new file.
24515         * tests/test-symlinkat.c (main): Use new files for further
24516         coverage.
24517         (do_symlink, do_readlink): New helper functions.
24518         * modules/symlink-tests (Files): Ship new file.
24519         (Depends-on): Add stdbool.
24520         * modules/readlink-tests (Files): Ship new file.
24521         (Depends-on): Add stdbool.
24522         * modules/symlinkat-tests (Files): Use new files.
24523
24524 2009-09-23  Eric Blake  <ebb9@byu.net>
24525
24526         readlink: document portability issue with symlink length
24527         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24528         systems have bogus st_size on symlinks, and mention the
24529         areadlink-with-size module.
24530         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24531         * doc/posix-functions/readlink.texi (readlink): Mention the
24532         areadlink module, and ERANGE failure.
24533         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24534         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24535
24536         readlink: fix Solaris 9 bug with trailing slash
24537         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24538         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24539         * doc/posix-functions/readlink.texi (readlink): Document this.
24540         * modules/readlink-tests: New test.
24541         * tests/test-readlink.c: Likewise.
24542
24543         readlink: fix cygwin 1.5.x bug with return type
24544         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24545         * lib/unistd.in.h (readlink): Use ssize_t.
24546         * lib/readlink.c (readlink): Likewise.
24547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24548         * modules/unistd (Makefile.am): Substitute it.
24549         * lib/unistd.in.h (readlink): Declare replacement.
24550         * doc/posix-functions/readlink.texi (readlink): Document this.
24551
24552         symlink: use throughout gnulib
24553         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24554         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24555         symlink is not used.
24556         * modules/symlinkat (Depends-on): Add symlink.
24557         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24558         * modules/canonicalize-tests (Depends-on): Likewise.
24559         * modules/lstat-tests (Depends-on): Likewise.
24560         * modules/openat-tests (Depends-on): Likewise.
24561         * modules/remove-tests (Depends-on): Likewise.
24562         * modules/rmdir-tests (Depends-on): Likewise.
24563         * modules/unlink-tests (Depends-on): Likewise.
24564         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24565         * tests/test-canonicalize.c (symlink): Likewise.
24566         * tests/test-fstatat.c (symlink): Likewise.
24567         * tests/test-lstat.c (symlink): Likewise.
24568         * tests/test-remove.c (symlink): Likewise.
24569         * tests/test-rmdir.c (symlink): Likewise.
24570         * tests/test-unlink.c (symlink): Likewise.
24571         * tests/test-unlinkat.c (symlink): Likewise.
24572
24573         symlink: new module, for Solaris 9 bug
24574         * modules/symlink: New file.
24575         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24576         * lib/symlink.c: Likewise.
24577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24578         * modules/unistd (Makefile.am): Substitute them.
24579         * lib/unistd.in.h (symlink): Declare replacement.
24580         * MODULES.html.sh (File system functions): Mention it.
24581         * doc/posix-functions/symlink.texi (symlink): Likewise.
24582         * modules/symlink-tests: New test.
24583         * tests/test-symlink.c: Likewise.
24584
24585 2009-09-23  Bruno Haible  <bruno@clisp.org>
24586
24587         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24588         when needed.
24589         Test case: gnulib-tool --import --with-tests atexit inttypes.
24590         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24591
24592 2009-09-23  Bruno Haible  <bruno@clisp.org>
24593
24594         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24595         subcommand, not in a subshell.
24596
24597 2009-09-22  Eric Blake  <ebb9@byu.net>
24598
24599         unistd: sort replacement declarations
24600         * lib/unistd.in.h: Sort declarations.
24601
24602         open, openat: minor optimization
24603         * lib/open.c (open): If open succeeded, len is non-zero.
24604         * lib/openat.c (rpl_openat): Likewise.
24605
24606         link-follow: ensure correct result
24607         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24608         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24609         distinguish between possible failures.
24610
24611 2009-09-21  Eric Blake  <ebb9@byu.net>
24612
24613         fts: avoid compiler warning
24614         * lib/fts.c (dirent_inode_sort_may_be_useful)
24615         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24616
24617 2009-09-19  Bruno Haible  <bruno@clisp.org>
24618
24619         * lib/progreloc.c (canonicalize_file_name): New declaration.
24620
24621 2009-09-19  Eric Blake  <ebb9@byu.net>
24622
24623         link: fix quoting
24624         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24625
24626         openat: fix openat bugs on Solaris 9
24627         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24628         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24629         * modules/openat (Depends-on): Add open.
24630         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24631         * modules/fcntl-h (Makefile.am): Substitute it.
24632         * lib/fcntl.in.h (openat): Declare replacement.
24633         * doc/posix-functions/openat.texi (openat): Document this.
24634
24635         openat: move fstatat and unlinkat into correct files
24636         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24637         compiled.
24638         * lib/openat.c (fstatat, unlinkat): Move...
24639         * lib/fstatat.c (fstatat): ...into correct files.
24640         * lib/unlinkat.c (unlinkat): Likewise.
24641
24642         openat: fix unlinkat bugs on Solaris 9
24643         * lib/unlinkat.c (unlinkat): New file.
24644         * modules/openat (Depends-on): Add unlink.
24645         (Files): Distribute it.
24646         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24647         trailing slash behavior is broken.
24648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24649         * modules/unistd (Makefile.am): Substitute it.
24650         * lib/unistd.in.h (unlinkat): Declare replacement.
24651         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24652
24653         openat: fix fstatat bugs on Solaris 9
24654         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24655         stat.
24656         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24657
24658         test-unlinkat: enhance test, to expose Solaris 9 bug
24659         * tests/test-unlink.c (main): Factor guts...
24660         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24661         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24662         * tests/test-rmdir.c (main): Adjust caller.
24663         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24664         (unlinker): New helper function.
24665         (rmdirat): Enhance check.
24666         * modules/rmdir-tests (Depends-on): Add stdbool.
24667         * modules/unlink-tests (Depends-on): Likewise.
24668         (Files): Add test-unlink.h.
24669         * modules/openat-tests (Files): Likewise.
24670         (Depends-on): Add unlinkdir.
24671
24672         test-fstatat: new test, to expose Solaris 9 bugs
24673         * tests/test-stat.c (main): Factor guts...
24674         * tests/test-stat.h (test_stat_func): ...into new file.
24675         * tests/test-lstat.c (main): Factor guts...
24676         * tests/test-lstat.h (test_lstat_func): ...into new file.
24677         * tests/test-fstatat.c: New file.
24678         * modules/stat-tests (Files): Add test-stat.h.
24679         * modules/lstat-tests (Files): Add test-lstat.h.
24680         (Depends-on): Add stdbool.
24681         * modules/openat-tests (Depends-on): Add pathmax.
24682         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24683         (Makefile.am): Run new test.
24684
24685         remove: new module, for mingw and Solaris 9 bugs
24686         * modules/remove: New file.
24687         * lib/remove.c: Likewise.
24688         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24690         * modules/stdio (Makefile.am): Use them.
24691         * lib/stdio.in.h (remove): Declare replacement.
24692         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24693         * doc/posix-functions/remove.texi (remove): Likewise.
24694         * modules/remove-tests: New test.
24695         * tests/test-remove.c: Likewise.
24696
24697         unlink: new module, for Solaris 9 bug
24698         * modules/unlink: New file.
24699         * lib/unlink.c: Likewise.
24700         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24702         * modules/unistd (Makefile.am): Use them.
24703         * lib/unistd.in.h (stat): Declare replacement.
24704         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24705         * doc/posix-functions/unlink.texi (unlink): Likewise.
24706         * modules/unlink-tests: New test.
24707         * tests/test-unlink.c: Likewise.
24708
24709         lstat: fix Solaris 9 bug
24710         * lib/lstat.c (lstat): Also check for trailing slash on
24711         non-symlink, non-directories.  Use stat module to simplify logic.
24712         * doc/posix-functions/lstat.texi (lstat): Document it.
24713         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24714         (configure.ac): Check for symlink.
24715         * tests/test-lstat.c (main): Add more tests.
24716
24717         stat: add as dependency to other modules
24718         * modules/chown (Depends-on): Add stat.
24719         * modules/euidaccess (Depends-on): Likewise.
24720         * modules/fchdir (Depends-on): Likewise.
24721         * modules/isdir (Depends-on): Likewise.
24722         * modules/link (Depends-on): Likewise.
24723         * modules/lstat (Depends-on): Likewise.
24724         * modules/mkdir-p (Depends-on): Likewise.
24725         * modules/modechange (Depends-on): Likewise.
24726         * modules/open (Depends-on): Likewise.
24727         * modules/readlink (Depends-on): Likewise.
24728         * modules/same (Depends-on): Likewise.
24729
24730         stat: fix Solaris 9 bug
24731         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24732         slash.
24733         * lib/stat.c (rpl_stat): Work around it.
24734         * doc/posix-functions/stat.texi (stat): Update documentation.
24735
24736         stat: new module, for mingw bug
24737         * modules/stat: New file.
24738         * lib/stat.c: Likewise.
24739         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24740         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24741         * modules/sys_stat (Makefile.am): Use them.
24742         * lib/sys_stat.in.h (stat): Declare replacement.
24743         * lib/openat.c (fstatat): Deal with lstat and stat being function
24744         macros.
24745         * modules/openat (Depends-on): Add inline.
24746         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24747         * doc/posix-functions/stat.texi (stat): Likewise.
24748         * modules/stat-tests: New test.
24749         * tests/test-stat.c: Likewise.
24750
24751 2009-09-19  Jim Meyering  <meyering@redhat.com>
24752
24753         syntax-check: detect unnecessary inclusion of canonicalize.h
24754         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24755
24756 2009-09-19  Eric Blake  <ebb9@byu.net>
24757
24758         canonicalize-lgpl: adjust clients to use correct header
24759         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24760         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24761         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24762         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24763         * lib/progreloc.c (includes): Likewise.
24764
24765 2009-09-19  Jim Meyering  <meyering@redhat.com>
24766
24767         test-posixtm.c: correct a comment
24768         * tests/test-posixtm.c: Correct first-line comment.
24769         Spotted by Eric Blake.
24770
24771 2009-09-16  Jim Meyering  <meyering@redhat.com>
24772
24773         posixtm-tests: make T const-correct; add a test case
24774         * tests/test-posixtm.c (T): Declare const.
24775         Add a test for -(2^31+1).
24776         Remove useless can-succeed-only-in-2002 test.
24777
24778         posixtm-tests: adjust the sole failing test
24779         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24780         expected output matches what mktime now produces.  Cross-checked via
24781         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24782
24783         posixtm: move #ifdef'd tests into a new module
24784         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24785         * tests/test-posixtm.c: ... this new file.
24786         * modules/posixtm-tests: New module.
24787
24788 2009-09-19  Eric Blake  <ebb9@byu.net>
24789
24790         openat: simplify use of at-func.c
24791         * lib/at-func.c (includes): Include prerequisites here, to
24792         simplify requirements on client files.
24793         * lib/openat-priv.h: Add double-inclusion guard.
24794         * lib/faccessat.c (includes): Simplify.
24795         * lib/fchmodat.c (includes): Likewise.
24796         * lib/fchownat.c (includes): Likewise.
24797         * lib/mkdirat.c (includes): Likewise.
24798         * lib/mkfifoat.c (includes): Likewise.
24799         * lib/symlinkat.c (includes): Likewise.
24800
24801         openat: allow return of fd 0
24802         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24803         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24804         unistd-safer.
24805         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24806         <fcntl.h>; this module does not leak fds.
24807         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24808         must be allowed to return 0, leaving openat_safer to add the
24809         safety.
24810         (openat_permissive): Avoid writing to just-opened fd 2 if
24811         restoring the current directory fails.
24812         * lib/openat-die.c (openat_restore_fail): Add comment.
24813         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24814         (save_cwd): Guarantee safe fd, but without use of open_safer.
24815         * tests/test-openat.c: New test.
24816         * modules/openat-tests (Files, Makefile.am): Distribute and build
24817         new file.
24818
24819         relocatable-prog-wrapper: fix build
24820         * modules/relocatable-prog-wrapper (Files): Update name of
24821         canonicalize m4 file, broken on 2009-09-17.
24822         Reported by emad hajjar <aleppos@hotmail.com>.
24823
24824 2009-09-19  Bruno Haible  <bruno@clisp.org>
24825
24826         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24827         * lib/safe-alloc.c: Likewise.
24828         Reported by Ian Beckwith <ianb@erislabs.net>.
24829
24830 2009-09-18  Bruno Haible  <bruno@clisp.org>
24831
24832         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24833         Reported by <erobles@sensacd.com.mx>.
24834
24835 2009-09-17  Eric Blake  <ebb9@byu.net>
24836
24837         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24838         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24839         slashes when checking if last component is missing.
24840         * tests/test-canonicalize.c (main): Test this.
24841
24842         canonicalize, canonicalize-lgpl: honor // if distinct from /
24843         * modules/canonicalize (Files): Add double-slash-root.m4.
24844         * modules/canonicalize-lgpl (Files): Likewise.
24845         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24846         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24847         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24848         fallback definition.
24849         (canonicalize_filename_mode): Use it to protect //.
24850         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24851         (__realpath): Likewise.
24852         * tests/test-canonicalize.c (main): Test this.
24853         * tests/test-canonicalize-lgpl.c (main): Likewise.
24854         * modules/canonicalize-tests (Depends-on): Add same-inode.
24855         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24856
24857         canonicalize-lgpl: fix glibc bug with trailing slash
24858         * m4/canonicalize-lgpl.m4: Move contents...
24859         * m4/canonicalize.m4: ...here.
24860         (gl_CANONICALIZE_LGPL): Factor realpath check...
24861         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24862         glibc 2.3.5 bug, fixed 2005-04-27.
24863         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24864         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24865         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24866         * modules/canonicalize-lgpl (Files): Manage file rename.
24867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24868         * modules/stdlib (Makefile.am): Substitute witness.
24869         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24870         is needed.
24871         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24872         replacement is required.
24873         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24874         * doc/glibc-functions/canonicalize_file_name.texi
24875         (canonicalize_file_name): Document this.
24876         * doc/posix-functions/realpath.texi (realpath): Likewise.
24877
24878         canonicalize-lgpl: reject non-directory with trailing slash
24879         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24880         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24881         catches failures in glibc 2.3.5.
24882         * tests/test-canonicalize.c (main): Likewise.
24883
24884         canonicalize-lgpl: use native realpath if it works
24885         * lib/canonicalize-lgpl.c (realpath): Guard with
24886         FUNC_REALPATH_WORKS.
24887         * lib/stdlib.in.h (realpath): Make declaration optional based on
24888         HAVE_REALPATH.
24889         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24890         native realpath works.
24891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24892         * modules/stdlib (Makefile.am): Substitute witness.
24893
24894         canonicalize, canonicalize-lgpl: use <stdlib.h>
24895         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24896         (Include): Mention <stdlib.h>.
24897         (configure.ac): Mention functions we provide.
24898         * modules/canonicalize (configure.ac): Likewise.
24899         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24900         realpath if canonicalize_file_name is missing.
24901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24902         * modules/stdlib (Makefile.am): Substitute witnesses.
24903         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24904         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24905         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24906         * NEWS: Document this.
24907         * doc/glibc-functions/canonicalize_file_name.texi
24908         (canonicalize_file_name): Likewise.
24909         * doc/posix-functions/realpath.texi (realpath): Likewise.
24910         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24911
24912         test-canonicalize: consolidate into single C program
24913         * tests/test-canonicalize.sh: Delete; move setup into...
24914         * tests/test-canonicalize.c (main): ...the program, making it
24915         easier to run in debugger.  Add some tests.
24916         * modules/canonicalize-tests (Files): Remove unused file.
24917         (Depends-on): Add progname.
24918         (configure.ac, Makefile.am): Simplify.
24919
24920         test-canonicalize-lgpl: consolidate into single C program
24921         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24922         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24923         easier to run in debugger.  Add some tests.
24924         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24925         (configure.ac, Makefile.am): Simplify.
24926
24927         canonicalize: avoid resolvepath
24928         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24929         unnecessary checks.
24930         * lib/canonicalize.c (includes): Simplify.
24931         (canonicalize_file_name): Drop resolvepath implementation.
24932         * modules/canonicalize (Depends-on): Drop filenamecat.
24933
24934         canonicalize: don't lose errno
24935         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24936         over calls to free.
24937
24938         canonicalize: simplify errno handling
24939         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24940         assignment.
24941
24942         canonicalize, canonicalize-lgpl: update module dependencies
24943         * modules/canonicalize (Depends-on): Add extensions, lstat,
24944         pathmax, stdlib.
24945         (Files): Drop pathmax.h.
24946         (configure.ac): Adjust macro name.
24947         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24948         lstat, stdlib, sys_stat.
24949         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24950         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24951         extensions.
24952         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24953         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
24954         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
24955         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
24956         declaration, if available.
24957         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
24958         we can rely on the readlink module.
24959         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
24960         (includes): Use <unistd.h> unconditionally.
24961
24962 2009-09-17  Eric Blake  <ebb9@byu.net>
24963
24964         maint: make Include sections of modules consistent
24965         * modules/alloca: Use only header name; no need to list #include.
24966         * modules/alloca-opt: Likewise.
24967         * modules/arpa_inet: Likewise.
24968         * modules/canon-host: Likewise.
24969         * modules/configmake: Likewise.
24970         * modules/dirent: Likewise.
24971         * modules/eealloc: Likewise.
24972         * modules/environ: Likewise.
24973         * modules/fchdir: Likewise.
24974         * modules/fcntl: Likewise.
24975         * modules/fcntl-h: Likewise.
24976         * modules/gethrxtime: Likewise.
24977         * modules/gettime: Likewise.
24978         * modules/ignore-value: Likewise.
24979         * modules/inet_ntop: Likewise.
24980         * modules/inet_pton: Likewise.
24981         * modules/inttypes: Likewise.
24982         * modules/isnand-nolibm: Likewise.
24983         * modules/isnanf-nolibm: Likewise.
24984         * modules/mbchar: Likewise.
24985         * modules/mbfile: Likewise.
24986         * modules/mbiter: Likewise.
24987         * modules/mbuiter: Likewise.
24988         * modules/netdb: Likewise.
24989         * modules/netinet_in: Likewise.
24990         * modules/nproc: Likewise.
24991         * modules/pagealign_alloc: Likewise.
24992         * modules/poll: Likewise.
24993         * modules/printf-frexp: Likewise.
24994         * modules/pthread: Likewise.
24995         * modules/putenv: Likewise.
24996         * modules/random_r: Likewise.
24997         * modules/relocatable-prog: Likewise.
24998         * modules/search: Likewise.
24999         * modules/select: Likewise.
25000         * modules/selinux-h: Likewise.
25001         * modules/settime: Likewise.
25002         * modules/signal: Likewise.
25003         * modules/size_max: Likewise.
25004         * modules/socklen: Likewise.
25005         * modules/ssize_t: Likewise.
25006         * modules/stdarg: Likewise.
25007         * modules/stdbool: Likewise.
25008         * modules/stddef: Likewise.
25009         * modules/stdint: Likewise.
25010         * modules/stdio: Likewise.
25011         * modules/stdlib: Likewise.
25012         * modules/string: Likewise.
25013         * modules/strings: Likewise.
25014         * modules/sys_file: Likewise.
25015         * modules/sys_ioctl: Likewise.
25016         * modules/sys_select: Likewise.
25017         * modules/sys_socket: Likewise.
25018         * modules/sys_stat: Likewise.
25019         * modules/sys_time: Likewise.
25020         * modules/sys_times: Likewise.
25021         * modules/sys_utsname: Likewise.
25022         * modules/sys_wait: Likewise.
25023         * modules/sysexits: Likewise.
25024         * modules/time: Likewise.
25025         * modules/times: Likewise.
25026         * modules/tmpfile: Likewise.
25027         * modules/trim: Likewise.
25028         * modules/unistd: Likewise.
25029         * modules/wchar: Likewise.
25030         * modules/wctype: Likewise.
25031
25032 2009-09-17  Bruno Haible  <bruno@clisp.org>
25033
25034         Make getdate.y compile on QNX and NetBSD 5 / i386.
25035         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25036         TIME_T_FITS_IN_LONG_INT.
25037         * lib/getdate.y (long_time_t): New type.
25038         (relative_time): Change type of 'seconds' field to long_time_t.
25039         (get_date): Update types of local variables. Check against overflow
25040         during conversion from long_time_t to time_t.
25041         Reported by Matt Kraai <kraai@ftbfs.org>
25042         and Hasso Tepper <hasso@netbsd.org>.
25043
25044 2009-09-17  Bruno Haible  <bruno@clisp.org>
25045
25046         * modules/COPYING: Update copyright years.
25047         * modules/README: Likeiwse.
25048         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25049         Reported by Ian Beckwith <ianb@erislabs.net>.
25050
25051 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25052
25053         * users.txt: Update references for gnuit package.
25054
25055 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25056
25057         * m4/getdelim.m4: Fix typo in copyright line.
25058
25059 2009-09-17  Bruno Haible  <bruno@clisp.org>
25060
25061         * lib/atoll.c: Use the standard header with GPL copyright.
25062         * lib/argz.in.h: Likewise.
25063         * lib/glob.c: Likewise.
25064         * lib/glob-libc.h: Likewise.
25065         * lib/random_r.c: Likewise.
25066         * lib/siglist.h: Likewise.
25067         * lib/strsignal.c: Likewise.
25068         Reported by Ian Beckwith <ianb@erislabs.net>.
25069
25070 2009-09-17  Eric Blake  <ebb9@byu.net>
25071
25072         rmdir: ensure correct dependency order
25073         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25074
25075 2009-09-17  Bruno Haible  <bruno@clisp.org>
25076
25077         Disable assertion that fails on NetBSD 5 / i386.
25078         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25079         Reported by Sam Steingold <sds@gnu.org>
25080         and Hasso Tepper <hasso@netbsd.org>.
25081
25082 2009-09-16  Eric Blake  <ebb9@byu.net>
25083
25084         unlinkdir: port to mingw
25085         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25086         on which no one can unlink a directory.
25087
25088         stdlib: sort witness names
25089         * modules/stdlib (Makefile.am): Sort replacements.
25090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25091         * lib/stdlib.in.h: Likewise.
25092
25093         parse-duration-tests: avoid link failure
25094         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25095         LIBINTL.
25096         Reported by Tom G. Christensen.
25097
25098         openat-tests: ensure unlinkat behaves like rmdir
25099         * tests/test-rmdir.c (main): Factor guts...
25100         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25101         * modules/rmdir-tests (Files): Ship new file.
25102         * modules/openat-tests: New test.
25103         * tests/test-unlinkat.c: Likewise.
25104
25105         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25106         * modules/rmdir-errno (Status, Notice): Now obsolete.
25107
25108         rmdir: work around cygwin 1.5.x and mingw bugs
25109         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25110         * lib/rmdir.c (rmdir): Work around it.
25111         * modules/rmdir (Status, Notice): No longer obsolete.
25112         (Files): Add dos.m4.
25113         (Depends-on): Add unistd.
25114         (configure.ac): Set witnesses.
25115         (License): Relax to LGPLv2+.
25116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25117         * modules/unistd (Makefile.am): Substitute witnesses.
25118         * lib/unistd.in.h (rmdir): Declare replacement.
25119         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25120         * modules/rmdir-tests: New tests.
25121         * tests/test-rmdir.c: Likewise.
25122
25123 2009-09-15  Eric Blake  <ebb9@byu.net>
25124
25125         fchdir: improve use of replacement functions
25126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25127         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25128         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25129         REPLACE_CLOSEDIR.
25130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25131         * modules/sys_stat (Makefile.am): Substitute correct witness.
25132         * modules/dirent (Makefile.am): Likewise.
25133         * modules/unistd (Makefile.am): Likewise.
25134         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25135         * lib/unistd.in.h (dup): Likewise.
25136         * lib/sys_stat.in.h (fstat): Likewise.
25137
25138         maint: ignore gnulib-tool temp files
25139         * .gitignore: Ignore files created during gnulib-tool --test.
25140
25141 2009-09-13  Jim Meyering  <meyering@redhat.com>
25142
25143         posixtm: don't reject a time that specify "60" as the number of seconds
25144         * lib/posixtm.c (posixtime): The code to reject invalid dates
25145         would also reject a time specified with the .60 suffix.
25146         But POSIX allows that, in order to accommodate leap seconds.
25147         So don't reject it.
25148         (main): Adjust tests accordingly.
25149         * modules/posixtm (Depends-on): Add stpcpy.
25150
25151 2009-09-11  Jim Meyering  <meyering@redhat.com>
25152
25153         announce-gen: include [$release_type] in emitted Subject:
25154         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25155         e.g., [stable] in the emitted Subject: line.
25156
25157 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25158
25159         Remove obsolete macros from several modules.
25160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25161         obsolete Autoconf macros with their modern counterparts.
25162         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25163         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25164         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25165         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25166         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25167         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25169         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25170         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25171         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25172         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25173         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25174         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25175         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25176         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25177         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25178         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25179         * m4/time_r.m4 (gl_TIME_R): Likewise.
25180         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25181         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25182         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25183
25184         Fix copyright header in build-aux scripts.
25185         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25186         recommendation.
25187         * build-aux/ncftpput-ftp: Likewise.
25188         * build-aux/update-copyright: Likewise.
25189
25190 2009-09-09  Eric Blake  <ebb9@byu.net>
25191
25192         test-link: allow Linux choice of errno
25193         * tests/test-link.c (main): Relax test for alternate error.
25194
25195         strndup: fix improper m4 caching
25196         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25197         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25198         (gl_PREREQ_STRNDUP): Delete.
25199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25200         * modules/string (Makefile.am): Substitute it.
25201         * lib/string.in.h (strndup): Modernize prototype.
25202
25203         getcwd: port to mingw
25204         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25205         different from the POSIX assumptions made throughout the getcwd
25206         module; fortunately, the mingw getcwd does not need replacement.
25207         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25208         * modules/getcwd-tests: New test.
25209         * tests/test-getcwd.c: Likewise.
25210
25211         link: fix platform bugs
25212         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25213         * lib/link.c (link): Work around them.  Fix related mingw bug.
25214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25215         * modules/unistd (Makefile.am): Substitute it.
25216         * lib/unistd.in.h (link): Declare replacement.
25217         * doc/posix-functions/link.texi (link): Document this.
25218         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25219
25220         test-link: consolidate into single C program, test more cases
25221         * tests/test-link.sh: Delete.
25222         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25223         at least Cygwin and Solaris.
25224         * modules/link-tests (Files): Remove unused file.
25225         (Depends-on): Add errno, sys_stat.
25226         (Makefile.am): Simplify.
25227
25228 2009-09-08  Bruno Haible  <bruno@clisp.org>
25229
25230         Work around towlower, towupper bug on mingw.
25231         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25232         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25233         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25234         * doc/posix-functions/towupper.texi: Likewise.
25235         Reported by Eric Blake.
25236
25237 2009-09-08  Jim Meyering  <meyering@redhat.com>
25238
25239         build: don't try to run autoheader if we don't use it
25240         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25241         is not used in configure.ac.
25242
25243 2009-09-08  Eric Blake  <ebb9@byu.net>
25244
25245         euidaccess: fix compilation error
25246         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25247
25248         rawmemchr: relax license
25249         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25250         okay.
25251         Reported by Jim Meyering.
25252
25253         mkfifoat: new module
25254         * modules/mkfifoat: New file.
25255         * lib/mkfifoat.c: Likewise.
25256         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25257         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25258         * modules/sys_stat (Makefile.am): Use them.
25259         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25260         * MODULES.html.sh (File system functions): Mention module.
25261         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25262         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25263         * modules/mkfifoat-tests: New test.
25264         * tests/test-mkfifoat.c: Likewise.
25265
25266         strchrnul: relax license
25267         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25268         okay.
25269         Reported by Jim Meyering.
25270
25271 2009-09-08  Eric Blake  <ebb9@byu.net>
25272
25273         fstatat: fix compilation on Solaris
25274         * lib/fstatat.c (includes): Add fcntl.h.
25275         Reported by Pádraig Brady.
25276
25277 2009-09-07  Eric Blake  <ebb9@byu.net>
25278
25279         rename: modernize replacement
25280         * modules/rename (Depends-on): Add stdio.
25281         (configure.ac): Declare witness.
25282         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25283         stdio take care of replacement.
25284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25285         * modules/stdio (Makefile.am): Substitute them.
25286         * lib/stdio.in.h (rename): Declare replacement.
25287         * lib/rename.c (includes): Allow cross-compilation to non-windows
25288         machines.
25289         * doc/posix-functions/rename.texi (rename): Improve
25290         documentation.
25291
25292         stdio: sort witness names
25293         * modules/stdio (Makefile.am): Sort replacements.
25294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25295         * lib/stdio.in.h: Likewise.
25296
25297         getcwd: minor cleanups
25298         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25299         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25300
25301         openat: provide more convenience names
25302         * modules/faccessat (configure.ac): Add C witness.
25303         * lib/unistd.in.h (readlinkat): Fix typo.
25304         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25305         convenience wrappers.
25306         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25307         wrappers in syntax checks.
25308
25309 2009-09-06  Eric Blake  <ebb9@byu.net>
25310
25311         doc: fix comments in recent patches
25312         * lib/faccessat.c: Mention correct function.
25313         * lib/fchmodat.c: Likewise.
25314         * lib/fchownat.c: Likewise.
25315         * lib/symlinkat.c: Likewise.
25316         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25317         constants.
25318
25319         faccessat, symlinkat: continue cleanup of previous patch
25320         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25321         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25322         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25324         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25325         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25326         set.
25327
25328 2009-09-06  Bruno Haible  <bruno@clisp.org>
25329
25330         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25331         (fstatat): Declare if GNULIB_FSTATAT is set.
25332         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25333         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25334         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25335         * modules/fcntl-h (Files): Remove m4/openat.m4.
25336         * modules/sys_stat (Files): Remove m4/openat.m4.
25337         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25338         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25339         * modules/unistd (Files): Remove m4/openat.m4.
25340         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25341         GNULIB_OPENAT.
25342         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25343         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25344         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25345         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25346         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25347         gl_OPENAT_DEFAULTS.
25348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25349         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25350         Don't require gl_OPENAT_DEFAULTS.
25351         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25352         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25353         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25354         (gl_OPENAT_DEFAULTS): Remove macro.
25355
25356 2009-09-06  Bruno Haible  <bruno@clisp.org>
25357
25358         * modules/openat (configure.ac): Remove unneeded witness.
25359
25360 2009-09-06  Bruno Haible  <bruno@clisp.org>
25361
25362         Set errno to ENOSYS when a function is entirely unsupported.
25363         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25364         EOPNOTSUPP.
25365         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25366         * modules/chown (Depends-on): Remove errno.
25367
25368 2009-09-06  Bruno Haible  <bruno@clisp.org>
25369
25370         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25371
25372 2009-09-06  Bruno Haible  <bruno@clisp.org>
25373
25374         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25375
25376 2009-09-06  Ben Pfaff  <blp@gnu.org>
25377             Bruno Haible  <bruno@clisp.org>
25378
25379         Work around a glibc bug in strtok_r.
25380         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25381         Undefine if UNDEFINE_STRTOK_R is set.
25382         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25383         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25384         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25385         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25386         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25387         UNDEFINE_STRTOK_R.
25388         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25389
25390 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25391
25392         exclude: minor fix
25393         * lib/exclude.c: Include wctype.h
25394
25395 2009-09-06  Akim Demaille  <demaille@gostai.com>
25396
25397         bootstrap: improve error message
25398         * build-aux/bootstrap (find_tool): Upon failure, report the list
25399         of candidates.
25400         Honor the initial value of the envvar.
25401
25402 2009-09-05  Eric Blake  <ebb9@byu.net>
25403
25404         symlinkat: new module
25405         * modules/symlinkat: New file.
25406         * lib/symlinkat.c: Likewise.
25407         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25409         * modules/unistd (Makefile.am): Use them.
25410         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25411         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25412         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25413         * MODULES.html.sh (File system functions): Mention module.
25414         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25415         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25416         * modules/symlinkat-tests: New test.
25417         * tests/test-symlinkat.c: Likewise.
25418
25419         test-openat-safer: add more checks
25420         * tests/test-openat-safer.c (main): Check more code paths.
25421
25422 2009-09-05  Jim Meyering  <meyering@redhat.com>
25423
25424         syntax-check: detect unnecessary inclusion of openat.h
25425         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25426
25427 2009-09-05  Bruno Haible  <bruno@clisp.org>
25428
25429         Support towlower, towupper.
25430         * doc/posix-functions/towlower.texi: Mention module wctype.
25431         * doc/posix-functions/towupper.texi: Likewise.
25432         * lib/wctype.in.h (towlower, towupper): New functions.
25433         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25434         (ASSERT): New macro.
25435         (e): New variable.
25436         (main): Test also towlower, towupper. Test WEOF argument.
25437         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25438
25439 2009-09-05  Bruno Haible  <bruno@clisp.org>
25440
25441         Fix conversion behaviour when the input is invalid.
25442         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25443         mark occurring in first pass of indirect conversion.
25444         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25445         input.
25446         Found by clang's static analyzer.
25447
25448 2009-09-05  Bruno Haible  <bruno@clisp.org>
25449
25450         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25451         where direct conversion is possible.
25452
25453 2009-09-04  Eric Blake  <ebb9@byu.net>
25454
25455         openat: fail with ENOENT on empty name
25456         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25457         buffer.
25458
25459         link-follow: fix logic bug in prior patch
25460         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25461         reversed sense of yes and no in prior patch.  Avoid confusing
25462         compilation failure with desired semantics.
25463
25464         link-follow: accomodate mingw and cross-compilation
25465         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25466         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25467         cross-compilation results to -1, to make linkat easier to
25468         implement when cross-compiling.  Trivially support mingw.
25469         * modules/link-follow (configure.ac): Call new name.
25470         * NEWS: Mention this.
25471
25472 2009-09-03  Eric Blake  <ebb9@byu.net>
25473
25474         faccessat: compile replacement
25475         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25476         needed.
25477
25478         fts: fix compilation error
25479         * lib/fts.c (includes): Re-add "openat.h", for
25480         openat_needs_fchdir.
25481
25482         faccessat: new module
25483         * modules/faccessat: New file.
25484         * lib/faccessat.c: Likewise.
25485         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25487         * modules/unistd (Makefile.am): Use it.
25488         * lib/unistd.in.h (faccessat): Declare it.
25489         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25490         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25491         * MODULES.html.sh (File system functions): Mention it.
25492         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25493         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25494
25495         euidaccess: prefer POSIX over non-standard implementation
25496         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25497         * lib/euidaccess.c (euidaccess): Use it if available.
25498
25499         openat: make template easier to use
25500         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25501         AT_FUNC_F2 to be undefined.
25502         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25503         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25504         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25505         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25506         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25507         Likewise.
25508         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25509         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25510         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25511         Likewise.
25512
25513         openat: declare in POSIX headers
25514         * NEWS: Mention this.
25515         * modules/openat (configure.ac): Declare witnesses.
25516         (Depends-on): Add fcntl-h, sys_stat, unistd.
25517         (Include): Mention correct headers.
25518         * modules/fcntl-h (Depends-on): Add link-warning.
25519         (Files): Add openat.m4.
25520         (Makefile.am): Substitute witnesses.
25521         * modules/sys_stat (Files, Makefile.am): Likewise.
25522         * modules/unistd (Files, Makefile.am): Likewise.
25523         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25524         (gl_OPENAT_DEFAULTS): New macro.
25525         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25527         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25528         (SYS_STAT_H): Remove unused variable.
25529         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25530         * lib/fcntl--.h (includes): Remove unneeded header.
25531         * lib/openat-safer.c (includes): Likewise.
25532         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25533         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25534         appropriate headers.
25535         (__OPENAT_PREFIX): Delete.
25536         * lib/fcntl.in.h (openat): Provide declaration.
25537         (AT_FDCWD): Fix Solaris bug.
25538         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25539         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25540         * lib/fchmodat.c (includes):  Adjust to find declaration.
25541         * lib/fchownat.c (includes): Likewise.
25542         * lib/mkdirat.c (includes): Likewise.
25543         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25544         still visible.
25545
25546 2009-09-02  Eric Blake  <ebb9@byu.net>
25547
25548         errno: use consistently
25549         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25550         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25551         * lib/canonicalize.c (ELOOP): Likewise.
25552         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25553         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25554         * lib/lchown.c (EOPNOTSUPP): Likewise.
25555         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25556         * lib/savewd.c (ESTALE): Likewise.
25557         * lib/settime.c (ENOSYS): Likewise.
25558         * lib/utimens.c (ENOSYS): Likewise.
25559         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25560         * lib/chdir-safer.c (ELOOP): Likewise.
25561         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25562         * modules/c-stack (Depends-on): Add errno.
25563         * modules/canonicalize (Depends-on): Likewise.
25564         * modules/chdir-safer (Depends-on): Likewise.
25565         * modules/fdopendir (Depends-on): Likewise.
25566         * modules/inet_ntop (Depends-on): Likewise.
25567         * modules/inet_pton (Depends-on): Likewise.
25568         * modules/lchown (Depends-on): Likewise.
25569         * modules/openat (Depends-on): Likewise.
25570         * modules/savewd (Depends-on): Likewise.
25571         * modules/settime (Depends-on): Likewise.
25572         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25573
25574         fts: avoid leaking fds
25575         * modules/fts (Depends-on): Add cloexec.
25576         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25577         flag.
25578
25579         fts: make directory fds more robust
25580         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25581         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25582
25583         backupfile, chdir-long, fts, savedir: make safer
25584         * lib/backupfile.c (includes): Use "dirent--.h", since
25585         numbered_backup can write to stderr during readdir.
25586         * lib/savedir.c (includes): Likewise.
25587         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25588         emulation can write to stderr on failure.
25589         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25590         * lib/getcwd.c: Document why opendir_safer is unused.
25591         * lib/glob.c: Likewise.
25592         * lib/scandir.c: Likewise.
25593         * lib/openat-proc.c: Likewise, for open_safer.
25594         * modules/backupfile (Depends-on): Add dirent-safer.
25595         * modules/savedir (Depends-on): Likewise.
25596         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25597         * modules/chdir-long (Depends-on): Add openat-safer.
25598
25599         openat-safer: new module
25600         * modules/openat-safer: New file.
25601         * lib/openat-safer.c: Likewise.
25602         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25603         * lib/fcntl-safer.h (openat_safer): Declare.
25604         * lib/fcntl--.h (openat): Override.
25605         * MODULES.html.sh (File descriptor based I/O): Mention it.
25606         * lib/openat.h: Add double-inclusion guards.
25607         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25608         "fcntl--.h", so we can implement openat.
25609         * modules/openat-safer-tests: New test.
25610         * tests/test-openat-safer.c: New file.
25611
25612         dirent-safer: new module
25613         * modules/dirent-safer: New file.
25614         * lib/dirent--.h: Likewise.
25615         * lib/dirent-safer.h: Likewise.
25616         * lib/opendir-safer.c: Likewise.
25617         * m4/dirent-safer.m4: Likewise.
25618         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25619         * modules/dirent-safer-tests: New test.
25620         * tests/test-dirent-safer.c: New file.
25621         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25622
25623         fdopendir: optimize on mingw
25624         * lib/unistd.in.h (_gl_directory_name): New prototype.
25625         * lib/fchdir.c (_gl_directory_name): Implement it.
25626         (fchdir): Use it to simplify implementation.
25627         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25628         fchdir, when available, to avoid calling [f]chdir().
25629
25630         fdopendir: split into its own module
25631         * lib/openat.c (fdopendir): Move...
25632         * lib/fdopendir.c: ...into new file.
25633         * modules/fdopendir: New module.
25634         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25635         * modules/openat (Depends-on): Add fdopendir.
25636         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25637         fdopendir here.
25638         * modules/savedir (Depends-on): Only need fdopendir, not full
25639         openat.
25640         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25641         * lib/openat.h (fdopendir): Drop prototype.
25642         * lib/dirent.in.h (fdopendir): Provide prototype.
25643         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25644         * modules/dirent (Makefile.am): Substitute them.
25645         * MODULES.html.sh (File system functions): Mention it.
25646         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25647         * modules/fdopendir-tests: New file.
25648         * tests/test-fdopendir.c: Likewise.
25649
25650         fchdir: use more consistent macro convention
25651         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25652         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25653         REPLACE_FCHDIR, rather than relying on config.h macros.
25654         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25655         inside a single make-time REPLACE_FCHDIR block, rather than using
25656         the config.h FCHDIR_REPLACEMENT.
25657         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25658         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25659         Manage fstat replacement.
25660         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25661         REPLACE_FCHDIR.
25662         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25663         (Makefile.am): Substitute REPLACE_FCHDIR.
25664         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25665         FCHDIR_REPLACEMENT.
25666         * lib/dup-safer.c (dup_safer): Likewise.
25667         * lib/dup2.c (rpl_dup2): Likewise.
25668         * lib/dup3.c (rpl_dup3): Likewise.
25669         * lib/open.c (rpl_open): Likewise.
25670
25671         fchdir: simplify error handling, and support dup3
25672         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25673         stdbool, malloc-posix, realloc-posix.
25674         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25675         (ensure_dirs_slot): Return false on allocation failure.
25676         (rpl_dup2): Delete.
25677         (_gl_register_dup): New function.
25678         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25679         (_gl_register_fd): Close fd on allocation failure.
25680         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25681         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25682         prototype.
25683         (rpl_dup2_fchdir): Delete prototype.
25684         * lib/open.c (open): Update caller.
25685         * lib/dup2.c (dup2): Track fchdir metadata.
25686         * lib/dup3.c (dup3): Likewise.
25687         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25688         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25689
25690 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25691
25692         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25693         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25694         don't pass arguments to AC_OUTPUT.
25695
25696 2009-09-02  Bruno Haible  <bruno@clisp.org>
25697
25698         * modules/mkdtemp (License): Relicense under LGPLv2+.
25699         Reported by Paolo Bonzini.
25700
25701 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25702
25703         Replace uses of obsolete autoconf macros in Jim's modules.
25704         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25705         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25706         can evoke a warning from autoconf when run with -Wobsolete
25707         enabled.  They were declared obsolete for good reasons (see
25708         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25709         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25710         should not continue using the deprecated macros.
25711         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25712         obsolete Autoconf macros with modern counterparts.
25713         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25714         * m4/dos.m4 (gl_AC_DOS): Likewise.
25715         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25716         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25717         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25718         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25719         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25720         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25721         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25722         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25723         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25724         Likewise.
25725         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25726         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25727         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25728         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25729         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25730         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25731
25732 2009-09-01  Eric Blake  <ebb9@byu.net>
25733
25734         fchdir: fix off-by-one bug in previous patch
25735         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25736         (_gl_unregister_fd): Delete useless if.
25737
25738 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25739
25740         maint.mk: sort the list of syntax-check rules
25741         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25742         easier to get a sense of progress when the rules are run sequentially
25743         and take a long time.
25744
25745 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25746
25747         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25748         * modules/netinet_in: Likewise.
25749         * modules/sys_file: Likewise.
25750         * modules/sys_ioctl: Likewise.
25751         * modules/sys_select: Likewise.
25752         * modules/sys_socket: Likewise.
25753         * modules/sys_stat: Likewise.
25754         * modules/sys_time: Likewise.
25755         * modules/sys_times: Likewise.
25756         * modules/sys_utsname: Likewise.
25757         * modules/sys_wait: Likewise.
25758
25759 2009-09-01  Jim Meyering  <meyering@redhat.com>
25760
25761         fts: help ensure that return values are not ignored
25762         * lib/fts_.h (__GNUC_PREREQ): Define.
25763         (__attribute_warn_unused_result__): Define.
25764         (fts_children, fts_close, fts_open, fts_read): Declare with
25765         __attribute_warn_unused_result__.
25766
25767         fts: fts_close now fails also when closing a dir file descriptor fails
25768         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25769         and propagate to caller, along with errno.
25770
25771         announce-gen: correct formatting in --help output
25772         * build-aux/announce-gen (usage): Move the one-line description in
25773         --help output "up", to where it belongs, just after Usage:.
25774
25775 2009-08-31  Eric Blake  <ebb9@byu.net>
25776
25777         fchdir: port to mingw
25778         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25779         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25780         opened, then use a substitute.
25781         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25782         replacement.
25783         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25784         (_gl_register_fd): No need to check stat if open already filters
25785         all directories.
25786         (fchdir): Fix error condition to match POSIX.
25787         * modules/fchdir (Depends-on): Add sys_stat.
25788         * doc/posix-functions/open.texi (open): Document the limitation.
25789         * modules/fchdir-tests: New file.
25790         * tests/test-fchdir.c: Likewise.
25791
25792         canonicalize: allow cross-testing from cygwin to mingw
25793         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25794         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25795         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25796         Likewise.
25797         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25798         target does not support symlinks.
25799         * tests/test-canonicalize-lgpl.sh: Likewise.
25800
25801         chown: avoid compilation warning on mingw
25802         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25803         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25804         mingw.
25805         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25806         * modules/chown (Depends-on): Add errno.
25807
25808 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25809
25810         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25811         command.
25812
25813 2009-08-31  Jim Meyering  <meyering@redhat.com>
25814
25815         canonicalize: remove useless initialization
25816         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25817         initialization of local, "end".
25818
25819 2009-08-30  Bruno Haible  <bruno@clisp.org>
25820
25821         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25822         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25823         ENOSYS.
25824
25825 2009-08-30  Bruno Haible  <bruno@clisp.org>
25826
25827         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25828         /usr/xpg4/bin/tr when it exists.
25829         * tests/test-pipe-filter-gi1.sh: Likewise.
25830
25831 2009-08-30  Bruno Haible  <bruno@clisp.org>
25832
25833         Work around deficient /usr/bin/id program on Solaris.
25834         * tests/test-file-has-acl.sh (ID): New variable.
25835         * tests/test-set-mode-acl.sh (ID): Likewise.
25836         * tests/test-copy-acl.sh (ID): Likewise.
25837         * tests/test-copy-file.sh (ID): Likewise.
25838
25839 2009-08-30  Bruno Haible  <bruno@clisp.org>
25840
25841         New module 'xstriconveh'.
25842         * lib/xstriconveh.h: New file.
25843         * lib/xstriconveh.c: New file.
25844         * modules/xstriconveh: New file.
25845
25846 2009-08-30  Bruno Haible  <bruno@clisp.org>
25847
25848         Make it easier to use mem_cd_iconveh.
25849         * lib/striconveh.h (iconveh_t): New type.
25850         (iconveh_open, iconveh_close): New declarations.
25851         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25852         with a single 'const iconveh_t *' argument.
25853         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25854         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25855         with a single 'const iconveh_t *' argument.
25856         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25857         * tests/test-striconveh.c (main): Update.
25858         * NEWS: Mention the change.
25859
25860 2009-08-30  Bruno Haible  <bruno@clisp.org>
25861
25862         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25863         problem.
25864
25865 2009-08-30  Bruno Haible  <bruno@clisp.org>
25866
25867         Work around iconv_open problem on Solaris.
25868         * lib/iconv_open-solaris.gperf: New file.
25869         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25870         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25871         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25872         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25873         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25874         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25875
25876 2009-08-29  Jim Meyering  <meyering@redhat.com>
25877
25878         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25879         * top/maint.mk (cvs-check): Remove target; it was just an alias
25880         to the better-named vc-diff-check.
25881         (maintainer-distcheck): Remove rule.  It was used only from
25882         the (alpha/beta/major) target, and all of its commands but one
25883         were coreutils-specific.
25884         (vc-dist): Remove rule.
25885         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25886         Run vc-diff-check, not vc-dist.
25887         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25888
25889 2009-08-27  Bruno Haible  <bruno@clisp.org>
25890
25891         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25892         of 0.
25893
25894 2009-08-27  Bruno Haible  <bruno@clisp.org>
25895
25896         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25897         compilers.
25898         * doc/func.texi: Document the SunPRO C bug.
25899
25900 2009-08-27  Bruno Haible  <bruno@clisp.org>
25901
25902         Fix link error on Solaris.
25903         * tests/test-parse-duration.c (xstrdup): Remove function.
25904
25905 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25906
25907         ignore-value: handle pointer types, too
25908         * lib/ignore-value.h (__attribute__): Remove definition.
25909         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25910         of a more concise and more-often effective "(void) i" statement.
25911         (ignore_ptr): New function to suppress warnings from functions that
25912         return pointers, and to make it explicit that one function doesn't
25913         handle all cases.
25914
25915 2009-08-25  Bruno Haible  <bruno@clisp.org>
25916
25917         dup2: work around a Linux bug.
25918         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25919         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25920         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25921         Reported by Simon Josefsson.
25922
25923 2009-08-25  Jim Meyering  <meyering@redhat.com>
25924
25925         libguestfs uses gnulib
25926         * users.txt: Add libguestfs.
25927
25928 2009-08-24  Eric Blake  <ebb9@byu.net>
25929
25930         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25931         * lib/pipe2.c (includes): Add binary-io.h.
25932         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25933
25934 2009-08-24  Bruno Haible  <bruno@clisp.org>
25935
25936         Tolerate declared but missing accept4 syscall.
25937         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25938         available.
25939         * lib/sys_socket.in.h (accept4): If the function is already present,
25940         override it.
25941         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25942         * modules/accept4 (Makefile.am): Compile accept4.c always.
25943         Reported by Paolo Bonzini and Eric Blake.
25944
25945 2009-08-23  Bruno Haible  <bruno@clisp.org>
25946
25947         New module 'accept4'.
25948         * lib/sys_socket.in.h (accept4): New declaration.
25949         * lib/accept4.c: New file.
25950         * m4/accept4.m4: New file.
25951         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25952         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25953         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
25954         HAVE_ACCEPT4.
25955         * modules/accept4: New file.
25956         * doc/glibc-functions/accept4.texi: Mention the new module.
25957
25958 2009-08-24  Jim Meyering  <meyering@redhat.com>
25959
25960         progname: also set global program_invocation_name, when possible
25961         Before this change, a libtool-enabled program that calls glibc's
25962         error function would report the program name as
25963         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
25964         * modules/progname (configure.ac): Check for a declaration of
25965         program_invocation_name.
25966         * lib/progname.c:  Include <errno.h>.
25967         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
25968         Set program_invocation_name.
25969
25970 2009-08-23  Bruno Haible  <bruno@clisp.org>
25971
25972         * lib/dup3.c: Include <string.h>.
25973
25974 2009-08-23  Bruno Haible  <bruno@clisp.org>
25975
25976         * lib/dup3.c (dup3): Test only once whether the system actually exists.
25977         * lib/pipe2.c (pipe2): Likewise.
25978         Suggested by Eric Blake.
25979
25980 2009-08-23  Bruno Haible  <bruno@clisp.org>
25981
25982         Tolerate declared but missing dup3 syscall.
25983         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
25984         * lib/unistd.in.h (dup3): If the function is already present,
25985         override it.
25986         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
25987         * modules/dup3 (Makefile.am): Compile dup3.c always.
25988         Reported by Paolo Bonzini.
25989
25990 2009-08-23  Bruno Haible  <bruno@clisp.org>
25991
25992         Tolerate declared but missing pipe2 syscall.
25993         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
25994         available.
25995         * lib/unistd.in.h (pipe2): If the function is already present,
25996         override it.
25997         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
25998         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
25999         Reported by Paolo Bonzini.
26000
26001 2009-08-23  Bruno Haible  <bruno@clisp.org>
26002
26003         * lib/pipe2.c (pipe2): Move #ifs inside function.
26004
26005 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26006
26007         quotearg: document limitations of quote_these_too
26008         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26009         those limitations are created.
26010         * lib/quotearg.h (set_char_quoting): Document that digits and
26011         letters that are special after backslash are not permitted.
26012         (quotearg_char): Cross-reference set_char_quoting documentation.
26013
26014 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26015
26016         quotearg: implement custom_quoting_style
26017         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26018         right_quote fields.
26019         (set_custom_quoting): New public function.
26020         (quotearg_buffer_restyled): Add left_quote and right_quote
26021         arguments, handle them very much like locale quoting, and update
26022         all uses.
26023         (quotearg_n_custom): New public function.
26024         (quotearg_n_custom_mem): New public function.
26025         (quotearg_custom): New public function.
26026         (quotearg_custom_mem): New public function.
26027         * lib/quotearg.h: Prototype and document new public functions.
26028         (enum quoting_style): For escape_quoting_style and
26029         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26030         ignored even though they're otherwise like c_quoting_style.
26031         Add custom_quoting_style member and document with comparison to
26032         clocale_quoting_style.
26033         * tests/test-quotearg.c (custom_quotes): New array.
26034         (custom_results): New array.
26035         (main): Extend to test custom quoting.
26036
26037 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26038
26039         quotearg: fix right quote escaping when it's in quote_these_too
26040         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26041         quote, be sure to prepend only one backslash.
26042         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26043         (main): Test it.
26044
26045 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26046
26047         quotearg-tests: test escaping of embedded locale quotes
26048         * tests/test-quotearg.c (struct result_strings): Add member for
26049         new input.
26050         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26051         (inputs): Add new input.
26052         (results_g): Add expected results.
26053         (flag_results): Likewise.
26054         (locale_results): Likewise.
26055         (compare_strings): Check those.
26056
26057 2009-08-23  Bruno Haible  <bruno@clisp.org>
26058
26059         Tests for module 'dup3'.
26060         * modules/dup3-tests: New file.
26061         * tests/test-dup3.c: New file.
26062
26063         New module 'dup3'.
26064         * lib/unistd.in.h (dup3): New declaration.
26065         * lib/dup3.c: New file.
26066         * m4/dup3.m4: New file.
26067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26068         HAVE_DUP3.
26069         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26070         * modules/dup3: New file.
26071         * doc/glibc-functions/dup3.texi: Mention the new module.
26072
26073 2009-08-23  Bruno Haible  <bruno@clisp.org>
26074
26075         Tweak the dup2 test.
26076         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26077         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26078         the test file is still empty. Fix argument order of lseek.
26079
26080 2009-08-23  Bruno Haible  <bruno@clisp.org>
26081
26082         Avoid test link errors when the modules getopt-gnu, gettext are used.
26083         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26085
26086 2009-08-23  Bruno Haible  <bruno@clisp.org>
26087
26088         Fix getdtablesize() on mingw.
26089         * lib/getdtablesize.c (getdtablesize): Implement differently.
26090         * lib/unistd.in.h (getdtablesize): Improve comment.
26091
26092 2009-08-23  Bruno Haible  <bruno@clisp.org>
26093
26094         New module 'mkostemp'.
26095         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26096         * lib/stdlib.in.h (mksotemp): New declaration.
26097         * lib/mkostemp.c: New file, from glibc with modifications.
26098         * lib/tempname.h (GT_FILE): Remove outdated comment.
26099         (gen_tempname): Add flags argument.
26100         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26101         (__GT_FILE): Map to 1.
26102         (small_open, large_open): Remove macros.
26103         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26104         * lib/mkstemp.c (mkstemp): Update.
26105         * lib/mkdtemp.c (mkdtemp): Likewise.
26106         * m4/mkostemp.m4: New file.
26107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26108         HAVE_MKOSTEMP.
26109         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26110         HAVE_MKOSTEMP.
26111         * modules/mkostemp: New file, based on modules/mkstemp.
26112         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26113         * NEWS: Mention the change.
26114
26115 2009-08-23  Bruno Haible  <bruno@clisp.org>
26116
26117         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26118         Reported by Eric Blake.
26119
26120 2009-08-23  Bruno Haible  <bruno@clisp.org>
26121
26122         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26123         Reported by Eric Blake.
26124
26125 2009-08-23  Bruno Haible  <bruno@clisp.org>
26126
26127         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26128         * modules/pipe2 (Depends-on): Likewise.
26129
26130 2009-08-23  Eric Blake  <ebb9@byu.net>
26131
26132         fcntl-h: add O_TTY_INIT support
26133         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26134         * tests/test-fcntl-h.c (o): Test it.
26135         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26136
26137         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26138         * modules/fcntl: Move <fcntl.h> header replacement...
26139         * modules/fcntl-h: ...to new name, so as not to collide with
26140         like-named function.
26141         * tests/test-fcntl.c: Rename...
26142         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26143         * modules/fcntl-tests: Rename...
26144         * modules/fcntl-h-tests: ...to this.  Update test file name.
26145         * modules/chdir-long (Depends-on): Update clients.
26146         * modules/chdir-safer (Depends-on): Likewise.
26147         * modules/fcntl-safer (Depends-on): Likewise.
26148         * modules/fts (Depends-on): Likewise.
26149         * modules/mkancesdirs (Depends-on): Likewise.
26150         * modules/mkdir-p (Depends-on): Likewise.
26151         * modules/open (Depends-on): Likewise.
26152         * modules/savewd (Depends-on): Likewise.
26153         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26154         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26155
26156 2009-08-22  Bruno Haible  <bruno@clisp.org>
26157
26158         * modules/binary-io (License): Relicense under LGPL.
26159         * modules/pipe2 (License): Likewise.
26160
26161 2009-08-22  Bruno Haible  <bruno@clisp.org>
26162
26163         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26164         return value.
26165         * lib/pipe-filter-gi.c (filter_init): Likewise.
26166         Reported by Eric Blake.
26167
26168 2009-08-22  Bruno Haible  <bruno@clisp.org>
26169
26170         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26171         * modules/pipe (Depends-on): Add pipe2.
26172
26173 2009-08-22  Bruno Haible  <bruno@clisp.org>
26174
26175         Tests for module 'pipe2'.
26176         * modules/pipe2-tests: New file.
26177         * tests/test-pipe2.c: New file.
26178
26179         New module 'pipe2'.
26180         * lib/unistd.in.h (pipe2): New declaration.
26181         * lib/pipe2.c: New file.
26182         * m4/pipe2.m4: New file.
26183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26184         HAVE_PIPE2.
26185         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26186         * modules/pipe2: New file.
26187         * doc/glibc-functions/pipe2.texi: Mention the new module.
26188
26189 2009-08-22  Bruno Haible  <bruno@clisp.org>
26190
26191         Reference some new glibc functions.
26192         * doc/glibc-functions/accept4.texi: New file.
26193         * doc/glibc-functions/dup3.texi: New file.
26194         * doc/glibc-functions/mkostemp.texi: New file.
26195         * doc/glibc-functions/pipe2.texi: New file.
26196         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26197         (Glibc sys/socket.h): Refer to accept4.
26198         (Glibc unistd.h): Refer to dup3, pipe2.
26199         Reported by Eric Blake.
26200
26201 2009-08-22  Jim Meyering  <meyering@redhat.com>
26202             Bruno Haible  <bruno@clisp.org>
26203
26204         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26205         This makes it so packages using automake-1.11's silent-rules option
26206         can print e.g., a single "GEN    configmake.h" line, rather than
26207         the 30+ statements that perform the job.  If you want to see the
26208         actual commands, you can still run "make V=1".
26209         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26210         so that make output is abbreviated when those variables are defined
26211         appropriately.
26212         * modules/argz: Likewise.
26213         * modules/arpa_inet: Likewise.
26214         * modules/byteswap: Likewise.
26215         * modules/configmake: Likewise.
26216         * modules/dirent: Likewise.
26217         * modules/errno: Likewise.
26218         * modules/fcntl: Likewise.
26219         * modules/float: Likewise.
26220         * modules/fnmatch: Likewise.
26221         * modules/getopt-posix: Likewise.
26222         * modules/glob: Likewise.
26223         * modules/iconv_open: Likewise.
26224         * modules/inttypes: Likewise.
26225         * modules/localcharset: Likewise.
26226         * modules/locale: Likewise.
26227         * modules/math: Likewise.
26228         * modules/netdb: Likewise.
26229         * modules/netinet_in: Likewise.
26230         * modules/poll: Likewise.
26231         * modules/posix_spawnp-tests: Likewise.
26232         * modules/sched: Likewise.
26233         * modules/search: Likewise.
26234         * modules/selinux-h: Likewise.
26235         * modules/signal: Likewise.
26236         * modules/spawn: Likewise.
26237         * modules/stdarg: Likewise.
26238         * modules/stdbool: Likewise.
26239         * modules/stddef: Likewise.
26240         * modules/stdint: Likewise.
26241         * modules/stdio: Likewise.
26242         * modules/stdlib: Likewise.
26243         * modules/string: Likewise.
26244         * modules/strings: Likewise.
26245         * modules/sys_file: Likewise.
26246         * modules/sys_ioctl: Likewise.
26247         * modules/sys_select: Likewise.
26248         * modules/sys_socket: Likewise.
26249         * modules/sys_stat: Likewise.
26250         * modules/sys_time: Likewise.
26251         * modules/sys_times: Likewise.
26252         * modules/sys_utsname: Likewise.
26253         * modules/sys_wait: Likewise.
26254         * modules/sysexits: Likewise.
26255         * modules/time: Likewise.
26256         * modules/unistd: Likewise.
26257         * modules/wchar: Likewise.
26258         * modules/wctype: Likewise.
26259
26260 2009-08-22  Jim Meyering  <meyering@redhat.com>
26261
26262         announce-gen: detect write failure
26263         * build-aux/announce-gen: Add Coda at end.
26264         Remove equivalent-but-more-verbose block at top.
26265
26266 2009-08-19  Akim Demaille  <demaille@gostai.com>
26267
26268         bootstrap: --help to stdout.
26269         * bootstrap (usage): Don't send --help to stderr.
26270         Use a here doc instead of a long string.
26271
26272 2009-08-21  Eric Blake  <ebb9@byu.net>
26273
26274         test-popen-safer: split from test-popen
26275         * tests/test-popen.c (main): Move...
26276         * tests/test-popen.h: ...into new file.
26277         * tests/test-popen-safer2.c: New file.
26278         * modules/popen-tests (Files): Add test-popen.h.
26279         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26280         Suggested by Bruno Haible.
26281
26282         test-fcntl-safer: split from test-open
26283         * tests/test-open.c (main): Move...
26284         * tests/test-open.h: ...into new file.
26285         * tests/test-fcntl-safer.c: New file.
26286         * modules/open-tests (Files): Add test-open.h.
26287         * modules/fcntl-safer-tests: New file.
26288         Suggested by Bruno Haible.
26289
26290         test-fopen-safer: split from test-fopen
26291         * tests/test-fopen.c (main): Move...
26292         * tests/test-fopen.h: ...into new file.
26293         * tests/test-fopen-safer.c: New file.
26294         * modules/fopen-tests (Files): Add test-fopen.h.
26295         * modules/fopen-safer-tests: New file.
26296         Suggested by Bruno Haible.
26297
26298 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26299
26300         popen-safer: test O_CLOEXEC at run-time.
26301         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26302
26303 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26304
26305         fcntl: move more flags to the header
26306         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26307         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26308         * lib/fcntl.in.h: Do both things here.
26309
26310 2009-08-21  Jim Meyering  <meyering@redhat.com>
26311
26312         consistently remove $@-t before redirecting to it
26313         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26314         * modules/alloca-opt: Likewise.
26315         * modules/byteswap: Likewise.
26316         * modules/fnmatch: Likewise.
26317         * modules/getopt-posix: Likewise.
26318         * modules/glob: Likewise.
26319         * modules/poll: Likewise.
26320         * modules/posix_spawnp-tests: Likewise.
26321         * modules/sys_socket: Likewise.
26322         * modules/sysexits: Likewise.
26323
26324 2009-08-21  Eric Blake  <ebb9@byu.net>
26325
26326         popen: simplify access to original popen
26327         * lib/popen.c (rpl_popen): No need to worry about popen being a
26328         macro.
26329         Reported by Bruno Haible.
26330
26331 2009-08-20  Eric Blake  <ebb9@byu.net>
26332
26333         build: avoid some compiler warnings
26334         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26335         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26336         type.
26337         (new_exclude_segment, excluded_file_pattern_p)
26338         (excluded_file_name_p): Reduce scope.
26339         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26340         old-style declaration.
26341
26342 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26343
26344         * tests/test-exclude1.sh: Handle Windows EOL.
26345         * tests/test-exclude2.sh: Likewise.
26346         * tests/test-exclude3.sh: Likewise.
26347         * tests/test-exclude4.sh: Likewise.
26348         * tests/test-exclude5.sh: Likewise.
26349         * tests/test-exclude6.sh: Likewise.
26350         * tests/test-exclude7.sh: Likewise.
26351
26352 2009-08-19  Akim Demaille  <demaille@gostai.com>
26353
26354         bootstrap: find sha1sum when named gsha1sum.
26355         * bootstrap (find_tool): New.
26356         ($SHA1SUM): New.
26357         Use it.
26358
26359 2009-08-20  Jim Meyering  <meyering@redhat.com>
26360
26361         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26362         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26363         expression that converts "." in a file name to "\." in the resulting
26364         regexp.  Start with a dummy statement, so that prior shell variable
26365         definitions are expanded portably.  Reported by Simon Josefsson.
26366
26367 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26368
26369         Fix polling for writeability of a screen buffer.
26370         * lib/poll.c: Distinguish input and screen buffers for the
26371         Win32 implementation.
26372         * lib/select.c: Likewise.
26373
26374 2009-08-19  Eric Blake  <ebb9@byu.net>
26375
26376         popen-safer: prevent popen from clobbering std descriptors
26377         * modules/popen-safer: New file.
26378         * lib/popen-safer.c: Likewise.
26379         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26380         * lib/stdio--.h (popen): Provide override.
26381         * lib/stdio-safer.h (popen_safer): Provide declaration.
26382         * tests/test-popen.c (includes): Partially test this.
26383         * modules/popen-safer-tests: New file, for more tests.
26384         * tests/test-popen-safer.c: Likewise.
26385         * MODULES.html.sh (file stream based Input/Output): Mention it.
26386
26387         tests: test some of the *-safer modules
26388         * modules/fopen-safer (Depends-on): Add fopen.
26389         * modules/fcntl-safer (Depends-on): Add fcntl.
26390         * modules/stdlib-safer (Depends-on): Add stdlib.
26391         (configure.ac): Set indicator.
26392         * modules/unistd-safer (configure.ac): Likewise.
26393         * modules/tmpfile-safer (configure.ac): Likewise.
26394         (Depends-on): Add tmpfile.
26395         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26396         active.
26397         * tests/test-fopen.c (includes): Test safer versions when they are
26398         in use.
26399         * tests/test-open.c (includes): Likewise.
26400
26401         popen: fix cygwin 1.5 bug when stdin closed
26402         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26403         * modules/popen: New file.
26404         * modules/popen-tests: Likewise.
26405         * tests/test-popen.c: Likewise.
26406         * m4/popen.m4: Likewise.
26407         * lib/popen.c: Likewise.
26408         * lib/stdio.in.h (popen): New declaration.
26409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26410         * modules/stdio (Makefile.am): Likewise.
26411         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26412
26413 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26414
26415         maint.mk: give full control over update-copyright exclusions
26416         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26417         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26418         (update-copyright): Don't force inclusion of top-level
26419         ChangeLog.  Don't force exclusion of all COPYING files, but make
26420         them the default exclusion instead.
26421
26422 2009-08-16  Bruno Haible  <bruno@clisp.org>
26423
26424         Fix test failures on Solaris 10.
26425         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26426         tests when Solaris iconv() is used.
26427         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26428         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26429         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26430         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26431         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26432
26433 2009-08-16  Bruno Haible  <bruno@clisp.org>
26434
26435         Fix test failures on Solaris 10.
26436         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26437         'tr' program and pass it as first argument.
26438         * tests/test-pipe-filter-gi1.sh: Likewise.
26439         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26440         program as first argument.
26441         * tests/test-pipe-filter-gi1.c (main): Likewise.
26442
26443 2009-08-16  Eric Blake  <ebb9@byu.net>
26444
26445         fpurge: fix previous commits
26446         * modules/fpurge (Makefile.am): Make replacement conditional,
26447         partially reverting 2007-04-29 change; missed in previous
26448         attempt.
26449         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26450         is missing.
26451
26452 2009-08-16  Bruno Haible  <bruno@clisp.org>
26453
26454         Clarify fpurge's effect on the file position.
26455         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26456         * tests/test-fpurge.c (main): Make a second pass for checking the file
26457         position.
26458
26459 2009-08-16  Bruno Haible  <bruno@clisp.org>
26460
26461         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26462         declaration of fpurge is missing.
26463         * tests/test-fpurge.c (main): Check that the file has not more contents
26464         than expected. Close the file before removing it.
26465
26466 2009-08-15  Eric Blake  <ebb9@byu.net>
26467
26468         fpurge: don't wrap working cygwin implementation
26469         * lib/fpurge.c (fpurge): Fix comment typo.
26470         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26471         1.7 to avoid replacement.
26472         * tests/test-fpurge.c (main): Enhance test.
26473
26474 2009-08-15  Eric Blake  <ebb9@byu.net>
26475         and Jim Meyering  <meyering@redhat.com>
26476
26477         test-update-copyright: skip if perl is insufficient
26478         * tests/test-update-copyright.sh: Failure to run maintainer tool
26479         should not cause testsuite failure on cygwin 1.5.
26480
26481 2009-08-14  Eric Blake  <ebb9@byu.net>
26482
26483         doc: mention more functions added in cygwin 1.7.0
26484         * doc/posix-headers/limits.texi (limits.h): Update for recent
26485         cygwin additions.
26486         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26487         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26488         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26489         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26490         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26491
26492 2009-08-14  Eric Blake  <ebb9@byu.net>
26493
26494         maint.mk: simplify update-copyright rule
26495         * top/maint.mk (update-copyright-local): Delete, and document how
26496         to do it in cfg.mk instead.
26497         (update-copyright-exclude-regexp): Delete, and document how to do
26498         it in .x-update-copyright instead.
26499         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26500         exclude ChangeLog.
26501
26502 2009-08-14  Bruno Haible  <bruno@clisp.org>
26503
26504         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26505
26506 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26507
26508         maint.mk: support update-copyright-env
26509         * top/maint.mk (update-copyright-env): Define place-holder.
26510         (update-copyright): Expand $(update-copyright-env) before
26511         invoking update-copyright.
26512
26513 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26514
26515         update-copyright: implement forced reformatting
26516         * build-aux/update-copyright: Implement and document
26517         UPDATE_COPYRIGHT_FORCE.
26518         * tests/test-update-copyright.sh: Test it.
26519
26520 2009-08-14  Eric Blake  <ebb9@byu.net>
26521         and Bruno Haible  <bruno@clisp.org>
26522
26523         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26524         * tests/test-locale.c: Revert previous patch related to NULL.
26525         * tests/test-stdio.c: Likewise.
26526         * tests/test-stdlib.c: Likewise.
26527         * tests/test-string.c: Likewise.
26528         * tests/test-unistd.c: Likewise.
26529         * modules/time-tests (Depends-on): Add verify.
26530         * modules/wchar-tests (Depends-on): Likewise.
26531         * tests/test-time.c: Test for NULL compliance.
26532         * tests/test-wchar.c: Likewise.
26533         * modules/locale (Depends-on): Add stddef.
26534         * modules/stdio (Depends-on): Likewise.
26535         * modules/stdlib (Depends-on): Likewise.
26536         * modules/string (Depends-on): Likewise.
26537         * modules/time (Depends-on): Likewise.
26538         * modules/unistd (Depends-on): Likewise.
26539         * modules/wchar (Depends-on): Likewise.
26540         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26541         * lib/stdlib.in.h (includes): Likewise.
26542         * lib/string.in.h (includes): Likewise.
26543         * lib/time.in.h (includes): Likewise.
26544         * lib/unistd.in.h (includes): Likewise.
26545         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26546         replaced.
26547         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26548         * m4/stddef_h.m4: New file.
26549         * modules/stddef: Likewise.
26550         * lib/stddef.in.h: Likewise.
26551         * modules/stddef-tests: Likewise.
26552         * tests/test-stddef.c: Likewise.
26553         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26554         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26555         * doc/posix-headers/locale.texi (locale.h): Likewise.
26556         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26557         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26558         * doc/posix-headers/string.texi (string.h): Likewise.
26559         * doc/posix-headers/time.texi (time.h): Likewise.
26560         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26561         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26562
26563 2009-08-14  Eric Blake  <ebb9@byu.net>
26564
26565         doc: improve git diff of texinfo files
26566         * .gitattributes: Add rule for *.texi files, with hint on how to
26567         use it.
26568         Copied from m4, and based on a report by Bruno Haible.
26569
26570 2009-08-14  Bruno Haible  <bruno@clisp.org>
26571
26572         Disable multithread support by default on Cygwin 1.5.x for real.
26573         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26574
26575 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26576
26577         update-copyright: much ado about intervals
26578         * build-aux/update-copyright: Implement and document
26579         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26580         of copyright year intervals.
26581         Also, document UPDATE_COPYRIGHT_YEAR.
26582         * tests/test-update-copyright.sh: Test it.
26583
26584         update-copyright: convert 2-digit to 4-digit years
26585         * build-aux/update-copyright: Implement and document.
26586         * tests/test-update-copyright.sh: Update.
26587
26588 2009-08-14  Jim Meyering  <meyering@redhat.com>
26589
26590         test-exclude: avoid coreutils "make check" failure
26591         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26592         just as in test-argmatch.c.
26593
26594 2009-08-13  Eric Blake  <ebb9@byu.net>
26595
26596         test-dup2: fix bad assumption
26597         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26598         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26599
26600         test-version-etc: fix CRLF portability issue
26601         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26602         recognize \r.
26603         * tests/test-argp-version-etc-1.sh: Likewise.
26604
26605         getopt: update client modules
26606         * modules/argp (Depends-on): Use getopt-gnu.
26607         * modules/git-merge-changelog (Depends-on): Likewise.
26608         * modules/long-options (Depends-on): Likewise.
26609         * modules/xstrtol (Depends-on): Likewise.
26610
26611 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26612
26613         * tests/test-version-etc.sh: Don't fail on different
26614         project/version.  Don't fail on CRLF differences.  Rewrite to use
26615         multiple -e instead of multiple sed forks, suggested by Eric Blake
26616         <ebb9@byu.net>.
26617         * tests/test-argp-version-etc-1.sh: Likewise.
26618
26619 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26620
26621         * tests/test-version-etc.sh: Don't fail on different
26622         project/version.
26623
26624 2009-08-12  Bruno Haible  <bruno@clisp.org>
26625
26626         Tests for modules 'getopt-posix', 'getopt-gnu'.
26627         * modules/getopt-posix-tests: New file.
26628         * tests/test-getopt.c: New file.
26629         * tests/test-getopt.h: New file.
26630         * tests/test-getopt_long.h: New file.
26631
26632         New modules 'getopt-posix', 'getopt-gnu'.
26633         * modules/getopt-gnu: New file, renamed from modules/getopt.
26634         * modules/getopt-posix: New file.
26635         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26636         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26637         (gl_GETOPT): Remove macro.
26638         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26639         Disable the test against BSD systems that declare optreset. Test
26640         against mingw bug. Test against lack of support of optional arguments
26641         on many platforms.
26642         * doc/glibc-headers/getopt.texi: Update module name and list of
26643         relevant platforms.
26644         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26645         'getopt-gnu' and more portability problems.
26646         * NEWS: Mention the changes.
26647
26648 2009-08-12  Bruno Haible  <bruno@clisp.org>
26649
26650         Ensure that optarg etc. get declared by <unistd.h>.
26651         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26652         AC_USE_SYSTEM_EXTENSIONS.
26653         * modules/getopt (Depends-on): Add 'extensions'.
26654
26655 2009-08-12  Bruno Haible  <bruno@clisp.org>
26656
26657         Avoid test link errors.
26658         * modules/pipe-filter-ii-tests (Makefile.am): Define
26659         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26660         * modules/pipe-filter-gi-tests (Makefile.am): Define
26661         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26662         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26663
26664 2009-08-12  Bruno Haible  <bruno@clisp.org>
26665
26666         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26667         gl_GETOPT_SUBSTITUTE before.
26668         (gl_GETOPT): Use it.
26669         * m4/argp.m4 (gl_ARGP): Update.
26670         Reported by Sergey Poznyakoff.
26671
26672         * m4/getopt.m4: Reorder macros.
26673         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26674         (gl_GETOPT_SUBSTITUTE): Remove macro.
26675
26676 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26677
26678         Minor improvement in gitlog-to-changelog
26679
26680         * build-aux/gitlog-to-changelog: New option `--format' makes
26681         output format string configurable.
26682
26683 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26684
26685         Optimize exclude: use hash tables for non-wildcard patterns.
26686
26687         * lib/exclude.c: Include hash.h and mbuiter.h
26688         (struct exclude_pattern, exclude_segment): New data types.
26689         (struct exclude): Rewrite.
26690         (fnmatch_pattern_has_wildcards): New function.
26691         (new_exclude_segment, free_exclude_segment): New functions.
26692         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26693         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26694         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26695         * modules/exclude: Depend on hash and mbuiter.
26696
26697         * modules/exclude-tests: New file.
26698         * tests/test-exclude.c: New file.
26699         * tests/test-exclude1.sh: New file.
26700         * tests/test-exclude2.sh: New file.
26701         * tests/test-exclude3.sh: New file.
26702         * tests/test-exclude4.sh: New file.
26703         * tests/test-exclude5.sh: New file.
26704         * tests/test-exclude6.sh: New file.
26705         * tests/test-exclude7.sh: New file.
26706
26707 2009-08-12  Bruno Haible  <bruno@clisp.org>
26708
26709         Ensure that getopt() gets declared by <unistd.h>.
26710         * lib/unistd.in.h: Conditionally include getopt.h.
26711         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26712         Set GNULIB_UNISTD_H_GETOPT.
26713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26714         GNULIB_UNISTD_H_GETOPT.
26715         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26716
26717 2009-08-12  Bruno Haible  <bruno@clisp.org>
26718
26719         Clarify logic.
26720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26721         gl_replace_getopt instead of GETOPT_H.
26722
26723 2009-08-12  Bruno Haible  <bruno@clisp.org>
26724
26725         * m4/getopt.m4: Add comments.
26726
26727 2009-08-12  Bruno Haible  <bruno@clisp.org>
26728
26729         Disable multithread support by default on Cygwin 1.5.x.
26730         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26731         set gl_use_threads=no if not specified otherwise.
26732
26733 2009-08-11  Bruno Haible  <bruno@clisp.org>
26734
26735         Avoid compilation error on NetBSD 5.0.
26736         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26737         * tests/test-stdio.c: Likewise.
26738         * tests/test-stdlib.c: Likewise.
26739         * tests/test-string.c: Likewise.
26740         * tests/test-unistd.c: Likewise.
26741         Reported by Greg Troxel <gdt@ir.bbn.com>
26742         at <https://savannah.gnu.org/support/?106973>.
26743
26744 2009-08-11  Bruno Haible  <bruno@clisp.org>
26745
26746         * modules/dup2-tests (Depends-on): Remove close.
26747
26748         Undo 2009-07-19 commit.
26749         * modules/acl-tests (Depends-on): Remove close.
26750         * modules/binary-io-tests (Depends-on): Likewise.
26751         * modules/closein-tests (Depends-on): Likewise.
26752         * modules/flock-tests (Depends-on): Likewise.
26753         * modules/fsync-tests (Depends-on): Likewise.
26754         * modules/lseek-tests (Depends-on): Likewise.
26755         * modules/pipe-tests (Depends-on): Likewise.
26756         * modules/posix_spawn-tests (Depends-on): Likewise.
26757         * modules/posix_spawnp-tests (Depends-on): Likewise.
26758         * modules/stat-time-tests (Depends-on): Likewise.
26759         * modules/yesno-tests (Depends-on): Likewise.
26760
26761 2009-08-10  Bruno Haible  <bruno@clisp.org>
26762
26763         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26764
26765 2009-08-10  Bruno Haible  <bruno@clisp.org>
26766
26767         Fix a gcc warning.
26768         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26769
26770 2009-08-10  Bruno Haible  <bruno@clisp.org>
26771
26772         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26773         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26774         not only the first time.
26775         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26776         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26777         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26778         is 1, not only the the first time.
26779
26780 2009-08-10  Bruno Haible  <bruno@clisp.org>
26781
26782         Make it possible to use module 'gethostname' without module 'close'.
26783         * lib/unistd.in.h (close): Evoke a link error only if
26784         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26786         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26787         * modules/unistd (Makefile.am): Substitute
26788         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26789         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26790         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26791         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26792         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26793         * modules/sys_ioctl (Makefile.am): Substitute
26794         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26795         * modules/socket (configure.ac): On native Windows, set
26796         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26797         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26798         Reported by Sam Steingold <sds@gnu.org>.
26799
26800 2009-08-10  Bruno Haible  <bruno@clisp.org>
26801
26802         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26803         * modules/ioctl (configure.ac): Likewise.
26804
26805 2009-08-10  Bruno Haible  <bruno@clisp.org>
26806
26807         Avoid collision between gnulib wrapper and libintl wrapper.
26808         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26809         already defined in intl/printf.c.
26810         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26811         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26812
26813 2009-08-09  Bruno Haible  <bruno@clisp.org>
26814
26815         Make <sys/select.h> really self-contained, also on Solaris 10.
26816         * lib/sys_select.in.h: Include <string.h>.
26817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26818         Solaris 10 problem.
26819         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26820         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26821         Reported by Jim Meyering.
26822
26823 2009-08-09  Bruno Haible  <bruno@clisp.org>
26824
26825         Avoid warnings from 'aclocal' that are due to a use of macro name
26826         AM_XGETTEXT_OPTION that is not defined in automake.
26827         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26828         automake.
26829         * modules/error (configure.ac): Likewise.
26830         * modules/propername (configure.ac): Likewise.
26831         * modules/vasprintf (configure.ac): Likewise.
26832         * modules/verror (configure.ac): Likewise.
26833         * modules/xprintf (configure.ac): Likewise.
26834         * modules/xvasprintf (configure.ac): Likewise.
26835
26836 2009-08-08  Bruno Haible  <bruno@clisp.org>
26837
26838         Avoid compilation error in C++ mode.
26839         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26840         Reported by Sam Steingold <sds@gnu.org>.
26841
26842 2009-08-08  Bruno Haible  <bruno@clisp.org>
26843
26844         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26845         for the various Unix platforms.
26846         * doc/posix-headers/limits.texi: Update platforms list regarding
26847         HOST_NAME_MAX.
26848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26849
26850 2009-08-07  Jim Meyering  <meyering@redhat.com>
26851
26852         selinux-at: fix typo in a comment
26853         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26854         Spotted by Paolo Bonzini.
26855
26856         selinux-at: remove redundant m4 code, add documentation
26857         * modules/selinux-at (configure.ac): Remove redundant code.
26858         LIB_SELINUX is already set via the dependent module, selinux-h.
26859         (Include): Add quotes around selinux-at.h.
26860         * lib/selinux-at.h: Add documentation.
26861         Reported by Bruno Haible in
26862         http://marc.info/?l=gnulib-bug&m=124958988300749
26863
26864 2009-08-07  Bruno Haible  <bruno@clisp.org>
26865
26866         Avoid link error on MacOS X 10.3 and 10.4.
26867         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26868         on non-ELF systems.
26869         * lib/argp-pv.c (argp_program_version): Likewise.
26870         Reported by Simon Josefsson.
26871
26872 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26873
26874         * tests/test-version-etc.sh: Use $EXEEXT.
26875
26876 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26877
26878         update-copyright: update documentation to point to maint.mk
26879         * build-aux/update-copyright: Here.
26880
26881 2009-08-06  Jim Meyering  <meyering@redhat.com>
26882
26883         maint.mk: support update-copyright-local
26884         * top/maint.mk (update-copyright-local): Define place-holder.
26885         (update-copyright): Depend on $(update-copyright-local).
26886
26887 2009-08-06  Jim Meyering  <meyering@redhat.com>
26888
26889         selinux-at: new module
26890         Initially written for coreutils, this module will soon be
26891         used by findutils, too.
26892         * MODULES.html.sh [Misc]: Add selinux-at.
26893         * lib/selinux-at.h: New file, from coreutils.
26894         * lib/selinux-at.c: Likewise.
26895         * modules/selinux-at: Likewise.
26896         (License): Change from LGPL to GPL, since it depends
26897         on the GPL'd openat module.
26898
26899         doc: update README
26900         * README: Remove references to cogito.
26901         Remove cvs-repo-updating instructions from 2007.
26902         Don't imply that CVS is better if you have limited disk space.
26903
26904 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26905
26906         update-copyright: support C-style comments
26907         * build-aux/update-copyright: Implement and document.
26908         * tests/test-update-copyright.sh: Test.
26909
26910 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26911
26912         update-copyright: support omitted "(C)"
26913         * build-aux/update-copyright: Implement and document.  Also,
26914         allow variable whitespace before "(C)".
26915         * tests/test-update-copyright.sh: Test.
26916
26917 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26918
26919         update-copyright: don't trip on non-FSF copyright statements
26920         * build-aux/update-copyright: Fix so that the first correctly
26921         formatted FSF copyright statement is recognized no matter what
26922         appears before it.  Update documentation.
26923         * tests/test-update-copyright.sh: Test that.
26924
26925 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26926
26927         update-copyright: clean up code a little
26928         * build-aux/update-copyright: Append "_re" to the name of any
26929         variable holding a regular expression.
26930         Replace "old" and "new" with "stmt" in variable names.
26931         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26932         handled correctly.
26933         Format code more consistently.
26934
26935 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26936
26937         update-copyright-tests: improve portability
26938         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26939         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26940
26941 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26942
26943         update-copyright: support @copyright{} and &copy;
26944         * build-aux/update-copyright: Implement and document.
26945         * tests/test-update-copyright.sh: Test.
26946
26947 2009-08-04  Jim Meyering  <meyering@redhat.com>
26948
26949         update-copyright-tests: correctly test EOL=\r\n handling
26950         * tests/test-update-copyright.sh: Put \r at the end of some lines
26951         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26952
26953         maint.mk: make update-copyright exclusion list more configurable
26954         * top/maint.mk (update-copyright): Default to excluding COPYING,
26955         but allow an override, in case someone does want to update that file.
26956
26957         maint.mk: don't update copyright date in COPYING
26958         * top/maint.mk (update-copyright): Exclude COPYING.
26959
26960         maint.mk: add a copyright-updating rule
26961         * top/maint.mk (update-copyright): New rule.
26962         Derived from coreutils/Makefile.am.
26963
26964         update-copyright: rename some variables
26965         * build-aux/update-copyright: Rename a few variables for clarity.
26966         Tweak syntax.  List Joel E. Denny as coauthor.
26967
26968 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26969
26970         update-copyright: fix bug for 2-digit last year and add tests
26971         * build-aux/update-copyright: Fix bug.
26972         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
26973         specified.
26974         * modules/update-copyright-tests: New
26975         * tests/test-update-copyright.sh: New.
26976
26977 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26978
26979         update-copyright: handle leading tabs in line prefix
26980         * build-aux/update-copyright: Count leading tabs as 8 spaces
26981         when computing margin.  This helps with the formatting of
26982         ChangeLogs, for example.
26983         Fix documentation a little.
26984
26985 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26986
26987         update-copyright: support EOL=\r\n
26988         * build-aux/update-copyright: Implement that.
26989
26990 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26991
26992         update-copyright: automatically format copyright statements
26993         * build-aux/update-copyright: Implement that.
26994         Also, be a little more predictable and safer by always failing
26995         when the full copyright format is not perfectly recognized as an
26996         unbroken whole.  Discussed at
26997         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
26998         Rewrite documentation.
26999
27000 2009-08-03  Bruno Haible  <bruno@clisp.org>
27001
27002         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27003
27004 2009-08-02  Bruno Haible  <bruno@clisp.org>
27005
27006         Tests for module 'uname'.
27007         * modules/uname-tests: New file.
27008         * tests/test-uname.c: New file.
27009
27010         New module 'uname'.
27011         * lib/uname.c: New file.
27012         * m4/uname.m4: New file.
27013         * modules/uname: New file.
27014         * doc/posix-functions/uname.texi: Mention the new module.
27015
27016 2009-08-02  Bruno Haible  <bruno@clisp.org>
27017
27018         Tests for module 'sys_utsname'.
27019         * modules/sys_utsname-tests: New file.
27020         * tests/test-sys_utsname.c: New file.
27021
27022         New module 'sys_utsname'.
27023         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27024         * m4/sys_utsname_h.m4: New file.
27025         * modules/sys_utsname: New file.
27026         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27027
27028 2009-08-02  Bruno Haible  <bruno@clisp.org>
27029
27030         Implicitly initialize the sockets library.
27031         * lib/gethostname.c: Include sockets.h.
27032         (rpl_gethostname): Invoke gl_sockets_startup.
27033         * lib/socket.c: Include sockets.h.
27034         (rpl_socket): Invoke gl_sockets_startup.
27035         * modules/gethostname (Depends-on): Add sockets.
27036         * modules/socket (Depends-on): Likewise.
27037         * tests/test-poll.c: Don't include sockets.h.
27038         (main): Don't invoke gl_sockets_startup.
27039         * tests/test-select.c: Don't include sockets.h.
27040         (main): Don't invoke gl_sockets_startup.
27041
27042 2009-08-02  Bruno Haible  <bruno@clisp.org>
27043
27044         Allow multiple calls to gl_sockets_startup.
27045         * lib/sockets.c (initialized_sockets_version): New variable.
27046         (gl_sockets_startup): Do nothing if already called for this or a higher
27047         version.
27048         (gl_sockets_cleanup): Reset initialized_sockets_version.
27049
27050 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27051
27052         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27053         different project/version.
27054
27055 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27056             Bruno Haible  <bruno@clisp.org>
27057
27058         Tests for module 'pipe-filter-gi'.
27059         * modules/pipe-filter-gi-tests: New file.
27060         * tests/test-pipe-filter-gi1.sh: New file.
27061         * tests/test-pipe-filter-gi1.c: New file.
27062         * tests/test-pipe-filter-gi2.sh: New file.
27063         * tests/test-pipe-filter-gi2-main.c: New file.
27064         * tests/test-pipe-filter-gi2-child.c: New file.
27065
27066         New module 'pipe-filter-gi'.
27067         * lib/pipe-filter-gi.c: New file.
27068         * modules/pipe-filter-gi: New file.
27069
27070 2009-08-02  Bruno Haible  <bruno@clisp.org>
27071             Paolo Bonzini  <bonzini@gnu.org>
27072
27073         Tests for module 'pipe-filter-ii'.
27074         * modules/pipe-filter-ii-tests: New file.
27075         * tests/test-pipe-filter-ii1.sh: New file.
27076         * tests/test-pipe-filter-ii1.c: New file.
27077         * tests/test-pipe-filter-ii2.sh: New file.
27078         * tests/test-pipe-filter-ii2-main.c: New file.
27079         * tests/test-pipe-filter-ii2-child.c: New file.
27080
27081         New module 'pipe-filter-ii'.
27082         * lib/pipe-filter.h: New file.
27083         * lib/pipe-filter-ii.c: New file.
27084         * lib/pipe-filter-aux.h: New file.
27085         * modules/pipe-filter-ii: New file.
27086
27087 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27088
27089         * lib/gc-libgcrypt.c: Change copyright to FSF.
27090         * lib/gc-gnulib.c: Likewise.
27091
27092 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27093
27094         * lib/gethostname.c: Include limits.h.
27095
27096 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27097             Bruno Haible  <bruno@clisp.org>
27098
27099         Ensure HOST_NAME_MAX as part of the gethostname module.
27100         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27101         define also HOST_NAME_MAX.
27102         * tests/test-gethostname.c: Include <limits.h>.
27103         (main): Check also HOST_NAME_MAX.
27104         * doc/posix-headers/limits.texi: Document the mingw problem.
27105
27106 2009-08-02  Bruno Haible  <bruno@clisp.org>
27107
27108         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27109         Add comments.
27110
27111 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27112
27113         * lib/gethostname.c: Add Windows wrapper.
27114         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27115         * modules/gethostname: Depend on sys_socket & errno, for also
27116         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27117         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27118
27119 2009-07-31  Jim Meyering  <meyering@redhat.com>
27120
27121         getloadavg: fix symbol name in comment
27122         * lib/getloadavg.c: Correct a typo I introduced when adding
27123         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27124         Matt Kraai spotted the problem.
27125
27126 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27127
27128         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27129         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27130         code also if ! defined N_NAME_POINTER.
27131         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27132         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27133         but the n_name member is a 12-byte array.
27134
27135 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27136
27137         update-copyright: generalize comment handling
27138         * build-aux/update-copyright: Handle copyright statements
27139         within more comment styles.
27140         Document usage.
27141         Report any file with an external copyright holder or parse failure.
27142
27143 2009-07-29  Jim Meyering  <meyering@redhat.com>
27144
27145         mktime: correct setting of REPLACE_MKTIME
27146         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27147
27148         update-copyright: new module
27149         * modules/update-copyright: New file.
27150         * build-aux/update-copyright: New file.
27151         * MODULES.html.sh (maint+release support): Add update-copyright.
27152
27153 2009-07-27  Bruno Haible  <bruno@clisp.org>
27154
27155         Fix compilation error when <ctime> is used and mktime is replaced.
27156         * lib/time.in.h (mktime): New declaration.
27157         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27158         REPLACE_MKTIME instead of defining mktime in config.h.
27159         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27160         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27161         Reported by Ross McFarland <rwmcfa1@neces.com>.
27162
27163 2009-07-27  Bruno Haible  <bruno@clisp.org>
27164
27165         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27166         Reported by Matt Kraai <mkraai@beckman.com>.
27167
27168 2009-07-25  Jim Meyering  <meyering@redhat.com>
27169
27170         maint.mk: avoid warnings about missing files
27171         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27172         diagnostic when .prev-version does not exist.
27173         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27174         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27175         nonexistent cfg.mk.
27176         Suggestions from Simon Josefsson.
27177
27178 2009-07-25  Bruno Haible  <bruno@clisp.org>
27179
27180         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27181         defined as macros. Needed on QNX 6.4.1.
27182         Reported by Matt Kraai <mkraai@beckman.com>.
27183
27184 2009-07-23  Jim Meyering  <meyering@redhat.com>
27185
27186         maint.mk: invoke "make dist" with a working value of XZ_OPT
27187         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27188
27189 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27190
27191         Make fseeko.c compile on QNX.
27192         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27193
27194 2009-07-22  Peter Simons  <simons@cryp.to>
27195
27196         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27197         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27198         * lib/md4.h: Likewise.
27199         * lib/md5.h: Likewise.
27200         * lib/sha1.h: Likewise.
27201         * lib/sha256.h: Likewise.
27202         * lib/sha512.h: Likewise.
27203
27204         tests-sha1: don't assign literal string to 'char *' variable
27205         * tests/test-sha1.c (main): Declare locals with "const" to match
27206         attributes of the right hand side.
27207
27208 2009-07-21  Eric Blake  <ebb9@byu.net>
27209
27210         dup2: fix more mingw problems
27211         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27212         fd to itself.
27213         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27214         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27215         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27216         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27217         care of mingw bugs.
27218
27219 2009-07-21  Jim Meyering  <meyering@redhat.com>
27220
27221         vc-list-files: avoid failure when /bin/sh is dash
27222         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27223         On some Debian based systems, /bin/sh is a symlink to dash, and running
27224         this command would omit the "/" following each 'tests' prefix:
27225           dash -x build-aux/vc-list-files -C . tests
27226         That is because bash and dash work differently:
27227           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27228           bash ok
27229           dash odd
27230
27231 2009-07-21  Eric Blake  <ebb9@byu.net>
27232
27233         dup2-tests: test previous patch
27234         * modules/dup2-tests: New file.
27235         * tests/test-dup2.c: Likewise.
27236         * tests/test-open.c (main): Avoid unspecified behavior.
27237         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27238         test.
27239
27240         dup2: work around mingw and cygwin 1.5 bug
27241         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27243         * modules/unistd (Makefile.am): Substitute it.
27244         * lib/unistd.in.h (dup2): Declare the replacement.
27245         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27246         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27247         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27248         * modules/execute (Depends-on): Add dup2.
27249         * modules/fseterr (Depends-on): Likewise.
27250         * modules/pipe (Depends-on): Likewise.
27251         * modules/posix_spawn-internal (Depends-on): Likewise.
27252
27253 2009-07-21  Bruno Haible  <bruno@clisp.org>
27254
27255         * modules/.gitattributes: New file.
27256
27257 2009-07-20  Bruno Haible  <bruno@clisp.org>
27258
27259         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27260         (main): Use it.
27261
27262 2009-07-20  Eric Blake  <ebb9@byu.net>
27263
27264         test-pipe: make a bit more robust.
27265         * tests/test-pipe.c (myerr): Allow error messages regardless of
27266         what we do to stderr.
27267         (test_pipe): Rearrange to avoid deadlock.
27268         (child_main): Try a larger read, to ensure we avoided deadlock.
27269         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27270         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27271         if misused.
27272
27273 2009-07-19  Jim Meyering  <meyering@redhat.com>
27274
27275         fts: avoid false-positive cycle-detection
27276         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27277         for each new command line argument.
27278
27279 2009-07-19  Bruno Haible  <bruno@clisp.org>
27280
27281         Fix build error on mingw with the modules sys_select and unistd.
27282         * modules/acl-tests (Depends-on): Add close.
27283         * modules/binary-io-tests (Depends-on): Likewise.
27284         * modules/closein-tests (Depends-on): Likewise.
27285         * modules/flock-tests (Depends-on): Likewise.
27286         * modules/fsync-tests (Depends-on): Likewise.
27287         * modules/lseek-tests (Depends-on): Likewise.
27288         * modules/pipe-tests (Depends-on): Likewise.
27289         * modules/posix_spawn-tests (Depends-on): Likewise.
27290         * modules/posix_spawnp-tests (Depends-on): Likewise.
27291         * modules/stat-time-tests (Depends-on): Likewise.
27292         * modules/yesno-tests (Depends-on): Likewise.
27293
27294 2009-07-19  Bruno Haible  <bruno@clisp.org>
27295
27296         Unify conditionals.
27297         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27298         macros, not at the compiler macros.
27299         * lib/pipe.c: Likewise.
27300         * lib/execute.c: Likewise.
27301         * lib/spawni.c: Likewise.
27302
27303 2009-07-19  Bruno Haible  <bruno@clisp.org>
27304
27305         Fix handling of closed stdin/stdout/stderr on mingw.
27306         * lib/w32spawn.h: Include unistd.h.
27307         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27308         file descriptor with O_NOINHERIT flag.
27309         (fd_safer_noinherit): New function, based on fd-safer.c.
27310         (dup_safer_noinherit): New function, based on dup-safer.c.
27311         (undup_safer_noinherit): New function.
27312         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27313         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27314         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27315         instead of fd_safer.
27316         * tests/test-pipe.c: Include <windows.h>.
27317         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
27318
27319         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27320         from main.
27321         (test_pipe): Pass an extra argument for disambiguation.
27322         (main): Invoke parent_main or child_main.
27323
27324         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27325         consistently.
27326
27327 2009-07-18  Eric Blake  <ebb9@byu.net>
27328
27329         test-pipe: fix mingw build
27330         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27331
27332 2009-07-18  Bruno Haible  <bruno@clisp.org>
27333
27334         * modules/pipe-tests (Makefile.am): Fix typo.
27335
27336 2009-07-18  Eric Blake  <ebb9@byu.net>
27337
27338         error: fix mingw build
27339         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27340         Reported by Bruno Haible.
27341
27342         error: avoid undefined use of stdout
27343         * lib/error.c (error, error_at_line): Check that fd 1 is open
27344         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27345         is handling faults and the close_stdout module wants to report the
27346         detection of closed stdout as an error.
27347
27348 2009-07-17  Eric Blake  <ebb9@byu.net>
27349
27350         pipe: be robust in face of closed fds
27351         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27352         should cause child to misbehave.
27353         * modules/pipe-tests: New module.
27354         * tests/test-pipe.c: New file.
27355         * tests/test-pipe.sh: New file.
27356         Reported by Akim Demaille.
27357
27358 2009-07-14  Bruno Haible  <bruno@clisp.org>
27359
27360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27361         Reported by anonymous kc.
27362
27363 2009-07-07  Jim Meyering  <meyering@redhat.com>
27364
27365         maint.mk: don't look for translatable strings in *.m4 or *.mk
27366         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27367         when searching for translatable strings.
27368
27369 2009-07-05  Jim Meyering  <meyering@redhat.com>
27370
27371         remove superfluous parentheses in STREQ definition
27372         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27373         * lib/getugroups.c (STREQ): Likewise.
27374         * lib/fnmatch.c (STREQ): Likewise.
27375         Spotted by Bruno Haible.
27376
27377 2009-07-04  Jim Meyering  <meyering@redhat.com>
27378
27379         argv-iter: new module
27380         * MODULES.html.sh: Add argv-iter.
27381         * lib/argv-iter.c, lib/argv-iter.h: New files.
27382         * modules/argv-iter: New file.
27383         * modules/argv-iter-tests: New file.
27384         * tests/test-argv-iter.c: Test it.
27385
27386 2009-07-04  Bruno Haible  <bruno@clisp.org>
27387
27388         Fix assertion.
27389         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27390         contains more exact copies of a given entry than file2, leave the extra
27391         copies unpaired rather than aborting.
27392         Reported by Eric Blake.
27393
27394 2009-07-02  Bruno Haible  <bruno@clisp.org>
27395
27396         Speedup git-merge-changelog for git cherry-pick.
27397         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27398         (entries_mapping_get): New function, extracted from compute_mapping.
27399         (entries_mapping_reverse_get): New function.
27400         (compute_mapping): Add a 'full' argument. Return the result in a
27401         'struct entries_mapping'.
27402         (main): Update. Access the mappings through entries_mapping_get.
27403         Reported by Eric Blake.
27404
27405 2009-07-02  Bruno Haible  <bruno@clisp.org>
27406
27407         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27408         best_i.
27409
27410 2009-07-02  Bruno Haible  <bruno@clisp.org>
27411
27412         Speed up approximate search for matching ChangeLog entries.
27413         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27414         argument. Call fstrcmp_bounded instead of fstrcmp.
27415         (compute_mapping, try_split_merged_entry, main): Update callers.
27416
27417 2009-07-02  Bruno Haible  <bruno@clisp.org>
27418
27419         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27420
27421 2009-06-30  Bruno Haible  <bruno@clisp.org>
27422
27423         Reduce the number of uc_is_cased calls.
27424         * lib/unicase.h (casing_suffix_context_t): Add
27425         'first_char_except_ignorable' field.
27426         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27427         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27428         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27429         Update initializer.
27430         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27431         case-ignorable characters.
27432         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27433         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27434         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27435         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27436         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27437
27438 2009-06-30  Bruno Haible  <bruno@clisp.org>
27439
27440         Tests for module 'unicase/ignorable'.
27441         * modules/unicase/ignorable-tests: New file.
27442         * tests/unicase/test-ignorable.c: New file, generated by
27443         gen-uni-tables.
27444
27445         Tests for module 'unicase/cased'.
27446         * modules/unicase/cased-tests: New file.
27447         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27448         * tests/unicase/test-predicate-part1.h: New file, derived from
27449         tests/unictype/test-predicate-part1.h.
27450         * tests/unicase/test-predicate-part2.h: New file, same as
27451         tests/unictype/test-predicate-part2.h.
27452
27453         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27454         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27455         (output_casing_properties): New function.
27456         (main): Call it.
27457         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27458         * lib/unicase/cased.c: Include unictype/bitmap.h.
27459         (uc_is_cased): Define through a bitmap lookup.
27460         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27461         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27462         (uc_is_case_ignorable): Define through a bitmap lookup.
27463         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27464         lib/unictype/bitmap.h.
27465         (Depends-on): Add inline. Clean up.
27466         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27467         lib/unictype/bitmap.h.
27468         (Depends-on): Add inline. Clean up.
27469         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27470         recognition.
27471         * tests/unicase/test-u16-tolower.c (main): Likewise.
27472         * tests/unicase/test-u32-tolower.c (main): Likewise.
27473
27474 2009-06-30  Bruno Haible  <bruno@clisp.org>
27475
27476         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27477         * lib/unicase/u16-casemap.c: Likewise.
27478         * lib/unicase/u32-casemap.c: Likewise.
27479
27480 2009-06-29  Bruno Haible  <bruno@clisp.org>
27481
27482         Define u32_casefold as a wrapper around u32_ct_casefold.
27483         * lib/unicase/u32-casefold.c: Update.
27484         * modules/unicase/u32-casefold (Depends-on): Add
27485         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27486         unicase/empty-suffix-context. Clean up.
27487
27488         Define u16_casefold as a wrapper around u16_ct_casefold.
27489         * lib/unicase/u16-casefold.c: Update.
27490         * modules/unicase/u16-casefold (Depends-on): Add
27491         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27492         unicase/empty-suffix-context. Clean up.
27493
27494         Define u8_casefold as a wrapper around u8_ct_casefold.
27495         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27496         * lib/unicase/u8-casefold.c: Update.
27497         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27498         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27499
27500         Define u32_totitle as a wrapper around u32_ct_totitle.
27501         * lib/unicase/u32-totitle.c: Update.
27502         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27503         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27504
27505         Define u16_totitle as a wrapper around u16_ct_totitle.
27506         * lib/unicase/u16-totitle.c: Update.
27507         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27508         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27509
27510         Define u8_totitle as a wrapper around u8_ct_totitle.
27511         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27512         functions.
27513         (FUNC): Delegate to U_CT_TOTITLE.
27514         * lib/unicase/u8-totitle.c: Update.
27515         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27516         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27517
27518         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27519         invocation.
27520         * modules/unicase/u32-tolower (Depends-on): Add
27521         unicase/empty-prefix-context, unicase/empty-suffix-context.
27522
27523         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27524         invocation.
27525         * modules/unicase/u16-tolower (Depends-on): Add
27526         unicase/empty-prefix-context, unicase/empty-suffix-context.
27527
27528         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27529         * modules/unicase/u8-tolower (Depends-on): Add
27530         unicase/empty-prefix-context, unicase/empty-suffix-context.
27531
27532         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27533         invocation.
27534         * modules/unicase/u32-toupper (Depends-on): Add
27535         unicase/empty-prefix-context, unicase/empty-suffix-context.
27536
27537         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27538         invocation.
27539         * modules/unicase/u16-toupper (Depends-on): Add
27540         unicase/empty-prefix-context, unicase/empty-suffix-context.
27541
27542         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27543         * modules/unicase/u8-toupper (Depends-on): Add
27544         unicase/empty-prefix-context, unicase/empty-suffix-context.
27545
27546         New module 'unicase/u32-ct-casefold'.
27547         * lib/unicase/u32-ct-casefold.c: New file.
27548         * modules/unicase/u32-ct-casefold: New file.
27549
27550         New module 'unicase/u16-ct-casefold'.
27551         * lib/unicase/u16-ct-casefold.c: New file.
27552         * modules/unicase/u16-ct-casefold: New file.
27553
27554         New module 'unicase/u8-ct-casefold'.
27555         * lib/unicase/u8-ct-casefold.c: New file.
27556         * lib/unicase/u-ct-casefold.h: New file, derived from
27557         lib/unicase/u-casefold.h.
27558         * modules/unicase/u8-ct-casefold: New file.
27559
27560         New module 'unicase/u32-ct-totitle'.
27561         * lib/unicase/u32-ct-totitle.c: New file.
27562         * modules/unicase/u32-ct-totitle: New file.
27563
27564         New module 'unicase/u16-ct-totitle'.
27565         * lib/unicase/u16-ct-totitle.c: New file.
27566         * modules/unicase/u16-ct-totitle: New file.
27567
27568         New module 'unicase/u8-ct-totitle'.
27569         * lib/unicase/u8-ct-totitle.c: New file.
27570         * lib/unicase/u-ct-totitle.h: New file, derived from
27571         lib/unicase/u-totitle.h.
27572         * modules/unicase/u8-ct-totitle: New file.
27573
27574         New module 'unicase/u32-ct-tolower'.
27575         * lib/unicase/u32-ct-tolower.c: New file.
27576         * modules/unicase/u32-ct-tolower: New file.
27577
27578         New module 'unicase/u16-ct-tolower'.
27579         * lib/unicase/u16-ct-tolower.c: New file.
27580         * modules/unicase/u16-ct-tolower: New file.
27581
27582         New module 'unicase/u8-ct-tolower'.
27583         * lib/unicase/u8-ct-tolower.c: New file.
27584         * modules/unicase/u8-ct-tolower: New file.
27585
27586         New module 'unicase/u32-ct-toupper'.
27587         * lib/unicase/u32-ct-toupper.c: New file.
27588         * modules/unicase/u32-ct-toupper: New file.
27589
27590         New module 'unicase/u16-ct-toupper'.
27591         * lib/unicase/u16-ct-toupper.c: New file.
27592         * modules/unicase/u16-ct-toupper: New file.
27593
27594         New module 'unicase/u8-ct-toupper'.
27595         * lib/unicase/u8-ct-toupper.c: New file.
27596         * modules/unicase/u8-ct-toupper: New file.
27597
27598         Add context arguments to u*_casemap functions.
27599         * lib/unicase/unicasemap.h: Include unicase.h.
27600         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27601         suffix_context arguments.
27602         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27603         functions.
27604         (FUNC): Add prefix_context and suffix_context arguments. Use
27605         uc_is_cased and uc_is_case_ignorable.
27606         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27607         * lib/unicase/u16-casemap.c: Likewise.
27608         * lib/unicase/u32-casemap.c: Likewise.
27609         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27610         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27611         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27612         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27613         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27614         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27615
27616         New module 'unicase/u32-suffix-context'.
27617         * lib/unicase/u32-suffix-context.c: New file.
27618         * modules/unicase/u32-suffix-context: New file.
27619
27620         New module 'unicase/u16-suffix-context'.
27621         * lib/unicase/u16-suffix-context.c: New file.
27622         * modules/unicase/u16-suffix-context: New file.
27623
27624         New module 'unicase/u8-suffix-context'.
27625         * lib/unicase/u8-suffix-context.c: New file.
27626         * lib/unicase/u-suffix-context.h: New file.
27627         * modules/unicase/u8-suffix-context: New file.
27628
27629         New module 'unicase/empty-suffix-context'.
27630         * lib/unicase/empty-suffix-context.c: New file.
27631         * modules/unicase/empty-suffix-context: New file.
27632
27633         New module 'unicase/u32-prefix-context'.
27634         * lib/unicase/u32-prefix-context.c: New file.
27635         * modules/unicase/u32-prefix-context: New file.
27636
27637         New module 'unicase/u16-prefix-context'.
27638         * lib/unicase/u16-prefix-context.c: New file.
27639         * modules/unicase/u16-prefix-context: New file.
27640
27641         New module 'unicase/u8-prefix-context'.
27642         * lib/unicase/u8-prefix-context.c: New file.
27643         * lib/unicase/u-prefix-context.h: New file.
27644         * lib/unicase/context.h: New file.
27645         * modules/unicase/u8-prefix-context: New file.
27646
27647         New module 'unicase/empty-prefix-context'.
27648         * lib/unicase/empty-prefix-context.c: New file.
27649         * modules/unicase/empty-prefix-context: New file.
27650
27651         New module 'unicase/ignorable'.
27652         * lib/unicase/ignorable.c: New file.
27653         * modules/unicase/ignorable: New file.
27654
27655         New module 'unicase/cased'.
27656         * lib/unicase/caseprop.h: New file.
27657         * lib/unicase/cased.c: New file.
27658         * modules/unicase/cased: New file.
27659
27660         New functions for case mapping of substrings.
27661         * lib/unicase.h (casing_prefix_context_t): New type.
27662         (unicase_empty_prefix_context): New variable.
27663         (u8_casing_prefix_context, u16_casing_prefix_context,
27664         u32_casing_prefix_context, u8_casing_prefixes_context,
27665         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27666         declarations.
27667         (casing_suffix_context_t): New type.
27668         (unicase_empty_suffix_context): New variable.
27669         (u8_casing_suffix_context, u16_casing_suffix_context,
27670         u32_casing_suffix_context, u8_casing_suffixes_context,
27671         u16_casing_suffixes_context, u32_casing_suffixes_context,
27672         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27673         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27674         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27675         declarations.
27676
27677 2009-06-28  Jim Meyering  <meyering@redhat.com>
27678
27679         boostrap: indent only with spaces
27680         * build-aux/bootstrap: Indent only with spaces, never TABs.
27681
27682         bootstrap: split long lines
27683         * build-aux/bootstrap: Keep line length < 80.
27684
27685         bootstrap: sync from coreutils
27686         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27687         just as autoreconf does.  Verify a list of prerequisite
27688         package-name,version-number pairs if defined in bootstrap.conf.
27689         Refer to README-prereq, if prerequisites are not satisfied.
27690
27691 2009-06-27  Eric Blake  <ebb9@byu.net>
27692
27693         tests: add test for bogus NULL definition
27694         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27695         * tests/test-stdlib.c: Likewise.
27696         * tests/test-string.c: Likewise.
27697         * tests/test-locale.c: Likewise.
27698         * tests/test-unistd.c: Likewise.
27699         * modules/stdio-tests (Depends-on): Add verify.
27700         * modules/stdlib-tests (Depends-on): Likewise.
27701         * modules/string-tests (Depends-on): Likewise.
27702         * modules/locale-tests (Depends-on): Likewise.
27703         * modules/unistd-tests (Depends-on): Likewise.
27704
27705 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27706
27707         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27708         self-explaining comment.
27709         * m4/selinux-selinux-h: Update serial.
27710         (gl_LIBSELINUX): New macro, adding a warning for missing development
27711         packages to code extracted from...
27712         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27713         Add warning for missing development packages here, too.
27714
27715 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27716
27717         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27718
27719 2009-06-25  Eric Blake  <ebb9@byu.net>
27720
27721         version-etc: fix regression
27722         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27723         gcc.
27724         (version_etc): Use it, to catch bugs with trailing NULL.
27725         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27726         (version_etc_va): Fix logic bug.
27727         * modules/version-etc-tests: Add test.
27728         * tests/test-version-etc.c: New file.
27729         * tests/test-version-etc.sh: Likewise.
27730
27731 2009-06-25  Sam Steingold  <sds@gnu.org>
27732
27733         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27734         mbtowc declaration.
27735
27736 2009-06-25  Eric Blake  <ebb9@byu.net>
27737
27738         fpurge: migrate into <stdio.h>
27739         * lib/fpurge.h: Delete...
27740         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27741         * lib/fpurge.c (fpurge): Change declaring header.
27742         * modules/fpurge (Files): Drop deleted file.
27743         (Depends-on): Add stdio.
27744         (configure.ac): Set witness.
27745         * modules/stdio (Makefile.am): Support fpurge macros.
27746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27747         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27748         * lib/fflush.c: Update client.
27749         * tests/test-fpurge.c: Likewise.
27750         * NEWS: Mention the change.
27751
27752 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27753
27754         * lib/argp-version-etc.c (program_authors): Add const
27755         qualifier.
27756         * lib/version-etc.c: Fix typos in the comments.
27757         * modules/argp-version-etc: Depends on version-etc.
27758
27759 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27760
27761         argp-version-etc: new module.
27762
27763         * lib/argp-version-etc.c: New file.
27764         * lib/argp-version-etc.h: New file.
27765         * modules/argp-version-etc: New file.
27766         * modules/argp-version-etc-tests: New file.
27767         * tests/test-argp-version-etc.c: New test.
27768         * tests/test-argp-version-etc-1.sh: New test.
27769
27770 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27771
27772         Provide additional interfaces and documentation for version-etc
27773         module.
27774
27775         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27776         interfaces.
27777         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27778         prototypes.
27779
27780 2009-06-24  Bruno Haible  <bruno@clisp.org>
27781
27782         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27783         HAVE_LIB${NAME} macro.
27784         Reported by Sam Steingold <sds@gnu.org>.
27785
27786 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27787
27788         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27789         needed.
27790
27791 2009-06-21  Bruno Haible  <bruno@clisp.org>
27792
27793         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27794         work.
27795         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27796         together with LIB${NAME}, LTLIB${NAME}.
27797         Reported by Sam Steingold <sds@gnu.org>.
27798
27799 2009-06-20  Jim Meyering  <meyering@redhat.com>
27800
27801         tests: make sc_require_test_exit_idiom more generic
27802         * top/maint.mk (Exit_witness_file): New overridable variable.
27803         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27804         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27805
27806 2009-06-19  Jim Meyering  <meyering@redhat.com>
27807
27808         hash: reverse order of src/dst parameters in an internal interface
27809         * lib/hash.c (transfer_entries): Reverse order of parameters to
27810         put DST before SRC.  Adjust callers.
27811
27812         tests: test-hash: avoid wholesale duplication
27813         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27814         Instead, use a loop and add a single conditional.
27815
27816         tests: test-hash: allow seed selection via a command line argument
27817         * tests/test-hash.c (get_seed): New function.
27818         (main): Use it.
27819
27820 2009-06-19  Eric Blake  <ebb9@byu.net>
27821
27822         hash: avoid memory leak on allocation failure
27823         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27824         failure.  Factor repeated algorithm...
27825         (transfer_entries): ...into new helper routine.
27826         (hash_delete): React to hash_rehash return value.
27827
27828         hash: reduce memory pressure in hash_rehash no-op case
27829         * lib/hash.c (next_prime): Avoid overflow.
27830         (hash_initialize): Factor bucket size computation...
27831         (compute_bucket_size): ...into new helper function.
27832         (hash_rehash): Use new function and open coding to reduce memory
27833         pressure, and avoid a memory leak in USE_OBSTACK code.
27834         Reported by Jim Meyering.
27835
27836 2009-06-18  Eric Blake  <ebb9@byu.net>
27837
27838         hash: make rotation more obvious
27839         * modules/hash (Depends-on): Add bitrotate and stdint.
27840         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27841         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27842         (SIZE_MAX): Rely on headers for definition.
27843         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27844         (raw_hasher): Use rotr_sz.
27845         Suggested by Jim Meyering.
27846
27847         hash: fix memory leak in last patch
27848         * lib/hash.c (hash_rehash): Avoid memory leak.
27849
27850         hash: avoid no-op rehashing
27851         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27852
27853         hash: provide default callback functions
27854         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27855         (hash_initialize): Use them as defaults.
27856         * tests/test-hash.c (main): Test this.
27857
27858         hash: minor optimization
27859         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27860         when possible.
27861         (hash_initialize): Document this promise.
27862         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27863         * tests/test-hash.c (hash_compare_strings): Test this.
27864
27865 2009-06-18  Bruno Haible  <bruno@clisp.org>
27866
27867         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27868         going to be replaced anyway.
27869
27870 2009-06-18  Bruno Haible  <bruno@clisp.org>
27871
27872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27873         in one place.
27874         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27875         be replaced anyway.
27876
27877 2009-06-18  Eric Blake  <ebb9@byu.net>
27878
27879         hash: check for resize before insertion
27880         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27881         threshold before insertion, so that a pathological hash_rehash
27882         that fills every bucket can still trigger another rehash.
27883
27884 2009-06-18  Jim Meyering  <meyering@redhat.com>
27885
27886         hash-tests: add a loop around the small tests
27887         * tests/test-hash.c (main): Repeat small tests with selected
27888         small initial table sizes.
27889
27890 2009-06-17  Eric Blake  <ebb9@byu.net>
27891
27892         hash: minor cleanups
27893         * lib/hash.h (hash_entry): Make opaque, by moving...
27894         * lib/hash.c (hash_entry): ...here.
27895         (hash_insert): Clarify restrictions on what can be inserted.
27896         (hash_get_next): Clarify when it is safe to remove an element
27897         during traversal.
27898         (check_tuning): Skip verification when tuning is known safe.
27899         (hash_initialize): Clarify restrictions on tuning.
27900
27901 2009-06-17  Jim Meyering  <jim@meyering.net>
27902         and Eric Blake  <ebb9@byu.net>
27903
27904         hash-tests: new module
27905         * modules/hash-tests: New file.
27906         * tests/test-hash.c: New file.
27907
27908 2009-06-17  Eric Blake  <ebb9@byu.net>
27909
27910         strstr-simple: document new module
27911         * MODULES.html.sh: Document new module.
27912
27913         strstr, strcasestr: replace on platforms with broken memchr
27914         * modules/strstr: Split into...
27915         * modules/strstr-simple: ...new module that does not care about
27916         performance, but does care about glibc bug.
27917         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27918         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27919         if platform memchr is broken, per Debian bug 521737.
27920         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27921         memchr.
27922         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27923         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27924         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27925         * modules/mountlist (Depends-on): Add strstr-simple.
27926         * modules/gen-uni-tables (Depends-on): Likewise.
27927         * modules/argz (Depends-on): Add strstr.
27928
27929 2009-06-17  Bruno Haible  <bruno@clisp.org>
27930
27931         * modules/posix_spawn-internal (Depends-on): Add errno.
27932
27933 2009-06-17  Bruno Haible  <bruno@clisp.org>
27934
27935         Define missing ESTALE on Interix 3.5.
27936         * lib/errno.in.h (ESTALE): Assign a value if missing.
27937         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27938         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27939         missing.
27940         * doc/posix-headers/errno.texi: Mention the Interix bug.
27941         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27942
27943 2009-06-15  Eric Blake  <ebb9@byu.net>
27944
27945         memchr, memchr2: add valgrind exception
27946         * lib/memchr.valgrind: New file.
27947         * lib/memchr2.valgrind: New file.
27948         * modules/memchr (Files): Distribute valgrind file.
27949         * modules/memchr2 (Files): Likewise.
27950
27951         docs: memchr is no longer obsolete
27952         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27953         * lib/string.in.h (memchr): Simplify logic.
27954
27955 2009-06-14  Jim Meyering  <meyering@redhat.com>
27956
27957         link-follow: fix the "checking..." message to not mention trailing slash
27958         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
27959         never considered trailing slashes.
27960
27961 2009-06-14  Bruno Haible  <bruno@clisp.org>
27962
27963         * m4/memchr.m4: Mention also the bug on IA-64.
27964         * doc/posix-functions/memchr.texi: Likewise.
27965
27966 2009-06-12  Eric Blake  <ebb9@byu.net>
27967
27968         memchr: detect broken x86_64 and alpha implementations
27969         * modules/memchr-tests (Depends-on): Move mmap detection...
27970         * modules/memchr (Depends-on): ...here.
27971         (configure.ac): Set indicator.
27972         * lib/string.in.h (memchr): Declare replacement.
27973         * modules/string (Makefile.am): Trigger replacement.
27974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27975         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
27976         bugs.
27977         * doc/posix-functions/memchr.texi (memchr): Document the bug.
27978         * modules/getpagesize (License): Relax license.
27979
27980 2009-06-11  Bruno Haible  <bruno@clisp.org>
27981
27982         * lib/idpriv.h: Add more references.
27983
27984 2009-06-08  Bruno Haible  <bruno@clisp.org>
27985
27986         Tests for module 'idpriv-droptemp'.
27987         * modules/idpriv-droptemp-tests: New file.
27988         * tests/test-idpriv-droptemp.sh: New file.
27989         * tests/test-idpriv-droptemp.su.sh: New file.
27990         * tests/test-idpriv-droptemp.c: New file.
27991
27992         New module 'idpriv-droptemp'.
27993         * lib/idpriv-droptemp.c: New file.
27994         * modules/idpriv-droptemp: New file.
27995
27996 2009-06-08  Bruno Haible  <bruno@clisp.org>
27997
27998         Tests for module 'idpriv-drop'.
27999         * modules/idpriv-drop-tests: New file.
28000         * tests/test-idpriv-drop.sh: New file.
28001         * tests/test-idpriv-drop.su.sh: New file.
28002         * tests/test-idpriv-drop.c: New file.
28003
28004         New module 'idpriv-drop'.
28005         * lib/idpriv.h: New file.
28006         * lib-idpriv-drop.c: New file.
28007         * m4/idpriv.m4: New file.
28008         * modules/idpriv-drop: New file.
28009
28010 2009-06-08  Bruno Haible  <bruno@clisp.org>
28011
28012         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28013         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28014         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28015         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28016         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28017         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28018         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28019
28020 2009-06-08  Eric Blake  <ebb9@byu.net>
28021
28022         test-strstr: use memory fence, when possible
28023         * tests/test-strstr.c (main): Use memory fence, in order to be
28024         more likely to trigger Debian bug 521737.
28025         * modules/strstr-tests (Files): Pull in additional files.
28026
28027         memchr: no longer obsolete, for wider field testing
28028         * modules/memchr (Status, Notice): Delete, this module is no
28029         longer obsolete.
28030         * modules/vasnprintf (Depends-on): Add memchr.
28031
28032 2009-06-07  Jim Meyering  <meyering@redhat.com>
28033
28034         hash: declare some functions with the warn_unused_result attribute
28035         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28036
28037 2009-06-07  Bruno Haible  <bruno@clisp.org>
28038
28039         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28040         Reported by Eric Blake.
28041
28042 2009-06-06  Eric Blake  <ebb9@byu.net>
28043
28044         test-alignof: fix typo with long double
28045         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28046         compiler error.
28047
28048 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28049
28050         Escape non-texinfo { and }s.
28051         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28052         markup error.
28053
28054 2009-06-04  Jim Meyering  <meyering@redhat.com>
28055
28056         gitlog-to-changelog: don't infloop on an empty commit log
28057         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28058         Reported by Boris Petersen <transacid@centerim.org>.
28059
28060 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28061
28062         version-etc: extend for packagers
28063         Add three new configure options, intended for packagers:
28064           --with-packager="packager name"
28065           --with-packager-version="packager-specific version"
28066           --with-packager-bug-reports="packager bug reporting"
28067         An example with coreutils:
28068           $ ./configure \
28069             --with-packager=Gentoo \
28070             --with-packager-bug-report=http://bugs.gentoo.org/ \
28071             --with-packager-version="patchset 1.6"
28072           $ ./src/ls --version | head -n2
28073           ls (GNU coreutils) 7.1-dirty
28074           Packaged by Gentoo (patchset 1.6)
28075         Note that the bug reporting info via --help doesn't show up because
28076         coreutils uses its own custom emit_bug_reporting_address() implementation
28077         in src/system.h.  If it didn't, it'd look like:
28078           $ ./src/ls --help | tail -n4
28079           Report bugs to <bug-coreutils@gnu.org>.
28080           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28081           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28082           General help using GNU software: <http://www.gnu.org/gethelp/>.
28083         * lib/version-etc.c: Print new information, if provided.
28084         * m4/version-etc.m4: New file.
28085         * modules/version-etc (Files): Add m4/version-etc.m4.
28086         (configure.ac): Add gl_VERSION_ETC.
28087
28088 2009-05-31  Bruno Haible  <bruno@clisp.org>
28089
28090         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28091         and 'int64_t'.
28092         * modules/alignof-tests (Dependencies): Add stdint.
28093         Reported by Eric Blake.
28094
28095 2009-05-31  Bruno Haible  <bruno@clisp.org>
28096
28097         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28098         restriction due to compiler bugs.
28099         Reported by Eric Blake.
28100
28101 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28102             Bruno Haible  <bruno@clisp.org>
28103
28104         Fix test-alignof failure.
28105         * lib/alignof.h (alignof_slot): New macro.
28106         (alignof_type): New macro, with the same semantics as the previous
28107         'alignof'.
28108         (alignof): Alias to alignof_slot.
28109         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28110         check that the results are usable as constant expressions.
28111
28112 2009-05-31  Bruno Haible  <bruno@clisp.org>
28113
28114         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28115         * tests/test-memchr.c (main): Check that memchr does not read past the
28116         first occurrence of the byte.
28117         * tests/test-strstr.c (main): Update comment.
28118         Suggested by Eric Blake.
28119
28120 2009-05-30  Bruno Haible  <bruno@clisp.org>
28121
28122         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28123         detail how to use dumpbin.
28124         Reported by David Byron <dbyron@dbyron.com>.
28125
28126 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28127
28128         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28129
28130 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28131
28132         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28133
28134 2009-05-28  Bruno Haible  <bruno@clisp.org>
28135
28136         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28137         build-aux/ files.
28138
28139 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28140
28141         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28142
28143 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28144
28145         * gnulib-tool (sed_transform_main_lib_file)
28146         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28147         regexps.
28148
28149 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28150
28151         * tests/test-strstr.c: Add another self-test.
28152         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28153         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28154
28155 2009-05-23  Bruno Haible  <bruno@clisp.org>
28156
28157         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28158         change.
28159
28160 2009-05-21  Bruno Haible  <bruno@clisp.org>
28161
28162         Simplify use of mode_t varargs.
28163         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28164         uses 'mode_t' or 'int'.
28165         * lib/openat.c (openat): Likewise.
28166         * lib/open-safer.c (open_safer): Likewise.
28167         * m4/mode_t.m4: New file.
28168         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28169         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28170         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28171         * modules/open (Files): Add m4/mode_t.m4.
28172         * modules/openat (Files): Likewise.
28173         * modules/fcntl-safer (Files): Likewise.
28174         Suggested by Eric Blake.
28175
28176 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28177
28178         * doc/glibc-functions/fallocate.texi: New file.
28179         * doc/gnulib.texi: Include it.
28180
28181 2009-05-21  Eric Blake  <ebb9@byu.net>
28182             Bruno Haible  <bruno@clisp.org>
28183
28184         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28185         invocations.
28186         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28187
28188 2009-05-21  Eric Blake  <ebb9@byu.net>
28189             Bruno Haible  <bruno@clisp.org>
28190
28191         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28192         include_next. Fix of 2008-11-20 commit.
28193         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28194         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28195         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28196         NEXT_MATH_H.
28197         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28198         instead of NEXT_MATH_H.
28199
28200 2009-05-21  Bruno Haible  <bruno@clisp.org>
28201
28202         Avoid redefinition warnings for SIZE_MAX.
28203         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28204         Reported by Simon Josefsson.
28205
28206 2009-05-21  Bruno Haible  <bruno@clisp.org>
28207
28208         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28209         AC_CACHE_VAL.
28210
28211 2009-05-20  Bruno Haible  <bruno@clisp.org>
28212
28213         Make zeroptr.h work on mingw.
28214         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28215         mprotect.
28216         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28217         * modules/memchr2-tests (configure.ac): Likewise.
28218         * modules/memcmp-tests (configure.ac): Likewise.
28219         * modules/memmem-tests (configure.ac): Likewise.
28220         * modules/memrchr-tests (configure.ac): Likewise.
28221         Reported by Simon Josefsson.
28222
28223 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28224
28225         * tests/test-glob.c: Include string.h for strcmp prototype.
28226
28227 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28228
28229         * modules/getdelim (Depends-on): Add explicit stdint, although it
28230         was implicitly already pulled in via realloc-posix.
28231         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28232
28233 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28234
28235         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28236         G. Christensen" <tgc@jupiterrise.com>.
28237         * m4/sys_socket_h.m4: Check for sa_family_t.
28238         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28239         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28240         * tests/test-sys_socket.c: Check that sa_family_t works.
28241
28242 2009-05-18  Eric Blake  <ebb9@byu.net>
28243
28244         maint.mk: allow gnulib_dir in VPATH build
28245         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28246
28247 2009-05-15  Jim Meyering  <meyering@redhat.com>
28248
28249         maint.mk: Give gnulib_dir a default definition.
28250         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28251         Thus, most packages no longer need to specify this variable in cfg.mk
28252
28253 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28254
28255         rename.m4: fix typos that would make non-mingw cross-configure fail
28256         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28257
28258 2009-05-13  Eric Blake  <ebb9@byu.net>
28259
28260         mmap-anon: avoid out-of-order autoconf expansion
28261         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28262         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28263         * modules/memchr-tests (Depends-on): Add extensions.
28264         * modules/memchr2-tests (Depends-on): Add extensions.
28265         * modules/memcmp-tests (Depends-on): Add extensions.
28266         * modules/memmem-tests (Depends-on): Add extensions.
28267         * modules/memrchr-tests (Depends-on): Add extensions.
28268
28269 2009-05-13  Bruno Haible  <bruno@clisp.org>
28270
28271         Make some tests ISO C 99 compliant.
28272         * tests/zerosize-ptr.h: New file.
28273         * tests/test-memchr.c: Include zerosize-ptr.h.
28274         (main): Use a zero-size object pointer instead of NULL.
28275         * tests/test-memchr2.c: Include zerosize-ptr.h.
28276         (main): Use a zero-size object pointer instead of NULL.
28277         * tests/test-memcmp.c: Include zerosize-ptr.h.
28278         (main): Use a zero-size object pointer instead of NULL.
28279         * tests/test-memmem.c: Include zerosize-ptr.h.
28280         (main): Use a zero-size object pointer instead of NULL.
28281         * tests/test-memrchr.c: Include zerosize-ptr.h.
28282         (main): Use a zero-size object pointer instead of NULL.
28283         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28284         m4/mmap-anon.m4.
28285         (Depends-on): Add getpagesize.
28286         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28287         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28288         m4/mmap-anon.m4.
28289         (Depends-on): Add getpagesize.
28290         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28291         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28292         m4/mmap-anon.m4.
28293         (Depends-on): Add getpagesize.
28294         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28295         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28296         m4/mmap-anon.m4.
28297         (Depends-on): Add getpagesize.
28298         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28299         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28300         m4/mmap-anon.m4.
28301         (Depends-on): Add getpagesize.
28302         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28303
28304 2009-05-12  Bruno Haible  <bruno@clisp.org>
28305
28306         Tests for module 'alignof'.
28307         * modules/alignof-tests: New file.
28308         * tests/test-alignof.c: New file.
28309
28310 2009-05-12  Bruno Haible  <bruno@clisp.org>
28311
28312         Fix alignof macro.
28313         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28314         vendor compilers that are always correct.
28315
28316 2009-05-12  Bruno Haible  <bruno@clisp.org>
28317
28318         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28319         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28320         not whether its fully works.
28321
28322 2009-05-12  Bruno Haible  <bruno@clisp.org>
28323
28324         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28325
28326 2009-05-12  Jim Meyering  <meyering@redhat.com>
28327
28328         * top/maint.mk: Adjust backslash alignment.
28329
28330 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28331
28332         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28333
28334 2009-05-11  Eric Blake  <ebb9@byu.net>
28335
28336         argp: avoid undefined behavior
28337         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28338         macros.
28339
28340 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28341
28342         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28343         user.name to prevent git commit from complaining.
28344
28345 2009-05-10  Bruno Haible  <bruno@clisp.org>
28346
28347         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28348         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28349         it rewrites every file name only once.
28350         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28351
28352 2009-05-08  Bruno Haible  <bruno@clisp.org>
28353
28354         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28355         instead of 'max'.
28356
28357 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28358
28359         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28360         sockaddr_storage test.
28361
28362 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28363
28364         * modules/sys_socket (Makefile.am): Substitute
28365         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28366         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28367         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28368         * tests/test-sys_socket.c: Check sockaddr_storage.
28369
28370 2009-05-08  Bruno Haible  <bruno@clisp.org>
28371
28372         New module 'alignof'.
28373         * lib/alignof.h: New file.
28374         * modules/alignof: New file.
28375
28376 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28377             Bruno Haible  <bruno@clisp.org>
28378
28379         Fix test-file-has-acl on FreeBSD.
28380         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28381         mask is implicitly added.
28382         * tests/test-file-has-acl.c: Include <signal.h>.
28383         (main): Terminate the test after 5 seconds.
28384         * modules/acl-tests (configure.ac): Check for alarm function.
28385
28386 2009-05-04  Bruno Haible  <bruno@clisp.org>
28387
28388         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28389         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28390         * modules/errno (configure.ac): Drop AC_REQUIRE.
28391         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28392         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28393
28394 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28395
28396         * modules/glob-tests: New module.
28397         * tests/test-glob.c: Add.
28398
28399 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28400
28401         * modules/fnmatch-tests: New module.
28402         * tests/test-fnmatch.c: Add.
28403
28404 2009-05-04  Eric Blake  <ebb9@byu.net>
28405
28406         maint: make the new no-submodule-changes rule VPATH-safe
28407         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28408
28409 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28410             Bruno Haible  <bruno@clisp.org>
28411
28412         acl: Fix infinite loop on FreeBSD.
28413         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28414         of return value from acl_get_entry.
28415         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28416         Likewise.
28417
28418 2009-05-03  Bruno Haible  <bruno@clisp.org>
28419
28420         * lib/acl-internal.h (acl_entries): Clarify return value.
28421         * lib/acl_entries.c (acl_entries): Likewise.
28422
28423 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28424
28425         Bug fix in acl module.
28426         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28427
28428 2009-05-03  Bruno Haible  <bruno@clisp.org>
28429
28430         Create gperf-generated file in the source dir, not in the build dir.
28431         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28432         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28433         * modules/unicase/locale-language (unicase/locale-languages.h):
28434         Likewise.
28435         * modules/unicase/special-casing (unicase/special-casing-table.h):
28436         Likewise.
28437         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28438         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28439         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28440         Reported by Ralf Wildenhues.
28441
28442 2009-05-03  Bruno Haible  <bruno@clisp.org>
28443
28444         * modules/fnmatch (Description, configure.ac): Taken from
28445         fnmatch-posix.
28446         * modules/fnmatch-posix: Turn into a symbolic reference to the
28447         'fnmatch' module, and deprecate.
28448         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28449
28450 2009-05-03  Bruno Haible  <bruno@clisp.org>
28451
28452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28453         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28454         Reported by Ralf Wildenhues.
28455
28456 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28457
28458         * m4/fnmatch.m4: Fix fnmatch re-define.
28459
28460 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28461
28462         priv-set: new module and tests; adapt write-any-file
28463         * lib/priv-set.c: New file.
28464         * lib/priv-set.h: New file.
28465         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28466         * lib/write-any-file.c: Simplify by using priv-set module.
28467         * m4/priv-set.m4: New file.
28468         * modules/priv-set: New file.
28469         * modules/unlinkdir: Add dependency on priv-set module.
28470         * modules/write-any-file: Likewise.
28471
28472         Tests for module 'priv-set'.
28473         * modules/priv-set-tests: New file.
28474         * tests/test-priv-set.c: New file.
28475
28476 2009-05-03  Jim Meyering  <meyering@redhat.com>
28477             Bruno Haible  <bruno@clisp.org>
28478
28479         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28480         use the converted UTF-8 variant of the name instead.
28481
28482 2009-05-03  Jim Meyering  <meyering@redhat.com>
28483
28484         tests: tighten some getdate tests
28485         * tests/test-getdate.c (main): Tighten tests: require equality,
28486         not just greater than.  Set TZ envvar to UTC0.
28487
28488 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28489
28490         getdate: correctly interpret "next monday" when run on a Monday
28491         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28492         that e.g., "next tues" (when run on a tuesday) results in a date
28493         that is one week in the future, and not today's date.
28494         I.e., add a week when the wday is the same as the current one.
28495         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28496         and earlier by Martin Bernreuther and Jan Minář.
28497         * tests/test-getdate.c (main): Check that "next DAY" is always in
28498         the future and that "last DAY" is always in the past.
28499
28500 2009-05-02  Jim Meyering  <meyering@redhat.com>
28501
28502         build: ensure that a release build fails when a submodule is unclean
28503         * top/maint.mk (no-submodule-changes): New rule.
28504         (alpha beta major): Depend on it.
28505
28506 2009-05-02  Bruno Haible  <bruno@clisp.org>
28507
28508         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28509         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28510         shell variable gl_fnmatch_required to detect which variant is
28511         requested.
28512         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28513         gl_FUNC_FNMATCH_POSIX.
28514         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28515         exclude fnmatch-posix.
28516
28517 2009-05-02  Bruno Haible  <bruno@clisp.org>
28518
28519         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28520         * modules/mbsrtowcs (License): Change to LGPLv2+.
28521         * modules/strnlen1 (License): Likewise.
28522         Reported by Simon Josefsson.
28523
28524 2009-05-02  Bruno Haible  <bruno@clisp.org>
28525
28526         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28527         "cross".
28528         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28529         gnulib-tool was called with option --source-base=lib.
28530
28531 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28532
28533         Use automake *-local hooks without commands, for extensibility.
28534         * modules/localcharset (Makefile.am): Rename install-exec-local
28535         rule to install-exec-localcharset, and make it a prerequisite of
28536         install-exec-local.  Likewise, rename the uninstall-local rule to
28537         uninstall-localcharset, and make it a prerequisite of the former.
28538
28539 2009-05-01  Bruno Haible  <bruno@clisp.org>
28540
28541         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28542         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28543         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28544         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28545         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28546         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28547         m4/locale-zh.m4, m4/codeset.m4.
28548
28549         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28550         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28551         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28552         m4/locale-zh.m4.
28553
28554         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28555         REPLACE_WCRTOMB if mbstate_t must be replaced.
28556         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28557         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28558
28559 2009-05-01  Bruno Haible  <bruno@clisp.org>
28560
28561         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28562         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28563         dngettext, dcngettext, textdomain, bindtextdomain,
28564         bind_textdomain_codeset): Undefine before redefining.
28565
28566 2009-04-30  Bruno Haible  <bruno@clisp.org>
28567
28568         Fix bug introduced on 2009-04-25.
28569         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28570         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28571         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28572         is defined.
28573         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28574         is defined.
28575         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28576         is defined.
28577         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28578
28579 2009-04-28  Bruno Haible  <bruno@clisp.org>
28580
28581         Comment tweaks.
28582         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28583         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28584         * lib/unicase.h (u*_casexfrm): Likewise.
28585         Reported by Paolo Bonzini.
28586
28587 2009-04-28  Bruno Haible  <bruno@clisp.org>
28588
28589         Fix a compilation error.
28590         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28591         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28592         Reported by Jim Meyering.
28593
28594 2009-04-27  Bruno Haible  <bruno@clisp.org>
28595
28596         New module 'libunistring'.
28597         * modules/libunistring: New file.
28598         * m4/libunistring.m4: New file.
28599         * MODULES.html.sh (Unicode string functions): Add it.
28600
28601 2009-04-27  Eric Blake  <ebb9@byu.net>
28602
28603         maint.mk: allow package-specific header to provide <config.h>
28604         * top/maint.mk (sc_require_config_h): New variable.
28605         (sc_require_config_h, sc_require_config_h_first): Use it.
28606
28607 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28608
28609         * top/maint.mk (sc_avoid_if_before_free): Except
28610         useless-if-before-free script.
28611
28612 2009-04-27  Eric Blake  <ebb9@byu.net>
28613
28614         maintainer-makefile: depend on all required helper scripts
28615         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28616         useless-if-before-free.
28617         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28618         version, rather than assuming gnulib checkout is available.
28619         Reported by Simen Josefsson.
28620
28621 2009-04-26  Bruno Haible  <bruno@clisp.org>
28622
28623         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28624         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28625         "../" or "..".
28626
28627 2009-04-26  Bruno Haible  <bruno@clisp.org>
28628
28629         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28630         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28631         AC_LIB_HAVE_LINKFLAGS.
28632
28633 2009-04-26  Bruno Haible  <bruno@clisp.org>
28634
28635         Simplify calling convention of u*_conv_from_encoding.
28636         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28637         u32_conv_from_encoding): Expect a resultbuf argument and return the
28638         result directly as a pointer.
28639         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28640         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28641         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28642         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28643         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28644         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28645         Update.
28646         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28647         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28648         * lib/vasnprintf.c (VASNPRINTF): Update.
28649         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28650         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28651         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28652         * NEWS: Mention the change.
28653
28654 2009-04-26  Bruno Haible  <bruno@clisp.org>
28655
28656         Simplify calling convention of u*_conv_to_encoding.
28657         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28658         u32_conv_to_encoding): Expect a resultbuf argument and return the
28659         result directly as a pointer.
28660         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28661         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28662         freeing scaled_offsets if mem_iconveha failed.
28663         * lib/unicase/u-casexfrm.h (FUNC): Update.
28664         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28665         * lib/vasnprintf.c (VASNPRINTF): Update.
28666         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28667         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28668         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28669         * NEWS: Mention the change.
28670
28671 2009-04-26  Bruno Haible  <bruno@clisp.org>
28672
28673         Avoid test failures on AIX and OSF/1.
28674         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28675         malloc(0).
28676         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28677         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28678         Likewise.
28679         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28680         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28681         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28682         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28683         * doc/posix-functions/malloc.texi: Document the portability problem
28684         related to malloc(0).
28685
28686 2009-04-26  Bruno Haible  <bruno@clisp.org>
28687
28688         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28689         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28690         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28691
28692 2009-04-25  Bruno Haible  <bruno@clisp.org>
28693
28694         Avoid link error when creating a namespace clean library.
28695         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28696         as macro with arguments if already defined as an alias.
28697         * lib/signbitf.c (gl_signbitf): Don't undefine.
28698         * lib/signbitd.c (gl_signbitd): Don't undefine.
28699         * lib/signbitl.c (gl_signbitl): Don't undefine.
28700
28701 2009-04-25  Jim Meyering  <meyering@redhat.com>
28702
28703         vc-list-files: fix another quoting bug
28704         * build-aux/vc-list-files: Avoid sed backslash expansion
28705         of pathological directory names.
28706
28707 2009-04-25  Eric Blake  <ebb9@byu.net>
28708
28709         vc-list-files: fix shell quoting error
28710         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28711         timestamp.
28712
28713 2009-04-25  Jim Meyering  <meyering@redhat.com>
28714
28715         vc-list-files: restore lost functionality with subdir argument
28716         * build-aux/vc-list-files: When given a non-"." sub-directory
28717         argument, substitute the $dir/ prefix back onto each resulting name.
28718         Otherwise, coreutils' root_tests check would fail.
28719
28720 2009-04-24  Eric Blake  <ebb9@byu.net>
28721
28722         vc-list-files: ignore git symlinks
28723         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28724         than ls-files, to ignore git symlinks.
28725
28726         maint.mk: import improvements from m4
28727         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28728         (move_if_change): Delete unused macro.
28729         (news-date-check, vc-diff-check): Support VPATH builds.
28730         (announcement): Likewise.  Split --bootstrap-tools list...
28731         (boostrap-tools): ...into separate list, which can be overridden
28732         in cfg.mk.
28733         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28734         requiring dependency on useless-if-before-free module.
28735         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28736         Support VPATH builds.
28737
28738 2009-04-24  Jim Meyering  <meyering@redhat.com>
28739
28740         maint.mk: remove coreutils-specific rules and variables
28741         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28742         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28743         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28744
28745         maint.mk: remove obsolete rule
28746         * top/maint.mk (rel-check): Remove rule.
28747         (WGET, WGETFLAGS): Remove now-unused variables.
28748
28749 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28750
28751         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28752         consistency.
28753
28754         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28755         '$(PATH_SEPARATOR)' instead of ':'.
28756
28757 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28758
28759         * lib/getopt1.c (main): Use 'const' for static array.
28760
28761 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28762
28763         * top/maint.mk: Sync with coreutils.
28764         * NEWS: Explain incompatibilities.
28765
28766 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28767             Bruno Haible  <bruno@clisp.org>
28768
28769         Fix cross-compilation results.
28770         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28771         statement, as third argument of AC_TRY_RUN.
28772         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28773         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28774         Likewise.
28775         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28776         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28777         Likewise.
28778         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28779         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28780         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28781
28782 2009-04-20  Bruno Haible  <bruno@clisp.org>
28783
28784         Avoid test failure on mingw.
28785         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28786
28787 2009-04-20  Bruno Haible  <bruno@clisp.org>
28788
28789         Avoid compilation error on mingw.
28790         * modules/localename-tests (Depends-on): Add locale.
28791
28792 2009-04-19  Bruno Haible  <bruno@clisp.org>
28793
28794         Support for building a shared library on Windows platforms.
28795         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28796         (main): Test the presence of UNINORM_NFC here.
28797         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28798         (main): Test the presence of UNINORM_NFD here.
28799         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28800         (main): Test the presence of UNINORM_NFKC here.
28801         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28802         (main): Test the presence of UNINORM_NFKD here.
28803
28804 2009-04-19  Bruno Haible  <bruno@clisp.org>
28805
28806         Avoid a compiler warning.
28807         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28808         Change type of variable 'sequence'.
28809
28810 2009-04-19  Bruno Haible  <bruno@clisp.org>
28811
28812         * modules/configmake (Makefile.am): When the contents of configmake.h
28813         does not change, arrange to preserve its modification time.
28814
28815 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28816
28817         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28818         gettext domain.
28819
28820 2009-04-16  Jim Meyering  <meyering@redhat.com>
28821
28822         useless-if-before-free: improve conversion code
28823         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28824         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28825
28826 2009-04-14  Bruno Haible  <bruno@clisp.org>
28827
28828         * modules/fcntl (Depends-on): Add extensions.
28829         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28830
28831 2009-04-12  Ben Pfaff  <blp@gnu.org>
28832
28833         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28834         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28835
28836 2009-03-20  Ben Pfaff  <blp@gnu.org>
28837
28838         Make rename replace existing destinations on Windows.
28839         * m4/rename.m4: Add test for Mingw.
28840         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28841         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28842         * doc/posix-functions/rename.texi: Document.
28843
28844 2009-04-10  Bruno Haible  <bruno@clisp.org>
28845
28846         New include file "iconveh.h".
28847         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28848         * lib/striconveh.h: Include it.
28849         (enum iconv_ilseq_handler): Remove definition.
28850         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28851         striconveh.h.
28852         * lib/striconveha.c: Include striconveh.h.
28853         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28854         * modules/striconveh (Files): Add lib/iconveh.h.
28855         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28856         lib/striconveh.h.
28857
28858 2009-04-10  Bruno Haible  <bruno@clisp.org>
28859
28860         * lib/uniconv.h: Update comment.
28861
28862 2009-04-10  Bruno Haible  <bruno@clisp.org>
28863
28864         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28865         always.
28866         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28867         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28868         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28869         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28870         "unistring-notinline.h", so that the function gets defined always.
28871         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28872         * lib/unistr/u8-uctomb.c: Likewise.
28873         * lib/unistr/u16-mbtouc.c: Likewise.
28874         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28875         * lib/unistr/u16-uctomb.c: Likewise.
28876         * lib/unistr/u32-mbtouc.c: Likewise.
28877         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28878         * lib/unistr/u32-uctomb.c: Likewise.
28879
28880 2009-04-10  Bruno Haible  <bruno@clisp.org>
28881
28882         Mark 'utime' obsolete.
28883         * modules/utime (Status, Notice): New sections.
28884         Suggested by Jim Meyering.
28885
28886         Fix cross-compile guess for utime test.
28887         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28888         autoconf.
28889         * doc/posix-functions/utime.texi: Give more precisions.
28890         Reported by Jan <ipif@ymail.com>.
28891
28892 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28893
28894         filevercmp: correct today's change
28895         * lib/filevercmp.c: Also handle coreutils' test inputs.
28896         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28897
28898         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28899         for reporting it.
28900         * lib/filevercmp.c: Special handle for "", "." and "..".
28901         * tests/test-filevercmp.c: Enlarge the set suite.
28902
28903 2009-04-07  Jim Meyering  <meyering@redhat.com>
28904
28905         useless-if-before-free: show how to remove braced useless free, too
28906         * build-aux/useless-if-before-free: still only in a comment, though.
28907
28908 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28909
28910         maint.mk: import changes to syntax-check macros from coreutils
28911         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28912         Use them in the relevant macros.
28913
28914 2009-04-06  Bruno Haible  <bruno@clisp.org>
28915
28916         Fix unportable use of bit-fields.
28917         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28918         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28919         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28920
28921 2009-04-06  Bruno Haible  <bruno@clisp.org>
28922
28923         Avoid test failures on AIX and OSF/1.
28924         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28925         that malloc(0) = NULL.
28926         * tests/unicase/test-u8-tolower.c (check): Likewise.
28927         * tests/unicase/test-u8-totitle.c (check): Likewise.
28928         * tests/unicase/test-u8-toupper.c (check): Likewise.
28929         * tests/unicase/test-u16-casefold.c (check): Likewise.
28930         * tests/unicase/test-u16-tolower.c (check): Likewise.
28931         * tests/unicase/test-u16-totitle.c (check): Likewise.
28932         * tests/unicase/test-u16-toupper.c (check): Likewise.
28933         * tests/unicase/test-u32-casefold.c (check): Likewise.
28934         * tests/unicase/test-u32-tolower.c (check): Likewise.
28935         * tests/unicase/test-u32-totitle.c (check): Likewise.
28936         * tests/unicase/test-u32-toupper.c (check): Likewise.
28937         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28938         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28939         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28940         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28941         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28942         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28943         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28944         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28945         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28946         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28947         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28948         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28949
28950 2009-04-05  Bruno Haible  <bruno@clisp.org>
28951
28952         Work around an autoconf limitation.
28953         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
28954         comment line if it would be longer than 3 KB.
28955
28956 2009-04-05  Bruno Haible  <bruno@clisp.org>
28957
28958         Avoid test failure with libiconv-1.13.
28959         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
28960         of the expected test results.
28961
28962 2009-04-05  Bruno Haible  <bruno@clisp.org>
28963
28964         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
28965         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
28966         that it should be installed.
28967
28968 2009-04-05  Bruno Haible  <bruno@clisp.org>
28969
28970         * gnulib-tool: New option --copy-file.
28971         (func_usage): Document it.
28972         (func_dest_tmpfilename): Moved out of func_import.
28973         (func_add_file, func_update_file): New functions, extracted from
28974         func_import.
28975         (func_import): Update.
28976
28977 2009-04-05  Karl Berry  <karl@gnu.org>
28978
28979         * README: prominently mention gnulib-tool.
28980         Rearrange sections so getting the code is near the top.
28981
28982 2009-04-05  Bruno Haible  <bruno@clisp.org>
28983
28984         * lib/unicase.h: Mention u*_cmp2.
28985         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28986         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
28987         * lib/unicase/ulc-casecmp.c: Likewise.
28988         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
28989         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
28990         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
28991         unistr/u8-cmp.
28992         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
28993         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
28994         unistr/u16-cmp.
28995         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
28996         unistr/u32-cmp.
28997
28998         * lib/uninorm.h: Mention u*_cmp2.
28999         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29000         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29001         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29002         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29003         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29004         unistr/u8-cmp.
29005         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29006         unistr/u16-cmp.
29007         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29008         unistr/u32-cmp.
29009
29010         New module 'unistr/u32-cmp2'.
29011         * lib/unistr/u32-cmp2.c: New file.
29012         * modules/unistr/u32-cmp2: New file.
29013
29014         New module 'unistr/u16-cmp2'.
29015         * lib/unistr/u16-cmp2.c: New file.
29016         * modules/unistr/u16-cmp2: New file.
29017
29018         New module 'unistr/u8-cmp2'.
29019         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29020         * lib/unistr/u8-cmp2.c: New file.
29021         * lib/unistr/u-cmp2.h: New file.
29022         * modules/unistr/u8-cmp2: New file.
29023
29024 2009-04-05  Bruno Haible  <bruno@clisp.org>
29025
29026         * lib/unictype.h (uc_property_is_valid): New macro.
29027         * tests/unictype/test-pr_byname.c (main): Use it.
29028
29029         * lib/unistr.h: Doc fixes.
29030         * lib/uniconv.h: Doc fixes.
29031         * lib/unictype.h: Doc fixes.
29032
29033 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29034
29035         Port coreutils 7.2 to Solaris 8.
29036
29037         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29038         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29039         for Solaris 8.  This is a bit of a hack, as it means it's the
29040         caller's responsibility to add -lnsl if needed, but most likely it
29041         won't be needed since only getaddrinfo uses this and getaddrinfo
29042         isn't needed on Solaris 8.
29043
29044         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29045         problem to Solaris 8 encountered with coreutils 7.2, which
29046         resulted in a message "fnmatch.c:292: warning: passing argument 4
29047         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29048         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29049
29050 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29051
29052         * m4/ld-version-script.m4: Add FIXME comment.
29053
29054 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29055
29056         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29057         SOVERSION variable.
29058
29059 2009-04-02  Bruno Haible  <bruno@clisp.org>
29060
29061         * Makefile (info, html, dvi, pdf): Combine the rules.
29062         Suggested by Jim Meyering.
29063
29064 2009-04-01  Bruno Haible  <bruno@clisp.org>
29065
29066         * Makefile (info, html, dvi, pdf): New targets.
29067         Reported by Reuben Thomas <rrt@sc3d.org>.
29068
29069 2009-04-01  Bruno Haible  <bruno@clisp.org>
29070
29071         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29072         can be put into PATH.
29073         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29074
29075 2009-04-01  Bruno Haible  <bruno@clisp.org>
29076
29077         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29078
29079 2009-04-01  Bruno Haible  <bruno@clisp.org>
29080
29081         Rename module 'visibility'.
29082         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29083         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29084         * doc/gnulib.texi: Update.
29085         * MODULES.html.sh (Misc): Update.
29086         * NEWS: Mention the change.
29087
29088 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29089
29090         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29091         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29092         Eric Blake <ebb9@byu.net> for review.
29093         * MODULES.html.sh: Add lib-msvc-compat.
29094         * doc/gnulib.texi: Link to new section.
29095         * m4/ld-output-def.m4: New file.
29096         * doc/ld-output-def.texi: New file.
29097
29098 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29099
29100         Rename ld-version-script to lib-symbol-versions.  Suggested by
29101         Bruno Haible <bruno@clisp.org>.
29102         * modules/ld-version-script: Renamed to lib-symbol-versions.
29103         * doc/ld-version-script.texi: Fix module name.
29104         * MODULES.html.sh: Add lib-symbol-versions.
29105
29106 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29107
29108         * modules/u64-tests: New file.
29109         * tests/test-u64.c: New file.
29110
29111 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29112
29113         * MODULES.html.sh: Mention u64.
29114         * modules/u64: New module.
29115         * modules/crypto/sha512: Depend on u64 module instead of providing
29116         u64.h.
29117
29118 2009-03-27  Eric Blake  <ebb9@byu.net>
29119
29120         test-strerror: make debugging EAI_SYSTEM easier
29121         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29122         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29123         failure was EAI_SYSTEM.
29124
29125 2009-03-25  Bruno Haible  <bruno@clisp.org>
29126
29127         Fix a problem with --enable-relocatable on Solaris 7.
29128         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29129         since 2008-02-24.
29130
29131 2009-03-25  Eric Blake  <ebb9@byu.net>
29132
29133         test-sockets: avoid gcc warning
29134         * tests/test-sockets.c (main): Silence compiler warning.
29135
29136 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29137
29138         New modules nproc, pthread, contributed by Glen Lenker.
29139
29140         * MODULES.html.sh: Add pthread, nproc.
29141         * lib/nproc.c: New file.
29142         * lib/nproc.h: New file.
29143         * lib/pthread.in.h: New file.
29144         * m4/pthread.m4: New file.
29145         * modules/nproc: New file.
29146         * modules/pthread: New file.
29147
29148 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29149
29150         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29151         New variable.
29152
29153 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29154
29155         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29156         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29157         * tests/test-filevercmp.c: Add tests for backup suffixes.
29158
29159 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29160
29161         * modules/stdlib (Depends-on): Add stdint, needed when defining
29162         struct random_data on, for example, HP-UX 10.20.  Reported by
29163         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29164
29165 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29166
29167         * lib/readline.c (readline): Call fflush on stdout after printing
29168         prompt.
29169
29170 2009-03-20  Bruno Haible  <bruno@clisp.org>
29171
29172         Remove dependency from 'close' module to -lws2_32 on native Windows.
29173         * lib/close-hook.h: New file.
29174         * lib/close-hook.c: New file.
29175         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29176         w32sock.h.
29177         (_gl_close_fd_maybe_socket): Remove function.
29178         (rpl_close): Invoke execute_all_close_hooks instead of
29179         _gl_close_fd_maybe_socket.
29180         * lib/sockets.c: Include close-hook.h, w32sock.h.
29181         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29182         (close_sockets_hook): New variable.
29183         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29184         (gl_sockets_cleanup): Unregister it.
29185         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29186         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29187         * modules/close-hook: New file.
29188         * modules/close (Files): Remove lib/w32sock.h.
29189         (Depends-on): Add close-hook.
29190         (Link): Remove section.
29191         * modules/sockets (Files): Add lib/w32sock.h.
29192         (Depends-on): Add close-hook.
29193         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29194         invocation.
29195         * NEWS: Mention that LIB_CLOSE is gone.
29196
29197 2009-03-23  Eric Blake  <ebb9@byu.net>
29198
29199         signal-tests: test previous patch
29200         * tests/test-signal.c: New file.
29201         * modules/signal-tests: Likewise.
29202
29203         signal.h: always support 'volatile sig_atomic_t'
29204         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29205         (gl_SIGNAL_H_DEFAULTS): Add a default.
29206         * modules/signal (Makefile.am): Substitute if needed.
29207         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29208         users can blindly add volatile.
29209         * doc/posix-headers/signal.texi (signal.h): Document it.
29210         Reported by Matthew Woehlke.
29211
29212 2009-03-23  Jim Meyering  <meyering@redhat.com>
29213
29214         pathmax: PATH_MAX: use pathconf only when available
29215         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29216         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29217         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29218         This avoids a link failure in a PSP cross-compilation environment
29219         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29220
29221         * lib/vasnprintf.c (divide): Fix typo in comment.
29222
29223 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29224
29225         * gnulib-tool (func_filter_filelist): Fix comment.
29226
29227 2009-03-20  Bruno Haible  <bruno@clisp.org>
29228
29229         Make sockets.h self-contained.
29230         * lib/sockets.c: Include sockets.h first.
29231         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29232
29233 2009-03-19  Eric Blake  <ebb9@byu.net>
29234
29235         doc: mention more functions added in cygwin 1.7.0
29236         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29237         addition.
29238         * doc/posix-functions/log2f.texi: Likewise.
29239
29240 2009-03-19  Jim Meyering  <meyering@redhat.com>
29241
29242         fsusage: avoid syntax error due to statement-before-declaration
29243         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29244         after all declarations.  Reported by Matthew Woehlke in
29245         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29246
29247 2009-03-18  Eric Blake  <ebb9@byu.net>
29248
29249         build-aux/compile: sync from automake
29250         * build-aux/compile: New file, from automake.
29251         * config/srclist.txt: Mention build-aux/compile.
29252
29253 2009-03-17  Bruno Haible  <bruno@clisp.org>
29254
29255         * lib/git-merge-changelog.c: Fix typo in comment.
29256         Reported by Reuben Thomas <rrt@sc3d.org>.
29257
29258 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29259
29260         * m4/regex.m4: update and improve help for
29261         --without-included-regex.
29262
29263 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29264
29265         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29266         failure on missing include files.
29267
29268 2009-03-17  Eric Blake  <ebb9@byu.net>
29269
29270         doc: mention more functions added in cygwin 1.7.0
29271         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29272         addition.
29273         * doc/posix-functions/fwscanf.texi: Likewise.
29274         * doc/posix-functions/swprintf.texi: Likewise.
29275         * doc/posix-functions/swscanf.texi: Likewise.
29276         * doc/posix-functions/vfwprintf.texi: Likewise.
29277         * doc/posix-functions/vfwscanf.texi: Likewise.
29278         * doc/posix-functions/vswprintf.texi: Likewise.
29279         * doc/posix-functions/vswscanf.texi: Likewise.
29280         * doc/posix-functions/vwprintf.texi: Likewise.
29281         * doc/posix-functions/vwscanf.texi: Likewise.
29282         * doc/posix-functions/wcscasecmp.texi: Likewise.
29283         * doc/posix-functions/wcsdup.texi: Likewise.
29284         * doc/posix-functions/wcsftime.texi: Likewise.
29285         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29286         * doc/posix-functions/wprintf.texi: Likewise.
29287         * doc/posix-functions/wscanf.texi: Likewise.
29288         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29289
29290 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29291
29292         maint.mk: really add $(AM_MAKEFLAGS)
29293         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29294         was inadvertently omitted in the last commit.
29295         Spotted by Bruno Haible.
29296
29297         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29298         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29299         $(AM_MAKEFLAGS)' rather than plain `make'.
29300
29301         gnulib-tool: execute $MAKE not make
29302         * gnulib-tool: Default $MAKE to 'make'.
29303         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29304         than make.  Initialize $MAKE in the do-autobuild script.
29305
29306         gnulib-tool: use $MAKE not make in generated files
29307         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29308         make, in generated files.  Initialize $MAKE in the do-autobuild
29309         script.
29310
29311         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29312
29313         GNUmakefile: disable parallelism only for multiple, recursive targets
29314         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29315         additions in the Makefile.
29316         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29317         by Automake.
29318         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29319         are listed on the command line and at least one of them is
29320         listed in $(ALL_RECURSIVE_TARGETS).
29321
29322 2009-03-14  Bruno Haible  <bruno@clisp.org>
29323
29324         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29325         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29326         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29327         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29328         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29329         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29330         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29331         unistr/u8-uctomb.
29332         * modules/unistr/u8-strchr (Depends-on): Likewise.
29333         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29334         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29335         unistr/u16-uctomb.
29336         * modules/unistr/u16-strchr (Depends-on): Likewise.
29337         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29338
29339 2009-03-12  Bruno Haible  <bruno@clisp.org>
29340
29341         Work around select() bug on Interix 3.5.
29342         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29343         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29344         * m4/select.m4: New file.
29345         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29346         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29347         * modules/select (Files): Add m4/select.m4.
29348         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29349         * modules/nanosleep (Depends-on): Add select.
29350         * modules/poll (Depends-on): Likewise.
29351         * doc/posix-functions/select.texi: Mention the Interix bug.
29352         Reported by Markus Duft <mduft@gentoo.org>.
29353
29354         * lib/select.c: Renamed from lib/winsock-select.c.
29355         * modules/select (Files): Add lib/select.c, remove
29356         lib/winsock-select.c.
29357         (configure.ac): Update.
29358
29359 2009-03-12  Jim Meyering  <meyering@redhat.com>
29360
29361         avoid gcc warnings about unused macro definitions
29362         * lib/readtokens.c (STREQ): Remove unused definition.
29363         * lib/xmalloc.c (SIZE_MAX): Likewise.
29364         * lib/openat-die.c (N_): Likewise.
29365         * lib/mountlist.c (SIZE_MAX): Remove definition.
29366         Instead, include <stdint.h>.
29367         * lib/readutmp.c: Likewise.
29368         * modules/readutmp (Depends-on): Add stdint.
29369         * modules/mountlist (Depends-on): Add stdint.
29370         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29371
29372 2009-03-10  Bruno Haible  <bruno@clisp.org>
29373
29374         Tests for module 'mbmemcasecoll'.
29375         * modules/mbmemcasecoll-tests: New file.
29376         * tests/test-mbmemcasecoll1.sh: New file.
29377         * tests/test-mbmemcasecoll2.sh: New file.
29378         * tests/test-mbmemcasecoll3.sh: New file.
29379         * tests/test-mbmemcasecoll.c: New file.
29380
29381         New module 'mbmemcasecoll'.
29382         * lib/mbmemcasecoll.h: New file.
29383         * lib/mbmemcasecoll.c: New file.
29384         * modules/mbmemcasecoll: New file.
29385
29386         * tests/test-mbmemcasecmp.h: New file, extracted from
29387         tests/test-mbmemcasecmp.c.
29388         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29389         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29390         (main): Update.
29391         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29392
29393 2009-03-09  Bruno Haible  <bruno@clisp.org>
29394
29395         Tests for module 'mbmemcasecmp'.
29396         * modules/mbmemcasecmp-tests: New file.
29397         * tests/test-mbmemcasecmp1.sh: New file.
29398         * tests/test-mbmemcasecmp2.sh: New file.
29399         * tests/test-mbmemcasecmp3.sh: New file.
29400         * tests/test-mbmemcasecmp.c: New file.
29401
29402         New module 'mbmemcasecmp'.
29403         * lib/mbmemcasecmp.h: New file.
29404         * lib/mbmemcasecmp.c: New file.
29405         * modules/mbmemcasecmp: New file.
29406
29407 2009-03-09  Bruno Haible  <bruno@clisp.org>
29408
29409         Tests for module 'unicase/ulc-casecoll'.
29410         * modules/unicase/ulc-casecoll-tests: New file.
29411         * tests/unicase/test-ulc-casecoll1.sh: New file.
29412         * tests/unicase/test-ulc-casecoll2.sh: New file.
29413         * tests/unicase/test-ulc-casecoll.c: New file.
29414
29415         New module 'unicase/ulc-casecoll'.
29416         * lib/unicase.h (ulc_casecoll): New declaration.
29417         * lib/unicase/ulc-casecoll.c: New file.
29418         * modules/unicase/ulc-casecoll: New file.
29419
29420         New module 'unicase/ulc-casexfrm'.
29421         * lib/unicase.h (ulc_casexfrm): New declaration.
29422         * lib/unicase/ulc-casexfrm.c: New file.
29423         * modules/unicase/ulc-casexfrm: New file.
29424
29425 2009-03-09  Bruno Haible  <bruno@clisp.org>
29426
29427         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29428         invocations.
29429
29430         * m4/mbscasecmp.m4: Remove file.
29431         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29432         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29433
29434         * m4/mbscasestr.m4: Remove file.
29435         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29436         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29437
29438         * m4/mbschr.m4: Remove file.
29439         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29440         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29441
29442         * m4/mbscspn.m4: Remove file.
29443         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29444         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29445
29446         * m4/mbslen.m4: Remove file.
29447         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29448         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29449
29450         * m4/mbsncasecmp.m4: Remove file.
29451         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29452         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29453
29454         * m4/mbsnlen.m4: Remove file.
29455         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29456         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29457
29458         * m4/mbspbrk.m4: Remove file.
29459         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29460         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29461
29462         * m4/mbspcasecmp.m4: Remove file.
29463         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29464         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29465
29466         * m4/mbsrchr.m4: Remove file.
29467         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29468         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29469
29470         * m4/mbssep.m4: Remove file.
29471         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29472         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29473
29474         * m4/mbsspn.m4: Remove file.
29475         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29476         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29477
29478         * m4/mbsstr.m4: Remove file.
29479         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29480         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29481
29482         * m4/mbstok_r.m4: Remove file.
29483         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29484         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29485
29486         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29487
29488         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29489         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29490
29491         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29492
29493 2009-03-08  Bruno Haible  <bruno@clisp.org>
29494
29495         Tests for module 'unicase/ulc-casecmp'.
29496         * modules/unicase/ulc-casecmp-tests: New file.
29497         * tests/unicase/test-ulc-casecmp1.sh: New file.
29498         * tests/unicase/test-ulc-casecmp2.sh: New file.
29499         * tests/unicase/test-ulc-casecmp.c: New file.
29500
29501         New module 'unicase/ulc-casecmp'.
29502         * lib/unicase.h (ulc_casecmp): New declaration.
29503         * lib/unicase/ulc-casecmp.c: New file.
29504         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29505         'const SRC_UNIT *'.
29506         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29507         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29508         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29509         * modules/unicase/ulc-casecmp: New file.
29510
29511         Tests for module 'unicase/u32-is-cased'.
29512         * modules/unicase/u32-is-cased-tests: New file.
29513         * tests/unicase/test-u32-is-cased.c: New file.
29514
29515         Tests for module 'unicase/u16-is-cased'.
29516         * modules/unicase/u16-is-cased-tests: New file.
29517         * tests/unicase/test-u16-is-cased.c: New file.
29518
29519         Tests for module 'unicase/u8-is-cased'.
29520         * modules/unicase/u8-is-cased-tests: New file.
29521         * tests/unicase/test-u8-is-cased.c: New file.
29522         * tests/unicase/test-is-cased.h: New file.
29523
29524         New module 'unicase/u32-is-cased'.
29525         * lib/unicase/u32-is-cased.c: New file.
29526         * modules/unicase/u32-is-cased: New file.
29527
29528         New module 'unicase/u16-is-cased'.
29529         * lib/unicase/u16-is-cased.c: New file.
29530         * modules/unicase/u16-is-cased: New file.
29531
29532         New module 'unicase/u8-is-cased'.
29533         * lib/unicase/u8-is-cased.c: New file.
29534         * lib/unicase/u-is-cased.h: New file.
29535         * modules/unicase/u8-is-cased: New file.
29536
29537         Tests for module 'unicase/u32-is-casefolded'.
29538         * modules/unicase/u32-is-casefolded-tests: New file.
29539         * tests/unicase/test-u32-is-casefolded.c: New file.
29540
29541         Tests for module 'unicase/u16-is-casefolded'.
29542         * modules/unicase/u16-is-casefolded-tests: New file.
29543         * tests/unicase/test-u16-is-casefolded.c: New file.
29544
29545         Tests for module 'unicase/u8-is-casefolded'.
29546         * modules/unicase/u8-is-casefolded-tests: New file.
29547         * tests/unicase/test-u8-is-casefolded.c: New file.
29548         * tests/unicase/test-is-casefolded.h: New file.
29549
29550         New module 'unicase/u32-is-casefolded'.
29551         * lib/unicase/u32-is-casefolded.c: New file.
29552         * modules/unicase/u32-is-casefolded: New file.
29553
29554         New module 'unicase/u16-is-casefolded'.
29555         * lib/unicase/u16-is-casefolded.c: New file.
29556         * modules/unicase/u16-is-casefolded: New file.
29557
29558         New module 'unicase/u8-is-casefolded'.
29559         * lib/unicase/u8-is-casefolded.c: New file.
29560         * modules/unicase/u8-is-casefolded: New file.
29561
29562         Tests for module 'unicase/u32-is-titlecase'.
29563         * modules/unicase/u32-is-titlecase-tests: New file.
29564         * tests/unicase/test-u32-is-titlecase.c: New file.
29565
29566         Tests for module 'unicase/u16-is-titlecase'.
29567         * modules/unicase/u16-is-titlecase-tests: New file.
29568         * tests/unicase/test-u16-is-titlecase.c: New file.
29569
29570         Tests for module 'unicase/u8-is-titlecase'.
29571         * modules/unicase/u8-is-titlecase-tests: New file.
29572         * tests/unicase/test-u8-is-titlecase.c: New file.
29573         * tests/unicase/test-is-titlecase.h: New file.
29574
29575         New module 'unicase/u32-is-titlecase'.
29576         * lib/unicase/u32-is-titlecase.c: New file.
29577         * modules/unicase/u32-is-titlecase: New file.
29578
29579         New module 'unicase/u16-is-titlecase'.
29580         * lib/unicase/u16-is-titlecase.c: New file.
29581         * modules/unicase/u16-is-titlecase: New file.
29582
29583         New module 'unicase/u8-is-titlecase'.
29584         * lib/unicase/u8-is-titlecase.c: New file.
29585         * modules/unicase/u8-is-titlecase: New file.
29586
29587         Tests for module 'unicase/u32-is-lowercase'.
29588         * modules/unicase/u32-is-lowercase-tests: New file.
29589         * tests/unicase/test-u32-is-lowercase.c: New file.
29590
29591         Tests for module 'unicase/u16-is-lowercase'.
29592         * modules/unicase/u16-is-lowercase-tests: New file.
29593         * tests/unicase/test-u16-is-lowercase.c: New file.
29594
29595         Tests for module 'unicase/u8-is-lowercase'.
29596         * modules/unicase/u8-is-lowercase-tests: New file.
29597         * tests/unicase/test-u8-is-lowercase.c: New file.
29598         * tests/unicase/test-is-lowercase.h: New file.
29599
29600         New module 'unicase/u32-is-lowercase'.
29601         * lib/unicase/u32-is-lowercase.c: New file.
29602         * modules/unicase/u32-is-lowercase: New file.
29603
29604         New module 'unicase/u16-is-lowercase'.
29605         * lib/unicase/u16-is-lowercase.c: New file.
29606         * modules/unicase/u16-is-lowercase: New file.
29607
29608         New module 'unicase/u8-is-lowercase'.
29609         * lib/unicase/u8-is-lowercase.c: New file.
29610         * modules/unicase/u8-is-lowercase: New file.
29611
29612         Tests for module 'unicase/u32-is-uppercase'.
29613         * modules/unicase/u32-is-uppercase-tests: New file.
29614         * tests/unicase/test-u32-is-uppercase.c: New file.
29615
29616         Tests for module 'unicase/u16-is-uppercase'.
29617         * modules/unicase/u16-is-uppercase-tests: New file.
29618         * tests/unicase/test-u16-is-uppercase.c: New file.
29619
29620         Tests for module 'unicase/u8-is-uppercase'.
29621         * modules/unicase/u8-is-uppercase-tests: New file.
29622         * tests/unicase/test-u8-is-uppercase.c: New file.
29623         * tests/unicase/test-is-uppercase.h: New file.
29624
29625         New module 'unicase/u32-is-uppercase'.
29626         * lib/unicase/u32-is-uppercase.c: New file.
29627         * modules/unicase/u32-is-uppercase: New file.
29628
29629         New module 'unicase/u16-is-uppercase'.
29630         * lib/unicase/u16-is-uppercase.c: New file.
29631         * modules/unicase/u16-is-uppercase: New file.
29632
29633         New module 'unicase/u8-is-uppercase'.
29634         * lib/unicase/u8-is-uppercase.c: New file.
29635         * modules/unicase/u8-is-uppercase: New file.
29636
29637         New module 'unicase/u32-is-invariant'.
29638         * lib/unicase/u32-is-invariant.c: New file.
29639         * modules/unicase/u32-is-invariant: New file.
29640
29641         New module 'unicase/u16-is-invariant'.
29642         * lib/unicase/u16-is-invariant.c: New file.
29643         * modules/unicase/u16-is-invariant: New file.
29644
29645         New module 'unicase/u8-is-invariant'.
29646         * lib/unicase/u8-is-invariant.c: New file.
29647         * lib/unicase/invariant.h: New file.
29648         * lib/unicase/u-is-invariant.h: New file.
29649         * modules/unicase/u8-is-invariant: New file.
29650
29651         Tests for module 'unicase/u32-casecoll'.
29652         * modules/unicase/u32-casecoll-tests: New file.
29653         * tests/unicase/test-u32-casecoll.c: New file.
29654
29655         Tests for module 'unicase/u16-casecoll'.
29656         * modules/unicase/u16-casecoll-tests: New file.
29657         * tests/unicase/test-u16-casecoll.c: New file.
29658
29659         Tests for module 'unicase/u8-casecoll'.
29660         * modules/unicase/u8-casecoll-tests: New file.
29661         * tests/unicase/test-u8-casecoll.c: New file.
29662
29663         New module 'unicase/u32-casecoll'.
29664         * lib/unicase/u32-casecoll.c: New file.
29665         * modules/unicase/u32-casecoll: New file.
29666
29667         New module 'unicase/u16-casecoll'.
29668         * lib/unicase/u16-casecoll.c: New file.
29669         * modules/unicase/u16-casecoll: New file.
29670
29671         New module 'unicase/u8-casecoll'.
29672         * lib/unicase/u8-casecoll.c: New file.
29673         * lib/unicase/u-casecoll.h: New file.
29674         * modules/unicase/u8-casecoll: New file.
29675
29676         New module 'unicase/u32-casexfrm'.
29677         * lib/unicase/u32-casexfrm.c: New file.
29678         * modules/unicase/u32-casexfrm: New file.
29679
29680         New module 'unicase/u16-casexfrm'.
29681         * lib/unicase/u16-casexfrm.c: New file.
29682         * modules/unicase/u16-casexfrm: New file.
29683
29684         New module 'unicase/u8-casexfrm'.
29685         * lib/unicase/u8-casexfrm.c: New file.
29686         * lib/unicase/u-casexfrm.h: New file.
29687         * modules/unicase/u8-casexfrm: New file.
29688
29689         Tests for module 'unicase/u32-casecmp'.
29690         * modules/unicase/u32-casecmp-tests: New file.
29691         * tests/unicase/test-u32-casecmp.c: New file.
29692
29693         Tests for module 'unicase/u16-casecmp'.
29694         * modules/unicase/u16-casecmp-tests: New file.
29695         * tests/unicase/test-u16-casecmp.c: New file.
29696
29697         Tests for module 'unicase/u8-casecmp'.
29698         * modules/unicase/u8-casecmp-tests: New file.
29699         * tests/unicase/test-u8-casecmp.c: New file.
29700         * tests/unicase/test-casecmp.h: New file.
29701
29702         New module 'unicase/u32-casecmp'.
29703         * lib/unicase/u32-casecmp.c: New file.
29704         * modules/unicase/u32-casecmp: New file.
29705
29706         New module 'unicase/u16-casecmp'.
29707         * lib/unicase/u16-casecmp.c: New file.
29708         * modules/unicase/u16-casecmp: New file.
29709
29710         New module 'unicase/u8-casecmp'.
29711         * lib/unicase/u8-casecmp.c: New file.
29712         * lib/unicase/u-casecmp.h: New file.
29713         * modules/unicase/u8-casecmp: New file.
29714
29715         Tests for module 'unicase/u32-casefold'.
29716         * modules/unicase/u32-casefold-tests: New file.
29717         * tests/unicase/test-u32-casefold.c: New file.
29718
29719         Tests for module 'unicase/u16-casefold'.
29720         * modules/unicase/u16-casefold-tests: New file.
29721         * tests/unicase/test-u16-casefold.c: New file.
29722
29723         Tests for module 'unicase/u8-casefold'.
29724         * modules/unicase/u8-casefold-tests: New file.
29725         * tests/unicase/test-u8-casefold.c: New file.
29726
29727         New module 'unicase/u32-casefold'.
29728         * lib/unicase/u32-casefold.c: New file.
29729         * modules/unicase/u32-casefold: New file.
29730
29731         New module 'unicase/u16-casefold'.
29732         * lib/unicase/u16-casefold.c: New file.
29733         * modules/unicase/u16-casefold: New file.
29734
29735         New module 'unicase/u8-casefold'.
29736         * lib/unicase/u8-casefold.c: New file.
29737         * lib/unicase/u-casefold.h: New file.
29738         * modules/unicase/u8-casefold: New file.
29739
29740         New module 'unicase/tocasefold'.
29741         * lib/unicase/casefold.h: New file.
29742         * lib/unicase/tocasefold.c: New file.
29743         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29744         * modules/unicase/tocasefold: New file.
29745
29746         Tests for module 'unicase/u32-totitle'.
29747         * modules/unicase/u32-totitle-tests: New file.
29748         * tests/unicase/test-u32-totitle.c: New file.
29749
29750         Tests for module 'unicase/u16-totitle'.
29751         * modules/unicase/u16-totitle-tests: New file.
29752         * tests/unicase/test-u16-totitle.c: New file.
29753
29754         Tests for module 'unicase/u8-totitle'.
29755         * modules/unicase/u8-totitle-tests: New file.
29756         * tests/unicase/test-u8-totitle.c: New file.
29757
29758         New module 'unicase/u32-totitle'.
29759         * lib/unicase/u32-totitle.c: New file.
29760         * modules/unicase/u32-totitle: New file.
29761
29762         New module 'unicase/u16-totitle'.
29763         * lib/unicase/u16-totitle.c: New file.
29764         * modules/unicase/u16-totitle: New file.
29765
29766         New module 'unicase/u8-totitle'.
29767         * lib/unicase/u8-totitle.c: New file.
29768         * lib/unicase/u-totitle.h: New file.
29769         * modules/unicase/u8-totitle: New file.
29770
29771         Tests for module 'unicase/u32-tolower'.
29772         * modules/unicase/u32-tolower-tests: New file.
29773         * tests/unicase/test-u32-tolower.c: New file.
29774
29775         Tests for module 'unicase/u16-tolower'.
29776         * modules/unicase/u16-tolower-tests: New file.
29777         * tests/unicase/test-u16-tolower.c: New file.
29778
29779         Tests for module 'unicase/u8-tolower'.
29780         * modules/unicase/u8-tolower-tests: New file.
29781         * tests/unicase/test-u8-tolower.c: New file.
29782
29783         New module 'unicase/u32-tolower'.
29784         * lib/unicase/u32-tolower.c: New file.
29785         * modules/unicase/u32-tolower: New file.
29786
29787         New module 'unicase/u16-tolower'.
29788         * lib/unicase/u16-tolower.c: New file.
29789         * modules/unicase/u16-tolower: New file.
29790
29791         New module 'unicase/u8-tolower'.
29792         * lib/unicase/u8-tolower.c: New file.
29793         * modules/unicase/u8-tolower: New file.
29794
29795         Tests for module 'unicase/u32-toupper'.
29796         * modules/unicase/u32-toupper-tests: New file.
29797         * tests/unicase/test-u32-toupper.c: New file.
29798
29799         Tests for module 'unicase/u16-toupper'.
29800         * modules/unicase/u16-toupper-tests: New file.
29801         * tests/unicase/test-u16-toupper.c: New file.
29802
29803         Tests for module 'unicase/u8-toupper'.
29804         * modules/unicase/u8-toupper-tests: New file.
29805         * tests/unicase/test-u8-toupper.c: New file.
29806
29807         New module 'unicase/u32-toupper'.
29808         * lib/unicase/u32-toupper.c: New file.
29809         * modules/unicase/u32-toupper: New file.
29810
29811         New module 'unicase/u16-toupper'.
29812         * lib/unicase/u16-toupper.c: New file.
29813         * modules/unicase/u16-toupper: New file.
29814
29815         New module 'unicase/u8-toupper'.
29816         * lib/unicase/u8-toupper.c: New file.
29817         * modules/unicase/u8-toupper: New file.
29818
29819         New module 'unicase/u32-casemap'.
29820         * lib/unicase/u32-casemap.c: New file.
29821         * modules/unicase/u32-casemap: New file.
29822
29823         New module 'unicase/u16-casemap'.
29824         * lib/unicase/u16-casemap.c: New file.
29825         * modules/unicase/u16-casemap: New file.
29826
29827         New module 'unicase/u8-casemap'.
29828         * lib/unicase/unicasemap.h: New file.
29829         * lib/unicase/u8-casemap.c: New file.
29830         * lib/unicase/u-casemap.h: New file.
29831         * modules/unicase/u8-casemap: New file.
29832
29833         New module 'unicase/special-casing'.
29834         * lib/unicase/special-casing.h: New file.
29835         * lib/unicase/special-casing.c: New file.
29836         * lib/unicase/special-casing-table.gperf: New file, generated by
29837         gen-uni-tables.c.
29838         * modules/unicase/special-casing: New file.
29839
29840         Tests for module 'unicase/locale-language'.
29841         * modules/unicase/locale-language-tests: New file.
29842         * tests/unicase/test-locale-language.sh: New file.
29843         * tests/unicase/test-locale-language.c: New file.
29844
29845         New module 'unicase/locale-language'.
29846         * lib/unicase/locale-language.c: New file.
29847         * lib/unicase/locale-languages.gperf: New file.
29848         * modules/unicase/locale-language: New file.
29849
29850         Generate more tables for case conversion and case folding.
29851         * lib/gen-uni-tables.c (SCC_*): New enum items.
29852         (struct special_casing_rule): New type.
29853         (casing_rules, num_casing_rules, allocated_casing_rules): New
29854         variables.
29855         (add_casing_rule, fill_casing_rules): New functions.
29856         (struct casefold_rule): New type.
29857         (casefolding_rules, num_casefolding_rules,
29858         allocated_casefolding_rules): New variables.
29859         (fill_casefolding_rules): New function.
29860         (unicode_casefold): New variable.
29861         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29862         sort_casing_rules, output_casing_rules): New functions.
29863         (main): Accept to more arguments: SpecialCasing.txt and
29864         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29865         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29866         Output mapping for casefolding.
29867
29868         * lib/unicase.h: Include stdbool.h, uninorm.h.
29869         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29870         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29871         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29872         arguments.
29873         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29874         resultp arguments.
29875         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29876         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29877         resultp arguments.
29878         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29879         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29880         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29881         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29882         declarations.
29883         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29884
29885 2009-03-08  Bruno Haible  <bruno@clisp.org>
29886
29887         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29888         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29889         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29890         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29891
29892 2009-03-07  Bruno Haible  <bruno@clisp.org>
29893
29894         Adjust u*_normcmp, u*_normcoll API.
29895         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29896         u16_normcoll, u32_normcoll): Change failure conventions.
29897         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29898         errno and return -1.
29899         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29900
29901 2009-03-07  Bruno Haible  <bruno@clisp.org>
29902
29903         Tests for module 'uninorm/u32-normcoll'.
29904         * modules/uninorm/u32-normcoll-tests: New file.
29905         * tests/uninorm/test-u32-normcoll.c: New file.
29906
29907         Tests for module 'uninorm/u16-normcoll'.
29908         * modules/uninorm/u16-normcoll-tests: New file.
29909         * tests/uninorm/test-u16-normcoll.c: New file.
29910
29911         Tests for module 'uninorm/u8-normcoll'.
29912         * modules/uninorm/u8-normcoll-tests: New file.
29913         * tests/uninorm/test-u8-normcoll.c: New file.
29914
29915 2009-03-07  Bruno Haible  <bruno@clisp.org>
29916
29917         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29918         tests/uninorm/test-u32-normcmp.c.
29919         * tests/uninorm/test-u32-normcmp.c: Include it.
29920         (test_nonascii): New function, extracted from main. Add some more
29921         tests.
29922         (main): Invoke test_ascii and test_nonascii.
29923         * modules/uninorm/u32-normcmp-tests (Files): Add
29924         tests/uninorm/test-u32-normcmp.h.
29925         (Depends-on): Remove uninorm/u32-normcmp.
29926
29927         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29928         tests/uninorm/test-u16-normcmp.c.
29929         * tests/uninorm/test-u16-normcmp.c: Include it.
29930         (test_nonascii): New function, extracted from main. Add some more
29931         tests.
29932         (main): Invoke test_ascii and test_nonascii.
29933         * modules/uninorm/u16-normcmp-tests (Files): Add
29934         tests/uninorm/test-u16-normcmp.h.
29935         (Depends-on): Remove uninorm/u16-normcmp.
29936
29937         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29938         tests/uninorm/test-u8-normcmp.c.
29939         * tests/uninorm/test-u8-normcmp.c: Include it.
29940         (test_nonascii): New function, extracted from main. Add some more
29941         tests.
29942         (main): Invoke test_ascii and test_nonascii.
29943         * modules/uninorm/u8-normcmp-tests (Files): Add
29944         tests/uninorm/test-u8-normcmp.h.
29945         (Depends-on): Remove uninorm/u8-normcmp.
29946
29947 2009-03-07  Bruno Haible  <bruno@clisp.org>
29948
29949         New module 'uninorm/u32-normcoll'.
29950         * lib/uninorm/u32-normcoll.c: New file.
29951         * modules/uninorm/u32-normcoll: New file.
29952
29953         New module 'uninorm/u16-normcoll'.
29954         * lib/uninorm/u16-normcoll.c: New file.
29955         * modules/uninorm/u16-normcoll: New file.
29956
29957         New module 'uninorm/u8-normcoll'.
29958         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
29959         declarations.
29960         * lib/uninorm/u8-normcoll.c: New file.
29961         * lib/uninorm/u-normcoll.h: New file.
29962         * modules/uninorm/u8-normcoll: New file.
29963
29964         New module 'uninorm/u32-normxfrm'.
29965         * lib/uninorm/u32-normxfrm.c: New file.
29966         * modules/uninorm/u32-normxfrm: New file.
29967
29968         New module 'uninorm/u16-normxfrm'.
29969         * lib/uninorm/u16-normxfrm.c: New file.
29970         * modules/uninorm/u16-normxfrm: New file.
29971
29972         New module 'uninorm/u8-normxfrm'.
29973         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
29974         declarations.
29975         * lib/uninorm/u8-normxfrm.c: New file.
29976         * lib/uninorm/u-normxfrm.h: New file.
29977         * modules/uninorm/u8-normxfrm: New file.
29978
29979 2009-03-07  Bruno Haible  <bruno@clisp.org>
29980
29981         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
29982         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
29983         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
29984
29985 2009-03-07  Bruno Haible  <bruno@clisp.org>
29986
29987         New module 'memxfrm'.
29988         * lib/memxfrm.h: New file.
29989         * lib/memxfrm.c: New file.
29990         * modules/memxfrm: New file.
29991
29992 2009-03-07  Bruno Haible  <bruno@clisp.org>
29993
29994         New module 'memcmp2'.
29995         * lib/memcmp2.h: New file.
29996         * lib/memcmp2.c: New file.
29997         * modules/memcmp2: New file.
29998
29999 2009-03-07  Bruno Haible  <bruno@clisp.org>
30000
30001         Tests for module 'uninorm/decomposing-form'.
30002         * modules/uninorm/decomposing-form-tests: New file.
30003         * tests/uninorm/test-decomposing-form.c: New file.
30004
30005         New module 'uninorm/decomposing-form'.
30006         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30007         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30008         Add 'decomposing_variant' field.
30009         * lib/uninorm/decomposing-form.c: New file.
30010         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30011         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30012         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30013         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30014         * modules/uninorm/decomposing-form: New file.
30015         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30016         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30017
30018 2009-03-07  Bruno Haible  <bruno@clisp.org>
30019
30020         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30021         strings.
30022
30023 2009-03-06  Bruno Haible  <bruno@clisp.org>
30024
30025         Tests for module 'uninorm/u32-normcmp'.
30026         * tests/uninorm/test-u32-normcmp.c: New file.
30027         * modules/uninorm/u32-normcmp-tests: New file.
30028
30029         Tests for module 'uninorm/u16-normcmp'.
30030         * tests/uninorm/test-u16-normcmp.c: New file.
30031         * modules/uninorm/u16-normcmp-tests: New file.
30032
30033         Tests for module 'uninorm/u8-normcmp'.
30034         * tests/uninorm/test-u8-normcmp.c: New file.
30035         * modules/uninorm/u8-normcmp-tests: New file.
30036
30037         New module 'uninorm/u32-normcmp'.
30038         * lib/uninorm/u32-normcmp.c: New file.
30039         * modules/uninorm/u32-normcmp: New file.
30040
30041         New module 'uninorm/u16-normcmp'.
30042         * lib/uninorm/u16-normcmp.c: New file.
30043         * modules/uninorm/u16-normcmp: New file.
30044
30045         New module 'uninorm/u8-normcmp'.
30046         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30047         declarations.
30048         * lib/uninorm/u8-normcmp.c: New file.
30049         * lib/uninorm/u-normcmp.h: New file.
30050         * modules/uninorm/u8-normcmp: New file.
30051
30052 2009-03-06  Bruno Haible  <bruno@clisp.org>
30053
30054         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30055         Reported by Eric Blake.
30056
30057 2009-03-06  Eric Blake  <ebb9@byu.net>
30058             Bruno Haible  <bruno@clisp.org>
30059
30060         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30061         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30062         condition.
30063         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30064         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30065         condition.
30066         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30067
30068 2009-03-06  Eric Blake  <ebb9@byu.net>
30069
30070         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30071         to avoid compiler warnings.
30072         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30073
30074 2009-03-05  Bruno Haible  <bruno@clisp.org>
30075
30076         * tests/test-ftell.c (main): Disable test beyond end of file on
30077         FreeMiNT.
30078         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30079
30080 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30081
30082         * lib/filevercmp.c: Move hidden files up in ordering.
30083         * tests/test-filevercmp.c: Add tests for hidden files.
30084
30085 2009-03-04  Bruno Haible  <bruno@clisp.org>
30086
30087         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30088         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30089         AM_CFLAGS.
30090         Reported by Simon Josefsson.
30091
30092 2009-03-03  Bruno Haible  <bruno@clisp.org>
30093
30094         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30095         Reported by Simon Josefsson.
30096
30097         * doc/ld-version-script.texi: Update node reference.
30098
30099 2009-03-03  Bruno Haible  <bruno@clisp.org>
30100
30101         * modules/visibility (License): Change to 'unlimited'.
30102         Suggested by Simon Josefsson.
30103
30104 2009-03-03  Jim Meyering  <meyering@redhat.com>
30105
30106         unlinkdir: cannot_unlink_dir may modify process state
30107         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30108         it's neither thread-safe nor appropriate for use in a library.
30109
30110 2009-03-03  Eric Blake  <ebb9@byu.net>
30111
30112         test-closein: silence test under Darwin
30113         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30114         care if it dies from EPIPE or EBADF.
30115
30116 2009-03-03  Bruno Haible  <bruno@clisp.org>
30117
30118         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30119         earlier.
30120         * doc/visibility.texi: Fix @node and @section.
30121
30122 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30123
30124         * doc/gnulib.texi: Link to sections for ld version script and
30125         visibility.
30126         * doc/visibility.texi: Add @node and @section.
30127         * modules/ld-version-script: New module.
30128         * m4/ld-version-script.m4: New file.
30129         * doc/ld-version-script.texi: New file.
30130
30131 2009-03-02  David Lutterkort  <lutter@redhat.com>
30132
30133         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30135
30136 2009-03-02  Bruno Haible  <bruno@clisp.org>
30137
30138         * doc/visibility.texi: Mention libtool's -export-symbols option.
30139
30140 2009-03-02  Jim Meyering  <meyering@redhat.com>
30141
30142         announce-gen: new option: --no-print-checksums
30143         * build-aux/announce-gen (usage): Describe it.
30144         (print_checksums): Print a newline here, not in the [*] footnote.
30145         (main): Honor it.
30146
30147 2009-03-01  Bruno Haible  <bruno@clisp.org>
30148
30149         Use socklen_t in the native Windows replacements prototypes.
30150         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30151         instead of 'int'.
30152         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30153         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30154         * modules/getsockopt (Depends-on): Add socklen.
30155         * modules/setsockopt (Depends-on): Add socklen.
30156
30157 2009-03-01  Bruno Haible  <bruno@clisp.org>
30158
30159         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30160         least 4.2.
30161
30162 2009-03-01  Eric Blake  <ebb9@byu.net>
30163             Bruno Haible  <bruno@clisp.org>
30164
30165         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30166         error messages.
30167         * lib/wait-process.c (wait_subprocess): Omit error message about
30168         deadly signal sent to the child of termsigp != NULL.
30169
30170 2009-03-01  Eric Blake  <ebb9@byu.net>
30171
30172         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30173
30174 2009-03-01  Bruno Haible  <bruno@clisp.org>
30175
30176         Avoid a gcc warning.
30177         * tests/test-sched.c (b): Make global.
30178         Reported by Eric Blake.
30179
30180 2009-01-19  Martin Lambers  <marlam@marlam.de>
30181
30182         Provide POSIX semantics for socket timeout options on W32.
30183         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30184         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30185         * modules/setsockopt: Depend on sys_time module for struct timeval.
30186         * modules/getsockopt: Depend on sys_time module for struct timeval.
30187
30188 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30189
30190         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30191         __USE_GNU, for consistency with netdb.in.h.
30192         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30193
30194 2009-03-01  Bruno Haible  <bruno@clisp.org>
30195
30196         More support for FreeMiNT.
30197         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30198         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30199
30200 2009-03-01  Bruno Haible  <bruno@clisp.org>
30201
30202         More support for FreeMiNT.
30203         * lib/fpurge.c (fpurge): Correct last commit.
30204         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30205
30206 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30207
30208         Fix unportable awk script in vc-list-files.
30209         * build-aux/vc-list-files: In the replacement awk script, use
30210         substr with a second argument of 1, not zero.
30211         Report by Simon Josefsson.
30212
30213 2009-02-28  Bruno Haible  <bruno@clisp.org>
30214
30215         More support for FreeMiNT.
30216         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30217         to FreeMiNT today.
30218         * lib/fwriting.c (fwriting): Likewise.
30219         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30220
30221 2009-02-28  Bruno Haible  <bruno@clisp.org>
30222
30223         * tests/test-freadseek.c (main): Disable test beyond end of file on
30224         FreeMiNT.
30225         * tests/test-ftello.c (main): Likewise.
30226         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30227
30228 2009-02-28  Bruno Haible  <bruno@clisp.org>
30229
30230         Add tentative support for FreeMiNT.
30231         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30232         * lib/fpurge.c (fpurge): Likewise.
30233         * lib/freadable.c (freadable): Likewise.
30234         * lib/freading.c (freading): Likewise.
30235         * lib/freadptr.c (freadptr): Likewise.
30236         * lib/freadseek.c (freadptrinc): Likewise.
30237         * lib/fseeko.c (rpl_fseeko): Likewise.
30238         * lib/fseterr.c (fseterr): Likewise.
30239         * lib/fwritable.c (fwritable): Likewise.
30240         * lib/fwriting.c (fwriting): Likewise.
30241         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30242         Hourihane.
30243         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30244
30245 2009-02-28  Bruno Haible  <bruno@clisp.org>
30246
30247         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30248         SIGCHLD.
30249         Reported by Jim Meyering.
30250
30251 2009-02-28  Bruno Haible  <bruno@clisp.org>
30252
30253         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30254         Mention the results of these tests on various platforms.
30255         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30256         order.
30257         * doc/posix-functions/printf.texi: Likewise.
30258         * doc/posix-functions/snprintf.texi: Likewise.
30259         * doc/posix-functions/sprintf.texi: Likewise.
30260         * doc/posix-functions/vfprintf.texi: Likewise.
30261         * doc/posix-functions/vprintf.texi: Likewise.
30262         * doc/posix-functions/vsnprintf.texi: Likewise.
30263         * doc/posix-functions/vsprintf.texi: Likewise.
30264         * doc/glibc-functions/obstack_printf.texi: Likewise.
30265         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30266
30267 2009-02-28  Bruno Haible  <bruno@clisp.org>
30268
30269         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30270         Reported by Loïc Minier <lool@dooz.org>.
30271
30272 2009-02-27  Bruno Haible  <bruno@clisp.org>
30273
30274         * gnulib-tool (func_import): Make the sed expression used to create the
30275         sed script for updating the .gitignore file POSIX compliant.
30276         Reported by Eric Blake.
30277
30278 2009-02-27  Bruno Haible  <bruno@clisp.org>
30279
30280         * gnulib-tool (sed): Don't alias as "sed --posix".
30281         Reported by Eric Blake.
30282
30283 2009-02-27  Bruno Haible  <bruno@clisp.org>
30284
30285         Avoid test link errors.
30286         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30287         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30288         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30289         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30291
30292 2009-02-27  Bruno Haible  <bruno@clisp.org>
30293
30294         Avoid spurious "(cached)" in configure output.
30295         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30296         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30297         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30298         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30299         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30300         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30301         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30302         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30303         Reported by Eric Blake.
30304
30305 2009-02-27  Eric Blake  <ebb9@byu.net>
30306
30307         printf: fix regression in previous patch
30308         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30309
30310 2009-02-27  Bruno Haible  <bruno@clisp.org>
30311
30312         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30313         value.
30314         * lib/stdint.in.h: Likewise.
30315         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30316
30317 2009-02-27  Eric Blake  <ebb9@byu.net>
30318
30319         doc: mention more functions added in cygwin 1.7.0
30320         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30321         addition.
30322         * doc/posix-functions/open_wmemstream.texi: Likewise.
30323         * doc/posix-functions/wcsnlen.texi: Likewise.
30324         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30325         * doc/posix-functions/wcstod.texi: Likewise.
30326         * doc/posix-functions/wcstof.texi: Likewise.
30327         * doc/posix-functions/wcstoimax.texi: Likewise.
30328         * doc/posix-functions/wcstok.texi: Likewise.
30329         * doc/posix-functions/wcstoumax.texi: Likewise.
30330
30331         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30332         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30333         * doc/posix-functions/fprintf.texi: Update.
30334         * doc/posix-functions/printf.texi: Update.
30335         * doc/posix-functions/snprintf.texi: Update.
30336         * doc/posix-functions/sprintf.texi: Update.
30337         * doc/posix-functions/vfprintf.texi: Update.
30338         * doc/posix-functions/vprintf.texi: Update.
30339         * doc/posix-functions/vsnprintf.texi: Update.
30340         * doc/posix-functions/vsprintf.texi: Update.
30341         * doc/glibc-functions/obstack_printf.texi: Update.
30342         * doc/glibc-functions/obstack_vprintf.texi: Update.
30343
30344 2009-02-26  Eric Blake  <ebb9@byu.net>
30345
30346         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30347         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30348         compilation bug by using runtime conversion.
30349         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30350         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30351         * modules/ceill-tests (Files): Use nan.h.
30352         * modules/floorl-tests (Files): Likewise.
30353         * modules/frexpl-tests (Files): Likewise.
30354         * modules/isnanl-tests (Files): Likewise.
30355         * modules/ldexpl-tests (Files): Likewise.
30356         * modules/roundl-tests (Files): Likewise.
30357         * modules/truncl-tests (Files): Likewise.
30358         * tests/test-ceill.c (main): Use a working NaN.
30359         * tests/test-floorl.c (main): Likewise.
30360         * tests/test-frexpl.c (main): Likewise.
30361         * tests/test-isnan.c (test_long_double): Likewise.
30362         * tests/test-isnanl.h (main): Likewise.
30363         * tests/test-ldexpl.h (main): Likewise.
30364         * tests/test-roundl.h (main): Likewise.
30365         * tests/test-truncl.h (main): Likewise.
30366         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30367
30368 2009-02-26  Eric Blake  <ebb9@byu.net>
30369             Bruno Haible  <bruno@clisp.org>
30370
30371         Work around a *printf bug with %ls on Solaris.
30372         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30373         precision is specified, sprintf stops converting the wide string
30374         argument when the number of bytes that have been produced by this
30375         conversion equals or exceeds the precision.
30376         * doc/posix-functions/fprintf.texi: Update.
30377         * doc/posix-functions/printf.texi: Update.
30378         * doc/posix-functions/snprintf.texi: Update.
30379         * doc/posix-functions/sprintf.texi: Update.
30380         * doc/posix-functions/vfprintf.texi: Update.
30381         * doc/posix-functions/vprintf.texi: Update.
30382         * doc/posix-functions/vsnprintf.texi: Update.
30383         * doc/posix-functions/vsprintf.texi: Update.
30384         * doc/glibc-functions/obstack_printf.texi: Update.
30385         * doc/glibc-functions/obstack_vprintf.texi: Update.
30386
30387 2009-02-26  Eric Blake  <ebb9@byu.net>
30388
30389         stdlib: favor compiler check of random.h
30390         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30391         to avoid an ObjC random.h installed by Swarm.
30392
30393 2009-02-26  Bruno Haible  <bruno@clisp.org>
30394
30395         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30396         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30397         Reported by Gary V. Vaughan <gary@gnu.org>.
30398
30399 2009-02-26  Bruno Haible  <bruno@clisp.org>
30400
30401         Fix *printf behaviour regarding the %ls directive.
30402         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30403         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30404         NEED_PRINTF_DIRECTIVE_LS.
30405         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30406         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30407         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30408         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30409         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30410         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30411         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30416         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30417         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30418         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30419         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30420         * doc/posix-functions/fprintf.texi: Update.
30421         * doc/posix-functions/printf.texi: Update.
30422         * doc/posix-functions/snprintf.texi: Update.
30423         * doc/posix-functions/sprintf.texi: Update.
30424         * doc/posix-functions/vfprintf.texi: Update.
30425         * doc/posix-functions/vprintf.texi: Update.
30426         * doc/posix-functions/vsnprintf.texi: Update.
30427         * doc/posix-functions/vsprintf.texi: Update.
30428         * doc/glibc-functions/obstack_printf.texi: Update.
30429         * doc/glibc-functions/obstack_vprintf.texi: Update.
30430         Reported by Eric Blake.
30431
30432 2009-02-25  Bruno Haible  <bruno@clisp.org>
30433
30434         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30435         with known value.
30436         Reported by Gary V. Vaughan <gary@gnu.org>.
30437
30438 2009-02-25  Bruno Haible  <bruno@clisp.org>
30439
30440         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30441         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30442         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30443         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30444         Reported by Gary V. Vaughan <gary@gnu.org>.
30445
30446 2009-02-25  Bruno Haible  <bruno@clisp.org>
30447
30448         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30449         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30450         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30451         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30452         Reported by Gary V. Vaughan <gary@gnu.org>.
30453
30454 2009-02-25  Eric Blake  <ebb9@byu.net>
30455
30456         tests: skip fseek/ftell tests if ungetc is broken
30457         * m4/ungetc.m4: New file.
30458         * modules/fseek-tests: Split test, so ungetc dependency is
30459         separate from rest of test.
30460         * modules/fseeko-tests: Likewise.
30461         * modules/ftell-tests: Likewise.
30462         * modules/ftello-tests: Likewise.
30463         * tests/test-fseek.c (main): Isolate ungetc dependency.
30464         * tests/test-fseeko.c (main): Likewise.
30465         * tests/test-ftell.c (main): Likewise.
30466         * tests/test-ftello.c (main): Likewise.
30467         * tests/test-fseek2.sh: New file.
30468         * tests/test-fseeko2.sh: Likewise.
30469         * tests/test-ftell2.sh: Likewise.
30470         * tests/test-ftello2.sh: Likewise.
30471
30472 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
30473
30474         test-getaddrinfo: fix usage of skip return code 77
30475         * tests/test-gettaddrinfo.c: Return skip code 77 only
30476         for first occurance of skip (4x77 is not 77)
30477
30478 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30479
30480         strtod: avoid C99 decl-after-statement
30481         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30482
30483 2009-02-24  Eric Blake  <ebb9@byu.net>
30484
30485         strtod: detect HP-UX 11.31 bug
30486         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30487         Reported by Gary V. Vaughan.
30488
30489 2009-02-23  Bruno Haible  <bruno@clisp.org>
30490
30491         Fix invalid read past end of memory block.
30492         * lib/vasnprintf.c (DCHAR_SET): Define.
30493         (local_wcslen): Define only when needed.
30494         (local_strnlen, local_wcsnlen): New functions.
30495         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30496         directives that involve a conversion ourselves.
30497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30498         wcsnlen, mbrtowc, wcrtomb.
30499         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30500         * tests/test-vasprintf-posix.c (test_function): Likewise.
30501         * tests/test-snprintf-posix.h (test_function): Likewise.
30502         * tests/test-sprintf-posix.h (test_function): Likewise.
30503         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30504
30505 2009-02-22  Bruno Haible  <bruno@clisp.org>
30506
30507         Implement new clarified decomposition of Hangul syllables.
30508         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30509         of type LTV, return only a pairwise decomposition.
30510         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30511         Likewise.
30512         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30513         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30514         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30515
30516 2009-02-22  Bruno Haible  <bruno@clisp.org>
30517
30518         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30519         zero-length results and shrink excess allocated memory.
30520         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30521         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30522         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30523         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30524         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30525         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30526         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30527         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30528         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30529         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30530         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30531         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30532
30533 2009-02-21  Bruno Haible  <bruno@clisp.org>
30534
30535         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30536         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30537         spaces after a period. Put a space between a macro name and its
30538         argument list. Trivial rewordings.
30539         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30540         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30541         (main): Return 0 explicitly.
30542
30543 2009-02-21  Bruno Haible  <bruno@clisp.org>
30544
30545         Tests for module 'uninorm/filter'.
30546         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30547         * modules/uninorm/filter-tests: New file.
30548
30549         New module 'uninorm/filter'.
30550         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30551         uninorm_filter_flush, uninorm_filter_free): New declarations.
30552         * lib/uninorm/uninorm-filter.c: New file.
30553         * modules/uninorm/filter: New file.
30554
30555 2009-02-21  Bruno Haible  <bruno@clisp.org>
30556
30557         Tests for module 'uninorm/nfkc'.
30558         * tests/uninorm/test-nfkc.c: New file.
30559         * tests/uninorm/test-u8-nfkc.c: New file.
30560         * tests/uninorm/test-u16-nfkc.c: New file.
30561         * tests/uninorm/test-u32-nfkc.c: New file.
30562         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30563         * tests/uninorm/test-u32-nfkc-big.c: New file.
30564         * modules/uninorm/nfkc-tests: New file.
30565
30566         New module 'uninorm/nfkc'.
30567         * lib/uninorm/nfkc.c: New file.
30568         * modules/uninorm/nfkc: New file.
30569
30570         Tests for module 'uninorm/nfkd'.
30571         * tests/uninorm/test-nfkd.c: New file.
30572         * tests/uninorm/test-u8-nfkd.c: New file.
30573         * tests/uninorm/test-u16-nfkd.c: New file.
30574         * tests/uninorm/test-u32-nfkd.c: New file.
30575         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30576         * tests/uninorm/test-u32-nfkd-big.c: New file.
30577         * modules/uninorm/nfkd-tests: New file.
30578
30579         New module 'uninorm/nfkd'.
30580         * lib/uninorm/nfkd.c: New file.
30581         * modules/uninorm/nfkd: New file.
30582
30583         Tests for module 'uninorm/nfc'.
30584         * tests/uninorm/test-nfc.c: New file.
30585         * tests/uninorm/test-u8-nfc.c: New file.
30586         * tests/uninorm/test-u16-nfc.c: New file.
30587         * tests/uninorm/test-u32-nfc.c: New file.
30588         * tests/uninorm/test-u32-nfc-big.sh: New file.
30589         * tests/uninorm/test-u32-nfc-big.c: New file.
30590         * modules/uninorm/nfc-tests: New file.
30591
30592         New module 'uninorm/nfc'.
30593         * lib/uninorm/nfc.c: New file.
30594         * modules/uninorm/nfc: New file.
30595
30596         Tests for module 'uninorm/nfd'.
30597         * tests/uninorm/test-nfd.c: New file.
30598         * tests/uninorm/test-u8-nfd.c: New file.
30599         * tests/uninorm/test-u16-nfd.c: New file.
30600         * tests/uninorm/test-u32-nfd.c: New file.
30601         * tests/uninorm/test-u32-nfd-big.sh: New file.
30602         * tests/uninorm/test-u32-nfd-big.c: New file.
30603         * tests/uninorm/test-u32-normalize-big.h: New file.
30604         * tests/uninorm/test-u32-normalize-big.c: New file.
30605         * tests/uninorm/NormalizationTest.txt: New file, created from
30606         Unicode 5.1.0 NormalizationTest.txt.
30607         * modules/uninorm/nfd-tests: New file.
30608
30609         New module 'uninorm/nfd'.
30610         * lib/uninorm/nfd.c: New file.
30611         * modules/uninorm/nfd: New file.
30612
30613         New module 'uninorm/u32-normalize'.
30614         * lib/uninorm/u32-normalize.c: New file.
30615         * modules/uninorm/u32-normalize: New file.
30616
30617         New module 'uninorm/u16-normalize'.
30618         * lib/uninorm/u16-normalize.c: New file.
30619         * modules/uninorm/u16-normalize: New file.
30620
30621         New module 'uninorm/u8-normalize'.
30622         * lib/uninorm/u8-normalize.c: New file.
30623         * lib/uninorm/normalize-internal.h: New file.
30624         * lib/uninorm/u-normalize-internal.h: New file.
30625         * modules/uninorm/u8-normalize: New file.
30626
30627         New module 'uninorm/decompose-internal'.
30628         * lib/uninorm/decompose-internal.c: New file.
30629         * modules/uninorm/decompose-internal: New file.
30630
30631         Tests for module 'uninorm/composition'.
30632         * tests/uninorm/test-composition.c: New file.
30633         * modules/uninorm/composition-tests: New file.
30634
30635         New module 'uninorm/composition'.
30636         * lib/uninorm/composition.c: New file.
30637         * lib/uninorm/composition-table.gperf: New file, generated by
30638         gen-uni-tables.
30639         * modules/uninorm/composition: New file.
30640
30641         Tests for module 'uninorm/compat-decomposition'.
30642         * tests/uninorm/test-compat-decomposition.c: New file.
30643         * modules/uninorm/compat-decomposition-tests: New file.
30644
30645         New module 'uninorm/compat-decomposition'.
30646         * lib/uninorm/decompose-internal.h: New file.
30647         * lib/uninorm/compat-decomposition.c: New file.
30648         * modules/uninorm/compat-decomposition: New file.
30649
30650         Tests for module 'uninorm/canonical-decomposition'.
30651         * tests/uninorm/test-canonical-decomposition.c: New file.
30652         * modules/uninorm/canonical-decomposition-tests: New file.
30653
30654         New module 'uninorm/canonical-decomposition'.
30655         * lib/uninorm/canonical-decomposition.c: New file.
30656         * modules/uninorm/canonical-decomposition: New file.
30657
30658         Tests for module 'uninorm/decomposition'.
30659         * tests/uninorm/test-decomposition.c: New file.
30660         * modules/uninorm/decomposition-tests: New file.
30661
30662         New module 'uninorm/decomposition'.
30663         * lib/uninorm/decomposition.c: New file.
30664         * modules/uninorm/decomposition: New file.
30665
30666         New module 'uninorm/decomposition-table'.
30667         * lib/uninorm/decomposition-table.h: New file.
30668         * lib/uninorm/decomposition-table.c: New file.
30669         * lib/uninorm/decomposition-table1.h: New file, generated by
30670         gen-uni-tables.
30671         * lib/uninorm/decomposition-table2.h: New file, generated by
30672         gen-uni-tables.
30673         * modules/uninorm/decomposition-table: New file.
30674
30675         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30676         (UC_DECOMP_*): New enumeration items.
30677         (get_decomposition): New function.
30678         (struct decomp_table): New type.
30679         (output_decomposition, output_decomposition_tables): New functions.
30680         (unicode_composition_exclusions): New variable.
30681         (fill_composition_exclusions, debug_output_composition_tables): New
30682         functions.
30683         (main): Accept one more argument. Invoke fill_composition_exclusions.
30684         Output decomposition and composition tables.
30685
30686         New module 'uninorm/base'.
30687         * lib/uninorm.h: New file.
30688         * lib/unictype.h: Update comment.
30689         * modules/uninorm/base: New file.
30690
30691 2009-02-21  David Lutterkort  <lutter@redhat.com>
30692
30693         Tests for module 'safe-alloc'.
30694         * tests/test-safe-alloc.c: New file.
30695         * modules/safe-alloc-tests: New file.
30696
30697         New module 'safe-alloc'.
30698         * lib/safe-alloc.h: New file.
30699         * lib/safe-alloc.c: New file.
30700         * m4/safe-alloc.m4: New file.
30701         * modules/safe-alloc: New file.
30702         * doc/safe-alloc.texi: New file.
30703         * doc/gnulib.texi: Include it.
30704         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30705         safe-alloc.
30706
30707 2009-02-18  Bruno Haible  <bruno@clisp.org>
30708
30709         Fix link error on non-glibc systems.
30710         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30711         variable.
30712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30713
30714 2009-02-18  Jim Meyering  <meyering@redhat.com>
30715
30716         fts: avoid used-uninitialized error due to recent change
30717         * lib/fts.c (fts_read): Guard uses of the new member,
30718         parent->fts_n_dirs_remaining, since it's not relevant for
30719         the parent of a directory specified on the command-line.
30720
30721 2009-02-17  James Youngman  <jay@gnu.org>
30722             Bruno Haible  <bruno@clisp.org>
30723
30724         * m4/include_next.m4: Reformulate comment.
30725
30726 2009-02-16  Jim Meyering  <meyering@redhat.com>
30727
30728         fts: add #if guards so that the fts_lgpl module still builds
30729         * lib/fts.c: Guard just-added hash-table-using parts with
30730         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30731         Reported by Simon Josefsson.
30732
30733 2009-02-15  Bruno Haible  <bruno@clisp.org>
30734
30735         * modules/array-mergesort-tests: New file.
30736         * tests/test-array-mergesort.c: New file.
30737
30738         New module 'array-mergesort'.
30739         * modules/array-mergesort: New file.
30740         * lib/array-mergesort.h: New file.
30741
30742 2009-02-15  Bruno Haible  <bruno@clisp.org>
30743
30744         Fix 2009-02-07 commit.
30745         * lib/gen-uni-tables.c (output_predicate, output_category,
30746         output_combclass, output_bidi_category, output_decimal_digit,
30747         output_digit, output_numeric, output_mirror, output_scripts,
30748         output_ident_category, output_simple_mapping): Fix format directives.
30749         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30750
30751 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30752
30753         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30754         fixes are available from IBM.
30755
30756 2009-02-13  Jim Meyering  <meyering@redhat.com>
30757
30758         fts: arrange not to stat non-directories in more cases
30759         This makes GNU find (when it doesn't need to stat each file)
30760         *much* more efficient at traversing reiserfs file systems.
30761         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30762         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30763         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30764         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30765         (leaf_optimization_applies): New function.
30766         (LCO_hash, LCO_compare): New helper functions.
30767         (link_count_optimize_ok): New function.
30768         (fts_stat): Initialize new member (if dir).
30769         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30770         we've just stat'ed a directory.  Skip the stat call when possible.
30771         ---
30772         Note this AFS-related exchange:
30773         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30774         and note find's pioctl call in find/fstype.c.
30775         But that is necessary only if you want to enable the
30776         optimization for AFS, and for now, I don't.
30777
30778         fts: move a function definition "up" (no semantic change)
30779         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30780         "up" to precede upcoming use of a related function.
30781
30782 2009-02-11  Jim Meyering  <meyering@redhat.com>
30783
30784         fts: correct internal computation of nlinks (optimization-related)
30785         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30786         whether the current entry is a directory, so don't test it.
30787
30788 2009-02-10  Bruno Haible  <bruno@clisp.org>
30789
30790         Tests for module 'uniwbrk/ulc-wordbreaks'.
30791         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30792         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30793         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30794
30795         Tests for module 'uniwbrk/u32-wordbreaks'.
30796         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30797         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30798
30799         Tests for module 'uniwbrk/u16-wordbreaks'.
30800         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30801         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30802
30803         Tests for module 'uniwbrk/u8-wordbreaks'.
30804         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30805         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30806
30807 2009-02-10  Bruno Haible  <bruno@clisp.org>
30808
30809         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30810         property.
30811         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30812         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30813         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30814
30815 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30816
30817         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30818         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30819
30820 2009-02-10  Bruno Haible  <bruno@clisp.org>
30821
30822         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30823         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30824         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30825         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30826         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30827         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30828
30829 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30830
30831         * lib/sockets.h (gl_fd_to_handle): New function.
30832
30833         * tests/test-sockets.c: Call gl_fd_to_handle.
30834
30835 2009-02-09  Bruno Haible  <bruno@clisp.org>
30836
30837         * doc/havelib.texi: Document the conventions on bi-arch systems.
30838
30839 2009-02-08  Bruno Haible  <bruno@clisp.org>
30840
30841         Document the AC_LIB_LINKFLAGS macro.
30842         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30843         * doc/gnulib.texi: Include it.
30844
30845 2009-02-08  Bruno Haible  <bruno@clisp.org>
30846
30847         Fix wrong order of sections, compared to TOC.
30848         * doc/gnulib.texi: Include relocatable-maint.texi after the
30849         "Regular expressions" node, not before.
30850
30851 2009-02-08  Bruno Haible  <bruno@clisp.org>
30852
30853         Tests for module 'unicase/totitle'.
30854         * modules/unicase/totitle-tests: New file.
30855
30856         Tests for module 'unicase/tolower'.
30857         * modules/unicase/tolower-tests: New file.
30858
30859         Tests for module 'unicase/toupper'.
30860         * modules/unicase/toupper-tests: New file.
30861         * tests/unicase/test-mapping-part1.h: New file.
30862         * tests/unicase/test-mapping-part2.h: New file.
30863
30864         New module 'unicase/totitle'.
30865         * modules/unicase/totitle: New file.
30866         * lib/unicase/totitle.c: New file.
30867
30868         New module 'unicase/tolower'.
30869         * modules/unicase/tolower: New file.
30870         * lib/unicase/tolower.c: New file.
30871
30872         New module 'unicase/toupper'.
30873         * modules/unicase/toupper: New file.
30874         * lib/unicase/toupper.c: New file.
30875         * lib/unicase/simple-mapping.h: New file.
30876
30877         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30878         (mapping_table): New structure.
30879         (output_simple_mapping): New function.
30880         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30881         * modules/gen-uni-tables (Description): Update.
30882         * lib/unicase/toupper.h: New file, automatically generated by
30883         gen-uni-tables.
30884         * lib/unicase/tolower.h: New file, automatically generated by
30885         gen-uni-tables.
30886         * lib/unicase/totitle.h: New file, automatically generated by
30887         gen-uni-tables.
30888         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30889         gen-uni-tables.
30890         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30891         gen-uni-tables.
30892         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30893         gen-uni-tables.
30894
30895         New module 'unicase/base'.
30896         * modules/unicase/base: New file.
30897         * lib/unicase.h: New file.
30898
30899 2009-02-08  Bruno Haible  <bruno@clisp.org>
30900
30901         New module 'uniwbrk/ulc-wordbreaks'.
30902         * modules/uniwbrk/ulc-wordbreaks: New file.
30903         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30904
30905         New module 'uniwbrk/u32-wordbreaks'.
30906         * modules/uniwbrk/u32-wordbreaks: New file.
30907         * lib/uniwbrk/u32-wordbreaks.c: New file.
30908
30909         New module 'uniwbrk/u16-wordbreaks'.
30910         * modules/uniwbrk/u16-wordbreaks: New file.
30911         * lib/uniwbrk/u16-wordbreaks.c: New file.
30912
30913         New module 'uniwbrk/u8-wordbreaks'.
30914         * modules/uniwbrk/u8-wordbreaks: New file.
30915         * lib/uniwbrk/u8-wordbreaks.c: New file.
30916         * lib/uniwbrk/u-wordbreaks.h: New file.
30917
30918         New module 'uniwbrk/table'.
30919         * modules/uniwbrk/table: New file.
30920         * lib/uniwbrk/wbrktable.h: New file.
30921         * lib/uniwbrk/wbrktable.c: New file.
30922
30923         New module 'uniwbrk/wordbreak-property'.
30924         * modules/uniwbrk/wordbreak-property: New file.
30925         * lib/uniwbrk/wordbreak-property.c: New file.
30926
30927         * lib/gen-uni-tables.c (WBP_*): New enum items.
30928         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30929         (unicode_org_wbp): New variable.
30930         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30931         New functions.
30932         (wbp_table): New structure.
30933         (output_wbp, output_wbrk_tables): New functions.
30934         (main): Accept additional argument. Invoke fill_org_wbp,
30935         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30936         output_wbrk_tables.
30937         * modules/gen-uni-tables (Description): Update.
30938         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30939         gen-uni-tables.
30940
30941         New module 'uniwbrk/base'.
30942         * modules/uniwbrk/base: New file.
30943         * lib/uniwbrk.h: New file.
30944
30945 2009-02-08  Bruno Haible  <bruno@clisp.org>
30946
30947         Update to Unicode 5.1.0.
30948         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30949         U+2185..U+2188.
30950         (is_property_default_ignorable_code_point): Don't include characters
30951         of category Cc or Cs and not-a-characters.
30952         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30953         U+0D79, U+109E, U+109F, U+A60C.
30954         * lib/unictype/bidi_of.h: Regenerated.
30955         * lib/unictype/blocks.h: Regenerated.
30956         * lib/unictype/categ_C.h: Regenerated.
30957         * lib/unictype/categ_Cf.h: Regenerated.
30958         * lib/unictype/categ_Cn.h: Regenerated.
30959         * lib/unictype/categ_L.h: Regenerated.
30960         * lib/unictype/categ_Ll.h: Regenerated.
30961         * lib/unictype/categ_Lm.h: Regenerated.
30962         * lib/unictype/categ_Lo.h: Regenerated.
30963         * lib/unictype/categ_Lu.h: Regenerated.
30964         * lib/unictype/categ_M.h: Regenerated.
30965         * lib/unictype/categ_Mc.h: Regenerated.
30966         * lib/unictype/categ_Me.h: Regenerated.
30967         * lib/unictype/categ_Mn.h: Regenerated.
30968         * lib/unictype/categ_N.h: Regenerated.
30969         * lib/unictype/categ_Nd.h: Regenerated.
30970         * lib/unictype/categ_Nl.h: Regenerated.
30971         * lib/unictype/categ_No.h: Regenerated.
30972         * lib/unictype/categ_P.h: Regenerated.
30973         * lib/unictype/categ_Pd.h: Regenerated.
30974         * lib/unictype/categ_Pe.h: Regenerated.
30975         * lib/unictype/categ_Pf.h: Regenerated.
30976         * lib/unictype/categ_Pi.h: Regenerated.
30977         * lib/unictype/categ_Po.h: Regenerated.
30978         * lib/unictype/categ_Ps.h: Regenerated.
30979         * lib/unictype/categ_S.h: Regenerated.
30980         * lib/unictype/categ_Sk.h: Regenerated.
30981         * lib/unictype/categ_Sm.h: Regenerated.
30982         * lib/unictype/categ_So.h: Regenerated.
30983         * lib/unictype/categ_of.h: Regenerated.
30984         * lib/unictype/combining.h: Regenerated.
30985         * lib/unictype/ctype_alnum.h: Regenerated.
30986         * lib/unictype/ctype_alpha.h: Regenerated.
30987         * lib/unictype/ctype_graph.h: Regenerated.
30988         * lib/unictype/ctype_lower.h: Regenerated.
30989         * lib/unictype/ctype_print.h: Regenerated.
30990         * lib/unictype/ctype_punct.h: Regenerated.
30991         * lib/unictype/ctype_upper.h: Regenerated.
30992         * lib/unictype/decdigit.h: Regenerated.
30993         * lib/unictype/digit.h: Regenerated.
30994         * lib/unictype/mirror.h: Regenerated.
30995         * lib/unictype/numeric.h: Regenerated.
30996         * lib/unictype/pr_alphabetic.h: Regenerated.
30997         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
30998         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
30999         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31000         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31001         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31002         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31003         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31004         * lib/unictype/pr_combining.h: Regenerated.
31005         * lib/unictype/pr_dash.h: Regenerated.
31006         * lib/unictype/pr_decimal_digit.h: Regenerated.
31007         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31008         * lib/unictype/pr_deprecated.h: Regenerated.
31009         * lib/unictype/pr_diacritic.h: Regenerated.
31010         * lib/unictype/pr_extender.h: Regenerated.
31011         * lib/unictype/pr_format_control.h: Regenerated.
31012         * lib/unictype/pr_grapheme_base.h: Regenerated.
31013         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31014         * lib/unictype/pr_grapheme_link.h: Regenerated.
31015         * lib/unictype/pr_id_continue.h: Regenerated.
31016         * lib/unictype/pr_id_start.h: Regenerated.
31017         * lib/unictype/pr_ideographic.h: Regenerated.
31018         * lib/unictype/pr_ignorable_control.h: Regenerated.
31019         * lib/unictype/pr_lowercase.h: Regenerated.
31020         * lib/unictype/pr_math.h: Regenerated.
31021         * lib/unictype/pr_numeric.h: Regenerated.
31022         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31023         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31024         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31025         * lib/unictype/pr_other_id_continue.h: Regenerated.
31026         * lib/unictype/pr_other_lowercase.h: Regenerated.
31027         * lib/unictype/pr_other_math.h: Regenerated.
31028         * lib/unictype/pr_punctuation.h: Regenerated.
31029         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31030         * lib/unictype/pr_soft_dotted.h: Regenerated.
31031         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31032         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31033         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31034         * lib/unictype/pr_uppercase.h: Regenerated.
31035         * lib/unictype/pr_xid_continue.h: Regenerated.
31036         * lib/unictype/pr_xid_start.h: Regenerated.
31037         * lib/unictype/pr_zero_width.h: Regenerated.
31038         * lib/unictype/scripts.h: Regenerated.
31039         * lib/unictype/scripts_byname.gperf: Regenerated.
31040         * lib/unictype/sy_java_ident.h: Regenerated.
31041         * lib/unilbrk/lbrkprop1.h: Regenerated.
31042         * lib/unilbrk/lbrkprop2.h: Regenerated.
31043         * tests/unictype/test-categ_C.c: Regenerated.
31044         * tests/unictype/test-categ_Cf.c: Regenerated.
31045         * tests/unictype/test-categ_Cn.c: Regenerated.
31046         * tests/unictype/test-categ_L.c: Regenerated.
31047         * tests/unictype/test-categ_Ll.c: Regenerated.
31048         * tests/unictype/test-categ_Lm.c: Regenerated.
31049         * tests/unictype/test-categ_Lo.c: Regenerated.
31050         * tests/unictype/test-categ_Lu.c: Regenerated.
31051         * tests/unictype/test-categ_M.c: Regenerated.
31052         * tests/unictype/test-categ_Mc.c: Regenerated.
31053         * tests/unictype/test-categ_Me.c: Regenerated.
31054         * tests/unictype/test-categ_Mn.c: Regenerated.
31055         * tests/unictype/test-categ_N.c: Regenerated.
31056         * tests/unictype/test-categ_Nd.c: Regenerated.
31057         * tests/unictype/test-categ_Nl.c: Regenerated.
31058         * tests/unictype/test-categ_No.c: Regenerated.
31059         * tests/unictype/test-categ_P.c: Regenerated.
31060         * tests/unictype/test-categ_Pd.c: Regenerated.
31061         * tests/unictype/test-categ_Pe.c: Regenerated.
31062         * tests/unictype/test-categ_Pf.c: Regenerated.
31063         * tests/unictype/test-categ_Pi.c: Regenerated.
31064         * tests/unictype/test-categ_Po.c: Regenerated.
31065         * tests/unictype/test-categ_Ps.c: Regenerated.
31066         * tests/unictype/test-categ_S.c: Regenerated.
31067         * tests/unictype/test-categ_Sk.c: Regenerated.
31068         * tests/unictype/test-categ_Sm.c: Regenerated.
31069         * tests/unictype/test-categ_So.c: Regenerated.
31070         * tests/unictype/test-ctype_alnum.c: Regenerated.
31071         * tests/unictype/test-ctype_alpha.c: Regenerated.
31072         * tests/unictype/test-ctype_graph.c: Regenerated.
31073         * tests/unictype/test-ctype_lower.c: Regenerated.
31074         * tests/unictype/test-ctype_print.c: Regenerated.
31075         * tests/unictype/test-ctype_punct.c: Regenerated.
31076         * tests/unictype/test-ctype_upper.c: Regenerated.
31077         * tests/unictype/test-decdigit.h: Regenerated.
31078         * tests/unictype/test-digit.h: Regenerated.
31079         * tests/unictype/test-numeric.h: Regenerated.
31080         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31081         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31082         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31083         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31084         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31085         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31086         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31087         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31088         * tests/unictype/test-pr_combining.c: Regenerated.
31089         * tests/unictype/test-pr_dash.c: Regenerated.
31090         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31091         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31092         * tests/unictype/test-pr_deprecated.c: Regenerated.
31093         * tests/unictype/test-pr_diacritic.c: Regenerated.
31094         * tests/unictype/test-pr_extender.c: Regenerated.
31095         * tests/unictype/test-pr_format_control.c: Regenerated.
31096         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31097         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31098         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31099         * tests/unictype/test-pr_id_continue.c: Regenerated.
31100         * tests/unictype/test-pr_id_start.c: Regenerated.
31101         * tests/unictype/test-pr_ideographic.c: Regenerated.
31102         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31103         * tests/unictype/test-pr_lowercase.c: Regenerated.
31104         * tests/unictype/test-pr_math.c: Regenerated.
31105         * tests/unictype/test-pr_numeric.c: Regenerated.
31106         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31107         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31108         Regenerated.
31109         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31110         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31111         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31112         * tests/unictype/test-pr_other_math.c: Regenerated.
31113         * tests/unictype/test-pr_punctuation.c: Regenerated.
31114         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31115         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31116         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31117         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31118         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31119         * tests/unictype/test-pr_uppercase.c: Regenerated.
31120         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31121         * tests/unictype/test-pr_xid_start.c: Regenerated.
31122         * tests/unictype/test-pr_zero_width.c: Regenerated.
31123
31124         Update to Unicode 5.1.0.
31125         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31126         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31127         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31128         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31129         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31130         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31131         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31132         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31133         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31134         (nonspacing_table_ind): Update.
31135         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31136
31137         Update to Unicode 5.1.0.
31138         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31139         code transform.
31140         * lib/uniname/uniname.c (unicode_character_name,
31141         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31142         * lib/uniname/uninames.h: Regenerated.
31143         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31144
31145 2009-02-07  Bruno Haible  <bruno@clisp.org>
31146
31147         Merge gen-ctype and gen-lbrk into a single program.
31148         * lib/gen-uni-tables.c: New file, incorporating
31149         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31150         Add directory prefixes to the names of the generated files.
31151         * lib/unictype/gen-ctype.c: Remove file.
31152         * lib/unilbrk/gen-lbrk.c: Remove file.
31153         * modules/gen-uni-tables: New file.
31154         * modules/unictype/gen-ctype: Remove file.
31155         * modules/unilbrk/gen-lbrk: Remove file.
31156
31157 2009-02-07  Bruno Haible  <bruno@clisp.org>
31158
31159         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31160
31161         New module 'unistr/u32-strcoll'.
31162         * modules/unistr/u32-strcoll: New file.
31163         * lib/unistr/u32-strcoll.c: New file.
31164
31165         New module 'unistr/u16-strcoll'.
31166         * modules/unistr/u16-strcoll: New file.
31167         * lib/unistr/u16-strcoll.c: New file.
31168
31169         New module 'unistr/u8-strcoll'.
31170         * modules/unistr/u8-strcoll: New file.
31171         * lib/unistr/u8-strcoll.c: New file.
31172         * lib/unistr/u-strcoll.h: New file.
31173
31174 2009-02-07  Bruno Haible  <bruno@clisp.org>
31175
31176         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31177         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31178         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31179         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31180         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31181         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31182
31183 2009-02-07  Bruno Haible  <bruno@clisp.org>
31184
31185         Make 64-bit clean.
31186         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31187         output_combclass, output_bidi_category, output_decimal_digit,
31188         output_digit, output_numeric, output_mirror, output_scripts,
31189         output_ident_category): Use proper width specifier in format strings.
31190
31191 2009-02-07  Bruno Haible  <bruno@clisp.org>
31192
31193         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31194         failure behaviour.
31195
31196 2009-02-07  Jim Meyering  <meyering@redhat.com>
31197
31198         regex: avoid compilation failure with upcoming gcc-4.4
31199         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31200         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31201         "... error: integer overflow in preprocessor expression".
31202
31203 2009-02-05  Ben Pfaff  <blp@gnu.org>
31204
31205         Fix link errors on Windows when close module is used.
31206         * modules/close: Add $(LIB_CLOSE) to Link section.
31207         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31208         $(LIB_CLOSE) on Windows.
31209
31210 2009-02-05  Jim Meyering  <meyering@redhat.com>
31211
31212         still avoid unused-parameter warnings, but do it cleanly
31213         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31214         (get_fs_usage): Cast to void instead.
31215         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31216         (dev_from_mount_options, read_file_system_list): Cast to void.
31217         Prompted by Bruno Haible.
31218
31219 2009-02-04  Jim Meyering  <meyering@redhat.com>
31220
31221         fsusage.c: correct copyright year
31222         * lib/fsusage.c: Reflect year in which the change is pushed into
31223
31224         avoid misc. warnings
31225         * lib/fsusage.c (UNUSED_PARAM): Define.
31226         (get_fs_usage): Mark parameter "disk" as unused.
31227         * lib/getugroups.c (getgrent): Use "void" in prototype.
31228         * lib/mountlist.c: Mark unused parameters.
31229         (read_file_system_list): Declare a local with "const".
31230         * lib/nanosleep.c (getnow): Declare static.
31231         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31232
31233         dirfd: set errno upon failure
31234         * lib/dirfd.c: Include <errno.h>.
31235         Set errno to ENOTSUP when returning -1.
31236         * modules/dirfd (Depends-on): Add errno.
31237         Suggested by John Kodis <kodis@comcast.net>.
31238
31239 2009-02-01  Bruno Haible  <bruno@clisp.org>
31240
31241         Don't assume sizeof (long) >= sizeof (void *).
31242         * lib/memcmp.c: Include stdint.h.
31243         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31244         srcp2 to 'const byte *'.
31245         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31246         types to uintptr_t.
31247         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31248         * modules/memcmp (Depends-on): Add stdint.
31249         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31250
31251 2009-01-30  Eric Blake  <ebb9@byu.net>
31252
31253         fix more require-before-expand issues
31254         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31255         expand, AC_PROG_AWK.
31256         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31257
31258 2009-01-28  Eric Blake  <ebb9@byu.net>
31259
31260         version-etc: use consistent URL formatting
31261         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31262         Improve formatting.  Use fputs for string without %.
31263
31264 2009-01-28  Jim Meyering  <meyering@redhat.com>
31265
31266         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31267         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31268         "underquoted definition of NAME" from autoconf-2.59.
31269
31270 2009-01-28  Bruno Haible  <bruno@clisp.org>
31271
31272         * doc/gnulib.texi: Add "Obsolete modules" to index.
31273
31274 2009-01-28  Jim Meyering  <meyering@redhat.com>
31275
31276         useless-if-before-free: recognize more variants
31277         * build-aux/useless-if-before-free: Also recognize e.g.,
31278         if (NULL != p) free (p);
31279
31280 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31281
31282         test-getaddrinfo: skip (don't fail) this test when there's no network
31283         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31284         on the presumption that it means you lack network access.
31285
31286 2009-01-26  Jim Meyering  <meyering@redhat.com>
31287
31288         fflush: avoid warnings on modern systems
31289         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31290         pos and result, into scopes where they're used.
31291
31292 2009-01-26  Eric Blake  <ebb9@byu.net>
31293
31294         Silence warning reintroduced by recent extensions patch.
31295         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31296         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31297         autoconf.
31298
31299         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31300         * m4/00gnulib.m4: New file.
31301         * gnulib-tool (func_get_filelist): Always use it.
31302         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31303         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31304
31305 2009-01-25  Bruno Haible  <bruno@clisp.org>
31306
31307         Make test-quotearg work on MacOS X and AIX.
31308         * tests/test-quotearg.sh: New file.
31309         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31310         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31311         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31312         include <libintl.h>.
31313         (fake_locale): Remove variable.
31314         (gettext, dgettext, dcgettext): Remove functions.
31315         (main): Instead of setting a fake locale, set a real locale. Call
31316         textdomain and bindtextdomain.
31317         * modules/quotearg-tests (Files): Add the new files.
31318         (Depends-on): Add gettext, setenv, unsetenv.
31319         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31320         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31321         Augment TESTS_ENVIRONMENT.
31322
31323 2009-01-25  Bruno Haible  <bruno@clisp.org>
31324
31325         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31326         fr_FR.ISO8859-1 locale on MacOS X.
31327         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31328         ja_JP.eucJP locale on MacOS X.
31329         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31330         zh_CN.GB18030 locale on MacOS X.
31331
31332 2009-01-25  Bruno Haible  <bruno@clisp.org>
31333
31334         Avoid link errors on MacOS X 10.3.
31335         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31336         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31337
31338 2009-01-25  Bruno Haible  <bruno@clisp.org>
31339
31340         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31341         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31342         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31343         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31344         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31345         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31346         posix_spawnattr_init, posix_spawnattr_setsigmask,
31347         posix_spawnattr_setflags, posix_spawnattr_destroy.
31348
31349         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31350         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31351         * modules/execute (Files): Remove m4/posix_spawn.m4.
31352         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31353         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31354         posix_spawnattr_init, posix_spawnattr_setsigmask,
31355         posix_spawnattr_setflags, posix_spawnattr_destroy.
31356
31357 2009-01-25  Bruno Haible  <bruno@clisp.org>
31358
31359         * lib/glthread/threadlib.c: Include <stdlib.h>.
31360
31361 2009-01-25  Bruno Haible  <bruno@clisp.org>
31362
31363         * lib/glthread/threadlib.c (dummy): New declaration.
31364
31365 2009-01-25  Bruno Haible  <bruno@clisp.org>
31366
31367         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31368         multibyte characters also for the GB18030 encoding. Don't crash when
31369         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31370
31371 2009-01-25  Bruno Haible  <bruno@clisp.org>
31372
31373         Avoid redefining 'struct random_data' on OSF/1 5.1.
31374         * lib/stdlib.in.h: Include <random.h> if it exists.
31375         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31376         HAVE_RANDOM_H. Include <random.h> when testing whether
31377         'struct random_data' exists.
31378         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31379
31380 2009-01-25  Bruno Haible  <bruno@clisp.org>
31381
31382         Don't install charset.alias on MacOS X >= 10.3.
31383         * lib/localcharset.c (DARWIN7): New macro.
31384         (get_charset_aliases): Hardcode the result for Darwin7.
31385         * modules/localcharset (install-exec-local): Don't install
31386         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31387
31388 2009-01-25  Bruno Haible  <bruno@clisp.org>
31389
31390         Don't install charset.alias on mingw and Cygwin.
31391         * modules/localcharset (install-exec-local): Don't install
31392         charset.alias on mingw and Cygwin, if the file does not yet exist.
31393         The result for these platforms is hardcoded in localcharset.c.
31394
31395 2009-01-25  Bruno Haible  <bruno@clisp.org>
31396
31397         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31398         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31399         before requiring AC_USE_SYSTEM_EXTENSIONS.
31400
31401 2009-01-25  Jim Meyering  <meyering@redhat.com>
31402
31403         c-strtod: avoid warnings
31404         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31405         "assignment discards qualifiers from pointer target type" warnings.
31406
31407 2009-01-24  Bruno Haible  <bruno@clisp.org>
31408
31409         Add support for non-UTF-8 locales on MacOS X.
31410         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31411         canonical encodings. For Darwin 7 and newer, don't map traditional
31412         encodings to UTF-8.
31413         Reported by Vincent Lefevre <vincent@vinc17.org>
31414         at <http://savannah.gnu.org/bugs/?25235>.
31415
31416 2009-01-24  Bruno Haible  <bruno@clisp.org>
31417
31418         * doc/gnulib.texi (Obsolete modules): New section.
31419         Reported by Mike Frysinger <vapier@gentoo.org>.
31420
31421 2009-01-24  Bruno Haible  <bruno@clisp.org>
31422
31423         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31424         (%.dvi): New rule.
31425
31426 2009-01-24  Bruno Haible  <bruno@clisp.org>
31427
31428         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31429         Reported by Eric Blake.
31430
31431 2009-01-24  Bruno Haible  <bruno@clisp.org>
31432
31433         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31434         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31435         Reported by Gary V. Vaughan <gary@gnu.org>.
31436
31437 2009-01-24  Bruno Haible  <bruno@clisp.org>
31438
31439         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31440
31441 2009-01-23  Bruno Haible  <bruno@clisp.org>
31442
31443         Make c-strtod, c-strtold usable in libraries.
31444         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31445         (C_STRTOD): Call strdup instead of xstrdup.
31446         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31447         * modules/c-strtold (Depends-on): Likewise.
31448         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31449         * NEWS: Mention the change.
31450         Reported by Michael Gold <mgold@ncf.ca>.
31451
31452 2009-01-23  Jim Meyering  <meyering@redhat.com>
31453
31454         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31455         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31456         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31457
31458 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31459
31460         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31461         GNU CoreUtils.
31462         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31463         * modules/version-etc (Description): Update.
31464
31465 2009-01-22  Bruno Haible  <bruno@clisp.org>
31466
31467         Cache the C locale object.
31468         * lib/c-strtod.c (c_locale_cache): New variable.
31469         (c_locale): New function.
31470         (C_STRTOD): Use it, and don't call freelocale.
31471         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31472         Suggested by Paolo Bonzini.
31473
31474 2009-01-21  Bruno Haible  <bruno@clisp.org>
31475
31476         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31477         conditions other than overflow.
31478
31479 2009-01-21  Bruno Haible  <bruno@clisp.org>
31480
31481         * lib/c-strtod.c: Include errno.h.
31482         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31483         value from STRTOD_L and STRTOD.
31484
31485 2009-01-21  Bruno Haible  <bruno@clisp.org>
31486         and Jim Meyering  <meyering@redhat.com>
31487
31488         nanosleep: skip configure test (fail it) for apple universal builds
31489         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31490         universal builds, assume that nanosleep does not work.
31491         * modules/nanosleep (Depends-on): Add multiarch.
31492
31493         mktime: skip configure test (fail it) for apple universal builds
31494         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31495         universal builds, assume that mktime does not work.
31496         * modules/mktime (Depends-on): Add multiarch.
31497
31498 2009-01-21  Eric Blake  <ebb9@byu.net>
31499
31500         multiarch: avoid expand-before-require warning
31501         * modules/multiarch (configure.ac): Require, rather than expand,
31502         gl_MULTIARCH.
31503         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31504         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31505         enforce that all clients require it.  Partial reversion of
31506         2008-12-29 patch.
31507
31508         error: avoid expand-before-require warning
31509         * modules/errno (configure.ac): Require, rather than expand,
31510         gl_HEADER_ERRNO_H.
31511         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31512         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31513         enforce that all clients require it.
31514
31515         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31516         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31517         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31518         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31519
31520 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31521
31522         Revert:
31523         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31524
31525         regex: do not depend on obsolete modules.
31526         * modules/regex: Remove memcmp and memmove.
31527
31528 2009-01-20  Bruno Haible  <bruno@clisp.org>
31529
31530         Make the 'link' module link on Windows NT 4.
31531         * lib/link.c (_WIN32_WINNT): Don't define.
31532         (CreateHardLinkFuncType): New type.
31533         (CreateHardLinkFunc, initialized): New variables.
31534         (initialize): New function.
31535         (link): Invoke CreateHardLink indirectly through the function pointer.
31536
31537 2009-01-20  Bruno Haible  <bruno@clisp.org>
31538
31539         Fix compilation failure on mingw.
31540         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31541
31542 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31543
31544         * doc/c-strtod.texi: Mention a couple of restrictions.
31545
31546 2009-01-20  Jim Meyering  <meyering@redhat.com>
31547
31548         gettimeofday: move more declarations out of functions
31549         * lib/gettimeofday.c: Move extern declarations of tzset and
31550         gmtime out of containing functions.  Prompted by Bruno Haible.
31551
31552 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31553
31554         regex: do not depend on obsolete modules.
31555         * modules/regex: Remove memcmp and memmove.
31556
31557 2009-01-19  Bruno Haible  <bruno@clisp.org>
31558
31559         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31560         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31561         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31562         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31563         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31564
31565 2009-01-19  Bruno Haible  <bruno@clisp.org>
31566
31567         * tests/test-link.c: Include <errno.h>.
31568         (main): Exit with code 77 when a hard link cannot be created due to
31569         the file system.
31570         * tests/test-link.sh: Skip test when a hard link cannot be created due
31571         to the file system.
31572         Suggested by Eric Blake.
31573
31574 2009-01-19  Martin Lambers  <marlam@marlam.de>
31575
31576         * modules/link-tests: New file.
31577         * tests/test-link.sh: New file.
31578         * tests/test-link.c: New file.
31579
31580 2009-01-19  Eric Blake  <ebb9@byu.net>
31581
31582         doc: mention another function added in cygwin 1.7.0
31583         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31584         Another new function in cygwin 1.7.
31585
31586 2009-01-19  Bruno Haible  <bruno@clisp.org>
31587
31588         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31589         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31590         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31591         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31592         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31593         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31594         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31595         * m4/md4.m4 (gl_MD4): Likewise.
31596         * m4/md5.m4 (gl_MD5): Likewise.
31597         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31598         * m4/sha1.m4 (gl_SHA1): Likewise.
31599         * m4/sha256.m4 (gl_SHA256): Likewise.
31600         * m4/sha512.m4 (gl_SHA512): Likewise.
31601
31602 2009-01-19  Bruno Haible  <bruno@clisp.org>
31603
31604         * modules/uniname/uniname-tests (Depends-on): Add progname.
31605         * tests/uniname/test-uninames.c: Include progname.h.
31606         (main): Call set_program_name.
31607
31608         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31609         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31610         (main): Call set_program_name.
31611
31612         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31613         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31614         (main): Call set_program_name.
31615
31616         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31617         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31618         (main): Call set_program_name.
31619
31620         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31621         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31622         (main): Call set_program_name.
31623
31624         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31625         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31626         (main): Call set_program_name.
31627
31628         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31629         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31630         (main): Call set_program_name.
31631
31632         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31633         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31634         (main): Call set_program_name.
31635
31636         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31637         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31638         (main): Call set_program_name.
31639
31640 2009-01-19  Eric Blake  <ebb9@byu.net>
31641
31642         test-unistd: test previous patch
31643         * tests/test-unistd.c: Test *_FILENO macros.
31644
31645         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31646         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31647         Guarantee a definition.
31648         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31649         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31650         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31651         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31652         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31653         Likewise.
31654         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31655         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31656         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31657         Likewise.
31658         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31659         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31660         (STDERR_FILENO): Likewise.
31661         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31662         (STDERR_FILENO): Likewise.
31663         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31664         (STDERR_FILENO): Likewise.
31665         Reported by Elbert Pol.
31666
31667 2009-01-19  Eric Blake  <ebb9@byu.net>
31668
31669         doc: mention more functions added in cygwin 1.7.0
31670         * doc/posix-functions/abort.texi (abort): Update wording related
31671         to cygwin.
31672         * doc/posix-functions/daylight.texi (daylight): Likewise.
31673         * doc/posix-functions/optarg.texi (optarg): Likewise.
31674         * doc/posix-functions/optarg.texi (opterr): Likewise.
31675         * doc/posix-functions/optarg.texi (optind): Likewise.
31676         * doc/posix-functions/optarg.texi (optopt): Likewise.
31677         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31678         worked in 1.5.x, and was withdrawn in 1.7.
31679         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31680         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31681         cygwin versions.
31682         * doc/posix-functions/perror.texi (perror): Likewise.
31683         * doc/posix-functions/printf.texi (printf): Likewise.
31684         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31685         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31686         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31687         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31688         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31689         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31690         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31691         Likewise.
31692         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31693         Likewise.
31694         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31695         this function.
31696         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31697         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31698         Likewise.
31699         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31700         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31701         * doc/posix-functions/confstr.texi (confstr): Likewise.
31702         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31703         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31704         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31705         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31706         * doc/posix-functions/fputws.texi (fputws): Likewise.
31707         * doc/posix-functions/fwide.texi (fwide): Likewise.
31708         * doc/posix-functions/getwc.texi (getwc): Likewise.
31709         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31710         * doc/posix-functions/putwc.texi (putwc): Likewise.
31711         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31712         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31713         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31714         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31715         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31716         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31717         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31718         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31719         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31720         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31721         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31722
31723 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31724
31725         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31726         * lib/ioctl.c: Include <sys/ioctl.h>.
31727
31728 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31729
31730         * modules/getdate-tests (Depends-on): Add progname.
31731         * tests/test-getdate.c: Use progname module, to avoid link errors
31732         on non-glibc systems.
31733
31734 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31735
31736         * modules/filenamecat-tests (Depends-on): Add progname.
31737         * modules/fstrcmp-tests (Depends-on): Likewise.
31738
31739         * tests/test-filenamecat.c: Use progname module, to avoid link
31740         errors on non-glibc systems.
31741         * tests/test-fstrcmp.c: Likewise.
31742
31743 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31744
31745         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31746         * lib/gettimeofday.c: Move extern declaration out of function.
31747
31748 2009-01-18  Bruno Haible  <bruno@clisp.org>
31749
31750         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31751         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31752         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31753
31754 2009-01-18  Bruno Haible  <bruno@clisp.org>
31755
31756         * lib/strftime.c (MEMPCPY): Remove unused macro.
31757         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31758
31759 2009-01-18  Martin Lambers  <marlam@marlam.de>
31760
31761         New module 'link'.
31762         * lib/unistd.in.h (link): New declaration.
31763         * lib/link.c: New file.
31764         * m4/link.m4: New file.
31765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31766         HAVE_LINK.
31767         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31768         * modules/link: New file.
31769         * doc/posix-functions/link.texi: Mention the new module.
31770
31771 2009-01-18  Bruno Haible  <bruno@clisp.org>
31772
31773         * tests/test-avltree_list.c (main): Call set_program_name.
31774         * tests/test-avltree_oset.c (main): Likewise.
31775         * tests/test-obstack-printf.c: Include progname.h.
31776         (main): Call set_program_name.
31777         * tests/test-quotearg.c: Include progname.h.
31778         (main): Call set_program_name.
31779         * tests/test-xmemdup0.c: Include progname.h.
31780         (main): Call set_program_name.
31781
31782 2009-01-18  Bruno Haible  <bruno@clisp.org>
31783
31784         New module 'alphasort'.
31785         * lib/dirent.in.h (alphasort): New declaration.
31786         * lib/alphasort.c: New file, from glibc with modifications.
31787         * m4/alphasort.m4: New file.
31788         * modules/alphasort: New file.
31789         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31790         HAVE_ALPHASORT.
31791         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31792         HAVE_ALPHASORT.
31793         * doc/posix-functions/alphasort.texi: Mention the new module and the
31794         portability problems.
31795
31796 2009-01-18  Bruno Haible  <bruno@clisp.org>
31797
31798         New module 'scandir'.
31799         * lib/dirent.in.h (scandir): New declaration.
31800         * lib/scandir.c: New file, from glibc with modifications.
31801         * m4/scandir.m4: New file.
31802         * modules/scandir: New file.
31803         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31804         HAVE_SCANDIR.
31805         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31806         HAVE_SCANDIR.
31807         * doc/posix-functions/scandir.texi: Mention the new module and the
31808         portability problems.
31809
31810 2009-01-17  Bruno Haible  <bruno@clisp.org>
31811
31812         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31813         Update documentation.
31814         (func_remove_suffix): Escape all dots in the suffix. Update
31815         documentation.
31816         (func_filter_filelist): Update documentation.
31817         Reported by Ralf Wildenhues.
31818
31819 2009-01-17  Bruno Haible  <bruno@clisp.org>
31820
31821         * modules/dprintf-posix-tests: New file.
31822         * tests/test-dprintf-posix.sh: New file.
31823         * tests/test-dprintf-posix.c: New file.
31824
31825         New modules 'dprintf', 'dprintf-posix'.
31826         * lib/stdio.in.h (dprintf): New declaration.
31827         * lib/dprintf.c: New file.
31828         * m4/dprintf.m4: New file.
31829         * m4/dprintf-posix.m4: New file.
31830         * modules/dprintf: New file.
31831         * modules/dprintf-posix: New file.
31832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31833         HAVE_DPRINTF, REPLACE_DPRINTF.
31834         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31835         HAVE_DPRINTF, REPLACE_DPRINTF.
31836         * doc/posix-functions/dprintf.texi: Mention the new modules.
31837
31838 2009-01-17  Bruno Haible  <bruno@clisp.org>
31839
31840         * modules/vdprintf-posix-tests: New file.
31841         * tests/test-vdprintf-posix.sh: New file.
31842         * tests/test-vdprintf-posix.c: New file.
31843
31844         New modules 'vdprintf', 'vdprintf-posix'.
31845         * lib/stdio.in.h (vdprintf): New declaration.
31846         * lib/vdprintf.c: New file.
31847         * m4/vdprintf.m4: New file.
31848         * m4/vdprintf-posix.m4: New file.
31849         * modules/vdprintf: New file.
31850         * modules/vdprintf-posix: New file.
31851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31852         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31853         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31854         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31855         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31856
31857 2009-01-17  Bruno Haible  <bruno@clisp.org>
31858
31859         Fix replacement of fopen on mingw.
31860         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31861         mingw.
31862
31863 2009-01-17  Bruno Haible  <bruno@clisp.org>
31864
31865         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31866         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31867
31868 2009-01-17  Bruno Haible  <bruno@clisp.org>
31869
31870         Avoid test-fflush2.sh failure on mingw.
31871         * tests/test-fflush2.c: Include binary-io.h.
31872         (main): Put standard input into binary mode.
31873         * modules/fflush-tests (Depends-on): Add binary-io.
31874
31875 2009-01-17  Bruno Haible  <bruno@clisp.org>
31876
31877         * lib/wchar.in.h: In another particular situation, include only the
31878         system's <wchar.h> file.
31879         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31880         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31881         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31882
31883 2009-01-17  Bruno Haible  <bruno@clisp.org>
31884
31885         Support for stripping executables in --enable-relocatable.
31886         * build-aux/install-reloc: Expect one more argument, or an environment
31887         variable RELOC_STRIP_PROG. If set, strip the destination program and
31888         its wrapper.
31889         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31890         RELOC_STRIP_PROG.
31891         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31892         to set RELOCATABLE_STRIP.
31893         * NEWS: Mention the new Makefile requirement.
31894
31895 2009-01-17  Bruno Haible  <bruno@clisp.org>
31896
31897         * build-aux/install-reloc: Remove debugging information left over by
31898         C compiler on MacOS X.
31899
31900 2009-01-17  Bruno Haible  <bruno@clisp.org>
31901
31902         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31903         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31904         _NSGetExecutablePath.
31905
31906 2009-01-16  Jim Meyering  <meyering@redhat.com>
31907
31908         strerror: avoid warnings about discarding "const"
31909         * lib/strerror.c (rpl_strerror): Instead of returning a const
31910         string from each and every "case", use a variable, and add a single
31911         cast after the switch.
31912
31913 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31914
31915         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31916
31917 2009-01-16  Bruno Haible  <bruno@clisp.org>
31918
31919         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31920         array initializer syntax that also works in C++ mode.
31921         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31922
31923 2009-01-16  Jim Meyering  <meyering@redhat.com>
31924
31925         poll: suppress a warning
31926         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31927         to ignore "...unsigned expression < 0 is always false" warnings.
31928
31929 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31930
31931         poll: remove declarations of unused variables
31932         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31933         sockbuf and optlen.
31934
31935 2009-01-15  Bruno Haible  <bruno@clisp.org>
31936
31937         Make fflush-after-ungetc POSIX compliant on BSD systems.
31938         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31939         (clear_ungetc_buffer): Implement also for other systems.
31940         (rpl_fflush): On glibc systems, invoke
31941         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31942         clear_ungetc_buffer after fetching the stream's position, not before.
31943
31944 2009-01-15  Bruno Haible  <bruno@clisp.org>
31945
31946         Make fflush-after-ungetc POSIX compliant on glibc systems.
31947         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31948         after ungetc.
31949         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31950         (rpl_fflush): On glibc systems, simply call the system's fflush
31951         function after clearing the ungetc buffer.
31952         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31953         Instead, lseek only to the end of file, then use the system's fseeko
31954         for the rest. On glibc systems, reset the EOF indicator bit.
31955
31956 2009-01-15  Jim Meyering  <meyering@redhat.com>
31957
31958         openmp.m4: revert quote-adding change, for portability to older autoconf
31959         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
31960         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
31961         Simon Josefsson noticed the problem when using autoconf-2.61.
31962
31963 2009-01-15  Bruno Haible  <bruno@clisp.org>
31964
31965         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
31966         * tests/test-fflush2.c (ASSERT): Always fail.
31967         (main): Add two tests for fflush() after ungetc(), taking into account
31968         the Austin Group's clarification.
31969         Suggested by Eric Blake.
31970
31971 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
31972
31973         mktime.m4: remove K&R-style function prototypes
31974         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
31975         for the Sun C++ compiler.
31976
31977 2009-01-14  Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
31980         while including <wchar.h>.
31981         * lib/wchar.in.h: In two particular situations on HP-UX, include only
31982         the system's <wchar.h> file.
31983         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31984
31985 2009-01-14  Bruno Haible  <bruno@clisp.org>
31986
31987         * m4/csharp.m4: Don't mention gettext on the serial number line.
31988         * m4/csharpexec.m4: Likewise.
31989         * m4/eaccess.m4: Likewise.
31990         * m4/javaexec.m4: Likewise.
31991         * m4/sig_atomic_t.m4: Likewise.
31992         * m4/tmpdir.m4: Likewise.
31993         * m4/intldir.m4: Bump gettext version.
31994         * m4/lib-ld.m4: Likewise.
31995
31996 2009-01-14  Bruno Haible  <bruno@clisp.org>
31997
31998         * lib/progname.c (set_program_name): Add more comments.
31999         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32000
32001 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32002
32003         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32004         were sys/stat.h does not define it.
32005
32006 2009-01-14  Jim Meyering  <meyering@redhat.com>
32007
32008         many *.m4 files: improve m4 quoting
32009         99% of this change was performed by running the following commands:
32010         git ls-files | grep '\.m4$' | xargs perl -pi \
32011           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32012           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32013           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32014           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32015         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32016         The remainder were to add Copyright dates, increment serial numbers,
32017         undo some changes in comments, exclude m4/intl.m4, and add quotes
32018         around the "1" in ",1" where the unusual spacing prohibited the
32019         above regexps from doing the job.  For more details, see
32020         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32021         * m4/acl.m4: Modified.
32022         * m4/afs.m4: Likewise.
32023         * m4/alloca.m4: Likewise.
32024         * m4/argp.m4: Likewise.
32025         * m4/argz.m4: Likewise.
32026         * m4/atexit.m4: Likewise.
32027         * m4/bison-i18n.m4: Likewise.
32028         * m4/bison.m4: Likewise.
32029         * m4/byteswap.m4: Likewise.
32030         * m4/c-stack.m4: Likewise.
32031         * m4/c-strtod.m4: Likewise.
32032         * m4/calloc.m4: Likewise.
32033         * m4/canonicalize-lgpl.m4: Likewise.
32034         * m4/chown.m4: Likewise.
32035         * m4/clock_time.m4: Likewise.
32036         * m4/codeset.m4: Likewise.
32037         * m4/copy-file.m4: Likewise.
32038         * m4/csharp.m4: Likewise.
32039         * m4/csharpcomp.m4: Likewise.
32040         * m4/csharpexec.m4: Likewise.
32041         * m4/d-ino.m4: Likewise.
32042         * m4/d-type.m4: Likewise.
32043         * m4/dirfd.m4: Likewise.
32044         * m4/double-slash-root.m4: Likewise.
32045         * m4/eaccess.m4: Likewise.
32046         * m4/eealloc.m4: Likewise.
32047         * m4/environ.m4: Likewise.
32048         * m4/errno_h.m4: Likewise.
32049         * m4/euidaccess.m4: Likewise.
32050         * m4/execute.m4: Likewise.
32051         * m4/fatal-signal.m4: Likewise.
32052         * m4/fchdir.m4: Likewise.
32053         * m4/fcntl_h.m4: Likewise.
32054         * m4/fileblocks.m4: Likewise.
32055         * m4/filenamecat.m4: Likewise.
32056         * m4/findprog.m4: Likewise.
32057         * m4/flexmember.m4: Likewise.
32058         * m4/fnmatch.m4: Likewise.
32059         * m4/fopen.m4: Likewise.
32060         * m4/fpending.m4: Likewise.
32061         * m4/fprintf-posix.m4: Likewise.
32062         * m4/free.m4: Likewise.
32063         * m4/frexp.m4: Likewise.
32064         * m4/frexpl.m4: Likewise.
32065         * m4/fsusage.m4: Likewise.
32066         * m4/ftruncate.m4: Likewise.
32067         * m4/gc-camellia.m4: Likewise.
32068         * m4/gc-random.m4: Likewise.
32069         * m4/gc.m4: Likewise.
32070         * m4/getaddrinfo.m4: Likewise.
32071         * m4/getcwd-abort-bug.m4: Likewise.
32072         * m4/getcwd-path-max.m4: Likewise.
32073         * m4/getdate.m4: Likewise.
32074         * m4/getdomainname.m4: Likewise.
32075         * m4/getgroups.m4: Likewise.
32076         * m4/gethostname.m4: Likewise.
32077         * m4/gethrxtime.m4: Likewise.
32078         * m4/getline.m4: Likewise.
32079         * m4/getloadavg.m4: Likewise.
32080         * m4/getndelim2.m4: Likewise.
32081         * m4/getpass.m4: Likewise.
32082         * m4/gettext.m4: Likewise.
32083         * m4/gettime.m4: Likewise.
32084         * m4/gettimeofday.m4: Likewise.
32085         * m4/gnulib-common.m4: Likewise.
32086         * m4/group-member.m4: Likewise.
32087         * m4/host-os.m4: Likewise.
32088         * m4/iconv.m4: Likewise.
32089         * m4/iconv_open.m4: Likewise.
32090         * m4/inet_ntop.m4: Likewise.
32091         * m4/inet_pton.m4: Likewise.
32092         * m4/inline.m4: Likewise.
32093         * m4/intldir.m4: Likewise.
32094         * m4/intlmacosx.m4: Likewise.
32095         * m4/intmax.m4: Likewise.
32096         * m4/intmax_t.m4: Likewise.
32097         * m4/inttypes.m4: Likewise.
32098         * m4/inttypes_h.m4: Likewise.
32099         * m4/inttypes-pri.m4: Likewise.
32100         * m4/isapipe.m4: Likewise.
32101         * m4/isnand.m4: Likewise.
32102         * m4/isnanf.m4: Likewise.
32103         * m4/isnanl.m4: Likewise.
32104         * m4/javacomp.m4: Likewise.
32105         * m4/javaexec.m4: Likewise.
32106         * m4/jm-winsz1.m4: Likewise.
32107         * m4/jm-winsz2.m4: Likewise.
32108         * m4/lchown.m4: Likewise.
32109         * m4/lcmessage.m4: Likewise.
32110         * m4/ldexpl.m4: Likewise.
32111         * m4/lib-ld.m4: Likewise.
32112         * m4/lib-link.m4: Likewise.
32113         * m4/libsigsegv.m4: Likewise.
32114         * m4/link-follow.m4: Likewise.
32115         * m4/localcharset.m4: Likewise.
32116         * m4/locale-fr.m4: Likewise.
32117         * m4/locale-ja.m4: Likewise.
32118         * m4/locale-tr.m4: Likewise.
32119         * m4/locale-zh.m4: Likewise.
32120         * m4/lock.m4: Likewise.
32121         * m4/longlong.m4: Likewise.
32122         * m4/ls-mntd-fs.m4: Likewise.
32123         * m4/lstat.m4: Likewise.
32124         * m4/malloc.m4: Likewise.
32125         * m4/mathl.m4: Likewise.
32126         * m4/mbrtowc.m4: Likewise.
32127         * m4/mbstate_t.m4: Likewise.
32128         * m4/mbswidth.m4: Likewise.
32129         * m4/memchr.m4: Likewise.
32130         * m4/memcmp.m4: Likewise.
32131         * m4/memcpy.m4: Likewise.
32132         * m4/memmem.m4: Likewise.
32133         * m4/memmove.m4: Likewise.
32134         * m4/mempcpy.m4: Likewise.
32135         * m4/memrchr.m4: Likewise.
32136         * m4/memset.m4: Likewise.
32137         * m4/minmax.m4: Likewise.
32138         * m4/mkdir-slash.m4: Likewise.
32139         * m4/mkdtemp.m4: Likewise.
32140         * m4/mktime.m4: Likewise.
32141         * m4/mmap-anon.m4: Likewise.
32142         * m4/mountlist.m4: Likewise.
32143         * m4/nanosleep.m4: Likewise.
32144         * m4/nls.m4: Likewise.
32145         * m4/nocrash.m4: Likewise.
32146         * m4/open.m4: Likewise.
32147         * m4/openat.m4: Likewise.
32148         * m4/openmp.m4: Likewise.
32149         * m4/pathmax.m4: Likewise.
32150         * m4/perl.m4: Likewise.
32151         * m4/physmem.m4: Likewise.
32152         * m4/pipe.m4: Likewise.
32153         * m4/po.m4: Likewise.
32154         * m4/poll.m4: Likewise.
32155         * m4/posixtm.m4: Likewise.
32156         * m4/posixver.m4: Likewise.
32157         * m4/printf-frexp.m4: Likewise.
32158         * m4/printf-frexpl.m4: Likewise.
32159         * m4/printf-posix.m4: Likewise.
32160         * m4/printf-posix-rpl.m4: Likewise.
32161         * m4/printf.m4: Likewise.
32162         * m4/progtest.m4: Likewise.
32163         * m4/putenv.m4: Likewise.
32164         * m4/readline.m4: Likewise.
32165         * m4/readlink.m4: Likewise.
32166         * m4/readutmp.m4: Likewise.
32167         * m4/realloc.m4: Likewise.
32168         * m4/regex.m4: Likewise.
32169         * m4/relocatable.m4: Likewise.
32170         * m4/relocatable-lib.m4: Likewise.
32171         * m4/rename-dest-slash.m4: Likewise.
32172         * m4/rename.m4: Likewise.
32173         * m4/rmdir-errno.m4: Likewise.
32174         * m4/rmdir.m4: Likewise.
32175         * m4/roundf.m4: Likewise.
32176         * m4/roundl.m4: Likewise.
32177         * m4/rpmatch.m4: Likewise.
32178         * m4/save-cwd.m4: Likewise.
32179         * m4/selinux-selinux-h.m4: Likewise.
32180         * m4/setenv.m4: Likewise.
32181         * m4/settime.m4: Likewise.
32182         * m4/sig2str.m4: Likewise.
32183         * m4/sig_atomic_t.m4: Likewise.
32184         * m4/signalblocking.m4: Likewise.
32185         * m4/signbit.m4: Likewise.
32186         * m4/sigpipe.m4: Likewise.
32187         * m4/sockets.m4: Likewise.
32188         * m4/sockpfaf.m4: Likewise.
32189         * m4/st_dm_mode.m4: Likewise.
32190         * m4/stat-time.m4: Likewise.
32191         * m4/stdbool.m4: Likewise.
32192         * m4/stdint.m4: Likewise.
32193         * m4/stdint_h.m4: Likewise.
32194         * m4/stpcpy.m4: Likewise.
32195         * m4/stpncpy.m4: Likewise.
32196         * m4/strcase.m4: Likewise.
32197         * m4/strchrnul.m4: Likewise.
32198         * m4/strcspn.m4: Likewise.
32199         * m4/strdup.m4: Likewise.
32200         * m4/strftime.m4: Likewise.
32201         * m4/strndup.m4: Likewise.
32202         * m4/strnlen.m4: Likewise.
32203         * m4/strpbrk.m4: Likewise.
32204         * m4/strptime.m4: Likewise.
32205         * m4/strsep.m4: Likewise.
32206         * m4/strtod.m4: Likewise.
32207         * m4/strtoimax.m4: Likewise.
32208         * m4/strtok_r.m4: Likewise.
32209         * m4/strtol.m4: Likewise.
32210         * m4/strtoll.m4: Likewise.
32211         * m4/strtoul.m4: Likewise.
32212         * m4/strtoull.m4: Likewise.
32213         * m4/strtoumax.m4: Likewise.
32214         * m4/strverscmp.m4: Likewise.
32215         * m4/threadlib.m4: Likewise.
32216         * m4/timegm.m4: Likewise.
32217         * m4/tm_gmtoff.m4: Likewise.
32218         * m4/tmpdir.m4: Likewise.
32219         * m4/tmpfile.m4: Likewise.
32220         * m4/tzset.m4: Likewise.
32221         * m4/uintmax_t.m4: Likewise.
32222         * m4/unlinkdir.m4: Likewise.
32223         * m4/unlocked-io.m4: Likewise.
32224         * m4/uptime.m4: Likewise.
32225         * m4/userspec.m4: Likewise.
32226         * m4/utimbuf.m4: Likewise.
32227         * m4/utime.m4: Likewise.
32228         * m4/utimes-null.m4: Likewise.
32229         * m4/utimes.m4: Likewise.
32230         * m4/vararrays.m4: Likewise.
32231         * m4/vasnprintf.m4: Likewise.
32232         * m4/vfprintf-posix.m4: Likewise.
32233         * m4/vprintf-posix.m4: Likewise.
32234         * m4/wait-process.m4: Likewise.
32235         * m4/wchar_t.m4: Likewise.
32236         * m4/wint_t.m4: Likewise.
32237         * m4/write-any-file.m4: Likewise.
32238         * m4/yield.m4: Likewise.
32239
32240 2009-01-13  Bruno Haible  <bruno@clisp.org>
32241
32242         Avoid test-copy-file.sh failures when ACL support insufficient.
32243         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32244         TESTS_ENVIRONMENT.
32245         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32246         Reported by Jim Meyering.
32247
32248 2009-01-13  Bruno Haible  <bruno@clisp.org>
32249
32250         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32251         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32252         * modules/unistdio/u8-printf-parse (Files): Likewise.
32253         * modules/unistdio/u32-printf-parse (Files): Likewise.
32254         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32255
32256 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32257
32258         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32259         and m4/inttypes_h.m4 too.
32260
32261 2009-01-12  Eric Blake  <ebb9@byu.net>
32262
32263         tests: IRIX 6.2 cc can't compile -0.0 into .data
32264         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32265         rather than at compile-time.
32266         * tests/test-floorl.c (minus_zero): Likewise.
32267         * tests/test-frexpl.c (minus_zero): Likewise.
32268         * tests/test-isnan.c (minus_zerol): Likewise.
32269         * tests/test-isnanl.h (minus_zero): Likewise.
32270         * tests/test-ldexpl.c (minus_zero): Likewise.
32271         * tests/test-roundl.c (minus_zero): Likewise.
32272         * tests/test-signbit.c (minus_zerol): Likewise.
32273         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32274         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32275         * tests/test-truncl.c (minus_zero): Likewise.
32276         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32277         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32278         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32279
32280 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32281
32282         regex: fix glibc bug 9697
32283         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32284         handling.
32285
32286 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32287
32288         regex: fix glibc bug 697
32289         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32290         being NULL also if there are no backreferences.
32291
32292 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32293
32294         regex: merge glibc changes
32295         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32296         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32297         re_string_skip_chars, re_string_reconstruct): Likewise.
32298         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32299
32300 2009-01-07  Jim Meyering  <meyering@redhat.com>
32301
32302         poll: filter through cppi
32303         * lib/poll.c: Indent cpp directives to reflect nesting.
32304
32305 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32306
32307         poll: don't return uninitialized
32308         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32309
32310 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32311
32312         avoid compile failure on AIX 6.1
32313         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32314         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32315
32316 2009-01-04  Jim Meyering  <meyering@redhat.com>
32317
32318         remove duplicate inclusion of <stdio.h>
32319         * tests/test-fprintf-posix.c: Likewise.
32320         * tests/test-printf-posix.c: Likewise.
32321         * tests/test-snprintf-posix.c: Likewise.
32322         * tests/test-sprintf-posix.c: Likewise.
32323         * tests/test-vasprintf-posix.c: Likewise.
32324         * tests/test-vfprintf-posix.c: Likewise.
32325         * tests/test-vprintf-posix.c: Likewise.
32326         * tests/test-vsnprintf-posix.c: Likewise.
32327         * tests/test-vsprintf-posix.c: Likewise.
32328
32329 2009-01-03  Jim Meyering  <meyering@redhat.com>
32330
32331         gnulib-tool: fix sed-based filtering
32332         * gnulib-tool (func_filter_filelist): Remove extra backslash
32333         in sed_fff_filter definition.
32334
32335 2009-01-02  Jim Meyering  <meyering@redhat.com>
32336
32337         strftime: avoid compilation failure on Solaris 2.6
32338         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32339         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32340         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32341         be available.  Reported by Tom G. Christensen.  Details in
32342         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32343
32344 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32345             Bruno Haible  <bruno@clisp.org>
32346
32347         Speed up gnulib-tool by doing more string processing through shell
32348         built-ins.
32349         * gnulib-tool (fast_func_append): New variable.
32350         (func_remove_prefix, func_remove_suffix): New functions.
32351         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32352         (func_filter_filelist): New function.
32353         (func_get_dependencies): Use func_remove_suffix instead of sed.
32354         (func_get_automake_snippet): Use func_filter_filelist instead of a
32355         subshell and sed invocation.
32356
32357 2009-01-01  Bruno Haible  <bruno@clisp.org>
32358
32359         Fix a security bug.
32360         * gnulib-tool (func_import, import, update): Don't allow the characters
32361         '"', '$', '`', '\' in macro arguments that become part of commands that
32362         are evaluated.
32363
32364 2009-01-01  Bruno Haible  <bruno@clisp.org>
32365
32366         * gnulib-tool (func_reset_sigpipe): Add more comments.
32367
32368 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32369
32370         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32371         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32372         already know the answer.
32373
32374 2009-01-01  Jim Meyering  <meyering@redhat.com>
32375
32376         * lib/version-etc.c (version_etc_va): Update copyright year.
32377
32378 2008-12-30  Bruno Haible  <bruno@clisp.org>
32379
32380         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32381         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32382         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32383
32384 2008-12-29  Eric Blake  <ebb9@byu.net>
32385
32386         multiarch: avoid autoconf AC_REQUIRE bug
32387         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32388         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32389         2.63 and older.
32390         Reported by Bruno Haible, and analyzed in
32391         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32392
32393 2008-12-29  Bruno Haible  <bruno@clisp.org>
32394
32395         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32396         files in subdirectories correctly.
32397         Reported by Ralf Wildenhues.
32398
32399 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32400
32401         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32402         rather than 'join FILE -', for Solaris join.
32403
32404 2008-12-29  Bruno Haible  <bruno@clisp.org>
32405
32406         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32407         quoting.
32408         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32409         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32410         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32411         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32412         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32413         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32414         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32415         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32416         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32417         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32418         * m4/nls.m4 (AM_NLS): Likewise.
32419         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32420         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32421         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32422         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32423         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32424         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32425         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32426         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32427         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32428         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32429         * m4/xsize.m4 (gl_XSIZE): Likewise.
32430         Suggested by Jim Meyering.
32431
32432 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32433
32434         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32435         * lib/parse-duration.c: use a switch instead of cascading if's.
32436
32437 2008-12-29  Eric Blake  <ebb9@byu.net>
32438
32439         wchar.h: supply WEOF on Irix 5.3
32440         * lib/wchar.in.h (wint_t): Also supply WEOF.
32441         * lib/wctype.in.h (wint_t): Likewise.
32442         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32443         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32444         Reported by Tom G. Christensen.
32445
32446 2008-12-26  Bruno Haible  <bruno@clisp.org>
32447
32448         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32449         i486, i586, i686.
32450
32451 2008-12-26  Bruno Haible  <bruno@clisp.org>
32452
32453         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32454
32455 2008-12-26  Bruno Haible  <bruno@clisp.org>
32456
32457         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32458         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32459         not __STDC_CONSTANT_MACROS.
32460         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32461
32462 2008-12-25  Bruno Haible  <bruno@clisp.org>
32463
32464         Add support for universal builds to vasnprintf.
32465         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32466         universal builds, guess no.
32467         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32468         * modules/vasprintf-posix (Depends-on): Likewise.
32469         * modules/fprintf-posix (Depends-on): Likewise.
32470         * modules/vfprintf-posix (Depends-on): Likewise.
32471         * modules/snprintf-posix (Depends-on): Likewise.
32472         * modules/vsnprintf-posix (Depends-on): Likewise.
32473         * modules/sprintf-posix (Depends-on): Likewise.
32474         * modules/vsprintf-posix (Depends-on): Likewise.
32475         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32476         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32477         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32478         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32479         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32480         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32481         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32482
32483         Add support for universal builds to <inttypes.h>.
32484         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32485         _SCNu64_PREFIX): In Apple
32486         universal builds, define directly, using _LP64.
32487         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32488         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32489         * modules/inttypes (Depends-on): Add multiarch.
32490         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32491
32492         Add support for universal builds to <stdint.h>.
32493         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32494         universal builds, define directly, using _LP64.
32495         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32496         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32497         and size_t.
32498         * modules/stdint (Depends-on): Add multiarch.
32499         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32500
32501         New module 'multiarch'.
32502         * modules/multiarch: New file.
32503         * m4/multiarch.m4: New file.
32504
32505 2008-12-25  Bruno Haible  <bruno@clisp.org>
32506
32507         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32508
32509 2008-12-25  Bruno Haible  <bruno@clisp.org>
32510
32511         * modules/btowc (License): Relicense under LGPLv2+.
32512         * modules/mbsinit (License): Likewise.
32513         * modules/mbrtowc (License): Likewise.
32514         * modules/wcrtomb (License): Likewise.
32515         * modules/streq (License): Likewise.
32516         Reported by David Lutterkort <lutter@redhat.com>.
32517
32518 2008-12-23  Bruno Haible  <bruno@clisp.org>
32519
32520         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32521
32522 2008-12-23  Bruno Haible  <bruno@clisp.org>
32523
32524         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32525         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32526         GETADDRINFO_LIB, not in LIBS.
32527         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32528         * modules/canon-host (Link): Likewise.
32529         * NEWS: Mention the change.
32530         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32531         GETADDRINFO_LIB.
32532
32533 2008-12-22  Bruno Haible  <bruno@clisp.org>
32534
32535         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32536         * doc/posix-functions/iswalpha_l.texi: Likewise.
32537         * doc/posix-functions/iswblank_l.texi: Likewise.
32538         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32539         * doc/posix-functions/iswctype_l.texi: Likewise.
32540         * doc/posix-functions/iswdigit_l.texi: Likewise.
32541         * doc/posix-functions/iswgraph_l.texi: Likewise.
32542         * doc/posix-functions/iswlower_l.texi: Likewise.
32543         * doc/posix-functions/iswprint_l.texi: Likewise.
32544         * doc/posix-functions/iswpunct_l.texi: Likewise.
32545         * doc/posix-functions/iswspace_l.texi: Likewise.
32546         * doc/posix-functions/iswupper_l.texi: Likewise.
32547         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32548         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32549         * doc/posix-functions/open_wmemstream.texi: Likewise.
32550         * doc/posix-functions/swscanf.texi: Likewise.
32551         * doc/posix-functions/towctrans_l.texi: Likewise.
32552         * doc/posix-functions/towlower.texi: Likewise.
32553         * doc/posix-functions/towlower_l.texi: Likewise.
32554         * doc/posix-functions/towupper.texi: Likewise.
32555         * doc/posix-functions/towupper_l.texi: Likewise.
32556         * doc/posix-functions/vfwprintf.texi: Likewise.
32557         * doc/posix-functions/vfwscanf.texi: Likewise.
32558         * doc/posix-functions/vswscanf.texi: Likewise.
32559         * doc/posix-functions/vwprintf.texi: Likewise.
32560         * doc/posix-functions/vwscanf.texi: Likewise.
32561         * doc/posix-functions/wcpcpy.texi: Likewise.
32562         * doc/posix-functions/wcpncpy.texi: Likewise.
32563         * doc/posix-functions/wcscasecmp.texi: Likewise.
32564         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32565         * doc/posix-functions/wcscoll_l.texi: Likewise.
32566         * doc/posix-functions/wcsdup.texi: Likewise.
32567         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32568         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32569         * doc/posix-functions/wcsnlen.texi: Likewise.
32570         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32571         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32572         * doc/posix-functions/wctrans_l.texi: Likewise.
32573         * doc/posix-functions/wctype_l.texi: Likewise.
32574         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32575         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32576         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32577         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32578         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32579         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32580         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32581         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32582         * doc/glibc-functions/wcschrnul.texi: Likewise.
32583         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32584         * doc/glibc-functions/wcstod_l.texi: Likewise.
32585         * doc/glibc-functions/wcstof_l.texi: Likewise.
32586         * doc/glibc-functions/wcstol_l.texi: Likewise.
32587         * doc/glibc-functions/wcstold_l.texi: Likewise.
32588         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32589         * doc/glibc-functions/wcstoq.texi: Likewise.
32590         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32591         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32592         * doc/glibc-functions/wcstouq.texi: Likewise.
32593         * doc/glibc-functions/wmempcpy.texi: Likewise.
32594
32595 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32596             Eric Blake  <ebb9@byu.net>
32597             Paolo Bonzini  <bonzini@gnu.org>
32598             Bruno Haible  <bruno@clisp.org>
32599
32600         Make c-stack work on Haiku.
32601         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32602         (c_stack_action): Use SA_ONSTACK flag.
32603
32604 2008-12-22  Bruno Haible  <bruno@clisp.org>
32605
32606         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32607
32608 2008-12-22  Bruno Haible  <bruno@clisp.org>
32609
32610         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32611         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32612         being overridden.
32613         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32614         New macros.
32615         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32617         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32618         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32619
32620 2008-12-22  Bruno Haible  <bruno@clisp.org>
32621
32622         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32623         from test code.
32624
32625 2008-12-22  Eric Blake  <ebb9@byu.net>
32626
32627         Avoid gcc warnings on cygwin.
32628         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32629         Avoid unused variable.
32630         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32631         Likewise.
32632
32633 2008-12-22  Bruno Haible  <bruno@clisp.org>
32634
32635         Remove HAVE_MBRTOWC conditionals.
32636         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32637         (mbscasecmp): Assume mbrtowc function.
32638         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32639         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32640         * lib/mbschr.c: Include mbuiter.h unconditionally.
32641         (mbschr): Assume mbrtowc function.
32642         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32643         (mbscspn): Assume mbrtowc function.
32644         * lib/mbslen.c: Include mbuiter.h unconditionally.
32645         (mbslen): Assume mbrtowc function.
32646         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32647         (mbsncasecmp): Assume mbrtowc function.
32648         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32649         (mbsnlen): Assume mbrtowc function.
32650         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32651         (mbspbrk): Assume mbrtowc function.
32652         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32653         (mbspcasecmp): Assume mbrtowc function.
32654         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32655         (mbsrchr): Assume mbrtowc function.
32656         * lib/mbssep.c: Include mbuiter.h unconditionally.
32657         (mbssep): Assume mbrtowc function.
32658         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32659         (mbsspn): Assume mbrtowc function.
32660         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32661         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32662         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32663         (mbstok_r): Assume mbrtowc function.
32664         * lib/propername.c: Include mbuiter.h unconditionally.
32665         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32666         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32667         (trim2): Assume mbrtowc function.
32668         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32669         (mbsnwidth): Assume mbrtowc function.
32670         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32671         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32672         fallback definitions.
32673         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32674
32675 2008-12-22  Bruno Haible  <bruno@clisp.org>
32676
32677         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32678
32679 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32680
32681         * modules/regex: Request emulations for the mb*/wc* functions we need.
32682         * m4/regex.m4: Don't look for those functions here.
32683         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32684
32685 2008-12-22  Bruno Haible  <bruno@clisp.org>
32686
32687         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32688
32689 2008-12-21  Bruno Haible  <bruno@clisp.org>
32690
32691         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32692         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32693         (Include): Remove conditionalization.
32694         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32695         (Include): Remove conditionalization.
32696         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32697         (Include): Remove conditionalization.
32698         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32699         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32700         * NEWS: Mention the change.
32701         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32702         via Sergey Poznyakoff <gray@gnu.org.ua>.
32703
32704 2008-12-21  Bruno Haible  <bruno@clisp.org>
32705
32706         * MODULES.html.sh (Extended multibyte and wide character utilities
32707         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32708         wcrtomb, wcsrtombs.
32709         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32710         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32711         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32712         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32713
32714 2008-12-21  Bruno Haible  <bruno@clisp.org>
32715
32716         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32717
32718 2008-12-21  Bruno Haible  <bruno@clisp.org>
32719
32720         * modules/wcsnrtombs-tests: New file.
32721         * tests/test-wcsnrtombs1.sh: New file.
32722         * tests/test-wcsnrtombs2.sh: New file.
32723         * tests/test-wcsnrtombs3.sh: New file.
32724         * tests/test-wcsnrtombs4.sh: New file.
32725         * tests/test-wcsnrtombs.c: New file.
32726
32727         New module 'wcsnrtombs'.
32728         * lib/wchar.in.h (wcsnrtombs): New declaration.
32729         * lib/wcsnrtombs.c: New file.
32730         * lib/wcsrtombs-state.c: New file.
32731         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32732         (internal_state): Remove variable.
32733         * m4/wcsnrtombs.m4: New file.
32734         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32735         compilation units.
32736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32737         HAVE_WCSNRTOMBS.
32738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32739         HAVE_WCSNRTOMBS.
32740         * modules/wcsnrtombs: New file.
32741         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32742         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32743
32744 2008-12-21  Bruno Haible  <bruno@clisp.org>
32745
32746         * modules/wcsrtombs-tests: New file.
32747         * tests/test-wcsrtombs1.sh: New file.
32748         * tests/test-wcsrtombs2.sh: New file.
32749         * tests/test-wcsrtombs3.sh: New file.
32750         * tests/test-wcsrtombs4.sh: New file.
32751         * tests/test-wcsrtombs.c: New file.
32752
32753         New module 'wcsrtombs'.
32754         * lib/wchar.in.h (wcsrtombs): New declaration.
32755         * lib/wcsrtombs.c: New file.
32756         * m4/wcsrtombs.m4: New file.
32757         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32758         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32760         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32761         * modules/wcsrtombs: New file.
32762         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32763         bugs.
32764
32765 2008-12-21  Bruno Haible  <bruno@clisp.org>
32766
32767         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32768         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32769         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32770         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32771         if not correct.
32772         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32773         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32774         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32775         m4/locale-zh.m4, m4/codeset.m4.
32776         * doc/posix-functions/wcrtomb.texi: Document the bug.
32777
32778 2008-12-21  Bruno Haible  <bruno@clisp.org>
32779
32780         Work around a btowc() bug on IRIX 6.5.
32781         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32782         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32783         REPLACE_WTOBC if not.
32784         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32785         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32786         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32787
32788 2008-12-21  Bruno Haible  <bruno@clisp.org>
32789
32790         * modules/wcrtomb-tests: New file.
32791         * tests/test-wcrtomb.sh: New file.
32792         * tests/test-wcrtomb.c: New file.
32793
32794         New module 'wcrtomb'.
32795         * lib/wchar.in.h (wcrtomb): New declaration.
32796         * lib/wcrtomb.c: New file.
32797         * m4/wcrtomb.m4: New file.
32798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32799         HAVE_WCRTOMB.
32800         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32801         HAVE_WCRTOMB.
32802         * modules/wcrtomb: New file.
32803         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32804
32805 2008-12-21  Bruno Haible  <bruno@clisp.org>
32806
32807         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32808         * modules/mbsrtowcs (Files): Likewise.
32809         * modules/wctob (Files): Likewise.
32810         * modules/c-strcase-tests (Files): Likewise.
32811         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32812         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32813         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32814         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32815         * modules/vasnprintf-posix-tests (Files): Likewise.
32816
32817 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32818
32819         gitlog-to-changelog: pass all command-line arguments to git-log
32820         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32821         it is sometimes convenient to filter the commits in various ways.
32822         gitlog-to-changelog only allows --since to specify a start date,
32823         but git-log itself supports many other filtering mechanisms.
32824         At the moment, I want to filter by branch name.  Rather than
32825         adding a --branch option to gitlog-to-changelog, it seems more
32826         flexible to simply pass all options directly to git-log and let
32827         git do the work.  Notice that this effectively makes --since a
32828         redundant option for gitlog-to-changelog, but removing it would
32829         require current usage to change since calls would then require
32830         an additional '--'.
32831
32832 2008-12-21  Bruno Haible  <bruno@clisp.org>
32833
32834         * modules/mbsnrtowcs-tests: New file.
32835         * tests/test-mbsnrtowcs1.sh: New file.
32836         * tests/test-mbsnrtowcs2.sh: New file.
32837         * tests/test-mbsnrtowcs3.sh: New file.
32838         * tests/test-mbsnrtowcs4.sh: New file.
32839         * tests/test-mbsnrtowcs.c: New file.
32840
32841         New module 'mbsnrtowcs'.
32842         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32843         * lib/mbsnrtowcs.c: New file.
32844         * lib/mbsrtowcs-state.c: New file.
32845         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32846         (internal_state): Remove variable.
32847         * m4/mbsnrtowcs.m4: New file.
32848         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32849         compilation units.
32850         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32851         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32852         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32853         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32854         * modules/mbsnrtowcs: New file.
32855         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32856         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32857         portability problem.
32858
32859 2008-12-21  Bruno Haible  <bruno@clisp.org>
32860
32861         Work around mbsrtowcs bug.
32862         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32863         (gl_FUNC_MBSRTOWCS): Invoke it.
32864         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32865         m4/locale-zh.m4.
32866         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32867
32868 2008-12-21  Bruno Haible  <bruno@clisp.org>
32869
32870         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32871
32872 2008-12-21  Bruno Haible  <bruno@clisp.org>
32873
32874         Update doc for AIX.
32875         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32876         16-bit wchar_t type.
32877         * doc/posix-functions/btowc.texi: Likewise.
32878         * doc/posix-functions/fgetwc.texi: Likewise.
32879         * doc/posix-functions/fgetws.texi: Likewise.
32880         * doc/posix-functions/fputwc.texi: Likewise.
32881         * doc/posix-functions/fputws.texi: Likewise.
32882         * doc/posix-functions/fwide.texi: Likewise.
32883         * doc/posix-functions/fwprintf.texi: Likewise.
32884         * doc/posix-functions/fwscanf.texi: Likewise.
32885         * doc/posix-functions/getwchar.texi: Likewise.
32886         * doc/posix-functions/getwc.texi: Likewise.
32887         * doc/posix-functions/iswalnum.texi: Likewise.
32888         * doc/posix-functions/iswalpha.texi: Likewise.
32889         * doc/posix-functions/iswblank.texi: Likewise.
32890         * doc/posix-functions/iswcntrl.texi: Likewise.
32891         * doc/posix-functions/iswctype.texi: Likewise.
32892         * doc/posix-functions/iswdigit.texi: Likewise.
32893         * doc/posix-functions/iswgraph.texi: Likewise.
32894         * doc/posix-functions/iswlower.texi: Likewise.
32895         * doc/posix-functions/iswprint.texi: Likewise.
32896         * doc/posix-functions/iswpunct.texi: Likewise.
32897         * doc/posix-functions/iswspace.texi: Likewise.
32898         * doc/posix-functions/iswupper.texi: Likewise.
32899         * doc/posix-functions/iswxdigit.texi: Likewise.
32900         * doc/posix-functions/mbrtowc.texi: Likewise.
32901         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32902         * doc/posix-functions/mbstowcs.texi: Likewise.
32903         * doc/posix-functions/mbtowc.texi: Likewise.
32904         * doc/posix-functions/putwchar.texi: Likewise.
32905         * doc/posix-functions/putwc.texi: Likewise.
32906         * doc/posix-functions/swprintf.texi: Likewise.
32907         * doc/posix-functions/tolower.texi: Likewise.
32908         * doc/posix-functions/toupper.texi: Likewise.
32909         * doc/posix-functions/towctrans.texi: Likewise.
32910         * doc/posix-functions/ungetwc.texi: Likewise.
32911         * doc/posix-functions/vswprintf.texi: Likewise.
32912         * doc/posix-functions/wcrtomb.texi: Likewise.
32913         * doc/posix-functions/wcscat.texi: Likewise.
32914         * doc/posix-functions/wcschr.texi: Likewise.
32915         * doc/posix-functions/wcscmp.texi: Likewise.
32916         * doc/posix-functions/wcscoll.texi: Likewise.
32917         * doc/posix-functions/wcscpy.texi: Likewise.
32918         * doc/posix-functions/wcscspn.texi: Likewise.
32919         * doc/posix-functions/wcsftime.texi: Likewise.
32920         * doc/posix-functions/wcslen.texi: Likewise.
32921         * doc/posix-functions/wcsncat.texi: Likewise.
32922         * doc/posix-functions/wcsncmp.texi: Likewise.
32923         * doc/posix-functions/wcsncpy.texi: Likewise.
32924         * doc/posix-functions/wcspbrk.texi: Likewise.
32925         * doc/posix-functions/wcsrchr.texi: Likewise.
32926         * doc/posix-functions/wcsrtombs.texi: Likewise.
32927         * doc/posix-functions/wcsspn.texi: Likewise.
32928         * doc/posix-functions/wcsstr.texi: Likewise.
32929         * doc/posix-functions/wcstod.texi: Likewise.
32930         * doc/posix-functions/wcstof.texi: Likewise.
32931         * doc/posix-functions/wcstoimax.texi: Likewise.
32932         * doc/posix-functions/wcstok.texi: Likewise.
32933         * doc/posix-functions/wcstold.texi: Likewise.
32934         * doc/posix-functions/wcstoll.texi: Likewise.
32935         * doc/posix-functions/wcstol.texi: Likewise.
32936         * doc/posix-functions/wcstombs.texi: Likewise.
32937         * doc/posix-functions/wcstoull.texi: Likewise.
32938         * doc/posix-functions/wcstoul.texi: Likewise.
32939         * doc/posix-functions/wcstoumax.texi: Likewise.
32940         * doc/posix-functions/wcswidth.texi: Likewise.
32941         * doc/posix-functions/wcsxfrm.texi: Likewise.
32942         * doc/posix-functions/wctob.texi: Likewise.
32943         * doc/posix-functions/wctomb.texi: Likewise.
32944         * doc/posix-functions/wctrans.texi: Likewise.
32945         * doc/posix-functions/wctype.texi: Likewise.
32946         * doc/posix-functions/wcwidth.texi: Likewise.
32947         * doc/posix-functions/wmemchr.texi: Likewise.
32948         * doc/posix-functions/wmemcmp.texi: Likewise.
32949         * doc/posix-functions/wmemcpy.texi: Likewise.
32950         * doc/posix-functions/wmemmove.texi: Likewise.
32951         * doc/posix-functions/wmemset.texi: Likewise.
32952         * doc/posix-functions/wprintf.texi: Likewise.
32953         * doc/posix-functions/wscanf.texi: Likewise.
32954
32955 2008-12-21  Bruno Haible  <bruno@clisp.org>
32956
32957         Update doc for HP-UX 11.11.
32958         * doc/posix-functions/btowc.texi: Clarify that the function is missing
32959         in HP-UX version 11.00, not in all versions of HP-UX 11.
32960         * doc/posix-functions/fwide.texi: Likewise.
32961         * doc/posix-functions/fwprintf.texi: Likewise.
32962         * doc/posix-functions/fwscanf.texi: Likewise.
32963         * doc/posix-functions/inet_ntop.texi: Likewise.
32964         * doc/posix-functions/inet_pton.texi: Likewise.
32965         * doc/posix-functions/mbrlen.texi: Likewise.
32966         * doc/posix-functions/mbrtowc.texi: Likewise.
32967         * doc/posix-functions/mbsinit.texi: Likewise.
32968         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32969         * doc/posix-functions/swprintf.texi: Likewise.
32970         * doc/posix-functions/swscanf.texi: Likewise.
32971         * doc/posix-functions/towctrans.texi: Likewise.
32972         * doc/posix-functions/vfwprintf.texi: Likewise.
32973         * doc/posix-functions/vswprintf.texi: Likewise.
32974         * doc/posix-functions/vwprintf.texi: Likewise.
32975         * doc/posix-functions/wcrtomb.texi: Likewise.
32976         * doc/posix-functions/wcsrtombs.texi: Likewise.
32977         * doc/posix-functions/wcsstr.texi: Likewise.
32978         * doc/posix-functions/wctob.texi: Likewise.
32979         * doc/posix-functions/wctrans.texi: Likewise.
32980         * doc/posix-functions/wmemchr.texi: Likewise.
32981         * doc/posix-functions/wmemcmp.texi: Likewise.
32982         * doc/posix-functions/wmemcpy.texi: Likewise.
32983         * doc/posix-functions/wmemmove.texi: Likewise.
32984         * doc/posix-functions/wmemset.texi: Likewise.
32985         * doc/posix-functions/wprintf.texi: Likewise.
32986         * doc/posix-functions/wscanf.texi: Likewise.
32987
32988 2008-12-21  Bruno Haible  <bruno@clisp.org>
32989
32990         Work around a portability problem.
32991         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
32992         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
32993
32994 2008-12-20  Bruno Haible  <bruno@clisp.org>
32995
32996         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
32997         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
32998         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
32999         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33000         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33001
33002         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33003         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33004         set.
33005         (GNULIB_defined_mbstate_t): New macro.
33006         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33007         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33008         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33009         reuses the system's mbrtowc function but works around the bugs.
33010         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33011         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33012         macros.
33013         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33014         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33015         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33016         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33017         REPLACE_MBSINIT if mbsinit needs to be overridden.
33018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33019         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33020         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33021         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33022         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33023         m4/locale-zh.m4.
33024         (Depends): Add mbsinit.
33025         * modules/mbsinit (Depends): Add mbrtowc.
33026         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33027
33028 2008-12-20  Bruno Haible  <bruno@clisp.org>
33029
33030         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33031         so that there are no conversion errors on AIX.
33032         * tests/test-mbsrtowcs.c (main): LIkewise.
33033
33034 2008-12-20  Bruno Haible  <bruno@clisp.org>
33035
33036         Work around wctob bug on Solaris <= 9.
33037         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33038         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33040         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33041         * modules/wctob (Files): Add m4/locale-fr.m4.
33042         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33043
33044 2008-12-20  Bruno Haible  <bruno@clisp.org>
33045
33046         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33047         /dev/null.
33048         * tests/test-select-in.sh: Likewise.
33049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33050
33051 2008-12-20  Bruno Haible  <bruno@clisp.org>
33052
33053         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33054         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33055         Cygwin 1.5.x.
33056
33057 2008-12-20  Bruno Haible  <bruno@clisp.org>
33058
33059         Ensure mbstate_t is defined on HP-UX 11.11.
33060         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33061         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33062         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33063         AC_USE_SYSTEM_EXTENSIONS.
33064         * modules/fnmatch (Depends-on): Add extensions.
33065         * modules/mbrlen (Depends-on): Likewise.
33066         * modules/mbrtowc (Depends-on): Likewise.
33067         * modules/mbsinit (Depends-on): Likewise.
33068         * modules/mbsrtowcs (Depends-on): Likewise.
33069         * modules/mbswidth (Depends-on): Likewise.
33070         * modules/quotearg (Depends-on): Likewise.
33071         * modules/strftime (Depends-on): Likewise.
33072
33073 2008-12-20  Bruno Haible  <bruno@clisp.org>
33074
33075         Ensure wctob is declared on IRIX 6.5.
33076         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33077         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33078         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33079         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33080         of HAVE_WCTOB.
33081         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33082         HAVE_WCTOB.
33083         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33084
33085 2008-12-19  Bruno Haible  <bruno@clisp.org>
33086
33087         * modules/mbsrtowcs-tests: New file.
33088         * tests/test-mbsrtowcs1.sh: New file.
33089         * tests/test-mbsrtowcs2.sh: New file.
33090         * tests/test-mbsrtowcs3.sh: New file.
33091         * tests/test-mbsrtowcs4.sh: New file.
33092         * tests/test-mbsrtowcs.c: New file.
33093
33094         New module 'mbsrtowcs'.
33095         * lib/wchar.in.h (mbsrtowcs): New declaration.
33096         * lib/mbsrtowcs.c: New file.
33097         * m4/mbsrtowcs.m4: New file.
33098         * modules/mbsrtowcs: New file.
33099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33100         HAVE_MBSRTOWCS.
33101         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33102         HAVE_MBSRTOWCS.
33103         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33104
33105 2008-12-19  Bruno Haible  <bruno@clisp.org>
33106
33107         New module 'mbrlen'.
33108         * lib/wchar.in.h (mbrlen): New declaration.
33109         * lib/mbrlen.c: New file.
33110         * m4/mbrlen.m4: New file.
33111         * modules/mbrlen: New file.
33112         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33113         HAVE_MBRLEN.
33114         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33115         HAVE_MBRLEN.
33116         * doc/posix-functions/mbrlen.texi: Document the new module.
33117
33118 2008-12-19  Bruno Haible  <bruno@clisp.org>
33119
33120         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33121         * modules/mbrtowc (Depends-on): Add verify.
33122         Suggested by Paul Eggert.
33123
33124 2008-12-18  Bruno Haible  <bruno@clisp.org>
33125
33126         * modules/mbsinit-tests: New file.
33127         * tests/test-mbsinit.sh: New file.
33128         * tests/test-mbsinit.c: New file.
33129
33130 2008-12-18  Bruno Haible  <bruno@clisp.org>
33131
33132         * modules/mbrtowc-tests: New file.
33133         * tests/test-mbrtowc1.sh: New file.
33134         * tests/test-mbrtowc2.sh: New file.
33135         * tests/test-mbrtowc3.sh: New file.
33136         * tests/test-mbrtowc4.sh: New file.
33137         * tests/test-mbrtowc.c: New file.
33138
33139         New module 'mbrtowc'.
33140         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33141         mbsinit and mbrtowc.
33142         (mbrtowc): New declaration.
33143         * lib/mbrtowc.c: New file.
33144         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33145         * modules/mbrtowc: New file.
33146         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33147         HAVE_MBRTOWC.
33148         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33149         HAVE_MBRTOWC.
33150         * doc/posix-functions/mbrtowc.texi: Document the new module.
33151
33152 2008-12-18  Bruno Haible  <bruno@clisp.org>
33153
33154         New module 'wctob'.
33155         * lib/wchar.in.h (wctob): New declaration.
33156         * lib/wctob.c: New file.
33157         * m4/wctob.m4: New file.
33158         * modules/wctob: New file.
33159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33160         HAVE_WCTOB.
33161         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33162         * doc/posix-functions/wctob.texi: Document the new module.
33163
33164 2008-12-18  Bruno Haible  <bruno@clisp.org>
33165
33166         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33167         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33168
33169 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33170
33171         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33172         G. Christensen" <tgc@jupiterrise.com>.
33173
33174         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33175         G. Christensen" <tgc@jupiterrise.com>.
33176
33177         * lib/flock.c: Need to include string.h.  Reported by "Tom
33178         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33179         <ebb9@byu.net>.
33180
33181 2008-12-18  Bruno Haible  <bruno@clisp.org>
33182
33183         * m4/locale-ja.m4: New file, from GNU gettext.
33184
33185 2008-12-17  Bruno Haible  <bruno@clisp.org>
33186
33187         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33188         Suggested by Eric Blake.
33189
33190 2008-12-17  Bruno Haible  <bruno@clisp.org>
33191
33192         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33193
33194 2008-12-17  Bruno Haible  <bruno@clisp.org>
33195
33196         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33197         * modules/mbsinit (Depends-on): Add verify.
33198         Suggested by Paul Eggert.
33199
33200 2008-12-17  Bruno Haible  <bruno@clisp.org>
33201
33202         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33203         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33204         gl_FUNC_MBRTOWC.
33205         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33206         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33207         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33208         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33209         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33210         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33211         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33212         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33213         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33214         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33215         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33216         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33217         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33218         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33219         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33220         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33221         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33222         * modules/trim (configure.ac): Likewise.
33223
33224 2008-12-17  Bruno Haible  <bruno@clisp.org>
33225
33226         * modules/btowc-tests: New file.
33227         * tests/test-btowc1.sh: New file.
33228         * tests/test-btowc2.sh: New file.
33229         * tests/test-btowc.c: New file.
33230
33231         New module 'btowc'.
33232         * lib/wchar.in.h (btowc): New declaration.
33233         * lib/btowc.c: New file.
33234         * m4/btowc.m4: New file.
33235         * modules/btowc: New file.
33236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33237         HAVE_BTOWC.
33238         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33239         * doc/posix-functions/btowc.texi: Document the new module.
33240
33241 2008-12-17  Bruno Haible  <bruno@clisp.org>
33242
33243         New module 'mbsinit'.
33244         * lib/wchar.in.h (mbsinit): New declaration.
33245         * lib/mbsinit.c: New file.
33246         * m4/mbsinit.m4: New file.
33247         * modules/mbsinit: New file.
33248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33249         HAVE_MBSINIT.
33250         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33251         HAVE_MBSINIT.
33252         * doc/posix-functions/mbsinit.texi: Document the new module.
33253
33254 2008-12-16  Bruno Haible  <bruno@clisp.org>
33255
33256         * lib/unistd.in.h: Add comment.
33257         * tests/test-environ.c: Don't include <stdlib.h>.
33258
33259 2008-12-16  Bruno Haible  <bruno@clisp.org>
33260
33261         * lib/parse-duration.h (parse_duration): Document return value
33262         convention.
33263         * lib/parse-duration.c: Include specification header first. Add
33264         comments.
33265         (_): Remove macro.
33266         (parse_year_month_day, parse_hour_minute_second): Move side effects
33267         outside of strchr call.
33268         (parse_non_iso8601): Move side effects outside of isspace call.
33269         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33270         call.
33271
33272 2008-12-16  Bruno Haible  <bruno@clisp.org>
33273
33274         * tests/test-parse-duration.sh: Produce no output when the test
33275         succeeds.
33276
33277 2008-12-16  Bruno Haible  <bruno@clisp.org>
33278
33279         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33280         expressions.
33281
33282 2008-12-15  Bruno Haible  <bruno@clisp.org>
33283
33284         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33285         * doc/glibc-functions/flistxattr.texi: Likewise.
33286         * doc/glibc-functions/fopencookie.texi: Likewise.
33287         * doc/glibc-functions/fremovexattr.texi: Likewise.
33288         * doc/glibc-functions/fsetxattr.texi: Likewise.
33289         * doc/glibc-functions/getxattr.texi: Likewise.
33290         * doc/glibc-functions/lgetxattr.texi: Likewise.
33291         * doc/glibc-functions/listxattr.texi: Likewise.
33292         * doc/glibc-functions/llistxattr.texi: Likewise.
33293         * doc/glibc-functions/lremovexattr.texi: Likewise.
33294         * doc/glibc-functions/lsetxattr.texi: Likewise.
33295         * doc/glibc-functions/removexattr.texi: Likewise.
33296         * doc/glibc-functions/setxattr.texi: Likewise.
33297         * doc/posix-functions/open_memstream.texi: Likewise.
33298
33299 2008-12-15  Eric Blake  <ebb9@byu.net>
33300
33301         Update doc for cygwin 1.7.
33302         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33303         functions.
33304         * doc/posix-functions/fchmodat.texi: Likewise.
33305         * doc/posix-functions/fchownat.texi: Likewise.
33306         * doc/posix-functions/fdopendir.texi: Likewise.
33307         * doc/posix-functions/fmemopen.texi: Likewise.
33308         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33309         * doc/posix-functions/fstatat.texi: Likewise.
33310         * doc/posix-functions/futimens.texi: Likewise.
33311         * doc/posix-functions/gai_strerror.texi: Likewise.
33312         * doc/posix-functions/getaddrinfo.texi: Likewise.
33313         * doc/posix-functions/getnameinfo.texi: Likewise.
33314         * doc/posix-functions/if_freenameindex.texi: Likewise.
33315         * doc/posix-functions/if_indextoname.texi: Likewise.
33316         * doc/posix-functions/if_nameindex.texi: Likewise.
33317         * doc/posix-functions/if_nametoindex.texi: Likewise.
33318         * doc/posix-functions/insque.texi: Likewise.
33319         * doc/posix-functions/linkat.texi: Likewise.
33320         * doc/posix-functions/llrint.texi: Likewise.
33321         * doc/posix-functions/llrintf.texi: Likewise.
33322         * doc/posix-functions/llrintl.texi: Likewise.
33323         * doc/posix-functions/lockf.texi: Likewise.
33324         * doc/posix-functions/lrintl.texi: Likewise.
33325         * doc/posix-functions/mkdirat.texi: Likewise.
33326         * doc/posix-functions/mkfifoat.texi: Likewise.
33327         * doc/posix-functions/mknodat.texi: Likewise.
33328         * doc/posix-functions/mq_close.texi: Likewise.
33329         * doc/posix-functions/mq_getattr.texi: Likewise.
33330         * doc/posix-functions/mq_notify.texi: Likewise.
33331         * doc/posix-functions/mq_open.texi: Likewise.
33332         * doc/posix-functions/mq_receive.texi: Likewise.
33333         * doc/posix-functions/mq_send.texi: Likewise.
33334         * doc/posix-functions/mq_setattr.texi: Likewise.
33335         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33336         * doc/posix-functions/mq_timedsend.texi: Likewise.
33337         * doc/posix-functions/mq_unlink.texi: Likewise.
33338         * doc/posix-functions/open_memstream.texi: Likewise.
33339         * doc/posix-functions/openat.texi: Likewise.
33340         * doc/posix-functions/posix_fadvise.texi: Likewise.
33341         * doc/posix-functions/posix_fallocate.texi: Likewise.
33342         * doc/posix-functions/posix_madvise.texi: Likewise.
33343         * doc/posix-functions/posix_memalign.texi: Likewise.
33344         * doc/posix-functions/posix_openpt.texi: Likewise.
33345         * doc/posix-functions/readlinkat.texi: Likewise.
33346         * doc/posix-functions/remque.texi: Likewise.
33347         * doc/posix-functions/renameat.texi: Likewise.
33348         * doc/posix-functions/rintl.texi: Likewise.
33349         * doc/posix-functions/sem_unlink.texi: Likewise.
33350         * doc/posix-functions/shm_open.texi: Likewise.
33351         * doc/posix-functions/shm_unlink.texi: Likewise.
33352         * doc/posix-functions/signgam.texi: Likewise.
33353         * doc/posix-functions/sigset.texi: Likewise.
33354         * doc/posix-functions/stpcpy.texi: Likewise.
33355         * doc/posix-functions/stpncpy.texi: Likewise.
33356         * doc/posix-functions/strerror.texi: Likewise.
33357         * doc/posix-functions/strtod.texi: Likewise.
33358         * doc/posix-functions/symlinkat.texi: Likewise.
33359         * doc/posix-functions/unlinkat.texi: Likewise.
33360         * doc/posix-functions/utimensat.texi: Likewise.
33361         * doc/glibc-functions/bindresvport.texi: Likewise.
33362         * doc/glibc-functions/dn_expand.texi: Likewise.
33363         * doc/glibc-functions/exp10.texi: Likewise.
33364         * doc/glibc-functions/exp10f.texi: Likewise.
33365         * doc/glibc-functions/fgetxattr.texi: Likewise.
33366         * doc/glibc-functions/flistxattr.texi: Likewise.
33367         * doc/glibc-functions/fopencookie.texi: Likewise.
33368         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33369         * doc/glibc-functions/fremovexattr.texi: Likewise.
33370         * doc/glibc-functions/fsetxattr.texi: Likewise.
33371         * doc/glibc-functions/getifaddrs.texi: Likewise.
33372         * doc/glibc-functions/getxattr.texi: Likewise.
33373         * doc/glibc-functions/lgetxattr.texi: Likewise.
33374         * doc/glibc-functions/listxattr.texi: Likewise.
33375         * doc/glibc-functions/llistxattr.texi: Likewise.
33376         * doc/glibc-functions/lremovexattr.texi: Likewise.
33377         * doc/glibc-functions/lsetxattr.texi: Likewise.
33378         * doc/glibc-functions/pow10.texi: Likewise.
33379         * doc/glibc-functions/pow10f.texi: Likewise.
33380         * doc/glibc-functions/rcmd_af.texi: Likewise.
33381         * doc/glibc-functions/removexattr.texi: Likewise.
33382         * doc/glibc-functions/res_init.texi: Likewise.
33383         * doc/glibc-functions/res_mkquery.texi: Likewise.
33384         * doc/glibc-functions/res_query.texi: Likewise.
33385         * doc/glibc-functions/res_querydomain.texi: Likewise.
33386         * doc/glibc-functions/res_send.texi: Likewise.
33387         * doc/glibc-functions/rresvport_af.texi: Likewise.
33388         * doc/glibc-functions/setxattr.texi: Likewise.
33389         * doc/glibc-functions/strcasestr.texi: Likewise.
33390
33391 2008-12-15  Bruno Haible  <bruno@clisp.org>
33392
33393         Fix compilation error on OSF/1 4.0.
33394         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33395         <sys/time.h>, simply delegate to the system header.
33396         Reported by Daniel Richard G. <oss@teragram.com>.
33397
33398 2008-12-15  Bruno Haible  <bruno@clisp.org>
33399
33400         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33401         * doc/posix-functions/fchmodat.texi: Likewise.
33402         * doc/posix-functions/fchownat.texi: Likewise.
33403         * doc/posix-functions/fdopendir.texi: Likewise.
33404         * doc/posix-functions/fstatat.texi: Likewise.
33405         * doc/posix-functions/mkdirat.texi: Likewise.
33406         * doc/posix-functions/unlinkat.texi: Likewise.
33407
33408 2008-12-14  Bruno Haible  <bruno@clisp.org>
33409
33410         Update doc for POSIX:2008.
33411         * doc/posix-functions/faccessat.texi: New file.
33412         * doc/posix-functions/fchmodat.texi: New file.
33413         * doc/posix-functions/fchownat.texi: New file.
33414         * doc/posix-functions/fdopendir.texi: New file.
33415         * doc/posix-functions/fstatat.texi: New file.
33416         * doc/posix-functions/futimens.texi: New file.
33417         * doc/posix-functions/linkat.texi: New file.
33418         * doc/posix-functions/mkdirat.texi: New file.
33419         * doc/posix-functions/mkfifoat.texi: New file.
33420         * doc/posix-functions/mknodat.texi: New file.
33421         * doc/posix-functions/open_wmemstream.texi: New file.
33422         * doc/posix-functions/openat.texi: New file.
33423         * doc/posix-functions/psiginfo.texi: New file.
33424         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33425         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33426         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33427         * doc/posix-functions/readlinkat.texi: New file.
33428         * doc/posix-functions/renameat.texi: New file.
33429         * doc/posix-functions/strerror_l.texi: New file.
33430         * doc/posix-functions/symlinkat.texi: New file.
33431         * doc/posix-functions/unlinkat.texi: New file.
33432         * doc/posix-functions/utimensat.texi: New file.
33433         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33434
33435 2008-12-14  Bruno Haible  <bruno@clisp.org>
33436
33437         Update doc for POSIX:2008.
33438         * doc/posix-functions/alphasort.texi: Renamed from
33439         doc/glibc-functions/alphasort.texi.
33440         * doc/posix-functions/dirfd.texi: Renamed from
33441         doc/glibc-functions/dirfd.texi.
33442         * doc/posix-functions/dprintf.texi: Renamed from
33443         doc/glibc-functions/dprintf.texi.
33444         * doc/posix-functions/duplocale.texi: Renamed from
33445         doc/glibc-functions/duplocale.texi.
33446         * doc/posix-functions/fexecve.texi: Renamed from
33447         doc/glibc-functions/fexecve.texi.
33448         * doc/posix-functions/fmemopen.texi: Renamed from
33449         doc/glibc-functions/fmemopen.texi.
33450         * doc/posix-functions/freelocale.texi: Renamed from
33451         doc/glibc-functions/freelocale.texi.
33452         * doc/posix-functions/getdate_err.texi: Renamed from
33453         doc/glibc-functions/getdate_err.texi.
33454         * doc/posix-functions/isalnum_l.texi: Renamed from
33455         doc/glibc-functions/isalnum_l.texi.
33456         * doc/posix-functions/isalpha_l.texi: Renamed from
33457         doc/glibc-functions/isalpha_l.texi.
33458         * doc/posix-functions/isblank_l.texi: Renamed from
33459         doc/glibc-functions/isblank_l.texi.
33460         * doc/posix-functions/iscntrl_l.texi: Renamed from
33461         doc/glibc-functions/iscntrl_l.texi.
33462         * doc/posix-functions/isdigit_l.texi: Renamed from
33463         doc/glibc-functions/isdigit_l.texi.
33464         * doc/posix-functions/isgraph_l.texi: Renamed from
33465         doc/glibc-functions/isgraph_l.texi.
33466         * doc/posix-functions/islower_l.texi: Renamed from
33467         doc/glibc-functions/islower_l.texi.
33468         * doc/posix-functions/isprint_l.texi: Renamed from
33469         doc/glibc-functions/isprint_l.texi.
33470         * doc/posix-functions/ispunct_l.texi: Renamed from
33471         doc/glibc-functions/ispunct_l.texi.
33472         * doc/posix-functions/isspace_l.texi: Renamed from
33473         doc/glibc-functions/isspace_l.texi.
33474         * doc/posix-functions/isupper_l.texi: Renamed from
33475         doc/glibc-functions/isupper_l.texi.
33476         * doc/posix-functions/iswalnum_l.texi: Renamed from
33477         doc/glibc-functions/iswalnum_l.texi.
33478         * doc/posix-functions/iswalpha_l.texi: Renamed from
33479         doc/glibc-functions/iswalpha_l.texi.
33480         * doc/posix-functions/iswblank_l.texi: Renamed from
33481         doc/glibc-functions/iswblank_l.texi.
33482         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33483         doc/glibc-functions/iswcntrl_l.texi.
33484         * doc/posix-functions/iswctype_l.texi: Renamed from
33485         doc/glibc-functions/iswctype_l.texi.
33486         * doc/posix-functions/iswdigit_l.texi: Renamed from
33487         doc/glibc-functions/iswdigit_l.texi.
33488         * doc/posix-functions/iswgraph_l.texi: Renamed from
33489         doc/glibc-functions/iswgraph_l.texi.
33490         * doc/posix-functions/iswlower_l.texi: Renamed from
33491         doc/glibc-functions/iswlower_l.texi.
33492         * doc/posix-functions/iswprint_l.texi: Renamed from
33493         doc/glibc-functions/iswprint_l.texi.
33494         * doc/posix-functions/iswpunct_l.texi: Renamed from
33495         doc/glibc-functions/iswpunct_l.texi.
33496         * doc/posix-functions/iswspace_l.texi: Renamed from
33497         doc/glibc-functions/iswspace_l.texi.
33498         * doc/posix-functions/iswupper_l.texi: Renamed from
33499         doc/glibc-functions/iswupper_l.texi.
33500         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33501         doc/glibc-functions/iswxdigit_l.texi.
33502         * doc/posix-functions/isxdigit_l.texi: Renamed from
33503         doc/glibc-functions/isxdigit_l.texi.
33504         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33505         doc/glibc-functions/mbsnrtowcs.texi.
33506         * doc/posix-functions/mkdtemp.texi: Renamed from
33507         doc/glibc-functions/mkdtemp.texi.
33508         * doc/posix-functions/newlocale.texi: Renamed from
33509         doc/glibc-functions/newlocale.texi.
33510         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33511         doc/glibc-functions/nl_langinfo_l.texi.
33512         * doc/posix-functions/open_memstream.texi: Renamed from
33513         doc/glibc-functions/open_memstream.texi.
33514         * doc/posix-functions/opterr.texi: Renamed from
33515         doc/glibc-functions/opterr.texi.
33516         * doc/posix-functions/optind.texi: Renamed from
33517         doc/glibc-functions/optind.texi.
33518         * doc/posix-functions/optopt.texi: Renamed from
33519         doc/glibc-functions/optopt.texi.
33520         * doc/posix-functions/psignal.texi: Renamed from
33521         doc/glibc-functions/psignal.texi.
33522         * doc/posix-functions/scandir.texi: Renamed from
33523         doc/glibc-functions/scandir.texi.
33524         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33525         doc/glibc-functions/sched_get_priority_min.texi.
33526         * doc/posix-functions/signgam.texi: Renamed from
33527         doc/glibc-functions/signgam.texi.
33528         * doc/posix-functions/stpcpy.texi: Renamed from
33529         doc/glibc-functions/stpcpy.texi.
33530         * doc/posix-functions/stpncpy.texi: Renamed from
33531         doc/glibc-functions/stpncpy.texi.
33532         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33533         doc/glibc-functions/strcasecmp_l.texi.
33534         * doc/posix-functions/strcoll_l.texi: Renamed from
33535         doc/glibc-functions/strcoll_l.texi.
33536         * doc/posix-functions/strfmon_l.texi: Renamed from
33537         doc/glibc-functions/strfmon_l.texi.
33538         * doc/posix-functions/strftime_l.texi: Renamed from
33539         doc/glibc-functions/strftime_l.texi.
33540         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33541         doc/glibc-functions/strncasecmp_l.texi.
33542         * doc/posix-functions/strndup.texi: Renamed from
33543         doc/glibc-functions/strndup.texi.
33544         * doc/posix-functions/strnlen.texi: Renamed from
33545         doc/glibc-functions/strnlen.texi.
33546         * doc/posix-functions/strsignal.texi: Renamed from
33547         doc/glibc-functions/strsignal.texi.
33548         * doc/posix-functions/strxfrm_l.texi: Renamed from
33549         doc/glibc-functions/strxfrm_l.texi.
33550         * doc/posix-functions/timer_gettime.texi: Renamed from
33551         doc/glibc-functions/timer_gettime.texi.
33552         * doc/posix-functions/tolower_l.texi: Renamed from
33553         doc/glibc-functions/tolower_l.texi.
33554         * doc/posix-functions/toupper_l.texi: Renamed from
33555         doc/glibc-functions/toupper_l.texi.
33556         * doc/posix-functions/towctrans_l.texi: Renamed from
33557         doc/glibc-functions/towctrans_l.texi.
33558         * doc/posix-functions/towlower_l.texi: Renamed from
33559         doc/glibc-functions/towlower_l.texi.
33560         * doc/posix-functions/towupper_l.texi: Renamed from
33561         doc/glibc-functions/towupper_l.texi.
33562         * doc/posix-functions/uselocale.texi: Renamed from
33563         doc/glibc-functions/uselocale.texi.
33564         * doc/posix-functions/vdprintf.texi: Renamed from
33565         doc/glibc-functions/vdprintf.texi.
33566         * doc/posix-functions/wcpcpy.texi:
33567         Renamed from doc/glibc-functions/wcpcpy.texi.
33568         * doc/posix-functions/wcpncpy.texi: Renamed from
33569         doc/glibc-functions/wcpncpy.texi.
33570         * doc/posix-functions/wcscasecmp.texi: Renamed from
33571         doc/glibc-functions/wcscasecmp.texi.
33572         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33573         doc/glibc-functions/wcscasecmp_l.texi.
33574         * doc/posix-functions/wcscoll_l.texi: Renamed from
33575         doc/glibc-functions/wcscoll_l.texi.
33576         * doc/posix-functions/wcsdup.texi: Renamed from
33577         doc/glibc-functions/wcsdup.texi.
33578         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33579         doc/glibc-functions/wcsncasecmp.texi.
33580         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33581         doc/glibc-functions/wcsncasecmp_l.texi.
33582         * doc/posix-functions/wcsnlen.texi: Renamed from
33583         doc/glibc-functions/wcsnlen.texi.
33584         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33585         doc/glibc-functions/wcsnrtombs.texi.
33586         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33587         doc/glibc-functions/wcsxfrm_l.texi.
33588         * doc/posix-functions/wctrans_l.texi: Renamed from
33589         doc/glibc-functions/wctrans_l.texi.
33590         * doc/posix-functions/wctype_l.texi: Renamed from
33591         doc/glibc-functions/wctype_l.texi.
33592         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33593         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33594         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33595         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33596         these subsections.
33597         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33598         Remove sections.
33599
33600 2008-12-14  Bruno Haible  <bruno@clisp.org>
33601
33602         Update doc for POSIX:2008.
33603         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33604
33605 2008-12-14  Bruno Haible  <bruno@clisp.org>
33606
33607         Update doc for POSIX:2008.
33608         * doc/pastposix-functions/bcmp.texi: Renamed from
33609         doc/posix-functions/bcmp.texi.
33610         * doc/pastposix-functions/bcopy.texi: Renamed from
33611         doc/posix-functions/bcopy.texi.
33612         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33613         doc/posix-functions/bsd_signal.texi.
33614         * doc/pastposix-functions/bzero.texi: Renamed from
33615         doc/posix-functions/bzero.texi.
33616         * doc/pastposix-functions/ecvt.texi: Renamed from
33617         doc/posix-functions/ecvt.texi.
33618         * doc/pastposix-functions/fcvt.texi: Renamed from
33619         doc/posix-functions/fcvt.texi.
33620         * doc/pastposix-functions/ftime.texi: Renamed from
33621         doc/posix-functions/ftime.texi.
33622         * doc/pastposix-functions/gcvt.texi: Renamed from
33623         doc/posix-functions/gcvt.texi.
33624         * doc/pastposix-functions/getcontext.texi: Renamed from
33625         doc/posix-functions/getcontext.texi.
33626         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33627         doc/posix-functions/gethostbyaddr.texi.
33628         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33629         doc/posix-functions/gethostbyname.texi.
33630         * doc/pastposix-functions/getwd.texi: Renamed from
33631         doc/posix-functions/getwd.texi.
33632         * doc/pastposix-functions/h_errno.texi: Renamed from
33633         doc/posix-functions/h_errno.texi.
33634         * doc/pastposix-functions/index.texi: Renamed from
33635         doc/posix-functions/index.texi.
33636         * doc/pastposix-functions/makecontext.texi: Renamed from
33637         doc/posix-functions/makecontext.texi.
33638         * doc/pastposix-functions/mktemp.texi: Renamed from
33639         doc/posix-functions/mktemp.texi.
33640         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33641         doc/posix-functions/pthread_attr_getstackaddr.texi.
33642         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33643         doc/posix-functions/pthread_attr_setstackaddr.texi.
33644         * doc/pastposix-functions/rindex.texi: Renamed from
33645         doc/posix-functions/rindex.texi.
33646         * doc/pastposix-functions/scalb.texi: Renamed from
33647         doc/posix-functions/scalb.texi.
33648         * doc/pastposix-functions/setcontext.texi: Renamed from
33649         doc/posix-functions/setcontext.texi.
33650         * doc/pastposix-functions/swapcontext.texi: Renamed from
33651         doc/posix-functions/swapcontext.texi.
33652         * doc/pastposix-functions/ualarm.texi: Renamed from
33653         doc/posix-functions/ualarm.texi.
33654         * doc/pastposix-functions/usleep.texi: Renamed from
33655         doc/posix-functions/usleep.texi.
33656         * doc/pastposix-functions/vfork.texi: Renamed from
33657         doc/posix-functions/vfork.texi.
33658         * doc/pastposix-functions/wcswcs.texi: Renamed from
33659         doc/posix-functions/wcswcs.texi.
33660         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33661         (Function Substitutes): Update.
33662
33663 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33664
33665         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33666         m4/strerror.m4.
33667
33668 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33669             Bruno Haible  <bruno@clisp.org>
33670
33671         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33672
33673 2008-12-13  Bruno Haible  <bruno@clisp.org>
33674
33675         * modules/strtoull (Depends-on): Remove unistd.
33676
33677 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33678
33679         * modules/strtoull (Depends-on): Add stdlib.
33680
33681 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33682
33683         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33684
33685 2008-12-10  Jim Meyering  <meyering@redhat.com>
33686
33687         gl_ASSERT: don't say assertions are disabled when they're not
33688         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33689         "checking whether to enable assertions... no", when they are in
33690         fact enabled.  This is solely a bug in the output of configure.
33691         In spite of saying "no", NDEBUG was not defined in that case.
33692         Also, as noted by Eric Blake, leave assertions enabled upon
33693         --enable-assert=INVALID.
33694
33695 2008-12-10  Bruno Haible  <bruno@clisp.org>
33696
33697         Change MODULES.html to refer to POSIX:2008 where possible.
33698         * MODULES.html.sh (POSIX2008_URL): New variable.
33699         (posix_headers): Remove sys/timeb, ucontext.
33700         (posix2001_headers): New variable.
33701         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33702         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33703         index, makecontext, mktemp, pthread_attr_getstackaddr,
33704         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33705         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33706         (posix2001_functions): New variable.
33707         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33708         otherwise.
33709
33710 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33711
33712         add missing include to parse-duration.c
33713         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33714         * modules/parse-duration (Depends-on): Add xalloc.
33715
33716         fix sed script reading maint.mk
33717         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33718         (syntax-check-rules): Use it.
33719
33720 2008-12-09  Bruno Haible  <bruno@clisp.org>
33721
33722         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33723         MacOS X 10.4/PowerPC.
33724         Reported by Simon Josefsson.
33725
33726 2008-12-08  Jim Meyering  <meyering@redhat.com>
33727
33728         work around mingw's lack of some S_IF definitions
33729         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33730         Reported by Simon Josefsson.
33731
33732 2008-12-08  Bruno Haible  <bruno@clisp.org>
33733
33734         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33735         applied to variables. Needed on MacOS X 10.4/PowerPC.
33736         Reported by Simon Josefsson.
33737
33738 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33739         and Eric Blake  <ebb9@byu.net>
33740
33741         assert: honor --enable-assert
33742         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33743         order to honor --enable-assert, rather than treating it as a
33744         synonym for --disable-assert.
33745
33746 2008-12-08  Jim Meyering  <meyering@redhat.com>
33747
33748         * lib/posixtm.c: Remove now-useless declaration of mktime.
33749
33750         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33751
33752 2008-12-07  Bruno Haible  <bruno@clisp.org>
33753
33754         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33755         test_once): Mark functions as static.
33756         * tests/test-tls.c (test_tls): Likewise.
33757
33758 2008-12-07  Bruno Haible  <bruno@clisp.org>
33759
33760         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33761         iconv_register_autodetect.
33762
33763 2008-12-07  Jim Meyering  <meyering@redhat.com>
33764
33765         posixtm.c: avoid a warning
33766         * lib/posixtm.c (posixtime): Don't initialize tm0.
33767         It's no longer needed to placate gcc4's -Wuninitialized,
33768         and the attempt to placate would elicit a new warning.
33769
33770         unicodeio.c: mark unused parameters
33771         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33772         (fallback_failure_callback): Likewise.
33773
33774 2008-12-07  Bruno Haible  <bruno@clisp.org>
33775
33776         * gnulib-tool (func_create_testdir): When building the tests
33777         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33778         Reported by Simon Josefsson.
33779
33780 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33781
33782         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33783
33784 2008-12-06  Bruno Haible  <bruno@clisp.org>
33785
33786         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33787         Suggested by Eric Blake.
33788
33789 2008-12-06  Bruno Haible  <bruno@clisp.org>
33790
33791         Fix a c-stack test failure on MacOS X.
33792         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33793         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33794         handler for SIGBUS as well.
33795         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33796         install a signal handler for SIGBUS as well.
33797         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33798
33799 2008-12-06  Bruno Haible  <bruno@clisp.org>
33800
33801         Advocacy documentation.
33802         * doc/gnulib-intro.texi (Benefits): New section.
33803         * doc/gnulib.texi: Update.
33804
33805 2008-12-06  Bruno Haible  <bruno@clisp.org>
33806
33807         Document the 'manywarnings' module.
33808         * doc/manywarnings.texi: New file.
33809         * doc/gnulib.texi: Include it.
33810
33811 2008-12-05  Eric Blake  <ebb9@byu.net>
33812
33813         tests: silence some gcc warnings
33814         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33815         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33816         type mismatches.
33817
33818 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33819             Bruno Haible  <bruno@clisp.org>
33820
33821         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33822
33823 2008-11-29  Jim Meyering  <meyering@redhat.com>
33824
33825         unicodeio.c: mark unused parameters
33826         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33827         (fallback_failure_callback): Likewise.
33828
33829         fts: fix a thinko
33830         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33831         (set_stat_type): Return S_IF*-valued "type" directly.
33832         Prompted by James Youngman's spotting a related bug.
33833         Confirmed by further testing through find.
33834
33835         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33836         * lib/fts.c (D_TYPE): Define.
33837         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33838         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33839         (s_ifmt_shift_bits): New function.
33840         (set_stat_type): New function.
33841         (fts_build): When not calling fts_stat, call set_stat_type
33842         to propagate dirent.d_type info to fts_read caller.
33843         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33844         fts_statp->st_mode type information may be valid.
33845
33846 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33847
33848         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33849         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33850         <sds@gnu.org>.
33851
33852 2008-11-20  Bruno Haible  <bruno@clisp.org>
33853
33854         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33855         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33856         INCLUDE_NEXT.
33857         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33858         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33859         * modules/math (Makefile.am): Substitute
33860         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33861         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33862
33863 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33864             Bruno Haible  <bruno@clisp.org>
33865
33866         * lib/stdint.in.h: Define all type macros so that their expansion is
33867         a single typedef'ed token. Fixes a compilation failure in Boost which
33868         does "using ::int8_t;".
33869
33870 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33871
33872         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33873         gl_MANYWARN_ALL_GCC.
33874         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33875         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33876         * modules/manywarnings: New file.
33877         * MODULES.html.sh: Mention manywarnings module.
33878
33879 2008-11-18  Bruno Haible  <bruno@clisp.org>
33880
33881         * doc/gnulib-tool.texi (Unit tests): New section.
33882
33883 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33884
33885         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33886         paths like 'lib/po/foo.po'.
33887
33888 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33889
33890         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33891         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33892
33893 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33894
33895         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33896         parameter works.
33897
33898 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33899
33900         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33901
33902 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33903
33904         * modules/parse-duration-tests: New file.
33905         * tests/test-parse-duration.sh: New file.
33906         * tests/test-parse-duration.c: New file.
33907
33908         New module 'parse-duration'.
33909         * lib/parse-duration.h: New file.
33910         * lib/parse-duration.c: New file.
33911         * modules/parse-duration: New file.
33912
33913 2008-11-17  Bruno Haible  <bruno@clisp.org>
33914
33915         * tests/test-select-out.sh: Comment out the first pipe test.
33916         Reported by Simon Josefsson.
33917
33918 2008-11-17  Bruno Haible  <bruno@clisp.org>
33919
33920         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33921         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33922         gl_HOSTENT.
33923
33924 2008-11-17  Bruno Haible  <bruno@clisp.org>
33925
33926         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33927         -lnetwork and -lnet. Needed for Haiku and BeOS.
33928
33929 2008-11-16  Bruno Haible  <bruno@clisp.org>
33930
33931         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33932
33933 2008-11-16  Bruno Haible  <bruno@clisp.org>
33934
33935         Avoid test failure on Haiku.
33936         * tests/test-fsync.c: Include <errno.h>.
33937         (main): Don't require that fsync (0) fails.
33938
33939 2008-11-15  Bruno Haible  <bruno@clisp.org>
33940
33941         New module 'hostent'.
33942         * modules/hostent: New file.
33943         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33944
33945 2008-11-15  Bruno Haible  <bruno@clisp.org>
33946
33947         New module 'servent'.
33948         * modules/servent: New file.
33949         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33950
33951 2008-11-15  Bruno Haible  <bruno@clisp.org>
33952
33953         Avoid generating same test program with two different rules.
33954         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
33955         test-frexp to test-frexp-nolibm.
33956         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
33957         test-frexpl to test-frexpl-nolibm.
33958
33959 2008-11-15  Bruno Haible  <bruno@clisp.org>
33960
33961         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
33962         $(FREXPL_LIBM).
33963
33964 2008-11-15  Bruno Haible  <bruno@clisp.org>
33965
33966         * lib/netdb.in.h: Activate the definitions also when the system's
33967         <netdb.h> has 'struct addrinfo'.
33968         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
33969         EAI_OVERFLOW or AI_NUMERICSERV.
33970         * doc/posix-headers/netdb.texi: Document the problem.
33971
33972 2008-11-15  Bruno Haible  <bruno@clisp.org>
33973
33974         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
33975
33976         Make the 'sched' module work on platforms where <sched.h> exists but
33977         is incomplete (such as Haiku).
33978         * lib/sched.in.h; Include the system's <sched.h> if it exists.
33979         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
33980         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
33981         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
33982         HAVE_STRUCT_SCHED_PARAM.
33983         * modules/sched (Depends-on): Add include_next.
33984         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
33985         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
33986         * doc/posix-headers/sched.texi: Document the issue.
33987
33988 2008-11-13  Jim Meyering  <meyering@redhat.com>
33989
33990         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
33991         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
33992         test would fail due to the difference in the Report bugs to ...
33993         line.  The expected address is empty, "<>", while the actual
33994         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
33995
33996 2008-11-12  Bruno Haible  <bruno@clisp.org>
33997
33998         lstat: don't compile lstat.c on systems lacking lstat
33999         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34000         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34001         Reported by Daniel P. Berrange via Jim Meyering.
34002
34003 2008-11-12  Jim Meyering  <meyering@redhat.com>
34004
34005         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34006
34007 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34008
34009         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34010         instead.
34011
34012 2008-11-12  Bruno Haible  <bruno@clisp.org>
34013
34014         * lib/unicodeio.c: Include unistr.h.
34015         (utf8_wctomb): Remove function.
34016         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34017
34018 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34019
34020         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34021         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34022         <bruno@clisp.org>.
34023         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34024
34025 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34026
34027         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34028         * doc/gnulib.texi: Add section for warnings.
34029
34030 2008-11-11  Bruno Haible  <bruno@clisp.org>
34031
34032         * lib/sockets.h: Add a comment.
34033
34034 2008-11-11  Karl Berry  <karl@gnu.org>
34035
34036         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34037
34038 2008-11-11  Eric Blake  <ebb9@byu.net>
34039
34040         fdl.texi: avoid git symlinks
34041         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34042
34043 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34044
34045         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34046
34047 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34048
34049         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34050         (gl_WARN_ADD): Substitute $2 if literal.
34051
34052 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34053
34054         * m4/warning.m4: Remove.
34055
34056 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34057
34058         * m4/warnings.m4: Almost complete rewrite. :-)
34059
34060 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34061
34062         * modules/warnings: New module.
34063         * m4/warnings.m4: New file.
34064         * MODULES.html.sh: Mention warnings module.
34065         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34066         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34067
34068 2008-11-10  Eric Blake  <ebb9@byu.net>
34069
34070         fdl.texi: make a symlink to the latest version
34071         * doc/standards.texi: Revert today's earlier change.
34072         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34073         * doc/fdl.texi: ...and replace this with a symlink to the newer
34074         fdl-1.3.texi.
34075
34076 2008-11-10  Bruno Haible  <bruno@clisp.org>
34077
34078         * tests/test-select-fd.c (main): Accept the result file name as fourth
34079         argument.
34080         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34081         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34082
34083 2008-11-10  Bruno Haible  <bruno@clisp.org>
34084
34085         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34086         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34087         as autoconf-substituted macros.
34088         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34089         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34090         gl_NETDB_H_DEFAULTS. Set these variables.
34091         * modules/netdb (Makefile.am): Substitute these variables.
34092
34093 2008-11-10  Eric Blake  <ebb9@byu.net>
34094
34095         standards.texi: include correct file for FDL 1.3
34096         * doc/standards.texi (GNU Free Documentation License): Change
34097         include file to pull in FDL 1.3, not 1.2.
34098
34099         fdl.texi: revert accidental change to license
34100         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34101
34102 2008-11-10  Bruno Haible  <bruno@clisp.org>
34103
34104         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34105         cross-compiling guesses also when the native compile gives no result.
34106
34107 2008-11-10  Bruno Haible  <bruno@clisp.org>
34108
34109         * lib/spawni.c (__spawni): Force variable into the stack.
34110
34111 2008-11-10  Bruno Haible  <bruno@clisp.org>
34112
34113         Add support for Haiku.
34114         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34115         glibc and BeOS, but also on Haiku.
34116         * lib/fpurge.c (fpurge): Likewise.
34117         * lib/freadable.c (freadable): Likewise.
34118         * lib/freadahead.c (freadahead): Likewise.
34119         * lib/freading.c (freading): Likewise.
34120         * lib/freadptr.c (freadptr): Likewise.
34121         * lib/freadseek.c (freadptrinc): Likewise.
34122         * lib/fseeko.c (rpl_fseeko): Likewise.
34123         * lib/fseterr.c (fseterr): Likewise.
34124         * lib/fwritable.c (fwritable): Likewise.
34125         * lib/fwriting.c (fwriting): Likewise.
34126         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34127
34128 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34129
34130         * lib/config.charset: Treat Haiku like BeOS.
34131
34132 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34133
34134         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34135         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34136
34137 2008-11-08  Bruno Haible  <bruno@clisp.org>
34138
34139         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34140         AC_CACHE_CHECK.
34141
34142 2008-11-08  Bruno Haible  <bruno@clisp.org>
34143
34144         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34145
34146 2008-11-08  Bruno Haible  <bruno@clisp.org>
34147
34148         * tests/test-select-fd.c: New file.
34149         * tests/test-select-in.sh: New file.
34150         * tests/test-select-out.sh: New file.
34151         * tests/test-select-stdin.c: New file.
34152         * modules/select-tests (Files): Add the new files.
34153         (Depends-on): Add gettimeofday.
34154         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34155         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34156         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34157
34158 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34159             Bruno Haible  <bruno@clisp.org>
34160
34161         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34162
34163 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34164
34165         * build-aux/pmccabe2html: Added support for C++ source files.
34166
34167 2008-11-05  Ben Pfaff  <blp@gnu.org>
34168
34169         Fix lib/close.c build on Windows.
34170         * modules/close (Files): Add lib/w32sock.h.
34171
34172 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34173
34174         Accept Bison's NEWS format.
34175         * build-aux/announce-gen (print_news_deltas): Tweak
34176         $re_prefix.
34177
34178 2008-11-04  Bruno Haible  <bruno@clisp.org>
34179
34180         * modules/random_r (Maintainer): Add glibc.
34181
34182 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34183
34184         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34185         by karl@freefriends.org (Karl Berry).
34186         * doc/alloca.texi: Likewise.
34187         * doc/c-ctype.texi: Likewise.
34188         * doc/c-strcase.texi: Likewise.
34189         * doc/c-strcaseeq.texi: Likewise.
34190         * doc/c-strcasestr.texi: Likewise.
34191         * doc/c-strstr.texi: Likewise.
34192         * doc/c-strtod.texi: Likewise.
34193         * doc/c-strtold.texi: Likewise.
34194         * doc/ctime.texi: Likewise.
34195         * doc/error.texi: Likewise.
34196         * doc/fdl.texi: Likewise.
34197         * doc/gcd.texi: Likewise.
34198         * doc/getdate.texi: Likewise.
34199         * doc/gnulib-intro.texi: Likewise.
34200         * doc/gnulib-tool.texi: Likewise.
34201         * doc/gnulib.texi: Likewise.
34202         * doc/inet_ntoa.texi: Likewise.
34203         * doc/maintain.texi: Likewise.
34204         * doc/make-stds.texi: Likewise.
34205         * doc/quote.texi: Likewise.
34206         * doc/regexprops-generic.texi: Likewise.
34207         * doc/standards.texi: Likewise.
34208         * doc/verify.texi: Likewise.
34209         * doc/visibility.texi: Likewise.
34210         * doc/gnulib.texi (GNU Free Documentation License): Include
34211         fdl-1.3.texi instead of fdl.texi.
34212
34213 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34214
34215         * doc/fdl-1.3.texi: New file, from
34216         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34217         * modules/fdl-1.3: Add.
34218         * MODULES.html.sh: Add fdl-1.3.
34219
34220 2008-11-03  Bruno Haible  <bruno@clisp.org>
34221
34222         Make determination of absolute name of header file work with AIX xlc.
34223         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34224         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34225         preprocessing.
34226         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34227         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34228
34229 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34230
34231         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34232         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34233         <ludo@gnu.org>.
34234
34235 2008-11-02  Bruno Haible  <bruno@clisp.org>
34236
34237         Mark 'strpbrk' obsolete.
34238         * modules/strpbrk (Status, Notice): New sections.
34239         * modules/strtok_r (Depends-on): Add strpbrk.
34240
34241 2008-11-02  Bruno Haible  <bruno@clisp.org>
34242
34243         Mark 'strdup' obsolete.
34244         * modules/strdup (Status, Notice): New sections.
34245         * modules/findprog (Depends-on): Add strdup.
34246         * modules/getaddrinfo (Depends-on): Likewise.
34247         * modules/localename (Depends-on): Likewise.
34248         * modules/relocatable-lib (Depends-on): Likewise.
34249         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34250         * modules/relocatable-prog (Depends-on): Likewise.
34251         * modules/trim (Depends-on): Likewise.
34252         * modules/unictype/gen-ctype (Depends-on): Likewise.
34253         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34254
34255 2008-11-02  Bruno Haible  <bruno@clisp.org>
34256
34257         Mark 'strcspn' obsolete.
34258         * modules/strcspn (Status, Notice): New sections.
34259
34260 2008-11-02  Bruno Haible  <bruno@clisp.org>
34261
34262         Mark 'rmdir' obsolete.
34263         * modules/rmdir (Status, Notice): New sections.
34264         * modules/clean-temp (Depends-on): Add rmdir.
34265         * modules/openat (Depends-on): Likewise.
34266
34267 2008-11-02  Bruno Haible  <bruno@clisp.org>
34268
34269         Mark 'raise' obsolete.
34270         * modules/raise (Status, Notice): New sections.
34271         (Include): Specify <signal.h>.
34272         * modules/stdio (Depends-on): Add raise.
34273         * modules/write (Depends-on): Likewise.
34274
34275 2008-11-02  Bruno Haible  <bruno@clisp.org>
34276
34277         Mark 'memset' obsolete.
34278         * modules/memset (Status, Notice): New sections.
34279
34280 2008-11-02  Bruno Haible  <bruno@clisp.org>
34281
34282         Mark 'memmove' obsolete.
34283         * modules/memmove (Status, Notice): New sections.
34284         * modules/argp (Depends-on): Add memmove.
34285         * modules/argz (Depends-on): Likewise.
34286         * modules/canonicalize (Depends-on): Likewise.
34287         * modules/canonicalize-lgpl (Depends-on): Likewise.
34288         * modules/fts (Depends-on): Likewise.
34289         * modules/getcwd (Depends-on): Likewise.
34290         * modules/human (Depends-on): Likewise.
34291         * modules/regex (Depends-on): Likewise.
34292         * modules/striconveh (Depends-on): Likewise.
34293         * modules/trim (Depends-on): Likewise.
34294         * modules/unistr/u8-move (Depends-on): Likewise.
34295         * modules/unistr/u16-move (Depends-on): Likewise.
34296         * modules/unistr/u32-move (Depends-on): Likewise.
34297
34298 2008-11-02  Bruno Haible  <bruno@clisp.org>
34299
34300         Mark 'memcpy' obsolete.
34301         * modules/memcpy (Status, Notice): New sections.
34302
34303 2008-11-02  Bruno Haible  <bruno@clisp.org>
34304
34305         Mark 'memcmp' obsolete.
34306         * modules/memcmp (Status, Notice): New sections.
34307         * modules/argmatch (Depends-on): Add memchr.
34308         * modules/backupfile (Depends-on): Likewise.
34309         * modules/c-strcasestr (Depends-on): Likewise.
34310         * modules/crypto/des (Depends-on): Likewise.
34311         * modules/csharpcomp (Depends-on): Likewise.
34312         * modules/fnmatch (Depends-on): Likewise.
34313         * modules/git-merge-changelog (Depends-on): Likewise.
34314         * modules/isnand (Depends-on): Likewise.
34315         * modules/isnand-nolibm (Depends-on): Likewise.
34316         * modules/isnanf (Depends-on): Likewise.
34317         * modules/isnanf-nolibm (Depends-on): Likewise.
34318         * modules/isnanl (Depends-on): Likewise.
34319         * modules/isnanl-nolibm (Depends-on): Likewise.
34320         * modules/mbchar (Depends-on): Likewise.
34321         * modules/memcoll (Depends-on): Likewise.
34322         * modules/quotearg (Depends-on): Likewise.
34323         * modules/regex (Depends-on): Likewise.
34324         * modules/relocatable-prog (Depends-on): Likewise.
34325         * modules/same (Depends-on): Likewise.
34326         * modules/signbit (Depends-on): Likewise.
34327         * modules/strcasestr-simple (Depends-on): Likewise.
34328         * modules/unictype/gen-ctype (Depends-on): Likewise.
34329         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34330         * modules/uniname/uniname (Depends-on): Likewise.
34331         * modules/unistr/u8-cmp (Depends-on): Likewise.
34332
34333 2008-11-02  Bruno Haible  <bruno@clisp.org>
34334
34335         Mark 'memchr' obsolete.
34336         * modules/memchr (Status, Notice): New sections.
34337         * modules/argp (Depends-on): Add memchr.
34338         * modules/base64 (Depends-on): Likewise.
34339         * modules/c-strcasestr (Depends-on): Likewise.
34340         * modules/chdir-long (Depends-on): Likewise.
34341         * modules/fnmatch (Depends-on): Likewise.
34342         * modules/getsubopt (Depends-on): Likewise.
34343         * modules/git-merge-changelog (Depends-on): Likewise.
34344         * modules/glob (Depends-on): Likewise.
34345         * modules/strcasestr-simple (Depends-on): Likewise.
34346         * modules/strnlen (Depends-on): Likewise.
34347
34348 2008-11-02  Bruno Haible  <bruno@clisp.org>
34349
34350         Mark 'atexit' obsolete.
34351         * modules/atexit (Status, Notice): New sections.
34352         * modules/chdir-long (Depends-on): Add atexit.
34353         * modules/wait-process (Depends-on): Likewise.
34354
34355 2008-11-02  Bruno Haible  <bruno@clisp.org>
34356
34357         * gnulib-tool: New option --with-obsolete.
34358         (func_usage): Document it.
34359         (func_modules_transitive_closure): Drop obsolete dependencies if
34360         incobsolete is not true.
34361         (func_import): Read and save the incobsolete variable to the cache.
34362
34363 2008-11-02  Bruno Haible  <bruno@clisp.org>
34364
34365         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34366         * gnulib-tool: New option --extract-status.
34367         (func_usage): Document it.
34368         (sed_extract_prog): Recognize it.
34369         (func_get_status): New function.
34370
34371 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34372
34373         * modules/sockets (License): Change from LGPL to LGPLv2+.
34374
34375 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34376
34377         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34378
34379 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34380
34381         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34382         Mention times and sys_times.
34383         * modules/sys_times, modules/sys_times-tests: New modules.
34384         * modules/times, modules/times-tests: Likewise
34385         * m4/sys_times_h.m4: New file.
34386         * lib/sys_times.in.h: Likewise
34387         * lib/times.c: Likewise.
34388         * tests/test-sys_times.c: Likewise.
34389         * tests/test-times.c: Likewise.
34390         * doc/posix-headers/sys_times.texi: Update.
34391         * doc/posix-functions/times.texi: Update.
34392
34393 2008-10-28  Jim Meyering  <meyering@redhat.com>
34394
34395         * modules/tempname (Depends-on): Add lstat.
34396
34397         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34398
34399 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34400
34401         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34402         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34403         using idiom used elsewhere in gnulib.
34404
34405 2008-10-27  Jim Meyering  <meyering@redhat.com>
34406
34407         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34408
34409 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34410
34411         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34412         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34413         programs.
34414         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34415
34416 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34417
34418         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34419
34420 2008-10-27  Bruno Haible  <bruno@clisp.org>
34421
34422         * tests/test-lstat.c: Include <stdio.h>.
34423
34424 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34425
34426         * modules/lstat-tests: New module.
34427         * tests/test-lstat.c: New file.
34428
34429 2008-10-26  Jim Meyering  <meyering@redhat.com>
34430
34431         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34432
34433 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34434             Bruno Haible  <bruno@clisp.org>
34435
34436         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34437         * modules/configmake (Include): Add a note that the include must come
34438         after all system headers.
34439         * lib/javaversion.c: Include configmake.h after all other includes.
34440
34441 2008-10-26  Bruno Haible  <bruno@clisp.org>
34442
34443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34444         HAVE_STRUCT_RANDOM_DATA to 1.
34445         (gl_STDLIB_H): Simplify.
34446
34447 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34448
34449         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34450         substitute HAVE_STRUCT_RANDOM_DATA.
34451         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34452         random_data.
34453         * modules/stdlib (Makefile.am): Substitute
34454         HAVE_STRUCT_RANDOM_DATA.
34455
34456 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34457
34458         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34459         * doc/gnulib-intro.texi (Copyright): Likewise.
34460
34461 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34462
34463         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34464         findings.
34465
34466 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34467             Bruno Haible  <bruno@clisp.org>
34468
34469         * lib/unistd.in.h: Include <winsock2.h>.
34470         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34471         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34472         Provide dummy declarations.
34473         (gethostname): Override.
34474         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34475         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34476         gl_PREREQ_SYS_H_WINSOCK2.
34477         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34478         * doc/posix-functions/gethostname.texi: More details.
34479
34480 2008-10-25  Bruno Haible  <bruno@clisp.org>
34481
34482         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34483         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34484         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34485
34486         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34487         here ...
34488         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34489         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34490         gl_UNISTD_H_DEFAULTS.
34491
34492 2008-10-25  Eric Blake  <ebb9@byu.net>
34493
34494         signbit: avoid spurious compiler failure
34495         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34496         declarations inside function.
34497
34498 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34499             Bruno Haible  <bruno@clisp.org>
34500
34501         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34502         * modules/random_r (Depends-on): Add stdint.
34503
34504 2008-10-24  Bruno Haible  <bruno@clisp.org>
34505
34506         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34507         Eggert.
34508         * modules/strerror (License): Likewise.
34509
34510 2008-10-24  Jim Meyering  <meyering@redhat.com>
34511
34512         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34513         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34514
34515 2008-10-24  Eric Blake  <ebb9@byu.net>
34516
34517         getgroups: fix compilation when getgroups is available
34518         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34519         but with <config.h> override of getgroups disabled.
34520
34521 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34522
34523         * doc/gnulib.texi (Header files): Add note about C++ problems.
34524         Explained by Bruno Haible <bruno@clisp.org>.
34525
34526 2008-10-23  Bruno Haible  <bruno@clisp.org>
34527
34528         Define a dummy SA_NODEFER macro on Interix.
34529         * lib/signal.in.h (SA_NODEFER): Define fallback.
34530         Reported by Aleksey Cheusov <cheusov@tut.by> via
34531         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34532
34533 2008-10-23  Bruno Haible  <bruno@clisp.org>
34534
34535         * modules/freadahead (License): Change to LGPLv2+.
34536         Suggested by Simon Josefsson.
34537
34538 2008-10-23  Jim Meyering  <meyering@redhat.com>
34539
34540         random_r: new module
34541         * modules/random_r: New file.
34542         * m4/random_r.m4: New file.
34543         * lib/random_r.c: New file, from glibc.
34544         * modules/random_r-tests: New file.
34545         * tests/test-random_r.c: New file.
34546         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34547          Declare.
34548         (RAND_MAX): Define.
34549         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34550         * modules/stdlib: Substitute them, too.
34551         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34552         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34553         * doc/glibc-functions/random_r.texi: Likewise.
34554         * doc/glibc-functions/setstate_r.texi: Likewise.
34555         * doc/glibc-functions/srandom_r.texi: Likewise.
34556         * config/srclist.txt: Mention it.
34557
34558 2008-10-23  David Lutterkort  <lutter@redhat.com>
34559
34560         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34561         link requirement
34562
34563 2008-10-23  Jim Meyering  <meyering@redhat.com>
34564
34565         selinux-h: mark parameters of stub functions as intentionally unused
34566         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34567         * lib/se-context.in.h: Likewise.
34568
34569 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34570
34571         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34572
34573 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34574
34575         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34576
34577 2008-10-22  Eric Blake  <ebb9@byu.net>
34578
34579         glthread/thread: avoid compiler warning
34580         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34581         Add unreachable abort to silence compiler.
34582
34583 2008-10-22  Eric Blake  <ebb9@byu.net>
34584
34585         netdb: also supply struct addrinfo for cygwin 1.5.x
34586         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34587         older cygwin.
34588         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34589         cygwin.
34590         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34591
34592 2008-10-22  Bruno Haible  <bruno@clisp.org>
34593
34594         * users.txt: Update entry about pspp.
34595
34596 2008-10-21  Bruno Haible  <bruno@clisp.org>
34597
34598         Simplification.
34599         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34600         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34601
34602         Simplification.
34603         * lib/ioctl.c (ioctl): Don't undefine.
34604         * lib/socket.c (socket): Don't undefine.
34605
34606         Remove unused module indicator macros.
34607         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34608         GNULIB_$1 as a C macro.
34609
34610         * doc/posix-functions/close.texi: Undo last change.
34611         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34612         Windows platforms.
34613
34614 2008-10-21  Bruno Haible  <bruno@clisp.org>
34615
34616         Add gethostname() declaration to <unistd.h>.
34617         * lib/unistd.in.h (gethostname): New declaration.
34618         * lib/gethostname.c: Include <unistd.h>.
34619         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34620         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34622         and HAVE_GETHOSTNAME.
34623         * modules/gethostname (Depends-on): Add unistd.
34624         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34625         (Include): Specify <unistd.h>.
34626         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34627         HAVE_GETHOSTNAME.
34628         * tests/test-gethostname.c: Include <unistd.h> first.
34629
34630 2008-10-21  Bruno Haible  <bruno@clisp.org>
34631
34632         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34633         * modules/select-tests (Depends-on): Likewise.
34634         Reported by Simon Josefsson.
34635
34636 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34637
34638         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34639         * lib/accept.c: New file, based on winsock.c.
34640         * lib/bind.c: New file, based on winsock.c.
34641         * lib/connect.c: New file, based on winsock.c.
34642         * lib/getpeername.c: New file, based on winsock.c.
34643         * lib/getsockname.c: New file, based on winsock.c.
34644         * lib/getsockopt.c: New file, based on winsock.c.
34645         * lib/ioctl.c: New file, based on winsock.c.
34646         * lib/listen.c: New file, based on winsock.c.
34647         * lib/recv.c: New file, based on winsock.c.
34648         * lib/recvfrom.c: New file, based on winsock.c.
34649         * lib/send.c: New file, based on winsock.c.
34650         * lib/sendto.c: New file, based on winsock.c.
34651         * lib/setsockopt.c: New file, based on winsock.c.
34652         * lib/shutdown.c: New file, based on winsock.c.
34653         * lib/socket.c: New file, based on winsock.c.
34654         * lib/w32sock.h: New file, based on winsock.c.
34655         * lib/winsock.c: Remove file.
34656         * modules/accept: Likewise.
34657         * modules/bind: Likewise.
34658         * modules/connect: Likewise.
34659         * modules/getpeername: Likewise.
34660         * modules/getsockname: Likewise.
34661         * modules/getsockopt: Likewise.
34662         * modules/ioctl: Likewise.
34663         * modules/listen: Likewise.
34664         * modules/recv: Likewise.
34665         * modules/recvfrom: Likewise.
34666         * modules/send: Likewise.
34667         * modules/sendto: Likewise.
34668         * modules/setsockopt: Likewise.
34669         * modules/shutdown: Likewise.
34670         * modules/socket: Use socket.c instead of winsock.c.
34671         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34672         * doc/posix-functions/accept.texi: Doc fix.
34673         * doc/posix-functions/bind.texi: Doc fix.
34674         * doc/posix-functions/close.texi: Doc fix.
34675         * doc/posix-functions/connect.texi: Doc fix.
34676         * doc/posix-functions/getpeername.texi: Doc fix.
34677         * doc/posix-functions/getsockname.texi: Doc fix.
34678         * doc/posix-functions/getsockopt.texi: Doc fix.
34679         * doc/posix-functions/ioctl.texi: Doc fix.
34680         * doc/posix-functions/listen.texi: Doc fix.
34681         * doc/posix-functions/recv.texi: Doc fix.
34682         * doc/posix-functions/recvfrom.texi: Doc fix.
34683         * doc/posix-functions/send.texi: Doc fix.
34684         * doc/posix-functions/sendto.texi: Doc fix.
34685         * doc/posix-functions/setsockopt.texi: Doc fix.
34686         * doc/posix-functions/shutdown.texi: Doc fix.
34687         * doc/posix-functions/socket.texi: Doc fix.
34688
34689 2008-10-20  Bruno Haible  <bruno@clisp.org>
34690
34691         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34692         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34693         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34694         as an alias for SIGABRT.
34695         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34696         (sigaction): Map it to SIGABRT.
34697         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34698
34699 2008-10-20  Bruno Haible  <bruno@clisp.org>
34700
34701         * lib/fts.c: Don't include lstat.h.
34702         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34703
34704         Move the lstat() declaration to <sys/stat.h>.
34705         * lib/lstat.h: Remove file.
34706         * lib/sys_stat.in.h: Add special invocation convention.
34707         (lstat): New declaration.
34708         * lib/lstat.c (orig_lstat): New function.
34709         (rpl_lstat): Use orig_lstat instead of lstat.
34710         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34711         AC_C_INLINE. Set REPLACE_LSTAT.
34712         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34713         and REPLACE_LSTAT.
34714         * modules/lstat (Files): Remove lib/lstat.h.
34715         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34716         (Include): Specify <sys/stat.h> instead of lstat.h.
34717         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34718         REPLACE_LSTAT.
34719         * NEWS: Mention the change.
34720
34721 2008-10-20  Bruno Haible  <bruno@clisp.org>
34722
34723         * modules/posix_spawn-tests: New file.
34724         * tests/test-posix_spawn3.c: New file.
34725
34726 2008-10-20  Bruno Haible  <bruno@clisp.org>
34727
34728         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34729         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34730         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34731         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34732         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34733
34734 2008-10-20  Bruno Haible  <bruno@clisp.org>
34735
34736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34737         of posix_spawn on AIX 5.3.
34738
34739 2008-10-20  Bruno Haible  <bruno@clisp.org>
34740
34741         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34742
34743 2008-10-20  Bruno Haible  <bruno@clisp.org>
34744
34745         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34746         of AC_LANG_PROGRAM.
34747
34748 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34749
34750         * lib/netdb.in.h: Don't define GNU specific constants until they
34751         are supported or needed.  Reported by Bruno Haible
34752         <bruno@clisp.org>.
34753
34754 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34755
34756         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34757
34758 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34759
34760         * lib/getaddrinfo.h: Remove file.
34761         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34762         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34763         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34764         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34765         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34766         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34767         * tests/test-getaddrinfo.c: Likewise.
34768         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34769         * NEWS: Mention change.
34770
34771 2008-10-19  Bruno Haible  <bruno@clisp.org>
34772
34773         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34774
34775 2008-10-19  Bruno Haible  <bruno@clisp.org>
34776
34777         * lib/wait-process.c: Include simply <sys/wait.h>.
34778         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34779         WIFSTOPPED): Remove fallback definitions.
34780         * modules/wait-process (Depends-on): Add sys_wait.
34781
34782         New module 'sys_wait'.
34783         * modules/sys_wait: New file.
34784         * lib/sys_wait.in.h: New file, partially copied from
34785         lib/wait-process.c.
34786         * m4/sys_wait_h.m4: New file.
34787         * doc/posix-headers/sys_wait.texi: Mention the new module.
34788
34789 2008-10-19  Bruno Haible  <bruno@clisp.org>
34790
34791         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34792
34793 2008-10-19  Bruno Haible  <bruno@clisp.org>
34794
34795         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34796         * lib/wait-process.c (WAIT_T): Remove type.
34797         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34798         (wait_subprocess): Update.
34799
34800 2008-10-19  Bruno Haible  <bruno@clisp.org>
34801
34802         New module 'atoll'.
34803         * modules/atoll: New file.
34804         * lib/stdlib.in.h (atoll): New declaration.
34805         * lib/atoll.c: New file, from glibc with modifications.
34806         * m4/atoll.m4: New file.
34807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34808         HAVE_ATOLL.
34809         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34810         * doc/posix-functions/atoll.texi: Mention the new module.
34811
34812 2008-10-19  Bruno Haible  <bruno@clisp.org>
34813
34814         Add strtoull() declaration to <stdlib.h>.
34815         * lib/stdlib.in.h (strtoull): New declaration.
34816         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34817         Set HAVE_STRTOULL.
34818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34819         HAVE_STRTOULL.
34820         * modules/strtoull (Depends-on): Add stdlib.
34821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34822         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34823         HAVE_STRTOULL.
34824
34825 2008-10-19  Bruno Haible  <bruno@clisp.org>
34826
34827         Add strtoll() declaration to <stdlib.h>.
34828         * lib/stdlib.in.h (strtoll): New declaration.
34829         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34830         Set HAVE_STRTOLL.
34831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34832         HAVE_STRTOLL.
34833         * modules/strtoll (Depends-on): Add stdlib.
34834         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34835         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34836
34837 2008-10-19  Bruno Haible  <bruno@clisp.org>
34838
34839         * modules/bcopy (Depends-on): Add strings.
34840         (Include): Specify <strings.h>.
34841
34842 2008-10-19  Bruno Haible  <bruno@clisp.org>
34843
34844         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34845
34846 2008-10-19  Bruno Haible  <bruno@clisp.org>
34847
34848         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34849         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34850         mingw.
34851
34852 2008-10-19  Bruno Haible  <bruno@clisp.org>
34853
34854         * lib/atanl.c: Don't include isnanl.h.
34855         * lib/cosl.c: Likewise.
34856         * lib/ldexpl.c: Likewise.
34857         * lib/logl.c: Likewise.
34858         * lib/sinl.c: Likewise.
34859         * lib/sqrtl.c: Likewise.
34860         * lib/tanl.c: Likewise.
34861
34862         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34863         * lib/isnanf.h: Remove file.
34864         * lib/isnand.h: Remove file.
34865         * lib/isnanl.h: Remove file.
34866         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34867         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34868         macros.
34869         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34870         HAVE_ISNANF, don't define it as a C macro.
34871         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34872         HAVE_ISNAND, don't define it as a C macro.
34873         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34874         HAVE_ISNANL, don't define it as a C macro.
34875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34876         HAVE_ISNAN[FDL].
34877         * modules/isnanf (Files): Remove lib/isnanf.h.
34878         (Depends-on): Add math.
34879         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34880         (Include): Specify <math.h> instead of isnanf.h.
34881         * modules/isnand (Files): Remove lib/isnand.h.
34882         (Depends-on): Add math.
34883         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34884         (Include): Specify <math.h> instead of isnand.h.
34885         * modules/isnanl (Files): Remove lib/isnanl.h.
34886         (Depends-on): Add math.
34887         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34888         (Include): Specify <math.h> instead of isnanl.h.
34889         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34890         HAVE_ISNAN[FDL].
34891         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34892         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34893         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34894         * NEWS: Mention the change.
34895
34896 2008-10-18  Bruno Haible  <bruno@clisp.org>
34897
34898         Add getusershell(), setusershell(), endusershell() declarations to
34899         <unistd.h>.
34900         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34901         declarations.
34902         * lib/getusershell.c: Include unistd.h.
34903         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34904         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34905         HAVE_GETUSERSHELL.
34906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34907         and HAVE_GETUSERSHELL.
34908         * modules/getusershell (Depends-on): Add unistd, extensions.
34909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34910         (Include): Specify <unistd.h>.
34911         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34912         HAVE_GETUSERSHELL.
34913
34914 2008-10-18  Bruno Haible  <bruno@clisp.org>
34915
34916         Add a getloadavg() declaration to <stdlib.h>.
34917         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34918         getloadavg declaration.
34919         (getloadavg): New declaration.
34920         * lib/getloadavg.c: Include <stdlib.h> first.
34921         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34922         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34923         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34925         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34926         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34927         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34928         (Include): Specify <stdlib.h>.
34929         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34930         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34931
34932 2008-10-18  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/dirchownmod.c: Don't include lchmod.h.
34935
34936         Move the lchmod() declaration to <sys/stat.h>.
34937         * lib/lchmod.h: Remove file.
34938         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34939         (lchmod): New declaration, moved here from lib/lchown.h.
34940         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34941         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34942         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34943         and HAVE_LCHMOD.
34944         * modules/lchmod (Files): Remove lib/lchmod.h.
34945         (Depends-on): Add sys_stat, extensions.
34946         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34947         (Include): Specify <sys/stat.h> instead of lchmod.h.
34948         * modules/sys_stat (Depends-on): Add link-warning.
34949         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34950         definition of GL_LINK_WARNING.
34951         * NEWS: Mention the change.
34952
34953 2008-10-18  Bruno Haible  <bruno@clisp.org>
34954
34955         * lib/fchdir.c: Don't include dirfd.h.
34956         * lib/fts.c: Likewise.
34957         * lib/getcwd.c: Likewise.
34958         * lib/glob.c: Likewise.
34959
34960         Move the dirfd() declaration to <dirent.h>.
34961         * lib/dirfd.h: Remove file.
34962         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
34963         (dirfd): New declaration.
34964         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
34965         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
34966         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
34967         HAVE_DECL_DIRFD.
34968         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
34969         HAVE_DECL_DIRFD.
34970         * modules/dirfd (Files): Remove lib/dirfd.h.
34971         (Depends-on): Add dirent, extensions.
34972         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
34973         (Include): Specify <dirent.h> instead of dirfd.h.
34974         * modules/dirent (Depends-on): Add link-warning.
34975         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
34976         definition of GL_LINK_WARNING.
34977         * NEWS: Mention the change.
34978
34979 2008-10-18  Bruno Haible  <bruno@clisp.org>
34980
34981         Move the euidaccess() declaration to <unistd.h>.
34982         * lib/euidaccess.h: Remove file.
34983         * lib/unistd.in.h (euidaccess): New declaration.
34984         * lib/euidaccess.c: Don't include euidaccess.h.
34985         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
34986         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
34987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
34988         and HAVE_EUIDACCESS.
34989         * modules/euidaccess (Files): Remove lib/euidaccess.h.
34990         (Depends-on): Add unistd.
34991         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34992         (Include): Specify <unistd.h> instead of euidaccess.h.
34993         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
34994         HAVE_EUIDACCESS.
34995         * NEWS: Mention the change.
34996
34997 2008-10-18  Bruno Haible  <bruno@clisp.org>
34998
34999         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35000
35001         Move the getdomainname() declaration to <unistd.h>.
35002         * lib/getdomainname.h: Remove file.
35003         * lib/unistd.in.h (getdomainname): New declaration.
35004         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35005         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35006         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35007         HAVE_GETDOMAINNAME.
35008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35009         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35010         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35011         (Depends-on): Add unistd, extensions.
35012         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35013         (Includes): Specify <unistd.h> instead of getdomainname.h.
35014         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35015         HAVE_GETDOMAINNAME.
35016         * NEWS: Mention the change.
35017
35018 2008-10-18  Bruno Haible  <bruno@clisp.org>
35019
35020         * modules/dirent: New file.
35021         * m4/dirent_h.m4: New file.
35022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35023         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35024         * modules/fchdir (Files): Remove lib/dirent.in.h.
35025         (Depends-on): Add dirent.
35026         (Makefile.am): Move rules to modules/dirent.
35027         * doc/posix-headers/dirent.texi: Mention the new module.
35028
35029 2008-10-18  Bruno Haible  <bruno@clisp.org>
35030
35031         Avoid -Wunused-parameter warnings in public gnulib header files.
35032         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35033         macro.
35034         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35035
35036 2008-10-18  Bruno Haible  <bruno@clisp.org>
35037
35038         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35039         * doc/glibc-functions/error.texi: Mention the module 'error'.
35040         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35041         * doc/glibc-functions/getdomainname.texi: Mention the module
35042         'getdomainname'.
35043         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35044         * doc/glibc-functions/getpagesize.texi: Mention the module
35045         'getpagesize'.
35046         * doc/glibc-functions/getusershell.texi: Mention the module
35047         'getusershell'.
35048         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35049         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35050         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35051         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35052         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35053         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35054         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35055         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35056         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35057         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35058         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35059         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35060         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35061         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35062
35063 2008-10-17  Bruno Haible  <bruno@clisp.org>
35064
35065         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35066         HP-UX and IRIX, use -0.0L.
35067         * tests/test-ceill.c (minus_zero): Likewise.
35068         * tests/test-floorl.c (minus_zero): Likewise.
35069         * tests/test-frexpl.c (minus_zero): Likewise.
35070         * tests/test-isnan.c (minus_zerol): Likewise.
35071         * tests/test-isnanl.h (minus_zero): Likewise.
35072         * tests/test-ldexpl.c (minus_zero): Likewise.
35073         * tests/test-roundl.c (minus_zero): Likewise.
35074         * tests/test-signbit.c (minus_zerol): Likewise.
35075         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35076         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35077         * tests/test-truncl.c (minus_zero): Likewise.
35078         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35079         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35080         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35081         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35082
35083 2008-10-17  Bruno Haible  <bruno@clisp.org>
35084
35085         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35086         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35087         that it gets activated only for gcc >= 3.0.
35088         * lib/dirent.in.h: Likewise.
35089         * lib/errno.in.h: Likewise.
35090         * lib/fcntl.in.h: Likewise.
35091         * lib/float.in.h: Likewise.
35092         * lib/iconv.in.h: Likewise.
35093         * lib/inttypes.in.h: Likewise.
35094         * lib/locale.in.h: Likewise.
35095         * lib/math.in.h: Likewise.
35096         * lib/netdb.in.h: Likewise.
35097         * lib/netinet_in.in.h: Likewise.
35098         * lib/search.in.h: Likewise.
35099         * lib/signal.in.h: Likewise.
35100         * lib/spawn.in.h: Likewise.
35101         * lib/stdarg.in.h: Likewise.
35102         * lib/stdint.in.h: Likewise.
35103         * lib/stdio.in.h: Likewise.
35104         * lib/stdlib.in.h: Likewise.
35105         * lib/string.in.h: Likewise.
35106         * lib/strings.in.h: Likewise.
35107         * lib/sys_file.in.h: Likewise.
35108         * lib/sys_ioctl.in.h: Likewise.
35109         * lib/sys_select.in.h: Likewise.
35110         * lib/sys_socket.in.h: Likewise.
35111         * lib/sys_stat.in.h: Likewise.
35112         * lib/sys_time.in.h: Likewise.
35113         * lib/sysexits.in.h: Likewise.
35114         * lib/time.in.h: Likewise.
35115         * lib/unistd.in.h: Likewise.
35116         * lib/wchar.in.h: Likewise.
35117         * lib/wctype.in.h: Likewise.
35118         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35119
35120 2008-10-17  Jim Meyering  <meyering@redhat.com>
35121
35122         ignore-value: don't depend on inline module
35123         * modules/ignore-value (Depends-on): Remove 'inline'.
35124         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35125         Suggestion from Bruno Haible.
35126
35127 2008-10-17  Bruno Haible  <bruno@clisp.org>
35128
35129         New implementation of condition variables for Win32.
35130         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35131         (gl_linked_waitqueue_t): New type.
35132         (gl_cond_t): Use it.
35133         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35134         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35135         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35136         (glthread_cond_init_func, glthread_cond_wait_func,
35137         glthread_cond_timedwait_func, glthread_cond_signal_func,
35138         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35139         Reimplemented on the basis of gl_linked_waitqueue_t.
35140         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35141         gl_waitqueue_t.
35142         (gl_rwlock_t): Update.
35143         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35144
35145 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35146
35147         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35148         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35149
35150 2008-10-17  Jim Meyering  <meyering@redhat.com>
35151
35152         ignore-value: new module
35153         * modules/ignore-value: New file.
35154         * lib/ignore-value.h: New file.
35155         * MODULES.html.sh (Compiler warning management): New section,
35156         just for this module.  More to come.
35157
35158 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35159
35160         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35161         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35162         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35163
35164 2008-10-16  Jim Meyering  <meyering@redhat.com>
35165
35166         openat-die.c: avoid 'no previous prototype' warning
35167         * lib/openat-die.c: Include "openat.h".
35168         Reported by Reuben Thomas <rrt@sc3d.org>.
35169
35170 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35171
35172         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35173         * lib/netdb.in.h: Fix typo.
35174         Reported by Bruno Haible  <bruno@clisp.org>
35175
35176         * lib/netdb.in.h: Include sys/socket.h for platforms without
35177         netdb.h, to get structures like hostent on MinGW.
35178         * modules/netdb (Depends-on): Add sys_socket.
35179
35180 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35181
35182         * modules/netdb, modules/netdb-tests: New file.
35183         * m4/netdb_h.m4: New file.
35184         * lib/netdb.in.h: Add, currently just an empty file pending
35185         definitions.
35186         * tests/test-netdb.c: New file.
35187         * doc/posix-headers/netdb.texi: Mention that we replace it if
35188         needed.
35189         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35190         netdb.
35191
35192 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35193
35194         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35195         with code.
35196
35197 2008-10-13  Bruno Haible  <bruno@clisp.org>
35198
35199         * lib/glthread/cond.c (glthread_cond_wait_func,
35200         glthread_cond_timedwait_func): Add a comment.
35201
35202 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35203
35204         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35205         * tests/test-select.c: Likewise,
35206
35207 2008-10-13  Bruno Haible  <bruno@clisp.org>
35208
35209         * lib/glthread/cond.c (glthread_cond_wait_func,
35210         glthread_cond_timedwait_func): Fix variable name.
35211         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35212
35213 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35214
35215         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35216         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35217         struct sockaddr.sa_len.
35218         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35219
35220 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35221
35222         * build-aux/pmccabe2html: Add css and css_url parameters.
35223
35224 2008-10-12  Bruno Haible  <bruno@clisp.org>
35225
35226         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35227         calling aclx_get.
35228         Reported by Rainer Tammer <tammer@tammer.net>.
35229
35230 2008-10-12  Bruno Haible  <bruno@clisp.org>
35231
35232         Use msvcrt aware primitives for creation/termination of Win32 threads.
35233         * lib/glthread/thread.c: Include <process.h>.
35234         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35235         (wrapper_func): Update signature.
35236         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35237
35238 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35239             Bruno Haible  <bruno@clisp.org>
35240
35241         Provide a Win32 implementation of the 'cond' module.
35242         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35243         * lib/glthread/cond.c (glthread_cond_init_func,
35244         glthread_cond_wait_func, glthread_cond_timedwait_func,
35245         glthread_cond_signal_func, glthread_cond_broadcast_func,
35246         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35247         * modules/cond (Dependencies): Add gettimeofday.
35248
35249 2008-10-11  Bruno Haible  <bruno@clisp.org>
35250
35251         Make sleep work on older versions of mingw.
35252         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35253         only whether it exists.
35254         * doc/posix-functions/sleep.texi: Mention the problem with older
35255         versions of mingw.
35256
35257 2008-10-11  Bruno Haible  <bruno@clisp.org>
35258
35259         New module 'shutdown'.
35260         * modules/shutdown: New file.
35261         * lib/sys_socket.in.h (shutdown): New declaration.
35262         * lib/winsock.c (shutdown): New function.
35263         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35264         GNULIB_SHUTDOWN.
35265         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35266         * doc/posix-functions/shutdown.texi: Document the new module.
35267
35268 2008-10-11  Jim Meyering  <meyering@redhat.com>
35269
35270         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35271
35272 2008-10-11  Bruno Haible  <bruno@clisp.org>
35273
35274         New module 'fclose'.
35275         * modules/fclose: New file.
35276         * lib/stdio.in.h (fclose): New declaration.
35277         * lib/fclose.c: New file.
35278         * m4/fclose.m4: New file.
35279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35280         REPLACE_FCLOSE.
35281         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35282         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35283         REPLACE_FCLOSE.
35284         * modules/close (Depends-on): fclose.
35285         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35286
35287 2008-10-11  Bruno Haible  <bruno@clisp.org>
35288
35289         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35290         set errno and don't call _close.
35291
35292 2008-10-10  Bruno Haible  <bruno@clisp.org>
35293
35294         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35295         ACL, not afterwards. Fixes test failure on Cygwin.
35296
35297 2008-10-09  Ben Pfaff  <blp@gnu.org>
35298
35299         * build-aux/announce-gen: Fix gnulib version related part of usage
35300         message.  Die with a useful error message if no tarballs are
35301         found.
35302
35303 2008-10-10  Jim Meyering  <meyering@redhat.com>
35304
35305         bootstrap: use git's --depth=N option only if it's supported
35306         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35307         recognize the --depth option.  Reported by Pádraig Brady.
35308
35309 2008-10-09  Bruno Haible  <bruno@clisp.org>
35310
35311         New module 'ioctl'.
35312         * modules/ioctl: New file.
35313         * lib/sys_socket.in.h (ioctl): Remove declaration.
35314         * lib/winsock.c: Include <sys/ioctl.h>.
35315         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35316         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35317         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35318         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35319         * doc/posix-functions/ioctl.texi: Mention the new module.
35320
35321 2008-10-09  Bruno Haible  <bruno@clisp.org>
35322
35323         New module 'sys_ioctl'.
35324         * lib/sys_ioctl.in.h: New file.
35325         * m4/sys_ioctl_h.m4: New file.
35326         * modules/sys_ioctl: New file.
35327         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35328
35329 2008-10-09  Bruno Haible  <bruno@clisp.org>
35330
35331         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35332         * lib/winsock.c: Include <stdarg.h>.
35333         (rpl_ioctl): Change to second argument 'int' and then varargs.
35334
35335 2008-10-09  Bruno Haible  <bruno@clisp.org>
35336
35337         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35338         when the sys_socket module is present and the system has <winsock2.h>.
35339
35340 2008-10-09  Bruno Haible  <bruno@clisp.org>
35341
35342         * doc/posix-functions/close.texi: Mention module 'close' instead of
35343         module 'sys_socket'.
35344
35345 2008-10-09  Bruno Haible  <bruno@clisp.org>
35346
35347         * doc/glibc-headers/sys_ioctl.texi: New file.
35348         * doc/gnulib.texi: Include it.
35349
35350 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35351             Bruno Haible  <bruno@clisp.org>
35352
35353         Combine the two replacements of 'close'.
35354         * lib/sys_socket.in.h (close): Define to a reminder to include
35355         <unistd.h>.
35356         (_gl_close_fd_maybe_socket): New declaration.
35357         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35358         * lib/winsock.c (close): Remove undefinition.
35359         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35360         needed for the gnulib module 'close'.
35361         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35362         define to an error symbol or to a warning, if suitable.
35363         * lib/close.c: Include <sys/socket.h>.
35364         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35365         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35366         UNISTD_H_HAVE_WINSOCK2_H.
35367         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35369         UNISTD_H_HAVE_WINSOCK2_H.
35370         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35371         (configure.ac): Set a module indicator.
35372         (Makefile.am): Substitute GNULIB_CLOSE.
35373         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35374         * modules/poll-tests (Depends-on): Add close.
35375         * modules/select-tests (Depends-on): Likewise.
35376
35377 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35378             Bruno Haible  <bruno@clisp.org>
35379
35380         New module 'close'.
35381         * modules/close: New file.
35382         * lib/unistd.in.h (close): Move declaration out of the
35383         FCHDIR_REPLACEMENT scope.
35384         (_gl_unregister_fd): New declaration.
35385         * lib/close.c: New file.
35386         * lib/fchdir.c (rpl_close): Remove function.
35387         * m4/close.m4: New file.
35388         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35389         close.
35390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35391         REPLACE_CLOSE.
35392         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35393         REPLACE_CLOSE.
35394         * modules/fchdir (Depends-on): Add close.
35395
35396 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35397             Bruno Haible  <bruno@clisp.org>
35398
35399         * lib/fcntl.in.h (open): Simplify conditionals.
35400         (_gl_register_fd): New declaration.
35401         * lib/fchdir.c (rpl_open): Remove function.
35402         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35403         also.
35404         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35406         open.
35407
35408 2008-10-09  Jim Meyering  <meyering@redhat.com>
35409
35410         GNUmakefile: use the more name-space-friendly "_version"
35411         * top/GNUmakefile (_dummy): Update.
35412         (_version): Rename from "version".
35413
35414 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35415             Bruno Haible  <bruno@clisp.org>
35416
35417         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35418         rpl_close.
35419         (_gl_register_fd): New function, extracted from rpl_open.
35420         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35421         (rpl_open, rpl_opendir): Use _gl_register_fd.
35422
35423 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35424
35425         Fix organization of 'open' replacement.
35426         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35427         (gl_FUNC_OPEN): Use it.
35428         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35429
35430 2008-10-08  Bruno Haible  <bruno@clisp.org>
35431
35432         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35433
35434 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35435
35436         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35437         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35438         listen).
35439
35440 2008-10-08  Eric Blake  <ebb9@byu.net>
35441
35442         GNUmakefile: add 'make version' target
35443         * top/GNUmakefile (_curr-ver): Split version update rules...
35444         (version): ...into a target.
35445
35446 2008-10-07  Bruno Haible  <bruno@clisp.org>
35447
35448         Use a more portable replacement expression for -0.0L.
35449         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35450         instead of -0.0L. Fix m4 quotation.
35451
35452         * tests/test-signbit.c: Include <float.h>.
35453         (minus_zero): New variable.
35454         (test_signbitl): Use minus_zero instead of -zero.
35455         * modules/signbit-tests (Depends-on): Add float.
35456
35457         * tests/test-ceill.c: Include <float.h>.
35458         (zero): Remove variable.
35459         (minus_zero): New variable.
35460         (main): Use minus_zero instead of -zero.
35461         * modules/ceill-tests (Depends-on): Add float.
35462
35463         * tests/test-floorl.c: Include <float.h>.
35464         (zero): Remove variable.
35465         (minus_zero): New variable.
35466         (main): Use minus_zero instead of -zero.
35467         * modules/floorl-tests (Depends-on): Add float.
35468
35469         * tests/test-roundl.c: Include <float.h>.
35470         (zero): Remove variable.
35471         (minus_zero): New variable.
35472         (main): Use minus_zero instead of -zero.
35473         * modules/roundl-tests (Depends-on): Add float.
35474
35475         * tests/test-truncl.c: Include <float.h>.
35476         (zero): Remove variable.
35477         (minus_zero): New variable.
35478         (main): Use minus_zero instead of -zero.
35479         * modules/truncl-tests (Depends-on): Add float.
35480
35481         * tests/test-frexpl.c (zero): Remove variable.
35482         (minus_zero): New variable.
35483         (main): Use minus_zero instead of -zero.
35484         * modules/frexpl-tests (Depends-on): Add float.
35485
35486         * tests/test-isnan.c (zerol): Remove variable.
35487         (minus_zerol): New variable.
35488         (test_long_double): Use minus_zerol instead of -zerol.
35489         * modules/isnan-tests (Depends-on): Add float.
35490
35491         * tests/test-isnanl.h (zero): Remove variable.
35492         (minus_zero): New variable.
35493         (main): Use minus_zero instead of -zero.
35494         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35495         * modules/isnanl-tests (Depends-on): Add float.
35496
35497         * tests/test-ldexpl.c (zero): Remove variable.
35498         (minus_zero): New variable.
35499         (main): Use minus_zero instead of -zero.
35500         * modules/ldexpl-tests (Depends-on): Add float.
35501
35502         * tests/test-snprintf-posix.h (zerol): Remove variable.
35503         (minus_zerol): New variable.
35504         (test_function): Use minus_zerol instead of -zerol.
35505         * modules/snprintf-posix-tests (Depends-on): Add float.
35506         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35507
35508         * tests/test-sprintf-posix.h (zerol): Remove variable.
35509         (minus_zerol): New variable.
35510         (test_function): Use minus_zerol instead of -zerol.
35511         * modules/sprintf-posix-tests (Depends-on): Add float.
35512         * modules/vsprintf-posix-tests (Depends-on): Add float.
35513
35514         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35515         (minus_zerol): New variable.
35516         (test_function): Use minus_zerol instead of -zerol.
35517         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35518
35519         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35520         (minus_zerol): New variable.
35521         (test_function): Use minus_zerol instead of -zerol.
35522         * modules/vasprintf-posix-tests (Depends-on): Add float.
35523
35524 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35525
35526         * MODULES.html.sh (Support for building documentation): Mention
35527         pmccabe2html.  Sort entries.
35528
35529         Add pmccabe2html module, from gnupdf.
35530         * build-aux/pmccabe.css: New file.
35531         * build-aux/pmccabe2html: New file.
35532         * m4/pmccabe2html.m4: New file.
35533         * modules/pmccabe2html: New file.
35534
35535 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35536
35537         flock: new module
35538         * MODULES.html.sh: Add to list of modules.
35539         * lib/flock.c: flock implementation for Windows and Unix systems
35540         which have fcntl.
35541         * doc/glibc-functions/flock.texi: Update documentation.
35542         * lib/sys_file.in.h: <sys/file.h> header file.
35543         * m4/flock.m4: M4 macros.
35544         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35545         * modules/flock: flock module.
35546         * modules/flock-tests: flock tests module.
35547         * modules/sys_file: sys/file.h module.
35548         * tests/test-flock.c: test suite for flock.
35549
35550 2008-10-06  Jim Meyering  <meyering@redhat.com>
35551
35552         bootstrap: check for LT_INIT more portably still ;-)
35553         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35554         Spotted by Bruno Haible.
35555
35556 2008-10-06  Eric Blake  <ebb9@byu.net>
35557
35558         test-signbit: avoid tripping Irix cc bug on -0.0L
35559         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35560         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35561         entire testsuite consistent and avoids an Irix 6.2 bug.
35562
35563 2008-10-05  Bruno Haible  <bruno@clisp.org>
35564             Jim Meyering  <jim@meyering.net>
35565
35566         Add an option for ignoring EPIPE during close_stdout.
35567         * lib/closeout.h: Include <stdbool.h>.
35568         (close_stdout_set_ignore_EPIPE): New declaration.
35569         * lib/closeout.c: Include <stdbool.h>.
35570         (ignore_EPIPE): New variable.
35571         (close_stdout_set_ignore_EPIPE): New function.
35572         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35573         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35574         failure.
35575         * modules/closeout (Depends-on): Add stdbool.
35576
35577 2008-10-05  Bruno Haible  <bruno@clisp.org>
35578
35579         * modules/accept: New file.
35580         * modules/bind: New file.
35581         * modules/connect: New file.
35582         * modules/getpeername: New file.
35583         * modules/getsockname: New file.
35584         * modules/getsockopt: New file.
35585         * modules/listen: New file.
35586         * modules/recv: New file.
35587         * modules/recvfrom: New file.
35588         * modules/send: New file.
35589         * modules/sendto: New file.
35590         * modules/setsockopt: New file.
35591         * modules/socket: New file.
35592         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35593         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35594         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35595         the particular module is requested. Add a link warning when the
35596         particular module is not requested.
35597         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35598         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35599         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35600         the particular module is requested.
35601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35602         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35603         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35604         * modules/sys_socket (Depends-on): Add link-warning.
35605         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35606         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35607         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35608         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35609         GL_LINK_WARNING.
35610         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35611         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35612         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35613         * doc/posix-functions/getpeername.texi: Mention the new module
35614         'getpeername'.
35615         * doc/posix-functions/getsockname.texi: Mention the new module
35616         'getsockname'.
35617         * doc/posix-functions/getsockopt.texi: Mention the new module
35618         'getsockopt'.
35619         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35620         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35621         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35622         * doc/posix-functions/send.texi: Mention the new module 'send'.
35623         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35624         * doc/posix-functions/setsockopt.texi: Mention the new module
35625         'setsockopt'.
35626         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35627         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35628         listen, connect, accept.
35629         * modules/select-tests (Depends-on): Likewise.
35630
35631 2008-10-05  Bruno Haible  <bruno@clisp.org>
35632
35633         * lib/winsock.c (strerror): Remove unused #undef.
35634         (rpl_close): Remove unused local variable.
35635
35636         * modules/sys_socket (Depends-on); Add errno.
35637
35638 2008-10-05  Bruno Haible  <bruno@clisp.org>
35639
35640         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35641         (select): Add a link warning when the 'select' module is not used.
35642         * modules/sys_select (Depends-on): Add link-warning.
35643         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35644         Suggested by Paolo Bonzini.
35645
35646 2008-10-05  Jim Meyering  <meyering@redhat.com>
35647
35648         bootstrap: check for LT_INIT more portably
35649         * build-aux/bootstrap: Avoid using grep -E, since it's not
35650         portable enough.  Suggestion from Bruno Haible.
35651
35652 2008-10-05  Bruno Haible  <bruno@clisp.org>
35653
35654         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35655         as being fixed by gnulib.
35656
35657 2008-10-05  Bruno Haible  <bruno@clisp.org>
35658
35659         * modules/select-tests: New file, mostly copied from
35660         modules/sys_select-tests.
35661         * tests/test-select.c: New file, mostly copied from
35662         tests/test-sys_select.c.
35663         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35664         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35665         (Makefile.am): Remove test_sys_select_LDADD.
35666
35667         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35668         to an undefined symbol, for an error message.
35669         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35670         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35671         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35672         winsock-select.c here.
35673         * modules/sys_select (Files): Remove lib/winsock-select.c.
35674         (Depends-on): Remove alloca.
35675         (Makefile.am): Substitute GNULIB_SELECT.
35676         * modules/select: New file.
35677         * doc/posix-functions/select.texi: Update.
35678
35679 2008-10-05  Bruno Haible  <bruno@clisp.org>
35680
35681         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35682         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35683         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35684         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35685         getdtablesize.
35686         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35687         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35688
35689 2008-10-05  Bruno Haible  <bruno@clisp.org>
35690
35691         * modules/getdtablesize-tests: New file.
35692         * tests/test-getdtablesize.c: New file.
35693
35694         New module 'getdtablesize'.
35695         * lib/unistd.in.h (getdtablesize): New declaration.
35696         * lib/getdtablesize.c: New file.
35697         * m4/getdtablesize.m4: New file.
35698         * modules/getdtablesize: New file.
35699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35700         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35701         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35702         HAVE_GETDTABLESIZE.
35703         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35704
35705 2008-10-05  Bruno Haible  <bruno@clisp.org>
35706
35707         * modules/sched (Makefile.am): Fix typo.
35708         Reported by Simon Josefsson.
35709
35710 2008-10-05  Jim Meyering  <meyering@redhat.com>
35711
35712         bootstrap: check for LT_INIT, too
35713         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35714         are deprecated.  Suggestion from Ralf Wildenhues.
35715
35716 2008-10-05  Bruno Haible  <bruno@clisp.org>
35717
35718         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35719         overriding them by ours.
35720         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35721
35722 2008-10-05  Jim Meyering  <meyering@redhat.com>
35723
35724         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35725         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35726         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35727
35728 2008-10-04  Bruno Haible  <bruno@clisp.org>
35729
35730         * modules/dup2 (License): Change to LGPLv2+.
35731         * modules/sleep (License): Likewise.
35732         * modules/perror (License): Likewise.
35733         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35734         Blake.
35735         * modules/signal (License): Likewise.
35736         * modules/sigprocmask (License): Likewise.
35737         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35738         Meyering.
35739
35740 2008-10-04  Bruno Haible  <bruno@clisp.org>
35741
35742         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35743         Reported by Rainer Tammer <tammer@tammer.net>.
35744
35745 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35746             Bruno Haible  <bruno@clisp.org>
35747
35748         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35749         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35750         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35751
35752 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35753
35754         filevercmp: new module
35755         * lib/filevercmp.h: New function filevercmp comparing version strings.
35756         * lib/filevercmp.c: Implementation of filevercmp function.
35757         * modules/filevercmp: Module metadata.
35758         * tests/test-filevercmp.c: Unit test for new module.
35759         * modules/filevercmp-tests: Unit test metadata.
35760         * MODULES.html.sh: Add filevercmp module.
35761
35762 2008-10-03  Bruno Haible  <bruno@clisp.org>
35763
35764         * lib/c-ctype.h: Add comment.
35765         Reported by Jim Meyering.
35766
35767 2008-10-02  Bruno Haible  <bruno@clisp.org>
35768
35769         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35770
35771 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35772
35773         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35774         name of bootstrap.conf accordingly.
35775
35776 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35777
35778         * build-aux/bootstrap: Install git-merge-changelog configuration
35779         items into .gitconfig if needed.
35780
35781 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35782
35783         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35784         git repository, and initialize/update it accordingly.
35785
35786 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35787
35788         * modules/fsync-tests: New file.
35789         * tests/test-fsync.c: New file.
35790
35791         New module 'fsync'.
35792         * lib/fsync.c: New file.
35793         * m4/fsync.m4: New file.
35794         * modules/fsync: New file.
35795         * lib/unistd.in.h (fsync): New declaration.
35796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35797         GNULIB_FSYNC and HAVE_FSYNC.
35798         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35799         * MODULES.html.sh (posix_functions): Add fsync.
35800         * doc/posix-functions/fsync.texi: Mention the new module.
35801
35802 2008-10-02  Jim Meyering  <meyering@redhat.com>
35803
35804         fts.c: sync with similar code from coreutils' remove.c
35805         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35806         Guard also with "#if defined __linux__", since for now at least,
35807         this code is Linux-kernel-specific.
35808
35809 2008-10-02  Jim Meyering  <meyering@redhat.com>
35810
35811         fts: bug fixes
35812         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35813         Include <sys/vfs.h>, not <sys/statfs.h>.
35814
35815         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35816         Include <sys/vfs.h>, not <sys/statfs.h>.
35817
35818 2008-10-01  Bruno Haible  <bruno@clisp.org>
35819
35820         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35821         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35822         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35823         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35824         * doc/posix-functions/posix_spawnp.texi: Likewise.
35825         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35826         whether posix_spawn actually works.
35827         * m4/pipe.m4 (gl_PIPE): Likewise.
35828         * modules/execute (Files): Add m4/posix_spawn.m4.
35829         * modules/pipe (Files): Add m4/posix_spawn.m4.
35830         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35831
35832 2008-10-01  Jim Meyering  <meyering@redhat.com>
35833
35834         remove trailing spaces
35835         * NEWS: Likewise.
35836         * lib/poll.c (poll): Likewise.
35837         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35838         * lib/winsock.c (rpl_close): Likewise.
35839         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35840         * modules/yield: Likewise.
35841         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35842         * tests/test-sys_select.c (connect_to_socket): Likewise.
35843
35844         fts.c: adjust a new interface to be more generally useful
35845         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35846         (fts_build): Adjust caller.
35847
35848 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35849
35850         * modules/cond-tests: New file.
35851         * tests/test-cond.c: New file.
35852
35853 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35854             Bruno Haible  <bruno@clisp.org>
35855
35856         * modules/cond (Dependencies): Add errno, time.
35857         * lib/glthread/cond.h: Include <time.h>.
35858         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35859         across platforms.
35860
35861 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35862             Bruno Haible  <bruno@clisp.org>
35863
35864         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35865
35866 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35867             Bruno Haible  <bruno@clisp.org>
35868
35869         * modules/tls-tests (Depends-on): Add thread, yield.
35870         (configure.ac): Remove all checks.
35871         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35872         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35873         gl_thread_self): Remove definitions. Include glthread/thread.h and
35874         glthread/yield.h instead.
35875         (test_tls): Pass an additional NULL argument to gl_thread_join.
35876
35877 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35878             Bruno Haible  <bruno@clisp.org>
35879
35880         * modules/lock-tests (Depends-on): Add thread, yield.
35881         (configure.ac): Remove all checks.
35882         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35883         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35884         gl_thread_self): Remove definitions. Include glthread/thread.h and
35885         glthread/yield.h instead.
35886         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35887         additional NULL argument to gl_thread_join.
35888
35889 2008-09-30  Bruno Haible  <bruno@clisp.org>
35890
35891         Fix the Win32 implementation of the 'thread' module.
35892         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35893         pointer type.
35894         (gl_thread_self): Invoke gl_thread_self_func.
35895         (gl_thread_self_func): New declaration.
35896         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35897         (do_init_self_key, init_self_key): New functions.
35898         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35899         Remove some fields.
35900         (running_threads, running_lock): Remove variables.
35901         (get_current_thread_handle): New function.
35902         (gl_thread_self_func, wrapper_func, glthread_create_func,
35903         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35904         simplified.
35905
35906 2008-09-30  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35909         files.
35910
35911 2008-09-30  Jim Meyering  <meyering@redhat.com>
35912
35913         fts.m4: correct the test for statfs.f_type
35914         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35915         when checking for statfs.f_type.
35916
35917 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35918
35919         tests: avoid some compiler warnings
35920         * tests/test-memchr.c (main): Pass NULL indirectly.
35921         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35922
35923 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
35924
35925         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35926         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35927         exactly specified dayshifts.
35928         (dayshift): New rule.
35929         (rel): Add dayshift.
35930         (relative_time_table) [tomorrow, yesterday, today, now]:
35931         Use tDAY_SHIFT in place of tDAY_UNIT.
35932         * tests/test-getdate.c: Add tests for now-disallowed countable
35933         dayshifts, e.g., "4 yesterday ago".
35934
35935 2008-09-29  Bruno Haible  <bruno@clisp.org>
35936
35937         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35938         * tests/test-posix_spawn1.in.sh: Renamed from
35939         tests/test-posix_spawn.in.sh.
35940         * tests/test-posix_spawn2.c: New file.
35941         * tests/test-posix_spawn2.in.sh: New file.
35942         * modules/posix_spawnp-tests (Files): Update.
35943         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35944
35945 2008-09-29  Bruno Haible  <bruno@clisp.org>
35946
35947         Propagate effects of putenv/setenv/unsetenv to child processes.
35948         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35949         * lib/pipe.c (create_pipe): Likewise.
35950
35951 2008-09-29  Bruno Haible  <bruno@clisp.org>
35952
35953         Enable use of shell scripts as executables in mingw.
35954         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
35955         run the program as a shell script.
35956         * lib/pipe.c (create_pipe): Likewise.
35957         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
35958         resulting array.
35959
35960 2008-09-29  Eric Blake  <ebb9@byu.net>
35961
35962         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
35963
35964 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
35965
35966         * doc/posix-functions/accept.texi: Update mingw problems.
35967         * doc/posix-functions/bind.texi: Update mingw problems.
35968         * doc/posix-functions/close.texi: Update mingw problems.
35969         * doc/posix-functions/connect.texi: Update mingw problems.
35970         * doc/posix-functions/getpeername.texi: Update mingw problems.
35971         * doc/posix-functions/getsockname.texi: Update mingw problems.
35972         * doc/posix-functions/getsockopt.texi: Update mingw problems.
35973         * doc/posix-functions/ioctl.texi: Update mingw problems.
35974         * doc/posix-functions/listen.texi: Update mingw problems.
35975         * doc/posix-functions/recv.texi: Update mingw problems.
35976         * doc/posix-functions/recvfrom.texi: Update mingw problems.
35977         * doc/posix-functions/select.texi: Update mingw problems.
35978         * doc/posix-functions/send.texi: Update mingw problems.
35979         * doc/posix-functions/sendto.texi: Update mingw problems.
35980         * doc/posix-functions/setsockopt.texi: Update mingw problems.
35981         * doc/posix-functions/socket.texi: Update mingw problems.
35982
35983 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
35984             Bruno Haible  <bruno@clisp.org>
35985
35986         * lib/sys_select.in.h: Include sys/time.h.
35987         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
35988         * modules/sys_select: Depend on sys_time.
35989         * tests/test-sys_select.c: Test that sys/select.h defines struct
35990         timeval fully.
35991
35992 2008-09-29  Bruno Haible  <bruno@clisp.org>
35993
35994         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
35995         * lib/sys_select.in.h: Likewise.
35996
35997 2008-09-29  Bruno Haible  <bruno@clisp.org>
35998
35999         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36000
36001 2008-09-29  Bruno Haible  <bruno@clisp.org>
36002
36003         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36004         Set LIBSOCKET instead of augmenting LIBS.
36005         * modules/sockets (Link): New section.
36006         * modules/sockets-tests (test_sockets_LDADD): New variable.
36007         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36008         * modules/poll-tests (test_poll_LDADD): New variable.
36009         * NEWS: Document the change.
36010
36011 2008-09-29  Bruno Haible  <bruno@clisp.org>
36012
36013         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36014         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36015         ARPA_INET_H directly.
36016         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36017
36018 2008-09-28  Bruno Haible  <bruno@clisp.org>
36019
36020         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36021         from gl_HEADER_SYS_SOCKET.
36022         (gl_HEADER_SYS_SOCKET): Invoke it.
36023         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36024
36025 2008-09-28  Bruno Haible  <bruno@clisp.org>
36026
36027         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36028         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36029         Needed on OSF/1 4.0.
36030
36031 2008-09-28  Bruno Haible  <bruno@clisp.org>
36032
36033         Override open more carefully.
36034         * lib/open.c (orig_open): New function.
36035         (rpl_open): Use orig_open instead of open.
36036         * lib/fcntl.in.h: Add special invocation convention.
36037         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36038         (gl_FUNC_OPEN): Invoke it.
36039
36040         Override freopen more carefully.
36041         * lib/freopen.c (orig_freopen): New function.
36042         (rpl_freopen): Use orig_freopen instead of freopen.
36043         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36044         (gl_FUNC_FREOPEN): Invoke it.
36045
36046         Override fopen more carefully.
36047         * lib/fopen.c (orig_fopen): New function.
36048         (rpl_fopen): Use orig_fopen instead of fopen.
36049         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36050         (gl_FUNC_FOPEN): Invoke it.
36051         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36052
36053 2008-09-28  Bruno Haible  <bruno@clisp.org>
36054
36055         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36056         SIGPIPE.
36057
36058 2008-09-28  Bruno Haible  <bruno@clisp.org>
36059
36060         * tests/test-sigaction.c (handler, main): Disable the check whether
36061         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36062         glibc systems with LinuxThreads.
36063
36064 2008-09-28  Bruno Haible  <bruno@clisp.org>
36065
36066         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36067
36068         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36069         with AIX xlc.
36070         * lib/fcntl.in.h (open): Likewise.
36071         Reported by Rainer Tammer <tammer@tammer.net>.
36072
36073 2008-09-28  Bruno Haible  <bruno@clisp.org>
36074
36075         * modules/posix_spawnp-tests: New file.
36076         * tests/test-posix_spawn.c: New file.
36077         * tests/test-posix_spawn.in.sh: New file.
36078
36079         New module 'posix_spawnp'.
36080         * modules/posix_spawnp: New file.
36081         * lib/spawnp.c: New file, from GNU libc with modifications.
36082         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36083
36084         New module 'posix_spawn'.
36085         * modules/posix_spawn: New file.
36086         * lib/spawn.c: New file, from GNU libc with modifications.
36087         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36088
36089         New module 'posix_spawnattr_destroy'.
36090         * modules/posix_spawnattr_destroy: New file.
36091         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36092         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36093         module.
36094
36095         New module 'posix_spawnattr_setsigmask'.
36096         * modules/posix_spawnattr_setsigmask: New file.
36097         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36098         modifications.
36099         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36100         new module.
36101
36102         New module 'posix_spawnattr_getsigmask'.
36103         * modules/posix_spawnattr_getsigmask: New file.
36104         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36105         modifications.
36106         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36107         new module.
36108
36109         New module 'posix_spawnattr_setsigdefault'.
36110         * modules/posix_spawnattr_setsigdefault: New file.
36111         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36112         modifications.
36113         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36114         new module.
36115
36116         New module 'posix_spawnattr_getsigdefault'.
36117         * modules/posix_spawnattr_getsigdefault: New file.
36118         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36119         modifications.
36120         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36121         new module.
36122
36123         New module 'posix_spawnattr_setschedpolicy'.
36124         * modules/posix_spawnattr_setschedpolicy: New file.
36125         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36126         modifications.
36127         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36128         new module.
36129
36130         New module 'posix_spawnattr_getschedpolicy'.
36131         * modules/posix_spawnattr_getschedpolicy: New file.
36132         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36133         modifications.
36134         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36135         new module.
36136
36137         New module 'posix_spawnattr_setschedparam'.
36138         * modules/posix_spawnattr_setschedparam: New file.
36139         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36140         modifications.
36141         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36142         new module.
36143
36144         New module 'posix_spawnattr_getschedparam'.
36145         * modules/posix_spawnattr_getschedparam: New file.
36146         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36147         modifications.
36148         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36149         new module.
36150
36151         New module 'posix_spawnattr_setpgroup'.
36152         * modules/posix_spawnattr_setpgroup: New file.
36153         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36154         modifications.
36155         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36156         module.
36157
36158         New module 'posix_spawnattr_getpgroup'.
36159         * modules/posix_spawnattr_getpgroup: New file.
36160         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36161         modifications.
36162         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36163         module.
36164
36165         New module 'posix_spawnattr_setflags'.
36166         * modules/posix_spawnattr_setflags: New file.
36167         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36168         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36169         module.
36170
36171         New module 'posix_spawnattr_getflags'.
36172         * modules/posix_spawnattr_getflags: New file.
36173         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36174         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36175         module.
36176
36177         New module 'posix_spawnattr_init'.
36178         * modules/posix_spawnattr_init: New file.
36179         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36180         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36181         module.
36182
36183         New module 'posix_spawn_file_actions_destroy'.
36184         * modules/posix_spawn_file_actions_destroy: New file.
36185         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36186         modifications.
36187         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36188         the new module.
36189
36190         New module 'posix_spawn_file_actions_addopen'.
36191         * modules/posix_spawn_file_actions_addopen: New file.
36192         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36193         modifications.
36194         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36195         the new module.
36196
36197         New module 'posix_spawn_file_actions_adddup2'.
36198         * modules/posix_spawn_file_actions_adddup2: New file.
36199         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36200         modifications.
36201         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36202         the new module.
36203
36204         New module 'posix_spawn_file_actions_addclose'.
36205         * modules/posix_spawn_file_actions_addclose: New file.
36206         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36207         modifications.
36208         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36209         the new module.
36210
36211         New module 'posix_spawn_file_actions_init'.
36212         * modules/posix_spawn_file_actions_init: New file.
36213         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36214         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36215         new module.
36216
36217         New module 'posix_spawn-internal'.
36218         * modules/posix_spawn-internal: New file.
36219         * lib/spawn_int.h: New file, from GNU libc with modifications.
36220         * lib/spawni.c: New file, from GNU libc with modifications.
36221         * m4/posix_spawn.m4: New file.
36222
36223         New module 'spawn'.
36224         * modules/spawn: New file.
36225         * lib/spawn.in.h: New file, from GNU libc with modifications.
36226         * m4/spawn_h.m4: New file.
36227         * doc/posix-headers/spawn.texi: Mention the new module.
36228
36229 2008-09-28  Bruno Haible  <bruno@clisp.org>
36230
36231         * modules/sched-tests: New file.
36232         * tests/test-sched.c: New file.
36233
36234         New module 'sched'.
36235         * modules/sched: New file.
36236         * lib/sched.in.h: New file.
36237         * m4/sched_h.m4: New file.
36238         * doc/posix-headers/sched.texi: Mention the new module.
36239
36240 2008-09-27  Eric Blake  <ebb9@byu.net>
36241
36242         Fix previous patch, and tweak references to $0.
36243         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36244         (func_version, func_gnulib_dir): Don't call this program
36245         gnulib-tool.
36246         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36247         with using $0 in function.
36248         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36249         (func_fatal_error): Reuse the name the user invoked us with.
36250
36251 2008-09-27  Bruno Haible  <bruno@clisp.org>
36252
36253         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36254         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36255         (gl_ICONV_H): Not here.
36256         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36257         instead of assigning ICONV_H directly.
36258
36259         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36261         WCHAR_H directly.
36262
36263 2008-09-27  Bruno Haible  <bruno@clisp.org>
36264
36265         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36266         * modules/arpa_inet (Depends-on): Add link-warning.
36267         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36268         * modules/unistd (Makefile.am): Likewise.
36269
36270 2008-09-26  Bruno Haible  <bruno@clisp.org>
36271
36272         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36273         variables.
36274         (func_version): Essentially copied from gnulib-tool.
36275         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36276         func_readlink): Copied from gnulib-tool.
36277
36278 2008-09-26  Bruno Haible  <bruno@clisp.org>
36279
36280         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36281         invoking git-version-gen.
36282
36283 2008-09-26  Bruno Haible  <bruno@clisp.org>
36284
36285         * posix-modules: Update to directory names changed on 2008-01-19.
36286         Remove commas in output before splitting into words. No more need to
36287         avoid 'ftruncate' since 2007-02-19.
36288
36289 2008-09-26  Bruno Haible  <bruno@clisp.org>
36290
36291         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36292
36293 2008-09-26  Bruno Haible  <bruno@clisp.org>
36294
36295         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36296         * modules/fwriteerror (Depends-on): Add errno.
36297
36298 2008-09-26  Bruno Haible  <bruno@clisp.org>
36299
36300         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36301         * tests/test-vc-list-files-cvs.sh: Likewise.
36302
36303 2008-09-26  Bruno Haible  <bruno@clisp.org>
36304
36305         * doc/posix-headers/sys_resource.texi: Reorder items.
36306
36307 2008-09-26  Jim Meyering  <meyering@redhat.com>
36308
36309         fts: tweak inode comparison function
36310         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36311         inode numbers, as documented.
36312
36313         fts: sort dirent entries on inode number before traversing
36314         This avoids a quadratic, seek-related performance penalty when
36315         operating on a directory containing many entries (measurable at 10k;
36316         3.5 hours at 2 million entries with a cold cache) on certain types
36317         of file systems, including ext3 and ext4, but not tmpfs.
36318         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36319         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36320         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36321         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36322         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36323         (fts_build): Set the stat.st_ino member from D_INO.
36324         If it is likely to be useful, sort dirent entries on inode number.
36325
36326         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36327         and the struct statfs.f_type member.
36328         * modules/fts (Depends-on): Add d-ino.
36329
36330 2008-09-26  Bruno Haible  <bruno@clisp.org>
36331
36332         * modules/sigpipe-die (Depends-on): Add sigpipe.
36333
36334         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36335         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36336         and GNULIB_STDIO_H_SIGPIPE are set.
36337         * lib/stdio-write.c: New file.
36338         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36339         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36340         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36341         REPLACE_STDIO_WRITE_FUNCS.
36342         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36343         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36344         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36345         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36346         * modules/stdio (Files): Add lib/stdio-write.c.
36347         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36348         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36349         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36350         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36351         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36352         REPLACE_FPRINTF_POSIX.
36353         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36354         REPLACE_PRINTF_POSIX.
36355         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36356         REPLACE_VFPRINTF_POSIX.
36357         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36358         REPLACE_VPRINTF_POSIX.
36359         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36360         SIGPIPE issue.
36361         * doc/posix-functions/fputc.texi: Likewise.
36362         * doc/posix-functions/fputs.texi: Likewise.
36363         * doc/posix-functions/fwrite.texi: Likewise.
36364         * doc/posix-functions/printf.texi: Likewise.
36365         * doc/posix-functions/putc.texi: Likewise.
36366         * doc/posix-functions/putchar.texi: Likewise.
36367         * doc/posix-functions/puts.texi: Likewise.
36368         * doc/posix-functions/vfprintf.texi: Likewise.
36369         * doc/posix-functions/vprintf.texi: Likewise.
36370
36371         * modules/safe-write (Depends-on): Add write.
36372
36373         * modules/sigpipe-tests: New file.
36374         * tests/test-sigpipe.c: New file.
36375         * tests/test-sigpipe.sh: New file.
36376
36377         * modules/write: New file.
36378         * lib/unistd.in.h: Include <sys/types.h>.
36379         (write): New declaration.
36380         * lib/write.c: New file.
36381         * m4/write.m4: New file.
36382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36383         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36384         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36385         GNULIB_WRITE, REPLACE_WRITE.
36386         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36387         and the SIGPIPE issue.
36388
36389         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36390         (raise): New declaration.
36391         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36392         (ext_signal): New function.
36393         (rpl_raise): New function.
36394         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36395         GNULIB_SIGNAL_H_SIGPIPE.
36396         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36397         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36398
36399         * modules/sigpipe: New file.
36400         * m4/sigpipe.m4: New file.
36401
36402 2008-09-25  Derek Price  <derek@ximbiot.com>
36403             Bruno Haible  <bruno@clisp.org>
36404
36405         * gnulib-tool (func_import): Report all license incompatibilities, not
36406         just the first one.
36407
36408 2008-09-25  Bruno Haible  <bruno@clisp.org>
36409
36410         * gnulib-tool (func_import): When computing the edits, consider not
36411         only the Makefile.ams that exist but also those that will be generated.
36412
36413 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36414
36415         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36416         fixes gnulib-tool --test warning about duplicate dependency.
36417
36418 2008-09-25  Bruno Haible  <bruno@clisp.org>
36419
36420         * gnulib-tool: Don't ask the user to perform edits in the generated
36421         Makefile.ams.
36422         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36423         apply to the Makefile.am being generated.
36424         (func_emit_tests_Makefile_am): Execute edits that apply to the
36425         Makefile.am being generated.
36426         (func_import): Setup list of Makefile.am edits before emitting the
36427         Makefile.ams, not at the end.
36428         (func_create_testdir): Update.
36429         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36430
36431 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36432
36433         * gnulib-tool (func_import): Store the --tests-base option in the
36434         comment in gnulib-cache.m4.
36435
36436 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36437
36438         * NEWS: Document increased portability that sys_select now provides.
36439
36440         * lib/sys_select.in.h: Install select wrapper.
36441         * lib/sys_socket.in.h: Use more descriptive name when there is no
36442         select wrapper.
36443         * lib/winsock-select.c: New.
36444         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36445         Require gl_HEADER_SYS_SOCKET.
36446         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36447         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36448         * tests/test-sys_select.c: Add functional tests.
36449
36450 2008-09-24  Eric Blake  <ebb9@byu.net>
36451
36452         open, fopen: close fd leak in last patch
36453         * lib/open.c (rpl_open): Close fd before returning error.
36454         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36455         * doc/posix-functions/open.texi (open): Document that Irix also
36456         has the bug.
36457         * doc/posix-functions/fopen.texi (fopen): Likewise.
36458         Reported by Paolo Bonzini.
36459
36460 2008-09-24  Bruno Haible  <bruno@clisp.org>
36461
36462         Ensure that a filename ending in a slash cannot be used to access a
36463         non-directory.
36464         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36465         to check whether it's really a directory.
36466         * lib/fopen.c: Include fcntl.h, unistd.h.
36467         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36468         and fdopen().
36469         * modules/fopen (Depends-on): Add unistd.
36470         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36471         * tests/test-fopen.c (main): Likewise.
36472         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36473         * doc/posix-functions/fopen.texi: Likewise.
36474         Reported by Eric Blake.
36475
36476 2008-09-23  Eric Blake  <ebb9@byu.net>
36477
36478         c-stack: avoid compiler optimizations when provoking overflow
36479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36480         recursion harder to optimize, to ensure a stack overflow occurs.
36481         * tests/test-c-stack.c (recurse): Likewise.
36482         Borrowed from libsigsegv.
36483
36484         c-stack: work around Irix sigaltstack bug
36485         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36486         whether sigaltstack uses wrong end of stack_t (copied in part from
36487         libsigsegv).
36488         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36489         Irix bug, without requiring an over-allocation.
36490         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36491         bug.
36492
36493         fopen: document mingw bug on directories
36494         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36495         not allowing a stream visiting a directory, even though reading
36496         from such a stream is not portable.
36497
36498 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36499
36500         * lib/poll.c: Rewrite.
36501         * modules/poll: Depend on alloca.
36502
36503 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36504
36505         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36506         instead define prototypes for a full set of wrappers.  Ensure
36507         that Cygwin does not use the compatibility code, which is only
36508         for MinGW.
36509         * lib/winsock.c: New.
36510         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36511         * modules/sys_socket: Add lib/winsock.c.
36512
36513         * modules/poll-tests: Add errno and perror.
36514         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36515
36516 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36517
36518         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36519
36520 2008-09-23  Bruno Haible  <bruno@clisp.org>
36521
36522         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36523         * doc/glibc-functions/*: Likewise.
36524
36525 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36526
36527         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36528         success.
36529
36530 2008-09-22  Eric Blake  <ebb9@byu.net>
36531             Bruno Haible  <bruno@clisp.org>
36532
36533         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36534         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36535         supply %A but mishandle pseudo-NaN.
36536         Reported by Simon Josefsson.
36537
36538 2008-09-21  Bruno Haible  <bruno@clisp.org>
36539
36540         * tests/test-lock.c (main): Tweak skip message.
36541         * tests/test-tls.c (main): Likewise.
36542
36543 2008-09-21  Bruno Haible  <bruno@clisp.org>
36544
36545         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36546         whether 'struct sigaction' has sa_sigaction here...
36547         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36548         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36549
36550 2008-09-21  Bruno Haible  <bruno@clisp.org>
36551
36552         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36553         section.
36554         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36555         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36556         the new section.
36557         (Support for obsolete systems lacking POSIX:2001): New section.
36558         (String handling <string.h>): Move strdup to the new section.
36559         Suggested by Simon Josefsson and Paolo Bonzini.
36560
36561 2008-09-21  Bruno Haible  <bruno@clisp.org>
36562
36563         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36564         exponents in %e and %g results on 'long double'. Needed for mingw's
36565         improved *printf functions.
36566         * tests/test-vasprintf-posix.c (test_function): Likewise.
36567         * tests/test-snprintf-posix.h (test_function): Likewise.
36568         * tests/test-sprintf-posix.h (test_function): Likewise.
36569         Reported by Eric Blake.
36570
36571 2008-09-21  Bruno Haible  <bruno@clisp.org>
36572
36573         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36574         * tests/test-sprintf-posix.h (test_function): Likewise.
36575
36576 2008-09-21  Bruno Haible  <bruno@clisp.org>
36577
36578         * modules/getpass (Depends-on): Add strdup-posix.
36579
36580         New module 'strdup-posix'.
36581         * modules/strdup-posix: New file.
36582         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36583         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36584         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36585         REPLACE_STRDUP.
36586         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36587         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36589         strdup-posix.
36590
36591         * modules/strdup (Depends-on): Remove malloc-posix.
36592
36593 2008-09-20  Bruno Haible  <bruno@clisp.org>
36594
36595         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36596         Wildenhues.
36597
36598 2008-09-20  Bruno Haible  <bruno@clisp.org>
36599
36600         Ensure that wint_t gets defined on IRIX 5.3.
36601         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36602         * lib/wctype.in.h (wint_t): Likewise.
36603         (__wctype_wint_t): Remove type.
36604         (isw*): Use wint_t instead of __wctype_wint_t.
36605         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36606         * modules/wchar (Files): Add m4/wint_t.m4.
36607         (Makefile.am): Substitute HAVE_WINT_T.
36608         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36609         * tests/test-wctype.c: Check that wint_t is defined.
36610         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36611         * doc/posix-headers/wctype.texi: Likewise.
36612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36613
36614 2008-09-18  Bruno Haible  <bruno@clisp.org>
36615
36616         * gnulib-tool (func_exit): Update comment.
36617
36618 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36619
36620         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36621         assumes strdup exists and does not depend on strdup to return
36622         ENOMEM on out of memory conditions.
36623
36624 2008-09-18  Bruno Haible  <bruno@clisp.org>
36625
36626         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
36627         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36628         digits for the exponent.
36629
36630 2008-09-18  Jim Meyering  <meyering@redhat.com>
36631             Bruno Haible  <bruno@clisp.org>
36632
36633         * lib/vasnprintf.c (decimal_point_char): Define also if
36634         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36635
36636 2008-09-16  Bruno Haible  <bruno@clisp.org>
36637         and Eric Blake  <ebb9@byu.net>
36638
36639         vasnprintf: support Irix 5.3
36640         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36641         that mishandle long double infinity.
36642         Reported by Tom G. Christensen.
36643
36644 2008-09-16  Bruno Haible  <bruno@clisp.org>
36645
36646         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36647         Solaris 9.
36648         * doc/glibc-functions/alphasort.texi: Likewise.
36649         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36650
36651 2008-09-16  Jim Meyering  <meyering@redhat.com>
36652
36653         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36654         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36655         a umask modification leak out of a subshell.  Otherwise, the
36656         opensolaris /bin/sh would be accepted and thus cause unwarranted
36657         failures in the coreutils test suite.
36658
36659 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36660
36661         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36662         to succeed.
36663
36664 2008-09-16  Jim Meyering  <meyering@redhat.com>
36665
36666         avoid spurious test failure when library is built without ACL support
36667         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36668         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36669         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36670         * tests/test-copy-acl.sh: Likewise.
36671
36672 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36673
36674         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36675         based on character occurrence counts.
36676
36677 2008-09-15  Eric Blake  <ebb9@byu.net>
36678
36679         tests: avoid some compiler warnings
36680         * tests/test-memchr.c (main): Pass NULL indirectly.
36681         * tests/test-closein.c (main): Avoid unused variable.
36682
36683 2008-09-15  Bruno Haible  <bruno@clisp.org>
36684
36685         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36686         are missing on OpenBSD 4.0 individually.
36687         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36688
36689 2008-09-15  Bruno Haible  <bruno@clisp.org>
36690
36691         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36692         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36693         * doc/posix-functions/perror.texi: Likewise.
36694         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36695         is missing.
36696         Reported by Eric Blake.
36697
36698         * lib/errno.in.h: Use replacement values >= 2000.
36699         Reported by Eric Blake.
36700
36701 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36702
36703         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36704         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36705         limit.
36706         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36707         compareseq was aborted.
36708
36709 2008-09-14  Bruno Haible  <bruno@clisp.org>
36710
36711         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36712         yvec_edit_count.
36713         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36714         (fstrcmp_bounded): Simplify result computation accordingly.
36715
36716 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36717
36718         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36719         (fstrcmp): Define in terms of fstrcmp_bounded.
36720         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36721         lower_bound argument.
36722         Return quickly if the result is certainly < lower_bound.
36723         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36724
36725 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36726
36727         * lib/diffseq.h (EARLY_ABORT): New macro.
36728         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36729         evaluates to true.
36730
36731 2008-09-14  Bruno Haible  <bruno@clisp.org>
36732
36733         * modules/perror-tests: New file.
36734         * tests/test-perror.sh: New file.
36735         * tests/test-perror.c: New file.
36736
36737         New module 'perror'.
36738         * lib/stdio.in.h (perror): New declaration.
36739         * lib/perror.c: New file.
36740         * m4/perror.m4: New file.
36741         * modules/perror: New file.
36742         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36743         * doc/posix-functions/perror.texi: Mention the perror module.
36744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36745         REPLACE_PERROR.
36746         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36747         REPLACE_PERROR.
36748
36749 2008-09-14  Bruno Haible  <bruno@clisp.org>
36750
36751         * modules/stdio (Makefile.am): Reorder to match the order in
36752         lib/stdio.in.h.
36753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36754
36755 2008-09-13  Bruno Haible  <bruno@clisp.org>
36756
36757         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36758
36759 2008-09-13  Bruno Haible  <bruno@clisp.org>
36760
36761         Extend strerror to cover the added errno values.
36762         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36763         (rpl_strerror): Provide error messages for the added errno values and
36764         for the WSA* values.
36765         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36766         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36767         strerror.
36768         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36769         * modules/strerror (Depends-on): Add errno.
36770         * doc/posix-functions/strerror.texi: Document the change.
36771         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36772         and EOVERFLOW.
36773
36774 2008-09-13  Bruno Haible  <bruno@clisp.org>
36775
36776         * modules/EOVERFLOW: Remove file.
36777         * m4/eoverflow.m4: Remove file.
36778         * modules/EOVERFLOW-tests: Remove file.
36779         * tests/test-EOVERFLOW.c: Remove file.
36780         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36781         * modules/ftell (Depends-on): Likewise.
36782         * modules/getdelim (Depends-on): Likewise.
36783         * modules/getugroups (Depends-on): Likewise.
36784         * modules/poll (Depends-on): Likewise.
36785         * modules/snprintf (Depends-on): Likewise.
36786         * modules/sprintf-posix (Depends-on): Likewise.
36787         * modules/vasnprintf (Depends-on): Likewise.
36788         * modules/vasprintf (Depends-on): Likewise.
36789         * modules/vfprintf-posix (Depends-on): Likewise.
36790         * modules/vsnprintf (Depends-on): Likewise.
36791         * modules/vsprintf-posix (Depends-on): Likewise.
36792         * modules/xvasprintf (Depends-on): Likewise.
36793         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36794         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36795         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36796         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36797         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36798         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36799         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36800         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36801         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36802         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36803         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36804         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36805         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36806         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36807         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36808         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36809         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36810         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36811         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36812         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36813         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36814         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36815         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36816         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36817         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36818         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36819         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36820         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36821         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36822         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36823         * MODULES.html.sh: Remove EOVERFLOW.
36824         * NEWS: Mention the change.
36825
36826 2008-09-13  Bruno Haible  <bruno@clisp.org>
36827
36828         * modules/errno-tests: New file.
36829         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36830
36831         * lib/errno.in.h: New file.
36832         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36833         * modules/errno: New file.
36834         * doc/posix-headers/errno.texi: Update documentation.
36835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36836
36837 2008-09-13  Bruno Haible  <bruno@clisp.org>
36838
36839         * tests/test-poll.c: Use #if for native Windows, rather than testing
36840         __MSVCRT__.
36841
36842 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36843             Bruno Haible  <bruno@clisp.org>
36844
36845         * lib/glob.c: Don't include <pwd.h> on native Windows.
36846         (WINDOWS32): New macro.
36847         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36848
36849 2008-09-13  Bruno Haible  <bruno@clisp.org>
36850
36851         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36852         (ETIMEDOUT): Remove macro.
36853         (glthread_cond_timedwait_multithreaded): New declaration.
36854         (glthread_cond_timedwait): Use it.
36855         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36856         (glthread_cond_timedwait_multithreaded): New function.
36857
36858 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36859
36860         * modules/poll-tests: Do not check for io.h.
36861         * tests/test-poll.c: Check for __MSVCRT__ instead.
36862
36863 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36864
36865         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36866         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36867         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36868
36869 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36870
36871         * modules/poll-tests: New.
36872         * tests/test-poll.c: New.
36873
36874 2008-09-12  Eric Blake  <ebb9@byu.net>
36875
36876         frexp: test for NetBSD failure on -0.0
36877         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36878         not all, bugs from NetBSD 3.0 have been fixed.
36879         * doc/posix-functions/frexp.texi (frexp): Document bug.
36880         Reported by Thomas Klausner.
36881
36882         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36883         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36884         literal -0.0.
36885         Reported by Jonathan C. Patschke <jp@centtech.com>.
36886
36887 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36888
36889         * lib/glthread/cond.h: Use dummy implementation also if
36890         USE_WIN32_THREADS.
36891
36892 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36893
36894         * modules/fnmatch-posix (License): Change to LGPLv2+.
36895         * modules/fnmatch-gnu (License): Likewise.
36896
36897 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36898
36899         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36900
36901 2008-09-11  Jim Meyering  <meyering@redhat.com>
36902
36903         * users.txt: Add gtk-vnc.
36904
36905 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36906
36907         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36908         rotate amounts.
36909
36910         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36911         required for 16-bit and 8-bit rotates.
36912         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36913         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36914         UINT8_MAX instead of hard-coded constants.
36915         Suggested by Paul Eggert.
36916
36917 2008-09-07  Bruno Haible  <bruno@clisp.org>
36918
36919         * tests/test-striconveh.c (main): Check behaviour when converting from
36920         UTF-7.
36921
36922         Make striconveh work better with stateful encodings.
36923         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36924         that iconv does not increment the inptr when returning -1/EINVAL.
36925
36926 2008-09-07  Bruno Haible  <bruno@clisp.org>
36927
36928         * build-aux/config.rpath: Update according to libtool-2.2.6.
36929         * build-aux/config.libpath: Likewise.
36930
36931 2008-09-06  Bruno Haible  <bruno@clisp.org>
36932
36933         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36934         * lib/freadptr.c (freadptr): Likewise.
36935         * lib/freadseek.c (freadptrinc): Likewise.
36936         Reported by Simon Josefsson.
36937
36938 2008-09-06  Bruno Haible  <bruno@clisp.org>
36939
36940         * modules/freadptr (License): Change to LGPLv2+.
36941         * modules/freadseek (License): Likewise.
36942         Suggested by Eric Blake.
36943
36944         * modules/memchr2 (License): Change to LGPLv2+.
36945         Approved by Eric Blake.
36946
36947 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36948             Bruno Haible  <bruno@clisp.org>
36949
36950         Make gnulib-tool work with native 'sed' on AIX.
36951         * gnulib-tool (sed_noop): New variable.
36952         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36953         func_add_or_update, func_create_testdir): Use it to initialize sed
36954         script variables.
36955         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36956
36957 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
36958             Bruno Haible  <bruno@clisp.org>
36959
36960         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
36961         also works after #include directives.
36962
36963 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
36964
36965         getdate.y: reject an out-of-range timezone value
36966         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
36967         the range [-24...+24].  When specified with only one or two digits,
36968         * tests/test-getdate.c: Tests for the fix.
36969         * doc/getdate.texi: Document this change.
36970
36971 2008-09-03  Bruno Haible  <bruno@clisp.org>
36972
36973         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
36974
36975 2008-09-02  Simon Josefsson  <simon@josefsson.org>
36976
36977         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
36978         <bruce.korb@gmail.com> with ideas from Ben Pfaff
36979         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
36980         Blake <ebb9@byu.net>.
36981
36982         * tests/test-bitrotate.c: Add more test vectors.
36983
36984 2008-09-02  Eric Blake  <ebb9@byu.net>
36985
36986         vasnprintf-posix: handle large precision via %.*d
36987         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
36988         when handling it ourselves.
36989         * tests/test-vasnprintf-posix.c (test_function): Add test.
36990         * tests/test-snprintf-posix.h (test_function): Likewise.
36991         * tests/test-sprintf-posix.h (test_function): Likewise.
36992         * tests/test-vasprintf-posix.c (test_function): Likewise.
36993         Reported by Alain Guibert.
36994
36995 2008-09-01  Eric Blake  <ebb9@byu.net>
36996
36997         c-stack: make configure-time check more robust
36998         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
36999         successful sigaction call.
37000         Reported by Tom G. Christensen.
37001
37002 2008-09-01  Bruno Haible  <bruno@clisp.org>
37003
37004         New module 'findprog-lgpl'.
37005         * modules/findprog-lgpl: New file.
37006         * lib/findprog-lgpl.c: New file.
37007         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37008         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37009         to decide whether to use strdup or xstrdup, concatenated_filename or
37010         xconcatenated_filename.
37011
37012 2008-09-01  Bruno Haible  <bruno@clisp.org>
37013
37014         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37015         'xconcat-filename' (GPL).
37016         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37017         (License): Change to LGPLv2+.
37018         * modules/xconcat-filename: New file.
37019         * lib/concat-filename.h (concatenated_filename): Change specification.
37020         (xconcatenated_filename): New declaration.
37021         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37022         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37023         memory situations.
37024         * lib/xconcat-filename.c: New file.
37025         * NEWS: Mention the change.
37026         * lib/findprog.c: Include concat-filename.h, not filename.h.
37027         (find_in_path): Use xconcatenated_filename instead of
37028         concatenated_filename.
37029         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37030         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37031         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37032         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37033         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37034         instead of concatenated_filename.
37035         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37036         (execute_java_class): Use xconcatenated_filename instead of
37037         concatenated_filename.
37038         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37039         * modules/javacomp (Depends-on): Likewise.
37040         * modules/javaexec (Depends-on): Likewise.
37041
37042 2008-09-01  Bruno Haible  <bruno@clisp.org>
37043
37044         Split module 'filename' into 'filename' and 'concat-filename'.
37045         * modules/filename: Keep only lib/filename.h.
37046         (License): Change to LGPLv2+.
37047         * modules/concat-filename: New file, extracted from modules/filename.
37048         * lib/filename.h (concatenated_filename): Remove declaration.
37049         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37050         * lib/concat-filename.c: Include concat-filename.h.
37051         * NEWS: Mention the change.
37052
37053 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37054
37055         * lib/bitrotate.h (rotl8, rotr8): Add.
37056
37057         * modules/bitrotate (configure.ac): Need
37058         AC_REQUIRE([AC_C_INLINE]).
37059         (Description): Mention stdint.h.  Reported by Bruno Haible
37060         <bruno@clisp.org>.
37061
37062         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37063         Paolo Bonzini <bonzini@gnu.org>.
37064
37065 2008-08-31  Bruno Haible  <bruno@clisp.org>
37066
37067         Assume Solaris specific bi-arch conventions on Solaris systems.
37068         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37069         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37070         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37071         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37072         like acl_libdirstem.
37073         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37074         acl_libdirstem.
37075         * NEWS: Mention the change.
37076         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37077
37078 2008-08-31  Jim Meyering  <meyering@redhat.com>
37079
37080         * lib/strftime.h: Add comments describing the two added arguments.
37081
37082         remove duplicate #include directives
37083         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37084         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37085
37086 2008-08-31  Bruno Haible  <bruno@clisp.org>
37087
37088         New module 'sigpipe-die'.
37089         * modules/sigpipe-die: New file.
37090         * lib/sigpipe-die.h: New file.
37091         * lib/sigpipe-die.c: New file.
37092         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37093
37094 2008-08-31  Bruno Haible  <bruno@clisp.org>
37095
37096         Don't override previously installed signal handlers.
37097         * lib/fatal-signal.c (saved_sigactions): New variable.
37098         (uninstall_handlers): Reset the signal to the saved handler, not
37099         to SIG_DFL (except when ignored).
37100         (install_handlers): Save the previous handlers.
37101
37102 2008-08-30  Bruno Haible  <bruno@clisp.org>
37103
37104         * gnulib-tool (func_reset_sigpipe): New function.
37105         (func_get_automake_snippet, func_modules_transitive_closure,
37106         func_import): Invoke it before a join command that reads from stdin,
37107         to avoid "echo: write error: Broken pipe" error messages on stderr.
37108         Reported by Sam Steingold <sds@gnu.org>.
37109
37110 2008-08-30  Bruno Haible  <bruno@clisp.org>
37111
37112         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37113         Code copied from m4/open.m4.
37114         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37115         access and the filename ends in a slash. Code copied from lib/open.c.
37116         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37117         * tests/test-fopen.c (main): Check against bug with trailing slash.
37118
37119 2008-08-29  Bruno Haible  <bruno@clisp.org>
37120
37121         Avoid some "gcc -pedantic" warnings.
37122         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37123         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37124         * lib/dirent.in.h: Likewise.
37125         * lib/fcntl.in.h: Likewise.
37126         * lib/float.in.h: Likewise.
37127         * lib/iconv.in.h: Likewise.
37128         * lib/inttypes.in.h: Likewise.
37129         * lib/locale.in.h: Likewise.
37130         * lib/math.in.h: Likewise.
37131         * lib/netinet_in.in.h: Likewise.
37132         * lib/search.in.h: Likewise.
37133         * lib/signal.in.h: Likewise.
37134         * lib/stdarg.in.h: Likewise.
37135         * lib/stdint.in.h: Likewise.
37136         * lib/stdio.in.h: Likewise.
37137         * lib/stdlib.in.h: Likewise.
37138         * lib/string.in.h: Likewise.
37139         * lib/strings.in.h: Likewise.
37140         * lib/sys_select.in.h: Likewise.
37141         * lib/sys_socket.in.h: Likewise.
37142         * lib/sys_stat.in.h: Likewise.
37143         * lib/sys_time.in.h: Likewise.
37144         * lib/sysexits.in.h: Likewise.
37145         * lib/time.in.h: Likewise.
37146         * lib/unistd.in.h: Likewise.
37147         * lib/wchar.in.h: Likewise.
37148         * lib/wctype.in.h: Likewise.
37149         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37150         * modules/fchdir (Makefile.am): Likewise.
37151         * modules/fcntl (Makefile.am): Likewise.
37152         * modules/float (Makefile.am): Likewise.
37153         * modules/iconv_open (Makefile.am): Likewise.
37154         * modules/inttypes (Makefile.am): Likewise.
37155         * modules/locale (Makefile.am): Likewise.
37156         * modules/math (Makefile.am): Likewise.
37157         * modules/netinet_in (Makefile.am): Likewise.
37158         * modules/search (Makefile.am): Likewise.
37159         * modules/signal (Makefile.am): Likewise.
37160         * modules/stdarg (Makefile.am): Likewise.
37161         * modules/stdint (Makefile.am): Likewise.
37162         * modules/stdio (Makefile.am): Likewise.
37163         * modules/stdlib (Makefile.am): Likewise.
37164         * modules/string (Makefile.am): Likewise.
37165         * modules/strings (Makefile.am): Likewise.
37166         * modules/sys_select (Makefile.am): Likewise.
37167         * modules/sys_socket (Makefile.am): Likewise.
37168         * modules/sys_stat (Makefile.am): Likewise.
37169         * modules/sys_time (Makefile.am): Likewise.
37170         * modules/sysexits (Makefile.am): Likewise.
37171         * modules/time (Makefile.am): Likewise.
37172         * modules/unistd (Makefile.am): Likewise.
37173         * modules/wchar (Makefile.am): Likewise.
37174         * modules/wctype (Makefile.am): Likewise.
37175         Reported by Reuben Thomas <rrt@sc3d.org>.
37176
37177 2008-08-29  Bruno Haible  <bruno@clisp.org>
37178
37179         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37180         any more.
37181
37182 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37183
37184         * MODULES.html.sh (Misc): Add bitrotate.
37185
37186         * modules/bitrotate: New file.
37187
37188         * lib/bitrotate.h: New file.
37189
37190         * modules/bitrotate-tests: New file.
37191
37192         * tests/test-bitrotate.c: New file.
37193
37194         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37195         on the bitrotate module.
37196
37197         * lib/arctwo.c: Use new bitrotate module.
37198
37199 2008-08-29  Jim Meyering  <meyering@redhat.com>
37200
37201         bootstrap: merge changes from coreutils
37202         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37203         of copied files.  Remove a kludge, now that this is fixed.
37204         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37205         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37206         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37207
37208 2008-08-29  Bruno Haible  <bruno@clisp.org>
37209
37210         * MODULES.html.sh: Remove --cvs-urls option.
37211
37212 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37213
37214         maint.mk: adjust to file name change
37215         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37216
37217 2008-08-28  Jim Meyering  <meyering@redhat.com>
37218
37219         * modules/getndelim2 (License): Relicense to LGPLv2+.
37220         Approved by Richard Stallman for the version of 1995, and by
37221         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37222
37223 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37224
37225         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37226         dummy if one is not available.  Do not touch them if
37227         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37228         (getc_maybe_unlocked): New.
37229         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37230
37231 2008-08-26  Eric Blake  <ebb9@byu.net>
37232
37233         doc/INSTALL: resync from autoconf
37234         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37235         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37236         moving...
37237         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37238         * INSTALL: Regenerate.
37239         * INSTALL.ISO: New file.
37240         * INSTALL.UTF-8: Likewise.
37241
37242 2008-08-26  Jim Meyering  <meyering@redhat.com>
37243
37244         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37245         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37246         these definitions conditional, so that they may be overridden, too.
37247
37248 2008-08-26  Bruno Haible  <bruno@clisp.org>
37249
37250         Generate INSTALL file variants with prettier quotes.
37251         * doc/Makefile (INSTALL_PRELUDE): New macro.
37252         (INSTALL): Use it.
37253         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37254
37255 2008-08-26  Bruno Haible  <bruno@clisp.org>
37256
37257         Run makeinfo in an English locale.
37258         * doc/Makefile (MAKEINFO): New variable.
37259
37260 2008-08-26  Bruno Haible  <bruno@clisp.org>
37261
37262         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37263         Suggested by Eric Blake.
37264
37265 2008-08-25  Bruno Haible  <bruno@clisp.org>
37266
37267         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37268
37269 2008-08-25  Eric Blake  <ebb9@byu.net>
37270
37271         c-stack: test that stack overflow can be caught
37272         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37273         that platform allows handling stack overflow; at least OS/2 EMX
37274         has sigaltstack, but crashes before transferring control to
37275         handler on stack overflow.
37276         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37277         check for HAVE_STACK_OVERFLOW_HANDLING.
37278         Reported by Elbert Pol.
37279
37280 2008-08-25  Bruno Haible  <bruno@clisp.org>
37281
37282         * doc/posix-functions/strftime.texi: Fix description of strftime
37283         module.
37284
37285 2008-08-24  Bruno Haible  <bruno@clisp.org>
37286
37287         * tests/uniwidth/test-uc_width2.c: New file.
37288         * tests/uniwidth/test-uc_width2.sh: New file.
37289         * modules/uniwidth/width-tests (Files): Add the new files.
37290         (TESTS): Add uniwidth/test-uc_width2.sh.
37291         (TESTS_ENVIRONMENT): New variable.
37292         (check_PROGRAMS): Add test-uc_width2.
37293         (test_uc_width2_SOURCES): New variable.
37294
37295         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37296         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37297         not 0x00AB.
37298         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37299
37300 2008-08-22  Eric Blake  <ebb9@byu.net>
37301
37302         test-lock, test-tls: mention why a test is skipped
37303         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37304         skipped.
37305         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37306
37307         count-one-bits: relax license
37308         * modules/count-one-bits (License): Relicense to LGPLv2+.
37309         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37310
37311 2008-08-22  Andreas Schwab  <schwab@suse.de>
37312
37313         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37314         Remove spurious space in assignment.
37315
37316 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37317
37318         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37319         Paul Eggert <eggert@CS.UCLA.EDU>.
37320
37321 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37322
37323         * modules/gettext: Add m4/threadlib.m4.
37324
37325 2008-08-19  Eric Blake  <ebb9@byu.net>
37326
37327         test-c-stack: fix compilation failure on FreeBSD 5.0
37328         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37329         headers before <sys/resource.h>.
37330         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37331         the bug.
37332         Reported by Nelson H. F. Beebe.
37333
37334         strverscmp: migrate from "strverscmp.h" to <string.h>
37335         * modules/string (Makefile.am): Add new hooks.
37336         * modules/strverscmp (Files): Remove strverscmp.h.
37337         (Depends-on): Add string.
37338         (configure.ac): Add indicator.
37339         (Include): Mention new header.
37340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37341         defaults.
37342         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37343         results.
37344         * lib/strverscmp.h: Delete.
37345         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37346         * tests/test-strverscmp.c (includes): Adjust client.
37347         * lib/check-version.c (includes): Likewise.
37348         * NEWS: Document the change.
37349
37350         strverscmp: add unit test
37351         * modules/strverscmp-tests: New file.
37352         * tests/test-strverscmp.c: Likewise.
37353
37354 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37355
37356         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37357         regarding Windows crypto stuff, from Mono.
37358
37359 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37360
37361         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37362         if present, for intel RND.  Return error on failures.
37363
37364 2008-08-18  Ben Pfaff  <blp@gnu.org>
37365
37366         gitlog-to-changelog: give better diagnostic for failed pipe-open
37367         * build-aux/gitlog-to-changelog: Improve error message: suggest
37368         that the version of Git may be too old.
37369
37370 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37371
37372         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37373         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37374
37375 2008-08-18  Bruno Haible  <bruno@clisp.org>
37376
37377         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37378         pthread_in_use().
37379
37380 2008-08-18  Bruno Haible  <bruno@clisp.org>
37381
37382         * lib/glthread/threadlib.c: Include <pthread.h>.
37383
37384 2008-08-18  Bruno Haible  <bruno@clisp.org>
37385
37386         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37387         glthread_recursive_lock_* macros.
37388         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37389         Fix syntax error.
37390
37391 2008-08-18  Bruno Haible  <bruno@clisp.org>
37392
37393         * lib/glthread/thread.c: Avoid forcing a context switch right after
37394         thread creation.
37395
37396 2008-08-17  Bruno Haible  <bruno@clisp.org>
37397
37398         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37399         * lib/glthread/thread.h: Provide Win32 specific implementation.
37400         * modules/thread (Files): Add lib/glthread/thread.c.
37401         (Depends-on): Add lock.
37402         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37403
37404 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37405
37406         New module 'yield'.
37407         * modules/yield: New file.
37408         * lib/glthread/yield.h: New file.
37409         * m4/yield.m4: New file.
37410         * MODULES.html.sh (Multithreading): Add yield.
37411
37412 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37413
37414         New module 'thread'.
37415         * modules/thread: New file.
37416         * lib/glthread/thread.h: New file.
37417         * m4/thread.m4: New file.
37418         * MODULES.html.sh (Multithreading): Add thread.
37419
37420 2008-08-17  Bruno Haible  <bruno@clisp.org>
37421
37422         * lib/glthread/lock.h: Include <stdlib.h> always.
37423         * lib/glthread/tls.h: Likewise.
37424         * lib/glthread/cond.h: Likewise.
37425
37426 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37427
37428         New module 'cond'.
37429         * modules/cond: New file.
37430         * lib/glthread/cond.h: New file.
37431         * lib/glthread/cond.c: New file.
37432         * m4/cond.m4: New file.
37433         * MODULES.html.sh (Multithreading): Add cond.
37434
37435 2008-08-16  Eric Blake  <ebb9@byu.net>
37436
37437         c-stack: fix regression on Irix 5.3 from 2008-06-21
37438         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37439         sa_sigaction...
37440         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37441         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37442         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37443         * modules/signal (Makefile.am): Use the value.
37444         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37445         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37446         * doc/posix-headers/signal.texi (signal.h): Document this
37447         portability issue.
37448         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37449         Reported by Tom G. Christensen.
37450
37451 2008-08-17  Bruno Haible  <bruno@clisp.org>
37452
37453         New module 'threadlib'.
37454         * modules/threadlib: New file.
37455         * lib/glthread/threadlib.c: New file, extracted from
37456         lib/glthread/lock.c.
37457         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37458         functions.
37459         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37460         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37461         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37462         macros.
37463         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37464         (gl_DISABLE_THREADS): Remove macro.
37465         * modules/lock (Files): Remove build-aux/config.rpath.
37466         (Depends-on): Remove havelib. Add threadlib.
37467         (configure.ac-early): Remove section.
37468         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37469         * modules/tls (Depends-on): Remove lock. Add threadlib.
37470         (Link): New section, copied from threadlib.
37471         * MODULES.html.sh (Multithreading): Add threadlib.
37472
37473 2008-08-14  Bruno Haible  <bruno@clisp.org>
37474
37475         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37476         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37477         glthread_rwlock_unlock, glthread_rwlock_destroy,
37478         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37479         glthread_recursive_lock_destroy): Define as macros always.
37480         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37481         glthread_lock_lock.
37482         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37483         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37484         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37485         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37486         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37487         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37488         (glthread_recursive_lock_lock_func): Renamed from
37489         glthread_recursive_lock_lock.
37490         (glthread_recursive_lock_unlock_func): Renamed from
37491         glthread_recursive_lock_unlock.
37492         (glthread_recursive_lock_destroy_func): Renamed from
37493         glthread_recursive_lock_destroy.
37494
37495 2008-08-14  Bruno Haible  <bruno@clisp.org>
37496
37497         * lib/glthread/lock.h: Renamed from lib/lock.h.
37498         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37499         * lib/glthread/tls.h: Renamed from lib/tls.h.
37500         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37501         * lib/fstrcmp.c: Update includes.
37502         * lib/strsignal.c: Update includes.
37503         * modules/lock (Files, Makefile.am): Update.
37504         (Include): Change to "glthread/lock.h".
37505         * modules/tls (Files, Makefile.am): Update.
37506         (Include): Change to "glthread/tls.h".
37507         * tests/test-lock.c: Update includes.
37508         * tests/test-tls.c: Update includes.
37509         * NEWS: Mention the renamed header files.
37510
37511 2008-08-11  Jim Meyering  <meyering@redhat.com>
37512
37513         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37514
37515 2008-08-11  Eric Blake  <ebb9@byu.net>
37516
37517         test-c-stack: avoid C99-ism
37518         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37519         before statement.
37520         Reported by Alain Guibert.
37521
37522 2008-08-10  Jim Meyering  <meyering@redhat.com>
37523
37524         ensure that return value of uinttostr et al are not ignored
37525         * lib/inttostr.h (__GNUC_PREREQ): Define.
37526         (__attribute_warn_unused_result__): Define.
37527         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37528
37529 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37530
37531         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37532         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37533
37534 2008-08-07  Jim Meyering  <meyering@redhat.com>
37535
37536         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37537
37538         * modules/mkstemp (License): Relicense under LGPLv2+.
37539         * modules/tempname (License): Likewise.
37540
37541 2008-08-06  Bruno Haible  <bruno@clisp.org>
37542
37543         * lib/poll.c (poll): Further micro-optimization.
37544
37545 2008-08-06  Jim Meyering  <meyering@redhat.com>
37546
37547         inet_pton.c: use locale-independent tolower
37548         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37549         (inet_pton6): Use c_tolower rather than tolower.
37550         * modules/inet_pton (Depends-on): Add c-ctype.
37551
37552 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37553
37554         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37555         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37556
37557 2008-08-06  Jim Meyering  <meyering@redhat.com>
37558
37559         * modules/inet_pton (License): Relicense under LGPLv2+.
37560
37561 2008-08-03  Bruno Haible  <bruno@clisp.org>
37562
37563         Additional non-aborting API for lock and tls.
37564         * lib/lock.h: Include <errno.h>.
37565         (glthread_lock_init): New macro/function.
37566         (gl_lock_init): Define as wrapper around glthread_lock_init.
37567         (glthread_lock_lock): New macro/function.
37568         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37569         (glthread_lock_unlock): New macro/function.
37570         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37571         (glthread_lock_destroy): New macro/function.
37572         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37573         (glthread_rwlock_init): New macro/function.
37574         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37575         (glthread_rwlock_rdlock): New macro/function.
37576         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37577         (glthread_rwlock_wrlock): New macro/function.
37578         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37579         (glthread_rwlock_unlock): New macro/function.
37580         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37581         (glthread_rwlock_destroy): New macro/function.
37582         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37583         (glthread_recursive_lock_init): New macro/function.
37584         (gl_recursive_lock_init): Define as wrapper around
37585         glthread_recursive_lock_init.
37586         (glthread_recursive_lock_lock): New macro/function.
37587         (gl_recursive_lock_lock): Define as wrapper around
37588         glthread_recursive_lock_lock.
37589         (glthread_recursive_lock_unlock): New macro/function.
37590         (gl_recursive_lock_unlock): Define as wrapper around
37591         glthread_recursive_lock_unlock.
37592         (glthread_recursive_lock_destroy): New macro/function.
37593         (gl_recursive_lock_destroy): Define as wrapper around
37594         glthread_recursive_lock_destroy.
37595         (glthread_once): New macro/function.
37596         (gl_once): Define as wrapper around glthread_once.
37597         Update function declarations.
37598         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37599         glthread_rwlock_init. Return error code.
37600         (glthread_rwlock_rdlock_multithreaded): Renamed from
37601         glthread_rwlock_rdlock. Return error code.
37602         (glthread_rwlock_wrlock_multithreaded): Renamed from
37603         glthread_rwlock_wrlock. Return error code.
37604         (glthread_rwlock_unlock_multithreaded): Renamed from
37605         glthread_rwlock_unlock. Return error code.
37606         (glthread_rwlock_destroy_multithreaded): Renamed from
37607         glthread_rwlock_destroy. Return error code.
37608         (glthread_recursive_lock_init_multithreaded): Renamed from
37609         glthread_recursive_lock_init. Return error code.
37610         (glthread_recursive_lock_lock_multithreaded): Renamed from
37611         glthread_recursive_lock_lock. Return error code.
37612         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37613         glthread_recursive_lock_unlock. Return error code.
37614         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37615         glthread_recursive_lock_destroy. Return error code.
37616         (glthread_once_call): Make static.
37617         (glthread_once_multithreaded): Renamed from glthread_once.
37618         * lib/tls.h: Include <errno.h>.
37619         (glthread_tls_key_init): New macro/function.
37620         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37621         (glthread_tls_set): New macro/function.
37622         (gl_tls_set): Define as wrapper around glthread_tls_set.
37623         (glthread_tls_key_destroy): New macro/function.
37624         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37625         Update function declarations.
37626         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37627         glthread_tls_get.
37628         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37629
37630 2008-08-04  Eric Blake  <ebb9@byu.net>
37631
37632         gnumakefile: use space, not TAB, outside of targets
37633         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37634
37635 2008-08-02  Jim Meyering  <meyering@redhat.com>
37636
37637         getdate.y: avoid locale-dependent date parsing failure
37638         In Turkish locales, getdate would fail to recognize keywords
37639         containing a lowercase "i".  The solution is not to rely on
37640         locale-sensitive case-conversion.
37641         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37642         (lookup_word): Use c_toupper in place of toupper.
37643         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37644         Reported by Vefa Bicakci <bicave@superonline.com> in
37645         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37646         * modules/getdate (Depends-on): Add c-ctype.
37647
37648 2008-08-02  Bruno Haible  <bruno@clisp.org>
37649
37650         * gnulib-tool (func_import): When updating or creating a .gitignore
37651         file, prepend each added line with a slash, and ignore leading slashes
37652         from the existing lines.
37653         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37654
37655 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37656
37657         Portability fix for GNU make 3.79.1.
37658         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37659         versions do not understand.
37660
37661 2008-08-01  Bruno Haible  <bruno@clisp.org>
37662
37663         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37664         * tests/test-isnanf.h (zero): New variable.
37665         (main): Avoid literal -0.0f.
37666         * tests/test-isnand.h (zero): New variable.
37667         (main): Avoid literal -0.0.
37668         * tests/test-isnanl.h (zero): New variable.
37669         (main): Avoid literal -0.0L.
37670         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37671         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37672         -0.0, -0.0L.
37673         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37674         (test_signbitd): Avoid literal -0.0.
37675         (test_signbitl): Avoid literal -0.0L.
37676         * tests/test-ceilf1.c (zero): New variable.
37677         (main): Avoid literal -0.0f.
37678         * tests/test-ceill.c (zero): New variable.
37679         (main): Avoid literal -0.0L.
37680         * tests/test-floorf1.c (zero): New variable.
37681         (main): Avoid literal -0.0f.
37682         * tests/test-floorl.c (zero): New variable.
37683         (main): Avoid literal -0.0L.
37684         * tests/test-roundf1.c (zero): New variable.
37685         (main): Avoid literal -0.0f.
37686         * tests/test-round1.c (zero): New variable.
37687         (main): Avoid literal -0.0.
37688         * tests/test-roundl.c (zero): New variable.
37689         (main): Avoid literal -0.0L.
37690         * tests/test-truncf1.c (zero): New variable.
37691         (main): Avoid literal -0.0f.
37692         * tests/test-trunc1.c (zero): New variable.
37693         (main): Avoid literal -0.0.
37694         * tests/test-truncl.c (zero): New variable.
37695         (main): Avoid literal -0.0L.
37696         * tests/test-frexp.c (zero): New variable.
37697         (main): Avoid literal -0.0.
37698         * tests/test-frexpl.c (zero): New variable.
37699         (main): Avoid literal -0.0L.
37700         * tests/test-ldexpl.c (zero): New variable.
37701         (main): Avoid literal -0.0L.
37702         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37703         (zerod, zerol): New variables.
37704         (test_function): Avoid literals -0.0, -0.0L.
37705         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37706         (zerod, zerol): New variables.
37707         (test_function): Avoid literals -0.0, -0.0L.
37708         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37709         (zerod, zerol): New variables.
37710         (test_function): Avoid literals -0.0, -0.0L.
37711         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37712         (zerod, zerol): New variables.
37713         (test_function): Avoid literals -0.0, -0.0L.
37714         * tests/test-strtod.c (zero): New variable.
37715         (main): Avoid literal -0.0.
37716         Reported by Jonathan C. Patschke <jp@centtech.com>.
37717
37718 2008-07-31  Jim Meyering  <meyering@redhat.com>
37719
37720         sha256.h: correct definition of SHA224_DIGEST_SIZE
37721         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37722         Reported by Paulie Pena IV <paulie4@gmail.com>.
37723         Define as 224 / 8, rather than as a literal.
37724         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37725         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37726         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37727
37728 2008-07-31  Bruno Haible  <bruno@clisp.org>
37729
37730         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37731         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37732         Reported by Jonathan Patschke <jp@centtech.com>.
37733
37734 2008-07-31  Bruno Haible  <bruno@clisp.org>
37735
37736         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37737         Reported by Paolo Bonzini <bonzini@gnu.org>.
37738
37739 2008-07-30  Eric Blake  <ebb9@byu.net>
37740
37741         test-strtod: allow compilation without -lm
37742         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37743         Reported by Dennis Clarke <blastwave@gmail.com>.
37744
37745 2008-07-28  Jim Meyering  <meyering@redhat.com>
37746
37747         bootstrap: work also when there are no .po files in po/
37748         * build-aux/bootstrap (update_po_files): Complete the change
37749         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37750
37751 2008-07-27  Jim Meyering  <meyering@redhat.com>
37752
37753         * users.txt: Add zile.
37754
37755 2008-07-26  Ben Pfaff  <blp@gnu.org>
37756
37757         Add missing dependencies on new m4/exponent[fdl].m4 files.
37758         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37759         * modules/isnand-nolibm: Add m4/exponentd.m4.
37760         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37761         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37762         m4/isnan[fdl].m4, because the macros actually used moved.
37763         Reported by Jim Meyering.
37764
37765 2008-07-14  Ben Pfaff  <blp@gnu.org>
37766
37767         Add isinf module.
37768         * lib/isinf.c: New file.
37769         * lib/math.in.h: Define isinf macro if we have decided to replace
37770         it.
37771         * m4/isinf.m4: New file.
37772         * m4/math_h.m4: Initialize and substitute variables for isinf
37773         module.
37774         * modules/isinf: New file.
37775         * modules/isinf-tests: New file.
37776         * modules/math: Add substitutions for new module.
37777         * tests/test-isinf.c: New file.
37778         * doc/posix-functions/isinf.texi: Mention new module.
37779         * MODULES.html.sh: Mention new module.
37780
37781 2008-07-14  Ben Pfaff  <blp@gnu.org>
37782
37783         Factor out some macros for use by additional modules.
37784         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37785         exponentf.m4.
37786         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37787         exponentd.m4.
37788         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37789         file exponentl.m4.
37790         * m4/exponentf.m4: New file.
37791         * m4/exponentd.m4: New file.
37792         * m4/exponentl.m4: New file.
37793         * modules/isnanf: Use new file m4/exponentf.m4.
37794         * modules/isnand: Use new file m4/exponentd.m4.
37795         * modules/isnanl: Use new file m4/exponentl.m4.
37796
37797 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37798
37799         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37800         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37801         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37802         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37803
37804         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37805         readlink on platforms without PATH_MAX.
37806
37807 2008-07-21  Eric Blake  <ebb9@byu.net>
37808
37809         Warn, not fail, on stale version.
37810         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37811
37812         Don't allow installation with stale devel version number.
37813         * top/GNUmakefile (_is-install-target): New macro.
37814         (_curr-ver): Forbid installation with stale version number.
37815
37816 2008-07-20  Bruno Haible  <bruno@clisp.org>
37817
37818         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37819         TESTS_ENVIRONMENT.
37820         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37821
37822 2008-07-20  Bruno Haible  <bruno@clisp.org>
37823
37824         * lib/c-stack.h (c_stack_action): Add documentation.
37825         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37826
37827 2008-07-20  Bruno Haible  <bruno@clisp.org>
37828
37829         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37830         * modules/readlink (License): Likewise.
37831
37832 2008-07-17  Eric Blake  <ebb9@byu.net>
37833
37834         * modules/c-stack (Link): Fix typo.
37835
37836         Make c-stack use libsigsegv, when available.
37837         * modules/c-stack (Depends-on): Add libsigsegv.
37838         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37839         needed.
37840         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37841         (segv_handler, overflow_handler, c_stack_action)
37842         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37843         implementation when libsigsegv is available, but only when using
37844         the library is necessary.
37845         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37846         comment, explaining why XSI check fails on Linux.
37847         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37848         * tests/test-c-stack2.sh: Tweak skip message.
37849         * NEWS: Document new link-time requirements.
37850
37851 2008-07-16  Eric Blake  <ebb9@byu.net>
37852
37853         c-stack: Expose false positives when not using libsigsegv.
37854         * modules/c-stack-tests (Files): Expand test.
37855         * tests/test-c-stack.c (main): Add means to conditionally trigger
37856         non-overflow SIGSEGV.
37857         * tests/test-c-stack2.sh: New file.
37858
37859 2008-07-14  Bruno Haible  <bruno@clisp.org>
37860
37861         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37862         Reported by Eric Blake.
37863
37864 2008-07-14  Sam Steingold  <sds@gnu.org>
37865             Bruno Haible  <bruno@clisp.org>
37866
37867         New module libsigsegv.
37868         * modules/libsigsegv: New file.
37869         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37870         modifications.
37871         * MODULES.html.sh (Signal handling): New section.
37872
37873 2008-07-14  Bruno Haible  <bruno@clisp.org>
37874
37875         * modules/unictype/ctype-* (Description): Add the word "function".
37876         Improves the resulting doc in MODULES.html.
37877
37878 2008-07-12  Ben Pfaff  <blp@gnu.org>
37879
37880         Add longlong module.
37881         * modules/longlong: New file.
37882
37883 2008-07-12  Bruno Haible  <bruno@clisp.org>
37884
37885         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37886         to empty.
37887
37888 2008-07-10  Ben Pfaff  <blp@gnu.org>
37889
37890         Add isnan module.
37891         * doc/posix-functions/isnan.texi: Mention new module.
37892         * lib/math.in.h: Define isnan macro if we have decided to replace
37893         it.
37894         * m4/isnan.m4: New file.
37895         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37896         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37897         also.
37898         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37899         redundancy.
37900         * m4/math_h.m4: Initialize and substitute variables for isnan
37901         module.
37902         * modules/isnan: New file.
37903         * modules/isnan-tests: New file.
37904         * modules/math: Add substitutions for new module.
37905         * tests/test-isnan.c: New file.
37906         * MODULES.html.sh: Mention new module.
37907
37908 2008-07-10  Ben Pfaff  <blp@gnu.org>
37909
37910         Add isnanf module.
37911         * lib/isnanf.m4: New file.
37912         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37913         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37914         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37915         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37916         * modules/isnanf: New file.
37917         * modules/isnanf-tests: New file.
37918         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37919         files.
37920         * tests/test-isnanf-nolibm.c: factored most of its contents into
37921         new file tests/test-isnanf.h.
37922         * tests/test-isnanf.h: New file.
37923         * tests/test-isnanf.c: New file.
37924         * MODULES.html.sh: Mention new module.
37925         * doc/glibc-functions/isnanf.texi: Mention new module.
37926
37927 2008-07-10  Ben Pfaff  <blp@gnu.org>
37928
37929         Add isnand module.
37930         * lib/isnand.h: New file.
37931         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37932         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37933         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37934         functionality also.
37935         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37936         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37937         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37938         * modules/isnand: New file.
37939         * modules/isnand-tests: New file.
37940         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37941         files.
37942         * tests/test-isnand-nolibm.c: factored most of its contents into
37943         new file tests/test-isnand.h.
37944         * tests/test-isnand.h: New file.
37945         * tests/test-isnand.c: New file.
37946         * MODULES.html.sh: Mention new module.
37947
37948 2008-07-10  Ben Pfaff  <blp@gnu.org>
37949
37950         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37951         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37952         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37953         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
37954         * modules/isnanf-nolibm: Update references to renamed files.
37955         * modules/isnand-nolibm: Likewise.
37956         * modules/isnanf-nolibm-tests: Likewise.
37957         * modules/isnand-nolibm-tests: Likewise.
37958         * lib/frexp.c: Likewise.
37959         * lib/isfinite.c: Likewise.
37960         * lib/signbitd.c: Likewise.
37961         * lib/signbitf.c: Likewise.
37962         * lib/vasnprintf.c: Likewise.
37963         * tests/test-ceilf1.c: Likewise.
37964         * tests/test-ceilf2.c: Likewise.
37965         * tests/test-floorf1.c: Likewise.
37966         * tests/test-floorf2.c: Likewise.
37967         * tests/test-frexp.c: Likewise.
37968         * tests/test-round1.c: Likewise.
37969         * tests/test-round2.c: Likewise.
37970         * tests/test-roundf1.c: Likewise.
37971         * tests/test-strtod.c: Likewise.
37972         * tests/test-trunc1.c: Likewise.
37973         * tests/test-trunc2.c: Likewise.
37974         * tests/test-truncf1.c: Likewise.
37975         * tests/test-truncf2.c: Likewise.
37976         * NEWS: Mention the renamed header files.
37977
37978 2008-07-11  Jim Meyering  <meyering@redhat.com>
37979
37980         vc-list-files: make the last-resort awk code more portable
37981         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
37982         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
37983         does not support it.
37984
37985 2008-07-10  Eric Blake  <ebb9@byu.net>
37986
37987         Work with tar's bootstrap.
37988         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
37989         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
37990         an m4 comment.
37991
37992 2008-07-09  Jim Meyering  <meyering@redhat.com>
37993
37994         posix-shell.m4: fix typo that made this test malfunction
37995         * m4/posix-shell.m4: Remove capitalization in variable name.
37996
37997 2008-07-08  Bruno Haible  <bruno@clisp.org>
37998
37999         * m4/onceonly.m4: Update comments.
38000         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38001
38002 2008-07-04  Jim Meyering  <meyering@redhat.com>
38003
38004         * users.txt: Add vc-dwim.
38005         (bison, coreutils): Use the gitweb URL.
38006
38007 2008-07-03  Jim Meyering  <meyering@redhat.com>
38008
38009         * users.txt: Add libffcall.  From Sam Steingold.
38010
38011 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
38012
38013         getdate.y: do not ignore TZ with relative day, month or year offset
38014         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38015         relative-date-handling, since otherwise, the latter would clobber the
38016         sole output (an updated Start value) of the tz-handling block.
38017         * tests/test-getdate.c: Tests for the fix
38018
38019 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38020
38021         Recognize 'foo_LIBRARIES += libgnu.a'.
38022         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38023         makefile snippet has already specified an installation location,
38024         also using '+='.
38025
38026 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
38027
38028         getdate.y: factor out common actions
38029         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38030         Use them in place of open-coded actions.
38031
38032 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38033
38034         Add self-test for getdate module.
38035         * modules/getdate-tests: New file.
38036         * tests/test-getdate.c: New file.
38037
38038 2008-06-29  Bruno Haible  <bruno@clisp.org>
38039
38040         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38041         .gitignore.
38042         Reported by Sylvain Beucler <beuc@beuc.net>.
38043
38044 2008-06-29  Bruno Haible  <bruno@clisp.org>
38045
38046         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38047         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38048
38049 2008-06-29  Bruno Haible  <bruno@clisp.org>
38050
38051         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38052         EXTRA_DIST.
38053         Reported by Sylvain Beucler <beuc@beuc.net>.
38054
38055 2008-06-26  Jim Meyering  <meyering@redhat.com>
38056
38057         make several modules depend on the "open" module
38058         This provides slightly increased consistency when opening-for-write
38059         the name of a non-directory spelled with a trailing slash.
38060         * modules/chdir-safer: Likewise.
38061         * modules/chown: Likewise.
38062         * modules/clean-temp: Likewise.
38063         * modules/copy-file: Likewise.
38064         * modules/fchdir: Likewise.
38065         * modules/fcntl-safer: Likewise.
38066         * modules/pipe: Likewise.
38067         * modules/utime: Likewise.
38068         Prompted by Eric Blake and Bruno Haible.
38069
38070 2008-06-24  Andreas Schwab  <schwab@suse.de>
38071
38072         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38073         literals can be used as initializers for global variables.
38074
38075 2008-06-23  Eric Blake  <ebb9@byu.net>
38076
38077         Make gnulib-cache.m4 easier to diff.
38078         * gnulib-tool (func_import): Allow newlines when reading cached
38079         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38080
38081 2008-06-23  Bruno Haible  <bruno@clisp.org>
38082
38083         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38084         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38085         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38086         m4/signalblocking.m4.
38087         (gl_PREREQ_SIGACTION): Don't invoke it.
38088         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38089         gl_PREREQ_SIG_HANDLER_H.
38090         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38091         Don't check for sigaction here.
38092
38093 2008-06-23  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38096         (install_handlers): Don't set the SA_RESETHAND flag.
38097
38098 2008-06-23  Bruno Haible  <bruno@clisp.org>
38099
38100         * m4/sigaction.m4: Comment fixes.
38101         * lib/signal.in.h: Likewise.
38102
38103 2008-06-23  Eric Blake  <ebb9@byu.net>
38104
38105         Fix typo.
38106         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38107
38108         Avoid SA_ namespace.
38109         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38110         Reported by Ralf Wildenhues.
38111
38112         Avoid test failure due to SA_RESTORER.
38113         * tests/test-sigaction.c (SA_MASK): New macro.
38114         (main): Avoid failing due to extension flags being set.
38115         Reported by Jim Meyering.
38116
38117         Revert use of sig-handler.h in sigprocmask.c.
38118         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38119         it requires the existence of struct sigaction.
38120         * lib/sigprocmask.c (handler_t): Restore typedef.
38121         (rpl_signal, old_handlers): Use local type.
38122
38123 2008-06-22  Bruno Haible  <bruno@clisp.org>
38124
38125         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38126         conditionally.
38127         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38128
38129 2008-06-22  Bruno Haible  <bruno@clisp.org>
38130
38131         * doc/posix-functions/siginterrupt.texi: Move note.
38132
38133         * lib/signal.in.h (SA_RESTART): New macro.
38134         * lib/sigaction.c: Update comment.
38135
38136         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38137
38138         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38139         (gl_PREREQ_SIGPROCMASK): Invoke it.
38140         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38141
38142         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38143
38144         * lib/sigprocmask.c: Update a comment.
38145
38146 2008-06-21  Eric Blake  <ebb9@byu.net>
38147
38148         Use sigaction module rather than signal().
38149         * modules/c-stack (Depends-on): Add sigaction.
38150         * modules/fatal-signal (Depends-on): Likewise.
38151         * modules/nanosleep (Depends-on): Likewise.
38152         * modules/sigprocmask (Files): Add sig-handler.h.
38153         * modules/sigaction (Files): Likewise.
38154         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38155         Eggert.
38156         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38157         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38158         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38159         (init_fatal_signals): Likewise.
38160         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38161         (siginterrupt): Delete fallback.
38162         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38163         instead.
38164         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38165         siginterrupt.
38166
38167         New module sigaction, for mingw.
38168         * modules/sigaction: New module...
38169         * modules/sigaction-tests: ...and its test.
38170         * m4/sigaction.m4: New file.
38171         * lib/sigaction.c: Likewise.
38172         * tests/test-sigaction.c: Likewise.
38173         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38174         * modules/signal (Makefile.am): Likewise.
38175         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38176         needed.
38177         * doc/posix-headers/signal.texi (signal.h): Mention provided
38178         types.
38179         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38180         that sigaction is preferable.
38181         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38182         module.
38183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38184         sigaction.
38185
38186         Improve robustness of sigprocmask by overriding signal.
38187         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38188         is in use.
38189         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38190         (SIGKILL, SIGSTOP): Provide fallbacks.
38191         (rpl_signal): Implement.
38192         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38193         signal can be called inside handlers.
38194
38195         Fix nanosleep module on mingw.
38196         * modules/nanosleep (Depends-on): Add sys_select.
38197         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38198
38199         Fix licensing of sigprocmask.
38200         * modules/raise (License): Relicense as LGPL.
38201
38202 2008-06-21  Bruno Haible  <bruno@clisp.org>
38203
38204         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38205         result if it contains question marks.
38206         Reported by Michael Geng <linux@michaelgeng.de>.
38207
38208 2008-06-19  Bruno Haible  <bruno@clisp.org>
38209
38210         Fix CVS-ism.
38211         * doc/gnulib.texi: Include updated-stamp.texi.
38212         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38213         (updated-stamp.texi): New rule.
38214         (gnulib.info): Depend on it.
38215         * doc/.gitignore: Add updated-stamp.texi.
38216         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38217
38218 2008-06-19  Bruno Haible  <bruno@clisp.org>
38219
38220         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38221         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38222
38223 2008-06-19  Eric Blake  <ebb9@byu.net>
38224
38225         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38226         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38227         Reported by Stepan Kasal.
38228
38229 2008-06-18  Bruno Haible  <bruno@clisp.org>
38230
38231         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38232         Reported by Eric Blake.
38233
38234 2008-06-18  Eric Blake  <ebb9@byu.net>
38235
38236         Work around cygwin 1.5.25 strsignal bug.
38237         * tests/test-strsignal.c: Allow for const char *.
38238         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38239
38240 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38241
38242         * users.txt: Update URL to article and add author/date
38243         information.
38244
38245 2008-06-17  Bruno Haible  <bruno@clisp.org>
38246
38247         New macro gl_DISABLE_THREADS.
38248         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38249         if the user did not pass --enable-threads or --disable-threads option.
38250         (gl_DISABLE_THREADS): New macro.
38251         Reported by Eric Blake <ebb9@byu.net>.
38252
38253 2008-06-17  Bruno Haible  <bruno@clisp.org>
38254
38255         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38256         when the macro ignores it.
38257         Based on a patch by Eric Blake <ebb9@byu.net>.
38258
38259 2008-06-17  Bruno Haible  <bruno@clisp.org>
38260
38261         * modules/tls (License): Change to LGPLv2+.
38262         Reported by Eric Blake.
38263
38264 2008-06-17  Eric Blake  <ebb9@byu.net>
38265
38266         Simplify c-stack prerequisites.
38267         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38268         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38269         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38270         check.
38271         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38272         <sys/resource.h>.
38273
38274         Move c-stack test into testsuite.
38275         * modules/c-stack-tests: New file.
38276         * lib/c-stack.c [DEBUG]: Move test program...
38277         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38278         fail test if sigaltstack is lacking.
38279         * tests/test-c-stack.sh: New driver file.
38280
38281 2008-06-16  Eric Blake  <ebb9@byu.net>
38282
38283         Use raise module consistently.
38284         * modules/fatal-signal (Depends-on): Add raise.
38285         * modules/sigprocmask (Depends-on): Likewise.
38286         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38287         * lib/sigprocmask.c (sigprocmask): Likewise.
38288         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38289         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38290
38291         Fix compliance bug in sigpending.
38292         * lib/sigprocmask.c (sigpending): Return pending array via
38293         parameter, not return value.
38294
38295 2008-06-14  Eric Blake  <ebb9@byu.net>
38296
38297         Improve obstack-printf test code.
38298         * tests/test-obstack-printf.c (test_function): Fix comment, and
38299         simplify usage of obstack_* in macros.  Add a test for coverage.
38300         Reported by Bruno Haible.
38301
38302 2008-06-14  Bruno Haible  <bruno@clisp.org>
38303
38304         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38305         array size as a constant, not as a const variable.
38306         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38307         AC_USE_SYSTEM_EXTENSIONS.
38308         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38309         Test whether the obstack_printf function actually exists.
38310         * modules/obstack-printf (Depends-on): Add extensions.
38311         (Include): Remove obstack.h.
38312         * modules/obstack-printf-posix (Depends-on): Add extensions.
38313         (Include): Remove obstack.h.
38314
38315 2008-06-13  Eric Blake  <ebb9@byu.net>
38316
38317         Add obstack-printf and obstack-printf-posix modules.
38318         * modules/obstack-printf: New file.
38319         * modules/obstack-printf-posix: Likewise.
38320         * MODULES.html.sh (Misc): Mention them.
38321         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38322         Likewise.
38323         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38324         Likewise.
38325         * modules/stdio (Makefile.am): Accomodate new modules.
38326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38327         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38328         Declare.
38329         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38330         functions.
38331         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38332         (gl_REPLACE_OBSTACK_PRINTF): New macros
38333         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38334         * tests/test-obstack-printf.c: New file.
38335         * modules/obstack-printf-tests: Likewise.
38336         * modules/obstack-printf-posix-tests: Likewise.
38337
38338 2008-06-11  Bruno Haible  <bruno@clisp.org>
38339
38340         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38341         * lib/open.c: Include errno.h.
38342         (open): Fail when attempting to write to a file that has a trailing
38343         slash.
38344         * tests/test-open.c (main): Test against trailing slash bug.
38345         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38346
38347 2008-06-10  Bruno Haible  <bruno@clisp.org>
38348
38349         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38350         for $? to work inside the trap command, with various /bin/sh-s.
38351         * tests/test-vc-list-files-cvs.sh: Likewise.
38352
38353 2008-06-10  Bruno Haible  <bruno@clisp.org>
38354
38355         * lib/acl-internal.h: Don't include gettext.h here.
38356         * lib/set-mode-acl.c: Include gettext.h here.
38357         * lib/copy-acl.c: Likewise.
38358
38359 2008-06-10  Bruno Haible  <bruno@clisp.org>
38360
38361         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38362         * lib/wait-process.c (wait_subprocess): Likewise.
38363         * lib/execute.h (execute): Add termsigp argument.
38364         * lib/execute.c (execute): Likewise.
38365         * lib/csharpcomp.c (compile_csharp_using_pnet,
38366         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38367         * lib/csharpexec.c (execute_csharp_using_pnet,
38368         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38369         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38370         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38371         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38372         is_jikes_present): Update.
38373         * lib/javaexec.c (execute_java_class): Update.
38374         * lib/javaversion.c (execute_and_read_line): Update.
38375         * NEWS: Document the changes.
38376         Reported by Eric Blake.
38377
38378 2008-06-10  Eric Blake  <ebb9@byu.net>
38379
38380         Add missing include.
38381         * tests/test-strstr.c (includes): Add <signal.h>.
38382         * tests/test-strcasestr.c (includes): Likewise.
38383         * tests/test-memmem.c (includes): Likewise.
38384
38385 2008-06-10  Bruno Haible  <bruno@clisp.org>
38386
38387         * lib/wait-process.c (wait_subprocess): Add an assertion.
38388
38389 2008-06-10  Bruno Haible  <bruno@clisp.org>
38390
38391         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38392
38393 2008-06-10  Bruno Haible  <bruno@clisp.org>
38394
38395         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38396         using alarm().
38397         * tests/test-strcasestr.c (main): Likewise.
38398         * tests/test-strstr.c (main): Likewise.
38399
38400 2008-06-09  Bruno Haible  <bruno@clisp.org>
38401
38402         Work around the Solaris 10 ACE ACLs ABI change.
38403         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38404         declare if ACL_NO_TRIVIAL is present.
38405         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38406         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38407         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38408         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38409         define if ACL_NO_TRIVIAL is present.
38410         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38411         and use the current ABI.
38412         (file_has_acl): Use same #if condition as elsewhere.
38413         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38414         in use, and use the current ABI.
38415         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38416         Reported by Jim Meyering.
38417
38418 2008-06-09  Eric Blake  <ebb9@byu.net>
38419
38420         Work around environments that (stupidly) ignore SIGALRM.
38421         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38422         before using alarm().
38423         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38424         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38425         Reported by Ian Beckwith <ianb@erislabs.net>.
38426
38427         Produce autobuild blurb earlier in log.
38428         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38429
38430 2008-06-09  Jim Meyering  <meyering@redhat.com>
38431         and Ondřej Vašík  <ovasik@redhat.com>
38432
38433         utimens.c: correct kernel bug work-around
38434         Ondřej Vašík found that the invalid return value of 280 indicates
38435         failure, not success, and the kernel bug we're trying to work
38436         around affects not just the utimensat call, but also the fallback
38437         futimens call.
38438         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38439         not success.
38440         [HAVE_FUTIMENS]: Use the same work-around, here.
38441
38442 2008-06-09  Jim Meyering  <meyering@redhat.com>
38443
38444         add more guards around definition of ACE_-related code
38445         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38446         ALLOW and ACE_OWNER are also defined.
38447
38448 2008-06-08  Bruno Haible  <bruno@clisp.org>
38449
38450         * lib/acl-internal.h: Add me as co-author.
38451         * lib/file-has-acl.c: Likewise.
38452         * lib/set-mode-acl.c: Likewise.
38453         * lib/copy-acl.c: Likewise.
38454
38455 2008-06-08  Bruno Haible  <bruno@clisp.org>
38456
38457         Add support for AIX ACLs.
38458         * lib/acl-internal.h (acl_nontrivial): New declaration.
38459         * lib/file-has-acl.c (acl_nontrivial): New function.
38460         (file_has_acl): Add implementation using AIX 4 ACL API.
38461         * lib/set-mode-acl.c (qset_acl): Likewise.
38462         * lib/copy-acl.c (qcopy_acl): Likewise.
38463
38464 2008-06-08  Bruno Haible  <bruno@clisp.org>
38465
38466         Add support for HP-UX ACLs.
38467         * lib/acl-internal.h (acl_nontrivial): New declaration.
38468         * lib/file-has-acl.c (acl_nontrivial): New function.
38469         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38470         * lib/set-mode-acl.c (qset_acl): Likewise.
38471         * lib/copy-acl.c (qcopy_acl): Likewise.
38472
38473 2008-06-08  Bruno Haible  <bruno@clisp.org>
38474
38475         Add support for Cygwin ACLs.
38476         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38477         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38478         the chmod_or_fchmod call.
38479         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38480
38481 2008-06-08  Bruno Haible  <bruno@clisp.org>
38482
38483         Fix bug with setuid modes in Solaris 10+ code.
38484         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38485         succeeded, when the mode contains some special bits.
38486
38487 2008-06-08  Bruno Haible  <bruno@clisp.org>
38488
38489         Add support for Solaris 7..10 ACLs.
38490         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38491         declarations.
38492         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38493         functions.
38494         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38495         * lib/set-mode-acl.c (qset_acl): Likewise.
38496         * lib/copy-acl.c (qcopy_acl): Likewise.
38497
38498 2008-06-08  Bruno Haible  <bruno@clisp.org>
38499
38500         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38501         declaration.
38502         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38503         (acl_access_nontrivial): Remove MacOS X case.
38504         (file_has_acl): Use acl_extended_nontrivial.
38505         * lib/copy-acl.c (qcopy_acl): Likewise.
38506
38507 2008-06-08  Bruno Haible  <bruno@clisp.org>
38508
38509         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38510
38511 2008-06-08  Jim Meyering  <meyering@redhat.com>
38512
38513         * modules/acl (Maintainer): Add Bruno Haible.
38514
38515 2008-06-07  Bruno Haible  <bruno@clisp.org>
38516
38517         Improve support for Tru64 ACLs.
38518         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38519         ACL on OSF/1.
38520
38521 2008-06-07  Bruno Haible  <bruno@clisp.org>
38522
38523         Add support for MacOS X ACLs.
38524         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38525         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38526         * lib/set-mode-acl.c (qset_acl): Likewise.
38527         * lib/copy-acl.c (qcopy_acl): Likewise.
38528
38529 2008-06-07  Bruno Haible  <bruno@clisp.org>
38530
38531         Fix memory leak introduced on 2008-05-22.
38532         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38533         use.
38534
38535 2008-06-07  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38538         to construct an empty ACL.
38539
38540 2008-06-07  Bruno Haible  <bruno@clisp.org>
38541
38542         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38543         precisely.
38544         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38545
38546 2008-06-07  Bruno Haible  <bruno@clisp.org>
38547
38548         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38549         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38550
38551 2008-06-07  Bruno Haible  <bruno@clisp.org>
38552
38553         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38554         regardless of POSIX.
38555         * doc/posix-functions/_longjmp.texi: Likewise.
38556         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38557         SystemV platform in this case.
38558
38559 2008-06-06  Eric Blake  <ebb9@byu.net>
38560
38561         Document abort() bugs.
38562         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38563
38564         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38565         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38566         sigsetjmp.
38567         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38568         siglongjmp, but only as a macro.
38569         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38570         is obsolete.
38571         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38572
38573         Tweak documentation to cover cygwin argz bugs.
38574         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38575         argz bug fix; no code change needed since no cygwin releases
38576         occurred between the last fix and the bug being tested.
38577         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38578         module and recently fixed cygwin bugs.
38579         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38580         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38581         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38582         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38583         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38584         Likewise.
38585         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38586         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38587         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38588         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38589         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38590         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38591         Likewise.
38592
38593         Avoid gcc warning on cygwin.
38594         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38595         !ACL_NO_TRIVIAL]: Avoid unused variable.
38596
38597 2008-06-05  Eric Blake  <ebb9@byu.net>
38598
38599         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38600         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38601         git-version-gen fails to come up with a version.
38602         Reported by Simon Josefsson.
38603
38604 2008-06-05  Jim Meyering  <meyering@redhat.com>
38605             Paul Eggert  <eggert@cs.ucla.edu>
38606
38607         utimens.c: work around a probable Linux kernel bug
38608         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38609         appears to be a kernel bug that causes utimensat to return 280
38610         instead of 0, indicating success.
38611
38612 2008-06-04  Bruno Haible  <bruno@clisp.org>
38613
38614         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38615         2008-06-01 commit.
38616
38617 2008-06-04  Bruno Haible  <bruno@clisp.org>
38618
38619         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38620         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38621         (file_has_acl): Use it. Save errno afterwards.
38622         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38623
38624 2008-06-03  Bruno Haible  <bruno@clisp.org>
38625
38626         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38627         draft code. Simplify #ifs.
38628         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38629         Put Solaris code after POSIX-draft code. Fix comments regarding
38630         Solaris 10, HP-UX. Mention Cygwin.
38631         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38632
38633 2008-06-03  Eric Blake  <ebb9@byu.net>
38634
38635         Provide fallback for older kernels.
38636         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38637         Provide runtime fallback if kernel lacks support.
38638         Reported by Mike Frysinger.
38639
38640 2008-06-02  Bruno Haible  <bruno@clisp.org>
38641
38642         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38643         it exists.
38644
38645 2008-06-02  Bruno Haible  <bruno@clisp.org>
38646
38647         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38648         * lib/copy-acl.c (qcopy_acl): Update comment.
38649
38650 2008-06-02  Bruno Haible  <bruno@clisp.org>
38651
38652         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38653         like ACL APIs.
38654
38655 2008-06-02  Bruno Haible  <bruno@clisp.org>
38656
38657         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38658         * tests/test-set-mode-acl.sh: Likewise.
38659         * tests/test-copy-acl.sh: Likewise.
38660         * tests/test-copy-file.sh: Likewise.
38661
38662 2008-06-02  Bruno Haible  <bruno@clisp.org>
38663
38664         * tests/test-file-has-acl.sh: Remove unused code.
38665
38666 2008-06-01  Bruno Haible  <bruno@clisp.org>
38667
38668         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38669         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38670         messages.
38671         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38672
38673 2008-06-01  Bruno Haible  <bruno@clisp.org>
38674
38675         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38676         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38677         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38678         APIs.
38679         * modules/acl-tests (configure.ac): Remove tests now contained in
38680         m4/acl.m4.
38681
38682 2008-06-02  Jim Meyering  <meyering@redhat.com>
38683
38684         announce-gen: use a better key-server host name
38685         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38686         it may be more consistently reliable.  Suggested by Werner Koch
38687         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38688
38689 2008-06-01  Bruno Haible  <bruno@clisp.org>
38690
38691         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38692         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38693
38694 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38695
38696         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38697
38698 2008-06-01  Bruno Haible  <bruno@clisp.org>
38699
38700         New ACL tests.
38701         * tests/test-file-has-acl.sh: New file.
38702         * tests/test-file-has-acl.c: New file.
38703         * tests/test-set-mode-acl.sh: New file.
38704         * tests/test-set-mode-acl.c: New file.
38705         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38706         * tests/test-copy-acl.c: New file.
38707         * modules/acl-tests: New file, based on modules/copy-file-tests.
38708         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38709         (Depends-on): Add acl-tests.
38710         (configure.ac): Remove checks.
38711         (Makefile.am): Don't create test-sameacls program here any more.
38712
38713 2008-06-01  Bruno Haible  <bruno@clisp.org>
38714
38715         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38716         * tests/test-sameacls.c: Include progname.h.
38717         (main): Invoke set_program_name. Portability fixes for MacOS X,
38718         Solaris, HP-UX.
38719
38720 2008-06-01  Bruno Haible  <bruno@clisp.org>
38721
38722         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38723         function.
38724         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38725
38726 2008-06-01  Bruno Haible  <bruno@clisp.org>
38727
38728         * modules/rpmatch (Depends-on): Add strdup.
38729
38730 2008-06-01  Bruno Haible  <bruno@clisp.org>
38731
38732         * lib/pipe.c: Include unistd-safer.h.
38733         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38734         * modules/pipe (Depends-on): Add unistd-safer.
38735
38736 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38737
38738         * modules/autobuild (configure.ac): Call AB_INIT.
38739
38740 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38741
38742         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38743         Suggested by Bruno Haible <bruno@clisp.org>.
38744
38745 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38746
38747         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38748         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38749         <bruno@clisp.org>.
38750
38751 2008-05-29  Eric Blake  <ebb9@byu.net>
38752
38753         Prefer new POSIX 200x interfaces over futimesat.
38754         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38755         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38756         when available.
38757         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38758
38759 2008-05-28  Bruno Haible  <bruno@clisp.org>
38760
38761         * modules/stpcpy (License): Change to LGPLv2+.
38762         Requested by David Lutterkort <dlutter@redhat.com>.
38763
38764 2008-05-27  Bruno Haible  <bruno@clisp.org>
38765
38766         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38767         current mingw.
38768         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38769
38770 2008-05-27  Bruno Haible  <bruno@clisp.org>
38771
38772         * modules/iconv_open (Link): New section, from module 'iconv'.
38773         * modules/striconv (Link): Likewise.
38774         * modules/striconveh (Link): Likewise.
38775         * modules/xstriconv (Link): Likewise.
38776         * modules/unicodeio (Link): Likewise.
38777         * modules/propername (Link): Likewise.
38778         Reported by Jim Meyering.
38779
38780 2008-05-26  Jim Meyering  <meyering@redhat.com>
38781
38782         sha256: do not artificially restrict buffer length to be < 2^32
38783         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38784         uint32_t to size_t.
38785         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38786         to match.
38787
38788         avoid unaligned access errors, e.g., on sparc
38789         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38790         direct access through a possibly-unaligned uint64* pointer.
38791         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38792         direct access through a possibly-unaligned uint32* pointer.
38793         Prompted by this patch from Tom "spot" Callaway:
38794         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38795
38796         sha512.c: fix typo in comment
38797         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38798
38799 2008-05-25  Bruno Haible  <bruno@clisp.org>
38800
38801         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38802         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38803         (Makefile.am): Update lib_SOURCES.
38804
38805 2008-05-25  Bruno Haible  <bruno@clisp.org>
38806
38807         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38808
38809 2008-05-25  Jim Meyering  <meyering@redhat.com>
38810
38811         useless-if-before-free: freed expr may have white-space differences
38812         * build-aux/useless-if-before-free: Recognize cases in which the
38813         freed expression differs from the tested one in embedded white
38814         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38815         $1 was used, so we can't make any regexp shy.  Improved tests now
38816         detect this.
38817
38818         useless-if-before-free: accept white space in the expression.
38819         * build-aux/useless-if-before-free: For now, any white space
38820         in the expression must be identical in the free argument.
38821
38822         useless-if-before-free: efficiency tweak
38823         * build-aux/useless-if-before-free: Make the expression-matching
38824         regexp "shy".
38825         Make the *outer* regexp shy, not the expr-matching one.
38826
38827         update code-in-comment to accept cast of free arg
38828         * build-aux/useless-if-before-free: Update regexp.
38829
38830 2008-05-25  Bruno Haible  <bruno@clisp.org>
38831
38832         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38833         * modules/copy-file-tests (Files, Makefile.am): Update.
38834         * tests/test-copy-file.c (func_test_copy): Update.
38835
38836 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38837
38838         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38839
38840 2008-05-23  Bruno Haible  <bruno@clisp.org>
38841
38842         Improve support for ACLs on OSF/1.
38843         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38844         Remove fallback for unknown flavors of ACLs.
38845
38846 2008-05-22  Bruno Haible  <bruno@clisp.org>
38847
38848         Add support for ACLs on OSF/1.
38849         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38850         replacements.
38851         (acl_free_text): New macro fallback.
38852         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38853         acl_free.
38854         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38855         acl_free_text function. Require AC_C_INLINE.
38856
38857 2008-05-22  Bruno Haible  <bruno@clisp.org>
38858
38859         Make copy_acl work on MacOS X 10.5.
38860         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38861         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38862         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38863         If MODE_INSIDE_ACL, don't assume that every system has the same text
38864         representation for ACLs as FreeBSD.
38865         * lib/copy-acl.c (copy_acl): Add support for platforms with
38866         !MODE_INSIDE_ACL.
38867         * lib/file-has-acl.c (file_has_acl): Likewise.
38868         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38869         FreeBSD, MacOS X, or IRIX, respectively.
38870
38871 2008-05-22  Bruno Haible  <bruno@clisp.org>
38872
38873         * lib/acl.h: Don't include <sys/acl.h>.
38874         (GETACLCNT): Move fallback to lib/acl-internal.h.
38875         * lib/acl-internal.h: Include <sys/acl.h> here.
38876         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38877
38878 2008-05-22  Bruno Haible  <bruno@clisp.org>
38879
38880         Split off copy_acl function to separate file.
38881         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38882         * lib/acl.c (copy_acl): Moved function to separate file.
38883         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38884         * modules/acl (Files): Add lib/copy-acl.c.
38885         (Makefiles.am): Augment lib_SOURCES.
38886
38887 2008-05-22  Bruno Haible  <bruno@clisp.org>
38888
38889         * modules/copy-file-tests: New file.
38890         * tests/test-copy-file.sh: New file.
38891         * tests/test-copy-file.c: New file.
38892         * tests/test-copy-file-sameacls.c: New file.
38893
38894 2008-05-22  Eric Blake  <ebb9@byu.net>
38895
38896         Avoid gcc warning.
38897         * tests/test-memcmp.c (main): Pass NULL indirectly.
38898
38899 2008-05-21  Bruno Haible  <bruno@clisp.org>
38900
38901         Add reference doc about ACLs.
38902         * doc/acl-resources.txt: New file.
38903         * doc/acl-cygwin.txt: New file.
38904
38905 2008-05-21  Bruno Haible  <bruno@clisp.org>
38906
38907         Avoid one more warning from gcc.
38908         * lib/vasnprintf.c (IF_LINT): Update comments.
38909         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38910
38911 2008-05-21  Jim Meyering  <meyering@redhat.com>
38912
38913         avoid a warning from gcc
38914         * lib/vasnprintf.c (IF_LINT): Define.
38915         (scale10_round_decimal_long_double):
38916         Use it to avoid a "may be used uninitialized" warning.
38917         (scale10_round_decimal_double): Likewise.
38918
38919 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38920
38921         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38922         declared.
38923
38924 2008-05-20  Bruno Haible  <bruno@clisp.org>
38925
38926         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38927         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38928
38929 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38930
38931         * modules/memcmp-tests: New file.
38932         * tests/test-memcmp.c: New file.
38933
38934 2008-05-19  Bruno Haible  <bruno@clisp.org>
38935
38936         * modules/propername (Notice, configure.ac): Put quoted "..." into
38937         --keyword option.
38938         * lib/propername.h: Update comments accordingly.
38939         Reported by Eric Blake.
38940
38941 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38942
38943         * modules/getpass-gnu (Depends-on): Add fseeko.
38944
38945 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38946
38947         * modules/base64-tests: New file.
38948
38949 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38950
38951         * lib/base64.c (base64_decode_ctx): If a decode context structure
38952         was passed in use it to ignore newlines.  If a context structure
38953         was _not_ passed in, continue to treat newlines as garbage (this
38954         is the historical behavior).  Formerly base64_decode.
38955         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38956         takes a decode context structure.
38957         * lib/base64.h (base64_decode): Macro for four-argument calls.
38958         (base64_decode_alloc): Likewise.
38959         * lib/base64.c (base64_decode_ctx): If a decode context structure
38960         was passed in use it to ignore newlines.  If a context structure
38961         was _not_ passed in, continue to treat newlines as garbage (this
38962         is the historical behavior).  Formerly base64_decode.
38963         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38964         takes a decode context structure.
38965         * lib/base64.h (base64_decode): Macro for four-argument calls.
38966         (base64_decode_alloc): Likewise.
38967
38968 2008-05-19  Jim Meyering  <meyering@redhat.com>
38969
38970         avoid a warning from gcc
38971         * lib/trim.c (IF_LINT): Define.
38972         (trim2): Use it to avoid a "may be used uninitialized" warning.
38973
38974         Fix doc typo.
38975         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
38976
38977 2008-05-19  Bruno Haible  <bruno@clisp.org>
38978
38979         * doc/glibc-functions/getpass.texi: Document limits of other
38980         implementations.
38981
38982 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38983             Bruno Haible <bruno@clisp.org>
38984
38985         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
38986
38987 2008-05-18  Bruno Haible  <bruno@clisp.org>
38988
38989         * modules/propername: New file, from GNU gettext.
38990         * lib/propername.h: New file, from GNU gettext.
38991         * lib/propername.c: New file, from GNU gettext.
38992         * MODULES.html.sh (Internationalization functions): Add propername.
38993
38994 2008-05-16  Jim Meyering  <meyering@redhat.com>
38995             Bruno Haible  <bruno@clisp.org>
38996
38997         Avoid some warnings from "gcc -Wshadow".
38998         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
38999
39000 2008-05-15  Eric Blake  <ebb9@byu.net>
39001
39002         Extend previous patch to cygwin 1.7.0.
39003         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39004         fast implementation in cygwin >= 1.7.0.
39005         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39006         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39007
39008 2008-05-15  Bruno Haible  <bruno@clisp.org>
39009
39010         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39011         implementation in glibc >= 2.9.
39012         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39013         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39014
39015 2008-05-15  Bruno Haible  <bruno@clisp.org>
39016
39017         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39018         (Unicode string functions): Add unilbrk/*.
39019         Reported by Karl Berry.
39020
39021 2008-05-15  Eric Blake  <ebb9@byu.net>
39022
39023         Fix violation of <stdbool.h> replacement in regex.
39024         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39025         * lib/regexec.c (re_search_internal): Likewise.
39026         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39027
39028 2008-05-15  Jim Meyering  <meyering@redhat.com>
39029
39030         avoid distracting test output when git or cvs is not found
39031         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39032         * tests/test-vc-list-files-git.sh: Likewise.
39033
39034 2008-05-15  Eric Blake  <ebb9@byu.net>
39035
39036         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39037         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39038         glibc version.
39039         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39040         * doc/posix-functions/strstr.texi (strstr): Likewise.
39041         * lib/str-two-way.h (MAX): Sychronize with glibc.
39042
39043 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39044
39045         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39046         opr.ctx_type.
39047         (calc_first): Initialize constraint field.
39048         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39049         Fix grammar.
39050         (duplicate_node): Merge constraint field for all node types.
39051         (calc_eclosure_iter): Look at constraint field for all node types.
39052         * lib/regex_internal.c (create_cd_newstate): Don't look at
39053         opr.ctx_type.
39054
39055 2008-05-14  Bruno Haible  <bruno@clisp.org>
39056
39057         Help GCC to do better code generation.
39058         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39059         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39060         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39061         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39062         Declare with attribute 'malloc' if supported.
39063
39064 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39065
39066         use "echo STR|wc -c" rather than unportable "expr length STR"
39067         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39068         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39069
39070 2008-05-14  Jim Meyering  <meyering@redhat.com>
39071
39072         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39073         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39074         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39075         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39076         via Collin Lasse.
39077
39078 2008-05-14  Eric Blake  <ebb9@byu.net>
39079
39080         Avoid quadratic growth in gl_LIBSOURCES.
39081         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39082         Suggested by Bruno Haible.
39083
39084         Test xmemdup0.
39085         * modules/xmemdup0-tests: New file.
39086         * tests/test-xmemdup0.c: Likewise.
39087
39088 2008-05-13  Eric Blake  <ebb9@byu.net>
39089
39090         Split xmemdup0 into its own module.
39091         * modules/xmemdup0: New file.
39092         * lib/xmemdup0.h: Likewise.
39093         * lib/xmemdup0.c: Likewise.
39094         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39095         * lib/xalloc.h (xmemdup0): Remove.
39096         * lib/xmalloc.c (xmemdup0): Likewise.
39097
39098 2008-05-13  Eric Blake  <ebb9@byu.net>
39099             Bruno Haible  <bruno@clisp.org>
39100
39101         Reduce number of forks required during autoconf.
39102         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39103         and gl_LIBSOURCES_DIR.
39104         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39105         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39106         m4_syscmd per file.
39107         <m4_foreach_w>: Move...
39108         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39109
39110 2008-05-13  Eric Blake  <ebb9@byu.net>
39111
39112         * gnulib-tool: Fix various comment typos.
39113
39114 2008-05-12  Bruno Haible  <bruno@clisp.org>
39115
39116         Tailor the linebreaking algorithm.
39117         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39118
39119 2008-05-12  Bruno Haible  <bruno@clisp.org>
39120
39121         Update to Unicode 5.0.0.
39122         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39123         LBP_JV, LBP_JT. Redistribute values.
39124         (unilbrk_table): Change size.
39125         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39126         Unicode TR#14 rev. 22.
39127         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39128         LBP_JV, LBP_JT. Redistribute values.
39129         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39130         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39131         Update.
39132         * lib/unilbrk/lbrkprop1.h: Regenerated.
39133         * lib/unilbrk/lbrkprop2.h: Regenerated.
39134         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39135         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39136         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39137         Likewise.
39138         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39139         Likewise.
39140         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39141         result.
39142         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39143         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39144         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39145         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39146         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39147         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39148
39149 2008-05-11  Bruno Haible  <bruno@clisp.org>
39150
39151         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39152
39153 2008-05-11  Bruno Haible  <bruno@clisp.org>
39154
39155         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39156         * modules/unilbrk/gen-lbrk: New file.
39157
39158 2008-05-11  Bruno Haible  <bruno@clisp.org>
39159
39160         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39161         * m4/sha512.m4 (gl_SHA512): Likewise.
39162
39163 2008-05-11  Jim Meyering  <meyering@redhat.com>
39164
39165         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39166         * modules/crypto/sha256: New file.
39167         * modules/crypto/sha512: Likewise.
39168         * lib/sha256.c: Likewise.
39169         * lib/sha256.h: Likewise.
39170         * lib/sha512.c: Likewise.
39171         * lib/sha512.h: Likewise.
39172         * lib/u64.h: Likewise.
39173         * m4/sha256.m4: Likewise.
39174         * m4/sha512.m4: Likewise.
39175         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39176
39177 2008-05-10  Bruno Haible  <bruno@clisp.org>
39178
39179         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39180         (Input/Output <stdio.h>): Add xprintf.
39181         (Signal handling <signal.h>): Add strsignal.
39182         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39183         (Core language properties): Add func.
39184         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39185         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39186         strings.
39187         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39188         (Input/output): New section.
39189         (File system functions): Add openat-die, stat-macros.
39190         (Networking functions): Add sockets.
39191         (Unicode string functions): Add unictype/*.
39192         (Support for building libraries and executables): Add gperf.
39193         (Support for building documentation): Add agpl-3.0.
39194         (Misc): Add nocrash.
39195
39196 2008-05-10  Bruno Haible  <bruno@clisp.org>
39197
39198         * modules/unictype/gen-ctype: New file.
39199
39200 2008-05-10  Jim Meyering  <meyering@redhat.com>
39201
39202         Make chdir-safer.c more efficient on a system with no symlinks.
39203         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39204         also if ELOOP is zero.  Suggested by Bruno Haible.
39205
39206         Make chdir-safer.c slightly safer.
39207         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39208         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39209
39210         Avoid compile failure on systems without ELOOP (like mingw).
39211         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39212         Reported by Bruno Haible.
39213
39214 2008-05-10  Bruno Haible  <bruno@clisp.org>
39215
39216         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39217         (is_utf8_encoding): Use a case-insensitive comparison.
39218         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39219         streq.
39220
39221 2008-05-10  Bruno Haible  <bruno@clisp.org>
39222
39223         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39224         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39225         * lib/unilbrk/ulc-common.h (iconv_string_length,
39226         iconv_string_keeping_offsets): Remove declarations.
39227         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39228         Don't include <iconv.h>, streq.h, xsize.h.
39229         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39230         conversion.
39231         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39232         <iconv.h>, streq.h, xsize.h.
39233         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39234         conversion.
39235         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39236         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39237         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39238         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39239
39240 2008-05-10  Bruno Haible  <bruno@clisp.org>
39241
39242         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39243         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39244
39245         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39246         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39247
39248         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39249         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39250
39251         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39252         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39253
39254         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39255         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39256
39257         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39258         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39259
39260         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39261         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39262
39263         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39264         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39265
39266 2008-05-10  Bruno Haible  <bruno@clisp.org>
39267
39268         Split up 'linebreak' module.
39269         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39270         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39271         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39272         modifications.
39273         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39274         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39275         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39276         lib/linebreak.c.
39277         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39278         lib/linebreak.c.
39279         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39280         lib/linebreak.c.
39281         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39282         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39283         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39284         lib/linebreak.c.
39285         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39286         lib/linebreak.c.
39287         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39288         lib/linebreak.c.
39289         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39290         lib/linebreak.c.
39291         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39292         lib/linebreak.c.
39293         * modules/unilbrk/base: New file.
39294         * modules/unilbrk/tables: New file.
39295         * modules/unilbrk/u8-possible-linebreaks: New file.
39296         * modules/unilbrk/u16-possible-linebreaks: New file.
39297         * modules/unilbrk/u32-possible-linebreaks: New file.
39298         * modules/unilbrk/ulc-common: New file.
39299         * modules/unilbrk/ulc-possible-linebreaks: New file.
39300         * modules/unilbrk/u8-width-linebreaks: New file.
39301         * modules/unilbrk/u16-width-linebreaks: New file.
39302         * modules/unilbrk/u32-width-linebreaks: New file.
39303         * modules/unilbrk/ulc-width-linebreaks: New file.
39304         * lib/linebreak.h: Remove file.
39305         * lib/linebreak.c: Remove file.
39306         * m4/linebreak.m4: Remove file.
39307         * modules/linebreak: Remove file.
39308         * NEWS: Mention the changes.
39309
39310 2008-05-09  Eric Blake  <ebb9@byu.net>
39311
39312         Add xmemdup0.
39313         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39314         implementation.
39315         * lib/xmalloc.c (xmemdup0): New C implementation.
39316
39317 2008-05-08  Bruno Haible  <bruno@clisp.org>
39318
39319         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39320
39321 2008-05-07  Eric Blake  <ebb9@byu.net>
39322
39323         Support cross-compilation of <wctype.h>.
39324         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39325         AC_CACHE_CHECK.
39326
39327 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39328
39329         * build-aux/vc-list-files: Add support for bzr.
39330
39331 2008-05-03  Jim Meyering  <meyering@redhat.com>
39332
39333         avoid failed assertion with tight malloc
39334         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39335
39336 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39337
39338         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39339         are needed from arpa/inet.h.
39340         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39341         Reported by Bruno Haible.
39342
39343 2008-05-02  Jim Meyering  <meyering@redhat.com>
39344
39345         avoid compilation error on FreeBSD 6
39346         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39347
39348 2008-05-01  Jim Meyering  <meyering@redhat.com>
39349
39350         useless-if-before-free: correct --help's exit status description
39351         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39352         for one or more matches, etc.  Reported by Bruno Haible.
39353
39354         vc-list-files: make the stand-alone gnulib test work
39355         * modules/vc-list-files-tests (configure.ac):
39356         Define and AC_SUBST abs_aux_dir.
39357         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39358         $(abs_top_srcdir) to each script and having each of them
39359         duplicate the work of setting PATH, set PATH here, using
39360         the new variable, abs_aux_dir instead.
39361         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39362         * tests/test-vc-list-files-git.sh: Likewise.
39363         Reported by Bruno Haible.
39364
39365 2008-05-01  Bruno Haible  <bruno@clisp.org>
39366
39367         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39368         reallocation. Rename 'done' to 'found_delimiter'.
39369
39370 2008-05-01  Jim Meyering  <meyering@redhat.com>
39371
39372         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39373         * build-aux/vc-list-files: Use `...`, not $(...).
39374
39375 2008-04-30  Jim Meyering  <meyering@redhat.com>
39376
39377         add tests for vc-list-files
39378         * modules/vc-list-files-tests: New module.
39379         * tests/test-vc-list-files-cvs.sh: New file.
39380         * tests/test-vc-list-files-git.sh: New file.
39381
39382         avoid a warning from gcc
39383         * lib/getndelim2.c (IF_LINT): Define.
39384         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39385
39386         vc-list-files: work properly with build-aux/cvsu, too
39387         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39388         to all cvs-based clauses.
39389
39390         vc-list-files: work properly in the CVS+awk case, too
39391         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39392
39393         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39394         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39395         take more than one file argument, so .  Add quotes, just in case $dir
39396         ever contains a shell meta-character.  Prompted by Soren Hansen in
39397         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39398
39399 2008-04-29  Eric Blake  <ebb9@byu.net>
39400
39401         Optimize getndelim2 to use block operations when possible.
39402         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39403         freadseek, and memchr2.
39404         * lib/getndelim2.c (getndelim2): Use them for block reads.
39405
39406 2008-04-29  Bruno Haible  <bruno@clisp.org>
39407
39408         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39409         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39410         * modules/inet_ntop (Depends-on): Add extensions.
39411         * modules/inet_pton (Depends-on): Likewise.
39412         Reported by Simon Josefsson.
39413
39414 2008-04-29  Jim Meyering  <meyering@redhat.com>
39415
39416         When the is more than one match in a block, match all of them.
39417         * build-aux/useless-if-before-free: Iterate through each block
39418         until there are no more matches.
39419
39420         Fix broken useless-if-before-free script.
39421         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39422         the expression to match cast of argument to free-like function.
39423
39424 2008-04-29  Eric Blake  <ebb9@byu.net>
39425
39426         Use new header.
39427         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39428
39429 2008-04-29  Jim Meyering  <meyering@redhat.com>
39430
39431         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39432         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39433         by gnulib to exist and to declare e.g., inet_ntop.
39434         Don't include "inet_ntop.h", now removed.
39435
39436         * m4/arpa_inet_h.m4: Remove trailing blanks.
39437
39438 2008-04-29  Eric Blake  <ebb9@byu.net>
39439
39440         Silence valgrind on safe reads beyond potential array bounds.
39441         * lib/rawmemchr.valgrind: New file.
39442         * lib/strchrnul.valgrind: Likewise.
39443         * modules/rawmemchr (Files): Distribute new file.
39444         * modules/strchrnul (Files): Likewise.
39445         Suggested by Bruno Haible.
39446
39447 2008-04-29  Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39450         (inet_ntop, inet_pton): Change portability warning's wording.
39451         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39452         Invoke gl_CHECK_NEXT_HEADERS.
39453         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39454         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39455         set ARPA_INET_H.
39456         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39457         * modules/arpa_inet (Description): No longer only for systems that
39458         lack it.
39459         (Depends-on): Add include_next.
39460         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39461         HAVE_ARPA_INET_H.
39462
39463 2008-04-29  Jim Meyering  <meyering@redhat.com>
39464
39465         * modules/mkdir (License): Re-license as LGPLv2+.
39466
39467 2008-04-29  Bruno Haible  <bruno@clisp.org>
39468
39469         * modules/rawmemchr (Maintainer): Set to Eric.
39470         * modules/strchrnul (Maintainer): Likewise.
39471
39472 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39473
39474         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39475         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39476
39477         * modules/arpa_inet (arpa/inet.h): Use them.
39478
39479 2008-04-28  Eric Blake  <ebb9@byu.net>
39480
39481         Test getndelim2.
39482         * modules/getndelim2-tests: New file.
39483         * tests/test-getndelim2.c: Likewise.
39484         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39485         stream.
39486         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39487
39488         * MODULES.html.sh: Document new module.
39489
39490 2008-04-20  Bruno Haible  <bruno@clisp.org>
39491
39492         * lib/c-stack.c (die): Use raise.
39493         * modules/c-stack (Depends-on): Add raise.
39494
39495 2008-04-28  Bruno Haible  <bruno@clisp.org>
39496
39497         Expect rpmatch to be declared.
39498         * lib/yesno.c (rpmatch): Remove declaration.
39499
39500         Declare rpmatch.
39501         * lib/stdlib.in.h (rpmatch): New declaration.
39502         * lib/rpmatch.c: Include <stdlib.h> first.
39503         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39504         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39506         HAVE_RPMATCH.
39507         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39508         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39509         (Include): Set to <stdlib.h>.
39510         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39511         HAVE_RPMATCH.
39512         * NEWS: Document the change.
39513
39514 2008-04-28  Bruno Haible  <bruno@clisp.org>
39515
39516         Change rpmatch to use nl_langinfo when appropriate.
39517         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39518         (N_): New macro.
39519         (localized_pattern): New function/macro.
39520         (try): Remove match, nomatch arguments. Copy the pattern into safe
39521         memory before caching it.
39522         (rpmatch): Use localized_pattern. Add translator comments.
39523         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39524         Suggested by Eric Blake.
39525         * modules/rpmatch (Depends-on): Add stdbool.
39526
39527 2008-04-28  Eric Blake  <ebb9@byu.net>
39528
39529         Add rawmemchr module, matching glibc.
39530         * modules/string (Makefile.am): New indicator.
39531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39532         * lib/string.in.h (rawmemchr): Declare when appropriate.
39533         * modules/rawmemchr: New file.
39534         * m4/rawmemchr.m4: Likewise.
39535         * lib/rawmemchr.c: Likewise.
39536         * modules/rawmemchr-tests: Likewise.
39537         * tests/test-rawmemchr.c: Likewise.
39538         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39539         module.
39540         * modules/strchrnul (Depends-on): Add rawmemchr.
39541         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39542
39543         Whitespace cleanup.
39544         * tests/test-strchrnul.c: Reindent.
39545         * lib/strchrnul.c: Likewise.
39546
39547         Optimize and test strchrnul.
39548         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39549         * modules/strchrnul-tests: New file.
39550         * tests/test-strchrnul.c: Likewise.
39551
39552         Remove intprops dependency.
39553         * modules/memchr (Depends-on): Remove intprops.
39554         * modules/memrchr (Depends-on): Likewise.
39555         * modules/memchr2 (Depends-on): Likewise.
39556         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39557         * lib/memrchr.c (__memrchr): Likewise.
39558         * lib/memrchr2.c (memchr2): Likewise.
39559         Reported by Simon Josefsson.
39560
39561 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39562
39563         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39564         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39565
39566 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39567
39568         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39569
39570         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39571
39572         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39573
39574         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39575         declarations.
39576         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39577
39578         * m4/inet_pton.m4: Don't check for header files.
39579
39580         * m4/inet_ntop.m4: Don't check for header files.
39581
39582 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39583
39584         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39585         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39586         trigger for cygwin).
39587         Reported by Bruno Haible  <bruno@clisp.org>.
39588
39589 2008-04-28  Bruno Haible  <bruno@clisp.org>
39590
39591         * doc/posix-functions/strdup.texi: Mention mingw problem.
39592
39593 2008-04-27  Bruno Haible  <bruno@clisp.org>
39594
39595         * modules/stat-time-tests (Depends-on): Add sleep.
39596         * tests/test-stat-time.c (force_unlink): New function.
39597         (cleanup): Use it.
39598         (test_mtime): Remove the ctime related tests.
39599         (test_ctime): New function, containing the ctime related tests.
39600         (main): Call test_ctime, except on native Windows platforms.
39601
39602 2008-04-27  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/rpmatch.c (rpmatch): Add some comments.
39605         Reported by James Youngman <jay@gnu.org>.
39606
39607 2008-04-27  Bruno Haible  <bruno@clisp.org>
39608
39609         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39610         quiet NaNs.
39611
39612 2008-04-27  Bruno Haible  <bruno@clisp.org>
39613
39614         Make test-yesno.sh work on mingw.
39615         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39616         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39617         (main): Set stdin to binary mode.
39618         * modules/yesno-tests (Depends-on): Add binary-io.
39619
39620 2008-04-27  Bruno Haible  <bruno@clisp.org>
39621
39622         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39623         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39624         argument that lie outside the IEEE 854 domain.
39625         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39626         (gl_ISFINITE): Use it.
39627         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39628
39629 2008-04-27  Bruno Haible  <bruno@clisp.org>
39630
39631         Allow local renaming in config.h.
39632         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39633
39634 2008-04-27  Bruno Haible  <bruno@clisp.org>
39635
39636         * lib/memchr.c (__memchr): Change type of 'i'.
39637         * lib/memchr2.c (memchr2): Likewise.
39638
39639 2008-04-26  Eric Blake  <ebb9@byu.net>
39640         and Bruno Haible  <bruno@clisp.org>
39641
39642         Optimize and test memrchr.
39643         * modules/memrchr (Depends-on): Add intprops.
39644         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39645         * modules/memrchr-tests: New file.
39646         * tests/test-memrchr.c: New file.
39647
39648 2008-04-26  Bruno Haible  <bruno@clisp.org>
39649
39650         Add tentative support for DragonFly BSD.
39651         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39652         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39653         fp.
39654         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39655         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39656         * lib/fpurge.c (fpurge): Likewise.
39657         * lib/freadable.c (freaadable): Likewise.
39658         * lib/freadahead.c (freadahead): Likewise.
39659         * lib/freading.c (freading): Likewise.
39660         * lib/freadptr.c (freadptr): Likewise.
39661         * lib/freadseek.c (freadptrinc): Likewise.
39662         * lib/fseeko.c (fseeko): Likewise.
39663         * lib/fseterr.c (fseterr): Likewise.
39664         * lib/fwritable.c (fwritable): Likewise.
39665         * lib/fwriting.c (fwriting): Likewise.
39666
39667 2008-04-26  Bruno Haible  <bruno@clisp.org>
39668
39669         * lib/stdio-impl.h: New file.
39670         * lib/fbufmode.c: Include stdio-impl.h.
39671         (fbufmode): Use fp_, remove redundant #defines.
39672         * lib/fflush.c: Include stdio-impl.h.
39673         (clear_ungetc_buffer): Remove redundant #defines.
39674         * lib/fpurge.c: Include stdio-impl.h.
39675         (fpurge): Remove redundant #defines.
39676         * lib/freadable.c: Include stdio-impl.h.
39677         (freadable): Remove redundant #defines.
39678         * lib/freadahead.c: Include stdio-impl.h.
39679         (freadahead): Remove redundant #defines.
39680         * lib/freading.c: Include stdio-impl.h.
39681         (freading): Remove redundant #defines.
39682         * lib/freadptr.c: Include stdio-impl.h.
39683         (freadptr): Remove redundant #defines.
39684         * lib/freadseek.c: Include stdio-impl.h.
39685         (freadptrinc): Remove redundant #defines.
39686         * lib/fseeko.c: Include stdio-impl.h.
39687         (rpl_fseeko): Remove redundant #defines.
39688         * lib/fseterr.c: Include stdio-impl.h.
39689         (fseterr): Remove redundant #defines.
39690         * lib/fwritable.c: Include stdio-impl.h.
39691         (fwritable: Remove redundant #defines.
39692         * lib/fwriting.c: Include stdio-impl.h.
39693         (fwriting): Remove redundant #defines.
39694         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39695         * modules/fflush (Files): Likewise.
39696         * modules/fpurge (Files): Likewise.
39697         * modules/freadable (Files): Likewise.
39698         * modules/freadahead (Files): Likewise.
39699         * modules/freading (Files): Likewise.
39700         * modules/freadptr (Files): Likewise.
39701         * modules/freadseek (Files): Likewise.
39702         * modules/fseeko (Files): Likewise.
39703         * modules/fseterr (Files): Likewise.
39704         * modules/fwritable (Files): Likewise.
39705         * modules/fwriting (Files): Likewise.
39706
39707 2008-04-26  Bruno Haible  <bruno@clisp.org>
39708
39709         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39710         restore_seek_optimization, update_fpos_cache): New functions, extracted
39711         from rpl_fflush.
39712         (rpl_fflush): Use them.
39713         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39714         (gl_REPLACE_FFLUSH): Use it.
39715
39716 2008-04-26  Bruno Haible  <bruno@clisp.org>
39717
39718         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39719         on Solaris.
39720         * tests/test-xstrtoimax.sh: Likewise.
39721         * tests/test-xstrtoumax.sh: Likewise.
39722         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39723
39724 2008-04-26  Bruno Haible  <bruno@clisp.org>
39725
39726         * modules/memchr-tests: New file.
39727         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39728
39729 2008-04-26  Eric Blake  <ebb9@byu.net>
39730             Bruno Haible  <bruno@clisp.org>
39731
39732         * lib/memchr.c: Include intprops.h.
39733         (__memchr): Optimize parallel detection of matching bytes. Rename local
39734         variables. Add explanatory comments.
39735
39736 2008-04-26  Bruno Haible  <bruno@clisp.org>
39737
39738         Fix module 'memchr', broken since 2000-10-28.
39739         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39740
39741 2008-04-26  Bruno Haible  <bruno@clisp.org>
39742
39743         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39744         comments.
39745
39746 2008-04-25  Eric Blake  <ebb9@byu.net>
39747
39748         Use native fstatat on cygwin 1.7.0.
39749         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39750         first.
39751
39752 2008-04-23  Eric Blake  <ebb9@byu.net>
39753
39754         Improve memchr2 performance.
39755         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39756         NUL bytes.
39757         * modules/memchr2 (Depends-on): Use intprops.h.
39758
39759 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39760
39761         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39762         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39763         <blp@cs.stanford.edu>.
39764
39765 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39766
39767         * lib/arpa_inet.in.h: New file.
39768
39769         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39770         (Makefile.am): Sed in substitute header file.
39771
39772         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39773         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39774
39775         * modules/inet_ntop (configure.ac): Use
39776         gl_ARPA_INET_MODULE_INDICATOR.
39777
39778         * modules/inet_pton (configure.ac): Use
39779         gl_ARPA_INET_MODULE_INDICATOR.
39780
39781 2008-04-22  Jim Meyering  <meyering@redhat.com>
39782
39783         * modules/verify (License): Re-license as LGPLv2+.
39784
39785 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39786
39787         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39788         parameter to void* as per POSIX standard (MinGW uses char*).
39789
39790 2008-04-21  Bruno Haible  <bruno@clisp.org>
39791
39792         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39793         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39794         Define to replacements if REPLACE_ISWCNTRL is 1.
39795         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39796         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39797         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39798         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39799         what it fixes.
39800         * doc/posix-functions/iswalpha.texi: Likewise.
39801         * doc/posix-functions/iswblank.texi: Likewise.
39802         * doc/posix-functions/iswcntrl.texi: Likewise.
39803         * doc/posix-functions/iswdigit.texi: Likewise.
39804         * doc/posix-functions/iswgraph.texi: Likewise.
39805         * doc/posix-functions/iswlower.texi: Likewise.
39806         * doc/posix-functions/iswprint.texi: Likewise.
39807         * doc/posix-functions/iswpunct.texi: Likewise.
39808         * doc/posix-functions/iswspace.texi: Likewise.
39809         * doc/posix-functions/iswupper.texi: Likewise.
39810         * doc/posix-functions/iswxdigit.texi: Likewise.
39811         Reported by Alain Guibert.
39812
39813 2008-04-21  Bruno Haible  <bruno@clisp.org>
39814
39815         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39816         Patch by Alain Guibert.
39817
39818 2008-04-21  Bruno Haible  <bruno@clisp.org>
39819
39820         Fix test failures on mingw.
39821         * tests/test-xstrtol.c (print_no_progname): New function.
39822         (main): Install it in error_print_progname hook.
39823         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39824         * tests/test-xstrtoimax.sh: Likewise.
39825         * tests/test-xstrtoumax.sh: Likewise.
39826
39827 2008-04-21  Bruno Haible  <bruno@clisp.org>
39828
39829         Fix test failure on mingw.
39830         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39831
39832 2008-04-21  Bruno Haible  <bruno@clisp.org>
39833
39834         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39835         Actually assign a value.
39836
39837 2008-04-20  Bruno Haible  <bruno@clisp.org>
39838
39839         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39840         take 2.
39841         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39842         'canonicalize-lgpl' module is also used.
39843         * lib/canonicalize-lgpl.c: Undo last change.
39844         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39845
39846 2008-04-20  Bruno Haible  <bruno@clisp.org>
39847
39848         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39849         config.h. Provide _mkdir based fallback for mingw.
39850         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39851         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39852         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39853         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39854         rather than defining mkdir in config.h.
39855         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39856         (gl_SYS_STAT_H_DEFAULTS): New macro.
39857         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39858         HAVE_IO_H any more.
39859         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39860         HAVE_DECL_MKDIR and HAVE_IO_H.
39861
39862 2008-04-20  Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/isapipe.c: Port to native Windows platforms.
39865
39866 2008-04-20  Bruno Haible  <bruno@clisp.org>
39867
39868         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39869
39870 2008-04-21  Eric Blake  <ebb9@byu.net>
39871
39872         Work around preprocessors that don't handle UINTMAX_MAX.
39873         * lib/memchr2.c (memchr2): Avoid embedded #if.
39874         Reported by Alain Guibert, fix suggested by Bruno Haible.
39875
39876 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39877
39878         * doc/posix-functions/strftime.texi (strftime): Explain better
39879         Windows incompatibility.  Suggested by Micah Cowan
39880         <micah@cowan.name>.
39881
39882 2008-04-20  Bruno Haible  <bruno@clisp.org>
39883
39884         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39885         unistr/u8-mblen.
39886
39887 2008-04-20  Bruno Haible  <bruno@clisp.org>
39888
39889         Fix test failure on platforms with non-GNU iconv.
39890         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39891         (U_TO_U8): Use it, rather than u16_to_u8.
39892         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39893         units at the end of the input string.
39894         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39895
39896 2008-04-20  Bruno Haible  <bruno@clisp.org>
39897
39898         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39899         when the resulting length is 0.
39900         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39901
39902 2008-04-20  Bruno Haible  <bruno@clisp.org>
39903
39904         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39905         works.
39906         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39907
39908 2008-04-20  Bruno Haible  <bruno@clisp.org>
39909
39910         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39911         * modules/tsearch-tests (configure.ac): Test for initstate function.
39912
39913 2008-04-20  Bruno Haible  <bruno@clisp.org>
39914
39915         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39916         for nlink_t if missing.
39917         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39918
39919 2008-04-19  Bruno Haible  <bruno@clisp.org>
39920
39921         Work around snprintf bug on Linux libc5.
39922         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39923         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39924         gl_SNPRINTF_SIZE1.
39925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39926         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39927         that test failed.
39928         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39929         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39930         * modules/snprintf (Files): Add m4/printf.m4.
39931         * modules/vsnprintf (Files): Likewise.
39932         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39933         * doc/posix-functions/vsnprintf.texi: Likewise.
39934
39935 2008-04-19  Bruno Haible  <bruno@clisp.org>
39936
39937         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39938         from 0.0058 to less than 10^-7.
39939
39940 2008-04-19  Bruno Haible  <bruno@clisp.org>
39941
39942         Fix rounding when a precision is given.
39943         * lib/vasnprintf.c (is_borderline): New function.
39944         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39945         9...9x.
39946         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39947         %e, %g.
39948         * tests/test-vasprintf-posix.c (test_function): Likewise.
39949         * tests/test-snprintf-posix.h (test_function): Likewise.
39950         * tests/test-sprintf-posix.h (test_function): Likewise.
39951         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39952         * tests/test-printf-posix.h (test_function): Likewise.
39953         * tests/test-printf-posix.output: Update.
39954         Reported by John Darrington <john@darrington.wattle.id.au> via
39955         Ben Pfaff <blp@cs.stanford.edu>.
39956
39957 2008-04-18  Simon Josefsson  <simon@josefsson.org>
39958
39959         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
39960         Suggested by Bruno Haible <bruno@clisp.org>.
39961
39962 2008-04-17  Bruno Haible  <bruno@clisp.org>
39963
39964         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
39965         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
39966         implementation.
39967         Patch by Bruce Merry <bmerry@gmail.com>.
39968
39969 2008-04-17  Simon Josefsson  <simon@josefsson.org>
39970
39971         * doc/posix-functions/strftime.texi (strftime): Mention that %e
39972         doesn't work under Windows.
39973
39974 2008-04-16  Bruno Haible  <bruno@clisp.org>
39975
39976         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
39977         New macros.
39978         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
39979         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
39980         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
39981         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
39982         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
39983         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
39984         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
39985         macros.
39986         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
39987         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
39988         Northern Sotho, Uighur.
39989
39990 2008-04-16  Bruno Haible  <bruno@clisp.org>
39991
39992         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
39993         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
39994         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
39995         Reported by Daniel Bergström <daniel@octocode.com>.
39996
39997 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
39998             Bruno Haible  <bruno@clisp.org>
39999
40000         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40001         function.
40002         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40003         New functions, mostly extracted from gl_locale_name_default.
40004         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40005
40006 2008-04-16  Eric Blake  <ebb9@byu.net>
40007
40008         Adjust strtod detection to catch glibc 2.7 bug.
40009         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40010         Reported by John Gatewood Ham.
40011
40012 2008-04-16  Bruno Haible  <bruno@clisp.org>
40013
40014         Add tentative support for Linux libc5.
40015         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40016         * lib/fpurge.c (fpurge): Likewise.
40017         * lib/freadable.c (freadable): Likewise.
40018         * lib/freadahead.c (freadahead): Likewise.
40019         * lib/freading.c (freading): Likewise.
40020         * lib/freadptr.c (freadptr): Likewise.
40021         * lib/freadseek.c (freadptrinc): Likewise.
40022         * lib/fseeko.c (rpl_fseeko): Likewise.
40023         * lib/fseterr.c (fseterr): Likewise.
40024         * lib/fwritable.c (fwritable): Likewise.
40025         * lib/fwriting.c (fwriting): Likewise.
40026         Reported by Alain Guibert <alguibert+bts@free.fr>.
40027
40028 2008-04-15  Bruno Haible  <bruno@clisp.org>
40029
40030         * modules/mathl (configure.ac): Define module indicator.
40031
40032 2008-04-15  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/logl.c (logl): Remove unused variables.
40035
40036 2008-04-15  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40039         fails.
40040
40041 2008-04-15  Bruno Haible  <bruno@clisp.org>
40042
40043         * lib/trim.c (trim2): Fix argument of isspace() macro.
40044
40045 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40046
40047         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40048         to 0.
40049         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40050
40051 2008-04-14  Bruno Haible  <bruno@clisp.org>
40052
40053         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40054         AC_LANG_PROGRAM argument.
40055         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40056         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40058         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40059         * m4/math_h.m4 (gl_MATH_H): Likewise.
40060         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40061         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40062         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40063         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40064         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40065         * m4/regex.m4 (gl_REGEX): Likewise.
40066         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40067         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40068         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40069         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40070         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40071         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40074
40075 2008-04-14  Jim Meyering  <meyering@redhat.com>
40076
40077         test-strtod: fix typos: s/abs/fabs/
40078         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40079
40080 2008-04-13  Bruno Haible  <bruno@clisp.org>
40081
40082         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40083         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40084         module is also used and while not building the reloc-wrapper.
40085
40086 2008-04-13  Bruno Haible  <bruno@clisp.org>
40087
40088         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40089
40090 2008-04-13  Bruno Haible  <bruno@clisp.org>
40091
40092         Fix AIX compilation failure introduced on 2008-04-02.
40093         * tests/test-frexp.c (exp): Undefine before redefining.
40094         * tests/test-frexpl.c (exp): Likewise.
40095
40096 2008-04-13  Bruno Haible  <bruno@clisp.org>
40097
40098         Work around a HP-UX stdio bug.
40099         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40100         * tests/test-ftello.c (main): Likewise.
40101         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40102         * doc/posix-functions/ftello.texi: Likewise.
40103
40104 2008-04-13  Bruno Haible  <bruno@clisp.org>
40105
40106         Make test-signbit pass on HP-UX/hppa.
40107         * tests/test-signbit.c (minus_zerol): New variable.
40108         (test_signbitl): Use it.
40109
40110 2008-04-13  Bruno Haible  <bruno@clisp.org>
40111
40112         Make truncl work on OSF/1 4.0.
40113         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40114         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40115         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40117         HAVE_DECL_TRUNCL.
40118         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40119         HAVE_DECL_TRUNCL.
40120         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40121
40122 2008-04-13  Bruno Haible  <bruno@clisp.org>
40123
40124         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40125
40126 2008-04-13  Bruno Haible  <bruno@clisp.org>
40127
40128         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40129         expression, so as to avoid HP-UX 11 cc compiler bug.
40130
40131 2008-04-13  Bruno Haible  <bruno@clisp.org>
40132
40133         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40134
40135 2008-04-13  Bruno Haible  <bruno@clisp.org>
40136
40137         * lib/git-merge-changelog.c: Remove empty declaration outside of
40138         functions.
40139
40140 2008-04-13  Bruno Haible  <bruno@clisp.org>
40141
40142         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40143
40144 2008-04-13  Bruno Haible  <bruno@clisp.org>
40145
40146         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40147         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40148         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40149         also if it exists but lacks definitions of the SHUT_* macros.
40150         * modules/sys_socket (Description): Update.
40151         Reported by Elbert Pol <e.pol@chello.nl>.
40152
40153 2008-04-13  Bruno Haible  <bruno@clisp.org>
40154
40155         * lib/localcharset.c (OS2): Don't redefine if already defined.
40156         Reported by Elbert Pol <e.pol@chello.nl>.
40157
40158 2008-04-13  Bruno Haible  <bruno@clisp.org>
40159
40160         * lib/binary-io.h [__EMX__]: Include <io.h>.
40161         Reported by Elbert Pol <e.pol@chello.nl>.
40162
40163 2008-04-12  Bruno Haible  <bruno@clisp.org>
40164
40165         * lib/fpucw.h: Enable the definitions also for x86_64.
40166         Needed for NetBSD/x86_64.
40167         Reported by Thomas Klausner <tk@giga.or.at>.
40168
40169 2008-04-12  Bruno Haible  <bruno@clisp.org>
40170
40171         * tests/test-strtod.c: Include isnand.h.
40172         (main): Use isnand instead of isnan.
40173         Reported by Jim Meyering.
40174
40175 2008-04-12  Bruno Haible  <bruno@clisp.org>
40176
40177         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40178         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40179
40180 2008-04-12  Jim Meyering  <meyering@redhat.com>
40181
40182         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40183
40184 2008-04-12  Bruno Haible  <bruno@clisp.org>
40185
40186         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40187         Reported by Elbert Pol <e.pol@chello.nl>.
40188
40189 2008-04-12  Eric Blake  <ebb9@byu.net>
40190
40191         Work around Solaris 10 math.h bug.
40192         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40193         (gl_MATH_H_DEFAULTS): Set up default.
40194         * modules/math (Makefile.am): Replace new indicators.
40195         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40196         * tests/test-math.c (main): Test this.
40197         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40198         * doc/posix-headers/math.texi (math.h): Mention bug.
40199         Reported by Nelson H. F. Beebe and Jim Meyering.
40200
40201 2008-04-11  Bruno Haible  <bruno@clisp.org>
40202
40203         Adapt to future versions of Apple GCC.
40204         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40205         Reported by Peter O'Gorman <peter@pogma.com>.
40206
40207 2008-04-11  Bruno Haible  <bruno@clisp.org>
40208
40209         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40210
40211 2008-04-11  Bruno Haible  <bruno@clisp.org>
40212
40213         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40214
40215         * modules/getaddrinfo-tests (Makefile.am): Define
40216         test_getaddrinfo_LDADD.
40217
40218 2008-04-11  Bruno Haible  <bruno@clisp.org>
40219
40220         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40221         (init): Fix syntax error.
40222         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40223         is declared.
40224
40225 2008-04-11  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40228         * modules/glob (Depends-on): Add stdbool.
40229
40230 2008-04-11  Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/trim.c: Include <string.h>.
40233
40234 2008-04-11  Eric Blake  <ebb9@byu.net>
40235
40236         Avoid compile failure on OS/2.
40237         * lib/regex_internal.h (internal_function): Disable optimization
40238         on OS/2 (__EMX__), where it caused compiler error.
40239         Reported by Elbert Pol.
40240
40241 2008-04-11  Bruno Haible  <bruno@clisp.org>
40242
40243         Flush the standard error stream before aborting. Needed on mingw.
40244         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40245         * tests/test-array_list.c (ASSERT): Likewise.
40246         * tests/test-array_oset.c (ASSERT): Likewise.
40247         * tests/test-avltree_list.c (ASSERT): Likewise.
40248         * tests/test-avltree_oset.c (ASSERT): Likewise.
40249         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40250         * tests/test-binary-io.c (ASSERT): Likewise.
40251         * tests/test-byteswap.c (ASSERT): Likewise.
40252         * tests/test-c-ctype.c (ASSERT): Likewise.
40253         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40254         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40255         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40256         * tests/test-c-strstr.c (ASSERT): Likewise.
40257         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40258         * tests/test-canonicalize.c (ASSERT): Likewise.
40259         * tests/test-carray_list.c (ASSERT): Likewise.
40260         * tests/test-ceilf1.c (ASSERT): Likewise.
40261         * tests/test-ceilf2.c (ASSERT): Likewise.
40262         * tests/test-ceill.c (ASSERT): Likewise.
40263         * tests/test-count-one-bits.c (ASSERT): Likewise.
40264         * tests/test-fbufmode.c (ASSERT): Likewise.
40265         * tests/test-fflush2.c (ASSERT): Likewise.
40266         * tests/test-floorf1.c (ASSERT): Likewise.
40267         * tests/test-floorf2.c (ASSERT): Likewise.
40268         * tests/test-floorl.c (ASSERT): Likewise.
40269         * tests/test-fopen.c (ASSERT): Likewise.
40270         * tests/test-fpending.c (ASSERT): Likewise.
40271         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40272         * tests/test-fpurge.c (ASSERT): Likewise.
40273         * tests/test-freadable.c (ASSERT): Likewise.
40274         * tests/test-freadahead.c (ASSERT): Likewise.
40275         * tests/test-freading.c (ASSERT): Likewise.
40276         * tests/test-freadptr.c (ASSERT): Likewise.
40277         * tests/test-freadptr2.c (ASSERT): Likewise.
40278         * tests/test-freadseek.c (ASSERT): Likewise.
40279         * tests/test-freopen.c (ASSERT): Likewise.
40280         * tests/test-frexp.c (ASSERT): Likewise.
40281         * tests/test-frexpl.c (ASSERT): Likewise.
40282         * tests/test-fseek.c (ASSERT): Likewise.
40283         * tests/test-fseeko.c (ASSERT): Likewise.
40284         * tests/test-fstrcmp.c (ASSERT): Likewise.
40285         * tests/test-ftell.c (ASSERT): Likewise.
40286         * tests/test-ftello.c (ASSERT): Likewise.
40287         * tests/test-func.c (ASSERT): Likewise.
40288         * tests/test-fwritable.c (ASSERT): Likewise.
40289         * tests/test-fwriting.c (ASSERT): Likewise.
40290         * tests/test-getdelim.c (ASSERT): Likewise.
40291         * tests/test-getline.c (ASSERT): Likewise.
40292         * tests/test-i-ring.c (ASSERT): Likewise.
40293         * tests/test-iconv-utf.c (ASSERT): Likewise.
40294         * tests/test-iconv.c (ASSERT): Likewise.
40295         * tests/test-isfinite.c (ASSERT): Likewise.
40296         * tests/test-isnand.c (ASSERT): Likewise.
40297         * tests/test-isnanf.c (ASSERT): Likewise.
40298         * tests/test-isnanl.h (ASSERT): Likewise.
40299         * tests/test-ldexpl.c (ASSERT): Likewise.
40300         * tests/test-linked_list.c (ASSERT): Likewise.
40301         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40302         * tests/test-localename.c (ASSERT): Likewise.
40303         * tests/test-lseek.c (ASSERT): Likewise.
40304         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40305         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40306         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40307         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40308         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40309         * tests/test-mbschr.c (ASSERT): Likewise.
40310         * tests/test-mbscspn.c (ASSERT): Likewise.
40311         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40312         * tests/test-mbspbrk.c (ASSERT): Likewise.
40313         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40314         * tests/test-mbsrchr.c (ASSERT): Likewise.
40315         * tests/test-mbsspn.c (ASSERT): Likewise.
40316         * tests/test-mbsstr1.c (ASSERT): Likewise.
40317         * tests/test-mbsstr2.c (ASSERT): Likewise.
40318         * tests/test-mbsstr3.c (ASSERT): Likewise.
40319         * tests/test-memchr2.c (ASSERT): Likewise.
40320         * tests/test-memmem.c (ASSERT): Likewise.
40321         * tests/test-open.c (ASSERT): Likewise.
40322         * tests/test-printf-frexp.c (ASSERT): Likewise.
40323         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40324         * tests/test-printf-posix.c (ASSERT): Likewise.
40325         * tests/test-quotearg.c (ASSERT): Likewise.
40326         * tests/test-rbtree_list.c (ASSERT): Likewise.
40327         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40328         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40329         * tests/test-round1.c (ASSERT): Likewise.
40330         * tests/test-roundf1.c (ASSERT): Likewise.
40331         * tests/test-roundl.c (ASSERT): Likewise.
40332         * tests/test-signbit.c (ASSERT): Likewise.
40333         * tests/test-sleep.c (ASSERT): Likewise.
40334         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40335         * tests/test-snprintf.c (ASSERT): Likewise.
40336         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40337         * tests/test-stat-time.c (ASSERT): Likewise.
40338         * tests/test-strcasestr.c (ASSERT): Likewise.
40339         * tests/test-strerror.c (ASSERT): Likewise.
40340         * tests/test-striconv.c (ASSERT): Likewise.
40341         * tests/test-striconveh.c (ASSERT): Likewise.
40342         * tests/test-striconveha.c (ASSERT): Likewise.
40343         * tests/test-strsignal.c (ASSERT): Likewise.
40344         * tests/test-strstr.c (ASSERT): Likewise.
40345         * tests/test-strtod.c (ASSERT): Likewise.
40346         * tests/test-trunc1.c (ASSERT): Likewise.
40347         * tests/test-trunc2.c (ASSERT): Likewise.
40348         * tests/test-truncf1.c (ASSERT): Likewise.
40349         * tests/test-truncf2.c (ASSERT): Likewise.
40350         * tests/test-truncl.c (ASSERT): Likewise.
40351         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40352         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40353         * tests/test-vasnprintf.c (ASSERT): Likewise.
40354         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40355         * tests/test-vasprintf.c (ASSERT): Likewise.
40356         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40357         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40358         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40359         * tests/test-vsnprintf.c (ASSERT): Likewise.
40360         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40361         * tests/test-wcwidth.c (ASSERT): Likewise.
40362         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40363         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40364         * tests/test-xvasprintf.c (ASSERT): Likewise.
40365         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40366         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40367         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40368         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40369         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40370         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40371         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40372         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40373         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40374         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40375         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40376         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40377         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40378         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40379         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40380         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40381         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40382         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40383         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40384         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40385         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40386         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40387         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40388         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40389         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40390         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40391         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40392         * tests/unictype/test-combining.c (ASSERT): Likewise.
40393         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40394         * tests/unictype/test-digit.c (ASSERT): Likewise.
40395         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40396         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40397         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40398         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40399         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40400         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40401         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40402         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40403         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40404         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40405         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40406         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40407         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40408         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40409         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40410         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40411         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40412         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40413         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40414         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40415         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40416         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40417         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40418         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40419         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40420         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40421         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40422         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40423         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40424         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40425         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40426         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40427         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40428         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40429         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40430         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40431         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40432         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40433         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40434         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40435         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40436         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40437         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40438         Reported by Eric Blake.
40439
40440 2008-04-11  Bruno Haible  <bruno@clisp.org>
40441
40442         * lib/wchar.in.h: Tweak comment.
40443
40444 2008-04-11  Bruno Haible  <bruno@clisp.org>
40445
40446         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40447         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40448         gl_COMMON.
40449         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40450
40451 2008-04-11  Bruno Haible  <bruno@clisp.org>
40452
40453         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40454
40455 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40456
40457         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40458         of attempting to use non-existing /dev/*random.  Based on patch
40459         from Adam Strzelecki <ono@java.pl> in
40460         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40461
40462 2008-04-08  Bruno Haible  <bruno@clisp.org>
40463
40464         Add tentative support for emx+gcc.
40465         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40466         * lib/fpurge.c (fpurge): Likewise.
40467         * lib/freadable.c (freadable): Likewise.
40468         * lib/freadahead.c (freadahead): Likewise.
40469         * lib/freading.c (freading): Likewise.
40470         * lib/freadptr.c (freadptr): Likewise.
40471         * lib/freadseek.c (freadptrinc): Likewise.
40472         * lib/fseeko.c (rpl_fseeko): Likewise.
40473         * lib/fseterr.c (fseterr): Likewise.
40474         * lib/fwritable.c (fwritable): Likewise.
40475         * lib/fwriting.c (fwriting): Likewise.
40476         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40477
40478 2008-04-09  Eric Blake  <ebb9@byu.net>
40479
40480         Avoid some autoconf warnings.
40481         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40482         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40483         * m4/afs.m4 (gl_AFS): Likewise.
40484         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40485         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40486         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40487         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40488         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40489         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40490         (AC_CHECK_DECLS_ONCE): Likewise.
40491         Rename file...
40492         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40493         gnulib-tool requires autoconf 2.59 or better.
40494         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40495
40496 2008-04-08  Eric Blake  <ebb9@byu.net>
40497
40498         Use 'git describe --match' if present (added in git 1.5.5).
40499         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40500         if possible.
40501
40502 2008-04-08  Bruno Haible  <bruno@clisp.org>
40503
40504         Add tentative support for OpenServer.
40505         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40506         _ptr, _cnt.
40507         * lib/fpurge.c (fpurge): Likewise.
40508         * lib/freadable.c (freadable): Likewise.
40509         * lib/freadahead.c (freadahead): Likewise.
40510         * lib/freading.c (freading): Likewise.
40511         * lib/freadptr.c (freadptr): Likewise.
40512         * lib/freadseek.c (freadptrinc): Likewise.
40513         * lib/fseeko.c (rpl_fseeko): Likewise.
40514         * lib/fseterr.c (fseterr): Likewise.
40515         * lib/fwritable.c (fwritable): Likewise.
40516         * lib/fwriting.c (fwriting): Likewise.
40517         Reported by Roger Cornelius <rac@tenzing.org> and
40518         Brian K. White <brian@aljex.com>.
40519
40520 2008-04-06  Jim Meyering  <meyering@redhat.com>
40521
40522         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40523
40524 2008-04-06  Bruno Haible  <bruno@clisp.org>
40525
40526         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40527         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40528         * tests/test-printf-posix.sh: Likewise.
40529         * tests/test-vfprintf-posix.sh: Likewise.
40530         * tests/test-vprintf-posix.sh: Likewise.
40531         * tests/test-xprintf-posix.sh: Likewise.
40532
40533 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40534
40535         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40536         hide error from 'ls', needed on OS/2.
40537         Report by Elbert Pol <elbert.pol@gmail.com>.
40538
40539 2008-04-04  Eric Blake  <ebb9@byu.net>
40540
40541         Make test-fseeko.c failures meaningful.
40542         * tests/test-fseeko.c: Print line number on failure.
40543         * tests/test-fseek.c: Likewise.
40544         Reported by Nelson H. F. Beebe.
40545
40546         Improve strtod bug detection check.
40547         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40548         required for Solaris 10.
40549         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40550
40551 2008-04-04  Bruno Haible  <bruno@clisp.org>
40552
40553         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40554         by m4/setenv.m4.
40555
40556 2008-04-03  Eric Blake  <ebb9@byu.net>
40557
40558         Ensure sane .version contents.
40559         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40560         version string.
40561         * build-aux/git-version-gen: Improve documentation.
40562
40563         Make GNU make output nicer.
40564         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40565         MAKECMDGOALS to enforce message for all command line targets.  Set
40566         srcdir for use in maint.mk.
40567
40568         Another maintainer tweak.
40569         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40570         a target that regenerates version.
40571
40572 2008-04-03  Jim Meyering  <meyering@redhat.com>
40573
40574         vc-list-files: don't cause coreutils "make po-check" failure
40575         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40576
40577 2008-04-03  Eric Blake  <ebb9@byu.net>
40578
40579         Allow VPATH usage of vc-list-files.
40580         * build-aux/vc-list-files (scriptversion): Add timestamp.
40581         (options): Add --help, --version, -C.
40582         (CVS): Support installed cvsu.
40583
40584 2008-04-02  Bruno Haible  <bruno@clisp.org>
40585
40586         Avoid some "statement with no effect" warnings from gcc.
40587         * tests/test-wctype.c (main): Explicitly ignore unused values.
40588         Reported by Jim Meyering.
40589
40590 2008-04-02  Jim Meyering  <meyering@redhat.com>
40591
40592         Avoid some warnings from "gcc -Wshadow".
40593         * tests/test-frexp.c (exp): Define to a different identifier.
40594         * tests/test-frexpl.c (exp): Likewise.
40595
40596 2008-04-03  Jim Meyering  <meyering@redhat.com>
40597
40598         bootstrap: remove dangling *.[ch] symlinks from lib
40599         * build-aux/bootstrap [dangling symlink removal]: Move find's
40600         -depth option to precede all others, to avoid a warning.
40601         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40602
40603 2008-04-02  Bruno Haible  <bruno@clisp.org>
40604
40605         Avoid some warnings from "gcc -Wshadow".
40606         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40607         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40608         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40609         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40610         Reported by Jim Meyering.
40611
40612 2008-04-01  Bruno Haible  <bruno@clisp.org>
40613
40614         Fix test to work on IRIX 6.5 with cc.
40615         * tests/test-math.c (numeric_equal): New function.
40616         (main): Use it.
40617
40618 2008-04-01  Bruno Haible  <bruno@clisp.org>
40619
40620         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40621
40622 2008-04-01  Bruno Haible  <bruno@clisp.org>
40623
40624         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40625         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40626         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40627         (Depends-on): Remove math.
40628
40629         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40630         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40631         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40632         (Depends-on): Remove math.
40633
40634         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40635         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40636         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40637         (Depends-on): Remove math.
40638         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40639         (Depends-on): Remove math.
40640
40641         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40642         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40643         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40644         (Depends-on): Remove math.
40645         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40646         (Depends-on): Remove math.
40647
40648         * tests/test-round1.c: Include nan.h.
40649         (main): Use NaNd instead of NAN.
40650         * modules/round-tests (Files): Add tests/nan.h.
40651
40652         * tests/test-trunc1.c: Include nan.h.
40653         (main): Use NaNd instead of NAN.
40654         * modules/trunc-tests (Files): Add tests/nan.h.
40655
40656         * tests/test-roundf1.c: Include nan.h.
40657         (main): Use NaNf instead of NAN.
40658         * modules/roundf-tests (Files): Add tests/nan.h.
40659
40660         * tests/test-truncf1.c: Include nan.h.
40661         (main): Use NaNf instead of NAN.
40662         * modules/truncf-tests (Files): Add tests/nan.h.
40663
40664         * tests/test-ceilf1.c: Include nan.h.
40665         (main): Use NaNf instead of NAN.
40666         * modules/ceilf-tests (Files): Add tests/nan.h.
40667
40668         * tests/test-floorf1.c: Include nan.h.
40669         (main): Use NaNf instead of NAN.
40670         * modules/floorf-tests (Files): Add tests/nan.h.
40671
40672         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40673         (main): Use NaNf instead of NAN.
40674         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40675
40676         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40677         (main): Use NaNd instead of NAN.
40678         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40679
40680         * tests/test-frexp.c: Include nan.h.
40681         (main): Use NaNd instead of NAN.
40682         * modules/frexp-tests (Files): Add tests/nan.h.
40683
40684         * lib/isnan.c: Don't include <math.h>.
40685         (FUNC): Don't use NAN macro.
40686         * modules/isnand-nolibm (Depends-on): Remove math.
40687         * modules/isnanf-nolibm (Depends-on): Remove math.
40688         * modules/isnanl (Depends-on): Remove math.
40689         * modules/isnanl-nolibm (Depends-on): Remove math.
40690
40691         * tests/nan.h: New file.
40692
40693 2008-04-01  Eric Blake  <ebb9@byu.net>
40694
40695         Fix typos.
40696         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40697         values to be the right type.
40698
40699         For now, cater to gnulib strtod inaccuracies.
40700         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40701         fractional results.  While not as nice from a QoI perspective, it
40702         is a quicker patch than correctly implementing decimal to binary
40703         rounding.
40704
40705 2008-03-31  Eric Blake  <ebb9@byu.net>
40706
40707         Guarantee a definition of NAN.
40708         * lib/math.in.h (NAN): Define if missing.
40709         * tests/test-math.c (main): Test it.
40710         * doc/posix-headers/math.texi (math.h): Document this.
40711         * lib/isnan.c (rpl_isnand): Use it.
40712         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40713         * tests/test-floorf1.c (NaN): Likewise.
40714         * tests/test-frexp.c (NaN): Likewise.
40715         * tests/test-isnand.c (NaN): Likewise.
40716         * tests/test-isnanf.c (NaN): Likewise.
40717         * tests/test-round1.c (NaN): Likewise.
40718         * tests/test-roundf1.c (NaN): Likewise.
40719         * tests/test-snprintf-posix.h (NaN): Likewise.
40720         * tests/test-sprintf-posix.h (NaN): Likewise.
40721         * tests/test-trunc1.c (NaN): Likewise.
40722         * tests/test-truncf1.c (NaN): Likewise.
40723         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40724         * tests/test-vasprintf-posix.c (NaN): Likewise.
40725         * modules/isnand-nolibm (Depends-on): Add math.
40726         * modules/isnanf-nolibm (Depends-on): Likewise.
40727         * modules/isnanl (Depends-on): Likewise.
40728         * modules/isnanl-nolibm (Depends-on): Likewise.
40729         * modules/snprintf-posix-tests (Depends-on): Likewise.
40730         * modules/sprintf-posix-tests (Depends-on): Likewise.
40731         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40732         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40733         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40734         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40735
40736 2008-03-31  Bruno Haible  <bruno@clisp.org>
40737
40738         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40739         * doc/posix-functions/strtod.texi: Likewise.
40740
40741 2008-03-31  Bruno Haible  <bruno@clisp.org>
40742
40743         * tests/test-strtod.c (main): Don't use C99 syntax.
40744
40745 2008-03-31  Bruno Haible  <bruno@clisp.org>
40746
40747         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40748         Reported by Eric Blake.
40749
40750 2008-03-31  Jim Meyering  <meyering@redhat.com>
40751
40752         Don't compare actual signbit return values.
40753         * tests/test-strtod.c (main): Rather, compare only their
40754         zero/non-zero nature.
40755
40756 2008-03-31  Eric Blake  <ebb9@byu.net>
40757
40758         More strtod documentation.
40759         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40760         failures as distinct bugs.
40761
40762 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40763
40764         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40765         Problem reported by Erik Benada in
40766         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40767
40768 2008-03-30  Bruno Haible  <bruno@clisp.org>
40769
40770         * tests/test-strtod.c: Add comments about which assertion fails on which
40771         platform.
40772         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40773
40774 2008-03-30  Eric Blake  <ebb9@byu.net>
40775
40776         Test signbit behavior on zeros.
40777         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40778         (test_signbitd, test_signbitl): Likewise.
40779
40780         More strtod touchups.
40781         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40782         sign of negative underflow, for now.  Use .5, not .1.
40783         * doc/posix-functions/strtod.texi (strtod): Mention these
40784         limitations.
40785         Reported by Jim Meyering.
40786
40787 2008-03-30  Bruno Haible  <bruno@clisp.org>
40788
40789         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40790         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40791
40792 2008-03-30  Bruno Haible  <bruno@clisp.org>
40793
40794         Avoid failure when attempting to return empty iconv results on some
40795         platforms.
40796         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40797         allocation, don't report ENOMEM when the resulting string is empty.
40798
40799 2008-03-30  Bruno Haible  <bruno@clisp.org>
40800
40801         Fix buffer overrun.
40802         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40803         Don't consider the width for tmp_length. Check count against tmp_length
40804         before doing the padding. Ensure enough allocation during padding.
40805
40806 2008-03-30  Eric Blake  <ebb9@byu.net>
40807
40808         strtod touchups.
40809         * lib/strtod.c (strtod): Avoid compiler warnings.
40810         Reported by Jim Meyering.
40811
40812 2008-03-30  Bruno Haible  <bruno@clisp.org>
40813
40814         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40815         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40816         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40817         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40818         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40819         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40820         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40821         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40822
40823         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40824         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40825         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40826         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40827         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40828         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40829         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40830         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40831
40832         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40833         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40834         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40835         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40836         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40837         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40838         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40839         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40840
40841         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40842         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40843
40844         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40845         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40846
40847         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40848         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40849
40850         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40852         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40853
40854         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40856         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40857
40858         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40859         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40860         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40861
40862         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40864         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40865
40866         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40867         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40868         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40869         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40870         (Depends-on): Add EOVERFLOW.
40871         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40872         (Depends-on): Add EOVERFLOW.
40873         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40874         (Depends-on): Add EOVERFLOW.
40875         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40876         (Depends-on): Add EOVERFLOW.
40877         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40878         (Depends-on): Add EOVERFLOW.
40879         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40880         (Depends-on): Add EOVERFLOW.
40881         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40882         (Depends-on): Add EOVERFLOW.
40883         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40884         (Depends-on): Add EOVERFLOW.
40885
40886         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40888         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40889
40890         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40892         * modules/snprintf (Depends-on): Add EOVERFLOW.
40893
40894         * lib/poll.c (EOVERFLOW): Remove fallback.
40895         * modules/poll (Depends-on): Add EOVERFLOW.
40896
40897         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40898         * modules/getugroups (Depends-on): Add EOVERFLOW.
40899
40900         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40901         * modules/getdelim (Depends-on): Add EOVERFLOW.
40902
40903         * lib/ftell.c (EOVERFLOW): Remove fallback.
40904         * modules/ftell (Depends-on): Add EOVERFLOW.
40905
40906         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40907         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40908         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40909
40910         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40911
40912         * modules/EOVERFLOW-tests: New file.
40913         * tests/test-EOVERFLOW.c: New file.
40914
40915         * modules/EOVERFLOW: New file.
40916         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40917
40918 2008-03-30  Bruno Haible  <bruno@clisp.org>
40919
40920         Fix bug introduced on 2007-06-10.
40921         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40922         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40923
40924 2008-03-30  Bruno Haible  <bruno@clisp.org>
40925
40926         Improve freadseek's efficiency after ungetc.
40927         * lib/freadseek.c: Include freadahead.h.
40928         (freadptrinc): New function, extracted from freadseek.
40929         (freadseek): Use it in a loop. Use freadahead to determine the number
40930         of loop iterations.
40931         * modules/freadseek (Depends-on): Add freadahead.
40932         (configure.ac): Require AC_C_INLINE.
40933
40934 2008-03-30  Bruno Haible  <bruno@clisp.org>
40935
40936         * lib/freadseek.c (freadseek): Don't ignore the return value of
40937         freadptr.
40938
40939 2008-03-29  Eric Blake  <ebb9@byu.net>
40940
40941         Add hex float support.
40942         * modules/strtod (Depends-on): Add c-ctype.
40943         (Link): Mention POW_LIB.
40944         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40945         whitespace between 'e' and exponent.
40946         * tests/test-strtod.c (main): Enable hex float tests.
40947         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40948         now provides.
40949
40950         Document various strtod bugs, with some fixes.
40951         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40952         "-0x", "inf", "nan", and hex constants.
40953         * doc/posix-functions/atof.texi (atof): Likewise.
40954         * modules/stdlib (Makefile.am): Support strtod.
40955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40956         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
40957         detect additional strtod bugs.
40958         * lib/stdlib.in.h (rpl_strtod): Add declarations.
40959         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
40960         bool where appropriate.  Parse 'inf' and 'nan'.
40961         * tests/test-strtod.c: New file.
40962         * modules/strtod (Depends-on): Add stdbool, stdlib.
40963         (configure.ac): Turn on module indicator.
40964         * modules/strtod-tests: New module.
40965
40966 2008-03-29  Eric Blake  <ebb9@byu.net>
40967
40968         Fix ftell on mingw.
40969         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
40970         * modules/ftell-tests (Depends-on): Add binary-io.
40971         * modules/ftello-tests (Depends-on): Likewise.
40972         * tests/test-ftell.c (main): Enhance test to cover behavior after
40973         ungetc.  Enforce binary mode.
40974         * tests/test-ftello.c (main): Likewise.
40975
40976         Pass test-freadseek on cygwin.
40977         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
40978         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
40979         ungetc buffer.
40980
40981         * tests/test-fflush2.c (main): Fix typo.
40982
40983 2008-03-29  Bruno Haible  <bruno@clisp.org>
40984
40985         * tests/test-fflush2.c (main): Temporarily disable the contents of
40986         this test.
40987         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
40988         Reported by Eric Blake.
40989
40990 2008-03-28  Simon Josefsson  <simon@josefsson.org>
40991
40992         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
40993         (GC_SHA224_DIGEST_SIZE): Add.
40994
40995         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
40996         (gc_hash_digest_length): Likewise.
40997         (gc_hash_buffer): Likewise.
40998
40999 2008-03-25  Bruno Haible  <bruno@clisp.org>
41000
41001         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41002         detail which gettext release to use.
41003         Reported by Simon Josefsson.
41004
41005 2008-03-26  Jim Meyering  <meyering@redhat.com>
41006
41007         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41008         * modules/gnumakefile (clean-GNUmakefile): Also, use
41009         test ... && ... || : syntax rather than if-then ... fi.
41010
41011         gnumakefile: Don't double-quote-expand $(VPATH) value.
41012         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41013
41014 2008-03-24  Eric Blake  <ebb9@byu.net>
41015
41016         Alter GNUmakefile to install into top directory.
41017         * modules/maintainer-makefile: Split, and add dependency...
41018         * modules/gnumakefile: to this new module.
41019         * build-aux/GNUmakefile: Move...
41020         * top/GNUmakefile: ...here.
41021         * build-aux/maint.mk: Move...
41022         * top/maint.mk: ...here.
41023         * MODULES.html.sh (Support for maintaining...): Document new
41024         module.
41025
41026 2008-03-23  Bruno Haible  <bruno@clisp.org>
41027
41028         * gnulib-tool: New options --vc-files, --no-vc-files.
41029         (func_usage): Document them.
41030         (vc_files): New variable.
41031         (func_import): Consider vc_files.
41032         (func_create_testdir): Set vc_files to empty.
41033         Suggested by Jim Meyering and Karl Berry.
41034
41035 2008-03-23  Bruno Haible  <bruno@clisp.org>
41036
41037         Fix regex compilation error on HP-UX 11.
41038         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41039         * modules/regex (Files): Add m4/mbstate_t.m4.
41040         Reported by Ton Voon <ton.voon@altinity.com>.
41041
41042 2008-03-23  Bruno Haible  <bruno@clisp.org>
41043
41044         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41045
41046 2008-03-23  Eric Blake  <ebb9@byu.net>
41047             Bruno Haible  <bruno@clisp.org>
41048
41049         Install files from top/ in the destination directory.
41050         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41051         augmentation also for the files from top/.
41052         (func_import, func_create_testdir): Rewrite file names:
41053         top/filename -> filename.
41054
41055 2008-03-23  Bruno Haible  <bruno@clisp.org>
41056
41057         Tweak "gnulib --version" output.
41058         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41059
41060 2008-03-23  Bruno Haible  <bruno@clisp.org>
41061
41062         Tweak "gnulib --version" output.
41063         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41064         rather than contents of ChangeLog, when possible.
41065
41066 2008-03-21  Eric Blake  <ebb9@byu.net>
41067
41068         More --version tweaks.
41069         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41070         date of last ChangeLog entry.
41071
41072 2008-03-21  Jim Meyering  <meyering@redhat.com>
41073
41074         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41075
41076 2008-03-20  Eric Blake  <ebb9@byu.net>
41077
41078         VPATH fix.
41079         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41080
41081 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41082
41083         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41084         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41085
41086 2008-03-20  Eric Blake  <ebb9@byu.net>
41087
41088         Sync GNUmakefile with coreutils.
41089         * build-aux/GNUmakefile (have-Makefile): Rename...
41090         (_have-Makefile): ...to this, for namespace consideration.
41091         (GNUmakefile.cfg): Include, if present.
41092         (_autoreconf): Define a default.
41093         (_is-dist-target): New rule for rebuilds to pick up intra-release
41094         version.
41095         (maint-cfg.mk): Rename...
41096         (cfg.mk): ...to this.
41097
41098 2008-03-18  Jim Meyering  <meyering@redhat.com>
41099
41100         New script and module: mktempd
41101         * MODULES.html.sh (maint+release support): Add mktempd.
41102         * build-aux/mktempd: New file.
41103         * modules/mktempd: New file.
41104
41105 2008-03-15  Jim Meyering  <meyering@redhat.com>
41106
41107         Undo last change.
41108         * lib/sha1.c, lib/md5.c: 63 != ~63.
41109         Reported by Andreas Schwab.
41110
41111         sha1.c, md5.c: Hoist a redundant expression.
41112         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41113         "ctx->buflen" only once, before calling *_process_block.
41114         * lib/md5.c (md5_process_bytes): Likewise.
41115
41116 2008-03-14  Eric Blake  <ebb9@byu.net>
41117
41118         Bump copyright year in files generated by gnulib-tool.
41119         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41120         gnulib-tool, rather than hard-coding it.
41121
41122         Fix 'gnulib-tool --version' output to work with git.
41123         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41124         (startup): ...here.
41125         (func_version): Use it to invoke git-version-gen, rather than
41126         relying on CVS keyword expansion.  Modernize wording.
41127         (cvsdatestamp, last_checkin_date, version): Kill unused
41128         variables.
41129
41130 2008-03-12  Jim Meyering  <meyering@redhat.com>
41131
41132         Recognize optional cast of the argument to free.
41133         * build-aux/useless-if-before-free: Update regexps.
41134
41135         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41136
41137 2008-03-11  Bruno Haible  <bruno@clisp.org>
41138
41139         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41140         by a single package.
41141         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41142         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41143         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41144         Reported by Sam Steingold <sds@gnu.org>.
41145
41146 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41147
41148         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41149         repositories.
41150
41151 2008-03-11  Bruno Haible  <bruno@clisp.org>
41152
41153         Avoid conflicts between local macro definitions.
41154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41155         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41156
41157 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41158             Bruno Haible  <bruno@clisp.org>
41159
41160         Make va_copy work with some version of xlc on AIX 5.1.
41161         * lib/stdarg.in.h: New file.
41162         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41163         On AIX, use a <stdarg.h> file substitute.
41164         * modules/stdarg (Files): Add lib/stdarg.in.h.
41165         (Depends-on): Add include_next.
41166         (Makefile.am): Build a stdarg.h substitute if requested.
41167         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41168
41169 2008-03-10  Bruno Haible  <bruno@clisp.org>
41170
41171         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41172         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41173         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41174
41175 2008-03-10  Bruno Haible  <bruno@clisp.org>
41176
41177         * modules/stdlib (Depends-on): Add include_next, remove
41178         absolute-header.
41179
41180 2008-03-09  Bruno Haible  <bruno@clisp.org>
41181
41182         * lib/freadahead.h (freadahead): Document more precisely.
41183         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41184         the sum of both buffer sizes.
41185         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41186         * NEWS: Document the change.
41187
41188 2008-03-09  Bruno Haible  <bruno@clisp.org>
41189
41190         Extend freadptr to return also the buffer size.
41191         * lib/freadptr.h (freadptr): Add sizep argument.
41192         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41193         (freadptr): Add sizep argument. Determine buffer size like freadahead
41194         does.
41195         * tests/test-freadptr.c: Don't include freadahead.h.
41196         (main): Adapt for new calling convention of freadptr.
41197         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41198         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41199         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41200         tests/test-freadptr2.sh.
41201         (Depends): Remove freadahead.
41202         (TESTS): Add test-freadptr2.sh.
41203         (check_PROGRAMS): Add test-freadptr2.
41204
41205 2008-03-09  Bruno Haible  <bruno@clisp.org>
41206
41207         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41208         Report and solution by Simon Josefsson.
41209
41210 2008-03-06  Bruno Haible  <bruno@clisp.org>
41211
41212         Make fflush after ungetc work on BSD platforms.
41213         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41214         * tests/test-fflush2.c: New file.
41215         * tests/test-fflush2.sh: New file.
41216         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41217         tests/test-fflush2.c.
41218         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41219         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41220
41221 2008-03-06  Eric Blake  <ebb9@byu.net>
41222
41223         Likewise for ftello.
41224         * modules/ftello (Dependencies): Add extensions.
41225         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41226
41227 2008-03-06  Bruno Haible  <bruno@clisp.org>
41228
41229         * modules/fseeko (Dependencies): Add extensions.
41230         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41231         Needed on glibc systems.
41232
41233 2008-03-06  Bruno Haible  <bruno@clisp.org>
41234
41235         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41236         email address.
41237         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41238
41239 2008-03-06  Bruno Haible  <bruno@clisp.org>
41240
41241         * users.txt: Add libgnupdf.
41242
41243 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41244
41245         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41246         (Header File Substitutes, Function Substitutes,
41247         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41248         (Build robot for gnulib): Fix typo.
41249
41250 2008-03-06  Bruno Haible  <bruno@clisp.org>
41251
41252         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41253         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41254
41255 2008-03-06  Bruno Haible  <bruno@clisp.org>
41256
41257         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41258         * doc/gnulib.texi: Include it.
41259
41260 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41261
41262         * modules/func (License): Change license to unlimited; there was
41263         no LGPL parts in the module anyway.
41264
41265 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41266
41267         * modules/__func__: Renamed to modules/func.
41268         * modules/__func__-tests: Renamed to modules/func-tests.
41269         * tests/test-__func__.c: Renamed to tests/test-func.c.
41270         * m4/__func__.m4: Renamed to m4/func.m4.
41271         * doc/gnulib.texi (__func__): Section renamed to func.
41272         Suggested by Eric Blake <ebb9@byu.net>.
41273
41274 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41275
41276         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41277         about __func__.  Make example self-contained.  Suggested by Eric
41278         Blake <ebb9@byu.net>.
41279
41280         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41281         Suggested by Eric Blake <ebb9@byu.net>.
41282
41283 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41284
41285         * modules/__func__: New file.
41286         * modules/__func__-tests: New file.
41287         * tests/test-__func__.c: New file.
41288         * m4/__func__.m4: New file.
41289         * doc/gnulib.texi (__func__): Document __func__ module.
41290
41291 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41292
41293         * modules/byteswap (License): Re-license as LGPLv2+.
41294
41295 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41296
41297         * doc/Makefile: Add pdf target.
41298
41299 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41300
41301         * modules/inline (License): Use 'unlimited', since there are only
41302         *.m4 files in this module.
41303
41304 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41305             Bruno Haible  <bruno@clisp.org>
41306
41307         Add support for HP C 7.1 on OpenVMS 8.3.
41308         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41309
41310 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41311
41312         Update VMS specifics.
41313         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41314
41315 2008-03-02  Jim Meyering  <meyering@redhat.com>
41316
41317         Remove the last dependency on the "free" module.
41318         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41319         Reported by Bob Proulx.
41320
41321         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41322
41323         Remove useless "if" tests before free.  Deprecate "free" module.
41324         * doc/posix-functions/free.texi: Mention that this
41325         module is no longer useful.
41326         * modules/free (Notice): Say this module is obsolete.
41327         * modules/readutmp (Depends-on): Remove free.
41328         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41329         * lib/putenv.c (putenv): Likewise.
41330         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41331         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41332         * tests/test-c-strcasestr.c (main): Likewise.
41333         * tests/test-c-strstr.c (main): Likewise.
41334         * tests/test-mbscasestr1.c (main): Likewise.
41335         * tests/test-mbscasestr2.c (main): Likewise.
41336         * tests/test-mbsstr1.c (main): Likewise.
41337         * tests/test-mbsstr2.c (main): Likewise.
41338         * tests/test-memmem.c (main): Likewise.
41339         * tests/test-strcasestr.c (main): Likewise.
41340         * tests/test-striconv.c (main): Likewise.
41341         * tests/test-striconveh.c (main): Likewise.
41342         * tests/test-striconveha.c (main): Likewise.
41343         * tests/test-strstr.c (main): Likewise.
41344
41345         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41346
41347         bootstrap: sync from coreutils again
41348         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41349
41350 2008-03-01  Jim Meyering  <meyering@redhat.com>
41351
41352         bootstrap: sync from coreutils
41353         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41354         also when the target doesn't exist.
41355
41356 2008-03-01  Eric Blake  <ebb9@byu.net>
41357
41358         Fix bugs in last patch.
41359         * lib/memchr2.c (memchr2): Fix typo.
41360         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41361         extension.
41362         Reported by Bruce Korb.
41363
41364         New module 'memchr2'.
41365         * modules/memchr2: New file.
41366         * modules/memchr2-tests: Likewise.
41367         * lib/memchr2.h: Likewise.
41368         * lib/memchr2.c: Likewise, based on memchr.c.
41369         * tests/test-memchr2.c: New test.
41370         * MODULES.html.sh (String handling): Add memchr2.
41371
41372 2008-02-29  Bruno Haible  <bruno@clisp.org>
41373
41374         * modules/freadseek-tests: New file.
41375         * tests/test-freadseek.sh: New file.
41376         * tests/test-freadseek.c: New file.
41377
41378         New module 'freadseek'.
41379         * modules/freadseek: New file.
41380         * lib/freadseek.h: New file.
41381         * lib/freadseek.c: New file.
41382         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41383
41384 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41385
41386         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41387         wydawca.
41388
41389         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41390         program_invocation_name and program_invocation_short_name are
41391         present.
41392
41393 2008-02-28  Bruno Haible  <bruno@clisp.org>
41394
41395         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41396         * tests/test-freadptr.sh: Also test non-seekable stdin.
41397
41398 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41399
41400         * build-aux/bootstrap (source_base, m4_base)
41401         (doc_base, tests_base): New variables.
41402         (gnulib_tool_options): Do not hardcode base directories, use
41403         the above variables instead.
41404
41405 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41406
41407         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41408
41409 2008-02-28  Bruno Haible  <bruno@clisp.org>
41410
41411         * modules/freadptr-tests: New file.
41412         * tests/test-freadptr.sh: New file.
41413         * tests/test-freadptr.c: New file.
41414
41415         New module 'freadptr'.
41416         * modules/freadptr: New file.
41417         * lib/freadptr.h: New file.
41418         * lib/freadptr.c: New file.
41419         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41420
41421 2008-02-26  Karl Berry  <karl@freefriends.org>
41422
41423         Sync from Libtool:
41424         * libltdl/argz.c (argz_add, argz_count): New functions.
41425         * libltdl/argz.in.h: Declare them.
41426         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41427
41428 2008-02-22  Bruno Haible  <bruno@clisp.org>
41429
41430         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41431         is a pointer type.  Needed for HP-UX 10.
41432         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41433         * doc/posix-functions/gmtime_r.texi: Likewise.
41434         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41435
41436 2008-02-24  Bruno Haible  <bruno@clisp.org>
41437
41438         * modules/environ-tests: New file.
41439         * tests/test-environ.c: New file.
41440
41441         New module 'environ'.
41442         * modules/environ: New file.
41443         * lib/unistd.in.h (environ): New declaration.
41444         * m4/environ.m4: New file.
41445         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41446         after use.
41447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41448         HAVE_DECL_ENVIRON.
41449         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41450         HAVE_DECL_ENVIRON.
41451         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41452         wrong claim that 'environ' is missing on some systems.
41453         * modules/execute (Depends-on): Add environ.
41454         * lib/execute.c (environ): Remove fallback declaration.
41455         * modules/pipe (Depends-on): Add environ.
41456         * lib/pipe.c (environ): Remove fallback declaration.
41457         * modules/setenv (Depends-on): Add environ.
41458         * lib/setenv.c (environ): Remove fallback declaration.
41459         * modules/unsetenv (Depends-on): Add environ.
41460         * lib/unsetenv.c (environ): Remove fallback declaration.
41461         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41462         m4/environ.m4.
41463         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41464         (gl_PREREQ_UNSETENV): Likewise.
41465
41466 2008-02-24  Bruno Haible  <bruno@clisp.org>
41467
41468         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41469
41470 2008-02-20  Bob Proulx  <bob@proulx.com>
41471
41472         Enable use of older two part flavor 'git describe'.
41473         * build-aux/git-version-gen: If using the older two part flavor of
41474         git version then recreate the third part now present in the
41475         newer three part flavor of git describe.
41476
41477 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41478
41479         * lib/fts.c (fts_build): Typo correction to comment.
41480
41481 2008-02-17  Bruno Haible  <bruno@clisp.org>
41482
41483         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41484         generating no-op conflicts.
41485
41486 2008-02-17  Bruno Haible  <bruno@clisp.org>
41487
41488         Speed up by 10%.
41489         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41490         result_entries, rather than an index-based loop.
41491
41492 2008-02-17  Bruno Haible  <bruno@clisp.org>
41493
41494         Speed up by 25%.
41495         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41496         'hashcode_cached'.
41497         (entry_create): New function.
41498         (entry_hashcode): Use the cached hashcode if possible.
41499         (read_changelog_file, try_split_merged_entry): Use entry_create.
41500
41501 2008-02-17  Bruno Haible  <bruno@clisp.org>
41502
41503         Speed up from O(n^2) to O(n) for long ChangeLog files.
41504         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41505         (read_changelog_file): Change implementation of entries_reversed list
41506         to rbtreehash.
41507         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41508
41509 2008-02-17  Bruno Haible  <bruno@clisp.org>
41510
41511         New option --split-merged-entry.
41512         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41513         (find_paragraph_end, try_split_merged_entry): New functions.
41514         (long_options): Add option --split-merged-entry.
41515         (usage): Document option --split-merged-entry.
41516         (main): Implement option --split-merged-entry.
41517         Reported by Eric Blake.
41518
41519 2008-02-17  Bruno Haible  <bruno@clisp.org>
41520
41521         * lib/git-merge-changelog.c: Include c-strstr.h.
41522         (main): Support the "git pull --rebase" situation.
41523         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41524         Reported by Eric Blake.
41525
41526 2008-02-16  Eric Blake  <ebb9@byu.net>
41527
41528         Avoid doubling \ in common case of "c-maybe" quoting style.
41529         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41530         eliding outer quotes.
41531         * lib/quotearg.h: Document this.
41532         * tests/test-quotearg.c (result_strings, inputs, results_g)
41533         (flag_results, locale_results): Test it by adding a new string to
41534         each test group.
41535         (compare_strings): Test new string.
41536
41537 2008-02-13  Eric Blake  <ebb9@byu.net>
41538
41539         Avoid trigraph quoting in default output.
41540         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41541         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41542         unless explicitly requested.
41543         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41544
41545 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41546
41547         Don't rely on signed integer overflowing to negative value.
41548         * lib/getugroups.c (getugroups): Include <limits.h>.
41549         Instead, compare against INT_MAX, and increment only if the test passes.
41550
41551 2008-02-13  Jim Meyering  <meyering@redhat.com>
41552         and Eric Blake  <ebb9@byu.net>
41553
41554         Avoid shadowing warning and compile errors on Linux.
41555         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41556         forwarding macros on Linux.
41557         (dcgettext): Define a stub, for Linux.
41558         (results_g, main): Avoid warnings.
41559
41560 2008-02-12  Eric Blake  <ebb9@byu.net>
41561
41562         Silence warning in last patch.
41563         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41564
41565         Quotearg part 4: add tests, fix c-maybe colon quoting.
41566         * lib/quotearg.h: Improve documentation.
41567         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41568         escapes when adding outer quotes.  When quoting trigraphs, use
41569         valid C notation.  When quoting NUL, omit extra characters if next
41570         character is not digit.  Alter prototype.
41571         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41572         callers.
41573         * modules/quotearg-tests: New module.
41574         * tests/test-quotearg.c: New test.
41575
41576 2008-02-07  Eric Blake  <ebb9@byu.net>
41577
41578         Quotearg part 3: add flag to control outer quote elision.
41579         * lib/quotearg.h (c_maybe_quoting_style): New style.
41580         (enum quoting_flags): Better documentation of flags.
41581         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41582         c-maybe style.
41583         (quotearg_buffer_restyled): Handle new flag to elide outer
41584         quotes.
41585
41586         Quotearg part 2: add flag that can control NUL elision.
41587         * lib/quotearg.h (set_quoting_flags): New prototype.
41588         * lib/quotearg.c (struct quoting_options): Add flag field.
41589         (set_quoting_flags): New function.
41590         (quotearg_buffer_restyled): Add flags parameter.
41591         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41592         (quotearg_n_options): Set the flag, since length cannot be
41593         returned.
41594         (quoting_options_from_style): Default flags correctly.
41595
41596         Quotearg part 1: more wrappers, restore quotearg_char state.
41597         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41598         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41599         (quotearg_colon_mem): New wrappers.
41600         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41601         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41602         functions.
41603         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41604         (quotearg_colon_mem): New functions.
41605
41606 2008-02-11  Bruno Haible  <bruno@clisp.org>
41607
41608         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41609         library in the current directory: it does not work with parallel make.
41610         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41611
41612 2008-02-11  Bruno Haible  <bruno@clisp.org>
41613
41614         * .gitattributes: New file.
41615
41616 2008-02-11  Jim Meyering  <meyering@redhat.com>
41617
41618         useless-if-before-free: Fix reversed exit values.
41619         * build-aux/useless-if-before-free: Use correct values
41620         for EXIT_MATCH and EXIT_NO_MATCH.
41621
41622         * build-aux/useless-if-before-free: Close stdout carefully.
41623
41624 2008-02-10  Bruno Haible  <bruno@clisp.org>
41625
41626         New module 'git-merge-changelog'.
41627         * modules/git-merge-changelog: New file.
41628         * lib/git-merge-changelog.c: New file.
41629
41630 2008-02-10  Jim Meyering  <meyering@redhat.com>
41631
41632         useless-if-before-free: New option: --list (-l).
41633
41634         useless-if-before-free: Don't exit immediately upon open failure.
41635         * build-aux/useless-if-before-free: Exit 2 for errors.
41636         Upon failure to open a file, don't exit immediately.
41637         Rather, just warn and continue with any remaining files.
41638
41639 2008-02-10  Bruno Haible  <bruno@clisp.org>
41640
41641         New abstract list operation 'node_set_value'.
41642         * lib/gl_list.h (gl_list_node_set_value): New function.
41643         (struct gl_list_implementation): New field node_set_value.
41644         * lib/gl_list.c (gl_list_node_set_value): New function.
41645         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41646         (gl_array_list_implementation): Update.
41647         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41648         (gl_carray_list_implementation): Update.
41649         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41650         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41651         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41652         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41653         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41654         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41655         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41656         Update.
41657         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41658         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41659         (gl_sublist_list_implementation): Update.
41660
41661 2008-02-10  Bruno Haible  <bruno@clisp.org>
41662
41663         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41664         Needed when ELEMENT is #defined to 'some_type *'.
41665
41666 2008-02-10  Jim Meyering  <meyering@redhat.com>
41667
41668         New script and module: useless-if-before-free
41669         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41670         * build-aux/useless-if-before-free: New file.
41671         * modules/useless-if-before-free: New file.
41672
41673         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41674
41675         xstrtol_error: Fix typo.
41676         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41677         s/exit_failure/exit_status/.
41678
41679 2008-02-09  Jim Meyering  <meyering@redhat.com>
41680
41681         New script and module: gitlog-to-changelog
41682         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41683         * modules/gitlog-to-changelog: New file.
41684         * build-aux/gitlog-to-changelog: New file.
41685
41686 2008-02-08  Jim Meyering  <meyering@redhat.com>
41687
41688         Avoid two "parameter unused" warnings.
41689         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41690         Mark "st" as used.
41691
41692         Use "git COMMAND", not "git-COMMAND".
41693         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41694         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41695         * build-aux/git-version-gen: Use "git status", not "git-status".
41696
41697 2008-02-07  Bruno Haible  <bruno@clisp.org>
41698
41699         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41700         Avoids a crash on Windows Vista.
41701         Reported by Adam Strzelecki <ono@java.pl> via
41702         Simon Josefsson <simon@josefsson.org>.
41703
41704 2008-02-06  Bruno Haible  <bruno@clisp.org>
41705
41706         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41707         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41708         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41710         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41711         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41712         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41713         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41715         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41716         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41717         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41718         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41720         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41721         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41722         left-adjust flag.
41723         * tests/test-snprintf-posix.h (test_function): Likewise.
41724         * tests/test-sprintf-posix.h (test_function): Likewise.
41725         * tests/test-vasprintf-posix.c (test_function): Likewise.
41726         * doc/posix-functions/fprintf.texi: Update.
41727         * doc/posix-functions/printf.texi: Update.
41728         * doc/posix-functions/snprintf.texi: Update.
41729         * doc/posix-functions/sprintf.texi: Update.
41730         * doc/posix-functions/vfprintf.texi: Update.
41731         * doc/posix-functions/vprintf.texi: Update.
41732         * doc/posix-functions/vsnprintf.texi: Update.
41733         * doc/posix-functions/vsprintf.texi: Update.
41734         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41735
41736 2008-02-06  Bruno Haible  <bruno@clisp.org>
41737
41738         Fix bug introduced on 2008-01-26.
41739         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41740
41741 2008-02-06  Bruno Haible  <bruno@clisp.org>
41742
41743         Fix bug introduced on 2007-06-10.
41744         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41745         !NEED_PRINTF_FLAG_ZERO.
41746
41747 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41748
41749         getloadavg: use libperfstat on AIX5
41750         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41751
41752 2008-02-03  Bruno Haible  <bruno@clisp.org>
41753
41754         * lib/diffseq.h: Add comments about required #includes.
41755         Reported by Michael Biggs <gnulib@doubleplum.net>.
41756
41757 2008-02-01  Bruno Haible  <bruno@clisp.org>
41758
41759         * users.txt: Add gnuit.
41760
41761 2008-01-31  Bruno Haible  <bruno@clisp.org>
41762
41763         * lib/md4.c (set_uint32): Mark as inline.
41764         * lib/md5.c (set_uint32): Likewise.
41765         * lib/sha1.c (set_uint32): Likewise.
41766         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41767         * m4/md5.m4 (gl_MD5): Likewise.
41768         * m4/sha1.m4 (gl_SHA1): Likewise.
41769
41770 2008-01-31  Jim Meyering  <meyering@redhat.com>
41771
41772         Use "sizeof VAR", rather than a literal "4".
41773         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41774         * lib/md4.c (md4_read_ctx): Likewise.
41775         * lib/sha1.c (sha1_read_ctx): Likewise.
41776
41777 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41778
41779         * tests/test-sha1.c: New file, based on test-md5.c.
41780
41781         * modules/crypto/sha1-tests: New file.
41782
41783 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41784
41785         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41786
41787 2008-01-31  Jim Meyering  <meyering@redhat.com>
41788
41789         Prefer "sizeof v" over the equivalent "4".
41790         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41791         * lib/md5.c (set_uint32): Likewise.
41792         * lib/sha1.c (set_uint32): Likewise.
41793
41794 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41795
41796         * lib/sha1.c (set_uint32): Mark function as static.
41797
41798 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41799
41800         md2: clarify comments to say that alignment is not required.
41801         * lib/md2.h: Remove warning about alignment in comment.
41802         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41803         never been required.
41804
41805 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41806
41807         md4: adapt alignment constraint fix from sha1.
41808         * lib/md4.c (set_uint32): New function, from sha1.c
41809         (md4_read_ctx): Use it.
41810         (md4_finish_ctx): Doc fix.
41811         * lib/md4.h: Doc fix.
41812
41813 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41814
41815         md5: adapt alignment constraint fix from sha1.
41816         * lib/md5.c (set_uint32): New function, from sha1.c
41817         (md5_read_ctx): Use it.
41818         (md5_finish_ctx): Doc fix.
41819         * lib/md5.h: Doc fix.
41820
41821 2008-01-30  Peter Palfrader  <weasel@debian.org>
41822
41823         sha1: remove the result buffer alignment constraint
41824         * lib/sha1.c (set_uint32): New function.
41825         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41826         constraint.
41827         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41828         * lib/sha1.h: Likewise.
41829
41830 2008-01-30  Andreas Schwab  <schwab@suse.de>
41831             Bruno Haible  <bruno@clisp.org>
41832
41833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41834         correct definition of LDBL_MIN_EXP.
41835
41836 2008-01-30  Karl Berry  <karl@gnu.org>
41837
41838         * config/srclist-update: try to preserve x bit on updates.
41839         * config/srclistvars.sh: update for karl.
41840
41841 2008-01-29  Jim Meyering  <meyering@redhat.com>
41842
41843         vasnprintf.c: Avoid warning about unused label
41844         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41845         "overflow" label definition and associated code with the
41846         same cpp condition that guards the sole use of that label.
41847
41848 2008-01-26  Bruno Haible  <bruno@clisp.org>
41849
41850         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41851         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41852         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41853         * lib/isnanl-nolibm.h (isnanl): Likewise.
41854         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41855
41856 2008-01-26  Bruno Haible  <bruno@clisp.org>
41857
41858         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41859         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41860
41861 2008-01-26  Bruno Haible  <bruno@clisp.org>
41862
41863         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41864         GCC >= 4.0 built-in.
41865         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41866
41867 2008-01-26  Bruno Haible  <bruno@clisp.org>
41868
41869         Rename isnan, applicable to 'double' only, to isnand.
41870         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41871         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41872         (configure.ac): Update.
41873         (Include): Replace "isnan.h" with "isnand.h".
41874         * m4/isnand.m4: Renamed from m4/isnan.m4.
41875         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41876         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41877         instead of isnan.c.
41878         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41879         instead of HAVE_ISNAN_IN_LIBC.
41880         (isnand): Renamed from isnan.
41881         * lib/isnand.c: New file.
41882         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41883         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41884         (Makefile.am): Update.
41885         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41886         Include isnand.h instead of isnan.h.
41887         (main): Test isnand instead of isnan.
41888         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41889         isnan-nolibm.
41890         * modules/frexp (Depends-on): Likewise.
41891         * modules/frexp-tests (Depends-on): Likewise.
41892         * modules/frexp-nolibm (Depends-on): Likewise.
41893         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41894         * modules/isfinite (Depends-on): Likewise.
41895         * modules/round-tests (Depends-on): Likewise.
41896         * modules/signbit (Depends-on): Likewise.
41897         * modules/signbit-tests (Depends-on): Likewise.
41898         * modules/snprintf-posix (Depends-on): Likewise.
41899         * modules/sprintf-posix (Depends-on): Likewise.
41900         * modules/trunc-tests (Depends-on): Likewise.
41901         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41902         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41903         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41904         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41905         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41906         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41907         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41908         * modules/vasnprintf-posix (Depends-on): Likewise.
41909         * modules/vasprintf-posix (Depends-on): Likewise.
41910         * modules/vfprintf-posix (Depends-on): Likewise.
41911         * modules/vsnprintf-posix (Depends-on): Likewise.
41912         * modules/vsprintf-posix (Depends-on): Likewise.
41913         * lib/frexp.c: Include isnand.h instead of isnan.h.
41914         (ISNAN): Set to isnand instead of isnan.
41915         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41916         (gl_isfinited): Use isnand instead of isnan.
41917         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41918         (gl_signbitd): Use isnand instead of isnan.
41919         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41920         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41921         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41922         (main): Use isnand instead of isnan.
41923         * tests/test-round1.c: Include isnand.h.
41924         (main): Use isnand instead of isnan.
41925         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41926         (ISNAN): Set to isnand instead of isnan.
41927         * tests/test-trunc1.c: Include isnand.h.
41928         (main): Use isnand instead of isnan.
41929         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41930         (equal): Use isnand instead of isnan.
41931         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41932         isnand-nolibm.
41933         * NEWS: Mention the change.
41934
41935 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41936             Bruno Haible  <bruno@clisp.org>
41937
41938         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41939         the GCC builtins for signbits are present and set
41940         REPLACE_SIGNBIT_USING_GCC if so.
41941         * lib/math.in.h (signbit): Define using GCC builtins if
41942         REPLACE_SIGNBIT_USING_GCC is set.
41943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41944         REPLACE_SIGNBIT_USING_GCC.
41945         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41946
41947 2008-01-25  Jim Meyering  <meyering@redhat.com>
41948
41949         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41950         * lib/poll.c: Include <config.h>, not "config.h".
41951         * tests/test-getaddrinfo.c: Likewise.
41952
41953 2008-01-25  Simon Josefsson  <simon@josefsson.org>
41954
41955         * modules/sockets-tests: New file.
41956
41957 2008-01-24  Simon Josefsson  <simon@josefsson.org>
41958
41959         * modules/sockets: New module, can be used to call WSA_Startup and
41960         WSA_Cleanup when needed.
41961
41962         * lib/sockets.h, lib/sockets.c: New files.
41963
41964         * m4/sockets.m4: New file.
41965
41966         * tests/test-sockets.c: New file.
41967
41968 2008-01-19  Bruno Haible  <bruno@clisp.org>
41969
41970         * doc/posix-headers: Renamed from doc/headers.
41971         * doc/posix-functions: Renamed from doc/functions.
41972         * doc/gnulib.texi: Update.
41973
41974 2008-01-19  Bruno Haible  <bruno@clisp.org>
41975
41976         * doc/glibc-functions/strcasestr.texi: Include contents of
41977         doc/functions/strcasestr.texi, fixing the list of platforms.
41978         * doc/functions/strcasestr.texi: Remove file.
41979
41980 2008-01-19  Bruno Haible  <bruno@clisp.org>
41981
41982         * doc/glibc-functions/memmem.texi: Include contents of
41983         doc/functions/memmem.texi.
41984         * doc/functions/memmem.texi: Remove file.
41985
41986 2008-01-18  Bruno Haible  <bruno@clisp.org>
41987
41988         * doc/glibc-functions/*.texi: New files.
41989         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
41990         to use the new files.
41991
41992 2008-01-17  Bruno Haible  <bruno@clisp.org>
41993
41994         * tests/test-gethostname.c (main): Fix printf statement.
41995
41996 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41997
41998         * modules/gethostname-tests: New file.
41999
42000         * tests/test-gethostname.c: New file.
42001
42002 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42003
42004         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42005         used by the UNAME case.  Reported by Bruno Haible
42006         <bruno@clisp.org>.
42007
42008 2008-01-17  Eric Blake  <ebb9@byu.net>
42009
42010         Convert c-strcasestr to be more efficient.
42011         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42012         (Depends-on): Add c-strcase, remove malloca, strnlen.
42013         * tests/test-c-strcasestr.c (main): Enhance test.
42014         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42015
42016 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42017
42018         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42019         Use it in creating po/Makevars.
42020
42021 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42022
42023         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42024         Applications that requires it should initialize libgcrypt
42025         manually.
42026
42027 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42028
42029         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42030
42031 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42032
42033         Fix problem with getdate on mingw32 reported by Simon Josefsson
42034         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42035         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42036         tzname", when deciding whether to declare tzname.
42037         * lib/strftime.c (tzname): Likewise.
42038
42039 2008-01-15  Bruno Haible  <bruno@clisp.org>
42040
42041         Work around a MacOS X 10.5 bug in frexpl().
42042         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42043         * doc/functions/frexpl.texi: Document the bug.
42044         Reported by Elias Pipping <pipping@gentoo.org>.
42045
42046 2008-01-14  Eric Blake  <ebb9@byu.net>
42047
42048         Touch up previous patch.
42049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42050         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42051
42052         Convert strcasestr module to use Two-Way algorithm.
42053         * modules/strcasestr-simple: New module, based on the old
42054         strcasestr, but with Two-Way rather than KMP.
42055         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42056         * lib/string.in.h (rpl_strcasestr): Declare.
42057         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42058         performance.
42059         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42060         * modules/string (Makefile.am): Support strcasestr.
42061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42062         * modules/strcasestr-tests (Depends-on): Check for alarm.
42063         * tests/test-strcasestr.c: Augment test.
42064         * lib/str-two-way.h: Clean up stray macro.
42065         * NEWS: Document new module.
42066         * MODULES.html.sh (string handling): Likewise.
42067         * doc/functions/strcasestr.texi: New file.
42068         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42069         here, since it is not a POSIX function.
42070
42071 2008-01-14  Colin Watson  <cjwatson@debian.org>
42072             Bruno Haible  <bruno@clisp.org>
42073
42074         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42075         works fine; if not, set REPLACE_STRSIGNAL.
42076         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42078         REPLACE_STRSIGNAL.
42079         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42080         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42081         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42082
42083 2008-01-14  Bruno Haible  <bruno@clisp.org>
42084
42085         * modules/strsignal (Include): Change to <string.h>.
42086
42087 2008-01-14  Colin Watson  <cjwatson@debian.org>
42088
42089         * modules/argp (Notice): Add a notice recommending to change
42090         XGETTEXT_OPTIONS.
42091         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42092
42093 2008-01-13  Colin Watson  <cjwatson@debian.org>
42094
42095         * modules/strsignal-tests: New file.
42096         * tests/test-strsignal.c: New file.
42097
42098         * lib/strsignal.c: New file, from glibc with modifications.
42099         * lib/siglist.h: New file, from glibc with modifications.
42100         * lib/string.in.h (strsignal): New declaration.
42101         * m4/strsignal.m4: New file.
42102         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42103         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42104         * modules/strsignal: New file.
42105         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42106         HAVE_DECL_STRSIGNAL.
42107
42108 2008-01-13  Bruno Haible  <bruno@clisp.org>
42109
42110         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42111         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42112         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42113         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42114
42115 2008-01-13  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42118         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42119         * lib/argp.h (__attribute__): Likewise.
42120         * lib/c-stack.c (__attribute__): Likewise.
42121         * lib/error.h (__attribute__): Likewise.
42122         * lib/fts.c (__attribute__): Likewise.
42123         * lib/openat.h (__attribute__): Likewise.
42124         * lib/stdio.in.h (__attribute__): Likewise.
42125         * lib/string.in.h (__attribute__): Likewise.
42126         * lib/utimens.c (__attribute__): Likewise.
42127         * lib/vasnprintf.h (__attribute__): Likewise.
42128         * lib/xalloc.h (__attribute__): Likewise.
42129         * lib/xprintf.h (__attribute__): Likewise.
42130         * lib/xstrtol.h (__attribute__): Likewise.
42131         * lib/xvasprintf.h (__attribute__): Likewise.
42132
42133 2008-01-12  Bruno Haible  <bruno@clisp.org>
42134
42135         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42136         * doc/glibc-headers/a.out.texi: New file.
42137         * doc/glibc-headers/aliases.texi: New file.
42138         * doc/glibc-headers/alloca.texi: New file.
42139         * doc/glibc-headers/ar.texi: New file.
42140         * doc/glibc-headers/argp.texi: New file.
42141         * doc/glibc-headers/argz.texi: New file.
42142         * doc/glibc-headers/byteswap.texi: New file.
42143         * doc/glibc-headers/crypt.texi: New file.
42144         * doc/glibc-headers/endian.texi: New file.
42145         * doc/glibc-headers/envz.texi: New file.
42146         * doc/glibc-headers/err.texi: New file.
42147         * doc/glibc-headers/error.texi: New file.
42148         * doc/glibc-headers/execinfo.texi: New file.
42149         * doc/glibc-headers/fpu_control.texi: New file.
42150         * doc/glibc-headers/fstab.texi: New file.
42151         * doc/glibc-headers/fts.texi: New file.
42152         * doc/glibc-headers/getopt.texi: New file.
42153         * doc/glibc-headers/ieee754.texi: New file.
42154         * doc/glibc-headers/ifaddrs.texi: New file.
42155         * doc/glibc-headers/libintl.texi: New file.
42156         * doc/glibc-headers/mcheck.texi: New file.
42157         * doc/glibc-headers/mntent.texi: New file.
42158         * doc/glibc-headers/obstack.texi: New file.
42159         * doc/glibc-headers/paths.texi: New file.
42160         * doc/glibc-headers/printf.texi: New file.
42161         * doc/glibc-headers/pty.texi: New file.
42162         * doc/glibc-headers/resolv.texi: New file.
42163         * doc/glibc-headers/shadow.texi: New file.
42164         * doc/glibc-headers/sysexits.texi: New file.
42165         * doc/glibc-headers/ttyent.texi: New file.
42166
42167 2008-01-12  Jim Meyering  <meyering@redhat.com>
42168
42169         announce-gen: emit Gnulib's git-based version string.
42170         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42171         New option --gnulib-version=V, where V is expected to be
42172         the output of running git describe in the gnulib directory.
42173         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42174         not useful, and plan to stop publishing an xdelta file with each
42175         coreutils release.
42176
42177         * build-aux/announce-gen: Also check for lzma-compressed files.
42178
42179 2008-01-11  Bruno Haible  <bruno@clisp.org>
42180
42181         * tests/test-memmem.c (main): Increase maximum allowed time.
42182         * tests/test-strstr.c (main): Likewise.
42183
42184 2008-01-11  Bruno Haible  <bruno@clisp.org>
42185
42186         * doc/functions/memmem.texi: Add more precisions about platforms.
42187         * doc/functions/strstr.texi: Likewise.
42188
42189 2008-01-10  Eric Blake  <ebb9@byu.net>
42190
42191         * m4/strstr.m4: Delete cruft from copy-n-paste.
42192         Reported by Bruno Haible.
42193
42194 2008-01-10  Bruno Haible  <bruno@clisp.org>
42195
42196         Make c-strstr rely on strstr.
42197         * lib/c-strstr.c: Don't include str-kmp.h.
42198         (c_strstr): Define in terms of strstr.
42199         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42200         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42201
42202 2008-01-10  Bruno Haible  <bruno@clisp.org>
42203
42204         * doc/gnulib.texi (String Functions in C Locale): New section.
42205         * doc/c-ctype.texi: New file.
42206         * doc/c-strcase.texi: New file.
42207         * doc/c-strcaseeq.texi: New file.
42208         * doc/c-strcasestr.texi: New file.
42209         * doc/c-strstr.texi: New file.
42210         * doc/c-strtod.texi: New file.
42211         * doc/c-strtold.texi: New file.
42212
42213 2008-01-10  Eric Blake  <ebb9@byu.net>
42214
42215         * lib/relocatable.h: Fix a comment.
42216
42217 2008-01-10  Eric Blake  <ebb9@byu.net>
42218
42219         Share two-way algorithm.
42220         * lib/str-two-way.h: New file, merged from...
42221         * lib/memmem.c: ...here...
42222         * lib/strstr.c: ...and here.
42223         * modules/memmem (Files): Use it.
42224         * modules/strstr (Files): Likewise.
42225
42226         Avoid quadratic strstr implementations.
42227         * lib/strstr.c: New file.
42228         * m4/strstr.m4: Likewise.
42229         * modules/strstr: Likewise.
42230         * modules/strstr-tests: Likewise.
42231         * tests/test-strstr.c: Likewise.
42232         * lib/string.in.h (rpl_strstr): Declare.
42233         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42235         * modules/string (Makefile.am): Likewise.
42236         * MODULES.html.sh (string handling): Mention new module.
42237         * doc/functions/strstr.texi (strstr): Document the bug.
42238
42239 2008-01-10  Bruno Haible  <bruno@clisp.org>
42240
42241         * lib/relocatable.h (relocate): State whether result is freshly
42242         allocated or not.
42243         * lib/relocatable.c (relocate): Return a freshly allocated string
42244         instead of a pointer to a privately held string.
42245         Reported by Sylvain Beucler <beuc@gnu.org>.
42246
42247 2008-01-10  Colin Watson  <cjwatson@debian.org>
42248
42249         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42250         s/S_ISNLK/S_ISLNK/.
42251
42252 2008-01-09  Bruno Haible  <bruno@clisp.org>
42253
42254         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42255         and other files.
42256         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42257         if it's only a guess.
42258         * modules/memmem: Simplify by depending on memmem-simple.
42259
42260 2008-01-09  Bruno Haible  <bruno@clisp.org>
42261
42262         Work around OpenBSD 4.0 tdelete() bug.
42263         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42264         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42265         macros and don't redefine the enum values.
42266         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42267         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42268         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42269
42270 2008-01-09  Bruno Haible  <bruno@clisp.org>
42271
42272         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42273         (main): Don't perform the tests if setlocale did not install a UTF-8
42274         locale. Needed on OpenBSD 4.0.
42275         * modules/wcwidth-tests (Depends-on): Add localcharset.
42276
42277 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42278
42279         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42280         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42281         * NEWS: announce this.
42282         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42283
42284 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42285         and Eric Blake  <ebb9@byu.net>
42286
42287         Add memmem-simple module.
42288         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42289         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42290         * modules/memmem-simple: New file.
42291         * modules/memmem (Description): Tweak.
42292         * MODULES.html.sh (string handling): Mention new module.
42293         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42294         addressed by memmem-simple.
42295         * NEWS: Document the difference.
42296
42297 2008-01-09  Eric Blake  <ebb9@byu.net>
42298
42299         Give gcc some memmem optimization hints.
42300         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42301         (strcasestr): Declare as pure.
42302         * modules/memmem (Maintainer): Claim my implementation.
42303
42304 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42305
42306         Support AIX 6.1 and higher.
42307         * build-aux/config.libpath: Likewise.
42308         * build-aux/config.rpath: Likewise.
42309
42310 2008-01-08  Jim Meyering  <meyering@redhat.com>
42311             Bruno Haible  <bruno@clisp.org>
42312
42313         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42314         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42315         Reported by Peter Fales in
42316         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42317
42318 2008-01-08  Bruno Haible  <bruno@clisp.org>
42319
42320         * modules/unictype/category-of (Depends-on): Add
42321         unictype/category-none.
42322         * modules/unictype/category-and-tests (Depends-on): Add
42323         unictype/category-{L,N,Lu,Nd}.
42324         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42325         * modules/unictype/category-or-tests (Depends-on): Add
42326         unictype/category-{L,N}.
42327         * modules/unictype/category-name-tests (Depends-on): Add
42328         unictype/category-{Z,Nl}.
42329         Reported by Simon Josefsson.
42330
42331 2008-01-08  Bruno Haible  <bruno@clisp.org>
42332
42333         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42334         convention better.
42335         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42336         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42337         Reported by Peter Miller <millerp@canb.auug.org.au>.
42338
42339 2008-01-08  Eric Blake  <ebb9@byu.net>
42340
42341         Rewrite memmem to guarantee linear complexity without malloc.
42342         * lib/memmem.c (memmem): Use Two-Way rather than
42343         Knuth-Morris-Pratt, to allow O(1) space usage.
42344         (critical_factorization, two_way_short_needle)
42345         (two_way_long_needle): New functions.
42346         (knuth_morris_pratt): Delete.
42347         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42348         Add stdint.
42349         * tests/test-memmem.c (main): Add tests for periodic needle and
42350         sublinear performance.
42351         * doc/functions/memmem.texi (memmem): Document other deficiencies
42352         in cygwin and older glibc.
42353
42354 2008-01-08  Bruno Haible  <bruno@clisp.org>
42355
42356         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42357         augmentation.
42358
42359 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42360
42361         Add a configure time option: --disable-acl.
42362         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42363         AC_ARG_ENABLE(acl).
42364
42365 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42366
42367         * tests/test-localename.c: Don't include obsolete "setenv.h".
42368
42369         * modules/localename-tests (Depends-on): Need unsetenv.
42370
42371 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42372
42373         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42374
42375 2008-01-06  Colin Watson  <cjwatson@debian.org>
42376
42377         * users.txt: Add man-db.
42378
42379 2008-01-07  Bruno Haible  <bruno@clisp.org>
42380
42381         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42382         previous section name.
42383
42384 2008-01-07  Bruno Haible  <bruno@clisp.org>
42385
42386         * lib/progname.c (set_program_name): Don't strip off a leading
42387         "lt-" prefix outside a .libs directory.
42388         Suggested by Paul Eggert.
42389
42390 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42391             Bruno Haible  <bruno@clisp.org>
42392
42393         Improve memory cleanup in 'relocatable' module.
42394         * lib/relocatable.h (compute_curr_prefix): Change return type to
42395         'char *'.
42396         * lib/relocatable.c (compute_curr_prefix): Change return type to
42397         'char *'. Free curr_installdir after use.
42398         (relocate): Free curr_prefix_better after use.
42399         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42400
42401 2008-01-01  Bruno Haible  <bruno@clisp.org>
42402
42403         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42404         failure on older glibc systems.
42405         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42406
42407 2008-01-05  Eric Blake  <ebb9@byu.net>
42408
42409         Avoid quadratic system memmem.
42410         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42411         Reported by Ralf Wildenhues.
42412
42413         Fix memmem test for mingw.
42414         * modules/memmem-tests (configure.ac): Check for alarm.
42415         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42416         it.
42417         * doc/functions/memmem.texi: New file.
42418         * doc/gnulib.texi (Function Substitutes): Add memmem.
42419         Reported by Bruno Haible.
42420
42421 2008-01-04  Bruno Haible  <bruno@clisp.org>
42422
42423         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42424         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42425         gl_HEADER_STRING_H_DEFAULTS.
42426
42427 2008-01-04  Eric Blake  <ebb9@byu.net>
42428
42429         Shorten duration of memmem test.
42430         * tests/test-memmem.c (main): Use alarm to declare failure if test
42431         is taking too long.
42432         Reported by Ralf Wildenhues.
42433
42434 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42435
42436         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42437         string, needed by strerror.
42438
42439 2008-01-03  Colin Watson  <cjwatson@debian.org>
42440             Bruno Haible  <bruno@clisp.org>
42441
42442         * doc/gnulib-tool.texi (Localization): New section.
42443
42444 2008-01-02  Bruno Haible  <bruno@clisp.org>
42445
42446         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42447         variables to 'unsigned char *' type.
42448         Reported by Paul Eggert.
42449
42450 2008-01-02  Jim Meyering  <jim@meyering.net>
42451
42452         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42453
42454 2007-12-31  Jim Meyering  <jim@meyering.net>
42455
42456         Avoid use of private FTS type name.
42457         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42458
42459 2007-12-30  Karl Berry  <karl@gnu.org>
42460
42461         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42462         work around defect in Texinfo and/or the standalone Info browser.
42463
42464 2007-12-30  Bruno Haible  <bruno@clisp.org>
42465
42466         Unify 5 copies of the KMP code.
42467         * lib/str-kmp.h: New file.
42468         * lib/c-strcasestr.c: Include str-kmp.h.
42469         (knuth_morris_pratt): Remove function.
42470         (c_strcasestr): Update.
42471         * lib/c-strstr.c: Include str-kmp.h.
42472         (knuth_morris_pratt): Remove function.
42473         (c_strcasestr): Update.
42474         * lib/mbscasestr.c: Include str-kmp.h.
42475         (knuth_morris_pratt_unibyte): Remove function.
42476         * lib/mbsstr.c: Include str-kmp.h.
42477         (knuth_morris_pratt_unibyte): Remove function.
42478         * lib/strcasestr.c: Include str-kmp.h.
42479         (knuth_morris_pratt): Remove function.
42480         (strcasestr): Update.
42481         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42482         * modules/c-strstr (Files): Likewise.
42483         * modules/mbscasestr (Files): Likewise.
42484         * modules/mbsstr (Files): Likewise.
42485         * modules/strcasestr (Files): Likewise.
42486         Suggested by Paul Eggert.
42487
42488 2007-12-30  Bruno Haible  <bruno@clisp.org>
42489
42490         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42491         defined.
42492
42493 2007-12-30  Bruno Haible  <bruno@clisp.org>
42494
42495         * lib/xmalloca.h: Include xalloc.h.
42496         (xnmalloca): New macro.
42497
42498 2007-12-30  Bruno Haible  <bruno@clisp.org>
42499
42500         * lib/malloca.h (nmalloca): New macro.
42501         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42502         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42503         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42504         knuth_morris_pratt_multibyte): Likewise.
42505         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42506         knuth_morris_pratt_multibyte): Likewise.
42507         * lib/memmem.c (knuth_morris_pratt): Likewise.
42508         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42509
42510 2007-12-25  Bruno Haible  <bruno@clisp.org>
42511
42512         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42513         * lib/glob.c: Don't include openat.h.
42514         (link_exists2_p): Add back the code that deals with the
42515         !GLOB_ALTDIRFUNC case.
42516         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42517         let it do the filename concatenation.
42518         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42519         * modules/glob (Depends-on): Remove openat.
42520
42521 2007-12-31  Bruno Haible  <bruno@clisp.org>
42522
42523         * modules/dirfd (License): Change to LGPLv2+.
42524         Approved by Jim Meyering.
42525
42526 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42527
42528         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42529         when multiplying M by sizeof (size_t).
42530
42531 2007-12-10  Martin Lambers  <marlam@marlam.de>
42532
42533         Override getpagesize on mingw.
42534         * lib/getpagesize.c: New file.
42535         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42536         * modules/getpagesize (Files): Add lib/getpagesize.c.
42537         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42539         REPLACE_GETPAGESIZE.
42540         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42541
42542 2007-12-25  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/localcharset (Notice): New field.
42545         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42546         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42547
42548 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42549             Bruno Haible  <bruno@clisp.org>
42550
42551         Avoid using the syntax symbol() in formatted documentation.
42552         * MODULES.html.sh (func_module): When replacing symbol() with a
42553         hyperlink, remove the parentheses. Show an error if some remain.
42554         Recognize and render the '...' syntax.
42555         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42556         Rework. Add paragraph about GCC's inlining.
42557         * doc/alloca.texi: Likewise.
42558         * doc/error.texi: Remove parentheses from symbol reference.
42559         * doc/gnulib-intro.texi: Likewise.
42560         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42561         * modules/fnmatch (Description): Reword to say "the ... function".
42562         * modules/full-read (Description): Likewise.
42563         * modules/full-write (Description): Likewise.
42564         * modules/safe-read (Description): Likewise.
42565         * modules/safe-write (Description): Likewise.
42566         * modules/strchrnul (Description): Likewise.
42567         * modules/trim (Description): Likewise.
42568         * modules/error (Description): Remove parentheses from symbol
42569         references.
42570         * modules/verror (Description): Likewise.
42571         Reported by Karl Berry.
42572
42573 2007-12-25  Bruno Haible  <bruno@clisp.org>
42574
42575         Fixup after 2007-10-16 commit.
42576         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42577
42578 2007-12-24  Bruno Haible  <bruno@clisp.org>
42579
42580         Make --enable-relocatable work with DESTDIR.
42581         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42582         to compute installdir from destprog.
42583         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42584         also set the RELOC_DESTDIR variable.
42585         Reported by Левашев Иван <octagram@bluebottle.com>.
42586
42587 2007-12-24  Bruno Haible  <bruno@clisp.org>
42588
42589         Fix link error due to xalloc_die().
42590         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42591         of xreadlink.
42592         * lib/relocwrapper.c: Update comments.
42593         * build-aux/install-reloc: Remove xreadlink.c from file list.
42594         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42595         xreadlink.c.
42596         Reported by Левашев Иван <octagram@bluebottle.com>.
42597
42598 2007-12-24  Bruno Haible  <bruno@clisp.org>
42599
42600         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42601         * lib/setenv.h: Remove file.
42602         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42603         lib/setenv.h.
42604         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42605         (Depends-on): Add stdlib.
42606         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42607         gl_FUNC_UNSETENV.
42608         (Include): Replace setenv.h with <stdlib.h>.
42609         * modules/unsetenv: New file.
42610         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42611         * lib/unsetenv.c: Include <stdlib.h> first.
42612         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42613         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42614         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42615         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42616         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42617         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42619         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42620         * doc/functions/unsetenv.texi: Update.
42621         * modules/xsetenv (Depends-on): Add unsetenv.
42622         * modules/getdate (Depends-on): Likewise.
42623         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42624         * lib/xsetenv.c: Don't include setenv.h.
42625         * lib/getdate.y: Likewise.
42626         * lib/relocwrapper.c: Likewise.
42627         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42628         (Depends-on): Add stdlib.
42629         * NEWS: Mention the changes.
42630         Reported by Левашев Иван <octagram@bluebottle.com>.
42631
42632 2007-12-23  Bruno Haible  <bruno@clisp.org>
42633
42634         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42635         indentation.
42636
42637 2007-12-23  Bruno Haible  <bruno@clisp.org>
42638
42639         * lib/c-strcasestr.c: Add more comments.
42640         * lib/c-strstr.c: Likewise.
42641         * lib/mbscasestr.c: Likewise.
42642         * lib/mbsstr.c: Likewise.
42643         * lib/strcasestr.c: Likewise.
42644         * lib/memmem.c: Likewise.
42645
42646 2007-12-23  Bruno Haible  <bruno@clisp.org>
42647
42648         * tests/test-memmem.c: Include <string.h> first.
42649
42650 2007-12-22  Bruno Haible  <bruno@clisp.org>
42651
42652         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42653         the contents of $testsbase.
42654         Reported by Ralf Wildenhues.
42655
42656 2007-12-22  Bruno Haible  <bruno@clisp.org>
42657
42658         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42659         two variables local_ldadd_before, local_ldadd_last.
42660
42661 2007-12-20  Eric Blake  <ebb9@byu.net>
42662
42663         Work around circular library issue when cross-compiling.
42664         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42665         that progname.o does not need to pull in rpl_memcmp.
42666
42667 2007-12-19  Eric Blake  <ebb9@byu.net>
42668
42669         Fix memmem to avoid O(n^2) worst-case complexity.
42670         * lib/memmem.c (knuth_morris_pratt): New function.
42671         (memmem): Use it if first few naive iterations fail.
42672         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42673         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42674         * modules/memchr (License): Likewise.
42675         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42676         malloca.
42677         * tests/test-memmem.c: Rewrite, borrowing ideas from
42678         test-mbsstr1.c; the old version wouldn't even compile!
42679         * modules/memmem-tests: New file.
42680         * lib/string.in.h (rpl_memmem): Add declaration.
42681         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42682         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42683         REPLACE_MEMMEM.
42684
42685 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42686
42687         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42688         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42689         before any system include files, and undef after them all.  This
42690         should fix a problem on VMS reported by John E. Malmberg in
42691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42692
42693 2007-12-17  Eric Blake  <ebb9@byu.net>
42694
42695         Revert addition of verify, for BSD/OS.
42696         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42697         can't handle large files, for the sake of obsolete platforms.
42698         * modules/fseeko (Depends-on): Remove verify.
42699         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42700         * doc/functions/ftello.texi (ftello): Likewise.
42701         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42702         Reported by Larry Jones.
42703
42704 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42705
42706         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42707         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42708
42709 2007-12-17  Jim Meyering  <meyering@redhat.com>
42710
42711         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42712         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42713         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42714         * modules/getcwd (Depends-on): Add openat.
42715         Reported by Petr Salinger.
42716
42717 2007-12-17  Bruno Haible  <bruno@clisp.org>
42718
42719         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42720         avoid a segmentation fault of the configure test on x86_64 systems.
42721
42722 2007-12-15  Jim Meyering  <meyering@redhat.com>
42723
42724         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42725
42726 2007-12-13  Eric Blake  <ebb9@byu.net>
42727
42728         Another fseek test.
42729         * tests/test-fseek.c (main): Also test ungetc handling.
42730         * tests/test-fseeko.c (main): Likewise.
42731         * modules/fseeko (Depends-on): Add verify.
42732         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42733         large.
42734         Reported by Larry Jones.
42735
42736         Fix fseeko on mingw.
42737         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42738         seek.
42739
42740         Beef up fseek tests.
42741         * tests/test-fseek.c (main): Also test eof handling.
42742         * tests/test-fseeko.c (main): Likewise.
42743         Reported by Larry Jones.
42744
42745 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42746
42747         Fix fseeko on BSD-based platforms.
42748         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42749         successful seek.
42750
42751 2007-12-12  Eric Blake  <ebb9@byu.net>
42752
42753         Allow circular dependency of separate libtests.a
42754         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42755         when use_libtests.
42756
42757 2007-12-11  Eric Blake  <ebb9@byu.net>
42758
42759         Fix bug with -0.0L in previous patch.
42760         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42761         * tests/test-isnan.c (main): Also test on zeroes.
42762         * tests/test-isnanf.c (main): Likewise.
42763         * tests/test-isnanl.h (main): Likewise.
42764
42765         Detect pseudo-denormals on x86 even when cross-compiling.
42766         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42767         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42768         invalid bit patterns that happen to satisfy ==.
42769
42770         Avoid link failures with separate libtests.a.
42771         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42772         last, to satisfy circular dependencies.
42773
42774 2007-12-11  Eric Blake  <ebb9@byu.net>
42775         and Bruno Haible  <bruno@clisp.org>
42776
42777         Fix OpenBSD 4.0 <float.h> handling of long double.
42778         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42779         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42780         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42781
42782 2007-12-11  Jim Meyering  <meyering@redhat.com>
42783
42784         * users.txt: Add libvirt.
42785
42786         Support versions of autoconf prior to 2.59c.
42787         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42788         if it is not already defined.
42789
42790 2007-12-09  Bruno Haible  <bruno@clisp.org>
42791
42792         Let 'gnulib-tool --import' collect sources needed for the tests in
42793         tests/ rather than in lib/.
42794         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42795         argument. If true, add rules to generate libtests.a, and put libtests.a
42796         into $(LDADD). Consider source files in subdirectories and set
42797         uses_subdirs.
42798         (func_emit_initmacro_start, func_emit_initmacro_end,
42799         func_emit_initmacro_done): Pass all arguments explicitly.
42800         (func_import): Determine two module lists main_modules,
42801         testsrelated_modules. Determine use_libtests. Determine two variables
42802         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42803         instead of just sed_transform_lib_file. Determine two variables
42804         main_files and testsrelated_files. Compute 'files' as the union of
42805         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42806         func_add_or_update. In the generated gnulib-comp.m4, collect the
42807         object files for tests/ in different variables than those for lib/.
42808         Substitute LIBTESTS_LIBDEPS.
42809         (func_create_testdir): Combine the uses_subdirs results from
42810         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42811
42812 2007-12-09  Bruno Haible  <bruno@clisp.org>
42813
42814         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42815         the build-aux directory.
42816
42817 2007-12-09  Bruno Haible  <bruno@clisp.org>
42818
42819         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42820         introduced on 2006-09-09.
42821
42822 2007-12-07  Jim Meyering  <meyering@redhat.com>
42823
42824         Let these macros work also with autoconf-2.59.
42825         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42826         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42827         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42828
42829 2007-12-06  Jim Meyering  <meyering@redhat.com>
42830
42831         Avoid a configure-time syntax error in gl_FUNC_ACL.
42832         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42833         function in each branch, before testing the cache variable.
42834
42835 2007-12-04  Eric Blake  <ebb9@byu.net>
42836
42837         Make scripts executable.
42838         * build-aux/config.guess: Add execute permissions.
42839         * build-aux/config.sub: Likewise.
42840         * build-aux/gendocs.sh: Likewise.
42841
42842         Fix frexp on mingw.
42843         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42844         cross-compiling.
42845         * doc/functions/frexp.texi (frexp): Document the bug.
42846
42847         Make cygwin fseeko check more reliable.
42848         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42849         version numbers, rather than unrelated feature check.
42850         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42851         * doc/functions/ftello.texi (ftello): Likewise.
42852         Reported by Bruno Haible.
42853
42854         * m4/strerror.m4: Bump version number.
42855
42856 2007-12-03  Bruno Haible  <bruno@clisp.org>
42857
42858         * doc/functions/mprotect.texi: Mention the mingw problem.
42859
42860 2007-12-03  Eric Blake  <ebb9@byu.net>
42861
42862         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42863         REPLACE_STRERROR is initialized before this macro.
42864
42865 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42866
42867         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42868         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42869         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42870         put -lsec in even for programs other than 'ls'.  This fixes a problem
42871         for gettext reported by Bruno Haible in
42872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42873         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42874         Add support for Solaris 10.  This isn't efficient, but should get the
42875         job done for now.
42876
42877 2007-12-03  James Youngman  <jay@gnu.org>
42878
42879         * doc/regexprops-generic.texi: change "an close-group" to "a
42880         close-group" and "illegal" to "not allowed".
42881
42882 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42883
42884         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42885         pr_byname.h. Needed for the rare case when the maintainer has done
42886         "make maintainer-clean" in the source directory and then attempts a
42887         build outside the source directory.
42888         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42889         scripts_byname.h.
42890
42891 2007-12-02  Martin Lambers <marlam@marlam.de>
42892             Bruno Haible  <bruno@clisp.org>
42893
42894         * lib/getpagesize.h: Remove file.
42895         * lib/unistd.in.h: Include declaration of getpagesize here.
42896         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42897         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42898         HAVE_SYS_PARAM_H.
42899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42900         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42901         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42902         (Depends-on): Add unistd.
42903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42904         (Include): Use <unistd.h> instead of getpagesize.h.
42905         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42906         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42907         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42908         gl_GETPAGESIZE invocation, already handled by module dependency.
42909         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42910
42911 2007-12-02  Bruno Haible  <bruno@clisp.org>
42912
42913         * modules/strings-tests: New file.
42914         * tests/test-strings.c: New file.
42915
42916         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42917         * lib/strings.in.h: New file.
42918         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42919         * m4/strings_h.m4: New file.
42920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42921         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42922         * modules/strings: New file.
42923         * modules/string (Makefile.am): Update.
42924         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42925         Reported by Karl Berry.
42926
42927 2007-12-01  Eric Blake  <ebb9@byu.net>
42928
42929         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42930         accomodate fix in cygwin 1.5.25.
42931
42932 2007-12-01  Jim Meyering  <meyering@redhat.com>
42933
42934         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42935         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42936         that would inhibit utf8-optimization of a regexp containing line-
42937         or buffer-anchors, e.g., `^', `$'.
42938
42939 2007-11-30  Bruno Haible  <bruno@clisp.org>
42940
42941         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42942         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42943         glthread_recursive_lock_init.
42944         * lib/lock.c (glthread_recursive_lock_init)
42945         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42946         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42947
42948 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42949
42950         New function qset_acl, like set_acl but with syscall semantics.
42951         * lib/acl.h (qset_acl): New decl.
42952         * lib/acl.c (qset_acl): New function.
42953         (set_acl): Use new function.  Use more-consistent diagnostics.
42954
42955 2007-11-28  Jim Meyering  <meyering@redhat.com>
42956
42957         * modules/physmem (License): Change from GPL to LGPLv2+.
42958
42959 2007-11-26  Bruno Haible  <bruno@clisp.org>
42960
42961         * lib/vasnprintf.c (decode_long_double): Don't abort if the
42962         'long double' type has excess precision.
42963         Reported by Jim Meyering in
42964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
42965
42966 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42967
42968         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
42969         Sync from <http://gnu.org/licenses>.
42970         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
42971         with license text from same location.
42972         * doc/maintain.texi, doc/standards.texi:  Sync from
42973         <http://savannah.gnu.org/projects/gnustandards>.
42974
42975 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
42976         and Jim Meyering  <meyering@redhat.com>
42977
42978         Adjust getdate' grammar to accept a slightly more regular language.
42979         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
42980         Before, the former was rejected.
42981         * lib/getdate.y (digits_to_date_time): New function, factored
42982         out of ...
42983         (number): ...here.  Just call digits_to_date_time.
42984         (hybrid): New non-terminal to handle an <unsigned number,
42985         signed relative offset> sequence consistently.
42986
42987 2007-11-18  Jim Meyering  <meyering@redhat.com>
42988
42989         Pull my changes from coreutils:
42990         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
42991         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
42992         use of $gnulib_tool_option_extras, so that it's separated from the
42993         preceding argument.
42994
42995         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
42996         * build-aux/bootstrap (cp_mark_as_generated): Create any required
42997         parent destination directories before copying a file into place.
42998
42999 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43000
43001         bootstrap: work also with 4-argument variant of AC_INIT
43002         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43003
43004 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43005
43006         Port test-getaddrinfo to Solaris.
43007         Problem reported by Bruno Haible in
43008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43009         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43010         explanation of setting 'hints'.
43011         Don't reject an implementation merely because it returns EAI_SERVICE.
43012         (EAI_SERVICE): Define to 0 if not defined.
43013
43014 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43015
43016         The license of gnu-make and posix-shell is now "GPLed build tool".
43017         * modules/gnu-make (License): Likewise.
43018         * modules/posix-shell (License): Likewise.
43019
43020         New module posix-shell, for determining a POSIX shell
43021         or perhaps something that is close enough to a POSIX shell.
43022         * m4/posix-shell.m4: New file.
43023         * modules/posix-shell: New file.
43024
43025         * MODULES.html.sh: Mention new module.
43026
43027         New module gnu-make, for determining whether we're using GNU Make.
43028         * m4/gnu-make.m4: New file.
43029         * modules/gnu-make: New file.
43030         * MODULES.html.sh: Mention new module.
43031
43032 2007-11-14  Jim Meyering  <meyering@redhat.com>
43033
43034         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43035         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43036         use this macro to create a function _definition_.
43037         Remove useless "#undef ARGMATCH_DIE".
43038
43039 2007-11-14  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/config.charset: Update for OpenBSD 4.1.
43042         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43043
43044 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43045
43046         Document 64-bit #if problems in stdint.texi.
43047         * doc/headers/stdint.texi (stdint.h): Mention problems with
43048         64-bit-#if, and how to work around them.
43049
43050         Don't insist on 'long long int' support in the preprocessor.  It
43051         breaks too many things.  For example, PRIdMAX still uses a 'long
43052         long int' format with the latest Sun compiler, even though
43053         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43054         preprocessor problem.  This causes the latest coreutils to dump
43055         core on Solaris 10 sparc with the Sun C compiler.
43056         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43057         the troublesome expressions at configure-time, not at #if-time.
43058         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43059         preprocessor.
43060         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43061         compile-time C checks, done at 'configure'-time.
43062         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43063         * modules/inttypes (Makefile): Substitute the new symbols that
43064         gl_INTTYPES_H now generates.
43065         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43066
43067 2007-11-12  Bruno Haible  <bruno@clisp.org>
43068
43069         Tests for Unicode character classification functions.
43070
43071         * modules/unictype/bidicategory-byname-tests: New file.
43072         * modules/unictype/bidicategory-name-tests: New file.
43073         * modules/unictype/bidicategory-of-tests: New file.
43074         * modules/unictype/bidicategory-test-tests: New file.
43075         * modules/unictype/block-list-tests: New file.
43076         * modules/unictype/block-of-tests: New file.
43077         * modules/unictype/block-test-tests: New file.
43078         * modules/unictype/category-C-tests: New file.
43079         * modules/unictype/category-Cc-tests: New file.
43080         * modules/unictype/category-Cf-tests: New file.
43081         * modules/unictype/category-Cn-tests: New file.
43082         * modules/unictype/category-Co-tests: New file.
43083         * modules/unictype/category-Cs-tests: New file.
43084         * modules/unictype/category-L-tests: New file.
43085         * modules/unictype/category-Ll-tests: New file.
43086         * modules/unictype/category-Lm-tests: New file.
43087         * modules/unictype/category-Lo-tests: New file.
43088         * modules/unictype/category-Lt-tests: New file.
43089         * modules/unictype/category-Lu-tests: New file.
43090         * modules/unictype/category-M-tests: New file.
43091         * modules/unictype/category-Mc-tests: New file.
43092         * modules/unictype/category-Me-tests: New file.
43093         * modules/unictype/category-Mn-tests: New file.
43094         * modules/unictype/category-N-tests: New file.
43095         * modules/unictype/category-Nd-tests: New file.
43096         * modules/unictype/category-Nl-tests: New file.
43097         * modules/unictype/category-No-tests: New file.
43098         * modules/unictype/category-P-tests: New file.
43099         * modules/unictype/category-Pc-tests: New file.
43100         * modules/unictype/category-Pd-tests: New file.
43101         * modules/unictype/category-Pe-tests: New file.
43102         * modules/unictype/category-Pf-tests: New file.
43103         * modules/unictype/category-Pi-tests: New file.
43104         * modules/unictype/category-Po-tests: New file.
43105         * modules/unictype/category-Ps-tests: New file.
43106         * modules/unictype/category-S-tests: New file.
43107         * modules/unictype/category-Sc-tests: New file.
43108         * modules/unictype/category-Sk-tests: New file.
43109         * modules/unictype/category-Sm-tests: New file.
43110         * modules/unictype/category-So-tests: New file.
43111         * modules/unictype/category-Z-tests: New file.
43112         * modules/unictype/category-Zl-tests: New file.
43113         * modules/unictype/category-Zp-tests: New file.
43114         * modules/unictype/category-Zs-tests: New file.
43115         * modules/unictype/category-and-not-tests: New file.
43116         * modules/unictype/category-and-tests: New file.
43117         * modules/unictype/category-byname-tests: New file.
43118         * modules/unictype/category-name-tests: New file.
43119         * modules/unictype/category-none-tests: New file.
43120         * modules/unictype/category-of-tests: New file.
43121         * modules/unictype/category-or-tests: New file.
43122         * modules/unictype/category-test-withtable-tests: New file.
43123         * modules/unictype/combining-class-tests: New file.
43124         * modules/unictype/ctype-alnum-tests: New file.
43125         * modules/unictype/ctype-alpha-tests: New file.
43126         * modules/unictype/ctype-blank-tests: New file.
43127         * modules/unictype/ctype-cntrl-tests: New file.
43128         * modules/unictype/ctype-digit-tests: New file.
43129         * modules/unictype/ctype-graph-tests: New file.
43130         * modules/unictype/ctype-lower-tests: New file.
43131         * modules/unictype/ctype-print-tests: New file.
43132         * modules/unictype/ctype-punct-tests: New file.
43133         * modules/unictype/ctype-space-tests: New file.
43134         * modules/unictype/ctype-upper-tests: New file.
43135         * modules/unictype/ctype-xdigit-tests: New file.
43136         * modules/unictype/decimal-digit-tests: New file.
43137         * modules/unictype/digit-tests: New file.
43138         * modules/unictype/mirror-tests: New file.
43139         * modules/unictype/numeric-tests: New file.
43140         * modules/unictype/property-alphabetic-tests: New file.
43141         * modules/unictype/property-ascii-hex-digit-tests: New file.
43142         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43143         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43144         * modules/unictype/property-bidi-block-separator-tests: New file.
43145         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43146         * modules/unictype/property-bidi-common-separator-tests: New file.
43147         * modules/unictype/property-bidi-control-tests: New file.
43148         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43149         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43150         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43151         * modules/unictype/property-bidi-european-digit-tests: New file.
43152         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43153         * modules/unictype/property-bidi-left-to-right-tests: New file.
43154         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43155         * modules/unictype/property-bidi-other-neutral-tests: New file.
43156         * modules/unictype/property-bidi-pdf-tests: New file.
43157         * modules/unictype/property-bidi-segment-separator-tests: New file.
43158         * modules/unictype/property-bidi-whitespace-tests: New file.
43159         * modules/unictype/property-byname-tests: New file.
43160         * modules/unictype/property-combining-tests: New file.
43161         * modules/unictype/property-composite-tests: New file.
43162         * modules/unictype/property-currency-symbol-tests: New file.
43163         * modules/unictype/property-dash-tests: New file.
43164         * modules/unictype/property-decimal-digit-tests: New file.
43165         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43166         * modules/unictype/property-deprecated-tests: New file.
43167         * modules/unictype/property-diacritic-tests: New file.
43168         * modules/unictype/property-extender-tests: New file.
43169         * modules/unictype/property-format-control-tests: New file.
43170         * modules/unictype/property-grapheme-base-tests: New file.
43171         * modules/unictype/property-grapheme-extend-tests: New file.
43172         * modules/unictype/property-grapheme-link-tests: New file.
43173         * modules/unictype/property-hex-digit-tests: New file.
43174         * modules/unictype/property-hyphen-tests: New file.
43175         * modules/unictype/property-id-continue-tests: New file.
43176         * modules/unictype/property-id-start-tests: New file.
43177         * modules/unictype/property-ideographic-tests: New file.
43178         * modules/unictype/property-ids-binary-operator-tests: New file.
43179         * modules/unictype/property-ids-trinary-operator-tests: New file.
43180         * modules/unictype/property-ignorable-control-tests: New file.
43181         * modules/unictype/property-iso-control-tests: New file.
43182         * modules/unictype/property-join-control-tests: New file.
43183         * modules/unictype/property-left-of-pair-tests: New file.
43184         * modules/unictype/property-line-separator-tests: New file.
43185         * modules/unictype/property-logical-order-exception-tests: New file.
43186         * modules/unictype/property-lowercase-tests: New file.
43187         * modules/unictype/property-math-tests: New file.
43188         * modules/unictype/property-non-break-tests: New file.
43189         * modules/unictype/property-not-a-character-tests: New file.
43190         * modules/unictype/property-numeric-tests: New file.
43191         * modules/unictype/property-other-alphabetic-tests: New file.
43192         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43193         * modules/unictype/property-other-grapheme-extend-tests: New file.
43194         * modules/unictype/property-other-id-continue-tests: New file.
43195         * modules/unictype/property-other-id-start-tests: New file.
43196         * modules/unictype/property-other-lowercase-tests: New file.
43197         * modules/unictype/property-other-math-tests: New file.
43198         * modules/unictype/property-other-uppercase-tests: New file.
43199         * modules/unictype/property-paired-punctuation-tests: New file.
43200         * modules/unictype/property-paragraph-separator-tests: New file.
43201         * modules/unictype/property-pattern-syntax-tests: New file.
43202         * modules/unictype/property-pattern-white-space-tests: New file.
43203         * modules/unictype/property-private-use-tests: New file.
43204         * modules/unictype/property-punctuation-tests: New file.
43205         * modules/unictype/property-quotation-mark-tests: New file.
43206         * modules/unictype/property-radical-tests: New file.
43207         * modules/unictype/property-sentence-terminal-tests: New file.
43208         * modules/unictype/property-soft-dotted-tests: New file.
43209         * modules/unictype/property-space-tests: New file.
43210         * modules/unictype/property-terminal-punctuation-tests: New file.
43211         * modules/unictype/property-test-tests: New file.
43212         * modules/unictype/property-titlecase-tests: New file.
43213         * modules/unictype/property-unassigned-code-value-tests: New file.
43214         * modules/unictype/property-unified-ideograph-tests: New file.
43215         * modules/unictype/property-uppercase-tests: New file.
43216         * modules/unictype/property-variation-selector-tests: New file.
43217         * modules/unictype/property-white-space-tests: New file.
43218         * modules/unictype/property-xid-continue-tests: New file.
43219         * modules/unictype/property-xid-start-tests: New file.
43220         * modules/unictype/property-zero-width-tests: New file.
43221         * modules/unictype/scripts-tests: New file.
43222         * modules/unictype/syntax-c-ident-tests: New file.
43223         * modules/unictype/syntax-c-whitespace-tests: New file.
43224         * modules/unictype/syntax-java-ident-tests: New file.
43225         * modules/unictype/syntax-java-whitespace-tests: New file.
43226         * tests/unictype/test-bidi_byname.c: New file.
43227         * tests/unictype/test-bidi_name.c: New file.
43228         * tests/unictype/test-bidi_of.c: New file.
43229         * tests/unictype/test-bidi_test.c: New file.
43230         * tests/unictype/test-block_list.c: New file.
43231         * tests/unictype/test-block_of.c: New file.
43232         * tests/unictype/test-block_test.c: New file.
43233         * tests/unictype/test-categ_and.c: New file.
43234         * tests/unictype/test-categ_and_not.c: New file.
43235         * tests/unictype/test-categ_byname.c: New file.
43236         * tests/unictype/test-categ_name.c: New file.
43237         * tests/unictype/test-categ_none.c: New file.
43238         * tests/unictype/test-categ_of.c: New file.
43239         * tests/unictype/test-categ_or.c: New file.
43240         * tests/unictype/test-categ_test_withtable.c: New file.
43241         * tests/unictype/test-combining.c: New file.
43242         * tests/unictype/test-decdigit.c: New file.
43243         * tests/unictype/test-digit.c: New file.
43244         * tests/unictype/test-mirror.c: New file.
43245         * tests/unictype/test-numeric.c: New file.
43246         * tests/unictype/test-pr_byname.c: New file.
43247         * tests/unictype/test-pr_test.c: New file.
43248         * tests/unictype/test-predicate-part1.h: New file.
43249         * tests/unictype/test-predicate-part2.h: New file.
43250         * tests/unictype/test-scripts.c: New file.
43251         * tests/unictype/test-sy_c_ident.c: New file.
43252         * tests/unictype/test-sy_java_ident.c: New file.
43253
43254         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43255         for Unicode 5.0.0.
43256         * tests/unictype/test-categ_Cc.c: Likewise.
43257         * tests/unictype/test-categ_Cf.c: Likewise.
43258         * tests/unictype/test-categ_Cn.c: Likewise.
43259         * tests/unictype/test-categ_Co.c: Likewise.
43260         * tests/unictype/test-categ_Cs.c: Likewise.
43261         * tests/unictype/test-categ_L.c: Likewise.
43262         * tests/unictype/test-categ_Ll.c: Likewise.
43263         * tests/unictype/test-categ_Lm.c: Likewise.
43264         * tests/unictype/test-categ_Lo.c: Likewise.
43265         * tests/unictype/test-categ_Lt.c: Likewise.
43266         * tests/unictype/test-categ_Lu.c: Likewise.
43267         * tests/unictype/test-categ_M.c: Likewise.
43268         * tests/unictype/test-categ_Mc.c: Likewise.
43269         * tests/unictype/test-categ_Me.c: Likewise.
43270         * tests/unictype/test-categ_Mn.c: Likewise.
43271         * tests/unictype/test-categ_N.c: Likewise.
43272         * tests/unictype/test-categ_Nd.c: Likewise.
43273         * tests/unictype/test-categ_Nl.c: Likewise.
43274         * tests/unictype/test-categ_No.c: Likewise.
43275         * tests/unictype/test-categ_P.c: Likewise.
43276         * tests/unictype/test-categ_Pc.c: Likewise.
43277         * tests/unictype/test-categ_Pd.c: Likewise.
43278         * tests/unictype/test-categ_Pe.c: Likewise.
43279         * tests/unictype/test-categ_Pf.c: Likewise.
43280         * tests/unictype/test-categ_Pi.c: Likewise.
43281         * tests/unictype/test-categ_Po.c: Likewise.
43282         * tests/unictype/test-categ_Ps.c: Likewise.
43283         * tests/unictype/test-categ_S.c: Likewise.
43284         * tests/unictype/test-categ_Sc.c: Likewise.
43285         * tests/unictype/test-categ_Sk.c: Likewise.
43286         * tests/unictype/test-categ_Sm.c: Likewise.
43287         * tests/unictype/test-categ_So.c: Likewise.
43288         * tests/unictype/test-categ_Z.c: Likewise.
43289         * tests/unictype/test-categ_Zl.c: Likewise.
43290         * tests/unictype/test-categ_Zp.c: Likewise.
43291         * tests/unictype/test-categ_Zs.c: Likewise.
43292         * tests/unictype/test-ctype_alnum.c: Likewise.
43293         * tests/unictype/test-ctype_alpha.c: Likewise.
43294         * tests/unictype/test-ctype_blank.c: Likewise.
43295         * tests/unictype/test-ctype_cntrl.c: Likewise.
43296         * tests/unictype/test-ctype_digit.c: Likewise.
43297         * tests/unictype/test-ctype_graph.c: Likewise.
43298         * tests/unictype/test-ctype_lower.c: Likewise.
43299         * tests/unictype/test-ctype_print.c: Likewise.
43300         * tests/unictype/test-ctype_punct.c: Likewise.
43301         * tests/unictype/test-ctype_space.c: Likewise.
43302         * tests/unictype/test-ctype_upper.c: Likewise.
43303         * tests/unictype/test-ctype_xdigit.c: Likewise.
43304         * tests/unictype/test-decdigit.h: Likewise.
43305         * tests/unictype/test-digit.h: Likewise.
43306         * tests/unictype/test-numeric.h: Likewise.
43307         * tests/unictype/test-pr_alphabetic.c: Likewise.
43308         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43309         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43310         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43311         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43312         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43313         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43314         * tests/unictype/test-pr_bidi_control.c: Likewise.
43315         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43316         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43317         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43318         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43319         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43320         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43321         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43322         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43323         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43324         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43325         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43326         * tests/unictype/test-pr_combining.c: Likewise.
43327         * tests/unictype/test-pr_composite.c: Likewise.
43328         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43329         * tests/unictype/test-pr_dash.c: Likewise.
43330         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43331         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43332         * tests/unictype/test-pr_deprecated.c: Likewise.
43333         * tests/unictype/test-pr_diacritic.c: Likewise.
43334         * tests/unictype/test-pr_extender.c: Likewise.
43335         * tests/unictype/test-pr_format_control.c: Likewise.
43336         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43337         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43338         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43339         * tests/unictype/test-pr_hex_digit.c: Likewise.
43340         * tests/unictype/test-pr_hyphen.c: Likewise.
43341         * tests/unictype/test-pr_id_continue.c: Likewise.
43342         * tests/unictype/test-pr_id_start.c: Likewise.
43343         * tests/unictype/test-pr_ideographic.c: Likewise.
43344         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43345         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43346         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43347         * tests/unictype/test-pr_iso_control.c: Likewise.
43348         * tests/unictype/test-pr_join_control.c: Likewise.
43349         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43350         * tests/unictype/test-pr_line_separator.c: Likewise.
43351         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43352         * tests/unictype/test-pr_lowercase.c: Likewise.
43353         * tests/unictype/test-pr_math.c: Likewise.
43354         * tests/unictype/test-pr_non_break.c: Likewise.
43355         * tests/unictype/test-pr_not_a_character.c: Likewise.
43356         * tests/unictype/test-pr_numeric.c: Likewise.
43357         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43358         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43359         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43360         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43361         * tests/unictype/test-pr_other_id_start.c: Likewise.
43362         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43363         * tests/unictype/test-pr_other_math.c: Likewise.
43364         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43365         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43366         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43367         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43368         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43369         * tests/unictype/test-pr_private_use.c: Likewise.
43370         * tests/unictype/test-pr_punctuation.c: Likewise.
43371         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43372         * tests/unictype/test-pr_radical.c: Likewise.
43373         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43374         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43375         * tests/unictype/test-pr_space.c: Likewise.
43376         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43377         * tests/unictype/test-pr_titlecase.c: Likewise.
43378         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43379         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43380         * tests/unictype/test-pr_uppercase.c: Likewise.
43381         * tests/unictype/test-pr_variation_selector.c: Likewise.
43382         * tests/unictype/test-pr_white_space.c: Likewise.
43383         * tests/unictype/test-pr_xid_continue.c: Likewise.
43384         * tests/unictype/test-pr_xid_start.c: Likewise.
43385         * tests/unictype/test-pr_zero_width.c: Likewise.
43386         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43387         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43388
43389 2007-11-12  Bruno Haible  <bruno@clisp.org>
43390
43391         Unicode character classification functions.
43392         * lib/unictype.h: New file.
43393         * modules/unictype/base: New file.
43394         * modules/unictype/category-L: New file.
43395         * modules/unictype/category-Lu: New file.
43396         * modules/unictype/category-Ll: New file.
43397         * modules/unictype/category-Lt: New file.
43398         * modules/unictype/category-Lm: New file.
43399         * modules/unictype/category-Lo: New file.
43400         * modules/unictype/category-M: New file.
43401         * modules/unictype/category-Mn: New file.
43402         * modules/unictype/category-Mc: New file.
43403         * modules/unictype/category-Me: New file.
43404         * modules/unictype/category-N: New file.
43405         * modules/unictype/category-Nd: New file.
43406         * modules/unictype/category-Nl: New file.
43407         * modules/unictype/category-No: New file.
43408         * modules/unictype/category-P: New file.
43409         * modules/unictype/category-Pc: New file.
43410         * modules/unictype/category-Pd: New file.
43411         * modules/unictype/category-Ps: New file.
43412         * modules/unictype/category-Pe: New file.
43413         * modules/unictype/category-Pi: New file.
43414         * modules/unictype/category-Pf: New file.
43415         * modules/unictype/category-Po: New file.
43416         * modules/unictype/category-S: New file.
43417         * modules/unictype/category-Sm: New file.
43418         * modules/unictype/category-Sc: New file.
43419         * modules/unictype/category-Sk: New file.
43420         * modules/unictype/category-So: New file.
43421         * modules/unictype/category-Z: New file.
43422         * modules/unictype/category-Zs: New file.
43423         * modules/unictype/category-Zl: New file.
43424         * modules/unictype/category-Zp: New file.
43425         * modules/unictype/category-C: New file.
43426         * modules/unictype/category-Cc: New file.
43427         * modules/unictype/category-Cf: New file.
43428         * modules/unictype/category-Cs: New file.
43429         * modules/unictype/category-Co: New file.
43430         * modules/unictype/category-Cn: New file.
43431         * modules/unictype/category-or: New file.
43432         * modules/unictype/category-of: New file.
43433         * modules/unictype/category-test: New file.
43434         * modules/unictype/category-test-withtable: New file.
43435         * modules/unictype/category-byname: New file.
43436         * modules/unictype/category-none: New file.
43437         * modules/unictype/category-and: New file.
43438         * modules/unictype/category-and-not: New file.
43439         * modules/unictype/category-name: New file.
43440         * modules/unictype/combining-class: New file.
43441         * modules/unictype/category-all: New file.
43442         * modules/unictype/bidicategory-all: New file.
43443         * modules/unictype/bidicategory-byname: New file.
43444         * modules/unictype/bidicategory-name: New file.
43445         * modules/unictype/bidicategory-of: New file.
43446         * modules/unictype/bidicategory-test: New file.
43447         * modules/unictype/decimal-digit: New file.
43448         * modules/unictype/digit: New file.
43449         * modules/unictype/numeric: New file.
43450         * modules/unictype/mirror: New file.
43451         * modules/unictype/property-white-space: New file.
43452         * modules/unictype/property-alphabetic: New file.
43453         * modules/unictype/property-other-alphabetic: New file.
43454         * modules/unictype/property-not-a-character: New file.
43455         * modules/unictype/property-default-ignorable-code-point: New file.
43456         * modules/unictype/property-other-default-ignorable-code-point: New
43457         file.
43458         * modules/unictype/property-deprecated: New file.
43459         * modules/unictype/property-logical-order-exception: New file.
43460         * modules/unictype/property-variation-selector: New file.
43461         * modules/unictype/property-private-use: New file.
43462         * modules/unictype/property-unassigned-code-value: New file.
43463         * modules/unictype/property-uppercase: New file.
43464         * modules/unictype/property-other-uppercase: New file.
43465         * modules/unictype/property-lowercase: New file.
43466         * modules/unictype/property-other-lowercase: New file.
43467         * modules/unictype/property-titlecase: New file.
43468         * modules/unictype/property-soft-dotted: New file.
43469         * modules/unictype/property-id-start: New file.
43470         * modules/unictype/property-other-id-start: New file.
43471         * modules/unictype/property-id-continue: New file.
43472         * modules/unictype/property-other-id-continue: New file.
43473         * modules/unictype/property-xid-start: New file.
43474         * modules/unictype/property-xid-continue: New file.
43475         * modules/unictype/property-pattern-white-space: New file.
43476         * modules/unictype/property-pattern-syntax: New file.
43477         * modules/unictype/property-join-control: New file.
43478         * modules/unictype/property-grapheme-base: New file.
43479         * modules/unictype/property-grapheme-extend: New file.
43480         * modules/unictype/property-other-grapheme-extend: New file.
43481         * modules/unictype/property-grapheme-link: New file.
43482         * modules/unictype/property-bidi-control: New file.
43483         * modules/unictype/property-bidi-left-to-right: New file.
43484         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43485         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43486         * modules/unictype/property-bidi-european-digit: New file.
43487         * modules/unictype/property-bidi-eur-num-separator: New file.
43488         * modules/unictype/property-bidi-eur-num-terminator: New file.
43489         * modules/unictype/property-bidi-arabic-digit: New file.
43490         * modules/unictype/property-bidi-common-separator: New file.
43491         * modules/unictype/property-bidi-block-separator: New file.
43492         * modules/unictype/property-bidi-segment-separator: New file.
43493         * modules/unictype/property-bidi-whitespace: New file.
43494         * modules/unictype/property-bidi-non-spacing-mark: New file.
43495         * modules/unictype/property-bidi-boundary-neutral: New file.
43496         * modules/unictype/property-bidi-pdf: New file.
43497         * modules/unictype/property-bidi-embedding-or-override: New file.
43498         * modules/unictype/property-bidi-other-neutral: New file.
43499         * modules/unictype/property-hex-digit: New file.
43500         * modules/unictype/property-ascii-hex-digit: New file.
43501         * modules/unictype/property-ideographic: New file.
43502         * modules/unictype/property-unified-ideograph: New file.
43503         * modules/unictype/property-radical: New file.
43504         * modules/unictype/property-ids-binary-operator: New file.
43505         * modules/unictype/property-ids-trinary-operator: New file.
43506         * modules/unictype/property-zero-width: New file.
43507         * modules/unictype/property-space: New file.
43508         * modules/unictype/property-non-break: New file.
43509         * modules/unictype/property-iso-control: New file.
43510         * modules/unictype/property-format-control: New file.
43511         * modules/unictype/property-dash: New file.
43512         * modules/unictype/property-hyphen: New file.
43513         * modules/unictype/property-punctuation: New file.
43514         * modules/unictype/property-line-separator: New file.
43515         * modules/unictype/property-paragraph-separator: New file.
43516         * modules/unictype/property-quotation-mark: New file.
43517         * modules/unictype/property-sentence-terminal: New file.
43518         * modules/unictype/property-terminal-punctuation: New file.
43519         * modules/unictype/property-currency-symbol: New file.
43520         * modules/unictype/property-math: New file.
43521         * modules/unictype/property-other-math: New file.
43522         * modules/unictype/property-paired-punctuation: New file.
43523         * modules/unictype/property-left-of-pair: New file.
43524         * modules/unictype/property-combining: New file.
43525         * modules/unictype/property-composite: New file.
43526         * modules/unictype/property-decimal-digit: New file.
43527         * modules/unictype/property-numeric: New file.
43528         * modules/unictype/property-diacritic: New file.
43529         * modules/unictype/property-extender: New file.
43530         * modules/unictype/property-ignorable-control: New file.
43531         * modules/unictype/property-test: New file.
43532         * modules/unictype/property-byname: New file.
43533         * modules/unictype/property-all: New file.
43534         * modules/unictype/scripts: New file.
43535         * modules/unictype/scripts-all: New file.
43536         * modules/unictype/block-of: New file.
43537         * modules/unictype/block-test: New file.
43538         * modules/unictype/block-list: New file.
43539         * modules/unictype/block-all: New file.
43540         * modules/unictype/syntax-c-whitespace: New file.
43541         * modules/unictype/syntax-java-whitespace: New file.
43542         * modules/unictype/syntax-c-ident: New file.
43543         * modules/unictype/syntax-java-ident: New file.
43544         * modules/unictype/ctype-alnum: New file.
43545         * modules/unictype/ctype-alpha: New file.
43546         * modules/unictype/ctype-cntrl: New file.
43547         * modules/unictype/ctype-digit: New file.
43548         * modules/unictype/ctype-graph: New file.
43549         * modules/unictype/ctype-lower: New file.
43550         * modules/unictype/ctype-print: New file.
43551         * modules/unictype/ctype-punct: New file.
43552         * modules/unictype/ctype-space: New file.
43553         * modules/unictype/ctype-upper: New file.
43554         * modules/unictype/ctype-xdigit: New file.
43555         * modules/unictype/ctype-blank: New file.
43556         * lib/unictype/bidi_byname.c: New file.
43557         * lib/unictype/bidi_name.c: New file.
43558         * lib/unictype/bidi_of.c: New file.
43559         * lib/unictype/bidi_test.c: New file.
43560         * lib/unictype/bitmap.h: New file.
43561         * lib/unictype/block_test.c: New file.
43562         * lib/unictype/blocks.c: New file.
43563         * lib/unictype/categ_C.c: New file.
43564         * lib/unictype/categ_Cc.c: New file.
43565         * lib/unictype/categ_Cf.c: New file.
43566         * lib/unictype/categ_Cn.c: New file.
43567         * lib/unictype/categ_Co.c: New file.
43568         * lib/unictype/categ_Cs.c: New file.
43569         * lib/unictype/categ_L.c: New file.
43570         * lib/unictype/categ_Ll.c: New file.
43571         * lib/unictype/categ_Lm.c: New file.
43572         * lib/unictype/categ_Lo.c: New file.
43573         * lib/unictype/categ_Lt.c: New file.
43574         * lib/unictype/categ_Lu.c: New file.
43575         * lib/unictype/categ_M.c: New file.
43576         * lib/unictype/categ_Mc.c: New file.
43577         * lib/unictype/categ_Me.c: New file.
43578         * lib/unictype/categ_Mn.c: New file.
43579         * lib/unictype/categ_N.c: New file.
43580         * lib/unictype/categ_Nd.c: New file.
43581         * lib/unictype/categ_Nl.c: New file.
43582         * lib/unictype/categ_No.c: New file.
43583         * lib/unictype/categ_P.c: New file.
43584         * lib/unictype/categ_Pc.c: New file.
43585         * lib/unictype/categ_Pd.c: New file.
43586         * lib/unictype/categ_Pe.c: New file.
43587         * lib/unictype/categ_Pf.c: New file.
43588         * lib/unictype/categ_Pi.c: New file.
43589         * lib/unictype/categ_Po.c: New file.
43590         * lib/unictype/categ_Ps.c: New file.
43591         * lib/unictype/categ_S.c: New file.
43592         * lib/unictype/categ_Sc.c: New file.
43593         * lib/unictype/categ_Sk.c: New file.
43594         * lib/unictype/categ_Sm.c: New file.
43595         * lib/unictype/categ_So.c: New file.
43596         * lib/unictype/categ_Z.c: New file.
43597         * lib/unictype/categ_Zl.c: New file.
43598         * lib/unictype/categ_Zp.c: New file.
43599         * lib/unictype/categ_Zs.c: New file.
43600         * lib/unictype/categ_and.c: New file.
43601         * lib/unictype/categ_and_not.c: New file.
43602         * lib/unictype/categ_byname.c: New file.
43603         * lib/unictype/categ_name.c: New file.
43604         * lib/unictype/categ_none.c: New file.
43605         * lib/unictype/categ_of.c: New file.
43606         * lib/unictype/categ_or.c: New file.
43607         * lib/unictype/categ_test.c: New file.
43608         * lib/unictype/combining.c: New file.
43609         * lib/unictype/ctype_alnum.c: New file.
43610         * lib/unictype/ctype_alpha.c: New file.
43611         * lib/unictype/ctype_blank.c: New file.
43612         * lib/unictype/ctype_cntrl.c: New file.
43613         * lib/unictype/ctype_digit.c: New file.
43614         * lib/unictype/ctype_graph.c: New file.
43615         * lib/unictype/ctype_lower.c: New file.
43616         * lib/unictype/ctype_print.c: New file.
43617         * lib/unictype/ctype_punct.c: New file.
43618         * lib/unictype/ctype_space.c: New file.
43619         * lib/unictype/ctype_upper.c: New file.
43620         * lib/unictype/ctype_xdigit.c: New file.
43621         * lib/unictype/decdigit.c: New file.
43622         * lib/unictype/digit.c: New file.
43623         * lib/unictype/identsyntaxmap.h: New file.
43624         * lib/unictype/mirror.c: New file.
43625         * lib/unictype/numeric.c: New file.
43626         * lib/unictype/pr_alphabetic.c: New file.
43627         * lib/unictype/pr_ascii_hex_digit.c: New file.
43628         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43629         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43630         * lib/unictype/pr_bidi_block_separator.c: New file.
43631         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43632         * lib/unictype/pr_bidi_common_separator.c: New file.
43633         * lib/unictype/pr_bidi_control.c: New file.
43634         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43635         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43636         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43637         * lib/unictype/pr_bidi_european_digit.c: New file.
43638         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43639         * lib/unictype/pr_bidi_left_to_right.c: New file.
43640         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43641         * lib/unictype/pr_bidi_other_neutral.c: New file.
43642         * lib/unictype/pr_bidi_pdf.c: New file.
43643         * lib/unictype/pr_bidi_segment_separator.c: New file.
43644         * lib/unictype/pr_bidi_whitespace.c: New file.
43645         * lib/unictype/pr_byname.c: New file.
43646         * lib/unictype/pr_byname.gperf: New file.
43647         * lib/unictype/pr_combining.c: New file.
43648         * lib/unictype/pr_composite.c: New file.
43649         * lib/unictype/pr_currency_symbol.c: New file.
43650         * lib/unictype/pr_dash.c: New file.
43651         * lib/unictype/pr_decimal_digit.c: New file.
43652         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43653         * lib/unictype/pr_deprecated.c: New file.
43654         * lib/unictype/pr_diacritic.c: New file.
43655         * lib/unictype/pr_extender.c: New file.
43656         * lib/unictype/pr_format_control.c: New file.
43657         * lib/unictype/pr_grapheme_base.c: New file.
43658         * lib/unictype/pr_grapheme_extend.c: New file.
43659         * lib/unictype/pr_grapheme_link.c: New file.
43660         * lib/unictype/pr_hex_digit.c: New file.
43661         * lib/unictype/pr_hyphen.c: New file.
43662         * lib/unictype/pr_id_continue.c: New file.
43663         * lib/unictype/pr_id_start.c: New file.
43664         * lib/unictype/pr_ideographic.c: New file.
43665         * lib/unictype/pr_ids_binary_operator.c: New file.
43666         * lib/unictype/pr_ids_trinary_operator.c: New file.
43667         * lib/unictype/pr_ignorable_control.c: New file.
43668         * lib/unictype/pr_iso_control.c: New file.
43669         * lib/unictype/pr_join_control.c: New file.
43670         * lib/unictype/pr_left_of_pair.c: New file.
43671         * lib/unictype/pr_line_separator.c: New file.
43672         * lib/unictype/pr_logical_order_exception.c: New file.
43673         * lib/unictype/pr_lowercase.c: New file.
43674         * lib/unictype/pr_math.c: New file.
43675         * lib/unictype/pr_non_break.c: New file.
43676         * lib/unictype/pr_not_a_character.c: New file.
43677         * lib/unictype/pr_numeric.c: New file.
43678         * lib/unictype/pr_other_alphabetic.c: New file.
43679         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43680         * lib/unictype/pr_other_grapheme_extend.c: New file.
43681         * lib/unictype/pr_other_id_continue.c: New file.
43682         * lib/unictype/pr_other_id_start.c: New file.
43683         * lib/unictype/pr_other_lowercase.c: New file.
43684         * lib/unictype/pr_other_math.c: New file.
43685         * lib/unictype/pr_other_uppercase.c: New file.
43686         * lib/unictype/pr_paired_punctuation.c: New file.
43687         * lib/unictype/pr_paragraph_separator.c: New file.
43688         * lib/unictype/pr_pattern_syntax.c: New file.
43689         * lib/unictype/pr_pattern_white_space.c: New file.
43690         * lib/unictype/pr_private_use.c: New file.
43691         * lib/unictype/pr_punctuation.c: New file.
43692         * lib/unictype/pr_quotation_mark.c: New file.
43693         * lib/unictype/pr_radical.c: New file.
43694         * lib/unictype/pr_sentence_terminal.c: New file.
43695         * lib/unictype/pr_soft_dotted.c: New file.
43696         * lib/unictype/pr_space.c: New file.
43697         * lib/unictype/pr_terminal_punctuation.c: New file.
43698         * lib/unictype/pr_test.c: New file.
43699         * lib/unictype/pr_titlecase.c: New file.
43700         * lib/unictype/pr_unassigned_code_value.c: New file.
43701         * lib/unictype/pr_unified_ideograph.c: New file.
43702         * lib/unictype/pr_uppercase.c: New file.
43703         * lib/unictype/pr_variation_selector.c: New file.
43704         * lib/unictype/pr_white_space.c: New file.
43705         * lib/unictype/pr_xid_continue.c: New file.
43706         * lib/unictype/pr_xid_start.c: New file.
43707         * lib/unictype/pr_zero_width.c: New file.
43708         * lib/unictype/scripts.c: New file.
43709         * lib/unictype/sy_c_ident.c: New file.
43710         * lib/unictype/sy_c_whitespace.c: New file.
43711         * lib/unictype/sy_java_ident.c: New file.
43712         * lib/unictype/sy_java_whitespace.c: New file.
43713
43714         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43715         Unicode 5.0.0.
43716         * lib/unictype/blocks.h: Likewise.
43717         * lib/unictype/categ_C.h: Likewise.
43718         * lib/unictype/categ_Cc.h: Likewise.
43719         * lib/unictype/categ_Cf.h: Likewise.
43720         * lib/unictype/categ_Cn.h: Likewise.
43721         * lib/unictype/categ_Co.h: Likewise.
43722         * lib/unictype/categ_Cs.h: Likewise.
43723         * lib/unictype/categ_L.h: Likewise.
43724         * lib/unictype/categ_Ll.h: Likewise.
43725         * lib/unictype/categ_Lm.h: Likewise.
43726         * lib/unictype/categ_Lo.h: Likewise.
43727         * lib/unictype/categ_Lt.h: Likewise.
43728         * lib/unictype/categ_Lu.h: Likewise.
43729         * lib/unictype/categ_M.h: Likewise.
43730         * lib/unictype/categ_Mc.h: Likewise.
43731         * lib/unictype/categ_Me.h: Likewise.
43732         * lib/unictype/categ_Mn.h: Likewise.
43733         * lib/unictype/categ_N.h: Likewise.
43734         * lib/unictype/categ_Nd.h: Likewise.
43735         * lib/unictype/categ_Nl.h: Likewise.
43736         * lib/unictype/categ_No.h: Likewise.
43737         * lib/unictype/categ_P.h: Likewise.
43738         * lib/unictype/categ_Pc.h: Likewise.
43739         * lib/unictype/categ_Pd.h: Likewise.
43740         * lib/unictype/categ_Pe.h: Likewise.
43741         * lib/unictype/categ_Pf.h: Likewise.
43742         * lib/unictype/categ_Pi.h: Likewise.
43743         * lib/unictype/categ_Po.h: Likewise.
43744         * lib/unictype/categ_Ps.h: Likewise.
43745         * lib/unictype/categ_S.h: Likewise.
43746         * lib/unictype/categ_Sc.h: Likewise.
43747         * lib/unictype/categ_Sk.h: Likewise.
43748         * lib/unictype/categ_Sm.h: Likewise.
43749         * lib/unictype/categ_So.h: Likewise.
43750         * lib/unictype/categ_Z.h: Likewise.
43751         * lib/unictype/categ_Zl.h: Likewise.
43752         * lib/unictype/categ_Zp.h: Likewise.
43753         * lib/unictype/categ_Zs.h: Likewise.
43754         * lib/unictype/categ_of.h: Likewise.
43755         * lib/unictype/combining.h: Likewise.
43756         * lib/unictype/ctype_alnum.h: Likewise.
43757         * lib/unictype/ctype_alpha.h: Likewise.
43758         * lib/unictype/ctype_blank.h: Likewise.
43759         * lib/unictype/ctype_cntrl.h: Likewise.
43760         * lib/unictype/ctype_digit.h: Likewise.
43761         * lib/unictype/ctype_graph.h: Likewise.
43762         * lib/unictype/ctype_lower.h: Likewise.
43763         * lib/unictype/ctype_print.h: Likewise.
43764         * lib/unictype/ctype_punct.h: Likewise.
43765         * lib/unictype/ctype_space.h: Likewise.
43766         * lib/unictype/ctype_upper.h: Likewise.
43767         * lib/unictype/ctype_xdigit.h: Likewise.
43768         * lib/unictype/decdigit.h: Likewise.
43769         * lib/unictype/digit.h: Likewise.
43770         * lib/unictype/mirror.h: Likewise.
43771         * lib/unictype/numeric.h: Likewise.
43772         * lib/unictype/pr_alphabetic.h: Likewise.
43773         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43774         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43775         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43776         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43777         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43778         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43779         * lib/unictype/pr_bidi_control.h: Likewise.
43780         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43781         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43782         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43783         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43784         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43785         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43786         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43787         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43788         * lib/unictype/pr_bidi_pdf.h: Likewise.
43789         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43790         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43791         * lib/unictype/pr_combining.h: Likewise.
43792         * lib/unictype/pr_composite.h: Likewise.
43793         * lib/unictype/pr_currency_symbol.h: Likewise.
43794         * lib/unictype/pr_dash.h: Likewise.
43795         * lib/unictype/pr_decimal_digit.h: Likewise.
43796         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43797         * lib/unictype/pr_deprecated.h: Likewise.
43798         * lib/unictype/pr_diacritic.h: Likewise.
43799         * lib/unictype/pr_extender.h: Likewise.
43800         * lib/unictype/pr_format_control.h: Likewise.
43801         * lib/unictype/pr_grapheme_base.h: Likewise.
43802         * lib/unictype/pr_grapheme_extend.h: Likewise.
43803         * lib/unictype/pr_grapheme_link.h: Likewise.
43804         * lib/unictype/pr_hex_digit.h: Likewise.
43805         * lib/unictype/pr_hyphen.h: Likewise.
43806         * lib/unictype/pr_id_continue.h: Likewise.
43807         * lib/unictype/pr_id_start.h: Likewise.
43808         * lib/unictype/pr_ideographic.h: Likewise.
43809         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43810         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43811         * lib/unictype/pr_ignorable_control.h: Likewise.
43812         * lib/unictype/pr_iso_control.h: Likewise.
43813         * lib/unictype/pr_join_control.h: Likewise.
43814         * lib/unictype/pr_left_of_pair.h: Likewise.
43815         * lib/unictype/pr_line_separator.h: Likewise.
43816         * lib/unictype/pr_logical_order_exception.h: Likewise.
43817         * lib/unictype/pr_lowercase.h: Likewise.
43818         * lib/unictype/pr_math.h: Likewise.
43819         * lib/unictype/pr_non_break.h: Likewise.
43820         * lib/unictype/pr_not_a_character.h: Likewise.
43821         * lib/unictype/pr_numeric.h: Likewise.
43822         * lib/unictype/pr_other_alphabetic.h: Likewise.
43823         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43824         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43825         * lib/unictype/pr_other_id_continue.h: Likewise.
43826         * lib/unictype/pr_other_id_start.h: Likewise.
43827         * lib/unictype/pr_other_lowercase.h: Likewise.
43828         * lib/unictype/pr_other_math.h: Likewise.
43829         * lib/unictype/pr_other_uppercase.h: Likewise.
43830         * lib/unictype/pr_paired_punctuation.h: Likewise.
43831         * lib/unictype/pr_paragraph_separator.h: Likewise.
43832         * lib/unictype/pr_pattern_syntax.h: Likewise.
43833         * lib/unictype/pr_pattern_white_space.h: Likewise.
43834         * lib/unictype/pr_private_use.h: Likewise.
43835         * lib/unictype/pr_punctuation.h: Likewise.
43836         * lib/unictype/pr_quotation_mark.h: Likewise.
43837         * lib/unictype/pr_radical.h: Likewise.
43838         * lib/unictype/pr_sentence_terminal.h: Likewise.
43839         * lib/unictype/pr_soft_dotted.h: Likewise.
43840         * lib/unictype/pr_space.h: Likewise.
43841         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43842         * lib/unictype/pr_titlecase.h: Likewise.
43843         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43844         * lib/unictype/pr_unified_ideograph.h: Likewise.
43845         * lib/unictype/pr_uppercase.h: Likewise.
43846         * lib/unictype/pr_variation_selector.h: Likewise.
43847         * lib/unictype/pr_white_space.h: Likewise.
43848         * lib/unictype/pr_xid_continue.h: Likewise.
43849         * lib/unictype/pr_xid_start.h: Likewise.
43850         * lib/unictype/pr_zero_width.h: Likewise.
43851         * lib/unictype/scripts.h: Likewise.
43852         * lib/unictype/scripts_byname.gperf: Likewise.
43853         * lib/unictype/sy_c_ident.h: Likewise.
43854         * lib/unictype/sy_c_whitespace.h: Likewise.
43855         * lib/unictype/sy_java_ident.h: Likewise.
43856         * lib/unictype/sy_java_whitespace.h: Likewise.
43857
43858         * lib/unictype/Makefile: New file.
43859         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43860         glibc.
43861         * lib/unictype/3level.h: New file, copied from glibc.
43862         * lib/unictype/3levelbit.h: New file.
43863
43864 2007-11-11  Bruno Haible  <bruno@clisp.org>
43865
43866         * modules/gperf: New file.
43867         * modules/iconv_open (Depends-on): Add it.
43868         (Makefile.am): Remove the GPERF definition.
43869
43870 2007-11-11  Bruno Haible  <bruno@clisp.org>
43871
43872         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43873         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43874
43875 2007-11-11  Bruno Haible  <bruno@clisp.org>
43876
43877         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43878         (usage): Remove function.
43879
43880 2007-11-11  Bruno Haible  <bruno@clisp.org>
43881
43882         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43883         gl_FUNC_CEILF_LIBS.
43884         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43885         gl_FUNC_CEIL_LIBS.
43886         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43887         gl_FUNC_CEILL_LIBS.
43888         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43889         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43890         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43891
43892 2007-11-11  Bruno Haible  <bruno@clisp.org>
43893
43894         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43895         roundf were declared but do not exist on functions.
43896         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43897         roundl were declared but do not exist on functions.
43898         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43899         HAVE_FLOORL_AND_CEILL, respectively.
43900         Needed for Sun C on Solaris 10.
43901
43902 2007-11-11  Bruno Haible  <bruno@clisp.org>
43903
43904         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43905         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43906         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43907         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43909         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43910         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43911         HAVE_DECL_ROUNDF.
43912         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43913         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43915         of HAVE_DECL_ROUND*.
43916         * modules/math (Makefile.am): Update.
43917
43918 2007-11-10  Bruno Haible  <bruno@clisp.org>
43919
43920         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43921         ptrdiff_t as m4/intl.m4.
43922
43923 2007-11-10  Jim Meyering  <meyering@redhat.com>
43924
43925         Avoid link failure for the argmatch test.
43926         * tests/test-argmatch.c (usage): Define function to avoid a link
43927         failure: argmatch_die requires a usage function.
43928
43929 2007-11-09  Bruno Haible  <bruno@clisp.org>
43930
43931         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43932         * doc/functions/vsnprintf.texi: Likewise.
43933         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43934         with a size argument < 2.
43935
43936 2007-11-09  Bruno Haible  <bruno@clisp.org>
43937
43938         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43939         buffer. Fixes an inefficiency introduced on 2007-11-03.
43940
43941 2007-11-09  Bruno Haible  <bruno@clisp.org>
43942
43943         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43944         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43945
43946 2007-11-08  Jim Meyering  <meyering@redhat.com>
43947
43948         Change cache variable name prefix "jm_" to "gl_" everywhere.
43949         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43950         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43951         * m4/uptime.m4: s/gl_/jm_/
43952
43953 2007-11-07  Bruno Haible  <bruno@clisp.org>
43954
43955         Update to GNU gettext 0.17.
43956         * m4/intl.m4: Update to GNU gettext 0.17.
43957         * m4/po.m4: Likewise.
43958         * modules/gettext (Files): Remove m4/ulonglong.m4.
43959         (configure.ac): Require gettext infrastructure from version 0.17.
43960
43961 2007-11-06  Bruno Haible  <bruno@clisp.org>
43962
43963         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
43964         symbolic values are not defined in a public header.
43965         * lib/freadable.c (freadable) [QNX]: Likewise.
43966         * lib/freadahead.c (freadahead) [QNX]: Likewise.
43967         * lib/freading.c (freading) [QNX]: Likewise.
43968         * lib/fseterr.c (fseterr) [QNX]: Likewise.
43969         * lib/fwritable.c (fwritable) [QNX]: Likewise.
43970         * lib/fwriting.c (fwriting) [QNX]: Likewise.
43971         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
43972         Reported by Alain Magloire.
43973
43974         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
43975
43976 2007-11-05  Bruno Haible  <bruno@clisp.org>
43977
43978         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
43979         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
43980         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
43981         Reported by Eric Blake.
43982
43983 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43984             Bruno Haible  <bruno@clisp.org>
43985
43986         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
43987         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
43988         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
43989         (malloc): Undefine also before including <stdlib.h>.
43990         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
43991         Needed on OSF/1 4.0.
43992
43993 2007-11-05  Jim Meyering  <meyering@redhat.com>
43994
43995         git-version-gen: sync from coreutils.
43996         * build-aux/git-version-gen: Add comments.
43997         Change the first '-' to '.' in the snapshot version string,
43998         e.g., 6.9-377-08144 -> 6.9.377-08144
43999         Remove first parameter.
44000         Don't declare a version "-dirty" merely because a time
44001         stamp has changed.
44002
44003 2007-11-04  Bruno Haible  <bruno@clisp.org>
44004
44005         * lib/lock.h: Protect all macro definitions containing an 'if'
44006         statement through a "do { ... } while (0)".
44007         * lib/tls.h: Likewise.
44008
44009 2007-11-04  Bruno Haible  <bruno@clisp.org>
44010
44011         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44012
44013 2007-11-04  Bruno Haible  <bruno@clisp.org>
44014
44015         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44016         * modules/fprintf-posix (Depends-on): Add nocrash.
44017         * modules/snprintf-posix (Depends-on): Likewise.
44018         * modules/sprintf-posix (Depends-on): Likewise.
44019         * modules/vasnprintf-posix (Depends-on): Likewise.
44020         * modules/vasprintf-posix (Depends-on): Likewise.
44021         * modules/vfprintf-posix (Depends-on): Likewise.
44022         * modules/vsnprintf-posix (Depends-on): Likewise.
44023         * modules/vsprintf-posix (Depends-on): Likewise.
44024         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44025         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44026         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44027         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44028         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44029         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44030         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44031
44032 2007-11-04  Bruno Haible  <bruno@clisp.org>
44033
44034         * modules/nocrash: New file.
44035         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44036         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44037
44038 2007-11-04  Bruno Haible  <bruno@clisp.org>
44039
44040         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44041         precision handling.
44042         * tests/test-vasprintf-posix.c (test_function): Likewise.
44043         * tests/test-snprintf-posix.h (test_function): Likewise.
44044         * tests/test-sprintf-posix.h (test_function): Likewise.
44045
44046         Fix *printf behaviour for large precisions on mingw and BeOS.
44047         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44048         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44050         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44052         gl_PRINTF_PRECISION and test its result. Invoke
44053         gl_PREREQ_VASNPRINTF_PRECISION.
44054         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44055         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44057         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44058         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44060         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44061         * doc/functions/fprintf.texi: Update.
44062         * doc/functions/printf.texi: Update.
44063         * doc/functions/snprintf.texi: Update.
44064         * doc/functions/sprintf.texi: Update.
44065         * doc/functions/vfprintf.texi: Update.
44066         * doc/functions/vprintf.texi: Update.
44067         * doc/functions/vsnprintf.texi: Update.
44068         * doc/functions/vsprintf.texi: Update.
44069
44070 2007-11-04  Bruno Haible  <bruno@clisp.org>
44071
44072         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44073
44074 2007-11-04  Bruno Haible  <bruno@clisp.org>
44075
44076         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44077         Reported by Sylvain Beucler <beuc@gnu.org>.
44078
44079 2007-11-03  Bruno Haible  <bruno@clisp.org>
44080
44081         * tests/test-fprintf-posix2.sh: New file.
44082         * tests/test-fprintf-posix2.c: New file.
44083         * modules/fprintf-posix-tests (Files): Add them.
44084         (TESTS): Add test-fprintf-posix2.sh.
44085         (configure.ac): Check for getrlimit and setrlimit.
44086         (check_PROGRAMS): Add test-fprintf-posix2.
44087
44088         * tests/test-printf-posix2.sh: New file.
44089         * tests/test-printf-posix2.c: New file.
44090         * modules/printf-posix-tests (Files): Add them.
44091         (TESTS): Add test-printf-posix2.sh.
44092         (configure.ac): Check for getrlimit and setrlimit.
44093         (check_PROGRAMS): Add test-printf-posix2.
44094
44095         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44096         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44097         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44098         (decode_double): New function, copied from decode_long_double.
44099         (scale10_round_decimal_decoded): New function, extracted from
44100         scale10_round_decimal_long_double.
44101         (scale10_round_decimal_long_double): Use it.
44102         (scale10_round_decimal_double): New function.
44103         (floorlog10): New function.
44104         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44106         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44107         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44108         gl_PRINTF_ENOMEM and test its result. Invoke
44109         gl_PREREQ_VASNPRINTF_ENOMEM.
44110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44113         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44114         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44116         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44117         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44118         * modules/snprintf-posix (Depends-on): Likewise.
44119         * modules/sprintf-posix (Depends-on): Likewise.
44120         * modules/vasnprintf-posix (Depends-on): Likewise.
44121         * modules/vasprintf-posix (Depends-on): Likewise.
44122         * modules/vfprintf-posix (Depends-on): Likewise.
44123         * modules/vsnprintf-posix (Depends-on): Likewise.
44124         * modules/vsprintf-posix (Depends-on): Likewise.
44125         * doc/functions/fprintf.texi: Update.
44126         * doc/functions/printf.texi: Update.
44127         * doc/functions/snprintf.texi: Update.
44128         * doc/functions/sprintf.texi: Update.
44129         * doc/functions/vfprintf.texi: Update.
44130         * doc/functions/vprintf.texi: Update.
44131         * doc/functions/vsnprintf.texi: Update.
44132         * doc/functions/vsprintf.texi: Update.
44133
44134 2007-11-03  Bruno Haible  <bruno@clisp.org>
44135
44136         * modules/frexp-nolibm-tests: New file.
44137
44138         * modules/frexp-nolibm: New file.
44139         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44140
44141 2007-11-03  Bruno Haible  <bruno@clisp.org>
44142
44143         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44144         value is C99 compliant.
44145         Needed for OSF/1 5.1.
44146
44147 2007-11-03  Bruno Haible  <bruno@clisp.org>
44148
44149         Fix out-of-memory handling of vasnprintf.
44150         * lib/printf-parse.c: Include <errno.h>.
44151         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44152         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44153         is already set.
44154
44155 2007-11-02  Eric Blake  <ebb9@byu.net>
44156
44157         Fix tests on cygwin.
44158         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44159
44160 2007-11-01  Bruno Haible  <bruno@clisp.org>
44161
44162         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44163         warning.
44164         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44165         needed for POSIX compatibility.
44166
44167 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44168
44169         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44170         for compatibility with GNU.
44171
44172 2007-11-01  Bruno Haible  <bruno@clisp.org>
44173
44174         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44175         (putenv): Renamed from rpl_putenv. Change argument type from
44176         'const char *' to 'char *'.
44177         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44178         of defining putenv in config.h, just set REPLACE_PUTENV.
44179         * modules/putenv (Depends-on): Add stdlib.
44180         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44181         (Include): Use <stdlib.h>.
44182         * lib/stdlib.in.h (putenv): New declaration.
44183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44184         REPLACE_PUTENV.
44185         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44186         REPLACE_PUTENV.
44187         Needed for MacOS X 10.5.0.
44188         Reported by Peter O'Gorman <peter@pogma.com>.
44189
44190 2007-11-01  Jim Meyering  <meyering@redhat.com>
44191
44192         Treat an empty date string exactly like "0".
44193         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44194         if the remaining date string (to be parsed) is empty, use "0".
44195         Reported by Mischa Molhoek and discussed in this thread:
44196         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44197
44198 2007-10-31  Bruno Haible  <bruno@clisp.org>
44199
44200         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44201         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44202         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44203         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44204         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44205         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44206
44207 2007-10-31  Bruno Haible  <bruno@clisp.org>
44208
44209         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44210         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44211         (AC_TYPE_LONG_LONG_INT): Use it.
44212         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44213         it as well.
44214         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44215         to m4/longlong.m4.
44216         * modules/stdint (Files): Remove m4/ulonglong.m4.
44217         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44218         m4/ulonglong.m4.
44219         * modules/strtoumax (Files): Likewise.
44220
44221 2007-10-30  Bruno Haible  <bruno@clisp.org>
44222
44223         * modules/xvasprintf-posix: New file.
44224         Suggested by Eric Blake.
44225
44226 2007-10-30  Bruno Haible  <bruno@clisp.org>
44227
44228         * modules/xprintf-posix-tests: New file.
44229         * tests/test-xprintf-posix.sh: New file.
44230         * tests/test-xprintf-posix.c: New file.
44231         * tests/test-xfprintf-posix.c: New file.
44232
44233         * modules/xprintf-posix: New file.
44234
44235 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44236
44237         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44238         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44239         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44240
44241 2007-10-29  Bruno Haible  <bruno@clisp.org>
44242
44243         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44244         contain the special marker '_cv_'.
44245         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44246         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44247         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44248         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44249         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44250         Reported by Ralf Wildenhues.
44251
44252 2007-10-29  Bruno Haible  <bruno@clisp.org>
44253
44254         * gnulib-tool (func_import): When --lgpl is not specified, set
44255         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44256         GPLv3.
44257         Reported by Simon Josefsson.
44258
44259 2007-10-28  Bruno Haible  <bruno@clisp.org>
44260
44261         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44262         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44263         HAVE_DECL_ISFINITE.
44264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44265         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44266         HAVE_DECL_ISFINITE.
44267
44268 2007-10-28  Bruno Haible  <bruno@clisp.org>
44269
44270         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44271         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44272
44273 2007-10-28  Bruno Haible  <bruno@clisp.org>
44274
44275         Fix link errors with Sun C 5.0 on Solaris 10.
44276         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44277         function is declared but not present in the compiler's libm.
44278         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44279         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44280         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44281         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44282         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44283         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44284         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44286         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44287         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44288         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44289         HAVE_DECL_FLOORL.
44290
44291 2007-10-28  Bruno Haible  <bruno@clisp.org>
44292
44293         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44294         gl_FUNC_FLOORL. Cache the result.
44295         (gl_FUNC_FLOORL): Use it.
44296         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44297         gl_FUNC_CEILL. Cache the result.
44298         (gl_FUNC_CEILL): Use it.
44299
44300         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44301         gl_FUNC_FLOOR. Cache the result.
44302         (gl_FUNC_FLOOR): Use it.
44303         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44304         gl_FUNC_CEIL. Cache the result.
44305         (gl_FUNC_CEIL): Use it.
44306
44307         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44308         gl_FUNC_FLOORF. Cache the result.
44309         (gl_FUNC_FLOORF): Use it.
44310         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44311         gl_FUNC_CEILF. Cache the result.
44312         (gl_FUNC_CEILF): Use it.
44313
44314 2007-10-28  Bruno Haible  <bruno@clisp.org>
44315
44316         * gnulib-tool: Allow specifying the LGPL version number through
44317         --lgpl=2 or --lgpl=3.
44318         (func_usage): Document --lgpl with argument.
44319         Handle --lgpl=... arguments.
44320         (func_import): Recognize also gl_LGPL calls with an argument. When
44321         --lgpl=2 is used and the module's license is just LGPL, report an
44322         error. Set sed_transform_lib_file according to the lgpl variable. In
44323         the generated files, use --lgpl or gl_LGPL invocations with argument,
44324         if necessary.
44325         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44326         an LGPv2+ license.
44327         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44328         gl_LGPL macro.
44329
44330 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44331             Bruno Haible  <bruno@clisp.org>
44332
44333         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44334         (u16_uctomb_aux): Likewise.
44335         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44336         !HAVE_INLINE.
44337         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44338
44339 2007-10-28  Bruno Haible  <bruno@clisp.org>
44340
44341         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44342         Invoke AM_GETTEXT_OPTION if it exists.
44343         * modules/vasprintf: Likewise.
44344         * modules/verror: Likewise.
44345         * modules/xprintf: Likewise.
44346         * modules/xvasprintf: Likewise.
44347
44348 2007-10-27  Ben Pfaff  <blp@gnu.org>
44349
44350         * lib/math.in.h: Define isfinite macro and prototypes for
44351         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44352         implementations.
44353         * m4/math_h.m4: New substitutions for isfinite module.
44354         * lib/isfinite.c: New file.
44355         * m4/isfinite.m4: New file.
44356         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44357         * modules/isfinite: New file.
44358         * modules/isfinite-tests: New file.
44359         * tests/tests-isfinite.c: New file.
44360         * doc/functions/isfinite.texi: Mention isfinite module.
44361         * MODULES.html.sh: Mention new module.
44362
44363 2007-10-27  Ben Pfaff  <blp@gnu.org>
44364
44365         Ralf Wildenhues reported that Tru64 4.0D declares the round
44366         functions but does not have definitions.
44367         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44368         cannot be found in any library, set the output variable to
44369         "missing" instead of "".
44370         * m4/round.m4: Also use our substitute if we cannot find round in
44371         any library, even if it is declared.
44372         * m4/roundf.m4: Likewise for roundf.
44373         * m4/roundl.m4: Likewise for roundl.
44374         * lib/math.in.h: Undefine roundf, round, roundl before defining
44375         their replacements, to allow for hypothetical systems where these
44376         may be defined as macros but not available in libraries.
44377
44378 2007-10-27  Bruno Haible  <bruno@clisp.org>
44379
44380         * doc/gnulib.texi: Invoke @firstparagraphindent.
44381         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44382         changes in gnulib.
44383         (Source changes): New section.
44384
44385 2007-10-26  Bruno Haible  <bruno@clisp.org>
44386
44387         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44388         borrowed from autoconf.
44389
44390 2007-10-26  Bruno Haible  <bruno@clisp.org>
44391
44392         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44393         strerror returned the empty string. Needed on HP-UX 11.00.
44394
44395 2007-10-24  Micah Cowan  <micah@cowan.name>
44396
44397         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44398         * build-aux/bootstrap: Remove support for now-unnecessary option,
44399         --cvs-user, and envvars CVS_USER, CVS_RSH.
44400
44401 2007-10-24  Jim Meyering  <meyering@redhat.com>
44402
44403         Avoid diagnostics from sha1sum when there is no cached checksum.
44404         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44405         if the po.s1 file hasn't been created yet.
44406
44407         * build-aux/bootstrap: Sync from coreutils:
44408         2007-10-24  Jim Meyering  <meyering@redhat.com>
44409         Get gnulib from the git repository, not from an obsolete cvs one.
44410         * build-aux/bootstrap: Suggestion from Micah Cowan.
44411         2007-10-04  Jim Meyering  <jim@meyering.net>
44412         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44413         (update_po_files): Work also when there are no .po files in po/.
44414
44415 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44416
44417         * README: Append ".git" to git and cg examples.
44418         Problem reported by Benoit Sigoure.
44419
44420 2007-10-23  Micah Cowan  <micah@cowan.name>
44421
44422         * users.txt: Add wget.
44423
44424 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44425
44426         Fix linking of some unistdio tests on FreeBSD.
44427         * modules/unistdio/u16-vsnprintf-tests
44428         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44429         * modules/unistdio/u16-vsprintf-tests
44430         (test_u16_vsnprintf1_LDADD): Likewise.
44431         * modules/unistdio/u32-vsnprintf-tests
44432         (test_u32_vsnprintf1_LDADD): Likewise.
44433         * modules/unistdio/u32-vsprintf-tests
44434         (test_u32_vsprintf1_LDADD): Likewise.
44435         * modules/unistdio/u8-vsnprintf-tests
44436         (test_u8_vsnprintf1_LDADD): Likewise.
44437         * modules/unistdio/u8-vsprintf-tests
44438         (test_u8_vsprintf1_LDADD): Likewise.
44439         * modules/unistdio/ulc-vsnprintf-tests
44440         (test_ulc_vsnprintf1_LDADD): Likewise.
44441         * modules/unistdio/ulc-vsprintf-tests
44442         (test_ulc_vsprintf1_LDADD): Likewise.
44443
44444         Fix linking of some uniconv tests on FreeBSD.
44445         * modules/uniconv/u16-conv-from-enc-tests
44446         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44447         * modules/uniconv/u16-conv-to-enc-tests
44448         (test_u16_conv_to_enc_LDADD): Likewise.
44449         * modules/uniconv/u16-strconv-from-enc-tests
44450         (test_u16_strconv_from_enc_LDADD): Likewise.
44451         * modules/uniconv/u16-strconv-to-enc-tests
44452         (test_u16_strconv_to_enc_LDADD): Likewise.
44453         * modules/uniconv/u32-conv-from-enc-tests
44454         (test_u32_conv_from_enc_LDADD): Likewise.
44455         * modules/uniconv/u32-conv-to-enc-tests
44456         (test_u32_conv_to_enc_LDADD): Likewise.
44457         * modules/uniconv/u32-strconv-from-enc-tests
44458         (test_u32_strconv_from_enc_LDADD): Likewise.
44459         * modules/uniconv/u32-strconv-to-enc-tests
44460         (test_u32_strconv_to_enc_LDADD): Likewise.
44461         * modules/uniconv/u8-conv-from-enc-tests
44462         (test_u8_conv_from_enc_LDADD): Likewise.
44463         * modules/uniconv/u8-conv-to-enc-tests
44464         (test_u8_conv_to_enc_LDADD): Likewise.
44465         * modules/uniconv/u8-strconv-from-enc-tests
44466         (test_u8_strconv_from_enc_LDADD): Likewise.
44467         * modules/uniconv/u8-strconv-to-enc-tests
44468         (test_u8_strconv_to_enc_LDADD): Likewise.
44469
44470 2007-10-22  Bruno Haible  <bruno@clisp.org>
44471
44472         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44473         size.
44474
44475 2007-10-22  Eric Blake  <ebb9@byu.net>
44476
44477         Tweak x*printf documentation.
44478         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44479         variable name and comments.
44480         Suggested by Bruno Haible.
44481
44482 2007-10-22  Bruno Haible  <bruno@clisp.org>
44483
44484         * lib/acl.c (copy_acl): Fix file name in comment.
44485
44486 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44487
44488         Fix Tru64 problem with stdbool.h.
44489         * lib/stdbool.in.h (false, true):
44490         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44491         Don't declare as an enum in this situation; it runs afoul of Tru64.
44492         Problem reported by Steven M. Schweda in
44493         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44494
44495 2007-10-22  Eric Blake  <ebb9@byu.net>
44496
44497         Also wrap vf?printf.
44498         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44499         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44500         (xvprintf, xvfprintf): New functions.
44501
44502 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44503
44504         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44505         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44506
44507         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44508         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44509
44510 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44511
44512         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44513         by Bruno Haible.
44514
44515 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44516
44517         * lib/getloadavg.c
44518         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44519         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44520
44521         * tests/test-i-ring.c: Work for C89.
44522
44523 2007-10-22  Bruno Haible  <bruno@clisp.org>
44524
44525         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44526         -1u, in preprocessor expression, so that we don't test for the bug
44527         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44529
44530 2007-10-22  Eric Blake  <ebb9@byu.net>
44531
44532         * tests/test-yesno.sh: Silence stderr during test.
44533
44534 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44535
44536         * modules/crypto/gc-camellia: New file.
44537
44538         * m4/gc-camellia.m4: New file.
44539
44540         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44541
44542         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44543
44544 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44545
44546         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44547         --help to stdout.  Reported by sms@antinode.org (Steven
44548         M. Schweda).
44549
44550 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44551
44552         * users.txt: Fix link to libksba.
44553
44554 2007-10-21  Ben Pfaff  <blp@gnu.org>
44555
44556         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44557         round.c roundf implementation that depends on floorf and ceilf to
44558         be tested unconditionally.
44559
44560 2007-10-21  Ben Pfaff  <blp@gnu.org>
44561
44562         * m4/check-libm-func.m4: Removed.
44563         * m4/check-math-lib.m4: New file.
44564         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44565         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44566         definition and lack of AC_LIBOBJ([roundf]).
44567         * m4/roundl.m4: Ditto, and similarly for roundl.
44568         * modules/round: Reference new m4 file.
44569         * modules/roundf: Ditto.
44570         * modules/roundl: Ditto.
44571         * tests/test-round2.c (main): Use ROUND instead of round.
44572         Bug report from Bruno Haible.
44573
44574 2007-10-21  Bruno Haible  <bruno@clisp.org>
44575
44576         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44577         context.
44578
44579 2007-10-21  Bruno Haible  <bruno@clisp.org>
44580
44581         * tests/test-wcwidth.c (main): Allow negative result for some control
44582         characters.
44583
44584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44585         Needed on OSF/1 5.1.
44586
44587 2007-10-21  Bruno Haible  <bruno@clisp.org>
44588
44589         * tests/test-floorf1.c: Include isnanf.h.
44590         (main): Use isnanf() instead of isnan().
44591         * tests/test-ceilf1.c: Include isnanf.h.
44592         (main): Use isnanf() instead of isnan().
44593         * tests/test-truncf1.c: Include isnanf.h.
44594         (main): Use isnanf() instead of isnan().
44595         * tests/test-roundf1.c: Include isnanf.h.
44596         (main): Use isnanf() instead of isnan().
44597
44598 2007-10-21  Eric Blake  <ebb9@byu.net>
44599
44600         * users.txt: Update URL for m4.
44601
44602 2007-10-21  Bruno Haible  <bruno@clisp.org>
44603
44604         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44605
44606 2007-10-21  Bruno Haible  <bruno@clisp.org>
44607
44608         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44609         Git's management files if the CVS files are not present.
44610
44611 2007-10-20  Bruno Haible  <bruno@clisp.org>
44612
44613         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44614         gcc-3.4.x.
44615
44616 2007-10-20  Ben Pfaff  <blp@gnu.org>
44617
44618         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44619         implementations.
44620         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44621         * lib/round.c: New file.
44622         * lib/roundf.c: New file.
44623         * lib/roundl.c: New file.
44624         * m4/round.m4: New file.
44625         * m4/roundf.m4: New file.
44626         * m4/roundl.m4: New file.
44627         * m4/check-libm-func-m4: New file.
44628         * modules/math: Replace round, roundf, roundl related @VARS@ in
44629         math.in.h.
44630         * modules/round: New file.
44631         * modules/round-tests: New file.
44632         * modules/roundf: New file.
44633         * modules/roundf-tests: New file.
44634         * modules/roundl: New file.
44635         * modules/roundl-tests: New file.
44636         * tests/test-round1.c: New file.
44637         * tests/test-round2.c: New file.
44638         * tests/test-roundf1.c: New file.
44639         * tests/test-roundf2.c: New file.
44640         * tests/test-roundl.c: New file.
44641         * doc/functions/round.texi: Mention round module.
44642         * doc/functions/roundf.texi: Mention roundf module.
44643         * doc/functions/roundl.texi: Mention roundl module.
44644         * MODULES.html.sh: Mention new modules.
44645         Thanks to Bruno Haible for suggestions.
44646
44647 2007-10-20  Jim Meyering  <meyering@redhat.com>
44648
44649         * lib/xprintf.c: Include <config.h> unconditionally.
44650
44651         Change xprintf's license to GPL.
44652         * modules/xprintf (License): s/LGPL/GPL/, since this module
44653         depends on modules (exit and exitfail) which are GPL.
44654         Suggestion from Bruno Haible.
44655
44656         xprintf fixes.
44657         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44658         Use a clearer diagnostic.
44659         Patch from Bruno Haible.
44660
44661 2007-10-20  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44664         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44665         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44666
44667 2007-10-20  Bruno Haible  <bruno@clisp.org>
44668
44669         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44670         precision in the comparison result > x - 1 or similar.
44671         * tests/test-ceilf2.c (correct_result_p): Likewise.
44672         * tests/test-truncf2.c (correct_result_p): Likewise.
44673         * tests/test-trunc2.c (correct_result_p): Likewise.
44674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44675
44676 2007-10-20  Bruno Haible  <bruno@clisp.org>
44677
44678         * modules/ceil: New file.
44679         * m4/ceil.m4: New file.
44680         * doc/functions/ceil.texi: Mention the 'ceil' module.
44681
44682 2007-10-20  Bruno Haible  <bruno@clisp.org>
44683
44684         * modules/floor: New file.
44685         * m4/floor.m4: New file.
44686         * doc/functions/floor.texi: Mention the 'floor' module.
44687
44688 2007-10-20  Bruno Haible  <bruno@clisp.org>
44689
44690         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44691         of %a.
44692         * modules/floorf-tests (Depends-on): Likewise.
44693         * modules/truncf-tests (Depends-on): Likewise.
44694         * modules/trunc-tests (Depends-on): Likewise.
44695         Reported by Ben Pfaff.
44696
44697 2007-10-19  Jim Meyering  <meyering@redhat.com>
44698
44699         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44700         Don't bother testing specific errno values.  Just test ferror.
44701
44702         New module: xprintf
44703         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44704
44705 2007-10-19  Bruno Haible  <bruno@clisp.org>
44706
44707         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44708         syntax.
44709         * modules/javaexec (Makefile.am): Likewise.
44710         * modules/relocatable-prog (Makefile.am): Likewise.
44711         Suggested by Jim Meyering.
44712
44713 2007-10-18  Bruno Haible  <bruno@clisp.org>
44714
44715         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44716         Reported by Jim Meyering.
44717
44718 2007-10-18  Eric Blake  <ebb9@byu.net>
44719
44720         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44721
44722 2007-10-18  Bruno Haible  <bruno@clisp.org>
44723
44724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44725         the format string into writable memory. Needed in Fortify conditions.
44726
44727 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44728             Bruno Haible  <bruno@clisp.org>
44729
44730         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44731         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44732         * modules/trim (Depends-on): Add mbchar.
44733         (configure.ac): Add gl_FUNC_MBRTOWC.
44734         (Makefile.am): Augment lib_SOURCES.
44735
44736 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44737
44738         Modify glob.c to use fstatat and dirfd, to simplify it.
44739         Suggested by Eric Blake.
44740         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44741         Don't include <stdbool.h>; not used.
44742         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44743         (link_exists_p): Simplify implementation, since we can now assume
44744         dirfd and fstatat.
44745         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44746
44747 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44748
44749         * gnulib-tool (func_get_dependencies): Fix sed script to
44750         match only tests.
44751
44752 2007-10-17  Bruno Haible  <bruno@clisp.org>
44753
44754         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44755         allow locale names without encoding suffix.
44756         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44757         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44758
44759 2007-10-16  Bruno Haible  <bruno@clisp.org>
44760
44761         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44762         * lib/getgroups.c (getgroups): Likewise.
44763         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44764
44765 2007-10-16  Bruno Haible  <bruno@clisp.org>
44766
44767         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44768         * modules/malloc-posix (License): Likewise.
44769         * modules/realloc-posix (License): Likewise.
44770         * modules/calloc-posix (License): Likewise.
44771         * modules/intprops (License): Change from GPL to LGPL, with
44772         Paul Eggert's approval.
44773
44774 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44775
44776         Merge glibc changes into lib/glob.c.
44777
44778         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44779         2007-10-15 04:59:03 UTC.  Here are the changes:
44780
44781         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44782
44783         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44784
44785         * lib/glob.c: Add some branch prediction throughout.
44786
44787         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44788
44789         [BZ #5103]
44790         * lib/glob.c (glob): Recognize patterns starting \/.
44791
44792         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44793
44794         [BZ #3996]
44795         * lib/glob.c (attribute_hidden): Define if not defined.
44796         (glob): Unescape dirname, filename or username when needed and not
44797         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44798         is NULL.  Handle unescaped [ in pattern without closing ].
44799         Don't pass GLOB_CHECK down to recursive glob for directories.
44800         (__glob_pattern_type): New function.
44801         (__glob_pattern_p): Implement using __glob_pattern_type.
44802         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44803         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44804         Remove unreachable code.
44805
44806         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44807
44808         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44809         explain why there are no leaks.
44810
44811         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44812
44813         [BZ #3253]
44814         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44815         time, rather allocate increasingly bigger arrays of pointers, if
44816         possible with alloca, if too large with malloc.
44817
44818 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44819
44820         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44821         Problem reported by H.Merijn Brand in
44822         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44823         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44824         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44825
44826 2007-10-15  Bruno Haible  <bruno@clisp.org>
44827
44828         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44829         with explicit rpl_ prefix.
44830         * lib/fopen.c (fopen): Likewise.
44831         * lib/freopen.c (freopen): Likewise.
44832         * lib/iconv.c (iconv): Likewise.
44833         * lib/iconv_close.c (iconv_close): Likewise.
44834
44835 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44836
44837         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44838
44839 2007-10-15  Bruno Haible  <bruno@clisp.org>
44840
44841         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44842         <stddef.h> instead of <stdlib.h> since we only need NULL.
44843         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44844
44845 2007-10-15  Bruno Haible  <bruno@clisp.org>
44846
44847         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44848         Replace paragraph talking about LIBOBJS.
44849         Reported by Colin Watson <cjwatson@debian.org>.
44850
44851 2007-10-15  Bruno Haible  <bruno@clisp.org>
44852
44853         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44854         <stdlib.h> before using NULL.
44855
44856 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44857
44858         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44859         Reported by Albert Chin <china@thewrittenword.com>.
44860
44861 2007-10-14  Bruno Haible  <bruno@clisp.org>
44862
44863         * modules/iconv_open-utf-tests: New file.
44864         * tests/test-iconv-utf.c: New file.
44865
44866         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44867         * modules/iconv_open-utf: New file.
44868         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44869         (iconv, iconv_close): New declarations.
44870         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44871         be defined.
44872         (iconv_open): Add special handling of conversion between UTF-8 and
44873         UTF-{16,32}{BE,LE}.
44874         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44875         * lib/iconv_close.c: New file.
44876         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44877         gl_FUNC_ICONV_OPEN.
44878         (gl_FUNC_ICONV_OPEN): Use it.
44879         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44880         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44881         and REPLACE_ICONV_UTF.
44882         * modules/iconv_open (Depends-on): Add c-strcase.
44883         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44884         ICONV_CONST.
44885         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44886
44887 2007-10-13  Albert Chin  <china@thewrittenword.com>
44888             Bruno Haible  <bruno@clisp.org>
44889
44890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44891         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44892
44893 2007-10-13  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44896         defined, use the ISO C99 inline semantics.
44897         * lib/argp.h (ARGP_EI): Likewise.
44898
44899 2007-10-13  Bruno Haible  <bruno@clisp.org>
44900
44901         Handle 'inline' change in gcc 4.3.0.
44902         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44903         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44904         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44905         argp_fmtstream_point): Disable 'extern' declaration if the function
44906         definition is going to be provided inline.
44907         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44908         semantics, not the ISO C99 inline semantics.
44909         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44910         'extern' declaration if the function definition is going to be provided
44911         inline.
44912         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44913         the GNU C inline semantics, not the ISO C99 inline semantics. With
44914         GCC 4.2, avoid a warning.
44915
44916 2007-10-13  Bruno Haible  <bruno@clisp.org>
44917
44918         * lib/freading.h (freading): Enable the use of __freading for
44919         glibc >= 2.7.
44920         * lib/freading.c (freading): Likewise.
44921
44922 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44923
44924         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44925         "warning: C99 inline functions are not supported; using GNU89".
44926
44927 2007-10-12  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44930         of 2.
44931         * tests/test-ceilf2.c: New file.
44932         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44933
44934         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44935         * modules/ceilf-tests: Update.
44936
44937 2007-10-12  Bruno Haible  <bruno@clisp.org>
44938
44939         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44940         of 2.
44941         * tests/test-floorf2.c: New file.
44942         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44943
44944         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44945         * modules/floorf-tests: Update.
44946
44947 2007-10-12  Bruno Haible  <bruno@clisp.org>
44948
44949         * tests/test-trunc2.c: New file.
44950         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44951
44952         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44953         * modules/trunc-tests: Update.
44954
44955 2007-10-12  Bruno Haible  <bruno@clisp.org>
44956
44957         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
44958         of 2.
44959         * tests/test-truncf2.c: New file.
44960         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
44961
44962         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
44963         * modules/truncf-tests: Update.
44964
44965 2007-10-11  Eric Blake  <ebb9@byu.net>
44966
44967         Don't claim strerror is broken on Interix.
44968         * doc/functions/strerror.texi (strerror): Known broken systems are
44969         now Solaris 8, and not Interix.
44970         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
44971         Interix on cross-compile.
44972         Reported by Martin Koeppe in
44973         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
44974
44975 2007-10-11  Bruno Haible  <bruno@clisp.org>
44976
44977         * modules/i-ring-tests: New file.
44978         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
44979         instead of assert.
44980
44981 2007-10-11  Bruno Haible  <bruno@clisp.org>
44982
44983         * modules/filenamecat-tests: New file.
44984         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
44985         * lib/filenamecat.c: Remove test code.
44986
44987 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44988
44989         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
44990
44991         * lib/strerror.c: Include <string.h> always, to test interface,
44992         and to remove the need for the dummy.
44993         Include intprops.h to compute width instead of doing it ourselves
44994         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
44995         (strerror): Define it to return NULL if there's no system strerror.
44996         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
44997         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
44998         ancient pre-strerror Unix systems well any more.  Saying "unknown
44999         system error" is enough.
45000         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45001         simpler strerror.c implementation.
45002         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45003         Simplify the tests to reflect the simpler strerror implementation.
45004         * modules/strerror (Depends-on): Add intprops.
45005
45006 2007-10-09  Eric Blake  <ebb9@byu.net>
45007
45008         Silence test-fpending.
45009         * modules/fpending-tests (Files): Add wrapper script.
45010         * tests/test-fpending.sh: New file.
45011
45012 2007-10-09  Bruno Haible  <bruno@clisp.org>
45013
45014         * MODULES.html.sh (func_module): Don't create a hyperlink for
45015         function names like 'printf_frexp'.
45016         (Misc): Add crc, memxor.
45017         (Characteristics of floating types): New section.
45018         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45019         isnanf-nolibm, signbit, trunc, truncf, truncl.
45020         (Enhancements for ISO C 99 functions): New subsection Input/output.
45021         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45022         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45023         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45024         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45025         (Enhancements for POSIX:2001 functions): Add chdir-long.
45026         (File system functions): Add areadlink, chdir-safer, read-file.
45027         Remove cycle-check.
45028         (File system as inode set): New section.
45029         (Date and time): Add gethrxtime.
45030         (Multithreading): Add openmp.
45031         (Internationalization functions): Add localename.
45032         (Unicode string functions): Add unistr/u*-mbsnlen.
45033         (Support for maintaining and releasing projects): Add git-version-gen.
45034         (Lone files): Remove directories.
45035
45036 2007-10-08  Ben Pfaff  <blp@gnu.org>
45037
45038         * lib/xmalloca.h: Fix typo in comment.
45039
45040 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45041
45042         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45043         when avoiding problems with integer overflow.  Use a portable test
45044         instead.
45045
45046 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45047
45048         * modules/dummy (License): Change to LGPLv2+.
45049         * modules/float (License): Likewise
45050         * modules/realloc (License): Likewise
45051         * modules/stdlib (License): Likewise
45052
45053 2007-10-07  Bruno Haible  <bruno@clisp.org>
45054
45055         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45056         * floor.c (TWO_MANT_DIG): Likewise.
45057         * ceil.c (TWO_MANT_DIG): Likewise.
45058         Reported by Ben Pfaff.
45059
45060 2007-10-07  Bruno Haible  <bruno@clisp.org>
45061
45062         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45063         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45064         * lib/frexp.c (FUNC): Likewise.
45065         * lib/printf-frexp.h (printf_frexp): Likewise.
45066         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45067         * lib/printf-frexp.c (FUNC): Likewise.
45068         Suggested by Jim Meyering.
45069
45070 2007-10-07  Jim Meyering  <meyering@redhat.com>
45071
45072         Make xnanosleep's integer overflow test more robust.
45073         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45074         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45075
45076 2007-10-07  Bruno Haible  <bruno@clisp.org>
45077
45078         * NEWS: Mention the license change.
45079
45080         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45081         abbreviations in the modules files.
45082
45083         Change copyright notice from GPLv2+ to GPLv3+.
45084         * README: Change copyright notice.
45085         * MODULES.html.sh: Likewise.
45086         * build-aux/bootstrap.conf: Likewise.
45087         * build-aux/config.libpath: Likewise.
45088         * build-aux/csharpcomp.sh.in: Likewise.
45089         * build-aux/csharpexec.sh.in: Likewise.
45090         * build-aux/install-reloc: Likewise.
45091         * build-aux/javacomp.sh.in: Likewise.
45092         * build-aux/javaexec.sh.in: Likewise.
45093         * build-aux/ldd.sh.in: Likewise.
45094         * build-aux/reloc-ldflags: Likewise.
45095         * build-aux/relocatable.sh.in: Likewise.
45096         * build-aux/x-to-1.in: Likewise.
45097         * check-module: Likewise.
45098         * config/srclistvars.sh: Likewise.
45099         * gnulib-tool: Likewise.
45100         * lib/acl-internal.h: Likewise.
45101         * lib/acl.c: Likewise.
45102         * lib/acl.h: Likewise.
45103         * lib/acl_entries.c: Likewise.
45104         * lib/areadlink-with-size.c: Likewise.
45105         * lib/areadlink.c: Likewise.
45106         * lib/areadlink.h: Likewise.
45107         * lib/argmatch.c: Likewise.
45108         * lib/argmatch.h: Likewise.
45109         * lib/argp-ba.c: Likewise.
45110         * lib/argp-eexst.c: Likewise.
45111         * lib/argp-fmtstream.c: Likewise.
45112         * lib/argp-fmtstream.h: Likewise.
45113         * lib/argp-fs-xinl.c: Likewise.
45114         * lib/argp-help.c: Likewise.
45115         * lib/argp-namefrob.h: Likewise.
45116         * lib/argp-parse.c: Likewise.
45117         * lib/argp-pin.c: Likewise.
45118         * lib/argp-pv.c: Likewise.
45119         * lib/argp-pvh.c: Likewise.
45120         * lib/argp-xinl.c: Likewise.
45121         * lib/argp.h: Likewise.
45122         * lib/at-func.c: Likewise.
45123         * lib/atanl.c: Likewise.
45124         * lib/backupfile.c: Likewise.
45125         * lib/backupfile.h: Likewise.
45126         * lib/basename.c: Likewise.
45127         * lib/binary-io.h: Likewise.
45128         * lib/byteswap.in.h: Likewise.
45129         * lib/c-stack.c: Likewise.
45130         * lib/c-stack.h: Likewise.
45131         * lib/c-strcasestr.c: Likewise.
45132         * lib/c-strcasestr.h: Likewise.
45133         * lib/c-strstr.c: Likewise.
45134         * lib/c-strstr.h: Likewise.
45135         * lib/c-strtod.c: Likewise.
45136         * lib/calloc.c: Likewise.
45137         * lib/canon-host.c: Likewise.
45138         * lib/canon-host.h: Likewise.
45139         * lib/canonicalize-lgpl.c: Likewise.
45140         * lib/canonicalize.c: Likewise.
45141         * lib/canonicalize.h: Likewise.
45142         * lib/ceil.c: Likewise.
45143         * lib/ceilf.c: Likewise.
45144         * lib/ceill.c: Likewise.
45145         * lib/chdir-long.c: Likewise.
45146         * lib/chdir-long.h: Likewise.
45147         * lib/chdir-safer.c: Likewise.
45148         * lib/chdir-safer.h: Likewise.
45149         * lib/chown.c: Likewise.
45150         * lib/classpath.c: Likewise.
45151         * lib/classpath.h: Likewise.
45152         * lib/clean-temp.c: Likewise.
45153         * lib/clean-temp.h: Likewise.
45154         * lib/cloexec.c: Likewise.
45155         * lib/close-stream.c: Likewise.
45156         * lib/closein.c: Likewise.
45157         * lib/closein.h: Likewise.
45158         * lib/closeout.c: Likewise.
45159         * lib/closeout.h: Likewise.
45160         * lib/concat-filename.c: Likewise.
45161         * lib/copy-file.c: Likewise.
45162         * lib/copy-file.h: Likewise.
45163         * lib/count-one-bits.h: Likewise.
45164         * lib/crc.c: Likewise.
45165         * lib/crc.h: Likewise.
45166         * lib/creat-safer.c: Likewise.
45167         * lib/csharpcomp.c: Likewise.
45168         * lib/csharpcomp.h: Likewise.
45169         * lib/csharpexec.c: Likewise.
45170         * lib/csharpexec.h: Likewise.
45171         * lib/cycle-check.c: Likewise.
45172         * lib/cycle-check.h: Likewise.
45173         * lib/diacrit.c: Likewise.
45174         * lib/diacrit.h: Likewise.
45175         * lib/diffseq.h: Likewise.
45176         * lib/dirchownmod.c: Likewise.
45177         * lib/dirent.in.h: Likewise.
45178         * lib/dirfd.c: Likewise.
45179         * lib/dirfd.h: Likewise.
45180         * lib/dirname.c: Likewise.
45181         * lib/dirname.h: Likewise.
45182         * lib/dummy.c: Likewise.
45183         * lib/dup-safer.c: Likewise.
45184         * lib/dup2.c: Likewise.
45185         * lib/eealloc.h: Likewise.
45186         * lib/error.c: Likewise.
45187         * lib/error.h: Likewise.
45188         * lib/euidaccess.c: Likewise.
45189         * lib/exclude.c: Likewise.
45190         * lib/exclude.h: Likewise.
45191         * lib/execute.c: Likewise.
45192         * lib/execute.h: Likewise.
45193         * lib/exitfail.c: Likewise.
45194         * lib/exitfail.h: Likewise.
45195         * lib/expl.c: Likewise.
45196         * lib/fatal-signal.c: Likewise.
45197         * lib/fatal-signal.h: Likewise.
45198         * lib/fbufmode.c: Likewise.
45199         * lib/fbufmode.h: Likewise.
45200         * lib/fchdir.c: Likewise.
45201         * lib/fchmodat.c: Likewise.
45202         * lib/fchownat.c: Likewise.
45203         * lib/fcntl--.h: Likewise.
45204         * lib/fcntl-safer.h: Likewise.
45205         * lib/fcntl.in.h: Likewise.
45206         * lib/fd-safer.c: Likewise.
45207         * lib/fflush.c: Likewise.
45208         * lib/file-has-acl.c: Likewise.
45209         * lib/file-set.c: Likewise.
45210         * lib/file-type.c: Likewise.
45211         * lib/file-type.h: Likewise.
45212         * lib/fileblocks.c: Likewise.
45213         * lib/filemode.c: Likewise.
45214         * lib/filemode.h: Likewise.
45215         * lib/filename.h: Likewise.
45216         * lib/filenamecat.c: Likewise.
45217         * lib/filenamecat.h: Likewise.
45218         * lib/findprog.c: Likewise.
45219         * lib/findprog.h: Likewise.
45220         * lib/float.in.h: Likewise.
45221         * lib/floor.c: Likewise.
45222         * lib/floorf.c: Likewise.
45223         * lib/floorl.c: Likewise.
45224         * lib/fopen-safer.c: Likewise.
45225         * lib/fopen.c: Likewise.
45226         * lib/fpending.c: Likewise.
45227         * lib/fpending.h: Likewise.
45228         * lib/fprintf.c: Likewise.
45229         * lib/fprintftime.h: Likewise.
45230         * lib/fpucw.h: Likewise.
45231         * lib/fpurge.c: Likewise.
45232         * lib/fpurge.h: Likewise.
45233         * lib/freadable.c: Likewise.
45234         * lib/freadable.h: Likewise.
45235         * lib/freadahead.c: Likewise.
45236         * lib/freadahead.h: Likewise.
45237         * lib/freading.c: Likewise.
45238         * lib/freading.h: Likewise.
45239         * lib/free.c: Likewise.
45240         * lib/freopen.c: Likewise.
45241         * lib/frexp.c: Likewise.
45242         * lib/frexpl.c: Likewise.
45243         * lib/fseek.c: Likewise.
45244         * lib/fseterr.c: Likewise.
45245         * lib/fseterr.h: Likewise.
45246         * lib/fstatat.c: Likewise.
45247         * lib/fstrcmp.c: Likewise.
45248         * lib/fstrcmp.h: Likewise.
45249         * lib/fsusage.c: Likewise.
45250         * lib/fsusage.h: Likewise.
45251         * lib/ftell.c: Likewise.
45252         * lib/ftello.c: Likewise.
45253         * lib/fts-cycle.c: Likewise.
45254         * lib/fts.c: Likewise.
45255         * lib/fts_.h: Likewise.
45256         * lib/full-read.c: Likewise.
45257         * lib/full-read.h: Likewise.
45258         * lib/full-write.c: Likewise.
45259         * lib/full-write.h: Likewise.
45260         * lib/fwritable.c: Likewise.
45261         * lib/fwritable.h: Likewise.
45262         * lib/fwriteerror.c: Likewise.
45263         * lib/fwriteerror.h: Likewise.
45264         * lib/fwriting.c: Likewise.
45265         * lib/fwriting.h: Likewise.
45266         * lib/gcd.c: Likewise.
45267         * lib/gcd.h: Likewise.
45268         * lib/getcwd.c: Likewise.
45269         * lib/getdate.h: Likewise.
45270         * lib/getdate.y: Likewise.
45271         * lib/getdomainname.c: Likewise.
45272         * lib/getdomainname.h: Likewise.
45273         * lib/getgroups.c: Likewise.
45274         * lib/gethostname.c: Likewise.
45275         * lib/gethrxtime.c: Likewise.
45276         * lib/gethrxtime.h: Likewise.
45277         * lib/getloadavg.c: Likewise.
45278         * lib/getndelim2.c: Likewise.
45279         * lib/getndelim2.h: Likewise.
45280         * lib/getnline.c: Likewise.
45281         * lib/getnline.h: Likewise.
45282         * lib/getopt.c: Likewise.
45283         * lib/getopt.in.h: Likewise.
45284         * lib/getopt1.c: Likewise.
45285         * lib/getopt_int.h: Likewise.
45286         * lib/getpagesize.h: Likewise.
45287         * lib/getsubopt.c: Likewise.
45288         * lib/gettime.c: Likewise.
45289         * lib/getugroups.c: Likewise.
45290         * lib/getugroups.h: Likewise.
45291         * lib/getusershell.c: Likewise.
45292         * lib/gl_anyavltree_list1.h: Likewise.
45293         * lib/gl_anyavltree_list2.h: Likewise.
45294         * lib/gl_anyhash_list1.h: Likewise.
45295         * lib/gl_anyhash_list2.h: Likewise.
45296         * lib/gl_anylinked_list1.h: Likewise.
45297         * lib/gl_anylinked_list2.h: Likewise.
45298         * lib/gl_anyrbtree_list1.h: Likewise.
45299         * lib/gl_anyrbtree_list2.h: Likewise.
45300         * lib/gl_anytree_list1.h: Likewise.
45301         * lib/gl_anytree_list2.h: Likewise.
45302         * lib/gl_anytree_oset.h: Likewise.
45303         * lib/gl_anytreehash_list1.h: Likewise.
45304         * lib/gl_anytreehash_list2.h: Likewise.
45305         * lib/gl_array_list.c: Likewise.
45306         * lib/gl_array_list.h: Likewise.
45307         * lib/gl_array_oset.c: Likewise.
45308         * lib/gl_array_oset.h: Likewise.
45309         * lib/gl_avltree_list.c: Likewise.
45310         * lib/gl_avltree_list.h: Likewise.
45311         * lib/gl_avltree_oset.c: Likewise.
45312         * lib/gl_avltree_oset.h: Likewise.
45313         * lib/gl_avltreehash_list.c: Likewise.
45314         * lib/gl_avltreehash_list.h: Likewise.
45315         * lib/gl_carray_list.c: Likewise.
45316         * lib/gl_carray_list.h: Likewise.
45317         * lib/gl_linked_list.c: Likewise.
45318         * lib/gl_linked_list.h: Likewise.
45319         * lib/gl_linkedhash_list.c: Likewise.
45320         * lib/gl_linkedhash_list.h: Likewise.
45321         * lib/gl_list.c: Likewise.
45322         * lib/gl_list.h: Likewise.
45323         * lib/gl_oset.c: Likewise.
45324         * lib/gl_oset.h: Likewise.
45325         * lib/gl_rbtree_list.c: Likewise.
45326         * lib/gl_rbtree_list.h: Likewise.
45327         * lib/gl_rbtree_oset.c: Likewise.
45328         * lib/gl_rbtree_oset.h: Likewise.
45329         * lib/gl_rbtreehash_list.c: Likewise.
45330         * lib/gl_rbtreehash_list.h: Likewise.
45331         * lib/gl_sublist.c: Likewise.
45332         * lib/gl_sublist.h: Likewise.
45333         * lib/group-member.c: Likewise.
45334         * lib/group-member.h: Likewise.
45335         * lib/hard-locale.c: Likewise.
45336         * lib/hard-locale.h: Likewise.
45337         * lib/hash-pjw.c: Likewise.
45338         * lib/hash-pjw.h: Likewise.
45339         * lib/hash-triple.c: Likewise.
45340         * lib/hash.c: Likewise.
45341         * lib/hash.h: Likewise.
45342         * lib/human.c: Likewise.
45343         * lib/human.h: Likewise.
45344         * lib/i-ring.c: Likewise.
45345         * lib/i-ring.h: Likewise.
45346         * lib/idcache.c: Likewise.
45347         * lib/imaxabs.c: Likewise.
45348         * lib/imaxdiv.c: Likewise.
45349         * lib/inet_pton.c: Likewise.
45350         * lib/inet_pton.h: Likewise.
45351         * lib/intprops.h: Likewise.
45352         * lib/inttostr.c: Likewise.
45353         * lib/inttostr.h: Likewise.
45354         * lib/inttypes.in.h: Likewise.
45355         * lib/isapipe.c: Likewise.
45356         * lib/isdir.c: Likewise.
45357         * lib/isnan.c: Likewise.
45358         * lib/isnan.h: Likewise.
45359         * lib/isnanf.c: Likewise.
45360         * lib/isnanf.h: Likewise.
45361         * lib/isnanl-nolibm.h: Likewise.
45362         * lib/isnanl.c: Likewise.
45363         * lib/isnanl.h: Likewise.
45364         * lib/javacomp.c: Likewise.
45365         * lib/javacomp.h: Likewise.
45366         * lib/javaexec.c: Likewise.
45367         * lib/javaexec.h: Likewise.
45368         * lib/javaversion.c: Likewise.
45369         * lib/javaversion.h: Likewise.
45370         * lib/javaversion.java: Likewise.
45371         * lib/lbrkprop.h: Likewise.
45372         * lib/lchmod.h: Likewise.
45373         * lib/lchown.c: Likewise.
45374         * lib/ldexpl.c: Likewise.
45375         * lib/linebreak.c: Likewise.
45376         * lib/linebreak.h: Likewise.
45377         * lib/linebuffer.c: Likewise.
45378         * lib/linebuffer.h: Likewise.
45379         * lib/locale.in.h: Likewise.
45380         * lib/logl.c: Likewise.
45381         * lib/long-options.c: Likewise.
45382         * lib/long-options.h: Likewise.
45383         * lib/lstat.c: Likewise.
45384         * lib/lstat.h: Likewise.
45385         * lib/math.in.h: Likewise.
45386         * lib/mbchar.c: Likewise.
45387         * lib/mbchar.h: Likewise.
45388         * lib/mbfile.h: Likewise.
45389         * lib/mbiter.h: Likewise.
45390         * lib/mbscasecmp.c: Likewise.
45391         * lib/mbscasestr.c: Likewise.
45392         * lib/mbschr.c: Likewise.
45393         * lib/mbscspn.c: Likewise.
45394         * lib/mbslen.c: Likewise.
45395         * lib/mbsncasecmp.c: Likewise.
45396         * lib/mbsnlen.c: Likewise.
45397         * lib/mbspbrk.c: Likewise.
45398         * lib/mbspcasecmp.c: Likewise.
45399         * lib/mbsrchr.c: Likewise.
45400         * lib/mbssep.c: Likewise.
45401         * lib/mbsspn.c: Likewise.
45402         * lib/mbsstr.c: Likewise.
45403         * lib/mbstok_r.c: Likewise.
45404         * lib/mbswidth.c: Likewise.
45405         * lib/mbswidth.h: Likewise.
45406         * lib/mbuiter.h: Likewise.
45407         * lib/memcasecmp.c: Likewise.
45408         * lib/memcasecmp.h: Likewise.
45409         * lib/memchr.c: Likewise.
45410         * lib/memcmp.c: Likewise.
45411         * lib/memcoll.c: Likewise.
45412         * lib/memcoll.h: Likewise.
45413         * lib/memcpy.c: Likewise.
45414         * lib/memrchr.c: Likewise.
45415         * lib/mkancesdirs.c: Likewise.
45416         * lib/mkdir-p.c: Likewise.
45417         * lib/mkdir-p.h: Likewise.
45418         * lib/mkdir.c: Likewise.
45419         * lib/mkdirat.c: Likewise.
45420         * lib/mkdtemp.c: Likewise.
45421         * lib/mkstemp-safer.c: Likewise.
45422         * lib/mkstemp.c: Likewise.
45423         * lib/modechange.c: Likewise.
45424         * lib/modechange.h: Likewise.
45425         * lib/mountlist.c: Likewise.
45426         * lib/mountlist.h: Likewise.
45427         * lib/mpsort.c: Likewise.
45428         * lib/nanosleep.c: Likewise.
45429         * lib/obstack.c: Likewise.
45430         * lib/obstack.h: Likewise.
45431         * lib/open-safer.c: Likewise.
45432         * lib/open.c: Likewise.
45433         * lib/openat-die.c: Likewise.
45434         * lib/openat-priv.h: Likewise.
45435         * lib/openat-proc.c: Likewise.
45436         * lib/openat.c: Likewise.
45437         * lib/openat.h: Likewise.
45438         * lib/pagealign_alloc.c: Likewise.
45439         * lib/pagealign_alloc.h: Likewise.
45440         * lib/physmem.c: Likewise.
45441         * lib/physmem.h: Likewise.
45442         * lib/pipe-safer.c: Likewise.
45443         * lib/pipe.c: Likewise.
45444         * lib/pipe.h: Likewise.
45445         * lib/posixtm.c: Likewise.
45446         * lib/posixtm.h: Likewise.
45447         * lib/posixver.c: Likewise.
45448         * lib/printf-frexp.c: Likewise.
45449         * lib/printf-frexp.h: Likewise.
45450         * lib/printf-frexpl.c: Likewise.
45451         * lib/printf-frexpl.h: Likewise.
45452         * lib/printf.c: Likewise.
45453         * lib/progname.c: Likewise.
45454         * lib/progname.h: Likewise.
45455         * lib/progreloc.c: Likewise.
45456         * lib/putenv.c: Likewise.
45457         * lib/quote.c: Likewise.
45458         * lib/quote.h: Likewise.
45459         * lib/quotearg.c: Likewise.
45460         * lib/quotearg.h: Likewise.
45461         * lib/raise.c: Likewise.
45462         * lib/readline.c: Likewise.
45463         * lib/readline.h: Likewise.
45464         * lib/readlink.c: Likewise.
45465         * lib/readtokens.c: Likewise.
45466         * lib/readtokens.h: Likewise.
45467         * lib/readtokens0.c: Likewise.
45468         * lib/readtokens0.h: Likewise.
45469         * lib/readutmp.c: Likewise.
45470         * lib/readutmp.h: Likewise.
45471         * lib/realloc.c: Likewise.
45472         * lib/relocwrapper.c: Likewise.
45473         * lib/rename-dest-slash.c: Likewise.
45474         * lib/rename.c: Likewise.
45475         * lib/rmdir.c: Likewise.
45476         * lib/rpmatch.c: Likewise.
45477         * lib/safe-read.c: Likewise.
45478         * lib/safe-read.h: Likewise.
45479         * lib/safe-write.c: Likewise.
45480         * lib/safe-write.h: Likewise.
45481         * lib/same-inode.h: Likewise.
45482         * lib/same.c: Likewise.
45483         * lib/same.h: Likewise.
45484         * lib/save-cwd.c: Likewise.
45485         * lib/save-cwd.h: Likewise.
45486         * lib/savedir.c: Likewise.
45487         * lib/savedir.h: Likewise.
45488         * lib/savewd.c: Likewise.
45489         * lib/savewd.h: Likewise.
45490         * lib/search.in.h: Likewise.
45491         * lib/setenv.c: Likewise.
45492         * lib/setenv.h: Likewise.
45493         * lib/settime.c: Likewise.
45494         * lib/sh-quote.c: Likewise.
45495         * lib/sh-quote.h: Likewise.
45496         * lib/sig2str.c: Likewise.
45497         * lib/sig2str.h: Likewise.
45498         * lib/signal.in.h: Likewise.
45499         * lib/signbitd.c: Likewise.
45500         * lib/signbitf.c: Likewise.
45501         * lib/signbitl.c: Likewise.
45502         * lib/sigprocmask.c: Likewise.
45503         * lib/sincosl.c: Likewise.
45504         * lib/sleep.c: Likewise.
45505         * lib/sprintf.c: Likewise.
45506         * lib/sqrtl.c: Likewise.
45507         * lib/stat-time.h: Likewise.
45508         * lib/stdio--.h: Likewise.
45509         * lib/stdio-safer.h: Likewise.
45510         * lib/stdlib--.h: Likewise.
45511         * lib/stdlib-safer.h: Likewise.
45512         * lib/stdlib.in.h: Likewise.
45513         * lib/stpcpy.c: Likewise.
45514         * lib/stpncpy.c: Likewise.
45515         * lib/strchrnul.c: Likewise.
45516         * lib/strcspn.c: Likewise.
45517         * lib/strerror.c: Likewise.
45518         * lib/strftime.c: Likewise.
45519         * lib/strftime.h: Likewise.
45520         * lib/striconveh.c: Likewise.
45521         * lib/striconveh.h: Likewise.
45522         * lib/striconveha.c: Likewise.
45523         * lib/striconveha.h: Likewise.
45524         * lib/stripslash.c: Likewise.
45525         * lib/strnlen1.c: Likewise.
45526         * lib/strnlen1.h: Likewise.
45527         * lib/strtod.c: Likewise.
45528         * lib/strtoimax.c: Likewise.
45529         * lib/strtok_r.c: Likewise.
45530         * lib/strtol.c: Likewise.
45531         * lib/strtoll.c: Likewise.
45532         * lib/strtoul.c: Likewise.
45533         * lib/strtoull.c: Likewise.
45534         * lib/sysexits.in.h: Likewise.
45535         * lib/tempname.c: Likewise.
45536         * lib/tempname.h: Likewise.
45537         * lib/timespec.h: Likewise.
45538         * lib/tls.c: Likewise.
45539         * lib/tls.h: Likewise.
45540         * lib/tmpdir.c: Likewise.
45541         * lib/tmpdir.h: Likewise.
45542         * lib/tmpfile-safer.c: Likewise.
45543         * lib/tmpfile.c: Likewise.
45544         * lib/trigl.c: Likewise.
45545         * lib/trigl.h: Likewise.
45546         * lib/trim.c: Likewise.
45547         * lib/trim.h: Likewise.
45548         * lib/trunc.c: Likewise.
45549         * lib/truncf.c: Likewise.
45550         * lib/truncl.c: Likewise.
45551         * lib/tsearch.c: Likewise.
45552         * lib/unicodeio.c: Likewise.
45553         * lib/unicodeio.h: Likewise.
45554         * lib/unistd--.h: Likewise.
45555         * lib/unistd-safer.h: Likewise.
45556         * lib/unistdio/ulc-fprintf.c: Likewise.
45557         * lib/unistdio/ulc-vfprintf.c: Likewise.
45558         * lib/unlinkdir.c: Likewise.
45559         * lib/unlinkdir.h: Likewise.
45560         * lib/unlocked-io.h: Likewise.
45561         * lib/unsetenv.c: Likewise.
45562         * lib/userspec.c: Likewise.
45563         * lib/utime.c: Likewise.
45564         * lib/utimecmp.c: Likewise.
45565         * lib/utimecmp.h: Likewise.
45566         * lib/utimens.c: Likewise.
45567         * lib/verify.h: Likewise.
45568         * lib/verror.c: Likewise.
45569         * lib/verror.h: Likewise.
45570         * lib/version-etc-fsf.c: Likewise.
45571         * lib/version-etc.c: Likewise.
45572         * lib/version-etc.h: Likewise.
45573         * lib/vfprintf.c: Likewise.
45574         * lib/vprintf.c: Likewise.
45575         * lib/vsprintf.c: Likewise.
45576         * lib/w32spawn.h: Likewise.
45577         * lib/wait-process.c: Likewise.
45578         * lib/wait-process.h: Likewise.
45579         * lib/wcwidth.c: Likewise.
45580         * lib/write-any-file.c: Likewise.
45581         * lib/xalloc-die.c: Likewise.
45582         * lib/xalloc.h: Likewise.
45583         * lib/xasprintf.c: Likewise.
45584         * lib/xgetcwd.c: Likewise.
45585         * lib/xgetcwd.h: Likewise.
45586         * lib/xgetdomainname.c: Likewise.
45587         * lib/xgetdomainname.h: Likewise.
45588         * lib/xgethostname.c: Likewise.
45589         * lib/xmalloc.c: Likewise.
45590         * lib/xmalloca.c: Likewise.
45591         * lib/xmalloca.h: Likewise.
45592         * lib/xmemcoll.c: Likewise.
45593         * lib/xnanosleep.c: Likewise.
45594         * lib/xreadlink.c: Likewise.
45595         * lib/xreadlink.h: Likewise.
45596         * lib/xsetenv.c: Likewise.
45597         * lib/xsetenv.h: Likewise.
45598         * lib/xstriconv.c: Likewise.
45599         * lib/xstriconv.h: Likewise.
45600         * lib/xstrndup.c: Likewise.
45601         * lib/xstrndup.h: Likewise.
45602         * lib/xstrtod.c: Likewise.
45603         * lib/xstrtod.h: Likewise.
45604         * lib/xstrtol-error.c: Likewise.
45605         * lib/xstrtol.c: Likewise.
45606         * lib/xstrtol.h: Likewise.
45607         * lib/xtime.h: Likewise.
45608         * lib/xvasprintf.c: Likewise.
45609         * lib/xvasprintf.h: Likewise.
45610         * lib/yesno.c: Likewise.
45611         * lib/yesno.h: Likewise.
45612         * posix-modules: Likewise.
45613         * tests/test-alloca-opt.c: Likewise.
45614         * tests/test-arcfour.c: Likewise.
45615         * tests/test-arctwo.c: Likewise.
45616         * tests/test-argmatch.c: Likewise.
45617         * tests/test-argp-2.sh: Likewise.
45618         * tests/test-argp.c: Likewise.
45619         * tests/test-arpa_inet.c: Likewise.
45620         * tests/test-array_list.c: Likewise.
45621         * tests/test-array_oset.c: Likewise.
45622         * tests/test-atexit.c: Likewise.
45623         * tests/test-avltree_list.c: Likewise.
45624         * tests/test-avltree_oset.c: Likewise.
45625         * tests/test-avltreehash_list.c: Likewise.
45626         * tests/test-base64.c: Likewise.
45627         * tests/test-binary-io.c: Likewise.
45628         * tests/test-byteswap.c: Likewise.
45629         * tests/test-c-ctype.c: Likewise.
45630         * tests/test-c-strcasecmp.c: Likewise.
45631         * tests/test-c-strcasestr.c: Likewise.
45632         * tests/test-c-strncasecmp.c: Likewise.
45633         * tests/test-c-strstr.c: Likewise.
45634         * tests/test-canonicalize-lgpl.c: Likewise.
45635         * tests/test-canonicalize.c: Likewise.
45636         * tests/test-carray_list.c: Likewise.
45637         * tests/test-ceilf.c: Likewise.
45638         * tests/test-ceill.c: Likewise.
45639         * tests/test-count-one-bits.c: Likewise.
45640         * tests/test-crc.c: Likewise.
45641         * tests/test-dirname.c: Likewise.
45642         * tests/test-fbufmode.c: Likewise.
45643         * tests/test-fcntl.c: Likewise.
45644         * tests/test-fflush.c: Likewise.
45645         * tests/test-floorf.c: Likewise.
45646         * tests/test-floorl.c: Likewise.
45647         * tests/test-fopen.c: Likewise.
45648         * tests/test-fprintf-posix.c: Likewise.
45649         * tests/test-fprintf-posix.h: Likewise.
45650         * tests/test-fpurge.c: Likewise.
45651         * tests/test-freadable.c: Likewise.
45652         * tests/test-freadahead.c: Likewise.
45653         * tests/test-freading.c: Likewise.
45654         * tests/test-freopen.c: Likewise.
45655         * tests/test-frexp.c: Likewise.
45656         * tests/test-frexpl.c: Likewise.
45657         * tests/test-fseek.c: Likewise.
45658         * tests/test-fseeko.c: Likewise.
45659         * tests/test-fseterr.c: Likewise.
45660         * tests/test-fstrcmp.c: Likewise.
45661         * tests/test-ftell.c: Likewise.
45662         * tests/test-ftello.c: Likewise.
45663         * tests/test-fwritable.c: Likewise.
45664         * tests/test-fwriting.c: Likewise.
45665         * tests/test-getaddrinfo.c: Likewise.
45666         * tests/test-getpass.c: Likewise.
45667         * tests/test-gettimeofday.c: Likewise.
45668         * tests/test-hmac-md5.c: Likewise.
45669         * tests/test-hmac-sha1.c: Likewise.
45670         * tests/test-iconv.c: Likewise.
45671         * tests/test-iconvme.c: Likewise.
45672         * tests/test-inttypes.c: Likewise.
45673         * tests/test-isnan.c: Likewise.
45674         * tests/test-isnanf.c: Likewise.
45675         * tests/test-isnanl-nolibm.c: Likewise.
45676         * tests/test-isnanl.c: Likewise.
45677         * tests/test-isnanl.h: Likewise.
45678         * tests/test-ldexpl.c: Likewise.
45679         * tests/test-linked_list.c: Likewise.
45680         * tests/test-linkedhash_list.c: Likewise.
45681         * tests/test-locale.c: Likewise.
45682         * tests/test-localename.c: Likewise.
45683         * tests/test-lock.c: Likewise.
45684         * tests/test-lseek.c: Likewise.
45685         * tests/test-malloca.c: Likewise.
45686         * tests/test-math.c: Likewise.
45687         * tests/test-mbscasecmp.c: Likewise.
45688         * tests/test-mbscasestr1.c: Likewise.
45689         * tests/test-mbscasestr2.c: Likewise.
45690         * tests/test-mbscasestr3.c: Likewise.
45691         * tests/test-mbscasestr4.c: Likewise.
45692         * tests/test-mbschr.c: Likewise.
45693         * tests/test-mbscspn.c: Likewise.
45694         * tests/test-mbsncasecmp.c: Likewise.
45695         * tests/test-mbspbrk.c: Likewise.
45696         * tests/test-mbspcasecmp.c: Likewise.
45697         * tests/test-mbsrchr.c: Likewise.
45698         * tests/test-mbsspn.c: Likewise.
45699         * tests/test-mbsstr1.c: Likewise.
45700         * tests/test-mbsstr2.c: Likewise.
45701         * tests/test-mbsstr3.c: Likewise.
45702         * tests/test-md5.c: Likewise.
45703         * tests/test-memmem.c: Likewise.
45704         * tests/test-netinet_in.c: Likewise.
45705         * tests/test-open.c: Likewise.
45706         * tests/test-printf-frexp.c: Likewise.
45707         * tests/test-printf-frexpl.c: Likewise.
45708         * tests/test-printf-posix.c: Likewise.
45709         * tests/test-printf-posix.h: Likewise.
45710         * tests/test-rbtree_list.c: Likewise.
45711         * tests/test-rbtree_oset.c: Likewise.
45712         * tests/test-rbtreehash_list.c: Likewise.
45713         * tests/test-read-file.c: Likewise.
45714         * tests/test-rijndael.c: Likewise.
45715         * tests/test-search.c: Likewise.
45716         * tests/test-signbit.c: Likewise.
45717         * tests/test-sleep.c: Likewise.
45718         * tests/test-snprintf-posix.c: Likewise.
45719         * tests/test-snprintf-posix.h: Likewise.
45720         * tests/test-snprintf.c: Likewise.
45721         * tests/test-sprintf-posix.c: Likewise.
45722         * tests/test-sprintf-posix.h: Likewise.
45723         * tests/test-stat-time.c: Likewise.
45724         * tests/test-stdbool.c: Likewise.
45725         * tests/test-stdint.c: Likewise.
45726         * tests/test-stdio.c: Likewise.
45727         * tests/test-stdlib.c: Likewise.
45728         * tests/test-stpncpy.c: Likewise.
45729         * tests/test-strcasestr.c: Likewise.
45730         * tests/test-striconv.c: Likewise.
45731         * tests/test-striconveh.c: Likewise.
45732         * tests/test-striconveha.c: Likewise.
45733         * tests/test-string.c: Likewise.
45734         * tests/test-sys_select.c: Likewise.
45735         * tests/test-sys_socket.c: Likewise.
45736         * tests/test-sys_stat.c: Likewise.
45737         * tests/test-sys_time.c: Likewise.
45738         * tests/test-sysexits.c: Likewise.
45739         * tests/test-time.c: Likewise.
45740         * tests/test-tls.c: Likewise.
45741         * tests/test-trunc.c: Likewise.
45742         * tests/test-truncf.c: Likewise.
45743         * tests/test-truncl.c: Likewise.
45744         * tests/test-unistd.c: Likewise.
45745         * tests/test-vasnprintf-posix.c: Likewise.
45746         * tests/test-vasnprintf-posix2.c: Likewise.
45747         * tests/test-vasnprintf.c: Likewise.
45748         * tests/test-vasprintf-posix.c: Likewise.
45749         * tests/test-vasprintf.c: Likewise.
45750         * tests/test-verify.c: Likewise.
45751         * tests/test-vfprintf-posix.c: Likewise.
45752         * tests/test-vprintf-posix.c: Likewise.
45753         * tests/test-vsnprintf-posix.c: Likewise.
45754         * tests/test-vsnprintf.c: Likewise.
45755         * tests/test-vsprintf-posix.c: Likewise.
45756         * tests/test-wchar.c: Likewise.
45757         * tests/test-wctype.c: Likewise.
45758         * tests/test-wcwidth.c: Likewise.
45759         * tests/test-xstrtol.c: Likewise.
45760         * tests/test-xvasprintf.c: Likewise.
45761         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45762         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45763         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45764         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45765         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45766         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45767         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45768         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45769         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45770         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45771         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45772         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45773         * tests/uniname/test-uninames.c: Likewise.
45774         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45775         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45776         * tests/unistdio/test-u16-printf1.h: Likewise.
45777         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45778         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45779         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45780         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45781         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45782         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45783         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45784         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45785         * tests/unistdio/test-u32-printf1.h: Likewise.
45786         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45787         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45788         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45789         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45790         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45791         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45792         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45793         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45794         * tests/unistdio/test-u8-printf1.h: Likewise.
45795         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45796         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45797         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45798         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45799         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45800         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45801         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45802         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45803         * tests/unistdio/test-ulc-printf1.h: Likewise.
45804         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45805         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45806         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45807         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45808         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45809         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45810         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45811         * tests/uniwidth/test-u16-width.c: Likewise.
45812         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45813         * tests/uniwidth/test-u32-width.c: Likewise.
45814         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45815         * tests/uniwidth/test-u8-width.c: Likewise.
45816         * tests/uniwidth/test-uc_width.c: Likewise.
45817         * config/srclist-update: Likewise.
45818         (fixlicense): Update to GPLv3+.
45819
45820         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45821         * tests/test-tsearch.c: Change copyright notice.
45822
45823         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45824         * lib/c-strcaseeq.h: Change copyright notice.
45825         * lib/streq.h: Likewise.
45826         * lib/uniconv.h: Likewise.
45827         * lib/uniconv/u-conv-from-enc.h: Likewise.
45828         * lib/uniconv/u-conv-to-enc.h: Likewise.
45829         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45830         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45831         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45832         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45833         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45834         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45835         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45836         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45837         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45838         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45839         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45840         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45841         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45842         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45843         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45844         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45845         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45846         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45847         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45848         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45849         * lib/uniname.h: Likewise.
45850         * lib/uniname/uniname.c: Likewise.
45851         * lib/unistdio.h: Likewise.
45852         * lib/unistdio/u-asnprintf.h: Likewise.
45853         * lib/unistdio/u-asprintf.h: Likewise.
45854         * lib/unistdio/u-printf-args.c: Likewise.
45855         * lib/unistdio/u-printf-args.h: Likewise.
45856         * lib/unistdio/u-printf-parse.h: Likewise.
45857         * lib/unistdio/u-snprintf.h: Likewise.
45858         * lib/unistdio/u-sprintf.h: Likewise.
45859         * lib/unistdio/u-vasprintf.h: Likewise.
45860         * lib/unistdio/u-vsnprintf.h: Likewise.
45861         * lib/unistdio/u-vsprintf.h: Likewise.
45862         * lib/unistdio/u16-asnprintf.c: Likewise.
45863         * lib/unistdio/u16-asprintf.c: Likewise.
45864         * lib/unistdio/u16-printf-parse.c: Likewise.
45865         * lib/unistdio/u16-snprintf.c: Likewise.
45866         * lib/unistdio/u16-sprintf.c: Likewise.
45867         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45868         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45869         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45870         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45871         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45872         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45873         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45874         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45875         * lib/unistdio/u16-vasnprintf.c: Likewise.
45876         * lib/unistdio/u16-vasprintf.c: Likewise.
45877         * lib/unistdio/u16-vsnprintf.c: Likewise.
45878         * lib/unistdio/u16-vsprintf.c: Likewise.
45879         * lib/unistdio/u32-asnprintf.c: Likewise.
45880         * lib/unistdio/u32-asprintf.c: Likewise.
45881         * lib/unistdio/u32-printf-parse.c: Likewise.
45882         * lib/unistdio/u32-snprintf.c: Likewise.
45883         * lib/unistdio/u32-sprintf.c: Likewise.
45884         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45885         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45886         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45887         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45888         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45889         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45890         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45891         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45892         * lib/unistdio/u32-vasnprintf.c: Likewise.
45893         * lib/unistdio/u32-vasprintf.c: Likewise.
45894         * lib/unistdio/u32-vsnprintf.c: Likewise.
45895         * lib/unistdio/u32-vsprintf.c: Likewise.
45896         * lib/unistdio/u8-asnprintf.c: Likewise.
45897         * lib/unistdio/u8-asprintf.c: Likewise.
45898         * lib/unistdio/u8-printf-parse.c: Likewise.
45899         * lib/unistdio/u8-snprintf.c: Likewise.
45900         * lib/unistdio/u8-sprintf.c: Likewise.
45901         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45902         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45903         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45904         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45905         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45906         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45907         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45908         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45909         * lib/unistdio/u8-vasnprintf.c: Likewise.
45910         * lib/unistdio/u8-vasprintf.c: Likewise.
45911         * lib/unistdio/u8-vsnprintf.c: Likewise.
45912         * lib/unistdio/u8-vsprintf.c: Likewise.
45913         * lib/unistdio/ulc-asnprintf.c: Likewise.
45914         * lib/unistdio/ulc-asprintf.c: Likewise.
45915         * lib/unistdio/ulc-printf-parse.c: Likewise.
45916         * lib/unistdio/ulc-snprintf.c: Likewise.
45917         * lib/unistdio/ulc-sprintf.c: Likewise.
45918         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45919         * lib/unistdio/ulc-vasprintf.c: Likewise.
45920         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45921         * lib/unistdio/ulc-vsprintf.c: Likewise.
45922         * lib/unistr.h: Likewise.
45923         * lib/unistr/u-cpy-alloc.h: Likewise.
45924         * lib/unistr/u-cpy.h: Likewise.
45925         * lib/unistr/u-endswith.h: Likewise.
45926         * lib/unistr/u-move.h: Likewise.
45927         * lib/unistr/u-set.h: Likewise.
45928         * lib/unistr/u-startswith.h: Likewise.
45929         * lib/unistr/u-stpcpy.h: Likewise.
45930         * lib/unistr/u-stpncpy.h: Likewise.
45931         * lib/unistr/u-strcat.h: Likewise.
45932         * lib/unistr/u-strcpy.h: Likewise.
45933         * lib/unistr/u-strcspn.h: Likewise.
45934         * lib/unistr/u-strdup.h: Likewise.
45935         * lib/unistr/u-strlen.h: Likewise.
45936         * lib/unistr/u-strncat.h: Likewise.
45937         * lib/unistr/u-strncpy.h: Likewise.
45938         * lib/unistr/u-strnlen.h: Likewise.
45939         * lib/unistr/u-strpbrk.h: Likewise.
45940         * lib/unistr/u-strspn.h: Likewise.
45941         * lib/unistr/u-strstr.h: Likewise.
45942         * lib/unistr/u-strtok.h: Likewise.
45943         * lib/unistr/u16-check.c: Likewise.
45944         * lib/unistr/u16-chr.c: Likewise.
45945         * lib/unistr/u16-cmp.c: Likewise.
45946         * lib/unistr/u16-cpy-alloc.c: Likewise.
45947         * lib/unistr/u16-cpy.c: Likewise.
45948         * lib/unistr/u16-endswith.c: Likewise.
45949         * lib/unistr/u16-mblen.c: Likewise.
45950         * lib/unistr/u16-mbsnlen.c: Likewise.
45951         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45952         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45953         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45954         * lib/unistr/u16-mbtouc.c: Likewise.
45955         * lib/unistr/u16-mbtoucr.c: Likewise.
45956         * lib/unistr/u16-move.c: Likewise.
45957         * lib/unistr/u16-next.c: Likewise.
45958         * lib/unistr/u16-prev.c: Likewise.
45959         * lib/unistr/u16-set.c: Likewise.
45960         * lib/unistr/u16-startswith.c: Likewise.
45961         * lib/unistr/u16-stpcpy.c: Likewise.
45962         * lib/unistr/u16-stpncpy.c: Likewise.
45963         * lib/unistr/u16-strcat.c: Likewise.
45964         * lib/unistr/u16-strchr.c: Likewise.
45965         * lib/unistr/u16-strcmp.c: Likewise.
45966         * lib/unistr/u16-strcpy.c: Likewise.
45967         * lib/unistr/u16-strcspn.c: Likewise.
45968         * lib/unistr/u16-strdup.c: Likewise.
45969         * lib/unistr/u16-strlen.c: Likewise.
45970         * lib/unistr/u16-strmblen.c: Likewise.
45971         * lib/unistr/u16-strmbtouc.c: Likewise.
45972         * lib/unistr/u16-strncat.c: Likewise.
45973         * lib/unistr/u16-strncmp.c: Likewise.
45974         * lib/unistr/u16-strncpy.c: Likewise.
45975         * lib/unistr/u16-strnlen.c: Likewise.
45976         * lib/unistr/u16-strpbrk.c: Likewise.
45977         * lib/unistr/u16-strrchr.c: Likewise.
45978         * lib/unistr/u16-strspn.c: Likewise.
45979         * lib/unistr/u16-strstr.c: Likewise.
45980         * lib/unistr/u16-strtok.c: Likewise.
45981         * lib/unistr/u16-to-u32.c: Likewise.
45982         * lib/unistr/u16-to-u8.c: Likewise.
45983         * lib/unistr/u16-uctomb-aux.c: Likewise.
45984         * lib/unistr/u16-uctomb.c: Likewise.
45985         * lib/unistr/u32-check.c: Likewise.
45986         * lib/unistr/u32-chr.c: Likewise.
45987         * lib/unistr/u32-cmp.c: Likewise.
45988         * lib/unistr/u32-cpy-alloc.c: Likewise.
45989         * lib/unistr/u32-cpy.c: Likewise.
45990         * lib/unistr/u32-endswith.c: Likewise.
45991         * lib/unistr/u32-mblen.c: Likewise.
45992         * lib/unistr/u32-mbsnlen.c: Likewise.
45993         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45994         * lib/unistr/u32-mbtouc.c: Likewise.
45995         * lib/unistr/u32-mbtoucr.c: Likewise.
45996         * lib/unistr/u32-move.c: Likewise.
45997         * lib/unistr/u32-next.c: Likewise.
45998         * lib/unistr/u32-prev.c: Likewise.
45999         * lib/unistr/u32-set.c: Likewise.
46000         * lib/unistr/u32-startswith.c: Likewise.
46001         * lib/unistr/u32-stpcpy.c: Likewise.
46002         * lib/unistr/u32-stpncpy.c: Likewise.
46003         * lib/unistr/u32-strcat.c: Likewise.
46004         * lib/unistr/u32-strchr.c: Likewise.
46005         * lib/unistr/u32-strcmp.c: Likewise.
46006         * lib/unistr/u32-strcpy.c: Likewise.
46007         * lib/unistr/u32-strcspn.c: Likewise.
46008         * lib/unistr/u32-strdup.c: Likewise.
46009         * lib/unistr/u32-strlen.c: Likewise.
46010         * lib/unistr/u32-strmblen.c: Likewise.
46011         * lib/unistr/u32-strmbtouc.c: Likewise.
46012         * lib/unistr/u32-strncat.c: Likewise.
46013         * lib/unistr/u32-strncmp.c: Likewise.
46014         * lib/unistr/u32-strncpy.c: Likewise.
46015         * lib/unistr/u32-strnlen.c: Likewise.
46016         * lib/unistr/u32-strpbrk.c: Likewise.
46017         * lib/unistr/u32-strrchr.c: Likewise.
46018         * lib/unistr/u32-strspn.c: Likewise.
46019         * lib/unistr/u32-strstr.c: Likewise.
46020         * lib/unistr/u32-strtok.c: Likewise.
46021         * lib/unistr/u32-to-u16.c: Likewise.
46022         * lib/unistr/u32-to-u8.c: Likewise.
46023         * lib/unistr/u32-uctomb.c: Likewise.
46024         * lib/unistr/u8-check.c: Likewise.
46025         * lib/unistr/u8-chr.c: Likewise.
46026         * lib/unistr/u8-cmp.c: Likewise.
46027         * lib/unistr/u8-cpy-alloc.c: Likewise.
46028         * lib/unistr/u8-cpy.c: Likewise.
46029         * lib/unistr/u8-endswith.c: Likewise.
46030         * lib/unistr/u8-mblen.c: Likewise.
46031         * lib/unistr/u8-mbsnlen.c: Likewise.
46032         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46033         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46034         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46035         * lib/unistr/u8-mbtouc.c: Likewise.
46036         * lib/unistr/u8-mbtoucr.c: Likewise.
46037         * lib/unistr/u8-move.c: Likewise.
46038         * lib/unistr/u8-next.c: Likewise.
46039         * lib/unistr/u8-prev.c: Likewise.
46040         * lib/unistr/u8-set.c: Likewise.
46041         * lib/unistr/u8-startswith.c: Likewise.
46042         * lib/unistr/u8-stpcpy.c: Likewise.
46043         * lib/unistr/u8-stpncpy.c: Likewise.
46044         * lib/unistr/u8-strcat.c: Likewise.
46045         * lib/unistr/u8-strchr.c: Likewise.
46046         * lib/unistr/u8-strcmp.c: Likewise.
46047         * lib/unistr/u8-strcpy.c: Likewise.
46048         * lib/unistr/u8-strcspn.c: Likewise.
46049         * lib/unistr/u8-strdup.c: Likewise.
46050         * lib/unistr/u8-strlen.c: Likewise.
46051         * lib/unistr/u8-strmblen.c: Likewise.
46052         * lib/unistr/u8-strmbtouc.c: Likewise.
46053         * lib/unistr/u8-strncat.c: Likewise.
46054         * lib/unistr/u8-strncmp.c: Likewise.
46055         * lib/unistr/u8-strncpy.c: Likewise.
46056         * lib/unistr/u8-strnlen.c: Likewise.
46057         * lib/unistr/u8-strpbrk.c: Likewise.
46058         * lib/unistr/u8-strrchr.c: Likewise.
46059         * lib/unistr/u8-strspn.c: Likewise.
46060         * lib/unistr/u8-strstr.c: Likewise.
46061         * lib/unistr/u8-strtok.c: Likewise.
46062         * lib/unistr/u8-to-u16.c: Likewise.
46063         * lib/unistr/u8-to-u32.c: Likewise.
46064         * lib/unistr/u8-uctomb-aux.c: Likewise.
46065         * lib/unistr/u8-uctomb.c: Likewise.
46066         * lib/unitypes.h: Likewise.
46067         * lib/uniwidth.h: Likewise.
46068         * lib/uniwidth/cjk.h: Likewise.
46069         * lib/uniwidth/u16-strwidth.c: Likewise.
46070         * lib/uniwidth/u16-width.c: Likewise.
46071         * lib/uniwidth/u32-strwidth.c: Likewise.
46072         * lib/uniwidth/u32-width.c: Likewise.
46073         * lib/uniwidth/u8-strwidth.c: Likewise.
46074         * lib/uniwidth/u8-width.c: Likewise.
46075         * lib/uniwidth/width.c: Likewise.
46076
46077 2007-10-07  Bruno Haible  <bruno@clisp.org>
46078
46079         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46080         The file is still under LGPL (see modules/inttypes).
46081
46082 2007-10-06  Bruno Haible  <bruno@clisp.org>
46083
46084         * modules/trunc (Dependencies): Add 'extensions'.
46085         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46086         Reported by Ben Pfaff <blp@gnu.org>.
46087
46088 2007-10-06  Bruno Haible  <bruno@clisp.org>
46089
46090         * modules/freopen-tests: New file.
46091         * tests/test-freopen.c: New file.
46092
46093         * modules/fopen-tests: New file.
46094         * tests/test-fopen.c: New file.
46095
46096         * modules/fopen: New file.
46097         * lib/fopen.c: New file.
46098         * m4/fopen.m4: New file.
46099         * modules/freopen: New file.
46100         * lib/freopen.c: New file.
46101         * m4/freopen.m4: New file.
46102         * lib/stdio.in.h (fopen, freopen): New declarations.
46103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46104         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46105         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46106         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46107         * doc/functions/fopen.texi: Mention the 'fopen' module.
46108         * doc/functions/freopen.texi: Mention the 'freopen' module.
46109
46110 2007-10-06  Bruno Haible  <bruno@clisp.org>
46111
46112         * modules/open-tests: New file.
46113         * tests/test-open.c: New file.
46114
46115         * modules/open: New file.
46116         * lib/open.c: New file.
46117         * m4/open.m4: New file.
46118         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46119         lib/open.c does.
46120         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46121         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46122         macros.
46123         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46124         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46125         REPLACE_OPEN.
46126         * doc/functions/open.texi: Mention the 'open' module.
46127
46128 2007-10-04  Bruno Haible  <bruno@clisp.org>
46129
46130         * modules/ceill-tests: New file.
46131         * tests/test-ceill.c: New file.
46132
46133         * modules/ceill: New file.
46134         * lib/ceill.c: Replace entire file.
46135         * m4/ceill.m4: New file.
46136         * lib/math.in.h (ceill): Replace declaration.
46137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46138         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46139         * doc/functions/ceill.texi: Mention the 'ceill' module.
46140         * modules/mathl (Files): Remove lib/ceill.c.
46141         (Depends-on): Add ceill.
46142
46143 2007-10-04  Bruno Haible  <bruno@clisp.org>
46144
46145         * modules/ceilf-tests: New file.
46146         * tests/test-ceilf.c: New file.
46147
46148         * modules/ceilf: New file.
46149         * lib/ceil.c: New file.
46150         * lib/ceilf.c: New file.
46151         * m4/ceilf.m4: New file.
46152         * lib/math.in.h (ceilf): New declaration.
46153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46154         HAVE_DECL_CEILF.
46155         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46156         HAVE_DECL_CEILF.
46157         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46158
46159 2007-10-04  Bruno Haible  <bruno@clisp.org>
46160
46161         * modules/floorl-tests: New file.
46162         * tests/test-floorl.c: New file.
46163
46164         * modules/floorl: New file.
46165         * lib/floorl.c: Replace entire file.
46166         * m4/floorl.m4: New file.
46167         * lib/math.in.h (floorl): Replace declaration.
46168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46169         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46170         * doc/functions/floorl.texi: Mention the 'floorl' module.
46171         * modules/mathl (Files): Remove lib/floorl.c.
46172         (Depends-on): Add floorl.
46173
46174 2007-10-04  Bruno Haible  <bruno@clisp.org>
46175
46176         * modules/floorf-tests: New file.
46177         * tests/test-floorf.c: New file.
46178
46179         * modules/floorf: New file.
46180         * lib/floor.c: New file.
46181         * lib/floorf.c: New file.
46182         * m4/floorf.m4: New file.
46183         * lib/math.in.h (floorf): New declaration.
46184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46185         HAVE_DECL_FLOORF.
46186         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46187         HAVE_DECL_FLOORF.
46188         * doc/functions/floorf.texi: Mention the 'floorf' module.
46189
46190 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46191             Bruno Haible  <bruno@clisp.org>
46192
46193         Advertise for the Git server instead of the CVS server.
46194         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46195         repository instead of the CVS one.
46196         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46197         about all VCS systems generically.
46198         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46199
46200 2007-10-04  Bruno Haible  <bruno@clisp.org>
46201
46202         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46203         means.
46204         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46205
46206 2007-10-04  Bruno Haible  <bruno@clisp.org>
46207
46208         * modules/truncl-tests: New file.
46209         * tests/test-truncl.c: New file.
46210
46211         * modules/truncl: New file.
46212         * lib/truncl.c: New file.
46213         * m4/truncl.m4: New file.
46214         * lib/math.in.h (truncl): New declaration.
46215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46216         HAVE_DECL_TRUNCL.
46217         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46218         HAVE_DECL_TRUNCL.
46219         * doc/functions/truncl.texi: Mention the 'truncl' module.
46220
46221 2007-10-04  Bruno Haible  <bruno@clisp.org>
46222
46223         * modules/truncf-tests: New file.
46224         * tests/test-truncf.c: New file.
46225
46226         * modules/truncf: New file.
46227         * lib/trunc.c: Make paramerizable through USE_* macros.
46228         * lib/truncf.c: New file.
46229         * m4/truncf.m4: New file.
46230         * lib/math.in.h (truncf): New declaration.
46231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46232         HAVE_DECL_TRUNCF.
46233         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46234         HAVE_DECL_TRUNCF.
46235         * doc/functions/truncf.texi: Mention the 'truncf' module.
46236
46237 2007-10-03  Bruno Haible  <bruno@clisp.org>
46238
46239         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46240         augmentation also for tests modules.
46241         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46242         * modules/atexit-tests (Makefile.am): Likewise.
46243         * modules/binary-io-tests (Makefile.am): Likewise.
46244         * modules/c-strcase-tests (Makefile.am): Likewise.
46245         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46246         * modules/canonicalize-tests (Makefile.am): Likewise.
46247         * modules/closein-tests (Makefile.am): Likewise.
46248         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46249         * modules/freadahead-tests (Makefile.am): Likewise.
46250         * modules/fseek-tests (Makefile.am): Likewise.
46251         * modules/fseeko-tests (Makefile.am): Likewise.
46252         * modules/ftell-tests (Makefile.am): Likewise.
46253         * modules/ftello-tests (Makefile.am): Likewise.
46254         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46255         * modules/isnanl-tests (Makefile.am): Likewise.
46256         * modules/lseek-tests (Makefile.am): Likewise.
46257         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46258         * modules/mbscasestr-tests (Makefile.am): Likewise.
46259         * modules/mbschr-tests (Makefile.am): Likewise.
46260         * modules/mbscspn-tests (Makefile.am): Likewise.
46261         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46262         * modules/mbspbrk-tests (Makefile.am): Likewise.
46263         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46264         * modules/mbsrchr-tests (Makefile.am): Likewise.
46265         * modules/mbsspn-tests (Makefile.am): Likewise.
46266         * modules/mbsstr-tests (Makefile.am): Likewise.
46267         * modules/printf-posix-tests (Makefile.am): Likewise.
46268         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46269         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46270         * modules/tsearch-tests (Makefile.am): Likewise.
46271         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46272         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46273         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46274         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46275         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46276         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46277         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46278         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46279         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46280         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46281         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46282         * modules/xstrtol-tests (Makefile.am): Likewise.
46283         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46284         * modules/yesno-tests (Makefile.am): Likewise.
46285
46286 2007-10-03  Bruno Haible  <bruno@clisp.org>
46287
46288         * modules/trunc-tests: New file.
46289         * tests/test-trunc.c: New file.
46290
46291         * modules/trunc: New file.
46292         * lib/trunc.c: New file.
46293         * m4/trunc.m4: New file.
46294         * lib/math.in.h (trunc): New declaration.
46295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46296         HAVE_DECL_TRUNC.
46297         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46298         HAVE_DECL_TRUNC.
46299         * doc/functions/trunc.texi: Mention the 'trunc' module.
46300
46301 2007-10-03  Bruno Haible  <bruno@clisp.org>
46302
46303         * tests/test-fpending.c: New file, mostly copied
46304         from coreutils/lib/t-fpending.c.
46305         * modules/fpending-tests: New file.
46306
46307 2007-10-03  Bruno Haible  <bruno@clisp.org>
46308
46309         Port the stdio extensions to QNX (untested).
46310         * lib/fseterr.c (fseterr): Add support for QNX.
46311         * lib/fbufmode.c (fbufmode): Likewise.
46312         * lib/freadable.c (freadable): Likewise.
46313         * lib/fwritable.c (fwritable): Likewise.
46314         * lib/freading.c (freading): Likewise.
46315         * lib/fwriting.c (fwriting): Likewise.
46316         * lib/freadahead.c (freadahed): Likewise.
46317         * lib/fpurge.c (fpurge): Likewise.
46318         * lib/fseeko.c (rpl_fseeko): Likewise.
46319
46320 2007-10-03  Bruno Haible  <bruno@clisp.org>
46321             Jim Meyering  <jim@meyering.net>
46322             Eric Blake  <ebb9@byu.net>
46323
46324         * doc/relocatable.texi: Use @command instead of @program.
46325
46326 2007-10-02  Jim Meyering  <jim@meyering.net>
46327
46328         Perform one more "_.h" -> ".in.h" substitution.
46329         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46330         instead of unistd_.h here, too.
46331
46332 2007-10-01  Bruno Haible  <bruno@clisp.org>
46333
46334         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46335         Needed for the alloca-opt module.
46336
46337 2007-09-30  Bruno Haible  <bruno@clisp.org>
46338
46339         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46340         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46341         alloca_.h.
46342         * lib/argz.in.h: Renamed from lib/argz_.h.
46343         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46344         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46345         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46346         byteswap_.h.
46347         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46348         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46349         dirent_.h.
46350         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46351         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46352         fcntl_.h.
46353         * lib/float.in.h: Renamed from lib/float_.h.
46354         * modules/float (Files, Makefile.am): Use float.in.h instead of
46355         float_.h.
46356         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46357         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46358         fnmatch_.h.
46359         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46360         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46361         getopt_.h.
46362         * lib/glob.in.h: Renamed from lib/glob_.h.
46363         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46364         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46365         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46366         iconv_.h.
46367         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46368         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46369         inttypes_.h.
46370         * lib/locale.in.h: Renamed from lib/locale_.h.
46371         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46372         locale_.h.
46373         * lib/math.in.h: Renamed from lib/math_.h.
46374         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46375         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46376         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46377         of netinet_in_.h. Add dependency.
46378         * lib/poll.in.h: Renamed from lib/poll_.h.
46379         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46380         * lib/search.in.h: Renamed from lib/search_.h.
46381         * modules/search (Files, Makefile.am): Use search.in.h instead of
46382         search_.h.
46383         * lib/signal.in.h: Renamed from lib/signal_.h.
46384         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46385         _signal.h.
46386         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46387         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46388         stdbool_.h.
46389         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46390         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46391         stdint_.h.
46392         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46393         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46394         stdio_.h.
46395         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46396         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46397         stdlib_.h.
46398         * lib/string.in.h: Renamed from lib/string_.h.
46399         * modules/string (Files, Makefile.am): Use string.in.h instead of
46400         string_.h.
46401         * doc/gnulib-tool.texi (Initial import): Update.
46402         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46403         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46404         of sys_select_.h. Add dependency.
46405         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46406         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46407         of sys_socket_.h.
46408         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46409         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46410         sys_stat_.h.
46411         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46412         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46413         sys_time_.h.
46414         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46415         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46416         sysexits_.h.
46417         * lib/time.in.h: Renamed from lib/time_.h.
46418         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46419         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46420         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46421         unistd_.h.
46422         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46423         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46424         wchar_.h.
46425         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46426         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46427         wctype_.h.
46428         * build-aux/bootstrap (slurp): Update.
46429         * lib/.cppi-disable: Update.
46430
46431 2007-09-30  Bruno Haible  <bruno@clisp.org>
46432
46433         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46434         Needed on BeOS.
46435
46436 2007-09-30  Bruno Haible  <bruno@clisp.org>
46437
46438         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46439
46440 2007-09-29  Bruno Haible  <bruno@clisp.org>
46441
46442         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46443
46444 2007-09-29  Bruno Haible  <bruno@clisp.org>
46445
46446         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46447         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46448         * build-aux/install-reloc: Compile also areadlink.c.
46449         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46450
46451 2007-09-29  Bruno Haible  <bruno@clisp.org>
46452
46453         * gnulib-tool (func_emit_initmacro_done): Indentation.
46454
46455 2007-09-29  Bruno Haible  <bruno@clisp.org>
46456
46457         * README: Add CVS checkout update instructions.
46458         Info from Bob Proulx <bob@proulx.com>.
46459
46460 2007-09-28  Eric Blake  <ebb9@byu.net>
46461
46462         Provide move-if-change.
46463         * build-aux/move-if-change: New file, based on best practice
46464         rather than any canonical upstream location.
46465
46466 2007-09-28  Jim Meyering  <jim@meyering.net>
46467
46468         Fix canonicalize loop-detection corner case.
46469         Do not attempt to stat the symlink values stored via seen_triple.
46470         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46471         on linux-2.6.18, (but not 2.6.22).
46472         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46473         triple_compare.  The former compares dev,ino,filename, while the latter
46474         would actually stat dirname(filename) when dev and ino were equal.
46475         * lib/hash-triple.c: Install <string.h>.
46476         (STREQ): Define.
46477         (triple_compare_ino_str): New function.
46478         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46479
46480 2007-09-28  Eric Blake  <ebb9@byu.net>
46481
46482         Enforce that AC_REPLACE_FUNCS files exist.
46483         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46484         override check for typos.
46485
46486         Fix test-closein on Solaris 10.
46487         * tests/test-closein.c (main): Don't assume stdin can be inherited
46488         closed on all systems.
46489         * tests/test-closein.sh: Likewise.
46490         Reported by Piotr Tarnowski.
46491
46492 2007-09-28  Jim Meyering  <jim@meyering.net>
46493
46494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46495
46496 2007-09-27  Jim Meyering  <jim@meyering.net>
46497
46498         canonicalize: Avoid a false-positive cycle failure.
46499         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46500         Sort.  Remove cycle-check.
46501         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46502         not cycle-check.h.
46503         (seen_triple): New function.
46504         (canonicalize_filename_mode): Use it instead of cycle-check.
46505         * tests/test-canonicalize.c: Add a test for this bug.
46506         * tests/test-canonicalize.sh: Set up and run the test.
46507
46508         New module, file-set, from coreutils.
46509         * modules/file-set: Define it.
46510         * lib/file-set.c, lib/file-set.h: Implement.
46511
46512         New module, hash-triple, from coreutils.
46513         * modules/hash-triple: Define it.
46514         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46515
46516 2007-09-25  Eric Blake  <ebb9@byu.net>
46517
46518         Fix strerror on Interix.
46519         * lib/string_.h (strerror): Declare replacement.
46520         * doc/functions/strerror.texi (strerror): Document the Interix
46521         shortcoming.
46522         * modules/string (Makefile.am): Support new hooks.
46523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46524         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46525         gl_FUNC_STRERROR_SEPARATE.
46526         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46527         * lib/strerror.c (rpl_strerror): Provide replacement.
46528         * modules/strerror (Depends-on): Add string.
46529         (configure.ac): Detect use of module.
46530         * tests/test-strerror.c: New file.
46531         * modules/strerror-tests: New test module.
46532         * modules/argp (Depends-on): Add strerror.
46533         * modules/error (Depends-on): Likewise.
46534         Reported by Martin Koeppe.
46535
46536 2007-09-24  Bruno Haible  <bruno@clisp.org>
46537
46538         * README: Update git instructions.
46539
46540 2007-09-24  Eric Blake  <ebb9@byu.net>
46541
46542         Revert fpending breakage from 2007-09-08.
46543         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46544         __fpending.c.
46545
46546 2007-09-24  Jim Meyering  <jim@meyering.net>
46547
46548         filenamecat.c: Add a test.
46549         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46550         showing how the function works when DIR is the empty string.
46551
46552 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46553
46554         * tests/test-canonicalize.sh: Turn on executable bit.
46555
46556 2007-09-19  Eric Blake  <ebb9@byu.net>
46557
46558         * README: Update CVS instructions.
46559
46560 2007-09-18  Bruno Haible  <bruno@clisp.org>
46561
46562         * modules/areadlink: New file.
46563         * lib/areadlink.h (areadlink): New declaration.
46564         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46565
46566 2007-09-17  Jim Meyering  <jim@meyering.net>
46567
46568         * lib/savewd.c (ESTALE) [!defined]: Define.
46569         Reported to be required on Interix by Martin Koeppe.
46570
46571 2007-09-17  Bruno Haible  <bruno@clisp.org>
46572
46573         * gnulib-tool (func_version): Use $version.
46574
46575 2007-09-16  Bruno Haible  <bruno@clisp.org>
46576
46577         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46578         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46579         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46580         Reported by Greg Schafer <gschafer@zip.com.au>.
46581
46582 2007-09-15  Bruno Haible  <bruno@clisp.org>
46583
46584         * gnulib-tool (sed): Try a little harder to make bash understand the
46585         alias.
46586         Reported by Bruce Korb <bruce.korb@gmail.com>.
46587
46588 2007-09-13  Eric Blake  <ebb9@byu.net>
46589
46590         * ChangeLog: Remove conflict markers.
46591
46592 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46593
46594         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46595         Reported by Bruno Haible <bruno@clisp.org>.
46596
46597 2007-09-12  Bruno Haible  <bruno@clisp.org>
46598
46599         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46600         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46601         is not defined.
46602
46603 2007-09-12  Eric Blake  <ebb9@byu.net>
46604
46605         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46606         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46607         Autoconf definition.
46608         * modules/euidaccess (Depends-on): Add extensions, for
46609         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46610         * modules/fnmatch (Depends-on): Likewise.
46611         * modules/getaddrinfo (Depends-on): Likewise.
46612         * modules/getdelim (Depends-on): Likewise.
46613         * modules/getline (Depends-on): Likewise.
46614         * modules/getsubopt (Depends-on): Likewise.
46615         * modules/gettext (Depends-on): Likewise.
46616         * modules/group-member (Depends-on): Likewise.
46617         * modules/mbchar (Depends-on): Likewise.
46618         * modules/memmem (Depends-on): Likewise.
46619         * modules/mempcpy (Depends-on): Likewise.
46620         * modules/memrchr (Depends-on): Likewise.
46621         * modules/pagealign_alloc (Depends-on): Likewise.
46622         * modules/readutmp (Depends-on): Likewise.
46623         * modules/stpcpy (Depends-on): Likewise.
46624         * modules/stpncpy (Depends-on): Likewise.
46625         * modules/strchrnul (Depends-on): Likewise.
46626         * modules/strndup (Depends-on): Likewise.
46627         * modules/strsep (Depends-on): Likewise.
46628         * modules/strverscmp (Depends-on): Likewise.
46629         * modules/vasprintf (Depends-on): Likewise.
46630         * modules/wcwidth (Depends-on): Likewise.
46631         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46632         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46633         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46634         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46635         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46636         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46637         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46638         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46639         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46640         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46641         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46642         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46643         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46644         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46645         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46646         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46647         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46648         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46649         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46650         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46651         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46652         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46653         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46654         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46655         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46657         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46658         so that lock.m4 can be used in gettext without extensions module.
46659
46660 2007-09-11  Bruno Haible  <bruno@clisp.org>
46661
46662         * m4/isc-posix.m4: Remove file.
46663         Suggested by Eric Blake.
46664
46665 2007-09-11  Eric Blake  <ebb9@byu.net>
46666
46667         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46668
46669 2007-09-10  Bruno Haible  <bruno@clisp.org>
46670
46671         * posix-modules: Fix typo in error message.
46672         Reported by Matt <mkraai@beckman.com>.
46673
46674 2007-09-09  Bruno Haible  <bruno@clisp.org>
46675
46676         * doc/functions/getdelim.texi: Update list of platforms lacking the
46677         function.
46678         * doc/functions/getline.texi: Likewise.
46679
46680 2007-09-09  Jim Meyering  <jim@meyering.net>
46681
46682         * lib/hash.c (hash_initialize): Detect calloc failure.
46683         Reported by Bruno Haible.
46684
46685 2007-09-09  Bruno Haible  <bruno@clisp.org>
46686
46687         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46688         malloc or realloc fails.
46689
46690 2007-09-09  Bruno Haible  <bruno@clisp.org>
46691
46692         * modules/getcwd (Depends-on): Add malloc-posix.
46693         * modules/glob (Depends-on): Likewise.
46694         * modules/putenv (Depends-on): Likewise.
46695         * modules/strdup (Depends-on): Likewise.
46696         * modules/getdelim (Depends-on): Add realloc-posix.
46697         * modules/read-file (Depends-on): Likewise.
46698
46699 2007-09-09  Bruno Haible  <bruno@clisp.org>
46700
46701         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46702         (gl_FUNC_MALLOC_POSIX): Require it.
46703         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46704         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46705         * modules/realloc (Files): Add m4/malloc.m4.
46706         * modules/calloc (Files): Likewise.
46707
46708 2007-09-09  Bruno Haible  <bruno@clisp.org>
46709
46710         * modules/malloc-posix: New file.
46711         * modules/malloc (Depends-on): Add malloc-posix.
46712         * lib/malloc.c: Include errno.h.
46713         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46714         and a POSIX-compatible malloc into a single function. Set ENOMEM
46715         when returning NULL.
46716         * m4/malloc.m4: New file.
46717         * doc/functions/malloc.texi: Mention the malloc-posix module.
46718         * lib/stdlib_.h (malloc): New declaration.
46719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46720         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46721         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46722         and HAVE_MALLOC_POSIX.
46723
46724 2007-09-09  Bruno Haible  <bruno@clisp.org>
46725
46726         * modules/realloc-posix: New file.
46727         * modules/realloc (Depends-on): Add realloc-posix.
46728         * lib/realloc.c: Include errno.h.
46729         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46730         and a POSIX-compatible realloc into a single function. Set ENOMEM
46731         when returning NULL.
46732         * m4/realloc.m4: New file.
46733         * doc/functions/realloc.texi: Mention the realloc-posix module.
46734         * lib/stdlib_.h (realloc): New declaration.
46735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46736         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46737         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46738         and HAVE_REALLOC_POSIX.
46739
46740 2007-09-09  Bruno Haible  <bruno@clisp.org>
46741
46742         * modules/calloc-posix: New file.
46743         * modules/calloc (Depends-on): Add calloc-posix.
46744         * lib/calloc.c: Include errno.h.
46745         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46746         and a POSIX-compatible calloc into a single function. Set ENOMEM
46747         when returning NULL.
46748         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46749         * doc/functions/calloc.texi: Mention the calloc-posix module.
46750         * lib/stdlib_.h (calloc): New declaration.
46751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46752         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46753         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46754         and HAVE_CALLOC_POSIX.
46755
46756 2007-09-09  Bruno Haible  <bruno@clisp.org>
46757
46758         Allow for modules to show an arbitrary notice.
46759         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46760         * gnulib-tool: New option --extract-notice.
46761         (func_usage): Document it.
46762         (sed_extract_prog): Update.
46763         (func_get_notice): New function.
46764         (func_modules_notice): New function.
46765         (func_import, func_create_testdir): Invoke it.
46766         Suggested by Jim Meyering.
46767
46768 2007-09-09  Bruno Haible  <bruno@clisp.org>
46769
46770         * gnulib-tool: New options --verbose, --quiet.
46771         (func_usage): Document them.
46772         (verbose): New variable.
46773         (func_execute_command): New function.
46774         (func_import): Don't show the module list and the file list if
46775         $verbose < 0.
46776         (func_create_testdir): Likewise. Use func_execute_command.
46777         (func_create_megatestdir): Use func_execute_command.
46778
46779 2007-09-08  Bruno Haible  <bruno@clisp.org>
46780
46781         * gnulib-tool (func_import): Prefer rsync over wget when available,
46782         for fetching the PO files.
46783
46784 2007-09-08  Bruno Haible  <bruno@clisp.org>
46785
46786         * posix-modules: New file. Portions copied from gnulib-tool.
46787         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46788
46789 2007-09-08  Jim Meyering  <jim@meyering.net>
46790
46791         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46792         * lib/fpending.h: Rename from __fpending.h.
46793         * lib/fpending.c: Rename from __fpending.c.
46794         Include "fpending.h", not "__fpending.h".
46795         * lib/__fpending.h, lib/__fpending.c: Remove files.
46796         * modules/fpending (Files): Reflect new file names.
46797         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46798
46799 2007-09-08  Bruno Haible  <bruno@clisp.org>
46800
46801         * m4/inttypes-h.m4: Remove stub file.
46802
46803 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46804
46805         * doc/headers/stdint.texi: Discuss #include_next issue.
46806
46807 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46808
46809         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46810
46811 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46812
46813         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46814         in variable name.
46815
46816 2007-09-03  Jim Meyering  <jim@meyering.net>
46817
46818         New module: git-version-gen.
46819         * modules/git-version-gen: New file.
46820
46821         Import changes from coreutils for bootstrap script.
46822
46823         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46824
46825         bootstrap: uses rsync to download the .po files
46826         * build-aux/bootstrap (po_download_command_format): New global.
46827         (download_po_files): Use rsync.
46828         (update_po_files): Don't remove .po files after download,
46829         so future rsync runs can take advantage of the copies.
46830
46831         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46832
46833         Solve the unnecessary-.po-file-regeneration problem once and for all.
46834         * build-aux/bootstrap (download_po_files): New function, renamed from
46835         get_translations.  Now, downloads, but doesn't update LINGUAS.
46836         (update_po_files): New function.
46837
46838         bootstrap: Ignore more.
46839         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46840         uniwidth to e.g., lib/.gitignore.
46841         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46842
46843         * build-aux/bootstrap: New setting: vc_ignore.
46844         (insert_sorted_if_absent): Create $file if absent.
46845         Adapt to new, possibly empty, list: $vc_ignore.
46846
46847         bootstrap: generate more ignorable names
46848         * build-aux/bootstrap (slurp): When generating ignorable names,
46849         also map .sin to .sed, .gperf to .c, and .y to .c.
46850
46851 2007-09-03  Jim Meyering  <jim@meyering.net>
46852
46853         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46854         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46855
46856 2007-09-02  Bruno Haible  <bruno@clisp.org>
46857
46858         Fix mis-recognition of 'mcs' on QNX 6.
46859         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46860         output contains the string "Mono".
46861         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46862         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46863
46864 2007-09-01  Bruno Haible  <bruno@clisp.org>
46865
46866         Fix collision between uniwidth/* and linebreak modules.
46867         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46868         u32_width): Remove declarations.
46869         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46870         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46871         streq3, streq2, streq1, streq0): Remove functions.
46872         (STREQ): Remove macro.
46873         (is_cjk_encoding): Remove function.
46874         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46875         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46876         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46877         * NEWS: Document the change.
46878
46879 2007-09-01  Bruno Haible  <bruno@clisp.org>
46880
46881         * lib/streq.h: Add double-inclusion guard.
46882
46883 2007-09-01  Karl Berry  <karl@gnu.org>
46884
46885         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46886
46887 2007-08-28  Jim Meyering  <jim@meyering.net>
46888
46889         Rename mreadlink_with_size to areadlink_with_size.
46890         * NEWS: Document the change.
46891         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46892         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46893         * lib/mreadlink.h: Rename this to...
46894         * lib/areadlink.h: ...this.
46895         * modules/mreadlink-with-size: Rename this to...
46896         * modules/areadlink-with-size: ...this.
46897         * lib/canonicalize.c: Reflect the renaming.
46898         * modules/canonicalize: Likewise.
46899
46900 2007-08-26  Bruno Haible  <bruno@clisp.org>
46901
46902         * gnulib-tool (func_import): When deciding which files to remove,
46903         consider also dangling symbolic links.
46904         Reported by Eric Blake.
46905
46906 2007-08-26  Bruno Haible  <bruno@clisp.org>
46907
46908         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46909
46910 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46911
46912         * lib/readline.c: Don't include getline.h, the prototype is now
46913         found in stdio.h.
46914
46915 2007-08-23  Jim Meyering  <jim@meyering.net>
46916
46917         Getdelim touchup.
46918         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46919         around the funlockfile call, since funlockfile never sets errno.
46920         Don't set errno upon failed realloc.
46921
46922 2007-08-22  Eric Blake  <ebb9@byu.net>
46923
46924         Getline touchups.
46925         * lib/getdelim.c (getdelim): Revert regression that required *n to
46926         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46927         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46928         getdelim, rather than whether implementation is missing.
46929         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46930         * lib/stdio_.h (getline): Also declare if replacement is
46931         required.
46932         * doc/functions/getdelim.texi: New file.
46933         * doc/functions/getline.texi: Likewise.
46934         * doc/gnulib.texi (Function Substitutes): Add new files.
46935         Reported by Bruno Haible.
46936
46937 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46938
46939         * users.txt: Add Guile.
46940
46941 2007-08-22  Eric Blake  <ebb9@byu.net>
46942
46943         * tests/test-getdelim.c (main): Use remove, not unlink.
46944         * tests/test-getline.c (main): Likewise.
46945
46946         Move getline and getdelim into stdio.h, per POSIX 200x.
46947         * modules/getline (Files): Remove getline.h.
46948         (Depends-on): Add stdio.
46949         (configure.ac): Add module indicator.
46950         * modules/getdelim (Files): Remove getdelim.h.
46951         (Depends-on): Add stdio.
46952         (configure.ac): Add module indicator.
46953         * modules/stdio (Makefile.am): Work with new indicators.
46954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46955         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
46956         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46957         * lib/getdelim.h: Delete.
46958         * lib/getline.h: Delete.
46959         * lib/stdio_.h (getdelim, getline): Declare.
46960         * modules/getdelim-tests: New module.
46961         * modules/getline-tests: Likewise.
46962         * tests/test-getdelim.c: New file.
46963         * tests/test-getline.c: Likewise.
46964         * NEWS: Document the change.
46965         * lib/getline.c: Update choice of header.
46966         * lib/csharpcomp.c: Likewise.
46967         * lib/getpass.c: Likewise.
46968         * lib/javacomp.c: Likewise.
46969         * lib/javaversion.c: Likewise.
46970         * lib/yesno.c: Likewise.
46971         * lib/getdelim.c: Likewise.
46972         (getdelim): Set errno on failure, and avoid memory leak.
46973
46974 2007-08-19  Bruno Haible  <bruno@clisp.org>
46975
46976         * modules/closein (Depends-on): Add freadahead.
46977         * lib/closein.c: Include freadahead.h.
46978         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
46979         is zero.
46980
46981 2007-08-19  Bruno Haible  <bruno@clisp.org>
46982
46983         * modules/freadahead-tests: New file.
46984         * tests/test-freadahead.sh: New file.
46985         * tests/test-freadahead.c: New file.
46986
46987         * modules/freadahead: New file.
46988         * lib/freadahead.h: New file.
46989         * lib/freadahead.c: New file.
46990         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
46991         fbufmode, fpurge, freadable, fwritable.
46992
46993 2007-08-19  Eric Blake  <ebb9@byu.net>
46994
46995         Test yesno in combination with closein.
46996         * lib/yesno.c (yesno): Document use of stdin.
46997         * modules/yesno-tests (Files): New module.
46998         * tests/test-yesno.c (main): New file.
46999         * tests/test-yesno.sh: Likewise.
47000
47001 2007-08-19  Bruno Haible  <bruno@clisp.org>
47002
47003         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47004         * lib/fseeko.c (rpl_fseeko): Likewise.
47005         * lib/fseterr.c (fseterr): Likewise.
47006
47007 2007-08-19  Bruno Haible  <bruno@clisp.org>
47008
47009         * tests/test-lseek.c (main): Disable a test for BeOS.
47010         * doc/functions/lseek.texi: Document the BeOS bug.
47011
47012 2007-08-19  Bruno Haible  <bruno@clisp.org>
47013             Eric Blake  <ebb9@byu.net>
47014
47015         * lib/lseek.c: Include <sys/stat.h>.
47016         (rpl_lseek): Add workaround code also for Unix platforms.
47017         Needed for BeOS.
47018         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47019         * doc/functions/lseek.texi: Document BeOS definiency.
47020
47021 2007-08-18  Bruno Haible  <bruno@clisp.org>
47022
47023         * modules/fstrcmp-tests: New file.
47024         * tests/test-fstrcmp.c: New file.
47025
47026 2007-08-18  Bruno Haible  <bruno@clisp.org>
47027
47028         * modules/fstrcmp: New file, from GNU gettext with modifications.
47029         * lib/fstrcmp.h: New file, from GNU gettext.
47030         * lib/fstrcmp.c: New file, from GNU gettext.
47031         * MODULES.html.sh (String handling): Add fstrcmp.
47032
47033 2007-08-18  Bruno Haible  <bruno@clisp.org>
47034
47035         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47036         'bool'.
47037         (diag, compareseq): Remove const from the ctxt argument.
47038         (USE_HEURISTIC): Undefine at the end.
47039
47040 2007-08-18  Jim Meyering  <jim@meyering.net>
47041
47042         New file: lib/idcache.h
47043         * NEWS: Mention the addition.
47044         * modules/idcache (Files): Add lib/idcache.h
47045         * lib/idcache.c: Include "idcache.h".
47046         Don't include <sys/types.h>.
47047         Add a FIXME comment.
47048         Move file-scoped "static" declarations to the top.
47049         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47050
47051 2007-08-17  Bruno Haible  <bruno@clisp.org>
47052         and Paul Eggert  <eggert@cs.ucla.edu>
47053
47054         * MODULES.html.sh: Add diffseq.
47055         * modules/diffseq: New file.
47056         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47057         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47058
47059 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47060
47061         Import changes from coreutils for bootstrap script.
47062
47063         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47064
47065         * build-aux/bootstrap (slurp): Work even in environments where
47066         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47067         current code does not slurp files whose names start with ".", and
47068         this looks like it might be a troublesome area.
47069
47070         2007-07-11  Jim Meyering  <jim@meyering.net>
47071
47072         If there's a GPL vN copyright comment, require that N == 3.
47073
47074         2007-07-08  Jim Meyering  <jim@meyering.net>
47075
47076         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47077         * build-aux/bootstrap (mam_template): Move definition out of loop.
47078
47079         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47080
47081         * build-aux/bootstrap (symlink_to_dir): Rename function from
47082         symlink_to_gnulib.  Add a directory parameter.  Update all
47083         callers.
47084         (cp_mark_as_generated): Also check for -- and link to -- files in
47085         gl/.
47086
47087         2007-07-08  Jim Meyering  <jim@meyering.net>
47088
47089         Adapt to deeper hierarchy in gnulib.
47090         * build-aux/bootstrap (symlink_to_dir): If the destination
47091         directory doesn't exist, create it. This is required at least for
47092         "lib/uniwidth/cjk.h".
47093
47094         2007-05-15  Jim Meyering  <jim@meyering.net>
47095
47096         * build-aux/bootstrap: Now that generated Makefile.am files
47097         are no longer under version control, they must be created at
47098         bootstrap time.
47099
47100 2007-08-14  Ben Pfaff  <blp@gnu.org>
47101
47102         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47103
47104 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47105
47106         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47107         given the changes below.
47108         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47109         even on hosts that have padding bits beyond the supported 64.
47110
47111 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47112
47113         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47114         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47115         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47116         depends on it.
47117         (xstrtol_error): Remove.
47118         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47119         but with a different signature.
47120         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47121         * lib/xstrtol-error.c: Include exitfail.h.
47122         (xstrtol_fatal): New function, with a different signature from the
47123         old xstrtol_error, so that the caller need not worry about passing
47124         in an exit status, or about storage management of the option argument.
47125         (xstrtol_error): Now a static function.  Redo signature to
47126         implement xstrtol_fatal.  Output the correct number of hyphens in
47127         front of the option so that the caller need not worry about
47128         storage management.
47129         (N_): New macro.
47130         (_): Remove; not used now.
47131         * modules/xstrtol: Depend on getopt.
47132         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47133         of old STRTOL_FATAL_ERROR macro.
47134         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47135         of test program.
47136         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47137         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47138
47139 2007-08-08  Eric Blake  <ebb9@byu.net>
47140
47141         * lib/xstrtol-error.c: Add missing include.
47142
47143         Move xstrtol messages into gnulib domain, when --pobase is used.
47144         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47145         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47146         * modules/xstrtol (Files): Distribute new file.
47147         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47148         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47149         * tests/test-xstrtol.c: ...into new file.
47150         * tests/test-xstrtoul.c: Also test xstrtoul.
47151         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47152         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47153         * tests/test-xstrtol.sh: Drive the tests.
47154         * tests/test-xstrtoimax.sh: Likewise.
47155         * tests/test-xstrtoumax.sh: Likewise.
47156         * modules/xstrtol-tests: New module.
47157         * modules/xstrtoimax-tests: Likewise.
47158         * modules/xstrtoumax-tests: Likewise.
47159
47160 2007-08-08  Jim Meyering  <jim@meyering.net>
47161
47162         New function: mfile_name_concat.
47163         * lib/filenamecat.c (mfile_name_concat): New function, just like
47164         file_name_concat, but return NULL upon failure rather than exiting
47165         with a diagnostic.
47166         * lib/filenamecat.h: Declare it.
47167
47168 2007-08-07  Bruno Haible  <bruno@clisp.org>
47169
47170         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47171         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47172         warning from gcc.
47173         Reported by Eric Blake.
47174
47175 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47176
47177         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47178         * modules/crypto/arcfour (License): Likewise.
47179         * modules/crypto/des-tests (License): Likewise.
47180         * modules/crypto/gc-arctwo-tests (License): Likewise.
47181         * modules/crypto/gc-des-tests (License): Likewise.
47182         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47183         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47184         * modules/crypto/gc-md2-tests (License): Likewise.
47185         * modules/crypto/gc-md4-tests (License): Likewise.
47186         * modules/crypto/gc-md5-tests (License): Likewise.
47187         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47188         * modules/crypto/gc-rijndael-tests (License): Likewise.
47189         * modules/crypto/gc-sha1-tests (License): Likewise.
47190         * modules/crypto/gc-tests (License): Likewise.
47191         * modules/crypto/hmac-md5 (License): Likewise.
47192         * modules/crypto/hmac-sha1 (License): Likewise.
47193         * modules/crypto/md2-tests (License): Likewise.
47194         * modules/crypto/md4-tests (License): Likewise.
47195         * modules/crypto/md5 (License): Likewise.
47196         * modules/crypto/rijndael (License): Likewise.
47197         * modules/crypto/sha1 (License): Likewise.
47198         * modules/memxor (License): Likewise.
47199
47200 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47201         and Bruno Haible  <bruno@clisp.org>
47202
47203         * NEWS: Describe interface changes to human, xstrtol.
47204         * lib/human.h: Include <xstrtol.h>.
47205         (human_options): Return enum strtol_error, not int.  Remove
47206         bool arg; take int * instead.
47207         * lib/human.c: Don't include "gettext.h".
47208         (_): Remove; no longer used.
47209         Don't include <xstrtol.h>, since human.h does it.
47210         (human_options): Adjust to abovementioned interface changes.
47211         Do not report error to stderr; that's now the caller's
47212         responsibility.
47213         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47214         interface change.
47215         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47216         Str, Argument_type_string.  All uses changed.  Put " argument"
47217         in diagnostics to make them clearer.  Change wording of suffix
47218         message for clarity.
47219         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47220         Argument_type_string.
47221         (STRTOL_FATAL_WARN): Remove; no longer used.
47222         * modules/human (Depends-on): Remove gettext-h.
47223
47224 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47225
47226         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47227
47228 2007-07-31  Bruno Haible  <bruno@clisp.org>
47229
47230         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47231         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47232         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47233
47234 2007-07-31  Bruno Haible  <bruno@clisp.org>
47235
47236         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47237         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47238
47239 2007-07-30  Bruno Haible  <bruno@clisp.org>
47240
47241         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47242         * modules/c-ctype (License): Likewise.
47243         * modules/c-strcase (License): Likewise.
47244         * modules/check-version (License): Likewise.
47245         * modules/iconv (License): Likewise.
47246         * modules/iconv_open (License): Likewise.
47247         * modules/read-file (License): Likewise.
47248         * modules/striconv (License): Likewise.
47249         * modules/strverscmp (License): Likewise.
47250         * modules/vasprintf (License): Likewise.
47251         * modules/crypto/des (License): Likewise.
47252         * modules/crypto/gc (License): Likewise.
47253         * modules/crypto/gc-arcfour (License): Likewise.
47254         * modules/crypto/gc-arctwo (License): Likewise.
47255         * modules/crypto/gc-des (License): Likewise.
47256         * modules/crypto/gc-hmac-md5 (License): Likewise.
47257         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47258         * modules/crypto/gc-md2 (License): Likewise.
47259         * modules/crypto/gc-md4 (License): Likewise.
47260         * modules/crypto/gc-md5 (License): Likewise.
47261         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47262         * modules/crypto/gc-random (License): Likewise.
47263         * modules/crypto/gc-rijndael (License): Likewise.
47264         * modules/crypto/gc-sha1 (License): Likewise.
47265         * modules/crypto/md2 (License): Likewise.
47266         * modules/crypto/md4 (License): Likewise.
47267
47268 2007-07-30  Jim Meyering  <jim@meyering.net>
47269
47270         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47271         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47272         it has valid stat data.  This bug would cause du not to count the
47273         sizes of inaccessible directories.
47274         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47275         in <http://bugzilla.redhat.com/250077>.
47276
47277 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47278             Bruno Haible  <bruno@clisp.org>
47279
47280         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47281         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47282         #include_next, gives a diagnostic about it, but reports no error in
47283         the exit code.
47284         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47285
47286 2007-07-24  Ben Pfaff  <blp@gnu.org>
47287
47288         Improve name: "count-one-bits" is better than "popcount".
47289         * MODULES.html.sh: Update name.
47290         * lib/popcount.h: Renamed lib/count-one-bits.h.
47291         (popcount): Renamed count_one_bits.
47292         (popcountl): Renamed count_one_bits_l.
47293         (popcountll): Renamed count_one_bits_ll.
47294         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47295         * modules/popcount: Renamed module/count-one-bits.
47296         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47297         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47298
47299 2007-07-23  Ben Pfaff  <blp@gnu.org>
47300
47301         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47302         better code generation, and add U to large constants to avoid
47303         warnings, in non-GCC case.
47304         Suggested by Bruno Haible.
47305
47306 2007-07-23  Ben Pfaff  <blp@gnu.org>
47307
47308         * lib/popcount.h: Use verify_true instead of if...abort.
47309         * modules/popcount: Depend on verify module.
47310         Suggested by Jim Meyering.
47311
47312 2007-07-23  Bruno Haible  <bruno@clisp.org>
47313
47314         * gnulib-tool (func_import): Create a .cvsignore file also when the
47315         directory is not yet in CVS but the toplevel directory is. When
47316         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47317         Reported by Karl Berry.
47318
47319 2007-07-22  Ben Pfaff  <blp@gnu.org>
47320
47321         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47322         case.
47323         Suggested by Eric Blake.
47324
47325 2007-07-22  Ben Pfaff  <blp@gnu.org>
47326
47327         New module: popcount.
47328         * MODULES.html.sh: Add popcount.
47329         * modules/popcount: New file.
47330         * modules/popcount-tests: New file.
47331         * tests/test-popcount.c: New file.
47332         * lib/popcount.h: New file.
47333         * m4/popcount.m4: New file.
47334
47335 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47336
47337         * build-aux/announce-gen: Update to GPLv3.
47338
47339         * build-aux/config.guess: Update from config.
47340
47341 2007-07-21  Bruno Haible  <bruno@clisp.org>
47342
47343         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47344         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47345
47346 2007-07-20  Jim Meyering  <jim@meyering.net>
47347
47348         * check-module: Diagnose a self-dependency.
47349
47350 2007-07-19  Bruno Haible  <bruno@clisp.org>
47351
47352         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47353         empty.
47354         Reported by Eric Blake.
47355
47356 2007-07-18  Bruno Haible  <bruno@clisp.org>
47357
47358         * gnulib-tool: New options --po-base, --po-domain.
47359         (func_usage): Document them.
47360         (pobase, po_domain): New variables.
47361         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47362         DEFAULT_TEXT_DOMAIN.
47363         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47364         (func_import): Consider pobase and po_domain. Create a po/ directory.
47365         (func_create_testdir): Set pobase and po_domain to empty.
47366         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47367         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47368
47369 2007-07-18  Bruno Haible  <bruno@clisp.org>
47370
47371         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47372         EXTRA_DIST augmentation for files in build-aux/.
47373
47374 2007-07-16  Bruno Haible  <bruno@clisp.org>
47375
47376         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47377         * modules/getdelim (License): Likewise.
47378
47379 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47380
47381         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47382         * modules/d-type (License): Likewise.
47383         * modules/extensions (License): Likewise.
47384         * modules/fnmatch (License): Likewise.
47385         * modules/fseeko (License): Likewise.
47386         * modules/getaddrinfo (License): Likewise.
47387         * modules/getline (License): Likewise.
47388         * modules/getlogin_r (License): Likewise.
47389         * modules/getpass (License): Likewise.
47390         * modules/gettimeofday (License): Likewise.
47391         * modules/glob (License): Likewise.
47392         * modules/inet_ntop (License): Likewise.
47393         * modules/malloc (License): Likewise.
47394         * modules/malloca (License): Likewise.
47395         * modules/memmem (License): Likewise.
47396         * modules/mempcpy (License): Likewise.
47397         * modules/memset (License): Likewise.
47398         * modules/minmax (License): Likewise.
47399         * modules/mktime (License): Likewise.
47400         * modules/netinet_in (License): Likewise.
47401         * modules/pathmax (License): Likewise.
47402         * modules/poll (License): Likewise.
47403         * modules/regex (License): Likewise.
47404         * modules/snprintf (License): Likewise.
47405         * modules/stdbool (License): Likewise.
47406         * modules/stdint (License): Likewise.
47407         * modules/stdio (License): Likewise.
47408         * modules/strcase (License): Likewise.
47409         * modules/strcasestr (License): Likewise.
47410         * modules/strdup (License): Likewise.
47411         * modules/string (License): Likewise.
47412         * modules/strndup (License): Likewise.
47413         * modules/strnlen (License): Likewise.
47414         * modules/strpbrk (License): Likewise.
47415         * modules/strptime (License): Likewise.
47416         * modules/strsep (License): Likewise.
47417         * modules/sys_select (License): Likewise.
47418         * modules/sys_socket (License): Likewise.
47419         * modules/sys_stat (License): Likewise.
47420         * modules/sys_time (License): Likewise.
47421         * modules/time (License): Likewise.
47422         * modules/time_r (License): Likewise.
47423         * modules/timegm (License): Likewise.
47424         * modules/unistd (License): Likewise.
47425         * modules/vsnprintf (License): Likewise.
47426         * modules/wctype (License): Likewise.
47427
47428 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47429
47430         * modules/argz (License): LGPLv2+.
47431
47432 2007-07-15  Karl Berry  <karl@gnu.org>
47433
47434         * doc/gnulib.texi: revise node structure per new fdl.texi.
47435
47436 2007-07-14  Bruno Haible  <bruno@clisp.org>
47437
47438         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47439         the output file.
47440         * lib/uniname/uninames.h: Regenerated.
47441
47442 2007-07-14  Karl Berry  <karl@gnu.org>
47443
47444         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47445         omitting sectioning and index commands.
47446
47447 2007-07-13  Bruno Haible  <bruno@clisp.org>
47448
47449         New gnulib-tool option --more-symlinks.
47450         * gnulib-tool (func_usage): Document --more-symlinks.
47451         (do_copyrights): New variable.
47452         Recognize option --more-symlinks.
47453         (func_import): Don't add a copyright notice transform to
47454         sed_transform_lib_file if do_copyrights is empty.
47455
47456 2007-07-13  Bruno Haible  <bruno@clisp.org>
47457
47458         * lib/vasnprintf.c (decimal_point_char): Define also if
47459         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47460         && !NEED_PRINTF_DIRECTIVE_A.
47461         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47462         Gary V. Vaughan <gary@gnu.org>.
47463
47464 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47465
47466         * lib/inttypes_.h: Undo previous change, since it was fixed
47467         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47468
47469 2007-07-13  Bruno Haible  <bruno@clisp.org>
47470
47471         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47472         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47473
47474 2007-07-13  Jim Meyering  <jim@meyering.net>
47475
47476         df: Don't fail for Tru64's "file-on-file mount".
47477         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47478         so we fall through and use statfs instead.  Details here:
47479         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47480         Reported by Albert Chin.
47481
47482 2007-07-13  Bruno Haible  <bruno@clisp.org>
47483
47484         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47485         * modules/configmake (License): Likewise.
47486         * modules/gettext (License): Likewise.
47487         * modules/gettext-h (License): Likewise.
47488         * modules/include_next (License): Likewise.
47489         * modules/link-warning (License): Likewise.
47490         * modules/localcharset (License): Likewise.
47491         * modules/localename (License): Likewise.
47492         * modules/lock (License): Likewise.
47493         * modules/relocatable-lib-lgpl (License): Likewise.
47494         * modules/size_max (License): Likewise.
47495         * modules/vasnprintf (License): Likewise.
47496         * modules/wchar (License): Likewise.
47497         * modules/xsize (License): Likewise.
47498
47499 2007-07-13  Bruno Haible  <bruno@clisp.org>
47500
47501         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47502         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47503
47504 2007-07-12  Bruno Haible  <bruno@clisp.org>
47505
47506         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47507         in the modules files.
47508
47509 2007-07-11  Karl Berry  <karl@gnu.org>
47510
47511         * MODULES.html.sh (func_module): use
47512          sed -e '\|^'"${includefile}"'$|d'
47513          instead of /.../d, to avoid errors on $includefile's containing /.
47514
47515 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47516
47517         * gnulib-tool (func_import): Avoid duplication of --avoid
47518         statements
47519         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47520         names to `_' in variable names.
47521
47522 2007-07-10  Eric Blake  <ebb9@byu.net>
47523
47524         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47525         * NEWS: Document this change.
47526
47527 2007-07-08  Bruno Haible  <bruno@clisp.org>
47528
47529         Update to Unicode 5.0.
47530         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47531         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47532         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47533         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47534         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47535         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47536         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47537         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47538         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47539         U+10A3F, U+1D242..U+1D244.
47540         (nonspacing_table_ind): Update.
47541         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47542         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47543
47544 2007-07-08  Bruno Haible  <bruno@clisp.org>
47545
47546         Update to Unicode 5.0.
47547         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47548         code transform. Extend the name index field of unicode_name_to_code and
47549         unicode_code_to_name from 16 to 24 bits.
47550         * lib/uniname/uniname.c (unicode_character_name,
47551         unicode_name_character): Add the range 0x12xxx to the code transform.
47552         * lib/uniname/uninames.h: Regenerated.
47553         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47554
47555 2007-07-07  Bruno Haible  <bruno@clisp.org>
47556
47557         * modules/wcwidth-tests: New file.
47558         * tests/test-wcwidth.c: New file.
47559
47560         Work around MacOS X wcwidth() bug.
47561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47562         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47563         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47564         original wcwidth in non-UTF-8 locales.
47565         * modules/wcwidth (Depends-on): Add localcharset, streq,
47566         uniwidth/width.
47567         * doc/functions/wcwidth.texi: Update.
47568
47569 2007-07-07  Bruno Haible  <bruno@clisp.org>
47570
47571         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47572         (wcwidth): New declaration.
47573         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47574         macros.
47575         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47576         here. Prepare for creating <wchar.h> unconditionally.
47577         * modules/wchar (Depends-on): Add link-warning.
47578         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47579         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47580         * lib/wcwidth.h: Remove file.
47581         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47582         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47583         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47584         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47585         (Include): Replace wcwidth.h with <wchar.h>.
47586         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47587         * lib/mbchar.h: Don't include wcwidth.h.
47588         * lib/mbswidth.c: Likewise.
47589         * NEWS: Mention the change.
47590
47591 2007-07-07  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47594         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47595         definition with an external declaration.
47596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47597         defined as a function. Remove AC_C_INLINE requirement.
47598         * modules/wcwidth (Files): Add lib/wcwidth.c.
47599         (Makefile.am): Remove redundant statement.
47600
47601 2007-07-07  Bruno Haible  <bruno@clisp.org>
47602
47603         * MODULES.html.sh (Unicode string functions): Add the new modules.
47604
47605         * tests/uniwidth/test-u32-strwidth.c: New file.
47606         * modules/uniwidth/u32-strwidth-tests: New file.
47607
47608         * lib/uniwidth/u32-strwidth.c: New file.
47609         * modules/uniwidth/u32-strwidth: New file.
47610
47611         * tests/uniwidth/test-u16-strwidth.c: New file.
47612         * modules/uniwidth/u16-strwidth-tests: New file.
47613
47614         * lib/uniwidth/u16-strwidth.c: New file.
47615         * modules/uniwidth/u16-strwidth: New file.
47616
47617         * tests/uniwidth/test-u8-strwidth.c: New file.
47618         * modules/uniwidth/u8-strwidth-tests: New file.
47619
47620         * lib/uniwidth/u8-strwidth.c: New file.
47621         * modules/uniwidth/u8-strwidth: New file.
47622
47623         * tests/uniwidth/test-u32-width.c: New file.
47624         * modules/uniwidth/u32-width-tests: New file.
47625
47626         * lib/uniwidth/u32-width.c: New file.
47627         * modules/uniwidth/u32-width: New file.
47628
47629         * tests/uniwidth/test-u16-width.c: New file.
47630         * modules/uniwidth/u16-width-tests: New file.
47631
47632         * lib/uniwidth/u16-width.c: New file.
47633         * modules/uniwidth/u16-width: New file.
47634
47635         * tests/uniwidth/test-u8-width.c: New file.
47636         * modules/uniwidth/u8-width-tests: New file.
47637
47638         * lib/uniwidth/u8-width.c: New file.
47639         * modules/uniwidth/u8-width: New file.
47640
47641         * tests/uniwidth/test-uc_width.c: New file.
47642         * modules/uniwidth/width-tests: New file.
47643
47644         * lib/uniwidth/width.c: New file, from GNU libiconv.
47645         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47646         * modules/uniwidth/width: New file.
47647
47648         * lib/uniwidth.h: New file, from GNU libiconv.
47649         * modules/uniwidth/base: New file.
47650
47651 2007-07-07  Bruno Haible  <bruno@clisp.org>
47652
47653         * lib/uniname.h: New file, from GNU gettext.
47654         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47655         * lib/uniname/uninames.h: New file, from GNU gettext.
47656         * lib/uniname/uniname.c: New file, from GNU gettext.
47657         * tests/uniname/test-uninames.sh: New file.
47658         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47659         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47660         * modules/uniname/base: New file.
47661         * modules/uniname/uniname: New file.
47662         * modules/uniname/uniname-tests: New file.
47663         * MODULES.html.sh (Unicode string functions): Add the new modules.
47664
47665 2007-07-06  Bruno Haible  <bruno@clisp.org>
47666
47667         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47668
47669 2007-07-06  Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47672         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47673         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47674         include <sys/time.h>.
47675         Reported by Eric Blake.
47676
47677 2007-07-06  Eric Blake  <ebb9@byu.net>
47678
47679         Fix testing canonicalize on cygwin.
47680         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47681         Revert patch from 2007-06-19.
47682         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47683         canonicalize module is also in use.
47684         * tests/test-canonicalize.c: New file.
47685         * tests/test-canonicalize.sh: Likewise.
47686         * modules/canonicalize-tests: Likewise.
47687
47688 2007-07-06  Jim Meyering  <jim@meyering.net>
47689
47690         * lib/getugroups.c (getugroups): Detect getgrent failure.
47691         Adjust comment to reflect reality: this function may return -1.
47692
47693 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47694
47695         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47696         the new TP address.
47697         (usage): Fix typo
47698         (gnulib_mk): New variable.
47699
47700 2007-07-05  Jim Meyering  <jim@meyering.net>
47701
47702         Don't let endgrent clobber errno, no matter how improbable.
47703         * lib/getugroups.c (getugroups): Save and restore errno around
47704         endgrent call.
47705
47706         Close the group DB even when failing with 2^31 or more members.
47707         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47708
47709 2007-07-04  Jim Meyering  <jim@meyering.net>
47710
47711         * lib/getugroups.h: New file.
47712         * lib/getugroups.c: Include "getugroups.h".
47713         Remove uses of "register" keyword.
47714         Move local variable, "cp", down into scope where used.
47715         Give "username" parameter the "const" attribute.
47716         * modules/getugroups (Files): Add lib/getugroups.h
47717
47718 2007-07-04  Karl Berry  <karl@gnu.org>
47719
47720         * MODULES.html.sh (func_all_modules): Complete rename of
47721         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47722
47723 2007-07-02  Bruno Haible  <bruno@clisp.org>
47724
47725         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47726         mode, when inttypes.h comes from gnulib.
47727         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47728
47729 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47730
47731         * NEWS: Mention lgpl module name change.
47732
47733         * modules/lgpl-2.1: Renamed from lgpl.
47734
47735         * NEWS: Mention gpl module name change.
47736
47737         * modules/gpl-3.0: New file, based on gpl-2.0.
47738
47739         * modules/gpl-2.0: Renamed from gpl.
47740
47741         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47742         doc/gpl-2.0.texi.
47743
47744 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47745
47746         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47747         #define __STDC_LIMIT_MACROS temporarily while including
47748         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47749         Problem reported by Joel E. Denny in
47750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47751
47752 2007-07-01  Bruno Haible  <bruno@clisp.org>
47753
47754         * lib/unistdio.h: New file.
47755         * lib/unistdio/u-asnprintf.h: New file.
47756         * lib/unistdio/u-asprintf.h: New file.
47757         * lib/unistdio/u-printf-args.c: New file.
47758         * lib/unistdio/u-printf-args.h: New file.
47759         * lib/unistdio/u-printf-parse.h: New file.
47760         * lib/unistdio/u-snprintf.h: New file.
47761         * lib/unistdio/u-sprintf.h: New file.
47762         * lib/unistdio/u-vasprintf.h: New file.
47763         * lib/unistdio/u-vsnprintf.h: New file.
47764         * lib/unistdio/u-vsprintf.h: New file.
47765         * lib/unistdio/ulc-asnprintf.c: New file.
47766         * lib/unistdio/ulc-asprintf.c: New file.
47767         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47768         * lib/unistdio/ulc-printf-parse.c: New file.
47769         * lib/unistdio/ulc-snprintf.c: New file.
47770         * lib/unistdio/ulc-sprintf.c: New file.
47771         * lib/unistdio/ulc-vasnprintf.c: New file.
47772         * lib/unistdio/ulc-vasprintf.c: New file.
47773         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47774         * lib/unistdio/ulc-vsnprintf.c: New file.
47775         * lib/unistdio/ulc-vsprintf.c: New file.
47776         * lib/unistdio/u8-asnprintf.c: New file.
47777         * lib/unistdio/u8-asprintf.c: New file.
47778         * lib/unistdio/u8-printf-parse.c: New file.
47779         * lib/unistdio/u8-snprintf.c: New file.
47780         * lib/unistdio/u8-sprintf.c: New file.
47781         * lib/unistdio/u8-vasnprintf.c: New file.
47782         * lib/unistdio/u8-vasprintf.c: New file.
47783         * lib/unistdio/u8-vsnprintf.c: New file.
47784         * lib/unistdio/u8-vsprintf.c: New file.
47785         * lib/unistdio/u8-u8-asnprintf.c: New file.
47786         * lib/unistdio/u8-u8-asprintf.c: New file.
47787         * lib/unistdio/u8-u8-snprintf.c: New file.
47788         * lib/unistdio/u8-u8-sprintf.c: New file.
47789         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47790         * lib/unistdio/u8-u8-vasprintf.c: New file.
47791         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47792         * lib/unistdio/u8-u8-vsprintf.c: New file.
47793         * lib/unistdio/u16-asnprintf.c: New file.
47794         * lib/unistdio/u16-asprintf.c: New file.
47795         * lib/unistdio/u16-printf-parse.c: New file.
47796         * lib/unistdio/u16-snprintf.c: New file.
47797         * lib/unistdio/u16-sprintf.c: New file.
47798         * lib/unistdio/u16-vasnprintf.c: New file.
47799         * lib/unistdio/u16-vasprintf.c: New file.
47800         * lib/unistdio/u16-vsnprintf.c: New file.
47801         * lib/unistdio/u16-vsprintf.c: New file.
47802         * lib/unistdio/u16-u16-asnprintf.c: New file.
47803         * lib/unistdio/u16-u16-asprintf.c: New file.
47804         * lib/unistdio/u16-u16-snprintf.c: New file.
47805         * lib/unistdio/u16-u16-sprintf.c: New file.
47806         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47807         * lib/unistdio/u16-u16-vasprintf.c: New file.
47808         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47809         * lib/unistdio/u16-u16-vsprintf.c: New file.
47810         * lib/unistdio/u32-asnprintf.c: New file.
47811         * lib/unistdio/u32-asprintf.c: New file.
47812         * lib/unistdio/u32-printf-parse.c: New file.
47813         * lib/unistdio/u32-snprintf.c: New file.
47814         * lib/unistdio/u32-sprintf.c: New file.
47815         * lib/unistdio/u32-vasnprintf.c: New file.
47816         * lib/unistdio/u32-vasprintf.c: New file.
47817         * lib/unistdio/u32-vsnprintf.c: New file.
47818         * lib/unistdio/u32-vsprintf.c: New file.
47819         * lib/unistdio/u32-u32-asnprintf.c: New file.
47820         * lib/unistdio/u32-u32-asprintf.c: New file.
47821         * lib/unistdio/u32-u32-snprintf.c: New file.
47822         * lib/unistdio/u32-u32-sprintf.c: New file.
47823         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47824         * lib/unistdio/u32-u32-vasprintf.c: New file.
47825         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47826         * lib/unistdio/u32-u32-vsprintf.c: New file.
47827         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47828         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47829         * tests/unistdio/test-ulc-printf1.h: New file.
47830         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47831         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47832         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47833         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47834         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47835         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47836         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47837         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47838         * tests/unistdio/test-u8-asnprintf1.c: New file.
47839         * tests/unistdio/test-u8-asnprintf1.h: New file.
47840         * tests/unistdio/test-u8-printf1.h: New file.
47841         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47842         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47843         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47844         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47845         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47846         * tests/unistdio/test-u8-vasprintf1.c: New file.
47847         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47848         * tests/unistdio/test-u8-vsprintf1.c: New file.
47849         * tests/unistdio/test-u16-asnprintf1.c: New file.
47850         * tests/unistdio/test-u16-asnprintf1.h: New file.
47851         * tests/unistdio/test-u16-printf1.h: New file.
47852         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47853         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47854         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47855         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47856         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47857         * tests/unistdio/test-u16-vasprintf1.c: New file.
47858         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47859         * tests/unistdio/test-u16-vsprintf1.c: New file.
47860         * tests/unistdio/test-u32-asnprintf1.c: New file.
47861         * tests/unistdio/test-u32-asnprintf1.h: New file.
47862         * tests/unistdio/test-u32-printf1.h: New file.
47863         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47864         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47865         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47866         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47867         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47868         * tests/unistdio/test-u32-vasprintf1.c: New file.
47869         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47870         * tests/unistdio/test-u32-vsprintf1.c: New file.
47871         * modules/unistdio/base: New file.
47872         * modules/unistdio/u-printf-args: New file.
47873         * modules/unistdio/ulc-asnprintf: New file.
47874         * modules/unistdio/ulc-asprintf: New file.
47875         * modules/unistdio/ulc-fprintf: New file.
47876         * modules/unistdio/ulc-printf-parse: New file.
47877         * modules/unistdio/ulc-snprintf: New file.
47878         * modules/unistdio/ulc-sprintf: New file.
47879         * modules/unistdio/ulc-vasnprintf: New file.
47880         * modules/unistdio/ulc-vasprintf: New file.
47881         * modules/unistdio/ulc-vfprintf: New file.
47882         * modules/unistdio/ulc-vsnprintf: New file.
47883         * modules/unistdio/ulc-vsprintf: New file.
47884         * modules/unistdio/u8-asnprintf: New file.
47885         * modules/unistdio/u8-asprintf: New file.
47886         * modules/unistdio/u8-printf-parse: New file.
47887         * modules/unistdio/u8-snprintf: New file.
47888         * modules/unistdio/u8-sprintf: New file.
47889         * modules/unistdio/u8-vasnprintf: New file.
47890         * modules/unistdio/u8-vasprintf: New file.
47891         * modules/unistdio/u8-vsnprintf: New file.
47892         * modules/unistdio/u8-vsprintf: New file.
47893         * modules/unistdio/u8-u8-asnprintf: New file.
47894         * modules/unistdio/u8-u8-asprintf: New file.
47895         * modules/unistdio/u8-u8-snprintf: New file.
47896         * modules/unistdio/u8-u8-sprintf: New file.
47897         * modules/unistdio/u8-u8-vasnprintf: New file.
47898         * modules/unistdio/u8-u8-vasprintf: New file.
47899         * modules/unistdio/u8-u8-vsnprintf: New file.
47900         * modules/unistdio/u8-u8-vsprintf: New file.
47901         * modules/unistdio/u16-asnprintf: New file.
47902         * modules/unistdio/u16-asprintf: New file.
47903         * modules/unistdio/u16-printf-parse: New file.
47904         * modules/unistdio/u16-snprintf: New file.
47905         * modules/unistdio/u16-sprintf: New file.
47906         * modules/unistdio/u16-vasnprintf: New file.
47907         * modules/unistdio/u16-vasprintf: New file.
47908         * modules/unistdio/u16-vsnprintf: New file.
47909         * modules/unistdio/u16-vsprintf: New file.
47910         * modules/unistdio/u16-u16-asnprintf: New file.
47911         * modules/unistdio/u16-u16-asprintf: New file.
47912         * modules/unistdio/u16-u16-snprintf: New file.
47913         * modules/unistdio/u16-u16-sprintf: New file.
47914         * modules/unistdio/u16-u16-vasnprintf: New file.
47915         * modules/unistdio/u16-u16-vasprintf: New file.
47916         * modules/unistdio/u16-u16-vsnprintf: New file.
47917         * modules/unistdio/u16-u16-vsprintf: New file.
47918         * modules/unistdio/u32-asnprintf: New file.
47919         * modules/unistdio/u32-asprintf: New file.
47920         * modules/unistdio/u32-printf-parse: New file.
47921         * modules/unistdio/u32-snprintf: New file.
47922         * modules/unistdio/u32-sprintf: New file.
47923         * modules/unistdio/u32-vasnprintf: New file.
47924         * modules/unistdio/u32-vasprintf: New file.
47925         * modules/unistdio/u32-vsnprintf: New file.
47926         * modules/unistdio/u32-vsprintf: New file.
47927         * modules/unistdio/u32-u32-asnprintf: New file.
47928         * modules/unistdio/u32-u32-asprintf: New file.
47929         * modules/unistdio/u32-u32-snprintf: New file.
47930         * modules/unistdio/u32-u32-sprintf: New file.
47931         * modules/unistdio/u32-u32-vasnprintf: New file.
47932         * modules/unistdio/u32-u32-vasprintf: New file.
47933         * modules/unistdio/u32-u32-vsnprintf: New file.
47934         * modules/unistdio/u32-u32-vsprintf: New file.
47935         * modules/unistdio/ulc-asnprintf-tests: New file.
47936         * modules/unistdio/ulc-vasnprintf-tests: New file.
47937         * modules/unistdio/ulc-vasprintf-tests: New file.
47938         * modules/unistdio/ulc-vsnprintf-tests: New file.
47939         * modules/unistdio/ulc-vsprintf-tests: New file.
47940         * modules/unistdio/u8-asnprintf-tests: New file.
47941         * modules/unistdio/u8-vasnprintf-tests: New file.
47942         * modules/unistdio/u8-vasprintf-tests: New file.
47943         * modules/unistdio/u8-vsnprintf-tests: New file.
47944         * modules/unistdio/u8-vsprintf-tests: New file.
47945         * modules/unistdio/u16-asnprintf-tests: New file.
47946         * modules/unistdio/u16-vasnprintf-tests: New file.
47947         * modules/unistdio/u16-vasprintf-tests: New file.
47948         * modules/unistdio/u16-vsnprintf-tests: New file.
47949         * modules/unistdio/u16-vsprintf-tests: New file.
47950         * modules/unistdio/u32-asnprintf-tests: New file.
47951         * modules/unistdio/u32-vasnprintf-tests: New file.
47952         * modules/unistdio/u32-vasprintf-tests: New file.
47953         * modules/unistdio/u32-vsnprintf-tests: New file.
47954         * modules/unistdio/u32-vsprintf-tests: New file.
47955         * MODULES.html.sh (Unicode string functions): Add the new modules.
47956
47957 2007-07-01  Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/sprintf.c (sprintf): Limit the available length estimation,
47960         to avoid address wraparound.
47961         * lib/vsprintf.c (vsprintf): Likewise.
47962         * modules/sprintf-posix (Dependencies): Add stdint.
47963         * modules/vsprintf-posix (Dependencies): Likewise.
47964
47965 2007-07-01  Bruno Haible  <bruno@clisp.org>
47966
47967         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
47968         Windows PATH as well. Conservative double-quoting. Comments.
47969
47970 2007-07-01  Bruno Haible  <bruno@clisp.org>
47971             Eric Blake  <ebb9@byu.net>
47972             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47973
47974         * gnulib-tool (self_abspathname): Fix algorithm to cope with
47975         empty components in $PATH, denoting '.'.
47976
47977 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47978
47979         * gnulib-tool: Fix indentation.
47980         (func_create_megatestdir): Likewise.
47981         Report by Bruno Haible.
47982
47983 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47984
47985         Sync from Automake.
47986         * build-aux/gnupload: Fix shell portability issues with for loops.
47987         Report by Karl Berry.
47988
47989 2007-06-29  Simon Josefsson  <simon@josefsson.org>
47990
47991         * build-aux/maint.mk (POURL): Use translationproject.org.
47992
47993 2007-06-27  Simon Josefsson  <simon@josefsson.org>
47994             Bruno Haible  <bruno@clisp.org>
47995
47996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
47997         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
47998         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
47999         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48000         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48001
48002 2007-06-27  Bruno Haible  <bruno@clisp.org>
48003
48004         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48005         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48006
48007 2007-06-26  Karl Berry  <karl@gnu.org>
48008
48009         * MODULES.html.sh: remove xreadlink-with-size.
48010
48011 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48012
48013         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48014         method that I hope also handles the double-include problem noted
48015         by Bruno Haible in
48016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48017
48018 2007-06-23  Bruno Haible  <bruno@clisp.org>
48019
48020         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48021         Don't let the 'mostlyclean' target fail if the last subdirectory could
48022         not be removed.
48023         Reported by Karl Berry.
48024
48025 2007-06-23  Bruno Haible  <bruno@clisp.org>
48026
48027         * gnulib-tool (echo): Add a speedier workaround for ksh.
48028         * tests/test-echo.sh: Likewise.
48029
48030 2007-06-23  Bruno Haible  <bruno@clisp.org>
48031
48032         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48033         * tests/test-echo.sh: Likewise.
48034
48035 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48036
48037         * gnulib-tool (IFS): Initialize early, so we don't set it to
48038         empty later.
48039         (self_abspathname): Rewrite algorithm to set it, reindent.
48040         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48041         (func_create_megatestdir): Merge some sed scripts.
48042
48043 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48044
48045         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48046         exposed by Sun Studio 11 cc on Solaris 8.
48047
48048 2007-06-22  Bruno Haible  <bruno@clisp.org>
48049
48050         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48051         backslashes.
48052         * tests/test-echo.sh: New file.
48053
48054 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48055
48056         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48057         simplify `sed_replace_build_aux' scripts, they are portable but
48058         echoing them with `echo' is not.
48059         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48060
48061 2007-06-21  Karl Berry  <karl@gnu.org>
48062
48063         * config/srclist.txt: guess we can't handle the licenses via
48064         srclist at the moment.
48065
48066 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48067
48068         * MODULES.html.sh: Add include_next.
48069         * modules/include_next: New file.
48070
48071 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48072
48073         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48074         INCLUDE_NEXT.
48075         (gl_CHECK_NEXT_HEADERS): New macro.
48076         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48077         the obsolescent gl_ABSOLUTE_HEADER.
48078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48079         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48080         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48081         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48082         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48083         * m4/math_h.m4 (gl_MATH_H): Likewise.
48084         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48085         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48086         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48087         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48088         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48089         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48090         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48091         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48092         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48093         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48094         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48095         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48096         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48097         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48098         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48099         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48100         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48101         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48102         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48103         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48104         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48105         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48106         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48107         * lib/float_.h: Likewise.
48108         * lib/inttypes_.h: Likewise.
48109         * lib/math_.h: Likewise.
48110         * lib/search_.h: Likewise.
48111         * lib/signal_.h: Likewise.
48112         * lib/stdint_.h: Likewise.
48113         * lib/stdio_.h: Likewise.
48114         * lib/stdlib_.h: Likewise.
48115         * lib/string_.h: Likewise.
48116         * lib/sys_stat_.h: Likewise.
48117         * lib/sys_time_.h: Likewise.
48118         * lib/time_.h: Likewise.
48119         * lib/unistd_.h: Likewise.
48120         * lib/wchar_.h: Likewise.
48121         * lib/wctype_.h: Likewise.
48122         * lib/dirent_.h: Likewise.
48123         * lib/iconv_.h: Likewise.
48124         * lib/locale_.h: Likewise.
48125         * lib/netinet_in_.h: Likewise.
48126         * lib/sys_select_.h: Likewise.
48127         * lib/sys_socket_.h: Likewise.
48128         * lib/sysexits_.h: Likewise.
48129         * modules/fcntl (Depends-on): Depend on include_next, not
48130         absolute_header.
48131         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48132         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48133         * modules/fchdir: Likewise.
48134         * modules/float: Likewise.
48135         * modules/iconv_open: Likewise.
48136         * modules/inttypes: Likewise.
48137         * modules/locale: Likewise.
48138         * modules/math: Likewise.
48139         * modules/netinet_in: Likewise.
48140         * modules/search: Likewise.
48141         * modules/signal: Likewise.
48142         * modules/stdint: Likewise.
48143         * modules/stdio: Likewise.
48144         * modules/stdlib: Likewise.
48145         * modules/string: Likewise.
48146         * modules/sys_select: Likewise.
48147         * modules/sys_socket: Likewise.
48148         * modules/sys_stat: Likewise.
48149         * modules/sys_time: Likewise.
48150         * modules/sysexits: Likewise.
48151         * modules/time: Likewise.
48152         * modules/unistd: Likewise.
48153         * modules/wchar: Likewise.
48154         * modules/wctype: Likewise.
48155         * modules/sys_stat: Change maintainer to "all".
48156         * modules/unistd: Likewise.
48157
48158 2007-06-20  Karl Berry  <karl@gnu.org>
48159
48160         * config/srclist.txt: track www changes in license files.
48161
48162 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48163
48164         * build-aux/bootstrap: Remove stray dot.
48165         Make sure build_aux settings are honored when linking
48166         gnulib_extra_files.
48167
48168 2007-06-19  Eric Blake  <ebb9@byu.net>
48169
48170         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48171         Allow compilation on cygwin.
48172
48173 2007-06-19  Jim Meyering  <jim@meyering.net>
48174
48175         xreadlink-with-size: Remove module.  No longer used.
48176         Ex-callers now use xreadlink or mreadlink-with-size.
48177         * modules/xreadlink-with-size: Remove module.
48178         * lib/xreadlink-with-size.c: Remove file.
48179         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48180         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48181         just before the function definition *is* accurate.
48182
48183         Eliminate one way canonicalize_filename_mode could exit.
48184         * lib/canonicalize.c (canonicalize_filename_mode):
48185         Use mreadlink_with_size, not xreadlink_with_size.
48186
48187 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48188
48189         Detect porting problems to FreeBSD/arm, which has time_t wider than
48190         long int.  Original problem reported for GNU diff by Xin Li in
48191         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48192         * modules/getdate (Depends-on): Add intprops, verify.
48193         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48194         is an integer type no wider than long int.
48195
48196 2007-06-18  Jim Meyering  <jim@meyering.net>
48197
48198         New module: mreadlink-with-size.
48199         * MODULES.html.sh: Add mreadlink-with-size.
48200         * modules/mreadlink-with-size: New module
48201         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48202         not xreadlink-with-size.
48203         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48204
48205 2007-06-16  Bruno Haible  <bruno@clisp.org>
48206
48207         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48208         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48209         Reported by Gary V. Vaughan <gary@gnu.org>.
48210
48211 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48212
48213         Revamp lchown so that it lives in unistd.h where it belongs.
48214         * lib/lchown.h: Remove.
48215         * lib/dirchownmod.c: Don't include lib/lchown.h.
48216         * lib/fchownat.c: Likewise.
48217         * lib/openat.c: Likewise.
48218         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48219         does not follow symlinks.
48220         (EOPNOTSUPP): Define if not defined.
48221         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48222         is defined to 0.
48223         (lchown): New decl.
48224         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48225         Do not check for lchown decl.
48226         Set REPLACE_LCHOWN.
48227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48228         REPLACE_LCHOWN.
48229         * modules/chown: Make it clear it follows symlinks.
48230         * modules/lchown: Make it clear it doesn't follow symlinks.
48231         (Files): Remove lib/lchown.h
48232         (Depends-on): Add unistd.
48233         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48234         (Include): Include <unistd.h>, not "lchown.h".
48235         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48236         REPLACE_LCHOWN.
48237
48238 2007-06-15  Jim Meyering  <jim@meyering.net>
48239
48240         Change license (GPL to LGPL) of fsusage and dependents.
48241         * modules/fsusage (License): Change to LGPL.
48242         * modules/full-read (License): Likewise.
48243         * modules/full-write (License): Likewise.
48244         * modules/safe-read (License): Likewise.
48245         * modules/safe-write (License): Likewise.
48246
48247 2007-06-14  Ben Pfaff  <blp@gnu.org>
48248
48249         Missing part of allocsa -> malloca transition.
48250         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48251         gl_MALLOCA.
48252
48253 2007-06-12  Bruno Haible  <bruno@clisp.org>
48254
48255         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48256         to ia64, x86_64, i386.
48257         Reported by Eric Blake.
48258
48259 2007-06-12  Bruno Haible  <bruno@clisp.org>
48260
48261         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48262         cross-compiling to x86_64.
48263
48264 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48265
48266         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48267         glitch reported by Ralf Wildenhues in
48268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48269
48270         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48271         Vin Shelton.
48272
48273 2007-06-11  Bruno Haible  <bruno@clisp.org>
48274
48275         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48276         replacement string.
48277         Reported by Eric Blake.
48278
48279 2007-06-10  Bruno Haible  <bruno@clisp.org>
48280
48281         Prepare vasnprintf code for use with Unicode strings.
48282         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48283         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48284         TYPE_U32_STRING.
48285         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48286         a_u32_string variants.
48287         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48288         * lib/printf-args.c: Don't include config.h and the specification
48289         header if PRINTF_FETCHARGS is already defined.
48290         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48291         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48292         TYPE_U16_STRING, TYPE_U32_STRING.
48293         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48294         u16_directive, u16_directives, u32_directive, u32_directives): New
48295         types.
48296         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48297         New declarations.
48298         * lib/printf-parse.c: Don't include config.h and the specification
48299         header if PRINTF_PARSE is already defined. Eliminate the set of
48300         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48301         them now. Include c-ctype.h.
48302         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48303         directive and CHAR_T_ONLY_ASCII.
48304         * lib/vasnprintf.c: Don't include config.h and the specification header
48305         if VASNPRINTF is already defined.
48306         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48307         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48308         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48309         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48310         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48311         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48312         code accordingly.
48313         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48314         pad_ourselves also in this case, with the 'c' and 's' directives, and
48315         with a different notion of "width".
48316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48317
48318 2007-06-10  Bruno Haible  <bruno@clisp.org>
48319
48320         * modules/unistr/u32-mbsnlen: New file.
48321         * lib/unistr/u32-mbsnlen.c: New file.
48322
48323         * modules/unistr/u16-mbsnlen: New file.
48324         * lib/unistr/u16-mbsnlen.c: New file.
48325
48326         * modules/unistr/u8-mbsnlen: New file.
48327         * lib/unistr/u8-mbsnlen.c: New file.
48328
48329         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48330         declarations.
48331
48332 2007-06-10  Bruno Haible  <bruno@clisp.org>
48333
48334         * lib/string_.h (mbsnlen): New declaration.
48335         * lib/mbsnlen.c: New file.
48336         * m4/mbsnlen.m4: New file.
48337         * modules/mbsnlen: New file.
48338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48339         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48340         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48341
48342 2007-06-10  Bruno Haible  <bruno@clisp.org>
48343
48344         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48345
48346 2007-06-10  Bruno Haible  <bruno@clisp.org>
48347
48348         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48349         * lib/mbuiter.h: Likewise.
48350
48351 2007-06-10  Bruno Haible  <bruno@clisp.org>
48352
48353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48354         declaration.
48355
48356 2007-06-10  Karl Berry  <karl@gnu.org>
48357
48358         * config/srclist.txt: remove gettext entries, Bruno prefers
48359         to update individually.
48360
48361 2007-06-10  Bruno Haible  <bruno@clisp.org>
48362
48363         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48364         'maxlen'. Ensure only length + width bytes are allocated, not
48365         length + 1 + width.
48366
48367 2007-06-09  Bruno Haible  <bruno@clisp.org>
48368
48369         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48370         (CHAR_T): Remove macro.
48371         (VASNPRINTF): Update.
48372
48373 2007-06-09  Bruno Haible  <bruno@clisp.org>
48374
48375         * MODULES.html.sh (Unicode string functions): Add the new modules.
48376
48377         * modules/uniconv/u32-conv-to-enc: New file.
48378         * lib/uniconv/u32-conv-to-enc.c: New file.
48379         * modules/uniconv/u32-conv-to-enc-tests: New file.
48380         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48381
48382         * modules/uniconv/u16-conv-to-enc: New file.
48383         * lib/uniconv/u16-conv-to-enc.c: New file.
48384         * lib/uniconv/u-conv-to-enc.h: New file.
48385         * modules/uniconv/u16-conv-to-enc-tests: New file.
48386         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48387
48388         * modules/uniconv/u8-conv-to-enc: New file.
48389         * lib/uniconv/u8-conv-to-enc.c: New file.
48390         * modules/uniconv/u8-conv-to-enc-tests: New file.
48391         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48392
48393         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48394         u32_conv_to_encoding): New declarations.
48395
48396 2007-06-09  Bruno Haible  <bruno@clisp.org>
48397
48398         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48399
48400 2007-06-09  Bruno Haible  <bruno@clisp.org>
48401
48402         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48403         * modules/malloca: Renamed from modules/allocsa, updated.
48404         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48405         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48406         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48407         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48408         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48409         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48410         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48411         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48412         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48413         * modules/c-strcasestr (Depends-on): Update.
48414         * lib/c-strcasestr.c: Update.
48415         * modules/c-strstr (Depends-on): Update.
48416         * lib/c-strstr.c: Update.
48417         * modules/canonicalize-lgpl (Depends-on): Update.
48418         * lib/canonicalize-lgpl.c: Update.
48419         * modules/clean-temp (Depends-on): Update.
48420         * lib/clean-temp.c: Update.
48421         * modules/csharpcomp (Depends-on): Update.
48422         * lib/csharpcomp.c: Update.
48423         * modules/csharpexec (Depends-on): Update.
48424         * lib/csharpexec.c: Update.
48425         * modules/javacomp (Depends-on): Update.
48426         * lib/javacomp.c: Update.
48427         * modules/javaexec (Depends-on): Update.
48428         * lib/javaexec.c: Update.
48429         * modules/mbscasestr (Depends-on): Update.
48430         * lib/mbscasestr.c: Update.
48431         * modules/mbsstr (Depends-on): Update.
48432         * lib/mbsstr.c: Update.
48433         * modules/setenv (Depends-on): Update.
48434         * lib/setenv.c: Update.
48435         * modules/strcasestr (Depends-on): Update.
48436         * lib/strcasestr.c: Update.
48437         * modules/striconveha (Depends-on): Update.
48438         * lib/striconveha.c: Update.
48439         * modules/relocatable-prog-wrapper (Files): Update.
48440         * lib/relocwrapper.c: Update.
48441         * build-aux/install-reloc: Update.
48442         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48443
48444 2007-06-08  Bruno Haible  <bruno@clisp.org>
48445
48446         Port to uClibc.
48447         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48448         * lib/fpurge.c (fpurge): Likewise.
48449         * lib/freading.c (freading): Likewise.
48450         * lib/fseeko.c (rpl_fseeko): Likewise.
48451         * lib/fseterr.c (fseterr): Likewise.
48452         * lib/fwriting.c (fwriting): Likewise.
48453         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48454
48455 2007-06-08  Bruno Haible  <bruno@clisp.org>
48456
48457         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48458         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48459         * modules/gettext (Files): Add m4/intlmacosx.m4.
48460
48461 2007-06-07  Bruno Haible  <bruno@clisp.org>
48462
48463         * modules/localename-tests: New file.
48464         * tests/test-localename.c: New file.
48465
48466         New module 'localename'.
48467         * lib/localename.h: New file.
48468         * lib/localename.c: New file, from GNU gettext.
48469         * m4/localename.m4: New file.
48470         * modules/localename: New file.
48471
48472 2007-06-07  Bruno Haible  <bruno@clisp.org>
48473
48474         Work around the lack of <wchar.h> on some builds of uClibc.
48475         * doc/headers/wchar.texi: Update.
48476         * lib/wchar_.h: Include <wchar.h> only if it exists.
48477         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48478         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48479         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48480         doesn't exist.
48481         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48482         * modules/mbfile (Depends-on): Add wchar.
48483         * modules/mbiter (Depends-on): Likewise.
48484         * modules/mbuiter (Depends-on): Likewise.
48485         Reported by Simon Josefsson.
48486
48487 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48488
48489         Work around problem reported by Steven M. Schweda in
48490         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48491         Tru64 5.1B with the Compaq compiler environment installed declares
48492         an 'isblank' function but does not define it in the C library.
48493         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48494         * lib/regex_internal.h (isblank): Likewise.
48495         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48496         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48497
48498 2007-06-05  Bruno Haible  <bruno@clisp.org>
48499
48500         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48501         ia64.
48502         * modules/printf-safe: New file.
48503         * modules/fprintf-posix (Depends-on): Add printf-safe.
48504         * modules/printf-posix (Depends-on): Likewise.
48505         * modules/snprintf-posix (Depends-on): Likewise.
48506         * modules/sprintf-posix (Depends-on): Likewise.
48507         * modules/vasnprintf-posix (Depends-on): Likewise.
48508         * modules/vasprintf-posix (Depends-on): Likewise.
48509         * modules/vfprintf-posix (Depends-on): Likewise.
48510         * modules/vprintf-posix (Depends-on): Likewise.
48511         * modules/vsnprintf-posix (Depends-on): Likewise.
48512         * modules/vsprintf-posix (Depends-on): Likewise.
48513         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48514         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48515         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48516         "no" on i386, x86_64, ia64.
48517         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48518         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48519         on i386, x86_64, ia64.
48520         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48521         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48522         on i386, x86_64, ia64.
48523         * tests/test-vasnprintf-posix.c: Include float.h.
48524         (LDBL80_WORDS): New macro.
48525         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48526         on i386, x86_64, ia64.
48527         * tests/test-vasprintf-posix.c: Include float.h.
48528         (LDBL80_WORDS): New macro.
48529         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48530         on i386, x86_64, ia64.
48531         * tests/test-snprintf-posix.c: Include float.h.
48532         * tests/test-sprintf-posix.c: Likewise.
48533         * tests/test-vsnprintf-posix.c: Likewise.
48534         * tests/test-vsprintf-posix.c: Likewise.
48535
48536 2007-06-05  Bruno Haible  <bruno@clisp.org>
48537
48538         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48539         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48540         non-IEEE numbers on i386, x86_64, ia64.
48541         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48542         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48543         * tests/test-isnanl.h: Include float.h.
48544         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48545
48546 2007-06-05  Bruno Haible  <bruno@clisp.org>
48547
48548         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48549         also the %a / %A. Handle the %a / %A code before this extra handling.
48550
48551 2007-06-05  Bruno Haible  <bruno@clisp.org>
48552
48553         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48554         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48555
48556 2007-06-05  Bruno Haible  <bruno@clisp.org>
48557
48558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48559         typo in variable name.
48560
48561 2007-06-05  Eric Blake  <ebb9@byu.net>
48562
48563         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48564         Reported by Simon Josefsson.
48565
48566 2007-06-04  Bruno Haible  <bruno@clisp.org>
48567
48568         Avoid test failures on some PowerPC platforms.
48569         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48570         Define differently for PowerPC.
48571         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48572         Reported by Gary V. Vaughan <gary@gnu.org>.
48573
48574 2007-06-02  Bruno Haible  <bruno@clisp.org>
48575
48576         Fix test-stdint failure on FreeBSD/ia64.
48577         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48578         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48579         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48580         * doc/headers/stdint.texi: Update.
48581
48582 2007-06-01  Bruno Haible  <bruno@clisp.org>
48583
48584         * tests/test-binary-io.c (main): Pass a third argument to open().
48585         Reported by Gary V. Vaughan <gary@gnu.org>.
48586
48587 2007-06-01  Bruno Haible  <bruno@clisp.org>
48588
48589         * doc/functions/frexpl.texi: Update for mingw.
48590
48591 2007-06-01  Bruno Haible  <bruno@clisp.org>
48592
48593         * tests/test-lseek.c (main): Disable test of errno for invalid third
48594         argument.
48595         * doc/functions/lseek.texi: Update.
48596         Reported by Gary V. Vaughan <gary@gnu.org>.
48597
48598 2007-05-28  Bruno Haible  <bruno@clisp.org>
48599
48600         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48601
48602 2007-05-31  Eric Blake  <ebb9@byu.net>
48603
48604         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48605         cross compiling.
48606
48607 2007-05-30  Eric Blake  <ebb9@byu.net>
48608         and Bruno Haible  <bruno@clisp.org>
48609
48610         Work around mingw test failures exposed by m4-1.4.9b.
48611         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48612         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48613         moment.
48614
48615 2007-05-30  Bruno Haible  <bruno@clisp.org>
48616
48617         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48618         assuming that they are closed. Needed on HP-UX 11.
48619
48620 2007-05-29  Bruno Haible  <bruno@clisp.org>
48621
48622         Fix a problem with #include_next.
48623         * lib/dirent_.h: Split the double-inclusion guard.
48624         * lib/fcntl_.h: Likewise.
48625         * lib/float_.h: Likewise.
48626         * lib/iconv_.h: Likewise.
48627         * lib/inttypes_.h: Likewise.
48628         * lib/locale_.h: Likewise.
48629         * lib/math_.h: Likewise.
48630         * lib/netinet_in_.h: Likewise.
48631         * lib/search_.h: Likewise.
48632         * lib/signal_.h: Likewise.
48633         * lib/stdint_.h: Likewise.
48634         * lib/stdio_.h: Likewise.
48635         * lib/stdlib_.h: Likewise.
48636         * lib/string_.h: Likewise.
48637         * lib/sys_select_.h: Likewise.
48638         * lib/sys_socket_.h: Likewise.
48639         * lib/sys_stat_.h: Likewise.
48640         * lib/sys_time_.h: Likewise.
48641         * lib/sysexits_.h: Likewise.
48642         * lib/time_.h: Likewise.
48643         * lib/unistd_.h: Likewise.
48644         * lib/wchar_.h: Likewise.
48645         * lib/wctype_.h: Likewise.
48646
48647 2007-05-29  Bruno Haible  <bruno@clisp.org>
48648
48649         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48650         for the moment.
48651
48652 2007-05-29  Bruno Haible  <bruno@clisp.org>
48653
48654         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48655         invocation.
48656         Reported by Eric Blake.
48657
48658 2007-05-29  Bruno Haible  <bruno@clisp.org>
48659
48660         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48661         compiling case.
48662
48663 2007-05-29  Eric Blake  <ebb9@byu.net>
48664             Bruno Haible  <bruno@clisp.org>
48665
48666         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48667         cross compiles.
48668
48669 2007-05-28  Eric Blake  <ebb9@byu.net>
48670
48671         * modules/closein-tests (test_closein_LDADD): Support test on
48672         cygwin with libtool.
48673
48674 2007-05-28  Bruno Haible  <bruno@clisp.org>
48675
48676         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48677         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48678         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48679         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48680         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48681         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48682         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48683         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48684         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48685
48686 2007-05-28  Eric Blake  <ebb9@byu.net>
48687
48688         Unconditionally include <config.h> in unit tests.
48689         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48690         * tests/test-allocsa.c, tests/test-arcfour.c,
48691         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48692         tests/test-array_list.c, tests/test-array_oset.c,
48693         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48694         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48695         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48696         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48697         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48698         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48699         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48700         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48701         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48702         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48703         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48704         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48705         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48706         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48707         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48708         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48709         test-md5.c, test-memmem.c, test-printf-posix.c,
48710         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48711         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48712         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48713         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48714         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48715         test-vasnprintf-posix2.c, test-vasnprintf.c,
48716         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48717         test-vfprintf-posix.c, test-vprintf-posix.c,
48718         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48719         test-xvasprintf.c: Likewise.
48720
48721 2007-05-28  Bruno Haible  <bruno@clisp.org>
48722
48723         * gnulib-tool (func_import): Remember the --with-tests command-line
48724         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48725         Reported by Eric Blake.
48726
48727 2007-05-28  Bruno Haible  <bruno@clisp.org>
48728
48729         * modules/ftell-tests: New file.
48730         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48731         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48732
48733         * lib/ftell.c: New file.
48734         * modules/ftell: New file.
48735         * m4/ftell.m4: New file.
48736         * doc/functions/ftell.texi: Update.
48737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48738         REPLACE_FTELL.
48739         * lib/stdio_.h (rpl_ftell): New declaration.
48740         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48741         REPLACE_FTELL.
48742
48743 2007-05-28  Eric Blake  <ebb9@byu.net>
48744
48745         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48746
48747 2007-05-28  Bruno Haible  <bruno@clisp.org>
48748
48749         * modules/fseek-tests: New file.
48750         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48751         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48752
48753         * lib/fseek.c: New file.
48754         * modules/fseek: New file.
48755         * m4/fseek.m4: New file.
48756         * doc/functions/fseek.texi: Update.
48757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48758         REPLACE_FSEEK.
48759         * lib/stdio_.h (rpl_fseek): New declaration.
48760         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48761         REPLACE_FSEEK.
48762
48763 2007-05-28  Bruno Haible  <bruno@clisp.org>
48764
48765         * lib/stdio_.h (fflush): More comments.
48766
48767 2007-05-28  Bruno Haible  <bruno@clisp.org>
48768
48769         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48770         runtime test.
48771
48772 2007-05-28  Eric Blake  <ebb9@byu.net>
48773
48774         Improve lseek module.
48775         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48776         * lib/unistd_.h (lseek): Scale back link warning message.
48777         * tests/test-lseek.c: Beef up test.
48778         * tests/test-lseek.sh: Exercise more facets of lseek.
48779         Reported by Bruno Haible.
48780
48781 2007-05-28  Bruno Haible  <bruno@clisp.org>
48782
48783         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48784         to define.
48785
48786 2007-05-27  Bruno Haible  <bruno@clisp.org>
48787
48788         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48789
48790 2007-05-27  Bruno Haible  <bruno@clisp.org>
48791
48792         * modules/openmp: New file.
48793         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48794         Noah Misch.
48795
48796 2007-05-26  Bruno Haible  <bruno@clisp.org>
48797
48798         * modules/chdir-long (Depends-on): Add fchdir.
48799         * modules/chdir-safer (Depends-on): Likewise.
48800         * modules/fts (Depends-on): Likewise.
48801         * modules/fts-lgpl (Depends-on): Likewise.
48802         * modules/openat (Depends-on): Likewise.
48803         * modules/savewd (Depends-on): Likewise.
48804
48805 2007-05-24  Eric Blake  <ebb9@byu.net>
48806
48807         Fix lseek on mingw.
48808         * modules/lseek: New module.
48809         * m4/lseek.m4: New file.
48810         * lib/lseek.c: New file.
48811         * modules/lseek-tests: New file.
48812         * tests/test-lseek.c: New file.
48813         * tests/test-lseek.sh: New file.
48814         * MODULES.html.sh: Document lseek module.
48815         * modules/fflush (Depends-on): Add lseek, fseeko.
48816         * modules/fseeko (Depends-on): Likewise.
48817         * modules/ftello (Depends-on): Likewise.
48818         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48819         broken.
48820         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48821         broken.
48822         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48823         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48824         * lib/ftello.c (rpl_ftello): Likewise.
48825         * tests/test-fseeko.c (main): Test this.
48826         * tests/test-fseeko.sh: Likewise.
48827         * tests/test-ftello.c (main): Likewise.
48828         * tests/test-ftello.sh: Likewise.
48829         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48830         implies replacing fseek.
48831         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48832         HAVE_FTELLO.
48833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48834         * modules/unistd (Makefile.am): Likewise.
48835         * lib/unistd_.h (lseek): Declare a replacement.
48836         * doc/functions/lseek.texi (lseek): Document this fix.
48837         * doc/functions/fseek.texi (fseek): Likewise.
48838         * doc/functions/ftell.texi (ftell): Likewise.
48839
48840 2007-05-24  Bruno Haible  <bruno@clisp.org>
48841
48842         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48843         in the printed representation of a NaN.
48844         * tests/test-vasprintf-posix.c (test_function): Likewise.
48845         * tests/test-snprintf-posix.h (test_function): Likewise.
48846         * tests/test-sprintf-posix.h (test_function): Likewise.
48847         Reported by Eric Blake.
48848
48849 2007-05-23  Eric Blake  <ebb9@byu.net>
48850
48851         Fix fseeko/ftello on cygwin 1.5.24.
48852         * doc/functions/fseeko.texi (fseeko): Document the fix.
48853         * doc/functions/ftello.texi (ftello): Document the fix.
48854         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48855         * doc/functions/stdout.text (stdout): New file.
48856         * doc/functions/stderr.text (stderr): New file.
48857         * doc/gnulib.texi (Function Substitutes): Use new files.
48858         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48859         prior to 1.7.0.
48860         * tests/test-ftello.c (main): Likewise for ftello.
48861         * tests/test-fseeko.sh: New file.
48862         * tests/test-ftello.sh: New file.
48863         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48864         with seekable stdin.
48865         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48866         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48867         (gl_REPLACE_FSEEKO): New macro.
48868         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48869         * modules/fseeko (Files): Distribute fseeko.c.
48870         * modules/ftello (Files): Distribute ftello.c.
48871         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48872         mode.
48873         * lib/ftello.c (rpl_ftello): New file.
48874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48875         fseeko, ftello.
48876         (gl_STDIN_LARGE_OFFSET): New macro.
48877         * modules/stdio (Makefile.am): Perform the replacement.
48878         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48879
48880 2007-05-23  Bruno Haible  <bruno@clisp.org>
48881
48882         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48883         GNULIB_POSIXCHECK is defined.
48884
48885 2007-05-21  Bruno Haible  <bruno@clisp.org>
48886
48887         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48888         Check also the output for NaN arguments. When cross-compiling, guess
48889         no on IRIX.
48890         * lib/vasnprintf.c: Update comments.
48891         * tests/test-vasnprintf-posix.c (strisnan): New function.
48892         (test_function): Use it.
48893         * tests/test-vasprintf-posix.c (strisnan): New function.
48894         (test_function): Use it.
48895         * tests/test-snprintf-posix.h (strisnan): New function.
48896         (test_function): Use it.
48897         * tests/test-sprintf-posix.h (strisnan): New function.
48898         (test_function): Use it.
48899         Reported by Eric Blake.
48900
48901 2007-05-20  Bruno Haible  <bruno@clisp.org>
48902
48903         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48904         numbers that fails on BeOS.
48905         * doc/functions/frexpl.texi: Update.
48906
48907 2007-05-20  Jim Meyering  <jim@meyering.net>
48908
48909         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48910         forced upon us by glibc-2.6.
48911
48912 2007-05-20  Bruno Haible  <bruno@clisp.org>
48913
48914         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48915         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48916         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48917         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48918         NEED_PRINTF_INFINITE.
48919         (is_infinitel): New function.
48920         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48922         gl_PREREQ_VASNPRINTF_INFINITE.
48923         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48924         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48925         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48926         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48927         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48928         gl_PREREQ_VASNPRINTF_INFINITE.
48929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48936         * doc/functions/fprintf.texi: Update.
48937         * doc/functions/printf.texi: Update.
48938         * doc/functions/snprintf.texi: Update.
48939         * doc/functions/sprintf.texi: Update.
48940         * doc/functions/vfprintf.texi: Update.
48941         * doc/functions/vprintf.texi: Update.
48942         * doc/functions/vsnprintf.texi: Update.
48943         * doc/functions/vsprintf.texi: Update.
48944
48945 2007-05-20  Bruno Haible  <bruno@clisp.org>
48946
48947         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48948         was not found in libc.
48949         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48950
48951 2007-05-20  Bruno Haible  <bruno@clisp.org>
48952
48953         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48954         printed as "-nan" instead of "nan".
48955         * tests/test-vasprintf-posix.c (test_function): Likewise.
48956         * tests/test-snprintf-posix.h (test_function): Likewise.
48957         * tests/test-sprintf-posix.h (test_function): Likewise.
48958         Needed for HP-UX 11.
48959
48960 2007-05-20  Jim Meyering  <jim@meyering.net>
48961
48962         Fix buggy test for the fchownat-deref bug.
48963         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
48964         symlink required for the run-test.  Without it, this test would
48965         always declare that fchownat doesn't work, and client code would
48966         unnecessarily use the replacement function with fixed libc.
48967         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
48968         Reported by Greg Schafer.
48969
48970 2007-05-19  Bruno Haible  <bruno@clisp.org>
48971
48972         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
48973         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
48974         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
48975         Needed for IRIX 6.5 and Solaris 2.5.1.
48976
48977 2007-05-19  Bruno Haible  <bruno@clisp.org>
48978
48979         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
48980         (test_function): Skip tests involving -0.0 on platforms where
48981         -0.0 = 0.0.
48982         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
48983         (test_function): Skip tests involving -0.0 on platforms where
48984         -0.0 = 0.0.
48985         * tests/test-snprintf-posix.h (have_minus_zero): New function.
48986         (test_function): Skip tests involving -0.0 on platforms where
48987         -0.0 = 0.0.
48988         * tests/test-sprintf-posix.h (have_minus_zero): New function.
48989         (test_function): Skip tests involving -0.0 on platforms where
48990         -0.0 = 0.0.
48991         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
48992         tests.
48993         * tests/test-printf-posix.h (test_function): Likewise.
48994         * tests/test-printf-posix.output: Remove all -0.0 related results.
48995         Needed for IRIX 6.5.
48996
48997 2007-05-19  Bruno Haible  <bruno@clisp.org>
48998
48999         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49000         printed as "nan0x7fffffff" instead of "nan".
49001         * tests/test-vasprintf-posix.c (test_function): Likewise.
49002         * tests/test-snprintf-posix.h (test_function): Likewise.
49003         * tests/test-sprintf-posix.h (test_function): Likewise.
49004         * tests/test-fprintf-posix.h (NaN): Remove macro.
49005         (test_function): Remove all NaN related tests.
49006         * tests/test-printf-posix.h (NaN): Remove macro.
49007         (test_function): Remove all NaN related tests.
49008         * tests/test-printf-posix.output: Remove all NaN related results.
49009         Needed for IRIX 6.5.
49010
49011 2007-05-19  Bruno Haible  <bruno@clisp.org>
49012
49013         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49014         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49015
49016 2007-05-19  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/float_.h: New file.
49019         * m4/float_h.m4: New file.
49020         * modules/float: New file.
49021         * modules/isnanl (Dependencies): Add float.
49022         * modules/isnanl-nolibm (Dependencies): Likewise.
49023         * modules/mathl (Dependencies): Likewise.
49024         * modules/printf-frexpl (Dependencies): Likewise.
49025         * modules/signbit (Dependencies): Likewise.
49026         * modules/vasnprintf (Dependencies): Likewise.
49027         * doc/headers/float.texi: Update.
49028
49029 2007-05-19  Jim Meyering  <jim@meyering.net>
49030
49031         * lib/utimens.c (gl_futimens): Rename from futimens,
49032         now that glibc-2.6 declares futimens.
49033         * lib/utimens.h: Likewise.
49034
49035 2007-05-19  Bruno Haible  <bruno@clisp.org>
49036
49037         Avoid test failures on mingw.
49038         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49039         * tests/test-printf-posix.sh: Likewise.
49040         * tests/test-vfprintf-posix.sh: Likewise.
49041         * tests/test-vprintf-posix.sh: Likewise.
49042
49043 2007-05-19  Bruno Haible  <bruno@clisp.org>
49044
49045         Fix *printf result for NaN, Inf, -0.0 on mingw.
49046         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49047         * lib/vasnprintf.c: Include math.h and isnan.h.
49048         (is_infinite_or_zero): New function.
49049         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49050         values in the %f, %F, %e, %E, %g, %G directives.
49051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49052         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49053         gl_PRINTF_INFINITE and test its result. Invoke
49054         gl_PREREQ_VASNPRINTF_INFINITE.
49055         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49056         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49057         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49058         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49059         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49060         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49061         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49062         * doc/functions/fprintf.texi: Update.
49063         * doc/functions/printf.texi: Update.
49064         * doc/functions/snprintf.texi: Update.
49065         * doc/functions/sprintf.texi: Update.
49066         * doc/functions/vfprintf.texi: Update.
49067         * doc/functions/vprintf.texi: Update.
49068         * doc/functions/vsnprintf.texi: Update.
49069         * doc/functions/vsprintf.texi: Update.
49070
49071 2007-05-19  Bruno Haible  <bruno@clisp.org>
49072
49073         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49074         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49075         Instead of multiplying with 10^k, set extra_zeroes to k.
49076         (scale10_round_long_double): Remove function.
49077
49078 2007-05-18  Bruno Haible  <bruno@clisp.org>
49079
49080         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49081         introduced on 2007-05-06.
49082
49083 2007-05-18  Bruno Haible  <bruno@clisp.org>
49084
49085         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49086         %g directives.
49087         * tests/test-vasprintf-posix.c (test_function): Likewise.
49088         * tests/test-snprintf-posix.h (test_function): Likewise.
49089         * tests/test-sprintf-posix.h (test_function): Likewise.
49090
49091 2007-05-18  Bruno Haible  <bruno@clisp.org>
49092
49093         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49094         (strmatch): New function.
49095         (test_function): Test the %f directive on numbers of various exponents.
49096         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49097         (strmatch): New function.
49098         (test_function): Test the %f directive on numbers of various exponents.
49099         * tests/test-snprintf-posix.h (strmatch): New function.
49100         (test_function): Test the %f directive on numbers of various exponents.
49101         * tests/test-sprintf-posix.h (strmatch): New function.
49102         (test_function): Test the %f directive on numbers of various exponents.
49103         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49104         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49105         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49106         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49107
49108 2007-05-18  Bruno Haible  <bruno@clisp.org>
49109
49110         Add support for 'long double' number output.
49111         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49112         * lib/vasnprintf.c: Include math.h and float+.h.
49113         (mp_limb_t): New type.
49114         (GMP_LIMB_BITS): New macro.
49115         (mp_twolimb_t): New type.
49116         (GMP_TWOLIMB_BITS): New macro.
49117         (mpn_t): New type.
49118         (multiply, divide, convert_to_decimal, decode_long_double,
49119         scale10_round_long_double, scale10_round_decimal_long_double,
49120         floorlog10l): New functions.
49121         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49122         for the %f, %F, %e, %E, %g, %G directives.
49123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49124         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49125         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49126         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49129         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49134         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49135         * modules/snprintf-posix (Depends-on): Likewise.
49136         * modules/sprintf-posix (Depends-on): Likewise.
49137         * modules/vasnprintf-posix (Depends-on): Likewise.
49138         * modules/vasprintf-posix (Depends-on): Likewise.
49139         * modules/vfprintf-posix (Depends-on): Likewise.
49140         * modules/vsnprintf-posix (Depends-on): Likewise.
49141         * modules/vsprintf-posix (Depends-on): Likewise.
49142         * modules/vasnprintf (Files): Add lib/float+.h.
49143         * doc/functions/fprintf.texi: Update.
49144         * doc/functions/printf.texi: Update.
49145         * doc/functions/snprintf.texi: Update.
49146         * doc/functions/sprintf.texi: Update.
49147         * doc/functions/vfprintf.texi: Update.
49148         * doc/functions/vprintf.texi: Update.
49149         * doc/functions/vsnprintf.texi: Update.
49150         * doc/functions/vsprintf.texi: Update.
49151
49152 2007-05-18  Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49155
49156 2007-05-18  Bruno Haible  <bruno@clisp.org>
49157
49158         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49159         for printing 64-bit integers. Needed for mingw.
49160
49161 2007-05-18  Bruno Haible  <bruno@clisp.org>
49162
49163         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49164         gl_FUNC_FREXPL_WORKS.
49165         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49166
49167 2007-05-18  Bruno Haible  <bruno@clisp.org>
49168
49169         * modules/frexpl-nolibm-tests: New file.
49170
49171         * modules/frexpl-nolibm: New file.
49172         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49173
49174 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49175
49176         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49177         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49178         GCC 4.2, which otherwise issues a lot of warnings.
49179         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49180         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49181         Likewise.
49182         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49183         * modules/iconv_open (iconv.h): Likewise.
49184         * modules/locale (locale.h): Likewise.
49185         * modules/netinet_in (netinet/in.h): Likewise.
49186         * modules/sys_select (sys_select.h): Likewise.
49187         * modules/sys_socket (sys/socket.h): Likewise.
49188         * modules/sys_stat (sys/stat.h): Likewise.
49189         * modules/sysexits (sysexits.h): Likewise.
49190         * modules/unistd (unistd.h): Likewise.
49191
49192 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49193
49194         * modules/closein-tests (Makefile.am): Distribute
49195         `test-closein.sh'.
49196
49197 2007-05-17  Bruno Haible  <bruno@clisp.org>
49198
49199         * tests/test-printf-posix.output: Renamed from
49200         tests/test-fprintf-posix.out.
49201         * modules/fprintf-posix-tests: Update.
49202         * modules/printf-posix-tests: Update.
49203         * modules/vfprintf-posix-tests: Update.
49204         * modules/vprintf-posix-tests: Update.
49205         * tests/test-fprintf-posix.sh: Update.
49206         * tests/test-printf-posix.sh: Update.
49207         * tests/test-vfprintf-posix.sh: Update.
49208         * tests/test-vprintf-posix.sh: Update.
49209         Reported by Ralf Wildenhues.
49210
49211 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49212
49213         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49214         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49215         GCC 4.2, which otherwise issues a lot of warnings.
49216         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49217         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49218         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49219         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49220         it should no longer be needed.
49221         * lib/string_.h: Likewise.
49222         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49223         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49224         * modules/inttypes (inttypes.h): Likewise.
49225         * modules/math (math.h): Likewise.
49226         * modules/search (search.h): Likewise.
49227         * modules/signal (signal.h): Likewise.
49228         * modules/stdint (stdint.h): Likewise.
49229         * modules/stdio (stdio.h): Likewise.
49230         * modules/stdlib (stdlib.h): Likewise.
49231         * modules/string (string.h): Likewise.
49232         * modules/sys_time (sys/time.h): Likewise.
49233         * modules/time (time.h): Likewise.
49234         * modules/wchar (wchar.h): Likewise.
49235         * modules/wctype (wtype.h): Likewise.
49236
49237 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49238
49239         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49240
49241 2007-05-13  Bruno Haible  <bruno@clisp.org>
49242
49243         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49244         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49245         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49246         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49247         (gl_PREREQ_STRTOK_R): Don't require it here.
49248
49249 2007-05-13  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49252         when used in C++ mode.
49253
49254 2007-05-12  Bruno Haible  <bruno@clisp.org>
49255
49256         * lib/linebuffer.h: Tweak doc.
49257         * lib/linebuffer.c: Likewise.
49258
49259 2007-05-12  James Youngman  <jay@gnu.org>
49260
49261         * lib/linebuffer.c (readlinebuffer_delim): New function,
49262         like readlinebuffer, but use a caller-specified delimiter.
49263         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49264         as the delimiter.
49265         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49266
49267 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49268
49269         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49270         * modules/openat (Files): Remove openat-die.c.
49271         (Depends-on): Add openat-die.
49272         * modules/openat-die: New module.
49273
49274 2007-05-06  Bruno Haible  <bruno@clisp.org>
49275
49276         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49277         Update with info about Cygwin.
49278         * doc/functions/fprintf.texi: Update.
49279         * doc/functions/printf.texi: Update.
49280         * doc/functions/snprintf.texi: Update.
49281         * doc/functions/sprintf.texi: Update.
49282         * doc/functions/vfprintf.texi: Update.
49283         * doc/functions/vprintf.texi: Update.
49284         * doc/functions/vsnprintf.texi: Update.
49285         * doc/functions/vsprintf.texi: Update.
49286         Reported by Eric Blake.
49287
49288 2007-05-06  Bruno Haible  <bruno@clisp.org>
49289
49290         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49291         padding ourselves for the floating-point directives.
49292         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49295         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49296         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49297         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49304         * tests/test-snprintf-posix.h (test_function): Also check the width
49305         and some flags in the %f directive.
49306         * tests/test-sprintf-posix.h (test_function): Likewise.
49307         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49308         * tests/test-vasprintf-posix.c (test_function): Likewise.
49309         * doc/functions/fprintf.texi: Update.
49310         * doc/functions/printf.texi: Update.
49311         * doc/functions/snprintf.texi: Update.
49312         * doc/functions/sprintf.texi: Update.
49313         * doc/functions/vfprintf.texi: Update.
49314         * doc/functions/vprintf.texi: Update.
49315         * doc/functions/vsnprintf.texi: Update.
49316         * doc/functions/vsprintf.texi: Update.
49317
49318 2007-05-06  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49321         pass the ' flag character to sprintf or snprintf.
49322         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49324         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49325         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49326         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49327         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49328         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49329         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49330         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49331         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49332         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49333         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49334         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49335         flag.
49336         * tests/test-sprintf-posix.h (test_function): Likewise.
49337         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49338         * tests/test-vasprintf-posix.c (test_function): Likewise.
49339         * doc/functions/fprintf.texi: Update.
49340         * doc/functions/printf.texi: Update.
49341         * doc/functions/snprintf.texi: Update.
49342         * doc/functions/sprintf.texi: Update.
49343         * doc/functions/vfprintf.texi: Update.
49344         * doc/functions/vprintf.texi: Update.
49345         * doc/functions/vsnprintf.texi: Update.
49346         * doc/functions/vsprintf.texi: Update.
49347
49348 2007-05-01  Bruno Haible  <bruno@clisp.org>
49349
49350         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49351
49352 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49353
49354         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49355         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49356
49357 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49358
49359         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49360         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49361         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49362
49363 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49364
49365         * lib/argp-help.c (struct hol_entry): New member `ord'.
49366         (HOL_ENTRY_PTRCMP): Use ord for comparison
49367         (hol_sort): Initialize ord.
49368
49369 2007-05-01  Bruno Haible  <bruno@clisp.org>
49370
49371         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49372         Reported by Eric Blake.
49373         * doc/gnulib.texi (Function Substitutes): Update.
49374
49375 2007-05-01  Bruno Haible  <bruno@clisp.org>
49376
49377         * doc/functions.texi: Remove file, now redundant through
49378         doc/functions/*.texi.
49379
49380 2007-05-01  Bruno Haible  <bruno@clisp.org>
49381
49382         * modules/argp (Depends-on): Add sleep.
49383
49384 2007-05-01  Bruno Haible  <bruno@clisp.org>
49385
49386         * modules/sleep-tests: New file.
49387         * tests/test-sleep.c: New file.
49388
49389         * modules/sleep: New file.
49390         * lib/sleep.c: New file.
49391         * m4/sleep.m4: New file.
49392         * lib/unistd_.h (sleep): New declaration.
49393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49394         HAVE_SLEEP.
49395         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49396         * doc/functions/sleep.texi: Document the sleep module.
49397
49398 2007-05-01  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/sigprocmask.h: Remove file.
49401         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49402         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49403         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49404         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49405         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49406         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49407         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49408         HAVE_SIGSET_T as a shell variable.
49409         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49410         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49411         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49412         (Depends-on): Add signal. Remove verify.
49413         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49414         (Include): Mention <signal.h> instead of sigprocmask.h.
49415         * NEWS: Mention the change.
49416         * lib/fatal-signal.c: Don't include sigprocmask.h.
49417
49418 2007-05-01  Bruno Haible  <bruno@clisp.org>
49419
49420         * modules/signal: New file.
49421         * lib/signal_.h: New file.
49422         * m4/signal_h.m4: New file.
49423
49424 2007-05-01  Bruno Haible  <bruno@clisp.org>
49425
49426         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49427         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49428         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49429         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49430
49431 2007-05-01  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49434         configure time.
49435         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49436         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49437         * modules/sys_stat (Makefile.am): Substitute their values into
49438         sys/stat.h.
49439
49440 2007-05-01  Bruno Haible  <bruno@clisp.org>
49441
49442         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49443         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49444         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49445
49446 2007-05-01  Bruno Haible  <bruno@clisp.org>
49447
49448         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49449         'assert' module here.
49450
49451 2007-05-01  Bruno Haible  <bruno@clisp.org>
49452
49453         * doc/functions/*.texi: New files.
49454         * doc/functions/google-ranking.txt: New file.
49455         * doc/gnulib.texi (Function Substitutes): New chapter.
49456         (ctime, inet_ntoa): Remove sections.
49457         * doc/ctime.texi: Remove file.
49458         * doc/inet_ntoa.texi: Remove file.
49459         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49460         dependencies.
49461         (%.info): New rule, specifying a --reference-limit.
49462
49463 2007-05-01  Bruno Haible  <bruno@clisp.org>
49464
49465         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49466
49467 2007-05-01  Bruno Haible  <bruno@clisp.org>
49468
49469         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49470         the portability of 'mkdir' to mingw systems.
49471
49472 2007-05-01  Bruno Haible  <bruno@clisp.org>
49473
49474         * doc/headers/google-ranking.txt: New file.
49475
49476 2007-04-30  Eric Blake  <ebb9@byu.net>
49477
49478         Prefer fseeko to fseek.
49479         * modules/getpass (Depends-on): Add fseeko.
49480         * lib/getpass.c (getpass): Use fseeko, not fseek.
49481
49482 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49483
49484         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49485         assumes the sorting is stable, while most qsort implementations
49486         are not.  Use argument addresses to ensure they never compare as
49487         equal.
49488
49489         * tests/test-argp-2.sh (usage-indent test): Fix output
49490         (func_compare): Restore diff options
49491         * tests/test-argp.c: Restore #include "progname.h"
49492
49493 2007-04-29  Bruno Haible  <bruno@clisp.org>
49494
49495         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49497         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49498         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49499         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49500         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49501         (TESTS, check_PROGRAMS): Add test-snprintf.
49502         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49503         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49504         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49505         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49506         assertions that fail on HP-UX, OSF/1, or IRIX.
49507         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49508
49509 2007-04-29  Bruno Haible  <bruno@clisp.org>
49510
49511         * MODULES.html.sh (posix_functions): Remove 'contents'.
49512
49513 2007-04-29  Karl Berry  <karl@gnu.org>
49514
49515         * config/srclist.txt (gendocs_template_min): new entry.
49516
49517 2007-04-29  Bruno Haible  <bruno@clisp.org>
49518
49519         Work around fpurge bug on BSD systems.
49520         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49521         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49522         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49523         fpurge to rpl_fpurge if the system already has this function.
49524         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49525         the case where the system already has this function. Correct invariants
49526         on BSD systems.
49527         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49528         BSD systems.
49529
49530 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49531
49532         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49533         proposed by Sven Verdoolaege.
49534
49535         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49536         options.
49537         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49538         (usage and help tests): Update
49539
49540 2007-04-29  Bruno Haible  <bruno@clisp.org>
49541
49542         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49543         Print more information in case of failure. Disable a test on BeOS.
49544
49545 2007-04-29  Bruno Haible  <bruno@clisp.org>
49546
49547         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49548         This helps debugging on systems on which no gdb is available.
49549
49550 2007-04-29  Bruno Haible  <bruno@clisp.org>
49551
49552         * lib/freading.h: Improve comments.
49553         * lib/fwriting.h: Likewise.
49554         * tests/test-freading.c (main): Don't check freading immediately after
49555         repositioning. Needed for glibc.
49556
49557 2007-04-29  Bruno Haible  <bruno@clisp.org>
49558
49559         * lib/freading.c (freading): Trivial simplification.
49560
49561 2007-04-28  Bruno Haible  <bruno@clisp.org>
49562
49563         * tests/test-fwriting.c (main): Also test the interaction between
49564         fflush and fwriting.
49565         * modules/fwriting-tests (Depends-on): Add fflush.
49566
49567         * tests/test-freading.c (main): Also test the interaction between
49568         fflush and freading.
49569         * modules/freading-tests (Depends-on): Add fflush.
49570
49571 2007-04-28  Bruno Haible  <bruno@clisp.org>
49572
49573         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49574         fseeko and ftello.
49575         Suggested by Eric Blake.
49576
49577 2007-04-28  Jim Meyering  <jim@meyering.net>
49578
49579         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49580         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49581         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49582
49583 2007-04-27  Eric Blake  <ebb9@byu.net>
49584
49585         * doc/headers/assert.texi (assert.h): Document assert module use.
49586
49587 2007-04-27  Bruno Haible  <bruno@clisp.org>
49588
49589         * doc/headers/*.texi: New files.
49590         * doc/gnulib.texi (Header File Substitutes): New chapter.
49591         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49592         dependencies.
49593         (standards.info ,standards.html, standards.dvi): Update dependencies.
49594         (mostlyclean, clean): New targets.
49595
49596 2007-04-27  Bruno Haible  <bruno@clisp.org>
49597
49598         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49599         * modules/sysexits (Files, Makefile.am): Update.
49600
49601         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49602         * modules/sys_socket (Files, Makefile.am): Update.
49603
49604         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49605         * modules/sys_stat (Files, Makefile.am): Update.
49606
49607 2007-04-27  Eric Blake  <ebb9@byu.net>
49608
49609         * lib/freading.h: Improve comments.
49610         * lib/fwriting.h: Likewise.
49611         * lib/fflush.c: Likewise.
49612
49613         Fix closein for mingw.
49614         * modules/closein-tests: Add tests for closein.
49615         * tests/test-closein.c: New file.
49616         * tests/test-closein.sh: Likewise.
49617         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49618         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49619
49620 2007-04-27  Bruno Haible  <bruno@clisp.org>
49621
49622         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49623         version is < 6.
49624         * lib/math_.h [__DECC]: Likewise.
49625         * lib/stdio_.h [__DECC]: Likewise.
49626         * lib/stdlib_.h [__DECC]: Likewise.
49627         * lib/string_.h [__DECC]: Likewise.
49628         * lib/time_.h [__DECC]: Likewise.
49629         * lib/wchar_.h [__DECC]: Likewise.
49630         * lib/wctype_.h [__DECC]: Likewise.
49631
49632 2007-04-27  Bruno Haible  <bruno@clisp.org>
49633
49634         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49635
49636 2007-04-27  Bruno Haible  <bruno@clisp.org>
49637
49638         * lib/fflush.c: Add comments.
49639         * modules/fpurge-tests (Depends-on): Add fflush.
49640         * modules/freadable-tests (Depends-on): Likewise.
49641         * modules/fwritable-tests (Depends-on): Likewise.
49642
49643 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49644
49645         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49646         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49647         Report by Bruno Haible <bruno@clisp.org>.
49648
49649 2007-04-26  Eric Blake  <ebb9@byu.net>
49650
49651         Fix fflush on mingw.
49652         * modules/fflush (Depends-on): Add freading.
49653         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49654         but unread data.
49655
49656 2007-04-26  Eric Blake  <ebb9@byu.net>
49657         and Bruno Haible  <bruno@clisp.org>
49658
49659         Implement freading and fwriting.
49660         * lib/freading.c: New file.
49661         * lib/freading.h: Likewise.
49662         * m4/freading.m4: Likewise.
49663         * modules/freading: Likewise.
49664         * modules/freading-tests: Likewise.
49665         * tests/test-freading.c: Likewise.
49666         * lib/fwriting.c: New file.
49667         * lib/fwriting.h: Likewise.
49668         * m4/fwriting.m4: Likewise.
49669         * modules/fwriting: Likewise.
49670         * modules/fwriting-tests: Likewise.
49671         * tests/test-fwriting.c: Likewise.
49672         * MODULES.html.sh (File stream based Input/Output): Mention them.
49673
49674 2007-04-26  Bruno Haible  <bruno@clisp.org>
49675
49676         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49677         'long' when we assume it.
49678         Suggested by Eric Blake.
49679
49680 2007-04-26  Bruno Haible  <bruno@clisp.org>
49681
49682         Ensure fseeko, ftello are declared on glibc systems.
49683         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49684         * modules/fseeko (configure.ac-early): Likewise.
49685         * modules/ftello (configure.ac-early): Likewise.
49686         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49687         AC_FUNC_FSEEKO for this.
49688         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49689         (gl_CHECK_FSEEKO): Remove macro.
49690
49691 2007-04-26  Bruno Haible  <bruno@clisp.org>
49692
49693         * tests/test-fflush.c (main): Also check the ftell result after
49694         fflush and fseek/fseeko.
49695         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49696         file descriptor position cache in the stream.
49697         * lib/fseeko.c (rpl_fseeko): Likewise.
49698
49699 2007-04-26  Bruno Haible  <bruno@clisp.org>
49700
49701         * modules/fflush-tests (Depends-on): Add fseeko.
49702
49703 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49704             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49705
49706         * lib/argz_.h: ensure error_t definition is obtained in same
49707         mechanism system argz.h would have.
49708         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49709         argz facilities are known bad.  Err on the side of caution if
49710         cross-compiling.
49711
49712 2007-04-25  Eric Blake  <ebb9@byu.net>
49713
49714         * lib/fpurge.c (includes): Use stdlib.h for free.
49715         * tests/test-fflush.c (main): Also test fflush-fseeko.
49716
49717 2007-04-25  Bruno Haible  <bruno@clisp.org>
49718
49719         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49720         * lib/fseeko.c: New file.
49721         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49722         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49723         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49724         gl_FUNC_FSEEKO.
49725         (gl_FUNC_FSEEKO): Invoke it.
49726         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49727         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49728         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49729
49730 2007-04-25  Bruno Haible  <bruno@clisp.org>
49731
49732         * modules/fflush (Depends-on): Add ftello.
49733
49734 2007-04-25  Bruno Haible  <bruno@clisp.org>
49735
49736         * modules/ftello-tests: New file.
49737         * tests/test-ftello.c: New file.
49738
49739         * modules/ftello: New file.
49740         * m4/ftello.m4: New file.
49741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49742         HAVE_FTELLO.
49743         * lib/stdio_.h (ftello): New declaration.
49744         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49745         HAVE_FTELLO.
49746
49747 2007-04-25  Bruno Haible  <bruno@clisp.org>
49748
49749         * modules/fseeko-tests: New file.
49750         * tests/test-fseeko.c: New file.
49751
49752         * modules/fseeko: New file.
49753         * m4/fseeko.m4: New file.
49754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49755         HAVE_FSEEKO.
49756         * lib/stdio_.h (fseeko): New declaration.
49757         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49758         HAVE_FSEEKO.
49759
49760 2007-04-25  Bruno Haible  <bruno@clisp.org>
49761
49762         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49763
49764 2007-04-25  Bruno Haible  <bruno@clisp.org>
49765
49766         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49767         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49768         * tests/test-unistd.c: Likewise.
49769         * tests/test-fcntl.c: Likewise.
49770
49771 2007-04-23  Eric Blake  <ebb9@byu.net>
49772
49773         * lib/fflush.c: Fix missing include.
49774         Reported by Bruno Haible.
49775
49776 2007-04-23  Bruno Haible  <bruno@clisp.org>
49777
49778         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49779         Reported by Eric Blake.
49780
49781 2007-04-23  Bruno Haible  <bruno@clisp.org>
49782
49783         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49784
49785 2007-04-23  Bruno Haible  <bruno@clisp.org>
49786
49787         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49788
49789 2007-04-23  Bruno Haible  <bruno@clisp.org>
49790
49791         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49792         Needed on HP-UX 11.
49793
49794 2007-04-16  Eric Blake  <ebb9@byu.net>
49795
49796         Make fflush rely on fpurge.
49797         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49798         open coding all variants.
49799         * modules/fflush (Depends-on): Add fpurge and unistd.
49800         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49801         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49802
49803         Fix --with-tests compilation on cygwin.
49804         * modules/argmatch-tests (Makefile.am): List gnulib library first
49805         in LDADD.
49806         * modules/argp-tests (Makefile.am): Likewise.
49807         * modules/array-list-tests (Makefile.am): Likewise.
49808         * modules/array-oset-tests (Makefile.am): Likewise.
49809         * modules/avltree-list-tests (Makefile.am): Likewise.
49810         * modules/avltree-oset-tests (Makefile.am): Likewise.
49811         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49812         * modules/carray-list-tests (Makefile.am): Likewise.
49813         * modules/dirname-tests (Makefile.am): Likewise.
49814         * modules/frexp-tests (Makefile.am): Likewise.
49815         * modules/isnanl-tests (Makefile.am): Likewise.
49816         * modules/linked-list-tests (Makefile.am): Likewise.
49817         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49818         * modules/lock-tests (Makefile.am): Likewise.
49819         * modules/rbtree-list-tests (Makefile.am): Likewise.
49820         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49821         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49822         * modules/tls-tests (Makefile.am): Likewise.
49823         * modules/tsearch-tests (Makefile.am): Likewise.
49824         * modules/xvasprintf-tests (Makefile.am): Likewise.
49825
49826         Fix fpurge for cygwin.
49827         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49828         value.
49829         * modules/fpurge-tests (Depends-on): Clean up trash.
49830
49831 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49832
49833         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49834
49835         * m4/autobuild.m4: Re-indent.
49836
49837 2007-04-13  Bruno Haible  <bruno@clisp.org>
49838
49839         * modules/fpurge-tests: New file.
49840         * tests/test-fpurge.c: New file.
49841
49842         * modules/fpurge: New file.
49843         * lib/fpurge.h: New file.
49844         * lib/fpurge.c: New file.
49845         * m4/fpurge.m4: New file.
49846
49847 2007-04-13  Bruno Haible  <bruno@clisp.org>
49848
49849         * modules/fbufmode-tests: New file.
49850         * tests/test-fbufmode.c: New file.
49851
49852         * modules/fbufmode: New file.
49853         * lib/fbufmode.h: New file.
49854         * lib/fbufmode.c: New file.
49855         * m4/fbufmode.m4: New file.
49856
49857 2007-04-13  Bruno Haible  <bruno@clisp.org>
49858
49859         * modules/fwritable-tests: New file.
49860         * tests/test-fwritable.c: New file.
49861
49862         * modules/fwritable: New file.
49863         * lib/fwritable.h: New file.
49864         * lib/fwritable.c: New file.
49865         * m4/fwritable.m4: New file.
49866
49867 2007-04-13  Bruno Haible  <bruno@clisp.org>
49868
49869         * modules/freadable-tests: New file.
49870         * tests/test-freadable.c: New file.
49871
49872         * modules/freadable: New file.
49873         * lib/freadable.h: New file.
49874         * lib/freadable.c: New file.
49875         * m4/freadable.m4: New file.
49876
49877 2007-04-13  Bruno Haible  <bruno@clisp.org>
49878
49879         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49880         MOSTLYCLEANFILES.
49881
49882 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49883
49884         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49885         gzip bootstrap.conf to avoid dragging in i18n machinery.
49886         (gnulib_tool_option): Use it.
49887
49888 2007-04-13  Bruno Haible  <bruno@clisp.org>
49889
49890         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49891         %F directives.
49892         * tests/test-vasprintf-posix.c (test_function): Likewise.
49893         * tests/test-snprintf-posix.h (test_function): Likewise.
49894         * tests/test-sprintf-posix.h (test_function): Likewise.
49895         * tests/test-fprintf-posix.h (test_function): Likewise.
49896         * tests/test-printf-posix.h (test_function): Likewise.
49897         * tests/test-fprintf-posix.out: Likewise.
49898
49899 2007-04-13  Bruno Haible  <bruno@clisp.org>
49900
49901         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49902         * modules/tls-tests (configure.ac): Likewise.
49903         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49904
49905 2007-04-13  Bruno Haible  <bruno@clisp.org>
49906
49907         * lib/tls.c (glthread_tls_get): Fix return type.
49908         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49909
49910 2007-04-12  Eric Blake  <ebb9@byu.net>
49911
49912         * modules/gettime (Depends-on): Remove gettime.
49913         Reported by Dmitry V. Levin.
49914
49915 2007-04-12  Bruno Haible  <bruno@clisp.org>
49916
49917         * modules/fflush (Include): Mention <stdio.h>.
49918         * modules/strtoimax (Include): Mention <inttypes.h>.
49919         * modules/strtoumax (Include): Likewise.
49920
49921 2007-04-12  Eric Blake  <ebb9@byu.net>
49922
49923         * .cvsignore: New file.
49924         * .gitignore: Likewise.
49925
49926 2007-04-12  Bruno Haible  <bruno@clisp.org>
49927
49928         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49929         not before, since $(LDADD) often contains libgnu.a.
49930         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49931         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49932         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49933         Needed on Cygwin.
49934
49935 2007-04-12  Eric Blake  <ebb9@byu.net>
49936
49937         Work around glibc's failure to flush stdin on fclose.
49938         * lib/closein.c (close_stdin): Flush stdin before closing.
49939
49940         Work around glibc's failure to reset seekable stdin on exit.
49941         * modules/closein: New module.
49942         * lib/closein.c: New file.
49943         * lib/closein.h: Likewise.
49944         * m4/closein.m4: Likewise.
49945         * MODULES.html.sh (File stream based Input/Output): Document it.
49946
49947 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49948
49949         * gnulib-tool: Rename generated 'autobuild' script to
49950         'do-autobuild' in --create-megatestdir output.
49951
49952         * doc/gnulib.texi (Build robot for gnulib): Fix.
49953
49954 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49955
49956         * modules/sysexits (Depends-on): Add absolute-header.
49957
49958 2007-04-12  Eric Blake  <ebb9@byu.net>
49959
49960         No need to preserve errno on success.
49961         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
49962         Reported by Bruno Haible.
49963
49964 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49965
49966         * MODULES.html.sh (Support for maintaining and releasing
49967         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
49968
49969 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49970
49971         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
49972
49973 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49974
49975         * modules/autobuild: New module.
49976
49977         * m4/autobuild.m4: New file.
49978
49979 2007-04-11  Bruno Haible  <bruno@clisp.org>
49980
49981         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
49982         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
49983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
49984         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
49985         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49986         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49987         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49988         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49989         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49990         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49991         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
49992         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49993         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49994         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
49995         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49996         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
49998         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49999         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50000         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50001         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50002         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50003         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50004         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50005         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50006         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50007         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50008         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50009         Reported by Eric Blake.
50010
50011 2007-04-11  Bruno Haible  <bruno@clisp.org>
50012
50013         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50014
50015 2007-04-10  Bruno Haible  <bruno@clisp.org>
50016
50017         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50018         for NaN and Infinity. Needed on FreeBSD 6.1.
50019         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50020         regarding results for "%010a" of Infinity and NaN.
50021         * tests/test-vasprintf-posix.c (test_function): Likewise.
50022         * tests/test-snprintf-posix.h (test_function): Likewise.
50023         * tests/test-sprintf-posix.h (test_function): Likewise.
50024         * tests/test-fprintf-posix.h (test_function): Likewise.
50025         * tests/test-printf-posix.h (test_function): Likewise.
50026         * tests/test-fprintf-posix.out: Likewise.
50027
50028 2007-04-10  Bruno Haible  <bruno@clisp.org>
50029
50030         * modules/locale-tests: New file.
50031         * tests/test-locale.c: New file.
50032
50033         * modules/locale: New file.
50034         * lib/locale_.h: New file.
50035         * m4/locale_h.m4: New file.
50036
50037 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50038             Bruno Haible  <bruno@clisp.org>
50039
50040         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50041         be determined, test for availability of the copysignf, copysign,
50042         copysignl functions.
50043         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50044         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50045         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50046
50047 2007-04-09  Eric Blake  <ebb9@byu.net>
50048
50049         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50050         * modules/stdio (Makefile.am): Support fflush.
50051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50052         * modules/fflush: New file.
50053         * lib/fflush.c: Likewise.
50054         * m4/fflush.m4: Likewise.
50055         * modules/fflush-tests: New test.
50056         * tests/test-fflush.c: Likewise.
50057         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50058
50059 2007-04-06  Bruno Haible  <bruno@clisp.org>
50060
50061         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50062         (VASNPRINTF): Use signbit for faster determination whether to print a
50063         minus sign.
50064         * modules/vasnprintf (Files): Remove lib/float+.h.
50065         * modules/fprintf-posix (Depends-on): Add signbit.
50066         * modules/snprintf-posix (Depends-on): Likewise.
50067         * modules/sprintf-posix (Depends-on): Likewise.
50068         * modules/vasnprintf-posix (Depends-on): Likewise.
50069         * modules/vasprintf-posix (Depends-on): Likewise.
50070         * modules/vfprintf-posix (Depends-on): Likewise.
50071         * modules/vsnprintf-posix (Depends-on): Likewise.
50072         * modules/vsprintf-posix (Depends-on): Likewise.
50073
50074 2007-04-06  Bruno Haible  <bruno@clisp.org>
50075
50076         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50077         * tests/test-frexpl.c (main): Likewise.
50078         * tests/test-ldexpl.c (main): Likewise.
50079         * modules/frexp-tests (Depends-on): Add signbit.
50080         * modules/frexpl-tests (Depdends-on): Likewise.
50081         * modules/ldexpl-tests (Depdends-on): Likewise.
50082
50083 2007-04-06  Bruno Haible  <bruno@clisp.org>
50084
50085         * modules/signbit-tests: New file.
50086         * tests/test-signbit.c: New file.
50087
50088         * modules/signbit: New file.
50089         * lib/signbitf.c: New file.
50090         * lib/signbitd.c: New file.
50091         * lib/signbitl.c: New file.
50092         * m4/signbit.m4: New file.
50093         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50094         (signbit): New macro.
50095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50096         REPLACE_SIGNBIT.
50097         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
50098         REPLACE_FREXPL into math.h.
50099
50100 2007-04-06  Bruno Haible  <bruno@clisp.org>
50101
50102         * modules/isnanf-nolibm-tests: New file.
50103         * tests/test-isnanf.c: New file.
50104
50105         * modules/isnanf-nolibm: New file.
50106         * lib/isnanf.h: New file.
50107         * lib/isnanf.c: New file.
50108         * lib/isnan.c: Consider the USE_FLOAT macro.
50109         * m4/isnanf.m4: New file.
50110
50111 2007-04-06  Bruno Haible  <bruno@clisp.org>
50112
50113         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50114         (Link): New section.
50115
50116         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50117
50118 2007-04-06  Bruno Haible  <bruno@clisp.org>
50119
50120         Assume the 'long double' type.
50121         * m4/longdouble.m4: Remove file.
50122         * config/srclist.txt: Don't mention longdouble.m4.
50123         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50124         * lib/float+.h: Likewise.
50125         * lib/frexp.c: Likewise.
50126         * lib/printf-args.h: Likewise.
50127         * lib/printf-args.c: Likewise.
50128         * lib/printf-frexp.c: Likewise.
50129         * lib/printf-parse.c: Likewise.
50130         * lib/vasnprintf.c: Likewise.
50131         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50132         * m4/intl.m4: Likewise.
50133         * m4/isnanl.m4: Likewise.
50134         * m4/printf.m4: Likewise.
50135         * m4/printf-frexpl.m4: Likewise.
50136         * m4/vasnprintf.m4: Likewise.
50137         * modules/allocsa (Files): Remove m4/longdouble.m4.
50138         * modules/gettext (Files): Likewise.
50139         * modules/relocatable-prog-wrapper (Files): Likewise.
50140         * modules/vasnprintf (Files): Likewise.
50141         * modules/isnanl (Files): Likewise.
50142         (Include): Simplify.
50143         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50144         (Include): Simplify.
50145         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50146         (Include): Simplify.
50147         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50148         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50149         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50150         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50151         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50152         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50153         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50154         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50155         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50156         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50157         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50158         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50159         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50160         * tests/test-isnanl.c: Likewise.
50161         * tests/test-snprintf-posix.h: Likewise.
50162         * tests/test-sprintf-posix.h: Likewise.
50163         * tests/test-vasnprintf-posix.c: Likewise.
50164         * tests/test-vasnprintf-posix2.c: Likewise.
50165         * tests/test-vasprintf-posix.c: Likewise.
50166
50167 2007-04-06  Bruno Haible  <bruno@clisp.org>
50168
50169         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50170         * lib/math_.h [__DECC]: Include the overridden include file through
50171         #include_next, outside the double-inclusion guard.
50172         * lib/stdio_.h [__DECC]: Likewise.
50173         * lib/stdlib_.h [__DECC]: Likewise.
50174         * lib/string_.h [__DECC]: Likewise.
50175         * lib/time_.h [__DECC]: Likewise.
50176         * lib/wchar_.h [__DECC]: Likewise.
50177         * lib/wctype_.h [__DECC]: Likewise.
50178         * lib/inttypes_.h [__DECC]: Likewise.
50179         Reported by Albert Chin <china@thewrittenword.com> in
50180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50181
50182 2007-04-04  Eric Blake  <ebb9@byu.net>
50183
50184         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50185         1.5.x.
50186
50187 2007-04-04  Bruno Haible  <bruno@clisp.org>
50188
50189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50190         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50191
50192 2007-04-04  Bruno Haible  <bruno@clisp.org>
50193
50194         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50195         results for "%010a" of Infinity and NaN.
50196         * tests/test-vasprintf-posix.c (test_function): Likewise.
50197         * tests/test-snprintf-posix.h (test_function): Likewise.
50198         * tests/test-sprintf-posix.h (test_function): Likewise.
50199         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50200         * tests/test-printf-posix.h (test_function): Likewise.
50201         * tests/test-fprintf-posix.out: Update.
50202         Needed for FreeBSD 6.1.
50203
50204 2007-04-04  Bruno Haible  <bruno@clisp.org>
50205
50206         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50207         directly used by the gnulib modules nor by gnulib-tool.
50208
50209 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50210
50211         * DEPENDENCIES: Give overall description of version dependency
50212         desirability.  Use more-typical names for apps.
50213         Add shell, coreutils, diffutils, grep, tar, gzip.
50214
50215 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50216
50217         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50218
50219 2007-04-04  Karl Berry  <karl@gnu.org>
50220
50221         * MODULES.html.sh (func_module): missing '.
50222
50223 2007-04-03  Bruno Haible  <bruno@clisp.org>
50224
50225         * modules/argmatch-tests (Makefile.am): New variable
50226         test_argmatch_LDADD.
50227         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50228         * modules/array-list-tests (Makefile.am): New variable
50229         test_array_list_LDADD.
50230         * modules/array-oset-tests (Makefile.am): New variable
50231         test_array_oset_LDADD.
50232         * modules/avltree-list-tests (Makefile.am): New variable
50233         test_avltree_list_LDADD.
50234         * modules/avltree-oset-tests (Makefile.am): New variable
50235         test_avltree_oset_LDADD.
50236         * modules/avltreehash-list-tests (Makefile.am): New variable
50237         test_avltreehash_list_LDADD.
50238         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50239         test_canonicalize_lgpl_LDADD.
50240         * modules/carray-list-tests (Makefile.am): New variable
50241         test_carray_list_LDADD.
50242         * modules/dirname-tests (Makefile.am): New variable
50243         test_dirname_LDADD.
50244         * modules/linked-list-tests (Makefile.am): New variable
50245         test_linked_list_LDADD.
50246         * modules/linkedhash-list-tests (Makefile.am): New variable
50247         test_linkedhash_list_LDADD.
50248         * modules/rbtree-list-tests (Makefile.am): New variable
50249         test_rbtree_list_LDADD.
50250         * modules/rbtree-oset-tests (Makefile.am): New variable
50251         test_rbtree_oset_LDADD.
50252         * modules/rbtreehash-list-tests (Makefile.am): New variable
50253         test_rbtreehash_list_LDADD.
50254         * modules/xvasprintf-tests (Makefile.am): New variable
50255         test_xvasprintf_LDADD.
50256         Reported by Eric Blake.
50257
50258 2007-04-03  Eric Blake  <ebb9@byu.net>
50259
50260         * DEPENDENCIES: Weaken m4 requirements.
50261
50262 2007-04-03  Bruno Haible  <bruno@clisp.org>
50263
50264         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50265         * modules/isnanl-tests (configure.ac): Likewise.
50266
50267 2007-04-03  Ben Pfaff  <blp@gnu.org>
50268
50269         * modules/iconv_open: Add $(srcdir)/ to source directory
50270         references in Makefile fragments that call gperf, to fix VPATH
50271         builds.
50272
50273 2007-04-03  Bruno Haible  <bruno@clisp.org>
50274
50275         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50276         * lib/ldexpl.c: Undo last change.
50277
50278 2007-04-03  Bruno Haible  <bruno@clisp.org>
50279
50280         * modules/printf-frexpl (Depends-on): Undo last change.
50281         (Files): Add m4/ldexpl.m4.
50282
50283 2007-04-03  Bruno Haible  <bruno@clisp.org>
50284
50285         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50286         * modules/isnanl (Link): New section.
50287
50288         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50289         * modules/frexp (Link): New section.
50290
50291         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50292         * modules/frexpl (Link): New section.
50293
50294         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50295         * modules/ldexpl (Link): New section.
50296
50297 2007-04-03  Bruno Haible  <bruno@clisp.org>
50298
50299         * modules/TEMPLATE-EXTENDED: New file.
50300         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50301
50302 2007-04-03  Bruno Haible  <bruno@clisp.org>
50303
50304         * DEPENDENCIES: New file.
50305         Suggested by Simon Josefsson.
50306
50307 2007-04-03  Bruno Haible  <bruno@clisp.org>
50308
50309         * doc/gnulib.texi: Escape @.
50310
50311 2007-04-03  James Youngman  <jay@gnu.org>
50312         and Paul Eggert  <eggert@cs.ucla.edu>
50313
50314         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50315         birthtime on all systems that have birthtime, not just those which
50316         use st_birthtimensec rather than st_birthtim.  Putting zero in
50317         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50318         that the birth time is not available for files on an NFS mount.
50319
50320 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50321
50322         * modules/memxor: Move back from crypto/, suggested by Bruno.
50323         * modules/crypto/hmac-sha1: Fix memxor dependency.
50324
50325         * modules/crypto/gc: Moved from ../.
50326
50327 2007-04-02  Eric Blake  <ebb9@byu.net>
50328
50329         * lib/ldexpl.c (includes): Avoid libm.
50330
50331         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50332
50333 2007-04-02  Bruno Haible  <bruno@clisp.org>
50334
50335         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50336         on IRIX.
50337
50338 2007-04-02  Bruno Haible  <bruno@clisp.org>
50339
50340         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50341         x86 or x86_64 platforms running MacOS X.
50342         Reported by Ryan Schmidt <@ryandesign.com>.
50343
50344 2007-04-02  Bruno Haible  <bruno@clisp.org>
50345
50346         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50347         i386.
50348
50349 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50350
50351         * modules/crypto/arcfour: Moved from ../.
50352         * modules/crypto/arcfour-tests: Moved from ../.
50353         * modules/crypto/arctwo: Moved from ../.
50354         * modules/crypto/arctwo-tests: Moved from ../.
50355         * modules/crypto/des: Moved from ../.
50356         * modules/crypto/des-tests: Moved from ../.
50357         * modules/crypto/gc-arcfour: Moved from ../.
50358         * modules/crypto/gc-arcfour-tests: Moved from ../.
50359         * modules/crypto/gc-arctwo: Moved from ../.
50360         * modules/crypto/gc-arctwo-tests: Moved from ../.
50361         * modules/crypto/gc-des: Moved from ../.
50362         * modules/crypto/gc-des-tests: Moved from ../.
50363         * modules/crypto/gc-hmac-md5: Moved from ../.
50364         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50365         * modules/crypto/gc-hmac-sha1: Moved from ../.
50366         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50367         * modules/crypto/gc-md2: Moved from ../.
50368         * modules/crypto/gc-md2-tests: Moved from ../.
50369         * modules/crypto/gc-md4: Moved from ../.
50370         * modules/crypto/gc-md4-tests: Moved from ../.
50371         * modules/crypto/gc-md5: Moved from ../.
50372         * modules/crypto/gc-md5-tests: Moved from ../.
50373         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50374         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50375         * modules/crypto/gc-random: Moved from ../.
50376         * modules/crypto/gc-rijndael: Moved from ../.
50377         * modules/crypto/gc-rijndael-tests: Moved from ../.
50378         * modules/crypto/gc-sha1: Moved from ../.
50379         * modules/crypto/gc-sha1-tests: Moved from ../.
50380         * modules/crypto/gc-tests: Moved from ../.
50381         * modules/crypto/hmac-md5: Moved from ../.
50382         * modules/crypto/hmac-md5-tests: Moved from ../.
50383         * modules/crypto/hmac-sha1: Moved from ../.
50384         * modules/crypto/hmac-sha1-tests: Moved from ../.
50385         * modules/crypto/md2: Moved from ../.
50386         * modules/crypto/md2-tests: Moved from ../.
50387         * modules/crypto/md4: Moved from ../.
50388         * modules/crypto/md4-tests: Moved from ../.
50389         * modules/crypto/md5: Moved from ../.
50390         * modules/crypto/md5-tests: Moved from ../.
50391         * modules/crypto/memxor: Moved from ../.
50392         * modules/crypto/rijndael: Moved from ../.
50393         * modules/crypto/rijndael-tests: Moved from ../.
50394         * modules/crypto/sha1: Moved from ../.
50395
50396 2007-03-30  James Youngman  <jay@gnu.org>
50397
50398         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50399         rename() to change the ctime of a file (because ctime is unaffected
50400         by rename on jfs2 on AIX 5.1).
50401         (main): Start by doing cleanup, in case a previous run failed leaving
50402         test files behind.
50403
50404 2007-03-31  Bruno Haible  <bruno@clisp.org>
50405
50406         Support old proprietary implementations of iconv.
50407         * modules/iconv_open: New file.
50408         * lib/iconv_.h: New file.
50409         * m4/iconv_h.m4: New file.
50410         * lib/iconv_open.c: New file.
50411         * lib/iconv_open-aix.gperf: New file.
50412         * lib/iconv_open-hpux.gperf: New file.
50413         * lib/iconv_open-irix.gperf: New file.
50414         * lib/iconv_open-osf.gperf: New file.
50415         * m4/iconv_open.m4: New file.
50416         * modules/linebreak (Depends-on): Add iconv_open.
50417         * modules/striconv (Depends-on): Likewise.
50418         * modules/striconveh (Depends-on): Likewise.
50419         * modules/unicodeio (Depends-on): Likewise.
50420         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50421         (iconv_t)(-1).
50422         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50423         conversion if cd is (iconv_t)(-1).
50424         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50425         is not possible.
50426
50427 2007-03-31  Bruno Haible  <bruno@clisp.org>
50428
50429         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50430         work on Solaris either. Protect also second use of "autodetect_jp".
50431
50432 2007-03-31  Bruno Haible  <bruno@clisp.org>
50433
50434         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50435         the function is not present.
50436
50437 2007-03-31  Bruno Haible  <bruno@clisp.org>
50438
50439         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50440         the function is not present.
50441
50442 2007-03-31  Bruno Haible  <bruno@clisp.org>
50443
50444         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50445         a bug in HP-UX iconv_open().
50446
50447 2007-03-31  Bruno Haible  <bruno@clisp.org>
50448
50449         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50450         (Mathematics <math.h>): New section, add fpieee.
50451         (Input/output <stdio.h>): Add fseterr.
50452         (Mathematics <math.h>): New section, add printf-frexp.
50453         (Container data structures): Add sublist.
50454         (Core language properties): Add fpucw, inline.
50455         (Functions for greatest-width integer types <inttypes.h>): Add
50456         imaxabs, imaxdiv, inttypes.
50457         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50458         isnanl-nolibm, ldexp.
50459         (Mathematics <math.h>): New section, add printf-frexpl.
50460         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50461         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50462         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50463         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50464         (Unicode string functions): Add unistr/u*-mbtoucr.
50465         (Java): Add javacomp-script, javaexec-script.
50466         (C#): Add csharpcomp-script, csharpexec-script.
50467         (Support for building libraries and executables): Add havelib,
50468         relocatable-*.
50469         (Support for maintaining and releasing projects): Renamed from
50470         'Support for maintaining and release projects'. Add announce-gen.
50471
50472 2007-03-31  Bruno Haible  <bruno@clisp.org>
50473
50474         * README: Talk primarily about git.
50475         (git and CVS): Renamed from CVS.
50476         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50477         gnulib is available through git.
50478         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50479
50480 2007-03-30  Bruno Haible  <bruno@clisp.org>
50481
50482         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50483         * lib/poll_.h: Likewise.
50484         * lib/stat_.h: Likewise.
50485         * lib/sys_time_.h: Likewise.
50486         * lib/sysexit_.h: Likewise.
50487         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50488         * lib/stdbool_.h: Likewise.
50489         * lib/byteswap_.h: Add double-inclusion guard.
50490
50491 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50492
50493         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50494
50495 2007-03-30  Karl Berry  <karl@gnu.org>
50496
50497         * config/srclist-update: double space after USA in the license
50498         substitution, since that's how it's usually (?) written.
50499
50500 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50501
50502         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50503         reported by Bruno Haible.
50504
50505 2007-03-29  Bruno Haible  <bruno@clisp.org>
50506
50507         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50508         a bug in AIX iconv().
50509
50510 2007-03-29  Bruno Haible  <bruno@clisp.org>
50511
50512         * modules/ldexpl-tests: New file.
50513         * tests/test-ldexpl.c: New file.
50514
50515 2007-03-29  Bruno Haible  <bruno@clisp.org>
50516
50517         * lib/ldexpl.c: Include fpucw.h.
50518         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50519         multiplication.
50520         * modules/ldexpl (Depends-on): Add fpucw.
50521
50522 2007-03-29  Bruno Haible  <bruno@clisp.org>
50523
50524         * modules/ldexpl: New file.
50525         * m4/ldexpl.m4: New file.
50526         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50527         set.
50528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50529         REPLACE_LDEXPL.
50530         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50531         REPLACE_LDEXPL.
50532         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50533         gl_FUNC_LDEXPL_WORKS.
50534         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50535         * modules/mathl (Files): Remove lib/ldexpl.c.
50536         (Depends-on): Add ldexpl.
50537
50538 2007-03-29  Bruno Haible  <bruno@clisp.org>
50539
50540         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50541
50542 2007-03-29  Bruno Haible  <bruno@clisp.org>
50543
50544         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50545         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50546         and possibly also HP-UX.
50547         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50548         work on AIX, IRIX, HP-UX, OSF/1.
50549         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50550         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50551         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50552         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50553         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50554         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50555
50556 2007-03-29  Bruno Haible  <bruno@clisp.org>
50557
50558         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50559
50560 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50561
50562         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50563         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50564
50565 2007-03-29  Eric Blake  <ebb9@byu.net>
50566
50567         * lib/acl-internal.h: Remove redundant include.
50568         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50569         Cygwin when a file is locked.
50570
50571 2007-03-29  Bruno Haible  <bruno@clisp.org>
50572
50573         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50574         file.
50575         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50576
50577 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50578
50579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50580         try to remove a parent directory if the child couldn't be removed
50581         (except for the first rmdir, which could fail because the child
50582         doesn't exist).  Problem reported by Jeff Blaine in
50583         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50584
50585 2007-03-28  Bruno Haible  <bruno@clisp.org>
50586
50587         * lib/striconveh.c (utf8conv_carefully): New function.
50588         (mem_cd_iconveh_internal): Invoke it.
50589
50590 2007-03-28  Bruno Haible  <bruno@clisp.org>
50591
50592         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50593         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50594         input.
50595         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50596         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50597         unistr/u8-uctomb.
50598
50599 2007-03-28  Bruno Haible  <bruno@clisp.org>
50600
50601         * modules/unistr/u8-mbtoucr: New file.
50602         * lib/unistr/u8-mbtoucr.c: New file.
50603         * modules/unistr/u16-mbtoucr: New file.
50604         * lib/unistr/u16-mbtoucr.c: New file.
50605         * modules/unistr/u16-mbtoucr: New file.
50606         * lib/unistr/u16-mbtoucr.c: New file.
50607         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50608
50609 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50610             Bruno Haible  <bruno@clisp.org>
50611
50612         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50613         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50614         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50615
50616         * m4/stdio_h.m4: Add stubs for vasprintf too.
50617
50618         * modules/stdio: Support vasprintf in sed command.
50619
50620         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50621         vasprintf.h.  Add stdio module indicator.
50622
50623         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50624         vasprintf.h.
50625
50626         * lib/vasprintf.h: File removed.
50627
50628         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50629         * lib/vasprintf.c: Ditto.
50630         * lib/xvasprintf.c: Ditto.
50631         * tests/test-vasprintf-posix.c: Ditto.
50632         * tests/test-vasprintf.c: Ditto.
50633
50634 2007-03-27  Bruno Haible  <bruno@clisp.org>
50635
50636         Make vasnprintf multithread-safe.
50637         * lib/vasnprintf.c (decimal_point_char): New function.
50638         (VASNPRINTF): Use it.
50639         Suggested by Simon Josefsson.
50640
50641 2007-03-27  Eric Blake  <ebb9@byu.net>
50642
50643         Support sub-second birthtime on cygwin.
50644         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50645         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50646         (get_stat_birthtime): Also work with st_birthtim.
50647
50648 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50649
50650         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50651         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50652         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50653         (get_stat_birthtime_ns): Simplify compile-time tests.
50654         (get_stat_birthtime): Change the API to look like
50655         get_stat_mtime etc., except return a negative tv_nsec on error.
50656         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50657         Don't check for "spare" fields.
50658         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50659         or for struct stat.st_birthtime, as these tests aren't used.
50660         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50661
50662 2007-03-27  Bruno Haible  <bruno@clisp.org>
50663
50664         * lib/stat-time.h: Include <sys/stat.h>.
50665
50666 2007-03-27  James Youngman  <jay@gnu.org>
50667
50668         * lib/stat-time.h (get_stat_birthtime): New function for
50669           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50670         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50671           and its variants.
50672         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50673         * modules/stat-time-test: New file.
50674         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50675
50676 2007-03-26  Bruno Haible  <bruno@clisp.org>
50677
50678         Better support of signalling NaNs.
50679         * lib/atanl.c: Include isnanl.h.
50680         (atanl): Perform test for NaN at the beginning of the function and
50681         through a call to isnanl.
50682         * lib/cosl.c: Include isnanl.h.
50683         (cosl): Perform test for NaN at the beginning of the function and
50684         through a call to isnanl.
50685         * lib/ldexpl.c: Include isnanl.h.
50686         (ldexpl): Perform test for NaN through a call to isnanl.
50687         * lib/logl.c: Include isnanl.h.
50688         (logl): Perform test for NaN at the beginning of the function and
50689         through a call to isnanl.
50690         * lib/sinl.c: Include isnanl.h.
50691         (sinl): Perform test for NaN at the beginning of the function and
50692         through a call to isnanl.
50693         * lib/sqrtl.c: Include isnanl.h.
50694         (sqrtl): Perform test for NaN at the beginning of the function and
50695         through a call to isnanl.
50696         * lib/tanl.c: Include isnanl.h.
50697         (tanl): Perform test for NaN at the beginning of the function and
50698         through a call to isnanl.
50699         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50700         * modules/mathl (Depends-on): Add isnanl.
50701
50702 2007-03-26  Eric Blake  <ebb9@byu.net>
50703
50704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50705         regression in logic sense of previous patch.
50706
50707 2007-03-26  Bruno Haible  <bruno@clisp.org>
50708
50709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50710         unportable shell command "if ! ...".
50711         Reported by Ralf Wildenhues.
50712
50713 2007-03-25  Bruno Haible  <bruno@clisp.org>
50714
50715         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50716         <sysexits.h> file, and only add EX_CONFIG.
50717         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50718         absolute file name and whether it is sufficient. Substitute also
50719         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50720         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50721         ABSOLUTE_SYSEXITS_H into sysexits.h.
50722
50723 2007-03-25  Bruno Haible  <bruno@clisp.org>
50724
50725         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50726         hints is NULL.
50727
50728 2007-03-25  Bruno Haible  <bruno@clisp.org>
50729
50730         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50731         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50732
50733 2007-03-25  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/vasnprintf.c: Include langinfo.h.
50736         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50737         multithread-safe.
50738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50739         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50740         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50741         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50743         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50744         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50746         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50747         Reported by Simon Josefsson.
50748
50749 2007-03-25  Bruno Haible  <bruno@clisp.org>
50750
50751         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50752         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50753         * modules/vasnprintf (Depends-on): Add stdint.
50754
50755 2007-03-25  Bruno Haible  <bruno@clisp.org>
50756
50757         * modules/fpieee: New file.
50758         * m4/fpieee.m4: New file.
50759         * modules/isnan-nolibm (Depends-on): Add fpieee.
50760         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50761         * modules/isnanl (Depends-on): Add fpieee.
50762
50763 2007-03-25  Bruno Haible  <bruno@clisp.org>
50764
50765         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50766
50767 2007-03-25  Bruno Haible  <bruno@clisp.org>
50768
50769         Avoid test failures on IRIX 6.5.
50770         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50771         (main): Use it.
50772         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50773         macros.
50774         (main): Use them.
50775
50776 2007-03-25  Bruno Haible  <bruno@clisp.org>
50777
50778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50779         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50780         exists but doesn't work.
50781         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50782         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50784         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50785
50786 2007-03-25  Bruno Haible  <bruno@clisp.org>
50787
50788         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50789         returns inf. Needed on IRIX 6.5.
50790
50791 2007-03-25  Bruno Haible  <bruno@clisp.org>
50792
50793         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50794         (main): Use isnanl instead of x != x idiom.
50795         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50796
50797         * tests/test-frexp.c: Include isnan.h.
50798         (main): Use isnan instead of x != x idiom.
50799         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50800
50801 2007-03-25  Bruno Haible  <bruno@clisp.org>
50802
50803         * tests/test-frexp.c (NaN): New function/macro.
50804         (main): Use it instead of 0.0 / 0.0.
50805         * tests/test-isnan.c (NaN): New function/macro.
50806         (main): Use it instead of 0.0 / 0.0.
50807         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50808         (test_function): Use it instead of 0.0 / 0.0.
50809         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50810         (test_function): Use it instead of 0.0 / 0.0.
50811         * tests/test-snprintf-posix.h (NaN): New function/macro.
50812         (test_function): Use it instead of 0.0 / 0.0.
50813         * tests/test-sprintf-posix.h (NaN): New function/macro.
50814         (test_function): Use it instead of 0.0 / 0.0.
50815         * tests/test-fprintf-posix.h (NaN): New function/macro.
50816         (test_function): Use it instead of 0.0 / 0.0.
50817         * tests/test-printf-posix.h (NaN): New function/macro.
50818         (test_function): Use it instead of 0.0 / 0.0.
50819
50820         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50821
50822 2007-03-25  Bruno Haible  <bruno@clisp.org>
50823
50824         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50825
50826 2007-03-25  Bruno Haible  <bruno@clisp.org>
50827
50828         * lib/regexec.c (merge_state_with_log): Make static.
50829
50830 2007-03-25  Bruno Haible  <bruno@clisp.org>
50831
50832         * lib/trigl.c (kernel_rem_pio2): Make static.
50833
50834 2007-03-25  Bruno Haible  <bruno@clisp.org>
50835
50836         * lib/sincosl.c (sincosl_table): Make static.
50837
50838 2007-03-25  Bruno Haible  <bruno@clisp.org>
50839
50840         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50841         if the compiler does not support C99.
50842
50843 2007-03-25  Bruno Haible  <bruno@clisp.org>
50844
50845         * modules/time (Makefile.am): Ensure all rule action lines start with a
50846         tab.
50847
50848 2007-03-24  Bruno Haible  <bruno@clisp.org>
50849
50850         * modules/tsearch-tests: New file.
50851         * tests/test-tsearch.sh: New file.
50852         * tests/test-tsearch.c: New file, mostly copied from glibc.
50853
50854         * modules/search-tests: New file.
50855         * tests/test-search.c: New file.
50856
50857         * modules/search: New file.
50858         * lib/search_.h: New file, incorporating lib/tsearch.h.
50859         * m4/search_h.m4: New file.
50860         * lib/tsearch.h: Remove file.
50861         * lib/tsearch.c: Include search.h instead of tsearch.h.
50862         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50863         HAVE_TSEARCH.
50864         * modules/tsearch (Files): Remove lib/tsearch.h.
50865         (Depends-on): Add search.
50866         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50867         (Include): Change tsearch.h into search.h.
50868
50869 2007-03-24  Bruno Haible  <bruno@clisp.org>
50870
50871         * modules/fpucw: New file.
50872         * lib/fpucw.h: New file.
50873         * lib/frexp.c: Include fpucw.h.
50874         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50875         (FUNC): Use them.
50876         * lib/printf-frexp.c: Include fpucw.h.
50877         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50878         (FUNC): Use them.
50879         * lib/vasnprintf.c: Include fpucw.h.
50880         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50881         'long double' calculations.
50882         * tests/test-frexpl.c: Include fpucw.h.
50883         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50884         * tests/test-printf-frexpl.c: Include fpucw.h.
50885         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50886         * modules/frexpl (Depends-on): Add fpucw.
50887         * modules/printf-frexpl (Depends-on): Likewise.
50888         * modules/fprintf-posix (Depends-on): Likewise.
50889         * modules/snprintf-posix (Depends-on): Likewise.
50890         * modules/sprintf-posix (Depends-on): Likewise.
50891         * modules/vasnprintf-posix (Depends-on): Likewise.
50892         * modules/vasprintf-posix (Depends-on): Likewise.
50893         * modules/vfprintf-posix (Depends-on): Likewise.
50894         * modules/vsnprintf-posix (Depends-on): Likewise.
50895         * modules/vsprintf-posix (Depends-on): Likewise.
50896         * modules/frexpl-tests (Depends-on): Likewise.
50897         * modules/printf-frexpl-tests (Depends-on): Likewise.
50898
50899 2007-03-24  Bruno Haible  <bruno@clisp.org>
50900
50901         * lib/float+.h: New file.
50902         * lib/isnan.c: Include float+.h.
50903         (SIZE): New macro.
50904         (FUNC): Compare only SIZE bytes of the value.
50905         * lib/vasnprintf.c: Include float+.h.
50906         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50907         SIZEOF_LDBL or SIZEOF_DBL bytes.
50908         * modules/isnan-nolibm (Files): Add lib/float+.h.
50909         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50910         * modules/isnanl (Files): Add lib/float+.h.
50911         * modules/vasnprintf (Files): Add lib/float+.h.
50912
50913 2007-03-24  Bruno Haible  <bruno@clisp.org>
50914
50915         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50916         include isnanl-nolibm.h.
50917
50918 2007-03-24  Bruno Haible  <bruno@clisp.org>
50919
50920         * tests/test-read-file.c (main): Don't produce spurious output for
50921         expected situations. Make the test fail if it encountered unexpected
50922         results.
50923
50924 2007-03-24  Bruno Haible  <bruno@clisp.org>
50925
50926         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50927         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50928
50929 2007-03-24  Bruno Haible  <bruno@clisp.org>
50930
50931         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50932
50933 2007-03-24  Bruno Haible  <bruno@clisp.org>
50934
50935         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50936         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50937
50938         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50939         * modules/utf8-ucs4: Turn into a symbolic link to module
50940         unistr/u8-mbtouc.
50941
50942         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50943         utf8-ucs4-unsafe.
50944         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50945         unistr/u8-mbtouc-unsafe.
50946
50947         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50948         * modules/utf16-ucs4: Turn into a symbolic link to module
50949         unistr/u16-mbtouc.
50950
50951         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50952         utf16-ucs4-unsafe.
50953         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
50954         unistr/u16-mbtouc-unsafe.
50955
50956         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
50957         * modules/ucs4-utf8: Turn into a symbolic link to module
50958         unistr/u8-ubtomb.
50959
50960         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
50961         * modules/ucs4-utf16: Turn into a symbolic link to module
50962         unistr/u16-ubtomb.
50963
50964 2007-03-24  Bruno Haible  <bruno@clisp.org>
50965
50966         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
50967         Enable the function only if HAVE_INLINE.
50968         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
50969         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50970         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
50971         Enable the function only if HAVE_INLINE.
50972         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
50973         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50974         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
50975         Enable the function only if HAVE_INLINE.
50976         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
50977         Enable the function only if HAVE_INLINE.
50978         * modules/utf8-ucs4: Update.
50979         * modules/utf8-ucs4-unsafe: Update.
50980         * modules/utf16-ucs4: Update.
50981         * modules/utf16-ucs4-unsafe: Update.
50982         * modules/ucs4-utf8: Update.
50983         * modules/ucs4-utf16: Update.
50984
50985 2007-03-24  Bruno Haible  <bruno@clisp.org>
50986
50987         * lib/utf8-ucs4.h: Remove file.
50988         * lib/utf8-ucs4-unsafe.h: Remove file.
50989         * lib/utf16-ucs4.h: Remove file.
50990         * lib/utf16-ucs4-unsafe.h: Remove file.
50991         * lib/ucs4-utf8.h: Remove file.
50992         * lib/ucs4-utf16.h: Remove file.
50993         * lib/unistr.h: Include their previous contents.
50994         * m4/utf-ucs4.m4: Remove file.
50995         * m4/ucs4-utf.m4: Remove file.
50996         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
50997         (Depends-on): Add unistr/base.
50998         (configure.ac): Remove gl_UTF_UCS4.
50999         (Makefile.am): Update.
51000         (Include): Change to unistr.h.
51001         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51002         (Depends-on): Add unistr/base.
51003         (configure.ac): Remove gl_UTF_UCS4.
51004         (Makefile.am): Update.
51005         (Include): Change to unistr.h.
51006         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51007         (Depends-on): Add unistr/base.
51008         (configure.ac): Remove gl_UTF_UCS4.
51009         (Makefile.am): Update.
51010         (Include): Change to unistr.h.
51011         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51012         (Depends-on): Add unistr/base.
51013         (configure.ac): Remove gl_UTF_UCS4.
51014         (Makefile.am): Update.
51015         (Include): Change to unistr.h.
51016         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51017         (Depends-on): Add unistr/base.
51018         (configure.ac): Remove gl_UCS4_UTF.
51019         (Makefile.am): Update.
51020         (Include): Change to unistr.h.
51021         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51022         (Depends-on): Add unistr/base.
51023         (configure.ac): Remove gl_UCS4_UTF.
51024         (Makefile.am): Update.
51025         (Include): Change to unistr.h.
51026         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51027         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51028         utf8-ucs4-unsafe.h.
51029         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51030         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51031         utf16-ucs4-unsafe.h.
51032         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51033         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51034         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51035         * lib/unistr/u8-strchr.c: Likewise.
51036         * lib/unistr/u8-strrchr.c: Likewise.
51037         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51038         * lib/unistr/u16-strchr.c: Likewise.
51039         * lib/unistr/u16-strrchr.c: Likewise.
51040         * lib/striconveh.c: Update.
51041         * lib/linebreak.c: Update.
51042
51043 2007-03-24  Bruno Haible  <bruno@clisp.org>
51044
51045         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51046         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51047
51048 2007-03-22  Bruno Haible  <bruno@clisp.org>
51049
51050         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51051
51052 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51053
51054         * MODULES.html.sh (File system functions): New module write-any-file.
51055         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51056         * m4/write-any-file.m4: New files.
51057
51058 2007-03-23  Eric Blake  <ebb9@byu.net>
51059
51060         * gnulib-tool: Rearrange space-tab sequences, since some editors
51061         like to eat them.
51062
51063 2007-03-23  Eric Blake  <ebb9@byu.net>
51064
51065         * lib/version-etc.c (version_etc_va): Update license wording to
51066         be more concise.  Recommended by Richard Stallman.
51067
51068 2007-03-22  Bruno Haible  <bruno@clisp.org>
51069
51070         * lib/poll.c (MSG_PEEK): New fallback definition.
51071
51072 2007-03-22  Bruno Haible  <bruno@clisp.org>
51073
51074         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51075         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51076         (main): Update.
51077         Fixes a compilation error on BeOS.
51078
51079 2007-03-22  Bruno Haible  <bruno@clisp.org>
51080
51081         * modules/frexpl-tests: New file.
51082         * tests/test-frexpl.c: New file.
51083
51084         * modules/frexpl: New file.
51085         * m4/frexpl.m4: New file.
51086         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51087         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51089         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51090         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51091         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51092
51093 2007-03-22  Bruno Haible  <bruno@clisp.org>
51094
51095         * lib/frexpl.c: Share code with lib/frexp.c.
51096         * modules/mathl (Files): Add lib/frexp.c.
51097         (Depends-on): Add isnanl-nolibm.
51098
51099 2007-03-22  Bruno Haible  <bruno@clisp.org>
51100
51101         * modules/printf-frexp (Files): Add m4/frexp.m4.
51102         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51103         only if the found frexp function actually works.
51104
51105 2007-03-22  Bruno Haible  <bruno@clisp.org>
51106
51107         * lib/frexp.c: Remove older implementation that uses divisions.
51108
51109 2007-03-21  Bruno Haible  <bruno@clisp.org>
51110
51111         * modules/frexp-tests: New file.
51112         * tests/test-frexp.c: New file.
51113
51114         * modules/frexp: New file.
51115         * lib/frexp.c: New file.
51116         * m4/frexp.m4: New file.
51117         * lib/math_.h (frexp): New declaration.
51118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51119         REPLACE_FREXP.
51120         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51121
51122 2007-03-21  Bruno Haible  <bruno@clisp.org>
51123
51124         * modules/isnanl-tests: New file.
51125         * tests/test-isnanl.c: New file.
51126
51127         * modules/isnanl: New file.
51128         * lib/isnanl.h: New file.
51129         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51130         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51131         gl_FUNC_ISNANL_WORKS.
51132         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51133         New macros.
51134
51135 2007-03-21  Bruno Haible  <bruno@clisp.org>
51136
51137         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51138         lib/isnanl.h.
51139         (Include): Update.
51140         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51141         * lib/vasnprintf.c: Update.
51142         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51143         tests/test-isnanl.h, remove tests/test-isnanl.c.
51144         (Makefile.am): Update.
51145         * tests/test-isnanl-nolibm.c: New file.
51146         * tests/test-isnanl.h: New file.
51147         * tests/test-isnanl.c: Remove file.
51148
51149 2007-03-21  Jim Meyering  <jim@meyering.net>
51150
51151         When trying to open ".", treat ESTALE like EACCES.
51152         * lib/savewd.c (savewd_save): Resort to forking not just upon
51153         failure with EACCES, but also when errno is ESTALE.
51154
51155 2007-03-20  Bruno Haible  <bruno@clisp.org>
51156
51157         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51158         Needed on AIX 5.1. Reported by Matthew Woehlke.
51159
51160 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51161
51162         Suggestions by Bruno Haible:
51163         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51164         our own.
51165         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51166         * modules/acl (Depends-on): Add gettext.
51167
51168 2007-03-19  Bruno Haible  <bruno@clisp.org>
51169
51170         * modules/iconvme: Remove file.
51171         * lib/iconvme.h: Remove file.
51172         * lib/iconvme.c: Remove file.
51173         * m4/iconvme.m4: Remove file.
51174
51175 2007-03-19  Bruno Haible  <bruno@clisp.org>
51176
51177         * doc/relocatable-maint.texi: Break long shell script line.
51178         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51179
51180 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51181
51182         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51183         handle file_has_acl.
51184         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51185         * lib/acl.c: Move header inclusions and related macro defns into
51186         lib/acl-internal.h.
51187         (S_ISLNK): Remove defn, since that's now done for us.
51188         (file_has_acl): Move to lib/file-has-acl.c.
51189         Call acl_trivial if available.  This is the crucial part of the fix.
51190         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51191         shared within the library.  Rewrite a bit, partly to make it compatible
51192         with the GNU coding style.
51193         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51194         Remove unnecessary double-quotes.
51195         Don't test for acl_to_text; the build will catch that.
51196         Replace acl_entries if it doesn't exist and it is needed.
51197         Check for -lsec and acl_trivial (as used on Solaris 10).
51198         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51199         lib/file-has-acl.c.
51200         (Depends-on): Add sys_stat, for S_ISLNK.
51201
51202 2007-03-19  Ben Pfaff  <blp@gnu.org>
51203
51204         * doc/gnulib.texi: Fix typos.
51205         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51206
51207 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51208
51209         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51210         If size is zero here, buf must be zero.
51211
51212 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51213
51214         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51215         <bruno@clisp.org>.
51216
51217 2007-03-18  Bruno Haible  <bruno@clisp.org>
51218
51219         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51220         Suggested by Eric Blake.
51221
51222 2007-03-18  Ben Pfaff  <blp@gnu.org>
51223
51224         * doc/relocatable.texi: Recommend using as prefix a directory
51225         that does not exist and will never be created.  Based on
51226         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51227         and others.
51228
51229 2007-03-17  Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/fchownat.c: Include lchown.h.
51232
51233 2007-03-17  Bruno Haible  <bruno@clisp.org>
51234
51235         Fix endless loop when the given allocated size was > INT_MAX.
51236         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51237         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51238         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51239         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51240         * lib/sprintf.c (sprintf): Likewise.
51241
51242 2007-03-17  Bruno Haible  <bruno@clisp.org>
51243
51244         * tests/test-argp-2.sh (func_compare): Output a context diff.
51245
51246 2007-03-17  Bruno Haible  <bruno@clisp.org>
51247
51248         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51249         locale's decimal-point character.
51250
51251 2007-03-17  Bruno Haible  <bruno@clisp.org>
51252
51253         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51254         before comparing it. Needed because on some platforms (e.g. x86) a
51255         'long double' occupies less bytes than sizeof (long double).
51256
51257 2007-03-17  Bruno Haible  <bruno@clisp.org>
51258
51259         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51260         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51261         * tests/test-getaddrinfo.c (simple): Likewise.
51262         * tests/test-read-file.c (main): Likewise.
51263
51264 2007-03-17  Bruno Haible  <bruno@clisp.org>
51265
51266         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51267
51268 2007-03-17  Bruno Haible  <bruno@clisp.org>
51269
51270         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51271         unused variable.
51272
51273 2007-03-17  Bruno Haible  <bruno@clisp.org>
51274
51275         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51276         * tests/test-c-strncasecmp.c: Likewise.
51277
51278 2007-03-17  Bruno Haible  <bruno@clisp.org>
51279
51280         * modules/stdlib (Depends-on): Add unistd.
51281         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51282         Needed for MacOS X 10.3.
51283
51284 2007-03-17  Bruno Haible  <bruno@clisp.org>
51285
51286         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51287
51288 2007-03-17  Bruno Haible  <bruno@clisp.org>
51289
51290         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51291
51292 2007-03-17  Bruno Haible  <bruno@clisp.org>
51293
51294         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51295         to reflect files copied from gnulib (with or without modifications).
51296         Suggested by Jim Meyering.
51297
51298 2007-03-17  Eric Blake  <ebb9@byu.net>
51299
51300         * NEWS: Document stdlib change from 2007-02-18.
51301
51302 2007-03-17  Jim Meyering  <jim@meyering.net>
51303
51304         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51305         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51306         someone uses a name containing shell meta-characters.
51307         Reported by Alfred M. Szmidt.
51308
51309         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51310
51311 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51312
51313         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51314         and copy gettext configuration files only if configure.ac contains
51315         a use of AM_GNU_GETTEXT_VERSION.
51316
51317 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51318
51319         * build-aux/bootstrap (gnulib_name): New variable.
51320         (gnulib_tool_options): Use it.
51321
51322 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51323
51324         * tests/test-des.c: Use new namespace.
51325
51326 2007-03-15  Bruno Haible  <bruno@clisp.org>
51327
51328         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51329         Reported by James Youngman <jay@gnu.org>.
51330
51331 2007-03-15  Bruno Haible  <bruno@clisp.org>
51332
51333         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51334         declared prototype. Needed with cc on OSF/1 5.1.
51335
51336 2007-03-15  Bruno Haible  <bruno@clisp.org>
51337
51338         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51339         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51340         (struct gl_list_implementation): Add dispose_fn argument to the
51341         'create_empty', 'create' methods.
51342         (struct gl_list_impl_base): Add field 'dispose_fn'.
51343         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51344         argument.
51345         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51346         dispose_fn argument.
51347         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51348         dispose_fn on the dropped values.
51349         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51350         dispose_fn argument.
51351         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51352         dropped values.
51353         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51354         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51355         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51356         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51357         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51358         argument.
51359         (gl_tree_list_free): Call dispose_fn on the dropped values.
51360         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51361         the dropped values.
51362         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51363         Add dispose_fn argument.
51364         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51365         Call dispose_fn on the dropped values.
51366         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51367         Add dispose_fn argument.
51368         (gl_sublist_create): Initialize the 'dispose_fn' field.
51369         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51370         * tests/test-array_list.c (main): Update.
51371         * tests/test-carray_list.c (main): Update.
51372         * tests/test-avltree_list.c (main): Update.
51373         * tests/test-rbtree_list.c (main): Update.
51374         * tests/test-avltreehash_list.c (main): Update.
51375         * tests/test-rbtreehash_list.c (main): Update.
51376         * tests/test-linked_list.c (main): Update.
51377         * tests/test-linkedhash_list.c (main): Update.
51378         * tests/test-array_oset.c (main): Update.
51379
51380 2007-03-15  Bruno Haible  <bruno@clisp.org>
51381
51382         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51383         (gl_oset_create_empty): Add dispose_fn argument.
51384         (struct gl_oset_implementation): Add dispose_fn argument to
51385         'create_empty' method.
51386         (struct gl_oset_impl_base): Add dispose_fn field.
51387         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51388         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51389         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51390         values.
51391         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51392         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51393         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51394         dropped value.
51395         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51396         dropped value.
51397         * tests/test-array_oset.c (main): Update.
51398         * tests/test-avltree_oset.c (main): Update.
51399         * tests/test-rbtree_oset.c (main): Update.
51400         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51401
51402 2007-03-13  Bruno Haible  <bruno@clisp.org>
51403
51404         * tests/test-stdbool.c (i): Update after last patch.
51405
51406 2007-03-12  Bruno Haible  <bruno@clisp.org>
51407
51408         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51409         the iswprint macro. Needed on Solaris 2.5.1.
51410
51411 2007-03-12  Bruno Haible  <bruno@clisp.org>
51412
51413         * tests/test-printf-frexp.c (main): Declare x as volatile.
51414
51415 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51416
51417         * doc/gnulib.texi (Build robot for gnulib): New section.
51418
51419 2007-03-12  Jim Meyering  <jim@meyering.net>
51420
51421         * build-aux/bootstrap: New file.
51422         * build-aux/bootstrap.conf: New file, from coreutils.
51423
51424 2007-03-11  Bruno Haible  <bruno@clisp.org>
51425
51426         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51427
51428 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51429
51430         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51431         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51432         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51433
51434 2007-03-11  Bruno Haible  <bruno@clisp.org>
51435
51436         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51437         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51438
51439 2007-03-11  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51442         formula. Needed for SunPRO C 5.0.
51443
51444 2007-03-11  Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/long-options (Depends-on): Add getopt.
51447
51448 2007-03-11  Bruno Haible  <bruno@clisp.org>
51449
51450         * modules/modechange (Depends-on): Add stdbool.
51451
51452 2007-03-11  Bruno Haible  <bruno@clisp.org>
51453
51454         * modules/i-ring (Depends-on): Add stdbool.
51455
51456 2007-03-11  Bruno Haible  <bruno@clisp.org>
51457
51458         * modules/gc-des (Depends-on): Add stdbool.
51459
51460 2007-03-11  Bruno Haible  <bruno@clisp.org>
51461
51462         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51463
51464 2007-03-11  Bruno Haible  <bruno@clisp.org>
51465
51466         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51467
51468 2007-03-11  Bruno Haible  <bruno@clisp.org>
51469
51470         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51471
51472 2007-03-11  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/vasnprintf.c (sprintf): Undefine.
51475
51476 2007-03-11  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51479         initializers in SunPRO C and Compaq C compilers.
51480
51481 2007-03-11  Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51484         decrementing code ANSI C compliant.
51485
51486 2007-03-11  Bruno Haible  <bruno@clisp.org>
51487
51488         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51489         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51490
51491 2007-03-11  Bruno Haible  <bruno@clisp.org>
51492
51493         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51494         <stdbool.h> substitute doesn't pass.
51495
51496 2007-03-11  Bruno Haible  <bruno@clisp.org>
51497
51498         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51499
51500 2007-03-11  Bruno Haible  <bruno@clisp.org>
51501
51502         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51503         script, for submission to autobuild.josefsson.org.
51504
51505 2007-03-10  Bruno Haible  <bruno@clisp.org>
51506
51507         * modules/canonicalize-lgpl-tests: New file.
51508         * tests/test-canonicalize-lgpl.sh: New file.
51509         * tests/test-canonicalize-lgpl.c: New file.
51510
51511         * modules/c-strcase-tests: New file.
51512         * tests/test-c-strcase.sh: New file.
51513         * tests/test-c-strcasecmp.c: New file.
51514         * tests/test-c-strncasecmp.c: New file.
51515
51516         * modules/atexit-tests: New file.
51517         * tests/test-atexit.sh: New file.
51518         * tests/test-atexit.c: New file.
51519
51520 2007-03-10  Bruno Haible  <bruno@clisp.org>
51521
51522         * tests/test-binary-io.sh: Use temporary filenames that are not so
51523         likely to clash with those of other tests (in a parallel make).
51524         * tests/test-binary-io.c: Likewise.
51525
51526 2007-03-10  Bruno Haible  <bruno@clisp.org>
51527
51528         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51529         fallback; use #error instead.
51530         Suggested by Simon Josefsson.
51531
51532 2007-03-10  Bruno Haible  <bruno@clisp.org>
51533
51534         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51535         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51536         first and the last.
51537
51538 2007-03-10  Bruno Haible  <bruno@clisp.org>
51539
51540         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51541
51542 2007-03-10  Bruno Haible  <bruno@clisp.org>
51543
51544         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51545         "make distcheck".
51546         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51547         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51548         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51549
51550 2007-03-10  Bruno Haible  <bruno@clisp.org>
51551
51552         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51553         variable.
51554         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51555         variable.
51556
51557 2007-03-09  Eric Blake  <ebb9@byu.net>
51558         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51559
51560         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51561         types are not being provided by gnulib.
51562         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51563         types are supported.
51564
51565 2007-03-10  Bruno Haible  <bruno@clisp.org>
51566
51567         * lib/stdio_.h (__attribute__): New macro.
51568         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51569         vsprintf): Specify __attribute__ __format__ for GCC.
51570         Suggested by Eric Blake.
51571
51572 2007-03-09  Bruno Haible  <bruno@clisp.org>
51573
51574         * modules/printf-posix-tests: New file.
51575         * tests/test-printf-posix.sh: New file.
51576         * tests/test-printf-posix.c: New file.
51577
51578         * modules/printf-posix: New file.
51579         * lib/printf.c: New file.
51580         * m4/printf-posix-rpl.m4: New file.
51581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51582         REPLACE_PRINTF.
51583         * lib/stdio_.h (printf): New declaration.
51584         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51585         ____strfmon____): New macros.
51586         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51587         REPLACE_PRINTF.
51588
51589 2007-03-09  Bruno Haible  <bruno@clisp.org>
51590
51591         * tests/test-vasnprintf-posix2.sh: New file.
51592         * tests/test-vasnprintf-posix2.c: New file.
51593         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51594         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51595         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51596
51597         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51598         a locale dependent decimal point, rather than always '.'.
51599
51600 2007-03-09  Eric Blake  <ebb9@byu.net>
51601
51602         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51603         spite of platforms like Tandem/NSK that define it to -1.
51604
51605 2007-03-08  Bruno Haible  <bruno@clisp.org>
51606
51607         * modules/vprintf-posix-tests: New file.
51608         * tests/test-vprintf-posix.sh: New file.
51609         * tests/test-vprintf-posix.c: New file.
51610         * tests/test-printf-posix.h: New file.
51611
51612         * modules/vprintf-posix: New file.
51613         * lib/vprintf.c: New file.
51614         * m4/vprintf-posix.m4: New file.
51615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51616         REPLACE_VPRINTF.
51617         * lib/stdio_.h (vprintf): New declaration.
51618         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51619         REPLACE_VPRINTF.
51620
51621 2007-03-08  Bruno Haible  <bruno@clisp.org>
51622
51623         * modules/fprintf-posix-tests: New file.
51624         * tests/test-fprintf-posix.sh: New file.
51625         * tests/test-fprintf-posix.c: New file.
51626
51627         * modules/fprintf-posix: New file.
51628         * lib/fprintf.c: New file.
51629         * m4/fprintf-posix.m4: New file.
51630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51631         REPLACE_FPRINTF.
51632         * lib/stdio_.h (fprintf): New declaration.
51633         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51634         REPLACE_FPRINTF.
51635
51636 2007-03-08  Bruno Haible  <bruno@clisp.org>
51637
51638         * modules/vfprintf-posix-tests: New file.
51639         * tests/test-vfprintf-posix.sh: New file.
51640         * tests/test-vfprintf-posix.c: New file.
51641         * tests/test-fprintf-posix.h: New file.
51642         * tests/test-fprintf-posix.out: New file.
51643
51644         * modules/vfprintf-posix: New file.
51645         * lib/vfprintf.c: New file.
51646         * m4/vfprintf-posix.m4: New file.
51647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51648         REPLACE_VFPRINTF.
51649         * lib/stdio_.h (vfprintf): New declaration.
51650         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51651         REPLACE_VFPRINTF.
51652
51653 2007-03-08  Bruno Haible  <bruno@clisp.org>
51654
51655         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51656
51657 2007-03-08  Bruno Haible  <bruno@clisp.org>
51658
51659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51660         instead of 'expr' invocations.
51661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51665         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51666         Suggested by Paul Eggert.
51667
51668 2007-03-08  Bruno Haible  <bruno@clisp.org>
51669
51670         * modules/fseterr-tests: New file.
51671         * tests/test-fseterr.c: New file.
51672
51673         * modules/fseterr: New file.
51674         * lib/fseterr.h: New file.
51675         * lib/fseterr.c: New file.
51676
51677 2007-03-08  Bruno Haible  <bruno@clisp.org>
51678
51679         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51680         * lib/getopt_.h: Likewise.
51681         * lib/mbswidth.h: Likewise.
51682         * lib/setenv.h: Likewise.
51683         * lib/vasnprintf.h: Likewise.
51684         * lib/vasprintf.h: Likewise.
51685         * lib/verror.h: Likewise.
51686         * lib/xsetenv.h: Likewise.
51687         * lib/xvasprintf.h: Likewise.
51688
51689 2007-03-08  Jim Meyering  <jim@meyering.net>
51690
51691         * users.txt: Add parted.
51692
51693         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51694
51695 2007-03-07  Bruno Haible  <bruno@clisp.org>
51696
51697         * m4/printf.m4: Make the shell script snippets copy&pastable.
51698
51699 2007-03-02  Bruno Haible  <bruno@clisp.org>
51700
51701         * lib/netinet_in_.h: New file.
51702         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51703         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51704         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51705         (Depends-on): Add absolute-header.
51706         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51707         into netinet/in.h.
51708
51709 2007-03-03  Bruno Haible  <bruno@clisp.org>
51710
51711         * lib/sys_select_.h: New file.
51712         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51713         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51714         * modules/sys_select (Files): Add lib/sys_select_.h.
51715         (Depends-on): Add absolute-header.
51716         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51717         into sys/select.h.
51718
51719 2007-03-02  Bruno Haible  <bruno@clisp.org>
51720
51721         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51722         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51723         values.
51724         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51725         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51726         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51727         * modules/sys_socket (Depends-on): Add absolute-header.
51728         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51729         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51730         (Include): Remove requirement of inclusion of <sys/types.h>.
51731
51732 2007-03-02  Bruno Haible  <bruno@clisp.org>
51733
51734         * lib/byteswap_.h (bswap_32): Fix formula.
51735
51736 2007-03-06  Bruno Haible  <bruno@clisp.org>
51737
51738         * modules/sprintf-posix-tests: New file.
51739         * tests/test-sprintf-posix.c: New file.
51740
51741         * modules/sprintf-posix: New file.
51742         * lib/sprintf.c: New file.
51743         * m4/sprintf-posix.m4: New file.
51744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51745         REPLACE_SPRINTF.
51746         * lib/stdio_.h (sprintf): New declaration.
51747         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51748         REPLACE_SPRINTF.
51749
51750 2007-03-06  Bruno Haible  <bruno@clisp.org>
51751
51752         * modules/vsprintf-posix-tests: New file.
51753         * tests/test-vsprintf-posix.c: New file.
51754         * tests/test-sprintf-posix.h: New file.
51755
51756         * modules/vsprintf-posix: New file.
51757         * lib/vsprintf.c: New file.
51758         * m4/vsprintf-posix.m4: New file.
51759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51760         REPLACE_VSPRINTF.
51761         * lib/stdio_.h (vsprintf): New declaration.
51762         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51763         REPLACE_VSPRINTF.
51764
51765 2007-03-06  Bruno Haible  <bruno@clisp.org>
51766
51767         * modules/vsnprintf (Depend-on): Remove minmax.
51768
51769 2007-03-06  Bruno Haible  <bruno@clisp.org>
51770
51771         * modules/snprintf-posix-tests: New file.
51772         * tests/test-snprintf-posix.c: New file.
51773
51774         * modules/snprintf-posix: New file.
51775         * m4/snprintf-posix.m4: New file.
51776         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51777         gl_FUNC_SNPRINTF.
51778         (gl_FUNC_SNPRINTF): Invoke it.
51779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51780         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51781         is set.
51782         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51783
51784 2007-03-06  Bruno Haible  <bruno@clisp.org>
51785
51786         * modules/vsnprintf-posix-tests: New file.
51787         * tests/test-vsnprintf-posix.c: New file.
51788         * tests/test-snprintf-posix.h: New file.
51789
51790         * modules/vsnprintf-posix: New file.
51791         * m4/vsnprintf-posix.m4: New file.
51792         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51793         gl_FUNC_VSNPRINTF.
51794         (gl_FUNC_VSNPRINTF): Invoke it.
51795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51796         * lib/stdio_.h (vsnprintf): Define as a replacement if
51797         REPLACE_VSNPRINTF is set.
51798         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51799
51800 2007-03-06  Bruno Haible  <bruno@clisp.org>
51801
51802         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51803         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51804
51805 2007-03-06  Bruno Haible  <bruno@clisp.org>
51806
51807         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51808         (asinl): Declare also if HAVE_DECL_ASINL is set.
51809         (atanl): Declare also if HAVE_DECL_ATANL is set.
51810         (ceill): Declare also if HAVE_DECL_CEILL is set.
51811         (cosl): Declare also if HAVE_DECL_COSL is set.
51812         (expl): Declare also if HAVE_DECL_EXPL is set.
51813         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51814         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51815         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51816         (logl): Declare also if HAVE_DECL_LOGL is set.
51817         (sinl): Declare also if HAVE_DECL_SINL is set.
51818         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51819         (tanl): Declare also if HAVE_DECL_TANL is set.
51820         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51822         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51823         declaration of frexpl, ldexpl.
51824         * modules/printf-frexpl (Depends-on): Add math.
51825         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51826
51827 2007-03-05  Bruno Haible  <bruno@clisp.org>
51828
51829         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51830         frexpl and ldexpl are declared.
51831         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51832
51833 2007-03-05  Bruno Haible  <bruno@clisp.org>
51834
51835         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51836         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51837
51838 2007-03-05  Bruno Haible  <bruno@clisp.org>
51839
51840         * lib/stdio_.h: Include <stddef.h>.
51841
51842 2007-03-05  Bruno Haible  <bruno@clisp.org>
51843
51844         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51845
51846 2007-03-05  Bruno Haible  <bruno@clisp.org>
51847
51848         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51849         NetBSD 4, from Ralf Wildenhues.
51850
51851 2007-03-04  Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/vasprintf.h: Update #if logic for the case when the functions
51854         exist but are overridden.
51855
51856 2007-03-04  Bruno Haible  <bruno@clisp.org>
51857
51858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51859         implementations: glibc-2.4 and MacOS X 10.3.
51860         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51861         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51862         * tests/test-vasprintf-posix.c (test_function): Likewise.
51863
51864 2007-03-04  Bruno Haible  <bruno@clisp.org>
51865
51866         * modules/vasprintf-posix-tests: New file.
51867         * tests/test-vasprintf-posix.c: New file.
51868
51869         * modules/vasprintf-posix: New file.
51870         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51871         defined.
51872         * m4/vasprintf-posix.m4: New file.
51873         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51874         gl_FUNC_VASPRINTF.
51875         (gl_FUNC_VASPRINTF): Invoke it.
51876         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51877         here.
51878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51879
51880 2007-03-04  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51883         REPLACE_GETTIMEOFDAY.
51884         * modules/sys_time (Makefile.am): Likewise.
51885         * m4/sys_time_h.m4: Likewise.
51886         * m4/gettimeofday.m4: Likewise.
51887
51888 2007-03-04  Bruno Haible  <bruno@clisp.org>
51889
51890         * modules/vasnprintf-posix-tests: New file.
51891         * tests/test-vasnprintf-posix.c: New file.
51892
51893         * modules/vasnprintf-posix: New file.
51894         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51895         printf-frexpl.h.
51896         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51897         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51898         REPLACE_VASNPRINTF is defined.
51899         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51900         gl_FUNC_VASNPRINTF.
51901         (gl_FUNC_VASNPRINTF): Invoke it.
51902         * m4/vasnprintf-posix.m4: New file.
51903         * m4/printf.m4: New file.
51904
51905 2007-03-04  Bruno Haible  <bruno@clisp.org>
51906
51907         Compile progreloc.c only if --enable-relocatable is specified.
51908         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51909         if --enable-relocatable was specified.
51910         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51911         lib_SOURCES.
51912
51913 2007-03-04  Jim Meyering  <jim@meyering.net>
51914
51915         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51916         Use it consistently, rather than enumerating errno constants.
51917
51918 2007-03-04  Bruno Haible  <bruno@clisp.org>
51919
51920         * modules/xvasprintf-tests: New file.
51921         * tests/test-xvasprintf.c: New file.
51922
51923         * modules/vasprintf-tests: New file.
51924         * tests/test-vasprintf.c: New file.
51925
51926         * modules/vasnprintf-tests: New file.
51927         * tests/test-vasnprintf.c: New file.
51928
51929         * modules/vsnprintf-tests: New file.
51930         * tests/test-vsnprintf.c: New file.
51931
51932         * modules/snprintf-tests: New file.
51933         * tests/test-snprintf.c: New file.
51934
51935 2007-03-04  Bruno Haible  <bruno@clisp.org>
51936
51937         Compile relocatable.c only if --enable-relocatable is specified.
51938         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51939         gl_RELOCATABLE_LIBRARY.
51940         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51941         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51942         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51943         gl_RELOCATABLE_LIBRARY.
51944         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51945         (Makefile.am): Remove lib_SOURCES.
51946         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51947         gl_RELOCATABLE_LIBRARY.
51948         (Makefile.am): Remove lib_SOURCES.
51949         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51950         always.
51951         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51952         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51953
51954 2007-03-04  Bruno Haible  <bruno@clisp.org>
51955
51956         * modules/argmatch-tests: New file.
51957         * tests/test-argmatch.c: New file.
51958
51959         * tests/test-allocsa.c (main): Halve the number of loop runs.
51960
51961         * modules/alloca-opt-tests: New file.
51962         * tests/test-alloca-opt.c: New file.
51963
51964 2007-03-04  Jim Meyering  <jim@meyering.net>
51965
51966         Work around difference between Linux ACLs and Solaris 10 ZFS.
51967         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
51968         for EINVAL.
51969
51970 2007-03-03  Bruno Haible  <bruno@clisp.org>
51971
51972         * modules/relocatable-prog (Depends-on): Add back progreloc's
51973         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
51974
51975 2007-03-03  Bruno Haible  <bruno@clisp.org>
51976
51977         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
51978         * modules/relocatable-lib: New file.
51979
51980 2007-03-03  Bruno Haible  <bruno@clisp.org>
51981
51982         * modules/relocatable-prog: Renamed from modules/relocatable.
51983         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
51984
51985 2007-03-03  Bruno Haible  <bruno@clisp.org>
51986
51987         * modules/relocatable-script (Files): Add doc/relocatable.texi,
51988         m4/relocatable-lib.m4.
51989         (Depends-on): Remove 'relocatable'.
51990         (configure.ac): Add gl_RELOCATABLE_NOP.
51991
51992 2007-03-03  Bruno Haible  <bruno@clisp.org>
51993
51994         * modules/relocatable-prog-wrapper: New file.
51995         * modules/relocatable (Depends-on): Add it. Remove all other
51996         dependencies except progname.
51997         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
51998
51999         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52000         (gl_FUNC_STRERROR): Nop.
52001         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52002
52003         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52004         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52005
52006         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52007         (gl_FUNC_READLINK): Update.
52008
52009         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52010
52011 2007-03-03  Bruno Haible  <bruno@clisp.org>
52012
52013         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52014         * modules/xreadlink (Depends-on): Add unistd.
52015         * modules/xreadlink-with-size (Depends-on): Likewise.
52016
52017 2007-03-03  Bruno Haible  <bruno@clisp.org>
52018
52019         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52020         extracted from gt_FUNC_SETENV.
52021         (gt_FUNC_SETENV): Remove macro.
52022         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52023         remove gt_FUNC_SETENV.
52024
52025 2007-03-03  Bruno Haible  <bruno@clisp.org>
52026
52027         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52028         ENABLE_RELOCATABLE here.
52029         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52030
52031 2007-03-03  Bruno Haible  <bruno@clisp.org>
52032
52033         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52034         * tests/test-rbtreehash_list.c: Include progname.h.
52035         (main): Call set_program_name.
52036
52037         * modules/rbtree-oset-tests (Depends-on): Add progname.
52038         * tests/test-rbtree_oset.c: Include progname.h.
52039         (main): Call set_program_name.
52040
52041         * modules/rbtree-list-tests (Depends-on): Add progname.
52042         * tests/test-rbtree_list.c: Include progname.h.
52043         (main): Call set_program_name.
52044
52045         * modules/linked-list-tests (Depends-on): Add progname.
52046         * tests/test-linked_list.c: Include progname.h.
52047         (main): Call set_program_name.
52048
52049 2007-03-03  Bruno Haible  <bruno@clisp.org>
52050
52051         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52052         All uses of __restrict changed to _Restrict_.
52053         * lib/glob_.h (__restrict): Remove macro.
52054
52055 2007-03-02  Bruno Haible  <bruno@clisp.org>
52056
52057         * modules/gettext (configure.ac): Require gettext infrastructure
52058         from version 0.16.1.
52059
52060 2007-03-02  Bruno Haible  <bruno@clisp.org>
52061
52062         * modules/linkedhash-list-tests (Depends-on): Add progname.
52063         * tests/test-linkedhash_list.c: Include progname.h.
52064         (main): Call set_program_name.
52065
52066         * modules/carray-list-tests (Depends-on): Add progname.
52067         * tests/test-carray_list.c: Include progname.h.
52068         (main): Call set_program_name.
52069
52070         * modules/avltreehash-list-tests (Depends-on): Add progname.
52071         * tests/test-avltreehash_list.c: Include progname.h.
52072         (main): Call set_program_name.
52073
52074         * modules/avltree-oset-tests (Depends-on): Add progname.
52075         * tests/test-avltree_oset.c: Include progname.h.
52076         (main): Call set_program_name.
52077
52078         * modules/avltree-list-tests (Depends-on): Add progname.
52079         * tests/test-avltree_list.c: Include progname.h.
52080         (main): Call set_program_name.
52081
52082         * modules/array-oset-tests (Depends-on): Add progname.
52083         * tests/test-array_oset.c: Include progname.h.
52084         (main): Call set_program_name.
52085
52086         * modules/array-list-tests (Depends-on): Add progname.
52087         * tests/test-array_list.c: Include progname.h.
52088         (main): Call set_program_name.
52089
52090         * modules/argp-tests (Depends-on): Add progname.
52091         * tests/test-argp.c: Include argp.h first. Include progname.h.
52092         (main): Call set_program_name.
52093
52094 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52095
52096         * doc/gnulib-tool.texi (Initial import): Reword description of
52097         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52098         limited effect even if defined after the first system include.
52099
52100 2007-03-01  Bruno Haible  <bruno@clisp.org>
52101
52102         * build-aux/config.libpath: Update to libtool-1.5.22.
52103         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52104
52105 2007-03-01  Bruno Haible  <bruno@clisp.org>
52106
52107         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52108         foo_CFLAGS.
52109         Reported by Ralf Wildenhues.
52110
52111 2007-03-01  Bruno Haible  <bruno@clisp.org>
52112
52113         * build-aux/install-reloc: Remove object files left over by some
52114         compilers.
52115         Reported by Ralf Wildenhues.
52116
52117 2007-03-01  Bruno Haible  <bruno@clisp.org>
52118
52119         * build-aux/install-reloc: Break long lines.
52120
52121 2007-03-01  Bruno Haible  <bruno@clisp.org>
52122
52123         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52124         Reported by Ralf Wildenhues.
52125
52126 2007-03-01  Bruno Haible  <bruno@clisp.org>
52127
52128         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52129         include ordering constraints.
52130
52131 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52132
52133         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52135         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52136         as another example.
52137         * lib/time_.h: Fix misspelling.
52138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52139         Require gl_HEADER_TIME_H_DEFAULTS.
52140         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52141         * m4/time_r.m4 (gl_TIME_R): Likewise.
52142         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52143
52144 2007-03-01  Bruno Haible  <bruno@clisp.org>
52145
52146         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52147         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52148
52149 2007-03-01  Jim Meyering  <jim@meyering.net>
52150
52151         * modules/xreadlink (Maintainer): Add my name.
52152         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52153
52154 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52155             Bruno Haible  <bruno@clisp.org>
52156
52157         * build-aux/install-reloc: Compile also c-ctype.c.
52158         * build-aux/relocatable.sh.in: New file.
52159         * doc/relocatable.texi: New file.
52160         * doc/relocatable-maint.texi: New file.
52161         * doc/gnulib.texi: Include relocatable-maint.texi.
52162         * lib/progreloc.c: Include unistd.h unconditionally.
52163         * lib/relocwrapper.c: Include unistd.h unconditionally.
52164         Include c-ctype.h.
52165         (add_dotbin): Use c_tolower.
52166         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52167         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52168         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52169         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52170         to m4/relocatable-lib.m4.
52171         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52172         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52173         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52174         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52175         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52176         * modules/relocatable: New file.
52177         * modules/relocatable-lib: New file.
52178         * modules/relocatable-script: New file.
52179
52180 2007-02-28  Bruno Haible  <bruno@clisp.org>
52181
52182         Import --enable-relocatable infrastructure.
52183         * build-aux/config.libpath: New file, from GNU gettext.
52184         * build-aux/install-reloc: New file, from GNU gettext.
52185         * build-aux/reloc-ldflags: New file, from GNU gettext.
52186         * lib/relocatable.h: New file, from GNU gettext.
52187         * lib/relocatable.c: New file, from GNU gettext.
52188         * lib/relocwrapper.c: New file, from GNU gettext.
52189         * m4/relocatable.m4: New file, from GNU gettext.
52190
52191 2007-02-28  Bruno Haible  <bruno@clisp.org>
52192
52193         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52194
52195         * modules/xreadlink: New file, from GNU gettext with modifications.
52196         * lib/xreadlink.c: New file, from GNU gettext.
52197         * lib/xreadlink.h: Add comments.
52198         (xreadlink): New declaration.
52199
52200         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52201         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52202         lib/xreadlink-with-size.c.
52203         (configure.ac): Remove gl_XREADLINK invocation.
52204         (Makefile.am): Augment lib_SOURCES.
52205         * m4/xreadlink.m4: Remove file.
52206         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52207         (xreadlink_with_size): Renamed from xreadink.
52208         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52209         * modules/canonicalize (Depends-on): Replace xreadlink with
52210         xreadlink-with-size.
52211         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52212
52213 2007-02-25  Jim Meyering  <jim@meyering.net>
52214
52215         * build-aux/announce-gen: When complaining about excess arguments,
52216         list them.
52217
52218 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52219
52220         * README: Document signed integer overflow situation more
52221         accurately.
52222
52223 2007-02-25  Bruno Haible  <bruno@clisp.org>
52224
52225         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52226         'a' or 'A' conversion.
52227
52228 2007-02-25  Bruno Haible  <bruno@clisp.org>
52229
52230         * modules/filename: Renamed from modules/pathname.
52231         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52232         lib/concatpath.c with lib/concat-filename.c.
52233         (Makefile.am): Update.
52234         (Include): Replace pathname.h with filename.h.
52235         * lib/filename.h: Renamed from lib/pathname.h.
52236         (concatenated_filename): Renamed from concatenated_pathname.
52237         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52238         (concatenated_filename): Renamed from concatenated_pathname.
52239         * lib/findprog.c: Include filename.h instead of pathname.h.
52240         (find_in_path): Update.
52241         * lib/javacomp.c: Include filename.h instead of pathname.h.
52242         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52243         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52244         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52245         is_oldgcj_14_13_usable, is_javac_usable): Update.
52246         * lib/javaexec.c: Include filename.h instead of pathname.h.
52247         (execute_java_class): Update.
52248         * modules/findprog: Update.
52249         * modules/javacomp: Update.
52250         * modules/javaexec: Update.
52251         * MODULES.html.sh (File system functions): Add 'filename', remove
52252         'pathname'.
52253
52254 2007-02-25  Bruno Haible  <bruno@clisp.org>
52255
52256         * modules/printf-frexpl-tests: New file.
52257         * tests/test-printf-frexpl.c: New file.
52258
52259         * modules/printf-frexpl: New file.
52260         * lib/printf-frexpl.h: New file.
52261         * lib/printf-frexpl.c: New file.
52262         * m4/printf-frexpl.m4: New file.
52263
52264 2007-02-25  Bruno Haible  <bruno@clisp.org>
52265
52266         * modules/printf-frexp-tests: New file.
52267         * tests/test-printf-frexp.c: New file.
52268
52269         * modules/printf-frexp: New file.
52270         * lib/printf-frexp.h: New file.
52271         * lib/printf-frexp.c: New file.
52272         * m4/printf-frexp.m4: New file.
52273
52274 2007-02-25  Bruno Haible  <bruno@clisp.org>
52275
52276         Assume automake >= 1.10 for the tests.
52277         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52278         * modules/arctwo-tests: Likewise.
52279         * modules/argp-tests: Likewise.
52280         * modules/avltree-list-tests: Likewise.
52281         * modules/avltree-oset-tests: Likewise.
52282         * modules/avltreehash-list-tests: Likewise.
52283         * modules/carray-list-tests: Likewise.
52284         * modules/crc-tests: Likewise.
52285         * modules/des-tests: Likewise.
52286         * modules/gc-arcfour-tests: Likewise.
52287         * modules/gc-arctwo-tests: Likewise.
52288         * modules/gc-des-tests: Likewise.
52289         * modules/gc-hmac-md5-tests: Likewise.
52290         * modules/gc-hmac-sha1-tests: Likewise.
52291         * modules/gc-md2-tests: Likewise.
52292         * modules/gc-md4-tests: Likewise.
52293         * modules/gc-md5-tests: Likewise.
52294         * modules/gc-pbkdf2-sha1-tests: Likewise.
52295         * modules/gc-rijndael-tests: Likewise.
52296         * modules/gc-sha1-tests: Likewise.
52297         * modules/gc-tests: Likewise.
52298         * modules/getaddrinfo-tests: Likewise.
52299         * modules/hmac-md5-tests: Likewise.
52300         * modules/hmac-sha1-tests: Likewise.
52301         * modules/linked-list-tests: Likewise.
52302         * modules/linkedhash-list-tests: Likewise.
52303         * modules/lock-tests: Likewise.
52304         * modules/md2-tests: Likewise.
52305         * modules/md4-tests: Likewise.
52306         * modules/md5-tests: Likewise.
52307         * modules/rbtree-list-tests: Likewise.
52308         * modules/rbtree-oset-tests: Likewise.
52309         * modules/rbtreehash-list-tests: Likewise.
52310         * modules/read-file-tests: Likewise.
52311         * modules/rijndael-tests: Likewise.
52312         * modules/stdint-tests: Likewise.
52313         * modules/tls-tests: Likewise.
52314
52315 2007-02-24  Bruno Haible  <bruno@clisp.org>
52316
52317         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52318         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52319         function; instead check whether isnan with a double argument links.
52320         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52321         function; instead check whether isnan with a 'long double' argument
52322         links.
52323         Reported by Eric Blake <ebb9@byu.net>.
52324
52325 2007-02-24  Bruno Haible  <bruno@clisp.org>
52326
52327         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52328         defined.
52329         * lib/isnanl.c: Remove all code. Just include isnan.c.
52330         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52331
52332 2007-02-25  Jim Meyering  <jim@meyering.net>
52333
52334         Avoid conflicting types for 'unsetenv' on FreeBSD.
52335         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52336         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52337         in stdlib.h.
52338
52339 2007-02-24  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/isnanl-nolibm-tests: New file.
52342         * tests/test-isnanl.c: New file.
52343
52344         * modules/isnanl-nolibm: New file.
52345         * lib/isnanl.h: New file.
52346         * lib/isnanl.c: New file.
52347         * m4/isnanl.m4: New file.
52348
52349 2007-02-24  Bruno Haible  <bruno@clisp.org>
52350
52351         * modules/isnan-nolibm-tests: New file.
52352         * tests/test-isnan.c: New file.
52353
52354         * modules/isnan-nolibm: New file.
52355         * lib/isnan.h: New file.
52356         * lib/isnan.c: New file.
52357         * m4/isnan.m4: New file.
52358
52359 2007-02-24  Bruno Haible  <bruno@clisp.org>
52360
52361         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52362         assume that an exponent fits in 20 bits.
52363
52364 2007-02-24  Jim Meyering  <jim@meyering.net>
52365
52366         * m4/regex.m4: Update the description of the configure-time option,
52367         --without-included-regex, to state accurately what the defaults are,
52368         and perhaps to give people an idea why using this option is risky.
52369
52370 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52371
52372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52373         loops on small arguments.  This attempts to avoid the problem
52374         Bruno Haible reported for AIX 4.3.2 in
52375         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52376
52377 2007-02-23  Bruno Haible  <bruno@clisp.org>
52378
52379         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52380         Needed for help2man.
52381
52382 2007-02-23  Karl Berry  <karl@gnu.org>
52383
52384         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52385         exists, foo.h should be cvs-ignored, not committed.
52386
52387 2007-02-23  Eric Blake  <ebb9@byu.net>
52388
52389         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52390         * lib/stat-time.h (includes): Likewise.
52391         * lib/utimecmp.c (includes): Likewise.
52392         * lib/utimens.h (includes): Likewise.
52393         * lib/getdate.y (includes): Also include "timespec.h" for use
52394         internal to the module.
52395         * modules/utimens (Depends-on): Revert yesterday's patch.
52396         * modules/nanosleep (Depends-on): Add missing dependency.
52397
52398 2007-02-22  Bruno Haible  <bruno@clisp.org>
52399
52400         * lib/glob.c: Don't include getlogin_r.h.
52401
52402 2007-02-22  Jim Meyering  <jim@meyering.net>
52403
52404         * modules/utimens (Depends-on): Add timespec, required for
52405         utimens.h's inclusion of timespec.h.
52406
52407 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52408
52409         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52410         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52411         Schwab in
52412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52413         I'll try to think of a better way to fix the Solaris problem.
52414
52415         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52416         like glibc; on Solaris 10, it fails with errno == EINVAL.
52417         POSIX says the behavior is unspecified if the first argument is NULL,
52418         so play it safe and never pass NULL to the system getcwd.
52419
52420 2007-02-21  Jim Meyering  <jim@meyering.net>
52421
52422         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52423         of gettimeofday.  It would conflict with the one now always
52424         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52425         an IRIX 6.5 build failure.
52426
52427 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52428
52429         Minor fixups to port to Solaris 10 with Sun C 5.8.
52430         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52431         * modules/getcwd (Depends-on): Add dirfd.
52432         * lib/putenv.c (putenv): #undef it.
52433         (rpl_putenv): New decl.
52434         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52435
52436 2007-02-20  Bruno Haible  <bruno@clisp.org>
52437
52438         * modules/stdio-tests: New file.
52439         * tests/test-stdio.c: New file.
52440
52441         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52442         (Depends-on): Add stdio.
52443         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52444         (Include): Use <stdio.h> instead of vsnprintf.h.
52445         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52446         HAVE_DECL_VSNPRINTF.
52447         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52448
52449         * modules/snprintf (Files): Remove lib/snprintf.h.
52450         (Depends-on): Add stdio.
52451         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52452         (Include): Use <stdio.h> instead of snprintf.h.
52453         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52454         HAVE_DECL_SNPRINTF.
52455         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52456         * lib/getaddrinfo.c: Likewise.
52457
52458         * modules/stdio: New file.
52459         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52460         * lib/snprintf.h: Remove file.
52461         * lib/vsnprintf.h: Remove file.
52462         * lib/.cppi-disable: Remove snprintf.h.
52463         * m4/stdio_h.m4: New file.
52464         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52465
52466 2007-02-20  Jim Meyering  <jim@meyering.net>
52467
52468         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52469         used by e.g., mingw.  From Bruno Haible.
52470
52471 2007-02-19  Bruno Haible  <bruno@clisp.org>
52472
52473         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52474         warnings.
52475         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52476
52477 2007-02-19  Bruno Haible  <bruno@clisp.org>
52478
52479         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52480         from mingw users.
52481
52482 2007-02-19  Bruno Haible  <bruno@clisp.org>
52483
52484         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52485         warnings.
52486         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52487
52488 2007-02-19  Jim Meyering  <jim@meyering.net>
52489
52490         Don't use FD after a successful "fdopendir (fd)".
52491         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52492         Reset it by calling dirfd on the just-obtained DIR*.
52493
52494         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52495         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52496
52497 2007-02-18  Bruno Haible  <bruno@clisp.org>
52498
52499         * lib/readlink.c: Include <unistd.h>.
52500         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52501         HAVE_READLINK.
52502         * modules/readlink (Depends-on): Add unistd.
52503         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52504         (Include): Add <unistd.h>.
52505
52506         * lib/getlogin_r.h: Remove file.
52507         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52508         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52509         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52510         HAVE_DECL_GETLOGIN_R.
52511         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52512         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52513         (Include): Use <unistd.h> instead of getlogin_r.h.
52514
52515         * lib/getcwd.h: Remove file.
52516         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52517         * lib/xgetcwd.c: Likewise.
52518         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52519         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52520         * modules/getcwd (Files): Remove lib/getcwd.h.
52521         (Depends-on): Add unistd.
52522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52523         (Include): Use <unistd.h> instad of getcwd.h.
52524
52525         * lib/ftruncate.c: Include <unistd.h> first.
52526         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52527         Set HAVE_FTRUNCATE.
52528         * modules/ftruncate (Depends-on): Add unistd.
52529         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52530
52531         * lib/fchdir.c: Include <unistd.h> first.
52532         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52533         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52534         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52535         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52536         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52537
52538         * lib/dup2.c: Include <unistd.h> first.
52539         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52540         HAVE_DUP2.
52541         * modules/dup2 (Depends-on): Add unistd.
52542         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52543
52544         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52545         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52546         REPLACE_CHOWN. Don't define chown as a macro here.
52547         * modules/chown (Depends-on): Add unistd.
52548         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52549
52550         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52551         Add definition for GL_LINK_WARNING.
52552         (chown, dup2): New declarations.
52553         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52554         link warning.
52555         (ftruncate): New declaration.
52556         (getcwd): New declaration, taken from old getcwd.h.
52557         (getlogin_r): New declaration, taken from old getlogin_r.h.
52558         (readlink): New declaration.
52559         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52560         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52561         (gl_PREREQ_UNISTD): Remove macro.
52562         (gl_UNISTD_MODULE_INDICATOR): New macro.
52563         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52564         many new variables. Don't set UNISTD_H.
52565         * modules/unistd (Description): Change.
52566         (Depends-on): Add link-warning.
52567         (configure.ac): Update.
52568         (Makefile.am): Create unistd.h always. Substitute many new variables
52569         into it.
52570
52571 2007-02-18  Bruno Haible  <bruno@clisp.org>
52572
52573         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52574         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52575         HAVE_GETSUBOPT.
52576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52577         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52578         * lib/getsubopt.h: Remove file.
52579         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52580         (Depends-on): Add stdlib.
52581         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52582         (Includes): Use <stdlib.h> instead of getsubopt.h.
52583         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52584         Set HAVE_GETSUBOPT.
52585         * lib/getsubopt.c: Don't include getsubopt.h.
52586
52587 2007-02-18  Bruno Haible  <bruno@clisp.org>
52588
52589         * modules/fchdir (Depends-on): Add dup2.
52590
52591 2007-02-18  Bruno Haible  <bruno@clisp.org>
52592
52593         * lib/stdlib_.h: Handle glibc's special invocation convention
52594         specially.
52595
52596 2007-02-18  Bruno Haible  <bruno@clisp.org>
52597
52598         * modules/stdlib-tests: New file.
52599         * tests/test-stdlib.c: New file.
52600
52601         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52602         (Depends-on): Add stdlib.
52603         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52604         (Includes): Use <stdlib.h> instead of mkstemp.h.
52605         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52606         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52607         * lib/mkstemp.c: Don't include mkstemp.h.
52608         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52609         * lib/stdlib--.h: Don't include mkstemp.h.
52610
52611         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52612         (Depends-on): Add stdlib.
52613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52614         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52615         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52616         HAVE_MKDTEMP.
52617         * lib/mkdtemp.c: Don't include mkdtemp.h.
52618         * lib/clean-temp.c: Don't include mkdtemp.h.
52619
52620         * modules/exit (Files): Remove lib/exit.h.
52621         (Depends-on): Add stdlib.
52622         (Makefile.am): Remove lib_SOURCES.
52623         (Include): Use <stdlib.h> instead of exit.h.
52624         * lib/argmatch.c: Don't include exit.h.
52625         * lib/execute.c: Likewise.
52626         * lib/pagealign_alloc.c: Likewise.
52627         * lib/pipe.c: Likewise.
52628         * lib/wait-process.c: Likewise.
52629         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52630         * lib/exitfail.c: Likewise.
52631         * lib/savewd.c: Likewise.
52632         * lib/xsetenv.c: Likewise.
52633
52634         * modules/stdlib: New file.
52635         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52636         and extra comments about mkstemp().
52637         * lib/exit.h: Remove file.
52638         * lib/mkdtemp.h: Remove file.
52639         * lib/mkstemp.h: Remove file.
52640         * m4/stdlib_h.m4: New file.
52641         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52642
52643 2007-02-18  Bruno Haible  <bruno@clisp.org>
52644
52645         * modules/math-tests: New file.
52646         * tests/test-math.c: New file.
52647
52648         * modules/math: New file.
52649         * modules/mathl (Files): Remove lib/mathl.h.
52650         (Depends-on): Add math.
52651         (Makefile.am): Don't mention mathl.h.
52652         (Include): Use <math.h> instead of mathl.h.
52653         * lib/math_.h: New file.
52654         * lib/mathl.h: Remove file.
52655         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52656         mathl.h.
52657         * lib/asinl.c: Likewise.
52658         * lib/atanl.c: Likewise.
52659         * lib/ceill.c: Likewise.
52660         * lib/cosl.c: Likewise.
52661         * lib/expl.c: Likewise.
52662         * lib/floorl.c: Likewise.
52663         * lib/frexpl.c: Likewise.
52664         * lib/ldexpl.c: Likewise.
52665         * lib/logl.c: Likewise.
52666         * lib/sincosl.c: Likewise.
52667         * lib/sinl.c: Likewise.
52668         * lib/sqrtl.c: Likewise.
52669         * lib/tanl.c: Likewise.
52670         * lib/trigl.c: Likewise.
52671         * m4/math_h.m4: New file.
52672         * MODULES.html.sh (Mathematics): Add math.
52673
52674 2007-02-17  Bruno Haible  <bruno@clisp.org>
52675
52676         * modules/wctype-tests: New file.
52677         * tests/test-wctype.c: New file.
52678
52679         * modules/wchar-tests: New file.
52680         * tests/test-wchar.c: New file.
52681
52682         * modules/unistd-tests: New file.
52683         * tests/test-unistd.c: New file.
52684
52685         * modules/time-tests: New file.
52686         * tests/test-time.c: New file.
52687
52688         * modules/sysexits-tests: New file.
52689         * tests/test-sysexits.c: New file.
52690
52691         * modules/sys_time-tests: New file.
52692         * tests/test-sys_time.c: New file.
52693
52694         * modules/sys_stat-tests: New file.
52695         * tests/test-sys_stat.c: New file.
52696
52697         * modules/sys_socket-tests: New file.
52698         * tests/test-sys_socket.c: New file.
52699
52700         * modules/sys_select-tests: New file.
52701         * tests/test-sys_select.c: New file.
52702
52703         * modules/string-tests: New file.
52704         * tests/test-string.c: New file.
52705
52706         * modules/stdbool-tests: New file.
52707         * tests/test-stdbool.c: New file.
52708
52709         * modules/netinet_in-tests: New file.
52710         * tests/test-netinet_in.c: New file.
52711
52712         * modules/inttypes-tests: New file.
52713         * tests/test-inttypes.c: New file.
52714
52715         * modules/fcntl-tests: New file.
52716         * tests/test-fcntl.c: New file.
52717
52718         * modules/byteswap-tests: New file.
52719         * tests/test-byteswap.c: New file.
52720
52721         * modules/arpa_inet-tests: New file.
52722         * tests/test-arpa_inet.c: New file.
52723
52724 2007-02-17  Bruno Haible  <bruno@clisp.org>
52725
52726         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52727         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52728         if the corresponding module is not enabled. Emit link warnings if
52729         the function is used nevertheless.
52730         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52731         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52732         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52733         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52734         * modules/inttypes (Depends-on): Add link-warning.
52735         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52736         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52737         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52738         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52739         * modules/imaxdiv (configure.ac): Likewise.
52740         * modules/strtoimax (configure.ac): Likewise.
52741         * modules/strtoumax (configure.ac): Likewise.
52742
52743 2007-02-17  Bruno Haible  <bruno@clisp.org>
52744
52745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52746         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52747         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52748         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52749
52750 2007-02-17  Bruno Haible  <bruno@clisp.org>
52751
52752         * modules/link-warning: New file.
52753         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52754         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52755         * modules/string (Depends-on): Add link-warning.
52756         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52757         string.h.
52758         * MODULES.html.sh (Support for building libraries and executables): Add
52759         link-warning.
52760
52761 2007-02-17  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52764         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52765         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52766         long lines.
52767
52768 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52769             Bruno Haible  <bruno@clisp.org>
52770
52771         * modules/tmpfile: New file.
52772         * lib/tmpfile.c: New file.
52773         * m4/tmpfile.m4: New file.
52774         * MODULES.html.sh (func_all_modules): New section "Input/output".
52775
52776 2007-02-15  Bruno Haible  <bruno@clisp.org>
52777
52778         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52779         (supports_delete_on_close): New function.
52780         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52781
52782 2007-02-14  Bruno Haible  <bruno@clisp.org>
52783
52784         * modules/mbspcasecmp-tests: New file.
52785         * tests/test-mbspcasecmp.sh: New file.
52786         * tests/test-mbspcasecmp.c: New file.
52787
52788         New module mbspcasecmp.
52789         * modules/mbspcasecmp: New file.
52790         * lib/mbspcasecmp.c: New file.
52791         * lib/string_.h (strncasecmp): Change warning message.
52792         (mbspcasecmp): New declaration.
52793         * m4/mbspcasecmp.m4: New file.
52794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52795         GNULIB_MBSPCASECMP.
52796         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52797         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52798
52799 2007-02-14  Bruno Haible  <bruno@clisp.org>
52800
52801         * modules/mbsncasecmp-tests: New file.
52802         * tests/test-mbsncasecmp.sh: New file.
52803         * tests/test-mbsncasecmp.c: New file.
52804
52805         New module mbsncasecmp.
52806         * modules/mbsncasecmp: New file.
52807         * lib/mbsncasecmp.c: New file.
52808         * lib/string_.h (mbsncasecmp): New declaration.
52809         * m4/mbsncasecmp.m4: New file.
52810         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52811         GNULIB_MBSNCASECMP.
52812         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52813         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52814
52815 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52816
52817         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52818         Verify that it doesn't overlap with our flags.
52819         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52820         do not have the desired effect in multibyte locales; instead, use
52821         mbscasecmp.
52822         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52823         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52824         we don't require GNU fnmatch ourselves (if our users require it, they
52825         should do so explicitly).
52826
52827         Fix regex code so it doesn't rely on strcasecmp.
52828         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52829         Otherwise, include gnulib's langinfo.h.
52830         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52831         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52832         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52833         * modules/regex (FILES): Remove m4/codeset.m4.
52834         (Depends-on): Add localcharset.  Remove strcase.
52835
52836 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52837
52838         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52839         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52840
52841 2007-02-13  Bruno Haible  <bruno@clisp.org>
52842
52843         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52844         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52845
52846 2007-02-12  Bruno Haible  <bruno@clisp.org>
52847
52848         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52849         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52850         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52851         time warning rather than a link error.
52852
52853 2007-02-12  Bruno Haible  <bruno@clisp.org>
52854
52855         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52856         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52858
52859 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52860
52861         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52862         args, not 2.
52863
52864 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52865
52866         New module 'time', so that apps can include <time.h> as per
52867         POSIX and GNU instead of separate include files like time_r.h
52868         and timegm.h.  This implementation tries out a simpler approach
52869         for replacing decls in standard include files (as compared to
52870         the string module), somewhat as an experiment.
52871
52872         * config/srclist.txt: Comment out mktime.c for now.
52873         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52874         since it doesn't apply any more.  Use generic wording instead.
52875         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52876         'time'.
52877         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52878         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52879         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52880         Don't include <sys/types.h>; no longer needed since we assume C89.
52881         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52882         * lib/strftime.c: Likewise.
52883         * lib/time_r.c: Likewise.
52884         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52885         * lib/nanosleep.c: Include <time.h> first, to check interface.
52886         * lib/strptime.c: Likewise.
52887         * lib/time_r.c: Likewise.
52888         * lib/timegm.c: Likewise.
52889         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52890         needed.
52891         * lib/timegm.c: Don't include timegm.h; no longer needed.
52892         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52893         time.h now handles any problems in that area.
52894         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52895         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52896         that time.h defines struct timespec.
52897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52898         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52899         handles that.
52900         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52901         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52902         needed.  Set REPLACE_LOCALTIME.
52903         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52904         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52905         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52906         nanosleep; time_h.m4 now does that.  Don't require
52907         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52908         module handles this now.
52909         * modules/getdate (Depends-on): Remove timespec.  Add time.
52910         * modules/nanosleep (Depends-on): Likewise.
52911         * modules/stat-time (Depends-on): Likewise.
52912         * modules/nanosleep (Include): Include time.h, not timespec.h.
52913         * modules/strptime (Files): Remove lib/strptime.h.
52914         (Depends-on): Add extensions, time.
52915         (Include): Include time.h, not strptime.h.
52916         * modules/time_r (Files): Remove lib/time_r.h.
52917         (Depends-on): Add time.
52918         (Include): Include time.h, not time_r.h.
52919         * modules/timegm: Likewise.
52920         * modules/timespec (Description): Now does timespec-related decls
52921         of our own, instead of struct timespec itself.
52922         (Depends-on): Add time; remove extensions.
52923         (Maintainer): Add self.
52924         * modules/utimecmp (Depends-on): Add time; remove timespec.
52925         * modules/utimens (Depends-on): Likewise.
52926         * modules/xnanosleep (Depends-on): Likewise.
52927
52928 2007-02-11  Bruno Haible  <bruno@clisp.org>
52929
52930         * lib/c-strstr.c: Include allocsa.h.
52931         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52932         * lib/c-strcasestr.c: Include allocsa.h.
52933         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52934         * lib/strcasestr.c: Include allocsa.h.
52935         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52936         * lib/mbsstr.c: Include allocsa.h.
52937         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52938         allocsa/freesa instead of malloc/free.
52939         * lib/mbscasestr.c: Include allocsa.h.
52940         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52941         allocsa/freesa instead of malloc/free.
52942         * modules/c-strstr (Depends-on): Add allocsa.
52943         * modules/c-strcasestr (Depends-on): Likewise.
52944         * modules/strcasestr (Depends-on): Likewise.
52945         * modules/mbsstr (Depends-on): Likewise.
52946         * modules/mbscasestr (Depends-on): Likewise.
52947
52948 2007-02-11  Bruno Haible  <bruno@clisp.org>
52949
52950         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52951
52952         * modules/mbsspn-tests: New file.
52953         * tests/test-mbsspn.sh: New file.
52954         * tests/test-mbsspn.c: New file.
52955
52956 2007-02-11  Bruno Haible  <bruno@clisp.org>
52957
52958         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
52959
52960         * modules/mbspbrk-tests: New file.
52961         * tests/test-mbspbrk.sh: New file.
52962         * tests/test-mbspbrk.c: New file.
52963
52964 2007-02-11  Bruno Haible  <bruno@clisp.org>
52965
52966         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
52967         unneeded cast.
52968
52969         * modules/mbscspn-tests: New file.
52970         * tests/test-mbscspn.sh: New file.
52971         * tests/test-mbscspn.c: New file.
52972
52973 2007-02-11  Bruno Haible  <bruno@clisp.org>
52974
52975         * modules/mbscasecmp-tests: New file.
52976         * tests/test-mbscasecmp.sh: New file.
52977         * tests/test-mbscasecmp.c: New file.
52978
52979 2007-02-11  Bruno Haible  <bruno@clisp.org>
52980
52981         Ensure O(n) worst-case complexity of mbscasestr.
52982         * lib/mbscasestr.c: Include stdbool.h.
52983         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52984         functions.
52985         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
52986         the bookkeeping indicates that it's worth it.
52987         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
52988
52989         * modules/mbscasestr-tests: New file.
52990         * tests/test-mbscasestr1.c: New file.
52991         * tests/test-mbscasestr2.sh: New file.
52992         * tests/test-mbscasestr2.c: New file.
52993         * tests/test-mbscasestr3.sh: New file.
52994         * tests/test-mbscasestr3.c: New file.
52995         * tests/test-mbscasestr4.sh: New file.
52996         * tests/test-mbscasestr4.c: New file.
52997         * m4/locale-tr.m4: New file.
52998
52999 2007-02-11  Bruno Haible  <bruno@clisp.org>
53000
53001         Ensure O(n) worst-case complexity of mbsstr.
53002         * lib/mbsstr.c: Include stdbool.h.
53003         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53004         functions.
53005         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53006         bookkeeping indicates that it's worth it.
53007         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53008
53009         * modules/mbsstr-tests: New file.
53010         * tests/test-mbsstr1.c: New file.
53011         * tests/test-mbsstr2.sh: New file.
53012         * tests/test-mbsstr2.c: New file.
53013         * tests/test-mbsstr3.sh: New file.
53014         * tests/test-mbsstr3.c: New file.
53015         * m4/locale-fr.m4: New file.
53016
53017 2007-02-11  Bruno Haible  <bruno@clisp.org>
53018
53019         * lib/mbsrchr.c (mbsrchr): Fix bug.
53020
53021         * modules/mbsrchr-tests: New file.
53022         * tests/test-mbsrchr.sh: New file.
53023         * tests/test-mbsrchr.c: New file.
53024
53025 2007-02-11  Bruno Haible  <bruno@clisp.org>
53026
53027         * lib/mbschr.c (mbschr): Fix bug.
53028
53029         * modules/mbschr-tests: New file.
53030         * tests/test-mbschr.sh: New file.
53031         * tests/test-mbschr.c: New file.
53032         * m4/locale-zh.m4: New file.
53033
53034 2007-02-11  Bruno Haible  <bruno@clisp.org>
53035
53036         Support for copying multibyte string iterators.
53037         * lib/mbiter.h: Include <string.h>.
53038         (mbiter_multi_copy): New function.
53039         (mbi_copy): New macro.
53040         * lib/mbuiter.h: Include <string.h>.
53041         (mbuiter_multi_copy): New function.
53042         (mbui_copy): New macro.
53043
53044 2007-02-11  Bruno Haible  <bruno@clisp.org>
53045
53046         New module mbslen.
53047         * modules/mbslen: New file.
53048         * lib/mbslen.c: New file.
53049         * lib/string_.h (mbslen): New declaration.
53050         * m4/mbslen.m4: New file.
53051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53052         GNULIB_MBSLEN.
53053         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53054         * MODULES.html.sh (Internationalization functions): Add mbslen.
53055
53056 2007-02-11  Bruno Haible  <bruno@clisp.org>
53057
53058         Ensure O(n) worst-case complexity of strcasestr substitute.
53059         * lib/strcasestr.c: Include stdbool.h.
53060         (knuth_morris_pratt): New function.
53061         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53062         bookkeeping indicates that it's worth it.
53063         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53064
53065         * modules/strcasestr-tests: New file.
53066         * tests/test-strcasestr.c: New file.
53067
53068 2007-02-11  Bruno Haible  <bruno@clisp.org>
53069
53070         Ensure O(n) worst-case complexity of c_strcasestr.
53071         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53072         (knuth_morris_pratt): New function.
53073         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53074         the bookkeeping indicates that it's worth it.
53075         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53076
53077         * modules/c-strcasestr-tests: New file.
53078         * tests/test-c-strcasestr.c: New file.
53079
53080 2007-02-11  Bruno Haible  <bruno@clisp.org>
53081
53082         Ensure O(n) worst-case complexity of c_strstr.
53083         * lib/c-strstr.c: Include stdbool.h, string.h.
53084         (knuth_morris_pratt): New function.
53085         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53086         bookkeeping indicates that it's worth it.
53087         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53088
53089         * lib/c-strstr.c: Complete rewrite for maintainability.
53090
53091         * modules/c-strstr-tests: New file.
53092         * tests/test-c-strstr.c: New file.
53093
53094 2007-02-11  Bruno Haible  <bruno@clisp.org>
53095
53096         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53097         5.2.1 and earlier, whereby \055 was treated just like the range
53098         delimiter '-'.
53099         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53100
53101 2007-02-08  Bruno Haible  <bruno@clisp.org>
53102
53103         * modules/regex (Depends-on): Add stdbool.
53104         Reported by Dalibor Topic <robilad@kaffe.org>.
53105
53106 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53107
53108         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53109         Prefer returning from main to exiting from it.
53110         Remove unnecessary parens after sizeof.
53111
53112 2007-02-05  Bruno Haible  <bruno@clisp.org>
53113
53114         New module mbssep.
53115         * modules/mbssep: New file.
53116         * lib/mbssep.c: New file.
53117         * lib/string_.h (strsep): Add a conditional link warning.
53118         (mbssep): New declaration.
53119         * m4/mbssep.m4: New file.
53120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53121         GNULIB_MBSSEP.
53122         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53123         * MODULES.html.sh (Internationalization functions): Add mbssep.
53124
53125 2007-02-05  Bruno Haible  <bruno@clisp.org>
53126
53127         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53128         Optimize search in case of 1 delimiter.
53129
53130 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53131
53132         * lib/acl.h: Include sys/types.h before sys/acl.h.
53133
53134 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53135
53136         Merge upstream fix for glibc bugzilla #3957:
53137
53138         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53139
53140         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53141         bit for RE_HAT_LISTS_NOT_NEWLINE.
53142         (build_charclass_op): Remove bogus comment.
53143
53144 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53145
53146         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53147
53148 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53149
53150         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53151         * lib/memmem.c [!defined _LIBC]: Include config.h.
53152
53153 2007-02-04  Bruno Haible  <bruno@clisp.org>
53154
53155         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53156         warning message.
53157
53158 2007-02-04  Bruno Haible  <bruno@clisp.org>
53159
53160         New module mbstok_r.
53161         * modules/mbstok_r: New file.
53162         * lib/mbstok_r.c: New file.
53163         * lib/string_.h (strtok_r): Change argument names to match the
53164         comments. Add a conditional link warning.
53165         (mbstok_r): New declaration.
53166         * m4/mbstok_r.m4: New file.
53167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53168         GNULIB_MBSTOK_R.
53169         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53170         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53171
53172 2007-02-04  Bruno Haible  <bruno@clisp.org>
53173
53174         New module mbsspn.
53175         * modules/mbsspn: New file.
53176         * lib/mbsspn.c: New file.
53177         * lib/string_.h (strspn): Add a conditional link warning.
53178         (mbsspn): New declaration.
53179         * m4/mbsspn.m4: New file.
53180         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53181         GNULIB_MBSSPN.
53182         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53183         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53184
53185 2007-02-04  Bruno Haible  <bruno@clisp.org>
53186
53187         New module mbspbrk.
53188         * modules/mbspbrk: New file.
53189         * lib/mbspbrk.c: New file.
53190         * lib/string_.h (strpbrk): Add a conditional link warning.
53191         (mbspbrk): New declaration.
53192         * m4/mbspbrk.m4: New file.
53193         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53194         GNULIB_MBSPBRK.
53195         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53196         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53197
53198 2007-02-04  Bruno Haible  <bruno@clisp.org>
53199
53200         New module mbscspn.
53201         * modules/mbscspn: New file.
53202         * lib/mbscspn.c: New file.
53203         * lib/string_.h (strcspn): Add a conditional link warning.
53204         (mbscspn): New declaration.
53205         * m4/mbscspn.m4: New file.
53206         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53207         GNULIB_MBSCSPN.
53208         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53209         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53210
53211 2007-02-04  Bruno Haible  <bruno@clisp.org>
53212
53213         New module mbscasestr, reduced goal of strcasestr.
53214         * modules/mbscasestr: New file.
53215         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53216         (mbscasestr): Renamed from strcasestr.
53217         * lib/strcasestr.c: Don't include mbuiter.h.
53218         (strcasestr): Remove support for multibyte locales.
53219         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53220         Change the conditional link warning.
53221         (mbscasestr): New declaration.
53222         * m4/mbscasestr.m4: New file.
53223         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53224         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53225         REPLACE_STRCASESTR.
53226         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53228         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53229         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53230         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53231         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53232         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53233         (Depends-on): Remove mbuiter.
53234         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53235
53236 2007-02-04  Bruno Haible  <bruno@clisp.org>
53237
53238         Simplify handling of strncasecmp.
53239         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53240         the conditional link warning.
53241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53242         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53243         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53244         * modules/strcase (configure.ac): Don't invoke
53245         gl_STRING_MODULE_INDICATOR.
53246         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53247
53248 2007-02-04  Bruno Haible  <bruno@clisp.org>
53249
53250         New module mbscasecmp, reduced goal of strcasecmp.
53251         * modules/mbscasecmp: New file.
53252         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53253         (mbscasecmp): Renamed from strcasecmp.
53254         * lib/strcasecmp.c: Don't include mbuiter.h.
53255         (strcasecmp): Remove support for multibyte locales.
53256         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53257         Change the conditional link warning.
53258         (mbscasecmp): New declaration.
53259         * m4/mbscasecmp.m4: New file.
53260         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53261         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53262         REPLACE_STRCASECMP.
53263         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53265         GNULIB_MBSCASECMP.
53266         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53267         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53268         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53269         (Depends-on): Remove mbuiter.
53270         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53271
53272 2007-02-04  Bruno Haible  <bruno@clisp.org>
53273
53274         New module mbsstr. Remove module strstr.
53275         * modules/mbsstr: New file.
53276         * modules/strstr: Remove file.
53277         * lib/mbsstr.c: Renamed from lib/strstr.c.
53278         (mbsstr): Renamed from strstr.
53279         * lib/string_.h (strstr): Remove declaration. Change the conditional
53280         link warning.
53281         (mbsstr): New declaration.
53282         * m4/mbsstr.m4: New file.
53283         * m4/strstr.m4: Remove file.
53284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53285         REPLACE_STRSTR.
53286         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53287         Don't initialize GNULIB_STRSTR.
53288         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53289         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53290         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53291         (Support for systems lacking ANSI C 89): Remove strstr.
53292
53293 2007-02-04  Bruno Haible  <bruno@clisp.org>
53294
53295         New module mbsrchr.
53296         * modules/mbsrchr: New file.
53297         * lib/mbsrchr.c: New file.
53298         * lib/string_.h (strrchr): Add a conditional link warning.
53299         (mbsrchr): New declaration.
53300         * m4/mbsrchr.m4: New file.
53301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53302         GNULIB_MBSRCHR.
53303         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53304         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53305
53306 2007-02-04  Bruno Haible  <bruno@clisp.org>
53307
53308         New module mbschr.
53309         * modules/mbschr: New file.
53310         * lib/mbschr.c: New file.
53311         * lib/string_.h (strchr): Add a conditional link warning.
53312         (mbschr): New declaration.
53313         * m4/mbschr.m4: New file.
53314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53315         GNULIB_MBSCHR.
53316         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53317         * MODULES.html.sh (Internationalization functions): Add mbschr.
53318
53319 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53320
53321         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53322
53323         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53324
53325 2007-02-04  Bruno Haible  <bruno@clisp.org>
53326
53327         New module description section 'configure.ac-early'.
53328         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53329         (func_get_autoconf_early_snippet): New function.
53330         (func_import, func_create_testdir): Use it. Remove special cases for
53331         modules 'extensions' and 'lock'.
53332         * modules/extensions (configure.ac-early): Require
53333         gl_USE_SYSTEM_EXTENSIONS.
53334         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53335
53336 2007-02-04  Bruno Haible  <bruno@clisp.org>
53337
53338         Make use of gcj-4.3's -fsource and -ftarget option.
53339         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53340         and if so try the options -fsource and -ftarget.
53341         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53342         source_version, ftarget_option, target_version arguments.
53343         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53344         (is_envjavac_oldgcj_14_14_usable): Renamed from
53345         is_envjavac_gcj_14_14_usable.
53346         (is_envjavac_oldgcj_14_13_usable): Renamed from
53347         is_envjavac_gcj_14_13_usable.
53348         (is_gcj_present): Update.
53349         (is_gcj_43, is_gcj43_usable): New functions.
53350         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53351         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53352         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53353         try the options -fsource and -ftarget.
53354
53355 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53356
53357         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53358         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53359         larger value.
53360
53361 2007-02-03  Jim Meyering  <jim@meyering.net>
53362
53363         Give tools a better chance to allocate space for very large buffers.
53364         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53365
53366         Make pwd and readlink work also when run with an unreadable parent dir
53367         on systems with openat support.
53368         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53369         provided getcwd function, even when we have openat support.
53370         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53371
53372 2007-02-02  Bruno Haible  <bruno@clisp.org>
53373
53374         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53375         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53376         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53377         portability problems if one of these functions is only used on specific
53378         platforms.
53379         Reported by Paul Eggert.
53380
53381 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53382
53383         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53384         is causing more trouble than it's curing.
53385         * lib/regex_internal.h (__mempcpy): Remove.
53386         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53387         (and make the code a tad smaller to boot).
53388         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53389
53390 2007-02-02  Jim Meyering  <jim@meyering.net>
53391
53392         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53393         section, not in the Makefile.am: one.
53394
53395 2007-02-02  Eric Blake  <ebb9@byu.net>
53396
53397         * lib/strchrnul.c: Always include config.h first.
53398
53399         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53400         gnulib strstr is not necessary here.
53401
53402 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53403
53404         * m4/socklen.m4: Fix typo.
53405
53406 2007-02-02  Eric Blake  <ebb9@byu.net>
53407
53408         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53409         * modules/netinet_in (Makefile.am): Likewise.
53410
53411 2007-02-01  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/string_.h (GL_LINK_WARNING): New macro.
53414         (strcasecmp, strstr, strcasestr): If provided by the system,
53415         conditionally define as a macro that leads to a warning instead of to
53416         an error.
53417         (strncasecmp): Conditionally define as a macro that leads to a warning.
53418
53419 2007-02-01  Karl Berry  <karl@gnu.org>
53420
53421         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53422
53423 2007-02-01  Bruno Haible  <bruno@clisp.org>
53424
53425         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53426         renamings.
53427
53428 2007-02-01  Eric Blake  <ebb9@byu.net>
53429
53430         * modules/regex (Depends-on): Revert dependence on mempcpy.
53431         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53432         module's definition of mempcpy.
53433         Reported by Paul Eggert.
53434
53435 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53438         the symbol XYZ before redefining it.  This fixes a problem with
53439         programs that don't use XYZ, when compiled on systems that define
53440         XYZ to something else.
53441
53442 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53443
53444         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53445         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53446         writeable to group or other and (2) is intended to have a special
53447         mode bit that is set or cleared.  In such a case, the directory
53448         should be neither group- nor other-writeable until the special
53449         mode bits are right.
53450
53451 2007-01-31  Eric Blake  <ebb9@byu.net>
53452
53453         * modules/mountlist (Depends-on): Add strstr.
53454
53455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53456         bug.
53457         * modules/string (Makefile.am): Remove redundant replacement.
53458         * modules/regex (Depends-on): Add mempcpy.
53459
53460 2007-01-31  Bruno Haible  <bruno@clisp.org>
53461
53462         New module description field 'Link'.
53463         * gnulib-tool (func_usage): Document --extract-link-directive.
53464         (sed_extract_prog): Recognize 'Link' directive.
53465         (func_get_link_directive): New function.
53466         (func_import): Show summary of link directives.
53467         Handle --extract-link-directive option.
53468         * modules/acl (Link): New section.
53469         * modules/clock-time (Link): New section.
53470         * modules/euidaccess (Link): New section.
53471         * modules/gettext (Link): New section.
53472         * modules/iconv (Link): New section.
53473         * modules/lock (Link): New section.
53474         * modules/nanosleep (Link): New section.
53475         * modules/readline (Link): New section.
53476
53477 2007-01-27  Bruno Haible  <bruno@clisp.org>
53478
53479         Enforce the use of gnulib modules for unportable <string.h> functions.
53480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53481         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53482         (gl_HEADER_STRING_H_BODY): Require it.
53483         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53484         the symbol XYZ to one that gives a link error.
53485         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53486         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53487         * modules/mempcpy (configure.ac): Likewise.
53488         * modules/memrchr (configure.ac): Likewise.
53489         * modules/stpcpy (configure.ac): Likewise.
53490         * modules/stpncpy (configure.ac): Likewise.
53491         * modules/strcase (configure.ac): Likewise.
53492         * modules/strcasestr (configure.ac): Likewise.
53493         * modules/strchrnul (configure.ac): Likewise.
53494         * modules/strdup (configure.ac): Likewise.
53495         * modules/strndup (configure.ac): Likewise.
53496         * modules/strnlen (configure.ac): Likewise.
53497         * modules/strpbrk (configure.ac): Likewise.
53498         * modules/strsep (configure.ac): Likewise.
53499         * modules/strstr (configure.ac): Likewise.
53500         * modules/strtok_r (configure.ac): Likewise.
53501
53502 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53503
53504         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53505
53506 2007-01-30  Jim Meyering  <jim@meyering.net>
53507
53508         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53509
53510 2007-01-29  Bruno Haible  <bruno@clisp.org>
53511
53512         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53513         * lib/execute.c: Likewise.
53514         * lib/pipe.c: Likewise.
53515         * lib/printf-args.h: Likewise.
53516         * lib/printf-args.c: Likewise.
53517         * lib/printf-parse.c: Likewise.
53518         * lib/vasnprintf.c: Likewise.
53519
53520 2007-01-29  Eric Blake  <ebb9@byu.net>
53521
53522         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53523         declaration.
53524
53525 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53526
53527         * lib/strptime.h (strptime): Use 'restrict' for args where
53528         POSIX requires this.
53529         * lib/strptime.c (strptime): Likewise.
53530         Change license notice from LGPL to GPL, since gnulib-tool will
53531         change this as needed.
53532         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53533         defined.
53534         Include "strptime.h" first, to check interface.
53535         Do not #undef _LIBC and _NL_CURRENT.
53536         Do not include <stdlib.h>; no longer needed.
53537         Include "time_r.h" and declare ptime_locale_status
53538         only if _LIBC is not defined.
53539         (__P): Remove unused macro.
53540         (match_string): Bring back glibc version, but use it only if _LIBC
53541         is defined.
53542         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53543         Remove unnecessary assertion and abort() call.
53544         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53545         * m4/strptime.m4: Fix serial number comment.
53546         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53547         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53548         (Depends-on): Add time_r.
53549
53550 2007-01-29  Bruno Haible  <bruno@clisp.org>
53551
53552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53553         strptime.
53554         * modules/strptime (Depends-on): Add stdbool.
53555         * lib/strptime.h: Include <time.h> always. Add comments.
53556
53557 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53558
53559         * modules/strptime: New file.
53560         * lib/strptime.h: New file.
53561         * lib/strptime.c: New file.
53562         * m4/strptime.m4: New file.
53563
53564 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53565
53566         * MODULES.html.sh: New module mpsort.
53567         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53568
53569         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53570         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53571         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53572         All uses changed.
53573         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53574         All uses changed.
53575         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53576         to _Restrict_.
53577         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53578         the parameter matches the prototype.
53579
53580 2007-01-28  Jim Meyering  <jim@meyering.net>
53581
53582         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53583         sys/time.h here, reverting that part of the previous patch:
53584         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53585
53586 2007-01-28  Bruno Haible  <bruno@clisp.org>
53587
53588         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53589         value of $(SYS_TIME_H).
53590         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53591         remove it conditionally, too. [added by Jim Meyering]
53592         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53593         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53594         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53595         GETTIMEOFDAY_REPLACEMENT to 1.
53596
53597 2007-01-28  Bruno Haible  <bruno@clisp.org>
53598
53599         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53600         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53602         Set UNISTD_H instead of UNISTD_H2.
53603         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53604
53605 2007-01-28  Bruno Haible  <bruno@clisp.org>
53606
53607         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53608         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53609
53610 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53611
53612         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53613         (func_create_testdir): Ensure C locale for `grep' and `tr'
53614         character ranges.
53615         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53616         ACLOCAL_AMFLAGS parsing state machine.
53617
53618 2007-01-27  Bruno Haible  <bruno@clisp.org>
53619
53620         * modules/unistr/base: Update.
53621
53622 2007-01-27  Bruno Haible  <bruno@clisp.org>
53623
53624         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53625         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53626         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53627         modules/unistr/u32-mbtouc.
53628         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53629         * lib/unistr.h: Update.
53630         * lib/linebreak.c: Update.
53631         * modules/unistr/u32-mbtouc: Renamed from
53632         modules/unistr/u32-mbtouc-safe.
53633         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53634         * lib/unistr.h: Update.
53635         * lib/unistr/u32-to-u8.c: Update.
53636         * lib/unistr/u32-to-u16.c: Update.
53637
53638 2007-01-27  Bruno Haible  <bruno@clisp.org>
53639
53640         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53641         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53642         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53643         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53644         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53645         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53646         modules/unistr/u16-mbtouc.
53647         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53648         * lib/unistr.h: Update.
53649         * lib/linebreak.c: Update.
53650         * modules/linebreak: Update.
53651         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53652         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53653         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53654         * modules/unistr/u16-mbtouc: Renamed from
53655         modules/unistr/u16-mbtouc-safe.
53656         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53657         * lib/unistr.h: Update.
53658         * lib/unistr/u16-to-u8.c: Update.
53659         * modules/unistr/u16-to-u8: Update.
53660         * lib/unistr/u16-to-u32.c: Update.
53661         * modules/unistr/u16-to-u32: Update.
53662
53663 2007-01-27  Bruno Haible  <bruno@clisp.org>
53664
53665         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53666         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53667         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53668         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53669         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53670         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53671         modules/unistr/u8-mbtouc.
53672         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53673         * lib/unistr.h: Update.
53674         * lib/striconveh.c: Update.
53675         * modules/striconveh: Update.
53676         * lib/linebreak.c: Update.
53677         * modules/linebreak: Update.
53678         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53679         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53680         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53681         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53682         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53683         * lib/unistr.h: Update.
53684         * lib/striconveh.c: Update.
53685         * modules/striconveh: Update.
53686         * lib/unistr/u8-to-u16.c: Update.
53687         * modules/unistr/u8-to-u16: Update.
53688         * lib/unistr/u8-to-u32.c: Update.
53689         * modules/unistr/u8-to-u32: Update.
53690
53691 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53692
53693         Sync from Libtool.
53694         * lib/argz.c: Do not include strings.h nor memory.h, include
53695         string.h unconditionally.  Patch by Simon Josefsson.
53696
53697 2007-01-27  Bruno Haible  <bruno@clisp.org>
53698
53699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53700         from gl_HEADER_STRING_H_BODY.
53701         (gl_HEADER_STRING_H_BODY): Require it.
53702         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53703         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53704         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53705         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53706         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53707         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53709         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53710         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53711         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53712         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53713         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53714         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53715         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53716         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53717
53718 2007-01-27  Bruno Haible  <bruno@clisp.org>
53719
53720         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53721         check_PROGRAMS into noinst_PROGRAMS.
53722         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53723         check_PROGRAMS in this case.
53724         (func_import): Set for_test to false.
53725         (func_create_testdir): Set for_test to true.
53726
53727 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53728             Bruno Haible  <bruno@clisp.org>
53729
53730         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53731         (Depends-on): Add string.
53732         (Includes): Use <string.h> instead of strcasestr.h.
53733         * modules/string (Makefile.am): Also substitute the value of
53734         REPLACE_STRCASESTR.
53735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53736         assume strcasestr is declared in <string.h> not <strings.h>. Also
53737         set REPLACE_STRCASESTR.
53738         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53739         REPLACE_STRCASESTR.
53740         * lib/strcasestr.h: Remove file.
53741         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53742         * lib/string_.h (strcasestr): New declaration.
53743
53744 2007-01-27  Bruno Haible  <bruno@clisp.org>
53745
53746         * lib/string_.h: Use 'extern'.
53747
53748 2007-01-27  Jim Meyering  <jim@meyering.net>
53749
53750         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53751         of set-but-not-used local, "q".
53752
53753         * lib/mempcpy.c: Include <config.h> before <string.h>.
53754         This fixes a compilation error on HP-UX, due to the system's
53755         "restrict"-using mempcpy prototype.
53756
53757 2007-01-26  Bruno Haible  <bruno@clisp.org>
53758
53759         Small optimization.
53760         * lib/javacomp.c: Include c-strstr.h.
53761          (is_envjavac_gcj): Use c_strstr instead of strstr.
53762         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53763
53764 2007-01-26  Bruno Haible  <bruno@clisp.org>
53765
53766         * MODULES.html.sh (Unicode string functions): Add the new modules.
53767
53768         * modules/uniconv/u32-strconv-to-locale: New file.
53769         * lib/uniconv/u32-strconv-to-locale.c: New file.
53770
53771         * modules/uniconv/u16-strconv-to-locale: New file.
53772         * lib/uniconv/u16-strconv-to-locale.c: New file.
53773
53774         * modules/uniconv/u8-strconv-to-locale: New file.
53775         * lib/uniconv/u8-strconv-to-locale.c: New file.
53776
53777         * modules/uniconv/u32-strconv-from-locale: New file.
53778         * lib/uniconv/u32-strconv-from-locale.c: New file.
53779
53780         * modules/uniconv/u16-strconv-from-locale: New file.
53781         * lib/uniconv/u16-strconv-from-locale.c: New file.
53782
53783         * modules/uniconv/u8-strconv-from-locale: New file.
53784         * lib/uniconv/u8-strconv-from-locale.c: New file.
53785
53786         * modules/uniconv/u32-strconv-to-enc: New file.
53787         * lib/uniconv/u32-strconv-to-enc.c: New file.
53788         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53789         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53790
53791         * modules/uniconv/u16-strconv-to-enc: New file.
53792         * lib/uniconv/u16-strconv-to-enc.c: New file.
53793         * lib/uniconv/u-strconv-to-enc.h: New file.
53794         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53795         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53796
53797         * modules/uniconv/u8-strconv-to-enc: New file.
53798         * lib/uniconv/u8-strconv-to-enc.c: New file.
53799         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53800         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53801
53802         * modules/uniconv/u32-strconv-from-enc: New file.
53803         * lib/uniconv/u32-strconv-from-enc.c: New file.
53804         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53805         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53806
53807         * modules/uniconv/u16-strconv-from-enc: New file.
53808         * lib/uniconv/u16-strconv-from-enc.c: New file.
53809         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53810         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53811
53812         * modules/uniconv/u8-strconv-from-enc: New file.
53813         * lib/uniconv/u8-strconv-from-enc.c: New file.
53814         * lib/uniconv/u-strconv-from-enc.h: New file.
53815         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53816         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53817
53818         * modules/uniconv/u32-conv-from-enc: New file.
53819         * lib/uniconv/u32-conv-from-enc.c: New file.
53820         * modules/uniconv/u32-conv-from-enc-tests: New file.
53821         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53822
53823         * modules/uniconv/u16-conv-from-enc: New file.
53824         * lib/uniconv/u16-conv-from-enc.c: New file.
53825         * lib/uniconv/u-conv-from-enc.h: New file.
53826         * modules/uniconv/u16-conv-from-enc-tests: New file.
53827         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53828
53829         * modules/uniconv/u8-conv-from-enc: New file.
53830         * lib/uniconv/u8-conv-from-enc.c: New file.
53831         * modules/uniconv/u8-conv-from-enc-tests: New file.
53832         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53833
53834         * modules/uniconv/base: New file.
53835         * lib/uniconv.h: New file.
53836
53837 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53838
53839         * doc/gnulib-tool.texi (Initial import): Update to match current
53840         behavior with strdup module.
53841         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53842         * lib/memmem.h: Remove; all uses removed.  This is now done
53843         by <string.h>.
53844         * lib/mempcpy.h: Likewise.
53845         * lib/memrchr.h: Likewise.
53846         * lib/stpcpy.h: Likewise.
53847         * lib/stpncpy.h: Likewise.
53848         * lib/strcase.h: Likewise.
53849         * lib/strchrnul.h: Likewise.
53850         * lib/strdup.h: Likewise.
53851         * lib/strndup.h: Likewise.
53852         * lib/strnlen.h: Likewise.
53853         * lib/strpbrk.h: Likewise.
53854         * lib/strsep.h: Likewise.
53855         * lib/strstr.h: Likewise.
53856         * lib/strtok_r.h: Likewise.
53857         * lib/string_.h: New file.
53858         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53859         Rely on <string.h> instead.
53860         * lib/canon-host.c: Likewise.
53861         * lib/chdir-long.c: Likewise.
53862         * lib/concatpath.c: Likewise.
53863         * lib/exclude.c: Likewise.
53864         * lib/fchdir.c: Likewise.
53865         * lib/getaddrinfo.c: Likewise.
53866         * lib/getcwd.c: Likewise.
53867         * lib/getsubopt.c: Likewise.
53868         * lib/glob.c: Likewise.
53869         * lib/hard-locale.c: Likewise.
53870         * lib/iconvme.c: Likewise.
53871         * lib/javacomp.c: Likewise.
53872         * lib/mempcpy.c: Likewise.
53873         * lib/memrchr.c: Likewise.
53874         * lib/regex_internal.h: Likewise.
53875         * lib/stpncpy.c: Likewise.
53876         * lib/strcasecmp.c: Likewise.
53877         * lib/strchrnul.c: Likewise.
53878         * lib/strdup.c: Likewise.
53879         * lib/striconv.c: Likewise.
53880         * lib/striconveh.c: Likewise.
53881         * lib/striconveha.c: Likewise.
53882         * lib/strncasecmp.c: Likewise.
53883         * lib/strndup.c: Likewise.
53884         * lib/strnlen.c: Likewise.
53885         * lib/strsep.c: Likewise.
53886         * lib/strstr.c: Likewise.
53887         * lib/strtok_r.c: Likewise.
53888         * lib/userspec.c: Likewise.
53889         * lib/w32spawn.h: Likewise.
53890         * lib/xstrndup.c: Likewise.
53891         * lib/mountlist.c (strstr): Remove decl.
53892         * m4/string_h.m4: New file.
53893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53894         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53895         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53896         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53897         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53898         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53899         Set REPLACE_STRCASECMP if necessary.
53900         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53901         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53902         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53903         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53904         HAVE_DECL_STRDUP if necessary.
53905         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53906         since gl_FUNC_STRNDUP does that now.
53907         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53908         Check for decl here...
53909         (gl_PREREQ_STRNLEN): ... not here.
53910         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53911         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53912         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53913         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53914         necessary.
53915         * modules/string: New file.
53916         * modules/memmem (Files): Remove special-purpose include file.
53917         (Depends-on): Add string.
53918         (Include): Include <string.h>, not the removed file.
53919         * modules/mempcpy: Likewise.
53920         * modules/memrchr: Likewise.
53921         * modules/stpcpy: Likewise.
53922         * modules/stpncpy: Likewise.
53923         * modules/strcase: Likewise.
53924         * modules/strchrnul: Likewise.
53925         * modules/strdup: Likewise.
53926         * modules/strndup: Likewise.
53927         * modules/strnlen: Likewise.
53928         * modules/strpbrk: Likewise.
53929         * modules/strsep: Likewise.
53930         * modules/strstr: Likewise.
53931         * modules/strtok_r: Likewise.
53932         * tests/test-dirname.c: Don't include "strdup.h", since
53933         <string.h> now suffices.
53934         * tests/test-memmem.c: Don't include "memmem.h", since
53935         <string.h> now suffices.
53936
53937 2007-01-25  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53940         *resultp is 0.
53941
53942         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53943         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53944         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53945         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53946
53947         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53948         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53949         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53950         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53951         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53952         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53953
53954 2007-01-24  Bruno Haible  <bruno@clisp.org>
53955
53956         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
53957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
53958         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
53959         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
53960         gl_FUNC_FTS_CORE.
53961         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
53962         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
53963         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53964         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
53965         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
53966         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
53967         gl_FUNC_FCHOWNAT.
53968         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
53969         gl_FUNC_STRFTIME.
53970         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
53971         Reported by Ralf Wildenhues.
53972
53973 2007-01-24  Bruno Haible  <bruno@clisp.org>
53974
53975         Drop AC_REQUIRE calls that are redundant with the module dependencies.
53976         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
53977         gl_GETADDRINFO.
53978         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
53979         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
53980         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
53981
53982 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
53983
53984         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
53985         Don't use 'exit'; just return from 'main'.
53986         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
53987
53988         * lib/fnmatch_.h: Readjust white space and comments to match
53989         glibc, to avoid spurious diffs.
53990
53991 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53992
53993         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
53994         2004-12-01 change by Jakub Jelinek, since this code won't compile
53995         if !LIBC.  Problem reported by Bob Proulx.
53996
53997 2007-01-23  Bruno Haible  <bruno@clisp.org>
53998
53999         * lib/striconveh.c: Include c-strcaseeq.h.
54000         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54001         * modules/striconveh (Depends-on): Add c-strcaseeq.
54002
54003 2007-01-23  Bruno Haible  <bruno@clisp.org>
54004
54005         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54006
54007         * modules/c-strcaseeq: New file.
54008         * lib/c-strcaseeq.h: New file.
54009
54010         * modules/streq: New file.
54011         * lib/streq.h: New file.
54012
54013 2007-01-23  Bruno Haible  <bruno@clisp.org>
54014
54015         * modules/striconveha-tests: New file.
54016         * tests/test-striconveha.c: New file.
54017
54018         * lib/striconveha.h: Include <stdbool.h>.
54019         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54020         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54021         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54022         (mem_iconveha): New function.
54023         (str_iconveha_notranslit): Renamed from str_iconveha.
54024         (str_iconveha): New function.
54025         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54026         c-strcase.
54027
54028 2007-01-23  Bruno Haible  <bruno@clisp.org>
54029
54030         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54031         encodings without forgiving before trying any encoding with handler.
54032         (str_iconveha): Try all encodings without forgiving before trying any
54033         encoding with handler.
54034
54035 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54036
54037         Import the following changes from libc.
54038
54039         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54040
54041         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54042
54043         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54044
54045         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54046         normal_bracket label.
54047
54048         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54049
54050         [BZ #361]
54051         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54052         to normal_bracket after fetching the next character.
54053
54054 2007-01-22  Bruno Haible  <bruno@clisp.org>
54055
54056         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54057         argument.
54058         * lib/striconveh.c (iconv_carefully_1): New function.
54059         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54060         argument.
54061         (str_cd_iconveh): Update.
54062         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54063         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54064         * tests/test-striconveh.c (MAGIC): New macro.
54065         (new_offsets): New function.
54066         (main): Test call with and without offsets.
54067
54068 2007-01-22  Bruno Haible  <bruno@clisp.org>
54069
54070         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54071         * modules/sys_select (Makefile.am): Likewise.
54072         * modules/sys_socket (Makefile.am): Likewise.
54073         * modules/sys_time (Makefile.am): Likewise.
54074
54075 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54076
54077         * modules/gettimeofday (License): Change from GPL to LGPL, since
54078         gettimeofday is a library function.
54079
54080 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54081
54082         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54083
54084 2007-01-21  Bruno Haible  <bruno@clisp.org>
54085
54086         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54087
54088 2007-01-21  Bruno Haible  <bruno@clisp.org>
54089
54090         * modules/striconveha: New file.
54091         * lib/striconveha.h: New file.
54092         * lib/striconveha.c: New file.
54093         * MODULES.html.sh (Internationalization functions): Add striconveha.
54094         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54095         string.
54096         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54097
54098 2007-01-21  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54101         * lib/striconveh.c (str_iconveh): Likewise.
54102
54103 2007-01-21  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/striconveh.h (mem_iconveh): New declaration.
54106         * lib/striconveh.c (mem_iconveh): New function.
54107         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54108
54109 2007-01-21  Bruno Haible  <bruno@clisp.org>
54110
54111         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54112
54113         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54114         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54115         original result buffer.
54116         (str_cd_iconveh): Update.
54117         * tests/test-striconveh.c (main): Update.
54118
54119         * lib/striconv.h (mem_cd_iconv): Change specification.
54120         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54121         result buffer.
54122         (str_cd_iconv): Update.
54123         * tests/test-striconv.c (main): Update.
54124
54125 2007-01-21  Bruno Haible  <bruno@clisp.org>
54126
54127         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54128
54129 2007-01-20  Jim Meyering  <jim@meyering.net>
54130
54131         * lib/userspec.c (parse_with_separator): If a user or group string
54132         starts with "+", skip the corresponding name-to-ID look-up, since
54133         such a look-up must fail: user and group names may not include "+".
54134
54135 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54136
54137         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54138         since we now assume the sys_time module.
54139         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54140         check for sys/time.h; no longer needed.
54141         * modules/poll (Depends-on): Depend on sys_time.
54142
54143 2007-01-18  Bruno Haible  <bruno@clisp.org>
54144
54145         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54146         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54147
54148         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54149         gettimeofday.
54150
54151         * tests/test-gettimeofday.c: Include <time.h>.
54152         (dummy): Remove variable.
54153
54154         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54155         gl_HEADER_SYS_TIME_H.
54156         (gl_HEADER_SYS_TIME_H): New macro.
54157
54158         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54159         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54160         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54161         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54162         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54163         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54164         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54165         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54166         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54167         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54168         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54169
54170         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54171         last change; it caused a compilation error when cross-compiling to
54172         Cygwin.
54173
54174 2007-01-18  Jim Meyering  <jim@meyering.net>
54175
54176         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54177         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54178         than the race-prone "test -d sys || mkdir sys".
54179         (configure.ac): Use AC_PROG_MKDIR_P.
54180         * modules/sys_select: Likewise.
54181         * modules/sys_socket: Likewise.
54182         * modules/sys_time: Likewise.
54183
54184 2007-01-18  Eric Blake  <ebb9@byu.net>
54185
54186         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54187         replace gettimeofday.
54188         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54189         name, to avoid infinite recursion.
54190
54191 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54192
54193         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54194         module sys_time.
54195         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54196         assume timespec.h defines struct timeval.
54197         * lib/settime.c: Likewise.
54198         * lib/utimens.c: Likewise.
54199         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54200         since we now assume the gettimeofday module.
54201         * lib/tempname.c (__gen_tempname): Likewise.
54202         * lib/gettimeofday.h: Remove.
54203         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54204         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54205         Include <time.h>, for 'time()'.
54206         (localtime_buffer_addr): Also use this workaround if
54207         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54208         to simplify the uses.  All uses changed.
54209         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54210         that #undef is inside {}, and 'const' follows type name consistently.
54211         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54212         (gettimeofday): Do not use the maximum possible value for
54213         tv->tv_usec, since that might break usages other than ls.c.
54214         Instead, we'll leave ls.c alone.  This undoes today's patch
54215         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54216         we've never observed the problem but might as well keep the
54217         canary.
54218         * lib/nanosleep.c: Include timespec.h first, for interface check.
54219         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54220         now assume the sys_time module.
54221         * lib/tempname.c: Likewise.
54222         * lib/timespec.h: Likewise.
54223         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54224         needed.
54225         * lib/strftime.c: Likewise.
54226         * lib/timespec.h: Likewise.
54227         * lib/posixtm.c: Include posixtm.h first, for interface check.
54228         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54229         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54230         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54231         * lib/sys_time_.h: New file.
54232         * lib/timespec.h (struct timespec): Use long int, not long.
54233         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54234         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54235         Remove obsolescent call to AC_HEADER_TIME.
54236         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54238         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54239         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54240         Likewise.
54241         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54242         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54244         into the sys_time module.  Check for gettimeofday just once.
54245         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54246         for gettimeofday signature to just check the signature.  Merely
54247         compile it, since linking doesn't test signature.  Improve test for
54248         whether gettimeofday.o is actually needed.
54249         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54250         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54251         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54252         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54253         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54254         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54255         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54256         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54257         than worrying about sys/time.h.
54258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54259         Don't bother worrying about TIME_WITH_SYS_TIME.
54260         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54261         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54262         * m4/sys_time_h.m4: New file.
54263         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54264         Don't include sys/time.h.  Return from main rather than exiting.
54265         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54266         all uses changed.
54267         * modules/gethrxtime (Depends-on): Add sys_time.
54268         * modules/gettime (Depends-on): Likewise.
54269         * modules/gettimeofday (Depends-on): Likewise.
54270         * modules/nanosleep (Depends-on): Likewise.
54271         * modules/settime (Depends-on): Likewise.
54272         * modules/tempname (Depends-on): Likewise.
54273         * modules/utimens (Depends-on): Likewise.
54274         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54275         (Include:) Change back to <sys/time.h>.
54276         (Maintainer:) Add self.
54277         * modules/sys_time: New file.
54278         * modules/tempname (Depends-on): Add gettimeofday.
54279         * tests/test-gettimeofday.c: Include <sys/time.h>
54280         rather than gettimeofday.h.
54281
54282 2007-01-17  Bruno Haible  <bruno@clisp.org>
54283
54284         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54285         the license default to GPL.
54286         (func_create_testdir): Don't complain if a module is LGPL and its
54287         tests module depends on GPLed modules.
54288
54289 2007-01-17  Bruno Haible  <bruno@clisp.org>
54290
54291         * lib/gettimeofday.c (gettimeofday): Add code for the case
54292         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54293         maximum possible value for tv->tv_usec, rather than the minimum one.
54294
54295 2005-10-08  Martin Lambers  <marlam@marlam.de>
54296 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54297 2007-01-16  Bruno Haible  <bruno@clisp.org>
54298
54299         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54300         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54301         gl_FUNC_GETTIMEOFDAY.
54302         (Include): Add gettimeofday.h.
54303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54304         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54305         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54306         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54307         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54308         * lib/gettimeofday.h: New file.
54309         * lib/gettimeofday.c: Include <sys/timeb.h>.
54310         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54311         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54312         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54313         fall back on time().
54314
54315         * tests/test-gettimeofday.c: New file.
54316         * modules/gettimeofday-tests: New file.
54317
54318 2007-01-16  Eric Blake  <ebb9@byu.net>
54319
54320         * modules/fnmatch (Depends-on): Depend on wchar.
54321         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54322         * m4/fnmatch.m4: Likewise.
54323         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54324         * m4/mbchar.m4: Likewise.
54325         * modules/mbswidth (Depends-on): Depend on wchar.
54326         * lib/mbswidth.c: Assume <wchar.h>.
54327         * m4/mbswidth.m4: Likewise.
54328         * modules/quotearg (Depends-on): Depend on wchar.
54329         * lib/quotearg.c: Assume <wchar.h>.
54330         * m4/quotearg.m4: Likewise.
54331         * modules/regex (Depends-on): Depend on wchar.
54332         * lib/regex_internal.h: Assume <wchar.h>.
54333         * m4/regex.m4: Likewise.
54334         * modules/stdint (Depends-on): Depend on wchar.
54335         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54336         * m4/stdint.m4: Likewise.
54337         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54338         * modules/strftime (Depends-on): Depend on wchar.
54339         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54340         * modules/strtol (Depends-on): Depend on wchar.
54341         * lib/strtol.c: Assume <wchar.h>.
54342         * modules/wcwidth (Depends-on): Depend on wchar.
54343         * lib/wcwidth.h: Assume <wchar.h>.
54344         * m4/wcwidth.m4: Likewise.
54345
54346 2007-01-16  Bruno Haible  <bruno@clisp.org>
54347
54348         * modules/csharpexec-script: New, created from...
54349         * modules/csharpexec: ... this.
54350
54351 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54352
54353         * modules/javaexec-script: New, created from...
54354         * modules/javaexec: ... this.
54355
54356 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54357
54358         * modules/poll (Dependencies): Add sys_select.
54359
54360 2007-01-15  Jim Meyering  <jim@meyering.net>
54361
54362         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54363         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54364         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54365         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54366
54367 2007-01-15  Bruno Haible  <bruno@clisp.org>
54368
54369         * modules/striconveh: New file.
54370         * lib/striconveh.h: New file.
54371         * lib/striconveh.c: New file.
54372         * MODULES.html.sh (Internationalization functions): Add striconveh.
54373
54374         * modules/striconveh-tests: New file.
54375         * tests/test-striconveh.c: New file.
54376
54377 2007-01-15  Bruno Haible  <bruno@clisp.org>
54378
54379         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54380         not from GNU libiconv or GNU libc.
54381
54382 2007-01-15  Bruno Haible  <bruno@clisp.org>
54383
54384         * doc/gnulib-intro.texi (Copyright): Explain the different license
54385         terms for module descriptions, autoconf macros, tests, documentation.
54386
54387 2007-01-14  Bruno Haible  <bruno@clisp.org>
54388
54389         * modules/striconv-tests: New file.
54390         * tests/test-striconv.c: New file.
54391
54392 2007-01-14  Bruno Haible  <bruno@clisp.org>
54393
54394         * modules/iconv-tests: New file.
54395         * tests/test-iconv.c: New file.
54396
54397 2007-01-14  Bruno Haible  <bruno@clisp.org>
54398
54399         * gnulib-tool (func_get_license): For test modules, use the license of
54400         the main module.
54401
54402 2007-01-14  Bruno Haible  <bruno@clisp.org>
54403
54404         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54405         if iconv is found to exist.
54406
54407 2007-01-14  Bruno Haible  <bruno@clisp.org>
54408
54409         * modules/c-ctype-tests: New file.
54410         * tests/test-c-ctype.c: New file.
54411
54412 2007-01-14  Bruno Haible  <bruno@clisp.org>
54413
54414         * modules/binary-io-tests: New file.
54415         * tests/test-binary-io.sh: New file.
54416         * tests/test-binary-io.c: New file.
54417
54418 2007-01-14  Bruno Haible  <bruno@clisp.org>
54419
54420         * modules/array-oset-tests: New file.
54421         * tests/test-array_oset.c: New file.
54422
54423 2007-01-14  Bruno Haible  <bruno@clisp.org>
54424
54425         * modules/array-list-tests: New file.
54426         * tests/test-array_list.c: New file.
54427
54428 2007-01-14  Bruno Haible  <bruno@clisp.org>
54429
54430         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54431         and make.
54432         Reported by Simon Josefsson in
54433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54434
54435 2007-01-14  Bruno Haible  <bruno@clisp.org>
54436
54437         * modules/allocsa-tests: New file.
54438         * tests/test-allocsa.c: New file.
54439
54440 2007-01-14  Bruno Haible  <bruno@clisp.org>
54441
54442         * modules/fchdir (Depends-on): Add absolute-header.
54443         * modules/unistd (Depends-on): Likewise.
54444
54445 2006-12-30  Bruno Haible  <bruno@clisp.org>
54446
54447         * modules/fchdir: New file.
54448         * modules/unistd (Files): Add lib/unistd_.h.
54449         (Makefile.am): Generate unistd.h from unistd_.h.
54450         * lib/fchdir.c: New file.
54451         * lib/dirent_.h: New file.
54452         * lib/unistd_.h: New file.
54453         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54454         * m4/fchdir.m4: New file.
54455         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54456         (gl_HEADER_UNISTD): Invoke it.
54457         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54458         function.
54459         * lib/backupfile.c (opendir, closedir): Undefine.
54460         * lib/chown.c (open, close): Undefine.
54461         * lib/clean-temp.c (open, close): Undefine.
54462         * lib/copy-file.c (open, close): Undefine.
54463         * lib/execute.c (open, close): Undefine.
54464         * lib/fsusage.c (open, close): Undefine.
54465         * lib/gc-gnulib.c (open, close): Undefine.
54466         * lib/getcwd.c (opendir, closedir): Undefine.
54467         * lib/glob.c (opendir, closedir): Undefine.
54468         * lib/javacomp.c (open, close): Undefine.
54469         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54470         * lib/openat-proc.c (open, close): Undefine.
54471         * lib/pagealign_alloc.c (open, close): Undefine.
54472         * lib/pipe.c (open, close): Undefine.
54473         * lib/progreloc.c (open, close): Undefine.
54474         * lib/savedir.c (opendir, closedir): Undefine.
54475         * lib/utime.c (open, close): Undefine.
54476         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54477
54478 2007-01-10  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54481
54482 2007-01-12  Eric Blake  <ebb9@byu.net>
54483
54484         Provide a robust <wchar.h>.  Further simplifications are now
54485         possible in other modules, but not included here.
54486         * modules/wchar: New module.
54487         * m4/wchar.m4: New file.
54488         * lib/wchar_.h: Likewise.
54489         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54490         of the new module.
54491         * MODULES.html.sh (Extended multibyte and wide character utilities):
54492         New section.
54493
54494 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54495
54496         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54497         to a reasonable default for memory allocation.
54498         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54499         file system that reports garbage st_size values for symlinks.
54500         Problem reported by Liyang Hu.
54501
54502 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54503
54504         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54505         Emacs .#* auto-save files).
54506
54507 2007-01-11  Bruno Haible  <bruno@clisp.org>
54508
54509         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54510         directory.
54511
54512 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54513
54514         Use @...@ consistently in lib/wctype_.h.
54515         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54516         on it being set to 1 or 0.
54517         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54518         go back to AC_SUBSTing it.
54519         * modules/wctype (Makefile.am): Undo previous change.
54520
54521 2007-01-10  Eric Blake  <ebb9@byu.net>
54522
54523         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54524         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54525         * modules/wctype (Makefile.am): Likewise.
54526         Reported by Chris McGuire.
54527
54528 2007-01-10  Jim Meyering  <jim@meyering.net>
54529
54530         fts.c: a small readability/maintainability improvement
54531         * lib/fts.c (fts_read): Make this code slightly more readable and
54532         maintainable by hoisting the "sp->fts_cur = p" assignments to
54533         immediately follow the statements that set P.  Derived from
54534         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54535
54536 2007-01-10  Eric Blake  <ebb9@byu.net>
54537
54538         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54539         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54541         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54542         Reported by Chris McGuire.
54543
54544 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54545
54546         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54547         in sed script.
54548
54549 2007-01-09  Bruno Haible  <bruno@clisp.org>
54550
54551         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54552         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54553         variables.
54554         (func_module): Use them.
54555
54556 2007-01-09  Bruno Haible  <bruno@clisp.org>
54557
54558         * modules/unistr/base: New file.
54559         * lib/unistr.h: New file.
54560
54561         * modules/unistr/u8-to-u16: New file.
54562         * lib/unistr/u8-to-u16.c: New file.
54563
54564         * modules/unistr/u8-to-u32: New file.
54565         * lib/unistr/u8-to-u32.c: New file.
54566
54567         * modules/unistr/u16-to-u8: New file.
54568         * lib/unistr/u16-to-u8.c: New file.
54569
54570         * modules/unistr/u16-to-u32: New file.
54571         * lib/unistr/u16-to-u32.c: New file.
54572
54573         * modules/unistr/u32-to-u8: New file.
54574         * lib/unistr/u32-to-u8.c: New file.
54575
54576         * modules/unistr/u32-to-u16: New file.
54577         * lib/unistr/u32-to-u16.c: New file.
54578
54579         * modules/unistr/u8-check: New file.
54580         * modules/unistr/u16-check: New file.
54581         * modules/unistr/u32-check: New file.
54582         * lib/unistr/u8-check.c: New file.
54583         * lib/unistr/u16-check.c: New file.
54584         * lib/unistr/u32-check.c: New file.
54585
54586         * modules/unistr/u8-chr: New file.
54587         * modules/unistr/u16-chr: New file.
54588         * modules/unistr/u32-chr: New file.
54589         * lib/unistr/u8-chr.c: New file.
54590         * lib/unistr/u16-chr.c: New file.
54591         * lib/unistr/u32-chr.c: New file.
54592
54593         * modules/unistr/u8-cmp: New file.
54594         * modules/unistr/u16-cmp: New file.
54595         * modules/unistr/u32-cmp: New file.
54596         * lib/unistr/u8-cmp.c: New file.
54597         * lib/unistr/u16-cmp.c: New file.
54598         * lib/unistr/u32-cmp.c: New file.
54599
54600         * modules/unistr/u8-cpy: New file.
54601         * modules/unistr/u16-cpy: New file.
54602         * modules/unistr/u32-cpy: New file.
54603         * lib/unistr/u8-cpy.c: New file.
54604         * lib/unistr/u16-cpy.c: New file.
54605         * lib/unistr/u32-cpy.c: New file.
54606         * lib/unistr/u-cpy.h: New file.
54607
54608         * modules/unistr/u8-cpy-alloc: New file.
54609         * modules/unistr/u16-cpy-alloc: New file.
54610         * modules/unistr/u32-cpy-alloc: New file.
54611         * lib/unistr/u8-cpy-alloc.c: New file.
54612         * lib/unistr/u16-cpy-alloc.c: New file.
54613         * lib/unistr/u32-cpy-alloc.c: New file.
54614         * lib/unistr/u-cpy-alloc.h: New file.
54615
54616         * modules/unistr/u8-endswith: New file.
54617         * modules/unistr/u16-endswith: New file.
54618         * modules/unistr/u32-endswith: New file.
54619         * lib/unistr/u8-endswith.c: New file.
54620         * lib/unistr/u16-endswith.c: New file.
54621         * lib/unistr/u32-endswith.c: New file.
54622         * lib/unistr/u-endswith.h: New file.
54623
54624         * modules/unistr/u8-mblen: New file.
54625         * modules/unistr/u16-mblen: New file.
54626         * modules/unistr/u32-mblen: New file.
54627         * lib/unistr/u8-mblen.c: New file.
54628         * lib/unistr/u16-mblen.c: New file.
54629         * lib/unistr/u32-mblen.c: New file.
54630
54631         * modules/unistr/u8-mbtouc: New file.
54632         * modules/unistr/u16-mbtouc: New file.
54633         * modules/unistr/u32-mbtouc: New file.
54634         * lib/unistr/u8-mbtouc.c: New file.
54635         * lib/unistr/u16-mbtouc.c: New file.
54636         * lib/unistr/u32-mbtouc.c: New file.
54637
54638         * modules/unistr/u8-mbtouc-safe: New file.
54639         * modules/unistr/u16-mbtouc-safe: New file.
54640         * modules/unistr/u32-mbtouc-safe: New file.
54641         * lib/unistr/u8-mbtouc-safe.c: New file.
54642         * lib/unistr/u16-mbtouc-safe.c: New file.
54643         * lib/unistr/u32-mbtouc-safe.c: New file.
54644
54645         * modules/unistr/u8-move: New file.
54646         * modules/unistr/u16-move: New file.
54647         * modules/unistr/u32-move: New file.
54648         * lib/unistr/u8-move.c: New file.
54649         * lib/unistr/u16-move.c: New file.
54650         * lib/unistr/u32-move.c: New file.
54651         * lib/unistr/u-move.h: New file.
54652
54653         * modules/unistr/u8-next: New file.
54654         * modules/unistr/u16-next: New file.
54655         * modules/unistr/u32-next: New file.
54656         * lib/unistr/u8-next.c: New file.
54657         * lib/unistr/u16-next.c: New file.
54658         * lib/unistr/u32-next.c: New file.
54659
54660         * modules/unistr/u8-prev: New file.
54661         * modules/unistr/u16-prev: New file.
54662         * modules/unistr/u32-prev: New file.
54663         * lib/unistr/u8-prev.c: New file.
54664         * lib/unistr/u16-prev.c: New file.
54665         * lib/unistr/u32-prev.c: New file.
54666
54667         * modules/unistr/u8-set: New file.
54668         * modules/unistr/u16-set: New file.
54669         * modules/unistr/u32-set: New file.
54670         * lib/unistr/u8-set.c: New file.
54671         * lib/unistr/u16-set.c: New file.
54672         * lib/unistr/u32-set.c: New file.
54673         * lib/unistr/u-set.h: New file.
54674
54675         * modules/unistr/u8-startswith: New file.
54676         * modules/unistr/u16-startswith: New file.
54677         * modules/unistr/u32-startswith: New file.
54678         * lib/unistr/u8-startswith.c: New file.
54679         * lib/unistr/u16-startswith.c: New file.
54680         * lib/unistr/u32-startswith.c: New file.
54681         * lib/unistr/u-startswith.h: New file.
54682
54683         * modules/unistr/u8-stpcpy: New file.
54684         * modules/unistr/u16-stpcpy: New file.
54685         * modules/unistr/u32-stpcpy: New file.
54686         * lib/unistr/u8-stpcpy.c: New file.
54687         * lib/unistr/u16-stpcpy.c: New file.
54688         * lib/unistr/u32-stpcpy.c: New file.
54689         * lib/unistr/u-stpcpy.h: New file.
54690
54691         * modules/unistr/u8-stpncpy: New file.
54692         * modules/unistr/u16-stpncpy: New file.
54693         * modules/unistr/u32-stpncpy: New file.
54694         * lib/unistr/u8-stpncpy.c: New file.
54695         * lib/unistr/u16-stpncpy.c: New file.
54696         * lib/unistr/u32-stpncpy.c: New file.
54697         * lib/unistr/u-stpncpy.h: New file.
54698
54699         * modules/unistr/u8-strcat: New file.
54700         * modules/unistr/u16-strcat: New file.
54701         * modules/unistr/u32-strcat: New file.
54702         * lib/unistr/u8-strcat.c: New file.
54703         * lib/unistr/u16-strcat.c: New file.
54704         * lib/unistr/u32-strcat.c: New file.
54705         * lib/unistr/u-strcat.h: New file.
54706
54707         * modules/unistr/u8-strchr: New file.
54708         * modules/unistr/u16-strchr: New file.
54709         * modules/unistr/u32-strchr: New file.
54710         * lib/unistr/u8-strchr.c: New file.
54711         * lib/unistr/u16-strchr.c: New file.
54712         * lib/unistr/u32-strchr.c: New file.
54713
54714         * modules/unistr/u8-strcmp: New file.
54715         * modules/unistr/u16-strcmp: New file.
54716         * modules/unistr/u32-strcmp: New file.
54717         * lib/unistr/u8-strcmp.c: New file.
54718         * lib/unistr/u16-strcmp.c: New file.
54719         * lib/unistr/u32-strcmp.c: New file.
54720
54721         * modules/unistr/u8-strcpy: New file.
54722         * modules/unistr/u16-strcpy: New file.
54723         * modules/unistr/u32-strcpy: New file.
54724         * lib/unistr/u8-strcpy.c: New file.
54725         * lib/unistr/u16-strcpy.c: New file.
54726         * lib/unistr/u32-strcpy.c: New file.
54727         * lib/unistr/u-strcpy.h: New file.
54728
54729         * modules/unistr/u8-strcspn: New file.
54730         * modules/unistr/u16-strcspn: New file.
54731         * modules/unistr/u32-strcspn: New file.
54732         * lib/unistr/u8-strcspn.c: New file.
54733         * lib/unistr/u16-strcspn.c: New file.
54734         * lib/unistr/u32-strcspn.c: New file.
54735         * lib/unistr/u-strcspn.h: New file.
54736
54737         * modules/unistr/u8-strdup: New file.
54738         * modules/unistr/u16-strdup: New file.
54739         * modules/unistr/u32-strdup: New file.
54740         * lib/unistr/u8-strdup.c: New file.
54741         * lib/unistr/u16-strdup.c: New file.
54742         * lib/unistr/u32-strdup.c: New file.
54743         * lib/unistr/u-strdup.h: New file.
54744
54745         * modules/unistr/u8-strlen: New file.
54746         * modules/unistr/u16-strlen: New file.
54747         * modules/unistr/u32-strlen: New file.
54748         * lib/unistr/u8-strlen.c: New file.
54749         * lib/unistr/u16-strlen.c: New file.
54750         * lib/unistr/u32-strlen.c: New file.
54751         * lib/unistr/u-strlen.h: New file.
54752
54753         * modules/unistr/u8-strmblen: New file.
54754         * modules/unistr/u16-strmblen: New file.
54755         * modules/unistr/u32-strmblen: New file.
54756         * lib/unistr/u8-strmblen.c: New file.
54757         * lib/unistr/u16-strmblen.c: New file.
54758         * lib/unistr/u32-strmblen.c: New file.
54759
54760         * modules/unistr/u8-strmbtouc: New file.
54761         * modules/unistr/u16-strmbtouc: New file.
54762         * modules/unistr/u32-strmbtouc: New file.
54763         * lib/unistr/u8-strmbtouc.c: New file.
54764         * lib/unistr/u16-strmbtouc.c: New file.
54765         * lib/unistr/u32-strmbtouc.c: New file.
54766
54767         * modules/unistr/u8-strncat: New file.
54768         * modules/unistr/u16-strncat: New file.
54769         * modules/unistr/u32-strncat: New file.
54770         * lib/unistr/u8-strncat.c: New file.
54771         * lib/unistr/u16-strncat.c: New file.
54772         * lib/unistr/u32-strncat.c: New file.
54773         * lib/unistr/u-strncat.h: New file.
54774
54775         * modules/unistr/u8-strncmp: New file.
54776         * modules/unistr/u16-strncmp: New file.
54777         * modules/unistr/u32-strncmp: New file.
54778         * lib/unistr/u8-strncmp.c: New file.
54779         * lib/unistr/u16-strncmp.c: New file.
54780         * lib/unistr/u32-strncmp.c: New file.
54781
54782         * modules/unistr/u8-strncpy: New file.
54783         * modules/unistr/u16-strncpy: New file.
54784         * modules/unistr/u32-strncpy: New file.
54785         * lib/unistr/u8-strncpy.c: New file.
54786         * lib/unistr/u16-strncpy.c: New file.
54787         * lib/unistr/u32-strncpy.c: New file.
54788         * lib/unistr/u-strncpy.h: New file.
54789
54790         * modules/unistr/u8-strnlen: New file.
54791         * modules/unistr/u16-strnlen: New file.
54792         * modules/unistr/u32-strnlen: New file.
54793         * lib/unistr/u8-strnlen.c: New file.
54794         * lib/unistr/u16-strnlen.c: New file.
54795         * lib/unistr/u32-strnlen.c: New file.
54796         * lib/unistr/u-strnlen.h: New file.
54797
54798         * modules/unistr/u8-strpbrk: New file.
54799         * modules/unistr/u16-strpbrk: New file.
54800         * modules/unistr/u32-strpbrk: New file.
54801         * lib/unistr/u8-strpbrk.c: New file.
54802         * lib/unistr/u16-strpbrk.c: New file.
54803         * lib/unistr/u32-strpbrk.c: New file.
54804         * lib/unistr/u-strpbrk.h: New file.
54805
54806         * modules/unistr/u8-strrchr: New file.
54807         * modules/unistr/u16-strrchr: New file.
54808         * modules/unistr/u32-strrchr: New file.
54809         * lib/unistr/u8-strrchr.c: New file.
54810         * lib/unistr/u16-strrchr.c: New file.
54811         * lib/unistr/u32-strrchr.c: New file.
54812
54813         * modules/unistr/u8-strspn: New file.
54814         * modules/unistr/u16-strspn: New file.
54815         * modules/unistr/u32-strspn: New file.
54816         * lib/unistr/u8-strspn.c: New file.
54817         * lib/unistr/u16-strspn.c: New file.
54818         * lib/unistr/u32-strspn.c: New file.
54819         * lib/unistr/u-strspn.h: New file.
54820
54821         * modules/unistr/u8-strstr: New file.
54822         * modules/unistr/u16-strstr: New file.
54823         * modules/unistr/u32-strstr: New file.
54824         * lib/unistr/u8-strstr.c: New file.
54825         * lib/unistr/u16-strstr.c: New file.
54826         * lib/unistr/u32-strstr.c: New file.
54827         * lib/unistr/u-strstr.h: New file.
54828
54829         * modules/unistr/u8-strtok: New file.
54830         * modules/unistr/u16-strtok: New file.
54831         * modules/unistr/u32-strtok: New file.
54832         * lib/unistr/u8-strtok.c: New file.
54833         * lib/unistr/u16-strtok.c: New file.
54834         * lib/unistr/u32-strtok.c: New file.
54835         * lib/unistr/u-strtok.h: New file.
54836
54837         * modules/unistr/u8-uctomb: New file.
54838         * modules/unistr/u16-uctomb: New file.
54839         * modules/unistr/u32-uctomb: New file.
54840         * lib/unistr/u8-uctomb.c: New file.
54841         * lib/unistr/u16-uctomb.c: New file.
54842         * lib/unistr/u32-uctomb.c: New file.
54843
54844         * MODULES.html.sh (Unicode string functions): Add the new modules.
54845
54846 2007-01-08  Bruno Haible  <bruno@clisp.org>
54847
54848         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54849         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54850         subdirectories.
54851
54852 2007-01-08  Karl Berry  <karl@gnu.org>
54853
54854         * doc/error.texi: mention that main() fns must set program_name
54855         when progname is used.
54856
54857 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54858
54859         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54860         WCTYPE_H is empty, for the benefit of builds from non-distclean
54861         directories.  Problem reported by Eric Blake in
54862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54863
54864 2007-01-08  Bruno Haible  <bruno@clisp.org>
54865
54866         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54867         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54868         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54869         PROVIDE_CANONICALIZE_FILENAME_MODE.
54870         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54871
54872 2007-01-08  Bruno Haible  <bruno@clisp.org>
54873
54874         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54875         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54876         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54877         * lib/fts.c: Likewise.
54878         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54879
54880 2006-12-25  Bruno Haible  <bruno@clisp.org>
54881
54882         * modules/utf8-ucs4-safe: New file.
54883         * lib/utf8-ucs4-safe.h: New file.
54884         * lib/unistr/utf8-ucs4-safe.c: New file.
54885
54886         * modules/utf16-ucs4-safe: New file.
54887         * lib/utf16-ucs4-safe.h: New file.
54888         * lib/unistr/utf16-ucs4-safe.c: New file.
54889
54890         * MODULES.html.sh (Unicode string functions): Add the new modules.
54891
54892 2007-01-08  Bruno Haible  <bruno@clisp.org>
54893
54894         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54895         (Depends-on): Add unitypes.
54896         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54897         (u8_mbtouc_aux): Move out to separate file.
54898         (u8_mbtouc): Use ucs4_t, uint8_t types.
54899         * lib/unistr/utf8-ucs4.c: New file.
54900
54901         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54902         (Depends-on): Add unitypes.
54903         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54904         (u16_mbtouc_aux): Move out to separate file.
54905         (u16_mbtouc): Use ucs4_t, uint16_t types.
54906         * lib/unistr/utf16-ucs4.c: New file.
54907
54908         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54909         (Depends-on): Add unitypes.
54910         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54911         (u8_uctomb_aux): Move out to separate file.
54912         (u8_uctomb): Use ucs4_t, uint8_t types.
54913         * lib/unistr/ucs4-utf8.c: New file.
54914
54915         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54916         (Depends-on): Add unitypes.
54917         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54918         (u16_uctomb_aux): Move out to separate file.
54919         (u16_uctomb): Use ucs4_t, uint16_t types.
54920         * lib/unistr/ucs4-utf16.c: New file.
54921
54922 2006-12-25  Bruno Haible  <bruno@clisp.org>
54923
54924         * modules/unitypes: New file.
54925         * lib/unitypes.h: New file.
54926         * MODULES.html.sh (func_all_modules): New section "Unicode string
54927         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54928         this section. Add unitypes.
54929
54930 2007-01-08  Bruno Haible  <bruno@clisp.org>
54931
54932         Avoid variable names that conflict with those from libtool.
54933         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54934         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54935         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54936         library_names_spec to acl_library_names_spec, hardcode_* to
54937         acl_hardcode_*.
54938         Reported by Ralf Wildenhues.
54939
54940 2007-01-08  Bruno Haible  <bruno@clisp.org>
54941
54942         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54943         definition.
54944         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54945         definition.
54946         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54947         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54948         definition.
54949         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54950         definition.
54951         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54952         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54953         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
54954         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
54955         definition.
54956         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
54957         definition.
54958         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
54959         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
54960         GC_USE_<algorithm>.
54961         * lib/gc-libgcrypt.c: Likewise.
54962         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
54963         * modules/gc-arctwo (configure.ac): Likewise.
54964         * modules/gc-des (configure.ac): Likewise.
54965         * modules/gc-hmac-md5 (configure.ac): Likewise.
54966         * modules/gc-hmac-sha1 (configure.ac): Likewise.
54967         * modules/gc-md2 (configure.ac): Likewise.
54968         * modules/gc-md4 (configure.ac): Likewise.
54969         * modules/gc-md5 (configure.ac): Likewise.
54970         * modules/gc-random (configure.ac): Likewise.
54971         * modules/gc-rijndael (configure.ac): Likewise.
54972         * modules/gc-sha1 (configure.ac): Likewise.
54973
54974 2007-01-08  Bruno Haible  <bruno@clisp.org>
54975
54976         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
54977         macro definition.
54978         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
54979         definition.
54980         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
54981         definition.
54982         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
54983         * modules/fcntl-safer (configure.ac): Likewise.
54984         * modules/fopen-safer (configure.ac): Likewise.
54985         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
54986         GNULIB_FWRITEERROR macro definition.
54987
54988 2007-01-08  Bruno Haible  <bruno@clisp.org>
54989
54990         * m4/gnulib-common.m4: New file.
54991         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
54992         (func_get_filelist): Add m4/gnulib-common.m4.
54993
54994 2007-01-08  Bruno Haible  <bruno@clisp.org>
54995
54996         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
54997         command.
54998
54999 2007-01-08  Jim Meyering  <jim@meyering.net>
55000
55001         Use a more robust test for a "can't happen" condition.
55002         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55003         narrowed the st_size value.  Presuming the "can't happen" condition
55004         is true, that narrowing could conceivably convert an invalid st_size
55005         value into a valid one.  Instead, use a change based on Matthew
55006         Woehlke's original patch.
55007
55008         Slight readability improvement: use an assert-like macro
55009         in place of literal "abort ()" uses.
55010         * lib/fts.c (fts_assert): Define.
55011         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55012         Use this macro instead of a bare 'abort'.
55013
55014 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55015
55016         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55017         simply work around them.
55018         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55019         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55020         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55021         declaring.
55022         Don't bother to define as macros, since the standard doesn't require it.
55023         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55024         longer worry about IRIX 5.3.
55025         (HAVE_WCTYPE_CTMP_BUG): Remove.
55026
55027 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55028
55029         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55030         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55031         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55032         Problems reported by Georg Schwarz for IRIX 5.3.
55033
55034         * gnulib-tool (autoconf_minversion): Take the maximum version number
55035         found, not the minimum.  Problem reported by James Youngman.
55036
55037 2007-01-03  Karl Berry  <karl@gnu.org>
55038
55039         * doc/error.texi: new file, explaining interaction with progname.
55040         * doc/gnulib.texi: include it.  Update copyright.
55041
55042 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55043
55044         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55045         AC_CANONICAL_HOST, to improve autobuild outputs.
55046
55047 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55048             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55049
55050         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55051         sockets, server sockets, and other file descriptors.  Count errors
55052         to compute the return value.  Reorder the code a bit to be easier
55053         to follow.  Don't set event bits that were not requested (except
55054         POLLERR and POLLHUP).
55055
55056 2007-01-01  Bruno Haible  <bruno@clisp.org>
55057
55058         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55059
55060 2007-01-03  Jim Meyering  <jim@meyering.net>
55061
55062         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55063
55064 2007-01-02  Bruno Haible  <bruno@clisp.org>
55065
55066         * modules/settime (Include): Require timespec.h.
55067         * modules/nanosleep (Include): Likewise.
55068
55069 2007-01-01  Bruno Haible  <bruno@clisp.org>
55070
55071         * gnulib-tool (func_emit_copyright_notice): Bump year.
55072         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55073
55074 2007-01-01  Bruno Haible  <bruno@clisp.org>
55075
55076         Improve support for OpenBSD.
55077         * build-aux/config.rpath (libname_spec): Export.
55078         (library_names_spec): New variable. Export.
55079         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55080         library_names_spec from the config.rpath output. Locate shared library
55081         through the name pattern in library_names_spec.
55082
55083 2007-01-01  Eric Blake  <ebb9@byu.net>
55084
55085         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55086
55087 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55088
55089         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55090         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55091         assume the C locale, and avoid an "eval" that could cause trouble.
55092         Problem with SORT reported by Bob Proulx.
55093
55094         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55095         Define.  Trivial patch from Henning Nielsen Lund, originally
55096         sent to bug-grep@gnu.org today.
55097
55098 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55099
55100         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55101         struct stat.  Problem reported by Henning Nielsen Lund.
55102         * lib/acl.c: Include acl.h first, to check interface.  Don't
55103         bother to include sys/types.h and sys/stat.h again.
55104
55105 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55106
55107         Import the following change from libc; problem reported by
55108         Sven Verdoolaege.
55109
55110         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55111
55112         [BZ #1373]
55113         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55114
55115 2006-12-28  Jim Meyering  <jim@meyering.net>
55116
55117         * build-aux/announce-gen: Do not assume that the package
55118         builds any of tar.gz, tar.bz2, and .xdelta files.
55119         Suggestion from Simon Josefsson.
55120
55121 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55122
55123         * modules/announce-gen: New file.
55124
55125 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55126
55127         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55128         handles its gotchas now.
55129         * lib/mbswidth.c: Likewise.
55130         * lib/wcwidth.h: Likewise.
55131         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55132         and iswcntrl; the wctype module does this stuff now.
55133         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55135         * modules/mbchar (Depends-on): Add wctype.
55136         * modules/mbswidth (Depends-on): Likewise.
55137         * modules/wcwidth (Depends-on): Likewise.
55138
55139 2006-12-27  Eric Blake  <ebb9@byu.net>
55140
55141         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55142         module uses more than what <wctype.h> is required to provide.
55143
55144 2006-12-26  Eric Blake  <ebb9@byu.net>
55145
55146         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55147
55148 2006-12-26  Eric Blake  <ebb9@byu.net>
55149
55150         * modules/absolute-header: New module.
55151         * modules/fcntl (Depends-on): Depend on it.
55152         * modules/inttypes (Depends-on): Likewise.
55153         * modules/stdint (Depends-on): Likewise.
55154         * modules/sys_stat (Depends-on): Likewise.
55155         * modules/wctype (Depends-on): Likewise.
55156         * MODULES.html.sh (Support for building libraries and
55157         executables): Document it.
55158
55159 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55160
55161         * gnulib-tool (SED): Remove, undoing previous change.
55162         The problem was that it broke coreutils on Solaris, because
55163         "sed --posix" leaked into a makefile.
55164         (sed): New alias, if 'alias' and GNU sed.
55165
55166 2006-12-24  Jim Meyering  <jim@meyering.net>
55167
55168         Work around an fchownat bug in glibc-2.4:
55169         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55170         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55171         in spite of the -P option.
55172         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55173         New macros.
55174         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55175         * modules/openat (Files): Add lib/fchownat.c.
55176         * lib/openat.c (fchownat): Don't define here.  Move to...
55177         * lib/fchownat.c: ...this new file.
55178
55179 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55180
55181         Fix bug reported by Bruno Haible in
55182         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55183         where quotearg.c didn't compile on Mac OS X 10.2 because it
55184         lacks <wchar.h> and wint_t.
55185         * lib/wctype_.h (__wctype_wint_t): New type.
55186         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55187         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55188         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55189         Arg is now of type __wctype_wint_t, not wint_t.
55190         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55191         substitute HAVE_WINT_T.
55192         * modules/wctype (Files): Add m4/wint_t.m4.
55193         (wctype.h): Substitute HAVE_WINT_T.
55194
55195 2006-12-23  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55198
55199 2006-12-23  Bruno Haible  <bruno@clisp.org>
55200
55201         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55202         S_ISLNK.
55203         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55204         mingw.
55205
55206 2006-12-22  Bruno Haible  <bruno@clisp.org>
55207
55208         * lib/copy-file.c: Include acl.h.
55209         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55210         Close the file descriptors only after being done with copy_acl.
55211         * modules/copy-file (Depends-on): Add acl.
55212
55213 2006-12-22  Bruno Haible  <bruno@clisp.org>
55214
55215         * gnulib-tool (SED): New variable.
55216         Use $SED instead of sed everywhere.
55217
55218 2006-12-22  Bruno Haible  <bruno@clisp.org>
55219
55220         * modules/no-c++: New file.
55221         * m4/no-c++.m4: New file.
55222         * MODULES.html.sh (Support for building libraries and executables):
55223         Add no-c++.
55224
55225 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55228         Include <limits.h>, and use its INT_MAX to rewrite the
55229         j loop so that it does not overflow 'int'.  Problem reported by
55230         Ralf Wildenhues in
55231         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55232         Play it safe by shifting left by 1 rather than multiplying by 2,
55233         as GCC is less likely to optimize this away when the value
55234         is signed (when it assumes overflow leads to undefined behavior).
55235         Also, don't assume time_t uses two's complement.
55236
55237 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55238
55239         * MODULES.html.sh: New module wctype.
55240         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55241         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55242         <wctype.h>, since the new wctype module should fix this.
55243         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55244         the wctype module should arrange for it.
55245         * lib/regex_internal.h: Likewise.
55246         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55247         since the wctype module should handle this now.
55248         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55249         * modules/fnmatch (Depends-on): Add wctype.
55250         * modules/quotearg (Depends-on): Likewise.
55251         * modules/regex (Depends-on): Likewise.
55252
55253 2006-12-19  Bruno Haible  <bruno@clisp.org>
55254
55255         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55256         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55257
55258 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55259
55260         * modules/savewd (Depends-on): Fix dependency on fcntl.
55261
55262 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55263
55264         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55265         conforms to C99, rather than relying on the user's environment
55266         setting of STDINT_H.
55267
55268 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55269         and Eric Blake  <ebb9@byu.net>
55270
55271         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55272         This is more consistent with the other defines here.
55273         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55274         Port to z/OS.  Problem reported by Paul Gilmartin.
55275         Change local vars to use gl_ prefix rather than ac_.
55276         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55277         with other defines.
55278         * modules/double-slash-root: New module.
55279         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55280         (Depends-on): Add double-slash-root.
55281         * MODULES.html.sh (File system functions): Mention new module.
55282
55283 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55286         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55287         This is for the benefit of gzip, which doesn't do i18n.
55288
55289 2006-12-12  Jim Meyering  <jim@meyering.net>
55290
55291         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55292         Reported by Andreas Schwab <schwab@suse.de>.
55293
55294 2006-12-12  Bruno Haible  <bruno@clisp.org>
55295
55296         Merge these changes.
55297         2006-09-05  Bruno Haible  <bruno@clisp.org>
55298         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55299         iconv_alloc succeeded.
55300         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55301         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55302         test for " && dest " at the end - dest is always != NULL there. Call
55303         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55304         with 2xNULL arguments, also to flush the state storage. Handle the
55305         IRIX iconv behaviour. Realloc the final result, to throw away unused
55306         memory.
55307
55308 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55309
55310         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55311         and fchmodat unconditionally, since glibc 2.4 has them.
55312         Problem reported by Arkadiusz Miskiewicz.
55313
55314 2006-12-10  Bruno Haible  <bruno@clisp.org>
55315
55316         * gnulib-tool (func_import): Show the include files only for those
55317         modules that are copied and specified.
55318         Reported by Karl Berry.
55319
55320 2006-12-08  Jim Meyering  <jim@meyering.net>
55321
55322         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55323         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55324
55325         * build-aux/announce-gen: Add two new options, both optional:
55326         --bootstrap-tools=TOOL_LIST
55327               a comma-separated list of tools, e.g.,
55328               autoconf,automake,bison,gnulib
55329         --gnulib-snapshot-date=DATE
55330               if gnulib is in the bootstrap tool list,
55331               then report this as the snapshot date.
55332               If not specified, use the current date/time.
55333               If you specify a date here, be sure it's UTC.
55334
55335 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55336
55337         * tests/test-argp-2.sh: Fix test to match actual output.
55338         (func_compare): Fix sed script to be portable.
55339
55340 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55341
55342         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55343         workaround for this case.  It is not autoconfigured now; offhand
55344         it's hard to see how to autoconfigure it.
55345
55346 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55347
55348         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55349         a directory that is about to be chowned.  Such a directory's
55350         initial file permissions should permit the owner only and this
55351         should not be changed until after the chown, since the group and
55352         other bits would be incorrect if they granted permission before
55353         the chown.
55354
55355         Fix porting problem for iswctype reported by Georg Schwarz in:
55356         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55357         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55358         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55360         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55361
55362 2006-12-03  Jim Meyering  <jim@meyering.net>
55363
55364         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55365         p->fts_statp may not yet be defined.
55366         (fts_read): Instead, set it in the caller, once p->fts_statp is
55367         sure to be defined, and corresponds to a top-level directory.
55368         This bug made du -x fail.  Here's the coreutils test case:
55369         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55370         Reported by Mike Frysinger.
55371
55372 2006-12-01  Jim Meyering  <jim@meyering.net>
55373
55374         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55375         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55376         Reported by Simon Josefsson.
55377
55378 2006-11-30  Jim Meyering  <jim@meyering.net>
55379
55380         * m4/warning.m4: Use the all-permissive copyright notice
55381         recommended by RMS (rather than LGPL).
55382         * m4/vararrays.m4: Likewise.
55383         * m4/flexmember.m4: Likewise.
55384
55385 2006-11-29  Bruno Haible  <bruno@clisp.org>
55386
55387         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55388         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55389         using +=.
55390         Reported by Simon Josefsson <simon@josefsson.org>.
55391
55392 2006-11-28  James Youngman <jay@gnu.org>
55393
55394         * README: Advise users that they might find the bug-gnulib@gnu.org
55395         and autotools-announce@gnu.org mailing lists useful.
55396
55397 2006-11-28  Bruno Haible  <bruno@clisp.org>
55398
55399         * m4/ptrdiff_max.m4: Remove file.
55400
55401 2006-11-21  Bruno Haible  <bruno@clisp.org>
55402
55403         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55404         _AC_COMPUTE_INT.
55405         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55406         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55407         _AC_COMPUTE_INT.
55408         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55409         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55410         _AC_COMPUTE_INT.
55411         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55412
55413 2006-11-28  Jim Meyering  <jim@meyering.net>
55414
55415         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55416         warning from "gcc -Wshadow" about shadowing the builtin.
55417
55418 2006-11-27  Bruno Haible  <bruno@clisp.org>
55419
55420         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55421         _AC_COMPUTE_INT.
55422         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55423
55424 2006-11-27  Bruno Haible  <bruno@clisp.org>
55425             Paul Eggert  <eggert@cs.ucla.edu>
55426
55427         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55428
55429 2006-11-26  Bruno Haible  <bruno@clisp.org>
55430
55431         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55432         noinst_LTLIBRARIES.
55433
55434 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55435             Bruno Haible  <bruno@clisp.org>
55436
55437         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55438         if compiling with "gcc -ansi".
55439
55440 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         Fix some incompatibilities with gcc -ansi -pedantic.
55443         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55444         if compiling pedantically with GCC, unless it's C99 or later.
55445         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55446         it mishandles gcc -ansi -pedantic as well.
55447         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55448         if gcc -pedantic.
55449         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55450         initializers for struct if -pedantic, unless it's C99 or later.
55451
55452 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55453
55454         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55455         Don't close an fd more than once. Identical atimes indicate
55456         success, not failure.
55457
55458 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55459
55460         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55461
55462 2006-11-23  Jim Meyering  <jim@meyering.net>
55463
55464         * build-aux/announce-gen: New file.  From coreutils.
55465
55466 2006-11-22  Jim Meyering  <jim@meyering.net>
55467
55468         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55469         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55470         (fts_read): Use a temporary to narrow the overused st_size member
55471         before using it in a switch statement.  Reported by Matthew Woehlke.
55472
55473         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55474         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55475
55476 2006-11-20  Bruno Haible  <bruno@clisp.org>
55477
55478         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55479         changequote instead of pairs of brackets.
55480         Reported by Andreas Schwab <schwab@suse.de>.
55481
55482 2006-11-21  Jim Meyering  <jim@meyering.net>
55483
55484         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55485         so as to remain compatible with older compilers.
55486         Patch from Michael Deutschmann.
55487
55488 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55489
55490         * MODULES.html.sh (File system functions): Add openat.
55491
55492         * lib/openat.h (rpl_fstatat): New macro, if
55493         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55494         (fstatat): Define to rpl_fstatat under the same conditions,
55495         unless COMPILING_FSTATAT.
55496         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55497         seems to have the bug.
55498         * lib/fstatat.c: New file.
55499         * modules/openat (Files): Add it.
55500
55501 2006-11-20  Bruno Haible  <bruno@clisp.org>
55502
55503         * Makefile: New file.
55504
55505 2006-11-20  Jim Meyering  <jim@meyering.net>
55506
55507         The beginnings of syntax-related checks for gnulib.
55508         * lib/Makefile: New file.
55509         * lib/t-idcache: New script.  Ensure that the two halves of
55510         idcache.c stay in sync.
55511
55512         * lib/idcache.c: Adjust comments in user- and group- portions to
55513         be more accurate, and to be consistent with one another.
55514
55515 2006-11-20  Jim Meyering  <jim@meyering.net>
55516
55517         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55518         continue using the flexible array member (thus, this module performs
55519         half as many malloc calls), with the addition that...
55520         (getgroup, getuser): Consistently record a non-match via an empty
55521         "name" string, and map an empty string match to a NULL return value.
55522         * modules/idcache (Depends-on): Re-add flexmember.
55523
55524         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55525         (getuidbyname, getgroup, getgidbyname): Likewise.
55526
55527         Use cleaner syntax: NULL rather than 0.
55528         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55529
55530 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55531
55532         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55533         It mishandled the case where the group was missing.
55534         Problem reported by Greg Schafer.
55535         * modules/idcache: Likewise.
55536
55537 2006-11-18  Jim Meyering  <jim@meyering.net>
55538
55539         * check-module (%exempt_header): Add exception for some
55540         conditionally-included headers.
55541
55542         * modules/i-ring (Depends-on): Add verify.
55543         (License): Change to LGPL.
55544
55545 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55548         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55549         and inttostr.h.  Use snprintf rather than uinttostr, so that
55550         LGPLed code doesn't depend on GPLed.
55551
55552 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55553
55554         * modules/inline (License): Change from GPL to LGPL.
55555
55556 2006-11-17  Jim Meyering  <jim@meyering.net>
55557
55558         * modules/d-type (License): Switch to LGPL.
55559
55560 2006-11-15  Bruno Haible  <bruno@clisp.org>
55561
55562         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55563
55564 2006-11-15  Eric Blake  <ebb9@byu.net>
55565
55566         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55567         the module dependency.
55568
55569 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55570             Bruno Haible  <bruno@clisp.org>
55571
55572         * gnulib-tool (func_create_testdir): Add license consistency check.
55573
55574 2006-11-15  Eric Blake  <ebb9@byu.net>
55575
55576         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55577         random "(cached)" in configure output.
55578
55579 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55580
55581         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55582         test for conforming inttypes.h is both announced and cached.
55583
55584         * MODULES.html.sh (seen_modules, seen_files): New variables.
55585         (func_module): Rewrite to use a few less gnulib-tool and sed
55586         invocations.  Avoid a couple of quadratic algorithms for ...
55587         (missed_modules, missed_files): ... these, with ...
55588         (func_append, func_tmpdir): ... these new functions, from
55589         gnulib-tool.  Analogously, install traps for cleanup.
55590
55591         * tests/test-gc.c (main): Remove unused variables.
55592         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55593
55594 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55595
55596         * modules/inttostr (License): Change to LGPL.
55597
55598 2006-11-14  Eric Blake  <ebb9@byu.net>
55599
55600         * modules/tempname (License): Change to LGPL.
55601
55602 2006-11-14  Eric Blake  <ebb9@byu.net>
55603
55604         * doc/functions.texi (Function Portability): *printf functions on
55605         Cygwin now understand all POSIX size specifiers.
55606
55607 2006-11-14  Bruno Haible  <bruno@clisp.org>
55608
55609         * modules/c-ctype (License): Change to LGPL.
55610
55611 2006-11-12  Bruno Haible  <bruno@clisp.org>
55612
55613         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55614         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55615         for GNOME libraries, for which the include files are installed in
55616         subdirectories of $prefix/include.
55617
55618 2006-11-12  Bruno Haible  <bruno@clisp.org>
55619
55620         * m4/lib-link.m4: Require at least autoconf-2.54.
55621         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55622         name to underscores for the --with option.
55623
55624 2006-11-13  Bruno Haible  <bruno@clisp.org>
55625
55626         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55627         the tests directory.
55628         Reported by Ralf Wildenhues.
55629
55630 2006-11-13  Bruno Haible  <bruno@clisp.org>
55631
55632         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55633         (func_emit_initmacro_end): Undo the override here.
55634         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55635         Works around the famous automake error in coreutils.
55636
55637 2006-11-13  Eric Blake  <ebb9@byu.net>
55638
55639         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55640         element, not its node.
55641
55642 2006-11-12  Bruno Haible  <bruno@clisp.org>
55643
55644         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55645         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55646
55647 2006-11-12  Bruno Haible  <bruno@clisp.org>
55648
55649         * gnulib-tool: New option --local-symlink.
55650         (func_usage): Document it.
55651         (lsymbolic): New variable.
55652         (func_import, func_create_testdir): If --symlink was not specified,
55653         test whether --local-symlink was specified and the file comes from
55654         the local_gnulib_dir.
55655
55656 2006-11-12  Bruno Haible  <bruno@clisp.org>
55657
55658         * gnulib-tool (func_ln): New function.
55659         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55660
55661 2006-11-12  Bruno Haible  <bruno@clisp.org>
55662
55663         Finish support for source files in subdirectories.
55664         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55665         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55666         AUTOMAKE_OPTIONS.
55667         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55668
55669 2006-11-12  Bruno Haible  <bruno@clisp.org>
55670
55671         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55672         EXTRA_lib_SOURCES augmentation.
55673         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55674
55675 2006-11-12  Jim Meyering  <jim@meyering.net>
55676
55677         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55678         file descriptors.  This also averts a failure on systems with
55679         native openat support when a traversed directory lacks "x" access.
55680         * lib/fts_.h: Include "i-ring.h"
55681         (struct FTS) [fts_fd_ring]: New member.
55682         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55683         (FCHDIR): Add parentheses.
55684         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55685         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55686         When descending, rather than simply closing the previous
55687         fts_cwd_fd value, push that file descriptor onto the ring.
55688         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55689         (fts_open): Initialize the new fd_ring member.
55690         (fts_close): Clear the ring.
55691         (fts_safe_changedir): When possible, use our new fd_ring to skip
55692         the diropen and fstat and dev/ino comparison that would normally
55693         accompany a virtual `chdir ("..")'.
55694
55695         * modules/fts (Depends-on): Add i-ring.
55696         * modules/i-ring: New module.
55697         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55698         * m4/i-ring.m4: New file.
55699
55700 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55701
55702         * gnulib-tool (func_create_testdir): Fix replacement of
55703         `build-aux' in configure.ac.  Run autotools in gltests
55704         subdirectory.
55705         (func_create_testdir, func_create_megatestdir, test): There is
55706         no need for '--force' in most autotool invocations in a new
55707         tree.  Actually fail the whole test if any of the tools, or the
55708         configure or make stages fail.
55709
55710         Sync from Automake.
55711         * build-aux/gnupload: Revert last change.  Add pointer to upload
55712         instructions of the GNU Maintenance Instructions.
55713         Suggestion by Karl Berry.
55714
55715 2006-11-10  Jim Meyering  <jim@meyering.net>
55716
55717         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55718
55719 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55720
55721         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55722         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55723         (bind_textdomain_codeset) [! ENABLE_NLS]:
55724         Evaluate all the arguments.  That way, callers get compatible behavior
55725         if the arguments have side effects.  Also, it avoids some GCC
55726         diagnostics in some cases; Joel E. Denny reported problems when Bison
55727         was configured with --enable-gcc-warnigs.
55728
55729 2006-11-10  Jim Meyering  <jim@meyering.net>
55730
55731         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55732         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55733         account.
55734
55735 2006-11-10  Jim Meyering  <jim@meyering.net>
55736
55737         * modules/inline: New file/module.
55738         * modules/xalloc (Files): Remove m4/inline.m4.
55739         (Depends-on): Add inline, instead.
55740         * modules/oset: Likewise.
55741         * modules/list: Likewise.
55742
55743 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55744
55745         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55746         Problem reported by Matthew Woehlke.
55747
55748 2006-11-09  Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/tempname.c (gen_tempname): Remove variant that invokes
55751         __gen_tempname.
55752         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55753         __gen_tempname.
55754
55755 2006-11-08  Bruno Haible  <bruno@clisp.org>
55756
55757         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55758         to 'yes' instead of 'cross-compiling'.
55759
55760 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55761
55762         * lib/quotearg.h (quotearg_free): New decl.
55763         * lib/quotearg.c (quotearg_free): New function.
55764         (slot0, nslots, slotvec0, slotvec):
55765         Now file-scope so that quotearg_free can get at them.
55766
55767 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55768
55769         Sync from Automake.
55770         * build-aux/gnupload: Add missing 'gnu' to example URL.
55771         Report by Karl Berry.
55772
55773 2006-11-08  Bruno Haible  <bruno@clisp.org>
55774
55775         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55776         Suggested by Paul Eggert.
55777
55778 2006-11-08  Jim Meyering  <jim@meyering.net>
55779
55780         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55781         It's already included if !_LIBC.
55782         (fts_safe_changedir): Add a comment.
55783
55784 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55785
55786         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55787         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55788         Matthew Woehlke.
55789
55790         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55791         definitions up, to avoid colliding with change below.
55792         (static_inline) [HAVE_INLINE]: New macro.
55793         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55794         Provide extern decls when !HAVE_INLINE.  Do not define unless
55795         static_inline is defined, either by us or by xmalloc.c.  Use
55796         static_inline rather than static inline.
55797         (XCALLOC): Optimize sizeof(T) = 1 case.
55798         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55799
55800 2006-11-07  Bruno Haible  <bruno@clisp.org>
55801
55802         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55803         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55804         AC_C_INLINE.
55805         * modules/xalloc (Files): Add m4/inline.m4.
55806
55807 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55808
55809         * README: Fix typo.
55810         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55811         (Miscellanous Notes): ...from this.
55812
55813 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55814
55815         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55816         Mention that offsetof should be used instead of sizeof.
55817         From Bruno Haible.
55818
55819 2006-11-07  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55822
55823 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55824
55825         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55826         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55827         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55828         (gl_tree_add_before, gl_tree_add_after):
55829         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55830         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55831         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55832         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55833         (gl_linked_add_after, gl_linked_add_at): Likewise.
55834         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55835         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55836         (gl_tree_add_before, gl_tree_add_after): Likewise.
55837         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55838         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55839         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55840
55841 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55842
55843         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55844
55845 2006-11-06  Bruno Haible  <bruno@clisp.org>
55846
55847         * m4/inline.m4: New file.
55848         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55849         * modules/list (Files): Add m4/inline.m4.
55850         * modules/oset (Files): Likewise.
55851
55852 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55853
55854         * lib/idcache.c: Include <stddef.h>, for offsetof.
55855         (struct userid.name): Change from char * to a flexible array member.
55856         All uses changed.
55857         * modules/idcache (Depends-on): Add flexmember.
55858
55859         * MODULES.html.sh (Core language properties): New module flexmember.
55860         * modules/flexmember, m4/flexmember.m4: New files.
55861
55862         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55863         inline functions that are identical with the old xnmalloc_inline,
55864         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55865         that we can avoid some unnecessary integer multiplications and
55866         divisions in the common case where the element size is known at
55867         compile time.
55868         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55869         needed.
55870         (xnboundedmalloc): Remove.
55871         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55872         arguments, for consistency with rest of this header.
55873         (xcharalloc): Rewrite using XNMALLOC.
55874         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55875         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55876         versions have been moved to lib/xalloc.h and renamed to be the
55877         non-*_inline versions.
55878         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55879         and xnrealloc functions, since those functions are now inline and
55880         now call us.
55881         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55882         renaming described above.
55883         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55884         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55885         captures the dependency in AC_C_INLINE.
55886
55887         New module canonicalize-lgpl, proposed by Charles Wilson in
55888         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55889         with a few small changes afterwards.
55890         * MODULES.html.sh (File system functions): New module
55891         canonicalize-lgpl.
55892         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55893         and canonicalize_file_name.
55894         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55895         * modules/canonicalize-lgpl: New files.
55896
55897 2006-11-05  Bruno Haible  <bruno@clisp.org>
55898
55899         * gnulib-tool (func_import, func_create_testdir): Create directories
55900         also for files in subdirectories of lib/.
55901
55902 2006-11-05  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55905         ANSI C compliant.
55906
55907 2006-11-03  Bruno Haible  <bruno@clisp.org>
55908
55909         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55910         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55911         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55912         (xnboundedmalloc): New inline function.
55913         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55914         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55915         xmalloc.
55916         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55917         xmalloc.
55918         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55919         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55920         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55921         xmalloc.
55922         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55923         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55924         xmalloc.
55925         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55926         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55927         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55928         xmalloc.
55929         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55930         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55931         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55932         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55933         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55934         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55935         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55936
55937 2006-11-03  Bruno Haible  <bruno@clisp.org>
55938
55939         * lib/c-ctype.h [C++]: Define functions without name mangling.
55940         * lib/fwriteerror.h [C++]: Likewise.
55941         * lib/gcd.h [C++]: Likewise.
55942         * lib/linebreak.h [C++]: Likewise.
55943
55944 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55945
55946         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55947         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55948         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55949         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55950         Check for functions and headers just once.
55951         Check for declaration of canonicalize_file_name.
55952         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55953
55954 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55955
55956         * gnulib-tool (func_import): Fix typo in actioncmd.
55957
55958 2006-11-02  Bruno Haible  <bruno@clisp.org>
55959
55960         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
55961         newline sequence in the Makefile.am snippet as a space, like "make"
55962         does.
55963         Reported by Roger Persson <perrog@gmail.com>.
55964
55965 2006-11-01  Bruno Haible  <bruno@clisp.org>
55966
55967         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
55968         already declared in <string.h>.
55969         * lib/strcase.h (strncasecmp): Don't declare it if yes.
55970
55971 2006-11-01  Bruno Haible  <bruno@clisp.org>
55972
55973         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
55974         * lib/strcase.h: Include <string.h>.
55975         (strcasecmp): Define to rpl_strcasecmp here.
55976
55977 2006-11-01  Bruno Haible  <bruno@clisp.org>
55978
55979         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
55980
55981 2006-11-01  Eric Blake  <ebb9@byu.net>
55982
55983         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
55984
55985         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
55986
55987 2006-10-29  Bruno Haible  <bruno@clisp.org>
55988
55989         Make it compile in C++ mode.
55990         * lib/full-write.c (full_rw): Add a cast.
55991
55992 2006-11-01  Bruno Haible  <bruno@clisp.org>
55993
55994         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
55995         be POSIX compliant.
55996         Reported by Roger Persson <perrog@gmail.com>.
55997
55998 2006-11-01  Eric Blake  <ebb9@byu.net>
55999
56000         * lib/getopt_.h: Fix comments.
56001
56002 2006-10-31  Eric Blake  <ebb9@byu.net>
56003
56004         * modules/tmpdir (Depends-on): Add sys_stat.
56005         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56006         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56007         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56008         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56009         tempname.
56010
56011 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56012
56013         Avoid some C++ diagnostics reported by Bruno Haible.
56014         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56015         xmalloc.
56016         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56017         (struct slotvec): Move to top level.
56018         (quotearg_n_options): Rewrite to avoid xmalloc.
56019         * lib/xalloc.h (xcharalloc): New function.
56020         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56021         [defined __cplusplus]: Add function template that provides result
56022         type propagation.  This part of the change is from Bruno Haible.
56023
56024 2006-10-29  Bruno Haible  <bruno@clisp.org>
56025
56026         Make it compile in C++ mode.
56027         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56028         * lib/strnlen1.c (strnlen1): Cast memchr result.
56029         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56030         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56031         (create_temp_dir): Rename local variable 'template'.
56032         (compile_csharp_using_sscli): Add cast.
56033         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56034         * lib/findprog.c (find_in_path): Likewise.
56035         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56036         * lib/wait-process.c (register_slave_subprocess): Likewise.
56037
56038 2006-10-22  Bruno Haible  <bruno@clisp.org>
56039
56040         * modules/tsearch: New file.
56041         * lib/tsearch.h: New file.
56042         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56043         * m4/tsearch.m4: New file.
56044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56045
56046 2006-10-29  Eric Blake  <ebb9@byu.net>
56047
56048         * lib/arcfour.c: Assume config.h.
56049         * lib/arctwo.c: Likewise.
56050         * lib/base64.c: Likewise.
56051         * lib/check-version.c: Likewise.
56052         * lib/crc.c: Likewise.
56053         * lib/des.c: Likewise.
56054         * lib/gc-gnulib.c: Likewise.
56055         * lib/gc-libgcrypt.c: Likewise.
56056         * lib/gc-pbkdf2-sha1.c: Likewise.
56057         * lib/getaddrinfo.c: Likewise.
56058         * lib/getdelim.c: Likewise.
56059         * lib/getline.c: Likewise.
56060         * lib/hmac-md5.c: Likewise.
56061         * lib/hmac-sha1.c: Likewise.
56062         * lib/iconvme.c: Likewise.
56063         * lib/md2.c: Likewise.
56064         * lib/md4.c: Likewise.
56065         * lib/memxor.c: Likewise.
56066         * lib/read-file.c: Likewise.
56067         * lib/readline.c: Likewise.
56068         * lib/rijndael-alg-fst.c: Likewise.
56069         * lib/rijndael-api-fst.c: Likewise.
56070         * lib/xgetdomainname.c: Likewise.
56071
56072 2006-10-28  Eric Blake  <ebb9@byu.net>
56073
56074         * lib/xstrndup.c: Assume config.h.
56075
56076 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56077
56078         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56079         stat-macros.h is now for our own macros, whereas stat_h is for
56080         macros in the <sys/stat.h> name space.
56081         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56082         (STAT_MACROS_H): Remove.
56083         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56084         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56085         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56086         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56087         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56088         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56089         Move these macros to ...
56090         * lib/stat_.h: here.  Don't include stat-macros.h.
56091         * lib/canonicalize.c: Don't include stat-macros.h.
56092         * lib/chown.c: Likewise.
56093         * lib/euidaccess.c: Likewise.
56094         * lib/file-type.c: Likewise.
56095         * lib/filemode.c: Likewise.
56096         * lib/glob.c: Likewise.
56097         * lib/isapipe.c: Likewise.
56098         * lib/lchown.c: Likewise.
56099         * lib/lstat.c: Likewise.
56100         * lib/mkdir-p.c: Likewise.
56101         * lib/rmdir.c: Likewise.
56102         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56104         unless mkdir isn't declared, to speed up 'configure'.
56105         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56106         would define all the S_* symbols.
56107         * modules/canonicalize (Depends-on):
56108         Depend on sys_stat, not stat-macros.
56109         * modules/chown: Likewise.
56110         * modules/euidaccess: Likewise.
56111         * modules/filemode: Likewise.
56112         * modules/file-type: Likewise.
56113         * modules/glob: Likewise.
56114         * modules/isapipe: Likewise.
56115         * modules/lchown: Likewise.
56116         * modules/lstat: Likewise.
56117         * modules/mkancesdirs: Likewise.
56118         * modules/rmdir: Likewise.
56119         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56120         * modules/modechange: Likewise.
56121         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56122         (configure.ac): Remove gl_STAT_MACROS.
56123         * modules/sys_stat (Depends-on): Remove stat-macros.
56124
56125 2006-10-27  Bruno Haible  <bruno@clisp.org>
56126
56127         * m4/signed.m4: Remove file.
56128         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56129         invocation.
56130         * modules/vasnprintf (Files): Remove m4/signed.m4.
56131
56132 2006-10-27  Bruno Haible  <bruno@clisp.org>
56133
56134         Update to GNU gettext 0.16.
56135         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56136         m4/inttypes-h.m4, m4/signed.m4.
56137         * m4/gettext.m4: Update to GNU gettext 0.16.
56138         * m4/intl.m4: New file, from GNU gettext.
56139         * m4/intldir.m4: New file, from GNU gettext.
56140         * config/srclist.txt: Update
56141
56142 2006-10-27  Eric Blake  <ebb9@byu.net>
56143
56144         * MODULES.html.sh: Document tempname.
56145         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56146         dependencies.
56147         (Files): Move lib/tempname.c...
56148         * modules/tempname: ...to this new module.
56149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56150         (gl_PREREQ_TEMPNAME): Move...
56151         * m4/tempname.m4: ...to this new file.
56152         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56153         * modules/sys_stat (Depends-on): Add stat-macros.
56154         * lib/stat_.h (includes): Pick up stat macros.
56155         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56156         if stat macros are broken.
56157         * lib/tempname.c (includes): No need to include "stat-macros.h".
56158         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56159         (direxists, __path_search) [!_LIBC]: Don't compile these in
56160         gnulib; the tmpdir module covers that.
56161         * lib/tempname.h: New file.
56162
56163 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56164
56165         * COPYING: Explain how gnulib-tool converts licence headers.
56166         Almost all wording by Eric Blake.
56167
56168 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56169
56170         * lib/mbchar.h (is_basic_table): Make read-only.
56171         * lib/mbchar.c (is_basic_table): Likewise.
56172         Reported by John Darrington.
56173
56174 2006-10-25  Bruno Haible  <bruno@clisp.org>
56175
56176         * lib/progname.h (set_program_name): Undefine before defining.
56177
56178 2006-10-25  Bruno Haible  <bruno@clisp.org>
56179
56180         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56181         false for non-gcc C++ compilers.
56182         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56183
56184 2006-10-24  Bruno Haible  <bruno@clisp.org>
56185
56186         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56187         iconv implementations like Irix iconv.
56188
56189 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56190
56191         * modules/vararrays: New file.
56192         * m4/vararrays.m4: New file, taken from diffutils.
56193         * MODULES.html.sh: New module vararrays.
56194
56195 2006-10-24  Karl Berry  <karl@gnu.org>
56196
56197         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56198         Don't call GNU Unix.
56199
56200 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56201
56202         * users.txt: Add Libtool.
56203
56204         Sync from Libtool:
56205
56206         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56207
56208         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56209         to gnulib's policy of including config.h unconditionally.
56210
56211 2006-10-24  Bruno Haible  <bruno@clisp.org>
56212
56213         * modules/wcwidth (Files): Add m4/wint_t.m4.
56214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56215         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56216
56217 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56218
56219         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56220         to pacify GCC with some -W flags enabled.  Problem reported by
56221         Bruno Haible.
56222
56223 2006-10-24  Jim Meyering  <jim@meyering.net>
56224
56225         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56226         Reported by Karl Berry.
56227
56228 2006-10-23  Bruno Haible  <bruno@clisp.org>
56229
56230         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56231
56232 2006-10-24  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/gl_list.h: Use C comment style, not C++ comment style.
56235
56236 2006-10-23  Eric Blake  <ebb9@byu.net>
56237
56238         * lib/getaddrinfo.c (includes): Add missing include.
56239
56240 2006-10-23  Bruno Haible  <bruno@clisp.org>
56241             Paul Eggert  <eggert@cs.ucla.edu>
56242
56243         Ability to rename obstack_free.
56244         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56245         obstack_free.
56246         (obstack_free): Invoke the __obstack_free macro.
56247         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56248
56249 2006-10-23  Bruno Haible  <bruno@clisp.org>
56250             Paul Eggert  <eggert@cs.ucla.edu>
56251
56252         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56253         __argc, __argv from the declaration. (They are defined as macros on
56254         mingw.)
56255
56256 2006-10-22  Bruno Haible  <bruno@clisp.org>
56257
56258         * doc/gnulib-intro.texi: New file.
56259         * doc/gnulib.texi: Include it.
56260
56261 2006-10-21  Bruno Haible  <bruno@clisp.org>
56262
56263         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56264         "Introduction", "Miscellanous Notes", "Particular Modules".
56265
56266 2006-10-21  Bruno Haible  <bruno@clisp.org>
56267
56268         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56269         Change mostlyclean-local rule to avoid sh syntax error from bash
56270         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56271
56272 2006-10-23  Jim Meyering  <jim@meyering.net>
56273
56274         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56275         in place of snprintf.
56276
56277         * modules/inttostr (Files): Add lib/uinttostr.c.
56278         * lib/uinttostr.c (inttostr): New file/function.
56279         * lib/inttostr.h (uinttostr): Declare.
56280         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56281         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56282         Add uinttostr.
56283         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56284
56285 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56286
56287         * lib/canonicalize.c (ELOOP): Define if not already defined.
56288         Problem reported by Bruno Haible in
56289         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56290
56291 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56292
56293         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56294         Problem reported by Perry Smith and Ville Laurikari.
56295
56296         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56297         uses.
56298
56299 2006-10-19  Bruno Haible  <bruno@clisp.org>
56300
56301         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56302         for mingw.
56303
56304 2006-10-19  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56307         Needed for mingw.
56308
56309 2006-10-19  Bruno Haible  <bruno@clisp.org>
56310
56311         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56312
56313 2006-10-19  Bruno Haible  <bruno@clisp.org>
56314
56315         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56316         it.
56317
56318 2006-10-19  Bruno Haible  <bruno@clisp.org>
56319
56320         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56321         invocation.
56322
56323 2006-10-19  Bruno Haible  <bruno@clisp.org>
56324
56325         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56326         mountlist by default.
56327
56328 2006-10-16  Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/c-strstr.c: Include c-strstr.h.
56331
56332 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56333
56334         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56335         in a slash.
56336
56337 2006-10-18  Bruno Haible  <bruno@clisp.org>
56338
56339         * lib/lock.h [C++]: Wrap definitions in extern "C".
56340
56341 2006-10-18  Bruno Haible  <bruno@clisp.org>
56342
56343         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56344         gl_LIBOBJS list.
56345
56346 2006-10-18  Bruno Haible  <bruno@clisp.org>
56347
56348         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56349
56350 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56351
56352         * lib/xstrtol.h: Include gettext.h.
56353         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56354         Problem reported by Eric Blake.
56355         * modules/xstrtol (Depends-on): Add gettext-h.
56356
56357 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56358
56359         * lib/strftime.c (advance): New macro.
56360         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56361         incomplete type, so you can't add 0 to it.  Problem and patch
56362         reported by Eelco Dolstra for dietlibc.
56363
56364 2006-10-18  Jim Meyering  <jim@meyering.net>
56365
56366         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56367         type for a local, and rename it: s/up/user_proc/.
56368
56369 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56370
56371         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56372         READ_UTMP_USER_PROCESS.
56373         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56374
56375 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56376
56377         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56378         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56379
56380 2006-10-17  Eric Blake  <ebb9@byu.net>
56381
56382         * lib/sigprocmask.c (sigprocmask): Fix typo.
56383
56384         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56385
56386         * modules/clean-temp (Makefile.am): Don't add to make output...
56387         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56388         config.h.
56389
56390 2006-10-17  Bruno Haible  <bruno@clisp.org>
56391
56392         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56393         differently if DEFAULT_TEXT_DOMAIN is set.
56394
56395 2006-10-16  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/clean-temp.c: Include fwriteerror.h.
56398
56399 2006-10-16  Bruno Haible  <bruno@clisp.org>
56400
56401         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56402
56403 2006-10-16  Bruno Haible  <bruno@clisp.org>
56404
56405         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56406         * lib/sigprocmask.h: Include <sys/types.h>.
56407         (sigset_t): Use the system's definition if present.
56408
56409 2006-10-17  Eric Blake  <ebb9@byu.net>
56410
56411         * lib/xvasprintf.c (includes): Assume config.h.
56412         * lib/xasprintf.c (includes): Likewise.
56413
56414 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56415
56416         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56417         at least as wide as intmax_t.
56418
56419 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56420
56421         (Imported from Automake.)
56422         * build-aux/gnupload: Update to version 1.1 of directive file.
56423
56424 2006-10-16  Eric Blake  <ebb9@byu.net>
56425
56426         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56427         match Automake 1.10a.
56428
56429 2006-10-14  Bruno Haible  <bruno@clisp.org>
56430
56431         * modules/sigprocmask: New file.
56432         * lib/sigprocmask.h: New file.
56433         * lib/sigprocmask.c: New file.
56434         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56435         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56436         request sigprocmask.o.
56437         (gl_PREREQ_SIGPROCMASK): New macro.
56438         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56439         (Depends-on): Add sigprocmask.
56440         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56441         gt_SIGNALBLOCKING. Test for 'raise' only once.
56442         * lib/fatal-signal.c: Include sigprocmask.h.
56443         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56444         unblock_fatal_signals): Define always.
56445         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56446         sigprocmask.
56447
56448 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56449
56450         Sync from Automake.
56451         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56452         which incorrectly sets the mode of an existing destination
56453         directory.  In some cases the unpatched install-sh could do the
56454         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56455         system.  We hope this is rare in practice, but it's clearly worth
56456         fixing.  Problem reported by Alex Unleashed in
56457         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56458         Also, don't bother to check for -m bugs unless we're using -m;
56459         suggested by Stepan Kasal.
56460
56461 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56462
56463         Sync from Automake.
56464         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56465         `-c' flag, so they appear at the same position as in %FASTDEP%
56466         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56467         which ignores unknown options only after the first non-option.
56468         Bug report against M4 by Nelson H. F. Beebe.
56469
56470 2006-10-13  Jim Meyering  <jim@meyering.net>
56471
56472         Fix a bug in yesterday's change.
56473         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56474         p->fts_statp->st_dev would be used uninitialized.
56475         Ensures that we always call fts_stat on the very first entry.
56476         Miklos Szeredi reported that find -xdev stopped working.
56477
56478 2006-10-12  Bruno Haible  <bruno@clisp.org>
56479
56480         * gnulib-tool (func_get_automake_snippet): Append an automatically
56481         computed EXTRA_DIST augmentation.
56482         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56483         * modules/alloca-opt (Makefile.am): Likewise.
56484         * modules/allocsa (Makefile.am): Likewise.
56485         * modules/arcfour (Makefile.am): Likewise.
56486         * modules/arctwo (Makefile.am): Likewise.
56487         * modules/argmatch (Makefile.am): Likewise.
56488         * modules/argz (Makefile.am): Likewise.
56489         * modules/atexit (Makefile.am): Likewise.
56490         * modules/backupfile (Makefile.am): Likewise.
56491         * modules/byteswap (Makefile.am): Likewise.
56492         * modules/c-strtod (Makefile.am): Likewise.
56493         * modules/c-strtold (Makefile.am): Likewise.
56494         * modules/calloc (Makefile.am): Likewise.
56495         * modules/canon-host (Makefile.am): Likewise.
56496         * modules/canonicalize (Makefile.am): Likewise.
56497         * modules/chdir-long (Makefile.am): Likewise.
56498         * modules/chdir-safer (Makefile.am): Likewise.
56499         * modules/check-version (Makefile.am): Likewise.
56500         * modules/chown (Makefile.am): Likewise.
56501         * modules/cloexec (Makefile.am): Likewise.
56502         * modules/close-stream (Makefile.am): Likewise.
56503         * modules/closeout (Makefile.am): Likewise.
56504         * modules/crc (Makefile.am): Likewise.
56505         * modules/csharpexec (Makefile.am): Likewise.
56506         * modules/cycle-check (Makefile.am): Likewise.
56507         * modules/des (Makefile.am): Likewise.
56508         * modules/dev-ino (Makefile.am): Likewise.
56509         * modules/dirfd (Makefile.am): Likewise.
56510         * modules/dirname (Makefile.am): Likewise.
56511         * modules/dup2 (Makefile.am): Likewise.
56512         * modules/eealloc (Makefile.am): Likewise.
56513         * modules/error (Makefile.am): Likewise.
56514         * modules/euidaccess (Makefile.am): Likewise.
56515         * modules/exclude (Makefile.am): Likewise.
56516         * modules/exitfail (Makefile.am): Likewise.
56517         * modules/fcntl-safer (Makefile.am): Likewise.
56518         * modules/fcntl (Makefile.am): Likewise.
56519         * modules/file-type (Makefile.am): Likewise.
56520         * modules/fileblocks (Makefile.am): Likewise.
56521         * modules/filemode (Makefile.am): Likewise.
56522         * modules/filenamecat (Makefile.am): Likewise.
56523         * modules/fnmatch (Makefile.am): Likewise.
56524         * modules/fopen-safer (Makefile.am): Likewise.
56525         * modules/fpending (Makefile.am): Likewise.
56526         * modules/fprintftime (Makefile.am): Likewise.
56527         * modules/free (Makefile.am): Likewise.
56528         * modules/fsusage (Makefile.am): Likewise.
56529         * modules/ftruncate (Makefile.am): Likewise.
56530         * modules/fts (Makefile.am): Likewise.
56531         * modules/gc-arcfour (Makefile.am): Likewise.
56532         * modules/gc-des (Makefile.am): Likewise.
56533         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56534         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56535         * modules/gc-md4 (Makefile.am): Likewise.
56536         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56537         * modules/gc-sha1 (Makefile.am): Likewise.
56538         * modules/gc (Makefile.am): Likewise.
56539         * modules/getaddrinfo (Makefile.am): Likewise.
56540         * modules/getcwd (Makefile.am): Likewise.
56541         * modules/getdelim (Makefile.am): Likewise.
56542         * modules/getdomainname (Makefile.am): Likewise.
56543         * modules/getgroups (Makefile.am): Likewise.
56544         * modules/gethostname (Makefile.am): Likewise.
56545         * modules/gethrxtime (Makefile.am): Likewise.
56546         * modules/getline (Makefile.am): Likewise.
56547         * modules/getloadavg (Makefile.am): Likewise.
56548         * modules/getlogin_r (Makefile.am): Likewise.
56549         * modules/getndelim2 (Makefile.am): Likewise.
56550         * modules/getopt (Makefile.am): Likewise.
56551         * modules/getpagesize (Makefile.am): Likewise.
56552         * modules/getpass-gnu (Makefile.am): Likewise.
56553         * modules/getpass (Makefile.am): Likewise.
56554         * modules/getsubopt (Makefile.am): Likewise.
56555         * modules/gettime (Makefile.am): Likewise.
56556         * modules/gettimeofday (Makefile.am): Likewise.
56557         * modules/getugroups (Makefile.am): Likewise.
56558         * modules/getusershell (Makefile.am): Likewise.
56559         * modules/glob (Makefile.am): Likewise.
56560         * modules/group-member (Makefile.am): Likewise.
56561         * modules/hard-locale (Makefile.am): Likewise.
56562         * modules/hash (Makefile.am): Likewise.
56563         * modules/hmac-md5 (Makefile.am): Likewise.
56564         * modules/hmac-sha1 (Makefile.am): Likewise.
56565         * modules/human (Makefile.am): Likewise.
56566         * modules/idcache (Makefile.am): Likewise.
56567         * modules/imaxabs (Makefile.am): Likewise.
56568         * modules/imaxdiv (Makefile.am): Likewise.
56569         * modules/inet_ntop (Makefile.am): Likewise.
56570         * modules/inet_pton (Makefile.am): Likewise.
56571         * modules/intprops (Makefile.am): Likewise.
56572         * modules/inttostr (Makefile.am): Likewise.
56573         * modules/inttypes (Makefile.am): Likewise.
56574         * modules/isapipe (Makefile.am): Likewise.
56575         * modules/javaversion (Makefile.am): Likewise.
56576         * modules/lchmod (Makefile.am): Likewise.
56577         * modules/lchown (Makefile.am): Likewise.
56578         * modules/localcharset (Makefile.am): Likewise.
56579         * modules/long-options (Makefile.am): Likewise.
56580         * modules/lstat (Makefile.am): Likewise.
56581         * modules/malloc (Makefile.am): Likewise.
56582         * modules/mathl (Makefile.am): Likewise.
56583         * modules/mbchar (Makefile.am): Likewise.
56584         * modules/md2 (Makefile.am): Likewise.
56585         * modules/md4 (Makefile.am): Likewise.
56586         * modules/md5 (Makefile.am): Likewise.
56587         * modules/memcasecmp (Makefile.am): Likewise.
56588         * modules/memchr (Makefile.am): Likewise.
56589         * modules/memcmp (Makefile.am): Likewise.
56590         * modules/memcoll (Makefile.am): Likewise.
56591         * modules/memcpy (Makefile.am): Likewise.
56592         * modules/memmem (Makefile.am): Likewise.
56593         * modules/memmove (Makefile.am): Likewise.
56594         * modules/mempcpy (Makefile.am): Likewise.
56595         * modules/memrchr (Makefile.am): Likewise.
56596         * modules/memset (Makefile.am): Likewise.
56597         * modules/memxor (Makefile.am): Likewise.
56598         * modules/mkancesdirs (Makefile.am): Likewise.
56599         * modules/mkdir-p (Makefile.am): Likewise.
56600         * modules/mkdir (Makefile.am): Likewise.
56601         * modules/mkdtemp (Makefile.am): Likewise.
56602         * modules/mkstemp (Makefile.am): Likewise.
56603         * modules/mktime (Makefile.am): Likewise.
56604         * modules/modechange (Makefile.am): Likewise.
56605         * modules/mountlist (Makefile.am): Likewise.
56606         * modules/nanosleep (Makefile.am): Likewise.
56607         * modules/obstack (Makefile.am): Likewise.
56608         * modules/openat (Makefile.am): Likewise.
56609         * modules/pagealign_alloc (Makefile.am): Likewise.
56610         * modules/pathmax (Makefile.am): Likewise.
56611         * modules/physmem (Makefile.am): Likewise.
56612         * modules/poll (Makefile.am): Likewise.
56613         * modules/posixtm (Makefile.am): Likewise.
56614         * modules/posixver (Makefile.am): Likewise.
56615         * modules/putenv (Makefile.am): Likewise.
56616         * modules/quote (Makefile.am): Likewise.
56617         * modules/quotearg (Makefile.am): Likewise.
56618         * modules/raise (Makefile.am): Likewise.
56619         * modules/read-file (Makefile.am): Likewise.
56620         * modules/readline (Makefile.am): Likewise.
56621         * modules/readlink (Makefile.am): Likewise.
56622         * modules/readtokens (Makefile.am): Likewise.
56623         * modules/readutmp (Makefile.am): Likewise.
56624         * modules/realloc (Makefile.am): Likewise.
56625         * modules/regex (Makefile.am): Likewise.
56626         * modules/rename-dest-slash (Makefile.am): Likewise.
56627         * modules/rename (Makefile.am): Likewise.
56628         * modules/rijndael (Makefile.am): Likewise.
56629         * modules/rmdir (Makefile.am): Likewise.
56630         * modules/rpmatch (Makefile.am): Likewise.
56631         * modules/safe-read (Makefile.am): Likewise.
56632         * modules/safe-write (Makefile.am): Likewise.
56633         * modules/same-inode (Makefile.am): Likewise.
56634         * modules/same (Makefile.am): Likewise.
56635         * modules/save-cwd (Makefile.am): Likewise.
56636         * modules/savedir (Makefile.am): Likewise.
56637         * modules/setenv (Makefile.am): Likewise.
56638         * modules/settime (Makefile.am): Likewise.
56639         * modules/sha1 (Makefile.am): Likewise.
56640         * modules/sig2str (Makefile.am): Likewise.
56641         * modules/snprintf (Makefile.am): Likewise.
56642         * modules/stat-macros (Makefile.am): Likewise.
56643         * modules/stat-time (Makefile.am): Likewise.
56644         * modules/stdbool (Makefile.am): Likewise.
56645         * modules/stdint (Makefile.am): Likewise.
56646         * modules/stdlib-safer (Makefile.am): Likewise.
56647         * modules/stpcpy (Makefile.am): Likewise.
56648         * modules/stpncpy (Makefile.am): Likewise.
56649         * modules/strcase (Makefile.am): Likewise.
56650         * modules/strcasestr (Makefile.am): Likewise.
56651         * modules/strchrnul (Makefile.am): Likewise.
56652         * modules/strcspn (Makefile.am): Likewise.
56653         * modules/strdup (Makefile.am): Likewise.
56654         * modules/strerror (Makefile.am): Likewise.
56655         * modules/strftime (Makefile.am): Likewise.
56656         * modules/strndup (Makefile.am): Likewise.
56657         * modules/strnlen (Makefile.am): Likewise.
56658         * modules/strpbrk (Makefile.am): Likewise.
56659         * modules/strsep (Makefile.am): Likewise.
56660         * modules/strstr (Makefile.am): Likewise.
56661         * modules/strtod (Makefile.am): Likewise.
56662         * modules/strtoimax (Makefile.am): Likewise.
56663         * modules/strtok_r (Makefile.am): Likewise.
56664         * modules/strtol (Makefile.am): Likewise.
56665         * modules/strtoll (Makefile.am): Likewise.
56666         * modules/strtoul (Makefile.am): Likewise.
56667         * modules/strtoull (Makefile.am): Likewise.
56668         * modules/strtoumax (Makefile.am): Likewise.
56669         * modules/strverscmp (Makefile.am): Likewise.
56670         * modules/sys_socket (Makefile.am): Likewise.
56671         * modules/sys_stat (Makefile.am): Likewise.
56672         * modules/sysexits (Makefile.am): Likewise.
56673         * modules/time_r (Makefile.am): Likewise.
56674         * modules/timegm (Makefile.am): Likewise.
56675         * modules/timespec (Makefile.am): Likewise.
56676         * modules/tmpfile-safer (Makefile.am): Likewise.
56677         * modules/trim (Makefile.am): Likewise.
56678         * modules/unistd-safer (Makefile.am): Likewise.
56679         * modules/unlinkdir (Makefile.am): Likewise.
56680         * modules/unlocked-io (Makefile.am): Likewise.
56681         * modules/userspec (Makefile.am): Likewise.
56682         * modules/utime (Makefile.am): Likewise.
56683         * modules/utimecmp (Makefile.am): Likewise.
56684         * modules/utimens (Makefile.am): Likewise.
56685         * modules/vasnprintf (Makefile.am): Likewise.
56686         * modules/vasprintf (Makefile.am): Likewise.
56687         * modules/vsnprintf (Makefile.am): Likewise.
56688         * modules/xalloc (Makefile.am): Likewise.
56689         * modules/xgetcwd (Makefile.am): Likewise.
56690         * modules/xnanosleep (Makefile.am): Likewise.
56691         * modules/xreadlink (Makefile.am): Likewise.
56692         * modules/xstrtod (Makefile.am): Likewise.
56693         * modules/xstrtol (Makefile.am): Likewise.
56694         * modules/xstrtold (Makefile.am): Likewise.
56695         * modules/yesno (Makefile.am): Likewise.
56696         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56697
56698 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56699
56700         * modules/error (Makefile.am): Distribute files through
56701         EXTRA_DIST, not lib_SOURCES.
56702
56703 2006-10-12  Eric Blake  <ebb9@byu.net>
56704
56705         * modules/error (Makefile.am): Distribute files in /lib.
56706         * modules/obstack (Makefile.am): Likewise.
56707
56708 2006-10-12  Bruno Haible  <bruno@clisp.org>
56709
56710         * modules/acl (Makefile.am): Distribute all files in lib/ through
56711         EXTRA_DIST.
56712         * modules/arcfour (Makefile.am): Likewise.
56713         * modules/arctwo (Makefile.am): Likewise.
56714         * modules/argmatch (Makefile.am): Likewise.
56715         * modules/argz (Makefile.am): Likewise.
56716         * modules/atexit (Makefile.am): Likewise.
56717         * modules/backupfile (Makefile.am): Likewise.
56718         * modules/c-strtod (Makefile.am): Likewise.
56719         * modules/c-strtold (Makefile.am): Likewise.
56720         * modules/calloc (Makefile.am): Likewise.
56721         * modules/canon-host (Makefile.am): Likewise.
56722         * modules/canonicalize (Makefile.am): Likewise.
56723         * modules/chdir-long (Makefile.am): Likewise.
56724         * modules/chdir-safer (Makefile.am): Likewise.
56725         * modules/check-version (Makefile.am): Likewise.
56726         * modules/chown (Makefile.am): Likewise.
56727         * modules/cloexec (Makefile.am): Likewise.
56728         * modules/close-stream (Makefile.am): Likewise.
56729         * modules/closeout (Makefile.am): Likewise.
56730         * modules/crc (Makefile.am): Likewise.
56731         * modules/cycle-check (Makefile.am): Likewise.
56732         * modules/des (Makefile.am): Likewise.
56733         * modules/dirfd (Makefile.am): Likewise.
56734         * modules/dirname (Makefile.am): Likewise.
56735         * modules/dup2 (Makefile.am): Likewise.
56736         * modules/euidaccess (Makefile.am): Likewise.
56737         * modules/exclude (Makefile.am): Likewise.
56738         * modules/exitfail (Makefile.am): Likewise.
56739         * modules/fcntl-safer (Makefile.am): Likewise.
56740         * modules/file-type (Makefile.am): Likewise.
56741         * modules/fileblocks (Makefile.am): Likewise.
56742         * modules/filemode (Makefile.am): Likewise.
56743         * modules/filenamecat (Makefile.am): Likewise.
56744         * modules/fnmatch (Makefile.am): Likewise.
56745         * modules/fopen-safer (Makefile.am): Likewise.
56746         * modules/fpending (Makefile.am): Likewise.
56747         * modules/fprintftime (Makefile.am): Likewise.
56748         * modules/free (Makefile.am): Likewise.
56749         * modules/fsusage (Makefile.am): Likewise.
56750         * modules/ftruncate (Makefile.am): Likewise.
56751         * modules/fts (Makefile.am): Likewise.
56752         * modules/gc (Makefile.am): Likewise.
56753         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56754         * modules/getaddrinfo (Makefile.am): Likewise.
56755         * modules/getcwd (Makefile.am): Likewise.
56756         * modules/getdelim (Makefile.am): Likewise.
56757         * modules/getdomainname (Makefile.am): Likewise.
56758         * modules/getgroups (Makefile.am): Likewise.
56759         * modules/gethostname (Makefile.am): Likewise.
56760         * modules/gethrxtime (Makefile.am): Likewise.
56761         * modules/getline (Makefile.am): Likewise.
56762         * modules/getloadavg (Makefile.am): Likewise.
56763         * modules/getlogin_r (Makefile.am): Likewise.
56764         * modules/getopt (Makefile.am): Likewise.
56765         * modules/getpass (Makefile.am): Likewise.
56766         * modules/getpass-gnu (Makefile.am): Likewise.
56767         * modules/getsubopt (Makefile.am): Likewise.
56768         * modules/gettime (Makefile.am): Likewise.
56769         * modules/gettimeofday (Makefile.am): Likewise.
56770         * modules/getugroups (Makefile.am): Likewise.
56771         * modules/getusershell (Makefile.am): Likewise.
56772         * modules/glob (Makefile.am): Likewise.
56773         * modules/group-member (Makefile.am): Likewise.
56774         * modules/hard-locale (Makefile.am): Likewise.
56775         * modules/hash (Makefile.am): Likewise.
56776         * modules/hmac-md5 (Makefile.am): Likewise.
56777         * modules/hmac-sha1 (Makefile.am): Likewise.
56778         * modules/human (Makefile.am): Likewise.
56779         * modules/idcache (Makefile.am): Likewise.
56780         * modules/imaxabs (Makefile.am): Likewise.
56781         * modules/imaxdiv (Makefile.am): Likewise.
56782         * modules/inet_ntop (Makefile.am): Likewise.
56783         * modules/inet_pton (Makefile.am): Likewise.
56784         * modules/inttostr (Makefile.am): Likewise.
56785         * modules/isapipe (Makefile.am): Likewise.
56786         * modules/lchown (Makefile.am): Likewise.
56787         * modules/long-options (Makefile.am): Likewise.
56788         * modules/lstat (Makefile.am): Likewise.
56789         * modules/malloc (Makefile.am): Likewise.
56790         * modules/mathl (Makefile.am): Likewise.
56791         * modules/mbchar (Makefile.am): Likewise.
56792         * modules/md2 (Makefile.am): Likewise.
56793         * modules/md4 (Makefile.am): Likewise.
56794         * modules/md5 (Makefile.am): Likewise.
56795         * modules/memcasecmp (Makefile.am): Likewise.
56796         * modules/memchr (Makefile.am): Likewise.
56797         * modules/memcmp (Makefile.am): Likewise.
56798         * modules/memcoll (Makefile.am): Likewise.
56799         * modules/memcpy (Makefile.am): Likewise.
56800         * modules/memmem (Makefile.am): Likewise.
56801         * modules/memmove (Makefile.am): Likewise.
56802         * modules/mempcpy (Makefile.am): Likewise.
56803         * modules/memrchr (Makefile.am): Likewise.
56804         * modules/memset (Makefile.am): Likewise.
56805         * modules/memxor (Makefile.am): Likewise.
56806         * modules/mkancesdirs (Makefile.am): Likewise.
56807         * modules/mkdir (Makefile.am): Likewise.
56808         * modules/mkdir-p (Makefile.am): Likewise.
56809         * modules/mkdtemp (Makefile.am): Likewise.
56810         * modules/mkstemp (Makefile.am): Likewise.
56811         * modules/mktime (Makefile.am): Likewise.
56812         * modules/modechange (Makefile.am): Likewise.
56813         * modules/mountlist (Makefile.am): Likewise.
56814         * modules/nanosleep (Makefile.am): Likewise.
56815         * modules/openat (Makefile.am): Likewise.
56816         * modules/pagealign_alloc (Makefile.am): Likewise.
56817         * modules/physmem (Makefile.am): Likewise.
56818         * modules/poll (Makefile.am): Likewise.
56819         * modules/posixtm (Makefile.am): Likewise.
56820         * modules/posixver (Makefile.am): Likewise.
56821         * modules/putenv (Makefile.am): Likewise.
56822         * modules/quote (Makefile.am): Likewise.
56823         * modules/quotearg (Makefile.am): Likewise.
56824         * modules/raise (Makefile.am): Likewise.
56825         * modules/read-file (Makefile.am): Likewise.
56826         * modules/readline (Makefile.am): Likewise.
56827         * modules/readlink (Makefile.am): Likewise.
56828         * modules/readtokens (Makefile.am): Likewise.
56829         * modules/readutmp (Makefile.am): Likewise.
56830         * modules/realloc (Makefile.am): Likewise.
56831         * modules/regex (Makefile.am): Likewise.
56832         * modules/rename (Makefile.am): Likewise.
56833         * modules/rename-dest-slash (Makefile.am): Likewise.
56834         * modules/rijndael (Makefile.am): Likewise.
56835         * modules/rmdir (Makefile.am): Likewise.
56836         * modules/rpmatch (Makefile.am): Likewise.
56837         * modules/safe-read (Makefile.am): Likewise.
56838         * modules/safe-write (Makefile.am): Likewise.
56839         * modules/same (Makefile.am): Likewise.
56840         * modules/save-cwd (Makefile.am): Likewise.
56841         * modules/savedir (Makefile.am): Likewise.
56842         * modules/setenv (Makefile.am): Likewise.
56843         * modules/settime (Makefile.am): Likewise.
56844         * modules/sha1 (Makefile.am): Likewise.
56845         * modules/sig2str (Makefile.am): Likewise.
56846         * modules/snprintf (Makefile.am): Likewise.
56847         * modules/stdlib-safer (Makefile.am): Likewise.
56848         * modules/stpcpy (Makefile.am): Likewise.
56849         * modules/stpncpy (Makefile.am): Likewise.
56850         * modules/strcase (Makefile.am): Likewise.
56851         * modules/strcasestr (Makefile.am): Likewise.
56852         * modules/strchrnul (Makefile.am): Likewise.
56853         * modules/strcspn (Makefile.am): Likewise.
56854         * modules/strdup (Makefile.am): Likewise.
56855         * modules/strerror (Makefile.am): Likewise.
56856         * modules/strftime (Makefile.am): Likewise.
56857         * modules/strndup (Makefile.am): Likewise.
56858         * modules/strnlen (Makefile.am): Likewise.
56859         * modules/strpbrk (Makefile.am): Likewise.
56860         * modules/strsep (Makefile.am): Likewise.
56861         * modules/strstr (Makefile.am): Likewise.
56862         * modules/strtod (Makefile.am): Likewise.
56863         * modules/strtoimax (Makefile.am): Likewise.
56864         * modules/strtok_r (Makefile.am): Likewise.
56865         * modules/strtol (Makefile.am): Likewise.
56866         * modules/strtoll (Makefile.am): Likewise.
56867         * modules/strtoul (Makefile.am): Likewise.
56868         * modules/strtoull (Makefile.am): Likewise.
56869         * modules/strtoumax (Makefile.am): Likewise.
56870         * modules/strverscmp (Makefile.am): Likewise.
56871         * modules/time_r (Makefile.am): Likewise.
56872         * modules/timegm (Makefile.am): Likewise.
56873         * modules/tmpfile-safer (Makefile.am): Likewise.
56874         * modules/unistd-safer (Makefile.am): Likewise.
56875         * modules/unlinkdir (Makefile.am): Likewise.
56876         * modules/userspec (Makefile.am): Likewise.
56877         * modules/utime (Makefile.am): Likewise.
56878         * modules/utimecmp (Makefile.am): Likewise.
56879         * modules/utimens (Makefile.am): Likewise.
56880         * modules/vasnprintf (Makefile.am): Likewise.
56881         * modules/vasprintf (Makefile.am): Likewise.
56882         * modules/vsnprintf (Makefile.am): Likewise.
56883         * modules/xalloc (Makefile.am): Likewise.
56884         * modules/xgetcwd (Makefile.am): Likewise.
56885         * modules/xnanosleep (Makefile.am): Likewise.
56886         * modules/xreadlink (Makefile.am): Likewise.
56887         * modules/xstrtod (Makefile.am): Likewise.
56888         * modules/xstrtol (Makefile.am): Likewise.
56889         * modules/xstrtold (Makefile.am): Likewise.
56890         * modules/yesno (Makefile.am): Likewise.
56891
56892 2006-10-12  Jim Meyering  <jim@meyering.net>
56893
56894         * m4/getloadavg.m4: Revert the change below.
56895
56896         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56897         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56898         fail with a symlink, which is what coreutils' ./bootstrap now
56899         creates by default.
56900
56901 2006-10-12  Bruno Haible  <bruno@clisp.org>
56902
56903         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56904         mingw.
56905         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56906         MSVC and mingw explicitly.
56907
56908 2006-10-11  Simon Josefsson  <jas@extundo.com>
56909             Bruno Haible  <bruno@clisp.org>
56910
56911         Add support for multiple gnulib-tool invocations in the scope of a
56912         single configure.ac file.
56913         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56914         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56915         with the same contents as the _LIBADD variable.
56916         (func_emit_initmacro_start, func_emit_initmacro_end,
56917         func_emit_initmacro_done): New functions.
56918         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56919         gl_LIBOBJS and gl_LTLIBOBJS.
56920
56921 2006-10-11  Bruno Haible  <bruno@clisp.org>
56922
56923         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56924         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56925         autoreconf. Instead, invoke autopoint explicitly but move back the
56926         *.m4 files from gnulib.
56927
56928 2006-10-11  Bruno Haible  <bruno@clisp.org>
56929
56930         * gnulib-tool (func_usage): Make module names after --create-testdir
56931         optional.
56932         (func_create_testdir): If no module was specified, use nearly all
56933         modules.
56934
56935 2006-10-12  Jim Meyering  <jim@meyering.net>
56936
56937         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56938         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56939         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56940         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56941         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56942         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56943         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56944         (fts_set_stat_required): New function.
56945         (fts_open): Defer the calls to fts_stat, if possible or requested.
56946         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56947         into fts_stat itself.
56948         (fts_read): Perform any required (deferred) fts_stat call.
56949         (fts_build): Likewise, for the directory we're about to open and read.
56950         In the readdir loop, carefully decide whether each entry will require
56951         an eventual call to fts_stat, using dirent.d_type info if available.
56952         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56953         a command line argument into this function.  Update all callers.
56954         Map a return value of FTS_DOT to FTS_D for a command line argument.
56955         * modules/fts (Depends-on): Add d-type.  Alphabetize.
56956         Thanks to Miklos Szeredi for his tenacity and for the initial
56957         bug report about "find" failing on a FUSE-based file system.
56958
56959         * lib/fts.c (fts_open): Use consistent indentation.
56960
56961 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56962
56963         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
56964         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
56965         reported by Jim Meyering.  All uses of cache variables renamed
56966         to match Autoconf's.
56967         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
56968         the other one.
56969
56970         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56971         Fix misspelling in diagnostic.
56972
56973 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56974
56975         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
56976         defined.  Problem reported by Matthew Woehlke.
56977
56978         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
56979         Add support for Tandem NonStop R series.
56980         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
56981         Use new macro.
56982
56983         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
56984         (has_trailing_slash): Omit size arg; all callers changed.
56985         Omit 'inline', since it doesn't help performance and we'd
56986         need to configure it.
56987         Don't count //, ///, etc. as having a trailing slash.
56988         As a side effect, this removes a C99ism reported by Matthew Woehlke.
56989         (rpl_rename_dest_slash): On failure, use rename's errno rather
56990         than (in some cases) an incorrect or junk errno.
56991         Simplify code by removing need to compute length; this does
56992         cause it to make two passes instead of one over the file name,
56993         but it's worth it.
56994
56995         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
56996         change, since Autoconf's version may no longer be appropriate now
56997         that we are using CVS Autoconf's version.  Add support for Tandem.
56998
56999 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57000             Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57003         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57004         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57005         gl_AC_TYPE_LONG_LONG.
57006
57007         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57008         instead of HAVE_LONG_LONG.
57009         * lib/printf-args.c (printf_fetchargs): Likewise.
57010         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57011         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57012         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57013         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57014         gl_AC_TYPE_LONG_LONG.
57015
57016 2006-10-11  Bruno Haible  <bruno@clisp.org>
57017
57018         * m4/longlong.m4: Add comments.
57019         * m4/ulonglong.m4: Likewise.
57020
57021 2006-10-10  Bruno Haible  <bruno@clisp.org>
57022
57023         Make it possible to #define stpcpy, strdup to aliases.
57024         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57025         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57026
57027 2006-10-10  Bruno Haible  <bruno@clisp.org>
57028
57029         Make it possible to #define gcd to an alias.
57030         * lib/gcd.c: Include config.h.
57031
57032 2006-10-10  Bruno Haible  <bruno@clisp.org>
57033
57034         Make it possible to #define c_isascii to an alias.
57035         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57036         defined. Undefine the macros before defining them, to avoid gcc
57037         warnings.
57038         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57039         define NO_C_CTYPE_MACROS early.
57040
57041 2006-10-10  Bruno Haible  <bruno@clisp.org>
57042
57043         Make it possible to #define set_program_name to an alias.
57044         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57045         ENABLE_RELOCATABLE early.
57046
57047 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57048
57049         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57050         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57051         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57052         More generally, don't assume that 64-bit signed int is available
57053         if unsigned int is, and vice versa.
57054         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57055         unsigned symbols, not on their signed counterparts.
57056         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57057         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57058         (UINT64_C, UINTMAX_C):
57059         Likewise.
57060         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57061         unsigned counterparts.
57062         (Have_long_long, Unsigned): New macros.
57063         (Int): Renamed from INT.
57064         (strtoimax): Use the new macros.
57065         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57066         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57067         * modules/inttypes (inttypes.h): Substitute
57068         HAVE_UNSIGNED_LONG_LONG_INT.
57069         * modules/stdint (stdint.h): Likewise.
57070         (Files): Add m4/ulonglong.m4.
57071
57072 2006-10-10  Bruno Haible  <bruno@clisp.org>
57073
57074         Fix a gcc -Wshadow warning.
57075         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57076         to 'bucket'.
57077         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57078         gl_linked_indexof_from_to): Likewise.
57079         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57080         Likewise.
57081         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57082         Likewise.
57083         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57084         Reported by Eric Blake.
57085
57086 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57087
57088         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57089         for NetBSD.  Problem reported by Bruno Haible.
57090
57091 2006-10-09  Jim Meyering  <jim@meyering.net>
57092
57093         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57094         Patch from Bruno Haible.
57095
57096 2006-10-09  Jim Meyering  <jim@meyering.net>
57097
57098         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57099         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57100         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57101
57102 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57103
57104         Don't include <config.h> twice; this doesn't work in some cases,
57105         e.g., when config.h has "#define intmax_t long long int" and
57106         we include <config.h>, <inttypes.h>, <config.h> in that order.
57107         Problem reported by Matthew Woehlke in:
57108         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57109         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57110         * lib/fts-cycle.c: Don't include config.h.
57111         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57112         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57113         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57114         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57115         inttypes.h.
57116         * lib/xstrtoumax.c: Likewise.
57117         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57118         __strtol and the like, so that this module is more like its siblings.
57119         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57120         Remove; no longer needed now that we assume gnulib inttypes.h.
57121
57122 2006-10-08  Bruno Haible  <bruno@clisp.org>
57123
57124         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57125         option.
57126
57127 2006-10-07  Jim Meyering  <jim@meyering.net>
57128
57129         * modules/inttypes (inttypes.h): Revert what seems to have been
57130         an inadvertent part of today's change: use "|", not "/" in the
57131         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57132
57133 2006-10-07  Bruno Haible  <bruno@clisp.org>
57134
57135         * modules/sublist: New file.
57136
57137 2006-10-07  Bruno Haible  <bruno@clisp.org>
57138
57139         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57140         * modules/argz (argz.h): Likewise.
57141         * modules/arpa_inet (arpa/inet.h): Likewise.
57142         * modules/byteswap (byteswap.h): Likewise.
57143         * modules/configmake (configmake.h): Likewise.
57144         * modules/fcntl (fcntl.h): Likewise.
57145         * modules/fnmatch (fnmatch.h): Likewise.
57146         * modules/getopt (getopt.h): Likewise.
57147         * modules/glob (glob.h): Likewise.
57148         * modules/inttypes (inttypes.h): Likewise.
57149         * modules/netinet_in (netinet/in.h): Likewise.
57150         * modules/poll (poll.h): Likewise.
57151         * modules/stdbool (stdbool.h): Likewise.
57152         * modules/stdint (stdint.h): Likewise.
57153         * modules/sys_select (sys/select.h): Likewise.
57154         * modules/sys_socket (sys/socket.h): Likewise.
57155         * modules/sys_stat (sys/stat.h): Likewise.
57156         * modules/sysexits (sysexits.h): Likewise.
57157         * modules/unistd (unistd.h): Likewise.
57158         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57159         Add a "DO NOT EDIT" comment to the generated file.
57160         (func_import): Likewise for gnulib-comp.m4.
57161
57162 2006-10-07  Bruno Haible  <bruno@clisp.org>
57163
57164         * lib/gl_sublist.h: New file.
57165         * lib/gl_sublist.c: New file.
57166
57167 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57168
57169         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57170         name (relative to the original working directory) and the file
57171         name component (relative to the temporary working directory).  All
57172         callers changed.
57173         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57174         * lib/mkdir-p.c (make_dir_parents): Likewise.
57175         * lib/mkdir-p.h (make_dir_parents): Likewise.
57176
57177 2006-10-06  Eric Blake  <ebb9@byu.net>
57178
57179         Define several macros for use by the clean-temp module.
57180         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57181         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57182         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57183
57184         * lib/clean-temp.h (close_stream_temp): New declaration.
57185         * lib/clean-temp.c (includes): Pull in headers according to what
57186         other modules are in use.
57187         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57188
57189 2006-10-06  Bruno Haible  <bruno@clisp.org>
57190
57191         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57192         instead of fopen, fwriteerror.
57193
57194 2006-10-06  Bruno Haible  <bruno@clisp.org>
57195
57196         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57197         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57198         int.
57199         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57200         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57201         Return an error indicator.
57202         Suggested by Eric Blake.
57203
57204 2006-10-06  Bruno Haible  <bruno@clisp.org>
57205
57206         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57207         Reported by Eric Blake.
57208
57209 2006-10-06  Bruno Haible  <bruno@clisp.org>
57210
57211         * modules/closeout (Description): Mention stderr too.
57212
57213 2006-10-06  Bruno Haible  <bruno@clisp.org>
57214         and Paul Eggert  <eggert@cs.ucla.edu>
57215
57216         * lib/closeout.c (close_stdout): Also close stderr.
57217         * lib/closeout.h: Update comment.
57218
57219 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57220
57221         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57222         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57223         * lib/dirchownmod.c: Include lchown.h.
57224         * lib/lchown.c: Don't include files that lchown.h now includes.
57225         Don't declare chown, since lchown.h now does that.
57226         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57227         (lchown): Define to rpl_chown if lchown is declared but
57228         does not exist.  Declare using a prototype if lchown is not
57229         declared.  Add a copyright notice.
57230         * lib/mkstemp.h: Include <unistd.h>.
57231         * lib/openat.c: Include lchown.h.
57232
57233         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57234         we now test for that separately.
57235         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57236         rather than O_NOFOLLOW, when testing whether it's possible to
57237         avoid a race condition reliably.
57238         * lib/savewd.c (savewd_chdir): Likewise.
57239
57240         Remove macros that are no longer needed now that stdint.h is
57241         reliable.
57242         * lib/fsusage.c (UINTMAX_MAX): Remove.
57243         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57244         * lib/utimecmp.c (SIZE_MAX): Remove.
57245
57246         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57247
57248         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57249         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57250         O_NOATIME works.
57251
57252 2006-10-05  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/gl_list.h (gl_sortedlist_search_from_to,
57255         gl_sortedlist_indexof_from_to): New declarations.
57256         (gl_list_implementation): New fields sortedlist_search_from_to,
57257         sortedlist_indexof_from_to.
57258         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57259         inline functions.
57260         * lib/gl_list.c (gl_sortedlist_search_from_to,
57261         gl_sortedlist_indexof_from_to): New functions.
57262         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57263         function.
57264         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57265         (gl_array_sortedlist_search_from_to): New function.
57266         (gl_array_list_implementation): Update.
57267         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57268         function.
57269         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57270         (gl_carray_sortedlist_search_from_to): New function.
57271         (gl_carray_list_implementation): Update.
57272         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57273         gl_linked_sortedlist_indexof_from_to): New functions.
57274         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57275         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57276         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57277         gl_tree_sortedlist_indexof_from_to): New functions.
57278         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57279         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57280         Update.
57281         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57282         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57283         Update.
57284
57285 2006-10-05  Bruno Haible  <bruno@clisp.org>
57286
57287         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57288         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57289         (struct gl_list_implementation): Add fields search_from_to,
57290         indexof_from_to. Remove fields search, indexof.
57291         (gl_list_search): Use the search_from_to method.
57292         (gl_list_search_from, gl_list_search_from_to): New functions.
57293         (gl_list_indexof): Use the indexof_from_to method.
57294         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57295         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57296         (gl_list_search_from, gl_list_search_from_to): New functions.
57297         (gl_list_indexof): Use the indexof_from_to method.
57298         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57299         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57300         gl_array_indexof. Add start_index, end_index arguments.
57301         (gl_array_search_from_to): Renamed from gl_array_search. Add
57302         start_index, end_index arguments.
57303         (gl_array_remove, gl_array_list_implementation): Update.
57304         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57305         gl_carray_indexof. Add start_index, end_index arguments.
57306         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57307         start_index, end_index arguments.
57308         (gl_carray_remove, gl_carray_list_implementation): Update.
57309         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57310         gl_linked_search. Add start_index, end_index arguments.
57311         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57312         start_index, end_index arguments.
57313         (gl_linked_remove): Update.
57314         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57315         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57316         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57317         field to 'size_t'.
57318         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57319         gl_tree_search. Add start_index, end_index arguments.
57320         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57321         start_index, end_index arguments.
57322         (gl_tree_remove): Update.
57323         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57324         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57325         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57326         function.
57327         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57328         gl_tree_search. Add start_index, end_index arguments.
57329         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57330         start_index, end_index arguments.
57331         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57332         Update.
57333         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57334
57335 2006-10-05  Bruno Haible  <bruno@clisp.org>
57336
57337         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57338
57339         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57340         fwriteerror_temp): New declarations.
57341         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57342         (descriptors): New variable.
57343         (cleanup): First, close the descriptors.
57344         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57345         fclose_temp, fwriteerror_temp): New functions.
57346
57347 2006-10-04  Jim Meyering  <jim@meyering.net>
57348
57349         * lib/fts.c (fts_open): Tiny comment change.
57350
57351 2006-10-04  Bruno Haible  <bruno@clisp.org>
57352
57353         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57354         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57355         gl_LOCK_BODY.
57356         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57357         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57358         gl_LOCK_EARLY_BODY.
57359         (gl_LOCK): Require gl_LOCK_BODY.
57360
57361 2006-10-04  Bruno Haible  <bruno@clisp.org>
57362
57363         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57364         (gl_oset_search_atleast): New declaration.
57365         (struct gl_oset_implementation): Add field 'search_atleast'.
57366         (gl_oset_search_atleast): New inline function.
57367         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57368         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57369         (gl_array_oset_implementation): Update.
57370         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57371         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57372         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57373
57374 2006-10-04  Bruno Haible  <bruno@clisp.org>
57375
57376         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57377
57378 2006-10-03  Bruno Haible  <bruno@clisp.org>
57379
57380         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57381         from gl_avltreehash_list_implementation.
57382
57383 2006-10-03  Bruno Haible  <bruno@clisp.org>
57384
57385         * lib/gl_oset.c (gl_oset_add): Fix return type.
57386
57387 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57388
57389         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57390
57391 2006-10-02  Eric Blake  <ebb9@byu.net>
57392
57393         * modules/strnlen (Depends-on): Add extensions.
57394
57395 2006-10-02  Eric Blake  <ebb9@byu.net>
57396
57397         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57398         definition in 2.60+.
57399
57400 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57401
57402         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57403         checks.
57404
57405 2006-10-02  Bruno Haible  <bruno@clisp.org>
57406
57407         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57408         to the AUTOMAKE_OPTIONS.
57409         Reported by Jim Meyering.
57410
57411 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57412
57413         Work around bug in Solaris 10 /proc file system:
57414         /proc/self/fd/NNN/.. isn't the parent directory of
57415         the directory whose file descriptor is NNN.  This needs to
57416         be worked around at run time, not compile time, since a
57417         program might be built on Solaris 8, where things work, and
57418         run on Solaris 10.
57419         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57420         to use the following interface instead:
57421         (OPENAT_BUFFER_SIZE): New macro.
57422         (openat_proc_name): New function.
57423         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57424         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57425         Likewise.
57426         * lib/openat-proc.c: New file.
57427         * modules/openat (Files): Add lib/openat-proc.c.
57428         (Depends-on): Add same-inode, stdbool.
57429         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57430
57431 2006-09-29  Bruno Haible  <bruno@clisp.org>
57432
57433         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57434         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57435         argument. Set stdout_closed before testing for ferror, not after.
57436         (fwriteerror, fwriteerror_no_ebadf): New functions.
57437
57438 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57439
57440         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57441
57442 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57443
57444         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57445         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57446
57447 2006-09-28  Jim Meyering  <jim@meyering.net>
57448
57449         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57450         Include <unistd.h>.
57451
57452 2006-09-28  Bruno Haible  <bruno@clisp.org>
57453
57454         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57455         * modules/linkedhash-list (Depends-on): Likewise.
57456         * modules/rbtreehash-list (Depends-on): Likewise.
57457
57458 2006-09-28  Bruno Haible  <bruno@clisp.org>
57459
57460         * lib/strndup.h: Simplify the redefinition of strndup.
57461         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57462         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57463
57464 2006-09-28  Bruno Haible  <bruno@clisp.org>
57465
57466         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57467         * lib/gl_linkedhash_list.c: Likewise.
57468         * lib/gl_rbtreehash_list.c: Likewise.
57469
57470 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57471
57472         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57473         getaddrinfo.
57474
57475         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57476         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57477         it causes <stdio_ext.h> to cause a compile-time error.
57478         Problem reported by Nelson H. F. Beebe.
57479         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57480         of HAVE_DECL___PENDING.
57481
57482         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57483         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57484         declaration.
57485
57486 2006-09-27  Jim Meyering  <jim@meyering.net>
57487
57488         This file could end up with a definition for a function
57489         named __strndup, rather than rpl_strndup on a system with
57490         incomplete weak_alias support.
57491         * lib/strndup.c (strndup): Rename from __strndup.
57492         Remove #defines that used to map __strndup to strndup.
57493         Don't use K&R prototypes.
57494         Remove LIBC-related code, since this file is not sync'd with glibc.
57495         * lib/strndup.h: Revamp, accordingly.
57496         * m4/strndup.m4: Modernize.
57497
57498 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57499
57500         * modules/savewd (Depends-on): Add 'raise'.
57501         * lib/savewd.c: Include <signal.h>, for 'raise'.
57502
57503 2006-09-26  Jim Meyering  <jim@meyering.net>
57504
57505         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57506         when we detect Darwin 8.7.0's acl_get_file bug.
57507         Rearrange to perform the new (below) run-test while $LIBS
57508         contains any acl-related library.  Set USE_ACL at the end.
57509         (gl_ACL_GET_FILE): New function.
57510
57511 2006-09-26  Eric Blake  <ebb9@byu.net>
57512
57513         * lib/verror.c: Include <config.h> unconditionally.
57514
57515 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57516
57517         * modules/clock-time (Maintainer): Add self.
57518         * modules/getlogin_r (Depends-on): Add extensions.
57519
57520 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57521
57522         * modules/clock-time: New module.
57523         * modules/nanosleep (Depends-on): Add clock-time.
57524         * modules/gethrxtime (Depends-on): Likewise.
57525         * modules/gettime (Depends-on): Likewise.
57526         * modules/settime (Depends-on): Likewise.
57527
57528         * modules/fts-lgpl: Depend on openat.
57529         * modules/mkancesdirs: Depend on savewd.
57530         * modules/mkdir-p: Likewise.
57531
57532 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57533
57534         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57535
57536         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57537         `gl_have_arbitrary_file_name_length_limit' to
57538         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57539         actually works between configure runs.
57540
57541 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57542             Bruno Haible  <bruno@clisp.org>
57543
57544         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57545
57546 2006-09-25  Jim Meyering  <jim@meyering.net>
57547
57548         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57549         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57550
57551 2006-09-25  Eric Blake  <ebb9@byu.net>
57552
57553         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57554         exec's in 2006-09-18 patch when shuffling fds.
57555
57556 2006-09-25  Bruno Haible  <bruno@clisp.org>
57557
57558         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57559         Reported by Jim Meyering.
57560
57561 2006-09-24  Jim Meyering  <jim@meyering.net>
57562
57563         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57564         compare a pointer against a literal "0".  That caused failures with
57565         at least HP-UX's hpcc.
57566
57567 2006-09-22  Simon Josefsson  <jas@extundo.com>
57568
57569         * modules/gc-sha1:
57570         * modules/gc-md4:
57571         * modules/gc-hmac-sha1:
57572         * modules/gc-hmac-md5:
57573         * modules/gc-des:
57574         * modules/gc-arcfour: Distribute more files.
57575
57576 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57577
57578         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57579         (gl_linked_iterator_from_to): Initialize struct completely.
57580         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57581         (gl_tree_iterator_from_to): Likewise
57582         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57583         * lib/gl_array_list.c [lint] (gl_array_iterator)
57584         (gl_array_iterator_from_to): Likewise.
57585         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57586         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57587         (gl_carray_iterator_from_to): Likewise.
57588
57589         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57590         * lib/md4.c (md4_process_block): Remove unused variable.
57591         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57592         parentheses for clarity.
57593
57594 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57595
57596         * modules/bison-i18n (Depends-on): Add gettext.
57597
57598 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57599
57600         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57601         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57602         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57603         also add missing comma that caused broken test.
57604         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57605         stdlib.h, for `abort'.
57606         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57607         variables.
57608         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57609         include unistd.h if present, for `rmdir'.
57610         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57611         variables.
57612         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57613         in the process include standard headers for prototypes.
57614         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57615         gets declared on GNU/Linux.
57616         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57617         unistd.h, for `rmdir'.
57618         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57619
57620         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57621         always true.
57622         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57623
57624         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57625
57626 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57627
57628         * gnulib-tool (func_version): Create output all at once.  This
57629         may help avoid triggering unnecessary SIGPIPEs, and at any
57630         rate it doesn't hurt.
57631
57632 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57633             Bruno Haible  <bruno@clisp.org>
57634
57635         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57636         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57637         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57638
57639         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57640         (gl_FUNC_VASPRINTF): Invoke it.
57641
57642 2006-09-22  Bruno Haible  <bruno@clisp.org>
57643
57644         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57645         getloadavg.c as first argument.
57646
57647 2006-09-22  Bruno Haible  <bruno@clisp.org>
57648
57649         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57650         at the beginning of the gl_INIT macro.
57651         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57652         gl_GETLOADAVG.
57653
57654 2006-09-22  Bruno Haible  <bruno@clisp.org>
57655
57656         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57657         module.
57658         Suggested by Ralf Wildenhues.
57659
57660 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57661
57662         Import this patch from libc:
57663
57664         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57665
57666         * lib/regex_internal.c (re_string_reconstruct): Handle
57667         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57668         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57669         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57670         re_string_context_at.
57671
57672         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57673         now requires it.
57674         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57675         gl_REGEX now does it for us.
57676         (gl_REGEX): Add test taken from
57677         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57678
57679         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57680         Check that large offsets work.  Modernize Autoconf usages.
57681         Prefer "yes" to mean a good thing rather than a bad.
57682         Don't put "#define mkstemp" in config.h, as this might interfere
57683         with standard system headers that "#define mkstemp mkstemp64".
57684
57685         * modules/mkstemp (Depends-on): Add extensions, so that
57686         mkstemp is visible on some platforms.
57687         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57688         (Include): Change to "mkstemp.h" from <stdlib.h>.
57689         (Files): Add mkstemp.h.
57690
57691         * lib/mkstemp.h: New file, since some standard headers
57692         #define mkstemp.
57693         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57694         Include "mkstemp.h".
57695         Make the _LIBC code resemble glibc original more,
57696         e.g., use K&R style.
57697         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57698         (mkstemp): Remove, since mkstemp.h does this for us.
57699         * lib/stdlib--.h: Include mkstemp.h.
57700
57701         Import this patch from libc:
57702
57703         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57704
57705         * lib/tempname.c (__gen_tempname): Change attempts_min
57706         into a macro.  Use preprocessor to decide how to initialize
57707         attempts [Coverity CID 67].
57708
57709 2006-09-20  Bruno Haible  <bruno@clisp.org>
57710
57711         * lib/mkdtemp.c: Import from libc.
57712         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57713                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57714                 attempts_min into a macro.  Use preprocessor to decide how to
57715                 initialize attempts [Coverity CID 67].
57716         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57717                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57718                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57719
57720 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57721
57722         * gnulib-tool (func_exit): New function, to allow to pass the
57723         exit status portably through the trap.  Use everywhere.
57724         (--help, --version): Signal a write error.
57725         (trap): catch SIGPIPE, for write errors.
57726         Exit at the end of the trap, with the correct exit status.
57727
57728 2006-09-19  Karl Berry  <karl@gnu.org>
57729
57730         * doc/gnulib.texi: note about the license texinfo files.
57731
57732 2006-09-19  Eric Blake  <ebb9@byu.net>
57733
57734         * gnulib-tool: Avoid space-tab.
57735
57736 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57737
57738         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57739         that prevented coreutils 6.1 from building.  Problem reported
57740         by Petter Reinholdtsen.
57741
57742 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57743
57744         * gnulib-tool (avoidlist): Fix typo that broke options like
57745         --avoid=lock that are used by coreutils bootstrap.
57746
57747 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57748
57749         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57750         more systematically.
57751
57752 2006-09-18  Jim Meyering  <jim@meyering.net>
57753
57754         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57755
57756 2006-09-18  Bruno Haible  <bruno@clisp.org>
57757
57758         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57759
57760 2006-09-18  Bruno Haible  <bruno@clisp.org>
57761
57762         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57763         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57764         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57765         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57766         * m4/gettext.m4: Require autoconf >= 2.52.
57767         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57768         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57769         of gl_cv_header_inttypes_h.
57770
57771 2006-09-18  Bruno Haible  <bruno@clisp.org>
57772
57773         * lib/javaversion.c: Include configmake.h.
57774
57775 2006-09-18  Bruno Haible  <bruno@clisp.org>
57776
57777         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57778         avoid that the while loops be executed in a subshell.
57779
57780 2006-09-18  Bruno Haible  <bruno@clisp.org>
57781
57782         * MODULES.html.sh (func_module): Break long lines.
57783         Suggested by Bruce Korb <bkorb@gnu.org>.
57784
57785 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57786
57787         Speed up by a factor of 1.12.
57788         * gnulib-tool (nl): New variable.
57789         (func_import): Rewrite include directive extraction to only read each
57790         directive once.
57791
57792 2006-09-17  Bruno Haible  <bruno@clisp.org>
57793
57794         * modules/javaversion (Makefile.am): Remove DEFS setting.
57795         (Depends-on): Add configmake, for PKGDATADIR definition.
57796
57797 2006-09-17  Bruno Haible  <bruno@clisp.org>
57798
57799         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57800
57801 2006-09-17  Bruno Haible  <bruno@clisp.org>
57802
57803         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57804         (func_modules_transitive_closure, func_modules_add_dummy,
57805         func_modules_to_filelist, func_import, func_create_testdir,
57806         func_create_megatestdir, ...): Use it wherever possible.
57807         Suggested by Ralf Wildenhues.
57808
57809 2006-09-16  Karl Berry  <karl@gnu.org>
57810
57811         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57812         to avoid sectioning errors.
57813         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57814         [ifinfo]: blank line after @center-ed titles.
57815         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57816         Spell FSF address consistently with others.
57817         (These changes approved by rms.)
57818
57819 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57820
57821         Speed up by a factor of 1.61.
57822         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57823         already checked module names again.
57824
57825 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57826
57827         Speed up by a factor of 1.13.
57828         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57829         for new_files, and the input to func_add_or_update.
57830
57831 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57832
57833         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57834         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57835
57836 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57837
57838         * modules/mkancesdirs (Depends-on): Add fcntl.
57839         * modules/savewd: New file.
57840         * MODULES.html.sh (File system functions): Add savewd.
57841
57842         * modules/configmake (Makefile.am): Add support for the
57843         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57844
57845 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57846
57847         * m4/savewd.m4: New file.
57848
57849 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57850
57851         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57852         (dirchownmod): New arg FD.  All callers changed.
57853         Use FD rather than opening the directory ourself, as opening is
57854         now the caller's responsibility.
57855         * lib/dirchownmod.h: Likewise.
57856         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57857         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57858         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57859         (test_dir): Remove.
57860         (mkancesdirs): Return length of prefix of FILE that has already
57861         been made, or -2 if there is a child doing the work.  Redo
57862         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57863         ".", and treat ".." specially since it might stray back into
57864         already-created areas.  Use a subprocess if necessary.  New arg
57865         WD; all users changed.  MAKE_DIR function should now return 1
57866         if it creates a directory that is not readable.  Return -2 if
57867         a child process is spun off.
57868         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57869         Adjust signature to match code.
57870         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57871         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57872         all users changed.
57873         * lib/savewd.c, lib/savewd.h: New files.
57874
57875 2006-09-15  Jim Meyering  <jim@meyering.net>
57876
57877         * modules/rename-dest-slash: New module.
57878         * MODULES.html.sh (posix_compat): Add it here.
57879
57880         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57881
57882 2006-09-15  Jim Meyering  <jim@meyering.net>
57883
57884         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57885         file.
57886
57887         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57888
57889 2006-09-15  Jim Meyering  <jim@meyering.net>
57890
57891         * lib/rename-dest-slash.c (has_trailing_slash): Use
57892         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57893         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57894         test before testing whether SRC is a directory.
57895         Suggestions from Bruno Haible.
57896
57897         Avoid a warning about an unused variable.
57898         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57899         into the #ifdef block where it's used.
57900
57901         * lib/rename-dest-slash.c: New file.
57902
57903 2006-09-14  Bruno Haible  <bruno@clisp.org>
57904
57905         * lib/allocsa.c: Include <config.h> unconditionally.
57906         * lib/asnprintf.c: Likewise.
57907         * lib/asprintf.c: Likewise.
57908         * lib/c-strcasecmp.c: Likewise.
57909         * lib/c-strcasestr.c: Likewise.
57910         * lib/c-strncasecmp.c: Likewise.
57911         * lib/c-strstr.c: Likewise.
57912         * lib/classpath.c: Likewise.
57913         * lib/clean-temp.c: Likewise.
57914         * lib/concatpath.c: Likewise.
57915         * lib/copy-file.c: Likewise.
57916         * lib/csharpcomp.c: Likewise.
57917         * lib/csharpexec.c: Likewise.
57918         * lib/execute.c: Likewise.
57919         * lib/fatal-signal.c: Likewise.
57920         * lib/findprog.c: Likewise.
57921         * lib/fwriteerror.c: Likewise.
57922         * lib/gl_array_list.c: Likewise.
57923         * lib/gl_array_oset.c: Likewise.
57924         * lib/gl_avltree_list.c: Likewise.
57925         * lib/gl_avltree_oset.c: Likewise.
57926         * lib/gl_avltreehash_list.c: Likewise.
57927         * lib/gl_carray_list.c: Likewise.
57928         * lib/gl_linked_list.c: Likewise.
57929         * lib/gl_linkedhash_list.c: Likewise.
57930         * lib/gl_list.c: Likewise.
57931         * lib/gl_oset.c: Likewise.
57932         * lib/gl_rbtree_list.c: Likewise.
57933         * lib/gl_rbtree_oset.c: Likewise.
57934         * lib/gl_rbtreehash_list.c: Likewise.
57935         * lib/imaxabs.c: Likewise.
57936         * lib/imaxdiv.c: Likewise.
57937         * lib/javacomp.c: Likewise.
57938         * lib/javaexec.c: Likewise.
57939         * lib/javaversion.c: Likewise.
57940         * lib/linebreak.c: Likewise.
57941         * lib/localcharset.c: Likewise.
57942         * lib/lock.c: Likewise.
57943         * lib/mbchar.c: Likewise.
57944         * lib/mbswidth.c: Likewise.
57945         * lib/mkdtemp.c: Likewise.
57946         * lib/pipe.c: Likewise.
57947         * lib/printf-args.c: Likewise.
57948         * lib/printf-parse.c: Likewise.
57949         * lib/progname.c: Likewise.
57950         * lib/progreloc.c: Likewise.
57951         * lib/readlink.c: Likewise.
57952         * lib/sh-quote.c: Likewise.
57953         * lib/stpcpy.c: Likewise.
57954         * lib/stpncpy.c: Likewise.
57955         * lib/strcasecmp.c: Likewise.
57956         * lib/strcasestr.c: Likewise.
57957         * lib/strcspn.c: Likewise.
57958         * lib/striconv.c: Likewise.
57959         * lib/strncasecmp.c: Likewise.
57960         * lib/strnlen1.c: Likewise.
57961         * lib/strstr.c: Likewise.
57962         * lib/strtok_r.c: Likewise.
57963         * lib/tls.c: Likewise.
57964         * lib/tmpdir.c: Likewise.
57965         * lib/unicodeio.c: Likewise.
57966         * lib/unsetenv.c: Likewise.
57967         * lib/vasnprintf.c: Likewise.
57968         * lib/vasprintf.c: Likewise.
57969         * lib/wait-process.c: Likewise.
57970         * lib/xallocsa.c: Likewise.
57971         * lib/xsetenv.c: Likewise.
57972         * lib/xstriconv.c: Likewise.
57973
57974 2006-09-13  Simon Josefsson  <jas@extundo.com>
57975
57976         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
57977         that internally, suggested by Ralf Wildenhues
57978         <Ralf.Wildenhues@gmx.de>.
57979
57980 2006-09-13  Simon Josefsson  <jas@extundo.com>
57981
57982         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
57983         @LIBOBJS@.
57984         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57985
57986 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57987
57988         * lib/_fpending.c: Include <config.h> unconditionally, since we no
57989         longer worry about uses that don't define HAVE_CONFIG_H.
57990         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
57991         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
57992         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
57993         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
57994         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
57995         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
57996         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
57997         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
57998         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
57999         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58000         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58001         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58002         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58003         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58004         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58005         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58006         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58007         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58008         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58009         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58010         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58011         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58012         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58013         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58014         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58015         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58016         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58017         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58018         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58019         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58020         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58021         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58022         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58023         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58024         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58025         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58026         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58027         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58028         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58029         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58030         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58031         Likewise.
58032
58033 2006-09-13  Eric Blake  <ebb9@byu.net>
58034
58035         * lib/getopt.c: Fix typo in last commit.
58036
58037 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58038
58039         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58040         dgettext.
58041
58042 2006-09-12  Jim Meyering  <jim@meyering.net>
58043
58044         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58045         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58046         Reported by Nelson H. F. Beebe.
58047
58048 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58049
58050         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58051         program_invocation_name and program_invocation_short_name are
58052         initialized.
58053         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58054         and program_invocation_short_name to argp.h, so they are visible
58055         to user programs.
58056         * lib/argp.h: Likewise
58057
58058 2006-09-10  Bruno Haible  <bruno@clisp.org>
58059
58060         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58061         m4/inttypes_h.m4, m4/uintmax_t.m4.
58062
58063 2006-09-10  Bruno Haible  <bruno@clisp.org>
58064
58065         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58066         gl_AC_TYPE_UINTMAX_T.
58067
58068 2006-09-10  Bruno Haible  <bruno@clisp.org>
58069
58070         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58071
58072 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58073
58074         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58075         convention.  Text proposed by Bruno Haible.
58076         (struct argp_option): Document the use of N_() wrappers.
58077
58078         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58079         '\v', and translate the two parts separately, instead of feeding
58080         the whole string to gettext.  This allows to exclude
58081         '\v' from the strings visible to the translator by writing doc
58082         strings as N_("..") "\v" N_("..").
58083
58084 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         * config/srclist.txt: Undo latest change; the bug was fixed.
58087
58088 2006-09-09  Bruno Haible  <bruno@clisp.org>
58089
58090         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58091         assignments if building a library without libtool.
58092         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58093         in func_emit_lib_Makefile_am.
58094         (func_import): When building a static library libfoo.a, arrange to
58095         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58096         (func_create_testdir): Likewise.
58097         * modules/gc (configure.ac, Makefile.am): If building statically,
58098         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58099         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58100         * modules/striconv (configure.ac, Makefile.am): Likewise.
58101         Based on a suggestion by Ralf Wildenhues.
58102
58103 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58104
58105         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58106         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58107         Also:
58108
58109         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58110         Add year_2050_test to catch glibc bug 2821
58111         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58112
58113         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58114         Prefer #ifdef to #if.
58115
58116         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58117         Return from 'main' instead of calling 'exit'.
58118
58119 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58122         returned the maximum time_t value rather than (time_t) -1.
58123         Problem originally reported by William Bardwell
58124         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58125
58126         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58127         Moved to here ...
58128         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58129         ... from here.
58130
58131 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58132
58133         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58134         2821 is fixed.
58135
58136 2006-09-08  Jim Meyering  <jim@meyering.net>
58137
58138         Don't make generated files read-only.  That would bother too many
58139         people.  However, do retain the ability to work when targets are
58140         read-only: remove the destination and temporary files before writing
58141         them (when generated via sed or echo), or by using the -f option for
58142         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58143         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58144         * modules/byteswap, modules/configmake, modules/fcntl:
58145         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58146         * modules/localcharset, modules/netinet_in, modules/poll:
58147         * modules/stdbool, modules/stdint, modules/sys_select:
58148         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58149
58150 2006-09-08  Jim Meyering  <jim@meyering.net>
58151
58152         Avoid new build failure on FreeBSD 6.0.
58153         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58154         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58155         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58156
58157 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58158
58159         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58160
58161 2006-09-07  Jim Meyering  <jim@meyering.net>
58162
58163         Fix global typo in last change: use chmod u-w, not chmod u-x.
58164         Spotted by Paul Eggert and Bruce Korb.
58165         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58166         * modules/byteswap, modules/configmake, modules/fcntl:
58167         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58168         * modules/localcharset, modules/netinet_in, modules/poll:
58169         * modules/stdbool, modules/stdint, modules/sys_select:
58170         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58171
58172 2006-09-06  Jim Meyering  <jim@meyering.net>
58173
58174         Make generated files be read-only.
58175         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58176         Ensure that each generated file is now read-only.
58177         * modules/argz: Likewise.
58178         * modules/arpa_inet: Likewise.
58179         * modules/byteswap: Likewise.
58180         * modules/configmake: Likewise.
58181         * modules/fcntl: Likewise.
58182         * modules/fnmatch: Likewise.
58183         * modules/getopt: Likewise.
58184         * modules/glob: Likewise.
58185         * modules/inttypes: Likewise.
58186         * modules/netinet_in: Likewise.
58187         * modules/poll: Likewise.
58188         * modules/stdbool: Likewise.
58189         * modules/stdint: Likewise.
58190         * modules/sys_select: Likewise.
58191         * modules/sys_socket: Likewise.
58192         * modules/sys_stat: Likewise.
58193         * modules/sysexits: Likewise.
58194         * modules/localcharset: Same as above, but continue using temporary
58195         file named "t-$@" (why different?) rather than the "$@-t" used
58196         everywhere else.
58197
58198         * modules/sysexits (Makefile.am): Replace literal occurrences
58199         of "sysexit.h" more readable, and more consistent, "$@".
58200
58201 2006-09-06  Bruno Haible  <bruno@clisp.org>
58202
58203         * modules/striconv: New file.
58204         * modules/xstriconv: New file.
58205         * MODULES.html.sh (Internationalization functions): Add striconv,
58206         xstriconv.
58207
58208 2006-09-06  Bruno Haible  <bruno@clisp.org>
58209
58210         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58211         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58212         not using libtool correctly.
58213
58214 2006-09-06  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/striconv.h: New file.
58217         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58218         iconvstring.c.
58219         * lib/xstriconv.h: New file.
58220         * lib/xstriconv.c: New file.
58221
58222 2006-09-06  Bruno Haible  <bruno@clisp.org>
58223
58224         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58225         lib_..._LDFLAGS.
58226
58227 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58228
58229         * lib/argz_.h: Sync from Libtool.
58230
58231         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58232                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58233
58234         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58235
58236 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58237
58238         * modules/trim: New file.
58239
58240 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58241
58242         * lib/trim.h: New file.
58243         * lib/trim.c: New file.
58244
58245 2006-09-05  Bruno Haible  <bruno@clisp.org>
58246
58247         * MODULES.html.sh (String handling): Add trim.
58248
58249 2006-09-04  Karl Berry  <karl@gnu.org>
58250
58251         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58252         until next release.
58253
58254 2006-09-03  Bruno Haible  <bruno@clisp.org>
58255
58256         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58257         correctly.
58258
58259 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58260
58261         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58262         not gl_GETLOADAVG.  Omit unneeded semicolons.
58263         Problems reported by Ralf Wildenhues in
58264         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58265         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58266         at the end, which is the usual gnulib style.
58267
58268         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58269         of doing all the work ourselves.
58270         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58271         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58272
58273 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58274
58275         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58276         Problem reported by Ralf Wildenhues in
58277         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58278
58279         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58280         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58281
58282 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58283
58284         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58285         yesterday's patch by changing test -n to test -z.
58286
58287 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58290         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58291         the former is now obsolescent.
58292
58293         * modules/chdir-long (Depends-on): Add fcntl.
58294
58295 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58296
58297         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58298         obsolescent, and programs should use gnulib instead.
58299         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58300         but with prefixes changed.
58301
58302 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58303
58304         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58305         or stdbool.h, because they might not exist while configuring.
58306
58307         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58308         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58309         does that for us.
58310         (O_DIRECTORY): Remove.
58311
58312 2006-08-31  Eric Blake  <ebb9@byu.net>
58313
58314         * gnulib-tool: Don't let emacs change spaces to TAB.
58315
58316 2006-08-31  Bruno Haible  <bruno@clisp.org>
58317
58318         * gnulib-tool: When calling func_import more than once, do it in a
58319         subshell.
58320         Reported by Eric Blake <ebb9@byu.net>.
58321
58322 2006-08-31  Bruno Haible  <bruno@clisp.org>
58323
58324         * gnulib-tool (nl): Remove variable.
58325         (sed_transform_lib_file): Use more robust test for config-h module.
58326         (func_import): Fix typo in 2006-08-25 patch.
58327
58328 2006-08-31  Bruno Haible  <bruno@clisp.org>
58329
58330         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58331         specified, augment Makefile.am variables instead of assigning them.
58332
58333 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58334
58335         Work around a bug in both the Linux and SunOS 64-bit kernels:
58336         nanosleep mishandles sleeps for longer than 2**31 seconds.
58337         Problem reported by Frank v Waveren in
58338         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58340         Check for nanosleep bug.
58341         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58342
58343 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58344
58345         Work around a bug in both the Linux and SunOS 64-bit kernels:
58346         nanosleep mishandles sleeps for longer than 2**31 seconds.
58347         Problem reported by Frank v Waveren in
58348         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58349         * lib/nanosleep.c (BILLION): New constant.
58350         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58351         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58352         implementation.
58353
58354 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58355
58356         * modules/nanosleep (Depends-on): Add gettime.
58357
58358 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58359         and Simon Josefsson  <jas@extundo.com>
58360         and Oskar Liljeblad  <oskar@osk.mine.nu>
58361
58362         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58363         * gnulib-tool (func_import): New license type 'unmodifiable license
58364         text'.
58365         * modules/fdl: Use it.  Longer description.
58366         * module/gpl, module/lgpl: New files.
58367
58368 2006-08-30  Jim Meyering  <jim@meyering.net>
58369
58370         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58371         shadowing the parameter.
58372
58373 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58374
58375         Sync from Libtool:
58376
58377         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58378
58379         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58380         sharing with gnulib.  Report by Eric Blake.
58381
58382 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58383
58384         * modules/isapipe: New file.
58385         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58386
58387 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         * modules/configmake (Makefile.am): Add a comment, and omit
58390         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58391         by Bruno Haible.
58392
58393 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58394
58395         * m4/isapipe.m4: New file.
58396
58397 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58398
58399         * lib/isapipe.c, lib/isapipe.h: New files.
58400
58401 2006-08-29  Jim Meyering  <jim@meyering.net>
58402
58403         * modules/configmake (Makefile.am): Make configmake.h depend on
58404         Makefile.  Otherwise, a stale configmake.h could hang around.
58405
58406 2006-08-29  Eric Blake  <ebb9@byu.net>
58407
58408         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58409         resolution of upstream bug 3044.
58410
58411 2006-08-29  Bruno Haible  <bruno@clisp.org>
58412
58413         * modules/localcharset (Depends-on): Add configmake.
58414         (Makefile.am): Remove setting of LIBDIR through DEFS.
58415
58416 2006-08-29  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58419         defined.
58420
58421 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58422
58423         * modules/fcntl: New file.
58424         * modules/chdir-safer (Depends-on): Add fcntl.
58425         * modules/fts: Likewise.
58426         * modules/mkdir-p: Likewise.
58427
58428         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58429         This undoes the most recent change, since we're now addressing the
58430         problem in a different way.
58431
58432         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58433         into output, since the output might be called Makefile.am even
58434         if $makefile_name is something different.
58435         (func_import): Use $makefile_am rather than
58436         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58437         empty.
58438
58439         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58440
58441 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58442
58443         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58444         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58445         recent change to stdint.m4, since we're now addressing the problem in a
58446         different way.
58447
58448 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58449
58450         * m4/fcntl_h.m4: New file.
58451
58452 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58453
58454         * lib/fcntl_.h: New file.
58455         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58456         the fcntl module.
58457         * lib/dirchownmod.c: Likewise.
58458         * lib/fts.c: Likewise.
58459
58460         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58461         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58462         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58463         just before including <inttypes.h>, to avoid circular inclusion.
58464
58465 2006-08-28  Jim Meyering  <jim@meyering.net>
58466
58467         * doc/visibility.texi: Actually read and correct the grammar of the
58468         sentence affected by yesterday's change.
58469
58470 2006-08-28  Eric Blake  <ebb9@byu.net>
58471
58472         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58473         needs wrapper.
58474
58475 2006-08-28  Eric Blake  <ebb9@byu.net>
58476
58477         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58478
58479 2006-08-28  Eric Blake  <ebb9@byu.net>
58480
58481         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58482
58483 2006-08-28  Bruno Haible  <bruno@clisp.org>
58484
58485         * modules/c-strstr: New file, from GNU gettext.
58486         * MODULES.html.sh (String handling): Add c-strstr.
58487
58488 2006-08-28  Bruno Haible  <bruno@clisp.org>
58489
58490         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58491         macros.
58492         Reported by Eric Blake.
58493
58494 2006-08-28  Bruno Haible  <bruno@clisp.org>
58495
58496         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58497         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58498         * lib/vasprintf.c: Include errno.h, limits.h.
58499         (EOVERFLOW): New fallback definition.
58500         (vasprintf): Test here whether the string length is > INT_MAX.
58501         * lib/vsnprintf.c: Include errno.h, limits.h.
58502         (EOVERFLOW): New fallback definition.
58503         (vsnprintf): Fix bug when generated string was too long for the buffer.
58504         Test here whether the string length is > INT_MAX.
58505
58506 2006-08-28  Bruno Haible  <bruno@clisp.org>
58507
58508         * lib/inttypes_.h (SCNX*): Remove definitions.
58509         Reported by Eric Blake.
58510
58511 2006-08-28  Bruno Haible  <bruno@clisp.org>
58512
58513         * lib/c-strstr.h: New file, from GNU gettext.
58514         * lib/c-strstr.c: New file, from GNU gettext.
58515
58516 2006-08-28  Bruno Haible  <bruno@clisp.org>
58517
58518         * gnulib-tool: Reorder some statements.
58519
58520 2006-08-28  Bruno Haible  <bruno@clisp.org>
58521
58522         * gnulib-tool: New option --makefile-name.
58523         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58524         $makefile_name.
58525         (func_import): Write $makefile_name to the cache file, and read it from
58526         there unless explicitly specified. Use $makefile_name as file name
58527         instead of Makefile.am. Adjust the recommendations accordingly.
58528
58529 2006-08-28  Bruno Haible  <bruno@clisp.org>
58530
58531         * gnulib-tool (func_verify_module): Check against misapplying patch.
58532
58533 2006-08-28  Bruno Haible  <bruno@clisp.org>
58534
58535         * gnulib-tool (func_relativize, func_relconcat): New functions.
58536         Give an error if --local-dir is given with --update.
58537         Remove trailing slashes from $local_gnulib_dir.
58538         (func_import): Store the relativized $local_gnulib_dir in
58539         gnulib-cache.m4, and read it from there if not specified explicitly.
58540
58541 2006-08-28  Bruno Haible  <bruno@clisp.org>
58542
58543         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58544         is the current directory. Respect also $local_gnulib_dir.
58545
58546 2006-08-28  Bruno Haible  <bruno@clisp.org>
58547             Simon Josefsson  <jas@extundo.com>
58548
58549         BeOS portability.
58550         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58551
58552 2006-08-27  Jim Meyering  <jim@meyering.net>
58553
58554         * doc/visibility.texi: Remove duplicate word: "pointer".
58555
58556 2006-08-26  Bruno Haible  <bruno@clisp.org>
58557
58558         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58559         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58560         (Makefile.am): Create inttypes.h from inttypes_.h.
58561         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58562
58563         * modules/imaxabs: New file.
58564
58565         * modules/imaxdiv: New file.
58566
58567 2006-08-26  Bruno Haible  <bruno@clisp.org>
58568
58569         * m4/inttypes.m4: New file.
58570         * m4/_inttypes_h.m4: Remove file.
58571         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58572         PRI_MACROS_BROKEN.
58573         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58574
58575         * m4/imaxabs.m4: New file.
58576
58577         * m4/imaxdiv.m4: New file.
58578
58579 2006-08-26  Bruno Haible  <bruno@clisp.org>
58580
58581         * lib/inttypes_.h: New file.
58582         * lib/inttypes.h: Remove file.
58583         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58584
58585         * lib/imaxabs.c: New file.
58586
58587         * lib/imaxdiv.c: New file.
58588
58589 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58590
58591         New config-h module, so that "make" output needn't be cluttered
58592         by -DHAVE_CONFIG_H.
58593         * MODULES.html.sh (Support for building libraries and executables):
58594         Add config-h.
58595         * modules/config-h: New file.
58596         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58597         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58598         the config-h module is used.
58599
58600         New configmake module, so that "make" output needn't be cluttered
58601         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58602         * MODULES.html.sh (Support for building libraries and executables):
58603         Add configmake.
58604         * modules/configmake: New file.
58605
58606 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         * m4/config-h.m4: New file.
58609
58610 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58611
58612         * config/srclist.txt: Add elisp-comp.
58613
58614 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * MODULES.html.sh (Support for building libraries and executables):
58617         Add elisp-comp.
58618         * build-aux/elisp-comp: New file.
58619         * modules/elisp-comp: New file.
58620
58621 2006-08-24  Bruno Haible  <bruno@clisp.org>
58622
58623         * gnulib-tool (func_create_testdir): Use non-default values of
58624         sourcebase and m4base.
58625
58626 2006-08-24  Bruno Haible  <bruno@clisp.org>
58627
58628         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58629         HTML structure.
58630
58631 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58632
58633         * modules/openat (Depends-on): Add lchown.
58634
58635 2006-08-23  Bruno Haible  <bruno@clisp.org>
58636
58637         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58638         of gl_LOCK_EARLY instead of gl_LOCK.
58639
58640 2006-08-23  Bruno Haible  <bruno@clisp.org>
58641
58642         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58643         on OSF/1 to no.
58644         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58645
58646 2006-08-23  Bruno Haible  <bruno@clisp.org>
58647
58648         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58649         as unusable.
58650
58651         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58652         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58653         (gl_LOCK): New macro.
58654
58655 2006-08-22  Simon Josefsson  <jas@extundo.com>
58656
58657         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58658         to md5 module.
58659
58660 2006-08-22  Simon Josefsson  <jas@extundo.com>
58661
58662         * MODULES.html.sh: Add "Support for maintaining and release
58663         projects".
58664
58665         * build-aux/gnupload: New file, from coreutils.
58666
58667 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         Avoid the need for AC_LIBSOURCES in m4 macros.
58670         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58671         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58672         * modules/check-version (EXTRA_DIST): Add check-version.h.
58673         * modules/crc (EXTRA_DIST): Add crc.h.
58674         * modules/des (EXTRA_DIST): Add des.h.
58675         * modules/gc (EXTRA_DIST): Add gc.h.
58676         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58677         * modules/getline (EXTRA_DIST): Add getline.h.
58678         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58679         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58680         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58681         * modules/md2 (EXTRA_DIST): Add md2.h.
58682         * modules/md4 (EXTRA_DIST): Add md4.h.
58683         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58684         * modules/read-file (EXTRA_DIST): Add read-file.h.
58685         * modules/readline (EXTRA_DIST): Add readline.h.
58686         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58687         rijndael-api-fst.h.
58688
58689 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58690
58691         * m4/rijndael.m4 (gl_ARCFOUR):
58692         * m4/arctwo.m4 (gl_ARCTWO):
58693         * m4/check-version.m4 (gl_CHECK_VERSION):
58694         * m4/crc.m4 (gl_CRC):
58695         * m4/des.m4 (gl_DES):
58696         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58697         * m4/gc.m4 (gl_GC):
58698         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58699         * m4/getline.m4 (gl_FUNC_GETLINE):
58700         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58701         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58702         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58703         * m4/md2.m4 (gl_MD2):
58704         * m4/md4.m4 (gl_MD4):
58705         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58706         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58707         * m4/readline.m4 (gl_FUNC_READLINE):
58708         * m4/rijndael.m4 (gl_RIJNDAEL):
58709         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58710         to get the necessary .h files and whatnot.
58711
58712 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58713
58714         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58715         gnulib rather than the other way around.
58716         * config/srclistvars.sh (COREUTILS): Remove.
58717
58718 2006-08-22  Jim Meyering  <jim@meyering.net>
58719
58720         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58721
58722         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58723
58724 2006-08-22  Eric Blake  <ebb9@byu.net>
58725
58726         * modules/regexprops-generic: New file.
58727         * MODULES.html.sh (Support for building documentation): List it.
58728
58729 2006-08-22  Eric Blake  <ebb9@byu.net>
58730
58731         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58732         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58733         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58734         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58735
58736 2006-08-22  Bruno Haible  <bruno@clisp.org>
58737
58738         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58739         and lib_LTLIBRARIES like the other lib_* variables.
58740
58741 2006-08-22  Bruno Haible  <bruno@clisp.org>
58742
58743         * build-aux/x-to-1.in: New file, from GNU gettext.
58744
58745 2006-08-22  Bruno Haible  <bruno@clisp.org>
58746
58747         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58748         <utmpx.h> exists.
58749
58750 2006-08-22  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58753         <utmpx.h> exists.
58754
58755 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         BeOS portability.
58758         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58759         exist.
58760         Problem reported by Bruno Haible.
58761
58762 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58763
58764         Avoid the need for AC_LIBSOURCES in m4 macros.
58765         * modules/acl (EXTRA_DIST): Add acl.h.
58766         * modules/argmatch (Files): Add m4/argmatch.m4.
58767         (configure.ac): Add gl_ARGMATCH.
58768         (EXTRA_DIST): Renamed from lib_SOURCES, for
58769         consistency with the other modules.  Remove argmatch.c.
58770         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58771         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58772         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58773         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58774         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58775         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58776         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58777         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58778         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58779         * modules/closeout (EXTRA_DIST): Add closeout.h.
58780         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58781         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58782         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58783         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58784         dirname.h; remove basename.c and stripslash.c.
58785         * modules/exclude (EXTRA_DIST): Add exclude.h.
58786         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58787         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58788         * modules/file-type (EXTRA_DIST): Add file-type.h.
58789         * modules/filemode (EXTRA_DIST): Add filemode.h.
58790         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58791         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58792         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58793         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58794         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58795         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58796         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58797         * modules/getdate (EXTRA_DIST): Add getdate.c.
58798         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58799         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58800         * modules/getpass (EXTRA_DIST): Add getpass.h.
58801         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58802         * modules/group-member (EXTRA_DIST): Add group-member.h.
58803         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58804         * modules/hash (EXTRA_DIST): Add hash.h.
58805         * modules/human (EXTRA_DIST): Add human.h.
58806         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58807         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58808         * modules/lchown (EXTRA_DIST): Add lchown.h.
58809         * modules/long-options (EXTRA_DIST): Add long-options.h.
58810         * modules/lstat (EXTRA_DIST): Add lstat.h.
58811         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58812         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58813         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58814         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58815         * modules/memxor (EXTRA_DIST): Add memxor.h.
58816         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58817         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58818         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58819         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58820         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58821         * modules/physmem (EXTRA_DIST): Add physmem.h.
58822         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58823         * modules/posixver (EXTRA_DIST): Add posixver.h.
58824         * modules/quote (EXTRA_DIST): Add quote.h.
58825         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58826         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58827         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58828         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58829         regex_internal.h regexec.c.
58830         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58831         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58832         * modules/same (EXTRA_DIST): Add same.h.
58833         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58834         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58835         * modules/savedir (EXTRA_DIST): Add savedir.h.
58836         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58837         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58838         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58839         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58840         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58841         * modules/strdup (EXTRA_DIST): Add strdup.h.
58842         * modules/strftime (EXTRA_DIST): Add strftime.h.
58843         * modules/strndup (EXTRA_DIST): Add strndup.h.
58844         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58845         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58846         * modules/time_r (EXTRA_DIST): Add time_r.h.
58847         * modules/timespec (EXTRA_DIST): Add timespec.h.
58848         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58849         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58850         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58851         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58852         * modules/userspec (EXTRA_DIST): Add userspec.h.
58853         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58854         * modules/utimens (EXTRA_DIST): Add utimens.h.
58855         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58856         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58857         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58858         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58859         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58860         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58861         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58862         * modules/yesno (EXTRA_DIST): Add yesno.h.
58863
58864 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58865
58866         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58867
58868         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58869         * m4/dev-ino.m4, same-inode.m4: Remove.
58870
58871         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58872         * m4/acl.m4 (AC_FUNC_ACL):
58873         * m4/backupfile.m4 (gl_BACKUPFILE):
58874         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58875         * m4/canon-host.m4 (gl_CANON_HOST):
58876         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58877         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58878         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58879         * m4/cloexec.m4 (gl_CLOEXEC):
58880         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58881         * m4/closeout.m4 (gl_CLOSEOUT):
58882         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58883         * m4/dirname.m4 (gl_DIRNAME):
58884         * m4/exclude.m4 (gl_EXCLUDE):
58885         * m4/exitfail.m4 (gl_EXITFAIL):
58886         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58887         * m4/file-type.m4 (gl_FILE_TYPE):
58888         * m4/filemode.m4 (gl_FILEMODE):
58889         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58890         * m4/fpending.m4 (gl_FUNC_FPENDING):
58891         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58892         * m4/fts.m4 (gl_FUNC_FTS):
58893         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58894         * m4/getdate.m4 (gl_GETDATE):
58895         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58896         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58897         * m4/getpass.m4 (gl_FUNC_GETPASS):
58898         * m4/gettime.m4 (gl_GETTIME):
58899         * m4/getugroups.m4 (gl_GETUGROUPS):
58900         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58901         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58902         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58903         * m4/hash.m4 (gl_HASH):
58904         * m4/idcache.m4 (gl_IDCACHE):
58905         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58906         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58907         * m4/long-options.m4 (gl_LONG_OPTIONS):
58908         * m4/lstat.m4 (gl_FUNC_LSTAT):
58909         * m4/md5.m4 (gl_MD5):
58910         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58911         * m4/memcoll.m4 (gl_MEMCOLL):
58912         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58913         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58914         * m4/memxor.m4 (gl_MEMXOR):
58915         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58916         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58917         * m4/modechange.m4 (gl_MODECHANGE):
58918         * m4/mountlist.m4 (gl_MOUNTLIST):
58919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58920         * m4/openat.m4 (gl_FUNC_OPENAT):
58921         * m4/pathmax.m4 (gl_PATHMAX):
58922         * m4/physmem.m4 (gl_PHYSMEM):
58923         * m4/posixtm.m4 (gl_POSIXTM):
58924         * m4/posixver.m4 (gl_POSIXVER):
58925         * m4/quote.m4 (gl_QUOTE):
58926         * m4/quotearg.m4 (gl_QUOTEARG):
58927         * m4/readtokens.m4 (gl_READTOKENS):
58928         * m4/readutmp.m4 (gl_READUTMP):
58929         * m4/regex.m4 (gl_REGEX):
58930         * m4/safe-read.m4 (gl_SAFE_READ):
58931         * m4/safe-write.m4 (gl_SAFE_WRITE):
58932         * m4/same.m4 (gl_SAME):
58933         * m4/save-cwd.m4 (gl_SAVE_CWD):
58934         * m4/savedir.m4 (gl_SAVEDIR):
58935         * m4/settime.m4 (gl_SETTIME):
58936         * m4/sha1.m4 (gl_SHA1):
58937         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58938         * m4/stat-macros.m4 (gl_STAT_MACROS):
58939         * m4/stat-time.m4 (gl_STAT_TIME):
58940         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58941         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58942         * m4/strdup.m4 (gl_FUNC_STRDUP):
58943         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58944         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58945         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58946         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58947         * m4/time_r.m4 (gl_TIME_R):
58948         * m4/timespec.m4 (gl_TIMESPEC):
58949         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58950         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58951         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58952         * m4/userspec.m4 (gl_USERSPEC):
58953         * m4/utimecmp.m4 (gl_UTIMECMP):
58954         * m4/utimens.m4 (gl_UTIMENS):
58955         * m4/xalloc.m4 (gl_XALLOC):
58956         * m4/xgetcwd.m4 (gl_XGETCWD):
58957         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
58958         * m4/xreadlink.m4 (gl_XREADLINK):
58959         * m4/xstrtod.m4 (gl_XSTRTOD):
58960         * m4/yesno.m4 (gl_YESNO):
58961         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58962         to get the necessary .h files and whatnot.
58963
58964 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
58965             Bruno Haible  <bruno@clisp.org>
58966
58967         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
58968         /bin/sh understanding of '!' conditional negation.
58969
58970 2006-08-21  Jim Meyering  <jim@meyering.net>
58971
58972         * modules/openat (Depends-on): Really alphabetize.
58973
58974         * modules/acl (Depends-on): Add error and quote.
58975
58976         * check-module (find_included_lib_files): Add at-func.c to the
58977         ok-to-include-more-than-once white list.
58978
58979         * modules/openat (Depends-on): Add lstat.  Alphabetize.
58980
58981 2006-08-21  Bruno Haible  <bruno@clisp.org>
58982
58983         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58984         Emit a pkgdata_DATA variable only if some snippets add contents to it.
58985         Reported by Martin Lambers <marlam@marlam.de>.
58986
58987 2006-08-21  Bruno Haible  <bruno@clisp.org>
58988
58989         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
58990         specify an installation location, don't emit a noinst_LIBRARIES or
58991         noinst_LTLIBRARIES assignment.
58992
58993 2006-08-21  Bruno Haible  <bruno@clisp.org>
58994
58995         BeOS portability.
58996         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
58997         BeOS has mbrtowc() but no <wctype.h>.
58998
58999 2006-08-21  Bruno Haible  <bruno@clisp.org>
59000
59001         BeOS portability.
59002         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59003         exist.
59004
59005 2006-08-21  Bruno Haible  <bruno@clisp.org>
59006
59007         BeOS portability.
59008         * lib/mbchar.h: Include <wctype.h> only if it exists.
59009
59010 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59011
59012         Remove files that are no longer needed by their respective modules.
59013         * m4/obstack.m4: Remove.
59014         * m4/strerror_r.m4: Remove.
59015         * m4/uint32_t.m4: Remove.
59016         * m4/uintptr_t.m4: Remove.
59017         * m4/ullong_max.m4: Remove.
59018         * m4/xstrtoimax.m4: Remove.
59019         * m4/xstrtoumax.m4: Remove.
59020
59021         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59022         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59023         dependencies now capture this.
59024
59025         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59026         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59027         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59028         * m4/human.m4 (gl_HUMAN): Likewise.
59029         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59030         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59031
59032         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59033
59034         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59035         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59036         stdint.
59037         * m4/human.m4 (gl_HUMAN): Likewise.
59038         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59039         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59040         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59041         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59042         * m4/xstrtol (gl_XSTRTOL): Likewise.
59043
59044         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59045         AC_TYPE_LONG_LONG_INT.
59046         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59047         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59048         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59049         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59050
59051         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59052         on stdbool.
59053
59054         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59055         (gl_PREREQ_XSTRTOUL): Remove.
59056
59057         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59058
59059         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59060         mode.
59061
59062 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59063
59064         Add and change modules to make it easier for coreutils to use
59065         gnulib-tool.
59066         * modules/backupfile (Files): Remove m4/d-ino.m4.
59067         (Depends-on): Add d-ino.
59068         * modules/cycle-check (Depends-on): Add stdint.
59069         (lib_SOURCES): Add cycle-check.h.
59070         * modules/d-ino: New module.
59071         * modules/d-type: New module.
59072         * modules/error (Files): Remove m4/strerror_r.m4.
59073         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59074         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59075         m4/inttypes_h.m4, m4/uintmax_t.m4.
59076         (Depends-on): Add stdint.
59077         (lib_SOURCES): Add fsusage.h.
59078         * modules/getcwd (Files): Remove d-ino.m4.
59079         (Depends-on): Add d-ino.
59080         * modules/getndelim2 (Depends-on): Add stdint.
59081         * modules/glob (Files): Remove m4/d-type.m4.
59082         (Depends-on): Add d-type.
59083         * modules/host-os: New module.
59084         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59085         m4/inttypes_h.m4, m4/uintmax_t.m4.
59086         * Depends-on: Add stdint.
59087         (lib_SOURCES): Add human.h.
59088         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59089         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59090         m4/uintmax_t.m4, m4/ulonglong.m4.
59091         (Depends-on): Add stdint.
59092         (EXTRA_DIST): Add inttostr.h.
59093         * modules/lchmod: New module.
59094         * modules/link-follow: New module.
59095         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59096         (Depends-on): Add lchmod.
59097         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59098         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59099         (Depends-on): Add stdint.
59100         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59101         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59102         (Depends-on): Add stdint.
59103         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59104         * modules/perl: New module.
59105         * modules/regex (Depends-on): Add stdint.
59106         * modules/rmdir-errno: New module.
59107         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59108         m4/intmax_t.m4.
59109         (Depends-on): Add stdint.
59110         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59111         m4/uintmax_t.m4.
59112         (Depends-on): Add stdint.
59113         * modules/unlink-busy: New module.
59114         * modules/utimecmp (Depends-on): Add stdint.
59115         * modules/uptime: New module.
59116         * modules/winsz-ioctl: New module.
59117         * modules/winsz-termios: New module.
59118         * modules/xnanosleep (Depends-on): Add nanosleep.
59119         * modules/ullong_max: Remove.
59120         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59121         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59122         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59123         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59124         (Depends-on): Add inttypes.
59125         (lib_SOURCES): Add xstrtol.h.
59126         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59127         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59128         * MODULES.html.sh: Move 'assert' into the assert section.
59129         Move 'dummy' into the linking section.
59130         Remove ullong_max.
59131         Add section for compatibility checks for POSIX:2001 functions,
59132         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59133         winsz-ioctl, and winsz-termios into it.
59134         Add lchmod.
59135         Add top-level Misc section and put host-os, perl, and uptime
59136         into it.
59137
59138 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59141         now assume the stdint module.  Do not include inttypes.h.
59142         * lib/fsusage.h: Likewise.
59143         * lib/getndelim2.c: Likewise.
59144         * lib/human.h: Likewise.
59145         * lib/inttostr.h: Likewise.
59146         * lib/obstack.c: Likewise.
59147         * lib/regex_internal.h: Likewise.
59148         * lib/tempname.c: Likewise.
59149         * lib/utimecmp.c: Likewise.
59150         * lib/xstrtol.h: Likewise.
59151
59152         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59153
59154         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59155         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59156         * lib/xtime.h: Likewise.
59157
59158 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59159
59160         * modules/openat (Files): Add lib/fchmodat.c.
59161         Fixes problem reported by Jay Youngman.
59162
59163 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59164
59165         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59166         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59167
59168 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59169             Bruno Haible  <bruno@clisp.org>
59170
59171         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59172         and is a script that invokes bison. Tighten the code. Add comments.
59173
59174 2006-08-18  Jim Meyering  <jim@meyering.net>
59175
59176         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59177         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59178         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59179         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59180
59181 2006-08-18  Bruno Haible  <bruno@clisp.org>
59182
59183         * modules/bison-i18n: New file.
59184         * MODULES.html.sh (Internationalization functions): Add it.
59185
59186 2006-08-18  Bruno Haible  <bruno@clisp.org>
59187
59188         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59189         sys/statvfs.h. When getmntinfo was found, check its declaration and
59190         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59191
59192 2006-08-18  Bruno Haible  <bruno@clisp.org>
59193
59194         * m4/bison-i18n.m4: New file, from bison.
59195
59196 2006-08-18  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59199         (ME_DUMMY): Treat "kernfs" as a dummy.
59200         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59201
59202 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59203
59204         Update from coreutils.
59205
59206         2006-08-15  Jim Meyering  <jim@meyering.net>
59207
59208         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59209
59210         2006-01-17  Jim Meyering  <jim@meyering.net>
59211
59212         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59213
59214         2006-01-11  Jim Meyering  <jim@meyering.net>
59215
59216         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59217         Check for the lchmod function.
59218
59219 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59220
59221         Update from coreutils.
59222
59223         * lib/__fpending.h: Add copyright notice.
59224         * lib/fprintftime.h: Likewise.
59225         * lib/savedir.c: Use (C) in copyright notice.
59226         * lib/savedir.h: Likewise.
59227
59228         2006-08-15  Jim Meyering  <jim@meyering.net>
59229
59230         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59231         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59232         in support of the EXPECTED_ERRNO macro.
59233         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59234         definitions.  Instead, define the appropriate symbols and include
59235         "at-func.c".
59236         * lib/mkdirat.c (mkdirat): Likewise.
59237         * lib/fchmodat.c (fchmodat): Likewise.
59238         (ENOSYS): Remove definition.
59239         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59240         it.  Don't include "unistd--.h" -- it wasn't ever used.
59241
59242         2006-01-17  Jim Meyering  <jim@meyering.net>
59243
59244         Rewrite fts.c not to change the current working directory,
59245         by using openat, fstatat, fdopendir, etc..
59246
59247         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59248         (HAVE_OPENAT_SUPPORT): Define.
59249         [_LIBC] (fchdir): Don't undef or define; no longer used.
59250         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59251         Now, this `function' always succeeds, and consumes its file descriptor
59252         parameter -- so callers must not close such FDs.  Update callers.
59253         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59254         (diropen): Add parameter, SP.  Adjust all callers.
59255         Implement using diropen_fd, rather than open.
59256         (fts_open): Initialize new member, fts_cwd_fd.
59257         Remove fts_rft-setting code.
59258         (fts_close): Close fts_cwd_fd, if necessary.
59259         (__opendir2): Define in terms of opendir or opendirat,
59260         depending on whether the FST_NOCHDIR flag is set.
59261         (fts_build): Since fts_safe_changedir consumes its FD, and since
59262         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59263         and close the dup'd file descriptor upon failure.
59264         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59265         (fts_safe_changedir): Tweak semantics to reflect that this function
59266         now calls cwd_advance_fd and hence consumes its FD argument.
59267         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59268         [struct FTS] (fts_rft): Remove now-unused member.
59269         [struct FTS] (fts_cycle.state): Improve comment.
59270
59271         * lib/openat.c (openat_needs_fchdir): New function.
59272         * lib/openat.h (openat_needs_fchdir): Declare it.
59273
59274 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59275
59276         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59277         Problem and fix reported by Pádraig Brady in
59278         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59279
59280 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59281
59282         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59283
59284 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59285
59286         * lib/memcoll.c (memcoll): Optimize for the common case where the
59287         arguments are bytewise equal.
59288
59289 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59290
59291         * doc/regexprops-generic.texi: Add a copyright notice.
59292
59293 2006-08-15  Bruno Haible  <bruno@clisp.org>
59294
59295         * modules/tmpdir (License): Change to LGPL.
59296
59297 2006-08-15  Bruno Haible  <bruno@clisp.org>
59298
59299         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59300         module.
59301
59302 2006-08-14  Simon Josefsson  <jas@extundo.com>
59303
59304         * config/srclist.txt: Add gnupload.
59305
59306 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         Change copyright notice from LGPL 2 to GPL 2, since that's the
59309         standard form used in the gnulib repository.
59310         * tests/test-lock.c: Likewise.
59311         * tests/test-stdint.c: Likewise.
59312         * tests/test-tls.c: Likewise.
59313
59314         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59315         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59316         Add copyright notice.
59317
59318         * check-module: Add copyright notice.  Output a copyright
59319         notice if "--version" is specified.
59320         * modules/COPYING: New file.
59321         * tests/test-getaddrinfo.c: Add copyright notice.
59322         * tests/test-verify.c: Likewise.
59323
59324 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59325
59326         Change copyright notice from LGPL 2 to GPL 2, since that's the
59327         standard form used in the gnulib repository.
59328         * lib/lock.c: LGPL -> GPL.
59329         * lib/lock.h: Likewise.
59330         * lib/strnlen1.c: Likewise.
59331         * lib/strnlen1.h: Likewise.
59332         * lib/tls.c: Likewise.
59333         * lib/tls.h: Likewise.
59334         * lib/tmpdir.c: Likewise.
59335
59336         * lib/TODO: Remove; this belongs only in coreutils.
59337
59338 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         Add copyright notices to long-enough files that lack them, since
59341         otherwise the files aren't clearly free.  Use the same notice that
59342         getdate.texi already uses.
59343         * doc/alloca-opt.texi: Add copyright notice.
59344         * doc/alloca.texi: Likewise.
59345         * doc/ctime.texi: Likewise.
59346         * doc/functions.texi: Likewise.
59347         * doc/gcd.texi: Likewise.
59348         * doc/gnulib-tool.texi: Likewise.
59349         * doc/inet_ntoa.texi: Likewise.
59350         * doc/visibility.texi: Likewise.
59351
59352         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59353         * doc/quote.texi: Add copyright notice.
59354
59355         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59356         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59357         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59358         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59359         is now obsolete, and give a pointer to the Sun list.
59360         Add copyright notice.
59361
59362 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59363
59364         * config/srclistvars.sh: Add copyright notice.
59365
59366 2006-08-14  Eric Blake  <ebb9@byu.net>
59367
59368         Import the following change from libc:
59369
59370         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59371
59372         Upstream bug 2997.
59373         * lib/misc/error.c: Add space between program name and message if file
59374         name is missing.
59375
59376 2006-08-12  Karl Berry  <karl@gnu.org>
59377
59378         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59379         remove, these originate in gnulib now.
59380
59381 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59382
59383         * doc/Makefile (standards.info standards.html standards.dvi):
59384         Also depend on make-stds.texi.
59385
59386 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59389         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59390
59391         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59392         in wchar_t.  Problem reported by Eric Blake.
59393
59394         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59395         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59396         Also, help the compiler to keep LEN in a register.
59397
59398 2006-08-11  Eric Blake  <ebb9@byu.net>
59399
59400         * users.txt: Sort.  Add tar.
59401
59402 2006-08-11  Bruno Haible  <bruno@clisp.org>
59403
59404         * users.txt: New file.
59405
59406 2006-08-11  Bruno Haible  <bruno@clisp.org>
59407
59408         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59409         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59410
59411 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59412
59413         * modules/snprintf (Depends-on): Remove minmax.
59414         (Maintainer): Add self and Bruno.
59415
59416 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59417
59418         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59419         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59420         (EOVERFLOW): Define if the system does not.
59421         Do not include "minmax.h"; it wasn't used.
59422         (snprintf): Don't assume size_t promotes to an unsigned type.
59423         Fix bug when generated string was too long for the buffer: the
59424         buffer's contents are supposed to be the initial prefix of the
59425         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59426         exceeds INT_MAX; do the check ourselves.
59427
59428         Import the following changes from libc:
59429
59430         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59431
59432         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59433         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59434         set wc to the byte which couldn't be converted.
59435         (re_string_reconstruct): Don't clear valid_raw_len before calling
59436         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59437         tip_context using re_string_context_at.
59438
59439         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59440
59441         * lib/posix/regex.h: g++ still cannot handled [restrict].
59442
59443         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59444
59445         * lib/posix/regex.h: Remove special handling for VMS.
59446
59447 2006-08-10  Jim Meyering  <jim@meyering.net>
59448
59449         * modules/same-inode: New module.
59450         * modules/dev-ino: New module.
59451         * modules/cycle-check: Depend on these modules, rather than simply
59452         including their .h files.
59453         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59454         required via m4/cycle-check.m4.
59455         * modules/same: Depend on new same-inode module, rather than
59456         including same-inode.h.
59457         * modules/chdir-safer: New file.
59458
59459         * modules/chown (Depends-on): Add stat-macros.
59460
59461 2006-08-10  Jim Meyering  <jim@meyering.net>
59462
59463         * m4/cycle-check.m4: New file.
59464         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59465         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59466
59467 2006-08-10  Eric Blake  <ebb9@byu.net>
59468
59469         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59470         in from original proposal.
59471
59472 2006-08-10  Eric Blake  <ebb9@byu.net>
59473         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59474
59475         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59476         namespace.
59477
59478 2006-08-10  Bruno Haible  <bruno@clisp.org>
59479
59480         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59481         as well.
59482
59483 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         Sync from coreutils.
59486
59487         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59488
59489         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59490         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59491
59492 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59493
59494         * modules/restrict: Remove; no longer needed now that we assume
59495         Autoconf 2.59 or later.
59496         * MODULES.html.sh: Remove 'restrict'.
59497         * modules/argp (Depends-on): Remove 'restrict'.
59498         * modules/base64 (Depends-on): Likewise.
59499         * modules/gc (Depends-on): Likewise.
59500         * modules/getaddrinfo (Depends-on): Likewise.
59501         * modules/glob (Depends-on): Likewise.
59502         * modules/inet_ntop (Depends-on): Likewise.
59503         * modules/inet_pton (Depends-on): Likewise.
59504         * modules/memxor (Depends-on): Likewise.
59505         * modules/regex (Depends-on): Likewise.
59506         * modules/strtok_r (Depends-on): Likewise.
59507         * modules/time_r (Depends-on): Likewise.
59508
59509 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59512         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59513         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59514         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59515         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59516         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59517         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59518         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59519
59520         Merge from coreutils.
59521         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59522         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59523         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59524         * m4/time_r.m4 (gl_TIME_R): Likewise.
59525
59526 2006-08-09  Karl Berry  <karl@gnu.org>
59527
59528         * config/srclist.txt: no more gettext-tools, per Bruno.
59529
59530 2006-08-08  Eric Blake  <ebb9@byu.net>
59531
59532         * modules/verror: New module.
59533         * MODULES.html.sh: Document it.
59534
59535 2006-08-08  Eric Blake  <ebb9@byu.net>
59536
59537         * lib/verror.h, lib/verror.c: New files.
59538
59539 2006-08-08  Eric Blake  <ebb9@byu.net>
59540
59541         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59542         verror_at_line output complies with GNU Coding Standards even when
59543         file is NULL.
59544
59545 2006-08-07  Bruno Haible  <bruno@clisp.org>
59546
59547         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59548         versions of AIX.
59549         Reported by Ralf Wildenhues.
59550
59551 2006-08-07  Bruno Haible  <bruno@clisp.org>
59552
59553         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59554         in an AC_DEFUN. Needed so that the autoconf snippets can use
59555         AC_REQUIRE.
59556
59557 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59558
59559         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59560         Initialize pkgdata_DATA.
59561         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59562         overriding it.
59563
59564 2006-08-06  Eric Blake  <ebb9@byu.net>
59565
59566         * lib/error.h: Fold in some upstream changes from glibc.
59567         * lib/error.c: Likewise.
59568
59569 2006-08-04  Bruno Haible  <bruno@clisp.org>
59570
59571         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59572         Make the mostlyclean-local rule depend on mostlyclean-generic.
59573         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59574
59575 2006-07-31  Bruno Haible  <bruno@clisp.org>
59576
59577         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59578         <stdlib.h>, <string.h>.
59579
59580 2006-07-30  Bruno Haible  <bruno@clisp.org>
59581
59582         * modules/readlink (License): Change to LGPL.
59583
59584 2006-07-30  Bruno Haible  <bruno@clisp.org>
59585
59586         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59587         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59588         set PKGDATADIR to point to it.
59589
59590 2006-07-30  Bruno Haible  <bruno@clisp.org>
59591
59592         * modules/csharpexec (configure.ac): Comment out macro invocation.
59593         * modules/javaexec (configure.ac): Likewise.
59594         * modules/javacomp-script (configure.ac): Likewise.
59595
59596         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59597
59598 2006-07-30  Bruno Haible  <bruno@clisp.org>
59599
59600         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59601         linked-list.
59602
59603 2006-07-30  Bruno Haible  <bruno@clisp.org>
59604
59605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59606
59607 2006-07-30  Bruno Haible  <bruno@clisp.org>
59608
59609         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59610         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59611         get removed.
59612
59613 2006-07-29  Bruno Haible  <bruno@clisp.org>
59614
59615         Make it possible for gnulib-tool to work with locally modified or
59616         augmented gnulib repositories.
59617         * gnulib-tool (func_usage): Document --local-dir option.
59618         (local_gnulib_dir): New variable.
59619         Handle --local-dir option.
59620         (func_lookup_file): New function.
59621         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59622         (func_get_description, func_get_filelist, func_get_description,
59623         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59624         func_get_automake_snippet, func_get_include_directive,
59625         func_get_license, func_get_maintainer): Use func_lookup_file.
59626         (func_import, func_create_testdir): Use func_lookup_file.
59627
59628 2006-07-29  Bruno Haible  <bruno@clisp.org>
59629
59630         * modules/setenv (Depends-on): Add unistd.
59631
59632 2006-07-29  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59635
59636 2006-07-29  Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59639
59640 2006-07-29  Bruno Haible  <bruno@clisp.org>
59641
59642         * gnulib-tool (import, update): If there is no Makefile.am, look at
59643         aclocal.m4, instead of bailing out.
59644
59645 2006-07-29  Bruno Haible  <bruno@clisp.org>
59646
59647         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59648         Categorize the options by when they are useful.
59649
59650 2006-07-29  Bruno Haible  <bruno@clisp.org>
59651
59652         * gnulib-tool (func_usage): Document option --no-libtool.
59653         Handle option --no-libtool.
59654         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59655         for changed semantics of $libtool variable.
59656         (func_import): Likewise. If libtool is not used, show this through
59657         an option --no-libtool.
59658         (func_create_testdir): Update.
59659
59660 2006-07-29  Bruno Haible  <bruno@clisp.org>
59661
59662         * gnulib-tool (func_import): Extend error message about missing
59663         --doc-base.
59664
59665 2006-07-29  Bruno Haible  <bruno@clisp.org>
59666
59667         * gnulib-tool (func_import): Don't create the $docbase directory if
59668         there is no file to store there.
59669
59670 2006-07-29  Bruno Haible  <bruno@clisp.org>
59671
59672         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59673         relevant, look for configure.ac there, not in the current directory.
59674         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59675
59676 2006-07-29  Bruno Haible  <bruno@clisp.org>
59677
59678         * gnulib-tool (SORT): New variable.
59679         (func_usage): Undocument --assume-autoconf option.
59680         Remove --assume-autoconf option handling.
59681         (autoconf_minversion): Determine from the contents of configure.ac.
59682         (func_import): Remove autoconf_minversion handling.
59683         Suggested by Eric Blake.
59684
59685 2006-07-29  Bruno Haible  <bruno@clisp.org>
59686
59687         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59688
59689 2006-07-29  Bruno Haible  <bruno@clisp.org>
59690
59691         * config/srclist.txt (*setenv.[ch]): Remove rules.
59692
59693 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59694
59695         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59696
59697 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59698
59699         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59700         arpa/inet.h.
59701
59702 2006-07-28  Simon Josefsson  <jas@extundo.com>
59703
59704         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59705         * modules/inet_pton (Depends-on): Likewise.
59706
59707 2006-07-28  Simon Josefsson  <jas@extundo.com>
59708
59709         * m4/netinet_in_h.m4: New file.
59710
59711 2006-07-28  Simon Josefsson  <jas@extundo.com>
59712
59713         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59714         #include's.
59715
59716 2006-07-28  Simon Josefsson  <jas@extundo.com>
59717
59718         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59719         #include's.
59720
59721 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59722
59723         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59724         setgid on directories only if they set these bits.
59725         * lib/modechange.h: Remove obsolete comment about masks.
59726
59727 2006-07-28  Eric Blake  <ebb9@byu.net>
59728
59729         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59730         macro expansion.
59731
59732 2006-07-28  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59735
59736 2006-07-28  Bruno Haible  <bruno@clisp.org>
59737
59738         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59739
59740 2006-07-28  Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59743         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59744         Define fallbacks.
59745         Avoids link error on FreeBSD 4.x.
59746         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59747
59748         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59749         encoding.
59750         * lib/mbswidth.c (iswcntrl): Likewise.
59751
59752 2006-07-27  Bruno Haible  <bruno@clisp.org>
59753
59754         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59755         test.
59756
59757 2006-07-27  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59760         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59761         defined.
59762
59763 2006-07-26  Eric Blake  <ebb9@byu.net>
59764
59765         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59766
59767 2006-07-26  Eric Blake  <ebb9@byu.net>
59768
59769         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59770         like mingw that lack mkstemp.
59771         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59772         avoid compilation warning on mingw.
59773
59774 2006-07-26  Bruno Haible  <bruno@clisp.org>
59775
59776         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59777         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59778         INT_FAST*_MIN, INTPTR_MIN.
59779
59780 2006-07-25  Bruno Haible  <bruno@clisp.org>
59781
59782         * modules/version-etc (Depends-on): Add stdarg.
59783
59784 2006-07-25  Bruno Haible  <bruno@clisp.org>
59785
59786         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59787         complex commands.
59788
59789 2006-07-25  Bruno Haible  <bruno@clisp.org>
59790
59791         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59792         defined in <stdarg.h> or config.h.
59793
59794 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59795
59796         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59797         (gl_STDIO_SAFER): Remove.
59798
59799 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * MODULES.html.sh (File stream based Input/Output):
59802         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59803         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59804         * modules/fopen-safer, modules/tmpfile-safer: New files.
59805         * modules/stdio-safer: Remove.
59806
59807 2006-07-24  Bruno Haible  <bruno@clisp.org>
59808
59809         * modules/tmpdir: New file.
59810         * MODULES.html.sh (File system functions): Add it.
59811
59812 2006-07-24  Bruno Haible  <bruno@clisp.org>
59813
59814         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59815         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59816
59817 2006-07-24  Bruno Haible  <bruno@clisp.org>
59818
59819         * modules/clean-temp: New file.
59820
59821 2006-07-24  Bruno Haible  <bruno@clisp.org>
59822
59823         * m4/tmpdir.m4: New file, from GNU gettext.
59824
59825 2006-07-24  Bruno Haible  <bruno@clisp.org>
59826
59827         * lib/tmpdir.h: New file, from GNU gettext.
59828         * lib/tmpdir.c: New file, from GNU gettext.
59829
59830 2006-07-24  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/clean-temp.h: New file, from GNU gettext.
59833         * lib/clean-temp.c: New file, from GNU gettext.
59834
59835 2006-07-23  Eric Blake  <ebb9@byu.net>
59836
59837         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59838         (Depends-on): Add binary-io.
59839
59840 2006-07-23  Eric Blake  <ebb9@byu.net>
59841
59842         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59843
59844 2006-07-23  Eric Blake  <ebb9@byu.net>
59845
59846         * lib/tmpfile-safer.c: New file.
59847         * lib/stdio-safer.h (fopen_safer): Add prototype.
59848         * lib/stdio--.h (tmpfile): Make safer.
59849
59850 2006-07-23  Bruno Haible  <bruno@clisp.org>
59851
59852         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59853         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59854         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59855         gl_linked_remove_at): Use it.
59856
59857 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59858         and Simon Josefsson <jas@extundo.com>
59859
59860         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59861
59862         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59863
59864 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59865
59866         * modules/close-stream: New file.
59867         * modules/closeout (Description): Make it clear that it exits
59868         with a diagnostic on error.
59869         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59870         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59871
59872 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59873
59874         * m4/close-stream.m4: New file.
59875
59876 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59877
59878         * lib/close-stream.c, lib/close-stream.h: New files.
59879
59880 2006-07-22  Bruno Haible  <bruno@clisp.org>
59881
59882         Merge from GNU gettext 0.15.
59883
59884         2006-05-01  Bruno Haible  <bruno@clisp.org>
59885
59886                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59887
59888         2006-07-22  Bruno Haible  <bruno@clisp.org>
59889
59890                 * modules/javaversion: New file.
59891                 * MODULES.html.sh (Java): Add javaversion.
59892
59893         2006-03-12  Bruno Haible  <bruno@clisp.org>
59894
59895                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59896
59897         2005-12-04  Bruno Haible  <bruno@clisp.org>
59898
59899                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59900                 (untested).
59901
59902         2006-06-21  Bruno Haible  <bruno@clisp.org>
59903
59904                 Avoid warnings from recent versions of mcs.
59905                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59906                 -o, -L, -r any more. Use options documented since mcs-1.0
59907                 instead. Similarly for -g.
59908
59909         2005-12-04  Bruno Haible  <bruno@clisp.org>
59910
59911                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59912                 .resources, not .resource.
59913
59914         2005-07-09  Bruno Haible  <bruno@clisp.org>
59915
59916                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59917                 add a .dll suffix.
59918                 Reported by Mark Junker <mjscod@gmx.de>.
59919
59920         2006-07-22  Bruno Haible  <bruno@clisp.org>
59921
59922                 * modules/gettext: Upgrade to gettext-0.15.
59923                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59924                 m4/visibility.m4.
59925                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59926
59927 2006-07-22  Bruno Haible  <bruno@clisp.org>
59928
59929         Merge from GNU gettext 0.15.
59930
59931         2006-03-25  Bruno Haible  <bruno@clisp.org>
59932
59933                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59934
59935         2006-07-21  Bruno Haible  <bruno@clisp.org>
59936
59937                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59938                 "1.1".
59939
59940         2006-05-09  Bruno Haible  <bruno@clisp.org>
59941
59942                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59943                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59944                 for the conftestver execution.
59945
59946         2006-05-01  Bruno Haible  <bruno@clisp.org>
59947
59948                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59949                 optional target-version argument. Verify that the compiler
59950                 groks source of the specified source-version, or add -source
59951                 option as necessary. Verify that the compiler produces
59952                 bytecode in the specified target-version, or add -target and
59953                 -source options as necessary. Make the result of the test
59954                 available as variable CONF_JAVAC. Also log error output in
59955                 config.log.
59956
59957         2006-03-11  Bruno Haible  <bruno@clisp.org>
59958
59959                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
59960
59961         2006-05-09  Bruno Haible  <bruno@clisp.org>
59962
59963                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
59964                 CLASSPATH_SEPARATOR to a semicolon.
59965
59966         2006-03-12  Bruno Haible  <bruno@clisp.org>
59967
59968                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
59969                 available as variable CONF_JAVA, for subsequent autoconf
59970                 tests. Also log error output in config.log.
59971
59972         2006-07-19  Bruno Haible  <bruno@clisp.org>
59973
59974                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
59975                 that getline works on glibc2 systems. Needed to avoid trouble
59976                 in relocatable.c.
59977                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
59978
59979         2005-12-04  Bruno Haible  <bruno@clisp.org>
59980
59981                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
59982                 launcher (untested).
59983
59984         2005-12-04  Bruno Haible  <bruno@clisp.org>
59985
59986                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
59987
59988         2006-07-22  Bruno Haible  <bruno@clisp.org>
59989
59990                 * gettext.m4: Update from GNU gettext-0.15.
59991                 * nls.m4: Likewise.
59992                 * po.m4: Likewise.
59993                 * inttypes-pri.m4: Likewise.
59994                 * inttypes-h.m4: Renamed from inttypes.m4.
59995                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
59996
59997 2006-07-22  Bruno Haible  <bruno@clisp.org>
59998
59999         Merge from GNU gettext 0.15.
60000
60001         2005-07-05  Bruno Haible  <bruno@clisp.org>
60002
60003                 * printf-args.c (printf_fetchargs): Work around broken
60004                 definition of wint_t on mingw.
60005
60006         2005-02-12  Bruno Haible  <bruno@clisp.org>
60007
60008                 * xallocsa.h: Add extern "C" for C++.
60009
60010         2006-05-17  Bruno Haible  <bruno@clisp.org>
60011
60012                 Cygwin portability.
60013                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60014
60015         2006-04-30  Bruno Haible  <bruno@clisp.org>
60016
60017                 * progreloc.c: Include <mach-o/dyld.h> if available.
60018                 (find_executable): Use _NSGetExecutablePath when possible.
60019
60020         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60021
60022                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60023                 function.
60024
60025         2005-12-29  Bruno Haible  <bruno@clisp.org>
60026
60027                 * progreloc.c (set_program_name_and_installdir): Fix
60028                 compilation error.
60029
60030         2005-12-04  Bruno Haible  <bruno@clisp.org>
60031
60032                 Cygwin portability.
60033                 * progreloc.c: Include <windows.h> also on Cygwin.
60034                 (find_executable): Add support for Cygwin.
60035                 (set_program_name_and_installdir): Handle also platforms with
60036                 nonempty EXEEXT.
60037
60038         2006-07-11  Bruno Haible  <bruno@clisp.org>
60039
60040                 * javacomp.c: Fix a comment.
60041                 Reported by Jim Meyering.
60042
60043         2006-04-30  Bruno Haible  <bruno@clisp.org>
60044
60045                 * javacomp.h (compile_java_class): Add source_version,
60046                 target_version arguments.
60047                 * javacomp.c: Rewritten to choose only a compiler that
60048                 respects the specified source_version and target_version.
60049
60050         2006-06-27  Bruno Haible  <bruno@clisp.org>
60051
60052                 Assume correct S_ISDIR macro.
60053                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60054
60055         2006-07-22  Bruno Haible  <bruno@clisp.org>
60056
60057                 * javaversion.h: New file, from GNU gettext.
60058                 * javaversion.c: New file, from GNU gettext.
60059                 * javaversion.java: New file, from GNU gettext.
60060                 * javaversion.class: New file, from GNU gettext.
60061
60062         2006-05-17  Bruno Haible  <bruno@clisp.org>
60063
60064                 Cygwin portability.
60065                 * javaexec.c (execute_java_class): Test for jview program
60066                 also on Cygwin.
60067
60068         2006-04-09  Bruno Haible  <bruno@clisp.org>
60069
60070                 * fatal-signal.c: Don't include string.h.
60071                 (at_fatal_signal): Use a copying loop instead of memcpy.
60072
60073         2005-12-04  Bruno Haible  <bruno@clisp.org>
60074
60075                 * csharpexec.c: Add support for 'clix' launcher (untested).
60076                 (execute_csharp_using_sscli): New function.
60077                 (execute_csharp_program): Call it.
60078
60079         2006-06-21  Bruno Haible  <bruno@clisp.org>
60080
60081                 Avoid warnings from recent versions of mcs.
60082                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60083                 -o, -L, -r any more. Use options documented since mcs-1.0
60084                 instead. Similarly for -g.
60085
60086         2005-07-09  Bruno Haible  <bruno@clisp.org>
60087
60088                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60089                 add a .dll suffix.
60090                 Reported by Mark Junker <mjscod@gmx.de>.
60091
60092         2006-06-17  Bruno Haible  <bruno@clisp.org>
60093
60094                 * config.charset: Update for NetBSD 3.0.
60095
60096         2006-05-17  Bruno Haible  <bruno@clisp.org>
60097
60098                 Cygwin portability.
60099                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60100
60101         2006-05-16  Bruno Haible  <bruno@clisp.org>
60102
60103                 * localcharset.c [CYGWIN]: Include <windows.h>.
60104                 (get_charset_aliases): For Cygwin, return the same CPxxx
60105                 aliases list as under WIN32.
60106                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60107                 the environment variables. Fall back to GetACP().
60108
60109         2006-04-05  Bruno Haible  <bruno@clisp.org>
60110
60111                 * config.charset: Update Juan Manuel Guerrero's address.
60112
60113         2005-02-12  Bruno Haible  <bruno@clisp.org>
60114
60115                 * allocsa.h: Add extern "C" for C++.
60116
60117         2005-02-10  Bruno Haible  <bruno@clisp.org>
60118
60119                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60120                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60121
60122         2006-07-22  Bruno Haible  <bruno@clisp.org>
60123
60124                 * gettext.h: Update to GNU gettext-0.15.
60125
60126 2006-07-22  Bruno Haible  <bruno@clisp.org>
60127
60128         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60129         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60130         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60131
60132 2006-07-21  Eric Blake  <ebb9@byu.net>
60133
60134         * modules/stdlib-safer: New file.
60135         * MODULES.html.sh (File stream based Input/Output): Add
60136         stdlib-safer.
60137
60138 2006-07-21  Eric Blake  <ebb9@byu.net>
60139
60140         * lib/stdlib-safer.h: New file from coreutils, required by
60141         stdlib--.h.
60142
60143 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60144
60145         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60146
60147 2006-07-20  Bruno Haible  <bruno@clisp.org>
60148
60149         * gnulib-tool: Recognize new option --assume-autoconf.
60150         (autoconf_minversion): New variable.
60151         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60152
60153 2006-07-20  Bruno Haible  <bruno@clisp.org>
60154
60155         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60156
60157 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60158
60159         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60160         Reindent and repaginate.
60161
60162 2006-07-19  Derek Price  <derek@ximbiot.com>
60163
60164         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60165         Correct grammar.
60166
60167 2006-07-17  Bruno Haible  <bruno@clisp.org>
60168
60169         * modules/list: New file.
60170         * modules/array-list: New file.
60171         * modules/carray-list, modules/carray-list-tests: New files.
60172         * modules/linked-list, modules/linked-list-tests: New files.
60173         * modules/avltree-list, modules/avltree-list-tests: New files.
60174         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60175         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60176         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60177         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60178         * modules/oset: New file.
60179         * modules/array-oset: New file.
60180         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60181         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60182         * tests/test-carray_list.c: New file.
60183         * tests/test-linked_list.c: New file.
60184         * tests/test-avltree_list.c: New file.
60185         * tests/test-rbtree_list.c: New file.
60186         * tests/test-linkedhash_list.c: New file.
60187         * tests/test-avltreehash_list.c: New file.
60188         * tests/test-rbtreehash_list.c: New file.
60189         * tests/test-avltree_oset.c: New file.
60190         * tests/test-rbtree_oset.c: New file.
60191         * MODULES.html.sh (Container data structures): New section.
60192
60193 2006-07-17  Bruno Haible  <bruno@clisp.org>
60194
60195         * m4/gl_list.m4: New file.
60196
60197 2006-07-17  Bruno Haible  <bruno@clisp.org>
60198
60199         * lib/gl_list.h: New file.
60200         * lib/gl_list.c: New file.
60201         * lib/gl_array_list.h: New file.
60202         * lib/gl_array_list.c: New file.
60203         * lib/gl_carray_list.h: New file.
60204         * lib/gl_carray_list.c: New file.
60205         * lib/gl_linked_list.h: New file.
60206         * lib/gl_linked_list.c: New file.
60207         * lib/gl_anylinked_list1.h: New file.
60208         * lib/gl_anylinked_list2.h: New file.
60209         * lib/gl_avltree_list.h: New file.
60210         * lib/gl_avltree_list.c: New file.
60211         * lib/gl_anyavltree_list1.h: New file.
60212         * lib/gl_anyavltree_list2.h: New file.
60213         * lib/gl_rbtree_list.h: New file.
60214         * lib/gl_rbtree_list.c: New file.
60215         * lib/gl_anyrbtree_list1.h: New file.
60216         * lib/gl_anyrbtree_list2.h: New file.
60217         * lib/gl_anytree_list1.h: New file.
60218         * lib/gl_anytree_list2.h: New file.
60219         * lib/gl_linkedhash_list.h: New file.
60220         * lib/gl_linkedhash_list.c: New file.
60221         * lib/gl_anyhash_list1.h: New file.
60222         * lib/gl_anyhash_list2.h: New file.
60223         * lib/gl_avltreehash_list.h: New file.
60224         * lib/gl_avltreehash_list.c: New file.
60225         * lib/gl_rbtreehash_list.h: New file.
60226         * lib/gl_rbtreehash_list.c: New file.
60227         * lib/gl_anytreehash_list1.h: New file.
60228         * lib/gl_anytreehash_list2.h: New file.
60229
60230         * lib/gl_oset.h: New file.
60231         * lib/gl_oset.c: New file.
60232         * lib/gl_array_oset.h: New file.
60233         * lib/gl_array_oset.c: New file.
60234         * lib/gl_avltree_oset.h: New file.
60235         * lib/gl_avltree_oset.c: New file.
60236         * lib/gl_rbtree_oset.h: New file.
60237         * lib/gl_rbtree_oset.c: New file.
60238         * lib/gl_anytree_oset.h: New file.
60239
60240 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60241
60242         * m4/mkancesdirs.m4: New file.
60243         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60244         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60245         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60246         it.
60247
60248 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60249
60250         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60251         * lib/mkancesdirs.h: New files.
60252         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60253         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60254         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60255         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60256         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60257         callers changed.  Revamp internals significantly, by not
60258         attempting to create directories that are temporarily more
60259         permissive than the final results.  Do not attempt to use
60260         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60261         This removes some race conditions, fixes some bugs, and simplifies
60262         things.  Use new dirchownmod function to do owner and mode changes.
60263         * lib/mkdir-p.h: Likewise.
60264         * lib/modechange.c (octal_to_mode): New function.
60265         (struct mode_change): New member mentioned.
60266         (make_node_op_equals): New arg mentioned.  All callers changed.
60267         (mode_compile): Keep track of which mode bits the user has explicitly
60268         mentioned.
60269         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60270         New arg PMODE_BITS, to keep track of which mode bits the user
60271         mentioned; it treats S_ISUID and S_ISGID speciall.
60272         All callers changed.
60273         * lib/modechange.h: Likewise.
60274
60275 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60276
60277         * MODULES.html.sh: Add mkancestors.
60278         * modules/mkancesdirs: New module.
60279         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60280         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60281         The chdir-safer and afs files are now orphans; I'll remove them
60282         unless someone speaks up.
60283         Add lib/dirchownmod.c, lib/dirchownmod.h.
60284         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60285         Add lchown, mkancesdirs.
60286         (Maintainer): Add self.
60287
60288 2006-07-15  Karl Berry  <karl@gnu.org>
60289
60290         * gnulib-tool: help message wording/arrangement.
60291
60292 2006-07-14  Simon Josefsson  <jas@extundo.com>
60293
60294         * doc/gnulib.texi (Libtool and Windows): New section.
60295
60296 2006-07-12  Simon Josefsson  <jas@extundo.com>
60297
60298         * modules/gendocs (License): Fix license, approved by Karl.
60299
60300 2006-07-12  Eric Blake  <ebb9@byu.net>
60301
60302         * MODULES.html.sh: Add gendocs.
60303
60304 2006-07-11  Eric Blake  <ebb9@byu.net>
60305
60306         * modules/fdl: New module, to install doc/fdl.texi.
60307         * MODULES.html.sh: Add new section for documentation modules.
60308         * gnulib-tool: Avoid space-tab.
60309         (--doc-base): New option, to manage files from doc.
60310
60311 2006-07-11  Eric Blake  <ebb9@byu.net>
60312
60313         * m4/absolute-header.m4: Fix comments to match recent change.
60314
60315 2006-07-11  Eric Blake  <ebb9@byu.net>
60316
60317         * gnulib-tool: List --doc-base before --tests-base.
60318
60319 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60320
60321         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60322
60323 2006-07-11  Bruno Haible  <bruno@clisp.org>
60324
60325         * README: Mention where to put documentation.
60326
60327 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60328
60329         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60330
60331 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60332
60333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60334         to stdint.m4.
60335
60336 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60339         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60340         "no/such/file/stdint.h" when there is no such file, so that
60341         the resulting C code can be parsed by dodgy compilers.
60342         Problems reported by Bob Proulx.
60343
60344 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60345
60346         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60347         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60348         macros into the GNU _D_EXACT_NAMLEN.
60349         * lib/savedir.c:  Likewise.
60350         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60351
60352 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60353         and Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60356         * m4/savedir.m4:
60357         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60358         macros into the GNU _D_EXACT_NAMLEN.
60359
60360 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60361
60362         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60363         around the absolute name, to work around a problem with the HP-UX
60364         11.23 native C compiler, reported by Bob Proulx.
60365
60366 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60367
60368         * doc/maintain.texi, make-stds.texi: Sync from
60369         <http://savannah.gnu.org/projects/gnustandards>.
60370
60371 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60372
60373         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60374
60375 2006-07-09  Jim Meyering  <jim@meyering.net>
60376
60377         * m4/glob.m4: Remove a doubled word in a comment.
60378
60379 2006-07-09  Jim Meyering  <jim@meyering.net>
60380
60381         * lib/argp-pv.c: Remove a doubled word in a comment.
60382         * lib/check-version.c (check_version): Likewise.
60383         * lib/javacomp.c (compile_java_class): Likewise.
60384
60385 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60386
60387         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60388         for the benefit of people using Autoconf 2.60.  If you want to
60389         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60390         (or m4/onceonly.m4, if pre-2.57) manually.
60391
60392 2006-07-08  Jim Meyering  <jim@meyering.net>
60393
60394         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60395         comment.
60396         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60397         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60398         comment.
60399
60400 2006-07-08  Jim Meyering  <jim@meyering.net>
60401
60402         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60403
60404 2006-07-07  Simon Josefsson  <jas@extundo.com>
60405
60406         * tests/test-crc.c: Change expected crc value, the test vector
60407         were probably computed using the old broken crc.c?
60408
60409 2006-07-06  Simon Josefsson  <jas@extundo.com>
60410
60411         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60412         now the canonical place for the M4 file).
60413
60414         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60415         from the sys_socket dependency now.
60416
60417         * modules/inet_pton (Files): Ditto.
60418
60419         * modules/inet_ntop (Files): Ditto.
60420
60421 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60422
60423         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60424         not gl_PREREQ_GETUSERSHELL.
60425
60426 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60427
60428         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60429         with only one argument, for Autoconf 2.60.
60430         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60431         expand to nothing, so add a shell command to avoid syntax error.
60432         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60433
60434 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60435
60436         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60437
60438 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60439
60440         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60441         no longer needed.  Check for isblank decl.
60442         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60443         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60444         of existence.
60445
60446 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60447
60448         * lib/getloadavg.c: Use __VMS, not VMS.
60449         * lib/getopt.c: Likewise.
60450         * lib/getpagesize.h: Likewise.
60451         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60452         and probably does not work.
60453
60454 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60455
60456         * lib/.cppi-disable: Add wcwidth.
60457         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60458         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60459         (ISGRAPH): Remove.  All uses changed to isgraph.
60460         (FOLD) [!defined _LIBC]: Remove special case.
60461         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60462         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60463         HAVE_ISBLANK.
60464         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60465         case.
60466
60467 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60468
60469         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60470         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60471         brackets.  Other minor changes to suppress some compiler
60472         warnings.
60473
60474 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60475         and Paul Eggert  <eggert@cs.ucla.edu>
60476
60477         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60478         of invoking obsolescent AC_HEADER_DIRENT macro.
60479         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60480         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60481         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60482         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60483         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60484         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60485         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60486         * m4/readdir.m4: Remove; no longer needed.
60487
60488 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60489         and Paul Eggert  <eggert@cs.ucla.edu>
60490
60491         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60492         Don't worry about this obsolete case any more.
60493         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60494         directories.
60495         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60496         worry about this obsolete case any more.
60497         * lib/fts.c: Likewise.
60498         * lib/getcwd.c: Likewise.
60499         * lib/glob.h: Likewise.
60500         * lib/savedir.c: Likewise.
60501
60502 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60503
60504         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60505         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60506         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60507         needed.
60508         All uses removed.
60509         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60510         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60511         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60512         needed.
60513         * m4/getdate.m4 (gl_GETDATE): Likewise.
60514         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60515         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60516         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60517         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60518         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60519         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60520         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60521         needed.
60522
60523 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/memcasecmp.c: Include <limits.h>.
60526         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60527         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60528         Don't assume isdigit succeeds only on '0' through '9'.
60529
60530 2006-07-05  Eric Blake  <ebb9@byu.net>
60531
60532         * modules/getaddrinfo (Depends-on): Add snprintf.
60533
60534 2006-07-05  Eric Blake  <ebb9@byu.net>
60535
60536         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60537         to avoid 'header present but could not be compiled' on cygwin.
60538
60539 2006-07-05  Eric Blake  <ebb9@byu.net>
60540
60541         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60542         missing from netdb.h.
60543         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60544
60545 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60546
60547         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60548         no longer needed.
60549         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60550         * m4/getdate.m4 (gl_GETDATE): Likewise.
60551         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60552         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60553         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60554         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60555         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60556
60557 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60558
60559         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60560         All uses of is_space replaced by isspace.
60561         * lib/exit.h: Don't talk about STDC_HEADERS.
60562         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60563         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60564         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60565         replaced by isprint etc.
60566         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60567         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60568         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60569         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60570         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60571         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60572
60573 2006-07-05  Bruno Haible  <bruno@clisp.org>
60574
60575         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60576         the function exists, before testing against AIX.
60577         Reported by Martin Lambers <marlam@marlam.de>.
60578
60579 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60580
60581         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60582         From Mark D. Baushke.
60583
60584 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60585
60586         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60587         to the absolute name, not just one, to bypass Sun C 5.8's
60588         "warning: #include of /usr/include/... may be non-portable".
60589
60590 2006-07-04  Eric Blake  <ebb9@byu.net>
60591
60592         * modules/dirname-tests: New test module.
60593         * tests/test-dirname.c: New file, replacing dirname.c
60594         TEST_DIRNAME section that was recently deleted.
60595
60596 2006-07-04  Bruno Haible  <bruno@clisp.org>
60597
60598         Assume ANSI C header files and <ctype.h> functions.
60599         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60600         (mbsnwidth): Use isprint, iscntrl instead.
60601
60602 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60603
60604         Merge from coreutils.
60605         * MODULES.html.sh: Add xstrtold.
60606         * modules/xstrtold: New file.
60607         * modules/cycle-check (Files): Add lib/same-inode.h.
60608         * modules/dirname (Files): Add m4/double-slash-root.m4.
60609         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60610         * modules/mkdir-p (Files): Add lib/same-inode.h.
60611         * modules/same (Files): Add lib/same-inode.h.
60612
60613 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60614
60615         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60616         This is to keep the terminology clean; POSIX talks about
60617         "absolute pathnames", not "full pathnames", but the GNU
60618         Coding Standards say to use "path" for something else;
60619         so use "absolute" to keep both sides happy.
60620         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60621         Set gl_absolute_header, not gl_full_header_path.
60622         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60623         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60624         All uses changed.
60625
60626         Merge from coreutils.
60627
60628         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60631         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60632         want to require the building of c-strtod.o.
60633         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60634         needs -lm directly.
60635         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60636
60637         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60638
60639         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60640         --as-needed option if available.  Problem reported by Albert Chin in
60641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60642         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60643         cc merely issues a bunch of annoying warnings for --as-needed
60644         (this problem was reported by Bob Proulx).  Also, try linking with
60645         -lm to detect a bug in binutils 2.16 (this problem was reported
60646         by Ralf Wildenhues).
60647
60648         2006-06-18  Jim Meyering  <jim@meyering.net>
60649
60650         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60651         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60652         macro.
60653         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60654         also check for glibc-2.4's abort-inducing bug.
60655
60656         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60657         Low-probability clean-up should be to use rmdir to get rid of
60658         the just-created directory, not unlink.
60659
60660         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60661         configure fail, and request a bug report to inform us about it.
60662         Add a comment that, barring reports to the contrary, in 2007 we'll
60663         assume ftruncate is universally available.
60664
60665         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60666
60667         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60668
60669         2006-03-12  Jim Meyering  <jim@meyering.net>
60670
60671         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60672         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60673         * m4/same.m4 (gl_SAME): Likewise.
60674         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60675
60676         2006-03-11  Eric Blake  <ebb9@byu.net>
60677
60678         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60679         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60680         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60681         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60682
60683 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60684
60685         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60686         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60687         reported by Mark D. Baushke, one in
60688         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60689
60690         Merge from coreutils.
60691
60692         * lib/.cppi-disable: Add stdint_.h.
60693         * lib/.cvsignore: Add stdint.h.
60694
60695         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60696
60697         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60698         both double and long double versions.
60699         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60700         * lib/xstrtold.c: New file.
60701         * lib/xstrtod.h (xstrtold): New decl.
60702
60703         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60704
60705         * lib/filemode.c (setst): Remove.
60706         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60707         (arguably) clearer, and the generated code is a bit smaller on my
60708         Debian GNU/Linux stable x86 host.
60709
60710         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60711
60712         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60713         Assume that filemode.h includes sys/types.h and sys/stat.h.
60714         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60715         (ftypelet): Reorder to put common cases first, for efficiency.
60716         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60717         to do 'M'.
60718         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60719         of 10, for compatibility with FreeBSD.  All callers changed.
60720         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60721         types that can't be deduced solely from st_mode.  First arg is now a
60722         const pointer.
60723         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60724         (strmode): Renamed from mode_string.
60725         (filemodestring): New decl.
60726         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60727         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60728         needed.
60729         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60730
60731         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60732
60733         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60734         fsusage.h now does that.  Include fsusage.h first, to test interface.
60735         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60736         at most one method (the old code could have generated decls that
60737         didn't conform to C89, not that this was ever exercised).
60738         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60739
60740         2006-03-19  Jim Meyering  <jim@meyering.net>
60741
60742         Work even in a chroot where d_ino values for entries in "/"
60743         don't match the stat.st_ino values for the same names.
60744         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60745         number, iterate through all entries again, using lstat instead.
60746         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60747         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60748
60749         * lib/getcwd.c (__getcwd): Clarify a comment.
60750         Use memcpy in place of a call to strcpy.
60751
60752         2006-03-12  Jim Meyering  <jim@meyering.net>
60753
60754         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60755         matches that of the current directory (which we're about to chdir ".."
60756         out of), then save the dev-ino of the parent, instead.
60757
60758         * lib/same-inode.h (SAME_INODE): New file/macro.
60759         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60760         Include "same-inode.h", instead.
60761         * lib/same.c: Likewise.
60762         * lib/cycle-check.h: Include "same-inode.h".
60763         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60764         * lib/cycle-check.c (SAME_INODE): Remove definition.
60765         * lib/root-dev-ino.h: Include "same-inode.h".
60766
60767         2006-03-11  Eric Blake  <ebb9@byu.net>
60768
60769         * lib/same.c (same_name): s/base_name/last_component/
60770         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60771         * lib/filenamecat.c (file_name_concat): Likewise.
60772
60773         2006-03-11  Eric Blake  <ebb9@byu.net>,
60774                     Paul Eggert  <eggert@cs.ucla.edu>
60775
60776         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60777         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60778         drive prefix.
60779         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60780         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60781         (last_component): New method.
60782         * lib/dirname.c (dir_len): Determine when drive letters need a
60783         subsequent slash.  Preserve // when it is special.
60784         (dir_name): Don't append dot when drive letter is absolute.
60785         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60786         * lib/basename.c (base_name): New semantics - malloc the result.
60787         Preserve // when it is special.  Preserve relative files that look
60788         like drive letters.
60789         (base_len): Preserve // when it is special.
60790         (last_component): New method, similar to old base_name semantics.
60791         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60792         base_name.  Strip redundant slashes from ///.
60793
60794 2006-07-03  Jim Meyering  <jim@meyering.net>
60795
60796         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60797         macro is used before the first cycle_check call.
60798
60799 2006-07-03  Eric Blake  <ebb9@byu.net>
60800
60801         * modules/dirname (Depends-on): Add xstrndup.
60802
60803 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60806         test cases, so that config.log is a bit easier to follow.
60807
60808 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60809
60810         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60811         both are 64 bits, since this seems to be the tradition, and this
60812         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60813         we ever run into a host that prefers long long to long in this
60814         case, we'll need another configure-time test.  Problem reported by
60815         Jim Meyering.
60816
60817 2006-07-02  Eric Blake  <ebb9@byu.net>
60818
60819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60820
60821 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60822
60823         * modules/inttypes (Depends-on): No longer depends on stdint.
60824         * modules/stdint (Description): Say more about assumptions.
60825         Say that the fast types might differ.  Say macros are used.
60826         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60827         (Makefile.am): Revise list of substituted symbols to match
60828         new stdint.m4.
60829         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60830         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60831         * tests/test-stdint.c (verify_same_types)
60832         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60833         the code conforms to C99/C89.
60834         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60835         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60836
60837 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60838
60839         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60840         but fix a bug, by requiring at least 64 bits.
60841         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60842         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60843         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60844         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60845
60846         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60847         changes.  Make 2.59 a prerequisite.  Check and substitute for
60848         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60849         inttypes.h.  Do not use special include files; just use the
60850         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60851         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60852         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60853         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60854         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60855         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60856         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60857         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60858         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60859         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60860         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60861         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60862         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60863         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60864         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60865         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60866         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60867         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60868         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60869         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60870         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60871         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60872         not check for things that C99 does not require, e.g., int8_t.  If
60873         a test isn't needed unless <stdint.h> isn't working, and is
60874         unlikely to be needed for any other reason, then don't do it
60875         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60876         size_t, since we assume C89 freestanding at least.  Do not check
60877         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60878         the right thing even if the types are not defined.  Instead use:
60879         (gl_STDINT_TYPE_PROPERTIES): New macro.
60880         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60881         testing whether <sys/types.h> clashes, as Autoconf does this for
60882         us now.  All uses removed.
60883         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60884         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60885         (gl_CHECK_TYPE_SAME):
60886         Remove; no longer needed.
60887         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60888         exists, since we'll return 0 anyway in that case.
60889         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60890
60891 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60892
60893         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60894         possible collision with system files.
60895         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60896         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60897         WCHAR_MIN and WCHAR_MAX in this case.
60898         (<stddef.h>): Do not include; no longer needed.
60899         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60900         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60901         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60902         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60903         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60904         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60905         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60906         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60907         !defined(__c99))]: Include in this case too, since it's harmless
60908         now.
60909         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60910         dangerous to do so.
60911         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60912         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60913         (_STDINT_MIN, _STDINT_MAX): New macros.
60914         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60915         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60916         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60917         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60918         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60919         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60920         macros, not typedefs; this simplifies things quite a bit.
60921         Use long int for all types narrower than int64_t.
60922         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60923         Define in terms of long long int or int64_t or long int,
60924         not int64_t or int32_t.  This saves some compile-time testing.
60925         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60926         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60927         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60928         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60929         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60930         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60931         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60932         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60933         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60934         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60935         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60936         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60937         undef any previous version and define our own version, for
60938         simplicity and consistency with the new macros for types.
60939         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60940         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60941         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60942         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60943         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60944         @WINT_T_SUFFIX@ to keep things simple here.
60945         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60946         Simplify by assuming typical 8/16/32/64 host, since we're
60947         already doing that elsewhere anyway.
60948         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60949         and assume long long int is 64 bits if available.  This
60950         speeds up 'configure'.
60951
60952 2006-07-01  Eric Blake  <ebb9@byu.net>
60953
60954         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
60955         Reported by Andreas Buening.
60956
60957 2006-07-01  Eric Blake  <ebb9@byu.net>
60958
60959         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
60960
60961 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60962
60963         * lib/getaddrinfo.c: fixed typo
60964
60965 2006-06-29  Jim Meyering  <jim@meyering.net>
60966
60967         * modules/strftime (Maintainer): Add my name, since with the
60968         FPRINTFTIME changes strftime.c has forked from glibc.
60969
60970 2006-06-29  Eric Blake  <ebb9@byu.net>
60971
60972         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
60973
60974 2006-06-29  Eric Blake  <ebb9@byu.net>
60975
60976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
60977
60978 2006-06-29  Eric Blake  <ebb9@byu.net>
60979
60980         * lib/stat_.h: New file.
60981
60982 2006-06-29  Eric Blake  <ebb9@byu.net>
60983
60984         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
60985         unused static function.
60986
60987 2006-06-29  Eric Blake  <ebb9@byu.net>
60988
60989         * doc/functions.texi (Function Portability): Document missing lstat
60990         on mingw.
60991
60992 2006-06-29  Eric Blake  <ebb9@byu.net>
60993
60994         * MODULES.html.sh: Add sys_stat.
60995         * modules/sys_stat: New module.
60996         * modules/mkstemp (Depends-on): Add sys_stat.
60997
60998 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60999
61000         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61001
61002 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61003
61004         * m4/c-bs-a.m4: Removed.
61005
61006 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61007
61008         * lib/strftime.c: Assume strftime() exists.
61009
61010 2006-06-29  Derek Price  <derek@ximbiot.com>
61011
61012         * modules/c-bs-a: Removed - \a is C89.
61013         * MODULES.html.sh: Remove c-bs-a.
61014
61015 2006-06-29  Bruno Haible  <bruno@clisp.org>
61016
61017         * modules/wcwidth (License): Change to LGPL.
61018
61019 2006-06-28  Simon Josefsson  <jas@extundo.com>
61020
61021         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61022         on _WIN32.
61023
61024         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61025         getnameinfo.
61026
61027 2006-06-28  Simon Josefsson  <jas@extundo.com>
61028
61029         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61030
61031 2006-06-28  Simon Josefsson  <jas@extundo.com>
61032
61033         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61034         functions there.  It will succeed on Windows XP, but on Windows
61035         2000 and (presumably) earlier, it will fail, and use the internal
61036         re-implementation.
61037         (use_win32_p): New function.
61038         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61039         Support AI_NUMERICSERV to disable getservbyname.
61040         (getnameinfo): New function, only supports
61041         NI_NUMERICHOST|NI_NUMERICSERV for now.
61042
61043         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61044         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61045         getnameinfo.
61046
61047 2006-06-28  Eric Blake  <ebb9@byu.net>
61048
61049         * modules/wcwidth: New file.
61050         * modules/mbchar (Depends-on): Add wcwidth.
61051         * modules/mbswidth (Depends-on): Add wcwidth.
61052         * MODULES.html.sh: Add wcwidth.
61053
61054 2006-06-28  Eric Blake  <ebb9@byu.net>
61055
61056         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61058
61059 2006-06-28  Eric Blake  <ebb9@byu.net>
61060
61061         * lib/xvasprintf.h: Fix comments.
61062
61063 2006-06-28  Eric Blake  <ebb9@byu.net>
61064
61065         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61066         * lib/mbswidth.c (wcwidth): Move from here...
61067         * lib/wcwidth.h: ...to this new file.
61068
61069 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61070
61071         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61072
61073         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61074         it's obsolete.
61075         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61076
61077 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61078
61079         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61080         Autoconf 2.60 says this stuff was obsolete.
61081
61082 2006-06-28  Bruno Haible  <bruno@clisp.org>
61083
61084         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61085
61086 2006-06-28  Bruno Haible  <bruno@clisp.org>
61087
61088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61089         gt_TYPE_WCHAR_T.
61090
61091 2006-06-28  Bruno Haible  <bruno@clisp.org>
61092
61093         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61094         declaration for wcwidth.
61095         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61096
61097 2006-06-28  Bruno Haible  <bruno@clisp.org>
61098
61099         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61100         (mkdir): Define using _mkdir.
61101
61102 2006-06-28  Bruno Haible  <bruno@clisp.org>
61103
61104         * lib/getaddrinfo.h: Fix POSIX URL.
61105         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61106         _WIN32.
61107         (use_win32_p): Make static.
61108         (getaddrinfo): Reject service name if it is empty or does not consist
61109         solely of decimal digits, or if its value is > 65535.
61110         (getnameinfo): Remove useless casts.
61111
61112 2006-06-27  Simon Josefsson  <jas@extundo.com>
61113
61114         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61115         Eggert and Martin Lambers.
61116
61117 2006-06-27  Simon Josefsson  <jas@extundo.com>
61118
61119         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61120         Eggert and Martin Lambers.
61121
61122 2006-06-27  Bruno Haible  <bruno@clisp.org>
61123
61124         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61125         result to 0, not to empty.
61126         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61127
61128 2006-06-27  Bruno Haible  <bruno@clisp.org>
61129
61130         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61131
61132 2006-06-26  Simon Josefsson  <jas@extundo.com>
61133
61134         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61135         present.
61136
61137 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61138
61139         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61140         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61142
61143 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61144
61145         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61146
61147 2006-06-26  Bruno Haible  <bruno@clisp.org>
61148
61149         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61150
61151 2006-06-26  Bruno Haible  <bruno@clisp.org>
61152
61153         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61154
61155 2006-06-26  Bruno Haible  <bruno@clisp.org>
61156
61157         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61158         SGI C compiler in pre-C99 mode.
61159         Suggested by Mark D. Baushke and Larry Jones.
61160
61161 2006-06-26  Bruno Haible  <bruno@clisp.org>
61162
61163         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61164         WCHAR_MAX.
61165         Reported by Mark D. Baushke and Larry Jones.
61166
61167 2006-06-26  Bruno Haible  <bruno@clisp.org>
61168
61169         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61170         in pre-C99 mode.
61171         Suggested by Mark D. Baushke and Larry Jones.
61172
61173 2006-06-23  Simon Josefsson  <jas@extundo.com>
61174             Bruno Haible  <bruno@clisp.org>
61175
61176         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61177         Emit mostlyclean-local rule.
61178         (func_emit_tests_Makefile_am): Likewise.
61179         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61180
61181 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61182
61183         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61184
61185 2006-06-23  Bruno Haible  <bruno@clisp.org>
61186
61187         * tests/test-stdint.c: Update to match ISO C 99 Technical
61188         Corrigendum 1.
61189
61190 2006-06-23  Bruno Haible  <bruno@clisp.org>
61191
61192         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61193
61194 2006-06-23  Bruno Haible  <bruno@clisp.org>
61195
61196         * lib/stdint_.h: Treat IRIX like OpenBSD.
61197
61198 2006-06-23  Bruno Haible  <bruno@clisp.org>
61199
61200         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61201         ISO C 99 Technical Corrigendum 1.
61202
61203 2006-06-22  Simon Josefsson  <jas@extundo.com>
61204
61205         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61206         MinGW.
61207
61208 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61209
61210         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61211         needed.  Some compiler complained about some of them.  Problem reported
61212         by Larry Jones in
61213         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61214
61215 2006-06-21  Simon Josefsson  <jas@extundo.com>
61216
61217         * tests/test-getaddrinfo.c: New file.
61218
61219         * modules/getaddrinfo-tests: New file.
61220
61221         * MODULES.html.sh: Add inet_pton.
61222
61223         * modules/inet_pton: New file.
61224
61225 2006-06-21  Simon Josefsson  <jas@extundo.com>
61226
61227         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61228         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61229         of using the (limited) gnulib implementation on Windows XP.
61230
61231         * m4/inet_pton.m4: New file.
61232
61233 2006-06-21  Simon Josefsson  <jas@extundo.com>
61234
61235         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61236         variable.
61237
61238         * lib/socket_.h: Don't define WINVER.
61239
61240         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61241         slightly modified to work in gnulib.
61242
61243 2006-06-21  Simon Josefsson  <jas@extundo.com>
61244
61245         * doc/gnulib.texi (Windows sockets): Add.
61246
61247 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61248
61249         * lib/read-file.c (fread_file): Start with buffer allocation of
61250         0 bytes rather than 1 byte; this simplifies the code.
61251         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61252         code to free buffer and save/restore errno.
61253         (internal_read_file): Remove unused local.
61254
61255 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61256
61257         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61258         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61259         Problem reported by Denis Excoffier in
61260         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61261
61262 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61263
61264         * modules/sys_socket, modules/socklen: Include sys/types since
61265         FreeBSD 4.x's sys/socket.h needs it.
61266
61267 2006-06-19  Simon Josefsson  <jas@extundo.com>
61268
61269         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61270
61271 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61272
61273         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61274
61275 2006-06-19  Bruno Haible  <bruno@clisp.org>
61276
61277         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61278         and FULL_PATH_INTTYPES_H in angle brackets.
61279         Reported by Mark D. Baushke <mdb@gnu.org>.
61280
61281 2006-06-17  Eric Blake  <ebb9@byu.net>
61282
61283         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61284         errno.
61285
61286 2006-06-17  Bruno Haible  <bruno@clisp.org>
61287
61288         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61289         <sys/inttypes.h>.
61290
61291 2006-06-17  Bruno Haible  <bruno@clisp.org>
61292
61293         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61294         whether errno is declared. Assume <errno.h> declares errno.
61295
61296 2006-06-17  Bruno Haible  <bruno@clisp.org>
61297
61298         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61299
61300 2006-06-17  Bruno Haible  <bruno@clisp.org>
61301
61302         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61303         problem on Solaris 2.5.1.
61304
61305 2006-06-16  Eric Blake  <ebb9@byu.net>
61306
61307         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61308         * lib/unicodeio.c [!defined errno]: Likewise.
61309         * lib/strtol.c [!defined errno]: Likewise.
61310         * lib/strtod.c [!defined errno]: Likewise.
61311
61312 2006-06-15  Eric Blake  <ebb9@byu.net>
61313
61314         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61315
61316 2006-06-15  Eric Blake  <ebb9@byu.net>
61317
61318         * config/srclist.txt (ssize_t.m4): Lose sync.
61319
61320 2006-06-15  Bruno Haible  <bruno@clisp.org>
61321
61322         * modules/stdint (Files): Include m4/full-header-path.m4,
61323         m4/size_max.m4, m4/wchar_t.m4.
61324         (Makefile.am): Many more substitutions.
61325         * modules/stdint-tests: New file.
61326         * tests/test-stdint.c: New file.
61327
61328 2006-06-15  Bruno Haible  <bruno@clisp.org>
61329
61330         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61331         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61332         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61333         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61334         gl_CHECK_TYPE_SAME): New macros.
61335
61336 2006-06-15  Bruno Haible  <bruno@clisp.org>
61337
61338         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61339
61340 2006-06-15  Bruno Haible  <bruno@clisp.org>
61341
61342         * lib/stdint_.h: Rewritten to be fully auto-configured.
61343         Fixes bug on HP-UX/IA64.
61344
61345 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61346
61347         * lib/getdate.y (__attribute__): Don't define if already defined.
61348         Problem reported by Larry Jones.
61349         * lib/utimens.c (__attribute__): Likewise.
61350
61351 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61352
61353         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61354         reported by Andreas Schwab.
61355
61356 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61357             Bruno Haible  <bruno@clisp.org>
61358
61359         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61360         check for the declaration of strnlen and a run test that exposes the
61361         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61362         rpl_strndup.
61363
61364 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61365             Bruno Haible  <bruno@clisp.org>
61366
61367         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61368
61369 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61370
61371         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61372         compile test, for Tru64 4.0D.
61373
61374 2006-05-28  Karl Berry  <karl@gnu.org>
61375
61376         * config/srclist.txt (printf-args.c): lose sync.
61377
61378 2006-05-26  Martin Lambers  <marlam@marlam.de>
61379
61380         * lib/getpass.c: Updates the test for the native W32 API, and adds
61381         missing includes, thus fixing compilation warnings.
61382
61383 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61384
61385         * lib/exclude.c (exclude_fnmatch): New function.
61386         (excluded_file_name): Call exclude_fnmatch.
61387         * lib/exclude.h (excluded_file_name): New prototype
61388
61389 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61390
61391         * lib/tempname.c (small_open, large_open): New macros.
61392         (__open, __open64) [!_LIBC]: Remove.
61393         (__gen_tempname): Use small_open and large_open instead of __open
61394         and __open64.  This fixes a portability bug on HP-UX 11.11i
61395         reported by Simon Wing-Tang in
61396         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61397
61398 2006-05-24  Bruno Haible  <bruno@clisp.org>
61399
61400         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61401         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61402         Reported by Thorsten Maerz <torte@netztorte.de> via
61403         Aaron Stone <aaron@serendipity.cx>.
61404
61405 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61406
61407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61408         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61409         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61410         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61411         not really conditional on the cache.
61412         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61413
61414 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61415
61416         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61417         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61418         (my_usleep): Don't mishandle maximum value.
61419
61420 2006-05-19  Jim Meyering  <jim@meyering.net>
61421
61422         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61423
61424 2006-05-17  Bruno Haible  <bruno@clisp.org>
61425
61426         Cygwin portability.
61427         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61428
61429 2006-05-17  Bruno Haible  <bruno@clisp.org>
61430
61431         * lib/stdint_.h: Fix recognition of Cygwin.
61432
61433 2006-05-15  Bruno Haible  <bruno@clisp.org>
61434
61435         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61436         on libtool patch by Ralf Wildenhues.
61437
61438 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61439
61440         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61441         test for C99 conformance; (bool) 0.5 is an integer constant
61442         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61443         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61444
61445 2006-05-11  Simon Josefsson  <jas@extundo.com>
61446
61447         * m4/xvasprintf.m4: Fix obvious typo.
61448
61449 2006-05-11  Jim Meyering  <jim@meyering.net>
61450
61451         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61452         James Lemley.
61453
61454 2006-05-10  Simon Josefsson  <jas@extundo.com>
61455
61456         * lib/md4.c: Typo fix, update copyright years.
61457         (K1, K2): Don't use L because it turn computations into 64-bit on
61458         64-bit platforms.
61459
61460 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61461
61462         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61463         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61464         unwanted sign propagation, e.g., on hosts with 64-bit int.
61465         There still are some problems with reeelly weird theoretical hosts
61466         (e.g., 33-bit int) but it's not worth worrying about now.
61467         * lib/sha1.c (rol): Likewise.
61468         (K1, K2, K3, K4): Remove unnecessary L suffix.
61469
61470 2006-05-10  Bruno Haible  <bruno@clisp.org>
61471
61472         * lib/des.c: Cast to avoid warnings.
61473
61474 2006-05-09  Bruno Haible  <bruno@clisp.org>
61475
61476         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61477         (Depends-on): Depend also on xsize, stdarg.
61478         (configure.ac): Add gl_XVASPRINTF.
61479
61480 2006-05-09  Bruno Haible  <bruno@clisp.org>
61481
61482         * m4/xvasprintf.m4: New file.
61483
61484 2006-05-09  Bruno Haible  <bruno@clisp.org>
61485
61486         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61487         (EOVERFLOW): Define fallback value.
61488         (xstrcat): New function.
61489         (xvasprintf): Recognize the special case of a string concatenation.
61490
61491 2006-05-08  Eric Blake  <ebb9@byu.net>
61492
61493         * gnulib-tool (func_version): Base copyright year on CVS date.
61494         (func_emit_copyright_notice): New function.
61495         (func_emit_lib_Makefile_am): Use it.
61496         (func_emit_tests_Makefile_am): Likewise.
61497         (func_import): Likewise.
61498
61499 2006-05-08  Bruno Haible  <bruno@clisp.org>
61500
61501         * modules/stdarg: New file.
61502         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61503
61504 2006-05-08  Bruno Haible  <bruno@clisp.org>
61505
61506         * m4/stdarg.m4: New file, from GNU gettext.
61507
61508 2006-05-08  Bruno Haible  <bruno@clisp.org>
61509
61510         * config/srclist.txt (build-aux/config.rpath): different from latest
61511         release.
61512
61513 2006-05-08  Bruno Haible  <bruno@clisp.org>
61514
61515         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61516
61517 2006-05-05  Jim Meyering  <jim@meyering.net>
61518
61519         * m4/warning.m4: New file, derived from bison's file by the same name.
61520
61521 2006-05-03  Bruno Haible  <bruno@clisp.org>
61522
61523         * lib/stdint_.h: Shorter URL.
61524         * lib/inttypes.h: Likewise.
61525
61526 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61527
61528         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61529
61530 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61531
61532         * lib/verify.h: Document the internals better.  Most of this change
61533         was written by Bruno Haible.
61534
61535 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         * doc/verify.texi: New file, partly based on a proposal by
61538         Bruno Haible.
61539
61540 2006-05-02  Bruno Haible  <bruno@clisp.org>
61541
61542         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61543         test from here...
61544         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61545
61546 2006-04-29  Bruno Haible  <bruno@clisp.org>
61547
61548         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61549         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61550
61551 2006-04-29  Bruno Haible  <bruno@clisp.org>
61552
61553         * gnulib-tool: Make --update option actually work.
61554
61555 2006-04-29  Bruno Haible  <bruno@clisp.org>
61556
61557         * doc/gcd.texi: New file.
61558         * doc/gnulib.texi: Include it.
61559
61560 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61561
61562         * lib/getdate.y (get_date): When adding relative date, start with the
61563         initial time, not with the result of the first mktime call.
61564
61565 2006-04-25  Bruno Haible  <bruno@clisp.org>
61566
61567         * gnulib-tool (func_import): Output the include directives in three
61568         blocks, sorted separately.
61569         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61570
61571 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61572
61573         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61574         to define main with arguments, for C++.  Reported by Eric Blake.
61575         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61576         Prefer 'int main ()' to 'int main (void)', for C++.
61577         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61578         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61579         for 'main', for C99 and C++.
61580
61581 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61582
61583         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61584         Don't assume that exit status -1 is valid.
61585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61586         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61587         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61588         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61589         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61590         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61591         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61592         functions can be used without declaring them, or that you can
61593         exit with status -1.
61594         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61595
61596 2006-04-24  Karl Berry  <karl@gnu.org>
61597
61598         * config/srclist.txt (longdouble.m4): sync lost.
61599
61600 2006-04-24  Eric Blake  <ebb9@byu.net>
61601
61602         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61603
61604 2006-04-24  Bruno Haible  <bruno@clisp.org>
61605
61606         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61607         poll() implementation in AIX.
61608         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61609
61610 2006-04-24  Bruno Haible  <bruno@clisp.org>
61611
61612         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61613         assigned exactly once.
61614
61615 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61616             Bruno Haible  <bruno@clisp.org>
61617
61618         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61619         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61620         for AM_CPPFLAGS.
61621
61622 2006-04-23  Bruno Haible  <bruno@clisp.org>
61623
61624         * modules/copy-file: Depend on unistd.
61625         * modules/execute: Likewise.
61626         * modules/fatal-signal: Likewise.
61627         * modules/findprog: Likewise.
61628         * modules/mkdtemp : Likewise.
61629         * modules/pipe: Likewise.
61630         * modules/wait-process: Likewise.
61631
61632 2006-04-23  Bruno Haible  <bruno@clisp.org>
61633
61634         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61635         condition was already detected.
61636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61637
61638 2006-04-23  Bruno Haible  <bruno@clisp.org>
61639
61640         * lib/copy-file.c: Include <unistd.h> unconditionally.
61641         * lib/execute.c: Likewise.
61642         * lib/fatal-signal.c: Likewise.
61643         * lib/findprog.c: Likewise.
61644         * lib/mkdtemp.c: Likewise.
61645         * lib/pipe.h: Likewise.
61646         * lib/pipe.c: Likewise.
61647         * lib/wait-process.h: Likewise.
61648
61649 2006-04-23  Bruno Haible  <bruno@clisp.org>
61650
61651         * gnulib-tool (func_usage): Fix --import description. Document
61652         --update.
61653         (func_import): Create temporary file in a temporary directory, if
61654         --dry-run is specified. Silence errors from 'grep' when there are no
61655         m4 files in $m4dir.
61656         (func_create_testdir): Silence errors from 'grep' when there are no
61657         m4 files in $m4dir.
61658         Reported by Karl Berry <karl@freefriends.org>.
61659
61660 2006-04-20  Bruno Haible  <bruno@clisp.org>
61661
61662         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61663         one argument, so that the code will be portable to Autoconf 2.60.
61664         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61665         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61666         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61667
61668 2006-04-19  Derek Price  <derek@ximbiot.com>
61669             Eric Blake  <ebb9@byu.net>
61670
61671         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61672         rather than "/full/path.h".  Update comment to match.  Shorten &
61673         generalize m4_translit call via AS_TR_CPP.
61674
61675 2006-04-19  Derek Price  <derek@ximbiot.com>
61676             Eric Blake  <ebb9@byu.net>
61677
61678         * lib/inttypes.h: Correct grammar in comment.
61679
61680 2006-04-18  Derek Price  <derek@ximbiot.com>
61681             Paul Eggert  <eggert@cs.ucla.edu>
61682
61683         * modules/inttypes: New file.
61684         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61685
61686 2006-04-18  Derek Price  <derek@ximbiot.com>
61687             Paul Eggert  <eggert@cs.ucla.edu>
61688
61689         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61690         New files.
61691
61692 2006-04-18  Derek Price  <derek@ximbiot.com>
61693             Paul Eggert  <eggert@cs.ucla.edu>
61694
61695         * lib/inttypes.h: New file.
61696         * lib/strtoimax.c: Assume <inttypes.h>.
61697
61698 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61699
61700         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61701         isn't mounted.  Problem reported by Kir Kolyshkin.
61702
61703 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61704
61705         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61706         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61707         Derek R. Price.
61708         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61709         implementation.
61710
61711 2006-04-12  Eric Blake  <ebb9@byu.net>
61712
61713         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61714         is now done automatically by the corresponding Autoconf macro.
61715
61716 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61717
61718         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61719         time_r.h.
61720
61721 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61722
61723         Merge regex changes from libc, removing some of our
61724         POSIX-conformance changes that were rejected and redoing them in a
61725         less-intrusive way.
61726
61727         * lib/regcomp.c (re_compile_internal, init_dfa):
61728         Length arg is now size_t, not Idx.  All uses changed.
61729         (peek_token): Forward decl now says internal_function.
61730         (__re_error_msgid, __re_error_msgid_idx):
61731         Now static rather than extern with attribute_hidden.
61732         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61733         For some reason libc prefers K&R style defns for external functions.
61734         (regerror) [!defined _LIBC]: Likewise.
61735         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61736         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61737         (build_range_exp, build_collating_symbol):
61738         Use K&R-style defn.
61739         (re_compile_fastmap): Use '\0' to memset, not 0.
61740         (utf8_sb_map): Make the calculations more obvious.
61741         (init_dfa, parse_bracket_exp, build_charclass_op):
61742         Call calloc and cast result, as glibc does.
61743         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61744         (build_range_exp, build_collating_symbol):
61745         Now internal functions.
61746
61747         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61748
61749         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61750         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61751         Don't depend on VMS; depend on __VMS instead, for POSIX
61752         namespace cleanness.
61753         (regoff_t): Define to ssize_t, not long int.
61754
61755         Remove the REG_ macros named below.  Instead, make the old names
61756         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61757         __USE_GNU_REGEX.
61758         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61759         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61760         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61761         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61762         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61763         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61764         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61765         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61766         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61767         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61768         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61769         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61770         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61771         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61772         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61773         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61774         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61775         (REG_NREGS):
61776         Remove.  All uses replaced by the old RE_* names.
61777         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61778         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61779         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61780         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61781         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61782         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61783         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61784         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61785         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61786         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61787         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61788         Don't bother having these macros be independent of each others'
61789         values, since they no longer exist in the POSIX name space.
61790
61791         Rename the following member names back to their old names,
61792         unless !__USE_GNU_REGEX.  All uses changed back.
61793         (buffer): Renamed from re_buffer.
61794         (allocated): Renamed from re_allocated.
61795         (used): Renamed from re_used.
61796         (syntax): Renamed from re_syntax.
61797         (fastmap): Renamed from re_fastmap.
61798         (translate): Renamed from re_translate.
61799         (can_be_null): Renamed from re_can_be_null.
61800         (regs_allocated): Renamed from re_regs_allocated.
61801         (fastmap_accurate): Renamed from re_fastmap_accurate.
61802         (no_sub): Renamed from re_no_sub.
61803         (not_bol): Renamed from re_not_bol.
61804         (not_eol): Renamed from re_not_eol.
61805         (newline_anchor): Renamed from re_newline_anchor.
61806         (num_regs): Renamed from rm_num_regs.
61807         (start): Renamed from rm_start.
61808         (end): Renamed from rm_end.
61809
61810         (free_state): Move up a bit.
61811
61812         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61813         #define to be empty.
61814         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61815         when that is what is intended.
61816         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61817         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61818         (MAX): New macro.
61819         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61820         All uses changed back to re_malloc, etc.  It's now the caller's
61821         responsibility to check for overflow; all callers changed.
61822         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61823         (re_x2nrealloc): Remove.
61824         (free_state): Remove decl.
61825
61826         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61827         (re_set_registers, re_exec):
61828         Use K&R-style defn.
61829
61830         2006-01-31  Roland McGrath  <roland@redhat.com>
61831
61832         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61833         Reported by Mike Frysinger <vapier@gentoo.org>.
61834
61835         2006-01-15  Andreas Jaeger  <aj@suse.de>
61836
61837         [BZ #1950]
61838         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61839         build_wcs_upper_buffer change.
61840         (build_wcs_upper_buffer): Change return type.
61841
61842         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61843
61844         * lib/regex_internal.h: Include <stdint.h> if available.
61845
61846         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61847
61848         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61849
61850         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61851
61852         * lib/regcomp.c: Adjust for changed secondary hash function.
61853
61854         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61855
61856         * lib/regex.h: Pretty printing.
61857         Clean up namespace a bit.
61858
61859         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61860
61861         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61862         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61863
61864         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61865                     Ulrich Drepper  <drepper@redhat.com>
61866
61867         [BZ #1302]
61868         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61869         changed.
61870         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61871
61872         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61873
61874         [BZ #281]
61875         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61876         * lib/regcomp.c: Remove unnecessary uses of
61877         unsigned RE_TRANSLATE_TYPE.
61878         * lib/regex_internal.h: Likewise.
61879         * lib/regex_internal.c: Likewise.
61880         * lib/regexec.c: Likewise.
61881         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61882
61883         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61884
61885         * lib/regexec.c (find_recover_state): Remove unnecessary
61886         initialization.
61887         (transit_state_bkref): Make DFA a const pointer.
61888         (get_subexp): Likewise.
61889         (check_arrival): Likewise.
61890         (update_cur_sifted_state): Likewise.
61891         (re_search_internal): Likewise.
61892         (prune_impossible_nodes): Likewise.
61893         (acquire_init_state_context): Likewise.
61894         (proceed_next_node): Likewise.
61895         (set_regs): Likewise.
61896         (free_fail_stack_return): Likewise.
61897         (check_arrival_expand_ecl): Mark DFA parameter as const.
61898         (check_arrival_expand_ecl_sub): Likewise.
61899         (check_subexp_limits): Likewise.
61900         (sub_epsilon_src_nodes):  Likewise.
61901         (add_epsilon_src_nodes):  Likewise.
61902         (merge_state_array): Likewise.
61903         (update_regs): Likewise.
61904         (build_trtable): Likewise.
61905         (sift_states_backward): Mark MCTX parameter as const.
61906         (build_sifted_states): Likewise.
61907         (update_cur_sifted_state): Likewise.
61908         (sift_states_mkref): Likewise.
61909         (check_arrival_expand_ecl): Mark eclosure as const.
61910         (check_dst_limits_calc_pos_1): Likewise.
61911         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61912         pointer.
61913
61914         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61915
61916         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61917         (transit_state_sb): Likewise.
61918         (transit_state_mb): Likewise.
61919         (sift_states_iter_mb): Likewise.
61920         (check_arrival_add_next_nodes): Likewise.
61921         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61922         [_LIBC] (re_search_2_stub): Use mempcpy.
61923
61924         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61925         mbrtowc for very simple UTF-8 case.
61926
61927         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61928         a pointer-to-const.
61929         (re_acquire_state_context): Likewise.
61930         * lib/regex_internal.h: Adjust prototypes.
61931
61932         * lib/regex.c: Prevent using C++ compilers.
61933
61934         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61935         (re_acquire_state_context): Likewise.
61936
61937 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61938
61939         * modules/regex (Depends-on): Add ssize_t.
61940
61941 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61942
61943         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61944         translation table.
61945
61946 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61947
61948         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61949
61950 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61951             Bruno Haible  <bruno@clisp.org>
61952
61953         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
61954         <sys/types.h> and <inttypes.h>.
61955
61956 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61957
61958         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
61959         `__error_t_defined', so argp.h will not typedef the former.
61960
61961 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
61964         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
61965         glibc names.  Even if glibc is changed to conform to POSIX, the
61966         traditional names will be available anyway, since regex depends on
61967         the extensions module.  Also, fix a longstanding typo in the
61968         implementation of Spencer ERE test #75 from grep 2.3.  Problems
61969         reported by Emanuele Giaquinta.  Also, change sense of cached
61970         variable, so that the message makes sense.
61971
61972 2006-03-24  Simon Josefsson  <jas@extundo.com>
61973
61974         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
61975         including some doc fixes.
61976         (base64_encode_alloc): Fix +1 bug on allocation failures.
61977
61978 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61979
61980         * lib/base64.c (base64_encode): Do not read past end of array with
61981         unsanitized input on systems with CHAR_BIT > 8.
61982
61983 2006-03-24  Eric Blake  <ebb9@byu.net>
61984
61985         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
61986
61987 2006-03-22  Karl Berry  <karl@gnu.org>
61988
61989         * config/srclist.txt (*setenv.[ch]): get from coreutils.
61990         * config/srclistvars.sh (COREUTILS): new var.
61991
61992 2006-03-17  Jim Meyering  <jim@meyering.net>
61993
61994         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
61995         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
61996
61997 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61998
61999         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62000         no longer needs it.  Instead, check that regoff_t is as least
62001         as wide as ptrdiff_t.
62002
62003         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62004         so that our regex.h stays compatible with the installed regex.
62005         This is helpful for installers who configure --without-included-regex.
62006         Problem reported by Emanuele Giaquinta.
62007
62008 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62011         Typedef to long int, not to off_, as POSIX will likely change
62012         in that direction.
62013
62014 2006-03-15  Eric Blake  <ebb9@byu.net>
62015
62016         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62017
62018 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62019
62020         * lib/argp-help.c (validate_uparams): Fix typo
62021         * lib/argp-parse.c (argp_default_options): Consistently begin help
62022         messages with a lowercase letter.
62023
62024 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62025
62026         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62027         overrun buffers and shouldn't be used (much as gets shouldn't be
62028         used).
62029         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62030
62031 2006-03-08  Simon Josefsson  <jas@extundo.com>
62032
62033         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62034         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62035
62036 2006-03-08  Simon Josefsson  <jas@extundo.com>
62037
62038         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62039         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62040
62041 2006-03-08  Simon Josefsson  <jas@extundo.com>
62042
62043         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62044         signal that configure disabled the device.
62045
62046 2006-03-08  Simon Josefsson  <jas@extundo.com>
62047
62048         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62049         languages.
62050
62051 2006-03-07  Simon Josefsson  <jas@extundo.com>
62052
62053         * modules/getopt (Depends-on): Add unistd.
62054
62055         * modules/unistd: New file.
62056
62057 2006-03-07  Simon Josefsson  <jas@extundo.com>
62058
62059         * modules/gc-random: New file.
62060
62061 2006-03-07  Simon Josefsson  <jas@extundo.com>
62062
62063         * m4/unistd_h.m4: New file.
62064
62065 2006-03-07  Simon Josefsson  <jas@extundo.com>
62066
62067         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62068         test to be side-effect free by storing the result in the cache
62069         variable gl_cv_lib_readline, and moving the assignment of
62070         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62071         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62072
62073 2006-03-07  Simon Josefsson  <jas@extundo.com>
62074
62075         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62076         error on missing devices (the functions will return an error).
62077
62078         * m4/gc.m4: Move random stuff to gc-random.m4
62079
62080 2006-03-07  Simon Josefsson  <jas@extundo.com>
62081
62082         * lib/unistd_.h: New file.
62083
62084 2006-03-07  Simon Josefsson  <jas@extundo.com>
62085
62086         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62087
62088 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62089
62090         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62091         Problem reported by Juan Manuel Guerrero.
62092
62093 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62094
62095         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62096         the unistd module.
62097         * lib/getlogin_r.c: Likewise.
62098         * lib/getlogin_r.h: Likewise.
62099         * lib/glob.c: Likewise.
62100         * lib/pagealign_alloc.c: Likewise.
62101         * lib/unistd_.h: Remove; no longer needed.
62102
62103 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62104
62105         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62106         Add unistd.
62107         * modules/c-stack (Depends-on): Add unistd.
62108         * modules/getlogin_r: Likewise.
62109         * modules/glob: Likewise.
62110         * modules/pagealign_alloc: Likewise.
62111         * modules/unistd (Files): Remove lib/unistd_.h.
62112         (EXTRA_DIST): Remove.
62113         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62114         need unistd_.h.
62115         (MOSTLYCLEANFILES): Remove unistd.h-t.
62116
62117 2006-03-03  Simon Josefsson  <jas@extundo.com>
62118
62119         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62120
62121 2006-03-03  Simon Josefsson  <jas@extundo.com>
62122
62123         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62124         libidn and bison.
62125
62126 2006-03-03  Simon Josefsson  <jas@extundo.com>
62127
62128         * build-aux/maint.mk: Add indent target.
62129
62130 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62131
62132         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62133         our replacement poll.h in any case, to avoid a differing
62134         declaration from a system header.  Seen on AIX.
62135
62136 2006-03-01  Simon Josefsson  <jas@extundo.com>
62137
62138         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62139         <kasal@ucw.cz>.
62140
62141 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62142
62143         * modules/gettime (Depends-on): Add extensions module.
62144         * modules/nanosleep (Depends-on): Likewise.
62145         * modules/settime (Depends-on): Likewise.
62146
62147 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62148
62149         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62150         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62151         pedantically.
62152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62153         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62154
62155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62156         not "==".  Reported by Ralf Wildenhues.
62157
62158 2006-03-01  Karl Berry  <karl@gnu.org>
62159
62160         * doc/Copyright/request-*: new files, synced from gnuorg.
62161
62162 2006-03-01  Karl Berry  <karl@gnu.org>
62163
62164         * config/srclist.txt (Copyright/*): new entries.
62165
62166 2006-02-28  Simon Josefsson  <jas@extundo.com>
62167
62168         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62169
62170 2006-02-27  Simon Josefsson  <jas@extundo.com>
62171
62172         * lib/base64.h: Indent #define's.  From Jim Meyering
62173         <jim@meyering.net>.
62174
62175 2006-02-27  Jim Meyering  <jim@meyering.net>
62176
62177         Revert the change of 2006-02-24, so these files can continue
62178         to be sync'd from gettext.
62179         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62180         of `config.h'.
62181
62182 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62183
62184         * modules/intprops: New file.
62185         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62186         Add intprops.
62187         * modules/getloadavg (Files): Remove lib/intprops.h.
62188         (Depends-on): Add intprops.
62189         * modules/human: Likewise.
62190         * modules/inttostr: Likewise.
62191         * modules/openat: Likewise.
62192         * modules/sig2str: Likewise.
62193         * modules/userspec: Likewise.
62194         * modules/utimecmp: Likewise.
62195         * modules/xnanosleep: Likewise.
62196         * modules/xstrtol: Likewise.
62197
62198 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62199
62200         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62201         * modules/lock-tests (TESTS): Use $(EXEEXT).
62202         * modules/tls-tests: Likewise.
62203         * modules/argp-tests: Likewise.
62204         (check_PROGRAMS): New var, replacing...
62205         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62206
62207 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62208
62209         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62210         `config.h'.
62211
62212 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62213
62214         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62215
62216 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62217
62218         Sync from coreutils.
62219         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62220         gl_CHDIR_SAFER.
62221
62222 2006-02-22  Jim Meyering  <jim@meyering.net>
62223
62224         Sync from coreutils.
62225         * m4/chdir-safer.m4: New file.
62226
62227 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62230         AT_FDCWD exceeds INT_MAX.
62231         * lib/openat.h (AT_FDCWD): Likewise.
62232
62233 2006-02-17  Eric Blake  <address@hidden>
62234
62235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62236
62237 2006-02-16  Simon Josefsson  <jas@extundo.com>
62238
62239         * modules/getaddrinfo (Depends-on): Add sys_socket.
62240
62241 2006-02-15  Simon Josefsson  <jas@extundo.com>
62242
62243         * build-aux/maint.mk: Add dsyntax-check rule.
62244
62245 2006-02-15  Eric Blake  <ebb9@byu.net>
62246
62247         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62248         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62249         'present but cannot compile' warnings on cygwin.
62250         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62251         use ws2tcpip.h if sys/socket.h works.
62252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62253         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62254
62255 2006-02-14  Simon Josefsson  <jas@extundo.com>
62256
62257         * modules/maintainer-makefile (Files): Rename.
62258
62259         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62260         and (the local) Makefile.cfg to maint-cfg.mk.
62261
62262         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62263         to the latter.
62264
62265         * modules/maintainer-makefile: New module.
62266
62267         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62268         severaly stripped to make it possible to build it up from scratch
62269         with reliable tests.
62270
62271         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62272         fixes to permit overriding the default actions when configure and
62273         makefile are not available.
62274
62275 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62276
62277         Sync from coreutils.
62278         * modules/lstat (Depends-on): Don't depend on xalloc.
62279         (License): Change from GPL to LGPL, since this is now simply a
62280         replacement for a libc function.
62281
62282 2006-02-14  Jim Meyering  <jim@meyering.net>
62283
62284         Sync from coreutils.
62285
62286         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62287         failure on deficient systems, and simplify gnulib lgpl dependencies.
62288         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62289         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62290
62291         * lib/xalloc-die.c: Remove unused definition of N_.
62292
62293 2006-02-14  Jim Meyering  <jim@meyering.net>
62294
62295         Sync from coreutils.
62296         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62297         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62298         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62299         double-quote uses of that variable, to accommodate the rare case in
62300         which getmntent is available in none of the libraries checked.  This
62301         happens at least on FreeBSD 5.0.
62302
62303 2006-02-13  Simon Josefsson  <jas@extundo.com>
62304
62305         * gnulib-tool (Usage): Fix --import, from
62306         karl@freefriends.org (Karl Berry).
62307
62308 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62309
62310         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62311
62312 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62313
62314         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62315         "autoupdate" on 2005-12-12.
62316
62317 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62318
62319         * modules/closeout (Depends-on): Remove atexit.
62320
62321 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62322
62323         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62324         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62325
62326 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62327
62328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62329         __EXTENSIONS__ if this causes compilation to fail.  Problem
62330         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62331         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62332
62333 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62334
62335         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62336         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62338         All uses changed.
62339
62340 2006-01-26  Simon Josefsson  <jas@extundo.com>
62341
62342         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62343         prototype is visible on mingw32.
62344
62345         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62346         for mingw32.
62347
62348         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62349         mingw32).
62350
62351 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62352
62353         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62354         attempt to open for write; this always fails, at least on POSIX
62355         hosts.  This reinstates the 2006-01-09 change, which was
62356         inadvertently removed.
62357
62358 2006-01-26  Bruno Haible  <bruno@clisp.org>
62359
62360         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62361         Reported by Paul Eggert.
62362
62363 2006-01-26  Bruno Haible  <bruno@clisp.org>
62364             Paul Eggert  <eggert@cs.ucla.edu>
62365
62366         * lib/stdbool_.h (_Bool)
62367         [(! (defined __cplusplus || defined __BEOS__)
62368           && !defined __GNUC__
62369           && !(defined __HP_cc || defined __xlc__
62370                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62371                || defined __sgi))]:
62372         #define to signed char in these cases too; this simplifies
62373         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62374         etc., separately) and makes it more conservative.
62375
62376 2006-01-25  Simon Josefsson  <jas@extundo.com>
62377
62378         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62379         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62380         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62381
62382 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62383
62384         * lib/argp-namefrob.h: Bugfix. Remove stray #
62385
62386 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62387
62388         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62389         so that we test the test.
62390         Check for yet another HP-UX cc bug involving *bool |= bool.
62391
62392 2006-01-25  Karl Berry  <karl@gnu.org>
62393
62394         * config/srclist.txt (vasnprintf.c): sync lost.
62395
62396 2006-01-25  Jim Meyering  <jim@meyering.net>
62397
62398         Sync from the stable (b5) branch of coreutils:
62399
62400         * lib/fts.c (fts_children): Don't let close() clobber errno from
62401         failed fchdir().
62402
62403         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62404         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62405         a dangling symlink.  That can also happen at least for ELOOP.
62406         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62407         FYI, this bug predates the inclusion of fts.c in coreutils.
62408
62409         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62410         in their own block, so pre-c99 compilers don't object.
62411
62412         Avoid the double-free (first in fts_read, second in fts_close) that
62413         would occur when an `active' directory is made inaccessible (e.g.,
62414         via chmod a-x) during a traversal.
62415         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62416         before returning.  Reproduce this failure by
62417         mkdir -p a/b; cd a; chmod a-x . b
62418         Reported by Stavros Passas.
62419
62420 2006-01-25  Jim Meyering  <jim@meyering.net>
62421
62422         * lib/fileblocks.c: Remove more useless parentheses.
62423         * lib/readutmp.h: Likewise.
62424
62425 2006-01-25  Bruno Haible  <bruno@clisp.org>
62426
62427         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62428         warnings.
62429         Reported by Paul Eggert.
62430
62431 2006-01-25  Bruno Haible  <bruno@clisp.org>
62432
62433         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62434         rid of a trap command. For Solaris sh.
62435         Reported by Mark D. Baushke <mdb@gnu.org>.
62436
62437 2006-01-24  Simon Josefsson  <jas@extundo.com>
62438
62439         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62440         Bruno.
62441
62442 2006-01-24  Karl Berry  <karl@gnu.org>
62443
62444         * config/srclist.txt (argp-namefrob.h): sync lost.
62445
62446 2006-01-24  Jim Meyering  <jim@meyering.net>
62447
62448         * modules/openat (Files): Add lib/intprops.h.
62449         From Mark D. Baushke.
62450
62451 2006-01-24  Jim Meyering  <jim@meyering.net>
62452
62453         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62454         Reported by Mark D. Baushke.
62455
62456 2006-01-24  Jim Meyering  <jim@meyering.net>
62457
62458         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62459
62460 2006-01-24  Bruno Haible  <bruno@clisp.org>
62461
62462         * modules/strnlen (Maintainer): Change from glibc to all.
62463
62464 2006-01-24  Bruno Haible  <bruno@clisp.org>
62465
62466         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62467         Patch by Paul Eggert.
62468
62469 2006-01-24  Bruno Haible  <bruno@clisp.org>
62470
62471         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62472         already has it.
62473         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62474         2005-11-26.
62475
62476         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62477         'signed char' to avoid problems with the built-in _Bool type.
62478         Reported by Paul Eggert on 2005-11-26.
62479
62480 2006-01-24  Bruno Haible  <bruno@clisp.org>
62481
62482         * gnulib-tool (func_import): Avoid constructing complicated sed
62483         expressions inside backquote.
62484         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62485
62486 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62487
62488         These changes imported from libc.
62489         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62490         test and two separate function calls.
62491         * lib/strndup.c (__strndup): Add libc_hidden_def.
62492
62493 2006-01-23  Simon Josefsson  <jas@extundo.com>
62494
62495         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62496         Remove the test_*_SOURCES variable: automake infers it by default.
62497         * modules/tls-tests: Likewise.
62498
62499 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62500
62501         Work around porting bugs reported by Dieter in
62502         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62503         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62504         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62505         Include "getopt.h" first, to check interface.
62506         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62507         !HAVE_DECL_GETENV.
62508         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62509         (__strndup): Revert to K&R-style function dfns, the glibc style.
62510         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62511         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62512         Include strnlen.h first, to get prototype properly.
62513         (strnlen): Renamed from __strnlen.
62514         Remove weak alias.
62515
62516 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62517
62518         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62519
62520 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62521
62522         * config/srclist.txt: Adjust to reflect glibc reorganization.
62523         This affects only comments.
62524
62525 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62526
62527          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62528          Reported by Bruce Korb <bkorb@gnu.org>.
62529
62530 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62531
62532         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62533         to pacify gcc -Wswitch-default.
62534
62535 2006-01-22  Bruno Haible  <bruno@clisp.org>
62536
62537         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62538         temporary buffer for sprintf, take into account the precision also
62539         for 'd', 'i', 'u', 'o', 'x', 'X'.
62540
62541 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62542
62543         * modules/argp-tests: New module
62544         * tests/test-argp.c: New file
62545         * tests/test-argp-2.sh: New file
62546
62547 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62548
62549         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62550         (__argp_base_name): Removed
62551         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62552         typo.
62553         (__argp_base_name): Provide macro definition or extern declaration
62554         depending on the configuration
62555
62556 2006-01-20  Simon Josefsson  <jas@extundo.com>
62557
62558         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62559
62560 2006-01-20  Simon Josefsson  <jas@extundo.com>
62561
62562         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62563
62564 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62565
62566         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62567         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62568         Suggested by Bruno Haible.
62569
62570 2006-01-20  Karl Berry  <karl@gnu.org>
62571
62572         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62573         until changes propagate, I guess.
62574
62575 2006-01-19  Simon Josefsson  <jas@extundo.com>
62576
62577         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62578
62579 2006-01-19  Simon Josefsson  <jas@extundo.com>
62580
62581         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62582
62583 2006-01-19  Simon Josefsson  <jas@extundo.com>
62584
62585         * gnulib-tool: Set check_PROGRAMS.
62586
62587         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62588         modules/des-tests, modules/gc-arcfour-tests,
62589         modules/gc-arctwo-tests, modules/gc-des-tests,
62590         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62591         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62592         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62593         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62594         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62595         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62596         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62597         test_*_SOURCES.
62598
62599 2006-01-18  Simon Josefsson  <jas@extundo.com>
62600
62601         * modules/socklen (Depends-on): Depend on sys_socket.
62602
62603 2006-01-18  Simon Josefsson  <jas@extundo.com>
62604
62605         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62606         modules/des-tests, modules/gc-arcfour-tests,
62607         modules/gc-arctwo-tests, modules/gc-des-tests,
62608         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62609         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62610         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62611         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62612         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62613         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62614         $(EXEEXT) to automake TESTS variable, for mingw32.
62615
62616 2006-01-17  Simon Josefsson  <jas@extundo.com>
62617
62618         * modules/socklen (Include): Need sys/socket.h.
62619
62620 2006-01-17  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/ssize_t (Include): Add <sys/types.h>.
62623
62624 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62627         it's not portable and it doesn't work with cross-compiles.
62628         Problem reported by Bruno Haible.  Fix missing-$ typo in
62629         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62630         -zignore from being used with Sun's C compiler.
62631
62632 2006-01-12  Simon Josefsson  <jas@extundo.com>
62633
62634         * lib/base64.c: Fix warning, reported by Bruno Haible
62635         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62636
62637 2006-01-12  Bruno Haible  <bruno@clisp.org>
62638
62639         * modules/ldd: New file.
62640         * build-aux/ldd.sh.in: New file.
62641         * MODULES.html.sh (Support for building libraries and executables): Add
62642         ldd.
62643
62644 2006-01-12  Bruno Haible  <bruno@clisp.org>
62645
62646         * m4/ldd.m4: New file.
62647
62648 2006-01-12  Bruno Haible  <bruno@clisp.org>
62649
62650         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62651         endless loop while replacing $auxdir with build-aux.
62652
62653 2006-01-11  Simon Josefsson  <jas@extundo.com>
62654
62655         * lib/stdint_.h (SIZE_MAX): Add missing (.
62656
62657 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         Sync from coreutils.
62660         * lib/md5.c: Fix commentary typos.
62661         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62662         * lib/md5.h (__attribute__): Remove; unused.
62663         * lib/sha1.c: Fix commentary to match md5 better.
62664         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62665         so that we don't need to worry about alignment.  All uses changed.
62666         This merges the 2005-10-28 md5 change into sha1.
62667
62668 2006-01-11  Jim Meyering  <jim@meyering.net>
62669
62670         Sync from coreutils.
62671         * lib/md5.c (OP): Fix spacing.
62672
62673 2006-01-11  Bruno Haible  <bruno@clisp.org>
62674
62675         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62676         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62677         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62678
62679 2006-01-11  Bruno Haible  <bruno@clisp.org>
62680
62681         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62682         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62683         the "early" section as well.
62684
62685 2006-01-11  Bruno Haible  <bruno@clisp.org>
62686
62687         Avoid "ar: no archive members specified" error on MacOS X.
62688         * gnulib-tool (func_modules_add_dummy): New function.
62689         (func_import, func_create_testdir): Invoke it.
62690
62691 2006-01-11  Bruno Haible  <bruno@clisp.org>
62692
62693         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62694         with $auxdir in AC_CONFIG_FILES statements.
62695
62696 2006-01-11  Bruno Haible  <bruno@clisp.org>
62697
62698         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62699         Initialize also noinst_HEADERS to empty.
62700
62701 2006-01-11  Bruno Haible  <bruno@clisp.org>
62702
62703         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62704         variables.
62705         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62706         autoreconf.
62707
62708 2006-01-11  Bruno Haible  <bruno@clisp.org>
62709
62710         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62711         overridable by the user.
62712         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62713
62714 2006-01-10  Simon Josefsson  <jas@extundo.com>
62715
62716         * modules/sys_socket: New file.
62717
62718 2006-01-10  Simon Josefsson  <jas@extundo.com>
62719
62720         * m4/sys_socket_h.m4: New file.
62721
62722 2006-01-10  Simon Josefsson  <jas@extundo.com>
62723
62724         * lib/socket_.h: New file.
62725
62726 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62727
62728         * modules/readutmp (Maintainer): Add myself.
62729
62730 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62731
62732         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62733         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62734         People who are still concerned with buggy memcmp implementations
62735         can invoke gl_FUNC_MEMCMP themselves.
62736
62737 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62738
62739         * lib/regex_internal.h (BITSET_WORD_BITS):
62740         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62741         preprocessor mishandles large unsigned values as if they were signed.
62742         Problem reported by Claudio Fontana in
62743         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62744
62745 2006-01-10  Jim Meyering  <jim@meyering.net>
62746
62747         Avoid the double-free (first in fts_read, second in fts_close) that
62748         would occur when an `active' directory is made inaccessible (e.g.,
62749         via chmod a-x) during a traversal.
62750         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62751         before returning.  Reproduce this failure by
62752         mkdir -p a/b; cd a; chmod a-x . b
62753         Reported by Stavros Passas.
62754
62755         Sync from coreutils.
62756         * lib/sha1.c: Tweak grammar in a comment.
62757
62758 2006-01-10  Jim Meyering  <jim@meyering.net>
62759
62760         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62761         Patch by Joerg Sonnenberger.
62762
62763 2006-01-10  Bruno Haible  <bruno@clisp.org>
62764
62765         * modules/readutmp: Depend on module free.
62766         * modules/strtok_r: Depend on module restrict.
62767
62768 2006-01-10  Bruno Haible  <bruno@clisp.org>
62769
62770         * modules/gettext (configure.ac): Add an invocation of
62771         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62772
62773 2006-01-10  Bruno Haible  <bruno@clisp.org>
62774
62775         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62776         Reported by Werner Lemberg <wl@gnu.org>.
62777
62778 2006-01-10  Bruno Haible  <bruno@clisp.org>
62779
62780         * lib/localcharset.c: Update from GNU gettext.
62781
62782 2006-01-10  Bruno Haible  <bruno@clisp.org>
62783
62784         * lib/argp.h (__const): Remove macro. Use const instead.
62785         * lib/argp-fmtstream.h (__const): Likewise.
62786         * lib/glob_.h (__const): Remove macro.
62787         * lib/glob-libc.h: Use const instead of __const.
62788
62789 2006-01-10  Bruno Haible  <bruno@clisp.org>
62790
62791         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62792         variable.
62793         Needed to avoid an automake error regarding the 'gettext' module.
62794
62795 2006-01-09  Simon Josefsson  <jas@extundo.com>
62796
62797         * modules/inet_ntop (Depends-on): Add restrict.
62798
62799 2006-01-09  Simon Josefsson  <jas@extundo.com>
62800
62801         * modules/gc-rijndael-tests (License): Put under LGPL.
62802
62803         * modules/gc-des-tests (License): Likewise.
62804
62805         * modules/gc-arcfour-tests (License): Likewise.
62806
62807         * modules/gc-arctwo-tests (License): Likewise.
62808
62809         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62810
62811         * modules/gc-hmac-sha1-tests (Files): Likewise.
62812
62813         * modules/gc-hmac-md5-tests (License): Likewise.
62814
62815         * modules/gc-sha1-tests (License): Likewise.
62816
62817         * modules/gc-md5-tests (License): Likewise.
62818
62819         * modules/gc-md4-tests (License): Likewise.
62820
62821         * modules/gc-md2-tests (License): Likewise.
62822
62823         * modules/gc-tests (License): Likewise.
62824
62825         * modules/des-tests (License): Likewise.
62826
62827         * modules/md4-tests (License): Likewise.
62828
62829         * modules/md2-tests (License): Likewise.
62830
62831 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62832
62833         Sync from coreutils:
62834
62835         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62836         * modules/lib-ignore: New file.
62837         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62838         chdir-safer.m4, lchmod.m4.
62839         * modules/openat: Add mkdirat.c, openat-priv.h.
62840
62841 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62842
62843         Sync from coreutils.
62844         * m4/lib-ignore.m4: New file.
62845         * m4/lchmod.m4: New file.
62846
62847 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62848
62849         Sync from coreutils.
62850         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62851         for write access: POSIX says that must fail.
62852         * lib/fts.c (diropen): Likewise.
62853         * lib/save-cwd.c (save_cwd): Likewise.
62854         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62855         well, for minor improvements on hosts that lack O_DIRECTORY.
62856         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62857         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62858         Fall back on chown if open failed with EACCES.
62859
62860         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62861         Report an error at compile-time if only a 1-second nominal clock
62862         resolution is found.
62863
62864         * lib/lchmod.h: New file.
62865         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62866         (make_dir_parents): Use lchown rather than chown, and
62867         lchmod rather than chmod.
62868
62869         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62870         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62871         "proc" reported by n0dalus.
62872
62873         * lib/mountlist.c: Include <limits.h>.
62874         (dev_from_mount_options)
62875         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62876         New function.  It no longer assumes "dev=" has the System V meaning
62877         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62878         (read_file_system_list)
62879         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62880         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62881         dev= in that case.
62882
62883         * lib/posixtm.h (PDS_PRE_2000): New macro.
62884         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62885         allow_century.  All usages changed.  Reject dates outside the range
62886         1969-1999 if PDS_PRE_2000 is used.
62887
62888 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62889
62890         Sync from coreutils.
62891         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62892         (Time of day items): Mention the possibility of leap seconds.
62893         Problem reported by Dr. David Alan Gilbert.
62894
62895 2006-01-09  Jim Meyering  <jim@meyering.net>
62896
62897         Sync from coreutils.
62898
62899         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62900
62901         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62902
62903         * lib/modechange.c (mode_compile): Reject an invalid mode string
62904         that starts with an octal digit.  From Andreas Gruenbacher.
62905
62906         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62907         and dup to open_safer and dup_safer, respectively.
62908         (openat_permissive): Fix typo in comment.
62909
62910         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62911         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62912         (_): Remove; no longer needed.
62913         (openat): Renamed from rpl_openat; no need for rpl_openat
62914         since openat.h renames openat for us.
62915         Replace most of the body with a call to openat_permissive,
62916         to avoid duplicate code.
62917         Port to (probably hypothetical) environments were mode_t is
62918         wider than int.
62919         (openat_permissive): Require mode arg, so that we can check
62920         types better.  Put it just after flags.  Change cwd failure
62921         indicator from pointer-to-bool to pointer-to-errno-value.
62922         All callers changed.
62923         Invoke openat_save_fail and/or openat_restore_fail if
62924         cwd_errno is null, so that openat can call us.
62925         (openat_permissive, fdopendir, fstatat, unlinkat):
62926         Simplify errno handling to avoid some duplicate code,
62927         as it's OK to set errno on success.
62928         * lib/openat.h: Revamp code so that function macros depend on
62929         __OPENAT_PREFIX only, not also on AT_FDCWD.
62930         (openat_ro): Remove.  Caller changed to use openat_permissive.
62931         (openat_permissive): Now a macro, if not a function.
62932         (openat_restore_fail, openat_save_fail): Now always functions,
62933         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62934
62935         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62936         and openat.c.
62937         * lib/mkdirat.c: Include openat-priv.h.
62938         Remove definitions of macros defined therein.
62939         * lib/openat.c: Likewise.
62940
62941         * lib/mkdirat.c (mkdirat): New file and function.
62942         * lib/openat.h (mkdirat): Declare.
62943
62944         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62945
62946         * lib/openat.h (openat_permissive): Declare.
62947         (openat_ro): Define.
62948
62949         * lib/openat.c (EXPECTED_ERRNO): New macro.
62950         (openat_permissive): New function -- used in remove.c rewrite.
62951         (all functions): Set errno just before returning, only if there
62952         was an actual failure.
62953         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
62954
62955         Emulate openat-family functions using Linux's procfs, if possible.
62956         Idea and some code based on Ulrich Drepper's glibc changes.
62957
62958         * lib/openat.c: (BUILD_PROC_NAME): New macro.
62959         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
62960         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
62961         before falling back on save_cwd and restore_cwd.
62962         (fdopendir, fstatat, unlinkat): Likewise.
62963
62964         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
62965         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
62966
62967         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
62968         as second argument to va_arg.  Otherwise, some versions of gcc
62969         warn that `if this code is reached, the program will abort'.
62970
62971 2006-01-09  Jim Meyering  <jim@meyering.net>
62972
62973         Sync from coreutils.
62974         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
62975         Require openat-priv.h.
62976
62977 2006-01-09  Bruno Haible  <bruno@clisp.org>
62978
62979         * modules/strnlen (Include): Use strnlen.h.
62980
62981 2006-01-09  Bruno Haible  <bruno@clisp.org>
62982
62983         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
62984
62985 2006-01-09  Bruno Haible  <bruno@clisp.org>
62986
62987         * lib/sysexit_.h (EX_OK): New macro.
62988         Suggested by Martin Lambers <marlam@marlam.de>.
62989
62990 2006-01-09  Bruno Haible  <bruno@clisp.org>
62991
62992         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
62993         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
62994
62995 2006-01-09  Bruno Haible  <bruno@clisp.org>
62996
62997         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
62998         numbers.
62999
63000 2006-01-09  Bruno Haible  <bruno@clisp.org>
63001
63002         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63003         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63004         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63005         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63006
63007 2006-01-09  Bruno Haible  <bruno@clisp.org>
63008
63009         * build-aux/javacomp.sh.in: New file, moved from lib/.
63010         * modules/javacomp-script (Files): Update.
63011         (configure.ac): Add AC_CONFIG_FILES invocation.
63012         (EXTRA_DIST): Remove variable.
63013
63014         * build-aux/javaexec.sh.in: New file, moved from lib/.
63015         * modules/javaexec (Files): Update.
63016         (configure.ac): Add AC_CONFIG_FILES invocation.
63017         (EXTRA_DIST): Remove javaexec.sh.in.
63018
63019         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63020         * modules/csharpcomp-script (Files): Update.
63021         (configure.ac): Add AC_CONFIG_FILES invocation.
63022         (EXTRA_DIST): Remove variable.
63023
63024         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63025         * modules/csharpexec (Files): Update.
63026         (configure.ac): Add AC_CONFIG_FILES invocation.
63027         (EXTRA_DIST): Remove csharpexec.sh.in.
63028
63029 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63030
63031         Sync from coreutils.
63032
63033         Add POSIX ACL support
63034         * lib/acl.h (copy_acl, set_acl): Add declarations.
63035         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63036         systems other than Linux.
63037         (chmod_or_fchmod): New function: use fchmod when possible,
63038         and chmod otherwise.
63039         (file_has_acl): Add a POSIX ACL implementation, with a
63040         Linux-specific subcase.
63041         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63042         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63043         acls are unsupported.
63044         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63045         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63046         are unsupported.
63047
63048 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63049
63050         Sync from coreutils.
63051         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63052
63053 2006-01-07  Bruno Haible  <bruno@clisp.org>
63054
63055         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63056         gl_EARLY.
63057
63058 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63059
63060         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63061         Problem reported for Mingw by Mark Junker.
63062
63063 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63064
63065         * README: Gnulib normally doesn't generate a tarball.
63066
63067 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63068
63069         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63070         long int, not int, for nanosecond counts, so that people who are
63071         used to POSIX struct timespec won't be surprised.  Reported by Jim
63072         Meyering.
63073
63074 2005-12-28  Bruno Haible  <bruno@clisp.org>
63075
63076         * build-aux/config.rpath: Update from GNU gettext.
63077
63078 2005-12-16  Jim Meyering  <jim@meyering.net>
63079
63080         * modules/fprintftime: New module.
63081         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63082
63083 2005-12-16  Jim Meyering  <jim@meyering.net>
63084
63085         * m4/fprintftime.m4: New file.
63086
63087 2005-12-16  Jim Meyering  <jim@meyering.net>
63088
63089         * lib/fprintftime.c, lib/fprintftime.h: New files.
63090
63091 2005-12-15  Simon Josefsson  <jas@extundo.com>
63092
63093         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63094         new m4/socklen.m4.
63095
63096 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63097
63098         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63099         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63100
63101 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63102
63103         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63104         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63105         struct uparams is valid. Fall back to the default values if it is
63106         not.
63107
63108 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63109
63110         * modules/argp (Files): Add argp-pin.c
63111         (Depends-on): dirname
63112         (lib_SOURCES): Add argp-pin.c
63113
63114 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63115
63116         * m4/argp.m4:  Check if program_invocation_name and
63117         program_invocation_short_name are declared and define appropriate
63118         macros if they are not.
63119
63120 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63121
63122         * lib/argp-help.c (__argp_base_name): New function
63123         (__argp_short_program_name): Rewrite using __argp_base_name
63124         * lib/argp-namefrob.h: Define program_invocation_name and
63125         program_invocation_short_name if requested
63126         (__argp_base_name): Add prototype
63127         * lib/argp-parse.c (argp_def): Use gettext wrappers
63128         (argp_default_parser): Use __argp_base_name
63129         * lib/argp-pin.c: New file. Defines program_invocation_name and
63130         program_invocation_short_name on systems that lack them.
63131
63132 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63133
63134         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63135         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63136         porting problem reported by Georg Schwarz in
63137         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63138
63139 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63140
63141         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63142         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63143         porting problem reported by Georg Schwarz in
63144         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63145
63146 2005-12-05  Bruno Haible  <bruno@clisp.org>
63147
63148         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63149         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63150         Reported by Mark Junker <mjscod@gmx.de>.
63151
63152 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63153
63154         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63155         Use implementation from Albert Chin, with some
63156         comments/corrections by Stepan Kasal and myself.
63157
63158 2005-12-02  Bruno Haible  <bruno@clisp.org>
63159
63160         * gnulib-tool (func_import): Accept GPLed build tool modules when
63161         --lgpl is given.
63162         * modules/csharpcomp-script: New file.
63163         * modules/csharpcomp: Depend on it.
63164         * modules/javacomp-script: New file.
63165         * modules/javacomp: Depend on it.
63166         Suggested by Simon Josefsson.
63167
63168 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63169
63170         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63171         statement, to work around an HP-UX 10.20 compiler bug reported by
63172         Peter O'Gorman.
63173
63174 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63175
63176         * modules/savedir (Depends-on): Add openat.
63177
63178 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63181         (uintmax_t) [defined uintmax_t]: Do not declare.
63182         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63183         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63184         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63185         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63186         sake of portability to weird hosts that C allows (though we don't
63187         know of any practical examples).
63188
63189         * lib/savedir.h (fdsavedir): New decl.
63190         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63191         contains most of the former guts of savedir.
63192         (savedir): Use savedirstream.
63193         Include "openat.h".
63194
63195 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * modules/obstack (Files): Add m4/ulonglong.m4.
63198         Problem reported by Davide Angelocola.
63199
63200 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63201
63202         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63203         coreutils no longer futzes with rounding modes.
63204
63205 2005-11-14  Jim Meyering  <jim@meyering.net>
63206
63207         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63208         replacement of mkstemp.
63209
63210 2005-11-10  Simon Josefsson  <jas@extundo.com>
63211
63212         * lib/readline.c: Remove EOL.
63213
63214 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         * modules/gethrxtime (Depends-on): Add gettime.
63217
63218 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63221         or gettimeofday; no longer needed.
63222
63223 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63224
63225         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63226         time business.
63227         (gethrxtime) [! (HAVE_NANOUPTIME
63228         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63229         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63230         our own approximation.
63231
63232 2005-11-08  Eric Blake  <ebb9@byu.net>
63233
63234         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63235
63236 2005-11-08  Eric Blake  <ebb9@byu.net>
63237
63238         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63239
63240 2005-11-04  Bruno Haible  <bruno@clisp.org>
63241
63242         * gnulib-tool: Implement --update mode.
63243
63244 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63245
63246         Fix porting problem reported by Theodoros V. Kalamatianos.
63247         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63248         Don't assume that futimes failing means we must fail.
63249
63250 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63253         variables to suggest the intended function of the PATH_MAX check.
63254
63255 2005-10-30  Kean Johnston  <jkj@sco.com>
63256
63257         Trivial changes to support SCO systems.
63258         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63259         as PATH_MAX.
63260         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63261         where __ptr is null when no I/O is pending.
63262
63263 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63266         leave errno alone.  Problem reported by Dmitry V. Levin.
63267
63268 2005-10-28  Simon Josefsson  <jas@extundo.com>
63269
63270         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63271         Test more.
63272
63273         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63274
63275         * modules/md2, modules/md2-tests: New files.
63276
63277 2005-10-28  Simon Josefsson  <jas@extundo.com>
63278
63279         * m4/inet_ntop.m4: More tests.
63280
63281         * m4/gc-md2.m4, md2.m4: New file.
63282
63283 2005-10-28  Simon Josefsson  <jas@extundo.com>
63284
63285         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63286         "restrict" keywords, as per POSIX.  Protect the function
63287         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63288         Don't use K&R prototypes.  Check the sprintf return values.
63289         Re-define EAFNOSUPPORT if not present.  Indent.
63290
63291         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63292         suggested by Bruno Haible <bruno@clisp.org>.
63293
63294         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63295
63296         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63297
63298         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63299         libgcrypt).
63300
63301         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63302
63303         * lib/md2.h, lib/md2.c: New files.
63304
63305 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63306
63307         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63308         errno alone.  Problem reported by Frederic Jolliton.
63309
63310 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63311
63312         * modules/verify (License): Change from GPL to LGPL.  This is a
63313         tiny module and there are apparently near-equivalents that are
63314         under the BSD license.
63315
63316 2005-10-24  Simon Josefsson  <jas@extundo.com>
63317
63318         * modules/sha1: Relicense to LGPL.
63319
63320 2005-10-24  Simon Josefsson  <jas@extundo.com>
63321
63322         * lib/md4.h: Shrink buffer size, now that we changed the type.
63323
63324 2005-10-23  Simon Josefsson  <jas@extundo.com>
63325
63326         * gnulib-tool (func_import): Fix --tests-base.
63327
63328 2005-10-22  Simon Josefsson  <jas@extundo.com>
63329
63330         * modules/arcfour (Depends-on): Need stdint.
63331
63332 2005-10-22  Simon Josefsson  <jas@extundo.com>
63333
63334         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63335         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63336
63337 2005-10-22  Simon Josefsson  <jas@extundo.com>
63338
63339         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63340         suggested by Bruno Haible <bruno@clisp.org>.
63341
63342 2005-10-22  Simon Josefsson  <jas@extundo.com>
63343
63344         * lib/crc.h: Include stddef.h, for size_t.
63345
63346 2005-10-22  Simon Josefsson  <jas@extundo.com>
63347
63348         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63349         arcfour_context struct (simplify test vector testing in GNU
63350         Shishi).
63351
63352 2005-10-21  Simon Josefsson  <jas@extundo.com>
63353
63354         * modules/des, modules/des-tests: New files.
63355
63356         * modules/gc-des, modules/gc-des-tests: New files.
63357
63358         * tests/test-des.c, tests/test-gc-des.c: New file.
63359
63360 2005-10-21  Simon Josefsson  <jas@extundo.com>
63361
63362         * modules/arctwo, modules/arctwo-tests: New files.
63363
63364         * tests/test-arctwo.c: New file.
63365
63366         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63367
63368         * tests/test-gc-arctwo.c: New file.
63369
63370 2005-10-21  Simon Josefsson  <jas@extundo.com>
63371
63372         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63373         Bruno Haible <bruno@clisp.org>.
63374
63375         * m4/gc-des.m4: New file.
63376
63377 2005-10-21  Simon Josefsson  <jas@extundo.com>
63378
63379         * m4/arctwo.m4: New file.
63380
63381         * m4/gc-arctwo.m4: New file.
63382
63383 2005-10-21  Simon Josefsson  <jas@extundo.com>
63384
63385         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63386         block.
63387
63388 2005-10-21  Simon Josefsson  <jas@extundo.com>
63389
63390         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63391         <bruno@clisp.org>.
63392
63393         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63394
63395         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63396         Bruno Haible <bruno@clisp.org>.
63397
63398         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63399         <bruno@clisp.org>.
63400
63401 2005-10-21  Simon Josefsson  <jas@extundo.com>
63402
63403         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63404
63405 2005-10-21  Simon Josefsson  <jas@extundo.com>
63406
63407         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63408
63409 2005-10-21  Simon Josefsson  <jas@extundo.com>
63410
63411         * lib/des.h, lib/des.c: New files.
63412
63413         * lib/gc-gnulib.c: Support DES.c
63414
63415 2005-10-21  Simon Josefsson  <jas@extundo.com>
63416
63417         * lib/arctwo.h, lib/arctwo.c: New files.
63418
63419         * lib/gc-gnulib.c: Support ARCTWO.
63420
63421 2005-10-21  Simon Josefsson  <jas@extundo.com>
63422
63423         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63424         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63425
63426 2005-10-21  Simon Josefsson  <jas@extundo.com>
63427
63428         * gnulib-tool (func_import, func_create_testdir): Define automake
63429         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63430         Makefile.am snippet),
63431         suggested by Bruno Haible <bruno@clisp.org>.
63432
63433         * modules/gc (Makefile.am): Use it.
63434
63435 2005-10-21  Bruno Haible  <bruno@clisp.org>
63436
63437         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63438         patch.
63439
63440 2005-10-19  Simon Josefsson  <jas@extundo.com>
63441
63442         * tests/test-gc-rijndael.c: New file.
63443
63444         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63445
63446 2005-10-19  Simon Josefsson  <jas@extundo.com>
63447
63448         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63449         interface too.
63450
63451 2005-10-19  Simon Josefsson  <jas@extundo.com>
63452
63453         * tests/test-gc-arcfour.c: New file.
63454
63455         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63456
63457 2005-10-19  Simon Josefsson  <jas@extundo.com>
63458
63459         * modules/gc-md4, modules/gc-md4-tests: New file.
63460
63461         * tests/test-gc-md4.c: New file.
63462
63463 2005-10-19  Simon Josefsson  <jas@extundo.com>
63464
63465         * m4/gc-md4.m4: New file.
63466
63467 2005-10-19  Simon Josefsson  <jas@extundo.com>
63468
63469         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63470         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63471         <kasal@ucw.cz>.
63472
63473 2005-10-19  Simon Josefsson  <jas@extundo.com>
63474
63475         * m4/gc-arcfour.m4: New file.
63476
63477         * m4/gc-rijndael.m4: New file.
63478
63479 2005-10-19  Simon Josefsson  <jas@extundo.com>
63480
63481         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63482
63483 2005-10-19  Simon Josefsson  <jas@extundo.com>
63484
63485         * lib/gc-gnulib.c: Support ARCFOUR.
63486
63487 2005-10-19  Simon Josefsson  <jas@extundo.com>
63488
63489         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63490         support.
63491
63492         * lib/gc.h: Add ECB enum type.
63493
63494         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63495
63496 2005-10-18  Simon Josefsson  <jas@extundo.com>
63497
63498         * tests/test-md5.c: New file.
63499
63500         * modules/md5-tests: New file.
63501
63502 2005-10-18  Simon Josefsson  <jas@extundo.com>
63503
63504         * tests/test-md4.c: New file.
63505
63506         * modules/md4, modules/md4-tests: New files.
63507
63508 2005-10-18  Simon Josefsson  <jas@extundo.com>
63509
63510         * m4/md4.m4: New file.
63511
63512 2005-10-18  Simon Josefsson  <jas@extundo.com>
63513
63514         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63515
63516 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63517
63518         * gnulib-tool (func_create_testdir): Omit the second check whether
63519         BUILT_SOURCES in nonempty.
63520
63521 2005-10-17  Simon Josefsson  <jas@extundo.com>
63522
63523         * tests/test-rijndael.c: New file.
63524
63525 2005-10-17  Simon Josefsson  <jas@extundo.com>
63526
63527         * modules/sha1: Depend on stdint instead of md5.
63528
63529         * modules/md5: Depend on stdint, remove uint32_t.
63530
63531 2005-10-17  Simon Josefsson  <jas@extundo.com>
63532
63533         * modules/gc-sha1-tests: New file.
63534
63535         * tests/test-gc-sha1.c: New file.
63536
63537 2005-10-17  Simon Josefsson  <jas@extundo.com>
63538
63539         * m4/md5.m4: Remove call to uint32_t.m4.
63540
63541 2005-10-17  Simon Josefsson  <jas@extundo.com>
63542
63543         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63544
63545         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63546         md5.h.
63547
63548         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63549
63550         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63551
63552 2005-10-17  Simon Josefsson  <jas@extundo.com>
63553
63554         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63555
63556 2005-10-17  Simon Josefsson  <jas@extundo.com>
63557
63558         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63559
63560 2005-10-17  Simon Josefsson  <jas@extundo.com>
63561
63562         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63563
63564         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63565
63566 2005-10-17  Bruno Haible  <bruno@clisp.org>
63567
63568         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63569         that it can also be used in a test.
63570
63571 2005-10-16  Bruno Haible  <bruno@clisp.org>
63572
63573         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63574         TESTS_ENVIRONMENT, so that individual tests can augment it.
63575
63576         * gnulib-tool (func_create_testdir): Use an intermediate target for
63577         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63578         macros, like $(ALLOCA_H), which cannot be passed through the command
63579         line.
63580
63581 2005-10-15  Simon Josefsson  <jas@extundo.com>
63582
63583         * modules/rijndael-tests: New file.
63584
63585         * modules/rijndael: New file.
63586
63587 2005-10-15  Simon Josefsson  <jas@extundo.com>
63588
63589         * m4/rijndael.m4: New file.
63590
63591 2005-10-15  Simon Josefsson  <jas@extundo.com>
63592
63593         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63594
63595         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63596
63597 2005-10-14  Simon Josefsson  <jas@extundo.com>
63598
63599         * tests/test-arcfour.c: New file.
63600
63601         * modules/arcfour, modules/arcfour-tests: New files.
63602
63603 2005-10-14  Simon Josefsson  <jas@extundo.com>
63604
63605         * m4/arcfour.m4: New file.
63606
63607 2005-10-14  Simon Josefsson  <jas@extundo.com>
63608
63609         * lib/arcfour.h, lib/arcfour.c: New files.
63610
63611 2005-10-14  Roland McGrath  <roland@redhat.com>
63612
63613         Import from libc.  [BZ #1331]
63614         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63615         macro argument.
63616         Reported by Matej Vela <vela@debian.org>.
63617
63618 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63619
63620         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63621         include <wchar.h>; no longer needed.
63622
63623 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63624
63625         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63626
63627 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63628         and  Ulrich Drepper  <drepper@redhat.com>
63629
63630         Import from libc.
63631         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63632         instead of inline stream orientation test and two separate
63633         function calls.  Pay no attention to USE_IN_LIBIO.
63634
63635 2005-10-13  Simon Josefsson  <jas@extundo.com>
63636
63637         * modules/gc-hmac-md5-tests: New file.
63638
63639         * tests/test-gc-hmac-sha1.c: New file.
63640
63641         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63642
63643         * modules/gc-hmac-md5-tests: New file.
63644
63645         * tests/test-gc-md5.c: New file.
63646
63647         * modules/gc-md5-tests: New file.
63648
63649 2005-10-13  Simon Josefsson  <jas@extundo.com>
63650
63651         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63652         Move memory allocation outside of loop.
63653
63654 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63655
63656         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63657         intermediate directory is in a read-only file system.  Problem
63658         reported by Eric Blake.
63659
63660 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63661
63662         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63663
63664 2005-10-12  Simon Josefsson  <jas@extundo.com>
63665
63666         * tests/test-hmac-sha1.c: New file.
63667
63668         * modules/hmac-sha1-tests: New file.
63669
63670         * modules/hmac-sha1: New file.
63671
63672 2005-10-12  Simon Josefsson  <jas@extundo.com>
63673
63674         * modules/gc-sha1: New file.
63675
63676 2005-10-12  Simon Josefsson  <jas@extundo.com>
63677
63678         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63679
63680         * tests/test-gc-pbkdf2-sha1.c: New file.
63681
63682 2005-10-12  Simon Josefsson  <jas@extundo.com>
63683
63684         * modules/gc-md5, modules/gc-hmac-md5: New files.
63685
63686         * modules/gc (Files): Remove md5, memxor and hmac files.
63687
63688 2005-10-12  Simon Josefsson  <jas@extundo.com>
63689
63690         * m4/gc-pbkdf2-sha1.m4: New file.
63691
63692         * m4/gc-hmac-sha1.m4: New file.
63693
63694         * m4/gc-sha1: New file.
63695
63696         * m4/hmac-sha1.m4: New file.
63697
63698 2005-10-12  Simon Josefsson  <jas@extundo.com>
63699
63700         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63701
63702         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63703
63704 2005-10-12  Simon Josefsson  <jas@extundo.com>
63705
63706         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63707         suggested by Bruno Haible <bruno@clisp.org>.
63708
63709 2005-10-12  Simon Josefsson  <jas@extundo.com>
63710
63711         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63712
63713 2005-10-12  Simon Josefsson  <jas@extundo.com>
63714
63715         * lib/gc-pbkdf2-sha1.c: New file.
63716
63717         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63718
63719 2005-10-12  Simon Josefsson  <jas@extundo.com>
63720
63721         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63722
63723         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63724
63725 2005-10-12  Simon Josefsson  <jas@extundo.com>
63726
63727         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63728         GC_USE_HMAC_MD5, respectively.
63729
63730         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63731         (gc_md5): Fix typo.
63732
63733         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63734
63735         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63736
63737         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63738
63739 2005-10-12  Bruno Haible  <bruno@clisp.org>
63740
63741         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63742         Reported by Stepan Kasal <kasal@ucw.cz>.
63743
63744 2005-10-11  Simon Josefsson  <jas@extundo.com>
63745
63746         * tests/test-crc.c: New file.
63747
63748         * modules/crc, modules/crc-tests: New files.
63749
63750 2005-10-11  Simon Josefsson  <jas@extundo.com>
63751
63752         * m4/crc.m4: New file.
63753
63754 2005-10-11  Simon Josefsson  <jas@extundo.com>
63755
63756         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63757
63758         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63759
63760         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63761
63762 2005-10-11  Simon Josefsson  <jas@extundo.com>
63763
63764         * lib/crc.h, lib/crc.c: New files.
63765
63766         * lib/gc.h (gc_hash_buffer): Add doc.
63767
63768 2005-10-11  Bruno Haible  <bruno@clisp.org>
63769
63770         * modules/c-strcasestr: New file.
63771         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63772
63773 2005-10-11  Bruno Haible  <bruno@clisp.org>
63774
63775         * modules/c-strcase: New file.
63776         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63777
63778 2005-10-11  Bruno Haible  <bruno@clisp.org>
63779
63780         * lib/strcasecmp.c: Include limits.h.
63781         (strcasecmp): Avoid integer overflow on exotic platforms.
63782         * lib/strncasecmp.c: Include limits.h.
63783         (strncasecmp): Avoid integer overflow on exotic platforms.
63784         Reported by Paul Eggert.
63785
63786 2005-10-11  Bruno Haible  <bruno@clisp.org>
63787
63788         * lib/c-strcasestr.h: New file, from GNU gettext.
63789         * lib/c-strcasestr.c: New file, from GNU gettext.
63790
63791 2005-10-11  Bruno Haible  <bruno@clisp.org>
63792
63793         * lib/c-strcase.h: New file, from GNU gettext.
63794         * lib/c-strcasecmp.c: New file, from GNU gettext.
63795         * lib/c-strncasecmp.c: New file, from GNU gettext.
63796
63797 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         * modules/mempcpy (License): GPL -> LGPL.
63800         * modules/strchrnul (License): Likewise.
63801         * modules/sysexits (License): Likewise.
63802
63803 2005-10-08  Simon Josefsson  <jas@extundo.com>
63804
63805         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63806
63807 2005-10-07  Simon Josefsson  <jas@extundo.com>
63808
63809         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63810
63811 2005-10-06  Simon Josefsson  <jas@extundo.com>
63812
63813         * tests/test-hmac-md5.c: New file.
63814
63815         * modules/hmac-md5-tests: New file.
63816
63817         * modules/hmac-md5: New file.
63818
63819 2005-10-06  Simon Josefsson  <jas@extundo.com>
63820
63821         * m4/hmac-md5.m4: New file.
63822
63823         * m4/memxor.m4: Require gl_C_RESTRICT.
63824
63825 2005-10-06  Simon Josefsson  <jas@extundo.com>
63826
63827         * lib/memxor.c (memxor): Avoid casts and warnings.
63828
63829 2005-10-06  Simon Josefsson  <jas@extundo.com>
63830
63831         * lib/hmac-md5.c: New file.
63832
63833         * lib/hmac.h: New file.
63834
63835 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63836
63837         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63838         promotes to int, not unsigned int, to catch the AIX 5.3
63839         compiler bug.
63840
63841 2005-10-05  Simon Josefsson  <jas@extundo.com>
63842
63843         * modules/memxor: New file.
63844
63845         * modules/iconv (Files): Move config.rpath to havelib, it is used
63846         there.
63847
63848         * modules/havelib (Files): Add config.rpath.
63849
63850 2005-10-05  Simon Josefsson  <jas@extundo.com>
63851
63852         * m4/memxor.m4: New file.
63853
63854 2005-10-05  Simon Josefsson  <jas@extundo.com>
63855
63856         * lib/memxor.c (memxor): Fix compiler error.
63857
63858         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63859         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63860
63861         * lib/memxor.h, lib/memxor.c: New files.
63862
63863         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63864         we assume all systems have it, suggested by Jim Meyering
63865         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63866         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63867         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63868         same reasons.
63869
63870 2005-10-05  Simon Josefsson  <jas@extundo.com>
63871
63872         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63873
63874 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63875
63876         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63877         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63878         needed, since the source code now assumes these .h files.
63879
63880 2005-10-05  Derek Price  <derek@ximbiot.com>
63881
63882         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63883
63884 2005-10-05  Bruno Haible  <bruno@clisp.org>
63885
63886         * modules/stdint (License): Change to LGPL.
63887
63888 2005-10-04  Simon Josefsson  <jas@extundo.com>
63889
63890         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63891         D. Baushke" <mdb@gnu.org>.
63892
63893 2005-10-04  Bruno Haible  <bruno@clisp.org>
63894
63895         * lib/verify.h (verify_true): Provide alternative definition for C++.
63896
63897 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63898
63899         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63900         (SSIZE_MAX): New macro, if not already defined.
63901         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63902         than 2 GiB.
63903
63904 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63905
63906         Sync from coreutils.
63907         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63908         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63909         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63910         ULLONG_MAX doesn't work with 2.7.2.1.
63911
63912 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63913
63914         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63915         From Ben Pfaff.
63916
63917         * modules/exclude (Depends-on): Depend on verify.
63918         * modules/strtoimax (Depends-on): Likewise.
63919         * modules/utimecmp (Depends-on): Likewise.
63920
63921 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63922
63923         * lib/exclude.c: Include verify.h.
63924         (verify): Remove.  All callers changed to use verify.h's version.
63925         * lib/strtoimax.c: Likewise.
63926         * lib/utimecmp.c: Likewis.e
63927
63928         Sync from coreutils.
63929         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63930         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63931         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63932         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63933         bother returning ENOSYS if settimeofday or stime fails; just let
63934         them return whatever errno they want to return.
63935         * lib/utimens.c: Include unistd.h, for dup2.
63936         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63937         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63938
63939 2005-10-02  Jim Meyering  <jim@meyering.net>
63940
63941         Sync from coreutils.
63942         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63943         from glibc-2.2.5 that fails for read-only files.
63944
63945 2005-10-02  Jim Meyering  <jim@meyering.net>
63946
63947         Sync from coreutils.
63948         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63949         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63950         `#if HAVE_CONFIG_H'.
63951         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63952         Remove AT_FDCWD test.
63953         Do not consume the fd unless successful.
63954         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
63955         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
63956         block, so that we don't even try to compile it if settimeofday is
63957         available.  This works around a compilation failure on OSF1 V5.1,
63958         due to stime requiring a `long int*' while tv_sec is `int'.
63959
63960 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
63961
63962         Sync from coreutils.
63963         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
63964         against `yes', rather than just testing for nonempty.
63965
63966 2005-10-01  Simon Josefsson  <jas@extundo.com>
63967
63968         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
63969         and Darwin.
63970
63971         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
63972         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
63973         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
63974         freeaddrinfo and gai_strerror are declared by the POSIX headers.
63975         Check if struct addrinfo is declared.
63976
63977 2005-10-01  Simon Josefsson  <jas@extundo.com>
63978
63979         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
63980         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
63981         AI_* and EAI_* definitions.  Protect function declarations.
63982
63983 2005-10-01  Jim Meyering  <jim@meyering.net>
63984
63985         Sync from coreutils.
63986
63987         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
63988         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
63989         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
63990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63991         in the inet and nsl libraries.  Required on Solaris 5.7.
63992
63993 2005-10-01  Jim Meyering  <jim@meyering.net>
63994
63995         Sync from coreutils.
63996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63997         in the inet and nsl libraries.  Required on Solaris 5.7.
63998
63999 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64000
64001         * lib/getdelim.c (getdelim): Remove unused variables.
64002
64003 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64004
64005         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64006         so that the code works even with ancient cpp.  Portability problem
64007         with GCC 2.7.2.1 reported by Thomas M.Ott.
64008
64009 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         * modules/regex (Depends-on): Add strcase.
64012
64013         * modules/gethostname (Licence): Change from GPL to LGPL, since
64014         gethostname.c is a trivial implementation of a standard library
64015         function.
64016         * modules/poll (License): Change from GPL to LGPL, since it's
64017         derived from LGPL code.
64018
64019 2005-09-27  Jim Meyering  <jim@meyering.net>
64020
64021         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64022         HAVE_CONFIG_H.
64023
64024         * lib/intprops.h (signed_type_or_expr__): Define.
64025         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64026         for unsigned types.
64027
64028 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64029
64030         * lib/verify.h (verify_expr): Remove, replacing with:
64031         (verify_true): New macro that returns true instead of void.
64032         (verify_type__): Remove.
64033         (verify): Use verify_true rather than verify_type__.
64034
64035 2005-09-26  Bruno Haible  <bruno@clisp.org>
64036
64037         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64038         is necessary.
64039         (lib_SOURCES): Remove mbchar.c.
64040         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64041         (Files): Add m4/mbrtowc.m4.
64042         * modules/mbiter: Likewise.
64043         * modules/mbuiter: Likewise.
64044
64045 2005-09-26  Bruno Haible  <bruno@clisp.org>
64046
64047         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64048         compile mbchar.c if they are not both present.
64049         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64050         * m4/mbiter.m4 (gl_MBITER): Likewise.
64051         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64052         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64053         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64054
64055 2005-09-25  Jim Meyering  <jim@meyering.net>
64056
64057         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64058         also uses socklen_t.
64059
64060 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64061
64062         * lib/utimens.c (ENOSYS): Define if not already defined.
64063         (futimens): Support having a null PATH if the file descriptor
64064         is nonnegative.
64065
64066         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64067         Remove.
64068         (__attribute): Define to empty unless GCC 3.1 or later.
64069         This works around a core dump on OpenBSD 3.4, which has GCC
64070         2.95.3, which dumps core when given __attribute__(()).  It also
64071         simplifies other tests, since we really don't want to bother with
64072         worrying about which ancient version of GCC supported what.
64073         Original problem reported by Yoann Vandoorselaere, with part of
64074         the fix suggested by Derek Price.
64075
64076 2005-09-24  Jim Meyering  <jim@meyering.net>
64077
64078         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64079         so we can once again use a positive bitfield width of 1 -- now we
64080         don't have to explain why we were using a bitfield width of 2.
64081
64082 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64083
64084         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64085         and similarly for the other external symbols.  Problem reported
64086         by James Gallager.
64087
64088         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64089         bug reported by Jim Meyering.
64090
64091         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64092         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64093         not needed, since socklen is a prerequisite module.
64094
64095 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64096
64097         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64098         Problem reported by Eric Blake.
64099         (getaddrinfo): Initialize se so that it's not garbage.
64100         Redo internal storage allocation so that it doesn't make unportable
64101         assumptions about alignment.
64102         Fix a memory leak.
64103
64104         * lib/utimens.c (futimens): Use futimesat if available.
64105         Prefer it to futimes since it doesn't have the futimes bug.
64106
64107         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64108         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64109         Instead, declare a function that returns a pointer to an array,
64110         and use verify_type__ to declare the size of the array.
64111         Problem and germ of a solution reported by Bruno Haible.
64112         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64113         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64114
64115 2005-09-23  Jim Meyering  <jim@meyering.net>
64116
64117         Sync from coreutils.
64118         Correct build failure (socklen_t not defined) on at least
64119         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64120         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64121
64122 2005-09-23  Jim Meyering  <jim@meyering.net>
64123
64124         * modules/getaddrinfo (Depends-on): Add socklen.
64125
64126 2005-09-23  Bruno Haible  <bruno@clisp.org>
64127
64128         * tests/test-verify.c: New file.
64129
64130 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64131
64132         Sync from coreutils.
64133
64134         * modules/argmatch (Depends-on): Add verify.
64135         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64136         unistd-safer.
64137         * modules/save-cwd (Depends-on): Likewise.
64138
64139         * modules/openat (Files): Add lib/openat-die.c.
64140         (Depends-on): Remove error, exitfail.
64141         Add dirname.
64142
64143         * modules/verify: New file.
64144         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64145         with "verify" module.
64146
64147 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         Sync from coreutils.
64150
64151         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64152         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64153         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64154         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64155         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64156         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64157         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64158         Don't bother checking for string.h, stdlib.h, unistd.h.
64159         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64160         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64161         module's job.
64162         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64163         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64164
64165         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64166         (gl_GETDATE): Use it.
64167
64168         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64169
64170 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         Sync from coreutils.
64173
64174         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64175         stat-time.h.
64176         * lib/argmatch.h: Include verify.h
64177         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64178         (ARGMATCH_ASSERT): Remove; unused.
64179         * lib/canonicalize.c: Assume STDC_HEADERS.
64180         * lib/exclude.c: Include "strcase.h".
64181         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64182         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64183         and stdio-safer.h.
64184         (getusershell): Call fopen, not fopen_safer.
64185         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64186         Do not include unistd-safer.h.
64187         (save_cwd): Don't call fd_safer; no longer needed
64188         now that we include fcntl--.h.
64189
64190         * lib/getdate.y (relative_time): New type.
64191         (RELATIVE_TIME_0): New constant.
64192         (parser_control): Use relative_time instead of doing it ourselves.
64193         (%union): Add new relative_time rel member.
64194         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64195         Now typeless.
64196         (relunit, relunit_snumber): Now of type rel.
64197         (zone, rel, relunit, get_date): Adjust to above changes.
64198
64199         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64200         Do not include unistd-safer.h.
64201         (getloadavg): Don't call fd_safer; no longer needed
64202         now that we include fcntl--.h.
64203
64204         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64205         (make_dir_parents): Treat ENOSYS like EEXIST.
64206
64207         Improve quality of diagnostics on restore_cwd failure.
64208         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64209         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64210         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64211         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64212         each time through the loop.  Do not diagnose restore_cwd failure;
64213         that is the caller's job (and perhaps the caller does not care).
64214
64215         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64216         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64217         If the file already exists but is not a directory, don't bother
64218         to try to make its parents.
64219         Close potential file descriptor leak if we can't chdir("/") (!).
64220         Don't always return true if chdir($PWD) fails; return true only
64221         if the requested action was done successfully (except for the
64222         chdir($PWD)).
64223         Don't log final directory unless we actually made it.
64224         Refactor to avoid duplicate code to fix up permissions.
64225         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64226
64227         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64228         to make it a bit faster and (I hope) clearer.
64229         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64230         Fix bug in formats like %2N.
64231
64232         * lib/verify.h: New file.
64233
64234 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64235
64236         Sync from coreutils.
64237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64238
64239 2005-09-22  Jim Meyering  <jim@meyering.net>
64240
64241         Sync from coreutils.
64242
64243         * m4/lstat.m4 (gl_FUNC_LSTAT):
64244         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64245         Remove obsolete comment.
64246         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64247         * m4/xstrtod.m4: Likewise.
64248
64249         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64250
64251 2005-09-22  Jim Meyering  <jim@meyering.net>
64252
64253         Sync from coreutils.
64254
64255         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64256
64257         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64258         the .tm_year member, since otherwise gcc-4.0 would now warn about
64259         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64260
64261         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64262         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64263
64264         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64265         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64266         when run in a time zone for which daylight savings time is in effect
64267         for the starting date.
64268
64269         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64270         stop us from restricting permissions of just-created absolute-named
64271         directories.
64272         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64273         to restore initial working directory.
64274         * lib/mkdir-p.c (make_dir_parents): New parameter:
64275         different_working_dir, to tell caller if/when we change the working
64276         directory and are unable to return to the initial one.
64277         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64278         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64279         `return false'.  This fixes a bug introduced on 2004-07-30.
64280
64281         * lib/openat.c (fdopendir): Be sure to close the supplied
64282         file descriptor before returning.  This makes our replacement
64283         implementation a little closer to Solaris's, where fdopendir
64284         ties the file descriptor to the returned DIR* pointer.
64285         * lib/openat.c (unlinkat): New function.
64286         * lib/openat.h (unlinkat): Add prototype.
64287         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64288         (openat_restore_fail): Rename from openat_restore_die.
64289         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64290
64291         Provide an alternative to exiting immediately upon save_cwd or
64292         restore_cwd failure.  Now, an application can arrange e.g.,
64293         to perform a longjump in that case.
64294         * lib/openat.c: Include dirname.h.
64295         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64296         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64297         and openat_restore_die rather than calling error directly.
64298         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64299
64300         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64301         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64302         define.
64303
64304         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64305         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64306                             int utc, int nanoseconds);
64307         Background:
64308         date should not have to allocate a megabyte of virtual memory to
64309         handle a format argument like +%1048575T.  When implemented with
64310         strftime, it must allocate such a buffer, use strftime to fill it
64311         in, print it, then free it.
64312         With fprintftime, it simply prints everything and exits.
64313         With no need for memory allocation, that's one fewer way to fail.
64314         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64315         optional field width, not before, so we accept %9:z, not %:9z.
64316         (my_strftime): Be sure to use L_('x') for literals.
64317
64318         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64319         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64320         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64321         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64322         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64323         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64324         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64325         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64326         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64327         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64328         * lib/xgethostname.c, lib/xreadlink.c:
64329         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64330
64331         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64332         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64333         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64334         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64335         and don't include <sys/file.h>).
64336
64337 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64338
64339         Sync from coreutils.
64340
64341         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64342         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64343         [!LDAV_DONE]: Avoid unused variable warning.
64344
64345 2005-09-21  Bruno Haible  <bruno@clisp.org>
64346
64347         * lib/unicodeio.h (unicode_to_mb): New declaration.
64348
64349 2005-09-20  Derek Price  <derek@ximbiot.com>
64350
64351         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64352         getaddrinfo.h.
64353
64354 2005-09-20  Bruno Haible  <bruno@clisp.org>
64355
64356         * gnulib-tool: Remove trailing slashes from the values specified for
64357         --source-base, --m4-base, --tests-base, --aux-dir.
64358         Suggested by Simon Josefsson <jas@extundo.com>.
64359
64360 2005-09-20  Bruno Haible  <bruno@clisp.org>
64361
64362         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64363         func_modules_to_filelist, func_import, func_create_testdir): Make all
64364         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64365         change when gnulib-tool is invoked in a different locale.
64366
64367 2005-09-19  Simon Josefsson  <jas@extundo.com>
64368
64369         * m4/socklen.m4: Fix typo.
64370
64371 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64372
64373         Use a consistent style for including <config.h>.
64374         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64375         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64376         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64377         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64378         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64379         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64380         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64381         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64382         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64383         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64384         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64385         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64386         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64387         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64388         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64389         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64390         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64391         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64392         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64393         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64394         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64395         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64396         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64397         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64398         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64399         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64400         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64401         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64402         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64403         lib/xstrtoumax.c, lib/yesno.c:
64404         Standardize inclusion of config.h.
64405         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64406         lib/inttostr.h:  Removed inclusion of config.h from header files.
64407         * lib/inttostr.c:  Adjusted in-tree users.
64408         * lib/timespec.h: Remove superfluous warning to include config.h.
64409         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64410         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64411         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64412         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64413         config.h with HAVE_CONFIG_H.
64414
64415 2005-09-19  Jim Meyering  <jim@meyering.net>
64416
64417         * modules/pathmax (License): Change to LGPL.
64418
64419 2005-09-19  Derek Price  <derek@ximbiot.com>
64420
64421         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64422
64423 2005-09-19  Bruno Haible  <bruno@clisp.org>
64424
64425         * gnulib-tool (import): Provide default for --tests-base.
64426
64427 2005-09-19  Bruno Haible  <bruno@clisp.org>
64428
64429         * doc/quote.texi: New file, extracted from gnulib.texi.
64430         * doc/ctime.texi: New file, extracted from gnulib.texi.
64431         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64432         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64433         * doc/gnulib.texi: Include them.
64434
64435 2005-09-18  Bruno Haible  <bruno@clisp.org>
64436
64437         Portability fix.
64438         * gnulib-tool (func_readlink): New function.
64439         (func_ln_if_changed): Use it.
64440
64441 2005-09-18  Bruno Haible  <bruno@clisp.org>
64442
64443         * gnulib-tool: Support --with-tests also with --import.
64444         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64445         (func_import): Use variables $testsbase and $inctests. Emit a
64446         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64447         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64448         SUBDIRS += $testsdir.
64449         (func_create_testdir): Update.
64450
64451 2005-09-18  Bruno Haible  <bruno@clisp.org>
64452
64453         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64454         instead of $dry_run.
64455         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64456         (func_ln_if_changed): Don't handle dry-run here.
64457         (func_import): In dry-run mode, detect more precisely which actions
64458         would be performed, and don't use "...ing" verbs.
64459
64460 2005-09-18  Bruno Haible  <bruno@clisp.org>
64461
64462         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64463         (func_import): Use join on two temporary files instead of three nested
64464         loops, in order to determine which files are new or old.
64465
64466 2005-09-18  Bruno Haible  <bruno@clisp.org>
64467
64468         * gnulib-tool (func_import): Comment out code that spits out the
64469         new files with --dry-run.
64470
64471 2005-09-18  Bruno Haible  <bruno@clisp.org>
64472
64473         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64474
64475 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64476
64477         * lib/stat-time.h: New file.
64478         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64479         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64480         in a different way.
64481         (timespec_cmp): New function.
64482         * lib/utimecmp.c: Include stat-time.h.
64483         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64484         members exist, not on the obsolescent ST_MTIM_NSEC.
64485         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64486
64487 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64490
64491 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64492
64493         * MODULES.html.sh (File system functions): Add stat-time.
64494         * modules/stat-time: New file.
64495         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64496         is now done in a different way, by the stat-time module.
64497         * modules/utimecmp (Depends-on): Add stat-time.
64498
64499 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         * m4/st_mtim.m4: Remove.  Superseded by...
64502         * m4/stat-time.m4: New file.
64503         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64504         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64505
64506 2005-09-15  Derek Price  <derek@ximbiot.com>
64507
64508         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64509
64510 2005-09-15  Derek Price  <derek@ximbiot.com>
64511
64512         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64513         * lib/regex_internal.c: Ditto, using this...
64514         (__GNUC_PREREQ): ...new macro.
64515         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64516         using...
64517         (__GNUC_PREREQ): ...this new macro.
64518
64519         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64520
64521 2005-09-15  Derek Price  <derek@ximbiot.com>
64522             Paul Eggert  <eggert@cs.ucla.edu>
64523
64524         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64525         changes, consolidating in...
64526         * lib/regex_internal.h: ...this file.
64527
64528 2005-09-13  Jim Meyering  <jim@meyering.net>
64529
64530         * lib/canon-host.c: Filter through gnu indent and reword comments
64531         slightly.
64532         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64533
64534 2005-09-13  Derek Price  <derek@ximbiot.com>
64535
64536         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64537         failure.
64538         Reported by Jim Meyering  <jim@meyering.net>.
64539
64540 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64541
64542         * lib/base64.c: Typo.
64543         (base64_encode): Put b64str in initialized data section.
64544
64545 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64546
64547         Merge glibc and coreutils changes into gnulib, plus a few
64548         extra fixes.
64549         * lib/md5.c: Use #error rather than a string.
64550         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64551         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64552         (__attribute__): Define to empty for non recent-GCC.
64553         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64554         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64555         Renamed from their non-__ counterparts, with new macros replacing
64556         them if not _LIBC.  Add __THROW attribute.
64557         (rol): Remove.
64558         (struct md5_ctx): Align buffer if using GCC.
64559         * lib/sha1.h (struct sha1_ctx): Likewise.
64560         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64561         The old name was backwards.
64562         (NOTSWAP): Remove; not used.
64563         (rol): New macro, moved here from md5.h.
64564         (sha1_process_block): Remove a FIXME that doesn't make sense.
64565
64566 2005-09-12  Derek Price  <derek@ximbiot.com>
64567
64568         Return usable errors from canon-host.
64569         * lib/canon-host.h: New file.
64570         * lib/canon-host.c (canon_host): Wrap...
64571         (canon_host_r): ...this new function, which now relies exclusively on
64572         getaddrinfo.
64573         (ch_strerror): New function.
64574         (last_cherror): New global.
64575         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64576         interface.
64577         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64578         void *.
64579         (freeaddrinfo): Free ai->ai_canonname when set.
64580
64581 2005-09-12  Derek Price  <derek@ximbiot.com>
64582
64583         Make canon-host require getaddrinfo.
64584         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64585         AC_LIBSOURCE canon-host.h.  Call...
64586         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64587         gl_GETADDRINFO.
64588         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64589
64590 2005-09-12  Derek Price  <derek@ximbiot.com>
64591
64592         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64593         LGPL.
64594         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64595
64596 2005-09-12  Derek Price  <derek@ximbiot.com>
64597
64598         * lib/gai_strerror.c: Include config.h when available.  Include
64599         getaddrinfo.h before other headers to test interface.
64600         Reported by Larry Jones <lawrence.jones@ugs.com>.
64601
64602 2005-09-12  Derek Price  <derek@ximbiot.com>
64603             Paul Eggert  <eggert@cs.ucla.edu>
64604
64605         * modules/glob (Files): Add glob-libc.h.
64606
64607 2005-09-12  Derek Price  <derek@ximbiot.com>
64608             Paul Eggert  <eggert@cs.ucla.edu>
64609
64610         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64611         glob_.h, glob-libc.h.
64612         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64613
64614 2005-09-12  Derek Price  <derek@ximbiot.com>
64615             Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64618         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64619         protecting things that should be done only in gnulib contexts.
64620         * lib/glob_.h: New file, containing only the glob things needed for
64621         gnulib.
64622         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64623         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64624         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64625         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64626         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64627         and to respect the namespace rules better.
64628
64629 2005-09-08  Simon Josefsson  <jas@extundo.com>
64630
64631         * modules/socklen: New file.
64632
64633 2005-09-08  Simon Josefsson  <jas@extundo.com>
64634
64635         * m4/socklen.m4: New file.
64636
64637 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64638
64639         * modules/utimens (Files): Add m4/utimbuf.m4, since
64640         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64641         Reported by Sergey Poznyakoff.
64642
64643 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64644
64645         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64646         definitions, since that's the preferred style in glibc.
64647         Fix a minor spacing issue, and update copyright notice to match
64648         glibc's.
64649
64650 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64651
64652         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64653
64654 2005-09-06  Simon Josefsson  <jas@extundo.com>
64655
64656         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64657         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64658
64659 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64660
64661         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64662         warning.
64663
64664 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64665
64666         * config/srclist.txt: Add glibc bug 1302.
64667
64668 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64669
64670         Change bitset word type from unsigned int to unsigned long int,
64671         as this has better performance on typical 64-bit hosts.
64672         Port bitset code to hosts with unusual word sizes.
64673         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64674         (build_collating_symbol):
64675         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64676         argument is a bitset.  This is merely a style issue, but it makes
64677         it clearer that an entire array is expected.
64678         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64679         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64680         Port to the case where bitset_word is not the same as unsigned int.
64681         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64682         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64683         Likewise.
64684         * lib/regexec.c (check_dst_limits_calc_pos_1,
64685         check_subexp_matching_top):
64686         (build_trtable, group_nodes_into_DFAstates):
64687         Likewise.
64688         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64689         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64690         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64691         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64692         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64693         * lib/regcomp.c (optimize_subexps, lower_subexp):
64694         Work even if bitset_word has holes in its bitwise representation.
64695         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64696         * lib/regexec.c (check_dst_limits_calc_pos_1,
64697         check_subexp_matching_top):
64698         Likewise.
64699         * lib/regex_internal.c (re_string_reconstruct):
64700         Don't assume UCHAR_MAX == 255.
64701         * lib/regex_internal.h (bitset_set_all): Likewise.
64702         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64703         All uses changed.
64704         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64705         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64706         All uses changed.
64707         (BITSET_WORD_MAX): New macro.
64708         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64709         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64710         (bitset_empty, bitset_copy):
64711         Prefer sizeof (bitset) to multiplying it out ourselves.
64712         (bitset_not_merge): Remove; unused.
64713         (bitset_contain): Return bool, not unsigned int with one bit on.
64714         All callers changed.
64715         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64716         alignment than re_node_set; do this by defining a new internal
64717         type struct dests_alloc and using it to allocate memory.
64718
64719 2005-09-05  Bruno Haible  <bruno@clisp.org>
64720
64721         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64722         links.
64723
64724 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64725
64726         * modules/size_max (Makefile.am): Add size_max.h
64727
64728 2005-09-04  Derek Price  <derek@ximbiot.com>
64729
64730         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64731
64732 2005-09-03  Simon Josefsson  <jas@extundo.com>
64733
64734         * gnulib-tool: Fix typo.
64735
64736 2005-09-03  Simon Josefsson  <jas@extundo.com>
64737
64738         * config/srclist.txt: Add glibc bug 1293.
64739
64740 2005-09-03  Derek Price  <derek@ximbiot.com>
64741
64742         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64743         From Larry Jones <lawrence.jones@ugs.com>.
64744
64745 2005-09-02  Simon Josefsson  <jas@extundo.com>
64746
64747         * modules/socklen: New file.
64748
64749 2005-09-02  Simon Josefsson  <jas@extundo.com>
64750
64751         * modules/havelib: New module.
64752
64753         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64754         Use havelib.
64755
64756 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64757
64758         Check for arithmetic overflow when calculating sizes, to prevent
64759         some buffer-overflow issues.  These patches are conservative, in the
64760         sense that when I couldn't determine whether an overflow was possible,
64761         I inserted a run-time check.
64762         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64763         macros.
64764         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64765         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64766         (re_xnrealloc, re_x2nrealloc): New inline functions.
64767         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64768         parse_bracket_exp):
64769         (build_equiv_class, build_charclass): Check for arithmetic overflow
64770         in size expression calculations.
64771         * lib/regex_internal.c (re_string_realloc_buffers):
64772         (build_wcs_upper_buffer, re_node_set_add_intersect):
64773         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64774         (re_dfa_add_node, register_state): Likewise.
64775         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64776         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64777         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64778         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64779
64780 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64781
64782         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64783         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64784
64785 2005-09-02  Bruno Haible  <bruno@clisp.org>
64786
64787         Support for lib vs. lib64 distinction on biarch platforms.
64788         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64789         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64790         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64791
64792 2005-09-02  Bruno Haible  <bruno@clisp.org>
64793
64794         * gnulib-tool (import): In the other first-use case, provide defaults
64795         as well.
64796
64797 2005-09-02  Bruno Haible  <bruno@clisp.org>
64798
64799         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64800         patches not yet found in the latest gettext release.
64801
64802 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64803
64804         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64805         to avoid a collision with bits/local_lim.h in glibc.
64806         All uses changed.  Problem reported by Dmitry V. Levin in
64807         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64808
64809         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64810         bugs in int versus size_t comparisons.
64811         (re_string_context_at): Fix bug where the code assumed that
64812         Idx is signed.
64813
64814         Use bool where appropriate.
64815         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64816         All callers changed.
64817         (calc_eclosure_iter): Likewise, for ROOT arg.
64818         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64819         (build_charclass_op): Likewise, for NON_MATCH arg.
64820         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64821         (re_string_construct_common): Likewise, for ICASE arg.
64822         * lib/regexec.c (re_search_2_stub, re_search_stub):
64823         Likewise, for RET_LEN arg.
64824         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64825         (set_regs): Likewise, for FL_BACKTRACK arg.
64826         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64827         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64828         (calc_eclosure_iter, parse_bracket_exp):
64829         Use bool for internal variables that are booleans.
64830         * lib/regexec.c (re_search_internal, check_matching,
64831         proceed_next_node):
64832         (set_regs, build_sifted_states, sift_states_bkref):
64833         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64834         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64835         (find_collation_sequence_value):
64836         Likewise.
64837         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64838         (re_node_set_compare):
64839         Return bool, not int. All callers changed.
64840         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64841         (build_trtable, check_node_accept): Likewise.
64842         * lib/regex_internal.h: Include stdbool.h.
64843
64844         Fix bugs uncovered when converting to bool.
64845         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64846         failure instead of charging ahead blindly.
64847         * lib/regex_internal.c (register_state): Likewise.
64848         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64849         for freeing internal storage.
64850         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64851         bitset pieces used as boolean, to avoid undefined behavior
64852         on hosts that do int overflow checking.
64853
64854 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64855
64856         * config/srclist.txt: Add glibc bugs 1285-1287.
64857
64858 2005-09-01  Jim Meyering  <jim@meyering.net>
64859
64860         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64861         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64862         Require gl_STAT_MACROS, too.
64863
64864 2005-09-01  Bruno Haible  <bruno@clisp.org>
64865
64866         * gnulib-tool (import): In the first-use case, provide defaults.
64867
64868 2005-09-01  Bruno Haible  <bruno@clisp.org>
64869
64870         * gnulib-tool (func_import): Remove the .tmp files.
64871
64872 2005-09-01  Bruno Haible  <bruno@clisp.org>
64873
64874         * gnulib-tool (func_import): Fix handling of symbolic links.
64875
64876 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64879         old glibc regex code mishandles strings longer than 2**31 bytes.
64880         This patch fixes this when the regex code is used in gnulib
64881         (i.e., outside glibc).
64882
64883         This patch should not affect the use of the regex code inside
64884         glibc.  No doubt this problem also needs to be handled for glibc
64885         as well, but the result will be an incompatible change to the
64886         glibc ABI, and the old ABI will have to be supported too.  That
64887         can be the the subject for another patch.
64888
64889         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64890         governing whether the rest of this patch is active.  By default,
64891         the macro is disabled and the patch has no effect.
64892         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64893         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64894         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64895         (re_match_2, re_set_registers): Use the new types.
64896         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64897         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64898         New macros.
64899         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64900         (re_string_context_at, bin_tree_t, re_dfastate_t):
64901         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64902         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64903         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64904         (re_string_char_size_at, re_string_wchar_at):
64905         (re_string_elem_size_at):
64906         Use the new types and macros to port to 64-bit hosts.
64907         Use unsigned types for internal values, so that the code
64908         mostly works even for arrays larger than SSIZE_MAX.
64909         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64910         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64911         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64912         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64913         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64914         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64915         (calc_inveclosure, parse_dup_op, build_range_exp):
64916         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64917         (fetch_number, create_token_tree, mark_opt_subexp):
64918         Likewise.
64919         * lib/regex_internal.c (re_string_construct_common,
64920         create_ci_newstate):
64921         (create_cd_newstate, re_string_allocate, re_string_construct):
64922         (re_string_realloc_buffers, build_wcs_upper_buffer):
64923         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64924         (re_string_reconstruct, re_string_peek_byte_case):
64925         (re_string_fetch_byte_case, re_string_context_at):
64926         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64927         (re_node_set_init_copy, re_node_set_add_intersect):
64928         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64929         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64930         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64931         (re_acquire_state, re_acquire_state_context, register_state):
64932         Likewise.
64933         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64934         search_cur_bkref_entry):
64935         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64936         (re_search_internal, re_search_2_stub, re_search_stub)
64937         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64938         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64939         (update_cur_sifted_state, check_dst_limits):
64940         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64941         (check_subexp_limits, sift_states_bkref, merge_state_array):
64942         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64943         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64944         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64945         (expand_bkref_cache, check_node_accept_bytes):
64946         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64947         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64948         (acquire_init_state_context, check_halt_node_context):
64949         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64950         (sift_states_backward, clean_state_log_if_needed):
64951         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64952         (find_recover_state, transit_state_sb, transit_state_mb):
64953         (transit_state_bkref, build_trtable, match_ctx_clean):
64954         Likewise.
64955         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
64956         to work around an assumption that REG_MISSING is negative.
64957
64958         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
64959         (seek_collating_symbol_entry) [defined _LIBC]:
64960         (lookup_collation_sequence_value) [defined _LIBC]:
64961         (build_range_exp, build_collating_symbol) [defined _LIBC]:
64962         Use prototypes rather than old-style function definitions.
64963         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
64964         (transit_state_sb) [0]:
64965         (find_collation_sequence_value) [defined _LIBC]: Likewise.
64966
64967         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
64968         rm_eo.
64969
64970         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
64971         (optimize_subexps, lower_subexp):
64972         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
64973         since the signed shift might overflow.  Use 1u<<31 instead.
64974         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64975         Likewise.
64976         * lib/regexec.c (check_dst_limits_calc_pos_1,
64977         check_subexp_matching_top): Likewise.
64978
64979         * lib/regcomp.c (optimize_subexps, lower_subexp):
64980         Use CHAR_BIT rather than 8, for clarity.
64981         * lib/regexec.c (check_dst_limits_calc_pos_1):
64982         (check_subexp_matching_top): Likewise.
64983         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
64984         have to worry about portability issues when shifting it left.
64985         Remove no-longer-needed test for table_size > 0.
64986         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
64987         in a word, as the resulting behavior is undefined.
64988         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
64989         in one case, a <= should have been an <, and in another case the
64990         whole test was missing.
64991         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
64992         the standard name CHAR_BIT.
64993         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
64994         this is not true on one's complement and signed-magnitude hosts.
64995
64996         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
64997         next_last_offset.
64998         (struct re_dfa_t): Remove unused member states_alloc.
64999         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65000
65001 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65004         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65005         and large-file glibc and in 32-bit large-file Solaris.
65006
65007 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65008
65009         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65010         lengths fit in regoff_t; this isn't true if regoff_t is the same
65011         width as size_t.
65012         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65013         (= START + RANGE) instead of RANGE.  This avoids overflow
65014         problems when regoff_t is the same width as size_t.
65015         All callers changed.
65016         (re_search_2_stub): Check for overflow when adding the
65017         sizes of the two strings.
65018         (re_search_stub): Check for overflow when adding START
65019         to RANGE; if it occurs, substitute the extreme value.
65020
65021 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65022
65023         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65024
65025 2005-08-31  Jim Meyering  <jim@meyering.net>
65026
65027         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65028         a pointer-to-const.
65029         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65030         (register_state): Likewise.
65031         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65032         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65033         (group_nodes_into_DFAstates): Likewise.
65034
65035 2005-08-31  Jim Meyering  <jim@meyering.net>
65036
65037         * check-module: Add a FIXME comment.
65038
65039 2005-08-31  Eric Blake  <ebb9@byu.net>
65040
65041         * modules/unistd-safer (Files): Add unistd--.h.
65042         * modules/stdio-safer (Files): Add stdio--.h.
65043
65044 2005-08-31  Derek Price  <derek@ximbiot.com>
65045
65046         * lib/getdelim.c (getdelim): Return EOF on EOF.
65047         Reported by Larry Jones <lawrence.jones@ugs.com>.
65048
65049 2005-08-31  Bruno Haible  <bruno@clisp.org>
65050
65051         Avoid unnecessary diffs in the generated lib/Makefile.am.
65052         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65053         the generated files.
65054         (func_import): Don't set cmd.
65055
65056 2005-08-31  Bruno Haible  <bruno@clisp.org>
65057
65058         * lib/strstr.c: Include <stddef.h>, for NULL.
65059         * lib/strcasestr.c: Likewise.
65060         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65061
65062 2005-08-31  Bruno Haible  <bruno@clisp.org>
65063
65064         * gnulib-tool: New option --macro-prefix.
65065         (func_import): Use macro_prefix.
65066         (import): Handle option --macro-prefix.
65067
65068 2005-08-31  Bruno Haible  <bruno@clisp.org>
65069
65070         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65071         Also use new variables cached_lgpl, cached_libtool.
65072
65073 2005-08-31  Bruno Haible  <bruno@clisp.org>
65074
65075         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65076         always instantiating them.
65077
65078 2005-08-31  Bruno Haible  <bruno@clisp.org>
65079
65080         * gnulib-tool (func_import): Read the previous cached settings
65081         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65082         earlier added by gnulib but are now dropped. Warn when a gnulib file
65083         overwrites a non-gnulib file.
65084
65085 2005-08-31  Bruno Haible  <bruno@clisp.org>
65086
65087         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65088         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65089         projects that don't keep autogenerated files in CVS. Put into
65090         actioncmd only the specified modules, not the transitive closure.
65091
65092 2005-08-31  Bruno Haible  <bruno@clisp.org>
65093
65094         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65095         Create directories that shall be filled.
65096         (import): Don't look for gl_* macros in configure.ac. Recurse across
65097         all directories containing a gnulib-cache.m4 files, if meaningful.
65098
65099 2005-08-31  Bruno Haible  <bruno@clisp.org>
65100
65101         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65102         (import): Set seen_libtool when we see gl_LIBTOOL.
65103
65104 2005-08-31  Bruno Haible  <bruno@clisp.org>
65105
65106         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65107         declaration macro definitions from generated gnulib.m4.
65108
65109 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65110
65111         * lib/iconvme.h: Add prototype for iconv_alloc.
65112
65113 2005-08-29  Simon Josefsson  <jas@extundo.com>
65114
65115         * lib/iconvme.c: Fix errno.
65116
65117 2005-08-29  Bruno Haible  <bruno@clisp.org>
65118
65119         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65120         that it works when the directory contains spaces.
65121
65122 2005-08-29  Bruno Haible  <bruno@clisp.org>
65123
65124         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65125
65126 2005-08-29  Bruno Haible  <bruno@clisp.org>
65127
65128         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65129         Emit more advice.
65130
65131 2005-08-29  Bruno Haible  <bruno@clisp.org>
65132         and Stepan Kasal  <kasal@ucw.cz>
65133
65134         * check-module: If more parameters are given, check each of them
65135         separately; add more exceptions, as noted by Jim Meyering.
65136         (check_module): New procedure.
65137         (%exempt_header): Now contains all exceptions.
65138
65139 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65140
65141         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65142
65143 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65144
65145         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65146
65147 2005-08-28  Bruno Haible  <bruno@clisp.org>
65148
65149         * m4/gnulib-tool.m4: New file.
65150
65151 2005-08-27  Jim Meyering  <jim@meyering.net>
65152
65153         * modules/unistd-safer (Files): Add pipe-safer.c.
65154         * modules/fcntl-safer (Files): Add creat-safer.c.
65155
65156 2005-08-27  Jim Meyering  <jim@meyering.net>
65157
65158         * m4/stdlib-safer.m4: New file.  From coreutils.
65159         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65160         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65161         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65162         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65163         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65164
65165 2005-08-27  Jim Meyering  <jim@meyering.net>
65166
65167         * lib/fopen-safer.c: Merge minor changes from coreutils.
65168         * lib/dup-safer.c: Likewise.
65169         * lib/fd-safer.c: Likewise.
65170
65171         Merge from coreutils.
65172         * lib/stdio--.h: New file.
65173         * lib/stdlib--.h: New file.
65174         * lib/mkstemp-safer.c: New file.
65175
65176         GNU tar needs these.
65177         * lib/pipe-safer.c: New file.
65178         * lib/creat-safer.c: New file.
65179         * lib/fcntl--.h (creat): Define to creat_safer.
65180         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65181         * lib/unistd--.h (pipe): Define to pipe_safer.
65182         * lib/unistd-safer.h: Declare pipe_safer.
65183
65184 2005-08-26  Simon Josefsson  <jas@extundo.com>
65185
65186         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65187         Haible <bruno@clisp.org>.
65188
65189 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         * lib/regex_internal.h: Remove all references to
65192         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65193         or better.
65194         (bitset_not, bitset_merge, bitset_not_merge):
65195         (bitset_mask, re_string_allocate, re_string_construct):
65196         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65197         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65198         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65199         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65200         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65201         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65202         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65203         (re_acquire_state_context):
65204         Remove unnecessary forward decls.
65205         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65206         Put __attribute at function definition,
65207         now that the function decl has been removed.
65208         * lib/regex_internal.c (re_string_peek_byte_case):
65209         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65210         Likewise.
65211
65212 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65213
65214         * m4/regex.m4: Add AC_PREREQ(2.50).
65215         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65216
65217 2005-08-25  Simon Josefsson  <jas@extundo.com>
65218
65219         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65220         __fsetlocking.
65221
65222 2005-08-25  Simon Josefsson  <jas@extundo.com>
65223
65224         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65225         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65226         GLIBC specific code.
65227
65228 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65229
65230         Make regex safe for g++.  This fixes one real bug (an "err"
65231         that should have been "*err").  g++ problem reported by
65232         Sam Steingold.
65233         * lib/regex_internal.h (re_calloc): New macro, consistent with
65234         re_malloc etc.  All callers of calloc changed to use re_calloc.
65235         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65236         not int.  All callers changed.
65237         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65238         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65239         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65240         (find_recover_state): Change "err" to "*err"; this fixes what
65241         appears to be a real bug.
65242         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65243         versus int.
65244
65245 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65246
65247         * modules/regex (Depends-on): Add malloc, since the code
65248         assumes that !malloc(0) means failure.
65249
65250 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65251
65252         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65253
65254         alloca modernization/simplification for regex.
65255         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65256         needs to be at the start of the file, and can be moved into
65257         regex_internal.h and simplified.
65258         * lib/regex_internal.h: Include <alloca.h>.
65259         (__libc_use_alloca) [!defined _LIBC]: New macro.
65260         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65261         now works outside glibc.
65262
65263 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65264
65265         * config/srclist.txt: Add glibc bugs 1241, 1245.
65266
65267 2005-08-25  Jim Meyering  <jim@meyering.net>
65268
65269         * lib/open-safer.c: Include <config.h>.
65270         Otherwise, we'd lose LARGEFILE support in any file using
65271         e.g. "fcntl--.h"
65272
65273 2005-08-25  Bruno Haible  <bruno@clisp.org>
65274
65275         * m4/minmax.m4: Require autoconf 2.52.
65276         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65277         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65278         alternatives of translit over the alphabet.
65279         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65280
65281 2005-08-24  Simon Josefsson  <jas@extundo.com>
65282
65283         * tests/test-getpass.c: New file.
65284
65285 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65286
65287         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65288         for GNU regex features.
65289
65290 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65291
65292         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65293         * lib/regex.h (regerror): Likewise.
65294
65295         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65296         requires this.  (The code never needed it.)
65297
65298         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65299         All uses of recently-renamed identifiers changed to use the new,
65300         POSIX-compliant names.  The code will build and run just fine
65301         without these changes, but it's better to eat our own dog food
65302         and use the standard-conforming names.
65303
65304         * lib/regex.h: Fix a multitude of POSIX name space violations.
65305         These changes have an effect only for programs that define
65306         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65307         do not change anything for programs compiled in the normal way.
65308         Also, there is no effect on the ABI.
65309
65310         (_REGEX_SOURCE): New macro.
65311         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65312         defined and _GNU_SOURCE is not; this fixes a name space violation.
65313
65314         Rename the following macros to obey POSIX requirements.
65315         The old names are still visible as macros if _REGEX_SOURCE is defined.
65316         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65317         RE_BACKSLASH_ESCAPE_IN_LISTS.
65318         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65319         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65320         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65321         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65322         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65323         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65324         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65325         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65326         (REG_INTERVALS): renamed from RE_INTERVALS.
65327         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65328         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65329         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65330         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65331         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65332         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65333         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65334         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65335         RE_UNMATCHED_RIGHT_PAREN_ORD.
65336         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65337         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65338         (REG_DEBUG): renamed from RE_DEBUG.
65339         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65340         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65341         unusual, since we can't clash with the POSIX REG_ICASE.
65342         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65343         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65344         (REG_NO_SUB): renamed from RE_NO_SUB.
65345         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65346         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65347         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65348         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65349         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65350         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65351         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65352         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65353         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65354         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65355         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65356         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65357         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65358         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65359         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65360         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65361         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65362         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65363         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65364         (REG_FIXED): Renamed from REGS_FIXED.
65365         (REG_NREGS): Renamed from RE_NREGS.
65366
65367         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65368         of other REG_* macros, since POSIX says the user is allowed to
65369         #undef these macros selectively.
65370
65371         (reg_errcode_t): Update comment stating what other tables need
65372         to be consistent.
65373
65374         Rename the following enum values to obey POSIX requirements.
65375         The old names are still visible as macros.
65376         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65377         is not defined, since GNU is supposed to be a superset of POSIX as
65378         much as possible, and since we want reg_errcode_t to be a signed
65379         type for implementation consistency.
65380         (_REG_NOERROR): Renamed from REG_NOERROR.
65381         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65382         (_REG_BADPAT): Renamed from REG_BADPAT.
65383         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65384         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65385         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65386         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65387         (_REG_EBRACK): Renamed from REG_EBRACK.
65388         (_REG_EPAREN): Renamed from REG_EPAREN.
65389         (_REG_EBRACE): Renamed from REG_EBRACE.
65390         (_REG_BADBR): Renamed from REG_BADBR.
65391         (_REG_ERANGE): Renamed from REG_ERANGE.
65392         (_REG_ESPACE): Renamed from REG_ESPACE.
65393         (_REG_BADRPT): Renamed from REG_BADRPT.
65394         (_REG_EEND): Renamed from REG_EEND.
65395         (_REG_ESIZE): Renamed from REG_ESIZE.
65396         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65397         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65398         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65399         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65400         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65401
65402         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65403         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65404         changed.  But support the old name if the new one is not defined
65405         and if _REGEX_SOURCE.
65406
65407         Change the following member names in struct re_pattern_buffer.
65408         The old names are still supported if !_REGEX_SOURCE.
65409         The new names are always supported, regardless of _REGEX_SOURCE.
65410         (re_buffer): Renamed from buffer.
65411         (re_allocated): Renamed from allocated.
65412         (re_used): Renamed from used.
65413         (re_syntax): Renamed from syntax.
65414         (re_fastmap): Renamed from fastmap.
65415         (re_translate): Renamed from translate.
65416         (re_can_be_null): Renamed from can_be_null.
65417         (re_regs_allocated): Renamed from regs_allocated.
65418         (re_fastmap_accurate): Renamed from fastmap_accurate.
65419         (re_no_sub): Renamed from no_sub.
65420         (re_not_bol): Renamed from not_bol.
65421         (re_not_eol): Renamed from not_eol.
65422         (re_newline_anchor): Renamed from newline_anchor.
65423
65424         Change the following member names in struct re_registers.
65425         The old names are still supported if !_REGEX_SOURCE.
65426         The new names are always supported, regardless of _REGEX_SOURCE.
65427         (rm_num_regs): Renamed from num_regs.
65428         (rm_start): Renamed from start.
65429         (rm_end): Renamed from end.
65430
65431         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65432         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65433         Prepend __ to parameter names.
65434
65435         Undo yesterday's changes.
65436
65437 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65440         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65441         lib/regex.c.
65442
65443 2005-08-24  Jim Meyering  <jim@meyering.net>
65444
65445         Sync from coreutils.
65446         * m4/fcntl-safer.m4: New file.
65447
65448         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65449         and object files for this module.
65450
65451 2005-08-24  Jim Meyering  <jim@meyering.net>
65452
65453         Sync from coreutils.
65454         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65455
65456 2005-08-24  Jim Meyering  <jim@meyering.net>
65457
65458         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65459         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65460
65461 2005-08-24  Jim Meyering  <jim@meyering.net>
65462
65463         * modules/fcntl-safer: New module.
65464         * modules/fts (Depends-on): Add fcntl-safer.
65465         * MODULES.html.sh (File descriptor based Input/Output):
65466         Add fcntl-safer.
65467
65468 2005-08-24  Bruno Haible  <bruno@clisp.org>
65469
65470         Support for unit test modules.
65471         * modules/README: Mention tests modules.
65472         * modules/TEMPLATE-TESTS: New file.
65473         * gnulib-tool: New options --extract-tests-module, --with-tests and
65474         --tests-base (unused for the moment).
65475         (testsbase, inctests): New variables.
65476         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65477         (func_verify_module): Exclude TEMPLATE-TESTS.
65478         (func_verify_nontests_module, func_verify_tests_module): New functions.
65479         (func_get_dependencies): Add implicit dependency for tests modules.
65480         (func_get_tests_module): New function.
65481         (func_modules_transitive_closure): When --with-tests was specified,
65482         include the unit tests as well, unless explicitly avoided.
65483         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65484         (func_emit_tests_Makefile_am): New function.
65485         (func_create_testdir): When --with-tests was specified, emit a
65486         tests/ directory.
65487         * MODULES.html.sh (Future developments): Update.
65488
65489 2005-08-24  Bruno Haible  <bruno@clisp.org>
65490
65491         * modules/tls-tests: New file.
65492         * tests/test-tls.c: New file, from GNU gettext.
65493
65494 2005-08-24  Bruno Haible  <bruno@clisp.org>
65495
65496         * modules/lock-tests: New file.
65497         * tests/test-lock.c: New file, from GNU gettext.
65498
65499 2005-08-24  Bruno Haible  <bruno@clisp.org>
65500
65501         * lib/lock.h: Add multiple inclusion guard.
65502         * lib/tls.h: Add multiple inclusion guard.
65503
65504 2005-08-24  Bruno Haible  <bruno@clisp.org>
65505
65506         * gnulib-tool: Add support for the --aux-dir option to
65507         --create-testdir, --create-megatestdir, --test, --megatest.
65508         (func_create_testdir, func_create_megatestdir): Optionally emit a
65509         AC_CONFIG_AUX_DIR directive.
65510         (create-testdir, create-megatestdir, test, megatest): Provide a
65511         default value for $auxdir.
65512
65513 2005-08-24  Bruno Haible  <bruno@clisp.org>
65514
65515         * gnulib-tool (import): Use compound statement instead of subshell
65516         where possible.
65517
65518 2005-08-24  Bruno Haible  <bruno@clisp.org>
65519
65520         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65521
65522 2005-08-24  Bruno Haible  <bruno@clisp.org>
65523
65524         * gnulib-tool (func_version): Update.
65525
65526 2005-08-24  Bruno Haible  <bruno@clisp.org>
65527
65528         * gnulib-tool (func_import, func_create_testdir,
65529         func_create_megatestdir): Quote all autoconf macro arguments.
65530
65531 2005-08-24  Bruno Haible  <bruno@clisp.org>
65532
65533         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65534         option --force, because --force causes the aclocal.m4 of each
65535         subdirectory to be newer than the corresponding config.h.in.
65536
65537 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65540         All contents moved to gl_REGEX.
65541         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65542         assume that it does.
65543
65544 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65545
65546         * lib/regex.h (REG_NOSYS)
65547         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65548         Define, since POSIX requires it as of 2001.
65549         (_REG_ENOSYS)
65550         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65551         New private symbol, used to keep the enum signed in all cases.
65552         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65553         Youngman in
65554         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65555
65556         * lib/regex_internal.c (re_string_skip_chars, register_state):
65557         (calc_state_hash):
65558         Remove forward decls; no longer needed now that we use prototypes.
65559         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65560         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65561         (clean_state_log_if_needed): Likewise.
65562
65563 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * config/srclist.txt: Add glibc bugs 1231-1233.
65566
65567 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65568
65569         Fix problems reported by Sam Steingold in
65570         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65571         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65572         assumed that reg_errcode_t is a signed type, which is not
65573         necessarily true if _XOPEN_SOURCE is not defined.
65574         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65575         since some compilers warn about it otherwise.
65576
65577 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65580         (init_word_char, create_initial_state, duplicate_node_closure):
65581         (fetch_token, peek_token_bracket, build_range_exp):
65582         (build_collating_symbol): Remove forward decls; no longer needed
65583         now that we use prototypes.
65584
65585         * lib/regcomp.c:
65586         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65587         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65588         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65589         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65590         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65591         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65592         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65593         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65594         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65595         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65596         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65597         (build_charclass, build_charclass_op, fetch_number, create_tree):
65598         (create_token_tree, mark_opt_subexp, duplicate_tree):
65599         Use prototypes rather than old-style definitions.
65600
65601         * lib/regex_internal.c:
65602         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65603         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65604         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65605         (re_string_reconstruct, re_string_peek_byte_case):
65606         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65607         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65608         (re_node_set_init_copy, re_node_set_add_intersect):
65609         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65610         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65611         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65612         (re_acquire_state, re_acquire_state_context, register_state):
65613         (create_ci_newstate, create_cd_newstate, free_state):
65614         Likewise.
65615         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65616         re_search_2):
65617         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65618         (re_search_internal, prune_impossible_nodes):
65619         (acquire_init_state_context, check_matching, static):
65620         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65621         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65622         (update_regs, sift_states_backward, build_sifted_states):
65623         (clean_state_log_if_needed, merge_state_array):
65624         (update_cur_sifted_state, add_epsilon_src_nodes):
65625         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65626         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65627         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65628         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65629         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65630         (check_arrival, check_arrival_add_next_nodes):
65631         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65632         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65633         (check_node_accept_bytes, check_node_accept, extend_buffers):
65634         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65635         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65636         (sift_ctx_init):
65637         Likewise.
65638
65639         * lib/regex_internal.h:
65640         (re_string_allocate, re_string_construct, re_string_reconstruct):
65641         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65642         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65643         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65644         (re_string_context_at, re_string_peek_byte_case):
65645         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65646         is defined, since we now use prototypes always.
65647
65648         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65649         C89 or better.  All uses removed.
65650
65651 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65652
65653         * config/srclist.txt: Add glibc bugs 1220-1227.
65654
65655 2005-08-20  Jim Meyering  <jim@meyering.net>
65656
65657         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65658         of unused local, dfa.
65659
65660 2005-08-20  Bruno Haible  <bruno@clisp.org>
65661
65662         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65663
65664 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65665
65666         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65667         (re_node_set_insert_last, re_dfa_add_node):
65668         Rename local variables to avoid GCC shadowing warnings.
65669
65670 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65671
65672         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65673         [defined lint]: Suppress bogus uninitialized-variable warnings.
65674
65675         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65676         and let the caller return REG_ESPACE if out of space.  This
65677         removes an uninitialied-variable warning with GCC 4.0.1, and also
65678         avoids taking the address of a local variable.  All callers
65679         changed.
65680
65681 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65682
65683         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65684         $LIBCSRC/posix/regexec.c.
65685         Add glibc bug 1217 for regcomp.c.
65686
65687 2005-08-19  Jim Meyering  <jim@meyering.net>
65688
65689         * lib/regexec.c (proceed_next_node): Redo local variables to
65690         avoid GCC shadowing warnings.
65691
65692 2005-08-18  Bruno Haible  <bruno@clisp.org>
65693
65694         * lib/strstr.c (strstr): Fix return value in multibyte case.
65695         * lib/strcasestr.c (strcasestr): Likewise.
65696
65697 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65700
65701 2005-08-17  Jim Meyering  <jim@meyering.net>
65702
65703         Make the %s format (seconds since the epoch) work for a negative
65704         number and when used with a zero-padded field width, e.g. %015s.
65705
65706         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65707         label so that it precedes the code to set `digits'.  Otherwise,
65708         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65709         print `00-22'.  Now, it prints `-0022', as it should.
65710
65711 2005-08-17  Bruno Haible  <bruno@clisp.org>
65712
65713         * modules/strstr (Files): Add m4/mbrtowc.m4.
65714         (Depends-on): Add mbuiter.
65715
65716 2005-08-17  Bruno Haible  <bruno@clisp.org>
65717
65718         * modules/strcasestr: New file.
65719         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65720         strcasestr.
65721
65722 2005-08-17  Bruno Haible  <bruno@clisp.org>
65723
65724         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65725
65726 2005-08-17  Bruno Haible  <bruno@clisp.org>
65727
65728         * modules/mbuiter: New file.
65729         * MODULES.html.sh (Extended multibyte and wide character utilities):
65730         Add mbuiter.
65731
65732 2005-08-17  Bruno Haible  <bruno@clisp.org>
65733
65734         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65735         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65736
65737 2005-08-17  Bruno Haible  <bruno@clisp.org>
65738
65739         * m4/strcasestr.m4: New file.
65740
65741 2005-08-17  Bruno Haible  <bruno@clisp.org>
65742
65743         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65744         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65745
65746 2005-08-17  Bruno Haible  <bruno@clisp.org>
65747
65748         * lib/strcasestr.h: New file.
65749         * lib/strcasestr.c: New file.
65750
65751 2005-08-17  Bruno Haible  <bruno@clisp.org>
65752
65753         * lib/strcasecmp.c: Use mbuiter.h.
65754
65755 2005-08-17  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/mbuiter.h: New file.
65758
65759 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65760
65761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65762         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65763         and gl_GETOPT are both invoked via different paths (as happens
65764         with GNU tar CVS because it uses both argp and getopt), the former
65765         wins.
65766
65767 2005-08-16  Bruno Haible  <bruno@clisp.org>
65768
65769         * modules/tls: New file.
65770         * MODULES.html.sh (Multithreading): Add tls.
65771
65772 2005-08-16  Bruno Haible  <bruno@clisp.org>
65773
65774         * modules/strnlen1: New file.
65775         * MODULES.html.sh (String handling): Add strnlen1.
65776
65777 2005-08-16  Bruno Haible  <bruno@clisp.org>
65778
65779         * modules/strcase (Files): Add m4/mbrtowc.m4.
65780         (Depends-on): Add strnlen1, mbchar.
65781
65782 2005-08-16  Bruno Haible  <bruno@clisp.org>
65783
65784         * modules/mbiter: New file.
65785         * MODULES.html.sh (Extended multibyte and wide character utilities):
65786         Add mbiter.
65787
65788 2005-08-16  Bruno Haible  <bruno@clisp.org>
65789
65790         * modules/mbfile: New file.
65791         * MODULES.html.sh (Extended multibyte and wide character utilities):
65792         Add mbfile.
65793
65794 2005-08-16  Bruno Haible  <bruno@clisp.org>
65795
65796         * modules/mbchar: New file.
65797         * MODULES.html.sh (Extended multibyte and wide character utilities):
65798         New section.
65799
65800 2005-08-16  Bruno Haible  <bruno@clisp.org>
65801
65802         * m4/tls.m4: New file, from GNU gettext.
65803
65804 2005-08-16  Bruno Haible  <bruno@clisp.org>
65805
65806         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65807         always.
65808         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65809
65810 2005-08-16  Bruno Haible  <bruno@clisp.org>
65811
65812         * m4/mbiter.m4: New file.
65813
65814 2005-08-16  Bruno Haible  <bruno@clisp.org>
65815
65816         * m4/mbfile.m4: New file.
65817
65818 2005-08-16  Bruno Haible  <bruno@clisp.org>
65819
65820         * m4/mbchar.m4: New file.
65821
65822 2005-08-16  Bruno Haible  <bruno@clisp.org>
65823
65824         * lib/tls.h: New file, from GNU gettext.
65825         * lib/tls.c: New file, from GNU gettext.
65826
65827 2005-08-16  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/strnlen1.h: New file.
65830         * lib/strnlen1.c: New file.
65831
65832 2005-08-16  Bruno Haible  <bruno@clisp.org>
65833
65834         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65835         (mbi_init): Update.
65836         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65837         NUL byte, not after it.
65838
65839 2005-08-16  Bruno Haible  <bruno@clisp.org>
65840
65841         * lib/strcase.h (strcasecmp): Add note in comments.
65842         * lib/strncasecmp.c: Use code from strcasecmp.c.
65843         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65844         (strcasecmp): Work correctly in multibyte locales.
65845
65846 2005-08-16  Bruno Haible  <bruno@clisp.org>
65847
65848         * lib/mbiter.h: New file.
65849
65850 2005-08-16  Bruno Haible  <bruno@clisp.org>
65851
65852         * lib/mbfile.h: New file.
65853
65854 2005-08-16  Bruno Haible  <bruno@clisp.org>
65855
65856         * lib/mbchar.h: New file.
65857         * lib/mbchar.c: New file.
65858
65859 2005-08-16  Bruno Haible  <bruno@clisp.org>
65860
65861         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65862         the valid ones. Makes the comparison operations transitive:
65863         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65864         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65865
65866 2005-08-15  Simon Josefsson  <jas@extundo.com>
65867
65868         * modules/ssize_t (License): Change to 'unlimited'.
65869
65870         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65871
65872 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65875         Add comments for each pending glibc patch.
65876
65877 2005-08-15  Bruno Haible  <bruno@clisp.org>
65878
65879         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65880         __cplusplus is defined.
65881
65882 2005-08-14  Jim Meyering  <jim@meyering.net>
65883
65884         Sync from coreutils.
65885
65886         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65887         Use the hash-table-based cycle-detection code not just when
65888         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65889         Reported by James Youngman in
65890         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65891         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65892         FTS_TIGHT_CYCLE_CHECK.
65893         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65894         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65895         once again.
65896         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65897         * lib/fts.c (fd_safer): Remove decl.
65898         Include fcntl--.h rather than unistd-safer.h
65899         (fts_safe_changedir): Don't call fd_safer; no longer needed
65900         now that we include fcntl--.h.
65901
65902 2005-08-12  Simon Josefsson  <jas@extundo.com>
65903
65904         * modules/getndelim2: Use ssize_t module.
65905         * modules/getnline: Likewise.
65906         * modules/safe-read: Likewise.
65907         * modules/xreadlink: Likewise.
65908
65909         * modules/ssize_t: New file.
65910
65911 2005-08-12  Simon Josefsson  <jas@extundo.com>
65912
65913         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65914
65915 2005-08-12  Simon Josefsson  <jas@extundo.com>
65916
65917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65918         ssize_t.
65919
65920 2005-08-12  Simon Josefsson  <jas@extundo.com>
65921
65922         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65923         readline, getdelim and check_version.
65924         (Support for systems lacking ISO C 99: Sizes of integer types):
65925         Add size_max.
65926
65927 2005-08-12  Bruno Haible  <bruno@clisp.org>
65928
65929         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65930
65931 2005-08-11  Simon Josefsson  <jas@extundo.com>
65932
65933         * modules/readline: New file.
65934
65935         * modules/strnlen (Files): Add strnlen.h.
65936
65937 2005-08-11  Simon Josefsson  <jas@extundo.com>
65938
65939         * m4/readline.m4: New file.
65940
65941 2005-08-11  Simon Josefsson  <jas@extundo.com>
65942
65943         * lib/readline.h, readline.c: New file.
65944
65945 2005-08-11  Simon Josefsson  <jas@extundo.com>
65946
65947         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65948         gl_AVOID.
65949
65950 2005-08-11  Bruno Haible  <bruno@clisp.org>
65951
65952         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65953
65954 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
65955
65956         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
65957
65958 2005-08-10  Simon Josefsson  <jas@extundo.com>
65959
65960         * tests/test-iconvme.c: New file.
65961
65962 2005-08-10  Simon Josefsson  <jas@extundo.com>
65963
65964         * m4/strnlen.m4: New file.
65965
65966         * m4/strndup.m4: Don't check for strnlen declaration, done in
65967         strnlen.m4.
65968
65969 2005-08-10  Simon Josefsson  <jas@extundo.com>
65970
65971         * lib/strndup.c: Use strnlen.h.
65972
65973         * lib/strnlen.h: New file.
65974
65975 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65976
65977         * README: Typos.
65978
65979 2005-08-02  Simon Josefsson  <jas@extundo.com>
65980
65981         * modules/readline: New file.
65982
65983 2005-08-02  Simon Josefsson  <jas@extundo.com>
65984
65985         * modules/getdelim: New file.
65986
65987         * modules/getline: Rewrite, don't use getndelim2.
65988
65989 2005-08-02  Simon Josefsson  <jas@extundo.com>
65990
65991         * m4/getline.m4: Separate out getdelim stuff into separate module.
65992
65993         * m4/getdelim.m4: New file.
65994
65995 2005-08-02  Simon Josefsson  <jas@extundo.com>
65996
65997         * lib/getline.h, getline.c: Rewrite.
65998
65999         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66000
66001 2005-07-31  Bruno Haible  <bruno@clisp.org>
66002
66003         * lib/lock.h (gl_lock_initializer): New macro.
66004         (gl_lock_define_initialized): Use it.
66005         (gl_rwlock_initializer): New macro.
66006         (gl_rwlock_define_initialized): Use it.
66007         (gl_recursive_lock_initializer): New macro.
66008         (gl_recursive_lock_define_initialized): Use it.
66009
66010 2005-07-30  Karl Berry  <karl@gnu.org>
66011
66012         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66013         Report from Ben Pfaff, regarding getopt.
66014
66015 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66016
66017         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66018         normal way.
66019         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66020         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66021         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66022         (gl_GETOPT): Use the new macros.  Most of the implementation
66023         is moved to the new macros.  This is for programs like Emacs
66024         that don't want all the functionality of gl_GETOPT.
66025
66026 2005-07-26  Bruno Haible  <bruno@clisp.org>
66027
66028         * m4/lock.m4: Update from GNU gettext.
66029
66030 2005-07-26  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/lock.h: Update from GNU gettext.
66033         * lib/lock.c: Update from GNU gettext.
66034
66035 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66038         obsolescent AC_TRY_RUN.  Include the default includes files, for
66039         'exit'.
66040
66041 2005-07-24  Bruno Haible  <bruno@clisp.org>
66042
66043         * modules/visibility: New file.
66044         * MODULES.html.sh (Misc): Add visibility.
66045
66046 2005-07-24  Bruno Haible  <bruno@clisp.org>
66047
66048         * m4/visibility.m4: New file.
66049
66050 2005-07-24  Bruno Haible  <bruno@clisp.org>
66051
66052         * doc/visibility.texi: New file.
66053
66054 2005-07-22  Bruno Haible  <bruno@clisp.org>
66055
66056         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66057         $(ALLOCA_H), redundant through BUILT_SOURCES.
66058         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66059         redundant through BUILT_SOURCES.
66060         * modules/byteswap (Makefile.am): Remove explicit dependency on
66061         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66062         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66063         $(FNMATCH_H), redundant through BUILT_SOURCES.
66064         * modules/getopt (Makefile.am): Remove explicit dependency on
66065         $(GETOPT_H), redundant through BUILT_SOURCES.
66066         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66067         redundant through BUILT_SOURCES.
66068         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66069         redundant through BUILT_SOURCES.
66070         * modules/stdbool (Makefile.am): Remove explicit dependency on
66071         $(STDBOOL_H), redundant through BUILT_SOURCES.
66072         * modules/stdint (Makefile.am): Remove explicit dependency on
66073         $(STDINT_H), redundant through BUILT_SOURCES.
66074         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66075         Remove explicit dependency on $(SYSEXITS_H).
66076         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66077
66078 2005-07-18  Simon Josefsson  <jas@extundo.com>
66079
66080         * lib/check-version.c (check_version): Accept identical versions too.
66081
66082 2005-07-18  Bruno Haible  <bruno@clisp.org>
66083
66084         * modules/lock: New file.
66085         * MODULES.html.sh (Multithreading): New section.
66086
66087 2005-07-18  Bruno Haible  <bruno@clisp.org>
66088
66089         * m4/lock.m4: New file, from GNU gettext.
66090
66091 2005-07-18  Bruno Haible  <bruno@clisp.org>
66092
66093         * lib/lock.h: New file, from GNU gettext.
66094         * lib/lock.c: New file, from GNU gettext.
66095
66096 2005-07-18  Bruno Haible  <bruno@clisp.org>
66097
66098         * lib/lock.h (gl_once_t): New type.
66099         (gl_once_define, gl_once): New macros.
66100         * lib/lock.c (fresh_once): New variable.
66101         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66102         functions.
66103
66104 2005-07-16  Simon Josefsson  <jas@extundo.com>
66105
66106         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66107         workaround, suggested by Bruno.
66108
66109 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66110
66111         * modules/xalloc (Depends-on): Add xalloc-die.
66112         * modules/xvasprintf (Depends-on): Add xalloc-die.
66113
66114 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66115
66116         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66117         with a minor change.
66118
66119 2005-07-15  Bruno Haible  <bruno@clisp.org>
66120
66121         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66122         When using lib/poll.c, define poll as rpl_poll.
66123
66124 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66125
66126         * modules/argp (Depends-on): Remove unlocked-io.
66127
66128 2005-07-14  Derek Price  <derek@ximbiot.com>
66129
66130         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66131         for glob symlink bug.
66132
66133 2005-07-14  Bruno Haible  <bruno@clisp.org>
66134
66135         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66136         Instead, test for *_unlocked function declarations directly.
66137
66138 2005-07-11  Simon Josefsson  <jas@extundo.com>
66139
66140         * modules/size_max: New file.
66141
66142         * modules/xsize: Depend on size_max module for size_max.m4.
66143
66144 2005-07-11  Simon Josefsson  <jas@extundo.com>
66145
66146         * lib/size_max.h: New file.
66147
66148 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66149
66150         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66151         copyright symbol and the year.
66152         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66153         (version_etc_va): Use parameterized copyright notice.
66154         Reword to conform to the current GNU coding standards.
66155
66156 2005-07-11  Karl Berry  <karl@gnu.org>
66157
66158         * doc/gnulib.texi (Quoting): new node.
66159         (Initial import): more info, from Patrice.
66160
66161 2005-07-11  Bruno Haible  <bruno@clisp.org>
66162
66163         * gnulib-tool (func_usage): Document option --avoid.
66164         (Command line options): Handle --avoid.
66165         (func_acceptable): New function.
66166         (func_modules_transitive_closure): Use it.
66167
66168 2005-07-11  Bruno Haible  <bruno@clisp.org>
66169
66170         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66171         Reported by Jim Meyering.
66172
66173 2005-07-10  Bruno Haible  <bruno@clisp.org>
66174
66175         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66176         Needed when size_t is smaller than 'unsigned int'.
66177         Reported by Paul Eggert.
66178
66179 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66180
66181         * modules/argp (Depends-on): Add unlocked-io
66182
66183 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66184
66185         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66186         block of defines.
66187
66188 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66191         fix now.
66192
66193 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66194         and Paul Eggert  <eggert@cs.ucla.edu>
66195
66196         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66197         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66198
66199 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66200
66201         * modules/regex (Files): Add lib/regex_internal.c,
66202         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66203         (Depends-on): Add extensions.
66204         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66205
66206 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66207
66208         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66209         pathconf.
66210         * m4/same.m4 (gl_SAME): Likewise.
66211         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66212
66213         * m4/regex.m4: Adjust to new libc regex implementation.
66214         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66215         all the .c and .h parts of (the new) regex.
66216         Quote the m4 stuff better.
66217         Check for RE_ICASE bug of old gnulib.
66218         Check for REG_STARTEND of recent libc.
66219         Rename local variables from jm_* to gl_*.
66220         Quote operand of "test -f".
66221         Say "recent enough" version of libc, not "version 2".
66222         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66223         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66224         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66225         Remove check for btowc, isascii.
66226         Require AM_LANGINFO_CODESET.
66227
66228 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66229
66230         * lib/regex.c, regex.h: Sync from libc.
66231         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66232         * lib/regexec.c:
66233         New files, synced from libc, except that regex_internal.h
66234         currently has a small porting fix.
66235
66236 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66237
66238         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66239         regex_internal.c, regexec.c.
66240         Add regex_internal.h too, but as a comment, since the libc version
66241         is currently broken in gnulib mode.
66242
66243 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66244
66245         Support programs like Emacs that use gnulib but not gettext.
66246         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66247         * modules/gettext-h: New file.
66248         * modules/gettext (Files): Remove lib/gettext.h.
66249         (Depends-on): Add gettext-h.
66250         (Makefile.am): Remove lib_SOURCES.
66251         * modules/argmatch, modules/c-stack, modules/closeout:
66252         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66253         * modules/execute, modules/file-type, modules/getaddrinfo:
66254         * modules/getopt, modules/human, modules/javacomp:
66255         * modules/javaexec, modules/mkdir-p, modules/obstack:
66256         * modules/openat, modules/pagealign_alloc, modules/pipe:
66257         * modules/quotearg, modules/regex, modules/rpmatch:
66258         * modules/unicodeio, modules/userspec, modules/version-etc:
66259         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66260         * modules/xsetenv:
66261         Depend on gettext-h, not gettext.
66262
66263 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66264
66265         * gnulib-tool (func_import): Add support for 'public domain' license.
66266         * modules/alloca, modules/atexit, modules/memmove:
66267         Now public domain, not GPL.
66268         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66269         * modules/realloc, modules/strerror, modules/strtod:
66270         Now LGPL, not GPL.
66271
66272 2005-07-05  Bruno Haible  <bruno@clisp.org>
66273
66274         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66275         autoconf CVS. Needed for mingw.
66276
66277 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66278
66279         Remove the dependency of the strftime module on the tzset module.
66280         * modules/strftime (Depends-on): Remove dependency on tzset.
66281
66282 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66283
66284         Remove the dependency of the strftime module on the tzset module.
66285         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66286         gl_FUNC_TZSET_CLOBBER.
66287
66288 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66289
66290         Remove the dependency of the strftime module on the tzset module.
66291         * lib/strftime.c (my_strftime)
66292         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66293         Copy the input structure, to work around some of the bug with
66294         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66295         Solaris releases, you should also use the tzset module, but we won't
66296         require it as a dependency any more since we don't want LGPLed code
66297         to depend on GPLed code.
66298
66299 2005-07-02  Jim Meyering  <jim@meyering.net>
66300
66301         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66302         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66303         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66304         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66305
66306 2005-07-02  Jim Meyering  <jim@meyering.net>
66307
66308         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66309
66310 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66313         declares only 'struct timespec;' (!).
66314
66315 2005-07-01  Jim Meyering  <jim@meyering.net>
66316
66317         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66318         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66319         * lib/save-cwd.c, tempname.c:
66320         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66321         and don't include <sys/file.h>).
66322
66323 2005-06-29  Jim Meyering  <jim@meyering.net>
66324
66325         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66326         type name.  Use the variable name instead.
66327         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66328         Likewise.
66329
66330 2005-06-28  Simon Josefsson  <jas@extundo.com>
66331
66332         * modules/check-version (Files): Add check-version.m4.
66333
66334 2005-06-28  Simon Josefsson  <jas@extundo.com>
66335
66336         * m4/check-version.m4: New file, suggested by Jim Meyering
66337         <jim@meyering.net>.
66338
66339 2005-06-28  Simon Josefsson  <jas@extundo.com>
66340
66341         * lib/check-version.h, lib/check-version.c: New files.
66342
66343 2005-06-28  Simon Josefsson  <jas@extundo.com>
66344
66345         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66346         collision with global variable.  Better indentation.  Don't
66347         increment buffer pointer beyond buffer end.  Based on comments
66348         from Paul Eggert <eggert@cs.ucla.edu>.
66349
66350         * lib/base64.h: Indent.
66351
66352 2005-06-28  Simon Josefsson  <jas@extundo.com>
66353
66354         * doc/gnulib.texi (Library version handling): New section.
66355
66356 2005-06-28  Jim Meyering  <jim@meyering.net>
66357
66358         * check-module (find_included_lib_files): Hard-code another
66359         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66360         but modules/fts-lgpl (correctly) does not list those files.
66361
66362         * modules/canonicalize (Files): Add lib/pathmax.h.
66363
66364 2005-06-25  Simon Josefsson  <jas@extundo.com>
66365
66366         * modules/check-version: New file.
66367
66368 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66369
66370         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66371         initializer of struct addrinfo, as an indication that we don't
66372         care how many members the structure has.
66373
66374 2005-06-24  Derek Price  <derek@ximbiot.com>
66375         and Bruno Haible  <bruno@clisp.org>
66376
66377         Remove stat module & update lstat.
66378         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66379         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66380         * m4/stat.m4: Remove this file.
66381
66382 2005-06-24  Derek Price  <derek@ximbiot.com>
66383         and Bruno Haible  <bruno@clisp.org>
66384
66385         Remove stat module & update lstat.
66386         * lib/stat.c: Remove this file...
66387         (slash_aware_lstat): ...moving this content and its support...
66388         * lib/lstat.c (rpl_lstat): ...into here.
66389         * lib/lstat.h: New file.
66390
66391 2005-06-24  Derek Price  <derek@ximbiot.com>
66392         and Bruno Haible  <bruno@clisp.org>
66393
66394         Remove stat module & update lstat.
66395         * config/srclist.txt (libc sources): Remove stat.
66396
66397 2005-06-24  Derek Price  <derek@ximbiot.com>
66398         and Bruno Haible  <bruno@clisp.org>
66399
66400         Remove stat module & update lstat.
66401         * MODULES.html.sh (stat): Remove.
66402         * MODULES.html: Regenerated.
66403         * modules/lstat (Description): Correct function name.
66404         (Files): Add "lstat.h".
66405         (Depends-on): Remove stat, add xalloc, stat-macros.
66406         * modules/stat: Remove this file.
66407         (Include): Add "lstat.h", remove <sys/stat.h>.
66408
66409 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66412         (ranged_convert): Don't save conversion in a temporary struct.
66413         This causes a warning with GCC 4.0.0, and anyway in the typical
66414         case it's not worth the extra 100 bytes or so of code.
66415         (ranged_convert, __mktime_internal): When calling a function via a
66416         pointer P, use P () rather than (*P) (), as we now assume C89 or
66417         better.
66418
66419 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66420
66421         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66422         "who -r" failed to give output.  Problem reported by Tim Waugh.
66423
66424         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66425         (xcalloc): Use it to avoid needless tests.
66426         Problem reported by Jim Meyering.
66427
66428 2005-06-20  Derek Price  <derek@ximbiot.com>
66429
66430         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66431         unnecessary for Autoconfs > 2.59c.
66432
66433 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66434
66435         * lib/argp.h (__option_is_short): Check upper limit of
66436         __key. Isprint() requires its argument to have the value
66437         of an unsigned char or EOF.
66438
66439 2005-06-16  Jim Meyering  <jim@meyering.net>
66440
66441         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66442         when either N or S is zero.
66443
66444 2005-06-16  Derek Price  <derek@ximbiot.com>
66445
66446         * m4/bison.m4: Declare YACC & YFLAGS precious.
66447
66448 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66449
66450         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66451         multibyte string or pattern, fall back on unibyte matching.
66452         Problem reported by James Youngman.
66453
66454 2005-06-08  Bruno Haible  <bruno@clisp.org>
66455
66456         * modules/csharpcomp: New file.
66457         * MODULES.html.sh (C#): Add csharpcomp.
66458
66459 2005-06-08  Bruno Haible  <bruno@clisp.org>
66460
66461         * m4/csharpcomp.m4: New file, from GNU gettext.
66462
66463 2005-06-08  Bruno Haible  <bruno@clisp.org>
66464
66465         * lib/csharpcomp.h: New file, from GNU gettext.
66466         * lib/csharpcomp.c: New file, from GNU gettext.
66467         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66468
66469 2005-06-08  Bruno Haible  <bruno@clisp.org>
66470
66471         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66472         warning on mingw.
66473
66474 2005-06-07  Derek Price  <derek@ximbiot.com>
66475
66476         Sync from CVS.
66477         * lib/glob_.h: Indent nested #ifdef.
66478
66479 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66480
66481         Sync from coreutils.
66482         Use "file name" when talking about file names, instead of "filename"
66483         or "path", as per the GNU coding standards.
66484         * lib/mkdir-p.c: Renamed from makepath.c.
66485         (make_dir_parents): Renamed from make_path.  All callers changed.
66486         * lib/mkdir-p.h: Likewise.  All includers changed.
66487         * lib/filenamecat.c: Renamed from path-concat.c.
66488         (file_name_concat): Renamed from path_concat.  All callers changed.
66489         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66490         * lib/filenamecat.h: Likewise.  All includers changed.
66491         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66492         in comments or local variable names.
66493         * lib/basename.c: Likewise.
66494         * lib/canonicalize.c, canonicalize.h: Likewise.
66495         * lib/dirname.c, dirname.h: Likewise.
66496         * lib/euidaccess.c: Likewise.
66497         * lib/exclude.c: Likewise
66498         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66499         * lib/fsusage.c, fsuage.h: Likewise.
66500         * lib/fts.c, fts_.h: Likewise.
66501         * lib/getcwd.c: Likewise.
66502         * lib/getloadavg.c: Likewise.
66503         * lib/mkstemp.c: Likewise.
66504         * lib/mountlist.c, mountlist.h: Likewise.
66505         * lib/openat.c, openat.h: Likewise.
66506         * lib/readlink-stub.c: Likewise.
66507         * lib/readutmp.c, readutmp.h: Likewise.
66508         * lib/rename.c: Likewise.
66509         * lib/rmdir.c: Likewise.
66510         * lib/same.c: Likewise.
66511         * lib/savedir.c: Likewise.
66512         * lib/stripslash.c: Likewise.
66513         * lib/tempname.c: Likewise.
66514         * lib/xreadlink.c: Likewise.
66515         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66516         All uses changed.
66517         * lib/exclude.h: Likewise.
66518
66519         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66520         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66521         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66522         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66523         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66524         files have been getting away with it for years (MORE/BSD 4.3
66525         is extinct now).
66526         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66527         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66528
66529         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66530         Define to 256, not 255, as per modern POSIX.
66531
66532 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66533
66534         Sync from coreutils.
66535         Use "file name" when talking about file names, instead of "filename"
66536         or "path", as per the GNU coding standards.
66537         * MODULES.html.sh: mkdir-p renamed from makepath.
66538         filenamecat renamed from path-concat.
66539         * modules/filenamecat: Renamed from modules/path-concat.
66540         (Files): filenamecat.h and filenamecat.c renamed from
66541         path-concat.h and path-concat.c.
66542         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66543         (Include): filenamecat.h, not path-concat.h.
66544         * modules/mkdir-p: Renamed from modules/makepath.
66545         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66546         makepath.c.
66547         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66548         (Include): mkdir-p.h, not makepath.h.
66549
66550 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66551
66552         Sync from coreutils.
66553         * m4/mkdir-p.m4: Renamed from makepath.m4.
66554         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66555         Rename files from makepath.c to mkdir-p.c, and from
66556         makepath.h to mkdir-p.h.
66557         * m4/filenamecat.m4: Renamed from path-concat.m4.
66558         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66559         Rename files from path-concat.c to filenamecat.c,
66560         and from path-concat.h to filenamecat.h.
66561         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66562         "file name" in local variables or comments.
66563         * m4/rename.m4: Likewise.
66564
66565 2005-06-01  Bruno Haible  <bruno@clisp.org>
66566
66567         * modules/csharpexec: New file.
66568         * MODULES.html.sh (C#): New section.
66569
66570 2005-06-01  Bruno Haible  <bruno@clisp.org>
66571
66572         * m4/csharp.m4: New file, from GNU gettext.
66573         * m4/csharpexec.m4: New file, from GNU gettext.
66574
66575 2005-06-01  Bruno Haible  <bruno@clisp.org>
66576
66577         * lib/csharpexec.h: New file, from GNU gettext.
66578         * lib/csharpexec.c: New file, from GNU gettext.
66579         * lib/csharpexec.sh.in: New file, from GNU gettext.
66580
66581 2005-05-31  Derek Price  <derek@ximbiot.com>
66582             Paul Eggert  <eggert@cs.ucla.edu>
66583
66584         Sync from cvs.
66585         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66586
66587 2005-05-31  Derek Price  <derek@ximbiot.com>
66588             Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         Sync from cvs.
66591         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66592
66593 2005-05-29  Derek Price  <derek@ximbiot.com>
66594
66595         * config/srclist.txt (glob_.h, glob.c): Add these files.
66596
66597 2005-05-29  Derek Price  <derek@ximbiot.com>
66598
66599         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66600         * modules/glob: New file.
66601         * modules/getlogin_r: Add link to POSIX spec in description.
66602
66603 2005-05-29  Derek Price  <derek@ximbiot.com>
66604             Paul Eggert  <eggert@cs.ucla.edu>
66605
66606         * m4/glob.m4: New file.
66607
66608 2005-05-29  Derek Price  <derek@ximbiot.com>
66609             Paul Eggert  <eggert@cs.ucla.edu>
66610
66611         * lib/glob_.h, lib/glob.c: New files.
66612
66613 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66616         * modules/fts-lgpl (Depends-on): Remove gettext.
66617
66618 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66619
66620         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66621         and don't require gt_INTTYPES_PRI.
66622
66623 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66624
66625         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66626
66627         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66628         the configuration hassle isn't worth it.
66629         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66630         (LONGEST_MODIFIER, PRIuMAX): Remove.
66631
66632 2005-05-27  Bruno Haible  <bruno@clisp.org>
66633
66634         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66635
66636 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66637
66638         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66639         _POSIX_PTHREAD_SEMANTICS for Solaris.
66640
66641 2005-05-25  Derek Price  <derek@ximbiot.com>
66642
66643         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66644
66645 2005-05-25  Derek Price  <derek@ximbiot.com>
66646             Paul Eggert  <eggert@cs.ucla.edu>
66647
66648         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66649         * lib/getlogin_r.c, getlogin_r.h: New files.
66650
66651 2005-05-25  Bruno Haible  <bruno@clisp.org>
66652             Derek Price  <derek@ximbiot.com>
66653
66654         * lib/getlogin_r.h: Simplify API documentation.
66655
66656 2005-05-23  Derek Price  <derek@ximbiot.com>
66657
66658         * modules/minmax (Files): Add m4/minmax.m4.
66659         (configure.ac): Add gl_MINMAX.
66660
66661 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66662
66663         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66664         so that unistd-safer.h (GPL'ed code) need not be included.
66665
66666 2005-05-22  Bruno Haible  <bruno@clisp.org>
66667
66668         * m4/minmax.m4: New file.
66669         Based on a patch by Derek Price <derek@ximbiot.com>.
66670
66671 2005-05-22  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66674         (INT64_MIN): Fix definition.
66675         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66676
66677         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66678         NEED_SIGNED_INT_TYPES.
66679
66680         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66681         HAVE_SYSTEM_INTTYPES.
66682
66683 2005-05-22  Bruno Haible  <bruno@clisp.org>
66684
66685         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66686         Also include <sys/param.h> if it defines MIN, MAX.
66687         Based on a patch by Derek Price <derek@ximbiot.com>.
66688
66689 2005-05-21  Jim Meyering  <jim@meyering.net>
66690
66691         * modules/fts (Files): Add m4/inttypes-pri.m4.
66692         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66693
66694 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66695
66696         New fts module.
66697         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66698         (setup_dir, free_dir): New functions.
66699         (enter_dir, leave_dir): Define trivial
66700         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66701         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66702         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66703         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66704         Move to fts-cycle.c.
66705         (fts_open): Use setup_dir.
66706         (fts_close): Use free_dir.
66707         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66708         This adds a label and some gotos, but the alternatives were messier.
66709         Check for memory allocation failure when entering a dir.
66710         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66711         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66712         (FTS): New member fts_cycle, that is a union that contains the
66713         old active_dir_ht and cycle_state.  All uses changed to mention
66714         fts_cycle.ht and fts_cycle.state.
66715         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66716         fts.c, with the following changes:
66717         (setup_dir, free_dir): New functions.
66718         (enter_dir): Now returns bool.  Return true if successful, false
66719         if memory exhausted.  All callers changed.
66720         Do not bother partly cleaning up on
66721         memory allocation failure; that is free_dir's job.
66722         However, free ad if hash_insert fails, to avoid memory leak.
66723         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66724         fts->fts_options to see which union member to use.
66725
66726 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66727
66728         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66729         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66730
66731 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66734
66735 2005-05-20  Jim Meyering  <jim@meyering.net>
66736
66737         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66738         Now a macro, to pacify GCC.
66739
66740 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66741
66742         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66743         of -1.
66744
66745 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66746
66747         * lib/chown.c (rpl_chown): Return -1 on failure.
66748
66749 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66750
66751         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66752         Don't check for stddef.h.
66753         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66754         don't use its results.
66755         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66756         since we include them unconditionally.  Don't require
66757         AM_STDBOOL_H, since stdbool is a prerequisite.
66758         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66759         since we assume C89 or better.
66760         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66761         as we don't use their results.
66762         Don't check for fchdir, memmove, memset, strrchr, as we use
66763         them unconditionally.
66764         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66765         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66766
66767 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66768
66769         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66770         Include <stddef.h> unconditionally, since we assume C89 now.
66771         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66772         * lib/fts.c: Include fts_.h first, to check interface.
66773         Do not include intprops.h; no longer needed.
66774         Include cycle-check.h and hash.h, since fts_.h no longer does.
66775         Remove unnecessary casts of closedir to void.
66776         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66777         decide whether to decrement nlinks.
66778         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66779         (FTS): Use struct hash_table * instead of Hash_table, so that
66780         we no longer need to include hash.h here.
66781
66782 2005-05-18  Jim Meyering  <jim@meyering.net>
66783
66784         * modules/dirfd (License): Change to LGPL.  Most of the code
66785         is already in the public domain.
66786
66787 2005-05-18  Jim Meyering  <jim@meyering.net>
66788
66789         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66790         Reported by Yoann Vandoorselaere.
66791
66792 2005-05-17  Jim Meyering  <jim@meyering.net>
66793
66794         * m4/fts.m4: New file, from coreutils.
66795
66796 2005-05-17  Jim Meyering  <jim@meyering.net>
66797
66798         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66799
66800 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66801
66802         Sync from coreutils.
66803         * m4/unlinkdir.m4: New file.
66804
66805 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         Sync from coreutils.
66808         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66809         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66810         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66811         White space changes only.
66812         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66813         special.
66814         * lib/yesno.c: Include getline.h, not ctype.h.
66815         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66816         Use getline to remove arbitrary restriction on response length.
66817
66818 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * config/srclist-update: Spell out "Street" in FSF postal
66821         mail address; this is the style the FSF seems to prefer.
66822
66823         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66824         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66825         this updates FSF postal mail address.
66826
66827         Sync from coreutils.
66828         * modules/unlinkdir: New file.
66829         * modules/yesno (Depends-on): Add getline.
66830         * MODULES.html.sh (File system functions): Add unlinkdir.
66831
66832 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66833
66834         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66835         lib/strsep.h:
66836         Change the initial comment to refer to GPL, not LGPL.
66837         gnulib-tool will change it to LGPL as needed.
66838
66839         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66840         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66841         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66842         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66843         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66844         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66845         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66846         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66847         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66848         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66849         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66850         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66851         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66852         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66853         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66854         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66855         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66856         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66857         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66858         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66859         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66860         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66861         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66862         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66863         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66864         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66865         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66866         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66867         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66868         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66869         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66870         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66871         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66872         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66873         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66874         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66875         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66876         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66877         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66878         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66879         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66880         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66881         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66882         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66883         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66884         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66885         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66886         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66887         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66888         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66889         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66890         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66891         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66892         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66893         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66894         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66895         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66896         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66897         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66898         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66899         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66900         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66901         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66902         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66903         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66904         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66905         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66906         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66907         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66908         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66909         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66910         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66911         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66912         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66913         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66914         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66915         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66916         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66917         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66918         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66919         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66920         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66921         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66922         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66923         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66924         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66925         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66926         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66927         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66928         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66929         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66930         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66931         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66932         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66933         lib/yesno.c, lib/yesno.h:
66934         Update FSF postal mail address.
66935
66936 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66937
66938         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66939         tests/test-memmem.c, tests/test-stpncpy.c:
66940         Update FSF postal mail address.
66941
66942 2005-05-13  Bruno Haible  <bruno@clisp.org>
66943
66944         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66945         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66946         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66947         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66948         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66949         Add support for 64-bit integers in the MSVC compiler.
66950
66951 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66952
66953         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
66954
66955 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
66956
66957         * gnulib-tool (func_import): Sort and uniquify recommended includes.
66958
66959 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
66960
66961         * doc/getdate.texi (General date syntax): Don't say that date
66962         date --iso-8601=ns generates acceptable dates; it doesn't yet.
66963         Problem reported by Nic Ferrier.
66964
66965 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66966
66967         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
66968         specified in ai_socktype. Fix invalid ai_protocol
66969         check. ai_protocol is usually set to 0 or depending on
66970         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
66971         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
66972         ai_socktype / ai_protocol in the returned addrinfo structure.
66973
66974 2005-05-10  Simon Josefsson  <jas@extundo.com>
66975
66976         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
66977         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66978
66979 2005-05-10  Karl Berry  <karl@gnu.org>
66980
66981         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
66982         (from http://www.gnu.org/licenses).
66983         * doc/COPYING.LIB: also rename to COPYING.LESSER.
66984         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
66985         fdl.texi suffices.
66986
66987 2005-05-10  Karl Berry  <karl@gnu.org>
66988
66989         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
66990         (COPYING.DOC): remove.
66991
66992         * config/srclist-update: new FSF address.
66993
66994 2005-05-10  Derek Price  <derek@ximbiot.com>
66995
66996         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
66997         possible.
66998
66999 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67000             Bruno Haible  <bruno@clisp.org>
67001
67002         * modules/inet_ntop: New file.
67003         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67004         inet_ntop.
67005
67006 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67007             Bruno Haible  <bruno@clisp.org>
67008
67009         * m4/inet_ntop.m4: New file.
67010
67011 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67012             Bruno Haible  <bruno@clisp.org>
67013
67014         * lib/inet_ntop.h: New file.
67015         * lib/inet_ntop.c: New file, from glibc with modifications.
67016
67017 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67018
67019         * modules/time_r (License): Change to LGPL.
67020         * modules/extensions (License): Change to LGPL.  Actually,
67021         the license is more permissive than that, but currently gnulib-tool
67022         doesn't know how to handle more-permissive licenses.
67023
67024         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67025         Problem reported by Dave Love.
67026
67027 2005-05-08  Jim Meyering  <jim@meyering.net>
67028
67029         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67030         blank.
67031
67032 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67033
67034         * modules/argmatch (Depends-on): Add stdbool.
67035         * modules/backupfile (Depends-on): Likewise.
67036         * modules/chdir-long (Depends-on): Likewise.
67037         * modules/closeout (Depends-on): Likewise.
67038         * modules/cycle-check (Depends-on): Likewise.
67039         * modules/dirname (Depends-on): Likewise.
67040         * modules/fnmatch (Depends-on): Likewise.
67041         * modules/fsusage (Depends-on): Likewise.
67042         * modules/fwriteerror (Depends-on): Likewise.
67043         * modules/getcwd (Depends-on): Likewise.
67044         * modules/getloadavg (Depends-on): Likewise.
67045         * modules/hard-locale (Depends-on): Likewise.
67046         * modules/makepath (Depends-on): Likewise.
67047         * modules/mountlist (Depends-on): Likewise.
67048         * modules/nanosleep (Depends-on): Likewise.
67049         * modules/posixtm (Depends-on): Likewise.
67050         * modules/quotearg (Depends-on): Likewise.
67051         * modules/readtokens (Depends-on): Likewise.
67052         * modules/readtokens0 (Depends-on): Likewise.
67053         * modules/readutmp (Depends-on): Likewise.
67054         * modules/save-cwd (Depends-on): Likewise.
67055         * modules/strftime (Depends-on): Likewise.
67056         * modules/userspec (Depends-on): Likewise.
67057         * modules/utimecmp (Depends-on): Likewise.
67058         * modules/xgetcwd (Depends-on): Likewise.
67059         * modules/xnanosleep (Depends-on): Likewise.
67060         * modules/xstrtod (Depends-on): Likewise.
67061         * modules/yesno (Depends-on): Likewise.
67062
67063 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67064
67065         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67066         needless checks.
67067
67068 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67069
67070         Merge from coreutils.  Among other things,
67071         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67072         * lib/fd-safer.c: New file.
67073         * lib/fcntl-safer.h, open-safer.c: Remove.
67074         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67075         * lib/dup-safer.c: Include unistd-safer.h first.
67076         Don't include errno.h.
67077         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67078         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67079         * lib/file-type.c: Rely on file-type.h change.
67080         * lib/getloadavg.c: Include unistd-safer.h.
67081         (getloadavg): Use safer open.
67082         * lib/getusershell.c: Include "stdio-safer.h".
67083         (getusershell): Use safer fopen.
67084         * lib/long-options.c (long_options): Use NULL rather than 0.
67085         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67086         'free'.
67087         * lib/modechange.c: Likewise.
67088         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67089         (MODE_DONE): New constant.
67090         (struct mode_change): Remove 'next' member.
67091         (make_node_op_equals): New function; like the old one of the
67092         same name, except it allocates an array.
67093         (mode_compile, mode_create_from_ref): Use it.
67094         (mode_compile): Allocate result as an array, not a linked list.
67095         Parse octal string ourself, so that we catch mistakes like "+0".
67096         (mode_adjust): Arg is an array, not a linked list.
67097         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67098         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67099         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67100         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67101         Remove.  This is now stat-macros.h's job.
67102         (talloc): Remove.  All callers replaced by xalloc, so that
67103         our invokers don't have to worry about reporting memory failures.
67104         (make_node_op_equals): Remove.
67105         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67106         New constants.
67107         (struct mode_change): Moved here from modechange.h.
67108         (mode_append_entry): Remove.
67109         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67110         apps to have incorrect behavior.  Use simpler algorithm for head
67111         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67112         Detect more invalid usages rather than having somewhat-random behavior.
67113         Don't insert an "a=" action, as that leads to incorrect behavior.
67114         (mode_compile, mode_create_from_ref): Return NULL on error instead
67115         of an enum, since now there's only one way to have an error.  All
67116         callers changed.
67117         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67118         at the correct time.  Simplify calculation of "+u" and its ilk.
67119         Don't mishandle "+X".
67120         (mode_free): Remove "register" and localize decls.
67121         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67122         (struct mode_change): Move to modechange.c; callers don't
67123         need to see this stuff.
67124         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67125         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67126         (mode_change, mode_adjust): Reflect the new signatures noted above.
67127         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67128         that might redefine system include files.
67129         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67130         (my_usleep): Use NULL rather than (void *) 0.
67131         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67132         Use siginterrupt to specify that system calls should be interrupted.
67133         (rpl_nanosleep): Move initialization of suspended closer to call of
67134         my_usleep.
67135         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67136         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67137         (desirable_utmp_entry): New function.
67138         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67139         using x2nrealloc, to simplify logic.
67140         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67141         size calculation.  Do not assume utmp file is a regular file.
67142         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67143         (READ_UTMP_CHECK_PIDS): New constant.
67144         * lib/save-cwd.c: Include unistd-safer.h.
67145         (save_cwd): Use fd_safer.
67146         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67147         [!_LIBC] Include "stat-macros.h" instead.
67148         * lib/unistd-safer.h (fd_safer): New decl.
67149
67150 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         * modules/getloadavg (Depends-on): Add unistd-safer.
67153         * modules/getusershell (Depends-on): Add stdio-safer.
67154         * modules/lstat (Depends-on): Remove xalloc.
67155         * modules/mkstemp (Depends-on): Add stat-macros.
67156         * modules/modechange (Depends-on): Remove xstrtol.
67157         Add stat-macros, xalloc.
67158         * modules/save-cwd (Depends-on): Add unistd-safer.
67159         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67160         * modules/unistd-safer (Files): Add lib/fd-safer.c
67161         (Makefile.am): Remove lib_SOURCES.
67162
67163         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67164         Remove fcntl-safer; unistd-safer supersedes it.
67165
67166 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67167
67168         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67169         AC_HEADER_STAT.
67170         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67171         (gl_PREREQ_CHOWN): Remove.
67172         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67173         it.  Don't require AC_HEADER_STAT.
67174         (gl_PREREQ_LSTAT): Remove.
67175         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67176         Don't require AC_HEADER_STAT.
67177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67178         (gl_PREREQ_RMDIR): Remove.
67179         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67180         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67181         the stat-macros module a prerequisite.
67182         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67183         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67184         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67185         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67186         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67187         variable names.
67188         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67189         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67190         variable prefixes.
67191         * m4/fcntl-safer.m4: Remove.
67192         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67193         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67194         Invoke gl_PREREQ_FD_SAFER.
67195         (gl_PREREQ_FD_SAFER): New macro.
67196         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67197         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67198         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67199         Remove duplicate call to AC_LIBOBJ(readutmp).
67200         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67201
67202         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67203         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67204
67205 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * MODULES.html.sh (Misc): Add byteswap.
67208
67209 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67210
67211         * modules/getcwd (Depends-on): Add extensions.
67212         * modules/openat (Depends-on): Likewise.
67213
67214 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67215
67216         * modules/byteswap: New file.
67217
67218 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67219
67220         * m4/byteswap.m4: New file.
67221
67222 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67223
67224         * lib/byteswap_.h: New file.
67225
67226 2005-04-25  Karl Berry  <karl@gnu.org>
67227
67228         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67229
67230 2005-04-25  Albert Chin  <china@thewrittenword.com>
67231
67232         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67233         Toolkit C bug.
67234
67235 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67236
67237         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67238         (func_ln_if_changed) Remove forcibly for no error message
67239         in case file does not exist.
67240
67241 2005-04-19  Simon Josefsson  <jas@extundo.com>
67242
67243         * gnulib-tool (Options): Make --symlink mean --symbolic.
67244
67245 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67246
67247         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67248
67249 2005-04-16  Simon Josefsson  <jas@extundo.com>
67250
67251         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67252
67253 2005-04-15  Simon Josefsson  <jas@extundo.com>
67254
67255         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67256
67257 2005-04-15  Simon Josefsson  <jas@extundo.com>
67258
67259         * gnulib-tool: Rename --symlink to --symbolic.
67260
67261 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67262
67263         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67264         symbolic links to files instead of copying/moving.  Add --aux-dir,
67265         specifying directory relative --dir where auxiliary build tools
67266         are placed.
67267
67268 2005-04-14  Bruno Haible  <bruno@clisp.org>
67269
67270         * modules/allocsa (License): Change to LGPL.
67271         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67272
67273 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67274
67275         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67276         that "UTC +1 second" continues to work.  Problem reported
67277         by Dmitry V. Levin.
67278         (relunit_snumber): New rule.
67279         (relunit): Use it.
67280
67281 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67282
67283         * lib/getdate.y (universal_time_zone_table): New constant.
67284         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67285         universal_time_zone_table.
67286         (lookup_zone): Prefer universal_time_zone_table to
67287         local_time_zone_table, so that "GMT" time stamps are allowed in
67288         London during the summer.  Problem reported by Ian Abbott.
67289
67290 2005-04-12  Jim Meyering  <jim@meyering.net>
67291
67292         * lib/human.c (humblock): Set *options even when returning due to
67293         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67294         warning from gcc-4.
67295
67296 2005-04-09  Jim Meyering  <jim@meyering.net>
67297
67298         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67299         -Wuninitialized: initialize tm0.tm_year.
67300
67301 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67302
67303         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67304         count, since there's no maximum.  All uses changed.
67305         Add member dsts_seen.
67306         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67307         not being INT_MAX.
67308         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67309         Use pc_rels_seen to decide whther a date is absolute.
67310
67311         * lib/getdate.y (number): Don't overwrite year.
67312         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67313         check.
67314
67315 2005-04-02  Simon Josefsson  <jas@extundo.com>
67316
67317         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67318         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67319
67320 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67321
67322         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67323         where no absolute path name can be longer than PATH_MAX.
67324
67325 2005-03-27  Jim Meyering  <jim@meyering.net>
67326
67327         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67328
67329 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67332         "one's complement" -> "ones' complement" in comment, as per Knuth.
67333         "value of type" -> "type or expression" in comment.
67334         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67335
67336 2005-03-26  Jim Meyering  <jim@meyering.net>
67337
67338         Comment nits.
67339         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67340         Correct typos: s/or/of/.
67341
67342 2005-03-26  Jim Meyering  <jim@meyering.net>
67343
67344         * modules/check-include-files: Move to ../ and rename to...
67345         * check-module: ...this.
67346
67347 2005-03-25  Jim Meyering  <jim@meyering.net>
67348
67349         * modules/xvasprintf (Files): Add xalloc.h.
67350
67351 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67352
67353         * modules/gettext (Files): config/config.rpath ->
67354         build-aux/config.rpath
67355         * modules/iconv (Files): Likewise.
67356         Problem reported by Oskar Liljeblad.
67357
67358 2005-03-23  Jim Meyering  <jim@meyering.net>
67359
67360         * modules/check-include-files: New script to check for
67361         missing dependencies, multiple includes, etc.
67362
67363         * modules/c-strtold (Depends-on): Add xalloc.
67364         * modules/c-strtod (Depends-on): Add xalloc.
67365         * modules/hash (Depends-on): Add xalloc.
67366         (Files): Remove lib/xalloc.h.
67367
67368         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67369         * modules/userspec (Files): Add lib/inttostr.h.
67370
67371 2005-03-23  Jim Meyering  <jim@meyering.net>
67372
67373         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67374
67375 2005-03-22  Jim Meyering  <jim@meyering.net>
67376
67377         * modules/stat-macros: New module.
67378         * modules/canonicalize, modules/euidaccess, modules/file-type,
67379         * modules/filemode, modules/lchown, modules/makepath,
67380         * modules/rmdir, modules/stat: Depend on new stat-macros module
67381         rather than listing lib/stat-macros.h manually.
67382         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67383
67384 2005-03-22  Jim Meyering  <jim@meyering.net>
67385
67386         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67387
67388 2005-03-22  Bruno Haible  <bruno@clisp.org>
67389
67390         * config/srclist.txt: Replace target directory 'config' with
67391         'build-aux'.
67392         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67393         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67394         ../build-aux/.
67395
67396 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67397
67398         * modules/chdir-long (Depends-on): Add mempcpy.
67399
67400         * modules/acl, modules/backupfile, modules/c-strtod,
67401         modules/c-strtold, modules/canon-host, modules/canonicalize,
67402         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67403         modules/exclude, modules/exitfail, modules/file-type,
67404         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67405         modules/getdate, modules/getline, modules/getpagesize,
67406         modules/getpass, modules/getugroups, modules/group-member,
67407         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67408         modules/inttostr, modules/long-options, modules/makepath,
67409         modules/md5, modules/memcasecmp, modules/memcoll,
67410         modules/modechange, modules/mountlist, modules/path-concat,
67411         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67412         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67413         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67414         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67415         modules/strftime, modules/strndup, modules/strverscmp,
67416         modules/timespec, modules/unlocked-io, modules/userspec,
67417         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67418         modules/yesno:
67419         Remove lib_SOURCES line from Makefile.am section, as this is now
67420         done automatically by the corresponding Autoconf macro.
67421
67422 2005-03-21  Jim Meyering  <jim@meyering.net>
67423
67424         Changes imported from coreutils.
67425
67426         * lib/cycle-check.c: Don't include xalloc.h.
67427
67428         * lib/path-concat.c: Don't include assert.h.
67429         (path_concat): Remove assertion that would have triggered
67430         for ABASE starting with more than one slash.
67431         Reported by Andreas Schwab.
67432
67433         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67434         properly when ABASE is an absolute file name.
67435         Correct the description of this function.
67436         Include <assert.h>.
67437         Add an assertion and a test driver.
67438         This fixes a bug introduced on 2004-07-02.
67439         Andreas Schwab reported the resulting failure of cp --parents:
67440         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67441
67442 2005-03-21  Jim Meyering  <jim@meyering.net>
67443
67444         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67445         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67446
67447 2005-03-21  Jim Meyering  <jim@meyering.net>
67448         and  Paul Eggert  <eggert@cs.ucla.edu>
67449
67450         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67451         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67452         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67453         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67454         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67455         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67456         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67457         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67458         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67459         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67460         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67461         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67462         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67463         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67464         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67465         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67466         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67467         for these modules.
67468
67469 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67472         (which shouldn't happen), generate nothing instead of returning 0
67473         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67474
67475 2005-03-16  Bruno Haible  <bruno@clisp.org>
67476
67477         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67478         HAVE_LONGLONG_64BIT.
67479
67480 2005-03-16  Bruno Haible  <bruno@clisp.org>
67481
67482         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67483         HAVE_LONGLONG_64BIT.
67484
67485 2005-03-16  Bruno Haible  <bruno@clisp.org>
67486
67487         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67488         HAVE_LONGLONG_64BIT.
67489
67490 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67493         reliably distinguish strftime failure from empty output on POSIX
67494         hosts.
67495
67496 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67497
67498         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67499         (iconv_string): Don't guess a size-zero buffer, as that might cause
67500         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67501         result would be 'too large', where 'too large' is (heuristically)
67502         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67503         overflow concerns.  This will prevent some unwanted malloc failures
67504         when the inputs are very large.
67505
67506 2005-03-15  Karl Berry  <karl@gnu.org>
67507
67508         * config/srclist.txt (config.rpath): from gettext.
67509         * config/config.rpath: update.
67510
67511 2005-03-15  Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67514         to 'negate'.
67515
67516         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67517         variable.
67518
67519         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67520         results.
67521
67522 2005-03-14  Simon Josefsson  <jas@extundo.com>
67523
67524         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67525         <fx@gnu.org>.
67526
67527 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67528
67529         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67530         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67531         intprops.h.
67532         * lib/strtol.c: Likewise.
67533
67534 2005-03-14  Jim Meyering  <jim@meyering.net>
67535
67536         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67537         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67538         to be nonzero so that we (and caller) can detect the difference
67539         between a valid zero-length expansion and an error return, even
67540         when the underlying strftime fails before writing anything into
67541         that location.
67542
67543 2005-03-14  Bruno Haible  <bruno@clisp.org>
67544
67545         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67546         Update from GNU gettext 0.14.3.
67547
67548 2005-03-10  Jim Meyering  <jim@meyering.net>
67549
67550         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67551
67552 2005-03-10  Jim Meyering  <jim@meyering.net>
67553
67554         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67555         so that this module works on systems without fchdir.
67556
67557 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67558
67559         Factor int-properties macros into a single file, except for
67560         glibc-related files.
67561         * lib/intprops.h: New file.
67562         * lib/getloadavg.c: Include it instead of limits.h.
67563         (INT_STRLEN_BOUND): Remove.
67564         * lib/human.c: Include intprops.h.
67565         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67566         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67567         302/1000.
67568         * lib/inttostr.h: Include intprops.h instead of limits.h.
67569         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67570         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67571         for consistency with intprops.h.
67572         (time_t_is_integer, twos_complement_arithmetic): Use them.
67573         * lib/sig2str.h: Include <signal.h>, intprops.h.
67574         (INT_STRLEN_BOUND): Remove.
67575         * lib/strftime.c (TYPE_SIGNED): Remove.
67576         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67577         * lib/strtol.c: Adjust comments to match intprops.h.
67578         * lib/userspec.c: Include intprops.h.
67579         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67580         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67581         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67582         instead of rolling our own expressions.
67583         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67584
67585         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67586         instead of int.
67587         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67588         the right thing even if adding 1900 would overflow.  Similarly
67589         for tm_mon + 1 and tm_yday + 1.
67590         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67591         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67592         (DO_SIGNED_NUMBER): New macro.
67593         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67594
67595 2005-03-07  Bruno Haible  <bruno@clisp.org>
67596
67597         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67598
67599 2005-03-07  Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67602
67603 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67604
67605         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67606         (func_import): Only replace files via --import when they have actually
67607         changed.
67608
67609 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67610
67611         * m4/mmap-anon.m4: New file.
67612         * m4/pagealign_alloc.m4: New file.
67613
67614 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67615             Bruno Haible  <bruno@clisp.org>
67616
67617         * modules/pagealign_alloc: New file.
67618         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67619
67620 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67621             Bruno Haible  <bruno@clisp.org>
67622
67623         * lib/pagealign_alloc.h: New file.
67624         * lib/pagealign_alloc.c: New file.
67625
67626 2005-03-03  Bruno Haible  <bruno@clisp.org>
67627
67628         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67629         Use an all-permissive copyright notice, recommended by RMS.
67630
67631 2005-03-02  Bruno Haible  <bruno@clisp.org>
67632
67633         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67634         of AIX, the replacement has to be done only after <string.h> is
67635         included, therefore not in config.h. stpncpy.h does the replacement,
67636         and stpncpy.c uses it.
67637
67638 2005-03-02  Bruno Haible  <bruno@clisp.org>
67639
67640         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67641         stpncpy.c uses it.
67642
67643 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67646         The workaround isn't strictly needed for POSIX conformance, and
67647         it's too much of a pain to configure and maintain.  We'll ask
67648         people to fix their kernels instead.
67649         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67650         (NANOSLEEP_BUG_WORKAROUND): Remove.
67651         (xnanosleep): Remove the workaround.
67652
67653 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67654
67655         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67656         Reported by Derek Price.
67657         (Include): Add "timespec.h".
67658
67659         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67660
67661 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67662
67663         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67664         to detect nanosleep bug.
67665
67666 2005-03-01  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67669
67670 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67671
67672         * modules/gethrxtime: New file.
67673         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67674         (Depends-on): Add gethrxtime.
67675         (configure.ac): Add gl_XNANOSLEEP.
67676         (Makefile.am): Remove lib_SOURCES line.
67677
67678 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67679
67680         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67681         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67682
67683 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67684
67685         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67686         * lib/timespec.h (gettime): Return void, since it always
67687         succeeds now.  All uses changed.
67688         * lib/gettime.c (gettime) Likewise.
67689         [HAVE_NANOTIME]: Prefer nanotime.
67690         Assume gettimeofday succeeds, as POSIX requires.
67691         Assime time () succeeds, since other code already does.
67692         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67693         (timespec_subtract): Remove.
67694         (NANOSLEEP_BUG_WORKAROUND): New constant.
67695         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67696         things considerably.  Use it only on GNU/Linux hosts, since the
67697         workaround shouldn't be needed elsewhere.
67698
67699 2005-02-24  Bruno Haible  <bruno@clisp.org>
67700
67701         * modules/gettext (Files): Add m4/glibc2.m4.
67702
67703 2005-02-24  Bruno Haible  <bruno@clisp.org>
67704
67705         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67706         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67707         * m4/progtest.m4:
67708         Update from GNU gettext 0.14.2.
67709         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67710
67711 2005-02-24  Bruno Haible  <bruno@clisp.org>
67712
67713         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67714         * lib/config.charset: Update from GNU gettext 0.14.2.
67715
67716 2005-02-24  Bruno Haible  <bruno@clisp.org>
67717
67718         * lib/gettext.h: Update from GNU gettext 0.14.2.
67719
67720 2005-02-23  Simon Josefsson  <jas@extundo.com>
67721
67722         * m4/iconvme.m4: New file.
67723
67724 2005-02-23  Jim Meyering  <jim@meyering.net>
67725
67726         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67727         change.
67728         Thanks to Bruno Haible for catching it.
67729
67730 2005-02-22  Simon Josefsson  <jas@extundo.com>
67731
67732         * modules/iconvme: New file.
67733
67734         * MODULES.html.sh: Add iconvme.
67735
67736 2005-02-22  Simon Josefsson  <jas@extundo.com>
67737
67738         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67739
67740 2005-02-22  Simon Josefsson  <jas@extundo.com>
67741
67742         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67743
67744 2005-02-22  Jim Meyering  <jim@meyering.net>
67745
67746         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67747         s/ifndef/ifdef/.
67748
67749 2005-02-20  Neil Conway  <neilc@samurai.com>
67750
67751         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67752         returned by OSX/Darwin if the specified buffer is not large
67753         enough for the hostname.
67754
67755 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67756
67757         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67758         pass it to _help, otherwise the latter coredumps trying to
67759         dereference state.root_argp.
67760
67761 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67762
67763         * modules/chdir-long (Depends-on): Add memrchr.
67764         * modules/memrchr (Files): Add lib/memrchr.h.
67765         (Include): "memrchr.h".
67766
67767 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67768
67769         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67770
67771 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         * lib/memrchr.h: New file.
67774         * lib/chdir-long.c: Include it.
67775         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67776         Don't bother including stddef.h.
67777
67778 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67781         inclusion.
67782         Include <sys/types.h>, for dev_t.
67783         (ME_DUMMY, ME_REMOTE): Move from here....
67784         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67785         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67786         Dmitry V. Levin.
67787         Include mountlist.h first, to test the interface.
67788
67789 2005-01-29  Bruno Haible  <bruno@clisp.org>
67790
67791         * lib/progname.c (program_name): Initialize.
67792         Needed when linking statically on MacOS X.
67793
67794 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         Sync from coreutils.
67797         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67798         (Depends-on): Add c-strtod.
67799         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67800
67801 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67802
67803         Sync from coreutils.
67804         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67805
67806         Remove files that are specific to coreutils.
67807         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67808
67809 2005-01-28  Bruno Haible  <bruno@clisp.org>
67810
67811         * modules/javacomp: New file.
67812         * MODULES.html.sh (Java): Add javacomp.
67813
67814 2005-01-28  Bruno Haible  <bruno@clisp.org>
67815
67816         * m4/javacomp.m4: New file, from GNU gettext.
67817
67818 2005-01-28  Bruno Haible  <bruno@clisp.org>
67819
67820         * lib/javacomp.sh.in: New file, from GNU gettext.
67821         * lib/javacomp.h: New file, from GNU gettext.
67822         * lib/javacomp.c: New file, from GNU gettext.
67823
67824 2005-01-26  Simon Josefsson  <jas@extundo.com>
67825
67826         * lib/gai_strerror.c: Use GPL in header.
67827
67828 2005-01-26  Bruno Haible  <bruno@clisp.org>
67829
67830         * modules/javaexec: New file.
67831         * MODULES.html.sh (Java): Add javaexec.
67832
67833 2005-01-26  Bruno Haible  <bruno@clisp.org>
67834
67835         * m4/javaexec.m4: New file, from GNU gettext.
67836
67837 2005-01-26  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/javaexec.sh.in: New file, from GNU gettext.
67840         * lib/javaexec.h: New file, from GNU gettext.
67841         * lib/javaexec.c: New file, from GNU gettext.
67842
67843 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67844
67845         * modules/lchown (Depends-on): Remove lchown.h
67846
67847 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67848
67849         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67850         must be defined if the header file was not found, in order
67851         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67852
67853 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67854
67855         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67856         initializers for struct pentry_state.
67857         (__argp_error): Check return value of __asprintf
67858         (__argp_failure): Translate error message
67859
67860         * lib/argp-parse.c: Removed braces around the expansion of N_()
67861
67862 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67865         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67866         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67867         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67868         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67869         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67870         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67871         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67872         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67873         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67874         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67875         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67876         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67877         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67878         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67879         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67880         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67881         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67882         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67883         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67884         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67885         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67886         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67887         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67888         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67889         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67890         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67891         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67892         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67893         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67894         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67895         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67896         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67897         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67898         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67899         Use an all-permissive copyright notice, recommended by RMS.
67900
67901 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         * modules/chdir-long (Depends-on): Remove mempcpy.
67904
67905 2005-01-21  Jim Meyering  <jim@meyering.net>
67906
67907         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67908         same value as for Solaris 9.
67909
67910         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67911         component length.  This included changing the parameter to be
67912         of type `char *' rather than `char const *'.
67913         * lib/chdir-long.h (chdir_long): Update prototype.
67914
67915         * lib/openat.c (fdopendir, fstatat): New functions.
67916         * lib/openat.h: Include headers required for use of DIR and struct
67917         stat.
67918         [AT_SYMLINK_NOFOLLOW]: Define.
67919         (fdopendir, fstatat): Add prototypes.
67920
67921 2005-01-21  Bruno Haible  <bruno@clisp.org>
67922
67923         * modules/classpath: New file.
67924         * MODULES.html.sh (Java): Add classpath.
67925
67926 2005-01-21  Bruno Haible  <bruno@clisp.org>
67927
67928         * lib/classpath.h: New file, from GNU gettext.
67929         * lib/classpath.c: New file, from GNU gettext.
67930
67931 2005-01-20  Simon Josefsson  <jas@extundo.com>
67932
67933         * modules/version-etc-fsf: New file.
67934
67935 2005-01-20  Simon Josefsson  <jas@extundo.com>
67936
67937         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67938         * lib/version-etc.c: Remove version_etc_copyright.
67939         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67940         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67941
67942 2005-01-20  Simon Josefsson  <jas@extundo.com>
67943
67944         * lib/base64.h (isbase64): Add.
67945
67946         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67947         using a unsigned prototype, don't inline.
67948         (base64_decode): Use it.
67949
67950 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67951
67952         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67953         it.
67954
67955 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67956
67957         * lib/save-cwd.c (save_cwd): Remove code to support the case
67958         where fchdir is missing or flaky.
67959
67960 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67961
67962         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
67963
67964 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
67967         AC_LIBSOURCES now does this.
67968         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
67969         with new ullong_max module.
67970
67971 2005-01-19  Bruno Haible  <bruno@clisp.org>
67972
67973         * modules/sh-quote: New file.
67974         * MODULES.html.sh (Executing programs): Add sh-quote.
67975
67976 2005-01-19  Bruno Haible  <bruno@clisp.org>
67977
67978         * lib/sh-quote.h: New file, from GNU gettext.
67979         * lib/sh-quote.c: New file, from GNU gettext.
67980
67981 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67982
67983         Merge from coreutils.
67984         * m4/ullong_max.m4: New file.
67985         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
67986         (gl_MACROS): Assume localeconv exists.
67987
67988 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67989
67990         Merge changes from coreutils, as described below in several
67991         changelogs dated today.
67992
67993         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
67994         (O_DIRECTORY): Remove; not needed here, since "." must be
67995         a directory.  All uses removed.
67996         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
67997         universal on Suns, and we also need to test for IRIX.
67998         Revamp code to use 'if' rather than '#if'.
67999         Avoid unnecessary comparison of cwd->desc to 0.
68000
68001         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68002         for known valid error numbers rather than observed invalid ones.
68003
68004 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68005
68006         * modules/ullong_max: New file.
68007
68008         * modules/chdir-long, modules/openat: New files.
68009         * modules/save-cwd (Depends-on): Depend on chdir-long.
68010         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68011
68012 2005-01-18  Jim Meyering  <jim@meyering.net>
68013
68014         Merge from coreutils.
68015         * m4/chdir-long.m4, m4/openat.m4: New files.
68016         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68017         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68018         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68019         is sane and DOES follow symlinks.  Besides, testing 20 different
68020         systems found no broken chown implementations.
68021         Prompted by a change in rsync's copy of this macro.
68022         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68023
68024         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68025
68026         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68027         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68028         NULL-means-set-to-current-time semantics.
68029         Remove temporary file immediately, rather than waiting
68030         for configure's at-exit trap code to do it.
68031
68032 2005-01-18  Jim Meyering  <jim@meyering.net>
68033
68034         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68035
68036         * lib/utimens.c (futimens): Account for the fact that futimes
68037         can also fail with errno == ENOSYS or errno == ENOENT.
68038         Patch from Dmitry V. Levin.
68039
68040         Change the name of the robust chdir function from chdir to chdir_long.
68041         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68042         (restore_cwd): Use chdir_long, not chdir.
68043         * lib/chdir-long.c: Renamed from chdir.c.
68044         * lib/chdir-long.h: Renamed from chdir.h.
68045         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68046         Hurd.
68047
68048 2005-01-18  Bruno Haible  <bruno@clisp.org>
68049
68050         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68051         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68052         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68053         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68054         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68055         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68056         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68057         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68058         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68059         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68060         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68061         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68062         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68063         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68064         Use an all-permissive copyright notice, recommended by RMS.
68065
68066 2005-01-18  Bob Proulx  <bob@proulx.com>
68067
68068         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68069         simplify offsetof() macro construct to avoid compile failure with
68070         native HP-UX 11.0 ANSI C compiler.
68071
68072 2005-01-17  Bruno Haible  <bruno@clisp.org>
68073
68074         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68075         redundant because stpncpy.m4 takes care of it.
68076
68077 2005-01-17  Bruno Haible  <bruno@clisp.org>
68078
68079         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68080
68081 2005-01-17  Bruno Haible  <bruno@clisp.org>
68082
68083         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68084         used.
68085
68086 2005-01-17  Bruno Haible  <bruno@clisp.org>
68087
68088         * lib/fwriteerror.h (fwriteerror): Change specification to include
68089         fclose.
68090         * lib/fwriteerror.c: Include <stdbool.h>.
68091         (fwriteerror): At the end, close the file stream. Record whether
68092         stdout was already closed.
68093
68094 2005-01-17  Bruno Haible  <bruno@clisp.org>
68095
68096         * lib/execute.c (environ): Declare if needed.
68097         * lib/pipe.c (environ): Likewise.
68098         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68099
68100 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68101
68102         * modules/argp: Depend on vsnprintf
68103
68104 2005-01-10  Jim Meyering  <jim@meyering.net>
68105
68106         * modules/closeout (Depends-on): Add atexit.
68107
68108 2005-01-06  Bruno Haible  <bruno@clisp.org>
68109
68110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68111
68112 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68113
68114         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68115         definitions to be after all include files, to avoid collisions.
68116         Problem reported by Bob Proulx.
68117
68118 2005-01-04  Jim Meyering  <jim@meyering.net>
68119
68120         Changes imported from coreutils.
68121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68122         as the mkstemp template, use a temporary directory and an
68123         8.3-friendly template to avoid trouble on systems like DJGPP.
68124         Reported by Juan M. Guerrero via Stepan Kasal.
68125         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68126         close. Remove the temporary directory right away, rather than waiting
68127         for configure's at-exit trap code to do it.
68128         Suggestion from Stepan Kasal.
68129
68130 2005-01-01  Simon Josefsson  <jas@extundo.com>
68131
68132         * gnulib-tool: Print #include directives when --import'ing.
68133
68134 2004-12-28  Simon Josefsson  <jas@extundo.com>
68135
68136         * tests/test-base64.c: Include required header files.  Remove
68137         unused variables.
68138
68139 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         * modules/error (Depends-on): Remove gettext.
68142
68143 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68146         not needed.  This removes a dependency on the gettext module.
68147         [defined _LIBC]: Do not include <libintl.h>; not needed.
68148
68149 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68150
68151         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68152         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68153
68154 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68157         HAVE_DECL_STRTOLD.
68158
68159 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         * modules/getdate (Depends-on): Remove alloca-opt.
68162
68163 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68164
68165         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68166
68167 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * lib/argp-parse.c: Include <stddef.h>.
68170         (alignof, alignto): New macros.
68171         (parser_init): Don't assume that void * is aligned sufficiently
68172         for struct option.
68173
68174         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68175         need to extend the stack.
68176         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68177         large.
68178
68179 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68180
68181         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68182
68183 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68186         (2004-10-24) change.  Apparently this was a false alarm.
68187
68188         * modules/getdate: Depend on alloca-opt, not alloca.
68189
68190 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68191
68192         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68193         Remove now-obsolete comment about AIX.
68194         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68195         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68196         (YYMAXDEPTH): New macro.
68197
68198 2004-12-18  Simon Josefsson  <jas@extundo.com>
68199
68200         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68201
68202 2004-12-18  Bruno Haible  <bruno@clisp.org>
68203
68204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68205
68206 2004-12-18  Bruno Haible  <bruno@clisp.org>
68207
68208         * lib/fatal-signal.c (fatal_signals): Make non-const.
68209         (init_fatal_signals): New function.
68210         (uninstall_handlers, install_handlers): Ignore signals that were set to
68211         SIG_IGN.
68212         (at_fatal_signal): Call init_fatal_signals.
68213         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68214         SIG_IGN.
68215         Reported by Paul Eggert.
68216
68217 2004-12-18  Bruno Haible  <bruno@clisp.org>
68218
68219         * doc/alloca.texi: New file.
68220         * doc/alloca-opt.texi: New file.
68221
68222 2004-12-17  Jim Meyering  <jim@meyering.net>
68223
68224         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68225         Otherwise, install-sh could exit with improper exit status when
68226         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68227
68228 2004-12-16  Simon Josefsson  <jas@extundo.com>
68229
68230         * tests/test-base64.c: Add license.
68231
68232 2004-12-15  Stepan Kasal  <address@hidden>
68233
68234         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68235
68236 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68237
68238         * modules/getcwd (Files): Add m4/d-ino.m4.
68239         Suggested by Mark D. Baushke.
68240
68241 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * lib/getdate.y (textint): New member "negative".
68244         (time_zone_hhmm): New function.
68245         Expect 14 shift-reduce conflicts, not 13.
68246         (o_colon_minutes): New rule.
68247         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68248         (yylex): Set the "negative" member of signed numbers.
68249
68250 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68251
68252         * doc/getdate.texi (Time of day items, Time zone items):
68253         Describe new formats +00:00, UTC+00:00.
68254
68255 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68256
68257         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68258         spurious "-l"s.  Problem reported by Stepan Kasal.
68259
68260 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68261
68262         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68263         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68264
68265 2004-12-04  Simon Josefsson  <jas@extundo.com>
68266
68267         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68268         Vandoorselaere <yoann@prelude-ids.org>.
68269
68270 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68271
68272         Changes imported from coreutils.
68273         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68274         exist.
68275         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68276
68277 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         Changes imported from coreutils.
68280         * lib/hard-locale.c: Assume <locale.h> exists.
68281         Include "strdup.h".
68282         (GLIBC_VERSION): New macro.
68283         (hard_locale): Assume setlocale exists.
68284         Rewrite to avoid #ifdef.
68285         Use strdup rather than malloc + strcpy.
68286         * lib/human.c: Assume <locale.h> exists.
68287         (human_readable): Assume localeconv exists.
68288
68289 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68290
68291         * modules/hard-locale (Depends-on): Add strdup.
68292
68293 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68294
68295         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68296         convert T2, not T.  (Imported from libc.)
68297
68298 2004-11-30  Simon Josefsson  <jas@extundo.com>
68299
68300         * modules/restrict (License): Change to LGPL.
68301
68302 2004-11-30  Simon Josefsson  <jas@extundo.com>
68303
68304         * m4/restrict.m4: Add copyright and copying conditions.
68305
68306 2004-11-30  Simon Josefsson  <jas@extundo.com>
68307
68308         * m4/base64.m4: New file.
68309
68310 2004-11-30  Simon Josefsson  <jas@extundo.com>
68311
68312         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68313         base64.
68314
68315         * tests/test-base64.c: New file.
68316
68317         * modules/base64: New file.
68318
68319 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68320
68321         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68322         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68323
68324         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68325
68326 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68327
68328         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68329         (__getcwd.c): Don't restore errno; glibc doesn't.
68330         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68331         first, falling back to our code only if its results look suspicious.
68332         Ensure that the resulting buffer is only as large as necessary.
68333
68334         * lib/readutmp.c: Include readutmp.h first.
68335         Include <errno.h>, since readutmp.h no longer does that.
68336         * lib/readutmp.h: Don't include <errno.h>,
68337         <sys/param.h>, <time.h>; not needed to establish interface.
68338         (errno): Remove decl.
68339         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68340         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68341         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68342
68343 2004-11-28  Simon Josefsson  <jas@extundo.com>
68344
68345         * lib/base64.h, base64.c: New file.
68346
68347 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68350
68351 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68352
68353         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68354         (Depends-on): Remove pathmax, same.  Add mempcpy.
68355         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68356         (Makefile.am): Append getcwd.h to lib_SOURCES.
68357         (Include): Add getcwd.h.
68358         (Maintainer): Change from Jim Meyering to "all, glibc",
68359         since getdate now uses intended-for-glibc code.
68360         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68361         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68362
68363 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68364
68365         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68366         HP's ANSI C compiler.
68367         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68368         Declaring int functions causes warnings on some modern systems and
68369         shouldn't be needed to compile on ancient ones.
68370         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68371         defined.
68372
68373         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68374         with the following changes.
68375         (__set_errno): Parenthesize properly.
68376         Include <stdbool.h>.
68377         (MIN, MAX, MATCHING_INO): New macros.
68378         (__getcwd): Define with prototype, not K&R form.
68379         Use heuristics to allocate default buffer on stack if possible.
68380         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68381         behavior, and to avoid the PATH_MAX limit when computing
68382         ../../../../...
68383         Use MATCHING_INO to compare inode number to file.
68384         Check for arithmetic overflow in size calculations.
68385         Fix bug in reallocation of dot array that caused getcwd to fail
68386         on directories nested deeper than 75.
68387         Be more careful about saving errno on error.
68388         Do not use realloc; use only free+malloc, as this is a bit
68389         more flexible and avoids a needless copy operation.
68390         Do not inspect st_dev and st_ino for symbolic links; POSIX
68391         doesn't specify the latter.
68392         Check for closedir errors.
68393         Avoid needless casts.
68394         Use "#ifdef weak_alias" around weak_alias, to be like other
68395         glibc code.
68396         The following changes to getcwd.c have effect only when used in
68397         gnulib; they have no effect inside glibc proper.
68398         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68399         as alloca isn't used.
68400         (alloca, __alloca): Likewise.
68401         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68402         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68403         unconditionally, as gnulib assumes C89 or better.
68404         Do not include <sys/param.h>.
68405         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68406         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68407         better.
68408         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68409         Include <dirent.h> in a way that is compatible with modern Autoconf.
68410         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68411         New macros, if not already defined.
68412         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68413         Use "_LIBC", not "defined _LIBC", for consistency.
68414         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68415         a mempcpy module.
68416         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68417         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68418         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68419         credit only to Jim Meyering and adjust the copyright dates.
68420         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68421         <stdlib.h>, <unistd.h>, "pathmax.h".
68422         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68423         (INITIAL_BUFFER_SIZE): Remove.
68424         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68425
68426 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68429         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68430         Use the _ONCE methods, for efficiency.
68431         Check for fcntl.h.  In test program, include <errno.h>
68432         and <fcntl.h> if available.  Remove old K&R cruft from
68433         test program.  Check for common errors in GNU/Linux,
68434         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68435         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68436         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68437         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68438         name accordingly.
68439         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68440         accommodate new getcwd.c.
68441         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68442         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68443         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68444         that's all we need now.
68445
68446 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68447
68448         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68449         argp-parse.c depends on getopt internals, that means we should
68450         always use our getopt, to be on the safe side.
68451         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68452         order not to spoil the result of an eventual previous invocation
68453         of gl_GETOPT_SUBSTITUTE.
68454
68455 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68456
68457         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68458         redefinition warnings. To avoid them, include the defines
68459         in `#if !defined __need_getopt ... #endif'. The only place
68460         where __getopt_argv_const is used is in definitions
68461         of getopt_long and getopt_long_only below, which are as well
68462         protected by `#ifndef __need_getopt'.
68463         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68464         __need_getopt after including <stdio.h> and <unistd.h> These
68465         headers might have defined it.
68466
68467 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68468
68469         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68470
68471 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68472
68473         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68474         (futimens): New function, which uses futimes if available.
68475         (futimens, utimens): Support timespec==NULL, with same semantics
68476         as utime and utimens.
68477         * lib/utimens.h (futimens): New decl.
68478
68479 2004-11-23  Jim Meyering  <jim@meyering.net>
68480
68481         * lib/getopt_.h: Remove trailing blanks.
68482
68483 2004-11-23  Jim Meyering  <jim@meyering.net>
68484
68485         * lib/__fpending.c: Add comment.
68486
68487 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68488
68489         * modules/canonicalize (Depends-on): Add xreadlink.
68490         Problem reported by James Youngman.
68491
68492 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68493
68494         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68495         New macros.
68496         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68497         optopt): Use them instead of invoking ## directly; otherwise, the
68498         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68499
68500 2004-11-19  Bruno Haible  <bruno@clisp.org>
68501
68502         * lib/strtok_r.c: Move comments from here...
68503         * lib/strtok_r.h: ... to here.
68504
68505 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68506
68507         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68508         implementations that mishandle size_t overflow.
68509
68510 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68511
68512         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68513         might fail.  Problem reported by Yoann Vandoorselaere.
68514         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68515         implementations that mishandle size_t overflow.
68516
68517 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         * modules/canon-host (Depends-on): Add strdup.
68520
68521 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68524
68525 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68526
68527         * lib/canon-host.c: Include "strdup.h".
68528         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68529         Use strdup instead of malloc/strcpy to duplicate strings.
68530
68531         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68532         (human_space_before_unit): New constant.
68533         * lib/human.c (human_readable): Support it.
68534
68535         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68536         (xgetcwd): Set errno correctly when failing.
68537         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68538         the failure is actually due to a PATH_MAX problem.
68539
68540         Further getopt changes to make it more likely that glibc will
68541         buy the changes back.
68542         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68543         (getopt): Use it, so to preserve glibc semantic
68544         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68545         when compiling for libc.
68546         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68547         (getopt_long, getopt_long_only): Use it.
68548
68549         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68550         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68551         (getopt): Argv is now char * const *, as per standard.
68552         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68553         not char *__getopt_argv_const *.
68554         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68555         _getopt_long_only_r): Likewise.
68556         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68557         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68558         _getopt_long_r, _getopt_long_only_r): Likewise.
68559         * lib/getopt_.h (__getopt_argv_const): Remove.
68560         (getopt): Argv is now char * const *, as per standard.
68561
68562         * lib/getdate.y (tORDINAL): New token.
68563         (day, relunit): Allow it for relative times.
68564         (relative_time_table): Use tORDINAL for ordinals.
68565
68566 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68569         Document that "second" isn't allowed as an ordinal number.
68570
68571 2004-11-16  Jim Meyering  <jim@meyering.net>
68572
68573         * modules/closeout (Depends-on): Add fpending.
68574
68575 2004-11-15  Jim Meyering  <jim@meyering.net>
68576
68577         * lib/closeout.c: Include "__fpending.h" once again.
68578         Include <stdbool.h>.
68579         (close_stdout): Don't fail just because stdout was closed initially,
68580         since some programs don't write to stdout in the normal course of
68581         operation (other than --version and --help), and we don't want this
68582         function to make e.g. `touch file >&-' fail.
68583         But do fail if it was closed and someone has tried to write to it.
68584         E.g., `printf foo >&-' must fail.
68585
68586 2004-11-13  Jim Meyering  <jim@meyering.net>
68587
68588         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68589
68590 2004-11-12  Simon Josefsson  <jas@extundo.com>
68591
68592         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68593         small doc fix is still pending.
68594
68595 2004-11-11  Simon Josefsson  <jas@extundo.com>
68596
68597         * modules/strtok_r: New file.
68598
68599         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68600         strtok_r.
68601
68602 2004-11-11  Simon Josefsson  <jas@extundo.com>
68603
68604         * m4/strtok_r.m4: New file.
68605
68606         * m4/getopt.m4: Replace opterr.
68607
68608 2004-11-11  Simon Josefsson  <jas@extundo.com>
68609
68610         * lib/strtok_r.h, strtok_r.c: New file.
68611
68612 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68613
68614         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68615         of replacing opterr, getopt, etc.  This should handle the
68616         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68617
68618 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68619
68620         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68621         we can stop lying to compilers about the constness of argv when we
68622         are compiled outside glibc.
68623         (getopt, getopt_long, getopt_long_only): Use it.
68624         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68625         _getopt_internal, getopt): Likewise.
68626         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68627         _getopt_long_only_r): Likewise.
68628         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68629         _getopt_long_r, _getopt_long_only_r): Likewise.
68630
68631         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68632         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68633         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68634         the other external symbols.
68635         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68636         declaration, since the above renaming now works around collisions.
68637
68638 2004-11-11  Jim Meyering  <jim@meyering.net>
68639
68640         * lib/linebreak.c: Remove trailing blanks.
68641         * lib/alloca_.h: Likewise.
68642         * lib/acosl.c: Likewise.
68643         * lib/euidaccess.c: Likewise.
68644         * lib/allocsa.h: Likewise.
68645
68646 2004-11-10  Simon Josefsson  <jas@extundo.com>
68647
68648         * m4/getaddrinfo.m4: New file.
68649
68650 2004-11-10  Simon Josefsson  <jas@extundo.com>
68651
68652         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68653
68654 2004-11-10  Simon Josefsson  <jas@extundo.com>
68655
68656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68657         getaddrinfo.
68658
68659         * modules/getaddrinfo: New file.
68660
68661 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68662
68663         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68664
68665 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68666
68667         * lib/mktime.c (SHR): New macro, which is a portable
68668         substitute for >> that should work even on Crays.
68669         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68670         Problem reported by Mark D. Baushke in
68671         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68672         * lib/getdate.y (SHR): Likewise.
68673         (tm_diff): Use it.
68674         * lib/strftime.c (SHR): Likewise.
68675         (tm_diff): Use it.
68676         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68677         quote_these_too, so that right shifts are well defined.  All uses
68678         changed.
68679
68680 2004-11-10  Jim Meyering  <jim@meyering.net>
68681
68682         Ensure that no close failure goes unreported.
68683         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68684         return early when it seems there's nothing to flush.
68685         Don't include __fpending.h.
68686
68687 2004-11-10  Jim Meyering  <jim@meyering.net>
68688
68689         * modules/closeout (Depends-on): Remove fpending.
68690
68691 2004-11-10  Jim Meyering  <jim@meyering.net>
68692
68693         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68694
68695 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68696
68697         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68698         gl_FUNC_STRFTIME.
68699         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68700         and AC_REQUIRE when possible, to avoid duplicate checks.
68701         Check for <wchar.h>.
68702
68703 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68704
68705         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68706
68707 2004-11-09  Bruno Haible  <bruno@clisp.org>
68708
68709         * m4/sockpfaf.m4: New file.
68710
68711 2004-11-05  Bruno Haible  <bruno@clisp.org>
68712
68713         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68714         Reported by Mark D. Baushke <mdb@cvshome.org>.
68715
68716 2004-11-04  Bruno Haible  <bruno@clisp.org>
68717
68718         2004-09-11  Bruno Haible  <bruno@clisp.org>
68719                 * allocsa.valgrind: New file.
68720         2004-02-06  Bruno Haible  <bruno@clisp.org>
68721                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68722                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68723                 Reported by Christopher Seip <chris.seip@hp.com>.
68724
68725 2004-11-04  Bruno Haible  <bruno@clisp.org>
68726
68727         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68728         (Makefile.am): Distribute it.
68729
68730 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68731
68732         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68733         with errno == ERANGE if the buffer is too small.
68734         Problem reported by Mark D. Baushke.
68735
68736 2004-11-03  Albert Chin  <china@thewrittenword.com>
68737             Paul Eggert  <eggert@cs.ucla.edu>
68738
68739         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68740         equivalent, substitute $ac_type for equivalent type rather than
68741         blindly using uint32_t *always* which won't work if uint32_t is not
68742         available.  Define _UINT32_T to work around typedef of uint32_t if
68743         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68744         2.5.1.
68745
68746 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         * m4/jm-macros.m4: Sync from coreutils.
68749         (gl_MACROS): Check for mbrlen, for pathchk.
68750         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68751
68752 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68753
68754         * lib/xreadlink.c (MAXSIZE): New macro.
68755         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68756         size does not exceed MAXSIZE.  Avoid cast.
68757         As suggested by Mark D. Baushke in
68758         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68759         if readlink fails with buffer size just under MAXSIZE, try again
68760         with MAXSIZE.
68761
68762 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68763
68764         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68765
68766 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68767         and  Paul Eggert  <eggert@cs.ucla.edu>
68768
68769         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68770         (get_date): Overparenthesize to avoid GCC warning.
68771
68772 2004-11-02  Bruno Haible  <bruno@clisp.org>
68773
68774         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68775         returns void.
68776
68777 2004-11-02  Bruno Haible  <bruno@clisp.org>
68778
68779         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68780         function returns void.
68781
68782 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68783
68784         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68785         fflush_unlocked, flockfile, funlockfile, funlockfile,
68786         fputs_unlocked, putc_unlocked.
68787
68788 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68789
68790         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68791         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68792         already declared.
68793
68794 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68795
68796         * modules/getdate (Files): Add doc/getdate.texi.
68797         (Depends-on): Add setenv, xalloc.
68798
68799 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         * lib/getdate.y: Add support for TZ="foo" within a date string.
68802         Fix some bugs near time_t boundaries.  Reject dates with
68803         out-of-range components, e.g., "Sept 31".
68804         Include <stdlib.h>, "setenv.h", "xalloc.h".
68805         (ISDIGIT_LOCALE): Remove; unused.
68806         Note that the TZ and time functions used here are not reentrant.
68807         (mktime_ok, get_tz): New functions.
68808         (TZBUFSIZE): New constant.
68809         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68810         This requires that we sometimes generate our own TZ="XXX..." setting.
68811
68812 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68813
68814         * doc/getdate.texi: New file, from coreutils with modifications for
68815         the new TZ parsing.
68816
68817 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68818
68819         * lib/mktime.c (not_equal_tm): Remove redundant check.
68820
68821 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         * modules/regex (lib_SOURCES): Add regex.c.
68824         Reported by James Youngman in
68825         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68826
68827 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68828
68829         * lib/getdate.y: Use Bison 1.875 features, and some minor
68830         code cleanups.  This change does not affect semantics.
68831         Don't include <stdlib.h>; no longer needed.
68832         Don't include unlocked-io.h; only the "#if TEST" code uses
68833         stdio, and performance isn't crucial there.
68834         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68835         Bison 1.875 features as described below.
68836         All uses of "PC." replaced by "pc->".
68837         (YYSTYPE): Add a forward declaration.
68838         (yylex, yyerror): Use full prototypes in forward decls.
68839         Use "%pure-parser" rather than obsolescent "%pure_parser".
68840         Use %parse-param and %lex-param instead of obsolescent
68841         YYPARSE_PARAM and YYLEX_PARAM.
68842         (meridian_table, month_and_day_table, time_units_table,
68843         relative_time_table, time_zone_table, military_table,
68844         lookup_zone, lookup_word, get_date):
68845         Use NULL instead of 0 where appropriate.
68846         (to_hour): Avoid abort (), to avoid a dependency on
68847         stdlib.h.
68848         (yyerror, yylex): Now accepts parser_control * arg.
68849         (main) [TEST]: Use '\0' rather than 0 for char.
68850
68851 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68852
68853         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68854
68855 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68856
68857         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68858         It's now the caller's responsibility to handle the case where
68859         !HAVE_GETPAGESIZE && !defined getpagesize.
68860
68861         * lib/mktime.c (leapyear): Arg is long int, not int.
68862
68863 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68866
68867 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68870         missing.  Problem reported by James Youngman.
68871
68872 2004-10-16  Simon Josefsson  <jas@extundo.com>
68873
68874         * gnulib-tool: Fix comments.  Fix parse problem.
68875         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68876
68877 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68880         implementation of getopt_long.  Problem reported by Alexander Taler in:
68881         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68882
68883 2004-10-15  Bruno Haible  <bruno@clisp.org>
68884
68885         * gnulib-tool: Untabify. Initialize supplied_libname.
68886         (func_usage): More homogenous output.
68887         (func_modules_transitive_closure, func_modules_to_filelist,
68888         func_emit_lib_Makefile_am): New functions.
68889         (func_import): New function, extracted from big case statement. Use
68890         func_get_license, func_modules_transitive_closure,
68891         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68892         opt_lgpl. Don't use test -a, as it's not portable.
68893         (func_create_testdir): Use func_modules_transitive_closure,
68894         func_modules_to_filelist, func_emit_lib_Makefile_am.
68895
68896 2004-10-15  Bruno Haible  <bruno@clisp.org>
68897
68898         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68899
68900 2004-10-15  Bruno Haible  <bruno@clisp.org>
68901
68902         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68903         the portions belonging to each module.
68904         Suggested by Derek Robert Price <derek@ximbiot.com>.
68905
68906 2004-10-12  Simon Josefsson  <jas@extundo.com>
68907
68908         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68909         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68910         to real functions.
68911
68912 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68913
68914         * modules/vsnprintf: New file.
68915
68916 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68917
68918         * m4/vsnprintf.m4: New file.
68919
68920 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68921
68922         * lib/vsnprintf.h: New file.
68923         * lib/vsnprintf.c: New file.
68924
68925 2004-10-11  Bruno Haible  <bruno@clisp.org>
68926
68927         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68928         vsnprintf.
68929
68930 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68933
68934 2004-10-07  Bruno Haible  <bruno@clisp.org>
68935
68936         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68937         fits into the provided buffer.
68938
68939 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         * lib/diacrit.c, diacrit.h: Add GPL notice.
68942
68943         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68944         notice.
68945         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68946         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68947         This avoids a potential constant-folding bug.
68948
68949 2004-10-05  Bruno Haible  <bruno@clisp.org>
68950
68951         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68952         for the declaration of strsep.
68953
68954 2004-10-05  Bruno Haible  <bruno@clisp.org>
68955
68956         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
68957
68958 2004-10-04  Simon Josefsson  <jas@extundo.com>
68959
68960         * modules/memmem: New file.
68961         * tests/test-memmem.c: New file.
68962         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
68963
68964 2004-10-04  Simon Josefsson  <jas@extundo.com>
68965
68966         * m4/memmem.m4: New file.
68967
68968 2004-10-04  Simon Josefsson  <jas@extundo.com>
68969
68970         * lib/memmem.h: New file.
68971         * lib/memmem.c: New file, taken from glibc.
68972
68973 2004-10-04  Simon Josefsson  <jas@extundo.com>
68974
68975         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
68976         '#ifdef USE_UNLOCKED_IO'.
68977
68978 2004-10-04  Simon Josefsson  <jas@extundo.com>
68979
68980         * config/srclist.txt: Add memmem from glibc.
68981
68982 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68983
68984         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
68985
68986         * modules/argmatch, modules/argp, modules/closeout, modules/error,
68987         modules/exclude, modules/getdate, modules/getline,
68988         modules/getndelim2, modules/getpass, modules/getpass-gnu,
68989         modules/getusershell, modules/linebuffer, modules/md5,
68990         modules/mountlist, modules/posixtm, modules/readtokens,
68991         modules/readutmp, modules/regex, modules/sha1,
68992         modules/version-etc, modules/yesno:
68993         Remove dependency on unlocked-io.
68994
68995 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
68998
68999         * m4/unlocked-io.m4: Add copyright notice.
69000         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69001
69002 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69003
69004         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69005         * lib/xmalloc.c (xmemdup): Likewise.
69006         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69007         XFREE): Remove these long-obsolescent macros.
69008         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69009         * lib/xstrdup.c: Remove.
69010
69011         * lib/regex.c (re_comp): Cast gettext return value to char *,
69012         Problem reported by Martin Neitzel via Mark D. Baushke.
69013
69014 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69017         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69018         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69019         regex.c, sha1.c, version-etc.c, yesno.c:
69020         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69021         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69022         the includer's responsibility.
69023
69024         Sync from coreutils.
69025
69026         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69027         points to the start of a string, as the C Standard says the
69028         resulting behavior is undefined.
69029
69030         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69031         simple -> simple_backups, numbered_existing ->
69032         numbered_existing_backups, numbered -> numbered_backups
69033         to avoid shadowing problems.  All uses changed.
69034         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69035         * lib/backupfile.c (check_extension, numbered_backup):
69036         Rename locals to avoid shadowing 'basename'.
69037         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69038         once.
69039
69040         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69041         * lib/.cvsignore: Add getopt.h.
69042
69043 2004-10-04  Bruno Haible  <bruno@clisp.org>
69044
69045         * modules/README: New file.
69046         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69047         not a module.
69048
69049 2004-10-02  Jim Meyering  <jim@meyering.net>
69050
69051         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69052
69053 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69054
69055         * modules/strsep: New file.
69056
69057 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69058
69059         * m4/strsep.m4: New file.
69060
69061 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69062
69063         * lib/strsep.h: New file.
69064         * lib/strsep.c: New file.
69065
69066 2004-10-01  Simon Josefsson  <jas@extundo.com>
69067
69068         * lib/snprintf.c (snprintf): Handle size==0.
69069
69070 2004-10-01  Simon Josefsson  <jas@extundo.com>
69071             Bruno Haible  <bruno@clisp.org>
69072
69073         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69074         (snprintf): Declare 'args'.
69075
69076 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69077
69078         * lib/snprintf.c: Remove comments as to why each header is needed.
69079
69080 2004-10-01  Bruno Haible  <bruno@clisp.org>
69081
69082         * MODULES.html.sh: Add strsep.
69083
69084 2004-09-30  Simon Josefsson  <jas@extundo.com>
69085
69086         * modules/snprintf: New file.
69087
69088 2004-09-30  Simon Josefsson  <jas@extundo.com>
69089
69090         * m4/snprintf.m4: New file.
69091
69092 2004-09-30  Simon Josefsson  <jas@extundo.com>
69093
69094         * lib/snprintf.h, lib/snprintf.c: New files.
69095
69096 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69097
69098         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69099         (hol_entry_help): Never translate an empty string.
69100         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69101         * lib/argp.h (OPTION_NO_TRANS): New option.
69102
69103 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * modules/argp (Maintainer): Replace Simon Josefsson
69106         by Sergey Poznyakoff.
69107
69108 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69111         changes merged back into glibc.
69112
69113 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69116
69117 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69118
69119         * lib/xvasprintf.c: Include xalloc.h.
69120         (xvasprintf): Use xalloc_die, not xmalloc_die.
69121
69122 2004-09-29  Bruno Haible  <bruno@clisp.org>
69123
69124         * modules/alloca-opt: New file, derived from modules/alloca.
69125         * modules/allocsa: Depend on alloca-opt instead of alloca.
69126         * modules/setenv: Likewise.
69127         * modules/vasnprintf: Likewise.
69128         * MODULES.html.sh: Add alloca-opt.
69129
69130 2004-09-28  Simon Josefsson  <jas@extundo.com>
69131
69132         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69133         LGPL, and to replace license template from GPL to LGPL.
69134
69135 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69136
69137         * modules/dummy: Change license to LGPL.
69138
69139 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69140
69141         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69142
69143 2004-09-24  Simon Josefsson  <jas@extundo.com>
69144
69145         * modules/minmax (License): Change from GPL to LGPL.
69146
69147 2004-09-23  Simon Josefsson  <jas@extundo.com>
69148
69149         * gnulib-tool (--import): Typo.
69150
69151 2004-09-23  Simon Josefsson  <jas@extundo.com>
69152
69153         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69154
69155 2004-09-22  Bruno Haible  <bruno@clisp.org>
69156
69157         * modules/*: Add 'License' field.
69158         * gnulib-tool: Accept --extract-license option.
69159         (func_get_license): New function.
69160
69161 2004-09-21  Bruno Haible  <bruno@clisp.org>
69162
69163         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69164         Reported by Simon Josefsson.
69165
69166 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69167
69168         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69169         gl_AC_TYPE_LONG_LONG.
69170
69171 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69174
69175 2004-09-18  Simon Josefsson  <jas@extundo.com>
69176         and  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69179         calls with autoreconf.  Define GL_LIB.
69180
69181 2004-09-14  Karl Berry  <karl@gnu.org>
69182
69183         * config/srclist.txt: unsync setenv.c, sigh.
69184
69185 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69186
69187         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69188         Problem reported by Bruno Haible in:
69189         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69190
69191 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69192
69193         * config/srclist.txt: Comment out argp-pvh.c.
69194
69195 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69198         in case some system header has #define'd it.  Problem reported by
69199         Soeren D. Schulze in
69200         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69201
69202 2004-09-09  Karl Berry  <karl@gnu.org>
69203
69204         * regex.[ch]: delete from the root.  These were supposed to be
69205                 synced with emacs cvs, but this has not happened for about
69206                 a year, and anyway nothing else uses emacs regex.[ch].
69207                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69208                 lib/regex[.ch] is untouched.
69209
69210 2004-09-09  Bruno Haible  <bruno@clisp.org>
69211
69212         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69213
69214 2004-09-09  Bruno Haible  <bruno@clisp.org>
69215
69216         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69217         modifications.
69218         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69219
69220 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69221
69222         * modules/xvasprintf: New file.
69223         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69224
69225 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69226
69227         * lib/xvasprintf.h: New file.
69228         * lib/xvasprintf.c: New file.
69229         * lib/xasprintf.c: New file.
69230
69231 2004-09-08  Bruno Haible  <bruno@clisp.org>
69232
69233         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69234
69235 2004-09-08  Bruno Haible  <bruno@clisp.org>
69236
69237         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69238         length is > INT_MAX.
69239         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69240         more.
69241
69242 2004-09-08  Bruno Haible  <bruno@clisp.org>
69243
69244         * lib/stdint_.h: New file, taken from GNU clisp.
69245
69246 2004-09-08  Bruno Haible  <bruno@clisp.org>
69247             Oskar Liljeblad  <oskar@osk.mine.nu>
69248
69249         * modules/stdint: New file.
69250         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69251
69252 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69253
69254         Import from coreutils.
69255         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69256         strings on unbounded length.  alloca's performance benefits aren't
69257         that important here.
69258         (V_STRDUP): Remove.
69259         (parse_with_separator): New function, with most of the internals
69260         of the old parse_user_spec.  Allow user to omit both user and group,
69261         for compatibility with FreeBSD.
69262         Clone only the user name, not the entire spec.
69263         Do not set *uid, *gid unless entirely successful.
69264         Avoid memory leak in some failing cases.
69265         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69266         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69267         (parse_user_spec): Rewrite to use parse_with_separator.
69268
69269 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69270
69271         * modules/userspec: Don't depend on alloca.
69272
69273 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69276
69277 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69278
69279         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69280         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69281         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69282
69283 2004-08-16  Simon Josefsson  <jas@extundo.com>
69284
69285         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69286         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69287         Add --dry-run for --import.
69288         Let user provided command line parameters override configure.ac
69289         settings.
69290
69291 2004-08-12  Simon Josefsson  <jas@extundo.com>
69292
69293         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69294         as discussed with Paul Eggert in threads rooted at
69295         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69296         and
69297         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69298         Before, the test was empty, and relied on ELIDE_CODE in source
69299         code.)
69300         (gl_PREREQ_GETOPT): New macro.
69301         (gl_GETOPT): Use them.
69302
69303 2004-08-12  Simon Josefsson  <jas@extundo.com>
69304
69305         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69306         * lib/getopt_.h: Renamed from getopt.h.
69307
69308 2004-08-12  Simon Josefsson  <jas@extundo.com>
69309
69310         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69311         Change default library name from libfoo to libgnu.
69312         Now, if you have a configure.ac that says:
69313                 gl_SOURCE_BASE(gl)
69314                 gl_M4_BASE(gl/m4)
69315                 gl_MODULES(error getopt etcetera)
69316                 gl_INIT
69317         you can import all you need by running:
69318                 ../gnulib/gnulib-tool --import
69319
69320         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69321         (Makefile.am): Rewrite, use logic from argz.
69322         (Include): Use <getopt.h> instead of "getopt.h".
69323
69324 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69325
69326         * modules/argp (Files): Add m4/unlocked-io.m4.
69327         (Depends-on): Add extensions.
69328
69329 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69330
69331         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69332         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69333         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69334         Check for program_invocation_name, program_invocation_short_name,
69335         flockfile, funlockfile, features.h, _getopt_long_only_r.
69336
69337 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69340         its complicated substitute.
69341         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69342         and program_invocation_name.
69343         (__argp_basename) [!_LIBC]: Remove; the only use was
69344         replaced by its body.
69345         (__argp_short_program_name): Change condition from
69346         !defined __argp_short_program_name to
69347         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69348         to match argp-namefrob.h.
69349         (__argp_failure): Don't assume strerror_r returns char *.
69350         * lib/argp-parse.c (N_): Define unconditionally.
69351         (argp_default_options): Fill out initializers with 0 to avoid
69352         gcc warnings.
69353
69354 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69355
69356         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69357         getopt1.c.
69358
69359 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69360
69361         Merge from coreutils.
69362
69363         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69364
69365         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69366         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69367
69368 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69369
69370         Merge from coreutils.
69371
69372         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69373         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69374         for Reliant Unix 5.43.
69375
69376         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69377         (union fooround): Use uintmax_t, not long int.
69378         The rest is a merge from libc:
69379         [defined _LIBC]: Include <shlib-compat.h>.
69380         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69381
69382         * lib/settime.c (settime): Recode to avoid warning with
69383         Sun Forte C 6U2.
69384
69385         * lib/strverscmp.c: Convert to UTF-8.
69386
69387 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69390         m4/uintmax_t.m4.
69391
69392 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69393
69394         * modules/xalloc-die: New file.
69395         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69396
69397         * modules/md5 (Files): Add m4/uint32_t.m4.
69398         * modules/sha1: Renamed from modules/sha.
69399         (Files):
69400         Rename lib/sha.h to lib/sha1.h.
69401         Rename lib/sha.c to lib/sha1.c.
69402         Rename m4/sha.m4 to m4/sha1.m4.
69403         (lib_SOURCES): Likewise.
69404         (configure.ac): Rename gl_SHA to gl_SHA1.
69405         (Include): sha.h -> sha1.h.
69406
69407 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69410         * m4/sha1.m4: Renamed from sha.m4.
69411         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69412
69413 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69414
69415         * lib/obstack.h (obstack_empty_p):
69416         Don't assume that chunk->contents is suitably aligned.
69417         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69418         Likewise. Problem reported by Benno in
69419         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69420
69421         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69422         readable.  This could be improved further but it'd take some work.
69423
69424 2004-08-08  Simon Josefsson  <jas@extundo.com>
69425
69426         * modules/xgethostname (Depends-on): Remove exit and error (not
69427         used).
69428
69429         * modules/getpass-gnu: Add getpass.h.
69430         (Depends-on): Add stdbool.
69431         * modules/getpass: Add getpass.h.
69432
69433 2004-08-08  Simon Josefsson  <jas@extundo.com>
69434
69435         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69436         Check getpass declaration.
69437
69438 2004-08-08  Simon Josefsson  <jas@extundo.com>
69439
69440         * lib/xgethostname.c: Don't include error.h (not used).
69441
69442         * lib/getpass.h: Add.
69443         * lib/getpass.c: Include getpass.h first.
69444
69445 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69446
69447         * lib/xalloc-die.c: New file.
69448         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69449         All uses removed.
69450         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69451         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69452         xalloc-die.c.
69453         (_, N_, xalloc_die): Move to xalloc-die.c.
69454         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69455         so that we needn't mess with xalloc_msg_memory_exhausted.
69456
69457         * lib/sha1.h: Renamed from sha.h.
69458         (SHA1_H): Renamed from _SHA_H.
69459         (sha1_ctx): Renamed from sha_ctx.
69460         (sha1_init_ctx): Renamed from sha_init_ctx.
69461         (sha1_process_block): Renamed from sha_process_block.
69462         (sha1_process_bytes): Renamed from sha_process_bytes.
69463         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69464         (sha1_read_ctx): Renamed from sha_read_ctx.
69465         (sha1_stream): Renamed from sha_stream.
69466         (sha1_buffer): Renamed from sha_buffer.
69467         * lib/sha1.c: Likewise; renamed from sha.c.
69468         Do not include <sys/types.h>.
69469         Include <stddef.h> rather than <stdlib.h>.
69470
69471 2004-08-08  Bruno Haible  <bruno@clisp.org>
69472
69473         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69474         FILESYSTEM_PREFIX_LEN.
69475         * lib/progreloc.c: Likewise.
69476         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69477
69478 2004-08-06  Simon Josefsson  <jas@extundo.com>
69479
69480         * modules/progname (Depends-on): Don't depend on stdbool.
69481
69482 2004-08-06  Simon Josefsson  <jas@extundo.com>
69483
69484         * modules/getsubopt: New file.
69485         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69486         getsubopt.
69487
69488 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         More merge from coreutils.
69491
69492         * m4/utimens.m4, m4/utimecmp.m4: New files.
69493         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69494         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69495         prereq.m4, sha.m4: Import changes from coreutils.
69496
69497 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         More merge from coreutils.
69500         * modules/raise, modules/readtokens0, modules/utimens:
69501         * modules/utimecmp, module/xnanosleep: New files.
69502         * modules/strftime: Add lib/strftime.h.
69503         Change include from <time.h> to "strftime.h".
69504         * modules/yesno: Add lib/yesno.h.
69505         * modules/backupfile: Remove lib/addext.c.
69506         * modules/euidaccess: Add stat-macros.h.
69507         * modules/canonicalize, modules/euidaccess,
69508         modules/filemode, modules/lchown, modules/makepath,
69509         modules/rmdir, modules/stat: Likewise.
69510
69511 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         Merge from tar.
69514         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69515         SIZE_MAX is a valid preprocessor constant.
69516         (__argp_basename): Change from "#ifndef _LIBC"
69517         to "#ifndef __argp_short_program_name", so that
69518         we don't compile these functions for tar.
69519
69520         More merges from coreutils.
69521         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69522         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69523         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69524         * lib/addext.c: Remove; no longer needed.
69525         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69526         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69527         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69528         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69529         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69530         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69531         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69532         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69533         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69534         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69535         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69536         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69537         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69538         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69539         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69540         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69541         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69542         Import changes from coreutils.
69543
69544 2004-08-05  Simon Josefsson  <jas@extundo.com>
69545
69546         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69547
69548 2004-08-05  Simon Josefsson  <jas@extundo.com>
69549
69550         * m4/getsubopt.m4: New file.
69551
69552 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69553
69554         Merge from coreutils.
69555
69556         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69557         * m4/getcwd-path-max.m4: New files.
69558
69559         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69560         FILESYSTEM_PREFIX_LEN ->
69561         FILE_SYSTEM_PREFIX_LEN.
69562         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69563         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69564         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69565         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69566
69567         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69568         prerequisite modules now handle the DOS stuff.
69569         Don't check for unistd.h.
69570
69571 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69572
69573         Merge from coreutils.
69574
69575         * lib/.gdb-history: Remove; this doesn't belong here.
69576
69577         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69578         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69579         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69580         * lib/getcwd.c: New files.
69581
69582         * lib/dirname.h: Include <stdbool.h>.
69583         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69584         for consistency with POSIX terminology.  All uses changed.
69585         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69586         (strip_trailing_slashes): Use bool for booleans.
69587         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69588
69589         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69590         sometimes returns a positive errno value even when it succeeds.
69591         (print_errno_message) [!LIBC]: Fall back on strerror if
69592         __strerror_r fails.
69593
69594         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69595         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69596         (longest_relative_suffix): New function.
69597         (path_concat): Use it.  Assume first argument is not NULL.
69598         Port to DOS.  Omit redundant separators.
69599         Report an error instead of returning NULL.
69600         Use mempcpy instead of memcpy.
69601         (xpath_concat): Remove: not declared or used.
69602
69603         * lib/same.h: Include <stdbool.h>
69604         (same_name): Return bool, not int.
69605         * lib/same.c (same_name): Likewise.
69606         (errno): Don't declare; we assume C89 or better now.
69607
69608         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69609         if not already defined.
69610
69611         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69612         * lib/dup-safer.c (errno): Likewise.
69613
69614 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         Merge from coreutils.
69617         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69618         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69619         * modules/path-concat: Don't depend on strdup.
69620
69621 2004-08-03  Simon Josefsson  <jas@extundo.com>
69622
69623         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69624         * lib/progname.h: Don't include stdbool.h.
69625
69626 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69629         * MODULES.html.sh (func_all_modules): Remove fatal.
69630
69631 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69632
69633         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69634
69635 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69638         working.
69639
69640 2004-08-02  Simon Josefsson  <jas@extundo.com>
69641
69642         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69643         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69644         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69645
69646 2004-08-01  Simon Josefsson  <jas@extundo.com>
69647
69648         * lib/xgetdomainname.c: Include stdlib.h, for free().
69649
69650 2004-07-19  Bruno Haible  <bruno@clisp.org>
69651
69652         * MODULES.html.sh (func_all_modules): Add dummy.
69653
69654 2004-07-16  Simon Josefsson  <jas@extundo.com>
69655
69656         * modules/dummy: New file.
69657
69658 2004-07-16  Simon Josefsson  <jas@extundo.com>
69659
69660         * lib/dummy.c: New file.
69661
69662 2004-07-16  Bruno Haible  <bruno@clisp.org>
69663
69664         * lib/backupfile.h: Add extern "C" for C++.
69665         * lib/closeout.h: Likewise.
69666         * lib/copy-file.h: Likewise.
69667         * lib/findprog.h: Likewise.
69668         * lib/full-write.h: Likewise.
69669         * lib/pathname.h: Likewise.
69670         * lib/progname.h: Likewise.
69671         * lib/stpcpy.h: Likewise.
69672         * lib/stpncpy.h: Likewise.
69673         * lib/strcase.h: Likewise.
69674         * lib/strstr.h: Likewise.
69675         * lib/xalloc.h: Likewise.
69676
69677         * lib/mbswidth.h: Add extern "C" for C++.
69678         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69679
69680 2004-07-13  Robert Millan  <robertmh@gnu.org>
69681
69682         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69683
69684 2004-07-09  Simon Josefsson  <jas@extundo.com>
69685
69686         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69687         failed without this.)
69688
69689 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * modules/chown (Files): Add lib/fchown-stub.c, since
69692         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69693
69694 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69695
69696         * lib/fchown-stub.c: New file.
69697
69698 2004-06-24  Jim Meyering  <jim@meyering.net>
69699
69700         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69701
69702 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69703
69704         * modules/argz: Omit "#include".
69705
69706         * MODULES.html.sh (func_all_modules): Add calloc, to match
69707         2004-06-01 addition of calloc module.
69708
69709 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * m4/argz.m4: New file, which is autoupdated from libtool.
69712
69713 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69716         libtool.
69717
69718 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69719
69720         * config/srclist-update: Don't insist on "USA." before the
69721         close-comment, as libtool omits the period and puts the */ on a
69722         separate line.
69723         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69724         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69725
69726 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69727
69728         * modules/argz: New file.
69729         * MODULES.html.sh (func_all_modules): Add argz.
69730
69731 2004-06-12  Jim Meyering  <jim@meyering.net>
69732         and  Paul Eggert  <eggert@cs.ucla.edu>
69733
69734         * modules/hash (Files): Add lib/xalloc.h.
69735         * modules/pipe (Depends-on): Add wait-process.
69736         * modules/stat (Depends-on): Add xalloc.
69737         * modules/userspec (Files): Add lib/userspec.h.
69738         * modules/xstrto
69739
69740         Upgrade from gettext-0.13.
69741         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69742         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69743         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69744
69745 2004-06-10  Jim Meyering  <jim@meyering.net>
69746
69747         * lib/calloc.c: New file.
69748
69749 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * lib/getdate.y (yylex): Allow space between sign and number.
69752         Problem reported by Dan Jacobson.
69753
69754 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         Merge from coreutils CVS.
69757
69758         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69759         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69760         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69761         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69762         xstrtol.m4: Fix copyright date and/or serial number.
69763
69764         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69765         See if we need an fchown replacement.
69766         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69767         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69768         and use the replacement function if we detect either defect.
69769
69770         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69771         gl_UTIMECMP.
69772
69773 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69774         and  Jim Meyering  <jim@meyering.net>
69775
69776         Merge from coreutils CVS.
69777
69778         * lib/stat-macros.h: New file, with contents from file-type.h
69779         and coreutils' system.h.
69780         * lib/file-type.c: Include "stat-macros.h".
69781         * lib/file-type.h (file_type): Move all macro definitions to new file,
69782         stat-macros.h.
69783
69784         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69785         Wrap old code with this conditional.
69786         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69787         function that does not dereference symlinks.
69788         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69789
69790         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69791         dependency problems.
69792         (xreadlink): Accept new arg SIZE, for efficiency.
69793         All decls and uses changed.
69794         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69795
69796         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69797         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69798
69799         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69800         sysexits.h.
69801
69802 2004-06-01  Jim Meyering  <jim@meyering.net>
69803
69804         * m4/calloc.m4: New file.
69805
69806 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69807
69808         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69809         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69810         Also, fix a typo in a diagnostic.
69811
69812 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69813
69814         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69815         or AC_FUNC_REALLOC.
69816
69817 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69820         macros to be defined.
69821         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69822         the allocator returns NULL because the requested size is zero.
69823
69824 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69827         var.  Add comment explaining why libc still defines it.  This
69828         merges the following patch from glibc:
69829         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69830
69831 2004-05-20  Andreas Schwab  <schwab@suse.de>
69832
69833         * m4/free.m4: Replace free if it not known to work, not the other
69834         way round.
69835
69836 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69837
69838         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69839         present in glibc since revision 1.1 of this file.
69840         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69841         obstack_alignment_mask, obstack_alloc, obstack_base,
69842         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69843         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69844         obstack_grow0, obstack_init, obstack_int_grow,
69845         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69846         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69847         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69848         nonexistent functions.
69849
69850 2004-05-18  Karl Berry  <karl@gnu.org>
69851
69852         * config/srclist.txt: break link for vasnprintf.c.
69853
69854 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69855
69856         Port obstack to the AS/400, where pointers are 16 bytes wide and
69857         you cannot cast an integer to a valid pointer.  This patch is
69858         currently waiting to be integrated into glibc; see
69859         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69860
69861         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69862         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69863         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69864         (struct obstack): temp member is now a union of a pointer and
69865         an integer, instead of an integer.  All integer uses changed.
69866         This does not affect the physical layout of struct obstack,
69867         except on hosts (like the AS/400) where the size or alignment of
69868         void * is greater than that of ptrdiff_t.
69869         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69870         __STDC__)]: Store temporary in pointer member of union, not
69871         integer member.
69872         * lib/obstack.c: Include <stddef.h>, for offsetof.
69873         (struct fooalign): Remove; it doesn't need a name.
69874         (union fooround): Change double to long double, and add void *.
69875         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69876         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69877         not a macro.  Hence the values are always int; so remove all
69878         casts-to-int in uses.
69879
69880 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69881
69882         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69883         we can get this patch merged into glibc.
69884
69885 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69886             Paul Eggert  <eggert@cs.ucla.edu>
69887
69888         * m4/argp: Depend on alloca.
69889
69890 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69891             Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69894         freecoding.
69895
69896 2004-05-17  Bruno Haible  <bruno@clisp.org>
69897
69898         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69899         precision that consists of a '.' followed by an empty digit string.
69900         Patch by Tor Lillqvist <tml@iki.fi>.
69901
69902 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69905         for backward compatibility with older code.  We need our own
69906         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69907         it under some other name, and our alloca.h will define it.
69908
69909 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69910             Derek Price  <derek@ximbiot.com>
69911
69912         * lib/alloca.c: Include <alloca.h>, to get our interface.
69913         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69914         include <alloca.h> first.  Use C89 prototype for alloca; this
69915         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69916         Use #elif for simplicity, since we can assume C89 now.
69917         Don't try to source the system alloca.h since it will not be found
69918         and to prevent recursively including its replacement.
69919         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69920         * lib/regex.c: Likewise.
69921
69922 2004-05-16  Derek Price  <derek@ximbiot.com>
69923             Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         getline cleanup.  This changes the getndelim2 API: both order of
69926         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69927         no delimiter).
69928
69929         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69930         interface does that.
69931         (getline): Always use getdelim, so that we don't have two
69932         copies of this code.
69933         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69934         if available.
69935         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69936         (GETNDELIM2_MAXIMUM): New macro.
69937         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69938         instead of the old practice of delim2==0.  All callers changed.
69939         Return -1 on overflow, instead of returning junk.
69940         Do not set *linesize unless allocation succeeds.
69941         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69942         that we include sys/types.h.
69943         * lib/getnline.h: Likewise.
69944         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69945         (getndelim2): Reorder arguments.
69946         * lib/getnline.c (getnline, getndelim):
69947         Don't discard the NMAX argument.
69948         (getnline): Invoke getndelim, to avoid code duplication.
69949         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69950         of (size_t) -1 by callers of the getnline family.
69951
69952 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69953
69954         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
69955         Check for gettimeofday.
69956         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
69957         Check for settimeofday, stime.
69958
69959 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * lib/nanosleep.c (suspended): Change its type from int to
69962         sig_atomic_t volatile.
69963         (first_call): Make it private to rpl_nanosleep, and have it
69964         be zero initially as that's a bit faster.
69965         (my_usleep): Round up fractional times instead of truncating them,
69966         as this is the usual meaning for 'sleep'.
69967
69968         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
69969         doesn't work.
69970         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
69971         (ENOSYS): Define if not defined.
69972         (settime): Fall back on stime if it exists and settimeofday fails.
69973         But don't bother with fallbacks if a method fails with errno == EPERM.
69974
69975 2004-05-11  Jim Meyering  <jim@meyering.net>
69976
69977         Prior to this change, the save_cwd caller required read access to the
69978         current directory on most systems (ones with the fchdir function).
69979
69980         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
69981         fails, try write-only, and finally, resort to using xgetcwd.
69982
69983 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * lib/obstack.c, obstack.h: Import changes from libc.
69986
69987 2004-04-28  Bruno Haible  <bruno@clisp.org>
69988
69989         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
69990         also implicitly appends .exe to executables.
69991         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
69992         accepts Windows pathnames.
69993         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69994         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69995         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69996         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69997         Reported by Derek Robert Price <derek@ximbiot.com>.
69998
69999 2004-04-21  Karl Berry  <karl@gnu.org>
70000
70001         * config/srclist.txt (localcharset.c): break sync.
70002
70003 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70004
70005         * m4/host-os.m4: Add a copyright notice.
70006
70007 2004-04-20  Jim Meyering  <jim@meyering.net>
70008
70009         Change UTILS_ to gl_ in AC_DEFINE'd names.
70010         Change utils_- and jm_-prefixed variables, too.
70011         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70012         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70014
70015         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70016         Don't emit trailing blanks.
70017         Also rename jm_-prefixed variables to have gl_ prefix.
70018
70019         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70020         Also rename jm_-prefixed variables to have gl_ prefix.
70021
70022         * m4/jm-macros.m4: Reflect the renamings.
70023         * m4/prereq.m4: Likewise.
70024
70025 2004-04-20  Jim Meyering  <jim@meyering.net>
70026
70027         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70028         memory.
70029
70030 2004-04-20  Jim Meyering  <jim@meyering.net>
70031             Bruno Haible  <bruno@clisp.org>
70032
70033         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70034         memory when realloc fails.
70035
70036 2004-04-19  Jim Meyering  <jim@meyering.net>
70037
70038         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70039         now that readutmp.c may call `free (0)'.
70040
70041 2004-04-19  Bruno Haible  <bruno@clisp.org>
70042
70043         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70044         * m4/inttypes_h.m4: Likewise.
70045         * m4/stdint_h.m4: Likewise.
70046         * m4/intmax_t.m4: Likewise.
70047         * m4/uintmax_t.m4: Likewise.
70048
70049 2004-04-18  Jim Meyering  <jim@meyering.net>
70050
70051         * m4/prereq.m4: Don't forbid jm_ prefix.
70052
70053         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70054         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70055         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70056         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70057         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70058         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70059         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70060         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70061         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70062         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70063         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70064         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70065         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70066         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70067         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70068         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70069         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70070         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70071         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70072
70073 2004-04-18  Jim Meyering  <jim@meyering.net>
70074
70075         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70076         failure, don't leak memory and do call END_UTMP_ENT.
70077
70078 2004-04-16  Jim Meyering  <jim@meyering.net>
70079
70080         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70081         coreutils' stat program.
70082         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70083
70084 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70085
70086         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70087         C89.
70088         (CHAR_BIT): Remove, since we assume C89.
70089         Include <stdint.h> if available, as per current Autoconf CVS advice.
70090
70091 2004-03-31  Jim Meyering  <jim@meyering.net>
70092
70093         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70094         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70095         * m4/xalloc.m4: Likewise.
70096
70097 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70098
70099         Merge from coreutils.
70100
70101         * m4/inttostr.m4: New file.
70102         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70103         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70104         Require gl_CLOCK_TIME.
70105         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70106
70107 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70108
70109         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70110         not bool, to be more consistent with Unix conventions.
70111         Suggested by Bruno Haible.
70112
70113         Merge from coreutils.
70114
70115         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70116         * lib/umaxtostr.c: New files.
70117
70118         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70119         the usual <time.h> dance.
70120         (get_date): Change signature to support fractional time stamps.
70121         All callers changed.
70122         * lib/getdate.y: Include "getdate.h" first, as we can now
70123         assume C89 and don't need to worry about 'const'.
70124         Similarly, include "unlocked-io.h" near start, not in middle.
70125         Include <limits.h>.
70126         (textint.value): Use long int rather than int.
70127         (textint.digits): Use size_t rather than int.
70128         (BILLION, LOG10_BILLION): New constants.
70129         (parser_control): New member rel_ns.  Members day_ordinal,
70130         time_zone, month, day, hour, minutes, rel_year, rel_month,
70131         rel_day, rel_hour, rel_minutes, rel_seconds
70132         are now long int, not int.  Member seconds is now struct timespec,
70133         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70134         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70135         not int.
70136         (%union.intval): Now long int, not int.
70137         New member timespec.
70138         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70139         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70140         (spec): Now is a timespec or an item list.
70141         (timespec, items): New nonterminals.
70142         (time, rel, relunit, number, get_date):
70143         Add support for fractional seconds.
70144         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70145         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70146         (to_hour): First arg is now long int, not int.
70147         (to_year): Returns long int, not int.
70148         Don't treat year -70 like 70.
70149         (tm_diff): Returns long int, not int.
70150         (lookup_word): Use bool instead of int when appropriate.
70151         (yylex): Use size_t for count, not int.
70152         Detect overflow when parsing large integer constants.
70153         Add support for fractions.
70154         (get_date): Make pointers 'const' if possible.
70155         Use more-portable code to detect integer overflow.
70156         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70157         Don't use ctime; it's not reliable if the year has >4 digits.
70158
70159         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70160         This is for compatibility with BSD.
70161
70162         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70163         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70164         From coreutils' system.h.
70165
70166         * lib/userspec.c: Don't include "posixver.h".
70167         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70168         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70169         compatible extension.  Simplify code by removing a boolean int
70170         that was always nonzero if a string was nonnull.
70171
70172 2004-03-30  Jim Meyering  <jim@meyering.net>
70173
70174         Merge from coreutils.
70175
70176         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70177         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70178         on some systems one must include <grp.h> before it.
70179         Reported by Christian Krackowizer.
70180
70181 2004-03-30  Jim Meyering  <jim@meyering.net>
70182
70183         Merge from coreutils.
70184
70185         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70186
70187         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70188         an empty input stream.
70189
70190         * lib/readtokens.c: Include <stdbool.h>.
70191         (readtoken): Use `size_t' rather than int/long.
70192         All callers adjusted.
70193         Use `bool' rather than `int' where appropriate.
70194         Use memset rather than an explicit loop.
70195         Use x2nrealloc rather than xrealloc.
70196         Allow the use of `\0' as a delimiter.
70197         (readtokens): Likewise.
70198         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70199
70200 2004-03-30  Jim Meyering  <jim@meyering.net>
70201
70202         * m4/realloc.m4: Remove file, since now it does no more than
70203         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70204         the `configure.ac' section of module/realloc.
70205         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70206
70207 2004-03-30  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70210         nonnull.
70211
70212 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70213
70214         Merge changes to getloadavg.c from coreutils and Emacs.
70215
70216         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70217         Define to an expression, not to the empty string.
70218         Include cloexec.h and xalloc.h.
70219         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70220         Use set_cloexec_flag rather than rolling our own.
70221         * lib/cloexec.c, lib/cloexec.h: New files.
70222
70223 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70224
70225         * m4/cloexec.m4: New file.
70226
70227 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70228
70229         * lib/getopt.h: Sync with libc CVS.
70230
70231 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70232             Bruno Haible  <bruno@clisp.org>
70233
70234         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70235         mbswidth.
70236
70237 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70238             Bruno Haible  <bruno@clisp.org>
70239
70240         * lib/mbswidth.h: Include <wchar.h> only if
70241         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70242         <wchar.h>.
70243         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70244
70245 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70246
70247         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70248         Sync with libc CVS.
70249         * lib/getopt_int.h: New file, also synced from libc.
70250
70251 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70252
70253         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70254         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70255         Bring back getopt.c, getopt.h, getopt1.c.
70256
70257 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70258
70259         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70260         All uses changed.  Check for sa_sigaction member; this fixes
70261         a bug first reported by Jason Andrade in
70262         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70263
70264 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70265
70266         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70267         '#if' expressions.  Unlike the code it replaces, it does not
70268         depend on (defined _SC_PAGESIZE).  However, it does depend on
70269         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70270         first reported by Jason Andrade in
70271         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70272
70273 2004-02-25  Simon Josefsson  <jas@extundo.com>
70274
70275         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70276
70277 2004-02-25  Simon Josefsson  <jas@extundo.com>
70278
70279         * lib/strdup.h: New file.
70280         * lib/strdup.c: Include it.
70281         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70282         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70283
70284 2004-02-23  Karl Berry  <karl@gnu.org>
70285
70286         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70287         (from fencepost.gnu.org:/gd/gnuorg).
70288
70289 2004-02-23  Karl Berry  <karl@gnu.org>
70290
70291         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70292         * config/srclist.txt: add maintain/standards documents.
70293
70294 2004-02-18  Bruno Haible  <bruno@clisp.org>
70295
70296         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70297         Reported by Derek Robert Price <derek@ximbiot.com>.
70298
70299 2004-02-16  Karl Berry  <karl@gnu.org>
70300
70301         * config/mkinstalldirs, install-sh: update from automake.
70302
70303 2004-02-06  Karl Berry  <karl@gnu.org>
70304
70305         * m4/po.m4: update from gettext 0.14.1.
70306
70307 2004-02-06  Karl Berry  <karl@gnu.org>
70308
70309         * lib/config.charset: update from gettext 0.14.1.
70310
70311 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70312
70313         Add comments and code, prompted by suggestions from Bruno Haible
70314         for sh-quote.
70315         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70316         describing the enum quoting_style values.
70317         * lib/quotearg.c (quotearg_alloc): New function.
70318         (quotearg_buffer_restyled): Treat lone { and } as special.
70319         Treat = as special.  Work around bug with older shells
70320         that "see" a '\' that is really the 2nd byte of a multibyte char.
70321         Quote empty string with shell_quoting_style.
70322
70323 2004-02-03  Bruno Haible  <bruno@clisp.org>
70324
70325         * m4/pipe.m4: New file, from GNU gettext.
70326
70327 2004-02-03  Bruno Haible  <bruno@clisp.org>
70328
70329         * lib/pipe.h: New file, from GNU gettext.
70330         * lib/pipe.c: New file, from GNU gettext.
70331
70332 2004-01-27  Bruno Haible  <bruno@clisp.org>
70333
70334         * m4/execute.m4: New file, from GNU gettext.
70335
70336 2004-01-27  Bruno Haible  <bruno@clisp.org>
70337
70338         * lib/execute.h: New file, from GNU gettext.
70339         * lib/execute.c: New file, from GNU gettext.
70340         * lib/w32spawn.h: New file, from GNU gettext.
70341
70342 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70343
70344         Merge from diffutils.
70345
70346         * lib/file-type.c (file_type): Add typed memory objects.
70347         * lib/file-type.h (S_TYPEISTMO): New macro.
70348
70349         * lib/c-stack.h (c_stack_action): Remove argv argument.
70350         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70351         (die): Don't calculate message unless segv_action returns.
70352         (get_stack_location, min_address_from_argv, max_address_from_argv,
70353         volatile stack_base, volatile_stack_size): Remove.
70354         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70355         that every segmentation violation is a stack overflow.  (Ouch!)
70356         See Debian bug 136249 (still outstanding) for more info about why
70357         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70358
70359 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70360
70361         Exit-status fix from coreutils.
70362
70363         Use exit_failure consistently in place of EXIT_FAILURE,
70364         so that program exit statuses are consistent on failure.
70365
70366         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70367         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70368         * lib/argmatch.h: Comment fix to match the above.
70369         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70370         Now a macro referring to exit_failure, instead of a separate
70371         variable.  Include "exitfail.h" to get it.
70372         * lib/xstrtol.h: Include "exitfail.h".
70373         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70374
70375         * lib/long-options.c (parse_long_options): Use prototype
70376         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70377         for clarity.
70378
70379 2004-01-21  Jim Meyering  <jim@meyering.net>
70380
70381         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70382         so as not to conflict with a different-sized __mktime_internal
70383         function in GNU libc.
70384         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70385         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70386
70387 2004-01-20  Karl Berry  <karl@gnu.org>
70388
70389         * config/config.guess: update from config.
70390
70391         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70392
70393 2004-01-20  Bruno Haible  <bruno@clisp.org>
70394
70395         Safer stack allocation.
70396         * lib/setenv.c: Include allocsa.h.
70397         (alloca): Remove fallback definition.
70398         (freea): Remove macro.
70399         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70400         instead of freea.
70401
70402 2004-01-20  Bruno Haible  <bruno@clisp.org>
70403
70404         * m4/eealloc.m4: New file, from GNU gettext.
70405
70406 2004-01-20  Bruno Haible  <bruno@clisp.org>
70407
70408         * m4/allocsa.m4: New file, from GNU gettext.
70409
70410 2004-01-20  Bruno Haible  <bruno@clisp.org>
70411
70412         * lib/xallocsa.h: New file, from GNU gettext.
70413         * lib/xallocsa.c: New file, from GNU gettext.
70414
70415 2004-01-20  Bruno Haible  <bruno@clisp.org>
70416
70417         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70418
70419 2004-01-20  Bruno Haible  <bruno@clisp.org>
70420
70421         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70422         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70423         specially.
70424
70425 2004-01-20  Bruno Haible  <bruno@clisp.org>
70426
70427         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70428         patch.
70429
70430 2004-01-20  Bruno Haible  <bruno@clisp.org>
70431
70432         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70433
70434 2004-01-20  Bruno Haible  <bruno@clisp.org>
70435
70436         * lib/eealloc.h: New file.
70437
70438 2004-01-20  Bruno Haible  <bruno@clisp.org>
70439
70440         * lib/binary-io.h: Avoid warnings on Cygwin.
70441
70442 2004-01-20  Bruno Haible  <bruno@clisp.org>
70443
70444         * lib/allocsa.h: New file, from GNU gettext.
70445         * lib/allocsa.c: New file, from GNU gettext.
70446
70447 2004-01-18  Karl Berry  <karl@gnu.org>
70448
70449         * doc/gpl.texi, doc/lgpl.texi: new files.
70450
70451 2004-01-18  Karl Berry  <karl@gnu.org>
70452
70453         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70454         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70455
70456 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70457
70458         Merge from coreutils.
70459
70460         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70461         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70462         (gl_DEFAULT_POSIX2_VERSION): Move
70463         the documentation from 'configure' into 'config.hin',
70464         so that 'configure --help' isn't burdened by it and
70465         we don't have to worry about its formatting there.
70466         Reword the documentation so that it's more succinct
70467         and can be run together into a single paragraph.
70468         * m4/same.m4 (gl_SAME): Check for pathconf.
70469
70470 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70471
70472         Merge from coreutils.
70473
70474         * lib/posixver.c: Include posixver.h.
70475
70476         * lib/same.c: Include <stdbool.h>, <limits.h>.
70477         (_POSIX_NAME_MAX): Define if not defined.
70478         (MIN): New macro.
70479         (same_name): If file names are silently truncated, report
70480         that the file names are the same if they are the same after
70481         the silent truncation.
70482
70483         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70484         conversion function.
70485         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70486         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70487         longer needed.
70488
70489 2004-01-15  Jim Meyering  <jim@meyering.net>
70490
70491         Merge from coreutils.
70492
70493         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70494         if no library is required.
70495         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70496         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70497         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70498         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70499         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70500         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70501         value, $ac_cv_search_crypt, if it's "none required".
70502         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70503         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70504         not gl_FUNC_GETLOADAVG.
70505         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70506         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70507
70508 2004-01-15  Jim Meyering  <jim@meyering.net>
70509
70510         Merge from coreutils.
70511
70512         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70513         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70514         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70515
70516         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70517         optional configure-time default.
70518
70519         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70520
70521         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70522
70523 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70524
70525         Merge from coreutils.
70526
70527         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70528         value, $ac_cv_search_nanosleep, if it's "none required".
70529
70530 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70531
70532         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70533         with like-named macro in fnmatch.c.
70534         (EXT): Use an internal constant instead.
70535
70536         Merge fnmatch patches from glibc.
70537         * lib/fnmatch.c (mbsinit): Remove define.
70538         Add libc_hidden_ver (__fnmatch, fnmatch).
70539         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70540         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70541
70542 2004-01-14  Karl Berry  <karl@gnu.org>
70543
70544         * config/install-sh: update from automake.
70545
70546 2004-01-13  Karl Berry  <karl@gnu.org>
70547
70548         * config/install-sh: update from automake.
70549
70550 2004-01-09  Karl Berry  <karl@gnu.org>
70551
70552         * config/install-sh: update from automake.
70553
70554 2004-01-05  Karl Berry  <karl@gnu.org>
70555
70556         * config/config.{sub,guess}: update from config.
70557
70558 2003-12-31  Karl Berry  <karl@gnu.org>
70559
70560         * config/depcomp: update from automake.
70561
70562 2003-12-14  Karl Berry  <karl@gnu.org>
70563
70564         * lib/config.charset: update from gettext-runtime.
70565
70566 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70567
70568         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70569         Bug reported by Alfred M. Szmidt.
70570
70571 2003-12-03  Bruno Haible  <bruno@clisp.org>
70572
70573         * m4/gettext.m4: Upgrade from gettext-0.13.
70574         * m4/po.m4: Upgrade from gettext-0.13.
70575         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70576         * m4/intmax.m4: New file, from gettext-0.13.
70577         * m4/printf-posix.m4: New file, from gettext-0.13.
70578
70579 2003-11-29  Karl Berry  <karl@gnu.org>
70580
70581         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70582
70583 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70584             Bruno Haible  <bruno@clisp.org>
70585
70586         * lib/printf-parse.h: Don't include sys/types.h.
70587         (ARG_NONE): New macro.
70588         (char_directive): Change type of *arg_index fields to size_t.
70589         * lib/printf-parse.c: Don't include sys/types.h.
70590         (SSIZE_MAX): Remove macro.
70591         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70592         Remove unnecessary overflow check.
70593         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70594         fields.
70595
70596 2003-11-25  Bruno Haible  <bruno@clisp.org>
70597
70598         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70599
70600 2003-11-25  Bruno Haible  <bruno@clisp.org>
70601
70602         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70603         gt_TYPE_SSIZE_T.
70604
70605 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70606
70607         * modules/alloca: Remove dependency on xalloc.
70608
70609 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70610
70611         * lib/alloca.c: Remove dependency on xalloc module.
70612         (xalloc_die): Remove.
70613         (memory_full) [!defined emacs]: New macro.
70614         [!defined emacs]: Don't include xalloc.h.
70615         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70616         address arithmetic overflows.  Change datatypes a bit to avoid
70617         unnecessary casts.
70618
70619 2003-11-22  Jim Meyering  <jim@meyering.net>
70620
70621         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70622         s/size/size_t/.
70623
70624 2003-11-21  Karl Berry  <karl@gnu.org>
70625
70626         * config/config.{sub,guess}: update from config.
70627
70628 2003-11-18  Karl Berry  <karl@gnu.org>
70629
70630         * config/config.{sub,guess}: update from config.
70631
70632         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70633
70634 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70635
70636         * README: Mention that S+T cannot overflow if S is the size of
70637         an existing object and T is sufficiently small.
70638
70639 2003-11-17  Jim Meyering  <jim@meyering.net>
70640
70641         On systems without utime and without a utimes function capable of
70642         dealing with a NULL struct utimbuf* argument, this utime replacement
70643         could -- in unusual circumstances -- leak a file descriptor.
70644         * lib/utime.c: Include <unistd.h> and <errno.h>.
70645         (utime_null): Be sure to close `fd' and to preserve errno.
70646         Reported by Geoff Collyer via Arnold Robbins.
70647
70648 2003-11-17  Bruno Haible  <bruno@clisp.org>
70649
70650         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70651         (Depends-on): Add xsize.
70652
70653 2003-11-17  Bruno Haible  <bruno@clisp.org>
70654
70655         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70656
70657 2003-11-17  Bruno Haible  <bruno@clisp.org>
70658
70659         * lib/vasnprintf.c (alloca): Remove fallback definition.
70660         (freea): Remove definition.
70661         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70662         Reported by Paul Eggert.
70663
70664 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70665             Bruno Haible  <bruno@clisp.org>
70666
70667         Protect against address arithmetic overflow.
70668         * lib/printf-args.h: Include stddef.h.
70669         (arguments): Change type of field 'count' to size_t.
70670         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70671         'unsigned int' where appropriate.
70672         * lib/printf-parse.h: Include sys/types.h.
70673         (char_directive): Change type of *arg_index fields to ssize_t.
70674         (char_directives): Change type of fields 'count', max_*_length to
70675         size_t.
70676         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70677         (SSIZE_MAX): Define fallback value.
70678         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70679         instead of 'int' where appropriate. Check a_allocated, d_allocated
70680         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70681         * lib/vasnprintf.c: Include xsize.h.
70682         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70683         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70684         overflow. Avoid wraparound when converting a width or precision from
70685         decimal to binary.
70686
70687 2003-11-16  Bruno Haible  <bruno@clisp.org>
70688
70689         Update from GNU gettext.
70690         * lib/printf-parse.c: Generalize to it can be compiled for wide
70691         strings.
70692         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70693         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70694         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70695         SNPRINTF): New macros.
70696         Don't include <alloca.h> if the file is used inside libintl.
70697         (local_wcslen): New function, for Solaris 2.5.1.
70698         (VASNPRINTF): Use it instead of wcslen.
70699
70700 2003-11-16  Bruno Haible  <bruno@clisp.org>
70701
70702         * lib/xsize.h (xmax): New function.
70703         (xsum, xsum3, xsum4): Declare as "pure" functions.
70704
70705 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70706
70707         * modules/xalloc (Files): Undo latest change, since xalloc.h
70708         no longer needs SIZE_MAX or PTRDIFF_MAX.
70709
70710 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70711
70712         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70713         gl_PTRDIFF_MAX.
70714
70715 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70716
70717         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70718         "return", to pacify some unknown compiler.  Problem reported
70719         by Joerg Schilling.
70720
70721 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70722
70723         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70724         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70725         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70726         heuristic is just as accurate as far as we know, and it removes a
70727         dependency on size_max.m4 and ptrdiff_max.m4.
70728
70729 2003-11-11  Bruno Haible  <bruno@clisp.org>
70730
70731         * modules/xsize (Files): Add m4/size_max.m4.
70732         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70733
70734 2003-11-11  Bruno Haible  <bruno@clisp.org>
70735
70736         * m4/size_max.m4: New file.
70737         * m4/ptrdiff_max.m4: New file.
70738         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70739         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70740         (gl_XALLOC): Invoke it.
70741
70742 2003-11-11  Bruno Haible  <bruno@clisp.org>
70743
70744         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70745         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70746         defined.
70747
70748 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70749
70750         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70751         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70752         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70753         From Bruno Haible.
70754         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70755         not (size_t) -1, since it's defined here.
70756
70757 2003-11-09  Karl Berry  <karl@gnu.org>
70758
70759         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70760
70761 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70762
70763         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70764         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70765         Reject sizes of exactly SIZE_MAX bytes.
70766         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70767         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70768
70769 2003-11-05  Bruno Haible  <bruno@clisp.org>
70770
70771         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70772         SIZE_MAX defined in <limits.h> on Solaris.
70773
70774 2003-11-04  Jim Meyering  <jim@meyering.net>
70775
70776         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70777         variable names, rather than @VAR@.
70778         * modules/poll: Likewise.
70779
70780 2003-11-04  Bruno Haible  <bruno@clisp.org>
70781
70782         * modules/xsize: New file.
70783         * modules/linebreak: Depend on xsize.
70784         * MODULES.html.sh (func_all_modules): Add xsize.
70785
70786 2003-11-04  Bruno Haible  <bruno@clisp.org>
70787
70788         * m4/xsize.m4: New file.
70789
70790 2003-11-04  Bruno Haible  <bruno@clisp.org>
70791
70792         * lib/xsize.h: New file.
70793         * lib/linebreak.c: Include xsize.h.
70794         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70795         argument for overflow.
70796         Suggested by Paul Eggert.
70797
70798 2003-11-03  Karl Berry  <karl@gnu.org>
70799
70800         * config/config.{guess,sub}: update from config.
70801
70802 2003-11-03  Jim Meyering  <jim@meyering.net>
70803
70804         * modules/userspec (lib_SOURCES): Add userspec.h.
70805         (Include): Add "userspec.h".
70806         Improve description.
70807
70808 2003-11-03  Jim Meyering  <jim@meyering.net>
70809
70810         * lib/userspec.c: Include "userspec.h".
70811         * lib/userspec.h: New file.
70812
70813 2003-11-03  Bruno Haible  <bruno@clisp.org>
70814
70815         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70816
70817 2003-11-03  Bruno Haible  <bruno@clisp.org>
70818
70819         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70820         available, to avoid (extremely rare) race condition.
70821         Suggested by Paul Eggert.
70822
70823 2003-11-02  Karl Berry  <karl@gnu.org>
70824
70825         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70826
70827 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70828
70829         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70830         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70831         (read_filesystem_list): Set and use me_type_malloced.
70832         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70833         whatever the type happens to be), for brevity and consistency.
70834         Check for size calculation overflow on Alphas running OSF/1.
70835
70836 2003-10-31  Jim Meyering  <jim@meyering.net>
70837
70838         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70839
70840         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70841
70842 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70843             Bruno Haible  <bruno@clisp.org>
70844
70845         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70846         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70847
70848 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70849
70850         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70851         netbsd*-gnu*.  Suggested by Robert Millan.
70852
70853 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70854
70855         * modules/group-member: Depend on stdbool.
70856
70857 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70858
70859         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70860
70861 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70862
70863         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70864         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70865         after the 'gnu' in these cases.  This fixes some bugs in the
70866         previous change, and is based on suggestions by Robert Millan.
70867
70868 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70869
70870         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70871         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70872         no longer needed.
70873         * lib/quotearg.c (quotearg_n_options): Use it.
70874         * lib/group-member.c: Include <stdbool.h>.
70875         (free_group_info): Arg is now const *; don't free arg.
70876         (get_group_info): Now returns bool and accepts struct group_info *,
70877         rather than returning a malloc'ed struct group_info *.
70878         All uses changed.  Check for overflow in internal size calculation.
70879
70880         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70881         rather than xmalloc/xrealloc.
70882         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70883         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70884         conformance bug: the old code used a pointer after freeing the
70885         storage that it addressed.
70886         * lib/hash.c (hash_initialize): Simplify the code by using
70887         xalloc_oversized rather than doing it by hand.
70888         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70889         the buffer preserved.  Use free and xmalloc instead.
70890         * lib/quotearg.c (quotearg_n_options): Likewise.
70891         Use a simpler test for size overflow.  Don't use xalloc_oversized
70892         because unsigned int might be wider than size_t (!); this suggests
70893         that we should switch from unsigned int to size_t for slot numbers.
70894
70895 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70896
70897         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70898         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70899         NetBSD kernels.  Requested by Richard Stallman.
70900
70901 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70902
70903         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70904         to allocate the returned structure.  Do not allocate a subarray,
70905         as x2nrealloc will do that.
70906         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70907         instead of xnrealloc.
70908         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70909
70910 2003-10-27  Bruno Haible  <bruno@clisp.org>
70911
70912         * lib/stdbool_.h: Better support for BeOS.
70913
70914 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70915
70916         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70917         now uses inline.
70918
70919 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70920
70921         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70922         callers that want to do their own size-overflow checking.  Include
70923         <stdbool.h>, since xalloc_oversized returns bool.
70924         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70925         to use xalloc_oversized.
70926
70927         Add two functions x2realloc, x2nrealloc, for programs that grow
70928         arrays dynamically by doubling their sizes.
70929         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70930         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70931         New functions.
70932
70933         Port to C99 semantics for 'inline' of external functions.
70934         Bug reported by Bruno Haible.
70935         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70936         with the old contents of xnmalloc.
70937         (xnmalloc, xmalloc): Use it.
70938         (xnrealloc_inline): New static inline function,
70939         with the old contents of xnrealloc.
70940         (xnrealloc, xrealloc): Use it.
70941
70942         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70943         that.
70944
70945 2003-10-26  Karl Berry  <karl@gnu.org>
70946
70947         * config/srclist.txt (COPYING.DOC): no longer available from
70948         /gd/gnuorg; don't know where the ultimate source is.
70949
70950 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70951
70952         Fix several address-calculation bugs in the hash modules,
70953         plus some minor code cleanup.
70954
70955         * lib/hash.h: Include <stdbool.h>, for bool.
70956         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
70957         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
70958         hash_get_n_entries, hash_get_max_bucket_length,
70959         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
70960         hash_rehash): Use size_t rather than unsigned.
70961         * lib/hash.c (struct hash_table, hash_get_n_buckets,
70962         hash_get_n_buckets_used, hash_get_n_entries,
70963         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
70964         hash_get_entries, hash_do_for_each, hash_string, is_prime,
70965         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
70966         Likewise.
70967         (SIZE_MAX): Define if not defined.
70968         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
70969         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
70970         hash_print):
70971         Use const * when possible.
70972         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
70973         (check_tuning): Fix bug: if tuning parameters were very close to
70974         0 or 1, rounding errors could have caused subscript violations.
70975         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
70976         (hash_initialize): Add 'fail:' label
70977         to free table and return NULL, and use it to simplify code.
70978         Use calloc rather than clearing the storage ourself.
70979         (hash_initialize, hash_rehash): Check for arithmetic overflow in
70980         buffer size calculations.
70981         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
70982         Include <stddef.h>, for size_t.
70983         * lib/hash-pjw.c (hash_pjw): Likewise.
70984         Switch to method described by Bruno Haible.
70985         Include <limits.h>, for CHAR_BIT.
70986         (SIZE_BITS): New macro.
70987
70988 2003-10-23  Paul Eggert  <eggert@twinsun.com>
70989
70990         * m4/getline.m4 (AM_FUNC_GETLINE):
70991         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
70992         hosts.  Problem reported by Derek Robert Price in
70993         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
70994         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
70995         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
70996
70997 2003-10-21  Paul Eggert  <eggert@twinsun.com>
70998
70999         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71000         ceiling the allocation at NMAX bytes rather than silently
71001         discarding input bytes before NMAX is reached.  This makes
71002         a difference only if NMAX exceeds SIZE_MAX / 2.
71003
71004         * lib/obstack.c: Merge from glibc.
71005         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71006         Add libc_hidden_def (_obstack_newchunk).
71007         (_obstack_free) [! defined _LIBC]: Remove.
71008         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71009         a clone of the function body.
71010         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71011         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71012
71013         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71014         glibc.
71015         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71016         arg to memcpy.
71017
71018         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71019         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71020         Don't use lvalue casts, as GCC plans to remove support for them
71021         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71022         was also present in the non-GCC version, indicating that this
71023         code had always been buggy and had never been widely used.
71024         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71025         Use the fast variant of each macro, rather than copying the
71026         definiens of the fast variant; that way, we'll be more likely to
71027         catch future bugs in the fast variants.
71028
71029 2003-10-20  Bruno Haible  <bruno@clisp.org>
71030
71031         * modules/wait-process: New file.
71032         * MODULES.html.sh (func_all_modules): Add wait-process.
71033
71034 2003-10-20  Bruno Haible  <bruno@clisp.org>
71035
71036         * m4/wait-process.m4: New file.
71037
71038 2003-10-20  Bruno Haible  <bruno@clisp.org>
71039
71040         * lib/wait-process.h: New file, from GNU gettext.
71041         * lib/wait-process.c: New file, from GNU gettext.
71042
71043 2003-10-19  Jim Meyering  <jim@meyering.net>
71044
71045         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71046         HPUX 10.20.
71047
71048 2003-10-18  Karl Berry  <karl@gnu.org>
71049
71050         * config/config.guess: update from config.
71051
71052 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71053
71054         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71055         (getgroups): First arg is int, not size_t.
71056         Don't let 'free' mangle errno.
71057
71058 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71059
71060         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71061
71062 2003-10-16  Karl Berry  <karl@gnu.org>
71063
71064         * config/config.{guess,sub}: update from config.
71065
71066 2003-10-16  Jim Meyering  <jim@meyering.net>
71067
71068         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71069         memcpy.
71070
71071 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71072
71073         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71074         (SIZE_MAX): Remove.
71075         (new_exclude, add_exclude_file): Initial size no longer needs to
71076         be a power of 2.
71077         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71078         our own address arithmetic overflow checking.
71079
71080         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71081         (fnmatch): Do not alloca more than 2000 wide characters;
71082         instead, use malloc for large buffers.
71083         Check for address arithmetic overflow, and return -1
71084         with errno set to ENOMEM in that case.
71085         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71086         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71087         instead, return -1.  Check for address arithmetic overflow.
71088
71089 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71090
71091         Handle invalid suffixes and overflow independently, so that
71092         callers can treat them independently as needed.  Fix some bugs in
71093         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71094         suffix for a human-readable blocksize.  The major caller-visible
71095         change is the addition of a new
71096         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71097         that both overflow and suffix chars were found.
71098
71099         * lib/human.c (humblock): Don't check separately for invalid suffix
71100         char; that is xstrtoumax's job (now that its bug is fixed).
71101         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71102         INTMAX_MAX]: New macros.
71103         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71104         TYPE_MAXIMUM): New macros.
71105         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71106         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71107         if overflow occurs, as it's what __strtol does and it's more useful
71108         in practice.
71109         (__xstrtol): If __strtol reports some error other than ERANGE,
71110         reflect it to the caller as LONGINT_INVALID.  If it reports
71111         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71112         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71113         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71114         value.
71115         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71116         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71117         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71118         [defined UINTMAX_MAX]: New macros.
71119
71120 2003-10-14  Bruno Haible  <bruno@clisp.org>
71121
71122         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71123
71124 2003-10-14  Bruno Haible  <bruno@clisp.org>
71125
71126         * m4/sig_atomic_t: New file, from GNU gettext.
71127         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71128
71129 2003-10-14  Bruno Haible  <bruno@clisp.org>
71130
71131         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71132         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71133         Also use volatile where needed.
71134
71135 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71136
71137         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71138         Change maintainer from Bruno Haible to 'all'.
71139
71140 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71141
71142         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71143
71144 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71145
71146         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71147         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71148         and define in terms of the other primitives.
71149         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71150         (SIZE_MAX): Define if not already defined.
71151         (array_size_overflow): New function.
71152         (xalloc_die): Abort instead of exiting if 'error' returns.
71153         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71154         (xmalloc, xrealloc): Use them.
71155         (xcalloc): Check for address arithmetic overflow.
71156         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71157         a bit faster than strcpy.
71158
71159 2003-10-10  Simon Josefsson  <jas@extundo.com>
71160
71161         * modules/argp (Depends-on): Add restrict and strcase.
71162
71163 2003-10-10  Simon Josefsson  <jas@extundo.com>
71164
71165         * m4/argp.m4: Add AC_C_INLINE.
71166
71167 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71168
71169         Merge getpass from libc, plus a few fixes.
71170
71171         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71172         Include <stdbool.h>.
71173         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71174         __fsetlocking to empty.
71175         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71176         do include <bits/libc-lock.h>.
71177         Do not include <fcntl.h>; not needed.
71178         [_LIBC]: Include <wchar.h>.
71179         (NOTCANCEL_MODE): New macro.
71180         (flockfile, funlockfile) [_LIBC]: New macros.
71181         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71182         [!_LIBC]: New macros.
71183         (call_fclose): New function.
71184         (getpass): Use it.  Save tty stream separately; this simplifies the
71185         code and makes it more reliable if stdin happens to equal stdout.
71186         Invoke __fsetlocking on tty.
71187         Handle thread cancellation if needed.
71188         Namespace cleanup (use __tcgetattr, __getline).
71189         Use bool for Booleans.
71190         [USE_IN_LIBIO]: Handle wide streams.
71191         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71192         stream might go where.
71193
71194         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71195         doesn't have to include <stdio.h> before us.
71196         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71197         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71198         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71199         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71200         if not declared, so that we can use getpass.c code from libc without
71201         rewriting it.
71202         (flockfile, ftrylockfile, funlockfile): New macros.
71203
71204 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71205
71206         * modules/getpass: Depend on stdbool.
71207
71208 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71209
71210         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71211
71212 2003-10-07  Karl Berry  <karl@gnu.org>
71213
71214         * config/config.{guess,sub}: update from config.
71215
71216 2003-10-06  Jim Meyering  <jim@meyering.net>
71217             Bruno Haible  <bruno@clisp.org>
71218
71219         This lets translators provide better translations for the
71220         "Written by ..." part of --version output.
71221         * lib/version-etc.h: Include stdarg.h.
71222         (version_etc_copyright): Declare as readonly.
71223         (version_etc): Make this function variadic with a NULL-terminated list
71224         of author name strings.
71225         (version_etc_va): New declaration.
71226         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71227         (version_etc_copyright): Declare as readonly.
71228         (version_etc_va): New function. Provide a different translatable string
71229         for each possible number of authors < 10. Abbreviate when there are 10
71230         authors or more.
71231         (version_etc): Make this function variadic. Call version_etc_va.
71232         Suggestion from Gary V. Vaughan.
71233
71234         * lib/long-options.h (parse_long_options): Change prototype: the
71235         authors string is moved to the end and becomes variadic.
71236         * lib/long-options.c: Include stdarg.h.
71237         (parse_long_options): Make this function variadic, too.
71238         Call version_etc_va, not version_etc.
71239
71240 2003-10-06  Bruno Haible  <bruno@clisp.org>
71241
71242         * modules/version-etc-2: Remove file.
71243         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71244
71245 2003-10-06  Bruno Haible  <bruno@clisp.org>
71246
71247         * modules/fatal-signal: New file.
71248         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71249
71250 2003-10-06  Bruno Haible  <bruno@clisp.org>
71251
71252         * m4/fatal-signal.m4: New file.
71253         * m4/signalblocking.m4: New file, from GNU gettext.
71254
71255 2003-10-06  Bruno Haible  <bruno@clisp.org>
71256
71257         * lib/version-etc-2.h: Remove file.
71258         * lib/version-etc-2.c: Remove file.
71259
71260 2003-10-06  Bruno Haible  <bruno@clisp.org>
71261
71262         * lib/fatal-signal.h: New file, from GNU gettext.
71263         * lib/fatal-signal.c: New file, from GNU gettext.
71264
71265 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71266
71267         * README: Rework advice for preventing empty .o files.
71268         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71269         not <sys/types.h>.
71270
71271 2003-10-04  Karl Berry  <karl@gnu.org>
71272
71273         * lib/argp*: update from libc.
71274
71275 2003-10-04  Karl Berry  <karl@gnu.org>
71276
71277         * config/config.{guess,sub}: update from config.
71278
71279 2003-10-02  Bruno Haible  <bruno@clisp.org>
71280
71281         * modules/lchown (Include): Add lchown.h.
71282         * modules/time_r (Include): Use "..." syntax.
71283         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71284
71285 2003-10-01  Simon Josefsson  <jas@extundo.com>
71286
71287         * MODULES.html.sh (func_all_modules): Move gethostname from section
71288         'based on' to section 'lacking' POSIX:2001.
71289
71290 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71291
71292         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71293         to output mode on the same stream.
71294
71295 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71296
71297         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71298         Fix arg typo in previous patch.
71299
71300 2003-09-28  Jim Meyering  <jim@meyering.net>
71301
71302         * lib/error.c: Correct cpp indentation.
71303
71304 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71305
71306         * modules/free: New file.
71307
71308 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71309
71310         * m4/free.m4: New file.
71311
71312 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71313
71314         * lib/minmax.h (MIN, MAX)
71315         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71316         Omit the special code that used __typeof__, since we worry that
71317         it could be more trouble than it's worth.  See:
71318         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71319         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71320
71321         * lib/free.c: New file.
71322
71323 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71324
71325         Trivial fixes to Makefile.am parts of module listings.
71326         * modules/strstr: Append strstr.h to lib_SOURCES.
71327         * modules/strcase: Likewise, for strcase.h.
71328
71329 2003-09-27  Karl Berry  <karl@gnu.org>
71330
71331         * config/mkinstalldirs: update from automake.
71332
71333 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71334
71335         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71336         (error_tail): Do not loop, reallocating temporary buffer, since
71337         the output cannot contain more wide characters than the input
71338         contains bytes, the size must be big enough already.  This avoids
71339         one potential size overflow calculation.  Check for size overflow
71340         when calculating temporary buffer size.  Free temporary buffer
71341         when done, if it was allocated with malloc; this plugs a memory
71342         leak.  Remove casts from void * to pointers, that are no longer
71343         needed now that we're assuming C89 or better.
71344
71345         Merge error changes from glibc.
71346
71347         * lib/error.c, error.h: Update copyright notice header to match glibc.
71348         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71349         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71350         Disable cancellation while printing error.
71351         * lib/error.h: Prepend __ to parameter names.
71352
71353 2003-09-26  Jim Meyering  <jim@meyering.net>
71354
71355         * lib/error.c (error_tail): Move some declarations
71356         into inner scope where the local variables are used.
71357
71358 2003-09-26  Bruno Haible  <bruno@clisp.org>
71359
71360         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71361         stpncpy().
71362         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71363
71364 2003-09-26  Bruno Haible  <bruno@clisp.org>
71365
71366         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71367         (stpncpy): Define as alias for gnu_stpncpy.
71368         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71369
71370 2003-09-25  Simon Josefsson  <jas@extundo.com>
71371
71372         * lib/xgetdomainname.h: New file.
71373         * lib/xgetdomainname.c: New file.
71374
71375 2003-09-25  Simon Josefsson  <jas@extundo.com>
71376             Bruno Haible  <bruno@clisp.org>
71377
71378         * modules/getdomainname: New file.
71379         * modules/xgetdomainname: New file.
71380         * MODULES.html.sh (func_all_modules): Add getdomainname,
71381         xgetdomainname.
71382
71383 2003-09-25  Simon Josefsson  <jas@extundo.com>
71384             Bruno Haible  <bruno@clisp.org>
71385
71386         * m4/getdomainname.m4: New file.
71387
71388 2003-09-25  Simon Josefsson  <jas@extundo.com>
71389             Bruno Haible  <bruno@clisp.org>
71390
71391         * lib/getdomainname.h: New file.
71392         * lib/getdomainname.c: New file.
71393
71394 2003-09-25  Karl Berry  <karl@gnu.org>
71395
71396         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71397
71398 2003-09-25  Karl Berry  <karl@gnu.org>
71399
71400         * config/install-sh: update from automake.
71401
71402 2003-09-25  Bruno Haible  <bruno@clisp.org>
71403
71404         * modules/version-etc-2: New file, from modules/version-etc with
71405         modifications.
71406         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71407
71408 2003-09-25  Bruno Haible  <bruno@clisp.org>
71409
71410         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71411         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71412
71413 2003-09-24  Simon Josefsson  <jas@extundo.com>
71414
71415         * modules/xgethostname: Add xgethostname.h.
71416
71417 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71418
71419         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71420         the buffer associated with the argument.  Bug reported by
71421         Simon Josefsson.
71422
71423 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71424
71425         * README: Document assumptions that 'int' is at least 32 bits
71426         wide, that integer arithmetic is 2's complement without overflow,
71427         that there are no holes in integer values, that adding sizes of
71428         two nonoverlapping objects can't overflow, and that all-bits-zero
71429         yields scalar zero.  Fix spelling and capitalization typos.
71430
71431 2003-09-19  Karl Berry  <karl@gnu.org>
71432
71433         * lib/argp.h: update from libc.
71434
71435 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71436
71437         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71438         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71439         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71440
71441 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71442
71443         * gnulib-tool: Use "test -h", not "test -L", for portability
71444         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71445         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71446         (sed_extract_prog): Issue s commands one-by-one, rather than
71447         using \| in one s command.
71448
71449 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71450
71451         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71452         input error, instead of returning NULL the next time we are called
71453         (and therefore losing track of errno).
71454
71455 2003-09-16  Bruno Haible  <bruno@clisp.org>
71456
71457         * gnulib-tool (func_create_testdir): Warn about duplicated
71458         dependencies.
71459
71460 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71461
71462         * modules/argmatch, modules/fatal, modules/obstack,
71463         modules/xalloc, modules/xgethostname: Sort dependencies by
71464         importance, not alphabetically.
71465
71466 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71467
71468         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71469         fails, so that the caller gets the proper errno.
71470
71471         * lib/readutmp.c (read_utmp): Likewise.
71472         Check for fstat error.  Close stream and free storage
71473         when failing.
71474
71475 2003-09-14  Karl Berry  <karl@gnu.org>
71476
71477         * config/srclist.txt (strdup.c): disable for c89 changes.
71478
71479 2003-09-14  Jim Meyering  <jim@meyering.net>
71480
71481         * lib/getloadavg.c: Correct cpp indentation.
71482         * lib/strdup.c: Likewise.
71483         * lib/vasnprintf.c: Likewise.
71484
71485 2003-09-14  Bruno Haible  <bruno@clisp.org>
71486
71487         * modules/fwriteerror: New file.
71488         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71489
71490 2003-09-14  Bruno Haible  <bruno@clisp.org>
71491
71492         * lib/fwriteerror.h: New file.
71493         * lib/fwriteerror.c: New file.
71494
71495 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71496
71497         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71498         modules/xgethostname, modules/xalloc: Depend on exit.
71499
71500 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71501
71502         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71503
71504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71505         and AC_MINIX, too, so that their extensions are available.
71506
71507         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71508         This macro has been superseded by gl_BACKUPFILE.
71509
71510         More patches to assume C89 or better.
71511
71512         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71513
71514         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71515         unconditionally.
71516         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71517         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71518         Include <string.h>, <stdlib.h> unconditionally.
71519         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71520         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71521         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71522         headers or for string.h.
71523         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71524         or strtoul.
71525
71526         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71527         headers.
71528         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71529         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71530         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71531         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71532         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71533         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71534         memcpy, memset.
71535         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71536         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71537         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71538         strtol.
71539         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71540         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71541         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71542         strtoul.
71543
71544 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71545
71546         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71547         * lib/obstack.c [!defined _LIBC]: Likewise.
71548         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71549         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71550         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71551
71552         More changes to assume C89 or better.
71553
71554         * lib/error.c (error_tail): Assume vprintf.
71555
71556         * lib/argmatch.c (getenv): Remove decl.
71557         * lib/progreloc.c (get_full_program_name): Define via prototype.
71558         * lib/setenv.c (clearenv): Likewise.
71559         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71560         needed.
71561         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71562         (malloc, memcpy): Remove decls.
71563         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71564         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71565         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71566         (memcpy): Remove macro.
71567         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71568         (__P): Remove.  All uses removed.
71569         (PTR): Remove.  All uses changed to void *.
71570         (CHAR_BIT, NULL): Remove.
71571         (spaces, zeros, memset_space, memset_zero)
71572         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71573         Remove.
71574         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71575         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71576         Define with prototype.
71577         Remove now-unnecessary prototype decl.
71578         (extra_args_spec): Assume ANSI C.  All uses changed.
71579         (extra_args_spec_iso): Remove.
71580         (my_strftime, emacs_strftimeu): Define via prototype.
71581         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71582         unconditionally.
71583         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71584         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71585         (strtoul, strtol): Remove decls.
71586         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71587         LONG_MAX): Remove.
71588         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71589         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71590         (LOCALE_PARAM_PROTO): New macro.
71591         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71592         (INTERNAL (strtol), strtol): Define with a prototype.
71593         (PARAMS): Remove.  All uses removed.
71594         * lib/tempname.c: Include <string.h> unconditionally.
71595         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71596         * lib/xgethostname.c (main): Define with a prototype.
71597         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71598         Include <stdlib.h> unconditionally.
71599         (calloc, malloc, realloc, free): Remove decls.
71600         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71601         Include <stdlib.h> unconditionally.  Sort include file names.
71602         (strtod): Remove.
71603         (xstrtod): Define with a prototype.
71604         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71605         (strtol, strtoul): Remove decls.
71606
71607 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71608
71609         More patches to assume C89 or better.
71610         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71611         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71612         string.h, memchr, STDC_HEADERS.
71613
71614 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71615
71616         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71617         Include <stdlib.h>, <string.h> unconditionally.
71618         Remove now-unnecessary cast to char *.
71619         * lib/strnlen.c: Include <string.h> unconditionally.
71620         * lib/yesno.c (yesno): Define with a prototype.
71621
71622 2003-09-11  Bruno Haible  <bruno@clisp.org>
71623
71624         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71625
71626 2003-09-10  Jim Meyering  <jim@meyering.net>
71627
71628         * lib/error.c: Correct indentation of cpp directives.
71629
71630 2003-09-10  Bruno Haible  <bruno@clisp.org>
71631
71632         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71633         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71634         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71635         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71636         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71637         <stdlib.h> and <string.h> checks.
71638         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71639         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71640
71641 2003-09-10  Bruno Haible  <bruno@clisp.org>
71642
71643         * lib/strcspn.c: Include <string.h> unconditionally.
71644         * lib/strpbrk.c: Include <string.h> unconditionally.
71645         * lib/strstr.c: Include <string.h> unconditionally.
71646         * lib/unicodeio.c: Include <string.h> unconditionally.
71647         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71648         * lib/unsetenv.c: Likewise.
71649         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71650         * lib/yesno.c: Include <stdlib.h> unconditionally.
71651         (rpmatch): Add prototype.
71652
71653 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71654
71655         More patches to assume C89 or better.
71656         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71657         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71658         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71659         or for string.h.
71660         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71661         stdlib.h.
71662         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71663         C headers.
71664         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71665         string.h.
71666         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71667         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71668         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71669         or for string.h.
71670         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71671         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71672         C headers.
71673         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71674         memcpy.
71675         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71676         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71677         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71678         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71679         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71680         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71681         string.h, free.
71682         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71683         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71684         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71685         C headers, or for string.h.
71686         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71687         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71688         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71689         headers, memory.h, stdlib.h, string.h, strings.h.
71690         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71691         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71692         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71693         strchr.
71694         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71695         headers, memory.h, string.h.
71696         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71697         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71698         free.
71699         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71700         headers.
71701         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71702         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71703         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71704         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71705         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71706
71707 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71708
71709         More K&R removal.
71710
71711         * lib/acosl.c (main): Use a prototype.
71712         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71713         tanl.c: Likewise.
71714
71715         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71716
71717         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71718         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71719         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71720         with a prototype.
71721         * lib/getopt.c (const): Remove macro.
71722         Include <string.h> unconditionally.
71723         (my_index): Remove; all uses changed to strchr.
71724         (strlen): Remove decl.
71725         (exchange): Remove forward decl; no longer needed.
71726         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71727         Define with prototype.
71728         * lib/getopt1.c (const): Remove macro.
71729         (getopt_long, getopt_long_only, main): Define with prototype.
71730
71731         * lib/getugroups.c: Include <string.h> unconditionally.
71732
71733         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71734         (getusershell, setusershell, endusershell, readname, main):
71735         Define with prototypes.
71736
71737         * lib/group-member.c: Include group-member.h first.
71738         Include <stdlib.h> unconditionally.
71739
71740         * lib/hard-locale.c: Include hard-locale.h first.
71741         Include <stdlib.h>, <string.h> unconditionally.
71742
71743         * lib/hash.c (free, malloc): Remove decls.
71744         Include <stdlib.h> unconditionally.
71745
71746         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71747         (getenv): Do not declare.
71748
71749         * lib/idcache.c: Include <string.h> unconditionally.
71750
71751         * lib/long-options.c: Include long-options.h first, to test interface.
71752         Include <stdlib.h> unconditionally.
71753
71754         * lib/makepath.c: Include makepath.h first, to test interface.
71755         Include <stdlib.h> and <string.h> unconditionally.
71756
71757         * lib/linebuffer.c: Include <stdlib.h>.
71758         (free): Remove decl.
71759
71760         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71761         stddef.h. rpl_malloc returns void *, not char *.
71762         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71763         prototype.
71764
71765         * lib/md5.h: Include <limits.h> unconditionally.
71766         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71767         (__P): Remove; all uses removed.
71768         * lib/md5.c: Include "md5.h" first.
71769         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71770         md5_buffer, md5_process_bytes, md5_process_block):
71771         Define with prototypes.
71772         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71773         * lib/sha.c: Include "sha.h" first.
71774         Include <stdlib.h>, <string.h> unconditionally.
71775
71776         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71777         * lib/memcmp.c (__ptr_t): Likewise.
71778         * lib/memrchr.c (__ptr_t): Likewise.
71779         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71780         Include <string.h> unconditionally.
71781         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71782         * lib/memchr.c: Include <stdlib.h> unconditionally.
71783         * lib/memchr.c (LONG_MAX): Remove.
71784         * lib/memrchr.c (LONG_MAX): Likewise.
71785         * lib/memchr.c (__memchr): Define via a prototype.
71786         * lib/memrchr.c (__memrchr): Likewise.
71787         * lib/memcmp.c (__P): Remove, and remove all uses.
71788         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71789         Remove forward decls; no longer needed.
71790         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71791         Use types required by C89 in prototype.
71792
71793         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71794         * lib/savedir.c: Likewise.
71795         * lib/mkdir.c (free): Remove decl.
71796         * lib/rmdir.c (rmdir): Define with a prototype.
71797         * lib/savedir.c: Include savedir.h first, to test interface.
71798
71799         * lib/mktime.c (STDC_HEADERS): Remove.
71800         Include <stdlib.h>, <string.h> unconditionally.
71801
71802         * lib/modechange.c: Include <stdlib.h> unconditionally.
71803         (malloc): Remove decl.
71804
71805         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71806         (free): Remove decl.
71807
71808         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71809         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71810         (This type really should be intptr_t, but that's a C99ism.)
71811         (_obstack_memcpy): Remove: all uses changed to memcpy.
71812         Include <string.h> unconditionally.
71813         (struct obstack): Assume __STDC__ for types of members
71814         chunkfun, freefun, extra_arg.
71815         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71816         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71817         obstack_begin, obstack_specify_allocation,
71818         obstack_specify_allocation_with_arg, obstack_chunkfun,
71819         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71820         Remove unprototyped decls and the macros that use them.
71821         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71822         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71823         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71824         (defined __STDC__ && __STDC__)]:
71825         Remove nonprototyped code.
71826         Include <stdlib.h> unconditionally.
71827         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71828         _obstack_allocated_p, _obstack_free, obstack_free,
71829         _obstack_memory_used, print_and_abort):
71830         Define using prototypes.
71831         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71832         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71833         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71834         obstack_next_free, obstack_object_size, obstack_room) [0]:
71835         Remove unused, unprototyped code.
71836
71837         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71838
71839         * lib/physmem.c (physmem_total, physmem_available, main): Define
71840         with prototypes.
71841
71842         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71843         (main): Define with a prototype.
71844
71845         * lib/posixver.c (getenv): Remove decl.
71846
71847         * lib/putenv.c (malloc): Returns void *, not char *.
71848         Include <string.h> unconditionally.
71849         (strchr, memcpy, NULL): Do not define.
71850
71851         * lib/readtokens.c: Include readtokens.h first, to test interface.
71852         Include <stdlib.h>, <string.h> unconditionally.
71853         (init_tokenbuffer): Define with a prototype.
71854
71855         * lib/regex.c (PARAMS): Remove.  All uses removed.
71856         All uses of _RE_ARGS removed, too.
71857         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71858         unconditionally.
71859         (bzero): Assume memset exists.
71860         (memcmp, memcpy, NULL): Remove.
71861         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71862         char, or assignments to local vars of type signed char.
71863         (init_syntax_once, PREFIX(extract_number_and_incr),
71864         PREFIX(print_partial_compiled_pattern),
71865         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71866         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71867         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71868         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71869         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71870         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71871         wcs_compile_range, byte_compile_range, truncate_wchar,
71872         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71873         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71874         count_mbs_length, wcs_re_match_2_internal,
71875         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71876         PREFIX(alt_match_null_string_p),
71877         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71878         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71879         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71880         now-unnecessary declaration, if any.
71881         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71882         regcomp, regexec):
71883         Remove now-unnecessary casts among pointer types.
71884         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71885
71886         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71887         (free): Remove decl.
71888
71889         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71890
71891         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71892         (free): Remove decl.
71893
71894         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71895         * lib/xgetcwd.c: Likewise.
71896
71897         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71898         (free): Remove decl.
71899
71900         * lib/strchrnul.c (strchrnul): Define with a prototype.
71901         Fix bug: c_in was not converted to char before searching.
71902
71903         The following changes are not K&R related:
71904
71905         * lib/group-member.h: Include <sys/types.h>, so that this file is
71906         self-contained.
71907         * lib/makepath.h: Likewise.
71908
71909         * lib/getusershell.c (readname, default_index, line_size, readname):
71910         Use size_t, not int, for sizes.
71911         (readname): If the size overflows, report an error instead of
71912         looping forever.
71913
71914 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71915
71916         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71917         libc.
71918
71919 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71920
71921         * README: New section: portability guidelines.
71922
71923 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71924
71925         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71926         C89 spec.
71927
71928 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71929
71930         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71931
71932 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71933
71934         Assume C89 or better; remove K&R cruft.
71935         A few of these changes were first proposed by Derek Robert Price
71936         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71937
71938         * lib/addext.c: Include <string.h> unconditionally.
71939         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71940         Don't declare getenv or malloc.
71941
71942         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71943         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71944         (NULL): Remove.
71945         (find_stack_direction, alloca): Use prototypes.
71946
71947         * lib/atexit.c (atexit): Define using a prototype.
71948
71949         * lib/basename.c, dirname.c, stripslash.c:
71950         Include <string.h> unconditionally.
71951
71952         * lib/bcopy.c: Include <stddef.h>.
71953         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
71954
71955         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
71956
71957         * lib/error.h (error, error_at_line, error_print_progname)
71958         [! (defined (__STDC__) && __STDC__)]: Remove decls.
71959         * lib/error.c: Include error.h first, to check interface.
71960         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71961         (VA_START): Remove; all uses changeed to va_start.
71962         (exit, strerror): Remove decls.
71963         (error_print_progname): Prototype uncondionally.
71964         Don't include <errno.h>; no longer needed.
71965         (private_strerror): Remove.
71966         (error_tail): Always define.
71967         (error, error_at_line): Assume C89 or better; always use prototypes.
71968         * lib/fatal.c: Include "fatal.h" first, to test interface.
71969         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71970         (VA_START): Remove; all uses changed to va_start.
71971         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
71972         this case.
71973         (exit): Remove decl.
71974         (fatal): Prototype unconditionally.  Assume va_start works.
71975         Abort at end, to pacify gcc.
71976
71977         * lib/euidaccess.c (main): Define with a prototype.
71978
71979         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
71980
71981         * lib/exitfail.c: Include <stdlib.h> unconditionally.
71982
71983         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
71984         prototypes.
71985         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
71986         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
71987         (getenv): Remove decl.
71988         (fnmatch): Define using a prototype.
71989         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
71990         (FCT): Define using a prototype.
71991
71992         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
71993
71994         * lib/gethostname.c: Include <stddef.h>.
71995         (gethostname): Define with prototype.  Length is size_t, not int.
71996
71997 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71998
71999         Assume C89 or better; remove K&R cruft.
72000         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72001         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72002         string.h, getenv, malloc.
72003         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72004         headers.
72005         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72006         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72007         do not check for strerror.
72008         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72009         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72010         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72011         do not check for doprnt or vprintf.
72012         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72013         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72014
72015 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72016
72017         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72018         getversion.c should have been removed then, but was accidentally
72019         preserved.
72020
72021         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72022         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72023
72024 2003-09-08  Karl Berry  <karl@gnu.org>
72025
72026         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72027                 config, forget about prep.
72028
72029         * config/depcomp, missing: update from automake.
72030
72031 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72032
72033         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72034         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72035
72036 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72037
72038         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72039         copy_tm_result.  Bug reported by Simon Josefsson in
72040         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72041
72042 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72043
72044         * m4/time_r.m4: New file.
72045         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72046         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72047         is. Check for timegm declaration.
72048         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72049         Do not check for gmtime_r.
72050         Replace mktime if __mktime_internal does not exist and if mktime
72051         hasn't been replaced already.
72052
72053 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72054
72055         * lib/time_r.c, lib/time_r.h: New files.
72056
72057         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72058         __localtime_r.
72059         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72060         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72061
72062         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72063         __gmtime_r.
72064         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72065         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72066         Include <time_r.h>.
72067
72068         * lib/timegm.c: Switch to glibc implementation, with the following
72069         changes:
72070         [defined HAVE_CONFIG_H]: Include <config.h>.
72071         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72072         (__mktime_internal) [!defined _LIBC]: New decl.
72073         (__gmtime_r) [!defined _LIBC]: New macro and function.
72074         (timegm): Use a prototype, since gnulib assumes C89.
72075         Do not bother declaring tmp to be const, as it's not really usefu.
72076         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72077         (timegm): Declare only if HAVE_DECL_TIMEGM.
72078
72079 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72080
72081         * MODULES.html.sh (func_all_modules): Add time_r.
72082         * modules/time_r: New file.
72083         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72084         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72085
72086 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72087
72088         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72089         Bug reported by Lute Kamstra in
72090         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72091
72092         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72093         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72094         course with correspondingly smaller numbers for tomorrow and
72095         yesterday.  From Tadayoshi Funaba.  Originally installed into
72096         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72097         coreutils merge?).
72098
72099 2003-08-31  Simon Josefsson  <jas@extundo.com>
72100
72101         * modules/timegm: New file.
72102         * MODULES.html.sh (func_all_modules): Add timegm.
72103
72104 2003-08-31  Simon Josefsson  <jas@extundo.com>
72105
72106         * m4/timegm.m4: New file.
72107
72108 2003-08-31  Simon Josefsson  <jas@extundo.com>
72109
72110         * lib/timegm.h: New file.
72111         * lib/timegm.c: New file.  Based on
72112         wget-1.8.2/src/http.c:mktime_from_utc.
72113
72114 2003-08-31  Karl Berry  <karl@gnu.org>
72115
72116         * lib/argp.h: update from libc.
72117
72118 2003-08-28  Bruno Haible  <bruno@clisp.org>
72119
72120         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72121         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72122         followed by '#define fnmatch fnmatch_posix' gives an error.
72123
72124 2003-08-28  Bruno Haible  <bruno@clisp.org>
72125
72126         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72127         warning on QNX, which defines O_BINARY to 000000.
72128
72129 2003-08-27  Jim Meyering  <jim@meyering.net>
72130
72131         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72132         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72133         would fail after 32.  Reported by Danny Levinson.  Details here:
72134         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72135
72136 2003-08-24  Bruno Haible  <bruno@clisp.org>
72137
72138         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72139         MSVC7 <stdio.h> is included later.
72140
72141 2003-08-22  Simon Josefsson  <jas@extundo.com>
72142
72143         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72144
72145 2003-08-20  Karl Berry  <karl@gnu.org>
72146
72147         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72148
72149 2003-08-20  Bruno Haible  <bruno@clisp.org>
72150
72151         * modules/progname: New file.
72152         * MODULES.html.sh (func_all_modules): Add progname.
72153
72154 2003-08-20  Bruno Haible  <bruno@clisp.org>
72155
72156         * lib/progname.h: New file, from GNU gettext.
72157         * lib/progname.c: New file, from GNU gettext.
72158         * lib/progreloc.c: New file, from GNU gettext.
72159
72160 2003-08-19  Jim Meyering  <jim@meyering.net>
72161
72162         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72163         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72164
72165 2003-08-19  Bruno Haible  <bruno@clisp.org>
72166
72167         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72168         more.
72169
72170 2003-08-19  Bruno Haible  <bruno@clisp.org>
72171
72172         * lib/xstrdup.c: Assume <string.h> exists.
72173
72174 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72175
72176         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72177         in makefile rules.
72178
72179 2003-08-18  Jim Meyering  <jim@meyering.net>
72180
72181         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72182         * m4/lib-ld.m4: Likewise.
72183
72184 2003-08-18  Jim Meyering  <jim@meyering.net>
72185
72186         * lib/setenv.h: Indent nested cpp directive.
72187         * lib/vasnprintf.c: Remove trailing blanks.
72188
72189 2003-08-17  Simon Josefsson  <jas@extundo.com>
72190
72191         * modules/xstrndup: New file.
72192         * MODULES.html.sh (func_all_modules): Add xstrndup.
72193
72194 2003-08-17  Simon Josefsson  <jas@extundo.com>
72195
72196         * modules/argp: Fix autoconf macro name. Add more dependencies.
72197
72198 2003-08-17  Simon Josefsson  <jas@extundo.com>
72199
72200         * m4/xstrndup.m4: New file.
72201
72202 2003-08-17  Simon Josefsson  <jas@extundo.com>
72203
72204         * m4/argp.m4: New file.
72205
72206 2003-08-17  Simon Josefsson  <jas@extundo.com>
72207             Bruno Haible  <bruno@clisp.org>
72208
72209         * lib/xstrndup.h: New file.
72210         * lib/xstrndup.c: New file.
72211
72212 2003-08-17  Bruno Haible  <bruno@clisp.org>
72213
72214         * modules/strndup (Files, Include): Add lib/strndup.h.
72215
72216 2003-08-17  Bruno Haible  <bruno@clisp.org>
72217
72218         * modules/euidaccess (Files): Add lib/euidaccess.h.
72219
72220 2003-08-17  Bruno Haible  <bruno@clisp.org>
72221
72222         * lib/strndup.h: New file.
72223
72224 2003-08-17  Bruno Haible  <bruno@clisp.org>
72225
72226         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72227         like AC_GNU_SOURCE.
72228         * modules/extensions (configure.ac): Comment out the invocation of
72229         gl_USE_SYSTEM_EXTENSIONS.
72230
72231 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72232
72233         Merges from coreutils, etc.
72234         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72235         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72236         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72237         fixing a typo.
72238         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72239         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72240
72241 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72242
72243         Document merge from coreutils.
72244         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72245         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72246         * modules/utime: Add m4/utimes-null.m4.
72247
72248 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72249
72250         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72251         space, undoing this 2003-08-12 change:
72252         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72253
72254 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72255
72256         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72257         strtoul.c from libc, undoing this 2003-08-12 change:
72258         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72259
72260 2003-08-16  Jim Meyering  <jim@meyering.net>
72261
72262         Merges from coreutils.
72263         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72264         prefix.  Adjust cache variables similarly.  Create 500 rather than
72265         just 300 files, to exercise bug on Darwin6.5, too.
72266         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72267         $missing_dir.
72268         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72269         AM_SYS_POSIX_TERMIOS.
72270         Reported by mkc@mathdogs.com.
72271         Also change use of $am_cv_sys_posix_termios
72272         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72273         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72274         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72275         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72276         in /proc/mounts until it finds one with matching device number.  This
72277         is unnecessary when the FILE argument *is* a mount point.  No stat call
72278         is necessary in that case.  So, disable the statvfs-testing code on
72279         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72280         as RedHat bug# 84846.
72281         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72282         to 1MB, so as not to render systems with no stack size limit (e.g.,
72283         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72284         Include <unistd.h>.  On some systems,
72285         it is required for the definition of _SC_PAGESIZE.
72286
72287 2003-08-16  Jim Meyering  <jim@meyering.net>
72288
72289         Merge from coreutils.
72290         * lib/xstrtoimax.c: #else #if -> #elif.
72291         * lib/xstrtoumax.c: Likewise.
72292
72293 2003-08-16  Jim Meyering  <jim@meyering.net>
72294
72295         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72296         * m4/utimes.m4: Removed.
72297         * m4/utimes-null.m4: Renamed from utimes.m4.
72298
72299         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72300         to 1MB, so as not to render systems with no stack size limit (e.g.,
72301         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72302         Include <unistd.h>.  On some systems,
72303         it is required for the definition of _SC_PAGESIZE.
72304
72305 2003-08-16  Jim Meyering  <jim@meyering.net>
72306         and Paul Eggert  <eggert@cs.ucla.edu>
72307
72308         Merges from coreutils, etc.
72309
72310         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72311         using the latest version from cvs.  This avoids problems with #line
72312         directives using a vendor (Sun) compiler.
72313         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72314         Don't set GETGROUPS_LIB here; now it's
72315         done via getgroups.m4's wrapper function.
72316         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72317         rather than just in sh-util/configure.in, so that the
72318         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72319         same.
72320         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72321         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72322         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72323         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72324         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72325         Remove code that is now done by the newly-required macros.
72326         Append $(EXEEXT) to DF_PROG.
72327         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72328         Do not invoke or require the following here,
72329         since prereq.m4 or some gnulib .m4 now does this for us:
72330         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72331         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72332         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72333         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72334         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72335         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72336         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72337         AC_FUNC_OBSTACK.
72338         Do not replace the following functions, as this is now the job
72339         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72340         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72341         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72342         atexit getpass, strdup, getpagesize.
72343         Replace 'raise'.
72344         Do not check for the following functions, as this is now the job
72345         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72346         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72347         setregid.
72348         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72349         Check for sys/sysctl.h.
72350         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72351         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72352         of checking for ssize_t ourselves.
72353
72354         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72355         Require every macro that gnulib/modules/* suggests for us.
72356         (jm_PREREQ_ADDEXT): New macro.
72357         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72358         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72359
72360         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72361         (gl_PHYSMEM): Use it.
72362         Also check for `table' function.
72363         Check for new headers and functions.
72364         Add check for sys/sysmp.h.
72365         With suggestions from Kaveh Ghazi.
72366         Ignore headers that are present but cannot be compiled.  This
72367         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72368         C 5.4.
72369
72370 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72371
72372         Document merge from coreutils.
72373         * modules/userspec: Depend on posixver.
72374         * modules/strftime: Depend on tzset.
72375
72376 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72377
72378         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72379         rather than tab, after '#' in shell-script copyright notices.
72380         Suggested by Bruno Haible.
72381
72382 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72383
72384         * config/srclist-update: Use three spaces, rather than tab, after '#'
72385         in shell-script copyright notices.  Suggested by Bruno Haible.
72386         Remove unnecessary parenthesization in regular expression.
72387
72388 2003-08-15  Jim Meyering  <jim@meyering.net>
72389
72390         Merge from coreutils.
72391         * lib/xgethostname.c: Include <stdlib.h>.
72392         (xghostname): Don't exit for anything other than memory-related
72393         failure; just return NULL.
72394         * lib/userspec.c: Include "posixver.h".
72395         (parse_user_spec): Accept `.' as a separator only
72396         in pre-POSIX-200112 mode.
72397         * lib/strtoimax.c: Use #elif rather than #else #if.
72398         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72399         Remove function, now that we can rely on a working tzset function.
72400         [!_LIBC]: Ensure that the required autoconf test has been run.
72401         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72402         Use underlying_strftime for %r.
72403         * lib/sha.c: Merge in some clean-up and optimization changes from
72404         glibc.
72405         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72406         Ensure that it is a multiple of 64.
72407         Rearrange loop exit tests so as to avoid performing an
72408         additional fread after encountering an error or EOF.
72409         * lib/realloc.c: Update copyright date.
72410
72411 2003-08-15  Jim Meyering  <jim@meyering.net>
72412         and Paul Eggert  <eggert@twinsun.com>
72413
72414         Merge from coreutils.
72415         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72416         member but strut utmpx does not.  Needed for AIX 4.3.3.
72417         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72418
72419 2003-08-15  Jim Meyering  <jim@meyering.net>
72420         and Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         Merges from coreutils, etc.
72423         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72424         Require gl_FUNC_TZSET_CLOBBER.
72425         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72426         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72427         members.
72428
72429 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72430
72431         Help the merge from coreutils.
72432         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72433         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72434         * m4/tzset.m4: Use it too.
72435
72436 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72437
72438         * modules/tzset: New file.
72439
72440 2003-08-14  Jim Meyering  <jim@meyering.net>
72441
72442         Merges from coreutils.
72443         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72444         variable names, rather than @FNMATCH_H@.
72445         * modules/alloca: Likewise for $(ALLOCA_H).
72446
72447         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72448         the three copies of the literal target, `fnmatch.h'.
72449         * modules/alloca (alloca.h): Likewise.
72450
72451 2003-08-14  Jim Meyering  <jim@meyering.net>
72452
72453         Merge from coreutils.
72454         * m4/tzset.m4: New file.
72455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72456         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72457         otherwise, AIX 5.1 systems would end up using the latter.
72458         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72459         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72460         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72461         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72462
72463 2003-08-14  Jim Meyering  <jim@meyering.net>
72464
72465         Merge from coreutils.
72466         * lib/obstack.h: Whitespace changes.
72467         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72468         and xcalloc return values.
72469         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72470         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72471         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72472         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72473         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72474         error from mntctl.
72475         Use mntctl's return value to drive the entry-processing loop, since
72476         we can't rely on the value of the vmt_length member in the last
72477         entry.  On some systems doing so could result in exhausting
72478         virtual memory.  Based in part on a patch from Mike Jetzer.
72479
72480 2003-08-14  Jim Meyering  <jim@meyering.net>
72481         and Paul Eggert  <eggert@twinsun.com>
72482
72483         Merges from coreutils, plus other fixes.
72484         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72485         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72486         for credits and details.  Thanks to Kaveh Ghazi for helping
72487         to keep these files in sync.
72488         (ARRAY_SIZE): Define it.
72489         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72490         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72491         (memcasecmp): Don't assume size_t fits in unsigned int.
72492         Remove casts and duplicate code.
72493         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72494         (memcpy): Remove definition.
72495         Merge in some clean-up and optimization changes from glibc.
72496         [BLOCKSIZE]: Move definition to top of file.
72497         Ensure that it is a multiple of 64.
72498         Rearrange loop exit tests so as to avoid performing an
72499         additional fread after encountering an error or EOF.
72500         * lib/md5.h (md5_uintptr): Define.
72501         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72502         return to the initial working directory.  Preserve errno
72503         for caller.
72504         * lib/idcache.c: Include "xalloc.h".
72505         (xmalloc, xrealloc): Remove decls.
72506         (getuser): Remove casts no longer required in C89.
72507         * lib/human.c: Include stdio.h, for sprintf.
72508         * lib/group-member.c: Include "xalloc.h".
72509         (xmalloc, xrealloc): Remove decls.
72510         (get_group_info): Remove casts no longer required in C89.
72511         * lib/getusershell.c (readname): Remove casts no longer required in
72512         C89.
72513         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72514         * lib/getline.c: Whitespace fix, from coreutils.
72515
72516 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72517
72518         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72519         Check for isascii.
72520
72521         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72522         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72523         Undo previous (whitespace-only) change.
72524
72525 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72526
72527         * lib/exclude.c: Include <ctype.h>
72528         (IN_CTYPE_DOMAIN): New macro.
72529         (is_space): New fn.
72530         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72531         and empty lines.
72532
72533         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72534         Undo previous (whitespace-only) change.
72535
72536 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72537
72538         * config/srclist-update: Change update back to the old behavior,
72539         leaving whitespace alone.  Use one 'sed' command rather than a
72540         pipeline.
72541         (fixlicense): Now a variable, not a function.
72542         (remove_trailing_blanks): Remove.
72543         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72544         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72545         Undo previous (whitespace-only) change.
72546
72547 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72548
72549         Merge from coreutils.
72550         * modules/euidaccess: Add lib_SOURCES, include for new
72551         file euidaccess.h
72552
72553 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72554
72555         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72556         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72557         Normalize leading white space and remove trailing white space.
72558
72559         Merge from coreutils
72560         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72561
72562         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72563         0.12.1.  These files are now being upgraded automatically by
72564         ../config/srclist-update.
72565
72566 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72567
72568         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72569         Normalize leading white space and remove trailing white space.
72570         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72571         notice, as per ../config/srclist-update.
72572
72573         Merge from coreutils.
72574         * lib/euidaccess.h: New file.
72575         * lib/euidaccess.c: Include it.
72576         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72577         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72578         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72579
72580 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72581
72582         * config/srclist-update: Add copyright notice.
72583         (remove_id_lines, remove_trailing_blanks): New constants.
72584         (fixfile): Use them to normalize spacing a bit in copied files.
72585         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72586         Normalize leading white space and remove trailing white space.
72587
72588         * config/texinfo.tex: Sync with texinfo.
72589
72590         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72591         strtoul.c from libc, to merge coreutils whitespace changes.
72592
72593         * config/srclist.txt: Get the following m4 files from gettext:
72594         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72595         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72596         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72597         wint_t.m4.
72598
72599 2003-08-12  Karl Berry  <karl@gnu.org>
72600
72601         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72602         been made.
72603
72604 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72605
72606         * modules/gnu-source, m4/gnu-source.m4:
72607         Remove; we're assuming Autoconf 2.54 or later now.
72608         Suggested by Bruno Haible.
72609         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72610
72611 2003-08-11  Bruno Haible  <bruno@clisp.org>
72612
72613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72614
72615 2003-08-11  Bruno Haible  <bruno@clisp.org>
72616
72617         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72618         (vasnprintf): Use it instead of wcslen.
72619
72620 2003-08-11  Bruno Haible  <bruno@clisp.org>
72621
72622         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72623         value to ensure that _Bool promotes to int. Use #define for _Bool when
72624         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72625
72626 2003-08-10  Karl Berry  <karl@gnu.org>
72627
72628         * lib/regex.h: update from libc (whitespace fix).
72629
72630 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72631
72632         Merge some files from coreutils.  These changes were
72633         originally made by Jim Meyering.
72634         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72635         many older Unixes require this.
72636         * lib/alloca.c (alloca): Remove cast to argument of free;
72637         no longer needed in C89.
72638         * lib/alloca_.h, regex.h: Fix white space to match
72639         what GNU indent does.
72640
72641 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72642
72643         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72644         apparently Emacs's Unicode mode got confused before my 2003-08-05
72645         checkin.
72646
72647 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72648
72649         * m4/extensions.m4: New file.
72650         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72651         Require gl_USE_SYSTEM_EXTENSIONS.
72652         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72653         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72654
72655 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72656
72657         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72658         * modules/extensions, modules/gnu-source: New files.
72659         * modules/timespec, modules/unlocked-io: Depend on extensions.
72660
72661 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72662
72663         * modules/restrict: New file.
72664         * MODULES.html.sh (func_all_modules): Add restrict.
72665         * modules/regex: Depend on restrict.
72666
72667 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72668
72669         * m4/restrict.m4: New file.
72670         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72671
72672 2003-08-07  Bruno Haible  <bruno@clisp.org>
72673
72674         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72675         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72676
72677 2003-08-07  Bruno Haible  <bruno@clisp.org>
72678
72679         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72680         makes the module 'getndelim2' compatible with the module 'getline'.
72681
72682 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72683
72684         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72685         byte with "\201" to avoid glitches when editing that source file
72686         with multi-gnome-terminal.
72687
72688 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72689
72690         * lib/bumpalloc.h: Remove.
72691
72692 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72693
72694         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72695         * modules/bumpalloc: Remove.
72696
72697 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72698
72699         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72700         GNU coding style.
72701
72702         Merge from coreutils.
72703         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72704         1. From glibc.
72705         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72706         from Karl Berry, implemented by Jim Meyering.
72707         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72708         from Dmitry V. Levin.
72709         Remove anachronistic cast of xrealloc.
72710         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72711         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72712         type. Otherwise, it wouldn't compile with at least /bin/cc on
72713         ymp-cray-unicos9.0.2.X.
72714         Combine two mostly-identical uses of alloca into one.
72715         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72716
72717 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72718
72719         [From Emacs.]
72720
72721         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72722         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72723         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72724         obsolete NLIST_NAME_UNION.
72725         [__GNU__]: Undef BSD and FSCALE.
72726         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72727
72728 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72729
72730         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72731         an enum type, so that it's guaranteed to promote to int.  See:
72732         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72733
72734 2003-08-03  Karl Berry  <karl@gnu.org>
72735
72736         * config/depcomp: update from automake.
72737
72738 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72739
72740         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72741         (strerror): Don't assume that a printable int fits in 14 bytes.
72742
72743 2003-07-31  Bruno Haible  <bruno@clisp.org>
72744
72745         * modules/getpass-gnu: New file.
72746         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72747
72748 2003-07-31  Bruno Haible  <bruno@clisp.org>
72749
72750         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72751
72752 2003-07-24  Karl Berry  <karl@gnu.org>
72753
72754         * config/missing: update from automake.
72755
72756 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72757             Bruno Haible  <bruno@clisp.org>
72758
72759         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72760         * lib/getline.c (getline, getdelim): Likewise.
72761         Remove _GNU_SOURCE define; now it's defined in config.h through
72762         m4/getline.m4.
72763
72764 2003-07-23  Karl Berry  <karl@gnu.org>
72765
72766         * config/config.sub: update from prep.
72767
72768 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72769
72770         * modules/xalloc (Depends-on): Add exitfail.
72771         * modules/xmemcoll: Likewise.
72772
72773 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72774
72775         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72776         over-parenthesization in macros.
72777
72778         Sync with coreutils.
72779
72780         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72781         required by C99.
72782
72783         Use `exit_failure' for xalloc and xmemcoll instead of their own
72784         private exit-failure variables.
72785         * lib/xalloc.h (xalloc_exit_failure): Remove.
72786         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72787         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72788         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72789         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72790         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72791
72792 2003-07-20  Jim Meyering  <jim@meyering.net>
72793
72794         * modules/closeout (Depends-on): Add exitfail.
72795         Suggestion from Bruno Haible.
72796
72797 2003-07-19  Karl Berry  <karl@gnu.org>
72798
72799         * config/config.sub: update from prep.
72800
72801 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72802
72803         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72804         Remove.
72805         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72806         to test that it can stand by itself.  Include "exitfail.h".
72807         Clients should set exit_failure instead.
72808         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72809
72810 2003-07-18  Bruno Haible  <bruno@clisp.org>
72811
72812         * modules/getndelim2: New file.
72813         * modules/getline: Share files with module getndelim2.
72814         * modules/getnline: Depend on getndelim2 instead of sharing files with
72815         it. Add getnline.c to lib_SOURCES.
72816         * MODULES.html.sh (func_all_modules): Add getndelim2.
72817
72818 2003-07-18  Bruno Haible  <bruno@clisp.org>
72819
72820         * m4/getndelim2.m4: New file.
72821         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72822         invoke gl_PREREQ_GETNDELIM2.
72823         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72824         gl_PREREQ_GETNDELIM2.
72825         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72826         gl_GETNDELIM2.
72827
72828 2003-07-18  Bruno Haible  <bruno@clisp.org>
72829
72830         * lib/getndelim2.h: New file.
72831         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72832         getndelim2.h.
72833         (getndelim2): Make non-static. Change return type to ssize_t.
72834         * lib/getline.h: Change argument names.
72835         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72836         * lib/getnline.c: Include getndelim2.h.
72837
72838 2003-07-18  Andreas Schwab  <schwab@suse.de>
72839
72840         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72841
72842 2003-07-17  Karl Berry  <karl@gnu.org>
72843
72844         * config/config.sub: update from prep.
72845
72846 2003-07-17  Bruno Haible  <bruno@clisp.org>
72847
72848         * modules/getnline: New file.
72849         * modules/getline: Add lib/getndelim2.c to source file list.
72850         * MODULES.html.sh (func_all_modules): Add getnline.
72851
72852 2003-07-17  Bruno Haible  <bruno@clisp.org>
72853
72854         * m4/getnline.m4: New file.
72855
72856 2003-07-17  Bruno Haible  <bruno@clisp.org>
72857
72858         * m4/Makefile.am.in: Remove file.
72859         * m4/Makefile.am: Remove file.
72860         * m4/Makefile.in: Remove file.
72861
72862 2003-07-17  Bruno Haible  <bruno@clisp.org>
72863
72864         * lib/getnline.h: New file.
72865         * lib/getnline.c: New file.
72866         * lib/getndelim2.c: New file, extracted from getline.c.
72867         (getndelim2): Renamed from getdelim2, with added nmax argument.
72868         * lib/getline.c: Include getndelim2.c.
72869         (getdelim2): Moved out to getndelim2.c.
72870         (getline, getdelim): Update.
72871
72872 2003-07-17  Bruno Haible  <bruno@clisp.org>
72873
72874         * lib/Makefile.am: Remove file.
72875         * lib/Makefile.in: Remove file.
72876
72877 2003-07-17  Bruno Haible  <bruno@clisp.org>
72878
72879         * configure.in: Remove file.
72880         * Makefile.in: Remove file.
72881
72882 2003-07-17  Bruno Haible  <bruno@clisp.org>
72883
72884         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72885
72886 2003-07-16  Karl Berry  <karl@gnu.org>
72887
72888         * config/srclist-update: was running fixlicense twice, which caused
72889                 texinfo.tex to be nullified for some reason.  Simplify,
72890                 $gplsrc is no longer needed as far as I can see?
72891
72892 2003-07-16  Jim Meyering  <jim@meyering.net>
72893
72894         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72895
72896 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72897
72898         * config/srclist.txt: Get the following files from gettext-runtime/intl
72899         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72900         ref-del.sin.  From Bruno Haible.
72901         * config/srclist-update (fixfile): Change grep pattern again, since the
72902         previous fix didn't work (there was another trailing $).  Use
72903         '[$]' to escape the $s.
72904
72905 2003-07-15  Karl Berry  <karl@gnu.org>
72906
72907         * lib/vasnprintf.c: update from gettext.
72908
72909 2003-07-15  Karl Berry  <karl@gnu.org>
72910
72911         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72912         gets expanded when surrounded by '$'.
72913
72914 2003-07-15  Jim Meyering  <jim@meyering.net>
72915
72916         * modules/save-cwd: Don't depend on error.  From Derek Price.
72917
72918 2003-07-15  Jim Meyering  <jim@meyering.net>
72919
72920         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72921
72922 2003-07-14  Simon Josefsson  <jas@extundo.com>
72923
72924         * modules/mempcpy: New file.
72925         * MODULES.html.sh (func_all_modules): Add mempcpy.
72926
72927 2003-07-14  Simon Josefsson  <jas@extundo.com>
72928
72929         * m4/mempcpy.m4: New file.
72930
72931 2003-07-14  Simon Josefsson  <jas@extundo.com>
72932
72933         * lib/mempcpy.h: New file.
72934         * lib/mempcpy.c: New file.
72935
72936 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72937
72938         * modules/getdate, modules/posixtm: Depend on mktime.
72939
72940 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72941
72942         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72943         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72944         unicodeio.c, unicodeio.h, unlocked-io.h:
72945         Switch from LGPL to GPL.
72946
72947 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72948
72949         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72950         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72951         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72952         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72953         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
72954         updated automatically by ../config/srclist-update.  This changes
72955         their license from LPGL to GPL.
72956
72957 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72958
72959         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
72960         assumed to refer to the root of the most recent stable gettext version.
72961         * config/srclistvars.sh: Add defaults for eggert.
72962         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
72963         Match "This program" as well as "The program".  This is needed
72964         for gettext.
72965
72966 2003-07-14  Jim Meyering  <jim@meyering.net>
72967
72968         Don't emit diagnostics.  Let callers do that.
72969         * lib/save-cwd.c: Don't include "error.h".
72970         (save_cwd): Don't call error.  Ensure that errno is valid
72971         when returning nonzero.
72972
72973         * lib/save-cwd.h (restore_cwd): Update prototype.
72974         * lib/save-cwd.c (restore_cwd): Remove two parameters.
72975         Simplify.  Don't call error upon failure.  Let callers do that.
72976         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
72977         when auditing is enabled.  But don't bother updating the #if.
72978
72979 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
72980
72981         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
72982         it breaks C++ compilation.
72983         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
72984
72985 2003-07-10  Simon Josefsson  <jas@extundo.com>
72986
72987         * modules/strchrnul (Makefile.am): Add strchrnul.h.
72988
72989 2003-07-10  Jim Meyering  <jim@meyering.net>
72990
72991         * m4/clock_time.m4: Remove trailing blank.
72992         * m4/intmax_t.m4: Likewise.
72993
72994 2003-07-10  Jim Meyering  <jim@meyering.net>
72995
72996         * lib/vasnprintf.c: Remove trailing blanks.
72997         Make cpp indentation consistent.
72998
72999 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73000
73001         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73002         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73003         Switch from LGPL to GPL.
73004
73005 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73006
73007         * config/srclist.txt: Sort sublists.  Add
73008         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73009         that differ from gnulib for one reason or another; we'd like this list
73010         to be smaller but for now let's document what we have.
73011
73012 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73013
73014         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73015         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73016         and sweeter "eval x=$x".
73017         * config/srclist.txt: Get lib/argp* from glibc.
73018
73019 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73020
73021         * lib/mktime.c: Fix some boundary cases and remove need for floating
73022         point.
73023
73024         Issue a compile-time diagnostic if time_t is floating point, or if
73025         two's complement arithmetic is not in effect, or if arithmetic
73026         right shift does not propagate the sign.  These assumptions were
73027         all in the original code but they weren't checked.
73028
73029         (TIME_T_MIDPOINT, verify): New macros.
73030         (__isleap): Remove; it has integer overflow problems.
73031         (leapyear): New function, without those problems.
73032         (ydhms_tm_diff): Remove; splitting into two parts.
73033         (ydhms_diff): New function, containing the arithmetic part of
73034         the old ydhms_tm_diff function.  Issue a compile-time
73035         diagnostic if we are not using C99 integer division.
73036         Avoid casts when possible.
73037         (guess_time_tm): New function, containing the checking part of
73038         the old ydhms_tm_diff function.  Return the new value, rather than
73039         the difference between it and the old.  Accept a new argument T
73040         so that *T specifies the old value.  Check for overflow in the result.
73041
73042         (__mktime_internal): Use a time_t offset, not a long int offset.
73043         This undoes the 2003-06-04 change, which is no longer needed now
73044         that we have better overflow checking.
73045         (localtime_offset): Likewise.
73046
73047         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73048         and long are 64-bit but int is only 32-bit.
73049         (ydhms_diff): Use long int to store year1 and yday1.
73050         Issue a compile-time diagnostic if long int is not wide enough.
73051
73052         (__mktime_internal): Use long int to store adjusted year and yday.
73053         Use plain C rather than preprocessor commands, if that doesn't
73054         affect efficiency.
73055         Check for overflow (and try to repair) after each probe
73056         rather than checking only at the very end.  This avoids some bugs
73057         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73058         does not equal GMT offset at maximum time).
73059         Use integer to check for overflow rather than floating point; this
73060         is more portable to non-IEEE hosts, and is a tad faster.
73061         When we detect that we are oscillating between two values,
73062         don't check whether tm_isdst has the requested value, since
73063         we already know the answer.  When tm_isdst has the wrong value,
73064         use a different heuristic to find the right one, based on the
73065         extreme values actually observed in practice in tz2003a,
73066         rather than the (overly optimistic) "previous 3 calendar quarters".
73067
73068         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73069         "T const" to accommodate glibc style.
73070         (check_result): Use less-confusing report format.  "long" -> "long int.
73071         (main): Likewise.
73072         Don't loop if the iteration overflows time_t.
73073         Allow a negative step in the iteration.
73074
73075 2003-07-06  Karl Berry  <karl@gnu.org>
73076
73077         * config/depcomp: update from automake.
73078         * config/config.sub: update from prep.
73079
73080 2003-07-03  Karl Berry  <karl@gnu.org>
73081
73082         * config/config.guess: update from prep.
73083
73084 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73085
73086         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73087         xreadlink.c now includes it unconditionally.
73088
73089 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73090
73091         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73092         having it depend on HAVE_SYS_TYPES_H.
73093
73094 2003-07-01  Bruno Haible  <bruno@clisp.org>
73095
73096         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73097         <sys/types.h> should be sufficient.
73098         Reported by Paul Eggert.
73099
73100 2003-06-26  Karl Berry  <karl@gnu.org>
73101
73102         * config/depcomp: update from automake.
73103
73104 2003-06-26  Bruno Haible  <bruno@clisp.org>
73105
73106         * modules/human: Depend on module stdbool.
73107
73108 2003-06-25  Bruno Haible  <bruno@clisp.org>
73109
73110         * modules/readlink: New file.
73111         * modules/xreadlink: Depend on it.
73112         * MODULES.html.sh (func_all_modules): Add readlink.
73113
73114 2003-06-25  Bruno Haible  <bruno@clisp.org>
73115
73116         * m4/readlink.m4: New file.
73117
73118 2003-06-25  Bruno Haible  <bruno@clisp.org>
73119
73120         * lib/readlink.c: New file.
73121
73122 2003-06-22  Karl Berry  <karl@gnu.org>
73123
73124         * config/srclist.txt: update mkinstalldirs from automake.
73125         * config/mkinstalldirs: update.
73126
73127 2003-06-22  Bruno Haible  <bruno@clisp.org>
73128
73129         Portability to mingw32.
73130         * m4/ssize_t.m4: New file, from GNU gettext.
73131         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73132         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73133
73134 2003-06-22  Bruno Haible  <bruno@clisp.org>
73135
73136         * modules/safe-read: Add m4/ssize_t.m4.
73137         * modules/xreadlink: Add m4/ssize_t.m4.
73138
73139 2003-06-20  Bruno Haible  <bruno@clisp.org>
73140
73141         Assume C89, so PARAMS isn't needed.
73142         * lib/unicodeio.h (PARAMS): Remove.
73143         * lib/unicodeio.c: Don't use PARAMS.
73144
73145 2003-06-18  Karl Berry  <karl@gnu.org>
73146
73147         * config/config.{guess,sub}: update from prep.
73148
73149 2003-06-18  Jim Meyering  <jim@meyering.net>
73150
73151         Merge changes from coreutils.
73152         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73153         Remove explicit declarations of xmalloc and realloc.
73154         Include xalloc.h.
73155         (read_utmp): Remove anachronistic cast of xmalloc.
73156
73157 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73158
73159         Assume C89, so PARAMS isn't needed.
73160         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73161         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73162         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73163         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73164         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73165         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73166         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73167         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73168         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73169         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73170         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73171         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73172         no longer needed. Anyway, config.h should always be included before any
73173         other file.
73174
73175 2003-06-11  Simon Josefsson  <jas@extundo.com>
73176
73177         * modules/sysexits: New file.
73178         * MODULES.html.sh (func_all_modules): Add sysexits.
73179
73180 2003-06-11  Simon Josefsson  <jas@extundo.com>
73181
73182         * lib/sysexit_.h: New file.
73183
73184 2003-06-11  Derek Price  <derek@ximbiot.com>
73185
73186         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73187         necessary.
73188
73189 2003-06-11  Bruno Haible  <bruno@clisp.org>
73190
73191         * m4/sysexits.m4: New file.
73192
73193 2003-06-10  Simon Josefsson  <jas@extundo.com>
73194
73195         * lib/argp.h: New file, from glibc.
73196         * lib/argp-ba.c: New file, from glibc.
73197         * lib/argp-eexst.c: New file, from glibc.
73198         * lib/argp-fmtstream.c: New file, from glibc.
73199         * lib/argp-fmtstream.h: New file, from glibc.
73200         * lib/argp-fs-xinl.c: New file, from glibc.
73201         * lib/argp-help.c: New file, from glibc.
73202         * lib/argp-namefrob.h: New file, from glibc.
73203         * lib/argp-parse.c: New file, from glibc.
73204         * lib/argp-pv.c: New file, from glibc.
73205         * lib/argp-pvh.c: New file, from glibc.
73206         * lib/argp-xinl.c: New file, from glibc.
73207
73208 2003-06-10  Simon Josefsson  <jas@extundo.com>
73209
73210         * modules/strchrnul: New file.
73211
73212 2003-06-10  Simon Josefsson  <jas@extundo.com>
73213
73214         * modules/argp: New file.
73215
73216 2003-06-10  Simon Josefsson  <jas@extundo.com>
73217
73218         * m4/strchrnul.m4: New file.
73219
73220 2003-06-10  Simon Josefsson  <jas@extundo.com>
73221
73222         * lib/strchrnul.h: New file.
73223         * lib/strchrnul.c: New file.
73224
73225 2003-06-10  Bruno Haible  <bruno@clisp.org>
73226
73227         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73228
73229 2003-06-07  Karl Berry  <karl@gnu.org>
73230
73231         * config/config.{guess,sub}: update from prep.
73232
73233 2003-06-07  Jim Meyering  <jim@meyering.net>
73234
73235         * modules/strtod: Use $(...) notation, not @...@ for
73236         AC_REPLACE'd variables.
73237         * modules/localcharset: Likewise.
73238
73239 2003-06-07  Jim Meyering  <jim@meyering.net>
73240
73241         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73242         in place of my name in the copyright comment.
73243         Remove definition and uses of __P.
73244
73245         From coreutils.
73246         * lib/stat.c: Don't declare xmalloc explicitly.
73247         Instead, include "xalloc.h".
73248         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73249         xrealloc, and xcalloc return values.
73250         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73251         Improve comment.
73252         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73253
73254 2003-06-07  Bruno Haible  <bruno@clisp.org>
73255
73256         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73257         avoid AC_CONFIG_LINKS.
73258         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73259         fnmatch.h, to avoid AC_CONFIG_LINKS.
73260         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73261
73262 2003-06-07  Bruno Haible  <bruno@clisp.org>
73263
73264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73265         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73266         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73267         directory.
73268         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73269         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73270         directory.
73271
73272 2003-06-06  Jim Meyering  <jim@meyering.net>
73273
73274         Merge from coreutils.
73275         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73276         Consolidate declarations and initializations of *_base* locals.
73277
73278         Merge from coreutils.
73279         This avoids a core dump on systems without GNU putenv,
73280         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73281         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73282         (unsetenv): New static function, from GNU libc.
73283         (rpl_putenv): Use it.
73284
73285         * lib/modechange.c: Remove trailing blanks.
73286
73287         Merge from coreutils.
73288         * lib/fsusage.c: Remove declaration of statfs.
73289         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73290
73291         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73292
73293 2003-06-06  Jim Meyering  <jim@meyering.net>
73294
73295         * lib/stdbool_.h: Renamed from stdbool.h.in.
73296
73297 2003-06-06  Jim Meyering  <jim@meyering.net>
73298             Bruno Haible  <bruno@clisp.org>
73299
73300         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73301         Adjust Makefile.am snippet not to redirect directly to target.
73302         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73303
73304 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73305
73306         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73307         mismatch, look in future quarters as well as past.  This fixes a
73308         bug when processing fall-backwards gaps immediately after a long
73309         period of daylight-saving time.
73310
73311         * lib/mktime.c: Assume freestanding C89 or better.
73312         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73313         (__P): Remove; not used.
73314         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73315         (mktime, not_equal_tm, print_tm, check_result,
73316         main): Use prototypes.  Use const * where appropriate.
73317         (main): Fix typo in testing code that uncovered by above changes.
73318         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73319
73320 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73321
73322         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73323         locale.h, localeconv.  This merges changes from coreutils.
73324
73325         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73326         It can be removed after the next Autoconf is released.
73327         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73328         needed.
73329
73330 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73331
73332         * lib/mktime.c: Fix Debian bug 177940
73333         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73334         (localtime_offset): Now long int, not time_t, because we want it
73335         to be guaranteed to be signed.  All uses changed.
73336         (__mktime_internal): If overflow would occur when adding offset,
73337         don't add it.
73338
73339         Merge 'human' changes from coreutils.  Rewrite to support
73340         locale-specific notations like thousands separators.
73341         * lib/human.c: Simplify authorship notice.
73342         Include human.h immediately after config.h.
73343         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73344         <limits.h>: Do not include, since human.h does.
73345         (SIZE_MAX, UINTMAX_MAX): New macros.
73346         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73347         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73348         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73349         (power_letter): Renamed from suffixes.
73350         (generate_suffix_backwards): Remove.
73351         (adjust_value): Now takes int style (because of human.h changes)
73352         and long double value (for greater precision on some platforms).
73353         (group_number): New function.
73354         (human_readable): Use it.  Use integer options, not enum.
73355         Put the options before the sizes in the arg list.
73356         Support all the new options.
73357         The old human_readable function has been removed;
73358         use inttostr.h instead.
73359         (human_readable, default_block_size, humblock):
73360         Use uintmax_t, not int, for block sizes.
73361         (human_readable_inexact, block_size_types): Remove.
73362         (block_size_opts): New constant.
73363         (human_options): Renamed from human_block_size, with new signature
73364         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73365         * lib/human.h: Add copyright and authorship notice.
73366         Include <limits.h> and <stdbool.h> unconditionally.
73367         (PARAMS): Remove.  All uses removed.
73368         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73369         (enum human_inexact_style): Remove tag; now a nameless enum.
73370         (human_floor, human_ceiling, human_round_to_even): Now have
73371         values 2, 0, 1 rather than -1, 1, 0.
73372         (human_group_digits, human_suppress_point_zero, human_autoscale,
73373         human_base_1024, human_SI, human_B): New constants.
73374         (human_readable_inexact, human_block_size): Remove.
73375         (human_readable): Size args are now uintmax_t, not int.
73376         (human_options): New decl.
73377
73378         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73379         unnecessary now that we assume C89 or better.  This change
73380         imported from coreutils.
73381
73382         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73383         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73384         in the 2003-05-30 sync from glibc.
73385
73386         .h files should stand alone, but we shouldn't include <sys/types.h>
73387         if we can get away with just <stddef.h>.
73388
73389         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73390         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73391         rather than <sys/types.h>, as we merely need size_t.
73392         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73393         to get size_t.
73394         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73395         Include <stdio.h>, to get FILE.
73396         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73397         memcasecmp.h has included <stddef.h> and all we need is size_t.
73398         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73399         our interface, instead of including <sys/types.h>
73400
73401 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73402
73403         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73404         now, as glibc mktime is buggy on non-glibc systems.
73405
73406 2003-06-03  Karl Berry  <karl@gnu.org>
73407
73408         * config/config.sub: update from prep.
73409
73410 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73411
73412         [from coreutils]
73413         Fix some minor time-related bugs with POSIX time arguments.
73414         Some valid time stamps were being rejected (notably -1, and
73415         time stamps before 1900 on 64-bit hosts).  And some invalid
73416         time stamps were being accepted, e.g. September 31.
73417
73418         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73419         that we can return (time_t) -1 successfully.
73420         * lib/posixtm.c: Likewise.
73421         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73422         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73423         (t): Remove static var.
73424         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73425         of static var.  All uses changed.
73426         (year): Do not reject years before 1900; they can occur with
73427         64-bit time_t.
73428         (posix_time_parse): Do not check for out-of-range components;
73429         that is now the caller's responsibility, since our checks were
73430         only approximations.
73431         (posixtime): Use mktime to check for out-of-range components,
73432         since it knows them exactly.
73433         If mktime returns (time_t) -1, check whether an error actually occurred
73434         by invoking localtime on -1.
73435         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73436         posixtime failures better.
73437         Improve the test data (in comments only).
73438
73439 2003-06-02  Karl Berry  <karl@gnu.org>
73440
73441         * config/mkinstalldirs (version): new variable.
73442         (--version): new option.
73443         (usage): improve message.
73444
73445 2003-05-30  Karl Berry  <karl@gnu.org>
73446
73447         * lib/mktime.c: update from libc.
73448
73449 2003-05-30  Bruno Haible  <bruno@clisp.org>
73450
73451         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73452         * config/config.rpath: Upgrade to gettext-0.12.1.
73453
73454 2003-05-30  Bruno Haible  <bruno@clisp.org>
73455
73456         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73457         * m4/nls.m4: New file, from gettext-0.12.1.
73458         * m4/po.m4: New file, from gettext-0.12.1.
73459         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73460
73461 2003-05-30  Bruno Haible  <bruno@clisp.org>
73462
73463         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73464         * lib/localcharset.h: Likewise.
73465         * lib/localcharset.c: Likewise.
73466
73467 2003-05-29  Karl Berry  <karl@gnu.org>
73468
73469         * config/config.rpath: update from gettext.
73470
73471 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73472
73473         Assume the headers required for C89 freestanding compilers.
73474         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73475         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73476         * m4/human.m4 (gl_HUMAN): Likewise.
73477         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73478         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73479         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73480         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73481         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73482         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73483
73484 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73485
73486         Assume the headers required for C89 freestanding compilers.
73487         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73488         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73489         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73490         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73491         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73492         define, since <limits.h> is guaranteed to do that.
73493         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73494         * lib/exclude.c: Include <stdbool.h> unconditionally.
73495         * lib/tempname.c: Include <stddef.h> unconditionally.
73496         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73497         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73498         <stddef.h> does that.
73499         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73500         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73501         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73502         needed.
73503         * lib/xstrtol.c: Likewise.
73504         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73505         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73506
73507         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73508         warnings on some platforms.
73509
73510         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73511         arbitrarily.
73512
73513 2003-05-26  Jim Meyering  <jim@meyering.net>
73514
73515         Merge in a change from coreutils:
73516         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73517         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73518         that condition, rather than `-1' which is slightly misleading.
73519         Change the name of the cache variable to have the gl_ prefix.
73520         Prompted by a patch from Richard Dawe for DJGPP.
73521
73522 2003-05-24  Karl Berry  <karl@gnu.org>
73523
73524         * config/config.guess: update from prep.
73525
73526 2003-05-22  Karl Berry  <karl@gnu.org>
73527
73528         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73529
73530 2003-05-20  Karl Berry  <karl@gnu.org>
73531
73532         * config/config.guess: update from prep.
73533
73534 2003-05-18  Karl Berry  <karl@gnu.org>
73535
73536         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73537         might actually be set by the user.
73538
73539         * config/depcomp, install-sh, mdate-sh: update from automake.
73540
73541 2003-05-17  Bruno Haible  <bruno@clisp.org>
73542
73543         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73544         invalid expansion for AC_EGREP_CPP.
73545         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73546         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73547         Suggested by Akim Demaille <akim@epita.fr> in
73548         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73549
73550 2003-05-12  Jim Meyering  <jim@meyering.net>
73551
73552         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73553         the space-padded-by-default conversion specifiers, %e, %k, %l.
73554
73555 2003-05-12  Bruno Haible  <bruno@clisp.org>
73556
73557         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73558         the string is longer than 4 KB.
73559
73560 2003-05-11  Karl Berry  <karl@gnu.org>
73561
73562         * config/config.{guess,sub}: update from prep.
73563
73564 2003-05-09  Bruno Haible  <bruno@clisp.org>
73565
73566         * modules/error: Add m4/strerror_r.m4 to file list.
73567
73568 2003-05-03  Bruno Haible  <bruno@clisp.org>
73569
73570         Upgrade to Unicode-4.0.
73571         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73572         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73573         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73574         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73575         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73576         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73577         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73578         Change width of U+E0100..U+E01EF from 1 to 0.
73579
73580 2003-04-25  Jim Meyering  <jim@meyering.net>
73581
73582         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73583         of type size_t, not int.
73584
73585 2003-04-25  Bruno Haible  <bruno@clisp.org>
73586
73587         * lib/copy-file.c: Include <stddef.h>, for size_t.
73588
73589 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73590
73591         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73592         code which expansion is under static control.  Patch imported from
73593         Akim Demaille's patch to Bison; see
73594         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73595
73596 2003-04-14  Bruno Haible  <bruno@clisp.org>
73597
73598         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73599
73600 2003-04-11  Jim Meyering  <jim@meyering.net>
73601
73602         Merge changes from Coreutils.
73603
73604         2003-03-22  Jim Meyering  <jim@meyering.net>
73605
73606         * lib/strftime.c (widen): Cast alloca return value to proper type.
73607
73608         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73609
73610         From GNU libc.
73611         * lib/strftime.c (my_strftime): Handle very large width
73612         specifications for numeric values correctly.  Improve checks for
73613         overflow.
73614
73615         2003-01-19  Jim Meyering  <jim@meyering.net>
73616
73617         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73618         definitions.
73619         (nl_get_alt_digit) [! defined my_strftime]: Define.
73620         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73621         _nl_get_alt_digit and _nl_get_walt_digit.
73622
73623         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73624         libc. These changes have no effect outside of _LIBC.
73625
73626 2003-04-10  Bruno Haible  <bruno@clisp.org>
73627
73628         * modules/findprog: New file.
73629         * MODULES.html.sh (func_all_modules): Add it.
73630
73631 2003-04-10  Bruno Haible  <bruno@clisp.org>
73632
73633         * m4/findprog.m4: New file.
73634         * m4/eaccess.m4: New file.
73635
73636 2003-04-10  Bruno Haible  <bruno@clisp.org>
73637
73638         * lib/findprog.h: New file, from GNU gettext.
73639         * lib/findprog.c: New file, from GNU gettext.
73640
73641 2003-04-05  Jim Meyering  <jim@meyering.net>
73642
73643         Merge changes from Coreutils.
73644
73645         * lib/exclude.h (PARAMS): Remove definition and uses.
73646         * lib/exclude.c: Remove uses of `PARAMS'.
73647
73648         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73649         Add test-cases for DOS filenames. Declare program_name.
73650         (main): Set up program_name.  Patch by Rich Dawe.
73651
73652         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73653         error from mntctl.
73654         Use mntctl's return value to drive the entry-processing loop, since
73655         we can't rely on the value of the vmt_length member in the last
73656         entry.  On some systems doing so could result in exhausting
73657         virtual memory.  Based in part on a patch from Mike Jetzer.
73658
73659 2003-04-04  Bruno Haible  <bruno@clisp.org>
73660
73661         * modules/linebreak: New file.
73662         * MODULES.html.sh (func_all_modules): Add it.
73663
73664 2003-04-04  Bruno Haible  <bruno@clisp.org>
73665
73666         * m4/linebreak.m4: New file.
73667
73668 2003-04-04  Bruno Haible  <bruno@clisp.org>
73669
73670         * lib/linebreak.h: New file, from GNU gettext.
73671         * lib/linebreak.c: New file, from GNU gettext with slight
73672         modifications.
73673         * lib/lbrkprop.h: New file, from GNU gettext.
73674
73675 2003-04-03  Bruno Haible  <bruno@clisp.org>
73676
73677         * modules/utf8-ucs4: New file.
73678         * modules/utf16-ucs4: New file.
73679         * modules/ucs4-utf8: New file.
73680         * modules/ucs4-utf16: New file.
73681         * MODULES.html.sh (func_all_modules): Add them.
73682
73683 2003-04-03  Bruno Haible  <bruno@clisp.org>
73684
73685         * m4/utf-ucs4.m4: New file.
73686         * m4/ucs4-utf.m4: New file.
73687
73688 2003-04-03  Bruno Haible  <bruno@clisp.org>
73689
73690         * lib/utf8-ucs4.h: New file, from GNU gettext.
73691         * lib/utf16-ucs4.h: New file, from GNU gettext.
73692         * lib/ucs4-utf8.h: New file, from GNU gettext.
73693         * lib/ucs4-utf16.h: New file, from GNU gettext.
73694
73695 2003-04-02  Bruno Haible  <bruno@clisp.org>
73696
73697         * modules/binary-io: New file.
73698         * MODULES.html.sh (func_all_modules): Add it.
73699
73700 2003-04-02  Bruno Haible  <bruno@clisp.org>
73701
73702         * lib/binary-io.h: New file, from GNU gettext.
73703
73704 2003-04-01  Bruno Haible  <bruno@clisp.org>
73705
73706         * modules/pathname: New file.
73707         * MODULES.html.sh (func_all_modules): Add it.
73708
73709 2003-04-01  Bruno Haible  <bruno@clisp.org>
73710
73711         * lib/pathname.h: New file, from GNU gettext.
73712         * lib/concatpath.c: New file, from GNU gettext.
73713
73714 2003-03-30  Bruno Haible  <bruno@clisp.org>
73715
73716         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73717
73718 2003-03-30  Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73721         function chown() doesn't exist.
73722
73723 2003-03-28  Bruno Haible  <bruno@clisp.org>
73724
73725         * modules/copy-file: New file.
73726         * MODULES.html.sh (func_all_modules): Add it.
73727
73728 2003-03-28  Bruno Haible  <bruno@clisp.org>
73729
73730         * m4/copy-file.m4: New file.
73731
73732 2003-03-28  Bruno Haible  <bruno@clisp.org>
73733
73734         * lib/copy-file.h: New file, from GNU gettext.
73735         * lib/copy-file.c: New file, from GNU gettext.
73736
73737 2003-03-18  Jim Meyering  <jim@meyering.net>
73738
73739         * lib/quote.c (quote_n): Fix typo in comment.
73740
73741 2003-03-18  Bruno Haible  <bruno@clisp.org>
73742
73743         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73744         checking.
73745         * m4/onceonly_2_57.m4: Likewise.
73746
73747 2003-03-17  Bruno Haible  <bruno@clisp.org>
73748
73749         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73750         (m4_quote): Remove macro.
73751         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73752
73753 2003-03-14  Jim Meyering  <jim@meyering.net>
73754
73755         Merge changes from Coreutils.
73756         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73757         to be const, in order to avoid warnings.
73758         (obstack_room): Likewise.
73759         (obstack_empty_p): Likewise.
73760
73761 2003-03-14  Bruno Haible  <bruno@clisp.org>
73762
73763         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73764         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73765
73766 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73767
73768         Merge changes from Bison.
73769         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73770         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73771         when compiling Bison 1.875's `bitset bset = obstack_alloc
73772         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73773         * lib/hash.c: Include <stdbool.h> unconditionally.
73774
73775 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73776
73777         * m4/onceonly.m4 (m4_quote): New macro.
73778         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73779         Quote AC_FOREACH variable-expansions properly.
73780
73781 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73782
73783         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73784
73785 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73786
73787         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73788         Reported by Bruce Becker; see:
73789         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73790
73791 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73792             Bruno Haible  <bruno@clisp.org>
73793
73794         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73795         Reported by John Hughes, see
73796         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73797
73798 2003-02-20  Bruno Haible  <bruno@clisp.org>
73799
73800         * MODULES.html.sh (func_all_modules): Add poll.
73801
73802 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73803
73804         * modules/poll: New file.
73805
73806 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73807
73808         * lib/poll_.h: New file.
73809         * lib/poll.c: New file.
73810
73811 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73812
73813         * m4/poll.m4: New file.
73814
73815 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73816
73817         * modules/mathl: New file.
73818
73819 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73820
73821         * lib/mathl.h: New file.
73822         * lib/acosl.c: New file.
73823         * lib/asinl.c: New file.
73824         * lib/atanl.c: New file.
73825         * lib/ceill.c: New file.
73826         * lib/cosl.c: New file.
73827         * lib/expl.c: New file.
73828         * lib/floorl.c: New file.
73829         * lib/frexpl.c: New file.
73830         * lib/ldexpl.c: New file.
73831         * lib/logl.c: New file.
73832         * lib/sincosl.c: New file.
73833         * lib/sinl.c: New file.
73834         * lib/sqrtl.c: New file.
73835         * lib/tanl.c: New file.
73836         * lib/trigl.c: New file.
73837         * lib/trigl.h: New file.
73838
73839 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73840
73841         * m4/mathl.m4: New file.
73842
73843 2003-02-18  Bruno Haible  <bruno@clisp.org>
73844
73845         * MODULES.html.sh (func_all_modules): Add mathl.
73846
73847 2003-02-17  Bruno Haible  <bruno@clisp.org>
73848
73849         * modules/mkdtemp: New module.
73850         * MODULES.html.sh (func_all_modules): Add it.
73851
73852 2003-02-17  Bruno Haible  <bruno@clisp.org>
73853
73854         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73855
73856 2003-02-17  Bruno Haible  <bruno@clisp.org>
73857
73858         * lib/mkdtemp.h: New file, from GNU gettext.
73859         * lib/mkdtemp.c: New file, from GNU gettext.
73860
73861 2003-02-02  Jim Meyering  <jim@meyering.net>
73862
73863         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73864         e.g. glibc-2.2.93.
73865
73866 2003-01-31  Bruno Haible  <bruno@clisp.org>
73867
73868         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73869         'rpl_rename'.
73870         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73871         'rpl_strnlen'.
73872         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73873         'rpl_strtod'.
73874         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73875         'rpl_utime'.
73876
73877 2003-01-31  Bruno Haible  <bruno@clisp.org>
73878
73879         * lib/rename.c: #undef rename before defining rpl_rename.
73880         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73881
73882 2003-01-30  Bruno Haible  <bruno@clisp.org>
73883
73884         * modules/vasnprintf, modules/vasprintf: New modules.
73885         * MODULES.html.sh (func_all_modules): Add them.
73886
73887 2003-01-30  Bruno Haible  <bruno@clisp.org>
73888
73889         * m4/signed.m4: New file, from GNU gettext.
73890         * m4/longdouble.m4: New file, from GNU gettext.
73891         * m4/wchar_t.m4: New file, from GNU gettext.
73892         * m4/wint_t.m4: New file, from GNU gettext.
73893         * m4/vasnprintf.m4: New file.
73894         * m4/vasprintf.m4: New file.
73895
73896 2003-01-30  Bruno Haible  <bruno@clisp.org>
73897
73898         * lib/printf-args.h: New file, from GNU gettext.
73899         * lib/printf-args.c: New file, from GNU gettext.
73900         * lib/printf-parse.h: New file, from GNU gettext.
73901         * lib/printf-parse.c: New file, from GNU gettext.
73902         * lib/vasnprintf.h: New file, from GNU gettext.
73903         * lib/vasnprintf.c: New file, from GNU gettext.
73904         * lib/asnprintf.c: New file, from GNU gettext.
73905         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73906         * lib/vasprintf.c: New file, from GNU gettext.
73907         * lib/asprintf.c: New file, from GNU gettext.
73908
73909 2003-01-29  Bruno Haible  <bruno@clisp.org>
73910
73911         * modules/stpncpy: New module.
73912         * MODULES.html.sh (func_all_modules): Add it.
73913
73914 2003-01-29  Bruno Haible  <bruno@clisp.org>
73915
73916         * m4/stpncpy.m4: New file.
73917
73918 2003-01-29  Bruno Haible  <bruno@clisp.org>
73919
73920         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73921         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73922
73923 2003-01-28  Bruno Haible  <bruno@clisp.org>
73924
73925         * modules/c-ctype: New module.
73926         * MODULES.html.sh (func_all_modules): Add it.
73927
73928 2003-01-28  Bruno Haible  <bruno@clisp.org>
73929
73930         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73931         Paul Eggert.
73932         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73933         Paul Eggert.
73934
73935 2003-01-27  Bruno Haible  <bruno@clisp.org>
73936
73937         * modules/xsetenv: New module.
73938         * MODULES.html.sh (func_all_modules): Add it.
73939
73940 2003-01-27  Bruno Haible  <bruno@clisp.org>
73941
73942         * lib/xsetenv.h: New file, from GNU gettext.
73943         * lib/xsetenv.c: New file, from GNU gettext.
73944
73945 2003-01-23  Jim Meyering  <jim@meyering.net>
73946
73947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73948         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73949
73950 2003-01-23  Bruno Haible  <bruno@clisp.org>
73951
73952         * modules/minmax: New module.
73953         * MODULES.html.sh (func_all_modules): Add it.
73954
73955 2003-01-23  Bruno Haible  <bruno@clisp.org>
73956
73957         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
73958         Eggert.
73959
73960 2003-01-22  Bruno Haible  <bruno@clisp.org>
73961
73962         * modules/exit: New module.
73963         * MODULES.html.sh (func_all_modules): Add it.
73964
73965 2003-01-22  Bruno Haible  <bruno@clisp.org>
73966
73967         * lib/exit.h: New file, from GNU gettext.
73968
73969 2003-01-19  Bruno Haible  <bruno@clisp.org>
73970
73971         * gnulib-tool: Recognize option --extract-maintainer.
73972         (func_get_maintainer): New function.
73973         * modules/*: Add Maintainer entry.
73974
73975 2003-01-16  Jim Meyering  <jim@meyering.net>
73976
73977         * m4/regex.m4: The `regex' struct is both input and output.
73978         Initialize it before each use.  Patch by Tim Waugh.
73979
73980 2003-01-16  Bruno Haible  <bruno@clisp.org>
73981
73982         * MODULES.html.sh: Add a table of contents. Add the module name as
73983         leftmost column. Add hyperlinks.
73984
73985 2003-01-15  Bruno Haible  <bruno@clisp.org>
73986
73987         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
73988
73989 2003-01-15  Bruno Haible  <bruno@clisp.org>
73990
73991         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
73992         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
73993         suffix.
73994
73995 2003-01-15  Bruno Haible  <bruno@clisp.org>
73996
73997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
73998
73999 2003-01-15  Bruno Haible  <bruno@clisp.org>
74000
74001         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74002         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74003
74004 2003-01-14  Jim Meyering  <jim@meyering.net>
74005
74006         * lib/same.c (same_name): Tweak a comment.
74007
74008 2003-01-14  Bruno Haible  <bruno@clisp.org>
74009
74010         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74011         when a string comparison is sufficient.
74012
74013 2003-01-14  Bruno Haible  <bruno@clisp.org>
74014
74015         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74016         'unsigned int'.
74017
74018 2003-01-14  Bruno Haible  <bruno@clisp.org>
74019
74020         * lib/hash-pjw.c: Add comment about low quality of this function.
74021
74022 2003-01-13  Bruno Haible  <bruno@clisp.org>
74023
74024         * modules/stpcpy: Distribute lib/stpcpy.h.
74025         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74026
74027 2003-01-13  Bruno Haible  <bruno@clisp.org>
74028
74029         * modules/*: Add a description.
74030         * modules/strpbrk: Fix Makefile.am snippet.
74031         * modules/strtoimax: Fix dependencies.
74032         * modules/strtoumax: Likewise.
74033
74034 2003-01-13  Bruno Haible  <bruno@clisp.org>
74035
74036         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74037         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74038         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74039
74040 2003-01-13  Bruno Haible  <bruno@clisp.org>
74041
74042         * gnulib-tool (func_create_testdir): Store config/* files in the main
74043         directory.
74044         * config.rpath: Move to ...
74045         * config/config.rpath: ... here.
74046         * modules/gettext: Contains config/config.rpath, not config.rpath.
74047         * modules/iconv: Likewise.
74048
74049 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74050
74051         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74052         to avoid collisions with libcurses and libreadline.
74053
74054         * m4/getstr.m4: Remove.
74055         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74056
74057 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74058
74059         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74060         to avoid collisions with libcurses and libreadline.
74061
74062         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74063         * lib/getstr.h, getstr.c: Remove.
74064         * lib/getline.c: Include "getline.h", to check interface.
74065         Move body of old getstr.c here: this defines MIN_CHUNK and
74066         declares getdelim2, which is renamed from getstr.
74067         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74068
74069         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74070         All uses changed.
74071         * lib/linebuffer.h: Likewise.
74072         (readline): Remove backward-compatibility macro.
74073
74074 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74075
74076         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74077         to avoid collisions with libcurses and libreadline.
74078         * getstr: Remove.
74079         * MODULES.html.sh: Remove getstr.
74080         * modules/getline: Depend on unlocked-io, not getstr.
74081
74082 2003-01-12  Jim Meyering  <jim@meyering.net>
74083
74084         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74085
74086 2003-01-10  Bruno Haible  <bruno@clisp.org>
74087
74088         * modules/alloca: Change Makefile.am requirements. Simplify Include
74089         requirements. Add lib/alloca_.h to file list.
74090
74091 2003-01-10  Bruno Haible  <bruno@clisp.org>
74092
74093         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74094
74095 2003-01-10  Bruno Haible  <bruno@clisp.org>
74096
74097         * lib/alloca_.h: New file.
74098         * lib/getdate.y: Unconditionally include alloca.h.
74099         * lib/makepath.c: Likewise.
74100         * lib/setenv.c: Likewise.
74101         * lib/userspec.c: Likewise.
74102
74103 2003-01-09  Karl Berry  <karl@gnu.org>
74104
74105         * MODULES.html.sh: include `dirname $0` in PATH, to find
74106         gnulib-tool.
74107
74108 2003-01-09  Bruno Haible  <bruno@clisp.org>
74109
74110         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74111         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74112
74113 2003-01-09  Bruno Haible  <bruno@clisp.org>
74114
74115         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74116
74117 2003-01-09  Bruno Haible  <bruno@clisp.org>
74118
74119         * lib/stdbool.h.in: New file.
74120
74121 2003-01-09  Bruno Haible  <bruno@clisp.org>
74122
74123         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74124         * MODULES.html.sh: Likewise.
74125
74126 2003-01-08  Jim Meyering  <jim@meyering.net>
74127
74128         * lib/full-write.c: Undefine and define-away `const' after inclusion
74129         of errno.h, not before.  Suggestion from Bruno Haible.
74130
74131 2003-01-08  Bruno Haible  <bruno@clisp.org>
74132
74133         * modules/full-read: Depend on full-write.
74134
74135 2003-01-08  Bruno Haible  <bruno@clisp.org>
74136
74137         * lib/safe-read.c: Include specification header first, to ensure its
74138         selfcontainedness.
74139         * lib/full-write.c: Likewise.
74140
74141 2003-01-07  Jim Meyering  <jim@meyering.net>
74142
74143         * lib/full-write.c: Rework so that it may serve to define full_read,
74144         too.
74145         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74146
74147 2003-01-07  Bruno Haible  <bruno@clisp.org>
74148
74149         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74150         <inttypes.h>.
74151         * lib/xstrtol.h: Likewise.
74152         * lib/xstrtoimax.c: Likewise.
74153         * lib/xstrtoumax.c: Likewise.
74154         * lib/human.h: Likewise.
74155
74156         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74157         on systems that have <inttypes.h> but not <stdint.h>.
74158
74159 2003-01-07  Bruno Haible  <bruno@clisp.org>
74160
74161         * MODULES.html.sh: Add copyright notice.
74162         (missed_files): Omit CVS directory entries.
74163         (func_module): Make it work with sed-3.02.
74164         * MODULES.txt: Remove file.
74165
74166 2003-01-06  Jim Meyering  <jim@meyering.net>
74167
74168         * lib/version-etc.c: Update year in translatable copyright string.
74169
74170 2003-01-03  Karl Berry  <karl@gnu.org>
74171
74172         * config/config.{guess,sub}: update from prep.
74173
74174 2003-01-02  Karl Berry  <karl@gnu.org>
74175
74176         * doc/COPYING.DOC: belatedly updated to 1.2.
74177
74178 2003-01-01  Karl Berry  <karl@gnu.org>
74179
74180         * gnulib-tool (func_verify_module): report module name $module in
74181         error message, not $1.
74182         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74183         be created, only if it doesn't exist.
74184         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74185
74186 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74187
74188         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74189
74190 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74191
74192         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74193         memcmp if strcoll doesn't work.
74194
74195 2002-12-31  Bruno Haible  <bruno@clisp.org>
74196
74197         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74198         nonempty.
74199
74200 2002-12-31  Bruno Haible  <bruno@clisp.org>
74201
74202         * lib/memcoll.c (STRCOLL): New macro.
74203         (memcoll): Use it.
74204
74205 2002-12-31  Bruno Haible  <bruno@clisp.org>
74206
74207         * lib/localcharset.h: New file.
74208         * lib/localcharset.c: Include it.
74209         * lib/unicodeio.c: Likewise.
74210
74211 2002-12-31  Bruno Haible  <bruno@clisp.org>
74212
74213         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74214         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74215
74216 2002-12-31  Bruno Haible  <bruno@clisp.org>
74217
74218         * lib/getline.h: Include <stddef.h>, for size_t.
74219
74220         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74221         * lib/unicodeio.c: Don't include <stddef.h>.
74222
74223 2002-12-31  Bruno Haible  <bruno@clisp.org>
74224
74225         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74226         HAVE_TM_ZONE.
74227
74228 2002-12-24  Karl Berry  <karl@gnu.org>
74229
74230         * config/config.guess: update from prep.
74231
74232 2002-12-24  Bruno Haible  <bruno@clisp.org>
74233
74234         General infrasructure.
74235         * m4/README: Rewritten.
74236         * m4/onceonly.m4: New file.
74237         * m4/onceonly_2_57.m4: New file.
74238
74239         Module atexit.
74240         * m4/atexit.m4: New file.
74241
74242         Module strtod.
74243         * m4/strtod.m4: New file.
74244
74245         Module strtol.
74246         * m4/strtol.m4: New file.
74247
74248         Module strtoul.
74249         * m4/strtoul.m4: New file.
74250
74251         Module memchr.
74252         * m4/memchr.m4: New file.
74253
74254         Module memcmp.
74255         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74256         (jm_FUNC_MEMCMP): Invoke it.
74257
74258         Module memcpy.
74259         * m4/memcpy.m4: New file.
74260
74261         Module memmove.
74262         * m4/memmove.m4: New file.
74263
74264         Module memset.
74265         * m4/memset.m4: New file.
74266
74267         Module strcspn.
74268         * m4/strcspn.m4: New file.
74269
74270         Module strpbrk.
74271         * m4/strpbrk.m4: New file.
74272
74273         Module strstr.
74274         * m4/strstr.m4: New file.
74275
74276         Module strerror.
74277         * m4/strerror.m4: New file.
74278
74279         Module mktime.
74280         * m4/mktime.m4: Renamed from jm-mktime.m4.
74281         (gl_PREREQ_MKTIME): New macro.
74282         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74283
74284         Module malloc.
74285         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74286         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74287         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74288
74289         Module realloc.
74290         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74291         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74292         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74293
74294         Module strftime.
74295         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74296         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74297         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74298         gl_TM_GMTOFF.
74299         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74300
74301         Module xalloc.
74302         * m4/xalloc.m4: New file.
74303
74304         Module alloca.
74305         * m4/alloca.m4: New file.
74306
74307         Module putenv.
74308         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74309         (jm_FUNC_PUTENV): Invoke it.
74310
74311         Module setenv.
74312         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74313         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74314         when invoked twice.
74315         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74316         gt_FUNC_SETENV.
74317
74318         Module memrchr.
74319         * m4/memrchr.m4: New file.
74320
74321         Module stpcpy.
74322         * m4/stpcpy.m4: New file.
74323
74324         Module strcase.
74325         * m4/strcase.m4: New file.
74326
74327         Module strdup.
74328         * m4/strdup.m4: New file.
74329
74330         Module strnlen.
74331         * m4/strnlen.m4: New file.
74332
74333         Module strndup.
74334         * m4/strndup.m4: New file.
74335
74336         Module xstrtod.
74337         * m4/xstrtod.m4: New file.
74338
74339         Module xstrtol.
74340         * m4/xstrtol.m4: New file.
74341
74342         Module getdate.
74343         * m4/getdate.m4: New file.
74344
74345         Module unlocked-io.
74346         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74347         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74348         * m4/jm-glibc-io.m4n: Remove file.
74349
74350         Module long-options.
74351         * m4/long-options.m4: New file.
74352
74353         Module md5.
74354         * m4/md5.m4: New file.
74355
74356         Module sha.
74357         * m4/sha.m4: New file.
74358
74359         Module getstr.
74360         * m4/getstr.m4: New file.
74361
74362         Module getline.
74363         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74364         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74365         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74366         simply getline. Infoke gl_PREREQ_GETLINE.
74367
74368         Module obstack.
74369         * m4/obstack.m4: New file.
74370
74371         Module hash.
74372         * m4/hash.m4: New file.
74373
74374         Module readtokens.
74375         * m4/readtokens.m4: New file.
74376
74377         Module strverscmp.
74378         * m4/strverscmp.m4: New file.
74379
74380         Module stdbool.
74381         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74382         OSF/1.
74383
74384         Module strtoll.
74385         * m4/strtoll.m4: New file.
74386
74387         Module strtoull.
74388         * m4/strtoull.m4: New file.
74389
74390         Module strtoimax.
74391         * m4/strtoimax.m4: New file.
74392
74393         Module strtoumax.
74394         * m4/strtoumax.m4: New file.
74395
74396         Module xstrtoimax.
74397         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74398         jm_AC_PREREQ_XSTRTOIMAX.
74399         Moved the strtol prerequisites to strtol.m4.
74400         Moved the strtoll prerequisites to strtoll.m4.
74401         Moved the strtoimax prerequisites to strtoimax.m4.
74402
74403         Module xstrtoumax.
74404         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74405         jm_AC_PREREQ_XSTRTOUMAX.
74406         Moved the strtoul prerequisites to strtoul.m4.
74407         Moved the strtoull prerequisites to strtoull.m4.
74408         Moved the strtoumax prerequisites to strtoumax.m4.
74409
74410         Module chown.
74411         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74412         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74413
74414         Module dup2.
74415         * m4/dup2.m4: New file.
74416
74417         Module ftruncate.
74418         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74419         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74420
74421         Module getgroups.
74422         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74423         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74424
74425         Module gettimeofday.
74426         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74427         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74428         gl_PREREQ_GETTIMEOFDAY.
74429
74430         Module mkdir.
74431         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74432         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74433
74434         Module mkstemp.
74435         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74436         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74437         jm_AC_TYPE_UINTMAX_T.
74438         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74439
74440         Module stat.
74441         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74442         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74443
74444         Module lstat.
74445         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74446         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74447
74448         Module timespec.
74449         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74450         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74451         * m4/st_mtim.m4: Indentation.
74452
74453         Module nanosleep.
74454         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74455         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74456         gl_PREREQ_NANOSLEEP.
74457
74458         Module regex.
74459         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74460         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74461         (gl_REGEX): New macro.
74462
74463         Module rename.
74464         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74465         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74466
74467         Module rmdir.
74468         * m4/rmdir.m4: New file.
74469
74470         Module utime.
74471         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74472         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74473         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74474
74475         Module dirname.
74476         * m4/dirname.m4: New file.
74477
74478         Module getopt.
74479         * m4/getopt.m4: New file.
74480
74481         Module unistd-safer.
74482         * m4/unistd-safer.m4: New file.
74483
74484         Module fnmatch.
74485         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74486         declaration.
74487         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74488         (gl_FUNC_FNMATCH_POSIX): New macro.
74489         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74490         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74491         simply fnmatch.
74492
74493         Module exclude.
74494         * m4/exclude.m4: New file.
74495
74496         Module human.
74497         * m4/human.m4: New file.
74498
74499         Module acl.
74500         * m4/acl.m4: Nop.
74501
74502         Module backupfile.
74503         * m4/backupfile.m4: New file.
74504         * m4/d-ino.m4: Indentation.
74505
74506         Module fsusage.
74507         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74508         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74509         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74510
74511         Module dirfd.
74512         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74513         requirements.
74514
74515         Module euidaccess.
74516         * m4/euidaccess.m4: New file.
74517
74518         Module file-type.
74519         * m4/file-type.m4: New file.
74520
74521         Module fileblocks.
74522         * m4/fileblocks.m4: New file.
74523
74524         Module filemode.
74525         * m4/filemode.m4: New file.
74526
74527         Module isdir.
74528         * m4/isdir.m4: New file.
74529
74530         Module lchown.
74531         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74532         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74533
74534         Module makepath.
74535         * m4/makepath.m4: New file.
74536
74537         Module modechange.
74538         * m4/modechange.m4: New file.
74539
74540         Module mountlist.
74541         * m4/mountlist.m4: New file.
74542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74543         Indentation.
74544
74545         Module path-concat.
74546         * m4/path-concat.m4: New file.
74547
74548         Module pathmax.
74549         * m4/pathmax.m4: New file.
74550
74551         Module same.
74552         * m4/same.m4: New file.
74553
74554         Module save-cwd.
74555         * m4/save-cwd.m4: New file.
74556
74557         Module savedir.
74558         * m4/savedir.m4: New file.
74559
74560         Module xgetcwd.
74561         * m4/xgetcwd.m4: New file.
74562         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74563
74564         Module xreadlink.
74565         * m4/xreadlink.m4: New file.
74566
74567         Module safe-read.
74568         * m4/safe-read.m4: New file.
74569
74570         Module safe-write.
74571         * m4/safe-write.m4: New file.
74572
74573         Module closeout.
74574         * m4/closeout.m4: New file.
74575
74576         Module stdio-safer.
74577         * m4/stdio-safer.m4: New file.
74578
74579         Module getpass.
74580         * m4/getpass.m4: New file.
74581
74582         Module getugroups.
74583         * m4/getugroups.m4: New file.
74584
74585         Module group-member.
74586         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74587         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74588
74589         Module idcache.
74590         * m4/idcache.m4: New file.
74591
74592         Module userspec.
74593         * m4/userspec.m4: New file.
74594
74595         Module gettime.
74596         * m4/clock_time.m4: New file.
74597         * m4/gettime.m4: New file.
74598
74599         Module settime.
74600         * m4/settime.m4: New file.
74601
74602         Module posixtm.
74603         * m4/posixtm.m4: New file.
74604
74605         Module gethostname.
74606         * m4/gethostname.m4: New file.
74607
74608         Module canon-host.
74609         * m4/canon-host.m4: New file.
74610
74611         Module gettext.
74612         * m4/codeset.m4: New file, from gettext-0.11.5.
74613         * m4/gettext.m4: New file, from gettext-0.11.5.
74614         * m4/glibc21.m4: New file, from gettext-0.11.5.
74615         * m4/iconv.m4: New file, from gettext-0.11.5.
74616         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74617         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74618         * m4/inttypes.m4: New file, from gettext-0.11.5.
74619         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74620         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74621         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74622         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74623         * m4/lib-link.m4: New file, from gettext-0.11.5.
74624         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74625         * m4/progtest.m4: New file, from gettext-0.11.5.
74626         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74627         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74628         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74629
74630         Module localcharset.
74631         * m4/localcharset.m4: New file.
74632
74633         Module hard-locale.
74634         * m4/hard-locale.m4: New file.
74635
74636         Module mbswidth.
74637         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74638         onceonly macros.
74639         * m4/mbrtowc.m4: Add comment.
74640
74641         Module memcasecmp.
74642         * m4/memcasecmp.m4: New file.
74643
74644         Module memcoll.
74645         * m4/memcoll.m4: New file.
74646
74647         Module unicodeio.
74648         * m4/unicodeio.m4: New file.
74649
74650         Module rpmatch.
74651         * m4/rpmatch.m4: New file.
74652
74653         Module yesno.
74654         * m4/yesno.m4: New file.
74655
74656         Module exitfail.
74657         * m4/exitfail.m4: New file.
74658
74659         Module c-stack.
74660         * m4/c-stack.m4 (gl_C_STACK): New macro.
74661         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74662
74663         Module error.
74664         * m4/error.m4 (gl_ERROR): New macro.
74665         (jm_PREREQ_ERROR): Use onceonly macros.
74666
74667         Module fatal.
74668         * m4/fatal.m4: New file.
74669
74670         Module getloadavg.
74671         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74672         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74673
74674         Module getpagesize.
74675         * m4/getpagesize.m4: New file.
74676
74677         Module getusershell.
74678         * m4/getusershell.m4: New file.
74679
74680         Module physmem.
74681         * m4/physmem.m4: New file.
74682
74683         Module posixver.
74684         * m4/posixver.m4: New file.
74685
74686         Module quotearg.
74687         * m4/quotearg.m4: New file.
74688
74689         Module quote.
74690         * m4/quote.m4: New file.
74691
74692         Module readutmp.
74693         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74694
74695         Module sig2str.
74696         * m4/sig2str.m4: New file.
74697
74698         Other.
74699         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74700         ulonglong.m4.
74701         * m4/intmax_t.m4: New file.
74702         * m4/d-type.m4: Indentation.
74703         * m4/jm-macros.m4: Update.
74704         * m4/prereq.m4 (jm_PREREQ): Update.
74705         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74706         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74707         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74708         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74709         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74710         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74711         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74712         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74713         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74714         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74715         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74716         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74717         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74718         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74719         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74720         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74721         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74722         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74723         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74724
74725 2002-12-24  Bruno Haible  <bruno@clisp.org>
74726
74727         * MODULES.txt: Update according to m4/ changes.
74728
74729         Module gettext.
74730         * config.rpath: New file, from gettext-0.11.5.
74731
74732         * modules/*: New module descriptions.
74733         * gnulib-tool: New file.
74734         * MODULES.html.sh: New file.
74735
74736 2002-12-21  Karl Berry  <karl@gnu.org>
74737
74738         * doc/fdl.texi: update to version 1.2.
74739
74740 2002-12-19  Karl Berry  <karl@gnu.org>
74741
74742         * config/config.guess: update from prep.
74743
74744 2002-12-18  Bruno Haible  <bruno@clisp.org>
74745
74746         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74747         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74748
74749 2002-12-17  Bruno Haible  <bruno@clisp.org>
74750
74751         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74752         stdlib.h, string.h.
74753
74754 2002-12-17  Bruno Haible  <bruno@clisp.org>
74755
74756         * lib/canon-host.c (strdup): Remove unused declaration.
74757
74758         * lib/fsusage.c: Include full_read.h.
74759         (get_fs_usage): Use full_read instead of safe_read.
74760
74761         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74762
74763 2002-12-12  Karl Berry  <karl@gnu.org>
74764
74765         * config/config.guess: update from prep.
74766
74767 2002-12-11  Bruno Haible  <bruno@clisp.org>
74768
74769         * m4/setenv.m4: New file, from gettext-0.11.5.
74770
74771 2002-12-11  Bruno Haible  <bruno@clisp.org>
74772
74773         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74774         not unsetenv().
74775         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74776         modifications:
74777
74778         2002-12-11  Bruno Haible  <bruno@clisp.org>
74779
74780                 * setenv.c (alloca): Fall back to malloc.
74781                 (freea): New macro.
74782                 (setenv): Use freea() to free memory allocated with alloca().
74783
74784         2002-11-13  Bruno Haible  <bruno@clisp.org>
74785
74786                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74787                 function declarations.
74788                 * unsetenv.c (unsetenv): Likewise.
74789
74790         2002-03-04  Bruno Haible  <bruno@clisp.org>
74791
74792                 Portability to AIX 4.3.3.
74793                 * unsetenv.c: New file, extracted from setenv.c.
74794                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74795
74796         2001-12-20  Bruno Haible  <bruno@clisp.org>
74797
74798                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74799                 use malloc instead. For SunOS 4.
74800
74801         2001-12-11  Bruno Haible  <bruno@clisp.org>
74802
74803                 * setenv.c: Declare alloca.
74804                 (compar_fn_t): New typedef.
74805                 (KNOWN_VALUE, STORE_VALUE): Use it.
74806
74807         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74808         setenv.h.
74809
74810 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74811
74812         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74813         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74814         Choose values that are less likely to collide with system fnmatch
74815         options.
74816         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74817         defined (e.g., a pure POSIX system).
74818         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74819         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74820
74821 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74822
74823         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74824         a pain in practice to deal with generated m4 files.  This change
74825         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74826
74827         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74828         and jm-glibc-io.m4, as they are no longer a special case.
74829         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74830         kludge and the auto-generation stuff.  Check only whether the
74831         functions are declared, not whether they exist, since older hosts
74832         that don't declare the functions can't use the optimization anyway.
74833
74834 2002-12-06  Jim Meyering  <jim@meyering.net>
74835
74836         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74837
74838         Merge in changes from libc's misc/error.c, in preparation
74839         for the merge of gnulib's changes back into libc.
74840
74841         * lib/error.c (_): Define only if not already defined.
74842         Move definition to follow all #include directives.
74843         Include unlocked-io.h only if !_LIBC.
74844         [_LIBC]: Include <libio/libioP.h>.
74845         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74846         (fflush): Tweak definition to use INTUSE.
74847         (putc): Define.
74848
74849 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74850
74851         * lib/alloca.c [defined emacs]: Include "lisp.h".
74852         (xalloc_die) [defined emacs]: New macro.
74853         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74854         [! defined emacs]: Include <xalloc.h>.
74855         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74856         (pointer): Typedef to POINTER_TYPE *.
74857         (malloc): Remove decl; we now always use xmalloc.
74858         (alloca): Use old-style definition, since Emacs needs this.
74859         Check for arithmetic overflow when computing combined size.
74860
74861 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74862
74863         Do not generate unlocked-io.h automatically, since it's easier to
74864         maintain it by hand.
74865
74866         * lib/unlocked-io.h: New file, from GNU diffutils,
74867         but with proper copyright notice and attribution.
74868         * lib/gen-uio: Remove.
74869         * lib/Makefile.am: Add copyright notice.
74870         (libfetish_a_SOURCES): Add unlocked-io.h.
74871         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74872         (DISTCLEANFILES, io_functions): Remove macros.
74873         (EXTRA_DIST): Remove gen_uio.
74874         (unlocked-io.h): Remove rule.
74875
74876 2002-12-04  Jim Meyering  <jim@meyering.net>
74877
74878         Reflect the fact that stat.c and lstat.c are no longer generated.
74879         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74880         (DISTCLEANFILES): Likewise.
74881         (EXTRA_DIST): Likewise.
74882         (all_local): Don't depend on stat.c or lstat.c.
74883         (stat.c, lstat.c): Remove rules.
74884         (EXTRA_DIST): Remove xstat.in.
74885
74886         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74887         * lib/stat.c: New file.  Contents mostly from xstat.in.
74888         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74889         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74890
74891         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74892         too.
74893         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74894
74895 2002-12-03  Jim Meyering  <jim@meyering.net>
74896
74897         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74898         but not semantics, to minimize the differences between these two files.
74899         (safe_read): Change comment to mention SAFE_READ_ERROR.
74900
74901         * lib/safe-read.c (IS_EINTR): Define.
74902         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74903
74904 2002-12-02  Jim Meyering  <jim@meyering.net>
74905
74906         * lib/safe-read.c (EINTR): Define.
74907         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74908         (INT_MAX): Provide fallback.
74909         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74910
74911         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74912
74913 2002-12-02  Bruno Haible  <bruno@clisp.org>
74914
74915         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74916         Define, taken from safe-read.c.
74917         (INT_MAX): Provide fallback.
74918         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74919         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74920
74921         * lib/safe-read.c (EINTR): Remove definition.
74922         (safe_read): Don't use EINTR if it is absent.
74923
74924 2002-12-01  Jim Meyering  <jim@meyering.net>
74925
74926         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74927         zero.
74928         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74929
74930 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74931
74932         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74933         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74934         with `if (! (value < limit)) abort ();', for readability.
74935
74936 2002-11-26  Karl Berry  <karl@gnu.org>
74937
74938         * lib/strdup.c: copy from libc again, with jim's ok.
74939         * lib/.cppi-disable: re-add strdup.c
74940
74941 2002-11-25  Karl Berry  <karl@gnu.org>
74942
74943         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74944         instead of "strtol.c".
74945
74946 2002-11-25  Karl Berry  <karl@gnu.org>
74947
74948         * config/install-sh: update from automake for variable quoting, $0 in
74949         error msgs, etc.
74950
74951         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74952         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74953         entry.
74954
74955 2002-11-25  Jim Meyering  <jim@meyering.net>
74956
74957         * lib/mktime.c: Sync from libc, now that it has the latest fix.
74958
74959 2002-11-24  Karl Berry  <karl@gnu.org>
74960
74961         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
74962         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
74963
74964 2002-11-24  Jim Meyering  <jim@meyering.net>
74965
74966         Update from coreutils:
74967
74968         * lib/mktime.c: Merge in changes from libc.
74969
74970         Avoid a link-time failure on some Linux systems.
74971         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
74972         (otherwise).
74973         (__mon_yday): Declare with the STATIC attribute.
74974         (__mktime_internal): Likewise.
74975         Based on a report from Greg Schafer.
74976
74977 2002-11-23  Jim Meyering  <jim@meyering.net>
74978
74979         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
74980         Use `unsigned', not `int', as type of index.
74981
74982         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
74983
74984         * lib/fsusage.c: Remove unneeded parentheses around operands of
74985         `defined'.
74986
74987 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74988
74989         * lib/quotearg.h: Allow multiple inclusion by surrounding with
74990         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
74991         so that we can be included first.
74992         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
74993         * lib/quotearg.c: Include quotearg.h immediately after config.h.
74994         No need to include stddef.h or sys/types.h any more.
74995         Surround local include files with "", not "<>".
74996         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
74997         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
74998         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
74999         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75000         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75001         (ISPRINT): Remove; no longer needed now that we assume C89.
75002
75003         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75004         Preserve errno.
75005
75006         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75007         quotearg_char): Use SIZE_MAX rather than
75008         (size_t) -1 when we are talking about "infinity".
75009
75010         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75011
75012 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75013
75014         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75015         hint that one should use `if (! x) abort ();' rather than `assert
75016         (x);', and anyway it's one less thing to worry about configuring.
75017         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75018         hash_rehash, hash_insert): Use abort rather than assert.
75019
75020 2002-11-22  Bruno Haible  <bruno@clisp.org>
75021
75022         * lib/safe-read.h: Assume C89. Add comments.
75023         (safe_read): Change return type to size_t.
75024         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75025         byte counts > SSIZE_MAX correctly.
75026         * lib/safe-write.h: New file.
75027         * lib/safe-write.c: New file.
75028         * lib/full-read.h: New file.
75029         * lib/full-read.c: New file.
75030         * lib/full-write.h: Assume C89. Add comments.
75031         * lib/full-write.c: Include safe-write.h.
75032         (full_write): Rewritten to use safe_write.
75033         Suggested by Jim Meyering and Paul Eggert.
75034
75035 2002-11-21  Jim Meyering  <jim@meyering.net>
75036
75037         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75038
75039         Merge in changes from the coreutils.
75040
75041         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75042         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75043         <stdint.h>.
75044         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75045         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75046         int.  Work more efficiently if X is the same width as uintmax_t.
75047         Do not compare X to -1, to avoid bogus compiler warning.
75048         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75049         Don't assume that f_frsize and f_bsize are the same type.
75050
75051         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75052         warning on FreeBSD.
75053
75054         * lib/makepath.c (make_path): Restore umask *before* creating the final
75055         component.
75056         (make_path): Minor reformatting.
75057
75058         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75059         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75060         HAVE_MALLOC/HAVE_REALLOC.
75061
75062         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75063         dummy ones.  At least on GNU/Linux systems, `auto' means something
75064         else.
75065         From Michael Stone.
75066
75067 2002-11-21  Bruno Haible  <bruno@clisp.org>
75068
75069         Remove case insensitive option matching.
75070         * lib/argmatch.h (argcasematch): Remove declaration.
75071         (ARGCASEMATCH): Remove macro.
75072         (__xargmatch_internal): Remove case_sensitive argument.
75073         (XARGMATCH): Update.
75074         (XARGCASEMATCH): Remove macro.
75075         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75076         case_sensitive argument.
75077         (argcasematch): Remove function.
75078         (__xargmatch_internal): Remove case_sensitive argument.
75079         (main): Use XARGMATCH instead of XARGCASEMATCH.
75080
75081         * lib/xmalloc.c: Change compile-time error message. Add comment about
75082         required autoconf version.
75083
75084 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75085
75086         Merge argmatch cleanups from Bison.  Assume C89.
75087
75088         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75089         Include stdlib.h, for EXIT_FAILURE.
75090         Always include <string.h>, since we assume C89.
75091         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75092         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75093         Include <stddef.h> instead, since it's all we need for size_t.
75094         (PARAMS): Remove.  All uses removed.
75095         (ARRAY_CARDINALITY): Do not bother to #undef.
75096         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75097         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75098         Remove unnecessary parentheses.
75099         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75100         Insert necessary parentheses.
75101         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75102         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75103
75104 2002-11-19  Bruno Haible  <bruno@clisp.org>
75105
75106         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75107         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75108
75109         * lib/mbswidth.h (PARAMS): Remove macro.
75110         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75111         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75112
75113         * lib/gcd.h (PARAMS): Remove macro.
75114         (gcd): Use ANSI C function declarations.
75115         * lib/gcd.c (gcd): Likewise.
75116
75117 2002-11-15  Bruno Haible  <bruno@clisp.org>
75118
75119         * lib/strcspn.c: Include <stddef.h>.
75120         (strcspn): Use ANSI C function declaration. Change return type to
75121         size_t. Use NULL.
75122         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75123         (strpbrk): Use NULL.
75124         * lib/strpbrk.h (PARAMS): Remove macro.
75125         (strpbrk): Use ANSI C function declaration.
75126         * lib/strstr.c: Don't include <sys/types.h>.
75127         * lib/strstr.h (PARAMS): Remove macro.
75128         (strstr): Use ANSI C function declarations.
75129
75130 2002-11-14  Karl Berry  <karl@gnu.org>
75131
75132         * config/mkinstalldirs: `do' on separate line, instead of
75133         `for var; do'.
75134
75135 2002-11-06  Bruno Haible  <bruno@clisp.org>
75136
75137         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75138         * lib/gcd.c (gcd): Likewise.
75139
75140 2002-11-05  Bruno Haible  <bruno@clisp.org>
75141
75142         * lib/gcd.h: New file, from gettext-0.11.5.
75143         * lib/gcd.c: New file, from gettext-0.11.5.
75144
75145 2002-11-05  Bruno Haible  <bruno@clisp.org>
75146
75147         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75148         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75149         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75150         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75151
75152         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75153         <libintl.h>.
75154         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75155         <libintl.h>.
75156
75157         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75158         * lib/human.c: Include gettext.h instead of <libintl.h>.
75159         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75160         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75161         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75162         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75163         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75164         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75165         (textdomain): Remove definition.
75166         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75167
75168         * lib/long-options.c: Remove include of <libintl.h> and definition of
75169         _.
75170         * lib/same.c: Remove include of <libintl.h> and definition of _.
75171
75172 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75173
75174         * lib/config.charset: A few additions for Solaris.
75175
75176 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75177
75178         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75179         * lib/localcharset.c (locale_charset): Declare as extern "C".
75180
75181 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75182
75183         * lib/config.charset: msdos in uk_UA uses CP1125.
75184
75185 2002-11-04  Bruno Haible  <bruno@clisp.org>
75186
75187         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75188         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75189         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75190         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75191         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75192
75193 2002-11-04  Bruno Haible  <bruno@clisp.org>
75194
75195         * lib/localcharset.c (locale_charset): Don't return an empty string.
75196
75197 2002-11-04  Bruno Haible  <bruno@clisp.org>
75198
75199         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75200         aliases.
75201
75202 2002-11-04  Bruno Haible  <bruno@clisp.org>
75203
75204         * lib/config.charset: Update for newest glibc. Add canonical names
75205         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75206
75207 2002-11-04  Bruno Haible  <bruno@clisp.org>
75208
75209         * lib/config.charset: Add support for NetBSD.
75210
75211 2002-11-04  Bruno Haible  <bruno@clisp.org>
75212
75213         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75214
75215 2002-11-01  Bruno Haible  <bruno@clisp.org>
75216
75217         * configure.in: Add AC_CONFIG_AUX_DIR call.
75218         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75219         test/Makefile.
75220         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75221
75222 2002-09-28  Karl Berry  <karl@gnu.org>
75223
75224         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75225         installed automake until the next release, since changes have been
75226         made.
75227
75228 2002-09-25  Karl Berry  <karl@gnu.org>
75229
75230         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75231         * lib/getopt*: copy from libc/posix.
75232         * lib/gettext.h: copy from gettext.
75233         * lib/.cppi-disable: add strdup.c, gettext.h.
75234
75235 2002-09-25  Karl Berry  <karl@gnu.org>
75236
75237         * config/srclist.txt: enable gettext.h check.
75238         * config/config.{guess,sub}: update from prep.
75239         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75240                 from automake 1.6.3.
75241         See srclist*.
75242
75243 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75244
75245         * regex.c (PATFETCH): Remove the translating fetch.
75246         (PATFETCH_RAW): Rename to PATFETCH.
75247         (set_image_of_range): New fun.
75248         (SET_RANGE_TABLE_WORK_AREA): Use it.
75249         (regex_compile): Don't translate the pattern chars so eagerly.
75250         Only do it when inserting an `exactn' bytecode or when handling
75251         a char-range.
75252         (mutually_exclusive_p): Avoid empty statement.
75253
75254 2002-07-06  Jim Meyering  <meyering@lucent.com>
75255
75256         * m4/README: Don't mention Makefile.am.in.
75257         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75258
75259 2002-07-01  Jim Meyering  <meyering@lucent.com>
75260
75261         * lib/c-stack.c: Include sys/time.h.
75262         From Volker Borchert.
75263
75264 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75265
75266         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75267
75268 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75269
75270         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75271         New macro.  Use it uniformly instead of
75272         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75273         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75274         reported by Vin Shelton.
75275
75276 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75277
75278         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75279         Do not assume SA_SIGINFO behavior.
75280         Bug reported by Jim Meyering on NetBSD 1.5.2.
75281
75282 2002-06-22  Jim Meyering  <meyering@lucent.com>
75283
75284         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75285         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75286
75287         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75288         now that configure.ac uses AC_GNU_SOURCE.
75289         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75290         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75291
75292         Update to latest tools.  Suggestions from Paul Eggert.
75293         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75294         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75295         * m4/fnmatch.m4: Likewise.
75296         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75297         to AC_HEADER_STDBOOL
75298
75299 2002-06-22  Jim Meyering  <meyering@lucent.com>
75300
75301         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75302         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75303
75304 2002-06-22  Jim Meyering  <meyering@lucent.com>
75305
75306         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75307
75308         * lib/exitfail.c, exitfail.h: Likewise.
75309         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75310
75311         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75312         of fnmatch.h.
75313         (EXTRA_DIST): Add fnmatch_loop.c.
75314         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75315
75316         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75317         * lib/fnmatch.c: Update from diffutils-2.8.2.
75318         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75319         * lib/fnmatch.h: Remove file.
75320
75321 2002-06-21  Jim Meyering  <meyering@lucent.com>
75322
75323         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75324         * m4/mbrtowc.m4: Likewise.
75325
75326         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75327         * m4/mbswidth.m4: Reflect name change:
75328         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75329         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75330
75331         * m4/lib-link.m4: Update from gettext-0.11.2.
75332         * m4/gettext.m4: Likewise.
75333
75334         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75335         From Alfred M. Szmidt.
75336
75337 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75338
75339         * lib/file-type.h: Report an error if neither S_ISREG nor
75340         S_IFREG is defined, instead of using a test specific to glibc
75341         2.2.  This should be safe, since POSIX requires S_ISREG and
75342         Unix Version 7 had S_IFREG.  We don't need to check for
75343         <sys/types.h> since we don't use any symbols that it defines.
75344
75345 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75346
75347         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75348         $@-t, so that each temporary file name is unique and valid in the first
75349         8 characters, for operation under DOS.
75350
75351 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75352
75353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75354
75355 2002-06-15  Jim Meyering  <meyering@lucent.com>
75356
75357         Work even with DJGPP 2.03, which lacks support for symlinks.
75358         From Richard Dawe.
75359         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75360         is defined.
75361         * lib/lchown.c (S_ISLNK): Likewise.
75362
75363 2002-06-15  Jim Meyering  <meyering@lucent.com>
75364
75365         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75366         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75367         have been included before this file.
75368
75369 2002-06-14  Jim Meyering  <meyering@lucent.com>
75370
75371         * lib/file-type.h: Use the version from diffutils-2.8.2.
75372         * lib/file-type.c: Likewise.
75373
75374 2002-06-07  Jim Meyering  <meyering@lucent.com>
75375
75376         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75377         They're needed at least for NetBSD 1.5.2.
75378         ($statxfs_includes): Include those same headers.
75379         ($statxfs_includes): Include sys/vfs.h if available.
75380         ($statxfs_includes): Likewise for sys/statvfs.h.
75381         Check for the following members in both structs statfs and statvfs:
75382         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75383
75384 2002-06-01  Jim Meyering  <meyering@lucent.com>
75385
75386         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75387         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75388
75389 2002-05-28  Jim Meyering  <meyering@lucent.com>
75390
75391         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75392         Reported by Volker Borchert.
75393
75394 2002-05-27  Jim Meyering  <meyering@lucent.com>
75395
75396         Fix a problem seen only on nonconforming systems whereby ls.c's
75397         use of localtime, and then of gettimeofday would cause trouble:
75398         the localtime call used to initialize rpl_gettimeofday's save
75399         mechanism would clobber ls's current local time information so
75400         that in any long listing the first file would always be listed
75401         with date 1970-01-01.  Analysis by Volker Borchert.
75402
75403         * lib/gettimeofday.c (localtime): Undefine.
75404         (rpl_localtime): New function.
75405
75406 2002-05-27  Jim Meyering  <meyering@lucent.com>
75407
75408         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75409         localtime.
75410
75411         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75412         use the replacement function; it wouldn't resolve at link time.
75413         Reported by Volker Borchert.
75414
75415 2002-05-22  Jim Meyering  <meyering@lucent.com>
75416
75417         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75418         file-type.h.
75419         * lib/file-type.h: New file.
75420         * lib/file-type.c (file_type): New file/function.  Extracted from
75421         diffutils.
75422
75423 2002-04-30  Jim Meyering  <meyering@lucent.com>
75424
75425         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75426
75427 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75428
75429         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75430
75431 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75432
75433         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75434         Do not check for alloca.h (no longer used) or stdbool.h (was never
75435         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75436
75437 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75438
75439         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75440
75441 2002-04-29  Jim Meyering  <meyering@lucent.com>
75442
75443         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75444         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75445         Use AC_FUNC_STRNLEN here instead.
75446
75447         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75448         With autoconf-2.53a, it's part of AC_PROG_CC.
75449
75450 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75451
75452         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75453         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75454
75455 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75456
75457         * lib/sig2str.h, lib/sig2str.c: New files.
75458         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75459
75460 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75461
75462         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75463         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75464         of 127, since 64 is the largest conceivable number for ancient
75465         nonstandard hosts.
75466         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75467
75468 2002-04-28  Jim Meyering  <meyering@lucent.com>
75469
75470         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75471
75472 2002-04-24  Jim Meyering  <meyering@lucent.com>
75473
75474         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75475         (jm_PREREQ): Use it.
75476
75477         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75478         mach/mach.h fcntl.h.
75479         Check for this function: setlocale.
75480
75481 2002-04-24  Jim Meyering  <meyering@lucent.com>
75482
75483         * lib/gettext.h: New file, from Gettext.
75484         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75485         (libfetish_a_SOURCES): Add gettext.h.
75486
75487 2002-04-16  Jim Meyering  <meyering@lucent.com>
75488
75489         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75490         ut_pid, ut_id, ut_exit.
75491
75492 2002-04-16  Jim Meyering  <meyering@lucent.com>
75493
75494         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75495         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75496         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75497
75498 2002-04-12  Jim Meyering  <meyering@lucent.com>
75499
75500         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75501         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75502         existence of the getmntinfo function.  Needed for Darwin 5.3.
75503
75504         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75505         This is necessary at least on Darwin 5.3.
75506
75507         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75508         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75509         strnlen.o in the library, and that makes some versions of ranlib
75510         object.
75511
75512 2002-04-12  Jim Meyering  <meyering@lucent.com>
75513
75514         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75515
75516 2002-04-09  Jim Meyering  <meyering@lucent.com>
75517
75518         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75519         to be more precise.  Rather than saying we're checking whether the
75520         function `works', say what we're testing.
75521         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75522         Reported by Bruno Haible.
75523
75524 2002-03-10  Jim Meyering  <meyering@lucent.com>
75525
75526         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75527         Suggestion from Santiago Vila.
75528
75529 2002-03-08  Jim Meyering  <meyering@lucent.com>
75530
75531         * lib/rename.c: Mention that this wrapper is needed also on
75532         mips-dec-ultrix4.4 systems.
75533
75534 2002-03-02  Jim Meyering  <meyering@lucent.com>
75535
75536         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75537         not HAVE_CLOCK_SETTIME.
75538
75539 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75540
75541         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75542         Check for clock_settime.
75543
75544 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75545
75546         * lib/nanosleep.h: Rename to....
75547         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75548
75549         * lib/gettime.c: New file.
75550         * lib/settime.c: New file.
75551         * lib/stime.c: Remove.
75552
75553         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75554         timespec.h.  Remove nanosleep.h.
75555
75556 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75557
75558         * m4/acl.m4: New file.
75559         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75560         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75561
75562 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75563
75564         * lib/acl.c, lib/acl.h: New files.
75565         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75566
75567 2002-02-24  Jim Meyering  <meyering@lucent.com>
75568
75569         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75570         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75571         cause trouble.  Reported by Nelson Beebe.
75572
75573 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75574
75575         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75576         compilers that don't know that xalloc_die never returns.
75577
75578 2002-02-20  Jim Meyering  <meyering@lucent.com>
75579
75580         * lib/getdate.c: Regenerate using bison-1.33.
75581
75582 2002-02-17  Jim Meyering  <meyering@lucent.com>
75583
75584         * config/config.guess (main): Don't use `head -1'; it's no longer
75585         portable. Use `sed 1q' instead.
75586
75587 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75588
75589         * m4/codeset.m4: Upgrade to gettext-0.11.
75590         * m4/gettext.m4: Upgrade to gettext-0.11.
75591         * m4/glibc21.m4: Upgrade to gettext-0.11.
75592         * m4/iconv.m4: Upgrade to gettext-0.11.
75593         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75594         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75595         * m4/lib-ld.m4: New file, from gettext-0.11.
75596         * m4/lib-link.m4: New file, from gettext-0.11.
75597         * m4/lib-prefix.m4: New file, from gettext-0.11.
75598         * m4/progtest.m4: Upgrade to gettext-0.11.
75599
75600 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75601
75602         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75603         (jm_PREREQ): Use it.
75604
75605 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75606
75607         * lib/posixver.c, lib/posixver.h: New files.
75608         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75609
75610 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75611             Bruno Haible  <bruno@clisp.org>
75612
75613         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75614         (fwrite_success_callback): New declaration.
75615         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75616         print_unicode_char. Call failure callback instead of error.
75617         (fwrite_success_callback): New function.
75618         (exit_failure_callback): New function.
75619         (fallback_failure_callback): New function.
75620         (print_unicode_char): Call unicode_to_mb.
75621
75622 2002-01-26  Jim Meyering  <meyering@lucent.com>
75623
75624         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75625         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75626
75627 2002-01-26  Jim Meyering  <meyering@lucent.com>
75628
75629         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75630
75631 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75632
75633         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75634
75635 2002-01-22  Jim Meyering  <meyering@lucent.com>
75636
75637         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75638         Otherwise, some versions of automake would omit the rule that makes
75639         Makefile from Makefile.in.
75640
75641 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75642
75643         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75644         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75645         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75646         (memcoll): Set errno to zero if there is no error.
75647
75648         * lib/quotearg.c (quotearg_buffer_restyled):
75649         Fix bug with quoting buffers containing NUL when backslashing escapes.
75650         This bug was exposed by the other changes in this patch.
75651         (quotearg_n_options): New arg ARGSIZE.
75652         All callers changed.
75653         (quoting_options_from_style): New function.
75654         (quotearg_n_style): Use it.
75655         (quotearg_n_style_mem): New function.
75656
75657         * lib/quotearg.h (quotearg_n_style_mem): New function.
75658
75659 2002-01-19  Jim Meyering  <meyering@lucent.com>
75660
75661         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75662         Remove useless quotes: DF_PROG="df".
75663         * m4/strnlen.m4: New file.
75664
75665 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75666
75667         * lib/backupfile.c (ISDIGIT): Comment fix.
75668         * lib/getdate.y (ISDIGIT): Likewise.
75669         * lib/posixtm.c (ISDIGIT, year): Likewise.
75670         * lib/strverscmp.c (ISDIGIT): Likewise.
75671         * lib/userspec.c (ISDIGIT): Likewise.
75672
75673 2002-01-16  Jim Meyering  <meyering@lucent.com>
75674
75675         * lib/getdate.y: Add three semicolons, each just before a closing
75676         brace. Bison (as of version 1.31) no longer papers over that mistake.
75677
75678 2002-01-05  Jim Meyering  <meyering@lucent.com>
75679
75680         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75681
75682 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75683
75684         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75685         not silently exit merely because the output buffer happens to
75686         have nothing pending.
75687
75688 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75689
75690         See the big note in ../ChangeLog.
75691         * lib/human.c (suffixes): Prefer K to k for 1024.
75692         (generate_suffix_backwards): New function.
75693         (human_readable_inexact): Use it.
75694         * lib/xstrtol.c (__xstrtol): If there is no number but there
75695         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75696         Accept 'K' as well as 'k'.
75697
75698 2001-12-15  Jim Meyering  <meyering@lucent.com>
75699
75700         * lib/regex.h (__restrict_arr): Update from libc.
75701
75702         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75703         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75704         (STREQ): Define.
75705
75706 2001-12-14  Jim Meyering  <meyering@lucent.com>
75707
75708         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75709         Suggestion from Bruno Haible.
75710
75711 2001-12-10  Jim Meyering  <meyering@lucent.com>
75712
75713         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75714         xrealloc, Instead, include "xalloc.h".
75715         (initbuffer): Don't cast xmalloc return value to char*.
75716         (readline): Reword comment.
75717         Don't cast xrealloc return value to char*
75718         Return NULL, not 0.
75719
75720 2001-12-09  Jim Meyering  <meyering@lucent.com>
75721
75722         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75723         about `signed and unsigned type in conditional expression'.
75724         * lib/posixtm.c (posix_time_parse): Likewise.
75725
75726         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75727
75728         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75729         to avoid a pedantic warning.
75730
75731         * lib/getstr.c: Don't include assert.h.
75732         (getstr): Remove warning-evoking assertions.
75733         Return -1 if offset parameter is out of bounds.
75734         Change the type of a local from int to size_t.
75735
75736         * lib/strftime.c (my_strftime_localtime_r): Include this function
75737         definition in the `#if ! HAVE_TM_GMTOFF' block.
75738
75739         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75740         Include xalloc.h instead.
75741
75742 2001-12-02  Jim Meyering  <meyering@lucent.com>
75743
75744         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75745         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75746         included.
75747
75748         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75749         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75750
75751 2001-11-30  Akim Demaille  <akim@epita.fr>
75752
75753         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75754         before being defined.
75755
75756 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75757
75758         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75759         First arg is int, not unsigned.
75760         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75761         (SIZE_MAX, UINT_MAX): New macros.
75762         (quotearg_n_options): Abort if N is negative.
75763         Avoid overflow check on hosts where size_t is 64 bits and int
75764         is 32 bits, as overflow is impossible there.
75765         Fix off-by-one typo that caused unnecessary reallocation.
75766
75767 2001-11-27  Jim Meyering  <meyering@lucent.com>
75768
75769         * lib/tempname.c: Merge with version from libc.
75770         * lib/regex.c: Likewise.
75771
75772         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75773         systems for which STDC_HEADERS is 0, it was not included, resulting in
75774         a warning about an integer-to-pointer conversion problem with getenv.
75775         Reported by Volker Borchert.
75776
75777 2001-11-26  Jim Meyering  <meyering@lucent.com>
75778
75779         * lib/gtod.h: Remove file.
75780         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75781         * lib/gettimeofday.c: Don't include gtod.h.
75782         (GTOD_init): Remove function.
75783         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75784         Suggestion from Volker Borchert.
75785
75786 2001-11-23  Jim Meyering  <meyering@lucent.com>
75787
75788         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75789         it.
75790         * lib/hash.c (struct hash_table): Define it here instead.
75791
75792 2001-11-22  Jim Meyering  <meyering@lucent.com>
75793
75794         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75795
75796 2001-11-20  Jim Meyering  <meyering@lucent.com>
75797
75798         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75799         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75800
75801 2001-11-19  Jim Meyering  <meyering@lucent.com>
75802
75803         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75804         directory.  Use "conftestXXXXXX" as the template.
75805         Suggestion from Paul Eggert.
75806
75807         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75808         immediately, so the test doesn't mistakenly hit the max-open-files
75809         limit.
75810
75811 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75812
75813         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75814         (TEMPORARIES): New macro.
75815         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75816         removes an artificial limitation (e.g. HP-UX 10.20, where
75817         TMP_MAX is 17576).
75818
75819 2001-11-18  Jim Meyering  <meyering@lucent.com>
75820
75821         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75822
75823 2001-11-18  Jim Meyering  <meyering@lucent.com>
75824
75825         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75826         on SunOS 4.
75827
75828         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75829         files will be created before anything else.
75830
75831 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75832
75833         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75834         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75835
75836 2001-11-17  Jim Meyering  <meyering@lucent.com>
75837
75838         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75839         Prompted by a report from Bob Proulx.
75840
75841         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75842         Instead, require UTILS_FUNC_MKSTEMP.
75843
75844 2001-11-17  Jim Meyering  <meyering@lucent.com>
75845
75846         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75847         Now, that's done as part of AC_FUNC_STRTOD.
75848
75849 2001-11-17  Jim Meyering  <meyering@lucent.com>
75850
75851         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75852         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75853         rather than group writable.  Patch by Juan F. Codagnone.
75854
75855         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75856         xrealloc, Instead, include "xalloc.h".
75857
75858         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75859         Remove explicit declarations of xmalloc, xrealloc,
75860         and xstrdup.  Instead, include "xalloc.h".
75861
75862         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75863         unlocked-io.h.
75864         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75865         Likewise.
75866         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75867
75868         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75869         Reported by Padraig Brady.
75870
75871         * lib/mkstemp.c: #undef mkstemp.
75872         Include config.h.
75873         (rpl_mkstemp): Rename from mkstemp.
75874         Protoize.
75875
75876 2001-11-16  Jim Meyering  <meyering@lucent.com>
75877
75878         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75879         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75880         determine the amount of total physical memory, use pstat_getstatic.
75881         HPUX-11 doesn't define _SC_PHYS_PAGES.
75882         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75883         If sysconf couldn't be used to determine the amount of available
75884         physical memory, use both pstat_getstatic and pstat_getdynamic.
75885         Based on a patch from Bob Proulx.
75886
75887 2001-11-10  Jim Meyering  <meyering@lucent.com>
75888
75889         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75890         (jm_PREREQ): Use it.
75891
75892 2001-11-09  Jim Meyering  <meyering@lucent.com>
75893
75894         * m4/jm-macros.m4: Require autoconf-2.52f.
75895         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75896         Use these AC_-prefixed names, not the AM_-prefixed ones.
75897
75898         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75899
75900 2001-11-05  Jim Meyering  <meyering@lucent.com>
75901
75902         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75903
75904 2001-11-04  Jim Meyering  <meyering@lucent.com>
75905
75906         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75907         $DEFS.
75908
75909 2001-11-03  Jim Meyering  <meyering@lucent.com>
75910
75911         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75912         of AC_DEFUN.
75913
75914         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75915         know the name of the variable in the macro definition.
75916
75917 2001-11-03  Jim Meyering  <meyering@lucent.com>
75918
75919         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75920         in argmatch_to_argument call.
75921
75922         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75923         argument.
75924
75925         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75926         e.g., a fault due to an attempt to free a NULL pointer.
75927
75928 2001-11-01  Jim Meyering  <meyering@lucent.com>
75929
75930         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75931         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75932
75933 2001-11-01  Jim Meyering  <meyering@lucent.com>
75934
75935         * lib/dirfd.c, lib/dirfd.h: New files.
75936         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75937
75938         * lib/hash.c (hash_print) [TESTING]: Clean up.
75939
75940 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75941
75942         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75943         to avoid a warning if -Wall.
75944
75945 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75946
75947         * README: New file
75948         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75949         (per RMS's instructions, this is now the canonical source)
75950         * lgpl/, gpl/: New directories.
75951
75952 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75953
75954         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
75955
75956 2001-10-21  Jim Meyering  <meyering@lucent.com>
75957
75958         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
75959         this code would end up calling gettext even in packages built
75960         with --disable-nls.
75961         * lib/getopt.c (_): Likewise.
75962         * lib/regex.c (_): Likewise.
75963
75964 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75965
75966         * m4/error.m4 (jm_PREREQ_ERROR):
75967         Do not invoke AC_CHECK_FUNCS with strerror_r, as
75968         AC_FUNC_STRERROR_R does that.
75969         Check for strerror declaration.
75970
75971         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
75972         are supposed to have them these days.
75973         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
75974         Merge changes from latest Autoconf CVS.
75975         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
75976         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
75977         POSIX decided to standardize on the int flavor of strerror_r.
75978
75979 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75980
75981         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
75982         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
75983         Use strerror_r that is only a macro, even if it is not a function.
75984         (strerror): Check for HAVE_DECL_STRERROR before declaring.
75985         (private_strerror): Use prototypes, not old-style function definition.
75986         (print_errno_message): New function.
75987         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
75988         char*-flavored one.
75989         (error_tail, error, error_at_line): Use it.
75990
75991 2001-10-11  Jim Meyering  <meyering@lucent.com>
75992
75993         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
75994         and quote_n (1, ... to avoid clobbering a buffer.
75995
75996 2001-10-05  Jim Meyering  <meyering@lucent.com>
75997
75998         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
75999         hash-pjw.h.
76000         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76001         * lib/hash-pjw.h: New file.
76002
76003 2001-09-30  Jim Meyering  <meyering@lucent.com>
76004
76005         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76006         `struct fsstat' has the `f_fstypename' member.
76007         Use that to define FS_TYPE, which is now used to make
76008         the getfsstat link test tighter.
76009
76010 2001-09-30  Jim Meyering  <meyering@lucent.com>
76011
76012         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76013         Include <sys/ucred.h>, for Apple Darwin.
76014         Include sys/mount.h and sys/fs_types.h only if available.
76015         (FS_TYPE): Define.
76016         (read_filesystem_list): Use FS_TYPE.
76017
76018 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76019
76020         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76021         a boolean context.
76022
76023 2001-09-29  Jim Meyering  <meyering@lucent.com>
76024
76025         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76026         [one-argument getmntent function]): Include stdio.h before mntent.h.
76027         SunOS 4.1.x needs it for the declaration of `FILE'.
76028         Patch by Volker Borchert.
76029
76030         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76031         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76032         sys/fs_types.h, and make the link-test for getfsstat guard #include
76033         directives with appropriate #if HAVE_*_H tests so that we can
76034         detect getfsstat on Apple Darwin1.3.7 systems.
76035         Reported by Nelson Beebe.
76036         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76037
76038 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76039
76040         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76041         #defines strtoimax.  Also treat the other strto* functions
76042         like strtoimax.
76043
76044         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76045         Check for strtoul and strtoumax,
76046         as those declarations are made even in the signed case.
76047         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76048         Likewise, for strtol and strtoimax.
76049
76050 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76051
76052         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76053         #defines strtoimax.  Also treat the other strto* functions
76054         like strtoimax.
76055
76056         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76057         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76058         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76059
76060 2001-09-26  Jim Meyering  <meyering@lucent.com>
76061
76062         Most macros in unlocked-io.h had the wrong number of arguments.
76063         * lib/gen-uio: New script.
76064         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76065         * lib/unlocked-io.hin: Remove file.
76066         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76067         rather than trying to embed it here.
76068         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76069         Reported by Padraig Brady.
76070
76071 2001-09-25  Volker Borchert  <bt@teknon.de>
76072
76073         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76074         `result'.
76075
76076 2001-09-24  Jim Meyering  <meyering@lucent.com>
76077
76078         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76079
76080 2001-09-23  Jim Meyering  <meyering@lucent.com>
76081
76082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76083         instead of the mere test for existence of mntent.h.  The latter
76084         would get a false-positive on AIX 3.4 systems.
76085         In the outer getmntent if-block, don't die if neither of the getmntent
76086         tests succeeds.  Instead, just fall through and continue with the
76087         remaining tests.
76088
76089 2001-09-23  Jim Meyering  <meyering@lucent.com>
76090
76091         * lib/mountlist.c: Remove useless parentheses in #if directives.
76092         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76093         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76094
76095 2001-09-22  Jim Meyering  <meyering@lucent.com>
76096
76097         * m4/gettext.m4: New file.  From gettext.
76098         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76099         * m4/progtest.m4: Likewise
76100         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76101         * m4/glibc21.m4: Likewise.
76102
76103         * m4/libintl.m4: Remove.  No longer used.
76104
76105 2001-09-22  Jim Meyering  <meyering@lucent.com>
76106
76107         * lib/localcharset.c: Update from latest gettext.
76108         * lib/config.charset: Likewise.
76109
76110 2001-09-20  Jim Meyering  <meyering@lucent.com>
76111
76112         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76113         strtoimax.
76114         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76115         strtoumax.
76116
76117 2001-09-20  Jim Meyering  <meyering@lucent.com>
76118
76119         * lib/xstrtol.c (strtoimax): Guard declaration with
76120         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76121         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76122         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76123         (strtoumax): Likewise, for completeness (it wasn't necessary).
76124
76125 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76126
76127         * lib/strtoimax.c (HAVE_LONG_LONG):
76128         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76129         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76130         to work around bug in IBM C compiler.
76131
76132 2001-09-17  Jim Meyering  <meyering@lucent.com>
76133
76134         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76135         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76136         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76137         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76138         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76139         whenever the right hand side need not be expanded by the shell.
76140
76141 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76142
76143         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76144         library.  It's not correct, as some older glibcs are buggy.
76145         fnmatch wasn't fixed until glibc 2.2.
76146
76147         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76148         special shell magic here.
76149
76150 2001-09-16  Jim Meyering  <meyering@lucent.com>
76151
76152         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76153         * m4/jm-macros.m4: Require it.
76154
76155 2001-09-16  Jim Meyering  <meyering@lucent.com>
76156
76157         * lib/mkdir.c: New file.
76158
76159 2001-09-15  Jim Meyering  <meyering@lucent.com>
76160
76161         * m4/jm-macros.m4: Check for help2man.
76162
76163 2001-09-11  Jim Meyering  <meyering@lucent.com>
76164
76165         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76166         The body, by Paul Eggert, was moved here from configure.in.
76167         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76168
76169 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76170
76171         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76172         (jm_PREREQ): Use it.
76173
76174 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76175
76176         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76177         Use ssize_t, not int, to store result of readlink.
76178         Check for ssize_t overflow as well as size_t overflow,
76179         as POSIX says the result of readlink is implementation-defined
76180         when ssize_t overflows.
76181         Remove unnecessary cast to char*.
76182         Use free+malloc instead of realloc, as the storage doesn't need
76183         to be preserved and it's clearer and can be more efficient that way.
76184         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76185         * lib/xreadlink.h (xreadlink): Update prototype.
76186
76187 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76188
76189         * lib/xgetcwd.c: Revert some of the previous change; intead,
76190         fix the HAVE_GETCWD_NULL code to behave more like the
76191         !HAVE_GETCWD_NULL code used to.
76192
76193         Include "xalloc.h".
76194         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76195         invoke xalloc_die.
76196
76197 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76198
76199         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76200         sys/param.h, as pathmax.h includes them.
76201
76202 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76203
76204         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76205         (jm_PREREQ_XGETCWD): New macro.
76206
76207         * m4/getcwd.m4: New file.
76208
76209 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76210
76211         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76212         like the HAVE_GETCWD_NULL code.
76213         Include pathmax.h if not HAVE_GETCWD.
76214         Do not include xalloc.h.
76215         (INITIAL_BUFFER_SIZE): New symbol.
76216         Do not use xmalloc / xrealloc, since the caller is responsible for
76217         handling errors.  Preserve errno around `free' during failure.
76218         Do not overrun buffer when using getwd.
76219
76220 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76221
76222         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76223         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76224         getcwd (NULL, 0).
76225
76226 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76227
76228         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76229         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76230         spotted by Jim Meyering.
76231
76232 2001-09-03  Jim Meyering  <meyering@lucent.com>
76233
76234         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76235         failure.
76236
76237 2001-09-02  Jim Meyering  <meyering@lucent.com>
76238
76239         * lib/error.c: Update from GNU libc.
76240
76241 2001-09-01  Jim Meyering  <meyering@lucent.com>
76242
76243         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76244         Used by df.
76245
76246 2001-09-01  Jim Meyering  <meyering@lucent.com>
76247
76248         * lib/xreadlink.c: New file.
76249         * lib/xreadlink.h: New file.
76250         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76251         xreadlink.h.
76252
76253         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76254         doesn't conflict with sparc Solaris 7's definition in
76255         /usr/include/sys/int_types.h.
76256
76257         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76258         files.
76259         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76260         and strncasecmp as r-values.  Unixware didn't have declarations.
76261
76262 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76263
76264         * lib/xstrtol.h: Add copyright notice.
76265         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76266         LONGINT_INVALID_SUFFIX_CHAR.
76267
76268 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76269
76270         * lib/xstrtol.c (strtoimax): New decl.
76271
76272 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76273
76274         * lib/xgetcwd.c: Don't include pathmax.h.
76275         Include stdlib.h and unistd.h if available.
76276         Include xalloc.h.
76277         (xmalloc, xstrdup, free): Remove decls.
76278         (xgetcwd): Don't assume sizes fit in unsigned.
76279         Check for overflow when computing sizes.
76280         Simplify reallocation code.
76281
76282 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76283
76284         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76285         a directory's st_size can have an arbitrary value, so the old
76286         usage could waste an arbitrary amount of memory.  All uses
76287         changed.
76288         * lib/savedir.h: Update prototype.
76289
76290 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76291
76292         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76293
76294         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76295         old strtoimax.c.
76296
76297         Also, make the following further changes to make this file's
76298         configuration more similar to that of strtol.c:
76299         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76300         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76301         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76302         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76303         changed to signed values.
76304
76305         And make the following changes as well:
76306         Fix copyright notice, as 1999 was missing.
76307         (verify): New macro.
76308         (strtoimax): Check sizes at compile-time, not run-time.
76309         Prefer strtol to strtoll if both work.
76310         (main): Remove; it was not that useful and was a pain to maintain.
76311
76312         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76313
76314 2001-08-31  Jim Meyering  <meyering@lucent.com>
76315
76316         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76317         Use an initial, malloc'd, buffer of length 128 rather than
76318         a statically allocated one of length 1024.
76319
76320 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76321
76322         Simplify code, partly by assuming autoconf 2.52 semantics.
76323
76324         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76325
76326         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76327         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76328         All uses removed.
76329         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76330         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76331         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76332         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76333         jm_AC_HEADER_INTTYPES_H.
76334         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76335
76336         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76337
76338         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76339         Quote first arg of AC_DEFUN.
76340         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76341         since they are needed to parse the include file even if we need
76342         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76343         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76344         but with opposite signedness.
76345
76346 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76347
76348         Merge 'exclude' changes from tar 1.13.22.
76349         This fixes one or two unlikely storage allocation overflow bugs,
76350         but doesn't change user-visible behavior otherwise.
76351
76352 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76353
76354         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76355         (jm_PREREQ_EXCLUDE): New macro.
76356
76357 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76358
76359         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76360         tm to be declared.
76361
76362 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76363
76364         * lib/hash.c: Remove '2001' from copyright notice.
76365
76366 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76367
76368         * lib/full-write.h: New file.
76369         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76370         * lib/full-write.c: Correct credits, as cccp.c no longer
76371         exists and anyway it was so heavily changed from the old cccp
76372         code as to be unrecognizable.  Include full-write.h.
76373         (full_write) Return size_t, with short writes meaning failure.
76374         All callers changed.  This fixes a bug with large buffers
76375         on 64-bit hosts.
76376         * lib/utime.c: Include full-write.h.
76377
76378 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76379
76380         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76381         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76382         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76383         Include if available.
76384         (<xalloc.h>): Include
76385         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76386         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76387         collide with FNM macros.
76388         (struct patopts): New struct.
76389         (struct exclude): Use it, as exclude patterns now come with options.
76390         (new_exclude): Support above changes.
76391         (new_exclude, add_exclude_file):
76392         Initial size must now be a power of two to simplify overflow checking.
76393         (free_exclude, fnmatch_no_wildcards): New function.
76394         (excluded_filename): No longer requires options arg, as the options
76395         are determined by add_exclude.  Now returns bool, not int.
76396         (excluded_filename, add_exclude):
76397         Add support for the fancy new exclusion options.
76398         (add_exclude, add_exclude_file): Now takes int options arg.
76399         Check for arithmetic overflow when computing sizes.
76400         (add_exclude_file): xrealloc might modify errno, so don't
76401         realloc until after errno might be used.
76402
76403         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76404         New macros.
76405         (free_exclude): New decl.
76406         (add_exclude, add_exclude_file): Now takes int options arg.
76407         (excluded_filename): No longer requires options arg, as the options
76408         are determined by add_exclude.  Now returns bool, not int.
76409
76410 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76411
76412         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76413
76414 2001-08-27  Jim Meyering  <meyering@lucent.com>
76415
76416         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76417
76418         * lib/version-etc.c (N_): Remove definition.
76419         Revert most of last change.
76420         Instead, simply don't mark the `Copyright...' string for translation.
76421         Based on advice from Paul Eggert.
76422
76423         * lib/strtoxmax.c: Tweak comment.
76424
76425 2001-08-26  Jim Meyering  <meyering@lucent.com>
76426
76427         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76428
76429         * m4/xstrtoimax.m4: New file.
76430         * m4/xstrtoumax.m4: Add comments explaining why we
76431         AC_REPLACE_FUNCS(strtol).
76432
76433 2001-08-26  Jim Meyering  <meyering@lucent.com>
76434
76435         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76436         of copyright with `%s' so translators don't get an untranslated
76437         message in 2002.
76438         (COPYRIGHT_YEAR): Define.
76439         (version_etc): Use fprintf rather than fputs.
76440         Suggestion from Ulrich Drepper.
76441
76442         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76443
76444         * lib/strtoll.c: New file, from GNU libc.
76445         * lib/xstrtoimax.c: New file.
76446
76447         * lib/xstrtol.h: Add xstrtoimax.
76448         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76449         * lib/strtoimax.c: New file.  Likewise, but first define
76450         STRTOUXMAX_SIGNED.
76451
76452         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76453         ...
76454         * lib/strtoxmax.c: ... then renamed to this.
76455
76456 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76457
76458         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76459         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76460         (jm_AC_TYPE_INTMAX_T): New macro.
76461         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76462
76463         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76464
76465         * m4/longlong.m4: Renamed from ulonglong.m4.
76466         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76467         * m4/uintmax_t.m4: Removed.
76468
76469 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76470
76471         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76472         Port to Solaris 8, where 'sed' requires a space after the 'r'
76473         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76474         Redirect output to $tmp just once.
76475
76476 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76477
76478         * lib/addext.c (<errno.h>): Include.
76479         (errno): Declare if not defined.
76480         (addext): Work correctly when pathconf returns -1 and leaves
76481         errno alone because there is no limit.  Also, work even if
76482         pathconf returns a value greater than SIZE_MAX.
76483
76484 2001-08-12  Jim Meyering  <meyering@lucent.com>
76485
76486         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76487         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76488         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76489         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76490         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76491         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76492         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76493         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76494         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76495         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76496         utime.m4, utimes.m4, xstrtoumax.m4:
76497         Quote the first argument in each use of AC_DEFUN.
76498
76499 2001-08-12  Jim Meyering  <meyering@lucent.com>
76500
76501         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76502         Simply `return getcwd (NULL, 0);'.
76503         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76504         Use 1300 as initial value for length, not PATH_MAX.
76505
76506         * lib/pathmax.h: Clean up cpp syntax.
76507
76508 2001-08-12  Jim Meyering  <meyering@lucent.com>
76509
76510         * lib/gettimeofday.c: New file.
76511         * lib/gtod.h: New file.
76512         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76513
76514 2001-08-05  Jim Meyering  <meyering@lucent.com>
76515
76516         * m4/jm-macros.m4: Require autoconf-2.52.
76517
76518 2001-08-04  Jim Meyering  <meyering@lucent.com>
76519
76520         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76521         stmt, to get in sync with glibc.
76522
76523 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76524
76525         The following changes are from gettext 0.10.39 as maintained by
76526         Bruno Haible.
76527
76528         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76529         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76530         with inverted sense.  All uses changed.
76531
76532         * lib/mbswidth.c: Don't include <limits.h>.
76533         Include <stdlib.h> and <string.h> unconditionally.
76534         (iswcntrl, mbsinit, ISCNTRL): New macros.
76535         (mbsnwidth): Use K&R style function declarations.
76536         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76537         can optimize it when MB_CUR_MAX == 1.
76538         The width of control characters is zero, not 1.
76539
76540 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76541
76542         The following changes are from gettext 0.10.39 as maintained by
76543         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76544
76545         * m4/codeset.m4: Upgrade to serial AM1.
76546         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76547         all uses changed.  Quote first arg of AC_DEFUN.
76548         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76549
76550         * m4/iconv.m4: Upgrade to serial AM2.
76551         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76552         Add --with-libconv-prefix.
76553         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76554         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76555         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76556         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76557         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76558
76559         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76560         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76561         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76562         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76563         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76564         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76565         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76566         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76567         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76568
76569         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76570         string.h any more.
76571
76572         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76573         not the default value.
76574
76575         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76576         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76577         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76578         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76579         Also check for iswcntrl, used for wcwidth fallback.
76580         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76581         to Autoconf 2.13.
76582
76583 2001-08-03  Jim Meyering  <meyering@lucent.com>
76584
76585         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76586         as it was in the original.  Reported by Paul Eggert.
76587
76588 2001-07-16  Jim Meyering  <meyering@lucent.com>
76589
76590         * m4/gettimeofday.m4: New file.
76591         Prompted by a report from Bernhard Baehr.
76592
76593 2001-07-15  Jim Meyering  <meyering@lucent.com>
76594
76595         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76596         stuff. Now it's in ../Makefile.cfg.
76597
76598 2001-07-15  Jim Meyering  <meyering@lucent.com>
76599
76600         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76601         (BUILT_SOURCES): Add unlocked-io.h.
76602         (io_functions): Define.
76603         (unlocked-io.h): New rule.
76604         (DISTCLEANFILES): Add unlocked-io.h.
76605         (all-local): Depend on unlocked-io.h, to ensure it is created.
76606
76607         * lib/unlocked-io.hin: New file
76608
76609         * lib/regex.c: Update from glibc.
76610
76611 2001-07-05  Jim Meyering  <meyering@lucent.com>
76612
76613         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76614         recommendation.
76615         (libfetish_a_SOURCES): Put all .h files here instead.
76616         Remove a thus-exposed (better checks in automake) duplicate and
76617         two unnecessary .h files.
76618
76619 2001-07-04  Jim Meyering  <meyering@lucent.com>
76620
76621         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76622         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76623         distcheck failure.
76624
76625 2001-07-02  Jim Meyering  <meyering@lucent.com>
76626
76627         The following changes were prompted by suggestions from Bruno Haible.
76628
76629         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76630         is now generated.
76631         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76632         definition of EXTRA_DIST.
76633         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76634         ensure that the generated file is created/updated whenever the list
76635         of $(unlocked_functions) is changed.
76636         (jm-glibc-io.m4): New rule.
76637         (unlocked-io.h): New rule -- currently unused.
76638
76639 2001-06-24  Jim Meyering  <meyering@lucent.com>
76640
76641         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76642         unmatched right bracket, rather than kludging it with an extra,
76643         falsely-matching quote in a comment.  Patch by Akim Demaille.
76644
76645 2001-06-11  Jim Meyering  <meyering@lucent.com>
76646
76647         * lib/regex.c: Update from GNU libc.
76648
76649 2001-05-27  Jim Meyering  <meyering@lucent.com>
76650
76651         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76652         Check for ut_type in struct utmp.
76653
76654 2001-05-27  Jim Meyering  <meyering@lucent.com>
76655
76656         * lib/readutmp.h (UT_TYPE): Define.
76657
76658 2001-05-24  Jim Meyering  <meyering@lucent.com>
76659
76660         * lib/argmatch.c: Include "quote.h".
76661         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76662         quote function.  Reported by Göran Uddeborg.
76663
76664 2001-05-22  Jim Meyering  <meyering@lucent.com>
76665
76666         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76667         now that we use the package-supplied version unconditionally.
76668         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76669
76670 2001-05-21  Jim Meyering  <meyering@lucent.com>
76671
76672         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76673         shell syntax errors.
76674
76675 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76676
76677         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76678
76679 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76680
76681         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76682         Don't bother to check library strftime, since
76683         we'll be using our own my_strftime function anyway.
76684         Define my_strftime instead of strftime.
76685
76686 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76687
76688         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76689         which is not yet declared.
76690
76691 2001-05-15  Jim Meyering  <meyering@lucent.com>
76692
76693         * m4/regex.m4: Use proper quoting so brackets appear in the test
76694         program.
76695         Reported by, and with help from, Bruno Haible.
76696
76697 2001-05-13  Jim Meyering  <meyering@lucent.com>
76698
76699         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76700         undefined.
76701
76702 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76703
76704         dirname code cleanup.  base_name now behaves more compatibly
76705         with POSIX basename when given file names that have trailing
76706         slashes, and similarly for dir_name.  Add new primitives
76707         base_len and dir_len.  Put the directory-name-related decls
76708         into dirname.h.
76709
76710         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76711         * lib/backupfile.c (base_name): Likewise.
76712         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76713         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76714         * lib/makepath.c (strip_trailing_slashes): Likewise.
76715         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76716         ISSLASH): Likewise.
76717         * lib/rename.c (strip_trailing_slashes): Likewise.
76718         * lib/same.c (base_name): Likewise.
76719         * lib/stripslash.c (ISSLASH): Likewise.
76720
76721         * lib/addext.c: Include <dirname.h> after size_t is defined.
76722         * lib/backupfile.c: Likewise.
76723
76724         * lib/addext.c (addext): Use base_len to trim redundant
76725         trailing slashes instead of doing it ourselves.
76726         But do not trim the last slash if it is not redundant.
76727
76728         * lib/backupfile.c (find_backup_file_name,
76729         max_backup_version): Use base_len instead of rolling it ourselves.
76730         Handle the case of "" and (on DOS) "C:" correctly.
76731
76732         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76733         needed. Include <string.h>, <dirname.h>.
76734         (base_name): Allow file names ending in slashes, other than names
76735         that are all slashes.  In this case, return the basename followed
76736         by the slashes.  This is more general, and can be used in places
76737         where the original base_name purposely had an assertion failure.
76738         (base_len): New function.
76739
76740         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76741         Do not include <assert.h>; no longer needed.
76742         Include xalloc.h.
76743         (memrchr): Remove decl.
76744         (dir_name_r): Remove.
76745         (dir_len): Renamed from dirlen.  All callers changed.
76746         Rewrite in terms of base_name, for simplicity and consistency.
76747         (dir_name): Never return NULL.  All callers changed.
76748         Do not include <stdlib.h> in test program; no longer needed.
76749         return 0; is fine for test program.
76750
76751         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76752         New macros.
76753         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76754
76755         * lib/path-concat.c (path_concat): Use base_len to compute
76756         base length, not strlen; this means we cannot rely on memcpy
76757         to null-terminate.
76758
76759         * lib/same.c (STREQ): Remove.
76760         (same_name): Handle the case where the basename ends in trailing '/'.
76761
76762         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76763         a slash was stripped.  Do not strip the last slash after a
76764         file system prefix.
76765
76766 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76767
76768         * lib/Makefile.am (libfetish_a_SOURCES):
76769         Add strftime.c, since we now compile it on all hosts.
76770
76771         * lib/strftime.c (my_strftime):
76772         Define to nstrftime if emacs, but only if my_strftime is not defined.
76773         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76774         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76775         Add one more extra argument: a nanoseconds value.
76776         All uses changed.
76777         (ns): New macro.
76778         (my_strftime function): Add %N format.
76779         (emacs_strftimeu): Renamed from emacs_strftime,
76780         with extra ut argument.
76781
76782 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76783
76784         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76785
76786 2001-04-21  Jim Meyering  <meyering@lucent.com>
76787
76788         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76789         doesn't interfere.
76790
76791 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76792
76793         * m4/ftruncate.m4: Check for chsize.
76794         Link with ftruncate.o unconditionally if ftruncate is missing.
76795         This was required when cross-compiling to i586-mingw32msvc.
76796
76797 2001-04-08  Jim Meyering  <meyering@lucent.com>
76798
76799         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76800         recomputed; that's necessary when the offset spans a DST transition.
76801         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76802
76803 2001-04-02  Jim Meyering  <meyering@lucent.com>
76804
76805         * lib/regex.h, regex.c: Update from GNU libc.
76806
76807 2001-03-24  Jim Meyering  <meyering@lucent.com>
76808
76809         * m4/jm-macros.m4: Require autoconf-2.49d.
76810
76811 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76812
76813         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76814
76815 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76816
76817         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76818
76819 2001-03-17  Jim Meyering  <meyering@lucent.com>
76820
76821         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76822         now that the version in autoconf is equivalent.
76823         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76824
76825         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76826         Suggestion from Akim Demaille.
76827
76828         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76829         (jm_PREREQ_TEMPNAME): New function.
76830
76831 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76832
76833         * lib/tempname.c (uint64_t): Define to uintmax_t if
76834         not defined, and if UINT64_MAX is not defined.
76835         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76836         Reported by John David Anglin.
76837
76838 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76839
76840         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76841         resolve alias if codeset is empty.
76842         * lib/config.charset (BeOS): Use wildcard syntax.
76843
76844 2001-03-13  Jim Meyering  <meyering@lucent.com>
76845
76846         * lib/path-concat.c (path_concat)
76847         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76848         concatenating e.g., `C:' and `foo'.
76849         From Bruno Haible.
76850
76851 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76852
76853         * lib/localcharset.c (locale_charset): Don't use
76854         setlocale(LC_CTYPE,NULL). Don't return NULL.
76855         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76856
76857 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76858
76859         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76860         support for DOS/DJGPP.
76861
76862 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76863
76864         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76865         lacks mkstemp.  Compile our own tempname.c if we compile our own
76866         mkstemp.c, as mkstemp relies on tempname.
76867
76868 2001-03-01  Jim Meyering  <meyering@lucent.com>
76869
76870         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76871         AH_VERBATIM really does output its argument verbatim.
76872
76873 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76874
76875         * lib/Makefile.am (libfetish_a_SOURCES):
76876         Add dup-safer.c, fopen-safer.c.
76877         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76878
76879         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76880         * lib/unistd-safer.h: New files.
76881
76882 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76883
76884         The mkstemp replacement is taken from glibc 2.2.2, with some
76885         portability fixes for use outside glibc, as follows:
76886
76887         * lib/tempname.c (struct_stat64): New macro.
76888         (direxists, __gen_tempname): Use it.
76889         This avoids a portability problem with Solaris 8.
76890
76891         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76892         (<stddef.h>, <stdint.h>, <string.h>):
76893         Include only if STDC_HEADERS || _LIBC.
76894         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76895         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76896         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76897         (__set_errno): Define this macro if <errno.h> doesn't.
76898         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76899         Define these macros if <stdio.h> doesn't.
76900         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76901         Define these macros if <sys/stat.h>
76902         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76903         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76904         __xstat64): Define if not _LIBC.
76905         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76906         (__gen_tempname): Invoke gettimeofday only if
76907         HAVE_GETTIMEOFDAY || _LIBC;
76908         otherwise, fall back on plain "time".
76909         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76910
76911         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76912
76913         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76914
76915 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76916
76917         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76918
76919 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76920
76921         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76922         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76923         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76924         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76925
76926 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76927
76928         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76929         Remove workaround macros for hosts that have mbrtowc but not
76930         mbstate_t, as we now insist on proper declarations for both
76931         before using mbrtowc.
76932
76933 2001-02-17  Jim Meyering  <meyering@lucent.com>
76934
76935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76936         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76937         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76938         UnixWare 7.1.1.
76939
76940         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76941         rather than AC_CACHE_VAL.
76942
76943 2001-02-17  Jim Meyering  <meyering@lucent.com>
76944
76945         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76946         around included file name.
76947
76948         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76949
76950         * lib/strftime.c: Update from GNU libc (the only changes were to
76951         comments).
76952
76953 2001-02-17  Jim Meyering  <meyering@lucent.com>
76954
76955         * lib/regex.c: Update from libc.
76956
76957 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
76958
76959         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
76960         clash.
76961
76962 2001-02-16  Paul Eggert  <eggert@twinsun.com>
76963
76964         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
76965         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
76966         Reported by Mark Hounschell via Paul Eggert.
76967
76968 2001-02-07  Jim Meyering  <meyering@lucent.com>
76969
76970         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
76971
76972 2001-02-05  Jim Meyering  <meyering@lucent.com>
76973
76974         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
76975         it includes the patch required for `large file' support with at least
76976         HP-UX's 10.20 /bin/cc.
76977
76978 2001-02-03  Jim Meyering  <meyering@lucent.com>
76979
76980         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
76981         AS_IF, now that it works once again (mysteriously).
76982         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76983
76984 2001-01-30  Jim Meyering  <meyering@lucent.com>
76985
76986         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
76987         * m4/chown.m4: Rename conftestchown to conftest.chown.
76988         * m4/rename.m4: s/conftestdir/conftest.d1/ and
76989         s/conftestdir2/conftest.d2/.
76990         * m4/utimes.m4: s/conftestdata/conftest.data/
76991         Inspired by Pavel Roskin's change in autoconf.
76992
76993 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
76994
76995         * lib/config.charset: Update for FreeBSD 4.2.
76996
76997 2001-01-27  Jim Meyering  <meyering@lucent.com>
76998
76999         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77000         a use of AS_IF.
77001         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77002
77003 2001-01-26  Jim Meyering  <meyering@lucent.com>
77004
77005         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77006         quotearg.c includes it.
77007
77008 2001-01-26  Jim Meyering  <meyering@lucent.com>
77009
77010         * lib/quotearg.c: Include stddef.h.
77011         * lib/quote.c: Include stddef.h.
77012         Reported by Axel Kittenberger.
77013
77014         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77015         line in double quotes so that it evokes a better diagnostic.
77016         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77017         Reported by Axel Kittenberger.
77018
77019 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77020
77021         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77022         as if it was a `charset'.
77023
77024 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77025
77026         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77027         has const.
77028
77029 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77030
77031         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77032         to avoid a warning.  Add back 'const' to inptr.
77033
77034 2001-01-20  Jim Meyering  <meyering@lucent.com>
77035
77036         Be sure that headers are checked before used in code compiled
77037         for the type checks.
77038         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77039         In place of that, invoke jm_CHECK_ALL_TYPES.
77040         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77041         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77042         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77043         The check for ssize_t was mistakenly run before the test for unistd.h.
77044
77045         The configure-time check for stdbool.h was missing.
77046         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77047         (jm_PREREQ_HASH): New function.
77048
77049 2001-01-17  Jim Meyering  <meyering@lucent.com>
77050
77051         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77052         for autoconf-2.49c.
77053         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77054
77055 2001-01-16  Jim Meyering  <meyering@lucent.com>
77056
77057         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77058         From Bruno Haible.
77059
77060 2001-01-14  Jim Meyering  <meyering@lucent.com>
77061
77062         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77063         foo and bar.  Create conftestdir/ in the script, not in the C code.
77064         Remove directories in the script, not in the C code.
77065         Remove conftestdir{,2} before trying to create the directory.
77066         Make the entire configure script fail if the mkdir fails.
77067
77068 2001-01-14  Jim Meyering  <meyering@lucent.com>
77069
77070         * lib/rename.c: New file.  From Volker Borchert.
77071         Include stdlib.h, string.h or strings.h, and xalloc.h.
77072         Use strip_trailing_slashes rather than open-coding it.
77073
77074 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77075
77076         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77077
77078 2001-01-03  Jim Meyering  <meyering@lucent.com>
77079
77080         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77081         of local `inptr' to avoid warning with some system declarations of
77082         iconv.
77083
77084 2001-01-02  Volker Borchert  <bt@teknon.de>
77085
77086         * m4/rename.m4: New file.
77087         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77088
77089 2001-01-01  Jim Meyering  <meyering@lucent.com>
77090
77091         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77092         even on systems with utmpx.h.  It's necessary for the declaration of
77093         utmp's ut_user member.  Reported by Andreas Jaeger.
77094
77095         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77096         available. They are required for the declarations of getgrgid and
77097         getpwuid resp.
77098         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77099         Reported by Andreas Jaeger.
77100
77101 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77102
77103         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77104         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77105         so `make install' also works in VPATH builds.
77106
77107 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77108
77109         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77110         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77111         can be used in subdirectories.
77112
77113 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77114
77115         * lib/modechange.c: Do not assume that mode_t uses the
77116         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77117         the other-execute bit of FOO even if S_IXOTH != 1.
77118
77119         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77120         WOTH, XOTH, ALLM): New macros.
77121         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77122          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77123         Use them.
77124         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77125         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77126         (mode_compile):
77127         No need to use uintmax_t; unsigned long is long enough.
77128         Don't bother to get suffix since we don't use it.
77129
77130 2000-12-26  Jim Meyering  <meyering@lucent.com>
77131
77132         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77133         better with autoheader.
77134
77135 2000-12-24  Jim Meyering  <meyering@lucent.com>
77136
77137         * lib/hash.c (is_prime): Return explicit boolean values.
77138         (hash_get_first): Return NULL to appease Irix5.6's 89.
77139         Reported by Nelson Beebe.
77140
77141 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77142
77143         * lib/localcharset.c (locale_charset): Add support for Win32.
77144
77145 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77146
77147         * lib/physmem.h, lib/physmem.c: New files.
77148
77149         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77150         (noinst_HEADERS): Add physmem.h.
77151
77152         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77153         't' for compatibility with Solaris 8 sort.
77154
77155 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77156
77157         * lib/config.charset: Add support for BeOS.
77158
77159 2000-12-17  Jim Meyering  <meyering@lucent.com>
77160
77161         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77162         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77163
77164 2000-12-16  Jim Meyering  <meyering@lucent.com>
77165
77166         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77167         N and M) would have treated it like `chown N:N FILE'.
77168
77169         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77170
77171 2000-12-16  Jim Meyering  <meyering@lucent.com>
77172
77173         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77174         SHELLS_FILE to a file name that's useful on djgpp systems.
77175         Include stdlib.h.
77176         (ADDITIONAL_DEFAULT_SHELLS): Define.
77177         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77178         Based mostly on a patch from Prashant TR.
77179
77180 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77181
77182         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77183         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77184         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77185
77186 2000-12-08  Andreas Schwab  <schwab@suse.de>
77187
77188         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77189         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77190
77191 2000-12-07  Jim Meyering  <meyering@lucent.com>
77192
77193         * lib/stripslash.c (ISSLASH): Define.
77194         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77195         `/'.
77196         From Prashant TR.
77197
77198         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77199         (dir_name_r): Declare this function as static.
77200         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77201         manifest itself on a name containing a mix of slashes and
77202         backslashes.
77203         Make this function work with names starting with a DOS-style
77204         drive letter and colon prefix.
77205         (dir_name): Append `.' if necessary.
77206         Based mostly on patches from Prashant TR and Eli Zaretskii.
77207
77208         * lib/dirname.h (dir_name_r): Remove prototype.
77209
77210 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77211
77212         * m4/off_t-format.m4: Remove this file.
77213         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77214
77215 2000-12-06  Jim Meyering  <meyering@lucent.com>
77216
77217         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77218         replacement strtoull, we may well need the replacement strtoul, too.
77219         Check for declarations of strtoul and strtoull.
77220         Check for strtol.  Mainly as a cue to cause automake to include
77221         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77222         Check for limits.h -- strtol.c needs it.
77223
77224 2000-12-05  Jim Meyering  <meyering@lucent.com>
77225
77226         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77227
77228 2000-12-04  Jim Meyering  <meyering@lucent.com>
77229
77230         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77231         Also include memory.h, stdlib.h, unistd.h if appropriate.
77232         Reported by Andreas Jaeger (conflicting declaration of malloc).
77233
77234 2000-12-02  Jim Meyering  <meyering@lucent.com>
77235
77236         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77237         * m4/jm-macros.m4 (jm_MACROS): require it.
77238
77239 2000-12-02  Jim Meyering  <meyering@lucent.com>
77240
77241         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77242
77243 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77244
77245         * lib/memrchr.c: Include <config.h> before any system include file.
77246
77247 2000-11-30  Jim Meyering  <meyering@lucent.com>
77248
77249         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77250
77251 2000-11-30  Jim Meyering  <meyering@lucent.com>
77252
77253         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77254
77255 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77256
77257         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77258
77259 2000-11-26  Jim Meyering  <meyering@lucent.com>
77260
77261         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77262
77263 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77264
77265         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77266         size of (size_t) -1; it's not portable.
77267
77268 2000-11-17  Jim Meyering  <meyering@lucent.com>
77269
77270         * lib/strstr.c: Update from GNU libc.
77271
77272 2000-11-17  Akim Demaille  <akim@epita.fr>
77273
77274         * lib/obstack.h: Formatting changes.
77275         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77276         prevent type checking.
77277         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77278         cast the value to (void *): assigning a `foo *' to a `void *'
77279         variable is valid.
77280         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77281
77282 2000-11-16  Jim Meyering  <meyering@lucent.com>
77283
77284         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77285
77286 2000-11-11  Jim Meyering  <meyering@lucent.com>
77287
77288         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77289
77290 2000-11-10  Jim Meyering  <meyering@lucent.com>
77291
77292         * lib/obstack.h: Update from GNU libc.
77293         * lib/obstack.c: Likewise.
77294
77295 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77296
77297         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77298
77299 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77300
77301         * lib/getusershell.c (setusershell): Use rewind rather than
77302         fseek/fseeko, to avoid configuration hassles with fseeko.
77303         Don't bother opening SHELLS_FILE if shellstream is NULL;
77304         it's not necessary.
77305
77306 2000-11-05  Jim Meyering  <meyering@lucent.com>
77307
77308         * lib/makepath.h (make_dir): Declare.
77309         * lib/makepath.c (make_dir): Remove `static' attribute.
77310         Tweak a comment.
77311
77312 2000-11-04  Jim Meyering  <meyering@lucent.com>
77313
77314         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77315
77316 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77317
77318         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77319         last one in a bucket, advance to the next bucket.
77320
77321 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77322
77323         * lib/fnmatch.c: Do not comment out all the code if we are using
77324         the GNU C library, because in some cases we are replacing buggy
77325         code in the GNU C library itself.
77326
77327 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77328
77329         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77330         (regex_compile): Catch bogus \(\1\).
77331
77332 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77333
77334         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77335         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77336         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77337
77338 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77339
77340         * lib/error.h, getline.h, modechange.h:
77341         Remove "2000" from Copyright line, as the file hasn't been
77342         changed this year other than in the copyright notice.
77343
77344         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77345         was changed this year.
77346
77347 2000-10-29  Jim Meyering  <meyering@lucent.com>
77348
77349         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77350         renaming.
77351         * m4/ls-mntd-fs.m4: Likewise
77352
77353 2000-10-29  Jim Meyering  <meyering@lucent.com>
77354
77355         * lib/xstat.in: Fix grammar in comment.
77356
77357 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77358
77359         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77360         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77361         doesn't define __restrict_arr.
77362
77363 2000-10-28  Jim Meyering  <meyering@lucent.com>
77364
77365         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77366         (jm_PREREQ_MEMCHR): New function.
77367
77368 2000-10-28  Jim Meyering  <meyering@lucent.com>
77369
77370         * lib/memchr.c: Update from libc.
77371         Adjust for portability:
77372         [HAVE_STDLIB_H]: Include stdlib.h.
77373         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77374         Undef __memchr, too.
77375         [!weak_alias]: Define __memchr to memchr.
77376
77377         * lib/regex.c: Update from libc.
77378         * lib/regex.h: Likewise.
77379         * lib/getopt1.c: Likewise.
77380         * lib/memcmp.c: Likewise.
77381
77382         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77383         Avoid using fseek, when possible -- it's broken by design.
77384         Patch by Ulrich Drepper.
77385
77386 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77387
77388         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77389         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77390         Giving in to popular pressure to shut up the compiler with casts.
77391
77392 2000-10-26  Jim Meyering  <meyering@lucent.com>
77393
77394         * lib/strftime.c: Update from libc.
77395
77396 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77397
77398         * regex.c: More `unsigned char' -> `re_char' changes.
77399         Also change several `int' into `re_wchar_t'.
77400         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77401         (PUSH_FAILURE_POINTER): Don't cast any more.
77402         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77403         We want GCC to complain, since this piece of code makes
77404         re_match non-reentrant, which *should* be fixed.
77405         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77406         (EXTEND_BUFFER): Use RETALLOC.
77407         (SET_LIST_BIT): Don't cast.
77408         (re_wchar_t): New type.
77409         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77410         that those two functions will always properly return.
77411         (IMMEDIATE_QUIT_CHECK): Cast to void.
77412         (analyse_first): Use recursion rather than an explicit stack.
77413         (re_compile_fastmap): Can't fail anymore.
77414         (re_search_2): Don't check re_compile_fastmap for failure.
77415         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77416         Now also sets the new value (passed in a new argument).
77417         (re_match_2_internal): Use it.
77418         Also, use a new var `reg' of type size_t when looping through regs
77419         rather than reuse the inappropriate `mcnt'.
77420
77421 2000-10-25  Jim Meyering  <meyering@lucent.com>
77422
77423         * lib/obstack.c: Update from libc.
77424
77425 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77426
77427         * regex.c (regex_compile): Change the way of handling a range from
77428         a char less than 256 to a char not less than 256.
77429
77430 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77431
77432         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77433         NT-Emacs only.
77434         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77435         so that re_search functions only quit when callers expect them to.
77436
77437 2000-10-23  Jim Meyering  <meyering@lucent.com>
77438
77439         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77440         wrong.  That set_locale call must not have any side effects.
77441         From Paul Eggert.
77442
77443 2000-10-22  Jim Meyering  <meyering@lucent.com>
77444
77445         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77446         [CYCLIC]: Remove now-unused definition.
77447
77448         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77449         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77450         Suggestion from Ulrich Drepper.
77451
77452 2000-10-21  Jim Meyering  <meyering@lucent.com>
77453
77454         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77455         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77457
77458 2000-10-21  Jim Meyering  <meyering@lucent.com>
77459
77460         * lib/dirname.c (memrchr): Declare if necessary.
77461         (dir_name): Remove the restriction that there be no
77462         trailing slashes.  Now, this code skips past them, effectively
77463         ignoring them.
77464         [TEST_DIRNAME] (main): New unit tests.
77465
77466         * lib/memrchr.c: New file from GNU libc.
77467         Undef __memrchr, too.
77468         [!weak_alias]: Define __memrchr to memrchr.
77469         Guard weak_alias use with `#ifdef weak_alias'.
77470
77471 2000-10-21  Jim Meyering  <meyering@lucent.com>
77472
77473         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77474         (dir_name): Use dir_name_r.
77475         * lib/dirname.h (dir_name_r): Declare it.
77476
77477 2000-10-17  Jim Meyering  <meyering@lucent.com>
77478
77479         * lib/quote.h (PARAMS): Define and use.
77480         Reported by Akim Demaille.
77481
77482         * lib/getopt.c: Update from libc.
77483
77484 2000-10-16  Jim Meyering  <meyering@lucent.com>
77485
77486         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77487         setlocale.
77488         From Jan Fedak.
77489
77490 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77491
77492         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77493
77494 2000-09-25  Jim Meyering  <meyering@lucent.com>
77495
77496         * lib/md5.h (rol): Define (from GnuPG).
77497
77498         * lib/sha.c: Give credit (GnuPG) where due.
77499         (M): Use rol rather than open-coding it.
77500         Add a FIXME comment.
77501
77502 2000-09-21  Jim Meyering  <meyering@lucent.com>
77503
77504         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77505         Reported by Michael Stone.
77506
77507 2000-09-20  Jim Meyering  <meyering@lucent.com>
77508
77509         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77510         (noinst_HEADERS): Add sha.h.
77511         Based on code from Scott G. Miller and from GnuPG.
77512
77513 2000-09-18  Jim Meyering  <meyering@lucent.com>
77514
77515         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77516         LIBS. Otherwise, everyone ends up linking with -lelf for some
77517         configurations.
77518         Reported by Mike Stone.
77519
77520 2000-09-15  Jim Meyering  <meyering@lucent.com>
77521
77522         * lib/regex.c: Update from libc.
77523
77524 2000-09-10  Jim Meyering  <meyering@lucent.com>
77525
77526         * lib/getopt.c (_getopt_internal): Update from glibc.
77527
77528 2000-09-09  Jim Meyering  <meyering@lucent.com>
77529
77530         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77531         think it should be used as a general replacement for isascii.
77532         * lib/fnmatch.c: Likewise.
77533         * lib/mbswidth.c: Likewise
77534         * lib/regex.c: Likewise.
77535
77536         Don't use atoi.
77537         * lib/userspec.c: Include sys/param.h and limits.h.
77538         Include xstrtol.h.
77539         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77540         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77541         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77542         UID, GID.  Check range.
77543
77544 2000-09-06  Jim Meyering  <meyering@lucent.com>
77545
77546         * lib/getopt.c (_getopt_internal): Update from glibc.
77547
77548 2000-08-30  Jim Meyering  <meyering@lucent.com>
77549
77550         * lib/strftime.c: Merge in changes from GNU libc.
77551
77552 2000-08-26  Jim Meyering  <meyering@lucent.com>
77553
77554         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77555         * m4/fpending.m4: New file.
77556
77557 2000-08-26  Jim Meyering  <meyering@lucent.com>
77558
77559         * lib/closeout.c: Include "__fpending.h".
77560         (close_stdout_status): Return right away if there's nothing to flush.
77561
77562         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77563         * lib/__fpending.c: New file.
77564         * lib/__fpending.h: New file.
77565
77566 2000-08-20  Jim Meyering  <meyering@lucent.com>
77567
77568         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77569         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77570         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77571
77572 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77573
77574         Improve fileutils installation on systems where running
77575         programs (like install) can't be unlinked.
77576         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77577         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77578
77579 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77580
77581         Standardize on "memory exhausted" instead of "Memory exhausted"
77582         or "virtual memory exhausted".
77583         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77584         "virtual memory exhausted".
77585         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77586         our own message.
77587         * lib/userspec.c (parse_user_spec): Likewise.
77588         * lib/bumpalloc.h: comment fix
77589         * lib/same.c, userspec.c: Include xalloc.h.
77590
77591         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77592         not char *const and pointing to a constant array.
77593         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77594         (xrealloc): Comment fix.
77595
77596         * lib/userspec.c (parse_user_spec):
77597         Don't translate a message until just before returning,
77598         to avoid unnecessary translation.
77599
77600 2000-08-07  Jim Meyering  <meyering@lucent.com>
77601
77602         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77603         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77604         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77605         getgroups.c, gethostname.c, getopt.h, group-member.c,
77606         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77607         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77608         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77609         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77610         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77611         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77612         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77613         yesno.c: Back out Copyright date changes for each file with no change
77614         this year.  This eases coordination with other programs using the same
77615         source code modules.  From Paul Eggert.
77616
77617 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77618
77619         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77620         not char, for compatibility with glibc 2.1.3 strftime.c.
77621
77622 2000-08-03  Greg McGary  <greg@mcgary.org>
77623
77624         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77625         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77626         (EXTEND_BUFFER): Use them.
77627
77628 2000-08-01  Jim Meyering  <meyering@lucent.com>
77629
77630         * lib/dirname.c (ISSLASH): Define.
77631         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77632         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77633         both `\' and `/' may be use as path separators.
77634         Based on a patch from Prashant TR.
77635
77636 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77637
77638         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77639         slot vector a constant, since it might get modified.
77640
77641 2000-07-31  Jim Meyering  <meyering@lucent.com>
77642
77643         * lib/xmalloc.c: Use `virtual memory exhausted', not
77644         `Memory exhausted'.
77645         * lib/obstack.c (print_and_abort): Likewise.
77646
77647 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77648
77649         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77650         buffer, so that the caller can always quote one small
77651         component of a "memory exhausted" message in slot 0.
77652         From a suggestion by Jim Meyering.
77653
77654 2000-07-30  Jim Meyering  <meyering@lucent.com>
77655
77656         * lib/makepath.c (make_path): Quote the other instance, too.
77657
77658         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77659         (STATIC_BUF_SIZE): Define.
77660         (quotearg_n_options): Use only statically allocated storage when
77661         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77662         than STATIC_BUF_SIZE.
77663
77664 2000-07-29  Jim Meyering  <meyering@lucent.com>
77665
77666         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77667         * lib/dirname.c (dir_name): Likewise.
77668
77669         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77670         `/'.
77671
77672         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77673         (dir_name): Assert that there are no trailing slashes.
77674
77675 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77676
77677         * lib/mbswidth.h (mbswidth): Add a flags argument.
77678         (mbswidth): New declaration.
77679         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77680         * lib/mbswidth.c (mbswidth): Add a flags argument.
77681         (mbsnwidth): New function.
77682
77683 2000-07-24  Jim Meyering  <meyering@lucent.com>
77684
77685         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77686
77687 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77688
77689         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77690
77691 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77692
77693         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77694         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77695         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77696         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77697         invoke multibyte primitives.
77698
77699 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77700
77701         * lib/quotearg.c:
77702         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77703         so that mbstate_t is always defined.
77704
77705         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77706         be 1 in at least one GCC installation, and this configuration
77707         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77708         performance on hosts that have mbrtowc but have only unibyte
77709         locales, but I assume these hosts are rare.
77710
77711 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77712
77713         * lib/mbswidth.c (_XOPEN_SOURCE):
77714         Don't define; this causes problems on Solaris 7.
77715         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77716
77717 2000-07-23  Jim Meyering  <meyering@lucent.com>
77718
77719         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77720         too: getgrgid, getpwuid, getuid.
77721
77722 2000-07-23  Jim Meyering  <meyering@lucent.com>
77723
77724         * lib/basename.c (base_name): Add an assertion.
77725
77726 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77727
77728         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77729         shadow its mbsinit function.
77730
77731 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77732
77733         * lib/mbswidth.h: New file.
77734         * lib/mbswidth.c: New file.
77735         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77736         (noinst_HEADERS): Add mbswidth.h.
77737
77738 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77739
77740         * lib/config.charset: Add support for FreeBSD. Improve support for
77741         HP-UX and IRIX 6.
77742
77743 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77744
77745         * m4/mbswidth.m4: New file.
77746         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77747
77748 2000-07-15  Jim Meyering  <meyering@lucent.com>
77749
77750         * lib/makepath.c: Include quote.h.
77751         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77752         corresponding argument in a `quote (...)' call.
77753         Give better diagnostics.
77754
77755         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77756         (noinst_HEADERS): Add quote.h.
77757
77758         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77759         from tar's src/misc.c.
77760         * lib/quote.h: New file.  Prototypes for same.
77761
77762 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77763
77764         From a suggestion by Bruno Haible.
77765         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77766         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77767         to decide whether to define the BeOS workaround macro;
77768         this adjusts to the change to AC_MBSTATE_T.
77769
77770 2000-07-14  Jim Meyering  <meyering@lucent.com>
77771
77772         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77773         jm_AC_TYPE_UINTMAX_T.
77774
77775 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77776
77777         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77778
77779         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77780         quotearg_buffer_restyled): Add support for
77781         clocale_quoting_style.  Undo previous change to
77782         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77783         and "{RIGHT QUOTATION MARK}" msgids.
77784
77785 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77786
77787         From a suggestion by Bruno Haible.
77788         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77789         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77790         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77791         and mbstate_t, to a single-part test that simply defines mbstate_t.
77792         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77793         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77794
77795 2000-07-10  Jim Meyering  <meyering@lucent.com>
77796
77797         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77798
77799         * m4/gnu-source.m4: Output to confdefs.h directly.
77800         Suggestion from Akim Demaille.
77801
77802 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77803
77804         The old behavior of quoting `like this' doesn't look good with
77805         newer, ISO-style fonts.  See:
77806         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77807
77808         Instead, quote "like this" by default.  Let the translator
77809         tailor the locale-specific quoting behavior by providing
77810         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77811
77812         * lib/quotearg.c (N_): New macro.
77813         (gettext_default): New function.
77814         (quotearg_buffer_restyled): Use
77815         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77816         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77817
77818 2000-07-09  Jim Meyering  <meyering@lucent.com>
77819
77820         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77821         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77822
77823         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77824         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77825
77826 2000-07-09  Jim Meyering  <meyering@lucent.com>
77827
77828         * lib/Most files: Update copyright dates to include 2000.
77829
77830 2000-07-08  Jim Meyering  <meyering@lucent.com>
77831
77832         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77833         if not defined.
77834         (xgethostname): Remove now-unnecessary #ifdef.
77835         Move declaration of `err' into loop where it's used.
77836
77837 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77838         and Bruno Haible  <haible@clisp.cons.org>
77839
77840         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77841         only if the test for an object-type mbstate_t fails.  This
77842         prevents us from mistakenly reporting that mbstate_t is a
77843         system object type after we "#define mbstate_t int" to work
77844         around its lack.
77845
77846 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77847         and Bruno Haible  <haible@clisp.cons.org>
77848
77849         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77850
77851 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77852
77853         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77854         to strerror_r.
77855         Include <ctype.h> for use of isalpha.
77856
77857 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77858
77859         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77860         by allocating a larger buffer. Test the gethostname return value for
77861         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77862         returns an error and ENAMETOOLONG isn't defined.
77863
77864 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77865
77866         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77867         dimension.
77868
77869 2000-07-04  Jim Meyering  <meyering@lucent.com>
77870
77871         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77872         of the deprecated AC_CHECKING.
77873
77874 2000-07-04  Jim Meyering  <meyering@lucent.com>
77875
77876         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77877         Reported by Bruno Haible.
77878
77879 2000-07-04  Jim Meyering  <meyering@lucent.com>
77880
77881         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77882         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77883         lacks mbrtowc.
77884
77885 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77886
77887         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77888         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77889
77890 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77891         and Bruno Haible  <haible@clisp.cons.org>
77892
77893         * lib/quotearg.c (mbrtowc):
77894         Assign to *pwc, and return 1 only if result is nonzero.
77895         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77896
77897 2000-07-03  Jim Meyering  <meyering@lucent.com>
77898
77899         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77900
77901 2000-07-03  Jim Meyering  <meyering@lucent.com>
77902
77903         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77904         This is necessary to get a definition of e.g., UTMP_FILE on
77905         HP-UX 10.20.
77906         From Bob Proulx.
77907
77908 2000-07-02  Jim Meyering  <meyering@lucent.com>
77909
77910         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77911
77912         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77913         AC_LIBOBJ(function_name).
77914         * m4/chown.m4: Likewise.
77915         * m4/fnmatch.m4: Likewise.
77916         * m4/ftruncate.m4: Likewise.
77917         * m4/getgroups.m4: Likewise.
77918         * m4/getline.m4: Likewise.
77919         * m4/group-member.m4: Likewise.
77920         * m4/jm-macros.m4: Likewise.
77921         * m4/lstat.m4: Likewise.
77922         * m4/malloc.m4: Likewise.
77923         * m4/memcmp.m4: Likewise.
77924         * m4/nanosleep.m4: Likewise.
77925         * m4/putenv.m4: Likewise.
77926         * m4/realloc.m4: Likewise.
77927         * m4/regex.m4: Likewise.
77928         * m4/stat.m4: Likewise.
77929         * m4/strftime.m4: Likewise.
77930
77931 2000-07-02  Jim Meyering  <meyering@lucent.com>
77932
77933         * lib/quotearg.c (mbstate_t): Don't define here.
77934
77935 2000-07-02  Jim Meyering  <meyering@lucent.com>
77936
77937         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77938
77939 2000-07-01  Jim Meyering  <meyering@lucent.com>
77940
77941         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77942
77943 2000-07-01  Jim Meyering  <meyering@lucent.com>
77944
77945         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77946         problem.
77947
77948 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77949
77950         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77951         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77952
77953 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77954
77955         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
77956         per change in ../m4/ls-mntd-fs.m4.
77957         (read_filesystem_list): Ignore symbolic links.
77958
77959 2000-06-29  Jim Meyering  <meyering@lucent.com>
77960
77961         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
77962         for declaration of strcmp.
77963
77964         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
77965
77966         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
77967         Avoid warning by casting result to `char *' to remove `const'.
77968
77969 2000-06-28  Jim Meyering  <meyering@lucent.com>
77970
77971         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
77972         included by quotearg.c, for which we perform this test.  From
77973         Bruno Haible.
77974
77975 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77976
77977         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
77978         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
77979         <utmpx.h> exists, put readutmp.o into LIBOBJS.
77980
77981 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77982
77983         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
77984
77985 2000-06-26  Paul Eggert  <eggert@twinsun.com>
77986
77987         savedir now sets errno on failure and invokes xmalloc to get memory.
77988         Fix a couple of other minor bugs while we're at it.
77989
77990         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
77991         (NAMLEN): Remove macro.
77992         (malloc, realloc): Remove decls.
77993         (stpcpy): Likewise.
77994         ("xalloc.h"): Include.
77995         (NAME_SIZE_DEFAULT): New macro.
77996         (savedir): Use xmalloc / xrealloc to allocate memory.
77997         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
77998         Skip "" directory entries.
77999         Use strlen to calculate directory entry length, since the old method
78000         is rarely used these days and isn't worth supporting.
78001         Don't use a pointer after freeing it.
78002         Check for integer overflow when calculating allocation size.
78003         Use memcpy to copy entries, instead of stpcpy.
78004         Set errno properly when returning NULL.
78005         Check for readdir error.
78006
78007 2000-06-26  Jim Meyering  <meyering@lucent.com>
78008
78009         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78010
78011 2000-06-25  Jim Meyering  <meyering@lucent.com>
78012
78013         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78014         Linux header bug when _XOPEN_SOURCE is defined to 500.
78015
78016 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78017
78018         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78019         deficiency.
78020
78021 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78022
78023         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78024         Include xalloc.h.
78025         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78026
78027 2000-06-24  Jim Meyering  <meyering@lucent.com>
78028
78029         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78030         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78031         for which strerror does return char*, but which lacks a conveniently
78032         accessible declaration of the function.  If the compile-test says
78033         strerror_r doesn't work, then resort to a `run'-test that works on
78034         BeOS and segfaults on DEC Unix.
78035
78036 2000-06-24  Jim Meyering  <meyering@lucent.com>
78037
78038         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78039
78040 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78041
78042         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78043         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78044
78045 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78046
78047         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78048         (mbrtowc, mbstate_t): Define substitutes if
78049         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78050         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78051         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78052
78053 2000-06-23  Jim Meyering  <meyering@lucent.com>
78054
78055         * m4/afs.m4: Add missing AC_MSG_RESULT.
78056         Reported by Bruno Haible.
78057
78058         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78059         Suggestion from Bruno Haible.
78060
78061 2000-06-23  Jim Meyering  <meyering@lucent.com>
78062
78063         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78064
78065 2000-06-21  Jim Meyering  <meyering@lucent.com>
78066
78067         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78068
78069 2000-06-21  Jim Meyering  <meyering@lucent.com>
78070
78071         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78072         (noinst_HEADERS): Add getstr.h.
78073
78074         * lib/getline.c (getstr): Move into a separate file.
78075         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78076         the following changes: new parameter, delim2; both delim[12]
78077         parameters have type `int', not `char'.  The latter would lose
78078         with 8-bit delimiters.
78079         * lib/getstr.h: New file.
78080
78081 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78082
78083         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78084         than 1024, return a memory chunk of least possible size, instead
78085         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78086         Use free/xmalloc instead of xrealloc to avoid copying for very long
78087         paths.
78088
78089 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78090
78091         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78092         the empty string.
78093
78094 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78095
78096         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78097         address, not strdup.  Include <stdlib.h> and don't declare free().
78098
78099 2000-06-19  Jim Meyering  <meyering@lucent.com>
78100
78101         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78102
78103 2000-06-18  Jim Meyering  <meyering@lucent.com>
78104
78105         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78106
78107         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78108         `checking whether...' message to be consistent with that of the
78109         lstat test.
78110
78111 2000-06-18  Jim Meyering  <meyering@lucent.com>
78112
78113         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78114         Besides, these days every porting target provides a mkdir function.
78115
78116         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78117         needed. (this snippet comes from src/system.h).
78118
78119 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78120
78121         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78122
78123 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78124
78125         * lib/human.c (adjust_value): New function.
78126         (human_readable_inexact): Apply rounding style even when
78127         printing approximate values.
78128
78129 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78130
78131         * lib/human.c (human_readable_inexact): Allow an input block
78132         size that is not a multiple of the output block size, and vice versa.
78133         Reported by Piergiorgio Sartor.
78134
78135 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78136
78137         * lib/getdate.y (get_date): Apply relative times after time
78138         zone indicator, not before.  Reported by Todd A. Jacobs.
78139
78140 2000-06-13  Jim Meyering  <meyering@lucent.com>
78141
78142         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78143
78144         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78145
78146 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78147
78148         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78149
78150 2000-06-12  Jim Meyering  <meyering@lucent.com>
78151
78152         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78153         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78154         optional argument.
78155         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78156         the optional argument, `lib'.
78157
78158 2000-06-08  Jim Meyering  <meyering@lucent.com>
78159
78160         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78161
78162 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78163
78164         Rewrite largefile configuration so that we don't need to run
78165         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78166         AC_CANONICAL_HOST in configure.in -- jmm]
78167
78168         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78169         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78170         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78171         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78172         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78173         All uses changed.
78174         Instead of inspecting the output of getconf, try to compile the
78175         test program without and with the macro definition.
78176         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78177         for getconf.  Instead, check for the needed flags by compiling
78178         test programs.
78179
78180 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78181
78182         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78183
78184 2000-06-04  Jim Meyering  <meyering@lucent.com>
78185
78186         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78187         SunOS 4.1.4 for which gid_t is an unsigned type.
78188
78189 2000-06-03  Jim Meyering  <meyering@lucent.com>
78190
78191         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78192         now that autoconf requires that.
78193
78194         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78195         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78196         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78197
78198 2000-06-03  Jim Meyering  <meyering@lucent.com>
78199
78200         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78201
78202 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78203
78204         * m4/glibc21.m4: New file.
78205         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78206
78207 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78208
78209         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78210         newer, don't install charset.alias.
78211         * lib/config.charset: Change the Linux/glibc rules so they become empty
78212         on glibc-2.1 or newer.
78213
78214 2000-06-02  Jim Meyering  <meyering@lucent.com>
78215
78216         * lib/mountlist.c: Back out last change.  Instead, do this...
78217         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78218         me_dummy member using the same `ignore'-testing code.
78219         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78220         fs_type strings.
78221         From Mark D. Roth.
78222
78223 2000-05-29  Jim Meyering  <meyering@lucent.com>
78224
78225         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78226         mounts with the `ignore' attribute.  Based on a patch from
78227         Mark D. Roth.
78228
78229 2000-05-28  Jim Meyering  <meyering@lucent.com>
78230
78231         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78232         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78233         * m4/stat.m4: Likewise.
78234         * m4/lstat.m4: Likewise.
78235         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78236
78237         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78238         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78239
78240 2000-05-26  Jim Meyering  <meyering@lucent.com>
78241
78242         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78243
78244 2000-05-24  Jim Meyering  <meyering@lucent.com>
78245
78246         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78247         autoconf requires that.
78248         * m4/lib-check.m4: Likewise.
78249         * m4/jm-macros.m4: Likewise.
78250         * m4/strftime.m4: Likewise.
78251
78252         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78253         AC_CHECK_DECLS, now that autoconf requires that.
78254
78255 2000-05-22  Jim Meyering  <meyering@lucent.com>
78256
78257         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78258         * m4/lstat.m4: Likewise.
78259
78260 2000-05-22  Jim Meyering  <meyering@lucent.com>
78261
78262         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78263
78264 2000-05-20  Jim Meyering  <meyering@lucent.com>
78265
78266         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78267         (jm_PREREQ): Use it.
78268
78269 2000-05-18  Jim Meyering  <meyering@lucent.com>
78270
78271         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78272         back, too, since it may have been modified by allocate_entry.
78273         (hash_delete): Rewrite to use neither the assignment operator
78274         nor the comma operator in an if-expression.
78275
78276 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78277
78278         * lib/closeout.c:
78279         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78280         Remove; no longer needed.
78281         "quotearg.h": Add include.
78282         (file_name): Do not bother to explicitly initialize to NULL; it's less
78283         efficient on some hosts.
78284         (close_stdout_status): Remove test as to whether stdout was already
78285         closed; it breaks for the case "echo x | sort >&-".
78286         Quote file name colons.
78287         Do not assume that _("write error") lacks format strings.
78288
78289 2000-05-15  Jim Meyering  <meyering@lucent.com>
78290
78291         * lib/version-etc.c (version_etc_copyright): Update the copyright
78292         string used in all --version output.
78293
78294 2000-05-14  Jim Meyering  <meyering@lucent.com>
78295
78296         * lib/closeout.c (close_stdout_set_file_name): New function.
78297         (close_stdout_status): Use new file-scoped global.
78298         Return right away if fstat says the stdout file descriptor is invalid.
78299         * lib/closeout.h (close_stdout_set_file_name): Declare.
78300
78301 2000-05-10  Jim Meyering  <meyering@lucent.com>
78302
78303         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78304         (close_stdout_set_status): New function.
78305         * lib/closeout.h (close_stdout_set_status): Declare.
78306
78307 2000-05-09  Jim Meyering  <meyering@lucent.com>
78308
78309         * m4/gettext.m4: Rename this...
78310         * m4/libintl.m4: ...to this.
78311
78312 2000-05-08  Jim Meyering  <meyering@lucent.com>
78313
78314         * lib/long-options.c: Don't include closeout.h.
78315         (parse_long_options): Don't call close_stdout for --version.
78316
78317 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78318
78319         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78320         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78321         2.1.3 bug.  This avoids a clash when files like regex.c define
78322         _GNU_SOURCE.
78323
78324 2000-05-06  Jim Meyering  <meyering@lucent.com>
78325
78326         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78327         (AC_REPLACE_FUNCS): Add strnlen.
78328
78329         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78330         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78331
78332         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78333         AC_SEARCH_LIBS call for nanosleep.
78334         (LIB_NANOSLEEP): Set and AC_SUBST.
78335
78336 2000-05-06  Jim Meyering  <meyering@lucent.com>
78337
78338         * lib/strnlen.c: Undefine __strnlen and strnlen.
78339         [!weak_alias]: Define __strnlen to strnlen.
78340
78341         * lib/atexit.c: New file, from libiberty.
78342
78343 2000-05-06  Jim Meyering  <meyering@lucent.com>
78344
78345         * lib/closeout.c (close_stdout_status): Also check for errors on the
78346         stderr stream.
78347
78348 2000-05-05  Jim Meyering  <meyering@lucent.com>
78349
78350         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78351         AC_SEARCH_LIBS call for clock_gettime.
78352         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78353
78354         * m4/search-libs.m4: Update from autoconf.
78355
78356         su doesn't work on Solaris 2.6.
78357         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78358         <shadow.h>.  Reported by Dragos Harabor.
78359
78360 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78361
78362         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78363         memcpy instead of xmalloc, xrealloc, path_concat.
78364         (locale_charset): Treat empty environment variables as absent.
78365         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78366
78367 2000-05-04  Jim Meyering  <meyering@lucent.com>
78368
78369         * lib/getopt.c: Update from glibc.
78370         * lib/obstack.c: Likewise.
78371         * lib/obstack.h: Likewise.
78372         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78373         file
78374
78375         * lib/regex.h: Likewise.
78376         * lib/strndup.c: Likewise.
78377         * lib/strnlen.c: New file, from glibc.
78378
78379 2000-05-03  Jim Meyering  <meyering@lucent.com>
78380
78381         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78382
78383 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78384
78385         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78386         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78387         compile-time test, rather than inspecting host and OS, to
78388         decide whether to define _LARGEFILE_SOURCE.
78389
78390 2000-05-01  Jim Meyering  <meyering@lucent.com>
78391
78392         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78393
78394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78395         Based on a patch from Bruno Haible.
78396
78397 2000-05-01  Jim Meyering  <meyering@lucent.com>
78398
78399         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78400
78401 2000-04-29  Jim Meyering  <meyering@lucent.com>
78402
78403         * lib/path-concat.c: Declare strdup only if it's not defined.
78404         * lib/canon-host.c: Likewise.
78405
78406 2000-04-28  Jim Meyering  <meyering@lucent.com>
78407
78408         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78409         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78410         is included first, then limits.h is included by locale.h by libintl.h.
78411         From John David Anglin.
78412
78413 2000-04-25  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/makepath.c (S_IRWXUGO): Define.
78416         (make_path): Always perform explicit chmod if MODE specifies any
78417         of the `special' permission bits.  Prompted by a bug report against
78418         install from Mate Wierdl and Joost van Baal.
78419
78420 2000-04-18  Jim Meyering  <meyering@lucent.com>
78421
78422         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78423         (jm_PREREQ): Use it.
78424
78425 2000-04-18  Jim Meyering  <meyering@lucent.com>
78426
78427         * lib/README: New file.
78428
78429         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78430         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78431
78432 2000-04-17  Jim Meyering  <meyering@lucent.com>
78433
78434         Get it right :-)
78435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78436         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78437         Suggestion from Akim Demaille.
78438
78439 2000-04-17  Jim Meyering  <meyering@lucent.com>
78440
78441         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78442         the definition of it to rpl_strftime also defined-away the system's
78443         declaration.
78444
78445 2000-04-15  Jim Meyering  <meyering@lucent.com>
78446
78447         Use `C' to denote so-called `contiguous' files, the same way
78448         that tar does.
78449         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78450         (ftypelet): Use S_ISCTG.
78451         From Michael Deutschmann.
78452
78453 2000-04-14  Jim Meyering  <meyering@lucent.com>
78454
78455         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78456         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78457         clobbered.
78458
78459 2000-04-14  Jim Meyering  <meyering@lucent.com>
78460
78461         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78462
78463 2000-04-13  Jim Meyering  <meyering@lucent.com>
78464
78465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78466         AH_VERBATIM to insert required #ifndef into config.h.in.
78467         Suggestion from Akim Demaille.
78468
78469 2000-04-12  Jim Meyering  <meyering@lucent.com>
78470
78471         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78472         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78473         Christian Krackowizer.
78474
78475         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78476         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78477         (AC_SYS_LARGEFILE): Require.
78478         (AM_C_PROTOTYPES): Require.
78479
78480 2000-04-08  Jim Meyering  <meyering@lucent.com>
78481
78482         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78483         names don't conflict.  Reported by Eli Zaretskii.
78484
78485 2000-04-07  Jim Meyering  <meyering@lucent.com>
78486
78487         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78488         sys/types.h, to work around system header problems on AIX 3.2.5.
78489         From Bruno Haible.
78490
78491 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78492
78493         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78494         bug.  Deal with the different error behavior of Irix iconv.
78495
78496 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78497
78498         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78499         IRIX if the installer said otherwise.
78500
78501 2000-04-05  Jim Meyering  <meyering@lucent.com>
78502
78503         Portability tweaks required for ultrix4.3.
78504         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78505         (jm_CHECK_DECLS): Add getutent to the list of functions.
78506         (_jm_DECL_HEADERS): Add utmpx.h.
78507         From John David Anglin.
78508
78509         * m4/strftime.m4: Back out the 2000-04-02 change.
78510         Instead of that change, simply undefine putenv in the test program.
78511
78512 2000-04-05  Jim Meyering  <meyering@lucent.com>
78513
78514         Portability tweaks required for ultrix4.3.
78515         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78516         getutent.
78517         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78518         * lib/canon-host.c: Declare strdup.
78519         * lib/path-concat.c: Likewise.
78520         From John David Anglin.
78521
78522 2000-04-04  Jim Meyering  <meyering@lucent.com>
78523
78524         Be more DOS 8.3-friendly.
78525         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78526         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78527         * lib/Makefile.am: Reflect renaming.
78528         Reported by Eli Zaretskii.
78529
78530         Use a temporary file name that won't clash with `charset.alias'
78531         in the DOS 8.3 name space.
78532         * lib/Makefile.am (charset_tmp): Define.
78533         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78534         (uninstall-local): Likewise.
78535         Reported by Eli Zaretskii.
78536
78537 2000-04-03  Jim Meyering  <meyering@lucent.com>
78538
78539         * m4/gettext.m4: Fix typo in comment.
78540
78541         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78542         textutils/configure.in).  Suggestion from Paul Eggert.
78543         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78544
78545 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78546
78547         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78548         variable in the shell rather than using putenv, which isn't
78549         portable.  This avoids the configure-time inter-test dependency
78550         on the potentially-renamed putenv function.
78551
78552 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78553
78554         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78555         before checking struct stat.st_blksize, so that
78556         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78557
78558 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78559
78560         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78561         since strftime.c uses HAVE_STRFTIME to decide whether to use
78562         the underlying strftime.
78563
78564 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78565
78566         * lib/time/strftime.c (my_strftime): Make sure we call the system
78567         strftime, not ourselves, when invoking the underlying strftime.
78568
78569 2000-03-24  Jim Meyering  <meyering@lucent.com>
78570
78571         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78572         (charset_alias): Define.
78573         (install-exec-local): Factor out common code.
78574         (uninstall-local): Split lines longer than 80.
78575         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78576         (SUFFIXES): Define.
78577         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78578         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78579
78580 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78581
78582         * lib/config.charset: Output a line containing "Packages using this
78583         file".
78584         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78585         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78586         ref-del.sed): New rules.
78587
78588 2000-03-17  Jim Meyering  <meyering@lucent.com>
78589
78590         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78591         Otherwise, include <strings.h>
78592
78593 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78594
78595         * lib/unicodeio.c (utf8_wctomb): New function.
78596         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78597         format instead of in UCS-4 with platform dependent endianness.
78598
78599 2000-03-10  Jim Meyering  <meyering@lucent.com>
78600
78601         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78602         From Marco Franzen.
78603
78604 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78605
78606         * lib/savedir.c (savedir): Work even if directory size is
78607         negative; this can happen with some screwy NFS configurations.
78608
78609 2000-03-06  Jim Meyering  <meyering@lucent.com>
78610
78611         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78612         if it's NULL (because we ran out of memory).  From Bruno Haible.
78613
78614 2000-03-05  Jim Meyering  <meyering@lucent.com>
78615
78616         * lib/localcharset.c ("path-concat.h"): Include.
78617         (get_charset_aliases): Use path_concat instead of ANSI string
78618         concatenation.
78619
78620         * lib/unicodeio.h (PARAMS): Define.
78621         Use it to guard prototype.
78622
78623 2000-03-04  Jim Meyering  <meyering@lucent.com>
78624
78625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78626         for lib/localcharset.c.
78627
78628 2000-03-04  Jim Meyering  <meyering@lucent.com>
78629
78630         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78631         installing into it.
78632         (uninstall-local): Uncomment this rule so `make distcheck' works
78633         once again.
78634
78635         * lib/unicodeio.c (<errno.h>): Include it.
78636         (errno): Declare if not defined.
78637
78638         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78639
78640         * lib/config.charset: New version, incorporating remarks from a linux
78641         i18n mailing list.  From Bruno Haible.
78642
78643 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78644
78645         * m4/codeset.m4: New file.
78646         * m4/iconv.m4: New file.
78647         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78648
78649 2000-03-03  Jim Meyering  <meyering@lucent.com>
78650
78651         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78652
78653 2000-03-02  Jim Meyering  <meyering@lucent.com>
78654
78655         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78656         the messages come out on separate lines.
78657
78658         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78659         rather than jm_CHECK_DECLARATIONS.
78660         * m4/decl.m4: Remove now-unused file.
78661
78662         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78663         geteuid.
78664
78665 2000-03-02  Jim Meyering  <meyering@lucent.com>
78666
78667         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78668
78669 2000-03-01  Jim Meyering  <meyering@lucent.com>
78670
78671         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78672         * lib/unicodeio.c: Likewise.
78673
78674 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78675
78676         * lib/config.charset: New file.
78677         * lib/localcharset.c: New file.
78678         * lib/unicodeio.h, lib/unicodeio.c: New files.
78679         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78680         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78681         (noinst_HEADERS): Add unicodeio.h.
78682         (all-local, install-exec-local, charset.alias): New targets.
78683
78684 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78685
78686         * lib/quotearg.c (ALERT_CHAR): New macro.
78687         (quotearg_buffer_restyled): Use it.
78688
78689 2000-02-27  Jim Meyering  <meyering@lucent.com>
78690
78691         * m4/check-decl.m4: Add getenv to the list.
78692
78693 2000-02-27  Jim Meyering  <meyering@lucent.com>
78694
78695         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78696         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78697
78698         * lib/backupfile.c: Guard inclusion of stdlib.h with
78699         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78700         Declare malloc if needed.
78701
78702         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78703         `#ifndef HAVE_DECL..'
78704         now that autoconf always defines the HAVE_DECL_ symbols.
78705         * lib/human.c: Likewise.
78706         * lib/same.c: Likewise.
78707         * lib/strtoumax.c: Likewise.
78708
78709         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78710         declaration check was not run.
78711         * lib/hash.c: Likewise.
78712         * lib/human.c: Likewise.
78713         * lib/same.c: Likewise.
78714         * lib/strtoumax.c: Likewise.
78715
78716         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78717         `.', then first look up the entire `.'-containing string as a login
78718         name.
78719
78720 2000-02-23  Jim Meyering  <meyering@lucent.com>
78721
78722         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78723         in place of my hack.
78724
78725 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78726
78727         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78728         (textint): New typedef.
78729         (parser_control): Member year changed from int to textint.
78730         All uses changed.
78731         (YYSTYPE): Removed; replaced by %union with int and textint members.
78732         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78733         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78734         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78735         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78736         (date, number, to_year): Use width of number in digits, not its value,
78737         to determine whether it's a 2-digit year, or a 2-digit time.
78738         (yylex): Store number of digits of numeric tokens.
78739         Reported by John Kendall.
78740
78741         (parser_control): Changed from struct parser_control to typedef (for
78742         consistency).  All uses changed.
78743
78744         (tID): Removed; not used.
78745         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78746
78747 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78748
78749         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78750         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78751
78752 2000-02-12  Jim Meyering  <meyering@lucent.com>
78753
78754         * lib/userspec.c (ISDIGIT): Define it.
78755         (isdigit): Remove definition.
78756         (is_number): Use ISDIGIT, not isdigit.
78757         <libintl.h>: Include.
78758         (_ and N_): Define.
78759         (parse_user_spec): Mark translatable strings.
78760
78761 2000-02-10  Jim Meyering  <meyering@lucent.com>
78762
78763         With these changes, nanosleep.[ch] are finally enough like the other
78764         lib/* replacement files to compile on a few more losing systems.
78765
78766         * lib/nanosleep.h: Don't include config.h.
78767         Remove prototype from declaration of nanosleep.
78768         (PARAMS): Remove now-unneeded definition.
78769         * lib/nanosleep.c: #undef nanosleep.
78770         (rpl_nanosleep): Rename from nanosleep.
78771
78772 2000-02-10  Jim Meyering  <meyering@lucent.com>
78773
78774         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78775         gnu_nanosleep to rpl_nanosleep.
78776
78777 2000-02-09  Jim Meyering  <meyering@lucent.com>
78778
78779         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78780         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78781
78782 2000-02-08  Akim Demaille  <akim@epita.fr>
78783
78784         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78785         `[' and `]' and remove uses of `changequote'.
78786         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78787         (AC_SYS_LARGEFILE): Likewise.
78788         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78789         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78790         of changequote.
78791         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78792         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78793         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78794         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78795
78796 2000-02-05  Jim Meyering  <meyering@lucent.com>
78797
78798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78799         Remove explicit use of AC_HEADER_TIME.  It is required by
78800         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78801         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78802         in autoconf whereby the expansion of the latter ended up preceding
78803         the expansion of its prerequisite, AC_HEADER_TIME.
78804         Reported by Volker Borchert.
78805
78806 2000-02-03  Jim Meyering  <meyering@lucent.com>
78807
78808         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78809
78810 2000-02-03  Jim Meyering  <meyering@lucent.com>
78811
78812         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78813         rather than with `#if HAVE_UTMPNAME'.
78814
78815 2000-02-02  Jim Meyering  <meyering@lucent.com>
78816
78817         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78818         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78819         Reported by Eli Zaretskii.
78820
78821 2000-02-01  Jim Meyering  <meyering@lucent.com>
78822
78823         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78824
78825 2000-01-31  Jim Meyering  <meyering@lucent.com>
78826
78827         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78828         functions.  Add the time.h and sys/time.h headers along with the
78829         AC_REQUIRE'ment of AC_HEADER_TIME.
78830
78831 2000-01-31  Jim Meyering  <meyering@lucent.com>
78832
78833         * lib/nanosleep.h (nanosleep): Guard declaration with
78834         `#if ! HAVE_DECL_NANOSLEEP'.
78835         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78836         the declaration in that vendor's sys/timers.h.
78837         Reported by Christian Krackowizer.
78838
78839         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78840         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78841         (ISPRINT): Likewise.
78842         Reported by Tom Tromey.
78843
78844 2000-01-30  Jim Meyering  <meyering@lucent.com>
78845
78846         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78847
78848         * m4/prereq.m4 (utmp_includes): Define.
78849         Check for ut_user and ut_name members in both struct utmpx
78850         and struct utmp.
78851
78852 2000-01-30  Jim Meyering  <meyering@lucent.com>
78853
78854         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78855         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78856         header files where only utmpx.ut_user is declared.
78857
78858         * lib/readutmp.h (UT_USER): Define.
78859
78860 2000-01-29  Jim Meyering  <meyering@lucent.com>
78861
78862         * m4/lib-check.m4: New file containing library-related checks from
78863         fileutils and sh-utils (textutils had none).
78864
78865 2000-01-28  Jim Meyering  <meyering@lucent.com>
78866
78867         * m4/perl.m4: Change format of warning message to look more like that
78868         from the missing script.  Suggestion from François Pinard.
78869
78870 2000-01-25  Jim Meyering  <meyering@lucent.com>
78871
78872         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78873         well as time.h in the compile check.
78874         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78875         Fix typo in cross-compiling case: s/yes/no/.
78876
78877 2000-01-23  Jim Meyering  <meyering@lucent.com>
78878
78879         * m4/jm-macros.m4: Move df-related tests here from
78880         fileutils/configure.in
78881
78882         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78883         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78884
78885         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78886         s/space/ac_fsusage_space/.
78887         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78888
78889         * m4/ftruncate.m4: New file (derived from part of
78890         fileutils/configure.in).
78891         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78892         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78893
78894         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78895         AC_SUBST these here, rather than just in sh-util/configure.in, so
78896         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78897         all the same.
78898         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78899         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78900         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78901         (AC_SUBST(POW_LIBM)): Likewise.
78902         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78903
78904 2000-01-23  Jim Meyering  <meyering@lucent.com>
78905
78906         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78907         obstack.c.
78908
78909 2000-01-22  Jim Meyering  <meyering@lucent.com>
78910
78911         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78912
78913         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78914
78915         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78916         configure.in
78917         (AC_CHECK_HEADERS): Likewise for sh-utils.
78918         (AC_CHECK_HEADERS): Likewise for textutils.
78919         Merge the three lists of headers.
78920
78921         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78922         from fileutils' configure.in.
78923
78924         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78925         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78926         check-decl.m4.
78927
78928         * m4/check-decl.m4: Use #if rather than #ifdef.
78929         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78930         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78931         (_jm_DECL_HEADERS): Define new function.
78932         (jm_CHECK_DECLARATIONS): Require it.
78933
78934 2000-01-22  Jim Meyering  <meyering@lucent.com>
78935
78936         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78937         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78938         Required for some AIX systems.  Reported by Christian Krackowizer.
78939         [TESTING] (main): New function.
78940
78941         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78942         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78943         letters.
78944
78945         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78946         iswprint.
78947
78948         * lib/strverscmp.c (ISDIGIT): Define.
78949         (strverscmp): Use ISDIGIT, not isdigit.
78950
78951 2000-01-19  Jim Meyering  <meyering@lucent.com>
78952
78953         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
78954         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
78955         defines `struct timespec' in <sys/time.h>
78956
78957         * m4/c-bs-a.m4: Remove uses of changequote altogether.
78958         Thanks to Akim for explaining.
78959
78960 2000-01-17  Paul Eggert  <eggert@twinsun.com>
78961
78962         * lib/nanosleep.c (nanosleep):
78963         Don't use SA_INTERRUPT to decide whether to call sigaction, as
78964         POSIX.1 doesn't require SA_INTERRUPT and some systems
78965         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
78966         it's been part of POSIX.1 since day 1 (in 1988).
78967
78968 2000-01-17  Jim Meyering  <meyering@lucent.com>
78969
78970         * lib/interlock: Remove unused file.  Reported by François Pinard.
78971
78972 2000-01-16  Paul Eggert  <eggert@twinsun.com>
78973
78974         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
78975         alert, backslash, formfeed, and vertical tab unnecessarily in
78976         shell quoting style.
78977
78978 2000-01-16  Jim Meyering  <meyering@lucent.com>
78979
78980         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
78981         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
78982         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
78983         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
78984
78985 2000-01-16  Jim Meyering  <meyering@lucent.com>
78986
78987         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
78988         because the latter didn't work.
78989
78990 2000-01-15  Jim Meyering  <meyering@lucent.com>
78991
78992         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
78993         (AC_REPLACE_FUNCS): Add memcpy and memset.
78994         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
78995         Add strpbrk.
78996         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
78997
78998 2000-01-12  Jim Meyering  <meyering@lucent.com>
78999
79000         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79001         (jm_PREREQ): Use it.
79002         (jm_PREREQ_READUTMP): New macro.
79003         (jm_PREREQ): Use it.
79004
79005 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79006
79007         Quote multibyte characters correctly.
79008         * m4/c-bs-a.m4: New file.
79009         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79010         (jm_PREREQ): Use it.
79011
79012 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79013
79014         * m4/uintmax_t.m4: Port to autoconf 2.13.
79015
79016 2000-01-08  Jim Meyering  <meyering@ascend.com>
79017
79018         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79019         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79020
79021 2000-01-04  Jim Meyering  <meyering@ascend.com>
79022
79023         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79024         jm_STRUCT_DIRENT_D_TYPE.
79025         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79026         jm_STRUCT_DIRENT_D_INO.
79027         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79028         jm_STRUCT_UTIMBUF.
79029         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79030         renamings.
79031         * m4/utime.m4: Likewise.
79032
79033         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79034         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79035
79036 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79037
79038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79039         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79040
79041 2000-01-02  Jim Meyering  <meyering@ascend.com>
79042
79043         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79044         remember if this is necessary.
79045
79046 1999-12-26  Jim Meyering  <meyering@ascend.com>
79047
79048         * m4/jm-macros.m4: Use it here.
79049         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79050
79051 1999-12-23  Jim Meyering  <meyering@ascend.com>
79052
79053         * m4/jm-macros.m4: Check for clock_gettime (moved from
79054         fileutils/configure.in)
79055         Check for gettimeofday.
79056
79057 1999-12-20  Jim Meyering  <meyering@ascend.com>
79058
79059         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79060         autoconf-2.14a-1999-12-20.
79061
79062 1999-12-19  Jim Meyering  <meyering@ascend.com>
79063
79064         * m4/lstat-slash.m4: New file.
79065         * m4/jm-macros.m4: Use the new macro:
79066         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79067
79068 1999-12-07  Jim Meyering  <meyering@ascend.com>
79069
79070         * m4/perl.m4: Require that File::Compare be available, too.
79071         Too many systems seem to lack it.
79072
79073         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79074         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79075
79076 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79077
79078         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79079         problem with the QNX 4.25 shell, which doesn't propagate exit
79080         status of failed commands inside shell assignments.
79081
79082 1999-11-17  Jim Meyering  <meyering@ascend.com>
79083
79084         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79085
79086 1999-11-07  Jim Meyering  <meyering@ascend.com>
79087
79088         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79089
79090 1999-11-06  Jim Meyering  <meyering@ascend.com>
79091
79092         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79093         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79094
79095 1999-11-05  Jim Meyering  <meyering@ascend.com>
79096
79097         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79098         configure.in of textutils, fileutils, and sh-utils into this one
79099         (shared between those packages) file.
79100         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79101         AC_STRUCT_ST_BLKSIZE.
79102
79103 1999-11-03  Jim Meyering  <meyering@ascend.com>
79104
79105         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79106         of AC_CHECK_TYPE checks includes unistd.h.
79107         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79108         Suggestion from Akim Demaille.
79109
79110 1999-10-30  Jim Meyering  <meyering@ascend.com>
79111
79112         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79113         m4-quoted string.
79114         * m4/ls-mntd-fs.m4: Likewise.
79115         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79116         * m4/jm-winsz1.m4: Likewise.
79117
79118         * m4/const.m4: Remove file, since the fix made it into the experimental
79119         version of autoconf.
79120         * m4/mktime.m4: Likewise.
79121
79122         * m4/check-type.m4: Remove file, now that the latest version of
79123         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79124
79125         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79126         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79127         AC_CHECK_TYPE.
79128
79129 1999-10-04  Jim Meyering  <meyering@ascend.com>
79130
79131         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79132
79133 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79134
79135         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79136         2.95.1 bug with HP-UX 10.20.
79137
79138 1999-09-17  Jim Meyering  <meyering@ascend.com>
79139
79140         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79141         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79142         due to missing strdup (against sh-utils-2.0).
79143
79144 1999-08-29  Jim Meyering  <meyering@ascend.com>
79145
79146         * m4/jm-macros.m4: Require jm_BISON.
79147         * m4/bison.m4: New file.
79148
79149 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79150
79151         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79152         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79153
79154 1999-08-05  Jim Meyering  <meyering@ascend.com>
79155
79156         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79157         to avoid conflicts with `conftest' on 8+3 filesystems.
79158         Suggestion from Eli Zaretskii.
79159
79160 1999-08-04  Jim Meyering  <meyering@ascend.com>
79161
79162         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79163         fileutils and sh-utils (textutils's getline test was inadequate).
79164         (AM_FUNC_GETLINE): Run this test.
79165         (AC_CHECK_FUNCS): Check for getdelim.
79166         Reported by Bob Proulx.
79167
79168 1999-08-02  Jim Meyering  <meyering@ascend.com>
79169
79170         * m4/jm-macros.m4: Add a comment.
79171
79172 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79173
79174         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79175         <inttypes.h> defines strtoumax as a macro (and not as a
79176         function).
79177
79178 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79179
79180         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79181         that we can shift, multiply and divide unsigned long long
79182         values; Ultrix cc can't do it.
79183
79184 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79185
79186         * m4/mktime.m4: New file, which is a preview of what should appear
79187         in the next public autoconf release.
79188
79189 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79190
79191         * m4/lfs.m4: Remove this file.
79192         * m4/largefile.m4: New file.  It contains the old contents of
79193         lfs.m4, except that all names with prefix AC_LFS have been
79194         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79195         compatible with future autoconf versions.  Also, some minor m4
79196         quoting problems have been fixed.
79197
79198 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79199
79200         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79201         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79202         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79203         and simplify the shell code.
79204
79205 1999-08-01  Jim Meyering  <meyering@ascend.com>
79206
79207         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79208         m4.
79209
79210 1999-07-20  Jim Meyering  <meyering@ascend.com>
79211
79212         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79213
79214 1999-07-15  Jim Meyering  <meyering@ascend.com>
79215
79216         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79217
79218 1999-05-22  Jim Meyering  <meyering@ascend.com>
79219
79220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79221
79222 1999-05-20  Jim Meyering  <meyering@ascend.com>
79223
79224         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79225         Add a colon after each `then' in case $4 is empty.
79226
79227 1999-05-16  Jim Meyering  <meyering@ascend.com>
79228
79229         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79230
79231 1999-05-10  Jim Meyering  <meyering@ascend.com>
79232
79233         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79234
79235         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79236         AC_FUNC_MKTIME.
79237
79238 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79239
79240         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79241
79242 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79243
79244         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79245         not CPPFLAGS, so that linking works correctly in IRIX.
79246
79247 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79248
79249         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79250
79251 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79252
79253         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79254         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79256         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79257         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79258
79259         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79260
79261 1999-04-20  Jim Meyering  <meyering@ascend.com>
79262
79263         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79264         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79265         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79266
79267 1999-04-18  Jim Meyering  <meyering@ascend.com>
79268
79269         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79270         * m4/jm-macros.m4: Use it.
79271
79272 1999-04-06  Jim Meyering  <meyering@ascend.com>
79273
79274         * m4/strftime.m4: Remove test for %f.
79275
79276 1999-03-29  Jim Meyering  <meyering@ascend.com>
79277
79278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79279         superset of the AC_TYPE_* checks in the textutils, fileutils,
79280         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79281         AC_TYPE_PID_T.
79282
79283 1999-03-28  Jim Meyering  <meyering@ascend.com>
79284
79285         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79286         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79287         replaced e.g., in the *.sh files of the sh-utils.
79288
79289 1999-03-20  Jim Meyering  <meyering@ascend.com>
79290
79291         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79292         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79293         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79294
79295 1999-03-19  Jim Meyering  <meyering@ascend.com>
79296
79297         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79298
79299 1999-03-12  Jim Meyering  <meyering@ascend.com>
79300
79301         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79302
79303 1999-03-07  Jim Meyering  <meyering@ascend.com>
79304
79305         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79306         declared.
79307
79308 1999-02-17  Jim Meyering  <meyering@ascend.com>
79309
79310         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79311         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79312
79313 1999-02-07  Jim Meyering  <meyering@ascend.com>
79314
79315         * m4/group-member.m4: New file -- extracted from sh-utils'
79316         configure.in.
79317
79318         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79319         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79320
79321 1999-02-06  Jim Meyering  <meyering@ascend.com>
79322
79323         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79324         * m4/fnmatch.m4: Likewise.
79325         * m4/getgroups.m4: Likewise.
79326         * m4/lstat.m4: Likewise.
79327         * m4/malloc.m4: Likewise.
79328         * m4/putenv.m4: Likewise.
79329         * m4/realloc.m4: Likewise.
79330         * m4/regex.m4: Likewise.
79331         * m4/stat.m4: Likewise.
79332         * m4/strftime.m4: Likewise.
79333         Suggestion from Alain Magloire.
79334
79335         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79336         * m4/fnmatch.m4: Likewise.
79337         * m4/getgroups.m4: Likewise.
79338         * m4/getline.m4: Likewise.
79339         * m4/lstat.m4: Likewise.
79340         * m4/malloc.m4: Likewise.
79341         * m4/memcmp.m4: Likewise.
79342         * m4/putenv.m4: Likewise.
79343         * m4/realloc.m4: Likewise.
79344         * m4/regex.m4: Likewise.
79345         * m4/stat.m4: Likewise.
79346         * m4/strftime.m4: Likewise.
79347         Suggestion from Alain Magloire.
79348
79349         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79350         an argument.
79351
79352         * m4/regex.m4: Add a run-time Test for proper operation of
79353         re_compile_pattern.
79354
79355 1999-01-31  Jim Meyering  <meyering@ascend.com>
79356
79357         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79358
79359 1999-01-30  Jim Meyering  <meyering@ascend.com>
79360
79361         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79362
79363         * m4/jm-mktime.m4: Make this a wrapper around the official
79364         AM_FUNC_MKTIME rather than my private copy, now that the official one
79365         is up to date.
79366         * m4/mktime.m4: Remove file.
79367
79368         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79369         * m4/uptime.m4: Likewise.
79370         * m4/uintmax_t.m4: Likewise.
79371
79372 1999-01-28  Jim Meyering  <meyering@ascend.com>
79373
79374         * m4/jm-macros.m4: Use jm_AFS.
79375         * m4/afs.m4: New file (from fileutils' configure.in).
79376
79377         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79378         * m4/chown.m4: Likewise.
79379         * m4/d-ino.m4: Likewise.
79380         * m4/d-type.m4: Likewise.
79381         * m4/fnmatch.m4: Likewise.
79382         * m4/getgroups.m4: Likewise.
79383         * m4/gettext.m4: Likewise.
79384         * m4/jm-mktime.m4: Likewise.
79385         * m4/jm-winsz2.m4: Likewise.
79386         * m4/lcmessage.m4: Likewise.
79387         * m4/ls-mntd-fs.m4: Likewise.
79388         * m4/malloc.m4: Likewise.
79389         * m4/memcmp.m4: Likewise.
79390         * m4/putenv.m4: Likewise.
79391         * m4/realloc.m4: Likewise.
79392         * m4/st_mtim.m4: Likewise.
79393         * m4/strftime.m4: Likewise.
79394
79395 1999-01-16  Jim Meyering  <meyering@ascend.com>
79396
79397         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79398         (ARGMATCH_DIE_DECL): Define.
79399
79400 1999-01-12  Jim Meyering  <meyering@ascend.com>
79401
79402         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79403         Reported by Lars Hecking.
79404
79405 1999-01-10  Jim Meyering  <meyering@ascend.com>
79406
79407         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79408         gross kludge.
79409         * m4/inttypes_h.m4: Likewise.
79410         * m4/lstat.m4: Likewise.
79411         * m4/malloc.m4: Likewise.
79412         * m4/readdir.m4: Likewise.
79413         * m4/realloc.m4: Likewise.
79414         * m4/st_dm_mode.m4: Likewise.
79415         * m4/stat.m4: Likewise.
79416         * m4/utimbuf.m4: Likewise.
79417         * m4/utimes.m4: Likewise.
79418
79419         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79420         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79421         comments in config.h.in are meaningful.
79422
79423         * m4/jm-macros.m4: Require autoconf-2.13 here.
79424
79425         * m4/regex.m4: By default, don't use the included regex.c on systems
79426         with glibc 2.  Suggestion from Uli Drepper.
79427
79428 1999-01-02  Jim Meyering  <meyering@ascend.com>
79429
79430         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79431
79432 1998-12-18  Jim Meyering  <meyering@ascend.com>
79433
79434         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79435         Based on a suggestion from Lars Hecking.
79436
79437 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79438
79439         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79440
79441 1998-11-16  Jim Meyering  <meyering@ascend.com>
79442
79443         * m4/lfs.m4: Double-quote the `uname...` expression.
79444
79445 1998-11-14  Jim Meyering  <meyering@ascend.com>
79446
79447         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79448         * m4/stat.m4: Likewise.
79449
79450 1998-11-03  Jim Meyering  <meyering@ascend.com>
79451
79452         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79453         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79454
79455 1998-10-18  Jim Meyering  <meyering@ascend.com>
79456
79457         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79458
79459 1998-10-17  Jim Meyering  <meyering@ascend.com>
79460
79461         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79462         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79463         calls for those previously hard-coded headers.  Instead, take a new
79464         parameter.
79465         (jm_CHECK_DECLARATIONS): Reflect interface change.
79466         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79467         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79468
79469         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79470
79471 1998-10-14  Jim Meyering  <meyering@ascend.com>
79472
79473         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79474         instead of "TZ=America/Vancouver".  From Paul Eggert.
79475
79476 1998-10-11  Jim Meyering  <meyering@ascend.com>
79477
79478         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79479         This adds a test for a recently added compatibility fix for mktime.c.
79480         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79481
79482 1998-09-27  Jim Meyering  <meyering@ascend.com>
79483
79484         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79485
79486         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79487         ../configure.in, including a change from Gordon Matzigkeit to allow
79488         cross-compiling for the Hurd.
79489
79490         * m4/glibc.m4: New file/macro to test for the GNU C Library
79491         versions 1 and 2.  From Gordon Matzigkeit.
79492         Indent.
79493
79494 1998-09-21  Jim Meyering  <meyering@ascend.com>
79495
79496         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79497
79498 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79499
79500         Port nanosecond-resolution times to UnixWare 2.1.2 and
79501         pedantic Solaris 2.6.
79502
79503         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79504         AC_STRUCT_ST_MTIM.
79505         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79506         Generate name of ns member, instead of just 1 or undef.
79507         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79508
79509 1998-08-15  Jim Meyering  <meyering@ascend.com>
79510
79511         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79512         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79513         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79514         instead of jm_TYPE_SSIZE_T.
79515
79516 1998-08-12  Jim Meyering  <meyering@ascend.com>
79517
79518         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79519
79520 1998-08-02  Jim Meyering  <meyering@ascend.com>
79521
79522         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79523         in acconfig.h manually.
79524
79525 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79526
79527         * m4/st_mtim.m4: New file.
79528
79529 1998-07-28  Jim Meyering  <meyering@ascend.com>
79530
79531         * m4/utimes.m4: Undef stat.
79532
79533 1998-07-25  Jim Meyering  <meyering@ascend.com>
79534
79535         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79536         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79537
79538 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79539
79540         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79541         uid and gid actually remain unchanged.
79542
79543 1998-07-07  Jim Meyering  <meyering@ascend.com>
79544
79545         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79546
79547 1998-07-04  Jim Meyering  <meyering@ascend.com>
79548
79549         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79550         to prove that this macro can be used in packages without regex.c.
79551
79552 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79553
79554         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79555         is to be used.
79556
79557 1998-07-03  Jim Meyering  <meyering@ascend.com>
79558
79559         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79560
79561         * m4/gettext.m4: New file -- from gettext-0.10.35.
79562         * m4/lcmessage.m4: Likewise.
79563         * m4/progtest.m4: Likewise.
79564
79565         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79566         * m4/jm-macros.m4: Require the new macro.
79567
79568 1998-06-29  Jim Meyering  <meyering@ascend.com>
79569
79570         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79571         for the definition of NGROUPS (used in a system header included
79572         by sys/mount.h).
79573
79574 1998-06-28  Jim Meyering  <meyering@ascend.com>
79575
79576         * m4/ls-mntd-fs.m4: New file.
79577         * m4/fstypename.m4: New file.
79578
79579         * m4/jm-macros.m4: Require the new macro.
79580         * m4/jm-glibc-io.m4: New file.
79581
79582 1998-05-19  Jim Meyering  <meyering@ascend.com>
79583
79584         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79585         * m4/lchown.m4: New file.
79586
79587         * m4/Makefile.am.in: New file.
79588         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79589
79590 1998-05-14  Jim Meyering  <meyering@ascend.com>
79591
79592         * m4/Makefile.am (EXTRA_DIST): Add them.
79593         * m4/jm-macros.m4: New file.
79594         * m4/utimbuf.m4: New file.
79595
79596 1998-05-12  Jim Meyering  <meyering@ascend.com>
79597
79598         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79599
79600 1998-05-11  Jim Meyering  <meyering@ascend.com>
79601
79602         * m4/isc-posix.m4: New file.
79603
79604 1998-05-10  Jim Meyering  <meyering@ascend.com>
79605
79606         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79607
79608 1998-05-09  Jim Meyering  <meyering@ascend.com>
79609
79610         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79611         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79612         with automake.
79613
79614         * m4/ssize_t.m4: New file.
79615         * m4/mktime.m4: Remove file -- the new automake has this now.
79616
79617 1998-04-26  Jim Meyering  <meyering@ascend.com>
79618
79619         * m4/assert.m4: New file.
79620         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79621
79622 1998-04-05  Jim Meyering  <meyering@ascend.com>
79623
79624         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79625         (jm_PREREQ): Use it here.
79626
79627 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79628
79629         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79630         in acconfig.h.
79631
79632 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79633
79634         * m4/prereq.m4: New file.
79635         * m4/error.m4: New file.
79636         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79637
79638 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79639
79640         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79641         cache-check for the same variable -- that defeated the purpose of
79642         the test; the test program was never run.  This was a problem only
79643         on systems with losing getline functions -- HP-UX 10.20 is one.
79644         Reported by Bjorn Helgaas.
79645
79646 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79647
79648         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79649
79650 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79651
79652         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79653
79654         * m4/const.m4: New file.  Use an initializer in this declaration
79655         typedef int charset[2]; const charset x;
79656         Reported by Bob Glickstein.
79657
79658 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79659
79660         * m4/chown.m4: Fix reversed types on -1 args to chown.
79661         From Kaveh Ghazi.
79662
79663 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79664
79665         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79666         Add lseek and memchr.
79667
79668         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79669         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79670         have a 20-character limit on names.
79671
79672 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79673
79674         * m4/inttypes_h.m4: New file.
79675         * m4/uintmax_t.m4: New file.
79676         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79677
79678
79679         -----
79680
79681         Local Variables:
79682         coding: utf-8
79683         End:
79684
79685         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79686
79687         Copying and distribution of this file, with or without
79688         modification, are permitted provided the copyright notice
79689         and this notice are preserved.