00038fc9d61593f4dd76314b062dd93392338c3c
[gnulib.git] / ChangeLog
1 2008-09-25  Derek Price  <derek@ximbiot.com>
2             Bruno Haible  <bruno@clisp.org>
3
4         * gnulib-tool (func_import): Report all license incompatibilities, not
5         just the first one.
6
7 2008-09-25  Bruno Haible  <bruno@clisp.org>
8
9         * gnulib-tool (func_import): When computing the edits, consider not
10         only the Makefile.ams that exist but also those that will be generated.
11
12 2008-09-25  Simon Josefsson  <simon@josefsson.org>
13
14         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
15         fixes gnulib-tool --test warning about duplicate dependency.
16
17 2008-09-25  Bruno Haible  <bruno@clisp.org>
18
19         * gnulib-tool: Don't ask the user to perform edits in the generated
20         Makefile.ams.
21         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22         apply to the Makefile.am being generated.
23         (func_emit_tests_Makefile_am): Execute edits that apply to the
24         Makefile.am being generated.
25         (func_import): Setup list of Makefile.am edits before emitting the
26         Makefile.ams, not at the end.
27         (func_create_testdir): Update.
28         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29
30 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31
32         * gnulib-tool (func_import): Store the --tests-base option in the
33         comment in gnulib-cache.m4.
34
35 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36
37         * NEWS: Document increased portability that sys_select now provides.
38
39         * lib/sys_select.in.h: Install select wrapper.
40         * lib/sys_socket.in.h: Use more descriptive name when there is no
41         select wrapper.
42         * lib/winsock-select.c: New.
43         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
44         Require gl_HEADER_SYS_SOCKET.
45         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47         * tests/test-sys_select.c: Add functional tests.
48
49 2008-09-24  Eric Blake  <ebb9@byu.net>
50
51         open, fopen: close fd leak in last patch
52         * lib/open.c (rpl_open): Close fd before returning error.
53         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54         * doc/posix-functions/open.texi (open): Document that Irix also
55         has the bug.
56         * doc/posix-functions/fopen.texi (fopen): Likewise.
57         Reported by Paolo Bonzini.
58
59 2008-09-24  Bruno Haible  <bruno@clisp.org>
60
61         Ensure that a filename ending in a slash cannot be used to access a
62         non-directory.
63         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
64         to check whether it's really a directory.
65         * lib/fopen.c: Include fcntl.h, unistd.h.
66         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
67         and fdopen().
68         * modules/fopen (Depends-on): Add unistd.
69         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
70         * tests/test-fopen.c (main): Likewise.
71         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
72         * doc/posix-functions/fopen.texi: Likewise.
73         Reported by Eric Blake.
74
75 2008-09-23  Eric Blake  <ebb9@byu.net>
76
77         c-stack: avoid compiler optimizations when provoking overflow
78         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
79         recursion harder to optimize, to ensure a stack overflow occurs.
80         * tests/test-c-stack.c (recurse): Likewise.
81         Borrowed from libsigsegv.
82
83         c-stack: work around Irix sigaltstack bug
84         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
85         whether sigaltstack uses wrong end of stack_t (copied in part from
86         libsigsegv).
87         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
88         Irix bug, without requiring an over-allocation.
89         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
90         bug.
91
92         fopen: document mingw bug on directories
93         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
94         not allowing a stream visiting a directory, even though reading
95         from such a stream is not portable.
96
97 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
98
99         * lib/poll.c: Rewrite.
100         * modules/poll: Depend on alloca.
101
102 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
103
104         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
105         instead define prototypes for a full set of wrappers.  Ensure
106         that Cygwin does not use the compatibility code, which is only
107         for MinGW.
108         * lib/winsock.c: New.
109         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
110         * modules/sys_socket: Add lib/winsock.c.
111
112         * modules/poll-tests: Add errno and perror.
113         * tests/test-poll.c: Use ioctl, not ioctlsocket.
114
115 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
116
117         * tests/test-poll.c: Downgrade minimum needed Winsock version.
118
119 2008-09-23  Bruno Haible  <bruno@clisp.org>
120
121         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
122         * doc/glibc-functions/*: Likewise.
123
124 2008-09-23  Simon Josefsson  <simon@josefsson.org>
125
126         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
127         success.
128
129 2008-09-22  Eric Blake  <ebb9@byu.net>
130             Bruno Haible  <bruno@clisp.org>
131
132         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
133         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
134         supply %A but mishandle pseudo-NaN.
135         Reported by Simon Josefsson.
136
137 2008-09-21  Bruno Haible  <bruno@clisp.org>
138
139         * tests/test-lock.c (main): Tweak skip message.
140         * tests/test-tls.c (main): Likewise.
141
142 2008-09-21  Bruno Haible  <bruno@clisp.org>
143
144         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
145         whether 'struct sigaction' has sa_sigaction here...
146         (gl_PREREQ_SIG_HANDLER_H): ... not here.
147         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
148
149 2008-09-21  Bruno Haible  <bruno@clisp.org>
150
151         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
152         section.
153         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
154         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
155         the new section.
156         (Support for obsolete systems lacking POSIX:2001): New section.
157         (String handling <string.h>): Move strdup to the new section.
158         Suggested by Simon Josefsson and Paolo Bonzini.
159
160 2008-09-21  Bruno Haible  <bruno@clisp.org>
161
162         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
163         exponents in %e and %g results on 'long double'. Needed for mingw's
164         improved *printf functions.
165         * tests/test-vasprintf-posix.c (test_function): Likewise.
166         * tests/test-snprintf-posix.h (test_function): Likewise.
167         * tests/test-sprintf-posix.h (test_function): Likewise.
168         Reported by Eric Blake.
169
170 2008-09-21  Bruno Haible  <bruno@clisp.org>
171
172         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
173         * tests/test-sprintf-posix.h (test_function): Likewise.
174
175 2008-09-21  Bruno Haible  <bruno@clisp.org>
176
177         * modules/getpass (Depends-on): Add strdup-posix.
178
179         New module 'strdup-posix'.
180         * modules/strdup-posix: New file.
181         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
182         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
184         REPLACE_STRDUP.
185         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
186         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
187         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
188         strdup-posix.
189
190         * modules/strdup (Depends-on): Remove malloc-posix.
191
192 2008-09-20  Bruno Haible  <bruno@clisp.org>
193
194         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
195         Wildenhues.
196
197 2008-09-20  Bruno Haible  <bruno@clisp.org>
198
199         Ensure that wint_t gets defined on IRIX 5.3.
200         * lib/wchar.in.h (wint_t): Define if not defined by the system.
201         * lib/wctype.in.h (wint_t): Likewise.
202         (__wctype_wint_t): Remove type.
203         (isw*): Use wint_t instead of __wctype_wint_t.
204         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
205         * modules/wchar (Files): Add m4/wint_t.m4.
206         (Makefile.am): Substitute HAVE_WINT_T.
207         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
208         * tests/test-wctype.c: Check that wint_t is defined.
209         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
210         * doc/posix-headers/wctype.texi: Likewise.
211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
212
213 2008-09-18  Bruno Haible  <bruno@clisp.org>
214
215         * gnulib-tool (func_exit): Update comment.
216
217 2008-09-18  Simon Josefsson  <simon@josefsson.org>
218
219         * modules/getaddrinfo (Depends-on): Remove strdup, this module
220         assumes strdup exists and does not depend on strdup to return
221         ENOMEM on out of memory conditions.
222
223 2008-09-18  Bruno Haible  <bruno@clisp.org>
224
225         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
226         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
227         digits for the exponent.
228
229 2008-09-18  Jim Meyering  <meyering@redhat.com>
230             Bruno Haible  <bruno@clisp.org>
231
232         * lib/vasnprintf.c (decimal_point_char): Define also if
233         NEED_PRINTF_INFINITE_LONG_DOUBLE.
234
235 2008-09-16  Bruno Haible  <bruno@clisp.org>
236         and Eric Blake  <ebb9@byu.net>
237
238         vasnprintf: support Irix 5.3
239         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
240         that mishandle long double infinity.
241         Reported by Tom G. Christensen.
242
243 2008-09-16  Bruno Haible  <bruno@clisp.org>
244
245         * doc/glibc-functions/scandir.texi: Mention the function is missing on
246         Solaris 9.
247         * doc/glibc-functions/alphasort.texi: Likewise.
248         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
249
250 2008-09-16  Jim Meyering  <meyering@redhat.com>
251
252         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
253         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
254         a umask modification leak out of a subshell.  Otherwise, the
255         opensolaris /bin/sh would be accepted and thus cause unwarranted
256         failures in the coreutils test suite.
257
258 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
259
260         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
261         to succeed.
262
263 2008-09-16  Jim Meyering  <meyering@redhat.com>
264
265         avoid spurious test failure when library is built without ACL support
266         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
267         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
268         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
269         * tests/test-copy-acl.sh: Likewise.
270
271 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
272
273         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
274         based on character occurrence counts.
275
276 2008-09-15  Eric Blake  <ebb9@byu.net>
277
278         tests: avoid some compiler warnings
279         * tests/test-memchr.c (main): Pass NULL indirectly.
280         * tests/test-closein.c (main): Avoid unused variable.
281
282 2008-09-15  Bruno Haible  <bruno@clisp.org>
283
284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
285         are missing on OpenBSD 4.0 individually.
286         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
287
288 2008-09-15  Bruno Haible  <bruno@clisp.org>
289
290         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
291         * doc/posix-functions/strerror.texi: Mention also Cygwin.
292         * doc/posix-functions/perror.texi: Likewise.
293         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
294         is missing.
295         Reported by Eric Blake.
296
297         * lib/errno.in.h: Use replacement values >= 2000.
298         Reported by Eric Blake.
299
300 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
301
302         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
303         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
304         limit.
305         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
306         compareseq was aborted.
307
308 2008-09-14  Bruno Haible  <bruno@clisp.org>
309
310         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
311         yvec_edit_count.
312         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
313         (fstrcmp_bounded): Simplify result computation accordingly.
314
315 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
316
317         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
318         (fstrcmp): Define in terms of fstrcmp_bounded.
319         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
320         lower_bound argument.
321         Return quickly if the result is certainly < lower_bound.
322         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
323
324 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
325
326         * lib/diffseq.h (EARLY_ABORT): New macro.
327         (compareseq): Change return type to bool. Return true when EARLY_ABORT
328         evaluates to true.
329
330 2008-09-14  Bruno Haible  <bruno@clisp.org>
331
332         * modules/perror-tests: New file.
333         * tests/test-perror.sh: New file.
334         * tests/test-perror.c: New file.
335
336         New module 'perror'.
337         * lib/stdio.in.h (perror): New declaration.
338         * lib/perror.c: New file.
339         * m4/perror.m4: New file.
340         * modules/perror: New file.
341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
342         * doc/posix-functions/perror.texi: Mention the perror module.
343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
344         REPLACE_PERROR.
345         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
346         REPLACE_PERROR.
347
348 2008-09-14  Bruno Haible  <bruno@clisp.org>
349
350         * modules/stdio (Makefile.am): Reorder to match the order in
351         lib/stdio.in.h.
352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
353
354 2008-09-13  Bruno Haible  <bruno@clisp.org>
355
356         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
357
358 2008-09-13  Bruno Haible  <bruno@clisp.org>
359
360         Extend strerror to cover the added errno values.
361         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
362         (rpl_strerror): Provide error messages for the added errno values and
363         for the WSA* values.
364         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
365         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
366         strerror.
367         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
368         * modules/strerror (Depends-on): Add errno.
369         * doc/posix-functions/strerror.texi: Document the change.
370         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
371         and EOVERFLOW.
372
373 2008-09-13  Bruno Haible  <bruno@clisp.org>
374
375         * modules/EOVERFLOW: Remove file.
376         * m4/eoverflow.m4: Remove file.
377         * modules/EOVERFLOW-tests: Remove file.
378         * tests/test-EOVERFLOW.c: Remove file.
379         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
380         * modules/ftell (Depends-on): Likewise.
381         * modules/getdelim (Depends-on): Likewise.
382         * modules/getugroups (Depends-on): Likewise.
383         * modules/poll (Depends-on): Likewise.
384         * modules/snprintf (Depends-on): Likewise.
385         * modules/sprintf-posix (Depends-on): Likewise.
386         * modules/vasnprintf (Depends-on): Likewise.
387         * modules/vasprintf (Depends-on): Likewise.
388         * modules/vfprintf-posix (Depends-on): Likewise.
389         * modules/vsnprintf (Depends-on): Likewise.
390         * modules/vsprintf-posix (Depends-on): Likewise.
391         * modules/xvasprintf (Depends-on): Likewise.
392         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
393         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
394         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
395         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
396         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
397         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
398         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
399         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
400         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
401         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
402         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
403         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
404         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
405         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
406         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
407         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
408         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
409         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
410         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
411         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
412         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
413         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
414         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
415         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
416         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
417         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
418         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
419         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
420         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
421         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
422         * MODULES.html.sh: Remove EOVERFLOW.
423         * NEWS: Mention the change.
424
425 2008-09-13  Bruno Haible  <bruno@clisp.org>
426
427         * modules/errno-tests: New file.
428         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
429
430         * lib/errno.in.h: New file.
431         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
432         * modules/errno: New file.
433         * doc/posix-headers/errno.texi: Update documentation.
434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
435
436 2008-09-13  Bruno Haible  <bruno@clisp.org>
437
438         * tests/test-poll.c: Use #if for native Windows, rather than testing
439         __MSVCRT__.
440
441 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
442             Bruno Haible  <bruno@clisp.org>
443
444         * lib/glob.c: Don't include <pwd.h> on native Windows.
445         (WINDOWS32): New macro.
446         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
447
448 2008-09-13  Bruno Haible  <bruno@clisp.org>
449
450         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
451         (ETIMEDOUT): Remove macro.
452         (glthread_cond_timedwait_multithreaded): New declaration.
453         (glthread_cond_timedwait): Use it.
454         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
455         (glthread_cond_timedwait_multithreaded): New function.
456
457 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
458
459         * modules/poll-tests: Do not check for io.h.
460         * tests/test-poll.c: Check for __MSVCRT__ instead.
461
462 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
463
464         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
465         * modules/poll-tests: Add inet_pton, stdbool, sockets.
466         * tests/test-poll.c: Use them.  Use _pipe on Windows.
467
468 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
469
470         * modules/poll-tests: New.
471         * tests/test-poll.c: New.
472
473 2008-09-12  Eric Blake  <ebb9@byu.net>
474
475         frexp: test for NetBSD failure on -0.0
476         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
477         not all, bugs from NetBSD 3.0 have been fixed.
478         * doc/posix-functions/frexp.texi (frexp): Document bug.
479         Reported by Thomas Klausner.
480
481         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
482         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
483         literal -0.0.
484         Reported by Jonathan C. Patschke <jp@centtech.com>.
485
486 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
487
488         * lib/glthread/cond.h: Use dummy implementation also if
489         USE_WIN32_THREADS.
490
491 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
492
493         * modules/fnmatch-posix (License): Change to LGPLv2+.
494         * modules/fnmatch-gnu (License): Likewise.
495
496 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
497
498         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
499
500 2008-09-11  Jim Meyering  <meyering@redhat.com>
501
502         * users.txt: Add gtk-vnc.
503
504 2008-09-08  Simon Josefsson  <simon@josefsson.org>
505
506         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
507         rotate amounts.
508
509         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
510         required for 16-bit and 8-bit rotates.
511         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
512         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
513         UINT8_MAX instead of hard-coded constants.
514         Suggested by Paul Eggert.
515
516 2008-09-07  Bruno Haible  <bruno@clisp.org>
517
518         * tests/test-striconveh.c (main): Check behaviour when converting from
519         UTF-7.
520
521         Make striconveh work better with stateful encodings.
522         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
523         that iconv does not increment the inptr when returning -1/EINVAL.
524
525 2008-09-07  Bruno Haible  <bruno@clisp.org>
526
527         * build-aux/config.rpath: Update according to libtool-2.2.6.
528         * build-aux/config.libpath: Likewise.
529
530 2008-09-06  Bruno Haible  <bruno@clisp.org>
531
532         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
533         * lib/freadptr.c (freadptr): Likewise.
534         * lib/freadseek.c (freadptrinc): Likewise.
535         Reported by Simon Josefsson.
536
537 2008-09-06  Bruno Haible  <bruno@clisp.org>
538
539         * modules/freadptr (License): Change to LGPLv2+.
540         * modules/freadseek (License): Likewise.
541         Suggested by Eric Blake.
542
543         * modules/memchr2 (License): Change to LGPLv2+.
544         Approved by Eric Blake.
545
546 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
547             Bruno Haible  <bruno@clisp.org>
548
549         Make gnulib-tool work with native 'sed' on AIX.
550         * gnulib-tool (sed_noop): New variable.
551         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
552         func_add_or_update, func_create_testdir): Use it to initialize sed
553         script variables.
554         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
555
556 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
557             Bruno Haible  <bruno@clisp.org>
558
559         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
560         also works after #include directives.
561
562 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
563
564         getdate.y: reject an out-of-range timezone value
565         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
566         the range [-24...+24].  When specified with only one or two digits,
567         * tests/test-getdate.c: Tests for the fix.
568         * doc/getdate.texi: Document this change.
569
570 2008-09-03  Bruno Haible  <bruno@clisp.org>
571
572         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
573
574 2008-09-02  Simon Josefsson  <simon@josefsson.org>
575
576         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
577         <bruce.korb@gmail.com> with ideas from Ben Pfaff
578         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
579         Blake <ebb9@byu.net>.
580
581         * tests/test-bitrotate.c: Add more test vectors.
582
583 2008-09-02  Eric Blake  <ebb9@byu.net>
584
585         vasnprintf-posix: handle large precision via %.*d
586         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
587         when handling it ourselves.
588         * tests/test-vasnprintf-posix.c (test_function): Add test.
589         * tests/test-snprintf-posix.h (test_function): Likewise.
590         * tests/test-sprintf-posix.h (test_function): Likewise.
591         * tests/test-vasprintf-posix.c (test_function): Likewise.
592         Reported by Alain Guibert.
593
594 2008-09-01  Eric Blake  <ebb9@byu.net>
595
596         c-stack: make configure-time check more robust
597         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
598         successful sigaction call.
599         Reported by Tom G. Christensen.
600
601 2008-09-01  Bruno Haible  <bruno@clisp.org>
602
603         New module 'findprog-lgpl'.
604         * modules/findprog-lgpl: New file.
605         * lib/findprog-lgpl.c: New file.
606         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
607         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
608         to decide whether to use strdup or xstrdup, concatenated_filename or
609         xconcatenated_filename.
610
611 2008-09-01  Bruno Haible  <bruno@clisp.org>
612
613         Split module 'concat-filename' into 'concat-filename' (LGPL) and
614         'xconcat-filename' (GPL).
615         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
616         (License): Change to LGPLv2+.
617         * modules/xconcat-filename: New file.
618         * lib/concat-filename.h (concatenated_filename): Change specification.
619         (xconcatenated_filename): New declaration.
620         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
621         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
622         memory situations.
623         * lib/xconcat-filename.c: New file.
624         * NEWS: Mention the change.
625         * lib/findprog.c: Include concat-filename.h, not filename.h.
626         (find_in_path): Use xconcatenated_filename instead of
627         concatenated_filename.
628         * lib/javacomp.c: Include concat-filename.h, not filename.h.
629         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
630         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
631         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
632         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
633         instead of concatenated_filename.
634         * lib/javaexec.c: Include concat-filename.h, not filename.h.
635         (execute_java_class): Use xconcatenated_filename instead of
636         concatenated_filename.
637         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
638         * modules/javacomp (Depends-on): Likewise.
639         * modules/javaexec (Depends-on): Likewise.
640
641 2008-09-01  Bruno Haible  <bruno@clisp.org>
642
643         Split module 'filename' into 'filename' and 'concat-filename'.
644         * modules/filename: Keep only lib/filename.h.
645         (License): Change to LGPLv2+.
646         * modules/concat-filename: New file, extracted from modules/filename.
647         * lib/filename.h (concatenated_filename): Remove declaration.
648         * lib/concat-filename.h: New file, extracted from lib/filename.h.
649         * lib/concat-filename.c: Include concat-filename.h.
650         * NEWS: Mention the change.
651
652 2008-09-01  Simon Josefsson  <simon@josefsson.org>
653
654         * lib/bitrotate.h (rotl8, rotr8): Add.
655
656         * modules/bitrotate (configure.ac): Need
657         AC_REQUIRE([AC_C_INLINE]).
658         (Description): Mention stdint.h.  Reported by Bruno Haible
659         <bruno@clisp.org>.
660
661         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
662         Paolo Bonzini <bonzini@gnu.org>.
663
664 2008-08-31  Bruno Haible  <bruno@clisp.org>
665
666         Assume Solaris specific bi-arch conventions on Solaris systems.
667         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
668         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
669         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
670         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
671         like acl_libdirstem.
672         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
673         acl_libdirstem.
674         * NEWS: Mention the change.
675         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
676
677 2008-08-31  Jim Meyering  <meyering@redhat.com>
678
679         * lib/strftime.h: Add comments describing the two added arguments.
680
681         remove duplicate #include directives
682         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
683         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
684
685 2008-08-31  Bruno Haible  <bruno@clisp.org>
686
687         New module 'sigpipe-die'.
688         * modules/sigpipe-die: New file.
689         * lib/sigpipe-die.h: New file.
690         * lib/sigpipe-die.c: New file.
691         * MODULES.html.sh (Signal handling): Add sigpipe-die.
692
693 2008-08-31  Bruno Haible  <bruno@clisp.org>
694
695         Don't override previously installed signal handlers.
696         * lib/fatal-signal.c (saved_sigactions): New variable.
697         (uninstall_handlers): Reset the signal to the saved handler, not
698         to SIG_DFL (except when ignored).
699         (install_handlers): Save the previous handlers.
700
701 2008-08-30  Bruno Haible  <bruno@clisp.org>
702
703         * gnulib-tool (func_reset_sigpipe): New function.
704         (func_get_automake_snippet, func_modules_transitive_closure,
705         func_import): Invoke it before a join command that reads from stdin,
706         to avoid "echo: write error: Broken pipe" error messages on stderr.
707         Reported by Sam Steingold <sds@gnu.org>.
708
709 2008-08-30  Bruno Haible  <bruno@clisp.org>
710
711         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
712         Code copied from m4/open.m4.
713         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
714         access and the filename ends in a slash. Code copied from lib/open.c.
715         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
716         * tests/test-fopen.c (main): Check against bug with trailing slash.
717
718 2008-08-29  Bruno Haible  <bruno@clisp.org>
719
720         Avoid some "gcc -pedantic" warnings.
721         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
722         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
723         * lib/dirent.in.h: Likewise.
724         * lib/fcntl.in.h: Likewise.
725         * lib/float.in.h: Likewise.
726         * lib/iconv.in.h: Likewise.
727         * lib/inttypes.in.h: Likewise.
728         * lib/locale.in.h: Likewise.
729         * lib/math.in.h: Likewise.
730         * lib/netinet_in.in.h: Likewise.
731         * lib/search.in.h: Likewise.
732         * lib/signal.in.h: Likewise.
733         * lib/stdarg.in.h: Likewise.
734         * lib/stdint.in.h: Likewise.
735         * lib/stdio.in.h: Likewise.
736         * lib/stdlib.in.h: Likewise.
737         * lib/string.in.h: Likewise.
738         * lib/strings.in.h: Likewise.
739         * lib/sys_select.in.h: Likewise.
740         * lib/sys_socket.in.h: Likewise.
741         * lib/sys_stat.in.h: Likewise.
742         * lib/sys_time.in.h: Likewise.
743         * lib/sysexits.in.h: Likewise.
744         * lib/time.in.h: Likewise.
745         * lib/unistd.in.h: Likewise.
746         * lib/wchar.in.h: Likewise.
747         * lib/wctype.in.h: Likewise.
748         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
749         * modules/fchdir (Makefile.am): Likewise.
750         * modules/fcntl (Makefile.am): Likewise.
751         * modules/float (Makefile.am): Likewise.
752         * modules/iconv_open (Makefile.am): Likewise.
753         * modules/inttypes (Makefile.am): Likewise.
754         * modules/locale (Makefile.am): Likewise.
755         * modules/math (Makefile.am): Likewise.
756         * modules/netinet_in (Makefile.am): Likewise.
757         * modules/search (Makefile.am): Likewise.
758         * modules/signal (Makefile.am): Likewise.
759         * modules/stdarg (Makefile.am): Likewise.
760         * modules/stdint (Makefile.am): Likewise.
761         * modules/stdio (Makefile.am): Likewise.
762         * modules/stdlib (Makefile.am): Likewise.
763         * modules/string (Makefile.am): Likewise.
764         * modules/strings (Makefile.am): Likewise.
765         * modules/sys_select (Makefile.am): Likewise.
766         * modules/sys_socket (Makefile.am): Likewise.
767         * modules/sys_stat (Makefile.am): Likewise.
768         * modules/sys_time (Makefile.am): Likewise.
769         * modules/sysexits (Makefile.am): Likewise.
770         * modules/time (Makefile.am): Likewise.
771         * modules/unistd (Makefile.am): Likewise.
772         * modules/wchar (Makefile.am): Likewise.
773         * modules/wctype (Makefile.am): Likewise.
774         Reported by Reuben Thomas <rrt@sc3d.org>.
775
776 2008-08-29  Bruno Haible  <bruno@clisp.org>
777
778         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
779         any more.
780
781 2008-08-29  Simon Josefsson  <simon@josefsson.org>
782
783         * MODULES.html.sh (Misc): Add bitrotate.
784
785         * modules/bitrotate: New file.
786
787         * lib/bitrotate.h: New file.
788
789         * modules/bitrotate-tests: New file.
790
791         * tests/test-bitrotate.c: New file.
792
793         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
794         on the bitrotate module.
795
796         * lib/arctwo.c: Use new bitrotate module.
797
798 2008-08-29  Jim Meyering  <meyering@redhat.com>
799
800         bootstrap: merge changes from coreutils
801         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
802         of copied files.  Remove a kludge, now that this is fixed.
803         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
804         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
805         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
806
807 2008-08-29  Bruno Haible  <bruno@clisp.org>
808
809         * MODULES.html.sh: Remove --cvs-urls option.
810
811 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
812
813         maint.mk: adjust to file name change
814         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
815
816 2008-08-28  Jim Meyering  <meyering@redhat.com>
817
818         * modules/getndelim2 (License): Relicense to LGPLv2+.
819         Approved by Richard Stallman for the version of 1995, and by
820         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
821
822 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
823
824         * lib/getdelim.c (flockfile, funlockfile): Make all of them
825         dummy if one is not available.  Do not touch them if
826         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
827         (getc_maybe_unlocked): New.
828         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
829
830 2008-08-26  Eric Blake  <ebb9@byu.net>
831
832         doc/INSTALL: resync from autoconf
833         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
834         (INSTALL_PRELUDE): Delete; this is done more efficiently by
835         moving...
836         * install.texi [!autoconf]: ...here.  Resync from autoconf.
837         * INSTALL: Regenerate.
838         * INSTALL.ISO: New file.
839         * INSTALL.UTF-8: Likewise.
840
841 2008-08-26  Jim Meyering  <meyering@redhat.com>
842
843         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
844         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
845         these definitions conditional, so that they may be overridden, too.
846
847 2008-08-26  Bruno Haible  <bruno@clisp.org>
848
849         Generate INSTALL file variants with prettier quotes.
850         * doc/Makefile (INSTALL_PRELUDE): New macro.
851         (INSTALL): Use it.
852         (INSTALL.ISO, INSTALL.UTF-8): New rules.
853
854 2008-08-26  Bruno Haible  <bruno@clisp.org>
855
856         Run makeinfo in an English locale.
857         * doc/Makefile (MAKEINFO): New variable.
858
859 2008-08-26  Bruno Haible  <bruno@clisp.org>
860
861         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
862         Suggested by Eric Blake.
863
864 2008-08-25  Bruno Haible  <bruno@clisp.org>
865
866         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
867
868 2008-08-25  Eric Blake  <ebb9@byu.net>
869
870         c-stack: test that stack overflow can be caught
871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
872         that platform allows handling stack overflow; at least OS/2 EMX
873         has sigaltstack, but crashes before transferring control to
874         handler on stack overflow.
875         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
876         check for HAVE_STACK_OVERFLOW_HANDLING.
877         Reported by Elbert Pol.
878
879 2008-08-25  Bruno Haible  <bruno@clisp.org>
880
881         * doc/posix-functions/strftime.texi: Fix description of strftime
882         module.
883
884 2008-08-24  Bruno Haible  <bruno@clisp.org>
885
886         * tests/uniwidth/test-uc_width2.c: New file.
887         * tests/uniwidth/test-uc_width2.sh: New file.
888         * modules/uniwidth/width-tests (Files): Add the new files.
889         (TESTS): Add uniwidth/test-uc_width2.sh.
890         (TESTS_ENVIRONMENT): New variable.
891         (check_PROGRAMS): Add test-uc_width2.
892         (test_uc_width2_SOURCES): New variable.
893
894         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
895         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
896         not 0x00AB.
897         Reported by Alexander V. Lukyanov <lav@netis.ru>.
898
899 2008-08-22  Eric Blake  <ebb9@byu.net>
900
901         test-lock, test-tls: mention why a test is skipped
902         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
903         skipped.
904         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
905
906         count-one-bits: relax license
907         * modules/count-one-bits (License): Relicense to LGPLv2+.
908         Suggested by Ludovic Courtès, approved by Ben Pfaff.
909
910 2008-08-22  Andreas Schwab  <schwab@suse.de>
911
912         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
913         Remove spurious space in assignment.
914
915 2008-08-21  Simon Josefsson  <simon@josefsson.org>
916
917         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
918         Paul Eggert <eggert@CS.UCLA.EDU>.
919
920 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
921
922         * modules/gettext: Add m4/threadlib.m4.
923
924 2008-08-19  Eric Blake  <ebb9@byu.net>
925
926         test-c-stack: fix compilation failure on FreeBSD 5.0
927         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
928         headers before <sys/resource.h>.
929         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
930         the bug.
931         Reported by Nelson H. F. Beebe.
932
933         strverscmp: migrate from "strverscmp.h" to <string.h>
934         * modules/string (Makefile.am): Add new hooks.
935         * modules/strverscmp (Files): Remove strverscmp.h.
936         (Depends-on): Add string.
937         (configure.ac): Add indicator.
938         (Include): Mention new header.
939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
940         defaults.
941         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
942         results.
943         * lib/strverscmp.h: Delete.
944         * lib/string.in.h (strverscmp): Provide declaration, when needed.
945         * tests/test-strverscmp.c (includes): Adjust client.
946         * lib/check-version.c (includes): Likewise.
947         * NEWS: Document the change.
948
949         strverscmp: add unit test
950         * modules/strverscmp-tests: New file.
951         * tests/test-strverscmp.c: Likewise.
952
953 2008-08-19  Simon Josefsson  <simon@josefsson.org>
954
955         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
956         regarding Windows crypto stuff, from Mono.
957
958 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
959
960         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
961         if present, for intel RND.  Return error on failures.
962
963 2008-08-18  Ben Pfaff  <blp@gnu.org>
964
965         gitlog-to-changelog: give better diagnostic for failed pipe-open
966         * build-aux/gitlog-to-changelog: Improve error message: suggest
967         that the version of Git may be too old.
968
969 2008-08-18  Simon Josefsson  <simon@josefsson.org>
970
971         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
972         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
973
974 2008-08-18  Bruno Haible  <bruno@clisp.org>
975
976         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
977         pthread_in_use().
978
979 2008-08-18  Bruno Haible  <bruno@clisp.org>
980
981         * lib/glthread/threadlib.c: Include <pthread.h>.
982
983 2008-08-18  Bruno Haible  <bruno@clisp.org>
984
985         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
986         glthread_recursive_lock_* macros.
987         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
988         Fix syntax error.
989
990 2008-08-18  Bruno Haible  <bruno@clisp.org>
991
992         * lib/glthread/thread.c: Avoid forcing a context switch right after
993         thread creation.
994
995 2008-08-17  Bruno Haible  <bruno@clisp.org>
996
997         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
998         * lib/glthread/thread.h: Provide Win32 specific implementation.
999         * modules/thread (Files): Add lib/glthread/thread.c.
1000         (Depends-on): Add lock.
1001         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
1002
1003 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1004
1005         New module 'yield'.
1006         * modules/yield: New file.
1007         * lib/glthread/yield.h: New file.
1008         * m4/yield.m4: New file.
1009         * MODULES.html.sh (Multithreading): Add yield.
1010
1011 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1012
1013         New module 'thread'.
1014         * modules/thread: New file.
1015         * lib/glthread/thread.h: New file.
1016         * m4/thread.m4: New file.
1017         * MODULES.html.sh (Multithreading): Add thread.
1018
1019 2008-08-17  Bruno Haible  <bruno@clisp.org>
1020
1021         * lib/glthread/lock.h: Include <stdlib.h> always.
1022         * lib/glthread/tls.h: Likewise.
1023         * lib/glthread/cond.h: Likewise.
1024
1025 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1026
1027         New module 'cond'.
1028         * modules/cond: New file.
1029         * lib/glthread/cond.h: New file.
1030         * lib/glthread/cond.c: New file.
1031         * m4/cond.m4: New file.
1032         * MODULES.html.sh (Multithreading): Add cond.
1033
1034 2008-08-16  Eric Blake  <ebb9@byu.net>
1035
1036         c-stack: fix regression on Irix 5.3 from 2008-06-21
1037         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
1038         sa_sigaction...
1039         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
1040         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
1041         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
1042         * modules/signal (Makefile.am): Use the value.
1043         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
1044         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
1045         * doc/posix-headers/signal.texi (signal.h): Document this
1046         portability issue.
1047         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
1048         Reported by Tom G. Christensen.
1049
1050 2008-08-17  Bruno Haible  <bruno@clisp.org>
1051
1052         New module 'threadlib'.
1053         * modules/threadlib: New file.
1054         * lib/glthread/threadlib.c: New file, extracted from
1055         lib/glthread/lock.c.
1056         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
1057         functions.
1058         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
1059         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
1060         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
1061         macros.
1062         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
1063         (gl_DISABLE_THREADS): Remove macro.
1064         * modules/lock (Files): Remove build-aux/config.rpath.
1065         (Depends-on): Remove havelib. Add threadlib.
1066         (configure.ac-early): Remove section.
1067         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
1068         * modules/tls (Depends-on): Remove lock. Add threadlib.
1069         (Link): New section, copied from threadlib.
1070         * MODULES.html.sh (Multithreading): Add threadlib.
1071
1072 2008-08-14  Bruno Haible  <bruno@clisp.org>
1073
1074         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
1075         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
1076         glthread_rwlock_unlock, glthread_rwlock_destroy,
1077         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
1078         glthread_recursive_lock_destroy): Define as macros always.
1079         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
1080         glthread_lock_lock.
1081         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
1082         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
1083         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
1084         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
1085         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
1086         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
1087         (glthread_recursive_lock_lock_func): Renamed from
1088         glthread_recursive_lock_lock.
1089         (glthread_recursive_lock_unlock_func): Renamed from
1090         glthread_recursive_lock_unlock.
1091         (glthread_recursive_lock_destroy_func): Renamed from
1092         glthread_recursive_lock_destroy.
1093
1094 2008-08-14  Bruno Haible  <bruno@clisp.org>
1095
1096         * lib/glthread/lock.h: Renamed from lib/lock.h.
1097         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
1098         * lib/glthread/tls.h: Renamed from lib/tls.h.
1099         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
1100         * lib/fstrcmp.c: Update includes.
1101         * lib/strsignal.c: Update includes.
1102         * modules/lock (Files, Makefile.am): Update.
1103         (Include): Change to "glthread/lock.h".
1104         * modules/tls (Files, Makefile.am): Update.
1105         (Include): Change to "glthread/tls.h".
1106         * tests/test-lock.c: Update includes.
1107         * tests/test-tls.c: Update includes.
1108         * NEWS: Mention the renamed header files.
1109
1110 2008-08-11  Jim Meyering  <meyering@redhat.com>
1111
1112         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
1113
1114 2008-08-11  Eric Blake  <ebb9@byu.net>
1115
1116         test-c-stack: avoid C99-ism
1117         * tests/test-c-stack.c (main): Fix whitespace, move declaration
1118         before statement.
1119         Reported by Alain Guibert.
1120
1121 2008-08-10  Jim Meyering  <meyering@redhat.com>
1122
1123         ensure that return value of uinttostr et al are not ignored
1124         * lib/inttostr.h (__GNUC_PREREQ): Define.
1125         (__attribute_warn_unused_result__): Define.
1126         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
1127
1128 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
1129
1130         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
1131         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
1132
1133 2008-08-07  Jim Meyering  <meyering@redhat.com>
1134
1135         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
1136
1137         * modules/mkstemp (License): Relicense under LGPLv2+.
1138         * modules/tempname (License): Likewise.
1139
1140 2008-08-06  Bruno Haible  <bruno@clisp.org>
1141
1142         * lib/poll.c (poll): Further micro-optimization.
1143
1144 2008-08-06  Jim Meyering  <meyering@redhat.com>
1145
1146         inet_pton.c: use locale-independent tolower
1147         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
1148         (inet_pton6): Use c_tolower rather than tolower.
1149         * modules/inet_pton (Depends-on): Add c-ctype.
1150
1151 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
1152
1153         * lib/poll.c (poll): Avoid division when timeout is 0, cache
1154         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
1155
1156 2008-08-06  Jim Meyering  <meyering@redhat.com>
1157
1158         * modules/inet_pton (License): Relicense under LGPLv2+.
1159
1160 2008-08-03  Bruno Haible  <bruno@clisp.org>
1161
1162         Additional non-aborting API for lock and tls.
1163         * lib/lock.h: Include <errno.h>.
1164         (glthread_lock_init): New macro/function.
1165         (gl_lock_init): Define as wrapper around glthread_lock_init.
1166         (glthread_lock_lock): New macro/function.
1167         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
1168         (glthread_lock_unlock): New macro/function.
1169         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
1170         (glthread_lock_destroy): New macro/function.
1171         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
1172         (glthread_rwlock_init): New macro/function.
1173         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
1174         (glthread_rwlock_rdlock): New macro/function.
1175         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
1176         (glthread_rwlock_wrlock): New macro/function.
1177         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
1178         (glthread_rwlock_unlock): New macro/function.
1179         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
1180         (glthread_rwlock_destroy): New macro/function.
1181         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
1182         (glthread_recursive_lock_init): New macro/function.
1183         (gl_recursive_lock_init): Define as wrapper around
1184         glthread_recursive_lock_init.
1185         (glthread_recursive_lock_lock): New macro/function.
1186         (gl_recursive_lock_lock): Define as wrapper around
1187         glthread_recursive_lock_lock.
1188         (glthread_recursive_lock_unlock): New macro/function.
1189         (gl_recursive_lock_unlock): Define as wrapper around
1190         glthread_recursive_lock_unlock.
1191         (glthread_recursive_lock_destroy): New macro/function.
1192         (gl_recursive_lock_destroy): Define as wrapper around
1193         glthread_recursive_lock_destroy.
1194         (glthread_once): New macro/function.
1195         (gl_once): Define as wrapper around glthread_once.
1196         Update function declarations.
1197         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
1198         glthread_rwlock_init. Return error code.
1199         (glthread_rwlock_rdlock_multithreaded): Renamed from
1200         glthread_rwlock_rdlock. Return error code.
1201         (glthread_rwlock_wrlock_multithreaded): Renamed from
1202         glthread_rwlock_wrlock. Return error code.
1203         (glthread_rwlock_unlock_multithreaded): Renamed from
1204         glthread_rwlock_unlock. Return error code.
1205         (glthread_rwlock_destroy_multithreaded): Renamed from
1206         glthread_rwlock_destroy. Return error code.
1207         (glthread_recursive_lock_init_multithreaded): Renamed from
1208         glthread_recursive_lock_init. Return error code.
1209         (glthread_recursive_lock_lock_multithreaded): Renamed from
1210         glthread_recursive_lock_lock. Return error code.
1211         (glthread_recursive_lock_unlock_multithreaded): Renamed from
1212         glthread_recursive_lock_unlock. Return error code.
1213         (glthread_recursive_lock_destroy_multithreaded): Renamed from
1214         glthread_recursive_lock_destroy. Return error code.
1215         (glthread_once_call): Make static.
1216         (glthread_once_multithreaded): Renamed from glthread_once.
1217         * lib/tls.h: Include <errno.h>.
1218         (glthread_tls_key_init): New macro/function.
1219         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
1220         (glthread_tls_set): New macro/function.
1221         (gl_tls_set): Define as wrapper around glthread_tls_set.
1222         (glthread_tls_key_destroy): New macro/function.
1223         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
1224         Update function declarations.
1225         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
1226         glthread_tls_get.
1227         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1228
1229 2008-08-04  Eric Blake  <ebb9@byu.net>
1230
1231         gnumakefile: use space, not TAB, outside of targets
1232         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
1233
1234 2008-08-02  Jim Meyering  <meyering@redhat.com>
1235
1236         getdate.y: avoid locale-dependent date parsing failure
1237         In Turkish locales, getdate would fail to recognize keywords
1238         containing a lowercase "i".  The solution is not to rely on
1239         locale-sensitive case-conversion.
1240         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
1241         (lookup_word): Use c_toupper in place of toupper.
1242         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
1243         Reported by Vefa Bicakci <bicave@superonline.com> in
1244         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
1245         * modules/getdate (Depends-on): Add c-ctype.
1246
1247 2008-08-02  Bruno Haible  <bruno@clisp.org>
1248
1249         * gnulib-tool (func_import): When updating or creating a .gitignore
1250         file, prepend each added line with a slash, and ignore leading slashes
1251         from the existing lines.
1252         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1253
1254 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1255
1256         Portability fix for GNU make 3.79.1.
1257         * top/GNUmakefile: Avoid 'else COND', which older GNU make
1258         versions do not understand.
1259
1260 2008-08-01  Bruno Haible  <bruno@clisp.org>
1261
1262         Work around bug of HP-UX 10.20 cc with -0.0 literal.
1263         * tests/test-isnanf.h (zero): New variable.
1264         (main): Avoid literal -0.0f.
1265         * tests/test-isnand.h (zero): New variable.
1266         (main): Avoid literal -0.0.
1267         * tests/test-isnanl.h (zero): New variable.
1268         (main): Avoid literal -0.0L.
1269         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
1270         (test_float, test_double, test_long_double): Avoid literals -0.0f,
1271         -0.0, -0.0L.
1272         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
1273         (test_signbitd): Avoid literal -0.0.
1274         (test_signbitl): Avoid literal -0.0L.
1275         * tests/test-ceilf1.c (zero): New variable.
1276         (main): Avoid literal -0.0f.
1277         * tests/test-ceill.c (zero): New variable.
1278         (main): Avoid literal -0.0L.
1279         * tests/test-floorf1.c (zero): New variable.
1280         (main): Avoid literal -0.0f.
1281         * tests/test-floorl.c (zero): New variable.
1282         (main): Avoid literal -0.0L.
1283         * tests/test-roundf1.c (zero): New variable.
1284         (main): Avoid literal -0.0f.
1285         * tests/test-round1.c (zero): New variable.
1286         (main): Avoid literal -0.0.
1287         * tests/test-roundl.c (zero): New variable.
1288         (main): Avoid literal -0.0L.
1289         * tests/test-truncf1.c (zero): New variable.
1290         (main): Avoid literal -0.0f.
1291         * tests/test-trunc1.c (zero): New variable.
1292         (main): Avoid literal -0.0.
1293         * tests/test-truncl.c (zero): New variable.
1294         (main): Avoid literal -0.0L.
1295         * tests/test-frexp.c (zero): New variable.
1296         (main): Avoid literal -0.0.
1297         * tests/test-frexpl.c (zero): New variable.
1298         (main): Avoid literal -0.0L.
1299         * tests/test-ldexpl.c (zero): New variable.
1300         (main): Avoid literal -0.0L.
1301         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1302         (zerod, zerol): New variables.
1303         (test_function): Avoid literals -0.0, -0.0L.
1304         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1305         (zerod, zerol): New variables.
1306         (test_function): Avoid literals -0.0, -0.0L.
1307         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1308         (zerod, zerol): New variables.
1309         (test_function): Avoid literals -0.0, -0.0L.
1310         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1311         (zerod, zerol): New variables.
1312         (test_function): Avoid literals -0.0, -0.0L.
1313         * tests/test-strtod.c (zero): New variable.
1314         (main): Avoid literal -0.0.
1315         Reported by Jonathan C. Patschke <jp@centtech.com>.
1316
1317 2008-07-31  Jim Meyering  <meyering@redhat.com>
1318
1319         sha256.h: correct definition of SHA224_DIGEST_SIZE
1320         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1321         Reported by Paulie Pena IV <paulie4@gmail.com>.
1322         Define as 224 / 8, rather than as a literal.
1323         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1324         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1325         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1326
1327 2008-07-31  Bruno Haible  <bruno@clisp.org>
1328
1329         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1330         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1331         Reported by Jonathan Patschke <jp@centtech.com>.
1332
1333 2008-07-31  Bruno Haible  <bruno@clisp.org>
1334
1335         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1336         Reported by Paolo Bonzini <bonzini@gnu.org>.
1337
1338 2008-07-30  Eric Blake  <ebb9@byu.net>
1339
1340         test-strtod: allow compilation without -lm
1341         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1342         Reported by Dennis Clarke <blastwave@gmail.com>.
1343
1344 2008-07-28  Jim Meyering  <meyering@redhat.com>
1345
1346         bootstrap: work also when there are no .po files in po/
1347         * build-aux/bootstrap (update_po_files): Complete the change
1348         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1349
1350 2008-07-27  Jim Meyering  <meyering@redhat.com>
1351
1352         * users.txt: Add zile.
1353
1354 2008-07-26  Ben Pfaff  <blp@gnu.org>
1355
1356         Add missing dependencies on new m4/exponent[fdl].m4 files.
1357         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1358         * modules/isnand-nolibm: Add m4/exponentd.m4.
1359         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1360         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1361         m4/isnan[fdl].m4, because the macros actually used moved.
1362         Reported by Jim Meyering.
1363
1364 2008-07-14  Ben Pfaff  <blp@gnu.org>
1365
1366         Add isinf module.
1367         * lib/isinf.c: New file.
1368         * lib/math.in.h: Define isinf macro if we have decided to replace
1369         it.
1370         * m4/isinf.m4: New file.
1371         * m4/math_h.m4: Initialize and substitute variables for isinf
1372         module.
1373         * modules/isinf: New file.
1374         * modules/isinf-tests: New file.
1375         * modules/math: Add substitutions for new module.
1376         * tests/test-isinf.c: New file.
1377         * doc/posix-functions/isinf.texi: Mention new module.
1378         * MODULES.html.sh: Mention new module.
1379
1380 2008-07-14  Ben Pfaff  <blp@gnu.org>
1381
1382         Factor out some macros for use by additional modules.
1383         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1384         exponentf.m4.
1385         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1386         exponentd.m4.
1387         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1388         file exponentl.m4.
1389         * m4/exponentf.m4: New file.
1390         * m4/exponentd.m4: New file.
1391         * m4/exponentl.m4: New file.
1392         * modules/isnanf: Use new file m4/exponentf.m4.
1393         * modules/isnand: Use new file m4/exponentd.m4.
1394         * modules/isnanl: Use new file m4/exponentl.m4.
1395
1396 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1397
1398         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1399         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1400         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1401         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1402
1403         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1404         readlink on platforms without PATH_MAX.
1405
1406 2008-07-21  Eric Blake  <ebb9@byu.net>
1407
1408         Warn, not fail, on stale version.
1409         * top/GNUmakefile (_curr-ver): Tone down previous patch.
1410
1411         Don't allow installation with stale devel version number.
1412         * top/GNUmakefile (_is-install-target): New macro.
1413         (_curr-ver): Forbid installation with stale version number.
1414
1415 2008-07-20  Bruno Haible  <bruno@clisp.org>
1416
1417         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
1418         TESTS_ENVIRONMENT.
1419         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
1420
1421 2008-07-20  Bruno Haible  <bruno@clisp.org>
1422
1423         * lib/c-stack.h (c_stack_action): Add documentation.
1424         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
1425
1426 2008-07-20  Bruno Haible  <bruno@clisp.org>
1427
1428         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1429         * modules/readlink (License): Likewise.
1430
1431 2008-07-17  Eric Blake  <ebb9@byu.net>
1432
1433         * modules/c-stack (Link): Fix typo.
1434
1435         Make c-stack use libsigsegv, when available.
1436         * modules/c-stack (Depends-on): Add libsigsegv.
1437         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1438         needed.
1439         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1440         (segv_handler, overflow_handler, c_stack_action)
1441         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1442         implementation when libsigsegv is available, but only when using
1443         the library is necessary.
1444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1445         comment, explaining why XSI check fails on Linux.
1446         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
1447         * tests/test-c-stack2.sh: Tweak skip message.
1448         * NEWS: Document new link-time requirements.
1449
1450 2008-07-16  Eric Blake  <ebb9@byu.net>
1451
1452         c-stack: Expose false positives when not using libsigsegv.
1453         * modules/c-stack-tests (Files): Expand test.
1454         * tests/test-c-stack.c (main): Add means to conditionally trigger
1455         non-overflow SIGSEGV.
1456         * tests/test-c-stack2.sh: New file.
1457
1458 2008-07-14  Bruno Haible  <bruno@clisp.org>
1459
1460         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
1461         Reported by Eric Blake.
1462
1463 2008-07-14  Sam Steingold  <sds@gnu.org>
1464             Bruno Haible  <bruno@clisp.org>
1465
1466         New module libsigsegv.
1467         * modules/libsigsegv: New file.
1468         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
1469         modifications.
1470         * MODULES.html.sh (Signal handling): New section.
1471
1472 2008-07-14  Bruno Haible  <bruno@clisp.org>
1473
1474         * modules/unictype/ctype-* (Description): Add the word "function".
1475         Improves the resulting doc in MODULES.html.
1476
1477 2008-07-12  Ben Pfaff  <blp@gnu.org>
1478
1479         Add longlong module.
1480         * modules/longlong: New file.
1481
1482 2008-07-12  Bruno Haible  <bruno@clisp.org>
1483
1484         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
1485         to empty.
1486
1487 2008-07-10  Ben Pfaff  <blp@gnu.org>
1488
1489         Add isnan module.
1490         * doc/posix-functions/isnan.texi: Mention new module.
1491         * lib/math.in.h: Define isnan macro if we have decided to replace
1492         it.
1493         * m4/isnan.m4: New file.
1494         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
1495         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
1496         also.
1497         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
1498         redundancy.
1499         * m4/math_h.m4: Initialize and substitute variables for isnan
1500         module.
1501         * modules/isnan: New file.
1502         * modules/isnan-tests: New file.
1503         * modules/math: Add substitutions for new module.
1504         * tests/test-isnan.c: New file.
1505         * MODULES.html.sh: Mention new module.
1506
1507 2008-07-10  Ben Pfaff  <blp@gnu.org>
1508
1509         Add isnanf module.
1510         * lib/isnanf.m4: New file.
1511         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
1512         (gl_HAVE_ISNANF_IN_LIBM): New macro.
1513         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
1514         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
1515         * modules/isnanf: New file.
1516         * modules/isnanf-tests: New file.
1517         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
1518         files.
1519         * tests/test-isnanf-nolibm.c: factored most of its contents into
1520         new file tests/test-isnanf.h.
1521         * tests/test-isnanf.h: New file.
1522         * tests/test-isnanf.c: New file.
1523         * MODULES.html.sh: Mention new module.
1524         * doc/glibc-functions/isnanf.texi: Mention new module.
1525
1526 2008-07-10  Ben Pfaff  <blp@gnu.org>
1527
1528         Add isnand module.
1529         * lib/isnand.h: New file.
1530         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
1531         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
1532         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
1533         functionality also.
1534         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
1535         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
1536         (gl_HAVE_ISNAND_IN_LIBM): New macro.
1537         * modules/isnand: New file.
1538         * modules/isnand-tests: New file.
1539         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
1540         files.
1541         * tests/test-isnand-nolibm.c: factored most of its contents into
1542         new file tests/test-isnand.h.
1543         * tests/test-isnand.h: New file.
1544         * tests/test-isnand.c: New file.
1545         * MODULES.html.sh: Mention new module.
1546
1547 2008-07-10  Ben Pfaff  <blp@gnu.org>
1548
1549         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
1550         * lib/isnand.h: Rename lib/isnand-nolibm.h.
1551         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
1552         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
1553         * modules/isnanf-nolibm: Update references to renamed files.
1554         * modules/isnand-nolibm: Likewise.
1555         * modules/isnanf-nolibm-tests: Likewise.
1556         * modules/isnand-nolibm-tests: Likewise.
1557         * lib/frexp.c: Likewise.
1558         * lib/isfinite.c: Likewise.
1559         * lib/signbitd.c: Likewise.
1560         * lib/signbitf.c: Likewise.
1561         * lib/vasnprintf.c: Likewise.
1562         * tests/test-ceilf1.c: Likewise.
1563         * tests/test-ceilf2.c: Likewise.
1564         * tests/test-floorf1.c: Likewise.
1565         * tests/test-floorf2.c: Likewise.
1566         * tests/test-frexp.c: Likewise.
1567         * tests/test-round1.c: Likewise.
1568         * tests/test-round2.c: Likewise.
1569         * tests/test-roundf1.c: Likewise.
1570         * tests/test-strtod.c: Likewise.
1571         * tests/test-trunc1.c: Likewise.
1572         * tests/test-trunc2.c: Likewise.
1573         * tests/test-truncf1.c: Likewise.
1574         * tests/test-truncf2.c: Likewise.
1575         * NEWS: Mention the renamed header files.
1576
1577 2008-07-11  Jim Meyering  <meyering@redhat.com>
1578
1579         vc-list-files: make the last-resort awk code more portable
1580         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
1581         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
1582         does not support it.
1583
1584 2008-07-10  Eric Blake  <ebb9@byu.net>
1585
1586         Work with tar's bootstrap.
1587         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
1588         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
1589         an m4 comment.
1590
1591 2008-07-09  Jim Meyering  <meyering@redhat.com>
1592
1593         posix-shell.m4: fix typo that made this test malfunction
1594         * m4/posix-shell.m4: Remove capitalization in variable name.
1595
1596 2008-07-08  Bruno Haible  <bruno@clisp.org>
1597
1598         * m4/onceonly.m4: Update comments.
1599         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1600
1601 2008-07-04  Jim Meyering  <meyering@redhat.com>
1602
1603         * users.txt: Add vc-dwim.
1604         (bison, coreutils): Use the gitweb URL.
1605
1606 2008-07-03  Jim Meyering  <meyering@redhat.com>
1607
1608         * users.txt: Add libffcall.  From Sam Steingold.
1609
1610 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
1611
1612         getdate.y: do not ignore TZ with relative day, month or year offset
1613         * lib/getdate.y (get_date): Move the tz-handling block to follow the
1614         relative-date-handling, since otherwise, the latter would clobber the
1615         sole output (an updated Start value) of the tz-handling block.
1616         * tests/test-getdate.c: Tests for the fix
1617
1618 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1619
1620         Recognize 'foo_LIBRARIES += libgnu.a'.
1621         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
1622         makefile snippet has already specified an installation location,
1623         also using '+='.
1624
1625 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
1626
1627         getdate.y: factor out common actions
1628         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
1629         Use them in place of open-coded actions.
1630
1631 2008-07-01  Simon Josefsson  <simon@josefsson.org>
1632
1633         Add self-test for getdate module.
1634         * modules/getdate-tests: New file.
1635         * tests/test-getdate.c: New file.
1636
1637 2008-06-29  Bruno Haible  <bruno@clisp.org>
1638
1639         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
1640         .gitignore.
1641         Reported by Sylvain Beucler <beuc@beuc.net>.
1642
1643 2008-06-29  Bruno Haible  <bruno@clisp.org>
1644
1645         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
1646         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
1647
1648 2008-06-29  Bruno Haible  <bruno@clisp.org>
1649
1650         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
1651         EXTRA_DIST.
1652         Reported by Sylvain Beucler <beuc@beuc.net>.
1653
1654 2008-06-26  Jim Meyering  <meyering@redhat.com>
1655
1656         make several modules depend on the "open" module
1657         This provides slightly increased consistency when opening-for-write
1658         the name of a non-directory spelled with a trailing slash.
1659         * modules/chdir-safer: Likewise.
1660         * modules/chown: Likewise.
1661         * modules/clean-temp: Likewise.
1662         * modules/copy-file: Likewise.
1663         * modules/fchdir: Likewise.
1664         * modules/fcntl-safer: Likewise.
1665         * modules/pipe: Likewise.
1666         * modules/utime: Likewise.
1667         Prompted by Eric Blake and Bruno Haible.
1668
1669 2008-06-24  Andreas Schwab  <schwab@suse.de>
1670
1671         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
1672         literals can be used as initializers for global variables.
1673
1674 2008-06-23  Eric Blake  <ebb9@byu.net>
1675
1676         Make gnulib-cache.m4 easier to diff.
1677         * gnulib-tool (func_import): Allow newlines when reading cached
1678         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
1679
1680 2008-06-23  Bruno Haible  <bruno@clisp.org>
1681
1682         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
1683         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
1684         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
1685         m4/signalblocking.m4.
1686         (gl_PREREQ_SIGACTION): Don't invoke it.
1687         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
1688         gl_PREREQ_SIG_HANDLER_H.
1689         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1690         Don't check for sigaction here.
1691
1692 2008-06-23  Bruno Haible  <bruno@clisp.org>
1693
1694         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
1695         (install_handlers): Don't set the SA_RESETHAND flag.
1696
1697 2008-06-23  Bruno Haible  <bruno@clisp.org>
1698
1699         * m4/sigaction.m4: Comment fixes.
1700         * lib/signal.in.h: Likewise.
1701
1702 2008-06-23  Eric Blake  <ebb9@byu.net>
1703
1704         Fix typo.
1705         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
1706
1707         Avoid SA_ namespace.
1708         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
1709         Reported by Ralf Wildenhues.
1710
1711         Avoid test failure due to SA_RESTORER.
1712         * tests/test-sigaction.c (SA_MASK): New macro.
1713         (main): Avoid failing due to extension flags being set.
1714         Reported by Jim Meyering.
1715
1716         Revert use of sig-handler.h in sigprocmask.c.
1717         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
1718         it requires the existence of struct sigaction.
1719         * lib/sigprocmask.c (handler_t): Restore typedef.
1720         (rpl_signal, old_handlers): Use local type.
1721
1722 2008-06-22  Bruno Haible  <bruno@clisp.org>
1723
1724         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1725         conditionally.
1726         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1727
1728 2008-06-22  Bruno Haible  <bruno@clisp.org>
1729
1730         * doc/posix-functions/siginterrupt.texi: Move note.
1731
1732         * lib/signal.in.h (SA_RESTART): New macro.
1733         * lib/sigaction.c: Update comment.
1734
1735         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
1736
1737         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
1738         (gl_PREREQ_SIGPROCMASK): Invoke it.
1739         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
1740
1741         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
1742
1743         * lib/sigprocmask.c: Update a comment.
1744
1745 2008-06-21  Eric Blake  <ebb9@byu.net>
1746
1747         Use sigaction module rather than signal().
1748         * modules/c-stack (Depends-on): Add sigaction.
1749         * modules/fatal-signal (Depends-on): Likewise.
1750         * modules/nanosleep (Depends-on): Likewise.
1751         * modules/sigprocmask (Files): Add sig-handler.h.
1752         * modules/sigaction (Files): Likewise.
1753         * lib/sig-handler.h (get_handler): New file, suggested by Paul
1754         Eggert.
1755         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
1756         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
1757         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1758         (init_fatal_signals): Likewise.
1759         * lib/nanosleep.c (rpl_nanosleep): Likewise.
1760         (siginterrupt): Delete fallback.
1761         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
1762         instead.
1763         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
1764         siginterrupt.
1765
1766         New module sigaction, for mingw.
1767         * modules/sigaction: New module...
1768         * modules/sigaction-tests: ...and its test.
1769         * m4/sigaction.m4: New file.
1770         * lib/sigaction.c: Likewise.
1771         * tests/test-sigaction.c: Likewise.
1772         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
1773         * modules/signal (Makefile.am): Likewise.
1774         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
1775         needed.
1776         * doc/posix-headers/signal.texi (signal.h): Mention provided
1777         types.
1778         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
1779         that sigaction is preferable.
1780         * doc/posix-functions/sigaction.texi (sigaction): Mention new
1781         module.
1782         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1783         sigaction.
1784
1785         Improve robustness of sigprocmask by overriding signal.
1786         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
1787         is in use.
1788         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
1789         (SIGKILL, SIGSTOP): Provide fallbacks.
1790         (rpl_signal): Implement.
1791         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
1792         signal can be called inside handlers.
1793
1794         Fix nanosleep module on mingw.
1795         * modules/nanosleep (Depends-on): Add sys_select.
1796         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
1797
1798         Fix licensing of sigprocmask.
1799         * modules/raise (License): Relicense as LGPL.
1800
1801 2008-06-21  Bruno Haible  <bruno@clisp.org>
1802
1803         * lib/propername.c (proper_name_utf8): Don't use the transliterated
1804         result if it contains question marks.
1805         Reported by Michael Geng <linux@michaelgeng.de>.
1806
1807 2008-06-19  Bruno Haible  <bruno@clisp.org>
1808
1809         Fix CVS-ism.
1810         * doc/gnulib.texi: Include updated-stamp.texi.
1811         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
1812         (updated-stamp.texi): New rule.
1813         (gnulib.info): Depend on it.
1814         * doc/.gitignore: Add updated-stamp.texi.
1815         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
1816
1817 2008-06-19  Bruno Haible  <bruno@clisp.org>
1818
1819         * doc/Makefile (gnulib.info): Update and simplify dependencies.
1820         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1821
1822 2008-06-19  Eric Blake  <ebb9@byu.net>
1823
1824         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
1825         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
1826         Reported by Stepan Kasal.
1827
1828 2008-06-18  Bruno Haible  <bruno@clisp.org>
1829
1830         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1831         Reported by Eric Blake.
1832
1833 2008-06-18  Eric Blake  <ebb9@byu.net>
1834
1835         Work around cygwin 1.5.25 strsignal bug.
1836         * tests/test-strsignal.c: Allow for const char *.
1837         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
1838
1839 2008-06-18  Simon Josefsson  <simon@josefsson.org>
1840
1841         * users.txt: Update URL to article and add author/date
1842         information.
1843
1844 2008-06-17  Bruno Haible  <bruno@clisp.org>
1845
1846         New macro gl_DISABLE_THREADS.
1847         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
1848         if the user did not pass --enable-threads or --disable-threads option.
1849         (gl_DISABLE_THREADS): New macro.
1850         Reported by Eric Blake <ebb9@byu.net>.
1851
1852 2008-06-17  Bruno Haible  <bruno@clisp.org>
1853
1854         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
1855         when the macro ignores it.
1856         Based on a patch by Eric Blake <ebb9@byu.net>.
1857
1858 2008-06-17  Bruno Haible  <bruno@clisp.org>
1859
1860         * modules/tls (License): Change to LGPLv2+.
1861         Reported by Eric Blake.
1862
1863 2008-06-17  Eric Blake  <ebb9@byu.net>
1864
1865         Simplify c-stack prerequisites.
1866         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
1867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
1868         no longer requires <ucontext.h> to exist.  Optimize setrlimit
1869         check.
1870         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
1871         <sys/resource.h>.
1872
1873         Move c-stack test into testsuite.
1874         * modules/c-stack-tests: New file.
1875         * lib/c-stack.c [DEBUG]: Move test program...
1876         * tests/test-c-stack.c: ...into this new file.  Skip rather than
1877         fail test if sigaltstack is lacking.
1878         * tests/test-c-stack.sh: New driver file.
1879
1880 2008-06-16  Eric Blake  <ebb9@byu.net>
1881
1882         Use raise module consistently.
1883         * modules/fatal-signal (Depends-on): Add raise.
1884         * modules/sigprocmask (Depends-on): Likewise.
1885         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
1886         * lib/sigprocmask.c (sigprocmask): Likewise.
1887         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1888         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
1889
1890         Fix compliance bug in sigpending.
1891         * lib/sigprocmask.c (sigpending): Return pending array via
1892         parameter, not return value.
1893
1894 2008-06-14  Eric Blake  <ebb9@byu.net>
1895
1896         Improve obstack-printf test code.
1897         * tests/test-obstack-printf.c (test_function): Fix comment, and
1898         simplify usage of obstack_* in macros.  Add a test for coverage.
1899         Reported by Bruno Haible.
1900
1901 2008-06-14  Bruno Haible  <bruno@clisp.org>
1902
1903         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
1904         array size as a constant, not as a const variable.
1905         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
1906         AC_USE_SYSTEM_EXTENSIONS.
1907         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1908         Test whether the obstack_printf function actually exists.
1909         * modules/obstack-printf (Depends-on): Add extensions.
1910         (Include): Remove obstack.h.
1911         * modules/obstack-printf-posix (Depends-on): Add extensions.
1912         (Include): Remove obstack.h.
1913
1914 2008-06-13  Eric Blake  <ebb9@byu.net>
1915
1916         Add obstack-printf and obstack-printf-posix modules.
1917         * modules/obstack-printf: New file.
1918         * modules/obstack-printf-posix: Likewise.
1919         * MODULES.html.sh (Misc): Mention them.
1920         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
1921         Likewise.
1922         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
1923         Likewise.
1924         * modules/stdio (Makefile.am): Accomodate new modules.
1925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1926         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
1927         Declare.
1928         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
1929         functions.
1930         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
1931         (gl_REPLACE_OBSTACK_PRINTF): New macros
1932         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
1933         * tests/test-obstack-printf.c: New file.
1934         * modules/obstack-printf-tests: Likewise.
1935         * modules/obstack-printf-posix-tests: Likewise.
1936
1937 2008-06-11  Bruno Haible  <bruno@clisp.org>
1938
1939         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
1940         * lib/open.c: Include errno.h.
1941         (open): Fail when attempting to write to a file that has a trailing
1942         slash.
1943         * tests/test-open.c (main): Test against trailing slash bug.
1944         * doc/posix-functions/open.texi: Mention the trailing slash bug.
1945
1946 2008-06-10  Bruno Haible  <bruno@clisp.org>
1947
1948         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
1949         for $? to work inside the trap command, with various /bin/sh-s.
1950         * tests/test-vc-list-files-cvs.sh: Likewise.
1951
1952 2008-06-10  Bruno Haible  <bruno@clisp.org>
1953
1954         * lib/acl-internal.h: Don't include gettext.h here.
1955         * lib/set-mode-acl.c: Include gettext.h here.
1956         * lib/copy-acl.c: Likewise.
1957
1958 2008-06-10  Bruno Haible  <bruno@clisp.org>
1959
1960         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
1961         * lib/wait-process.c (wait_subprocess): Likewise.
1962         * lib/execute.h (execute): Add termsigp argument.
1963         * lib/execute.c (execute): Likewise.
1964         * lib/csharpcomp.c (compile_csharp_using_pnet,
1965         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
1966         * lib/csharpexec.c (execute_csharp_using_pnet,
1967         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
1968         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1969         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1970         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1971         is_jikes_present): Update.
1972         * lib/javaexec.c (execute_java_class): Update.
1973         * lib/javaversion.c (execute_and_read_line): Update.
1974         * NEWS: Document the changes.
1975         Reported by Eric Blake.
1976
1977 2008-06-10  Eric Blake  <ebb9@byu.net>
1978
1979         Add missing include.
1980         * tests/test-strstr.c (includes): Add <signal.h>.
1981         * tests/test-strcasestr.c (includes): Likewise.
1982         * tests/test-memmem.c (includes): Likewise.
1983
1984 2008-06-10  Bruno Haible  <bruno@clisp.org>
1985
1986         * lib/wait-process.c (wait_subprocess): Add an assertion.
1987
1988 2008-06-10  Bruno Haible  <bruno@clisp.org>
1989
1990         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
1991
1992 2008-06-10  Bruno Haible  <bruno@clisp.org>
1993
1994         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
1995         using alarm().
1996         * tests/test-strcasestr.c (main): Likewise.
1997         * tests/test-strstr.c (main): Likewise.
1998
1999 2008-06-09  Bruno Haible  <bruno@clisp.org>
2000
2001         Work around the Solaris 10 ACE ACLs ABI change.
2002         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
2003         declare if ACL_NO_TRIVIAL is present.
2004         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
2005         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
2006         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
2007         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
2008         define if ACL_NO_TRIVIAL is present.
2009         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
2010         and use the current ABI.
2011         (file_has_acl): Use same #if condition as elsewhere.
2012         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
2013         in use, and use the current ABI.
2014         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
2015         Reported by Jim Meyering.
2016
2017 2008-06-09  Eric Blake  <ebb9@byu.net>
2018
2019         Work around environments that (stupidly) ignore SIGALRM.
2020         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
2021         before using alarm().
2022         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2023         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2024         Reported by Ian Beckwith <ianb@erislabs.net>.
2025
2026         Produce autobuild blurb earlier in log.
2027         * modules/autobuild (configure.ac-early): Move AB_INIT here.
2028
2029 2008-06-09  Jim Meyering  <meyering@redhat.com>
2030         and Ondřej Vašík  <ovasik@redhat.com>
2031
2032         utimens.c: correct kernel bug work-around
2033         Ondřej Vašík found that the invalid return value of 280 indicates
2034         failure, not success, and the kernel bug we're trying to work
2035         around affects not just the utimensat call, but also the fallback
2036         futimens call.
2037         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
2038         not success.
2039         [HAVE_FUTIMENS]: Use the same work-around, here.
2040
2041 2008-06-09  Jim Meyering  <meyering@redhat.com>
2042
2043         add more guards around definition of ACE_-related code
2044         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
2045         ALLOW and ACE_OWNER are also defined.
2046
2047 2008-06-08  Bruno Haible  <bruno@clisp.org>
2048
2049         * lib/acl-internal.h: Add me as co-author.
2050         * lib/file-has-acl.c: Likewise.
2051         * lib/set-mode-acl.c: Likewise.
2052         * lib/copy-acl.c: Likewise.
2053
2054 2008-06-08  Bruno Haible  <bruno@clisp.org>
2055
2056         Add support for AIX ACLs.
2057         * lib/acl-internal.h (acl_nontrivial): New declaration.
2058         * lib/file-has-acl.c (acl_nontrivial): New function.
2059         (file_has_acl): Add implementation using AIX 4 ACL API.
2060         * lib/set-mode-acl.c (qset_acl): Likewise.
2061         * lib/copy-acl.c (qcopy_acl): Likewise.
2062
2063 2008-06-08  Bruno Haible  <bruno@clisp.org>
2064
2065         Add support for HP-UX ACLs.
2066         * lib/acl-internal.h (acl_nontrivial): New declaration.
2067         * lib/file-has-acl.c (acl_nontrivial): New function.
2068         (file_has_acl): Add implementation using HP-UX 11 ACL API.
2069         * lib/set-mode-acl.c (qset_acl): Likewise.
2070         * lib/copy-acl.c (qcopy_acl): Likewise.
2071
2072 2008-06-08  Bruno Haible  <bruno@clisp.org>
2073
2074         Add support for Cygwin ACLs.
2075         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
2076         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
2077         the chmod_or_fchmod call.
2078         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
2079
2080 2008-06-08  Bruno Haible  <bruno@clisp.org>
2081
2082         Fix bug with setuid modes in Solaris 10+ code.
2083         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
2084         succeeded, when the mode contains some special bits.
2085
2086 2008-06-08  Bruno Haible  <bruno@clisp.org>
2087
2088         Add support for Solaris 7..10 ACLs.
2089         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
2090         declarations.
2091         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
2092         functions.
2093         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
2094         * lib/set-mode-acl.c (qset_acl): Likewise.
2095         * lib/copy-acl.c (qcopy_acl): Likewise.
2096
2097 2008-06-08  Bruno Haible  <bruno@clisp.org>
2098
2099         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
2100         declaration.
2101         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
2102         (acl_access_nontrivial): Remove MacOS X case.
2103         (file_has_acl): Use acl_extended_nontrivial.
2104         * lib/copy-acl.c (qcopy_acl): Likewise.
2105
2106 2008-06-08  Bruno Haible  <bruno@clisp.org>
2107
2108         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
2109
2110 2008-06-08  Jim Meyering  <meyering@redhat.com>
2111
2112         * modules/acl (Maintainer): Add Bruno Haible.
2113
2114 2008-06-07  Bruno Haible  <bruno@clisp.org>
2115
2116         Improve support for Tru64 ACLs.
2117         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
2118         ACL on OSF/1.
2119
2120 2008-06-07  Bruno Haible  <bruno@clisp.org>
2121
2122         Add support for MacOS X ACLs.
2123         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
2124         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
2125         * lib/set-mode-acl.c (qset_acl): Likewise.
2126         * lib/copy-acl.c (qcopy_acl): Likewise.
2127
2128 2008-06-07  Bruno Haible  <bruno@clisp.org>
2129
2130         Fix memory leak introduced on 2008-05-22.
2131         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
2132         use.
2133
2134 2008-06-07  Bruno Haible  <bruno@clisp.org>
2135
2136         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
2137         to construct an empty ACL.
2138
2139 2008-06-07  Bruno Haible  <bruno@clisp.org>
2140
2141         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
2142         precisely.
2143         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
2144
2145 2008-06-07  Bruno Haible  <bruno@clisp.org>
2146
2147         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
2148         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
2149
2150 2008-06-07  Bruno Haible  <bruno@clisp.org>
2151
2152         * doc/posix-functions/_setjmp.texi: Explain the use of this function
2153         regardless of POSIX.
2154         * doc/posix-functions/_longjmp.texi: Likewise.
2155         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
2156         SystemV platform in this case.
2157
2158 2008-06-06  Eric Blake  <ebb9@byu.net>
2159
2160         Document abort() bugs.
2161         * doc/posix-functions/abort.texi (abort): Mention anomalies.
2162
2163         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
2164         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
2165         sigsetjmp.
2166         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
2167         siglongjmp, but only as a macro.
2168         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
2169         is obsolete.
2170         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
2171
2172         Tweak documentation to cover cygwin argz bugs.
2173         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
2174         argz bug fix; no code change needed since no cygwin releases
2175         occurred between the last fix and the bug being tested.
2176         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
2177         module and recently fixed cygwin bugs.
2178         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
2179         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
2180         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
2181         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
2182         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
2183         Likewise.
2184         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
2185         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
2186         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
2187         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
2188         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
2189         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
2190         Likewise.
2191
2192         Avoid gcc warning on cygwin.
2193         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
2194         !ACL_NO_TRIVIAL]: Avoid unused variable.
2195
2196 2008-06-05  Eric Blake  <ebb9@byu.net>
2197
2198         Be tolerant of UNKNOWN version in gnulib-tool test dir.
2199         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
2200         git-version-gen fails to come up with a version.
2201         Reported by Simon Josefsson.
2202
2203 2008-06-05  Jim Meyering  <meyering@redhat.com>
2204             Paul Eggert  <eggert@cs.ucla.edu>
2205
2206         utimens.c: work around a probable Linux kernel bug
2207         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
2208         appears to be a kernel bug that causes utimensat to return 280
2209         instead of 0, indicating success.
2210
2211 2008-06-04  Bruno Haible  <bruno@clisp.org>
2212
2213         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
2214         2008-06-01 commit.
2215
2216 2008-06-04  Bruno Haible  <bruno@clisp.org>
2217
2218         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
2219         * lib/file-has-acl.c (acl_access_nontrivial): New function.
2220         (file_has_acl): Use it. Save errno afterwards.
2221         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
2222
2223 2008-06-03  Bruno Haible  <bruno@clisp.org>
2224
2225         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
2226         draft code. Simplify #ifs.
2227         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
2228         Put Solaris code after POSIX-draft code. Fix comments regarding
2229         Solaris 10, HP-UX. Mention Cygwin.
2230         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
2231
2232 2008-06-03  Eric Blake  <ebb9@byu.net>
2233
2234         Provide fallback for older kernels.
2235         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
2236         Provide runtime fallback if kernel lacks support.
2237         Reported by Mike Frysinger.
2238
2239 2008-06-02  Bruno Haible  <bruno@clisp.org>
2240
2241         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
2242         it exists.
2243
2244 2008-06-02  Bruno Haible  <bruno@clisp.org>
2245
2246         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
2247         * lib/copy-acl.c (qcopy_acl): Update comment.
2248
2249 2008-06-02  Bruno Haible  <bruno@clisp.org>
2250
2251         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
2252         like ACL APIs.
2253
2254 2008-06-02  Bruno Haible  <bruno@clisp.org>
2255
2256         * tests/test-file-has-acl.sh: Use different code for Cygwin.
2257         * tests/test-set-mode-acl.sh: Likewise.
2258         * tests/test-copy-acl.sh: Likewise.
2259         * tests/test-copy-file.sh: Likewise.
2260
2261 2008-06-02  Bruno Haible  <bruno@clisp.org>
2262
2263         * tests/test-file-has-acl.sh: Remove unused code.
2264
2265 2008-06-01  Bruno Haible  <bruno@clisp.org>
2266
2267         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
2268         (copy_acl): Just a wrapper around qcopy_acl that emits the error
2269         messages.
2270         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
2271
2272 2008-06-01  Bruno Haible  <bruno@clisp.org>
2273
2274         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
2275         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
2276         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
2277         APIs.
2278         * modules/acl-tests (configure.ac): Remove tests now contained in
2279         m4/acl.m4.
2280
2281 2008-06-02  Jim Meyering  <meyering@redhat.com>
2282
2283         announce-gen: use a better key-server host name
2284         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
2285         it may be more consistently reliable.  Suggested by Werner Koch
2286         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
2287
2288 2008-06-01  Bruno Haible  <bruno@clisp.org>
2289
2290         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
2291         Reported by Voroskoi Andras <voroskoi@gmail.com>.
2292
2293 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
2294
2295         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
2296
2297 2008-06-01  Bruno Haible  <bruno@clisp.org>
2298
2299         New ACL tests.
2300         * tests/test-file-has-acl.sh: New file.
2301         * tests/test-file-has-acl.c: New file.
2302         * tests/test-set-mode-acl.sh: New file.
2303         * tests/test-set-mode-acl.c: New file.
2304         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
2305         * tests/test-copy-acl.c: New file.
2306         * modules/acl-tests: New file, based on modules/copy-file-tests.
2307         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2308         (Depends-on): Add acl-tests.
2309         (configure.ac): Remove checks.
2310         (Makefile.am): Don't create test-sameacls program here any more.
2311
2312 2008-06-01  Bruno Haible  <bruno@clisp.org>
2313
2314         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2315         * tests/test-sameacls.c: Include progname.h.
2316         (main): Invoke set_program_name. Portability fixes for MacOS X,
2317         Solaris, HP-UX.
2318
2319 2008-06-01  Bruno Haible  <bruno@clisp.org>
2320
2321         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2322         function.
2323         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2324
2325 2008-06-01  Bruno Haible  <bruno@clisp.org>
2326
2327         * modules/rpmatch (Depends-on): Add strdup.
2328
2329 2008-06-01  Bruno Haible  <bruno@clisp.org>
2330
2331         * lib/pipe.c: Include unistd-safer.h.
2332         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2333         * modules/pipe (Depends-on): Add unistd-safer.
2334
2335 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2336
2337         * modules/autobuild (configure.ac): Call AB_INIT.
2338
2339 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2340
2341         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2342         Suggested by Bruno Haible <bruno@clisp.org>.
2343
2344 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2345
2346         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2347         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2348         <bruno@clisp.org>.
2349
2350 2008-05-29  Eric Blake  <ebb9@byu.net>
2351
2352         Prefer new POSIX 200x interfaces over futimesat.
2353         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2354         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2355         when available.
2356         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2357
2358 2008-05-28  Bruno Haible  <bruno@clisp.org>
2359
2360         * modules/stpcpy (License): Change to LGPLv2+.
2361         Requested by David Lutterkort <dlutter@redhat.com>.
2362
2363 2008-05-27  Bruno Haible  <bruno@clisp.org>
2364
2365         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2366         current mingw.
2367         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2368
2369 2008-05-27  Bruno Haible  <bruno@clisp.org>
2370
2371         * modules/iconv_open (Link): New section, from module 'iconv'.
2372         * modules/striconv (Link): Likewise.
2373         * modules/striconveh (Link): Likewise.
2374         * modules/xstriconv (Link): Likewise.
2375         * modules/unicodeio (Link): Likewise.
2376         * modules/propername (Link): Likewise.
2377         Reported by Jim Meyering.
2378
2379 2008-05-26  Jim Meyering  <meyering@redhat.com>
2380
2381         sha256: do not artificially restrict buffer length to be < 2^32
2382         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2383         uint32_t to size_t.
2384         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2385         to match.
2386
2387         avoid unaligned access errors, e.g., on sparc
2388         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2389         direct access through a possibly-unaligned uint64* pointer.
2390         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2391         direct access through a possibly-unaligned uint32* pointer.
2392         Prompted by this patch from Tom "spot" Callaway:
2393         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2394
2395         sha512.c: fix typo in comment
2396         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2397
2398 2008-05-25  Bruno Haible  <bruno@clisp.org>
2399
2400         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2401         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2402         (Makefile.am): Update lib_SOURCES.
2403
2404 2008-05-25  Bruno Haible  <bruno@clisp.org>
2405
2406         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2407
2408 2008-05-25  Jim Meyering  <meyering@redhat.com>
2409
2410         useless-if-before-free: freed expr may have white-space differences
2411         * build-aux/useless-if-before-free: Recognize cases in which the
2412         freed expression differs from the tested one in embedded white
2413         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
2414         $1 was used, so we can't make any regexp shy.  Improved tests now
2415         detect this.
2416
2417         useless-if-before-free: accept white space in the expression.
2418         * build-aux/useless-if-before-free: For now, any white space
2419         in the expression must be identical in the free argument.
2420
2421         useless-if-before-free: efficiency tweak
2422         * build-aux/useless-if-before-free: Make the expression-matching
2423         regexp "shy".
2424         Make the *outer* regexp shy, not the expr-matching one.
2425
2426         update code-in-comment to accept cast of free arg
2427         * build-aux/useless-if-before-free: Update regexp.
2428
2429 2008-05-25  Bruno Haible  <bruno@clisp.org>
2430
2431         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2432         * modules/copy-file-tests (Files, Makefile.am): Update.
2433         * tests/test-copy-file.c (func_test_copy): Update.
2434
2435 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2436
2437         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2438
2439 2008-05-23  Bruno Haible  <bruno@clisp.org>
2440
2441         Improve support for ACLs on OSF/1.
2442         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2443         Remove fallback for unknown flavors of ACLs.
2444
2445 2008-05-22  Bruno Haible  <bruno@clisp.org>
2446
2447         Add support for ACLs on OSF/1.
2448         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
2449         replacements.
2450         (acl_free_text): New macro fallback.
2451         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
2452         acl_free.
2453         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
2454         acl_free_text function. Require AC_C_INLINE.
2455
2456 2008-05-22  Bruno Haible  <bruno@clisp.org>
2457
2458         Make copy_acl work on MacOS X 10.5.
2459         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
2460         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
2461         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
2462         If MODE_INSIDE_ACL, don't assume that every system has the same text
2463         representation for ACLs as FreeBSD.
2464         * lib/copy-acl.c (copy_acl): Add support for platforms with
2465         !MODE_INSIDE_ACL.
2466         * lib/file-has-acl.c (file_has_acl): Likewise.
2467         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
2468         FreeBSD, MacOS X, or IRIX, respectively.
2469
2470 2008-05-22  Bruno Haible  <bruno@clisp.org>
2471
2472         * lib/acl.h: Don't include <sys/acl.h>.
2473         (GETACLCNT): Move fallback to lib/acl-internal.h.
2474         * lib/acl-internal.h: Include <sys/acl.h> here.
2475         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
2476
2477 2008-05-22  Bruno Haible  <bruno@clisp.org>
2478
2479         Split off copy_acl function to separate file.
2480         * lib/copy-acl.c: New file, extracted from lib/acl.c.
2481         * lib/acl.c (copy_acl): Moved function to separate file.
2482         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
2483         * modules/acl (Files): Add lib/copy-acl.c.
2484         (Makefiles.am): Augment lib_SOURCES.
2485
2486 2008-05-22  Bruno Haible  <bruno@clisp.org>
2487
2488         * modules/copy-file-tests: New file.
2489         * tests/test-copy-file.sh: New file.
2490         * tests/test-copy-file.c: New file.
2491         * tests/test-copy-file-sameacls.c: New file.
2492
2493 2008-05-22  Eric Blake  <ebb9@byu.net>
2494
2495         Avoid gcc warning.
2496         * tests/test-memcmp.c (main): Pass NULL indirectly.
2497
2498 2008-05-21  Bruno Haible  <bruno@clisp.org>
2499
2500         Add reference doc about ACLs.
2501         * doc/acl-resources.txt: New file.
2502         * doc/acl-cygwin.txt: New file.
2503
2504 2008-05-21  Bruno Haible  <bruno@clisp.org>
2505
2506         Avoid one more warning from gcc.
2507         * lib/vasnprintf.c (IF_LINT): Update comments.
2508         (VASNPRINTF): Use it also for the 'prefix' array initializer.
2509
2510 2008-05-21  Jim Meyering  <meyering@redhat.com>
2511
2512         avoid a warning from gcc
2513         * lib/vasnprintf.c (IF_LINT): Define.
2514         (scale10_round_decimal_long_double):
2515         Use it to avoid a "may be used uninitialized" warning.
2516         (scale10_round_decimal_double): Likewise.
2517
2518 2008-05-21  Simon Josefsson  <simon@josefsson.org>
2519
2520         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
2521         declared.
2522
2523 2008-05-20  Bruno Haible  <bruno@clisp.org>
2524
2525         * tests/test-memcmp.c (main): Test also the sign of the result. Test
2526         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
2527
2528 2008-05-20  Simon Josefsson  <simon@josefsson.org>
2529
2530         * modules/memcmp-tests: New file.
2531         * tests/test-memcmp.c: New file.
2532
2533 2008-05-19  Bruno Haible  <bruno@clisp.org>
2534
2535         * modules/propername (Notice, configure.ac): Put quoted "..." into
2536         --keyword option.
2537         * lib/propername.h: Update comments accordingly.
2538         Reported by Eric Blake.
2539
2540 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
2541
2542         * modules/getpass-gnu (Depends-on): Add fseeko.
2543
2544 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2545
2546         * modules/base64-tests: New file.
2547
2548 2008-05-19  Bo Borgerson <gigabo@gmail.com>
2549
2550         * lib/base64.c (base64_decode_ctx): If a decode context structure
2551         was passed in use it to ignore newlines.  If a context structure
2552         was _not_ passed in, continue to treat newlines as garbage (this
2553         is the historical behavior).  Formerly base64_decode.
2554         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2555         takes a decode context structure.
2556         * lib/base64.h (base64_decode): Macro for four-argument calls.
2557         (base64_decode_alloc): Likewise.
2558         * lib/base64.c (base64_decode_ctx): If a decode context structure
2559         was passed in use it to ignore newlines.  If a context structure
2560         was _not_ passed in, continue to treat newlines as garbage (this
2561         is the historical behavior).  Formerly base64_decode.
2562         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2563         takes a decode context structure.
2564         * lib/base64.h (base64_decode): Macro for four-argument calls.
2565         (base64_decode_alloc): Likewise.
2566
2567 2008-05-19  Jim Meyering  <meyering@redhat.com>
2568
2569         avoid a warning from gcc
2570         * lib/trim.c (IF_LINT): Define.
2571         (trim2): Use it to avoid a "may be used uninitialized" warning.
2572
2573         Fix doc typo.
2574         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
2575
2576 2008-05-19  Bruno Haible  <bruno@clisp.org>
2577
2578         * doc/glibc-functions/getpass.texi: Document limits of other
2579         implementations.
2580
2581 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2582             Bruno Haible <bruno@clisp.org>
2583
2584         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
2585
2586 2008-05-18  Bruno Haible  <bruno@clisp.org>
2587
2588         * modules/propername: New file, from GNU gettext.
2589         * lib/propername.h: New file, from GNU gettext.
2590         * lib/propername.c: New file, from GNU gettext.
2591         * MODULES.html.sh (Internationalization functions): Add propername.
2592
2593 2008-05-16  Jim Meyering  <meyering@redhat.com>
2594             Bruno Haible  <bruno@clisp.org>
2595
2596         Avoid some warnings from "gcc -Wshadow".
2597         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
2598
2599 2008-05-15  Eric Blake  <ebb9@byu.net>
2600
2601         Extend previous patch to cygwin 1.7.0.
2602         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
2603         fast implementation in cygwin >= 1.7.0.
2604         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2606
2607 2008-05-15  Bruno Haible  <bruno@clisp.org>
2608
2609         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
2610         implementation in glibc >= 2.9.
2611         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2613
2614 2008-05-15  Bruno Haible  <bruno@clisp.org>
2615
2616         * MODULES.html.sh (Internationalization functions): Remove linebreak.
2617         (Unicode string functions): Add unilbrk/*.
2618         Reported by Karl Berry.
2619
2620 2008-05-15  Eric Blake  <ebb9@byu.net>
2621
2622         Fix violation of <stdbool.h> replacement in regex.
2623         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
2624         * lib/regexec.c (re_search_internal): Likewise.
2625         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
2626
2627 2008-05-15  Jim Meyering  <meyering@redhat.com>
2628
2629         avoid distracting test output when git or cvs is not found
2630         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
2631         * tests/test-vc-list-files-git.sh: Likewise.
2632
2633 2008-05-15  Eric Blake  <ebb9@byu.net>
2634
2635         Glibc finally accepted the memmem speedup code, bugzilla #5514.
2636         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
2637         glibc version.
2638         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2639         * doc/posix-functions/strstr.texi (strstr): Likewise.
2640         * lib/str-two-way.h (MAX): Sychronize with glibc.
2641
2642 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
2643
2644         * lib/regcomp.c (optimize_utf8): Add a note on why we test
2645         opr.ctx_type.
2646         (calc_first): Initialize constraint field.
2647         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2648         Fix grammar.
2649         (duplicate_node): Merge constraint field for all node types.
2650         (calc_eclosure_iter): Look at constraint field for all node types.
2651         * lib/regex_internal.c (create_cd_newstate): Don't look at
2652         opr.ctx_type.
2653
2654 2008-05-14  Bruno Haible  <bruno@clisp.org>
2655
2656         Help GCC to do better code generation.
2657         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
2658         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2659         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
2660         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
2661         Declare with attribute 'malloc' if supported.
2662
2663 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
2664
2665         use "echo STR|wc -c" rather than unportable "expr length STR"
2666         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
2667         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
2668
2669 2008-05-14  Jim Meyering  <meyering@redhat.com>
2670
2671         use dd ibs=$n count=1 ... rather than less-portable head -c$n
2672         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
2673         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
2674         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
2675         via Collin Lasse.
2676
2677 2008-05-14  Eric Blake  <ebb9@byu.net>
2678
2679         Avoid quadratic growth in gl_LIBSOURCES.
2680         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
2681         Suggested by Bruno Haible.
2682
2683         Test xmemdup0.
2684         * modules/xmemdup0-tests: New file.
2685         * tests/test-xmemdup0.c: Likewise.
2686
2687 2008-05-13  Eric Blake  <ebb9@byu.net>
2688
2689         Split xmemdup0 into its own module.
2690         * modules/xmemdup0: New file.
2691         * lib/xmemdup0.h: Likewise.
2692         * lib/xmemdup0.c: Likewise.
2693         * MODULES.html.sh (Memory management functions): Add xmemdup0.
2694         * lib/xalloc.h (xmemdup0): Remove.
2695         * lib/xmalloc.c (xmemdup0): Likewise.
2696
2697 2008-05-13  Eric Blake  <ebb9@byu.net>
2698             Bruno Haible  <bruno@clisp.org>
2699
2700         Reduce number of forks required during autoconf.
2701         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
2702         and gl_LIBSOURCES_DIR.
2703         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
2704         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
2705         m4_syscmd per file.
2706         <m4_foreach_w>: Move...
2707         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
2708
2709 2008-05-13  Eric Blake  <ebb9@byu.net>
2710
2711         * gnulib-tool: Fix various comment typos.
2712
2713 2008-05-12  Bruno Haible  <bruno@clisp.org>
2714
2715         Tailor the linebreaking algorithm.
2716         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
2717
2718 2008-05-12  Bruno Haible  <bruno@clisp.org>
2719
2720         Update to Unicode 5.0.0.
2721         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2722         LBP_JV, LBP_JT. Redistribute values.
2723         (unilbrk_table): Change size.
2724         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2725         Unicode TR#14 rev. 22.
2726         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2727         LBP_JV, LBP_JT. Redistribute values.
2728         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2729         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2730         Update.
2731         * lib/unilbrk/lbrkprop1.h: Regenerated.
2732         * lib/unilbrk/lbrkprop2.h: Regenerated.
2733         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
2734         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
2735         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
2736         Likewise.
2737         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
2738         Likewise.
2739         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
2740         result.
2741         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2742         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2743         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2744         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
2745         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
2746         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
2747
2748 2008-05-11  Bruno Haible  <bruno@clisp.org>
2749
2750         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
2751
2752 2008-05-11  Bruno Haible  <bruno@clisp.org>
2753
2754         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
2755         * modules/unilbrk/gen-lbrk: New file.
2756
2757 2008-05-11  Bruno Haible  <bruno@clisp.org>
2758
2759         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
2760         * m4/sha512.m4 (gl_SHA512): Likewise.
2761
2762 2008-05-11  Jim Meyering  <meyering@redhat.com>
2763
2764         New modules: crypto/sha256, crypto/sha512 (from coreutils)
2765         * modules/crypto/sha256: New file.
2766         * modules/crypto/sha512: Likewise.
2767         * lib/sha256.c: Likewise.
2768         * lib/sha256.h: Likewise.
2769         * lib/sha512.c: Likewise.
2770         * lib/sha512.h: Likewise.
2771         * lib/u64.h: Likewise.
2772         * m4/sha256.m4: Likewise.
2773         * m4/sha512.m4: Likewise.
2774         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
2775
2776 2008-05-10  Bruno Haible  <bruno@clisp.org>
2777
2778         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
2779         (Input/Output <stdio.h>): Add xprintf.
2780         (Signal handling <signal.h>): Add strsignal.
2781         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
2782         (Core language properties): Add func.
2783         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
2784         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
2785         strings.
2786         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
2787         (Input/output): New section.
2788         (File system functions): Add openat-die, stat-macros.
2789         (Networking functions): Add sockets.
2790         (Unicode string functions): Add unictype/*.
2791         (Support for building libraries and executables): Add gperf.
2792         (Support for building documentation): Add agpl-3.0.
2793         (Misc): Add nocrash.
2794
2795 2008-05-10  Bruno Haible  <bruno@clisp.org>
2796
2797         * modules/unictype/gen-ctype: New file.
2798
2799 2008-05-10  Jim Meyering  <meyering@redhat.com>
2800
2801         Make chdir-safer.c more efficient on a system with no symlinks.
2802         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
2803         also if ELOOP is zero.  Suggested by Bruno Haible.
2804
2805         Make chdir-safer.c slightly safer.
2806         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
2807         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
2808
2809         Avoid compile failure on systems without ELOOP (like mingw).
2810         * lib/chdir-safer.c (ELOOP): Define if not already defined.
2811         Reported by Bruno Haible.
2812
2813 2008-05-10  Bruno Haible  <bruno@clisp.org>
2814
2815         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
2816         (is_utf8_encoding): Use a case-insensitive comparison.
2817         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
2818         streq.
2819
2820 2008-05-10  Bruno Haible  <bruno@clisp.org>
2821
2822         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
2823         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
2824         * lib/unilbrk/ulc-common.h (iconv_string_length,
2825         iconv_string_keeping_offsets): Remove declarations.
2826         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
2827         Don't include <iconv.h>, streq.h, xsize.h.
2828         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
2829         conversion.
2830         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
2831         <iconv.h>, streq.h, xsize.h.
2832         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
2833         conversion.
2834         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
2835         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
2836         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
2837         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
2838
2839 2008-05-10  Bruno Haible  <bruno@clisp.org>
2840
2841         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
2842         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
2843
2844         * modules/unilbrk/u32-width-linebreaks-tests: New file.
2845         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
2846
2847         * modules/unilbrk/u16-width-linebreaks-tests: New file.
2848         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
2849
2850         * modules/unilbrk/u8-width-linebreaks-tests: New file.
2851         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
2852
2853         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
2854         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
2855
2856         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
2857         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
2858
2859         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
2860         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
2861
2862         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
2863         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
2864
2865 2008-05-10  Bruno Haible  <bruno@clisp.org>
2866
2867         Split up 'linebreak' module.
2868         * lib/unilbrk.h: New file, based on lib/linebreak.h.
2869         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
2870         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
2871         modifications.
2872         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
2873         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
2874         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
2875         lib/linebreak.c.
2876         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
2877         lib/linebreak.c.
2878         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
2879         lib/linebreak.c.
2880         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
2881         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
2882         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
2883         lib/linebreak.c.
2884         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
2885         lib/linebreak.c.
2886         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
2887         lib/linebreak.c.
2888         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
2889         lib/linebreak.c.
2890         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
2891         lib/linebreak.c.
2892         * modules/unilbrk/base: New file.
2893         * modules/unilbrk/tables: New file.
2894         * modules/unilbrk/u8-possible-linebreaks: New file.
2895         * modules/unilbrk/u16-possible-linebreaks: New file.
2896         * modules/unilbrk/u32-possible-linebreaks: New file.
2897         * modules/unilbrk/ulc-common: New file.
2898         * modules/unilbrk/ulc-possible-linebreaks: New file.
2899         * modules/unilbrk/u8-width-linebreaks: New file.
2900         * modules/unilbrk/u16-width-linebreaks: New file.
2901         * modules/unilbrk/u32-width-linebreaks: New file.
2902         * modules/unilbrk/ulc-width-linebreaks: New file.
2903         * lib/linebreak.h: Remove file.
2904         * lib/linebreak.c: Remove file.
2905         * m4/linebreak.m4: Remove file.
2906         * modules/linebreak: Remove file.
2907         * NEWS: Mention the changes.
2908
2909 2008-05-09  Eric Blake  <ebb9@byu.net>
2910
2911         Add xmemdup0.
2912         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
2913         implementation.
2914         * lib/xmalloc.c (xmemdup0): New C implementation.
2915
2916 2008-05-08  Bruno Haible  <bruno@clisp.org>
2917
2918         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
2919
2920 2008-05-07  Eric Blake  <ebb9@byu.net>
2921
2922         Support cross-compilation of <wctype.h>.
2923         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
2924         AC_CACHE_CHECK.
2925
2926 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
2927
2928         * build-aux/vc-list-files: Add support for bzr.
2929
2930 2008-05-03  Jim Meyering  <meyering@redhat.com>
2931
2932         avoid failed assertion with tight malloc
2933         * tests/test-getndelim2.c: Correct an off-by-one assertion.
2934
2935 2008-05-03  Simon Josefsson  <simon@josefsson.org>
2936
2937         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
2938         are needed from arpa/inet.h.
2939         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
2940         Reported by Bruno Haible.
2941
2942 2008-05-02  Jim Meyering  <meyering@redhat.com>
2943
2944         avoid compilation error on FreeBSD 6
2945         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
2946
2947 2008-05-01  Jim Meyering  <meyering@redhat.com>
2948
2949         useless-if-before-free: correct --help's exit status description
2950         * build-aux/useless-if-before-free (usage): Like grep, exit 0
2951         for one or more matches, etc.  Reported by Bruno Haible.
2952
2953         vc-list-files: make the stand-alone gnulib test work
2954         * modules/vc-list-files-tests (configure.ac):
2955         Define and AC_SUBST abs_aux_dir.
2956         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
2957         $(abs_top_srcdir) to each script and having each of them
2958         duplicate the work of setting PATH, set PATH here, using
2959         the new variable, abs_aux_dir instead.
2960         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
2961         * tests/test-vc-list-files-git.sh: Likewise.
2962         Reported by Bruno Haible.
2963
2964 2008-05-01  Bruno Haible  <bruno@clisp.org>
2965
2966         * lib/getndelim2.c (getndelim2): Fix newsize computation during
2967         reallocation. Rename 'done' to 'found_delimiter'.
2968
2969 2008-05-01  Jim Meyering  <meyering@redhat.com>
2970
2971         vc-list-files: accommodate /bin/sh like the one from Solaris 10
2972         * build-aux/vc-list-files: Use `...`, not $(...).
2973
2974 2008-04-30  Jim Meyering  <meyering@redhat.com>
2975
2976         add tests for vc-list-files
2977         * modules/vc-list-files-tests: New module.
2978         * tests/test-vc-list-files-cvs.sh: New file.
2979         * tests/test-vc-list-files-git.sh: New file.
2980
2981         avoid a warning from gcc
2982         * lib/getndelim2.c (IF_LINT): Define.
2983         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
2984
2985         vc-list-files: work properly with build-aux/cvsu, too
2986         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
2987         to all cvs-based clauses.
2988
2989         vc-list-files: work properly in the CVS+awk case, too
2990         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
2991
2992         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
2993         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
2994         take more than one file argument, so .  Add quotes, just in case $dir
2995         ever contains a shell meta-character.  Prompted by Soren Hansen in
2996         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
2997
2998 2008-04-29  Eric Blake  <ebb9@byu.net>
2999
3000         Optimize getndelim2 to use block operations when possible.
3001         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
3002         freadseek, and memchr2.
3003         * lib/getndelim2.c (getndelim2): Use them for block reads.
3004
3005 2008-04-29  Bruno Haible  <bruno@clisp.org>
3006
3007         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
3008         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3009         * modules/inet_ntop (Depends-on): Add extensions.
3010         * modules/inet_pton (Depends-on): Likewise.
3011         Reported by Simon Josefsson.
3012
3013 2008-04-29  Jim Meyering  <meyering@redhat.com>
3014
3015         When the is more than one match in a block, match all of them.
3016         * build-aux/useless-if-before-free: Iterate through each block
3017         until there are no more matches.
3018
3019         Fix broken useless-if-before-free script.
3020         * build-aux/useless-if-before-free: Fix typo: missing "?" after
3021         the expression to match cast of argument to free-like function.
3022
3023 2008-04-29  Eric Blake  <ebb9@byu.net>
3024
3025         Use new header.
3026         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
3027
3028 2008-04-29  Jim Meyering  <meyering@redhat.com>
3029
3030         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
3031         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
3032         by gnulib to exist and to declare e.g., inet_ntop.
3033         Don't include "inet_ntop.h", now removed.
3034
3035         * m4/arpa_inet_h.m4: Remove trailing blanks.
3036
3037 2008-04-29  Eric Blake  <ebb9@byu.net>
3038
3039         Silence valgrind on safe reads beyond potential array bounds.
3040         * lib/rawmemchr.valgrind: New file.
3041         * lib/strchrnul.valgrind: Likewise.
3042         * modules/rawmemchr (Files): Distribute new file.
3043         * modules/strchrnul (Files): Likewise.
3044         Suggested by Bruno Haible.
3045
3046 2008-04-29  Bruno Haible  <bruno@clisp.org>
3047
3048         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
3049         (inet_ntop, inet_pton): Change portability warning's wording.
3050         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
3051         Invoke gl_CHECK_NEXT_HEADERS.
3052         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
3053         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
3054         set ARPA_INET_H.
3055         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3056         * modules/arpa_inet (Description): No longer only for systems that
3057         lack it.
3058         (Depends-on): Add include_next.
3059         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
3060         HAVE_ARPA_INET_H.
3061
3062 2008-04-29  Jim Meyering  <meyering@redhat.com>
3063
3064         * modules/mkdir (License): Re-license as LGPLv2+.
3065
3066 2008-04-29  Bruno Haible  <bruno@clisp.org>
3067
3068         * modules/rawmemchr (Maintainer): Set to Eric.
3069         * modules/strchrnul (Maintainer): Likewise.
3070
3071 2008-04-29  Simon Josefsson  <simon@josefsson.org>
3072
3073         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
3074         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
3075
3076         * modules/arpa_inet (arpa/inet.h): Use them.
3077
3078 2008-04-28  Eric Blake  <ebb9@byu.net>
3079
3080         Test getndelim2.
3081         * modules/getndelim2-tests: New file.
3082         * tests/test-getndelim2.c: Likewise.
3083         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
3084         stream.
3085         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
3086
3087         * MODULES.html.sh: Document new module.
3088
3089 2008-04-20  Bruno Haible  <bruno@clisp.org>
3090
3091         * lib/c-stack.c (die): Use raise.
3092         * modules/c-stack (Depends-on): Add raise.
3093
3094 2008-04-28  Bruno Haible  <bruno@clisp.org>
3095
3096         Expect rpmatch to be declared.
3097         * lib/yesno.c (rpmatch): Remove declaration.
3098
3099         Declare rpmatch.
3100         * lib/stdlib.in.h (rpmatch): New declaration.
3101         * lib/rpmatch.c: Include <stdlib.h> first.
3102         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
3103         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
3104         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
3105         HAVE_RPMATCH.
3106         * modules/rpmatch (Depends-on): Add stdlib, extensions.
3107         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3108         (Include): Set to <stdlib.h>.
3109         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
3110         HAVE_RPMATCH.
3111         * NEWS: Document the change.
3112
3113 2008-04-28  Bruno Haible  <bruno@clisp.org>
3114
3115         Change rpmatch to use nl_langinfo when appropriate.
3116         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
3117         (N_): New macro.
3118         (localized_pattern): New function/macro.
3119         (try): Remove match, nomatch arguments. Copy the pattern into safe
3120         memory before caching it.
3121         (rpmatch): Use localized_pattern. Add translator comments.
3122         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
3123         Suggested by Eric Blake.
3124         * modules/rpmatch (Depends-on): Add stdbool.
3125
3126 2008-04-28  Eric Blake  <ebb9@byu.net>
3127
3128         Add rawmemchr module, matching glibc.
3129         * modules/string (Makefile.am): New indicator.
3130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
3131         * lib/string.in.h (rawmemchr): Declare when appropriate.
3132         * modules/rawmemchr: New file.
3133         * m4/rawmemchr.m4: Likewise.
3134         * lib/rawmemchr.c: Likewise.
3135         * modules/rawmemchr-tests: Likewise.
3136         * tests/test-rawmemchr.c: Likewise.
3137         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
3138         module.
3139         * modules/strchrnul (Depends-on): Add rawmemchr.
3140         * lib/strchrnul.c (strchrnul): Optimize a corner case.
3141
3142         Whitespace cleanup.
3143         * tests/test-strchrnul.c: Reindent.
3144         * lib/strchrnul.c: Likewise.
3145
3146         Optimize and test strchrnul.
3147         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
3148         * modules/strchrnul-tests: New file.
3149         * tests/test-strchrnul.c: Likewise.
3150
3151         Remove intprops dependency.
3152         * modules/memchr (Depends-on): Remove intprops.
3153         * modules/memrchr (Depends-on): Likewise.
3154         * modules/memchr2 (Depends-on): Likewise.
3155         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
3156         * lib/memrchr.c (__memrchr): Likewise.
3157         * lib/memrchr2.c (memchr2): Likewise.
3158         Reported by Simon Josefsson.
3159
3160 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3161
3162         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
3163         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3164
3165 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3166
3167         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
3168
3169         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
3170
3171         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
3172
3173         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
3174         declarations.
3175         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
3176
3177         * m4/inet_pton.m4: Don't check for header files.
3178
3179         * m4/inet_ntop.m4: Don't check for header files.
3180
3181 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3182
3183         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
3184         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
3185         trigger for cygwin).
3186         Reported by Bruno Haible  <bruno@clisp.org>.
3187
3188 2008-04-28  Bruno Haible  <bruno@clisp.org>
3189
3190         * doc/posix-functions/strdup.texi: Mention mingw problem.
3191
3192 2008-04-27  Bruno Haible  <bruno@clisp.org>
3193
3194         * modules/stat-time-tests (Depends-on): Add sleep.
3195         * tests/test-stat-time.c (force_unlink): New function.
3196         (cleanup): Use it.
3197         (test_mtime): Remove the ctime related tests.
3198         (test_ctime): New function, containing the ctime related tests.
3199         (main): Call test_ctime, except on native Windows platforms.
3200
3201 2008-04-27  Bruno Haible  <bruno@clisp.org>
3202
3203         * lib/rpmatch.c (rpmatch): Add some comments.
3204         Reported by James Youngman <jay@gnu.org>.
3205
3206 2008-04-27  Bruno Haible  <bruno@clisp.org>
3207
3208         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
3209         quiet NaNs.
3210
3211 2008-04-27  Bruno Haible  <bruno@clisp.org>
3212
3213         Make test-yesno.sh work on mingw.
3214         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
3215         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
3216         (main): Set stdin to binary mode.
3217         * modules/yesno-tests (Depends-on): Add binary-io.
3218
3219 2008-04-27  Bruno Haible  <bruno@clisp.org>
3220
3221         Fix 'isfinite' on x86, x86_64, ia64 platforms.
3222         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
3223         argument that lie outside the IEEE 854 domain.
3224         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
3225         (gl_ISFINITE): Use it.
3226         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
3227
3228 2008-04-27  Bruno Haible  <bruno@clisp.org>
3229
3230         Allow local renaming in config.h.
3231         * lib/memrchr.c (memrchr): Don't undefine outside libc.
3232
3233 2008-04-27  Bruno Haible  <bruno@clisp.org>
3234
3235         * lib/memchr.c (__memchr): Change type of 'i'.
3236         * lib/memchr2.c (memchr2): Likewise.
3237
3238 2008-04-26  Eric Blake  <ebb9@byu.net>
3239         and Bruno Haible  <bruno@clisp.org>
3240
3241         Optimize and test memrchr.
3242         * modules/memrchr (Depends-on): Add intprops.
3243         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
3244         * modules/memrchr-tests: New file.
3245         * tests/test-memrchr.c: New file.
3246
3247 2008-04-26  Bruno Haible  <bruno@clisp.org>
3248
3249         Add tentative support for DragonFly BSD.
3250         * lib/stdio-impl.h: Add macros for DragonFly BSD.
3251         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
3252         fp.
3253         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3254         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
3255         * lib/fpurge.c (fpurge): Likewise.
3256         * lib/freadable.c (freaadable): Likewise.
3257         * lib/freadahead.c (freadahead): Likewise.
3258         * lib/freading.c (freading): Likewise.
3259         * lib/freadptr.c (freadptr): Likewise.
3260         * lib/freadseek.c (freadptrinc): Likewise.
3261         * lib/fseeko.c (fseeko): Likewise.
3262         * lib/fseterr.c (fseterr): Likewise.
3263         * lib/fwritable.c (fwritable): Likewise.
3264         * lib/fwriting.c (fwriting): Likewise.
3265
3266 2008-04-26  Bruno Haible  <bruno@clisp.org>
3267
3268         * lib/stdio-impl.h: New file.
3269         * lib/fbufmode.c: Include stdio-impl.h.
3270         (fbufmode): Use fp_, remove redundant #defines.
3271         * lib/fflush.c: Include stdio-impl.h.
3272         (clear_ungetc_buffer): Remove redundant #defines.
3273         * lib/fpurge.c: Include stdio-impl.h.
3274         (fpurge): Remove redundant #defines.
3275         * lib/freadable.c: Include stdio-impl.h.
3276         (freadable): Remove redundant #defines.
3277         * lib/freadahead.c: Include stdio-impl.h.
3278         (freadahead): Remove redundant #defines.
3279         * lib/freading.c: Include stdio-impl.h.
3280         (freading): Remove redundant #defines.
3281         * lib/freadptr.c: Include stdio-impl.h.
3282         (freadptr): Remove redundant #defines.
3283         * lib/freadseek.c: Include stdio-impl.h.
3284         (freadptrinc): Remove redundant #defines.
3285         * lib/fseeko.c: Include stdio-impl.h.
3286         (rpl_fseeko): Remove redundant #defines.
3287         * lib/fseterr.c: Include stdio-impl.h.
3288         (fseterr): Remove redundant #defines.
3289         * lib/fwritable.c: Include stdio-impl.h.
3290         (fwritable: Remove redundant #defines.
3291         * lib/fwriting.c: Include stdio-impl.h.
3292         (fwriting): Remove redundant #defines.
3293         * modules/fbufmode (Files): Add lib/stdio-impl.h.
3294         * modules/fflush (Files): Likewise.
3295         * modules/fpurge (Files): Likewise.
3296         * modules/freadable (Files): Likewise.
3297         * modules/freadahead (Files): Likewise.
3298         * modules/freading (Files): Likewise.
3299         * modules/freadptr (Files): Likewise.
3300         * modules/freadseek (Files): Likewise.
3301         * modules/fseeko (Files): Likewise.
3302         * modules/fseterr (Files): Likewise.
3303         * modules/fwritable (Files): Likewise.
3304         * modules/fwriting (Files): Likewise.
3305
3306 2008-04-26  Bruno Haible  <bruno@clisp.org>
3307
3308         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3309         restore_seek_optimization, update_fpos_cache): New functions, extracted
3310         from rpl_fflush.
3311         (rpl_fflush): Use them.
3312         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3313         (gl_REPLACE_FFLUSH): Use it.
3314
3315 2008-04-26  Bruno Haible  <bruno@clisp.org>
3316
3317         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3318         on Solaris.
3319         * tests/test-xstrtoimax.sh: Likewise.
3320         * tests/test-xstrtoumax.sh: Likewise.
3321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3322
3323 2008-04-26  Bruno Haible  <bruno@clisp.org>
3324
3325         * modules/memchr-tests: New file.
3326         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3327
3328 2008-04-26  Eric Blake  <ebb9@byu.net>
3329             Bruno Haible  <bruno@clisp.org>
3330
3331         * lib/memchr.c: Include intprops.h.
3332         (__memchr): Optimize parallel detection of matching bytes. Rename local
3333         variables. Add explanatory comments.
3334
3335 2008-04-26  Bruno Haible  <bruno@clisp.org>
3336
3337         Fix module 'memchr', broken since 2000-10-28.
3338         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3339
3340 2008-04-26  Bruno Haible  <bruno@clisp.org>
3341
3342         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3343         comments.
3344
3345 2008-04-25  Eric Blake  <ebb9@byu.net>
3346
3347         Use native fstatat on cygwin 1.7.0.
3348         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3349         first.
3350
3351 2008-04-23  Eric Blake  <ebb9@byu.net>
3352
3353         Improve memchr2 performance.
3354         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3355         NUL bytes.
3356         * modules/memchr2 (Depends-on): Use intprops.h.
3357
3358 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3359
3360         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3361         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3362         <blp@cs.stanford.edu>.
3363
3364 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3365
3366         * lib/arpa_inet.in.h: New file.
3367
3368         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3369         (Makefile.am): Sed in substitute header file.
3370
3371         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3372         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3373
3374         * modules/inet_ntop (configure.ac): Use
3375         gl_ARPA_INET_MODULE_INDICATOR.
3376
3377         * modules/inet_pton (configure.ac): Use
3378         gl_ARPA_INET_MODULE_INDICATOR.
3379
3380 2008-04-22  Jim Meyering  <meyering@redhat.com>
3381
3382         * modules/verify (License): Re-license as LGPLv2+.
3383
3384 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3385
3386         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3387         parameter to void* as per POSIX standard (MinGW uses char*).
3388
3389 2008-04-21  Bruno Haible  <bruno@clisp.org>
3390
3391         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3392         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3393         Define to replacements if REPLACE_ISWCNTRL is 1.
3394         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3395         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3396         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3397         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3398         what it fixes.
3399         * doc/posix-functions/iswalpha.texi: Likewise.
3400         * doc/posix-functions/iswblank.texi: Likewise.
3401         * doc/posix-functions/iswcntrl.texi: Likewise.
3402         * doc/posix-functions/iswdigit.texi: Likewise.
3403         * doc/posix-functions/iswgraph.texi: Likewise.
3404         * doc/posix-functions/iswlower.texi: Likewise.
3405         * doc/posix-functions/iswprint.texi: Likewise.
3406         * doc/posix-functions/iswpunct.texi: Likewise.
3407         * doc/posix-functions/iswspace.texi: Likewise.
3408         * doc/posix-functions/iswupper.texi: Likewise.
3409         * doc/posix-functions/iswxdigit.texi: Likewise.
3410         Reported by Alain Guibert.
3411
3412 2008-04-21  Bruno Haible  <bruno@clisp.org>
3413
3414         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
3415         Patch by Alain Guibert.
3416
3417 2008-04-21  Bruno Haible  <bruno@clisp.org>
3418
3419         Fix test failures on mingw.
3420         * tests/test-xstrtol.c (print_no_progname): New function.
3421         (main): Install it in error_print_progname hook.
3422         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
3423         * tests/test-xstrtoimax.sh: Likewise.
3424         * tests/test-xstrtoumax.sh: Likewise.
3425
3426 2008-04-21  Bruno Haible  <bruno@clisp.org>
3427
3428         Fix test failure on mingw.
3429         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3430
3431 2008-04-21  Bruno Haible  <bruno@clisp.org>
3432
3433         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3434         Actually assign a value.
3435
3436 2008-04-20  Bruno Haible  <bruno@clisp.org>
3437
3438         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3439         take 2.
3440         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3441         'canonicalize-lgpl' module is also used.
3442         * lib/canonicalize-lgpl.c: Undo last change.
3443         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3444
3445 2008-04-20  Bruno Haible  <bruno@clisp.org>
3446
3447         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
3448         config.h. Provide _mkdir based fallback for mingw.
3449         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
3450         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
3451         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
3452         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
3453         rather than defining mkdir in config.h.
3454         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
3455         (gl_SYS_STAT_H_DEFAULTS): New macro.
3456         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
3457         HAVE_IO_H any more.
3458         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
3459         HAVE_DECL_MKDIR and HAVE_IO_H.
3460
3461 2008-04-20  Bruno Haible  <bruno@clisp.org>
3462
3463         * lib/isapipe.c: Port to native Windows platforms.
3464
3465 2008-04-20  Bruno Haible  <bruno@clisp.org>
3466
3467         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
3468
3469 2008-04-21  Eric Blake  <ebb9@byu.net>
3470
3471         Work around preprocessors that don't handle UINTMAX_MAX.
3472         * lib/memchr2.c (memchr2): Avoid embedded #if.
3473         Reported by Alain Guibert, fix suggested by Bruno Haible.
3474
3475 2008-04-21  Simon Josefsson  <simon@josefsson.org>
3476
3477         * doc/posix-functions/strftime.texi (strftime): Explain better
3478         Windows incompatibility.  Suggested by Micah Cowan
3479         <micah@cowan.name>.
3480
3481 2008-04-20  Bruno Haible  <bruno@clisp.org>
3482
3483         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
3484         unistr/u8-mblen.
3485
3486 2008-04-20  Bruno Haible  <bruno@clisp.org>
3487
3488         Fix test failure on platforms with non-GNU iconv.
3489         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
3490         (U_TO_U8): Use it, rather than u16_to_u8.
3491         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
3492         units at the end of the input string.
3493         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
3494
3495 2008-04-20  Bruno Haible  <bruno@clisp.org>
3496
3497         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
3498         when the resulting length is 0.
3499         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
3500
3501 2008-04-20  Bruno Haible  <bruno@clisp.org>
3502
3503         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
3504         works.
3505         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
3506
3507 2008-04-20  Bruno Haible  <bruno@clisp.org>
3508
3509         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
3510         * modules/tsearch-tests (configure.ac): Test for initstate function.
3511
3512 2008-04-20  Bruno Haible  <bruno@clisp.org>
3513
3514         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
3515         for nlink_t if missing.
3516         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
3517
3518 2008-04-19  Bruno Haible  <bruno@clisp.org>
3519
3520         Work around snprintf bug on Linux libc5.
3521         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
3522         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3523         gl_SNPRINTF_SIZE1.
3524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3525         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
3526         that test failed.
3527         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3528         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
3529         * modules/snprintf (Files): Add m4/printf.m4.
3530         * modules/vsnprintf (Files): Likewise.
3531         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
3532         * doc/posix-functions/vsnprintf.texi: Likewise.
3533
3534 2008-04-19  Bruno Haible  <bruno@clisp.org>
3535
3536         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
3537         from 0.0058 to less than 10^-7.
3538
3539 2008-04-19  Bruno Haible  <bruno@clisp.org>
3540
3541         Fix rounding when a precision is given.
3542         * lib/vasnprintf.c (is_borderline): New function.
3543         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
3544         9...9x.
3545         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
3546         %e, %g.
3547         * tests/test-vasprintf-posix.c (test_function): Likewise.
3548         * tests/test-snprintf-posix.h (test_function): Likewise.
3549         * tests/test-sprintf-posix.h (test_function): Likewise.
3550         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
3551         * tests/test-printf-posix.h (test_function): Likewise.
3552         * tests/test-printf-posix.output: Update.
3553         Reported by John Darrington <john@darrington.wattle.id.au> via
3554         Ben Pfaff <blp@cs.stanford.edu>.
3555
3556 2008-04-18  Simon Josefsson  <simon@josefsson.org>
3557
3558         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
3559         Suggested by Bruno Haible <bruno@clisp.org>.
3560
3561 2008-04-17  Bruno Haible  <bruno@clisp.org>
3562
3563         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
3564         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
3565         implementation.
3566         Patch by Bruce Merry <bmerry@gmail.com>.
3567
3568 2008-04-17  Simon Josefsson  <simon@josefsson.org>
3569
3570         * doc/posix-functions/strftime.texi (strftime): Mention that %e
3571         doesn't work under Windows.
3572
3573 2008-04-16  Bruno Haible  <bruno@clisp.org>
3574
3575         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
3576         New macros.
3577         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
3578         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
3579         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
3580         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
3581         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
3582         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
3583         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
3584         macros.
3585         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
3586         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
3587         Northern Sotho, Uighur.
3588
3589 2008-04-16  Bruno Haible  <bruno@clisp.org>
3590
3591         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
3592         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
3593         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
3594         Reported by Daniel Bergström <daniel@octocode.com>.
3595
3596 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
3597             Bruno Haible  <bruno@clisp.org>
3598
3599         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
3600         function.
3601         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
3602         New functions, mostly extracted from gl_locale_name_default.
3603         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
3604
3605 2008-04-16  Eric Blake  <ebb9@byu.net>
3606
3607         Adjust strtod detection to catch glibc 2.7 bug.
3608         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
3609         Reported by John Gatewood Ham.
3610
3611 2008-04-16  Bruno Haible  <bruno@clisp.org>
3612
3613         Add tentative support for Linux libc5.
3614         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
3615         * lib/fpurge.c (fpurge): Likewise.
3616         * lib/freadable.c (freadable): Likewise.
3617         * lib/freadahead.c (freadahead): Likewise.
3618         * lib/freading.c (freading): Likewise.
3619         * lib/freadptr.c (freadptr): Likewise.
3620         * lib/freadseek.c (freadptrinc): Likewise.
3621         * lib/fseeko.c (rpl_fseeko): Likewise.
3622         * lib/fseterr.c (fseterr): Likewise.
3623         * lib/fwritable.c (fwritable): Likewise.
3624         * lib/fwriting.c (fwriting): Likewise.
3625         Reported by Alain Guibert <alguibert+bts@free.fr>.
3626
3627 2008-04-15  Bruno Haible  <bruno@clisp.org>
3628
3629         * modules/mathl (configure.ac): Define module indicator.
3630
3631 2008-04-15  Bruno Haible  <bruno@clisp.org>
3632
3633         * lib/logl.c (logl): Remove unused variables.
3634
3635 2008-04-15  Bruno Haible  <bruno@clisp.org>
3636
3637         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
3638         fails.
3639
3640 2008-04-15  Bruno Haible  <bruno@clisp.org>
3641
3642         * lib/trim.c (trim2): Fix argument of isspace() macro.
3643
3644 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
3645
3646         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
3647         to 0.
3648         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
3649
3650 2008-04-14  Bruno Haible  <bruno@clisp.org>
3651
3652         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
3653         AC_LANG_PROGRAM argument.
3654         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3655         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
3656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3657         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3658         * m4/math_h.m4 (gl_MATH_H): Likewise.
3659         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3660         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3661         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3662         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3663         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3664         * m4/regex.m4 (gl_REGEX): Likewise.
3665         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3666         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
3667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3668         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
3669         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3670         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3673
3674 2008-04-14  Jim Meyering  <meyering@redhat.com>
3675
3676         test-strtod: fix typos: s/abs/fabs/
3677         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
3678
3679 2008-04-13  Bruno Haible  <bruno@clisp.org>
3680
3681         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
3682         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
3683         module is also used and while not building the reloc-wrapper.
3684
3685 2008-04-13  Bruno Haible  <bruno@clisp.org>
3686
3687         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
3688
3689 2008-04-13  Bruno Haible  <bruno@clisp.org>
3690
3691         Fix AIX compilation failure introduced on 2008-04-02.
3692         * tests/test-frexp.c (exp): Undefine before redefining.
3693         * tests/test-frexpl.c (exp): Likewise.
3694
3695 2008-04-13  Bruno Haible  <bruno@clisp.org>
3696
3697         Work around a HP-UX stdio bug.
3698         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
3699         * tests/test-ftello.c (main): Likewise.
3700         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
3701         * doc/posix-functions/ftello.texi: Likewise.
3702
3703 2008-04-13  Bruno Haible  <bruno@clisp.org>
3704
3705         Make test-signbit pass on HP-UX/hppa.
3706         * tests/test-signbit.c (minus_zerol): New variable.
3707         (test_signbitl): Use it.
3708
3709 2008-04-13  Bruno Haible  <bruno@clisp.org>
3710
3711         Make truncl work on OSF/1 4.0.
3712         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
3713         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3714         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
3716         HAVE_DECL_TRUNCL.
3717         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
3718         HAVE_DECL_TRUNCL.
3719         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3720
3721 2008-04-13  Bruno Haible  <bruno@clisp.org>
3722
3723         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3724
3725 2008-04-13  Bruno Haible  <bruno@clisp.org>
3726
3727         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3728         expression, so as to avoid HP-UX 11 cc compiler bug.
3729
3730 2008-04-13  Bruno Haible  <bruno@clisp.org>
3731
3732         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
3733
3734 2008-04-13  Bruno Haible  <bruno@clisp.org>
3735
3736         * lib/git-merge-changelog.c: Remove empty declaration outside of
3737         functions.
3738
3739 2008-04-13  Bruno Haible  <bruno@clisp.org>
3740
3741         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
3742
3743 2008-04-13  Bruno Haible  <bruno@clisp.org>
3744
3745         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
3746         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
3747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
3748         also if it exists but lacks definitions of the SHUT_* macros.
3749         * modules/sys_socket (Description): Update.
3750         Reported by Elbert Pol <e.pol@chello.nl>.
3751
3752 2008-04-13  Bruno Haible  <bruno@clisp.org>
3753
3754         * lib/localcharset.c (OS2): Don't redefine if already defined.
3755         Reported by Elbert Pol <e.pol@chello.nl>.
3756
3757 2008-04-13  Bruno Haible  <bruno@clisp.org>
3758
3759         * lib/binary-io.h [__EMX__]: Include <io.h>.
3760         Reported by Elbert Pol <e.pol@chello.nl>.
3761
3762 2008-04-12  Bruno Haible  <bruno@clisp.org>
3763
3764         * lib/fpucw.h: Enable the definitions also for x86_64.
3765         Needed for NetBSD/x86_64.
3766         Reported by Thomas Klausner <tk@giga.or.at>.
3767
3768 2008-04-12  Bruno Haible  <bruno@clisp.org>
3769
3770         * tests/test-strtod.c: Include isnand.h.
3771         (main): Use isnand instead of isnan.
3772         Reported by Jim Meyering.
3773
3774 2008-04-12  Bruno Haible  <bruno@clisp.org>
3775
3776         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
3777         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3778
3779 2008-04-12  Jim Meyering  <meyering@redhat.com>
3780
3781         * m4/math_h.m4 (gl_MATH_H): Fix typos.
3782
3783 2008-04-12  Bruno Haible  <bruno@clisp.org>
3784
3785         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
3786         Reported by Elbert Pol <e.pol@chello.nl>.
3787
3788 2008-04-12  Eric Blake  <ebb9@byu.net>
3789
3790         Work around Solaris 10 math.h bug.
3791         * m4/math_h.m4 (gl_MATH_H): Check for bug.
3792         (gl_MATH_H_DEFAULTS): Set up default.
3793         * modules/math (Makefile.am): Replace new indicators.
3794         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
3795         * tests/test-math.c (main): Test this.
3796         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
3797         * doc/posix-headers/math.texi (math.h): Mention bug.
3798         Reported by Nelson H. F. Beebe and Jim Meyering.
3799
3800 2008-04-11  Bruno Haible  <bruno@clisp.org>
3801
3802         Adapt to future versions of Apple GCC.
3803         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
3804         Reported by Peter O'Gorman <peter@pogma.com>.
3805
3806 2008-04-11  Bruno Haible  <bruno@clisp.org>
3807
3808         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
3809
3810 2008-04-11  Bruno Haible  <bruno@clisp.org>
3811
3812         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
3813
3814         * modules/getaddrinfo-tests (Makefile.am): Define
3815         test_getaddrinfo_LDADD.
3816
3817 2008-04-11  Bruno Haible  <bruno@clisp.org>
3818
3819         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
3820         (init): Fix syntax error.
3821         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
3822         is declared.
3823
3824 2008-04-11  Bruno Haible  <bruno@clisp.org>
3825
3826         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
3827         * modules/glob (Depends-on): Add stdbool.
3828
3829 2008-04-11  Bruno Haible  <bruno@clisp.org>
3830
3831         * lib/trim.c: Include <string.h>.
3832
3833 2008-04-11  Eric Blake  <ebb9@byu.net>
3834
3835         Avoid compile failure on OS/2.
3836         * lib/regex_internal.h (internal_function): Disable optimization
3837         on OS/2 (__EMX__), where it caused compiler error.
3838         Reported by Elbert Pol.
3839
3840 2008-04-11  Bruno Haible  <bruno@clisp.org>
3841
3842         Flush the standard error stream before aborting. Needed on mingw.
3843         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
3844         * tests/test-array_list.c (ASSERT): Likewise.
3845         * tests/test-array_oset.c (ASSERT): Likewise.
3846         * tests/test-avltree_list.c (ASSERT): Likewise.
3847         * tests/test-avltree_oset.c (ASSERT): Likewise.
3848         * tests/test-avltreehash_list.c (ASSERT): Likewise.
3849         * tests/test-binary-io.c (ASSERT): Likewise.
3850         * tests/test-byteswap.c (ASSERT): Likewise.
3851         * tests/test-c-ctype.c (ASSERT): Likewise.
3852         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
3853         * tests/test-c-strcasestr.c (ASSERT): Likewise.
3854         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
3855         * tests/test-c-strstr.c (ASSERT): Likewise.
3856         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
3857         * tests/test-canonicalize.c (ASSERT): Likewise.
3858         * tests/test-carray_list.c (ASSERT): Likewise.
3859         * tests/test-ceilf1.c (ASSERT): Likewise.
3860         * tests/test-ceilf2.c (ASSERT): Likewise.
3861         * tests/test-ceill.c (ASSERT): Likewise.
3862         * tests/test-count-one-bits.c (ASSERT): Likewise.
3863         * tests/test-fbufmode.c (ASSERT): Likewise.
3864         * tests/test-fflush2.c (ASSERT): Likewise.
3865         * tests/test-floorf1.c (ASSERT): Likewise.
3866         * tests/test-floorf2.c (ASSERT): Likewise.
3867         * tests/test-floorl.c (ASSERT): Likewise.
3868         * tests/test-fopen.c (ASSERT): Likewise.
3869         * tests/test-fpending.c (ASSERT): Likewise.
3870         * tests/test-fprintf-posix.c (ASSERT): Likewise.
3871         * tests/test-fpurge.c (ASSERT): Likewise.
3872         * tests/test-freadable.c (ASSERT): Likewise.
3873         * tests/test-freadahead.c (ASSERT): Likewise.
3874         * tests/test-freading.c (ASSERT): Likewise.
3875         * tests/test-freadptr.c (ASSERT): Likewise.
3876         * tests/test-freadptr2.c (ASSERT): Likewise.
3877         * tests/test-freadseek.c (ASSERT): Likewise.
3878         * tests/test-freopen.c (ASSERT): Likewise.
3879         * tests/test-frexp.c (ASSERT): Likewise.
3880         * tests/test-frexpl.c (ASSERT): Likewise.
3881         * tests/test-fseek.c (ASSERT): Likewise.
3882         * tests/test-fseeko.c (ASSERT): Likewise.
3883         * tests/test-fstrcmp.c (ASSERT): Likewise.
3884         * tests/test-ftell.c (ASSERT): Likewise.
3885         * tests/test-ftello.c (ASSERT): Likewise.
3886         * tests/test-func.c (ASSERT): Likewise.
3887         * tests/test-fwritable.c (ASSERT): Likewise.
3888         * tests/test-fwriting.c (ASSERT): Likewise.
3889         * tests/test-getdelim.c (ASSERT): Likewise.
3890         * tests/test-getline.c (ASSERT): Likewise.
3891         * tests/test-i-ring.c (ASSERT): Likewise.
3892         * tests/test-iconv-utf.c (ASSERT): Likewise.
3893         * tests/test-iconv.c (ASSERT): Likewise.
3894         * tests/test-isfinite.c (ASSERT): Likewise.
3895         * tests/test-isnand.c (ASSERT): Likewise.
3896         * tests/test-isnanf.c (ASSERT): Likewise.
3897         * tests/test-isnanl.h (ASSERT): Likewise.
3898         * tests/test-ldexpl.c (ASSERT): Likewise.
3899         * tests/test-linked_list.c (ASSERT): Likewise.
3900         * tests/test-linkedhash_list.c (ASSERT): Likewise.
3901         * tests/test-localename.c (ASSERT): Likewise.
3902         * tests/test-lseek.c (ASSERT): Likewise.
3903         * tests/test-mbscasecmp.c (ASSERT): Likewise.
3904         * tests/test-mbscasestr1.c (ASSERT): Likewise.
3905         * tests/test-mbscasestr2.c (ASSERT): Likewise.
3906         * tests/test-mbscasestr3.c (ASSERT): Likewise.
3907         * tests/test-mbscasestr4.c (ASSERT): Likewise.
3908         * tests/test-mbschr.c (ASSERT): Likewise.
3909         * tests/test-mbscspn.c (ASSERT): Likewise.
3910         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
3911         * tests/test-mbspbrk.c (ASSERT): Likewise.
3912         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
3913         * tests/test-mbsrchr.c (ASSERT): Likewise.
3914         * tests/test-mbsspn.c (ASSERT): Likewise.
3915         * tests/test-mbsstr1.c (ASSERT): Likewise.
3916         * tests/test-mbsstr2.c (ASSERT): Likewise.
3917         * tests/test-mbsstr3.c (ASSERT): Likewise.
3918         * tests/test-memchr2.c (ASSERT): Likewise.
3919         * tests/test-memmem.c (ASSERT): Likewise.
3920         * tests/test-open.c (ASSERT): Likewise.
3921         * tests/test-printf-frexp.c (ASSERT): Likewise.
3922         * tests/test-printf-frexpl.c (ASSERT): Likewise.
3923         * tests/test-printf-posix.c (ASSERT): Likewise.
3924         * tests/test-quotearg.c (ASSERT): Likewise.
3925         * tests/test-rbtree_list.c (ASSERT): Likewise.
3926         * tests/test-rbtree_oset.c (ASSERT): Likewise.
3927         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
3928         * tests/test-round1.c (ASSERT): Likewise.
3929         * tests/test-roundf1.c (ASSERT): Likewise.
3930         * tests/test-roundl.c (ASSERT): Likewise.
3931         * tests/test-signbit.c (ASSERT): Likewise.
3932         * tests/test-sleep.c (ASSERT): Likewise.
3933         * tests/test-snprintf-posix.c (ASSERT): Likewise.
3934         * tests/test-snprintf.c (ASSERT): Likewise.
3935         * tests/test-sprintf-posix.c (ASSERT): Likewise.
3936         * tests/test-stat-time.c (ASSERT): Likewise.
3937         * tests/test-strcasestr.c (ASSERT): Likewise.
3938         * tests/test-strerror.c (ASSERT): Likewise.
3939         * tests/test-striconv.c (ASSERT): Likewise.
3940         * tests/test-striconveh.c (ASSERT): Likewise.
3941         * tests/test-striconveha.c (ASSERT): Likewise.
3942         * tests/test-strsignal.c (ASSERT): Likewise.
3943         * tests/test-strstr.c (ASSERT): Likewise.
3944         * tests/test-strtod.c (ASSERT): Likewise.
3945         * tests/test-trunc1.c (ASSERT): Likewise.
3946         * tests/test-trunc2.c (ASSERT): Likewise.
3947         * tests/test-truncf1.c (ASSERT): Likewise.
3948         * tests/test-truncf2.c (ASSERT): Likewise.
3949         * tests/test-truncl.c (ASSERT): Likewise.
3950         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
3951         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
3952         * tests/test-vasnprintf.c (ASSERT): Likewise.
3953         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
3954         * tests/test-vasprintf.c (ASSERT): Likewise.
3955         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
3956         * tests/test-vprintf-posix.c (ASSERT): Likewise.
3957         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
3958         * tests/test-vsnprintf.c (ASSERT): Likewise.
3959         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
3960         * tests/test-wcwidth.c (ASSERT): Likewise.
3961         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
3962         * tests/test-xprintf-posix.c (ASSERT): Likewise.
3963         * tests/test-xvasprintf.c (ASSERT): Likewise.
3964         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
3965         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
3966         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
3967         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
3968         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
3969         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
3970         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
3971         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
3972         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
3973         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
3974         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
3975         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
3976         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
3977         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
3978         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
3979         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
3980         * tests/unictype/test-block_list.c (ASSERT): Likewise.
3981         * tests/unictype/test-block_of.c (ASSERT): Likewise.
3982         * tests/unictype/test-block_test.c (ASSERT): Likewise.
3983         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
3984         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
3985         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
3986         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
3987         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
3988         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
3989         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
3990         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
3991         * tests/unictype/test-combining.c (ASSERT): Likewise.
3992         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
3993         * tests/unictype/test-digit.c (ASSERT): Likewise.
3994         * tests/unictype/test-mirror.c (ASSERT): Likewise.
3995         * tests/unictype/test-numeric.c (ASSERT): Likewise.
3996         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
3997         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
3998         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
3999         * tests/unictype/test-scripts.c (ASSERT): Likewise.
4000         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
4001         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
4002         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
4003         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
4004         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
4005         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
4006         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
4007         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
4008         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
4009         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
4010         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
4011         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
4012         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
4013         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
4014         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
4015         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
4016         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
4017         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
4018         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
4019         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
4020         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
4021         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
4022         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
4023         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
4024         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
4025         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
4026         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
4027         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
4028         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
4029         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
4030         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
4031         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
4032         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
4033         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
4034         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
4035         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
4036         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
4037         Reported by Eric Blake.
4038
4039 2008-04-11  Bruno Haible  <bruno@clisp.org>
4040
4041         * lib/wchar.in.h: Tweak comment.
4042
4043 2008-04-11  Bruno Haible  <bruno@clisp.org>
4044
4045         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
4046         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
4047         gl_COMMON.
4048         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
4049
4050 2008-04-11  Bruno Haible  <bruno@clisp.org>
4051
4052         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
4053
4054 2008-04-11  Simon Josefsson  <simon@josefsson.org>
4055
4056         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
4057         of attempting to use non-existing /dev/*random.  Based on patch
4058         from Adam Strzelecki <ono@java.pl> in
4059         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
4060
4061 2008-04-08  Bruno Haible  <bruno@clisp.org>
4062
4063         Add tentative support for emx+gcc.
4064         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
4065         * lib/fpurge.c (fpurge): Likewise.
4066         * lib/freadable.c (freadable): Likewise.
4067         * lib/freadahead.c (freadahead): Likewise.
4068         * lib/freading.c (freading): Likewise.
4069         * lib/freadptr.c (freadptr): Likewise.
4070         * lib/freadseek.c (freadptrinc): Likewise.
4071         * lib/fseeko.c (rpl_fseeko): Likewise.
4072         * lib/fseterr.c (fseterr): Likewise.
4073         * lib/fwritable.c (fwritable): Likewise.
4074         * lib/fwriting.c (fwriting): Likewise.
4075         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
4076
4077 2008-04-09  Eric Blake  <ebb9@byu.net>
4078
4079         Avoid some autoconf warnings.
4080         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
4081         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
4082         * m4/afs.m4 (gl_AFS): Likewise.
4083         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
4084         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
4085         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4086         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
4087         (gl_INTEGER_TYPE_SUFFIX): Likewise.
4088         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
4089         (AC_CHECK_DECLS_ONCE): Likewise.
4090         Rename file...
4091         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
4092         gnulib-tool requires autoconf 2.59 or better.
4093         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
4094
4095 2008-04-08  Eric Blake  <ebb9@byu.net>
4096
4097         Use 'git describe --match' if present (added in git 1.5.5).
4098         * build-aux/git-version-gen: Limit result to tags that match 'v*'
4099         if possible.
4100
4101 2008-04-08  Bruno Haible  <bruno@clisp.org>
4102
4103         Add tentative support for OpenServer.
4104         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
4105         _ptr, _cnt.
4106         * lib/fpurge.c (fpurge): Likewise.
4107         * lib/freadable.c (freadable): Likewise.
4108         * lib/freadahead.c (freadahead): Likewise.
4109         * lib/freading.c (freading): Likewise.
4110         * lib/freadptr.c (freadptr): Likewise.
4111         * lib/freadseek.c (freadptrinc): Likewise.
4112         * lib/fseeko.c (rpl_fseeko): Likewise.
4113         * lib/fseterr.c (fseterr): Likewise.
4114         * lib/fwritable.c (fwritable): Likewise.
4115         * lib/fwriting.c (fwriting): Likewise.
4116         Reported by Roger Cornelius <rac@tenzing.org> and
4117         Brian K. White <brian@aljex.com>.
4118
4119 2008-04-06  Jim Meyering  <meyering@redhat.com>
4120
4121         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
4122
4123 2008-04-06  Bruno Haible  <bruno@clisp.org>
4124
4125         Avoid possible error with non-ASCII bytes in UTF-8 locales.
4126         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
4127         * tests/test-printf-posix.sh: Likewise.
4128         * tests/test-vfprintf-posix.sh: Likewise.
4129         * tests/test-vprintf-posix.sh: Likewise.
4130         * tests/test-xprintf-posix.sh: Likewise.
4131
4132 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4133
4134         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
4135         hide error from 'ls', needed on OS/2.
4136         Report by Elbert Pol <elbert.pol@gmail.com>.
4137
4138 2008-04-04  Eric Blake  <ebb9@byu.net>
4139
4140         Make test-fseeko.c failures meaningful.
4141         * tests/test-fseeko.c: Print line number on failure.
4142         * tests/test-fseek.c: Likewise.
4143         Reported by Nelson H. F. Beebe.
4144
4145         Improve strtod bug detection check.
4146         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
4147         required for Solaris 10.
4148         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
4149
4150 2008-04-04  Bruno Haible  <bruno@clisp.org>
4151
4152         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
4153         by m4/setenv.m4.
4154
4155 2008-04-03  Eric Blake  <ebb9@byu.net>
4156
4157         Ensure sane .version contents.
4158         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
4159         version string.
4160         * build-aux/git-version-gen: Improve documentation.
4161
4162         Make GNU make output nicer.
4163         * top/GNUmakefile [!_have-Makefile]: Add dependency on
4164         MAKECMDGOALS to enforce message for all command line targets.  Set
4165         srcdir for use in maint.mk.
4166
4167         Another maintainer tweak.
4168         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
4169         a target that regenerates version.
4170
4171 2008-04-03  Jim Meyering  <meyering@redhat.com>
4172
4173         vc-list-files: don't cause coreutils "make po-check" failure
4174         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
4175
4176 2008-04-03  Eric Blake  <ebb9@byu.net>
4177
4178         Allow VPATH usage of vc-list-files.
4179         * build-aux/vc-list-files (scriptversion): Add timestamp.
4180         (options): Add --help, --version, -C.
4181         (CVS): Support installed cvsu.
4182
4183 2008-04-02  Bruno Haible  <bruno@clisp.org>
4184
4185         Avoid some "statement with no effect" warnings from gcc.
4186         * tests/test-wctype.c (main): Explicitly ignore unused values.
4187         Reported by Jim Meyering.
4188
4189 2008-04-02  Jim Meyering  <meyering@redhat.com>
4190
4191         Avoid some warnings from "gcc -Wshadow".
4192         * tests/test-frexp.c (exp): Define to a different identifier.
4193         * tests/test-frexpl.c (exp): Likewise.
4194
4195 2008-04-03  Jim Meyering  <meyering@redhat.com>
4196
4197         bootstrap: remove dangling *.[ch] symlinks from lib
4198         * build-aux/bootstrap [dangling symlink removal]: Move find's
4199         -depth option to precede all others, to avoid a warning.
4200         Remove *.[ch] files too, and from "$source_base" (usually lib/).
4201
4202 2008-04-02  Bruno Haible  <bruno@clisp.org>
4203
4204         Avoid some warnings from "gcc -Wshadow".
4205         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
4206         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
4207         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
4208         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
4209         Reported by Jim Meyering.
4210
4211 2008-04-01  Bruno Haible  <bruno@clisp.org>
4212
4213         Fix test to work on IRIX 6.5 with cc.
4214         * tests/test-math.c (numeric_equal): New function.
4215         (main): Use it.
4216
4217 2008-04-01  Bruno Haible  <bruno@clisp.org>
4218
4219         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
4220
4221 2008-04-01  Bruno Haible  <bruno@clisp.org>
4222
4223         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
4224         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4225         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
4226         (Depends-on): Remove math.
4227
4228         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
4229         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4230         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
4231         (Depends-on): Remove math.
4232
4233         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
4234         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4235         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
4236         (Depends-on): Remove math.
4237         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
4238         (Depends-on): Remove math.
4239
4240         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
4241         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4242         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
4243         (Depends-on): Remove math.
4244         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
4245         (Depends-on): Remove math.
4246
4247         * tests/test-round1.c: Include nan.h.
4248         (main): Use NaNd instead of NAN.
4249         * modules/round-tests (Files): Add tests/nan.h.
4250
4251         * tests/test-trunc1.c: Include nan.h.
4252         (main): Use NaNd instead of NAN.
4253         * modules/trunc-tests (Files): Add tests/nan.h.
4254
4255         * tests/test-roundf1.c: Include nan.h.
4256         (main): Use NaNf instead of NAN.
4257         * modules/roundf-tests (Files): Add tests/nan.h.
4258
4259         * tests/test-truncf1.c: Include nan.h.
4260         (main): Use NaNf instead of NAN.
4261         * modules/truncf-tests (Files): Add tests/nan.h.
4262
4263         * tests/test-ceilf1.c: Include nan.h.
4264         (main): Use NaNf instead of NAN.
4265         * modules/ceilf-tests (Files): Add tests/nan.h.
4266
4267         * tests/test-floorf1.c: Include nan.h.
4268         (main): Use NaNf instead of NAN.
4269         * modules/floorf-tests (Files): Add tests/nan.h.
4270
4271         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
4272         (main): Use NaNf instead of NAN.
4273         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
4274
4275         * tests/test-isnand.c: Include nan.h instead of <math.h>.
4276         (main): Use NaNd instead of NAN.
4277         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
4278
4279         * tests/test-frexp.c: Include nan.h.
4280         (main): Use NaNd instead of NAN.
4281         * modules/frexp-tests (Files): Add tests/nan.h.
4282
4283         * lib/isnan.c: Don't include <math.h>.
4284         (FUNC): Don't use NAN macro.
4285         * modules/isnand-nolibm (Depends-on): Remove math.
4286         * modules/isnanf-nolibm (Depends-on): Remove math.
4287         * modules/isnanl (Depends-on): Remove math.
4288         * modules/isnanl-nolibm (Depends-on): Remove math.
4289
4290         * tests/nan.h: New file.
4291
4292 2008-04-01  Eric Blake  <ebb9@byu.net>
4293
4294         Fix typos.
4295         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
4296         values to be the right type.
4297
4298         For now, cater to gnulib strtod inaccuracies.
4299         * tests/test-strtod.c (main): Allow 1-ulp error on expected
4300         fractional results.  While not as nice from a QoI perspective, it
4301         is a quicker patch than correctly implementing decimal to binary
4302         rounding.
4303
4304 2008-03-31  Eric Blake  <ebb9@byu.net>
4305
4306         Guarantee a definition of NAN.
4307         * lib/math.in.h (NAN): Define if missing.
4308         * tests/test-math.c (main): Test it.
4309         * doc/posix-headers/math.texi (math.h): Document this.
4310         * lib/isnan.c (rpl_isnand): Use it.
4311         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4312         * tests/test-floorf1.c (NaN): Likewise.
4313         * tests/test-frexp.c (NaN): Likewise.
4314         * tests/test-isnand.c (NaN): Likewise.
4315         * tests/test-isnanf.c (NaN): Likewise.
4316         * tests/test-round1.c (NaN): Likewise.
4317         * tests/test-roundf1.c (NaN): Likewise.
4318         * tests/test-snprintf-posix.h (NaN): Likewise.
4319         * tests/test-sprintf-posix.h (NaN): Likewise.
4320         * tests/test-trunc1.c (NaN): Likewise.
4321         * tests/test-truncf1.c (NaN): Likewise.
4322         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4323         * tests/test-vasprintf-posix.c (NaN): Likewise.
4324         * modules/isnand-nolibm (Depends-on): Add math.
4325         * modules/isnanf-nolibm (Depends-on): Likewise.
4326         * modules/isnanl (Depends-on): Likewise.
4327         * modules/isnanl-nolibm (Depends-on): Likewise.
4328         * modules/snprintf-posix-tests (Depends-on): Likewise.
4329         * modules/sprintf-posix-tests (Depends-on): Likewise.
4330         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4331         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4332         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4333         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4334
4335 2008-03-31  Bruno Haible  <bruno@clisp.org>
4336
4337         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4338         * doc/posix-functions/strtod.texi: Likewise.
4339
4340 2008-03-31  Bruno Haible  <bruno@clisp.org>
4341
4342         * tests/test-strtod.c (main): Don't use C99 syntax.
4343
4344 2008-03-31  Bruno Haible  <bruno@clisp.org>
4345
4346         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4347         Reported by Eric Blake.
4348
4349 2008-03-31  Jim Meyering  <meyering@redhat.com>
4350
4351         Don't compare actual signbit return values.
4352         * tests/test-strtod.c (main): Rather, compare only their
4353         zero/non-zero nature.
4354
4355 2008-03-31  Eric Blake  <ebb9@byu.net>
4356
4357         More strtod documentation.
4358         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4359         failures as distinct bugs.
4360
4361 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4362
4363         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4364         Problem reported by Erik Benada in
4365         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4366
4367 2008-03-30  Bruno Haible  <bruno@clisp.org>
4368
4369         * tests/test-strtod.c: Add comments about which assertion fails on which
4370         platform.
4371         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4372
4373 2008-03-30  Eric Blake  <ebb9@byu.net>
4374
4375         Test signbit behavior on zeros.
4376         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4377         (test_signbitd, test_signbitl): Likewise.
4378
4379         More strtod touchups.
4380         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4381         sign of negative underflow, for now.  Use .5, not .1.
4382         * doc/posix-functions/strtod.texi (strtod): Mention these
4383         limitations.
4384         Reported by Jim Meyering.
4385
4386 2008-03-30  Bruno Haible  <bruno@clisp.org>
4387
4388         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4389         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4390
4391 2008-03-30  Bruno Haible  <bruno@clisp.org>
4392
4393         Avoid failure when attempting to return empty iconv results on some
4394         platforms.
4395         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4396         allocation, don't report ENOMEM when the resulting string is empty.
4397
4398 2008-03-30  Bruno Haible  <bruno@clisp.org>
4399
4400         Fix buffer overrun.
4401         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4402         Don't consider the width for tmp_length. Check count against tmp_length
4403         before doing the padding. Ensure enough allocation during padding.
4404
4405 2008-03-30  Eric Blake  <ebb9@byu.net>
4406
4407         strtod touchups.
4408         * lib/strtod.c (strtod): Avoid compiler warnings.
4409         Reported by Jim Meyering.
4410
4411 2008-03-30  Bruno Haible  <bruno@clisp.org>
4412
4413         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
4414         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
4415         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
4416         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
4417         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
4418         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
4419         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
4420         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
4421
4422         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
4423         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
4424         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
4425         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
4426         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4427         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4428         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4429         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4430
4431         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4432         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4433         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4434         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4435         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4436         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4437         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4438         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4439
4440         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4441         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4442
4443         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4444         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4445
4446         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
4447         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
4448
4449         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
4450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
4451         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
4452
4453         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
4454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
4455         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
4456
4457         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
4458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
4459         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
4460
4461         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
4462         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
4463         * modules/vasprintf (Depends-on): Add EOVERFLOW.
4464
4465         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
4466         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
4467         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
4468         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
4469         (Depends-on): Add EOVERFLOW.
4470         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
4471         (Depends-on): Add EOVERFLOW.
4472         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4473         (Depends-on): Add EOVERFLOW.
4474         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4475         (Depends-on): Add EOVERFLOW.
4476         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4477         (Depends-on): Add EOVERFLOW.
4478         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4479         (Depends-on): Add EOVERFLOW.
4480         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4481         (Depends-on): Add EOVERFLOW.
4482         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4483         (Depends-on): Add EOVERFLOW.
4484
4485         * lib/sprintf.c (EOVERFLOW): Remove fallback.
4486         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
4487         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
4488
4489         * lib/snprintf.c (EOVERFLOW): Remove fallback.
4490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
4491         * modules/snprintf (Depends-on): Add EOVERFLOW.
4492
4493         * lib/poll.c (EOVERFLOW): Remove fallback.
4494         * modules/poll (Depends-on): Add EOVERFLOW.
4495
4496         * lib/getugroups.c (EOVERFLOW): Remove fallback.
4497         * modules/getugroups (Depends-on): Add EOVERFLOW.
4498
4499         * lib/getdelim.c (EOVERFLOW): Remove fallback.
4500         * modules/getdelim (Depends-on): Add EOVERFLOW.
4501
4502         * lib/ftell.c (EOVERFLOW): Remove fallback.
4503         * modules/ftell (Depends-on): Add EOVERFLOW.
4504
4505         * lib/fprintf.c (EOVERFLOW): Remove fallback.
4506         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
4507         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
4508
4509         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
4510
4511         * modules/EOVERFLOW-tests: New file.
4512         * tests/test-EOVERFLOW.c: New file.
4513
4514         * modules/EOVERFLOW: New file.
4515         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
4516
4517 2008-03-30  Bruno Haible  <bruno@clisp.org>
4518
4519         Fix bug introduced on 2007-06-10.
4520         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
4521         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
4522
4523 2008-03-30  Bruno Haible  <bruno@clisp.org>
4524
4525         Improve freadseek's efficiency after ungetc.
4526         * lib/freadseek.c: Include freadahead.h.
4527         (freadptrinc): New function, extracted from freadseek.
4528         (freadseek): Use it in a loop. Use freadahead to determine the number
4529         of loop iterations.
4530         * modules/freadseek (Depends-on): Add freadahead.
4531         (configure.ac): Require AC_C_INLINE.
4532
4533 2008-03-30  Bruno Haible  <bruno@clisp.org>
4534
4535         * lib/freadseek.c (freadseek): Don't ignore the return value of
4536         freadptr.
4537
4538 2008-03-29  Eric Blake  <ebb9@byu.net>
4539
4540         Add hex float support.
4541         * modules/strtod (Depends-on): Add c-ctype.
4542         (Link): Mention POW_LIB.
4543         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
4544         whitespace between 'e' and exponent.
4545         * tests/test-strtod.c (main): Enable hex float tests.
4546         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
4547         now provides.
4548
4549         Document various strtod bugs, with some fixes.
4550         * doc/posix-functions/strtod.texi (strtod): Document bugs with
4551         "-0x", "inf", "nan", and hex constants.
4552         * doc/posix-functions/atof.texi (atof): Likewise.
4553         * modules/stdlib (Makefile.am): Support strtod.
4554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4555         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
4556         detect additional strtod bugs.
4557         * lib/stdlib.in.h (rpl_strtod): Add declarations.
4558         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
4559         bool where appropriate.  Parse 'inf' and 'nan'.
4560         * tests/test-strtod.c: New file.
4561         * modules/strtod (Depends-on): Add stdbool, stdlib.
4562         (configure.ac): Turn on module indicator.
4563         * modules/strtod-tests: New module.
4564
4565 2008-03-29  Eric Blake  <ebb9@byu.net>
4566
4567         Fix ftell on mingw.
4568         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
4569         * modules/ftell-tests (Depends-on): Add binary-io.
4570         * modules/ftello-tests (Depends-on): Likewise.
4571         * tests/test-ftell.c (main): Enhance test to cover behavior after
4572         ungetc.  Enforce binary mode.
4573         * tests/test-ftello.c (main): Likewise.
4574
4575         Pass test-freadseek on cygwin.
4576         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
4577         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
4578         ungetc buffer.
4579
4580         * tests/test-fflush2.c (main): Fix typo.
4581
4582 2008-03-29  Bruno Haible  <bruno@clisp.org>
4583
4584         * tests/test-fflush2.c (main): Temporarily disable the contents of
4585         this test.
4586         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
4587         Reported by Eric Blake.
4588
4589 2008-03-28  Simon Josefsson  <simon@josefsson.org>
4590
4591         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
4592         (GC_SHA224_DIGEST_SIZE): Add.
4593
4594         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
4595         (gc_hash_digest_length): Likewise.
4596         (gc_hash_buffer): Likewise.
4597
4598 2008-03-25  Bruno Haible  <bruno@clisp.org>
4599
4600         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
4601         detail which gettext release to use.
4602         Reported by Simon Josefsson.
4603
4604 2008-03-26  Jim Meyering  <meyering@redhat.com>
4605
4606         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
4607         * modules/gnumakefile (clean-GNUmakefile): Also, use
4608         test ... && ... || : syntax rather than if-then ... fi.
4609
4610         gnumakefile: Don't double-quote-expand $(VPATH) value.
4611         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
4612
4613 2008-03-24  Eric Blake  <ebb9@byu.net>
4614
4615         Alter GNUmakefile to install into top directory.
4616         * modules/maintainer-makefile: Split, and add dependency...
4617         * modules/gnumakefile: to this new module.
4618         * build-aux/GNUmakefile: Move...
4619         * top/GNUmakefile: ...here.
4620         * build-aux/maint.mk: Move...
4621         * top/maint.mk: ...here.
4622         * MODULES.html.sh (Support for maintaining...): Document new
4623         module.
4624
4625 2008-03-23  Bruno Haible  <bruno@clisp.org>
4626
4627         * gnulib-tool: New options --vc-files, --no-vc-files.
4628         (func_usage): Document them.
4629         (vc_files): New variable.
4630         (func_import): Consider vc_files.
4631         (func_create_testdir): Set vc_files to empty.
4632         Suggested by Jim Meyering and Karl Berry.
4633
4634 2008-03-23  Bruno Haible  <bruno@clisp.org>
4635
4636         Fix regex compilation error on HP-UX 11.
4637         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
4638         * modules/regex (Files): Add m4/mbstate_t.m4.
4639         Reported by Ton Voon <ton.voon@altinity.com>.
4640
4641 2008-03-23  Bruno Haible  <bruno@clisp.org>
4642
4643         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
4644
4645 2008-03-23  Eric Blake  <ebb9@byu.net>
4646             Bruno Haible  <bruno@clisp.org>
4647
4648         Install files from top/ in the destination directory.
4649         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4650         augmentation also for the files from top/.
4651         (func_import, func_create_testdir): Rewrite file names:
4652         top/filename -> filename.
4653
4654 2008-03-23  Bruno Haible  <bruno@clisp.org>
4655
4656         Tweak "gnulib --version" output.
4657         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
4658
4659 2008-03-23  Bruno Haible  <bruno@clisp.org>
4660
4661         Tweak "gnulib --version" output.
4662         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
4663         rather than contents of ChangeLog, when possible.
4664
4665 2008-03-21  Eric Blake  <ebb9@byu.net>
4666
4667         More --version tweaks.
4668         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
4669         date of last ChangeLog entry.
4670
4671 2008-03-21  Jim Meyering  <meyering@redhat.com>
4672
4673         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
4674
4675 2008-03-20  Eric Blake  <ebb9@byu.net>
4676
4677         VPATH fix.
4678         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
4679
4680 2008-03-20  Simon Josefsson  <simon@josefsson.org>
4681
4682         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
4683         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
4684
4685 2008-03-20  Eric Blake  <ebb9@byu.net>
4686
4687         Sync GNUmakefile with coreutils.
4688         * build-aux/GNUmakefile (have-Makefile): Rename...
4689         (_have-Makefile): ...to this, for namespace consideration.
4690         (GNUmakefile.cfg): Include, if present.
4691         (_autoreconf): Define a default.
4692         (_is-dist-target): New rule for rebuilds to pick up intra-release
4693         version.
4694         (maint-cfg.mk): Rename...
4695         (cfg.mk): ...to this.
4696
4697 2008-03-18  Jim Meyering  <meyering@redhat.com>
4698
4699         New script and module: mktempd
4700         * MODULES.html.sh (maint+release support): Add mktempd.
4701         * build-aux/mktempd: New file.
4702         * modules/mktempd: New file.
4703
4704 2008-03-15  Jim Meyering  <meyering@redhat.com>
4705
4706         Undo last change.
4707         * lib/sha1.c, lib/md5.c: 63 != ~63.
4708         Reported by Andreas Schwab.
4709
4710         sha1.c, md5.c: Hoist a redundant expression.
4711         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
4712         "ctx->buflen" only once, before calling *_process_block.
4713         * lib/md5.c (md5_process_bytes): Likewise.
4714
4715 2008-03-14  Eric Blake  <ebb9@byu.net>
4716
4717         Bump copyright year in files generated by gnulib-tool.
4718         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4719         gnulib-tool, rather than hard-coding it.
4720
4721         Fix 'gnulib-tool --version' output to work with git.
4722         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4723         (startup): ...here.
4724         (func_version): Use it to invoke git-version-gen, rather than
4725         relying on CVS keyword expansion.  Modernize wording.
4726         (cvsdatestamp, last_checkin_date, version): Kill unused
4727         variables.
4728
4729 2008-03-12  Jim Meyering  <meyering@redhat.com>
4730
4731         Recognize optional cast of the argument to free.
4732         * build-aux/useless-if-before-free: Update regexps.
4733
4734         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
4735
4736 2008-03-11  Bruno Haible  <bruno@clisp.org>
4737
4738         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
4739         by a single package.
4740         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
4741         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
4742         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
4743         Reported by Sam Steingold <sds@gnu.org>.
4744
4745 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4746
4747         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
4748         repositories.
4749
4750 2008-03-11  Bruno Haible  <bruno@clisp.org>
4751
4752         Avoid conflicts between local macro definitions.
4753         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4754         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
4755
4756 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
4757             Bruno Haible  <bruno@clisp.org>
4758
4759         Make va_copy work with some version of xlc on AIX 5.1.
4760         * lib/stdarg.in.h: New file.
4761         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
4762         On AIX, use a <stdarg.h> file substitute.
4763         * modules/stdarg (Files): Add lib/stdarg.in.h.
4764         (Depends-on): Add include_next.
4765         (Makefile.am): Build a stdarg.h substitute if requested.
4766         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
4767
4768 2008-03-10  Bruno Haible  <bruno@clisp.org>
4769
4770         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
4771         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4772         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4773
4774 2008-03-10  Bruno Haible  <bruno@clisp.org>
4775
4776         * modules/stdlib (Depends-on): Add include_next, remove
4777         absolute-header.
4778
4779 2008-03-09  Bruno Haible  <bruno@clisp.org>
4780
4781         * lib/freadahead.h (freadahead): Document more precisely.
4782         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
4783         the sum of both buffer sizes.
4784         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
4785         * NEWS: Document the change.
4786
4787 2008-03-09  Bruno Haible  <bruno@clisp.org>
4788
4789         Extend freadptr to return also the buffer size.
4790         * lib/freadptr.h (freadptr): Add sizep argument.
4791         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
4792         (freadptr): Add sizep argument. Determine buffer size like freadahead
4793         does.
4794         * tests/test-freadptr.c: Don't include freadahead.h.
4795         (main): Adapt for new calling convention of freadptr.
4796         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
4797         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
4798         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
4799         tests/test-freadptr2.sh.
4800         (Depends): Remove freadahead.
4801         (TESTS): Add test-freadptr2.sh.
4802         (check_PROGRAMS): Add test-freadptr2.
4803
4804 2008-03-09  Bruno Haible  <bruno@clisp.org>
4805
4806         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
4807         Report and solution by Simon Josefsson.
4808
4809 2008-03-06  Bruno Haible  <bruno@clisp.org>
4810
4811         Make fflush after ungetc work on BSD platforms.
4812         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
4813         * tests/test-fflush2.c: New file.
4814         * tests/test-fflush2.sh: New file.
4815         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
4816         tests/test-fflush2.c.
4817         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
4818         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
4819
4820 2008-03-06  Eric Blake  <ebb9@byu.net>
4821
4822         Likewise for ftello.
4823         * modules/ftello (Dependencies): Add extensions.
4824         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
4825
4826 2008-03-06  Bruno Haible  <bruno@clisp.org>
4827
4828         * modules/fseeko (Dependencies): Add extensions.
4829         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
4830         Needed on glibc systems.
4831
4832 2008-03-06  Bruno Haible  <bruno@clisp.org>
4833
4834         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
4835         email address.
4836         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4837
4838 2008-03-06  Bruno Haible  <bruno@clisp.org>
4839
4840         * users.txt: Add libgnupdf.
4841
4842 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4843
4844         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
4845         (Header File Substitutes, Function Substitutes,
4846         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
4847         (Build robot for gnulib): Fix typo.
4848
4849 2008-03-06  Bruno Haible  <bruno@clisp.org>
4850
4851         * doc/gnulib-tool.texi (VCS Issues): Small updates.
4852         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4853
4854 2008-03-06  Bruno Haible  <bruno@clisp.org>
4855
4856         * doc/func.texi: New file, extracted from doc/gnulib.texi.
4857         * doc/gnulib.texi: Include it.
4858
4859 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4860
4861         * modules/func (License): Change license to unlimited; there was
4862         no LGPL parts in the module anyway.
4863
4864 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4865
4866         * modules/__func__: Renamed to modules/func.
4867         * modules/__func__-tests: Renamed to modules/func-tests.
4868         * tests/test-__func__.c: Renamed to tests/test-func.c.
4869         * m4/__func__.m4: Renamed to m4/func.m4.
4870         * doc/gnulib.texi (__func__): Section renamed to func.
4871         Suggested by Eric Blake <ebb9@byu.net>.
4872
4873 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4874
4875         * doc/gnulib.texi (__func__): Use C99 terminology when talking
4876         about __func__.  Make example self-contained.  Suggested by Eric
4877         Blake <ebb9@byu.net>.
4878
4879         * tests/test-__func__.c (main): Avoid extraneous () around __func.
4880         Suggested by Eric Blake <ebb9@byu.net>.
4881
4882 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4883
4884         * modules/__func__: New file.
4885         * modules/__func__-tests: New file.
4886         * tests/test-__func__.c: New file.
4887         * m4/__func__.m4: New file.
4888         * doc/gnulib.texi (__func__): Document __func__ module.
4889
4890 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4891
4892         * modules/byteswap (License): Re-license as LGPLv2+.
4893
4894 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4895
4896         * doc/Makefile: Add pdf target.
4897
4898 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4899
4900         * modules/inline (License): Use 'unlimited', since there are only
4901         *.m4 files in this module.
4902
4903 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4904             Bruno Haible  <bruno@clisp.org>
4905
4906         Add support for HP C 7.1 on OpenVMS 8.3.
4907         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
4908
4909 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4910
4911         Update VMS specifics.
4912         * lib/getopt.c [VMS]: Remove include of unixlib.h.
4913
4914 2008-03-02  Jim Meyering  <meyering@redhat.com>
4915
4916         Remove the last dependency on the "free" module.
4917         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
4918         Reported by Bob Proulx.
4919
4920         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
4921
4922         Remove useless "if" tests before free.  Deprecate "free" module.
4923         * doc/posix-functions/free.texi: Mention that this
4924         module is no longer useful.
4925         * modules/free (Notice): Say this module is obsolete.
4926         * modules/readutmp (Depends-on): Remove free.
4927         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
4928         * lib/putenv.c (putenv): Likewise.
4929         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
4930         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
4931         * tests/test-c-strcasestr.c (main): Likewise.
4932         * tests/test-c-strstr.c (main): Likewise.
4933         * tests/test-mbscasestr1.c (main): Likewise.
4934         * tests/test-mbscasestr2.c (main): Likewise.
4935         * tests/test-mbsstr1.c (main): Likewise.
4936         * tests/test-mbsstr2.c (main): Likewise.
4937         * tests/test-memmem.c (main): Likewise.
4938         * tests/test-strcasestr.c (main): Likewise.
4939         * tests/test-striconv.c (main): Likewise.
4940         * tests/test-striconveh.c (main): Likewise.
4941         * tests/test-striconveha.c (main): Likewise.
4942         * tests/test-strstr.c (main): Likewise.
4943
4944         * build-aux/git-version-gen: Adjust a comment and the Usage string.
4945
4946         bootstrap: sync from coreutils again
4947         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
4948
4949 2008-03-01  Jim Meyering  <meyering@redhat.com>
4950
4951         bootstrap: sync from coreutils
4952         * build-aux/bootstrap (update_po_files): Copy a .po file into place
4953         also when the target doesn't exist.
4954
4955 2008-03-01  Eric Blake  <ebb9@byu.net>
4956
4957         Fix bugs in last patch.
4958         * lib/memchr2.c (memchr2): Fix typo.
4959         * tests/test-memchr2.c: Test previous bug, and don't use GNU
4960         extension.
4961         Reported by Bruce Korb.
4962
4963         New module 'memchr2'.
4964         * modules/memchr2: New file.
4965         * modules/memchr2-tests: Likewise.
4966         * lib/memchr2.h: Likewise.
4967         * lib/memchr2.c: Likewise, based on memchr.c.
4968         * tests/test-memchr2.c: New test.
4969         * MODULES.html.sh (String handling): Add memchr2.
4970
4971 2008-02-29  Bruno Haible  <bruno@clisp.org>
4972
4973         * modules/freadseek-tests: New file.
4974         * tests/test-freadseek.sh: New file.
4975         * tests/test-freadseek.c: New file.
4976
4977         New module 'freadseek'.
4978         * modules/freadseek: New file.
4979         * lib/freadseek.h: New file.
4980         * lib/freadseek.c: New file.
4981         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
4982
4983 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
4984
4985         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
4986         wydawca.
4987
4988         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
4989         program_invocation_name and program_invocation_short_name are
4990         present.
4991
4992 2008-02-28  Bruno Haible  <bruno@clisp.org>
4993
4994         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
4995         * tests/test-freadptr.sh: Also test non-seekable stdin.
4996
4997 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
4998
4999         * build-aux/bootstrap (source_base, m4_base)
5000         (doc_base, tests_base): New variables.
5001         (gnulib_tool_options): Do not hardcode base directories, use
5002         the above variables instead.
5003
5004 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
5005
5006         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
5007
5008 2008-02-28  Bruno Haible  <bruno@clisp.org>
5009
5010         * modules/freadptr-tests: New file.
5011         * tests/test-freadptr.sh: New file.
5012         * tests/test-freadptr.c: New file.
5013
5014         New module 'freadptr'.
5015         * modules/freadptr: New file.
5016         * lib/freadptr.h: New file.
5017         * lib/freadptr.c: New file.
5018         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
5019
5020 2008-02-26  Karl Berry  <karl@freefriends.org>
5021
5022         Sync from Libtool:
5023         * libltdl/argz.c (argz_add, argz_count): New functions.
5024         * libltdl/argz.in.h: Declare them.
5025         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
5026
5027 2008-02-22  Bruno Haible  <bruno@clisp.org>
5028
5029         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
5030         is a pointer type.  Needed for HP-UX 10.
5031         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
5032         * doc/posix-functions/gmtime_r.texi: Likewise.
5033         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5034
5035 2008-02-24  Bruno Haible  <bruno@clisp.org>
5036
5037         * modules/environ-tests: New file.
5038         * tests/test-environ.c: New file.
5039
5040         New module 'environ'.
5041         * modules/environ: New file.
5042         * lib/unistd.in.h (environ): New declaration.
5043         * m4/environ.m4: New file.
5044         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
5045         after use.
5046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
5047         HAVE_DECL_ENVIRON.
5048         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
5049         HAVE_DECL_ENVIRON.
5050         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
5051         wrong claim that 'environ' is missing on some systems.
5052         * modules/execute (Depends-on): Add environ.
5053         * lib/execute.c (environ): Remove fallback declaration.
5054         * modules/pipe (Depends-on): Add environ.
5055         * lib/pipe.c (environ): Remove fallback declaration.
5056         * modules/setenv (Depends-on): Add environ.
5057         * lib/setenv.c (environ): Remove fallback declaration.
5058         * modules/unsetenv (Depends-on): Add environ.
5059         * lib/unsetenv.c (environ): Remove fallback declaration.
5060         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
5061         m4/environ.m4.
5062         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
5063         (gl_PREREQ_UNSETENV): Likewise.
5064
5065 2008-02-24  Bruno Haible  <bruno@clisp.org>
5066
5067         * doc/posix-functions/environ.texi: Document the MacOS X problem.
5068
5069 2008-02-20  Bob Proulx  <bob@proulx.com>
5070
5071         Enable use of older two part flavor 'git describe'.
5072         * build-aux/git-version-gen: If using the older two part flavor of
5073         git version then recreate the third part now present in the
5074         newer three part flavor of git describe.
5075
5076 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
5077
5078         * lib/fts.c (fts_build): Typo correction to comment.
5079
5080 2008-02-17  Bruno Haible  <bruno@clisp.org>
5081
5082         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
5083         generating no-op conflicts.
5084
5085 2008-02-17  Bruno Haible  <bruno@clisp.org>
5086
5087         Speed up by 10%.
5088         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
5089         result_entries, rather than an index-based loop.
5090
5091 2008-02-17  Bruno Haible  <bruno@clisp.org>
5092
5093         Speed up by 25%.
5094         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
5095         'hashcode_cached'.
5096         (entry_create): New function.
5097         (entry_hashcode): Use the cached hashcode if possible.
5098         (read_changelog_file, try_split_merged_entry): Use entry_create.
5099
5100 2008-02-17  Bruno Haible  <bruno@clisp.org>
5101
5102         Speed up from O(n^2) to O(n) for long ChangeLog files.
5103         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
5104         (read_changelog_file): Change implementation of entries_reversed list
5105         to rbtreehash.
5106         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
5107
5108 2008-02-17  Bruno Haible  <bruno@clisp.org>
5109
5110         New option --split-merged-entry.
5111         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
5112         (find_paragraph_end, try_split_merged_entry): New functions.
5113         (long_options): Add option --split-merged-entry.
5114         (usage): Document option --split-merged-entry.
5115         (main): Implement option --split-merged-entry.
5116         Reported by Eric Blake.
5117
5118 2008-02-17  Bruno Haible  <bruno@clisp.org>
5119
5120         * lib/git-merge-changelog.c: Include c-strstr.h.
5121         (main): Support the "git pull --rebase" situation.
5122         * modules/git-merge-changelog (Depends-on): Add c-strstr.
5123         Reported by Eric Blake.
5124
5125 2008-02-16  Eric Blake  <ebb9@byu.net>
5126
5127         Avoid doubling \ in common case of "c-maybe" quoting style.
5128         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
5129         eliding outer quotes.
5130         * lib/quotearg.h: Document this.
5131         * tests/test-quotearg.c (result_strings, inputs, results_g)
5132         (flag_results, locale_results): Test it by adding a new string to
5133         each test group.
5134         (compare_strings): Test new string.
5135
5136 2008-02-13  Eric Blake  <ebb9@byu.net>
5137
5138         Avoid trigraph quoting in default output.
5139         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
5140         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
5141         unless explicitly requested.
5142         * tests/test-quotearg.c (flag_results, main): Add additional tests.
5143
5144 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
5145
5146         Don't rely on signed integer overflowing to negative value.
5147         * lib/getugroups.c (getugroups): Include <limits.h>.
5148         Instead, compare against INT_MAX, and increment only if the test passes.
5149
5150 2008-02-13  Jim Meyering  <meyering@redhat.com>
5151         and Eric Blake  <ebb9@byu.net>
5152
5153         Avoid shadowing warning and compile errors on Linux.
5154         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
5155         forwarding macros on Linux.
5156         (dcgettext): Define a stub, for Linux.
5157         (results_g, main): Avoid warnings.
5158
5159 2008-02-12  Eric Blake  <ebb9@byu.net>
5160
5161         Silence warning in last patch.
5162         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
5163
5164         Quotearg part 4: add tests, fix c-maybe colon quoting.
5165         * lib/quotearg.h: Improve documentation.
5166         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
5167         escapes when adding outer quotes.  When quoting trigraphs, use
5168         valid C notation.  When quoting NUL, omit extra characters if next
5169         character is not digit.  Alter prototype.
5170         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
5171         callers.
5172         * modules/quotearg-tests: New module.
5173         * tests/test-quotearg.c: New test.
5174
5175 2008-02-07  Eric Blake  <ebb9@byu.net>
5176
5177         Quotearg part 3: add flag to control outer quote elision.
5178         * lib/quotearg.h (c_maybe_quoting_style): New style.
5179         (enum quoting_flags): Better documentation of flags.
5180         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
5181         c-maybe style.
5182         (quotearg_buffer_restyled): Handle new flag to elide outer
5183         quotes.
5184
5185         Quotearg part 2: add flag that can control NUL elision.
5186         * lib/quotearg.h (set_quoting_flags): New prototype.
5187         * lib/quotearg.c (struct quoting_options): Add flag field.
5188         (set_quoting_flags): New function.
5189         (quotearg_buffer_restyled): Add flags parameter.
5190         (quotearg_alloc_mem): Set the flag if length cannot be returned.
5191         (quotearg_n_options): Set the flag, since length cannot be
5192         returned.
5193         (quoting_options_from_style): Default flags correctly.
5194
5195         Quotearg part 1: more wrappers, restore quotearg_char state.
5196         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
5197         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
5198         (quotearg_colon_mem): New wrappers.
5199         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
5200         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
5201         functions.
5202         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
5203         (quotearg_colon_mem): New functions.
5204
5205 2008-02-11  Bruno Haible  <bruno@clisp.org>
5206
5207         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
5208         library in the current directory: it does not work with parallel make.
5209         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5210
5211 2008-02-11  Bruno Haible  <bruno@clisp.org>
5212
5213         * .gitattributes: New file.
5214
5215 2008-02-11  Jim Meyering  <meyering@redhat.com>
5216
5217         useless-if-before-free: Fix reversed exit values.
5218         * build-aux/useless-if-before-free: Use correct values
5219         for EXIT_MATCH and EXIT_NO_MATCH.
5220
5221         * build-aux/useless-if-before-free: Close stdout carefully.
5222
5223 2008-02-10  Bruno Haible  <bruno@clisp.org>
5224
5225         New module 'git-merge-changelog'.
5226         * modules/git-merge-changelog: New file.
5227         * lib/git-merge-changelog.c: New file.
5228
5229 2008-02-10  Jim Meyering  <meyering@redhat.com>
5230
5231         useless-if-before-free: New option: --list (-l).
5232
5233         useless-if-before-free: Don't exit immediately upon open failure.
5234         * build-aux/useless-if-before-free: Exit 2 for errors.
5235         Upon failure to open a file, don't exit immediately.
5236         Rather, just warn and continue with any remaining files.
5237
5238 2008-02-10  Bruno Haible  <bruno@clisp.org>
5239
5240         New abstract list operation 'node_set_value'.
5241         * lib/gl_list.h (gl_list_node_set_value): New function.
5242         (struct gl_list_implementation): New field node_set_value.
5243         * lib/gl_list.c (gl_list_node_set_value): New function.
5244         * lib/gl_array_list.c (gl_array_node_set_value): New function.
5245         (gl_array_list_implementation): Update.
5246         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
5247         (gl_carray_list_implementation): Update.
5248         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
5249         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5250         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5251         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
5252         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5253         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5254         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5255         Update.
5256         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5257         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
5258         (gl_sublist_list_implementation): Update.
5259
5260 2008-02-10  Bruno Haible  <bruno@clisp.org>
5261
5262         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
5263         Needed when ELEMENT is #defined to 'some_type *'.
5264
5265 2008-02-10  Jim Meyering  <meyering@redhat.com>
5266
5267         New script and module: useless-if-before-free
5268         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
5269         * build-aux/useless-if-before-free: New file.
5270         * modules/useless-if-before-free: New file.
5271
5272         * build-aux/gitlog-to-changelog: Use committer date, not author date.
5273
5274         xstrtol_error: Fix typo.
5275         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
5276         s/exit_failure/exit_status/.
5277
5278 2008-02-09  Jim Meyering  <meyering@redhat.com>
5279
5280         New script and module: gitlog-to-changelog
5281         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
5282         * modules/gitlog-to-changelog: New file.
5283         * build-aux/gitlog-to-changelog: New file.
5284
5285 2008-02-08  Jim Meyering  <meyering@redhat.com>
5286
5287         Avoid two "parameter unused" warnings.
5288         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
5289         Mark "st" as used.
5290
5291         Use "git COMMAND", not "git-COMMAND".
5292         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
5293         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
5294         * build-aux/git-version-gen: Use "git status", not "git-status".
5295
5296 2008-02-07  Bruno Haible  <bruno@clisp.org>
5297
5298         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
5299         Avoids a crash on Windows Vista.
5300         Reported by Adam Strzelecki <ono@java.pl> via
5301         Simon Josefsson <simon@josefsson.org>.
5302
5303 2008-02-06  Bruno Haible  <bruno@clisp.org>
5304
5305         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
5306         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
5307         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5309         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5311         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5312         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5320         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5321         left-adjust flag.
5322         * tests/test-snprintf-posix.h (test_function): Likewise.
5323         * tests/test-sprintf-posix.h (test_function): Likewise.
5324         * tests/test-vasprintf-posix.c (test_function): Likewise.
5325         * doc/posix-functions/fprintf.texi: Update.
5326         * doc/posix-functions/printf.texi: Update.
5327         * doc/posix-functions/snprintf.texi: Update.
5328         * doc/posix-functions/sprintf.texi: Update.
5329         * doc/posix-functions/vfprintf.texi: Update.
5330         * doc/posix-functions/vprintf.texi: Update.
5331         * doc/posix-functions/vsnprintf.texi: Update.
5332         * doc/posix-functions/vsprintf.texi: Update.
5333         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5334
5335 2008-02-06  Bruno Haible  <bruno@clisp.org>
5336
5337         Fix bug introduced on 2008-01-26.
5338         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5339
5340 2008-02-06  Bruno Haible  <bruno@clisp.org>
5341
5342         Fix bug introduced on 2007-06-10.
5343         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5344         !NEED_PRINTF_FLAG_ZERO.
5345
5346 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5347
5348         getloadavg: use libperfstat on AIX5
5349         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5350
5351 2008-02-03  Bruno Haible  <bruno@clisp.org>
5352
5353         * lib/diffseq.h: Add comments about required #includes.
5354         Reported by Michael Biggs <gnulib@doubleplum.net>.
5355
5356 2008-02-01  Bruno Haible  <bruno@clisp.org>
5357
5358         * users.txt: Add gnuit.
5359
5360 2008-01-31  Bruno Haible  <bruno@clisp.org>
5361
5362         * lib/md4.c (set_uint32): Mark as inline.
5363         * lib/md5.c (set_uint32): Likewise.
5364         * lib/sha1.c (set_uint32): Likewise.
5365         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5366         * m4/md5.m4 (gl_MD5): Likewise.
5367         * m4/sha1.m4 (gl_SHA1): Likewise.
5368
5369 2008-01-31  Jim Meyering  <meyering@redhat.com>
5370
5371         Use "sizeof VAR", rather than a literal "4".
5372         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5373         * lib/md4.c (md4_read_ctx): Likewise.
5374         * lib/sha1.c (sha1_read_ctx): Likewise.
5375
5376 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5377
5378         * tests/test-sha1.c: New file, based on test-md5.c.
5379
5380         * modules/crypto/sha1-tests: New file.
5381
5382 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5383
5384         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5385
5386 2008-01-31  Jim Meyering  <meyering@redhat.com>
5387
5388         Prefer "sizeof v" over the equivalent "4".
5389         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5390         * lib/md5.c (set_uint32): Likewise.
5391         * lib/sha1.c (set_uint32): Likewise.
5392
5393 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5394
5395         * lib/sha1.c (set_uint32): Mark function as static.
5396
5397 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5398
5399         md2: clarify comments to say that alignment is not required.
5400         * lib/md2.h: Remove warning about alignment in comment.
5401         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5402         never been required.
5403
5404 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5405
5406         md4: adapt alignment constraint fix from sha1.
5407         * lib/md4.c (set_uint32): New function, from sha1.c
5408         (md4_read_ctx): Use it.
5409         (md4_finish_ctx): Doc fix.
5410         * lib/md4.h: Doc fix.
5411
5412 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5413
5414         md5: adapt alignment constraint fix from sha1.
5415         * lib/md5.c (set_uint32): New function, from sha1.c
5416         (md5_read_ctx): Use it.
5417         (md5_finish_ctx): Doc fix.
5418         * lib/md5.h: Doc fix.
5419
5420 2008-01-30  Peter Palfrader  <weasel@debian.org>
5421
5422         sha1: remove the result buffer alignment constraint
5423         * lib/sha1.c (set_uint32): New function.
5424         (sha1_read_ctx): Rewrite to remove the result buffer alignment
5425         constraint.
5426         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5427         * lib/sha1.h: Likewise.
5428
5429 2008-01-30  Andreas Schwab  <schwab@suse.de>
5430             Bruno Haible  <bruno@clisp.org>
5431
5432         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5433         correct definition of LDBL_MIN_EXP.
5434
5435 2008-01-30  Karl Berry  <karl@gnu.org>
5436
5437         * config/srclist-update: try to preserve x bit on updates.
5438         * config/srclistvars.sh: update for karl.
5439
5440 2008-01-29  Jim Meyering  <meyering@redhat.com>
5441
5442         vasnprintf.c: Avoid warning about unused label
5443         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5444         "overflow" label definition and associated code with the
5445         same cpp condition that guards the sole use of that label.
5446
5447 2008-01-26  Bruno Haible  <bruno@clisp.org>
5448
5449         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5450         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
5451         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
5452         * lib/isnanl-nolibm.h (isnanl): Likewise.
5453         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5454
5455 2008-01-26  Bruno Haible  <bruno@clisp.org>
5456
5457         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
5458         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
5459
5460 2008-01-26  Bruno Haible  <bruno@clisp.org>
5461
5462         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
5463         GCC >= 4.0 built-in.
5464         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
5465
5466 2008-01-26  Bruno Haible  <bruno@clisp.org>
5467
5468         Rename isnan, applicable to 'double' only, to isnand.
5469         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
5470         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
5471         (configure.ac): Update.
5472         (Include): Replace "isnan.h" with "isnand.h".
5473         * m4/isnand.m4: Renamed from m4/isnan.m4.
5474         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
5475         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
5476         instead of isnan.c.
5477         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
5478         instead of HAVE_ISNAN_IN_LIBC.
5479         (isnand): Renamed from isnan.
5480         * lib/isnand.c: New file.
5481         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
5482         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
5483         (Makefile.am): Update.
5484         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
5485         Include isnand.h instead of isnan.h.
5486         (main): Test isnand instead of isnan.
5487         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
5488         isnan-nolibm.
5489         * modules/frexp (Depends-on): Likewise.
5490         * modules/frexp-tests (Depends-on): Likewise.
5491         * modules/frexp-nolibm (Depends-on): Likewise.
5492         * modules/frexp-nolibm-tests (Depends-on): Likewise.
5493         * modules/isfinite (Depends-on): Likewise.
5494         * modules/round-tests (Depends-on): Likewise.
5495         * modules/signbit (Depends-on): Likewise.
5496         * modules/signbit-tests (Depends-on): Likewise.
5497         * modules/snprintf-posix (Depends-on): Likewise.
5498         * modules/sprintf-posix (Depends-on): Likewise.
5499         * modules/trunc-tests (Depends-on): Likewise.
5500         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5501         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5502         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5503         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5504         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5506         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5507         * modules/vasnprintf-posix (Depends-on): Likewise.
5508         * modules/vasprintf-posix (Depends-on): Likewise.
5509         * modules/vfprintf-posix (Depends-on): Likewise.
5510         * modules/vsnprintf-posix (Depends-on): Likewise.
5511         * modules/vsprintf-posix (Depends-on): Likewise.
5512         * lib/frexp.c: Include isnand.h instead of isnan.h.
5513         (ISNAN): Set to isnand instead of isnan.
5514         * lib/isfinite.c: Include isnand.h instead of isnan.h.
5515         (gl_isfinited): Use isnand instead of isnan.
5516         * lib/signbitd.c: Include isnand.h instead of isnan.h.
5517         (gl_signbitd): Use isnand instead of isnan.
5518         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
5519         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
5520         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
5521         (main): Use isnand instead of isnan.
5522         * tests/test-round1.c: Include isnand.h.
5523         (main): Use isnand instead of isnan.
5524         * tests/test-round2.c: Include isnand.h instead of isnan.h.
5525         (ISNAN): Set to isnand instead of isnan.
5526         * tests/test-trunc1.c: Include isnand.h.
5527         (main): Use isnand instead of isnan.
5528         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
5529         (equal): Use isnand instead of isnan.
5530         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
5531         isnand-nolibm.
5532         * NEWS: Mention the change.
5533
5534 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5535             Bruno Haible  <bruno@clisp.org>
5536
5537         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
5538         the GCC builtins for signbits are present and set
5539         REPLACE_SIGNBIT_USING_GCC if so.
5540         * lib/math.in.h (signbit): Define using GCC builtins if
5541         REPLACE_SIGNBIT_USING_GCC is set.
5542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5543         REPLACE_SIGNBIT_USING_GCC.
5544         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
5545
5546 2008-01-25  Jim Meyering  <meyering@redhat.com>
5547
5548         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
5549         * lib/poll.c: Include <config.h>, not "config.h".
5550         * tests/test-getaddrinfo.c: Likewise.
5551
5552 2008-01-25  Simon Josefsson  <simon@josefsson.org>
5553
5554         * modules/sockets-tests: New file.
5555
5556 2008-01-24  Simon Josefsson  <simon@josefsson.org>
5557
5558         * modules/sockets: New module, can be used to call WSA_Startup and
5559         WSA_Cleanup when needed.
5560
5561         * lib/sockets.h, lib/sockets.c: New files.
5562
5563         * m4/sockets.m4: New file.
5564
5565         * tests/test-sockets.c: New file.
5566
5567 2008-01-19  Bruno Haible  <bruno@clisp.org>
5568
5569         * doc/posix-headers: Renamed from doc/headers.
5570         * doc/posix-functions: Renamed from doc/functions.
5571         * doc/gnulib.texi: Update.
5572
5573 2008-01-19  Bruno Haible  <bruno@clisp.org>
5574
5575         * doc/glibc-functions/strcasestr.texi: Include contents of
5576         doc/functions/strcasestr.texi, fixing the list of platforms.
5577         * doc/functions/strcasestr.texi: Remove file.
5578
5579 2008-01-19  Bruno Haible  <bruno@clisp.org>
5580
5581         * doc/glibc-functions/memmem.texi: Include contents of
5582         doc/functions/memmem.texi.
5583         * doc/functions/memmem.texi: Remove file.
5584
5585 2008-01-18  Bruno Haible  <bruno@clisp.org>
5586
5587         * doc/glibc-functions/*.texi: New files.
5588         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
5589         to use the new files.
5590
5591 2008-01-17  Bruno Haible  <bruno@clisp.org>
5592
5593         * tests/test-gethostname.c (main): Fix printf statement.
5594
5595 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5596
5597         * modules/gethostname-tests: New file.
5598
5599         * tests/test-gethostname.c: New file.
5600
5601 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5602
5603         * lib/gethostname.c: Include string.h unconditionally, strncpy is
5604         used by the UNAME case.  Reported by Bruno Haible
5605         <bruno@clisp.org>.
5606
5607 2008-01-17  Eric Blake  <ebb9@byu.net>
5608
5609         Convert c-strcasestr to be more efficient.
5610         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
5611         (Depends-on): Add c-strcase, remove malloca, strnlen.
5612         * tests/test-c-strcasestr.c (main): Enhance test.
5613         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
5614
5615 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5616
5617         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
5618         Use it in creating po/Makevars.
5619
5620 2008-01-15  Simon Josefsson  <simon@josefsson.org>
5621
5622         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
5623         Applications that requires it should initialize libgcrypt
5624         manually.
5625
5626 2008-01-16  Simon Josefsson  <simon@josefsson.org>
5627
5628         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
5629
5630 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5631
5632         Fix problem with getdate on mingw32 reported by Simon Josefsson
5633         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5634         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
5635         tzname", when deciding whether to declare tzname.
5636         * lib/strftime.c (tzname): Likewise.
5637
5638 2008-01-15  Bruno Haible  <bruno@clisp.org>
5639
5640         Work around a MacOS X 10.5 bug in frexpl().
5641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
5642         * doc/functions/frexpl.texi: Document the bug.
5643         Reported by Elias Pipping <pipping@gentoo.org>.
5644
5645 2008-01-14  Eric Blake  <ebb9@byu.net>
5646
5647         Touch up previous patch.
5648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
5649         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
5650
5651         Convert strcasestr module to use Two-Way algorithm.
5652         * modules/strcasestr-simple: New module, based on the old
5653         strcasestr, but with Two-Way rather than KMP.
5654         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
5655         * lib/string.in.h (rpl_strcasestr): Declare.
5656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
5657         performance.
5658         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
5659         * modules/string (Makefile.am): Support strcasestr.
5660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
5661         * modules/strcasestr-tests (Depends-on): Check for alarm.
5662         * tests/test-strcasestr.c: Augment test.
5663         * lib/str-two-way.h: Clean up stray macro.
5664         * NEWS: Document new module.
5665         * MODULES.html.sh (string handling): Likewise.
5666         * doc/functions/strcasestr.texi: New file.
5667         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
5668         here, since it is not a POSIX function.
5669
5670 2008-01-14  Colin Watson  <cjwatson@debian.org>
5671             Bruno Haible  <bruno@clisp.org>
5672
5673         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
5674         works fine; if not, set REPLACE_STRSIGNAL.
5675         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
5676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5677         REPLACE_STRSIGNAL.
5678         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
5679         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
5680         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
5681
5682 2008-01-14  Bruno Haible  <bruno@clisp.org>
5683
5684         * modules/strsignal (Include): Change to <string.h>.
5685
5686 2008-01-14  Colin Watson  <cjwatson@debian.org>
5687
5688         * modules/argp (Notice): Add a notice recommending to change
5689         XGETTEXT_OPTIONS.
5690         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
5691
5692 2008-01-13  Colin Watson  <cjwatson@debian.org>
5693
5694         * modules/strsignal-tests: New file.
5695         * tests/test-strsignal.c: New file.
5696
5697         * lib/strsignal.c: New file, from glibc with modifications.
5698         * lib/siglist.h: New file, from glibc with modifications.
5699         * lib/string.in.h (strsignal): New declaration.
5700         * m4/strsignal.m4: New file.
5701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5702         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
5703         * modules/strsignal: New file.
5704         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
5705         HAVE_DECL_STRSIGNAL.
5706
5707 2008-01-13  Bruno Haible  <bruno@clisp.org>
5708
5709         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
5710         locale encoding is not ASCII. Needed for OpenBSD 4.0.
5711         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5712         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5713
5714 2008-01-13  Bruno Haible  <bruno@clisp.org>
5715
5716         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
5717         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
5718         * lib/argp.h (__attribute__): Likewise.
5719         * lib/c-stack.c (__attribute__): Likewise.
5720         * lib/error.h (__attribute__): Likewise.
5721         * lib/fts.c (__attribute__): Likewise.
5722         * lib/openat.h (__attribute__): Likewise.
5723         * lib/stdio.in.h (__attribute__): Likewise.
5724         * lib/string.in.h (__attribute__): Likewise.
5725         * lib/utimens.c (__attribute__): Likewise.
5726         * lib/vasnprintf.h (__attribute__): Likewise.
5727         * lib/xalloc.h (__attribute__): Likewise.
5728         * lib/xprintf.h (__attribute__): Likewise.
5729         * lib/xstrtol.h (__attribute__): Likewise.
5730         * lib/xvasprintf.h (__attribute__): Likewise.
5731
5732 2008-01-12  Bruno Haible  <bruno@clisp.org>
5733
5734         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
5735         * doc/glibc-headers/a.out.texi: New file.
5736         * doc/glibc-headers/aliases.texi: New file.
5737         * doc/glibc-headers/alloca.texi: New file.
5738         * doc/glibc-headers/ar.texi: New file.
5739         * doc/glibc-headers/argp.texi: New file.
5740         * doc/glibc-headers/argz.texi: New file.
5741         * doc/glibc-headers/byteswap.texi: New file.
5742         * doc/glibc-headers/crypt.texi: New file.
5743         * doc/glibc-headers/endian.texi: New file.
5744         * doc/glibc-headers/envz.texi: New file.
5745         * doc/glibc-headers/err.texi: New file.
5746         * doc/glibc-headers/error.texi: New file.
5747         * doc/glibc-headers/execinfo.texi: New file.
5748         * doc/glibc-headers/fpu_control.texi: New file.
5749         * doc/glibc-headers/fstab.texi: New file.
5750         * doc/glibc-headers/fts.texi: New file.
5751         * doc/glibc-headers/getopt.texi: New file.
5752         * doc/glibc-headers/ieee754.texi: New file.
5753         * doc/glibc-headers/ifaddrs.texi: New file.
5754         * doc/glibc-headers/libintl.texi: New file.
5755         * doc/glibc-headers/mcheck.texi: New file.
5756         * doc/glibc-headers/mntent.texi: New file.
5757         * doc/glibc-headers/obstack.texi: New file.
5758         * doc/glibc-headers/paths.texi: New file.
5759         * doc/glibc-headers/printf.texi: New file.
5760         * doc/glibc-headers/pty.texi: New file.
5761         * doc/glibc-headers/resolv.texi: New file.
5762         * doc/glibc-headers/shadow.texi: New file.
5763         * doc/glibc-headers/sysexits.texi: New file.
5764         * doc/glibc-headers/ttyent.texi: New file.
5765
5766 2008-01-12  Jim Meyering  <meyering@redhat.com>
5767
5768         announce-gen: emit Gnulib's git-based version string.
5769         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
5770         New option --gnulib-version=V, where V is expected to be
5771         the output of running git describe in the gnulib directory.
5772         (get_tool_versions): Request feedback on xdelta.  I suspect it's
5773         not useful, and plan to stop publishing an xdelta file with each
5774         coreutils release.
5775
5776         * build-aux/announce-gen: Also check for lzma-compressed files.
5777
5778 2008-01-11  Bruno Haible  <bruno@clisp.org>
5779
5780         * tests/test-memmem.c (main): Increase maximum allowed time.
5781         * tests/test-strstr.c (main): Likewise.
5782
5783 2008-01-11  Bruno Haible  <bruno@clisp.org>
5784
5785         * doc/functions/memmem.texi: Add more precisions about platforms.
5786         * doc/functions/strstr.texi: Likewise.
5787
5788 2008-01-10  Eric Blake  <ebb9@byu.net>
5789
5790         * m4/strstr.m4: Delete cruft from copy-n-paste.
5791         Reported by Bruno Haible.
5792
5793 2008-01-10  Bruno Haible  <bruno@clisp.org>
5794
5795         Make c-strstr rely on strstr.
5796         * lib/c-strstr.c: Don't include str-kmp.h.
5797         (c_strstr): Define in terms of strstr.
5798         * modules/c-strstr (Files): Remove lib/str-kmp.h.
5799         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
5800
5801 2008-01-10  Bruno Haible  <bruno@clisp.org>
5802
5803         * doc/gnulib.texi (String Functions in C Locale): New section.
5804         * doc/c-ctype.texi: New file.
5805         * doc/c-strcase.texi: New file.
5806         * doc/c-strcaseeq.texi: New file.
5807         * doc/c-strcasestr.texi: New file.
5808         * doc/c-strstr.texi: New file.
5809         * doc/c-strtod.texi: New file.
5810         * doc/c-strtold.texi: New file.
5811
5812 2008-01-10  Eric Blake  <ebb9@byu.net>
5813
5814         * lib/relocatable.h: Fix a comment.
5815
5816 2008-01-10  Eric Blake  <ebb9@byu.net>
5817
5818         Share two-way algorithm.
5819         * lib/str-two-way.h: New file, merged from...
5820         * lib/memmem.c: ...here...
5821         * lib/strstr.c: ...and here.
5822         * modules/memmem (Files): Use it.
5823         * modules/strstr (Files): Likewise.
5824
5825         Avoid quadratic strstr implementations.
5826         * lib/strstr.c: New file.
5827         * m4/strstr.m4: Likewise.
5828         * modules/strstr: Likewise.
5829         * modules/strstr-tests: Likewise.
5830         * tests/test-strstr.c: Likewise.
5831         * lib/string.in.h (rpl_strstr): Declare.
5832         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
5833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
5834         * modules/string (Makefile.am): Likewise.
5835         * MODULES.html.sh (string handling): Mention new module.
5836         * doc/functions/strstr.texi (strstr): Document the bug.
5837
5838 2008-01-10  Bruno Haible  <bruno@clisp.org>
5839
5840         * lib/relocatable.h (relocate): State whether result is freshly
5841         allocated or not.
5842         * lib/relocatable.c (relocate): Return a freshly allocated string
5843         instead of a pointer to a privately held string.
5844         Reported by Sylvain Beucler <beuc@gnu.org>.
5845
5846 2008-01-10  Colin Watson  <cjwatson@debian.org>
5847
5848         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
5849         s/S_ISNLK/S_ISLNK/.
5850
5851 2008-01-09  Bruno Haible  <bruno@clisp.org>
5852
5853         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
5854         and other files.
5855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
5856         if it's only a guess.
5857         * modules/memmem: Simplify by depending on memmem-simple.
5858
5859 2008-01-09  Bruno Haible  <bruno@clisp.org>
5860
5861         Work around OpenBSD 4.0 tdelete() bug.
5862         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
5863         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
5864         macros and don't redefine the enum values.
5865         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
5866         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
5867         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
5868
5869 2008-01-09  Bruno Haible  <bruno@clisp.org>
5870
5871         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
5872         (main): Don't perform the tests if setlocale did not install a UTF-8
5873         locale. Needed on OpenBSD 4.0.
5874         * modules/wcwidth-tests (Depends-on): Add localcharset.
5875
5876 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5877
5878         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
5879         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
5880         * NEWS: announce this.
5881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
5882
5883 2008-01-09  Simon Josefsson  <simon@josefsson.org>
5884         and Eric Blake  <ebb9@byu.net>
5885
5886         Add memmem-simple module.
5887         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
5888         (gl_FUNC_MEMMEM): Separate performance from presence checks.
5889         * modules/memmem-simple: New file.
5890         * modules/memmem (Description): Tweak.
5891         * MODULES.html.sh (string handling): Mention new module.
5892         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
5893         addressed by memmem-simple.
5894         * NEWS: Document the difference.
5895
5896 2008-01-09  Eric Blake  <ebb9@byu.net>
5897
5898         Give gcc some memmem optimization hints.
5899         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
5900         (strcasestr): Declare as pure.
5901         * modules/memmem (Maintainer): Claim my implementation.
5902
5903 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5904
5905         Support AIX 6.1 and higher.
5906         * build-aux/config.libpath: Likewise.
5907         * build-aux/config.rpath: Likewise.
5908
5909 2008-01-08  Jim Meyering  <meyering@redhat.com>
5910             Bruno Haible  <bruno@clisp.org>
5911
5912         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
5913         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
5914         Reported by Peter Fales in
5915         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
5916
5917 2008-01-08  Bruno Haible  <bruno@clisp.org>
5918
5919         * modules/unictype/category-of (Depends-on): Add
5920         unictype/category-none.
5921         * modules/unictype/category-and-tests (Depends-on): Add
5922         unictype/category-{L,N,Lu,Nd}.
5923         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
5924         * modules/unictype/category-or-tests (Depends-on): Add
5925         unictype/category-{L,N}.
5926         * modules/unictype/category-name-tests (Depends-on): Add
5927         unictype/category-{Z,Nl}.
5928         Reported by Simon Josefsson.
5929
5930 2008-01-08  Bruno Haible  <bruno@clisp.org>
5931
5932         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
5933         convention better.
5934         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
5935         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
5936         Reported by Peter Miller <millerp@canb.auug.org.au>.
5937
5938 2008-01-08  Eric Blake  <ebb9@byu.net>
5939
5940         Rewrite memmem to guarantee linear complexity without malloc.
5941         * lib/memmem.c (memmem): Use Two-Way rather than
5942         Knuth-Morris-Pratt, to allow O(1) space usage.
5943         (critical_factorization, two_way_short_needle)
5944         (two_way_long_needle): New functions.
5945         (knuth_morris_pratt): Delete.
5946         * modules/memmem (Depends-on): No longer need malloca or stdbool.
5947         Add stdint.
5948         * tests/test-memmem.c (main): Add tests for periodic needle and
5949         sublinear performance.
5950         * doc/functions/memmem.texi (memmem): Document other deficiencies
5951         in cygwin and older glibc.
5952
5953 2008-01-08  Bruno Haible  <bruno@clisp.org>
5954
5955         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
5956         augmentation.
5957
5958 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
5959
5960         Add a configure time option: --disable-acl.
5961         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
5962         AC_ARG_ENABLE(acl).
5963
5964 2008-01-06  Simon Josefsson  <simon@josefsson.org>
5965
5966         * tests/test-localename.c: Don't include obsolete "setenv.h".
5967
5968         * modules/localename-tests (Depends-on): Need unsetenv.
5969
5970 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5971
5972         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
5973
5974 2008-01-06  Colin Watson  <cjwatson@debian.org>
5975
5976         * users.txt: Add man-db.
5977
5978 2008-01-07  Bruno Haible  <bruno@clisp.org>
5979
5980         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
5981         previous section name.
5982
5983 2008-01-07  Bruno Haible  <bruno@clisp.org>
5984
5985         * lib/progname.c (set_program_name): Don't strip off a leading
5986         "lt-" prefix outside a .libs directory.
5987         Suggested by Paul Eggert.
5988
5989 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
5990             Bruno Haible  <bruno@clisp.org>
5991
5992         Improve memory cleanup in 'relocatable' module.
5993         * lib/relocatable.h (compute_curr_prefix): Change return type to
5994         'char *'.
5995         * lib/relocatable.c (compute_curr_prefix): Change return type to
5996         'char *'. Free curr_installdir after use.
5997         (relocate): Free curr_prefix_better after use.
5998         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
5999
6000 2008-01-01  Bruno Haible  <bruno@clisp.org>
6001
6002         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
6003         failure on older glibc systems.
6004         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6005
6006 2008-01-05  Eric Blake  <ebb9@byu.net>
6007
6008         Avoid quadratic system memmem.
6009         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
6010         Reported by Ralf Wildenhues.
6011
6012         Fix memmem test for mingw.
6013         * modules/memmem-tests (configure.ac): Check for alarm.
6014         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
6015         it.
6016         * doc/functions/memmem.texi: New file.
6017         * doc/gnulib.texi (Function Substitutes): Add memmem.
6018         Reported by Bruno Haible.
6019
6020 2008-01-04  Bruno Haible  <bruno@clisp.org>
6021
6022         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
6023         Require gl_HEADER_STRINGS_H_DEFAULTS, not
6024         gl_HEADER_STRING_H_DEFAULTS.
6025
6026 2008-01-04  Eric Blake  <ebb9@byu.net>
6027
6028         Shorten duration of memmem test.
6029         * tests/test-memmem.c (main): Use alarm to declare failure if test
6030         is taking too long.
6031         Reported by Ralf Wildenhues.
6032
6033 2007-12-21  Simon Josefsson  <simon@josefsson.org>
6034
6035         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
6036         string, needed by strerror.
6037
6038 2008-01-03  Colin Watson  <cjwatson@debian.org>
6039             Bruno Haible  <bruno@clisp.org>
6040
6041         * doc/gnulib-tool.texi (Localization): New section.
6042
6043 2008-01-02  Bruno Haible  <bruno@clisp.org>
6044
6045         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
6046         variables to 'unsigned char *' type.
6047         Reported by Paul Eggert.
6048
6049 2008-01-02  Jim Meyering  <jim@meyering.net>
6050
6051         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
6052
6053 2007-12-31  Jim Meyering  <jim@meyering.net>
6054
6055         Avoid use of private FTS type name.
6056         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
6057
6058 2007-12-30  Karl Berry  <karl@gnu.org>
6059
6060         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
6061         work around defect in Texinfo and/or the standalone Info browser.
6062
6063 2007-12-30  Bruno Haible  <bruno@clisp.org>
6064
6065         Unify 5 copies of the KMP code.
6066         * lib/str-kmp.h: New file.
6067         * lib/c-strcasestr.c: Include str-kmp.h.
6068         (knuth_morris_pratt): Remove function.
6069         (c_strcasestr): Update.
6070         * lib/c-strstr.c: Include str-kmp.h.
6071         (knuth_morris_pratt): Remove function.
6072         (c_strcasestr): Update.
6073         * lib/mbscasestr.c: Include str-kmp.h.
6074         (knuth_morris_pratt_unibyte): Remove function.
6075         * lib/mbsstr.c: Include str-kmp.h.
6076         (knuth_morris_pratt_unibyte): Remove function.
6077         * lib/strcasestr.c: Include str-kmp.h.
6078         (knuth_morris_pratt): Remove function.
6079         (strcasestr): Update.
6080         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
6081         * modules/c-strstr (Files): Likewise.
6082         * modules/mbscasestr (Files): Likewise.
6083         * modules/mbsstr (Files): Likewise.
6084         * modules/strcasestr (Files): Likewise.
6085         Suggested by Paul Eggert.
6086
6087 2007-12-30  Bruno Haible  <bruno@clisp.org>
6088
6089         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
6090         defined.
6091
6092 2007-12-30  Bruno Haible  <bruno@clisp.org>
6093
6094         * lib/xmalloca.h: Include xalloc.h.
6095         (xnmalloca): New macro.
6096
6097 2007-12-30  Bruno Haible  <bruno@clisp.org>
6098
6099         * lib/malloca.h (nmalloca): New macro.
6100         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
6101         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
6102         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
6103         knuth_morris_pratt_multibyte): Likewise.
6104         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
6105         knuth_morris_pratt_multibyte): Likewise.
6106         * lib/memmem.c (knuth_morris_pratt): Likewise.
6107         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
6108
6109 2007-12-25  Bruno Haible  <bruno@clisp.org>
6110
6111         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
6112         * lib/glob.c: Don't include openat.h.
6113         (link_exists2_p): Add back the code that deals with the
6114         !GLOB_ALTDIRFUNC case.
6115         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
6116         let it do the filename concatenation.
6117         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
6118         * modules/glob (Depends-on): Remove openat.
6119
6120 2007-12-31  Bruno Haible  <bruno@clisp.org>
6121
6122         * modules/dirfd (License): Change to LGPLv2+.
6123         Approved by Jim Meyering.
6124
6125 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6126
6127         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
6128         when multiplying M by sizeof (size_t).
6129
6130 2007-12-10  Martin Lambers  <marlam@marlam.de>
6131
6132         Override getpagesize on mingw.
6133         * lib/getpagesize.c: New file.
6134         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
6135         * modules/getpagesize (Files): Add lib/getpagesize.c.
6136         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
6137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6138         REPLACE_GETPAGESIZE.
6139         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
6140
6141 2007-12-25  Bruno Haible  <bruno@clisp.org>
6142
6143         * modules/localcharset (Notice): New field.
6144         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
6145         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6146
6147 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6148             Bruno Haible  <bruno@clisp.org>
6149
6150         Avoid using the syntax symbol() in formatted documentation.
6151         * MODULES.html.sh (func_module): When replacing symbol() with a
6152         hyperlink, remove the parentheses. Show an error if some remain.
6153         Recognize and render the '...' syntax.
6154         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
6155         Rework. Add paragraph about GCC's inlining.
6156         * doc/alloca.texi: Likewise.
6157         * doc/error.texi: Remove parentheses from symbol reference.
6158         * doc/gnulib-intro.texi: Likewise.
6159         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
6160         * modules/fnmatch (Description): Reword to say "the ... function".
6161         * modules/full-read (Description): Likewise.
6162         * modules/full-write (Description): Likewise.
6163         * modules/safe-read (Description): Likewise.
6164         * modules/safe-write (Description): Likewise.
6165         * modules/strchrnul (Description): Likewise.
6166         * modules/trim (Description): Likewise.
6167         * modules/error (Description): Remove parentheses from symbol
6168         references.
6169         * modules/verror (Description): Likewise.
6170         Reported by Karl Berry.
6171
6172 2007-12-25  Bruno Haible  <bruno@clisp.org>
6173
6174         Fixup after 2007-10-16 commit.
6175         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
6176
6177 2007-12-24  Bruno Haible  <bruno@clisp.org>
6178
6179         Make --enable-relocatable work with DESTDIR.
6180         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
6181         to compute installdir from destprog.
6182         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
6183         also set the RELOC_DESTDIR variable.
6184         Reported by Левашев Иван <octagram@bluebottle.com>.
6185
6186 2007-12-24  Bruno Haible  <bruno@clisp.org>
6187
6188         Fix link error due to xalloc_die().
6189         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
6190         of xreadlink.
6191         * lib/relocwrapper.c: Update comments.
6192         * build-aux/install-reloc: Remove xreadlink.c from file list.
6193         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
6194         xreadlink.c.
6195         Reported by Левашев Иван <octagram@bluebottle.com>.
6196
6197 2007-12-24  Bruno Haible  <bruno@clisp.org>
6198
6199         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
6200         * lib/setenv.h: Remove file.
6201         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
6202         lib/setenv.h.
6203         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
6204         (Depends-on): Add stdlib.
6205         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
6206         gl_FUNC_UNSETENV.
6207         (Include): Replace setenv.h with <stdlib.h>.
6208         * modules/unsetenv: New file.
6209         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
6210         * lib/unsetenv.c: Include <stdlib.h> first.
6211         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
6212         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
6213         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
6214         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
6215         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
6216         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
6218         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6219         * doc/functions/unsetenv.texi: Update.
6220         * modules/xsetenv (Depends-on): Add unsetenv.
6221         * modules/getdate (Depends-on): Likewise.
6222         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
6223         * lib/xsetenv.c: Don't include setenv.h.
6224         * lib/getdate.y: Likewise.
6225         * lib/relocwrapper.c: Likewise.
6226         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
6227         (Depends-on): Add stdlib.
6228         * NEWS: Mention the changes.
6229         Reported by Левашев Иван <octagram@bluebottle.com>.
6230
6231 2007-12-23  Bruno Haible  <bruno@clisp.org>
6232
6233         * lib/memmem.c (memmem): Use lowercase variable names. Tab
6234         indentation.
6235
6236 2007-12-23  Bruno Haible  <bruno@clisp.org>
6237
6238         * lib/c-strcasestr.c: Add more comments.
6239         * lib/c-strstr.c: Likewise.
6240         * lib/mbscasestr.c: Likewise.
6241         * lib/mbsstr.c: Likewise.
6242         * lib/strcasestr.c: Likewise.
6243         * lib/memmem.c: Likewise.
6244
6245 2007-12-23  Bruno Haible  <bruno@clisp.org>
6246
6247         * tests/test-memmem.c: Include <string.h> first.
6248
6249 2007-12-22  Bruno Haible  <bruno@clisp.org>
6250
6251         * gnulib-tool (func_create_testdir): Change $auxdir while generating
6252         the contents of $testsbase.
6253         Reported by Ralf Wildenhues.
6254
6255 2007-12-22  Bruno Haible  <bruno@clisp.org>
6256
6257         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
6258         two variables local_ldadd_before, local_ldadd_last.
6259
6260 2007-12-20  Eric Blake  <ebb9@byu.net>
6261
6262         Work around circular library issue when cross-compiling.
6263         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
6264         that progname.o does not need to pull in rpl_memcmp.
6265
6266 2007-12-19  Eric Blake  <ebb9@byu.net>
6267
6268         Fix memmem to avoid O(n^2) worst-case complexity.
6269         * lib/memmem.c (knuth_morris_pratt): New function.
6270         (memmem): Use it if first few naive iterations fail.
6271         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
6272         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
6273         * modules/memchr (License): Likewise.
6274         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
6275         malloca.
6276         * tests/test-memmem.c: Rewrite, borrowing ideas from
6277         test-mbsstr1.c; the old version wouldn't even compile!
6278         * modules/memmem-tests: New file.
6279         * lib/string.in.h (rpl_memmem): Add declaration.
6280         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
6281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
6282         REPLACE_MEMMEM.
6283
6284 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6285
6286         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
6287         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
6288         before any system include files, and undef after them all.  This
6289         should fix a problem on VMS reported by John E. Malmberg in
6290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
6291
6292 2007-12-17  Eric Blake  <ebb9@byu.net>
6293
6294         Revert addition of verify, for BSD/OS.
6295         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
6296         can't handle large files, for the sake of obsolete platforms.
6297         * modules/fseeko (Depends-on): Remove verify.
6298         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
6299         * doc/functions/ftello.texi (ftello): Likewise.
6300         * doc/functions/fgetpos.texi (fgetpos): Likewise.
6301         Reported by Larry Jones.
6302
6303 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
6304
6305         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
6306         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
6307
6308 2007-12-17  Jim Meyering  <meyering@redhat.com>
6309
6310         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6311         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6312         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6313         * modules/getcwd (Depends-on): Add openat.
6314         Reported by Petr Salinger.
6315
6316 2007-12-17  Bruno Haible  <bruno@clisp.org>
6317
6318         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6319         avoid a segmentation fault of the configure test on x86_64 systems.
6320
6321 2007-12-15  Jim Meyering  <meyering@redhat.com>
6322
6323         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6324
6325 2007-12-13  Eric Blake  <ebb9@byu.net>
6326
6327         Another fseek test.
6328         * tests/test-fseek.c (main): Also test ungetc handling.
6329         * tests/test-fseeko.c (main): Likewise.
6330         * modules/fseeko (Depends-on): Add verify.
6331         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6332         large.
6333         Reported by Larry Jones.
6334
6335         Fix fseeko on mingw.
6336         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6337         seek.
6338
6339         Beef up fseek tests.
6340         * tests/test-fseek.c (main): Also test eof handling.
6341         * tests/test-fseeko.c (main): Likewise.
6342         Reported by Larry Jones.
6343
6344 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6345
6346         Fix fseeko on BSD-based platforms.
6347         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6348         successful seek.
6349
6350 2007-12-12  Eric Blake  <ebb9@byu.net>
6351
6352         Allow circular dependency of separate libtests.a
6353         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6354         when use_libtests.
6355
6356 2007-12-11  Eric Blake  <ebb9@byu.net>
6357
6358         Fix bug with -0.0L in previous patch.
6359         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6360         * tests/test-isnan.c (main): Also test on zeroes.
6361         * tests/test-isnanf.c (main): Likewise.
6362         * tests/test-isnanl.h (main): Likewise.
6363
6364         Detect pseudo-denormals on x86 even when cross-compiling.
6365         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6366         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6367         invalid bit patterns that happen to satisfy ==.
6368
6369         Avoid link failures with separate libtests.a.
6370         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6371         last, to satisfy circular dependencies.
6372
6373 2007-12-11  Eric Blake  <ebb9@byu.net>
6374         and Bruno Haible  <bruno@clisp.org>
6375
6376         Fix OpenBSD 4.0 <float.h> handling of long double.
6377         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6378         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6379         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6380
6381 2007-12-11  Jim Meyering  <meyering@redhat.com>
6382
6383         * users.txt: Add libvirt.
6384
6385         Support versions of autoconf prior to 2.59c.
6386         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6387         if it is not already defined.
6388
6389 2007-12-09  Bruno Haible  <bruno@clisp.org>
6390
6391         Let 'gnulib-tool --import' collect sources needed for the tests in
6392         tests/ rather than in lib/.
6393         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6394         argument. If true, add rules to generate libtests.a, and put libtests.a
6395         into $(LDADD). Consider source files in subdirectories and set
6396         uses_subdirs.
6397         (func_emit_initmacro_start, func_emit_initmacro_end,
6398         func_emit_initmacro_done): Pass all arguments explicitly.
6399         (func_import): Determine two module lists main_modules,
6400         testsrelated_modules. Determine use_libtests. Determine two variables
6401         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6402         instead of just sed_transform_lib_file. Determine two variables
6403         main_files and testsrelated_files. Compute 'files' as the union of
6404         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6405         func_add_or_update. In the generated gnulib-comp.m4, collect the
6406         object files for tests/ in different variables than those for lib/.
6407         Substitute LIBTESTS_LIBDEPS.
6408         (func_create_testdir): Combine the uses_subdirs results from
6409         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
6410
6411 2007-12-09  Bruno Haible  <bruno@clisp.org>
6412
6413         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
6414         the build-aux directory.
6415
6416 2007-12-09  Bruno Haible  <bruno@clisp.org>
6417
6418         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
6419         introduced on 2006-09-09.
6420
6421 2007-12-07  Jim Meyering  <meyering@redhat.com>
6422
6423         Let these macros work also with autoconf-2.59.
6424         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
6425         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
6426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6427
6428 2007-12-06  Jim Meyering  <meyering@redhat.com>
6429
6430         Avoid a configure-time syntax error in gl_FUNC_ACL.
6431         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6432         function in each branch, before testing the cache variable.
6433
6434 2007-12-04  Eric Blake  <ebb9@byu.net>
6435
6436         Make scripts executable.
6437         * build-aux/config.guess: Add execute permissions.
6438         * build-aux/config.sub: Likewise.
6439         * build-aux/gendocs.sh: Likewise.
6440
6441         Fix frexp on mingw.
6442         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6443         cross-compiling.
6444         * doc/functions/frexp.texi (frexp): Document the bug.
6445
6446         Make cygwin fseeko check more reliable.
6447         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
6448         version numbers, rather than unrelated feature check.
6449         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
6450         * doc/functions/ftello.texi (ftello): Likewise.
6451         Reported by Bruno Haible.
6452
6453         * m4/strerror.m4: Bump version number.
6454
6455 2007-12-03  Bruno Haible  <bruno@clisp.org>
6456
6457         * doc/functions/mprotect.texi: Mention the mingw problem.
6458
6459 2007-12-03  Eric Blake  <ebb9@byu.net>
6460
6461         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
6462         REPLACE_STRERROR is initialized before this macro.
6463
6464 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6465
6466         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
6467         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
6468         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
6469         put -lsec in even for programs other than 'ls'.  This fixes a problem
6470         for gettext reported by Bruno Haible in
6471         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
6472         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
6473         Add support for Solaris 10.  This isn't efficient, but should get the
6474         job done for now.
6475
6476 2007-12-03  James Youngman  <jay@gnu.org>
6477
6478         * doc/regexprops-generic.texi: change "an close-group" to "a
6479         close-group" and "illegal" to "not allowed".
6480
6481 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6482
6483         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
6484         pr_byname.h. Needed for the rare case when the maintainer has done
6485         "make maintainer-clean" in the source directory and then attempts a
6486         build outside the source directory.
6487         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
6488         scripts_byname.h.
6489
6490 2007-12-02  Martin Lambers <marlam@marlam.de>
6491             Bruno Haible  <bruno@clisp.org>
6492
6493         * lib/getpagesize.h: Remove file.
6494         * lib/unistd.in.h: Include declaration of getpagesize here.
6495         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
6496         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
6497         HAVE_SYS_PARAM_H.
6498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
6499         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6500         * modules/getpagesize (Files): Remove lib/getpagesize.h.
6501         (Depends-on): Add unistd.
6502         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6503         (Include): Use <unistd.h> instead of getpagesize.h.
6504         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
6505         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6506         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
6507         gl_GETPAGESIZE invocation, already handled by module dependency.
6508         * lib/pagealign_alloc.c: Don't include getpagesize.h.
6509
6510 2007-12-02  Bruno Haible  <bruno@clisp.org>
6511
6512         * modules/strings-tests: New file.
6513         * tests/test-strings.c: New file.
6514
6515         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
6516         * lib/strings.in.h: New file.
6517         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
6518         * m4/strings_h.m4: New file.
6519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
6520         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
6521         * modules/strings: New file.
6522         * modules/string (Makefile.am): Update.
6523         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
6524         Reported by Karl Berry.
6525
6526 2007-12-01  Eric Blake  <ebb9@byu.net>
6527
6528         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
6529         accomodate fix in cygwin 1.5.25.
6530
6531 2007-12-01  Jim Meyering  <meyering@redhat.com>
6532
6533         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
6534         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6535         that would inhibit utf8-optimization of a regexp containing line-
6536         or buffer-anchors, e.g., `^', `$'.
6537
6538 2007-11-30  Bruno Haible  <bruno@clisp.org>
6539
6540         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
6541         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
6542         glthread_recursive_lock_init.
6543         * lib/lock.c (glthread_recursive_lock_init)
6544         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
6545         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6546
6547 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6548
6549         New function qset_acl, like set_acl but with syscall semantics.
6550         * lib/acl.h (qset_acl): New decl.
6551         * lib/acl.c (qset_acl): New function.
6552         (set_acl): Use new function.  Use more-consistent diagnostics.
6553
6554 2007-11-28  Jim Meyering  <meyering@redhat.com>
6555
6556         * modules/physmem (License): Change from GPL to LGPLv2+.
6557
6558 2007-11-26  Bruno Haible  <bruno@clisp.org>
6559
6560         * lib/vasnprintf.c (decode_long_double): Don't abort if the
6561         'long double' type has excess precision.
6562         Reported by Jim Meyering in
6563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
6564
6565 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6566
6567         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
6568         Sync from <http://gnu.org/licenses>.
6569         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
6570         with license text from same location.
6571         * doc/maintain.texi, doc/standards.texi:  Sync from
6572         <http://savannah.gnu.org/projects/gnustandards>.
6573
6574 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
6575         and Jim Meyering  <meyering@redhat.com>
6576
6577         Adjust getdate' grammar to accept a slightly more regular language.
6578         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
6579         Before, the former was rejected.
6580         * lib/getdate.y (digits_to_date_time): New function, factored
6581         out of ...
6582         (number): ...here.  Just call digits_to_date_time.
6583         (hybrid): New non-terminal to handle an <unsigned number,
6584         signed relative offset> sequence consistently.
6585
6586 2007-11-18  Jim Meyering  <meyering@redhat.com>
6587
6588         Pull my changes from coreutils:
6589         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
6590         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
6591         use of $gnulib_tool_option_extras, so that it's separated from the
6592         preceding argument.
6593
6594         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
6595         * build-aux/bootstrap (cp_mark_as_generated): Create any required
6596         parent destination directories before copying a file into place.
6597
6598 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6599
6600         bootstrap: work also with 4-argument variant of AC_INIT
6601         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
6602
6603 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6604
6605         Port test-getaddrinfo to Solaris.
6606         Problem reported by Bruno Haible in
6607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
6608         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
6609         explanation of setting 'hints'.
6610         Don't reject an implementation merely because it returns EAI_SERVICE.
6611         (EAI_SERVICE): Define to 0 if not defined.
6612
6613 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6614
6615         The license of gnu-make and posix-shell is now "GPLed build tool".
6616         * modules/gnu-make (License): Likewise.
6617         * modules/posix-shell (License): Likewise.
6618
6619         New module posix-shell, for determining a POSIX shell
6620         or perhaps something that is close enough to a POSIX shell.
6621         * m4/posix-shell.m4: New file.
6622         * modules/posix-shell: New file.
6623
6624         * MODULES.html.sh: Mention new module.
6625
6626         New module gnu-make, for determining whether we're using GNU Make.
6627         * m4/gnu-make.m4: New file.
6628         * modules/gnu-make: New file.
6629         * MODULES.html.sh: Mention new module.
6630
6631 2007-11-14  Jim Meyering  <meyering@redhat.com>
6632
6633         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
6634         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
6635         use this macro to create a function _definition_.
6636         Remove useless "#undef ARGMATCH_DIE".
6637
6638 2007-11-14  Bruno Haible  <bruno@clisp.org>
6639
6640         * lib/config.charset: Update for OpenBSD 4.1.
6641         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
6642
6643 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6644
6645         Document 64-bit #if problems in stdint.texi.
6646         * doc/headers/stdint.texi (stdint.h): Mention problems with
6647         64-bit-#if, and how to work around them.
6648
6649         Don't insist on 'long long int' support in the preprocessor.  It
6650         breaks too many things.  For example, PRIdMAX still uses a 'long
6651         long int' format with the latest Sun compiler, even though
6652         HAVE_LONG_LONG_INT isn't defined due to that compiler's
6653         preprocessor problem.  This causes the latest coreutils to dump
6654         core on Solaris 10 sparc with the Sun C compiler.
6655         Instead, fix the 2007-10-16 problem in a different way, by evaluating
6656         the troublesome expressions at configure-time, not at #if-time.
6657         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
6658         preprocessor.
6659         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
6660         compile-time C checks, done at 'configure'-time.
6661         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
6662         * modules/inttypes (Makefile): Substitute the new symbols that
6663         gl_INTTYPES_H now generates.
6664         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
6665
6666 2007-11-12  Bruno Haible  <bruno@clisp.org>
6667
6668         Tests for Unicode character classification functions.
6669
6670         * modules/unictype/bidicategory-byname-tests: New file.
6671         * modules/unictype/bidicategory-name-tests: New file.
6672         * modules/unictype/bidicategory-of-tests: New file.
6673         * modules/unictype/bidicategory-test-tests: New file.
6674         * modules/unictype/block-list-tests: New file.
6675         * modules/unictype/block-of-tests: New file.
6676         * modules/unictype/block-test-tests: New file.
6677         * modules/unictype/category-C-tests: New file.
6678         * modules/unictype/category-Cc-tests: New file.
6679         * modules/unictype/category-Cf-tests: New file.
6680         * modules/unictype/category-Cn-tests: New file.
6681         * modules/unictype/category-Co-tests: New file.
6682         * modules/unictype/category-Cs-tests: New file.
6683         * modules/unictype/category-L-tests: New file.
6684         * modules/unictype/category-Ll-tests: New file.
6685         * modules/unictype/category-Lm-tests: New file.
6686         * modules/unictype/category-Lo-tests: New file.
6687         * modules/unictype/category-Lt-tests: New file.
6688         * modules/unictype/category-Lu-tests: New file.
6689         * modules/unictype/category-M-tests: New file.
6690         * modules/unictype/category-Mc-tests: New file.
6691         * modules/unictype/category-Me-tests: New file.
6692         * modules/unictype/category-Mn-tests: New file.
6693         * modules/unictype/category-N-tests: New file.
6694         * modules/unictype/category-Nd-tests: New file.
6695         * modules/unictype/category-Nl-tests: New file.
6696         * modules/unictype/category-No-tests: New file.
6697         * modules/unictype/category-P-tests: New file.
6698         * modules/unictype/category-Pc-tests: New file.
6699         * modules/unictype/category-Pd-tests: New file.
6700         * modules/unictype/category-Pe-tests: New file.
6701         * modules/unictype/category-Pf-tests: New file.
6702         * modules/unictype/category-Pi-tests: New file.
6703         * modules/unictype/category-Po-tests: New file.
6704         * modules/unictype/category-Ps-tests: New file.
6705         * modules/unictype/category-S-tests: New file.
6706         * modules/unictype/category-Sc-tests: New file.
6707         * modules/unictype/category-Sk-tests: New file.
6708         * modules/unictype/category-Sm-tests: New file.
6709         * modules/unictype/category-So-tests: New file.
6710         * modules/unictype/category-Z-tests: New file.
6711         * modules/unictype/category-Zl-tests: New file.
6712         * modules/unictype/category-Zp-tests: New file.
6713         * modules/unictype/category-Zs-tests: New file.
6714         * modules/unictype/category-and-not-tests: New file.
6715         * modules/unictype/category-and-tests: New file.
6716         * modules/unictype/category-byname-tests: New file.
6717         * modules/unictype/category-name-tests: New file.
6718         * modules/unictype/category-none-tests: New file.
6719         * modules/unictype/category-of-tests: New file.
6720         * modules/unictype/category-or-tests: New file.
6721         * modules/unictype/category-test-withtable-tests: New file.
6722         * modules/unictype/combining-class-tests: New file.
6723         * modules/unictype/ctype-alnum-tests: New file.
6724         * modules/unictype/ctype-alpha-tests: New file.
6725         * modules/unictype/ctype-blank-tests: New file.
6726         * modules/unictype/ctype-cntrl-tests: New file.
6727         * modules/unictype/ctype-digit-tests: New file.
6728         * modules/unictype/ctype-graph-tests: New file.
6729         * modules/unictype/ctype-lower-tests: New file.
6730         * modules/unictype/ctype-print-tests: New file.
6731         * modules/unictype/ctype-punct-tests: New file.
6732         * modules/unictype/ctype-space-tests: New file.
6733         * modules/unictype/ctype-upper-tests: New file.
6734         * modules/unictype/ctype-xdigit-tests: New file.
6735         * modules/unictype/decimal-digit-tests: New file.
6736         * modules/unictype/digit-tests: New file.
6737         * modules/unictype/mirror-tests: New file.
6738         * modules/unictype/numeric-tests: New file.
6739         * modules/unictype/property-alphabetic-tests: New file.
6740         * modules/unictype/property-ascii-hex-digit-tests: New file.
6741         * modules/unictype/property-bidi-arabic-digit-tests: New file.
6742         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
6743         * modules/unictype/property-bidi-block-separator-tests: New file.
6744         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
6745         * modules/unictype/property-bidi-common-separator-tests: New file.
6746         * modules/unictype/property-bidi-control-tests: New file.
6747         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
6748         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
6749         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
6750         * modules/unictype/property-bidi-european-digit-tests: New file.
6751         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
6752         * modules/unictype/property-bidi-left-to-right-tests: New file.
6753         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
6754         * modules/unictype/property-bidi-other-neutral-tests: New file.
6755         * modules/unictype/property-bidi-pdf-tests: New file.
6756         * modules/unictype/property-bidi-segment-separator-tests: New file.
6757         * modules/unictype/property-bidi-whitespace-tests: New file.
6758         * modules/unictype/property-byname-tests: New file.
6759         * modules/unictype/property-combining-tests: New file.
6760         * modules/unictype/property-composite-tests: New file.
6761         * modules/unictype/property-currency-symbol-tests: New file.
6762         * modules/unictype/property-dash-tests: New file.
6763         * modules/unictype/property-decimal-digit-tests: New file.
6764         * modules/unictype/property-default-ignorable-code-point-tests: New file.
6765         * modules/unictype/property-deprecated-tests: New file.
6766         * modules/unictype/property-diacritic-tests: New file.
6767         * modules/unictype/property-extender-tests: New file.
6768         * modules/unictype/property-format-control-tests: New file.
6769         * modules/unictype/property-grapheme-base-tests: New file.
6770         * modules/unictype/property-grapheme-extend-tests: New file.
6771         * modules/unictype/property-grapheme-link-tests: New file.
6772         * modules/unictype/property-hex-digit-tests: New file.
6773         * modules/unictype/property-hyphen-tests: New file.
6774         * modules/unictype/property-id-continue-tests: New file.
6775         * modules/unictype/property-id-start-tests: New file.
6776         * modules/unictype/property-ideographic-tests: New file.
6777         * modules/unictype/property-ids-binary-operator-tests: New file.
6778         * modules/unictype/property-ids-trinary-operator-tests: New file.
6779         * modules/unictype/property-ignorable-control-tests: New file.
6780         * modules/unictype/property-iso-control-tests: New file.
6781         * modules/unictype/property-join-control-tests: New file.
6782         * modules/unictype/property-left-of-pair-tests: New file.
6783         * modules/unictype/property-line-separator-tests: New file.
6784         * modules/unictype/property-logical-order-exception-tests: New file.
6785         * modules/unictype/property-lowercase-tests: New file.
6786         * modules/unictype/property-math-tests: New file.
6787         * modules/unictype/property-non-break-tests: New file.
6788         * modules/unictype/property-not-a-character-tests: New file.
6789         * modules/unictype/property-numeric-tests: New file.
6790         * modules/unictype/property-other-alphabetic-tests: New file.
6791         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
6792         * modules/unictype/property-other-grapheme-extend-tests: New file.
6793         * modules/unictype/property-other-id-continue-tests: New file.
6794         * modules/unictype/property-other-id-start-tests: New file.
6795         * modules/unictype/property-other-lowercase-tests: New file.
6796         * modules/unictype/property-other-math-tests: New file.
6797         * modules/unictype/property-other-uppercase-tests: New file.
6798         * modules/unictype/property-paired-punctuation-tests: New file.
6799         * modules/unictype/property-paragraph-separator-tests: New file.
6800         * modules/unictype/property-pattern-syntax-tests: New file.
6801         * modules/unictype/property-pattern-white-space-tests: New file.
6802         * modules/unictype/property-private-use-tests: New file.
6803         * modules/unictype/property-punctuation-tests: New file.
6804         * modules/unictype/property-quotation-mark-tests: New file.
6805         * modules/unictype/property-radical-tests: New file.
6806         * modules/unictype/property-sentence-terminal-tests: New file.
6807         * modules/unictype/property-soft-dotted-tests: New file.
6808         * modules/unictype/property-space-tests: New file.
6809         * modules/unictype/property-terminal-punctuation-tests: New file.
6810         * modules/unictype/property-test-tests: New file.
6811         * modules/unictype/property-titlecase-tests: New file.
6812         * modules/unictype/property-unassigned-code-value-tests: New file.
6813         * modules/unictype/property-unified-ideograph-tests: New file.
6814         * modules/unictype/property-uppercase-tests: New file.
6815         * modules/unictype/property-variation-selector-tests: New file.
6816         * modules/unictype/property-white-space-tests: New file.
6817         * modules/unictype/property-xid-continue-tests: New file.
6818         * modules/unictype/property-xid-start-tests: New file.
6819         * modules/unictype/property-zero-width-tests: New file.
6820         * modules/unictype/scripts-tests: New file.
6821         * modules/unictype/syntax-c-ident-tests: New file.
6822         * modules/unictype/syntax-c-whitespace-tests: New file.
6823         * modules/unictype/syntax-java-ident-tests: New file.
6824         * modules/unictype/syntax-java-whitespace-tests: New file.
6825         * tests/unictype/test-bidi_byname.c: New file.
6826         * tests/unictype/test-bidi_name.c: New file.
6827         * tests/unictype/test-bidi_of.c: New file.
6828         * tests/unictype/test-bidi_test.c: New file.
6829         * tests/unictype/test-block_list.c: New file.
6830         * tests/unictype/test-block_of.c: New file.
6831         * tests/unictype/test-block_test.c: New file.
6832         * tests/unictype/test-categ_and.c: New file.
6833         * tests/unictype/test-categ_and_not.c: New file.
6834         * tests/unictype/test-categ_byname.c: New file.
6835         * tests/unictype/test-categ_name.c: New file.
6836         * tests/unictype/test-categ_none.c: New file.
6837         * tests/unictype/test-categ_of.c: New file.
6838         * tests/unictype/test-categ_or.c: New file.
6839         * tests/unictype/test-categ_test_withtable.c: New file.
6840         * tests/unictype/test-combining.c: New file.
6841         * tests/unictype/test-decdigit.c: New file.
6842         * tests/unictype/test-digit.c: New file.
6843         * tests/unictype/test-mirror.c: New file.
6844         * tests/unictype/test-numeric.c: New file.
6845         * tests/unictype/test-pr_byname.c: New file.
6846         * tests/unictype/test-pr_test.c: New file.
6847         * tests/unictype/test-predicate-part1.h: New file.
6848         * tests/unictype/test-predicate-part2.h: New file.
6849         * tests/unictype/test-scripts.c: New file.
6850         * tests/unictype/test-sy_c_ident.c: New file.
6851         * tests/unictype/test-sy_java_ident.c: New file.
6852
6853         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
6854         for Unicode 5.0.0.
6855         * tests/unictype/test-categ_Cc.c: Likewise.
6856         * tests/unictype/test-categ_Cf.c: Likewise.
6857         * tests/unictype/test-categ_Cn.c: Likewise.
6858         * tests/unictype/test-categ_Co.c: Likewise.
6859         * tests/unictype/test-categ_Cs.c: Likewise.
6860         * tests/unictype/test-categ_L.c: Likewise.
6861         * tests/unictype/test-categ_Ll.c: Likewise.
6862         * tests/unictype/test-categ_Lm.c: Likewise.
6863         * tests/unictype/test-categ_Lo.c: Likewise.
6864         * tests/unictype/test-categ_Lt.c: Likewise.
6865         * tests/unictype/test-categ_Lu.c: Likewise.
6866         * tests/unictype/test-categ_M.c: Likewise.
6867         * tests/unictype/test-categ_Mc.c: Likewise.
6868         * tests/unictype/test-categ_Me.c: Likewise.
6869         * tests/unictype/test-categ_Mn.c: Likewise.
6870         * tests/unictype/test-categ_N.c: Likewise.
6871         * tests/unictype/test-categ_Nd.c: Likewise.
6872         * tests/unictype/test-categ_Nl.c: Likewise.
6873         * tests/unictype/test-categ_No.c: Likewise.
6874         * tests/unictype/test-categ_P.c: Likewise.
6875         * tests/unictype/test-categ_Pc.c: Likewise.
6876         * tests/unictype/test-categ_Pd.c: Likewise.
6877         * tests/unictype/test-categ_Pe.c: Likewise.
6878         * tests/unictype/test-categ_Pf.c: Likewise.
6879         * tests/unictype/test-categ_Pi.c: Likewise.
6880         * tests/unictype/test-categ_Po.c: Likewise.
6881         * tests/unictype/test-categ_Ps.c: Likewise.
6882         * tests/unictype/test-categ_S.c: Likewise.
6883         * tests/unictype/test-categ_Sc.c: Likewise.
6884         * tests/unictype/test-categ_Sk.c: Likewise.
6885         * tests/unictype/test-categ_Sm.c: Likewise.
6886         * tests/unictype/test-categ_So.c: Likewise.
6887         * tests/unictype/test-categ_Z.c: Likewise.
6888         * tests/unictype/test-categ_Zl.c: Likewise.
6889         * tests/unictype/test-categ_Zp.c: Likewise.
6890         * tests/unictype/test-categ_Zs.c: Likewise.
6891         * tests/unictype/test-ctype_alnum.c: Likewise.
6892         * tests/unictype/test-ctype_alpha.c: Likewise.
6893         * tests/unictype/test-ctype_blank.c: Likewise.
6894         * tests/unictype/test-ctype_cntrl.c: Likewise.
6895         * tests/unictype/test-ctype_digit.c: Likewise.
6896         * tests/unictype/test-ctype_graph.c: Likewise.
6897         * tests/unictype/test-ctype_lower.c: Likewise.
6898         * tests/unictype/test-ctype_print.c: Likewise.
6899         * tests/unictype/test-ctype_punct.c: Likewise.
6900         * tests/unictype/test-ctype_space.c: Likewise.
6901         * tests/unictype/test-ctype_upper.c: Likewise.
6902         * tests/unictype/test-ctype_xdigit.c: Likewise.
6903         * tests/unictype/test-decdigit.h: Likewise.
6904         * tests/unictype/test-digit.h: Likewise.
6905         * tests/unictype/test-numeric.h: Likewise.
6906         * tests/unictype/test-pr_alphabetic.c: Likewise.
6907         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
6908         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6909         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6910         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
6911         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6912         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
6913         * tests/unictype/test-pr_bidi_control.c: Likewise.
6914         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
6915         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
6916         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6917         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6918         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6919         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6920         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6921         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6922         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
6923         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
6924         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
6925         * tests/unictype/test-pr_combining.c: Likewise.
6926         * tests/unictype/test-pr_composite.c: Likewise.
6927         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6928         * tests/unictype/test-pr_dash.c: Likewise.
6929         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6930         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
6931         * tests/unictype/test-pr_deprecated.c: Likewise.
6932         * tests/unictype/test-pr_diacritic.c: Likewise.
6933         * tests/unictype/test-pr_extender.c: Likewise.
6934         * tests/unictype/test-pr_format_control.c: Likewise.
6935         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6936         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6937         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6938         * tests/unictype/test-pr_hex_digit.c: Likewise.
6939         * tests/unictype/test-pr_hyphen.c: Likewise.
6940         * tests/unictype/test-pr_id_continue.c: Likewise.
6941         * tests/unictype/test-pr_id_start.c: Likewise.
6942         * tests/unictype/test-pr_ideographic.c: Likewise.
6943         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
6944         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
6945         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6946         * tests/unictype/test-pr_iso_control.c: Likewise.
6947         * tests/unictype/test-pr_join_control.c: Likewise.
6948         * tests/unictype/test-pr_left_of_pair.c: Likewise.
6949         * tests/unictype/test-pr_line_separator.c: Likewise.
6950         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6951         * tests/unictype/test-pr_lowercase.c: Likewise.
6952         * tests/unictype/test-pr_math.c: Likewise.
6953         * tests/unictype/test-pr_non_break.c: Likewise.
6954         * tests/unictype/test-pr_not_a_character.c: Likewise.
6955         * tests/unictype/test-pr_numeric.c: Likewise.
6956         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6957         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
6958         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
6959         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6960         * tests/unictype/test-pr_other_id_start.c: Likewise.
6961         * tests/unictype/test-pr_other_lowercase.c: Likewise.
6962         * tests/unictype/test-pr_other_math.c: Likewise.
6963         * tests/unictype/test-pr_other_uppercase.c: Likewise.
6964         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
6965         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
6966         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
6967         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
6968         * tests/unictype/test-pr_private_use.c: Likewise.
6969         * tests/unictype/test-pr_punctuation.c: Likewise.
6970         * tests/unictype/test-pr_quotation_mark.c: Likewise.
6971         * tests/unictype/test-pr_radical.c: Likewise.
6972         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6973         * tests/unictype/test-pr_soft_dotted.c: Likewise.
6974         * tests/unictype/test-pr_space.c: Likewise.
6975         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6976         * tests/unictype/test-pr_titlecase.c: Likewise.
6977         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6978         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6979         * tests/unictype/test-pr_uppercase.c: Likewise.
6980         * tests/unictype/test-pr_variation_selector.c: Likewise.
6981         * tests/unictype/test-pr_white_space.c: Likewise.
6982         * tests/unictype/test-pr_xid_continue.c: Likewise.
6983         * tests/unictype/test-pr_xid_start.c: Likewise.
6984         * tests/unictype/test-pr_zero_width.c: Likewise.
6985         * tests/unictype/test-sy_c_whitespace.c: Likewise.
6986         * tests/unictype/test-sy_java_whitespace.c: Likewise.
6987
6988 2007-11-12  Bruno Haible  <bruno@clisp.org>
6989
6990         Unicode character classification functions.
6991         * lib/unictype.h: New file.
6992         * modules/unictype/base: New file.
6993         * modules/unictype/category-L: New file.
6994         * modules/unictype/category-Lu: New file.
6995         * modules/unictype/category-Ll: New file.
6996         * modules/unictype/category-Lt: New file.
6997         * modules/unictype/category-Lm: New file.
6998         * modules/unictype/category-Lo: New file.
6999         * modules/unictype/category-M: New file.
7000         * modules/unictype/category-Mn: New file.
7001         * modules/unictype/category-Mc: New file.
7002         * modules/unictype/category-Me: New file.
7003         * modules/unictype/category-N: New file.
7004         * modules/unictype/category-Nd: New file.
7005         * modules/unictype/category-Nl: New file.
7006         * modules/unictype/category-No: New file.
7007         * modules/unictype/category-P: New file.
7008         * modules/unictype/category-Pc: New file.
7009         * modules/unictype/category-Pd: New file.
7010         * modules/unictype/category-Ps: New file.
7011         * modules/unictype/category-Pe: New file.
7012         * modules/unictype/category-Pi: New file.
7013         * modules/unictype/category-Pf: New file.
7014         * modules/unictype/category-Po: New file.
7015         * modules/unictype/category-S: New file.
7016         * modules/unictype/category-Sm: New file.
7017         * modules/unictype/category-Sc: New file.
7018         * modules/unictype/category-Sk: New file.
7019         * modules/unictype/category-So: New file.
7020         * modules/unictype/category-Z: New file.
7021         * modules/unictype/category-Zs: New file.
7022         * modules/unictype/category-Zl: New file.
7023         * modules/unictype/category-Zp: New file.
7024         * modules/unictype/category-C: New file.
7025         * modules/unictype/category-Cc: New file.
7026         * modules/unictype/category-Cf: New file.
7027         * modules/unictype/category-Cs: New file.
7028         * modules/unictype/category-Co: New file.
7029         * modules/unictype/category-Cn: New file.
7030         * modules/unictype/category-or: New file.
7031         * modules/unictype/category-of: New file.
7032         * modules/unictype/category-test: New file.
7033         * modules/unictype/category-test-withtable: New file.
7034         * modules/unictype/category-byname: New file.
7035         * modules/unictype/category-none: New file.
7036         * modules/unictype/category-and: New file.
7037         * modules/unictype/category-and-not: New file.
7038         * modules/unictype/category-name: New file.
7039         * modules/unictype/combining-class: New file.
7040         * modules/unictype/category-all: New file.
7041         * modules/unictype/bidicategory-all: New file.
7042         * modules/unictype/bidicategory-byname: New file.
7043         * modules/unictype/bidicategory-name: New file.
7044         * modules/unictype/bidicategory-of: New file.
7045         * modules/unictype/bidicategory-test: New file.
7046         * modules/unictype/decimal-digit: New file.
7047         * modules/unictype/digit: New file.
7048         * modules/unictype/numeric: New file.
7049         * modules/unictype/mirror: New file.
7050         * modules/unictype/property-white-space: New file.
7051         * modules/unictype/property-alphabetic: New file.
7052         * modules/unictype/property-other-alphabetic: New file.
7053         * modules/unictype/property-not-a-character: New file.
7054         * modules/unictype/property-default-ignorable-code-point: New file.
7055         * modules/unictype/property-other-default-ignorable-code-point: New
7056         file.
7057         * modules/unictype/property-deprecated: New file.
7058         * modules/unictype/property-logical-order-exception: New file.
7059         * modules/unictype/property-variation-selector: New file.
7060         * modules/unictype/property-private-use: New file.
7061         * modules/unictype/property-unassigned-code-value: New file.
7062         * modules/unictype/property-uppercase: New file.
7063         * modules/unictype/property-other-uppercase: New file.
7064         * modules/unictype/property-lowercase: New file.
7065         * modules/unictype/property-other-lowercase: New file.
7066         * modules/unictype/property-titlecase: New file.
7067         * modules/unictype/property-soft-dotted: New file.
7068         * modules/unictype/property-id-start: New file.
7069         * modules/unictype/property-other-id-start: New file.
7070         * modules/unictype/property-id-continue: New file.
7071         * modules/unictype/property-other-id-continue: New file.
7072         * modules/unictype/property-xid-start: New file.
7073         * modules/unictype/property-xid-continue: New file.
7074         * modules/unictype/property-pattern-white-space: New file.
7075         * modules/unictype/property-pattern-syntax: New file.
7076         * modules/unictype/property-join-control: New file.
7077         * modules/unictype/property-grapheme-base: New file.
7078         * modules/unictype/property-grapheme-extend: New file.
7079         * modules/unictype/property-other-grapheme-extend: New file.
7080         * modules/unictype/property-grapheme-link: New file.
7081         * modules/unictype/property-bidi-control: New file.
7082         * modules/unictype/property-bidi-left-to-right: New file.
7083         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
7084         * modules/unictype/property-bidi-arabic-right-to-left: New file.
7085         * modules/unictype/property-bidi-european-digit: New file.
7086         * modules/unictype/property-bidi-eur-num-separator: New file.
7087         * modules/unictype/property-bidi-eur-num-terminator: New file.
7088         * modules/unictype/property-bidi-arabic-digit: New file.
7089         * modules/unictype/property-bidi-common-separator: New file.
7090         * modules/unictype/property-bidi-block-separator: New file.
7091         * modules/unictype/property-bidi-segment-separator: New file.
7092         * modules/unictype/property-bidi-whitespace: New file.
7093         * modules/unictype/property-bidi-non-spacing-mark: New file.
7094         * modules/unictype/property-bidi-boundary-neutral: New file.
7095         * modules/unictype/property-bidi-pdf: New file.
7096         * modules/unictype/property-bidi-embedding-or-override: New file.
7097         * modules/unictype/property-bidi-other-neutral: New file.
7098         * modules/unictype/property-hex-digit: New file.
7099         * modules/unictype/property-ascii-hex-digit: New file.
7100         * modules/unictype/property-ideographic: New file.
7101         * modules/unictype/property-unified-ideograph: New file.
7102         * modules/unictype/property-radical: New file.
7103         * modules/unictype/property-ids-binary-operator: New file.
7104         * modules/unictype/property-ids-trinary-operator: New file.
7105         * modules/unictype/property-zero-width: New file.
7106         * modules/unictype/property-space: New file.
7107         * modules/unictype/property-non-break: New file.
7108         * modules/unictype/property-iso-control: New file.
7109         * modules/unictype/property-format-control: New file.
7110         * modules/unictype/property-dash: New file.
7111         * modules/unictype/property-hyphen: New file.
7112         * modules/unictype/property-punctuation: New file.
7113         * modules/unictype/property-line-separator: New file.
7114         * modules/unictype/property-paragraph-separator: New file.
7115         * modules/unictype/property-quotation-mark: New file.
7116         * modules/unictype/property-sentence-terminal: New file.
7117         * modules/unictype/property-terminal-punctuation: New file.
7118         * modules/unictype/property-currency-symbol: New file.
7119         * modules/unictype/property-math: New file.
7120         * modules/unictype/property-other-math: New file.
7121         * modules/unictype/property-paired-punctuation: New file.
7122         * modules/unictype/property-left-of-pair: New file.
7123         * modules/unictype/property-combining: New file.
7124         * modules/unictype/property-composite: New file.
7125         * modules/unictype/property-decimal-digit: New file.
7126         * modules/unictype/property-numeric: New file.
7127         * modules/unictype/property-diacritic: New file.
7128         * modules/unictype/property-extender: New file.
7129         * modules/unictype/property-ignorable-control: New file.
7130         * modules/unictype/property-test: New file.
7131         * modules/unictype/property-byname: New file.
7132         * modules/unictype/property-all: New file.
7133         * modules/unictype/scripts: New file.
7134         * modules/unictype/scripts-all: New file.
7135         * modules/unictype/block-of: New file.
7136         * modules/unictype/block-test: New file.
7137         * modules/unictype/block-list: New file.
7138         * modules/unictype/block-all: New file.
7139         * modules/unictype/syntax-c-whitespace: New file.
7140         * modules/unictype/syntax-java-whitespace: New file.
7141         * modules/unictype/syntax-c-ident: New file.
7142         * modules/unictype/syntax-java-ident: New file.
7143         * modules/unictype/ctype-alnum: New file.
7144         * modules/unictype/ctype-alpha: New file.
7145         * modules/unictype/ctype-cntrl: New file.
7146         * modules/unictype/ctype-digit: New file.
7147         * modules/unictype/ctype-graph: New file.
7148         * modules/unictype/ctype-lower: New file.
7149         * modules/unictype/ctype-print: New file.
7150         * modules/unictype/ctype-punct: New file.
7151         * modules/unictype/ctype-space: New file.
7152         * modules/unictype/ctype-upper: New file.
7153         * modules/unictype/ctype-xdigit: New file.
7154         * modules/unictype/ctype-blank: New file.
7155         * lib/unictype/bidi_byname.c: New file.
7156         * lib/unictype/bidi_name.c: New file.
7157         * lib/unictype/bidi_of.c: New file.
7158         * lib/unictype/bidi_test.c: New file.
7159         * lib/unictype/bitmap.h: New file.
7160         * lib/unictype/block_test.c: New file.
7161         * lib/unictype/blocks.c: New file.
7162         * lib/unictype/categ_C.c: New file.
7163         * lib/unictype/categ_Cc.c: New file.
7164         * lib/unictype/categ_Cf.c: New file.
7165         * lib/unictype/categ_Cn.c: New file.
7166         * lib/unictype/categ_Co.c: New file.
7167         * lib/unictype/categ_Cs.c: New file.
7168         * lib/unictype/categ_L.c: New file.
7169         * lib/unictype/categ_Ll.c: New file.
7170         * lib/unictype/categ_Lm.c: New file.
7171         * lib/unictype/categ_Lo.c: New file.
7172         * lib/unictype/categ_Lt.c: New file.
7173         * lib/unictype/categ_Lu.c: New file.
7174         * lib/unictype/categ_M.c: New file.
7175         * lib/unictype/categ_Mc.c: New file.
7176         * lib/unictype/categ_Me.c: New file.
7177         * lib/unictype/categ_Mn.c: New file.
7178         * lib/unictype/categ_N.c: New file.
7179         * lib/unictype/categ_Nd.c: New file.
7180         * lib/unictype/categ_Nl.c: New file.
7181         * lib/unictype/categ_No.c: New file.
7182         * lib/unictype/categ_P.c: New file.
7183         * lib/unictype/categ_Pc.c: New file.
7184         * lib/unictype/categ_Pd.c: New file.
7185         * lib/unictype/categ_Pe.c: New file.
7186         * lib/unictype/categ_Pf.c: New file.
7187         * lib/unictype/categ_Pi.c: New file.
7188         * lib/unictype/categ_Po.c: New file.
7189         * lib/unictype/categ_Ps.c: New file.
7190         * lib/unictype/categ_S.c: New file.
7191         * lib/unictype/categ_Sc.c: New file.
7192         * lib/unictype/categ_Sk.c: New file.
7193         * lib/unictype/categ_Sm.c: New file.
7194         * lib/unictype/categ_So.c: New file.
7195         * lib/unictype/categ_Z.c: New file.
7196         * lib/unictype/categ_Zl.c: New file.
7197         * lib/unictype/categ_Zp.c: New file.
7198         * lib/unictype/categ_Zs.c: New file.
7199         * lib/unictype/categ_and.c: New file.
7200         * lib/unictype/categ_and_not.c: New file.
7201         * lib/unictype/categ_byname.c: New file.
7202         * lib/unictype/categ_name.c: New file.
7203         * lib/unictype/categ_none.c: New file.
7204         * lib/unictype/categ_of.c: New file.
7205         * lib/unictype/categ_or.c: New file.
7206         * lib/unictype/categ_test.c: New file.
7207         * lib/unictype/combining.c: New file.
7208         * lib/unictype/ctype_alnum.c: New file.
7209         * lib/unictype/ctype_alpha.c: New file.
7210         * lib/unictype/ctype_blank.c: New file.
7211         * lib/unictype/ctype_cntrl.c: New file.
7212         * lib/unictype/ctype_digit.c: New file.
7213         * lib/unictype/ctype_graph.c: New file.
7214         * lib/unictype/ctype_lower.c: New file.
7215         * lib/unictype/ctype_print.c: New file.
7216         * lib/unictype/ctype_punct.c: New file.
7217         * lib/unictype/ctype_space.c: New file.
7218         * lib/unictype/ctype_upper.c: New file.
7219         * lib/unictype/ctype_xdigit.c: New file.
7220         * lib/unictype/decdigit.c: New file.
7221         * lib/unictype/digit.c: New file.
7222         * lib/unictype/identsyntaxmap.h: New file.
7223         * lib/unictype/mirror.c: New file.
7224         * lib/unictype/numeric.c: New file.
7225         * lib/unictype/pr_alphabetic.c: New file.
7226         * lib/unictype/pr_ascii_hex_digit.c: New file.
7227         * lib/unictype/pr_bidi_arabic_digit.c: New file.
7228         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
7229         * lib/unictype/pr_bidi_block_separator.c: New file.
7230         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
7231         * lib/unictype/pr_bidi_common_separator.c: New file.
7232         * lib/unictype/pr_bidi_control.c: New file.
7233         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
7234         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
7235         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
7236         * lib/unictype/pr_bidi_european_digit.c: New file.
7237         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
7238         * lib/unictype/pr_bidi_left_to_right.c: New file.
7239         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
7240         * lib/unictype/pr_bidi_other_neutral.c: New file.
7241         * lib/unictype/pr_bidi_pdf.c: New file.
7242         * lib/unictype/pr_bidi_segment_separator.c: New file.
7243         * lib/unictype/pr_bidi_whitespace.c: New file.
7244         * lib/unictype/pr_byname.c: New file.
7245         * lib/unictype/pr_byname.gperf: New file.
7246         * lib/unictype/pr_combining.c: New file.
7247         * lib/unictype/pr_composite.c: New file.
7248         * lib/unictype/pr_currency_symbol.c: New file.
7249         * lib/unictype/pr_dash.c: New file.
7250         * lib/unictype/pr_decimal_digit.c: New file.
7251         * lib/unictype/pr_default_ignorable_code_point.c: New file.
7252         * lib/unictype/pr_deprecated.c: New file.
7253         * lib/unictype/pr_diacritic.c: New file.
7254         * lib/unictype/pr_extender.c: New file.
7255         * lib/unictype/pr_format_control.c: New file.
7256         * lib/unictype/pr_grapheme_base.c: New file.
7257         * lib/unictype/pr_grapheme_extend.c: New file.
7258         * lib/unictype/pr_grapheme_link.c: New file.
7259         * lib/unictype/pr_hex_digit.c: New file.
7260         * lib/unictype/pr_hyphen.c: New file.
7261         * lib/unictype/pr_id_continue.c: New file.
7262         * lib/unictype/pr_id_start.c: New file.
7263         * lib/unictype/pr_ideographic.c: New file.
7264         * lib/unictype/pr_ids_binary_operator.c: New file.
7265         * lib/unictype/pr_ids_trinary_operator.c: New file.
7266         * lib/unictype/pr_ignorable_control.c: New file.
7267         * lib/unictype/pr_iso_control.c: New file.
7268         * lib/unictype/pr_join_control.c: New file.
7269         * lib/unictype/pr_left_of_pair.c: New file.
7270         * lib/unictype/pr_line_separator.c: New file.
7271         * lib/unictype/pr_logical_order_exception.c: New file.
7272         * lib/unictype/pr_lowercase.c: New file.
7273         * lib/unictype/pr_math.c: New file.
7274         * lib/unictype/pr_non_break.c: New file.
7275         * lib/unictype/pr_not_a_character.c: New file.
7276         * lib/unictype/pr_numeric.c: New file.
7277         * lib/unictype/pr_other_alphabetic.c: New file.
7278         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
7279         * lib/unictype/pr_other_grapheme_extend.c: New file.
7280         * lib/unictype/pr_other_id_continue.c: New file.
7281         * lib/unictype/pr_other_id_start.c: New file.
7282         * lib/unictype/pr_other_lowercase.c: New file.
7283         * lib/unictype/pr_other_math.c: New file.
7284         * lib/unictype/pr_other_uppercase.c: New file.
7285         * lib/unictype/pr_paired_punctuation.c: New file.
7286         * lib/unictype/pr_paragraph_separator.c: New file.
7287         * lib/unictype/pr_pattern_syntax.c: New file.
7288         * lib/unictype/pr_pattern_white_space.c: New file.
7289         * lib/unictype/pr_private_use.c: New file.
7290         * lib/unictype/pr_punctuation.c: New file.
7291         * lib/unictype/pr_quotation_mark.c: New file.
7292         * lib/unictype/pr_radical.c: New file.
7293         * lib/unictype/pr_sentence_terminal.c: New file.
7294         * lib/unictype/pr_soft_dotted.c: New file.
7295         * lib/unictype/pr_space.c: New file.
7296         * lib/unictype/pr_terminal_punctuation.c: New file.
7297         * lib/unictype/pr_test.c: New file.
7298         * lib/unictype/pr_titlecase.c: New file.
7299         * lib/unictype/pr_unassigned_code_value.c: New file.
7300         * lib/unictype/pr_unified_ideograph.c: New file.
7301         * lib/unictype/pr_uppercase.c: New file.
7302         * lib/unictype/pr_variation_selector.c: New file.
7303         * lib/unictype/pr_white_space.c: New file.
7304         * lib/unictype/pr_xid_continue.c: New file.
7305         * lib/unictype/pr_xid_start.c: New file.
7306         * lib/unictype/pr_zero_width.c: New file.
7307         * lib/unictype/scripts.c: New file.
7308         * lib/unictype/sy_c_ident.c: New file.
7309         * lib/unictype/sy_c_whitespace.c: New file.
7310         * lib/unictype/sy_java_ident.c: New file.
7311         * lib/unictype/sy_java_whitespace.c: New file.
7312
7313         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7314         Unicode 5.0.0.
7315         * lib/unictype/blocks.h: Likewise.
7316         * lib/unictype/categ_C.h: Likewise.
7317         * lib/unictype/categ_Cc.h: Likewise.
7318         * lib/unictype/categ_Cf.h: Likewise.
7319         * lib/unictype/categ_Cn.h: Likewise.
7320         * lib/unictype/categ_Co.h: Likewise.
7321         * lib/unictype/categ_Cs.h: Likewise.
7322         * lib/unictype/categ_L.h: Likewise.
7323         * lib/unictype/categ_Ll.h: Likewise.
7324         * lib/unictype/categ_Lm.h: Likewise.
7325         * lib/unictype/categ_Lo.h: Likewise.
7326         * lib/unictype/categ_Lt.h: Likewise.
7327         * lib/unictype/categ_Lu.h: Likewise.
7328         * lib/unictype/categ_M.h: Likewise.
7329         * lib/unictype/categ_Mc.h: Likewise.
7330         * lib/unictype/categ_Me.h: Likewise.
7331         * lib/unictype/categ_Mn.h: Likewise.
7332         * lib/unictype/categ_N.h: Likewise.
7333         * lib/unictype/categ_Nd.h: Likewise.
7334         * lib/unictype/categ_Nl.h: Likewise.
7335         * lib/unictype/categ_No.h: Likewise.
7336         * lib/unictype/categ_P.h: Likewise.
7337         * lib/unictype/categ_Pc.h: Likewise.
7338         * lib/unictype/categ_Pd.h: Likewise.
7339         * lib/unictype/categ_Pe.h: Likewise.
7340         * lib/unictype/categ_Pf.h: Likewise.
7341         * lib/unictype/categ_Pi.h: Likewise.
7342         * lib/unictype/categ_Po.h: Likewise.
7343         * lib/unictype/categ_Ps.h: Likewise.
7344         * lib/unictype/categ_S.h: Likewise.
7345         * lib/unictype/categ_Sc.h: Likewise.
7346         * lib/unictype/categ_Sk.h: Likewise.
7347         * lib/unictype/categ_Sm.h: Likewise.
7348         * lib/unictype/categ_So.h: Likewise.
7349         * lib/unictype/categ_Z.h: Likewise.
7350         * lib/unictype/categ_Zl.h: Likewise.
7351         * lib/unictype/categ_Zp.h: Likewise.
7352         * lib/unictype/categ_Zs.h: Likewise.
7353         * lib/unictype/categ_of.h: Likewise.
7354         * lib/unictype/combining.h: Likewise.
7355         * lib/unictype/ctype_alnum.h: Likewise.
7356         * lib/unictype/ctype_alpha.h: Likewise.
7357         * lib/unictype/ctype_blank.h: Likewise.
7358         * lib/unictype/ctype_cntrl.h: Likewise.
7359         * lib/unictype/ctype_digit.h: Likewise.
7360         * lib/unictype/ctype_graph.h: Likewise.
7361         * lib/unictype/ctype_lower.h: Likewise.
7362         * lib/unictype/ctype_print.h: Likewise.
7363         * lib/unictype/ctype_punct.h: Likewise.
7364         * lib/unictype/ctype_space.h: Likewise.
7365         * lib/unictype/ctype_upper.h: Likewise.
7366         * lib/unictype/ctype_xdigit.h: Likewise.
7367         * lib/unictype/decdigit.h: Likewise.
7368         * lib/unictype/digit.h: Likewise.
7369         * lib/unictype/mirror.h: Likewise.
7370         * lib/unictype/numeric.h: Likewise.
7371         * lib/unictype/pr_alphabetic.h: Likewise.
7372         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7373         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7374         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7375         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7376         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7377         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7378         * lib/unictype/pr_bidi_control.h: Likewise.
7379         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7380         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7381         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7382         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7383         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7384         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7385         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7386         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7387         * lib/unictype/pr_bidi_pdf.h: Likewise.
7388         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7389         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7390         * lib/unictype/pr_combining.h: Likewise.
7391         * lib/unictype/pr_composite.h: Likewise.
7392         * lib/unictype/pr_currency_symbol.h: Likewise.
7393         * lib/unictype/pr_dash.h: Likewise.
7394         * lib/unictype/pr_decimal_digit.h: Likewise.
7395         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7396         * lib/unictype/pr_deprecated.h: Likewise.
7397         * lib/unictype/pr_diacritic.h: Likewise.
7398         * lib/unictype/pr_extender.h: Likewise.
7399         * lib/unictype/pr_format_control.h: Likewise.
7400         * lib/unictype/pr_grapheme_base.h: Likewise.
7401         * lib/unictype/pr_grapheme_extend.h: Likewise.
7402         * lib/unictype/pr_grapheme_link.h: Likewise.
7403         * lib/unictype/pr_hex_digit.h: Likewise.
7404         * lib/unictype/pr_hyphen.h: Likewise.
7405         * lib/unictype/pr_id_continue.h: Likewise.
7406         * lib/unictype/pr_id_start.h: Likewise.
7407         * lib/unictype/pr_ideographic.h: Likewise.
7408         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7409         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7410         * lib/unictype/pr_ignorable_control.h: Likewise.
7411         * lib/unictype/pr_iso_control.h: Likewise.
7412         * lib/unictype/pr_join_control.h: Likewise.
7413         * lib/unictype/pr_left_of_pair.h: Likewise.
7414         * lib/unictype/pr_line_separator.h: Likewise.
7415         * lib/unictype/pr_logical_order_exception.h: Likewise.
7416         * lib/unictype/pr_lowercase.h: Likewise.
7417         * lib/unictype/pr_math.h: Likewise.
7418         * lib/unictype/pr_non_break.h: Likewise.
7419         * lib/unictype/pr_not_a_character.h: Likewise.
7420         * lib/unictype/pr_numeric.h: Likewise.
7421         * lib/unictype/pr_other_alphabetic.h: Likewise.
7422         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7423         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7424         * lib/unictype/pr_other_id_continue.h: Likewise.
7425         * lib/unictype/pr_other_id_start.h: Likewise.
7426         * lib/unictype/pr_other_lowercase.h: Likewise.
7427         * lib/unictype/pr_other_math.h: Likewise.
7428         * lib/unictype/pr_other_uppercase.h: Likewise.
7429         * lib/unictype/pr_paired_punctuation.h: Likewise.
7430         * lib/unictype/pr_paragraph_separator.h: Likewise.
7431         * lib/unictype/pr_pattern_syntax.h: Likewise.
7432         * lib/unictype/pr_pattern_white_space.h: Likewise.
7433         * lib/unictype/pr_private_use.h: Likewise.
7434         * lib/unictype/pr_punctuation.h: Likewise.
7435         * lib/unictype/pr_quotation_mark.h: Likewise.
7436         * lib/unictype/pr_radical.h: Likewise.
7437         * lib/unictype/pr_sentence_terminal.h: Likewise.
7438         * lib/unictype/pr_soft_dotted.h: Likewise.
7439         * lib/unictype/pr_space.h: Likewise.
7440         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7441         * lib/unictype/pr_titlecase.h: Likewise.
7442         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7443         * lib/unictype/pr_unified_ideograph.h: Likewise.
7444         * lib/unictype/pr_uppercase.h: Likewise.
7445         * lib/unictype/pr_variation_selector.h: Likewise.
7446         * lib/unictype/pr_white_space.h: Likewise.
7447         * lib/unictype/pr_xid_continue.h: Likewise.
7448         * lib/unictype/pr_xid_start.h: Likewise.
7449         * lib/unictype/pr_zero_width.h: Likewise.
7450         * lib/unictype/scripts.h: Likewise.
7451         * lib/unictype/scripts_byname.gperf: Likewise.
7452         * lib/unictype/sy_c_ident.h: Likewise.
7453         * lib/unictype/sy_c_whitespace.h: Likewise.
7454         * lib/unictype/sy_java_ident.h: Likewise.
7455         * lib/unictype/sy_java_whitespace.h: Likewise.
7456
7457         * lib/unictype/Makefile: New file.
7458         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
7459         glibc.
7460         * lib/unictype/3level.h: New file, copied from glibc.
7461         * lib/unictype/3levelbit.h: New file.
7462
7463 2007-11-11  Bruno Haible  <bruno@clisp.org>
7464
7465         * modules/gperf: New file.
7466         * modules/iconv_open (Depends-on): Add it.
7467         (Makefile.am): Remove the GPERF definition.
7468
7469 2007-11-11  Bruno Haible  <bruno@clisp.org>
7470
7471         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
7472         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
7473
7474 2007-11-11  Bruno Haible  <bruno@clisp.org>
7475
7476         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
7477         (usage): Remove function.
7478
7479 2007-11-11  Bruno Haible  <bruno@clisp.org>
7480
7481         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
7482         gl_FUNC_CEILF_LIBS.
7483         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
7484         gl_FUNC_CEIL_LIBS.
7485         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
7486         gl_FUNC_CEILL_LIBS.
7487         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
7488         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
7489         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
7490
7491 2007-11-11  Bruno Haible  <bruno@clisp.org>
7492
7493         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
7494         roundf were declared but do not exist on functions.
7495         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
7496         roundl were declared but do not exist on functions.
7497         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
7498         HAVE_FLOORL_AND_CEILL, respectively.
7499         Needed for Sun C on Solaris 10.
7500
7501 2007-11-11  Bruno Haible  <bruno@clisp.org>
7502
7503         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
7504         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
7505         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
7506         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
7507         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
7508         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
7509         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
7510         HAVE_DECL_ROUNDF.
7511         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
7512         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
7513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
7514         of HAVE_DECL_ROUND*.
7515         * modules/math (Makefile.am): Update.
7516
7517 2007-11-10  Bruno Haible  <bruno@clisp.org>
7518
7519         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
7520         ptrdiff_t as m4/intl.m4.
7521
7522 2007-11-10  Jim Meyering  <meyering@redhat.com>
7523
7524         Avoid link failure for the argmatch test.
7525         * tests/test-argmatch.c (usage): Define function to avoid a link
7526         failure: argmatch_die requires a usage function.
7527
7528 2007-11-09  Bruno Haible  <bruno@clisp.org>
7529
7530         * doc/functions/snprintf.texi: Mention BeOS deficiency.
7531         * doc/functions/vsnprintf.texi: Likewise.
7532         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
7533         with a size argument < 2.
7534
7535 2007-11-09  Bruno Haible  <bruno@clisp.org>
7536
7537         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
7538         buffer. Fixes an inefficiency introduced on 2007-11-03.
7539
7540 2007-11-09  Bruno Haible  <bruno@clisp.org>
7541
7542         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
7543         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
7544
7545 2007-11-08  Jim Meyering  <meyering@redhat.com>
7546
7547         Change cache variable name prefix "jm_" to "gl_" everywhere.
7548         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
7549         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
7550         * m4/uptime.m4: s/gl_/jm_/
7551
7552 2007-11-07  Bruno Haible  <bruno@clisp.org>
7553
7554         Update to GNU gettext 0.17.
7555         * m4/intl.m4: Update to GNU gettext 0.17.
7556         * m4/po.m4: Likewise.
7557         * modules/gettext (Files): Remove m4/ulonglong.m4.
7558         (configure.ac): Require gettext infrastructure from version 0.17.
7559
7560 2007-11-06  Bruno Haible  <bruno@clisp.org>
7561
7562         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
7563         symbolic values are not defined in a public header.
7564         * lib/freadable.c (freadable) [QNX]: Likewise.
7565         * lib/freadahead.c (freadahead) [QNX]: Likewise.
7566         * lib/freading.c (freading) [QNX]: Likewise.
7567         * lib/fseterr.c (fseterr) [QNX]: Likewise.
7568         * lib/fwritable.c (fwritable) [QNX]: Likewise.
7569         * lib/fwriting.c (fwriting) [QNX]: Likewise.
7570         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
7571         Reported by Alain Magloire.
7572
7573         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
7574
7575 2007-11-05  Bruno Haible  <bruno@clisp.org>
7576
7577         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
7578         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
7579         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
7580         Reported by Eric Blake.
7581
7582 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7583             Bruno Haible  <bruno@clisp.org>
7584
7585         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
7586         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
7587         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
7588         (malloc): Undefine also before including <stdlib.h>.
7589         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
7590         Needed on OSF/1 4.0.
7591
7592 2007-11-05  Jim Meyering  <meyering@redhat.com>
7593
7594         git-version-gen: sync from coreutils.
7595         * build-aux/git-version-gen: Add comments.
7596         Change the first '-' to '.' in the snapshot version string,
7597         e.g., 6.9-377-08144 -> 6.9.377-08144
7598         Remove first parameter.
7599         Don't declare a version "-dirty" merely because a time
7600         stamp has changed.
7601
7602 2007-11-04  Bruno Haible  <bruno@clisp.org>
7603
7604         * lib/lock.h: Protect all macro definitions containing an 'if'
7605         statement through a "do { ... } while (0)".
7606         * lib/tls.h: Likewise.
7607
7608 2007-11-04  Bruno Haible  <bruno@clisp.org>
7609
7610         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
7611
7612 2007-11-04  Bruno Haible  <bruno@clisp.org>
7613
7614         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
7615         * modules/fprintf-posix (Depends-on): Add nocrash.
7616         * modules/snprintf-posix (Depends-on): Likewise.
7617         * modules/sprintf-posix (Depends-on): Likewise.
7618         * modules/vasnprintf-posix (Depends-on): Likewise.
7619         * modules/vasprintf-posix (Depends-on): Likewise.
7620         * modules/vfprintf-posix (Depends-on): Likewise.
7621         * modules/vsnprintf-posix (Depends-on): Likewise.
7622         * modules/vsprintf-posix (Depends-on): Likewise.
7623         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7624         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7625         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7626         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7627         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7628         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7629         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7630
7631 2007-11-04  Bruno Haible  <bruno@clisp.org>
7632
7633         * modules/nocrash: New file.
7634         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
7635         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
7636
7637 2007-11-04  Bruno Haible  <bruno@clisp.org>
7638
7639         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
7640         precision handling.
7641         * tests/test-vasprintf-posix.c (test_function): Likewise.
7642         * tests/test-snprintf-posix.h (test_function): Likewise.
7643         * tests/test-sprintf-posix.h (test_function): Likewise.
7644
7645         Fix *printf behaviour for large precisions on mingw and BeOS.
7646         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
7647         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
7648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
7649         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7651         gl_PRINTF_PRECISION and test its result. Invoke
7652         gl_PREREQ_VASNPRINTF_PRECISION.
7653         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7657         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7659         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7660         * doc/functions/fprintf.texi: Update.
7661         * doc/functions/printf.texi: Update.
7662         * doc/functions/snprintf.texi: Update.
7663         * doc/functions/sprintf.texi: Update.
7664         * doc/functions/vfprintf.texi: Update.
7665         * doc/functions/vprintf.texi: Update.
7666         * doc/functions/vsnprintf.texi: Update.
7667         * doc/functions/vsprintf.texi: Update.
7668
7669 2007-11-04  Bruno Haible  <bruno@clisp.org>
7670
7671         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
7672
7673 2007-11-04  Bruno Haible  <bruno@clisp.org>
7674
7675         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
7676         Reported by Sylvain Beucler <beuc@gnu.org>.
7677
7678 2007-11-03  Bruno Haible  <bruno@clisp.org>
7679
7680         * tests/test-fprintf-posix2.sh: New file.
7681         * tests/test-fprintf-posix2.c: New file.
7682         * modules/fprintf-posix-tests (Files): Add them.
7683         (TESTS): Add test-fprintf-posix2.sh.
7684         (configure.ac): Check for getrlimit and setrlimit.
7685         (check_PROGRAMS): Add test-fprintf-posix2.
7686
7687         * tests/test-printf-posix2.sh: New file.
7688         * tests/test-printf-posix2.c: New file.
7689         * modules/printf-posix-tests (Files): Add them.
7690         (TESTS): Add test-printf-posix2.sh.
7691         (configure.ac): Check for getrlimit and setrlimit.
7692         (check_PROGRAMS): Add test-printf-posix2.
7693
7694         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
7695         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
7696         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
7697         (decode_double): New function, copied from decode_long_double.
7698         (scale10_round_decimal_decoded): New function, extracted from
7699         scale10_round_decimal_long_double.
7700         (scale10_round_decimal_long_double): Use it.
7701         (scale10_round_decimal_double): New function.
7702         (floorlog10): New function.
7703         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
7704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
7705         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7706         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7707         gl_PRINTF_ENOMEM and test its result. Invoke
7708         gl_PREREQ_VASNPRINTF_ENOMEM.
7709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7713         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7716         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
7717         * modules/snprintf-posix (Depends-on): Likewise.
7718         * modules/sprintf-posix (Depends-on): Likewise.
7719         * modules/vasnprintf-posix (Depends-on): Likewise.
7720         * modules/vasprintf-posix (Depends-on): Likewise.
7721         * modules/vfprintf-posix (Depends-on): Likewise.
7722         * modules/vsnprintf-posix (Depends-on): Likewise.
7723         * modules/vsprintf-posix (Depends-on): Likewise.
7724         * doc/functions/fprintf.texi: Update.
7725         * doc/functions/printf.texi: Update.
7726         * doc/functions/snprintf.texi: Update.
7727         * doc/functions/sprintf.texi: Update.
7728         * doc/functions/vfprintf.texi: Update.
7729         * doc/functions/vprintf.texi: Update.
7730         * doc/functions/vsnprintf.texi: Update.
7731         * doc/functions/vsprintf.texi: Update.
7732
7733 2007-11-03  Bruno Haible  <bruno@clisp.org>
7734
7735         * modules/frexp-nolibm-tests: New file.
7736
7737         * modules/frexp-nolibm: New file.
7738         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
7739
7740 2007-11-03  Bruno Haible  <bruno@clisp.org>
7741
7742         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
7743         value is C99 compliant.
7744         Needed for OSF/1 5.1.
7745
7746 2007-11-03  Bruno Haible  <bruno@clisp.org>
7747
7748         Fix out-of-memory handling of vasnprintf.
7749         * lib/printf-parse.c: Include <errno.h>.
7750         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
7751         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
7752         is already set.
7753
7754 2007-11-02  Eric Blake  <ebb9@byu.net>
7755
7756         Fix tests on cygwin.
7757         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
7758
7759 2007-11-01  Bruno Haible  <bruno@clisp.org>
7760
7761         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
7762         warning.
7763         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
7764         needed for POSIX compatibility.
7765
7766 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7767
7768         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
7769         for compatibility with GNU.
7770
7771 2007-11-01  Bruno Haible  <bruno@clisp.org>
7772
7773         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
7774         (putenv): Renamed from rpl_putenv. Change argument type from
7775         'const char *' to 'char *'.
7776         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
7777         of defining putenv in config.h, just set REPLACE_PUTENV.
7778         * modules/putenv (Depends-on): Add stdlib.
7779         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7780         (Include): Use <stdlib.h>.
7781         * lib/stdlib.in.h (putenv): New declaration.
7782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
7783         REPLACE_PUTENV.
7784         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
7785         REPLACE_PUTENV.
7786         Needed for MacOS X 10.5.0.
7787         Reported by Peter O'Gorman <peter@pogma.com>.
7788
7789 2007-11-01  Jim Meyering  <meyering@redhat.com>
7790
7791         Treat an empty date string exactly like "0".
7792         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
7793         if the remaining date string (to be parsed) is empty, use "0".
7794         Reported by Mischa Molhoek and discussed in this thread:
7795         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
7796
7797 2007-10-31  Bruno Haible  <bruno@clisp.org>
7798
7799         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
7800         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
7801         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
7802         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
7803         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
7804         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
7805
7806 2007-10-31  Bruno Haible  <bruno@clisp.org>
7807
7808         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
7809         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7810         (AC_TYPE_LONG_LONG_INT): Use it.
7811         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
7812         it as well.
7813         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
7814         to m4/longlong.m4.
7815         * modules/stdint (Files): Remove m4/ulonglong.m4.
7816         * modules/strtoull (Files): Use m4/longlong.m4 instead of
7817         m4/ulonglong.m4.
7818         * modules/strtoumax (Files): Likewise.
7819
7820 2007-10-30  Bruno Haible  <bruno@clisp.org>
7821
7822         * modules/xvasprintf-posix: New file.
7823         Suggested by Eric Blake.
7824
7825 2007-10-30  Bruno Haible  <bruno@clisp.org>
7826
7827         * modules/xprintf-posix-tests: New file.
7828         * tests/test-xprintf-posix.sh: New file.
7829         * tests/test-xprintf-posix.c: New file.
7830         * tests/test-xfprintf-posix.c: New file.
7831
7832         * modules/xprintf-posix: New file.
7833
7834 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7835
7836         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
7837         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
7838         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
7839
7840 2007-10-29  Bruno Haible  <bruno@clisp.org>
7841
7842         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
7843         contain the special marker '_cv_'.
7844         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7845         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7846         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7847         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7848         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7849         Reported by Ralf Wildenhues.
7850
7851 2007-10-29  Bruno Haible  <bruno@clisp.org>
7852
7853         * gnulib-tool (func_import): When --lgpl is not specified, set
7854         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
7855         GPLv3.
7856         Reported by Simon Josefsson.
7857
7858 2007-10-28  Bruno Haible  <bruno@clisp.org>
7859
7860         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
7861         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
7862         HAVE_DECL_ISFINITE.
7863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7864         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
7865         HAVE_DECL_ISFINITE.
7866
7867 2007-10-28  Bruno Haible  <bruno@clisp.org>
7868
7869         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
7870         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
7871
7872 2007-10-28  Bruno Haible  <bruno@clisp.org>
7873
7874         Fix link errors with Sun C 5.0 on Solaris 10.
7875         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
7876         function is declared but not present in the compiler's libm.
7877         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7878         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7879         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
7880         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
7881         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
7882         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
7883         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
7884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7885         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
7886         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
7887         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
7888         HAVE_DECL_FLOORL.
7889
7890 2007-10-28  Bruno Haible  <bruno@clisp.org>
7891
7892         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
7893         gl_FUNC_FLOORL. Cache the result.
7894         (gl_FUNC_FLOORL): Use it.
7895         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
7896         gl_FUNC_CEILL. Cache the result.
7897         (gl_FUNC_CEILL): Use it.
7898
7899         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
7900         gl_FUNC_FLOOR. Cache the result.
7901         (gl_FUNC_FLOOR): Use it.
7902         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
7903         gl_FUNC_CEIL. Cache the result.
7904         (gl_FUNC_CEIL): Use it.
7905
7906         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
7907         gl_FUNC_FLOORF. Cache the result.
7908         (gl_FUNC_FLOORF): Use it.
7909         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
7910         gl_FUNC_CEILF. Cache the result.
7911         (gl_FUNC_CEILF): Use it.
7912
7913 2007-10-28  Bruno Haible  <bruno@clisp.org>
7914
7915         * gnulib-tool: Allow specifying the LGPL version number through
7916         --lgpl=2 or --lgpl=3.
7917         (func_usage): Document --lgpl with argument.
7918         Handle --lgpl=... arguments.
7919         (func_import): Recognize also gl_LGPL calls with an argument. When
7920         --lgpl=2 is used and the module's license is just LGPL, report an
7921         error. Set sed_transform_lib_file according to the lgpl variable. In
7922         the generated files, use --lgpl or gl_LGPL invocations with argument,
7923         if necessary.
7924         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
7925         an LGPv2+ license.
7926         * doc/gnulib-tool.texi (Modified imports): Update explanation of
7927         gl_LGPL macro.
7928
7929 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7930             Bruno Haible  <bruno@clisp.org>
7931
7932         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
7933         (u16_uctomb_aux): Likewise.
7934         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
7935         !HAVE_INLINE.
7936         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
7937
7938 2007-10-28  Bruno Haible  <bruno@clisp.org>
7939
7940         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
7941         Invoke AM_GETTEXT_OPTION if it exists.
7942         * modules/vasprintf: Likewise.
7943         * modules/verror: Likewise.
7944         * modules/xprintf: Likewise.
7945         * modules/xvasprintf: Likewise.
7946
7947 2007-10-27  Ben Pfaff  <blp@gnu.org>
7948
7949         * lib/math.in.h: Define isfinite macro and prototypes for
7950         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
7951         implementations.
7952         * m4/math_h.m4: New substitutions for isfinite module.
7953         * lib/isfinite.c: New file.
7954         * m4/isfinite.m4: New file.
7955         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
7956         * modules/isfinite: New file.
7957         * modules/isfinite-tests: New file.
7958         * tests/tests-isfinite.c: New file.
7959         * doc/functions/isfinite.texi: Mention isfinite module.
7960         * MODULES.html.sh: Mention new module.
7961
7962 2007-10-27  Ben Pfaff  <blp@gnu.org>
7963
7964         Ralf Wildenhues reported that Tru64 4.0D declares the round
7965         functions but does not have definitions.
7966         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
7967         cannot be found in any library, set the output variable to
7968         "missing" instead of "".
7969         * m4/round.m4: Also use our substitute if we cannot find round in
7970         any library, even if it is declared.
7971         * m4/roundf.m4: Likewise for roundf.
7972         * m4/roundl.m4: Likewise for roundl.
7973         * lib/math.in.h: Undefine roundf, round, roundl before defining
7974         their replacements, to allow for hypothetical systems where these
7975         may be defined as macros but not available in libraries.
7976
7977 2007-10-27  Bruno Haible  <bruno@clisp.org>
7978
7979         * doc/gnulib.texi: Invoke @firstparagraphindent.
7980         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
7981         changes in gnulib.
7982         (Source changes): New section.
7983
7984 2007-10-26  Bruno Haible  <bruno@clisp.org>
7985
7986         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
7987         borrowed from autoconf.
7988
7989 2007-10-26  Bruno Haible  <bruno@clisp.org>
7990
7991         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
7992         strerror returned the empty string. Needed on HP-UX 11.00.
7993
7994 2007-10-24  Micah Cowan  <micah@cowan.name>
7995
7996         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
7997         * build-aux/bootstrap: Remove support for now-unnecessary option,
7998         --cvs-user, and envvars CVS_USER, CVS_RSH.
7999
8000 2007-10-24  Jim Meyering  <meyering@redhat.com>
8001
8002         Avoid diagnostics from sha1sum when there is no cached checksum.
8003         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
8004         if the po.s1 file hasn't been created yet.
8005
8006         * build-aux/bootstrap: Sync from coreutils:
8007         2007-10-24  Jim Meyering  <meyering@redhat.com>
8008         Get gnulib from the git repository, not from an obsolete cvs one.
8009         * build-aux/bootstrap: Suggestion from Micah Cowan.
8010         2007-10-04  Jim Meyering  <jim@meyering.net>
8011         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
8012         (update_po_files): Work also when there are no .po files in po/.
8013
8014 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8015
8016         * README: Append ".git" to git and cg examples.
8017         Problem reported by Benoit Sigoure.
8018
8019 2007-10-23  Micah Cowan  <micah@cowan.name>
8020
8021         * users.txt: Add wget.
8022
8023 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8024
8025         Fix linking of some unistdio tests on FreeBSD.
8026         * modules/unistdio/u16-vsnprintf-tests
8027         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
8028         * modules/unistdio/u16-vsprintf-tests
8029         (test_u16_vsnprintf1_LDADD): Likewise.
8030         * modules/unistdio/u32-vsnprintf-tests
8031         (test_u32_vsnprintf1_LDADD): Likewise.
8032         * modules/unistdio/u32-vsprintf-tests
8033         (test_u32_vsprintf1_LDADD): Likewise.
8034         * modules/unistdio/u8-vsnprintf-tests
8035         (test_u8_vsnprintf1_LDADD): Likewise.
8036         * modules/unistdio/u8-vsprintf-tests
8037         (test_u8_vsprintf1_LDADD): Likewise.
8038         * modules/unistdio/ulc-vsnprintf-tests
8039         (test_ulc_vsnprintf1_LDADD): Likewise.
8040         * modules/unistdio/ulc-vsprintf-tests
8041         (test_ulc_vsprintf1_LDADD): Likewise.
8042
8043         Fix linking of some uniconv tests on FreeBSD.
8044         * modules/uniconv/u16-conv-from-enc-tests
8045         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
8046         * modules/uniconv/u16-conv-to-enc-tests
8047         (test_u16_conv_to_enc_LDADD): Likewise.
8048         * modules/uniconv/u16-strconv-from-enc-tests
8049         (test_u16_strconv_from_enc_LDADD): Likewise.
8050         * modules/uniconv/u16-strconv-to-enc-tests
8051         (test_u16_strconv_to_enc_LDADD): Likewise.
8052         * modules/uniconv/u32-conv-from-enc-tests
8053         (test_u32_conv_from_enc_LDADD): Likewise.
8054         * modules/uniconv/u32-conv-to-enc-tests
8055         (test_u32_conv_to_enc_LDADD): Likewise.
8056         * modules/uniconv/u32-strconv-from-enc-tests
8057         (test_u32_strconv_from_enc_LDADD): Likewise.
8058         * modules/uniconv/u32-strconv-to-enc-tests
8059         (test_u32_strconv_to_enc_LDADD): Likewise.
8060         * modules/uniconv/u8-conv-from-enc-tests
8061         (test_u8_conv_from_enc_LDADD): Likewise.
8062         * modules/uniconv/u8-conv-to-enc-tests
8063         (test_u8_conv_to_enc_LDADD): Likewise.
8064         * modules/uniconv/u8-strconv-from-enc-tests
8065         (test_u8_strconv_from_enc_LDADD): Likewise.
8066         * modules/uniconv/u8-strconv-to-enc-tests
8067         (test_u8_strconv_to_enc_LDADD): Likewise.
8068
8069 2007-10-22  Bruno Haible  <bruno@clisp.org>
8070
8071         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
8072         size.
8073
8074 2007-10-22  Eric Blake  <ebb9@byu.net>
8075
8076         Tweak x*printf documentation.
8077         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
8078         variable name and comments.
8079         Suggested by Bruno Haible.
8080
8081 2007-10-22  Bruno Haible  <bruno@clisp.org>
8082
8083         * lib/acl.c (copy_acl): Fix file name in comment.
8084
8085 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8086
8087         Fix Tru64 problem with stdbool.h.
8088         * lib/stdbool.in.h (false, true):
8089         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
8090         Don't declare as an enum in this situation; it runs afoul of Tru64.
8091         Problem reported by Steven M. Schweda in
8092         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
8093
8094 2007-10-22  Eric Blake  <ebb9@byu.net>
8095
8096         Also wrap vf?printf.
8097         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
8098         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
8099         (xvprintf, xvfprintf): New functions.
8100
8101 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8102
8103         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
8104         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
8105
8106         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
8107         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
8108
8109 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8110
8111         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
8112         by Bruno Haible.
8113
8114 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8115
8116         * lib/getloadavg.c
8117         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
8118         Undef `sys' after including sys/table.h, for Tru64 4.0D.
8119
8120         * tests/test-i-ring.c: Work for C89.
8121
8122 2007-10-22  Bruno Haible  <bruno@clisp.org>
8123
8124         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
8125         -1u, in preprocessor expression, so that we don't test for the bug
8126         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
8127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
8128
8129 2007-10-22  Eric Blake  <ebb9@byu.net>
8130
8131         * tests/test-yesno.sh: Silence stderr during test.
8132
8133 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8134
8135         * modules/crypto/gc-camellia: New file.
8136
8137         * m4/gc-camellia.m4: New file.
8138
8139         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
8140
8141         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
8142
8143 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8144
8145         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
8146         --help to stdout.  Reported by sms@antinode.org (Steven
8147         M. Schweda).
8148
8149 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8150
8151         * users.txt: Fix link to libksba.
8152
8153 2007-10-21  Ben Pfaff  <blp@gnu.org>
8154
8155         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
8156         round.c roundf implementation that depends on floorf and ceilf to
8157         be tested unconditionally.
8158
8159 2007-10-21  Ben Pfaff  <blp@gnu.org>
8160
8161         * m4/check-libm-func.m4: Removed.
8162         * m4/check-math-lib.m4: New file.
8163         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
8164         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
8165         definition and lack of AC_LIBOBJ([roundf]).
8166         * m4/roundl.m4: Ditto, and similarly for roundl.
8167         * modules/round: Reference new m4 file.
8168         * modules/roundf: Ditto.
8169         * modules/roundl: Ditto.
8170         * tests/test-round2.c (main): Use ROUND instead of round.
8171         Bug report from Bruno Haible.
8172
8173 2007-10-21  Bruno Haible  <bruno@clisp.org>
8174
8175         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
8176         context.
8177
8178 2007-10-21  Bruno Haible  <bruno@clisp.org>
8179
8180         * tests/test-wcwidth.c (main): Allow negative result for some control
8181         characters.
8182
8183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
8184         Needed on OSF/1 5.1.
8185
8186 2007-10-21  Bruno Haible  <bruno@clisp.org>
8187
8188         * tests/test-floorf1.c: Include isnanf.h.
8189         (main): Use isnanf() instead of isnan().
8190         * tests/test-ceilf1.c: Include isnanf.h.
8191         (main): Use isnanf() instead of isnan().
8192         * tests/test-truncf1.c: Include isnanf.h.
8193         (main): Use isnanf() instead of isnan().
8194         * tests/test-roundf1.c: Include isnanf.h.
8195         (main): Use isnanf() instead of isnan().
8196
8197 2007-10-21  Eric Blake  <ebb9@byu.net>
8198
8199         * users.txt: Update URL for m4.
8200
8201 2007-10-21  Bruno Haible  <bruno@clisp.org>
8202
8203         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
8204
8205 2007-10-21  Bruno Haible  <bruno@clisp.org>
8206
8207         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
8208         Git's management files if the CVS files are not present.
8209
8210 2007-10-20  Bruno Haible  <bruno@clisp.org>
8211
8212         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
8213         gcc-3.4.x.
8214
8215 2007-10-20  Ben Pfaff  <blp@gnu.org>
8216
8217         * lib/math.in.h: Declare round, roundf, roundl if we are providing
8218         implementations.
8219         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
8220         * lib/round.c: New file.
8221         * lib/roundf.c: New file.
8222         * lib/roundl.c: New file.
8223         * m4/round.m4: New file.
8224         * m4/roundf.m4: New file.
8225         * m4/roundl.m4: New file.
8226         * m4/check-libm-func-m4: New file.
8227         * modules/math: Replace round, roundf, roundl related @VARS@ in
8228         math.in.h.
8229         * modules/round: New file.
8230         * modules/round-tests: New file.
8231         * modules/roundf: New file.
8232         * modules/roundf-tests: New file.
8233         * modules/roundl: New file.
8234         * modules/roundl-tests: New file.
8235         * tests/test-round1.c: New file.
8236         * tests/test-round2.c: New file.
8237         * tests/test-roundf1.c: New file.
8238         * tests/test-roundf2.c: New file.
8239         * tests/test-roundl.c: New file.
8240         * doc/functions/round.texi: Mention round module.
8241         * doc/functions/roundf.texi: Mention roundf module.
8242         * doc/functions/roundl.texi: Mention roundl module.
8243         * MODULES.html.sh: Mention new modules.
8244         Thanks to Bruno Haible for suggestions.
8245
8246 2007-10-20  Jim Meyering  <meyering@redhat.com>
8247
8248         * lib/xprintf.c: Include <config.h> unconditionally.
8249
8250         Change xprintf's license to GPL.
8251         * modules/xprintf (License): s/LGPL/GPL/, since this module
8252         depends on modules (exit and exitfail) which are GPL.
8253         Suggestion from Bruno Haible.
8254
8255         xprintf fixes.
8256         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
8257         Use a clearer diagnostic.
8258         Patch from Bruno Haible.
8259
8260 2007-10-20  Bruno Haible  <bruno@clisp.org>
8261
8262         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
8263         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
8264         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8265
8266 2007-10-20  Bruno Haible  <bruno@clisp.org>
8267
8268         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
8269         precision in the comparison result > x - 1 or similar.
8270         * tests/test-ceilf2.c (correct_result_p): Likewise.
8271         * tests/test-truncf2.c (correct_result_p): Likewise.
8272         * tests/test-trunc2.c (correct_result_p): Likewise.
8273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8274
8275 2007-10-20  Bruno Haible  <bruno@clisp.org>
8276
8277         * modules/ceil: New file.
8278         * m4/ceil.m4: New file.
8279         * doc/functions/ceil.texi: Mention the 'ceil' module.
8280
8281 2007-10-20  Bruno Haible  <bruno@clisp.org>
8282
8283         * modules/floor: New file.
8284         * m4/floor.m4: New file.
8285         * doc/functions/floor.texi: Mention the 'floor' module.
8286
8287 2007-10-20  Bruno Haible  <bruno@clisp.org>
8288
8289         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
8290         of %a.
8291         * modules/floorf-tests (Depends-on): Likewise.
8292         * modules/truncf-tests (Depends-on): Likewise.
8293         * modules/trunc-tests (Depends-on): Likewise.
8294         Reported by Ben Pfaff.
8295
8296 2007-10-19  Jim Meyering  <meyering@redhat.com>
8297
8298         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
8299         Don't bother testing specific errno values.  Just test ferror.
8300
8301         New module: xprintf
8302         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
8303
8304 2007-10-19  Bruno Haible  <bruno@clisp.org>
8305
8306         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
8307         syntax.
8308         * modules/javaexec (Makefile.am): Likewise.
8309         * modules/relocatable-prog (Makefile.am): Likewise.
8310         Suggested by Jim Meyering.
8311
8312 2007-10-18  Bruno Haible  <bruno@clisp.org>
8313
8314         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8315         Reported by Jim Meyering.
8316
8317 2007-10-18  Eric Blake  <ebb9@byu.net>
8318
8319         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8320
8321 2007-10-18  Bruno Haible  <bruno@clisp.org>
8322
8323         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8324         the format string into writable memory. Needed in Fortify conditions.
8325
8326 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8327             Bruno Haible  <bruno@clisp.org>
8328
8329         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8330         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8331         * modules/trim (Depends-on): Add mbchar.
8332         (configure.ac): Add gl_FUNC_MBRTOWC.
8333         (Makefile.am): Augment lib_SOURCES.
8334
8335 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8336
8337         Modify glob.c to use fstatat and dirfd, to simplify it.
8338         Suggested by Eric Blake.
8339         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8340         Don't include <stdbool.h>; not used.
8341         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8342         (link_exists_p): Simplify implementation, since we can now assume
8343         dirfd and fstatat.
8344         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8345
8346 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8347
8348         * gnulib-tool (func_get_dependencies): Fix sed script to
8349         match only tests.
8350
8351 2007-10-17  Bruno Haible  <bruno@clisp.org>
8352
8353         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8354         allow locale names without encoding suffix.
8355         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8357
8358 2007-10-16  Bruno Haible  <bruno@clisp.org>
8359
8360         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8361         * lib/getgroups.c (getgroups): Likewise.
8362         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8363
8364 2007-10-16  Bruno Haible  <bruno@clisp.org>
8365
8366         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8367         * modules/malloc-posix (License): Likewise.
8368         * modules/realloc-posix (License): Likewise.
8369         * modules/calloc-posix (License): Likewise.
8370         * modules/intprops (License): Change from GPL to LGPL, with
8371         Paul Eggert's approval.
8372
8373 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8374
8375         Merge glibc changes into lib/glob.c.
8376
8377         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8378         2007-10-15 04:59:03 UTC.  Here are the changes:
8379
8380         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8381
8382         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8383
8384         * lib/glob.c: Add some branch prediction throughout.
8385
8386         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8387
8388         [BZ #5103]
8389         * lib/glob.c (glob): Recognize patterns starting \/.
8390
8391         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8392
8393         [BZ #3996]
8394         * lib/glob.c (attribute_hidden): Define if not defined.
8395         (glob): Unescape dirname, filename or username when needed and not
8396         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8397         is NULL.  Handle unescaped [ in pattern without closing ].
8398         Don't pass GLOB_CHECK down to recursive glob for directories.
8399         (__glob_pattern_type): New function.
8400         (__glob_pattern_p): Implement using __glob_pattern_type.
8401         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8402         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8403         Remove unreachable code.
8404
8405         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8406
8407         * lib/glob.c (glob_in_dir): Add some comments and asserts to
8408         explain why there are no leaks.
8409
8410         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8411
8412         [BZ #3253]
8413         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8414         time, rather allocate increasingly bigger arrays of pointers, if
8415         possible with alloca, if too large with malloc.
8416
8417 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8418
8419         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8420         Problem reported by H.Merijn Brand in
8421         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8422         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
8423         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8424
8425 2007-10-15  Bruno Haible  <bruno@clisp.org>
8426
8427         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8428         with explicit rpl_ prefix.
8429         * lib/fopen.c (fopen): Likewise.
8430         * lib/freopen.c (freopen): Likewise.
8431         * lib/iconv.c (iconv): Likewise.
8432         * lib/iconv_close.c (iconv_close): Likewise.
8433
8434 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8435
8436         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8437
8438 2007-10-15  Bruno Haible  <bruno@clisp.org>
8439
8440         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8441         <stddef.h> instead of <stdlib.h> since we only need NULL.
8442         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8443
8444 2007-10-15  Bruno Haible  <bruno@clisp.org>
8445
8446         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
8447         Replace paragraph talking about LIBOBJS.
8448         Reported by Colin Watson <cjwatson@debian.org>.
8449
8450 2007-10-15  Bruno Haible  <bruno@clisp.org>
8451
8452         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
8453         <stdlib.h> before using NULL.
8454
8455 2007-10-15  Simon Josefsson  <simon@josefsson.org>
8456
8457         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
8458         Reported by Albert Chin <china@thewrittenword.com>.
8459
8460 2007-10-14  Bruno Haible  <bruno@clisp.org>
8461
8462         * modules/iconv_open-utf-tests: New file.
8463         * tests/test-iconv-utf.c: New file.
8464
8465         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
8466         * modules/iconv_open-utf: New file.
8467         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
8468         (iconv, iconv_close): New declarations.
8469         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
8470         be defined.
8471         (iconv_open): Add special handling of conversion between UTF-8 and
8472         UTF-{16,32}{BE,LE}.
8473         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
8474         * lib/iconv_close.c: New file.
8475         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
8476         gl_FUNC_ICONV_OPEN.
8477         (gl_FUNC_ICONV_OPEN): Use it.
8478         (gl_FUNC_ICONV_OPEN_UTF): New macro.
8479         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
8480         and REPLACE_ICONV_UTF.
8481         * modules/iconv_open (Depends-on): Add c-strcase.
8482         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
8483         ICONV_CONST.
8484         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
8485
8486 2007-10-13  Albert Chin  <china@thewrittenword.com>
8487             Bruno Haible  <bruno@clisp.org>
8488
8489         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
8490         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
8491
8492 2007-10-13  Bruno Haible  <bruno@clisp.org>
8493
8494         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
8495         defined, use the ISO C99 inline semantics.
8496         * lib/argp.h (ARGP_EI): Likewise.
8497
8498 2007-10-13  Bruno Haible  <bruno@clisp.org>
8499
8500         Handle 'inline' change in gcc 4.3.0.
8501         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
8502         argp_fmtstream_write, argp_fmtstream_set_lmargin,
8503         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
8504         argp_fmtstream_point): Disable 'extern' declaration if the function
8505         definition is going to be provided inline.
8506         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
8507         semantics, not the ISO C99 inline semantics.
8508         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
8509         'extern' declaration if the function definition is going to be provided
8510         inline.
8511         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
8512         the GNU C inline semantics, not the ISO C99 inline semantics. With
8513         GCC 4.2, avoid a warning.
8514
8515 2007-10-13  Bruno Haible  <bruno@clisp.org>
8516
8517         * lib/freading.h (freading): Enable the use of __freading for
8518         glibc >= 2.7.
8519         * lib/freading.c (freading): Likewise.
8520
8521 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8522
8523         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
8524         "warning: C99 inline functions are not supported; using GNU89".
8525
8526 2007-10-12  Bruno Haible  <bruno@clisp.org>
8527
8528         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
8529         of 2.
8530         * tests/test-ceilf2.c: New file.
8531         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
8532
8533         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
8534         * modules/ceilf-tests: Update.
8535
8536 2007-10-12  Bruno Haible  <bruno@clisp.org>
8537
8538         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
8539         of 2.
8540         * tests/test-floorf2.c: New file.
8541         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
8542
8543         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
8544         * modules/floorf-tests: Update.
8545
8546 2007-10-12  Bruno Haible  <bruno@clisp.org>
8547
8548         * tests/test-trunc2.c: New file.
8549         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
8550
8551         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
8552         * modules/trunc-tests: Update.
8553
8554 2007-10-12  Bruno Haible  <bruno@clisp.org>
8555
8556         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
8557         of 2.
8558         * tests/test-truncf2.c: New file.
8559         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
8560
8561         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
8562         * modules/truncf-tests: Update.
8563
8564 2007-10-11  Eric Blake  <ebb9@byu.net>
8565
8566         Don't claim strerror is broken on Interix.
8567         * doc/functions/strerror.texi (strerror): Known broken systems are
8568         now Solaris 8, and not Interix.
8569         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
8570         Interix on cross-compile.
8571         Reported by Martin Koeppe in
8572         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
8573
8574 2007-10-11  Bruno Haible  <bruno@clisp.org>
8575
8576         * modules/i-ring-tests: New file.
8577         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
8578         instead of assert.
8579
8580 2007-10-11  Bruno Haible  <bruno@clisp.org>
8581
8582         * modules/filenamecat-tests: New file.
8583         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
8584         * lib/filenamecat.c: Remove test code.
8585
8586 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8587
8588         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
8589
8590         * lib/strerror.c: Include <string.h> always, to test interface,
8591         and to remove the need for the dummy.
8592         Include intprops.h to compute width instead of doing it ourselves
8593         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
8594         (strerror): Define it to return NULL if there's no system strerror.
8595         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
8596         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
8597         ancient pre-strerror Unix systems well any more.  Saying "unknown
8598         system error" is enough.
8599         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
8600         simpler strerror.c implementation.
8601         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
8602         Simplify the tests to reflect the simpler strerror implementation.
8603         * modules/strerror (Depends-on): Add intprops.
8604
8605 2007-10-09  Eric Blake  <ebb9@byu.net>
8606
8607         Silence test-fpending.
8608         * modules/fpending-tests (Files): Add wrapper script.
8609         * tests/test-fpending.sh: New file.
8610
8611 2007-10-09  Bruno Haible  <bruno@clisp.org>
8612
8613         * MODULES.html.sh (func_module): Don't create a hyperlink for
8614         function names like 'printf_frexp'.
8615         (Misc): Add crc, memxor.
8616         (Characteristics of floating types): New section.
8617         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
8618         isnanf-nolibm, signbit, trunc, truncf, truncl.
8619         (Enhancements for ISO C 99 functions): New subsection Input/output.
8620         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
8621         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
8622         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
8623         (Compatibility checks for POSIX:2001 functions): Add clock-time.
8624         (Enhancements for POSIX:2001 functions): Add chdir-long.
8625         (File system functions): Add areadlink, chdir-safer, read-file.
8626         Remove cycle-check.
8627         (File system as inode set): New section.
8628         (Date and time): Add gethrxtime.
8629         (Multithreading): Add openmp.
8630         (Internationalization functions): Add localename.
8631         (Unicode string functions): Add unistr/u*-mbsnlen.
8632         (Support for maintaining and releasing projects): Add git-version-gen.
8633         (Lone files): Remove directories.
8634
8635 2007-10-08  Ben Pfaff  <blp@gnu.org>
8636
8637         * lib/xmalloca.h: Fix typo in comment.
8638
8639 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8640
8641         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
8642         when avoiding problems with integer overflow.  Use a portable test
8643         instead.
8644
8645 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8646
8647         * modules/dummy (License): Change to LGPLv2+.
8648         * modules/float (License): Likewise
8649         * modules/realloc (License): Likewise
8650         * modules/stdlib (License): Likewise
8651
8652 2007-10-07  Bruno Haible  <bruno@clisp.org>
8653
8654         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
8655         * floor.c (TWO_MANT_DIG): Likewise.
8656         * ceil.c (TWO_MANT_DIG): Likewise.
8657         Reported by Ben Pfaff.
8658
8659 2007-10-07  Bruno Haible  <bruno@clisp.org>
8660
8661         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
8662         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
8663         * lib/frexp.c (FUNC): Likewise.
8664         * lib/printf-frexp.h (printf_frexp): Likewise.
8665         * lib/printf-frexpl.h (printf_frexpl): Likewise.
8666         * lib/printf-frexp.c (FUNC): Likewise.
8667         Suggested by Jim Meyering.
8668
8669 2007-10-07  Jim Meyering  <meyering@redhat.com>
8670
8671         Make xnanosleep's integer overflow test more robust.
8672         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
8673         so that gcc-4.3.0 doesn't optimize away this test for overflow.
8674
8675 2007-10-07  Bruno Haible  <bruno@clisp.org>
8676
8677         * NEWS: Mention the license change.
8678
8679         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
8680         abbreviations in the modules files.
8681
8682         Change copyright notice from GPLv2+ to GPLv3+.
8683         * README: Change copyright notice.
8684         * MODULES.html.sh: Likewise.
8685         * build-aux/bootstrap.conf: Likewise.
8686         * build-aux/config.libpath: Likewise.
8687         * build-aux/csharpcomp.sh.in: Likewise.
8688         * build-aux/csharpexec.sh.in: Likewise.
8689         * build-aux/install-reloc: Likewise.
8690         * build-aux/javacomp.sh.in: Likewise.
8691         * build-aux/javaexec.sh.in: Likewise.
8692         * build-aux/ldd.sh.in: Likewise.
8693         * build-aux/reloc-ldflags: Likewise.
8694         * build-aux/relocatable.sh.in: Likewise.
8695         * build-aux/x-to-1.in: Likewise.
8696         * check-module: Likewise.
8697         * config/srclistvars.sh: Likewise.
8698         * gnulib-tool: Likewise.
8699         * lib/acl-internal.h: Likewise.
8700         * lib/acl.c: Likewise.
8701         * lib/acl.h: Likewise.
8702         * lib/acl_entries.c: Likewise.
8703         * lib/areadlink-with-size.c: Likewise.
8704         * lib/areadlink.c: Likewise.
8705         * lib/areadlink.h: Likewise.
8706         * lib/argmatch.c: Likewise.
8707         * lib/argmatch.h: Likewise.
8708         * lib/argp-ba.c: Likewise.
8709         * lib/argp-eexst.c: Likewise.
8710         * lib/argp-fmtstream.c: Likewise.
8711         * lib/argp-fmtstream.h: Likewise.
8712         * lib/argp-fs-xinl.c: Likewise.
8713         * lib/argp-help.c: Likewise.
8714         * lib/argp-namefrob.h: Likewise.
8715         * lib/argp-parse.c: Likewise.
8716         * lib/argp-pin.c: Likewise.
8717         * lib/argp-pv.c: Likewise.
8718         * lib/argp-pvh.c: Likewise.
8719         * lib/argp-xinl.c: Likewise.
8720         * lib/argp.h: Likewise.
8721         * lib/at-func.c: Likewise.
8722         * lib/atanl.c: Likewise.
8723         * lib/backupfile.c: Likewise.
8724         * lib/backupfile.h: Likewise.
8725         * lib/basename.c: Likewise.
8726         * lib/binary-io.h: Likewise.
8727         * lib/byteswap.in.h: Likewise.
8728         * lib/c-stack.c: Likewise.
8729         * lib/c-stack.h: Likewise.
8730         * lib/c-strcasestr.c: Likewise.
8731         * lib/c-strcasestr.h: Likewise.
8732         * lib/c-strstr.c: Likewise.
8733         * lib/c-strstr.h: Likewise.
8734         * lib/c-strtod.c: Likewise.
8735         * lib/calloc.c: Likewise.
8736         * lib/canon-host.c: Likewise.
8737         * lib/canon-host.h: Likewise.
8738         * lib/canonicalize-lgpl.c: Likewise.
8739         * lib/canonicalize.c: Likewise.
8740         * lib/canonicalize.h: Likewise.
8741         * lib/ceil.c: Likewise.
8742         * lib/ceilf.c: Likewise.
8743         * lib/ceill.c: Likewise.
8744         * lib/chdir-long.c: Likewise.
8745         * lib/chdir-long.h: Likewise.
8746         * lib/chdir-safer.c: Likewise.
8747         * lib/chdir-safer.h: Likewise.
8748         * lib/chown.c: Likewise.
8749         * lib/classpath.c: Likewise.
8750         * lib/classpath.h: Likewise.
8751         * lib/clean-temp.c: Likewise.
8752         * lib/clean-temp.h: Likewise.
8753         * lib/cloexec.c: Likewise.
8754         * lib/close-stream.c: Likewise.
8755         * lib/closein.c: Likewise.
8756         * lib/closein.h: Likewise.
8757         * lib/closeout.c: Likewise.
8758         * lib/closeout.h: Likewise.
8759         * lib/concat-filename.c: Likewise.
8760         * lib/copy-file.c: Likewise.
8761         * lib/copy-file.h: Likewise.
8762         * lib/count-one-bits.h: Likewise.
8763         * lib/crc.c: Likewise.
8764         * lib/crc.h: Likewise.
8765         * lib/creat-safer.c: Likewise.
8766         * lib/csharpcomp.c: Likewise.
8767         * lib/csharpcomp.h: Likewise.
8768         * lib/csharpexec.c: Likewise.
8769         * lib/csharpexec.h: Likewise.
8770         * lib/cycle-check.c: Likewise.
8771         * lib/cycle-check.h: Likewise.
8772         * lib/diacrit.c: Likewise.
8773         * lib/diacrit.h: Likewise.
8774         * lib/diffseq.h: Likewise.
8775         * lib/dirchownmod.c: Likewise.
8776         * lib/dirent.in.h: Likewise.
8777         * lib/dirfd.c: Likewise.
8778         * lib/dirfd.h: Likewise.
8779         * lib/dirname.c: Likewise.
8780         * lib/dirname.h: Likewise.
8781         * lib/dummy.c: Likewise.
8782         * lib/dup-safer.c: Likewise.
8783         * lib/dup2.c: Likewise.
8784         * lib/eealloc.h: Likewise.
8785         * lib/error.c: Likewise.
8786         * lib/error.h: Likewise.
8787         * lib/euidaccess.c: Likewise.
8788         * lib/exclude.c: Likewise.
8789         * lib/exclude.h: Likewise.
8790         * lib/execute.c: Likewise.
8791         * lib/execute.h: Likewise.
8792         * lib/exitfail.c: Likewise.
8793         * lib/exitfail.h: Likewise.
8794         * lib/expl.c: Likewise.
8795         * lib/fatal-signal.c: Likewise.
8796         * lib/fatal-signal.h: Likewise.
8797         * lib/fbufmode.c: Likewise.
8798         * lib/fbufmode.h: Likewise.
8799         * lib/fchdir.c: Likewise.
8800         * lib/fchmodat.c: Likewise.
8801         * lib/fchownat.c: Likewise.
8802         * lib/fcntl--.h: Likewise.
8803         * lib/fcntl-safer.h: Likewise.
8804         * lib/fcntl.in.h: Likewise.
8805         * lib/fd-safer.c: Likewise.
8806         * lib/fflush.c: Likewise.
8807         * lib/file-has-acl.c: Likewise.
8808         * lib/file-set.c: Likewise.
8809         * lib/file-type.c: Likewise.
8810         * lib/file-type.h: Likewise.
8811         * lib/fileblocks.c: Likewise.
8812         * lib/filemode.c: Likewise.
8813         * lib/filemode.h: Likewise.
8814         * lib/filename.h: Likewise.
8815         * lib/filenamecat.c: Likewise.
8816         * lib/filenamecat.h: Likewise.
8817         * lib/findprog.c: Likewise.
8818         * lib/findprog.h: Likewise.
8819         * lib/float.in.h: Likewise.
8820         * lib/floor.c: Likewise.
8821         * lib/floorf.c: Likewise.
8822         * lib/floorl.c: Likewise.
8823         * lib/fopen-safer.c: Likewise.
8824         * lib/fopen.c: Likewise.
8825         * lib/fpending.c: Likewise.
8826         * lib/fpending.h: Likewise.
8827         * lib/fprintf.c: Likewise.
8828         * lib/fprintftime.h: Likewise.
8829         * lib/fpucw.h: Likewise.
8830         * lib/fpurge.c: Likewise.
8831         * lib/fpurge.h: Likewise.
8832         * lib/freadable.c: Likewise.
8833         * lib/freadable.h: Likewise.
8834         * lib/freadahead.c: Likewise.
8835         * lib/freadahead.h: Likewise.
8836         * lib/freading.c: Likewise.
8837         * lib/freading.h: Likewise.
8838         * lib/free.c: Likewise.
8839         * lib/freopen.c: Likewise.
8840         * lib/frexp.c: Likewise.
8841         * lib/frexpl.c: Likewise.
8842         * lib/fseek.c: Likewise.
8843         * lib/fseterr.c: Likewise.
8844         * lib/fseterr.h: Likewise.
8845         * lib/fstatat.c: Likewise.
8846         * lib/fstrcmp.c: Likewise.
8847         * lib/fstrcmp.h: Likewise.
8848         * lib/fsusage.c: Likewise.
8849         * lib/fsusage.h: Likewise.
8850         * lib/ftell.c: Likewise.
8851         * lib/ftello.c: Likewise.
8852         * lib/fts-cycle.c: Likewise.
8853         * lib/fts.c: Likewise.
8854         * lib/fts_.h: Likewise.
8855         * lib/full-read.c: Likewise.
8856         * lib/full-read.h: Likewise.
8857         * lib/full-write.c: Likewise.
8858         * lib/full-write.h: Likewise.
8859         * lib/fwritable.c: Likewise.
8860         * lib/fwritable.h: Likewise.
8861         * lib/fwriteerror.c: Likewise.
8862         * lib/fwriteerror.h: Likewise.
8863         * lib/fwriting.c: Likewise.
8864         * lib/fwriting.h: Likewise.
8865         * lib/gcd.c: Likewise.
8866         * lib/gcd.h: Likewise.
8867         * lib/getcwd.c: Likewise.
8868         * lib/getdate.h: Likewise.
8869         * lib/getdate.y: Likewise.
8870         * lib/getdomainname.c: Likewise.
8871         * lib/getdomainname.h: Likewise.
8872         * lib/getgroups.c: Likewise.
8873         * lib/gethostname.c: Likewise.
8874         * lib/gethrxtime.c: Likewise.
8875         * lib/gethrxtime.h: Likewise.
8876         * lib/getloadavg.c: Likewise.
8877         * lib/getndelim2.c: Likewise.
8878         * lib/getndelim2.h: Likewise.
8879         * lib/getnline.c: Likewise.
8880         * lib/getnline.h: Likewise.
8881         * lib/getopt.c: Likewise.
8882         * lib/getopt.in.h: Likewise.
8883         * lib/getopt1.c: Likewise.
8884         * lib/getopt_int.h: Likewise.
8885         * lib/getpagesize.h: Likewise.
8886         * lib/getsubopt.c: Likewise.
8887         * lib/gettime.c: Likewise.
8888         * lib/getugroups.c: Likewise.
8889         * lib/getugroups.h: Likewise.
8890         * lib/getusershell.c: Likewise.
8891         * lib/gl_anyavltree_list1.h: Likewise.
8892         * lib/gl_anyavltree_list2.h: Likewise.
8893         * lib/gl_anyhash_list1.h: Likewise.
8894         * lib/gl_anyhash_list2.h: Likewise.
8895         * lib/gl_anylinked_list1.h: Likewise.
8896         * lib/gl_anylinked_list2.h: Likewise.
8897         * lib/gl_anyrbtree_list1.h: Likewise.
8898         * lib/gl_anyrbtree_list2.h: Likewise.
8899         * lib/gl_anytree_list1.h: Likewise.
8900         * lib/gl_anytree_list2.h: Likewise.
8901         * lib/gl_anytree_oset.h: Likewise.
8902         * lib/gl_anytreehash_list1.h: Likewise.
8903         * lib/gl_anytreehash_list2.h: Likewise.
8904         * lib/gl_array_list.c: Likewise.
8905         * lib/gl_array_list.h: Likewise.
8906         * lib/gl_array_oset.c: Likewise.
8907         * lib/gl_array_oset.h: Likewise.
8908         * lib/gl_avltree_list.c: Likewise.
8909         * lib/gl_avltree_list.h: Likewise.
8910         * lib/gl_avltree_oset.c: Likewise.
8911         * lib/gl_avltree_oset.h: Likewise.
8912         * lib/gl_avltreehash_list.c: Likewise.
8913         * lib/gl_avltreehash_list.h: Likewise.
8914         * lib/gl_carray_list.c: Likewise.
8915         * lib/gl_carray_list.h: Likewise.
8916         * lib/gl_linked_list.c: Likewise.
8917         * lib/gl_linked_list.h: Likewise.
8918         * lib/gl_linkedhash_list.c: Likewise.
8919         * lib/gl_linkedhash_list.h: Likewise.
8920         * lib/gl_list.c: Likewise.
8921         * lib/gl_list.h: Likewise.
8922         * lib/gl_oset.c: Likewise.
8923         * lib/gl_oset.h: Likewise.
8924         * lib/gl_rbtree_list.c: Likewise.
8925         * lib/gl_rbtree_list.h: Likewise.
8926         * lib/gl_rbtree_oset.c: Likewise.
8927         * lib/gl_rbtree_oset.h: Likewise.
8928         * lib/gl_rbtreehash_list.c: Likewise.
8929         * lib/gl_rbtreehash_list.h: Likewise.
8930         * lib/gl_sublist.c: Likewise.
8931         * lib/gl_sublist.h: Likewise.
8932         * lib/group-member.c: Likewise.
8933         * lib/group-member.h: Likewise.
8934         * lib/hard-locale.c: Likewise.
8935         * lib/hard-locale.h: Likewise.
8936         * lib/hash-pjw.c: Likewise.
8937         * lib/hash-pjw.h: Likewise.
8938         * lib/hash-triple.c: Likewise.
8939         * lib/hash.c: Likewise.
8940         * lib/hash.h: Likewise.
8941         * lib/human.c: Likewise.
8942         * lib/human.h: Likewise.
8943         * lib/i-ring.c: Likewise.
8944         * lib/i-ring.h: Likewise.
8945         * lib/idcache.c: Likewise.
8946         * lib/imaxabs.c: Likewise.
8947         * lib/imaxdiv.c: Likewise.
8948         * lib/inet_pton.c: Likewise.
8949         * lib/inet_pton.h: Likewise.
8950         * lib/intprops.h: Likewise.
8951         * lib/inttostr.c: Likewise.
8952         * lib/inttostr.h: Likewise.
8953         * lib/inttypes.in.h: Likewise.
8954         * lib/isapipe.c: Likewise.
8955         * lib/isdir.c: Likewise.
8956         * lib/isnan.c: Likewise.
8957         * lib/isnan.h: Likewise.
8958         * lib/isnanf.c: Likewise.
8959         * lib/isnanf.h: Likewise.
8960         * lib/isnanl-nolibm.h: Likewise.
8961         * lib/isnanl.c: Likewise.
8962         * lib/isnanl.h: Likewise.
8963         * lib/javacomp.c: Likewise.
8964         * lib/javacomp.h: Likewise.
8965         * lib/javaexec.c: Likewise.
8966         * lib/javaexec.h: Likewise.
8967         * lib/javaversion.c: Likewise.
8968         * lib/javaversion.h: Likewise.
8969         * lib/javaversion.java: Likewise.
8970         * lib/lbrkprop.h: Likewise.
8971         * lib/lchmod.h: Likewise.
8972         * lib/lchown.c: Likewise.
8973         * lib/ldexpl.c: Likewise.
8974         * lib/linebreak.c: Likewise.
8975         * lib/linebreak.h: Likewise.
8976         * lib/linebuffer.c: Likewise.
8977         * lib/linebuffer.h: Likewise.
8978         * lib/locale.in.h: Likewise.
8979         * lib/logl.c: Likewise.
8980         * lib/long-options.c: Likewise.
8981         * lib/long-options.h: Likewise.
8982         * lib/lstat.c: Likewise.
8983         * lib/lstat.h: Likewise.
8984         * lib/math.in.h: Likewise.
8985         * lib/mbchar.c: Likewise.
8986         * lib/mbchar.h: Likewise.
8987         * lib/mbfile.h: Likewise.
8988         * lib/mbiter.h: Likewise.
8989         * lib/mbscasecmp.c: Likewise.
8990         * lib/mbscasestr.c: Likewise.
8991         * lib/mbschr.c: Likewise.
8992         * lib/mbscspn.c: Likewise.
8993         * lib/mbslen.c: Likewise.
8994         * lib/mbsncasecmp.c: Likewise.
8995         * lib/mbsnlen.c: Likewise.
8996         * lib/mbspbrk.c: Likewise.
8997         * lib/mbspcasecmp.c: Likewise.
8998         * lib/mbsrchr.c: Likewise.
8999         * lib/mbssep.c: Likewise.
9000         * lib/mbsspn.c: Likewise.
9001         * lib/mbsstr.c: Likewise.
9002         * lib/mbstok_r.c: Likewise.
9003         * lib/mbswidth.c: Likewise.
9004         * lib/mbswidth.h: Likewise.
9005         * lib/mbuiter.h: Likewise.
9006         * lib/memcasecmp.c: Likewise.
9007         * lib/memcasecmp.h: Likewise.
9008         * lib/memchr.c: Likewise.
9009         * lib/memcmp.c: Likewise.
9010         * lib/memcoll.c: Likewise.
9011         * lib/memcoll.h: Likewise.
9012         * lib/memcpy.c: Likewise.
9013         * lib/memrchr.c: Likewise.
9014         * lib/mkancesdirs.c: Likewise.
9015         * lib/mkdir-p.c: Likewise.
9016         * lib/mkdir-p.h: Likewise.
9017         * lib/mkdir.c: Likewise.
9018         * lib/mkdirat.c: Likewise.
9019         * lib/mkdtemp.c: Likewise.
9020         * lib/mkstemp-safer.c: Likewise.
9021         * lib/mkstemp.c: Likewise.
9022         * lib/modechange.c: Likewise.
9023         * lib/modechange.h: Likewise.
9024         * lib/mountlist.c: Likewise.
9025         * lib/mountlist.h: Likewise.
9026         * lib/mpsort.c: Likewise.
9027         * lib/nanosleep.c: Likewise.
9028         * lib/obstack.c: Likewise.
9029         * lib/obstack.h: Likewise.
9030         * lib/open-safer.c: Likewise.
9031         * lib/open.c: Likewise.
9032         * lib/openat-die.c: Likewise.
9033         * lib/openat-priv.h: Likewise.
9034         * lib/openat-proc.c: Likewise.
9035         * lib/openat.c: Likewise.
9036         * lib/openat.h: Likewise.
9037         * lib/pagealign_alloc.c: Likewise.
9038         * lib/pagealign_alloc.h: Likewise.
9039         * lib/physmem.c: Likewise.
9040         * lib/physmem.h: Likewise.
9041         * lib/pipe-safer.c: Likewise.
9042         * lib/pipe.c: Likewise.
9043         * lib/pipe.h: Likewise.
9044         * lib/posixtm.c: Likewise.
9045         * lib/posixtm.h: Likewise.
9046         * lib/posixver.c: Likewise.
9047         * lib/printf-frexp.c: Likewise.
9048         * lib/printf-frexp.h: Likewise.
9049         * lib/printf-frexpl.c: Likewise.
9050         * lib/printf-frexpl.h: Likewise.
9051         * lib/printf.c: Likewise.
9052         * lib/progname.c: Likewise.
9053         * lib/progname.h: Likewise.
9054         * lib/progreloc.c: Likewise.
9055         * lib/putenv.c: Likewise.
9056         * lib/quote.c: Likewise.
9057         * lib/quote.h: Likewise.
9058         * lib/quotearg.c: Likewise.
9059         * lib/quotearg.h: Likewise.
9060         * lib/raise.c: Likewise.
9061         * lib/readline.c: Likewise.
9062         * lib/readline.h: Likewise.
9063         * lib/readlink.c: Likewise.
9064         * lib/readtokens.c: Likewise.
9065         * lib/readtokens.h: Likewise.
9066         * lib/readtokens0.c: Likewise.
9067         * lib/readtokens0.h: Likewise.
9068         * lib/readutmp.c: Likewise.
9069         * lib/readutmp.h: Likewise.
9070         * lib/realloc.c: Likewise.
9071         * lib/relocwrapper.c: Likewise.
9072         * lib/rename-dest-slash.c: Likewise.
9073         * lib/rename.c: Likewise.
9074         * lib/rmdir.c: Likewise.
9075         * lib/rpmatch.c: Likewise.
9076         * lib/safe-read.c: Likewise.
9077         * lib/safe-read.h: Likewise.
9078         * lib/safe-write.c: Likewise.
9079         * lib/safe-write.h: Likewise.
9080         * lib/same-inode.h: Likewise.
9081         * lib/same.c: Likewise.
9082         * lib/same.h: Likewise.
9083         * lib/save-cwd.c: Likewise.
9084         * lib/save-cwd.h: Likewise.
9085         * lib/savedir.c: Likewise.
9086         * lib/savedir.h: Likewise.
9087         * lib/savewd.c: Likewise.
9088         * lib/savewd.h: Likewise.
9089         * lib/search.in.h: Likewise.
9090         * lib/setenv.c: Likewise.
9091         * lib/setenv.h: Likewise.
9092         * lib/settime.c: Likewise.
9093         * lib/sh-quote.c: Likewise.
9094         * lib/sh-quote.h: Likewise.
9095         * lib/sig2str.c: Likewise.
9096         * lib/sig2str.h: Likewise.
9097         * lib/signal.in.h: Likewise.
9098         * lib/signbitd.c: Likewise.
9099         * lib/signbitf.c: Likewise.
9100         * lib/signbitl.c: Likewise.
9101         * lib/sigprocmask.c: Likewise.
9102         * lib/sincosl.c: Likewise.
9103         * lib/sleep.c: Likewise.
9104         * lib/sprintf.c: Likewise.
9105         * lib/sqrtl.c: Likewise.
9106         * lib/stat-time.h: Likewise.
9107         * lib/stdio--.h: Likewise.
9108         * lib/stdio-safer.h: Likewise.
9109         * lib/stdlib--.h: Likewise.
9110         * lib/stdlib-safer.h: Likewise.
9111         * lib/stdlib.in.h: Likewise.
9112         * lib/stpcpy.c: Likewise.
9113         * lib/stpncpy.c: Likewise.
9114         * lib/strchrnul.c: Likewise.
9115         * lib/strcspn.c: Likewise.
9116         * lib/strerror.c: Likewise.
9117         * lib/strftime.c: Likewise.
9118         * lib/strftime.h: Likewise.
9119         * lib/striconveh.c: Likewise.
9120         * lib/striconveh.h: Likewise.
9121         * lib/striconveha.c: Likewise.
9122         * lib/striconveha.h: Likewise.
9123         * lib/stripslash.c: Likewise.
9124         * lib/strnlen1.c: Likewise.
9125         * lib/strnlen1.h: Likewise.
9126         * lib/strtod.c: Likewise.
9127         * lib/strtoimax.c: Likewise.
9128         * lib/strtok_r.c: Likewise.
9129         * lib/strtol.c: Likewise.
9130         * lib/strtoll.c: Likewise.
9131         * lib/strtoul.c: Likewise.
9132         * lib/strtoull.c: Likewise.
9133         * lib/sysexits.in.h: Likewise.
9134         * lib/tempname.c: Likewise.
9135         * lib/tempname.h: Likewise.
9136         * lib/timespec.h: Likewise.
9137         * lib/tls.c: Likewise.
9138         * lib/tls.h: Likewise.
9139         * lib/tmpdir.c: Likewise.
9140         * lib/tmpdir.h: Likewise.
9141         * lib/tmpfile-safer.c: Likewise.
9142         * lib/tmpfile.c: Likewise.
9143         * lib/trigl.c: Likewise.
9144         * lib/trigl.h: Likewise.
9145         * lib/trim.c: Likewise.
9146         * lib/trim.h: Likewise.
9147         * lib/trunc.c: Likewise.
9148         * lib/truncf.c: Likewise.
9149         * lib/truncl.c: Likewise.
9150         * lib/tsearch.c: Likewise.
9151         * lib/unicodeio.c: Likewise.
9152         * lib/unicodeio.h: Likewise.
9153         * lib/unistd--.h: Likewise.
9154         * lib/unistd-safer.h: Likewise.
9155         * lib/unistdio/ulc-fprintf.c: Likewise.
9156         * lib/unistdio/ulc-vfprintf.c: Likewise.
9157         * lib/unlinkdir.c: Likewise.
9158         * lib/unlinkdir.h: Likewise.
9159         * lib/unlocked-io.h: Likewise.
9160         * lib/unsetenv.c: Likewise.
9161         * lib/userspec.c: Likewise.
9162         * lib/utime.c: Likewise.
9163         * lib/utimecmp.c: Likewise.
9164         * lib/utimecmp.h: Likewise.
9165         * lib/utimens.c: Likewise.
9166         * lib/verify.h: Likewise.
9167         * lib/verror.c: Likewise.
9168         * lib/verror.h: Likewise.
9169         * lib/version-etc-fsf.c: Likewise.
9170         * lib/version-etc.c: Likewise.
9171         * lib/version-etc.h: Likewise.
9172         * lib/vfprintf.c: Likewise.
9173         * lib/vprintf.c: Likewise.
9174         * lib/vsprintf.c: Likewise.
9175         * lib/w32spawn.h: Likewise.
9176         * lib/wait-process.c: Likewise.
9177         * lib/wait-process.h: Likewise.
9178         * lib/wcwidth.c: Likewise.
9179         * lib/write-any-file.c: Likewise.
9180         * lib/xalloc-die.c: Likewise.
9181         * lib/xalloc.h: Likewise.
9182         * lib/xasprintf.c: Likewise.
9183         * lib/xgetcwd.c: Likewise.
9184         * lib/xgetcwd.h: Likewise.
9185         * lib/xgetdomainname.c: Likewise.
9186         * lib/xgetdomainname.h: Likewise.
9187         * lib/xgethostname.c: Likewise.
9188         * lib/xmalloc.c: Likewise.
9189         * lib/xmalloca.c: Likewise.
9190         * lib/xmalloca.h: Likewise.
9191         * lib/xmemcoll.c: Likewise.
9192         * lib/xnanosleep.c: Likewise.
9193         * lib/xreadlink.c: Likewise.
9194         * lib/xreadlink.h: Likewise.
9195         * lib/xsetenv.c: Likewise.
9196         * lib/xsetenv.h: Likewise.
9197         * lib/xstriconv.c: Likewise.
9198         * lib/xstriconv.h: Likewise.
9199         * lib/xstrndup.c: Likewise.
9200         * lib/xstrndup.h: Likewise.
9201         * lib/xstrtod.c: Likewise.
9202         * lib/xstrtod.h: Likewise.
9203         * lib/xstrtol-error.c: Likewise.
9204         * lib/xstrtol.c: Likewise.
9205         * lib/xstrtol.h: Likewise.
9206         * lib/xtime.h: Likewise.
9207         * lib/xvasprintf.c: Likewise.
9208         * lib/xvasprintf.h: Likewise.
9209         * lib/yesno.c: Likewise.
9210         * lib/yesno.h: Likewise.
9211         * posix-modules: Likewise.
9212         * tests/test-alloca-opt.c: Likewise.
9213         * tests/test-arcfour.c: Likewise.
9214         * tests/test-arctwo.c: Likewise.
9215         * tests/test-argmatch.c: Likewise.
9216         * tests/test-argp-2.sh: Likewise.
9217         * tests/test-argp.c: Likewise.
9218         * tests/test-arpa_inet.c: Likewise.
9219         * tests/test-array_list.c: Likewise.
9220         * tests/test-array_oset.c: Likewise.
9221         * tests/test-atexit.c: Likewise.
9222         * tests/test-avltree_list.c: Likewise.
9223         * tests/test-avltree_oset.c: Likewise.
9224         * tests/test-avltreehash_list.c: Likewise.
9225         * tests/test-base64.c: Likewise.
9226         * tests/test-binary-io.c: Likewise.
9227         * tests/test-byteswap.c: Likewise.
9228         * tests/test-c-ctype.c: Likewise.
9229         * tests/test-c-strcasecmp.c: Likewise.
9230         * tests/test-c-strcasestr.c: Likewise.
9231         * tests/test-c-strncasecmp.c: Likewise.
9232         * tests/test-c-strstr.c: Likewise.
9233         * tests/test-canonicalize-lgpl.c: Likewise.
9234         * tests/test-canonicalize.c: Likewise.
9235         * tests/test-carray_list.c: Likewise.
9236         * tests/test-ceilf.c: Likewise.
9237         * tests/test-ceill.c: Likewise.
9238         * tests/test-count-one-bits.c: Likewise.
9239         * tests/test-crc.c: Likewise.
9240         * tests/test-dirname.c: Likewise.
9241         * tests/test-fbufmode.c: Likewise.
9242         * tests/test-fcntl.c: Likewise.
9243         * tests/test-fflush.c: Likewise.
9244         * tests/test-floorf.c: Likewise.
9245         * tests/test-floorl.c: Likewise.
9246         * tests/test-fopen.c: Likewise.
9247         * tests/test-fprintf-posix.c: Likewise.
9248         * tests/test-fprintf-posix.h: Likewise.
9249         * tests/test-fpurge.c: Likewise.
9250         * tests/test-freadable.c: Likewise.
9251         * tests/test-freadahead.c: Likewise.
9252         * tests/test-freading.c: Likewise.
9253         * tests/test-freopen.c: Likewise.
9254         * tests/test-frexp.c: Likewise.
9255         * tests/test-frexpl.c: Likewise.
9256         * tests/test-fseek.c: Likewise.
9257         * tests/test-fseeko.c: Likewise.
9258         * tests/test-fseterr.c: Likewise.
9259         * tests/test-fstrcmp.c: Likewise.
9260         * tests/test-ftell.c: Likewise.
9261         * tests/test-ftello.c: Likewise.
9262         * tests/test-fwritable.c: Likewise.
9263         * tests/test-fwriting.c: Likewise.
9264         * tests/test-getaddrinfo.c: Likewise.
9265         * tests/test-getpass.c: Likewise.
9266         * tests/test-gettimeofday.c: Likewise.
9267         * tests/test-hmac-md5.c: Likewise.
9268         * tests/test-hmac-sha1.c: Likewise.
9269         * tests/test-iconv.c: Likewise.
9270         * tests/test-iconvme.c: Likewise.
9271         * tests/test-inttypes.c: Likewise.
9272         * tests/test-isnan.c: Likewise.
9273         * tests/test-isnanf.c: Likewise.
9274         * tests/test-isnanl-nolibm.c: Likewise.
9275         * tests/test-isnanl.c: Likewise.
9276         * tests/test-isnanl.h: Likewise.
9277         * tests/test-ldexpl.c: Likewise.
9278         * tests/test-linked_list.c: Likewise.
9279         * tests/test-linkedhash_list.c: Likewise.
9280         * tests/test-locale.c: Likewise.
9281         * tests/test-localename.c: Likewise.
9282         * tests/test-lock.c: Likewise.
9283         * tests/test-lseek.c: Likewise.
9284         * tests/test-malloca.c: Likewise.
9285         * tests/test-math.c: Likewise.
9286         * tests/test-mbscasecmp.c: Likewise.
9287         * tests/test-mbscasestr1.c: Likewise.
9288         * tests/test-mbscasestr2.c: Likewise.
9289         * tests/test-mbscasestr3.c: Likewise.
9290         * tests/test-mbscasestr4.c: Likewise.
9291         * tests/test-mbschr.c: Likewise.
9292         * tests/test-mbscspn.c: Likewise.
9293         * tests/test-mbsncasecmp.c: Likewise.
9294         * tests/test-mbspbrk.c: Likewise.
9295         * tests/test-mbspcasecmp.c: Likewise.
9296         * tests/test-mbsrchr.c: Likewise.
9297         * tests/test-mbsspn.c: Likewise.
9298         * tests/test-mbsstr1.c: Likewise.
9299         * tests/test-mbsstr2.c: Likewise.
9300         * tests/test-mbsstr3.c: Likewise.
9301         * tests/test-md5.c: Likewise.
9302         * tests/test-memmem.c: Likewise.
9303         * tests/test-netinet_in.c: Likewise.
9304         * tests/test-open.c: Likewise.
9305         * tests/test-printf-frexp.c: Likewise.
9306         * tests/test-printf-frexpl.c: Likewise.
9307         * tests/test-printf-posix.c: Likewise.
9308         * tests/test-printf-posix.h: Likewise.
9309         * tests/test-rbtree_list.c: Likewise.
9310         * tests/test-rbtree_oset.c: Likewise.
9311         * tests/test-rbtreehash_list.c: Likewise.
9312         * tests/test-read-file.c: Likewise.
9313         * tests/test-rijndael.c: Likewise.
9314         * tests/test-search.c: Likewise.
9315         * tests/test-signbit.c: Likewise.
9316         * tests/test-sleep.c: Likewise.
9317         * tests/test-snprintf-posix.c: Likewise.
9318         * tests/test-snprintf-posix.h: Likewise.
9319         * tests/test-snprintf.c: Likewise.
9320         * tests/test-sprintf-posix.c: Likewise.
9321         * tests/test-sprintf-posix.h: Likewise.
9322         * tests/test-stat-time.c: Likewise.
9323         * tests/test-stdbool.c: Likewise.
9324         * tests/test-stdint.c: Likewise.
9325         * tests/test-stdio.c: Likewise.
9326         * tests/test-stdlib.c: Likewise.
9327         * tests/test-stpncpy.c: Likewise.
9328         * tests/test-strcasestr.c: Likewise.
9329         * tests/test-striconv.c: Likewise.
9330         * tests/test-striconveh.c: Likewise.
9331         * tests/test-striconveha.c: Likewise.
9332         * tests/test-string.c: Likewise.
9333         * tests/test-sys_select.c: Likewise.
9334         * tests/test-sys_socket.c: Likewise.
9335         * tests/test-sys_stat.c: Likewise.
9336         * tests/test-sys_time.c: Likewise.
9337         * tests/test-sysexits.c: Likewise.
9338         * tests/test-time.c: Likewise.
9339         * tests/test-tls.c: Likewise.
9340         * tests/test-trunc.c: Likewise.
9341         * tests/test-truncf.c: Likewise.
9342         * tests/test-truncl.c: Likewise.
9343         * tests/test-unistd.c: Likewise.
9344         * tests/test-vasnprintf-posix.c: Likewise.
9345         * tests/test-vasnprintf-posix2.c: Likewise.
9346         * tests/test-vasnprintf.c: Likewise.
9347         * tests/test-vasprintf-posix.c: Likewise.
9348         * tests/test-vasprintf.c: Likewise.
9349         * tests/test-verify.c: Likewise.
9350         * tests/test-vfprintf-posix.c: Likewise.
9351         * tests/test-vprintf-posix.c: Likewise.
9352         * tests/test-vsnprintf-posix.c: Likewise.
9353         * tests/test-vsnprintf.c: Likewise.
9354         * tests/test-vsprintf-posix.c: Likewise.
9355         * tests/test-wchar.c: Likewise.
9356         * tests/test-wctype.c: Likewise.
9357         * tests/test-wcwidth.c: Likewise.
9358         * tests/test-xstrtol.c: Likewise.
9359         * tests/test-xvasprintf.c: Likewise.
9360         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9361         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9362         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9363         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9364         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9365         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9366         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9367         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9368         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9369         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9370         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9371         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9372         * tests/uniname/test-uninames.c: Likewise.
9373         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9374         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9375         * tests/unistdio/test-u16-printf1.h: Likewise.
9376         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9377         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9378         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9379         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9380         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9381         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9382         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9383         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9384         * tests/unistdio/test-u32-printf1.h: Likewise.
9385         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9386         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9387         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9388         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9389         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9390         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9391         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9392         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9393         * tests/unistdio/test-u8-printf1.h: Likewise.
9394         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9395         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9396         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9397         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9398         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9399         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9400         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9401         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9402         * tests/unistdio/test-ulc-printf1.h: Likewise.
9403         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9404         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9405         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9406         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9407         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9408         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9409         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9410         * tests/uniwidth/test-u16-width.c: Likewise.
9411         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9412         * tests/uniwidth/test-u32-width.c: Likewise.
9413         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9414         * tests/uniwidth/test-u8-width.c: Likewise.
9415         * tests/uniwidth/test-uc_width.c: Likewise.
9416         * config/srclist-update: Likewise.
9417         (fixlicense): Update to GPLv3+.
9418
9419         Change copyright notice from LGPLv2.1+ to LGPLv3+.
9420         * tests/test-tsearch.c: Change copyright notice.
9421
9422         Change copyright notice from LGPLv2.0+ to LGPLv3+.
9423         * lib/c-strcaseeq.h: Change copyright notice.
9424         * lib/streq.h: Likewise.
9425         * lib/uniconv.h: Likewise.
9426         * lib/uniconv/u-conv-from-enc.h: Likewise.
9427         * lib/uniconv/u-conv-to-enc.h: Likewise.
9428         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9429         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9430         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9431         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9432         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9433         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9434         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9435         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9436         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9437         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9438         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9439         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9440         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9441         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9442         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9443         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9444         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9445         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
9446         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
9447         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
9448         * lib/uniname.h: Likewise.
9449         * lib/uniname/uniname.c: Likewise.
9450         * lib/unistdio.h: Likewise.
9451         * lib/unistdio/u-asnprintf.h: Likewise.
9452         * lib/unistdio/u-asprintf.h: Likewise.
9453         * lib/unistdio/u-printf-args.c: Likewise.
9454         * lib/unistdio/u-printf-args.h: Likewise.
9455         * lib/unistdio/u-printf-parse.h: Likewise.
9456         * lib/unistdio/u-snprintf.h: Likewise.
9457         * lib/unistdio/u-sprintf.h: Likewise.
9458         * lib/unistdio/u-vasprintf.h: Likewise.
9459         * lib/unistdio/u-vsnprintf.h: Likewise.
9460         * lib/unistdio/u-vsprintf.h: Likewise.
9461         * lib/unistdio/u16-asnprintf.c: Likewise.
9462         * lib/unistdio/u16-asprintf.c: Likewise.
9463         * lib/unistdio/u16-printf-parse.c: Likewise.
9464         * lib/unistdio/u16-snprintf.c: Likewise.
9465         * lib/unistdio/u16-sprintf.c: Likewise.
9466         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
9467         * lib/unistdio/u16-u16-asprintf.c: Likewise.
9468         * lib/unistdio/u16-u16-snprintf.c: Likewise.
9469         * lib/unistdio/u16-u16-sprintf.c: Likewise.
9470         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
9471         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
9472         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
9473         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
9474         * lib/unistdio/u16-vasnprintf.c: Likewise.
9475         * lib/unistdio/u16-vasprintf.c: Likewise.
9476         * lib/unistdio/u16-vsnprintf.c: Likewise.
9477         * lib/unistdio/u16-vsprintf.c: Likewise.
9478         * lib/unistdio/u32-asnprintf.c: Likewise.
9479         * lib/unistdio/u32-asprintf.c: Likewise.
9480         * lib/unistdio/u32-printf-parse.c: Likewise.
9481         * lib/unistdio/u32-snprintf.c: Likewise.
9482         * lib/unistdio/u32-sprintf.c: Likewise.
9483         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
9484         * lib/unistdio/u32-u32-asprintf.c: Likewise.
9485         * lib/unistdio/u32-u32-snprintf.c: Likewise.
9486         * lib/unistdio/u32-u32-sprintf.c: Likewise.
9487         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
9488         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
9489         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
9490         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
9491         * lib/unistdio/u32-vasnprintf.c: Likewise.
9492         * lib/unistdio/u32-vasprintf.c: Likewise.
9493         * lib/unistdio/u32-vsnprintf.c: Likewise.
9494         * lib/unistdio/u32-vsprintf.c: Likewise.
9495         * lib/unistdio/u8-asnprintf.c: Likewise.
9496         * lib/unistdio/u8-asprintf.c: Likewise.
9497         * lib/unistdio/u8-printf-parse.c: Likewise.
9498         * lib/unistdio/u8-snprintf.c: Likewise.
9499         * lib/unistdio/u8-sprintf.c: Likewise.
9500         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
9501         * lib/unistdio/u8-u8-asprintf.c: Likewise.
9502         * lib/unistdio/u8-u8-snprintf.c: Likewise.
9503         * lib/unistdio/u8-u8-sprintf.c: Likewise.
9504         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
9505         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
9506         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
9507         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
9508         * lib/unistdio/u8-vasnprintf.c: Likewise.
9509         * lib/unistdio/u8-vasprintf.c: Likewise.
9510         * lib/unistdio/u8-vsnprintf.c: Likewise.
9511         * lib/unistdio/u8-vsprintf.c: Likewise.
9512         * lib/unistdio/ulc-asnprintf.c: Likewise.
9513         * lib/unistdio/ulc-asprintf.c: Likewise.
9514         * lib/unistdio/ulc-printf-parse.c: Likewise.
9515         * lib/unistdio/ulc-snprintf.c: Likewise.
9516         * lib/unistdio/ulc-sprintf.c: Likewise.
9517         * lib/unistdio/ulc-vasnprintf.c: Likewise.
9518         * lib/unistdio/ulc-vasprintf.c: Likewise.
9519         * lib/unistdio/ulc-vsnprintf.c: Likewise.
9520         * lib/unistdio/ulc-vsprintf.c: Likewise.
9521         * lib/unistr.h: Likewise.
9522         * lib/unistr/u-cpy-alloc.h: Likewise.
9523         * lib/unistr/u-cpy.h: Likewise.
9524         * lib/unistr/u-endswith.h: Likewise.
9525         * lib/unistr/u-move.h: Likewise.
9526         * lib/unistr/u-set.h: Likewise.
9527         * lib/unistr/u-startswith.h: Likewise.
9528         * lib/unistr/u-stpcpy.h: Likewise.
9529         * lib/unistr/u-stpncpy.h: Likewise.
9530         * lib/unistr/u-strcat.h: Likewise.
9531         * lib/unistr/u-strcpy.h: Likewise.
9532         * lib/unistr/u-strcspn.h: Likewise.
9533         * lib/unistr/u-strdup.h: Likewise.
9534         * lib/unistr/u-strlen.h: Likewise.
9535         * lib/unistr/u-strncat.h: Likewise.
9536         * lib/unistr/u-strncpy.h: Likewise.
9537         * lib/unistr/u-strnlen.h: Likewise.
9538         * lib/unistr/u-strpbrk.h: Likewise.
9539         * lib/unistr/u-strspn.h: Likewise.
9540         * lib/unistr/u-strstr.h: Likewise.
9541         * lib/unistr/u-strtok.h: Likewise.
9542         * lib/unistr/u16-check.c: Likewise.
9543         * lib/unistr/u16-chr.c: Likewise.
9544         * lib/unistr/u16-cmp.c: Likewise.
9545         * lib/unistr/u16-cpy-alloc.c: Likewise.
9546         * lib/unistr/u16-cpy.c: Likewise.
9547         * lib/unistr/u16-endswith.c: Likewise.
9548         * lib/unistr/u16-mblen.c: Likewise.
9549         * lib/unistr/u16-mbsnlen.c: Likewise.
9550         * lib/unistr/u16-mbtouc-aux.c: Likewise.
9551         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9552         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9553         * lib/unistr/u16-mbtouc.c: Likewise.
9554         * lib/unistr/u16-mbtoucr.c: Likewise.
9555         * lib/unistr/u16-move.c: Likewise.
9556         * lib/unistr/u16-next.c: Likewise.
9557         * lib/unistr/u16-prev.c: Likewise.
9558         * lib/unistr/u16-set.c: Likewise.
9559         * lib/unistr/u16-startswith.c: Likewise.
9560         * lib/unistr/u16-stpcpy.c: Likewise.
9561         * lib/unistr/u16-stpncpy.c: Likewise.
9562         * lib/unistr/u16-strcat.c: Likewise.
9563         * lib/unistr/u16-strchr.c: Likewise.
9564         * lib/unistr/u16-strcmp.c: Likewise.
9565         * lib/unistr/u16-strcpy.c: Likewise.
9566         * lib/unistr/u16-strcspn.c: Likewise.
9567         * lib/unistr/u16-strdup.c: Likewise.
9568         * lib/unistr/u16-strlen.c: Likewise.
9569         * lib/unistr/u16-strmblen.c: Likewise.
9570         * lib/unistr/u16-strmbtouc.c: Likewise.
9571         * lib/unistr/u16-strncat.c: Likewise.
9572         * lib/unistr/u16-strncmp.c: Likewise.
9573         * lib/unistr/u16-strncpy.c: Likewise.
9574         * lib/unistr/u16-strnlen.c: Likewise.
9575         * lib/unistr/u16-strpbrk.c: Likewise.
9576         * lib/unistr/u16-strrchr.c: Likewise.
9577         * lib/unistr/u16-strspn.c: Likewise.
9578         * lib/unistr/u16-strstr.c: Likewise.
9579         * lib/unistr/u16-strtok.c: Likewise.
9580         * lib/unistr/u16-to-u32.c: Likewise.
9581         * lib/unistr/u16-to-u8.c: Likewise.
9582         * lib/unistr/u16-uctomb-aux.c: Likewise.
9583         * lib/unistr/u16-uctomb.c: Likewise.
9584         * lib/unistr/u32-check.c: Likewise.
9585         * lib/unistr/u32-chr.c: Likewise.
9586         * lib/unistr/u32-cmp.c: Likewise.
9587         * lib/unistr/u32-cpy-alloc.c: Likewise.
9588         * lib/unistr/u32-cpy.c: Likewise.
9589         * lib/unistr/u32-endswith.c: Likewise.
9590         * lib/unistr/u32-mblen.c: Likewise.
9591         * lib/unistr/u32-mbsnlen.c: Likewise.
9592         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9593         * lib/unistr/u32-mbtouc.c: Likewise.
9594         * lib/unistr/u32-mbtoucr.c: Likewise.
9595         * lib/unistr/u32-move.c: Likewise.
9596         * lib/unistr/u32-next.c: Likewise.
9597         * lib/unistr/u32-prev.c: Likewise.
9598         * lib/unistr/u32-set.c: Likewise.
9599         * lib/unistr/u32-startswith.c: Likewise.
9600         * lib/unistr/u32-stpcpy.c: Likewise.
9601         * lib/unistr/u32-stpncpy.c: Likewise.
9602         * lib/unistr/u32-strcat.c: Likewise.
9603         * lib/unistr/u32-strchr.c: Likewise.
9604         * lib/unistr/u32-strcmp.c: Likewise.
9605         * lib/unistr/u32-strcpy.c: Likewise.
9606         * lib/unistr/u32-strcspn.c: Likewise.
9607         * lib/unistr/u32-strdup.c: Likewise.
9608         * lib/unistr/u32-strlen.c: Likewise.
9609         * lib/unistr/u32-strmblen.c: Likewise.
9610         * lib/unistr/u32-strmbtouc.c: Likewise.
9611         * lib/unistr/u32-strncat.c: Likewise.
9612         * lib/unistr/u32-strncmp.c: Likewise.
9613         * lib/unistr/u32-strncpy.c: Likewise.
9614         * lib/unistr/u32-strnlen.c: Likewise.
9615         * lib/unistr/u32-strpbrk.c: Likewise.
9616         * lib/unistr/u32-strrchr.c: Likewise.
9617         * lib/unistr/u32-strspn.c: Likewise.
9618         * lib/unistr/u32-strstr.c: Likewise.
9619         * lib/unistr/u32-strtok.c: Likewise.
9620         * lib/unistr/u32-to-u16.c: Likewise.
9621         * lib/unistr/u32-to-u8.c: Likewise.
9622         * lib/unistr/u32-uctomb.c: Likewise.
9623         * lib/unistr/u8-check.c: Likewise.
9624         * lib/unistr/u8-chr.c: Likewise.
9625         * lib/unistr/u8-cmp.c: Likewise.
9626         * lib/unistr/u8-cpy-alloc.c: Likewise.
9627         * lib/unistr/u8-cpy.c: Likewise.
9628         * lib/unistr/u8-endswith.c: Likewise.
9629         * lib/unistr/u8-mblen.c: Likewise.
9630         * lib/unistr/u8-mbsnlen.c: Likewise.
9631         * lib/unistr/u8-mbtouc-aux.c: Likewise.
9632         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9633         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9634         * lib/unistr/u8-mbtouc.c: Likewise.
9635         * lib/unistr/u8-mbtoucr.c: Likewise.
9636         * lib/unistr/u8-move.c: Likewise.
9637         * lib/unistr/u8-next.c: Likewise.
9638         * lib/unistr/u8-prev.c: Likewise.
9639         * lib/unistr/u8-set.c: Likewise.
9640         * lib/unistr/u8-startswith.c: Likewise.
9641         * lib/unistr/u8-stpcpy.c: Likewise.
9642         * lib/unistr/u8-stpncpy.c: Likewise.
9643         * lib/unistr/u8-strcat.c: Likewise.
9644         * lib/unistr/u8-strchr.c: Likewise.
9645         * lib/unistr/u8-strcmp.c: Likewise.
9646         * lib/unistr/u8-strcpy.c: Likewise.
9647         * lib/unistr/u8-strcspn.c: Likewise.
9648         * lib/unistr/u8-strdup.c: Likewise.
9649         * lib/unistr/u8-strlen.c: Likewise.
9650         * lib/unistr/u8-strmblen.c: Likewise.
9651         * lib/unistr/u8-strmbtouc.c: Likewise.
9652         * lib/unistr/u8-strncat.c: Likewise.
9653         * lib/unistr/u8-strncmp.c: Likewise.
9654         * lib/unistr/u8-strncpy.c: Likewise.
9655         * lib/unistr/u8-strnlen.c: Likewise.
9656         * lib/unistr/u8-strpbrk.c: Likewise.
9657         * lib/unistr/u8-strrchr.c: Likewise.
9658         * lib/unistr/u8-strspn.c: Likewise.
9659         * lib/unistr/u8-strstr.c: Likewise.
9660         * lib/unistr/u8-strtok.c: Likewise.
9661         * lib/unistr/u8-to-u16.c: Likewise.
9662         * lib/unistr/u8-to-u32.c: Likewise.
9663         * lib/unistr/u8-uctomb-aux.c: Likewise.
9664         * lib/unistr/u8-uctomb.c: Likewise.
9665         * lib/unitypes.h: Likewise.
9666         * lib/uniwidth.h: Likewise.
9667         * lib/uniwidth/cjk.h: Likewise.
9668         * lib/uniwidth/u16-strwidth.c: Likewise.
9669         * lib/uniwidth/u16-width.c: Likewise.
9670         * lib/uniwidth/u32-strwidth.c: Likewise.
9671         * lib/uniwidth/u32-width.c: Likewise.
9672         * lib/uniwidth/u8-strwidth.c: Likewise.
9673         * lib/uniwidth/u8-width.c: Likewise.
9674         * lib/uniwidth/width.c: Likewise.
9675
9676 2007-10-07  Bruno Haible  <bruno@clisp.org>
9677
9678         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
9679         The file is still under LGPL (see modules/inttypes).
9680
9681 2007-10-06  Bruno Haible  <bruno@clisp.org>
9682
9683         * modules/trunc (Dependencies): Add 'extensions'.
9684         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
9685         Reported by Ben Pfaff <blp@gnu.org>.
9686
9687 2007-10-06  Bruno Haible  <bruno@clisp.org>
9688
9689         * modules/freopen-tests: New file.
9690         * tests/test-freopen.c: New file.
9691
9692         * modules/fopen-tests: New file.
9693         * tests/test-fopen.c: New file.
9694
9695         * modules/fopen: New file.
9696         * lib/fopen.c: New file.
9697         * m4/fopen.m4: New file.
9698         * modules/freopen: New file.
9699         * lib/freopen.c: New file.
9700         * m4/freopen.m4: New file.
9701         * lib/stdio.in.h (fopen, freopen): New declarations.
9702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
9703         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9704         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
9705         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9706         * doc/functions/fopen.texi: Mention the 'fopen' module.
9707         * doc/functions/freopen.texi: Mention the 'freopen' module.
9708
9709 2007-10-06  Bruno Haible  <bruno@clisp.org>
9710
9711         * modules/open-tests: New file.
9712         * tests/test-open.c: New file.
9713
9714         * modules/open: New file.
9715         * lib/open.c: New file.
9716         * m4/open.m4: New file.
9717         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
9718         lib/open.c does.
9719         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9720         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9721         macros.
9722         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9723         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9724         REPLACE_OPEN.
9725         * doc/functions/open.texi: Mention the 'open' module.
9726
9727 2007-10-04  Bruno Haible  <bruno@clisp.org>
9728
9729         * modules/ceill-tests: New file.
9730         * tests/test-ceill.c: New file.
9731
9732         * modules/ceill: New file.
9733         * lib/ceill.c: Replace entire file.
9734         * m4/ceill.m4: New file.
9735         * lib/math.in.h (ceill): Replace declaration.
9736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
9737         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
9738         * doc/functions/ceill.texi: Mention the 'ceill' module.
9739         * modules/mathl (Files): Remove lib/ceill.c.
9740         (Depends-on): Add ceill.
9741
9742 2007-10-04  Bruno Haible  <bruno@clisp.org>
9743
9744         * modules/ceilf-tests: New file.
9745         * tests/test-ceilf.c: New file.
9746
9747         * modules/ceilf: New file.
9748         * lib/ceil.c: New file.
9749         * lib/ceilf.c: New file.
9750         * m4/ceilf.m4: New file.
9751         * lib/math.in.h (ceilf): New declaration.
9752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
9753         HAVE_DECL_CEILF.
9754         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
9755         HAVE_DECL_CEILF.
9756         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
9757
9758 2007-10-04  Bruno Haible  <bruno@clisp.org>
9759
9760         * modules/floorl-tests: New file.
9761         * tests/test-floorl.c: New file.
9762
9763         * modules/floorl: New file.
9764         * lib/floorl.c: Replace entire file.
9765         * m4/floorl.m4: New file.
9766         * lib/math.in.h (floorl): Replace declaration.
9767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
9768         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
9769         * doc/functions/floorl.texi: Mention the 'floorl' module.
9770         * modules/mathl (Files): Remove lib/floorl.c.
9771         (Depends-on): Add floorl.
9772
9773 2007-10-04  Bruno Haible  <bruno@clisp.org>
9774
9775         * modules/floorf-tests: New file.
9776         * tests/test-floorf.c: New file.
9777
9778         * modules/floorf: New file.
9779         * lib/floor.c: New file.
9780         * lib/floorf.c: New file.
9781         * m4/floorf.m4: New file.
9782         * lib/math.in.h (floorf): New declaration.
9783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
9784         HAVE_DECL_FLOORF.
9785         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
9786         HAVE_DECL_FLOORF.
9787         * doc/functions/floorf.texi: Mention the 'floorf' module.
9788
9789 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
9790             Bruno Haible  <bruno@clisp.org>
9791
9792         Advertise for the Git server instead of the CVS server.
9793         * doc/gnulib-intro.texi (Steady Development): Mention the Git
9794         repository instead of the CVS one.
9795         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
9796         about all VCS systems generically.
9797         * doc/gnulib.texi (Introduction): Capitalize `Git'.
9798
9799 2007-10-04  Bruno Haible  <bruno@clisp.org>
9800
9801         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
9802         means.
9803         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
9804
9805 2007-10-04  Bruno Haible  <bruno@clisp.org>
9806
9807         * modules/truncl-tests: New file.
9808         * tests/test-truncl.c: New file.
9809
9810         * modules/truncl: New file.
9811         * lib/truncl.c: New file.
9812         * m4/truncl.m4: New file.
9813         * lib/math.in.h (truncl): New declaration.
9814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
9815         HAVE_DECL_TRUNCL.
9816         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
9817         HAVE_DECL_TRUNCL.
9818         * doc/functions/truncl.texi: Mention the 'truncl' module.
9819
9820 2007-10-04  Bruno Haible  <bruno@clisp.org>
9821
9822         * modules/truncf-tests: New file.
9823         * tests/test-truncf.c: New file.
9824
9825         * modules/truncf: New file.
9826         * lib/trunc.c: Make paramerizable through USE_* macros.
9827         * lib/truncf.c: New file.
9828         * m4/truncf.m4: New file.
9829         * lib/math.in.h (truncf): New declaration.
9830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
9831         HAVE_DECL_TRUNCF.
9832         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
9833         HAVE_DECL_TRUNCF.
9834         * doc/functions/truncf.texi: Mention the 'truncf' module.
9835
9836 2007-10-03  Bruno Haible  <bruno@clisp.org>
9837
9838         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
9839         augmentation also for tests modules.
9840         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
9841         * modules/atexit-tests (Makefile.am): Likewise.
9842         * modules/binary-io-tests (Makefile.am): Likewise.
9843         * modules/c-strcase-tests (Makefile.am): Likewise.
9844         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
9845         * modules/canonicalize-tests (Makefile.am): Likewise.
9846         * modules/closein-tests (Makefile.am): Likewise.
9847         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9848         * modules/freadahead-tests (Makefile.am): Likewise.
9849         * modules/fseek-tests (Makefile.am): Likewise.
9850         * modules/fseeko-tests (Makefile.am): Likewise.
9851         * modules/ftell-tests (Makefile.am): Likewise.
9852         * modules/ftello-tests (Makefile.am): Likewise.
9853         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
9854         * modules/isnanl-tests (Makefile.am): Likewise.
9855         * modules/lseek-tests (Makefile.am): Likewise.
9856         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9857         * modules/mbscasestr-tests (Makefile.am): Likewise.
9858         * modules/mbschr-tests (Makefile.am): Likewise.
9859         * modules/mbscspn-tests (Makefile.am): Likewise.
9860         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9861         * modules/mbspbrk-tests (Makefile.am): Likewise.
9862         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9863         * modules/mbsrchr-tests (Makefile.am): Likewise.
9864         * modules/mbsspn-tests (Makefile.am): Likewise.
9865         * modules/mbsstr-tests (Makefile.am): Likewise.
9866         * modules/printf-posix-tests (Makefile.am): Likewise.
9867         * modules/snprintf-posix-tests (Makefile.am): Likewise.
9868         * modules/sprintf-posix-tests (Makefile.am): Likewise.
9869         * modules/tsearch-tests (Makefile.am): Likewise.
9870         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9871         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9872         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9873         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9874         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9875         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9876         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9877         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9878         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
9879         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
9880         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9881         * modules/xstrtol-tests (Makefile.am): Likewise.
9882         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9883         * modules/yesno-tests (Makefile.am): Likewise.
9884
9885 2007-10-03  Bruno Haible  <bruno@clisp.org>
9886
9887         * modules/trunc-tests: New file.
9888         * tests/test-trunc.c: New file.
9889
9890         * modules/trunc: New file.
9891         * lib/trunc.c: New file.
9892         * m4/trunc.m4: New file.
9893         * lib/math.in.h (trunc): New declaration.
9894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
9895         HAVE_DECL_TRUNC.
9896         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
9897         HAVE_DECL_TRUNC.
9898         * doc/functions/trunc.texi: Mention the 'trunc' module.
9899
9900 2007-10-03  Bruno Haible  <bruno@clisp.org>
9901
9902         * tests/test-fpending.c: New file, mostly copied
9903         from coreutils/lib/t-fpending.c.
9904         * modules/fpending-tests: New file.
9905
9906 2007-10-03  Bruno Haible  <bruno@clisp.org>
9907
9908         Port the stdio extensions to QNX (untested).
9909         * lib/fseterr.c (fseterr): Add support for QNX.
9910         * lib/fbufmode.c (fbufmode): Likewise.
9911         * lib/freadable.c (freadable): Likewise.
9912         * lib/fwritable.c (fwritable): Likewise.
9913         * lib/freading.c (freading): Likewise.
9914         * lib/fwriting.c (fwriting): Likewise.
9915         * lib/freadahead.c (freadahed): Likewise.
9916         * lib/fpurge.c (fpurge): Likewise.
9917         * lib/fseeko.c (rpl_fseeko): Likewise.
9918
9919 2007-10-03  Bruno Haible  <bruno@clisp.org>
9920             Jim Meyering  <jim@meyering.net>
9921             Eric Blake  <ebb9@byu.net>
9922
9923         * doc/relocatable.texi: Use @command instead of @program.
9924
9925 2007-10-02  Jim Meyering  <jim@meyering.net>
9926
9927         Perform one more "_.h" -> ".in.h" substitution.
9928         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
9929         instead of unistd_.h here, too.
9930
9931 2007-10-01  Bruno Haible  <bruno@clisp.org>
9932
9933         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
9934         Needed for the alloca-opt module.
9935
9936 2007-09-30  Bruno Haible  <bruno@clisp.org>
9937
9938         * lib/alloca.in.h: Renamed from lib/alloca_.h.
9939         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
9940         alloca_.h.
9941         * lib/argz.in.h: Renamed from lib/argz_.h.
9942         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
9943         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
9944         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
9945         byteswap_.h.
9946         * lib/dirent.in.h: Renamed from lib/dirent_.h.
9947         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
9948         dirent_.h.
9949         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
9950         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
9951         fcntl_.h.
9952         * lib/float.in.h: Renamed from lib/float_.h.
9953         * modules/float (Files, Makefile.am): Use float.in.h instead of
9954         float_.h.
9955         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
9956         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
9957         fnmatch_.h.
9958         * lib/getopt.in.h: Renamed from lib/getopt_.h.
9959         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
9960         getopt_.h.
9961         * lib/glob.in.h: Renamed from lib/glob_.h.
9962         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
9963         * lib/iconv.in.h: Renamed from lib/iconv_.h.
9964         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
9965         iconv_.h.
9966         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
9967         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
9968         inttypes_.h.
9969         * lib/locale.in.h: Renamed from lib/locale_.h.
9970         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
9971         locale_.h.
9972         * lib/math.in.h: Renamed from lib/math_.h.
9973         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
9974         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
9975         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
9976         of netinet_in_.h. Add dependency.
9977         * lib/poll.in.h: Renamed from lib/poll_.h.
9978         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
9979         * lib/search.in.h: Renamed from lib/search_.h.
9980         * modules/search (Files, Makefile.am): Use search.in.h instead of
9981         search_.h.
9982         * lib/signal.in.h: Renamed from lib/signal_.h.
9983         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
9984         _signal.h.
9985         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
9986         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
9987         stdbool_.h.
9988         * lib/stdint.in.h: Renamed from lib/stdint_.h.
9989         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
9990         stdint_.h.
9991         * lib/stdio.in.h: Renamed from lib/stdio_.h.
9992         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
9993         stdio_.h.
9994         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
9995         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
9996         stdlib_.h.
9997         * lib/string.in.h: Renamed from lib/string_.h.
9998         * modules/string (Files, Makefile.am): Use string.in.h instead of
9999         string_.h.
10000         * doc/gnulib-tool.texi (Initial import): Update.
10001         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
10002         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
10003         of sys_select_.h. Add dependency.
10004         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
10005         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
10006         of sys_socket_.h.
10007         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
10008         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
10009         sys_stat_.h.
10010         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
10011         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
10012         sys_time_.h.
10013         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
10014         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
10015         sysexits_.h.
10016         * lib/time.in.h: Renamed from lib/time_.h.
10017         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
10018         * lib/unistd.in.h: Renamed from lib/unistd_.h.
10019         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
10020         unistd_.h.
10021         * lib/wchar.in.h: Renamed from lib/wchar_.h.
10022         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
10023         wchar_.h.
10024         * lib/wctype.in.h: Renamed from lib/wctype_.h.
10025         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
10026         wctype_.h.
10027         * build-aux/bootstrap (slurp): Update.
10028         * lib/.cppi-disable: Update.
10029
10030 2007-09-30  Bruno Haible  <bruno@clisp.org>
10031
10032         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
10033         Needed on BeOS.
10034
10035 2007-09-30  Bruno Haible  <bruno@clisp.org>
10036
10037         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
10038
10039 2007-09-29  Bruno Haible  <bruno@clisp.org>
10040
10041         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
10042
10043 2007-09-29  Bruno Haible  <bruno@clisp.org>
10044
10045         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
10046         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
10047         * build-aux/install-reloc: Compile also areadlink.c.
10048         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
10049
10050 2007-09-29  Bruno Haible  <bruno@clisp.org>
10051
10052         * gnulib-tool (func_emit_initmacro_done): Indentation.
10053
10054 2007-09-29  Bruno Haible  <bruno@clisp.org>
10055
10056         * README: Add CVS checkout update instructions.
10057         Info from Bob Proulx <bob@proulx.com>.
10058
10059 2007-09-28  Eric Blake  <ebb9@byu.net>
10060
10061         Provide move-if-change.
10062         * build-aux/move-if-change: New file, based on best practice
10063         rather than any canonical upstream location.
10064
10065 2007-09-28  Jim Meyering  <jim@meyering.net>
10066
10067         Fix canonicalize loop-detection corner case.
10068         Do not attempt to stat the symlink values stored via seen_triple.
10069         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
10070         on linux-2.6.18, (but not 2.6.22).
10071         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
10072         triple_compare.  The former compares dev,ino,filename, while the latter
10073         would actually stat dirname(filename) when dev and ino were equal.
10074         * lib/hash-triple.c: Install <string.h>.
10075         (STREQ): Define.
10076         (triple_compare_ino_str): New function.
10077         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
10078
10079 2007-09-28  Eric Blake  <ebb9@byu.net>
10080
10081         Enforce that AC_REPLACE_FUNCS files exist.
10082         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
10083         override check for typos.
10084
10085         Fix test-closein on Solaris 10.
10086         * tests/test-closein.c (main): Don't assume stdin can be inherited
10087         closed on all systems.
10088         * tests/test-closein.sh: Likewise.
10089         Reported by Piotr Tarnowski.
10090
10091 2007-09-28  Jim Meyering  <jim@meyering.net>
10092
10093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
10094
10095 2007-09-27  Jim Meyering  <jim@meyering.net>
10096
10097         canonicalize: Avoid a false-positive cycle failure.
10098         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
10099         Sort.  Remove cycle-check.
10100         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
10101         not cycle-check.h.
10102         (seen_triple): New function.
10103         (canonicalize_filename_mode): Use it instead of cycle-check.
10104         * tests/test-canonicalize.c: Add a test for this bug.
10105         * tests/test-canonicalize.sh: Set up and run the test.
10106
10107         New module, file-set, from coreutils.
10108         * modules/file-set: Define it.
10109         * lib/file-set.c, lib/file-set.h: Implement.
10110
10111         New module, hash-triple, from coreutils.
10112         * modules/hash-triple: Define it.
10113         * lib/hash-triple.c, lib/hash-triple.h: Implement.
10114
10115 2007-09-25  Eric Blake  <ebb9@byu.net>
10116
10117         Fix strerror on Interix.
10118         * lib/string_.h (strerror): Declare replacement.
10119         * doc/functions/strerror.texi (strerror): Document the Interix
10120         shortcoming.
10121         * modules/string (Makefile.am): Support new hooks.
10122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
10123         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
10124         gl_FUNC_STRERROR_SEPARATE.
10125         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
10126         * lib/strerror.c (rpl_strerror): Provide replacement.
10127         * modules/strerror (Depends-on): Add string.
10128         (configure.ac): Detect use of module.
10129         * tests/test-strerror.c: New file.
10130         * modules/strerror-tests: New test module.
10131         * modules/argp (Depends-on): Add strerror.
10132         * modules/error (Depends-on): Likewise.
10133         Reported by Martin Koeppe.
10134
10135 2007-09-24  Bruno Haible  <bruno@clisp.org>
10136
10137         * README: Update git instructions.
10138
10139 2007-09-24  Eric Blake  <ebb9@byu.net>
10140
10141         Revert fpending breakage from 2007-09-08.
10142         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
10143         __fpending.c.
10144
10145 2007-09-24  Jim Meyering  <jim@meyering.net>
10146
10147         filenamecat.c: Add a test.
10148         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
10149         showing how the function works when DIR is the empty string.
10150
10151 2007-09-21  Simon Josefsson  <simon@josefsson.org>
10152
10153         * tests/test-canonicalize.sh: Turn on executable bit.
10154
10155 2007-09-19  Eric Blake  <ebb9@byu.net>
10156
10157         * README: Update CVS instructions.
10158
10159 2007-09-18  Bruno Haible  <bruno@clisp.org>
10160
10161         * modules/areadlink: New file.
10162         * lib/areadlink.h (areadlink): New declaration.
10163         * lib/areadlink.c: New file, based on lib/xreadlink.c.
10164
10165 2007-09-17  Jim Meyering  <jim@meyering.net>
10166
10167         * lib/savewd.c (ESTALE) [!defined]: Define.
10168         Reported to be required on Interix by Martin Koeppe.
10169
10170 2007-09-17  Bruno Haible  <bruno@clisp.org>
10171
10172         * gnulib-tool (func_version): Use $version.
10173
10174 2007-09-16  Bruno Haible  <bruno@clisp.org>
10175
10176         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
10177         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
10178         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
10179         Reported by Greg Schafer <gschafer@zip.com.au>.
10180
10181 2007-09-15  Bruno Haible  <bruno@clisp.org>
10182
10183         * gnulib-tool (sed): Try a little harder to make bash understand the
10184         alias.
10185         Reported by Bruce Korb <bruce.korb@gmail.com>.
10186
10187 2007-09-13  Eric Blake  <ebb9@byu.net>
10188
10189         * ChangeLog: Remove conflict markers.
10190
10191 2007-09-13  Simon Josefsson  <simon@josefsson.org>
10192
10193         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
10194         Reported by Bruno Haible <bruno@clisp.org>.
10195
10196 2007-09-12  Bruno Haible  <bruno@clisp.org>
10197
10198         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
10199         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
10200         is not defined.
10201
10202 2007-09-12  Eric Blake  <ebb9@byu.net>
10203
10204         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
10205         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
10206         Autoconf definition.
10207         * modules/euidaccess (Depends-on): Add extensions, for
10208         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
10209         * modules/fnmatch (Depends-on): Likewise.
10210         * modules/getaddrinfo (Depends-on): Likewise.
10211         * modules/getdelim (Depends-on): Likewise.
10212         * modules/getline (Depends-on): Likewise.
10213         * modules/getsubopt (Depends-on): Likewise.
10214         * modules/gettext (Depends-on): Likewise.
10215         * modules/group-member (Depends-on): Likewise.
10216         * modules/mbchar (Depends-on): Likewise.
10217         * modules/memmem (Depends-on): Likewise.
10218         * modules/mempcpy (Depends-on): Likewise.
10219         * modules/memrchr (Depends-on): Likewise.
10220         * modules/pagealign_alloc (Depends-on): Likewise.
10221         * modules/readutmp (Depends-on): Likewise.
10222         * modules/stpcpy (Depends-on): Likewise.
10223         * modules/stpncpy (Depends-on): Likewise.
10224         * modules/strchrnul (Depends-on): Likewise.
10225         * modules/strndup (Depends-on): Likewise.
10226         * modules/strsep (Depends-on): Likewise.
10227         * modules/strverscmp (Depends-on): Likewise.
10228         * modules/vasprintf (Depends-on): Likewise.
10229         * modules/wcwidth (Depends-on): Likewise.
10230         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
10231         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
10232         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
10233         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
10234         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10235         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10236         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
10237         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10238         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
10239         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10240         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10241         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10242         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10243         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10244         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
10245         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10246         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10247         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10249         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10250         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10251         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10252         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10253         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
10254         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
10255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10256         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
10257         so that lock.m4 can be used in gettext without extensions module.
10258
10259 2007-09-11  Bruno Haible  <bruno@clisp.org>
10260
10261         * m4/isc-posix.m4: Remove file.
10262         Suggested by Eric Blake.
10263
10264 2007-09-11  Eric Blake  <ebb9@byu.net>
10265
10266         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
10267
10268 2007-09-10  Bruno Haible  <bruno@clisp.org>
10269
10270         * posix-modules: Fix typo in error message.
10271         Reported by Matt <mkraai@beckman.com>.
10272
10273 2007-09-09  Bruno Haible  <bruno@clisp.org>
10274
10275         * doc/functions/getdelim.texi: Update list of platforms lacking the
10276         function.
10277         * doc/functions/getline.texi: Likewise.
10278
10279 2007-09-09  Jim Meyering  <jim@meyering.net>
10280
10281         * lib/hash.c (hash_initialize): Detect calloc failure.
10282         Reported by Bruno Haible.
10283
10284 2007-09-09  Bruno Haible  <bruno@clisp.org>
10285
10286         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
10287         malloc or realloc fails.
10288
10289 2007-09-09  Bruno Haible  <bruno@clisp.org>
10290
10291         * modules/getcwd (Depends-on): Add malloc-posix.
10292         * modules/glob (Depends-on): Likewise.
10293         * modules/putenv (Depends-on): Likewise.
10294         * modules/strdup (Depends-on): Likewise.
10295         * modules/getdelim (Depends-on): Add realloc-posix.
10296         * modules/read-file (Depends-on): Likewise.
10297
10298 2007-09-09  Bruno Haible  <bruno@clisp.org>
10299
10300         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
10301         (gl_FUNC_MALLOC_POSIX): Require it.
10302         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
10303         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
10304         * modules/realloc (Files): Add m4/malloc.m4.
10305         * modules/calloc (Files): Likewise.
10306
10307 2007-09-09  Bruno Haible  <bruno@clisp.org>
10308
10309         * modules/malloc-posix: New file.
10310         * modules/malloc (Depends-on): Add malloc-posix.
10311         * lib/malloc.c: Include errno.h.
10312         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10313         and a POSIX-compatible malloc into a single function. Set ENOMEM
10314         when returning NULL.
10315         * m4/malloc.m4: New file.
10316         * doc/functions/malloc.texi: Mention the malloc-posix module.
10317         * lib/stdlib_.h (malloc): New declaration.
10318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10319         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10320         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10321         and HAVE_MALLOC_POSIX.
10322
10323 2007-09-09  Bruno Haible  <bruno@clisp.org>
10324
10325         * modules/realloc-posix: New file.
10326         * modules/realloc (Depends-on): Add realloc-posix.
10327         * lib/realloc.c: Include errno.h.
10328         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10329         and a POSIX-compatible realloc into a single function. Set ENOMEM
10330         when returning NULL.
10331         * m4/realloc.m4: New file.
10332         * doc/functions/realloc.texi: Mention the realloc-posix module.
10333         * lib/stdlib_.h (realloc): New declaration.
10334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10335         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10336         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10337         and HAVE_REALLOC_POSIX.
10338
10339 2007-09-09  Bruno Haible  <bruno@clisp.org>
10340
10341         * modules/calloc-posix: New file.
10342         * modules/calloc (Depends-on): Add calloc-posix.
10343         * lib/calloc.c: Include errno.h.
10344         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10345         and a POSIX-compatible calloc into a single function. Set ENOMEM
10346         when returning NULL.
10347         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10348         * doc/functions/calloc.texi: Mention the calloc-posix module.
10349         * lib/stdlib_.h (calloc): New declaration.
10350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10351         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10352         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10353         and HAVE_CALLOC_POSIX.
10354
10355 2007-09-09  Bruno Haible  <bruno@clisp.org>
10356
10357         Allow for modules to show an arbitrary notice.
10358         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10359         * gnulib-tool: New option --extract-notice.
10360         (func_usage): Document it.
10361         (sed_extract_prog): Update.
10362         (func_get_notice): New function.
10363         (func_modules_notice): New function.
10364         (func_import, func_create_testdir): Invoke it.
10365         Suggested by Jim Meyering.
10366
10367 2007-09-09  Bruno Haible  <bruno@clisp.org>
10368
10369         * gnulib-tool: New options --verbose, --quiet.
10370         (func_usage): Document them.
10371         (verbose): New variable.
10372         (func_execute_command): New function.
10373         (func_import): Don't show the module list and the file list if
10374         $verbose < 0.
10375         (func_create_testdir): Likewise. Use func_execute_command.
10376         (func_create_megatestdir): Use func_execute_command.
10377
10378 2007-09-08  Bruno Haible  <bruno@clisp.org>
10379
10380         * gnulib-tool (func_import): Prefer rsync over wget when available,
10381         for fetching the PO files.
10382
10383 2007-09-08  Bruno Haible  <bruno@clisp.org>
10384
10385         * posix-modules: New file. Portions copied from gnulib-tool.
10386         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10387
10388 2007-09-08  Jim Meyering  <jim@meyering.net>
10389
10390         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10391         * lib/fpending.h: Rename from __fpending.h.
10392         * lib/fpending.c: Rename from __fpending.c.
10393         Include "fpending.h", not "__fpending.h".
10394         * lib/__fpending.h, lib/__fpending.c: Remove files.
10395         * modules/fpending (Files): Reflect new file names.
10396         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10397
10398 2007-09-08  Bruno Haible  <bruno@clisp.org>
10399
10400         * m4/inttypes-h.m4: Remove stub file.
10401
10402 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10403
10404         * doc/headers/stdint.texi: Discuss #include_next issue.
10405
10406 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10407
10408         * build-aux/bootstrap: Remove obsolete comment about wget --help.
10409
10410 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10411
10412         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
10413         in variable name.
10414
10415 2007-09-03  Jim Meyering  <jim@meyering.net>
10416
10417         New module: git-version-gen.
10418         * modules/git-version-gen: New file.
10419
10420         Import changes from coreutils for bootstrap script.
10421
10422         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
10423
10424         bootstrap: uses rsync to download the .po files
10425         * build-aux/bootstrap (po_download_command_format): New global.
10426         (download_po_files): Use rsync.
10427         (update_po_files): Don't remove .po files after download,
10428         so future rsync runs can take advantage of the copies.
10429
10430         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10431
10432         Solve the unnecessary-.po-file-regeneration problem once and for all.
10433         * build-aux/bootstrap (download_po_files): New function, renamed from
10434         get_translations.  Now, downloads, but doesn't update LINGUAS.
10435         (update_po_files): New function.
10436
10437         bootstrap: Ignore more.
10438         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10439         uniwidth to e.g., lib/.gitignore.
10440         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10441
10442         * build-aux/bootstrap: New setting: vc_ignore.
10443         (insert_sorted_if_absent): Create $file if absent.
10444         Adapt to new, possibly empty, list: $vc_ignore.
10445
10446         bootstrap: generate more ignorable names
10447         * build-aux/bootstrap (slurp): When generating ignorable names,
10448         also map .sin to .sed, .gperf to .c, and .y to .c.
10449
10450 2007-09-03  Jim Meyering  <jim@meyering.net>
10451
10452         * build-aux/git-version-gen: New file, from coreutils.  For details, see
10453         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
10454
10455 2007-09-02  Bruno Haible  <bruno@clisp.org>
10456
10457         Fix mis-recognition of 'mcs' on QNX 6.
10458         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
10459         output contains the string "Mono".
10460         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
10461         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
10462
10463 2007-09-01  Bruno Haible  <bruno@clisp.org>
10464
10465         Fix collision between uniwidth/* and linebreak modules.
10466         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
10467         u32_width): Remove declarations.
10468         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
10469         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
10470         streq3, streq2, streq1, streq0): Remove functions.
10471         (STREQ): Remove macro.
10472         (is_cjk_encoding): Remove function.
10473         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
10474         (uc_width, u8_width, u16_width, u32_width): Remove functions.
10475         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
10476         * NEWS: Document the change.
10477
10478 2007-09-01  Bruno Haible  <bruno@clisp.org>
10479
10480         * lib/streq.h: Add double-inclusion guard.
10481
10482 2007-09-01  Karl Berry  <karl@gnu.org>
10483
10484         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
10485
10486 2007-08-28  Jim Meyering  <jim@meyering.net>
10487
10488         Rename mreadlink_with_size to areadlink_with_size.
10489         * NEWS: Document the change.
10490         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
10491         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
10492         * lib/mreadlink.h: Rename this to...
10493         * lib/areadlink.h: ...this.
10494         * modules/mreadlink-with-size: Rename this to...
10495         * modules/areadlink-with-size: ...this.
10496         * lib/canonicalize.c: Reflect the renaming.
10497         * modules/canonicalize: Likewise.
10498
10499 2007-08-26  Bruno Haible  <bruno@clisp.org>
10500
10501         * gnulib-tool (func_import): When deciding which files to remove,
10502         consider also dangling symbolic links.
10503         Reported by Eric Blake.
10504
10505 2007-08-26  Bruno Haible  <bruno@clisp.org>
10506
10507         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
10508
10509 2007-08-23  Simon Josefsson  <simon@josefsson.org>
10510
10511         * lib/readline.c: Don't include getline.h, the prototype is now
10512         found in stdio.h.
10513
10514 2007-08-23  Jim Meyering  <jim@meyering.net>
10515
10516         Getdelim touchup.
10517         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
10518         around the funlockfile call, since funlockfile never sets errno.
10519         Don't set errno upon failed realloc.
10520
10521 2007-08-22  Eric Blake  <ebb9@byu.net>
10522
10523         Getline touchups.
10524         * lib/getdelim.c (getdelim): Revert regression that required *n to
10525         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
10526         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
10527         getdelim, rather than whether implementation is missing.
10528         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
10529         * lib/stdio_.h (getline): Also declare if replacement is
10530         required.
10531         * doc/functions/getdelim.texi: New file.
10532         * doc/functions/getline.texi: Likewise.
10533         * doc/gnulib.texi (Function Substitutes): Add new files.
10534         Reported by Bruno Haible.
10535
10536 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
10537
10538         * users.txt: Add Guile.
10539
10540 2007-08-22  Eric Blake  <ebb9@byu.net>
10541
10542         * tests/test-getdelim.c (main): Use remove, not unlink.
10543         * tests/test-getline.c (main): Likewise.
10544
10545         Move getline and getdelim into stdio.h, per POSIX 200x.
10546         * modules/getline (Files): Remove getline.h.
10547         (Depends-on): Add stdio.
10548         (configure.ac): Add module indicator.
10549         * modules/getdelim (Files): Remove getdelim.h.
10550         (Depends-on): Add stdio.
10551         (configure.ac): Add module indicator.
10552         * modules/stdio (Makefile.am): Work with new indicators.
10553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10554         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
10555         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10556         * lib/getdelim.h: Delete.
10557         * lib/getline.h: Delete.
10558         * lib/stdio_.h (getdelim, getline): Declare.
10559         * modules/getdelim-tests: New module.
10560         * modules/getline-tests: Likewise.
10561         * tests/test-getdelim.c: New file.
10562         * tests/test-getline.c: Likewise.
10563         * NEWS: Document the change.
10564         * lib/getline.c: Update choice of header.
10565         * lib/csharpcomp.c: Likewise.
10566         * lib/getpass.c: Likewise.
10567         * lib/javacomp.c: Likewise.
10568         * lib/javaversion.c: Likewise.
10569         * lib/yesno.c: Likewise.
10570         * lib/getdelim.c: Likewise.
10571         (getdelim): Set errno on failure, and avoid memory leak.
10572
10573 2007-08-19  Bruno Haible  <bruno@clisp.org>
10574
10575         * modules/closein (Depends-on): Add freadahead.
10576         * lib/closein.c: Include freadahead.h.
10577         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
10578         is zero.
10579
10580 2007-08-19  Bruno Haible  <bruno@clisp.org>
10581
10582         * modules/freadahead-tests: New file.
10583         * tests/test-freadahead.sh: New file.
10584         * tests/test-freadahead.c: New file.
10585
10586         * modules/freadahead: New file.
10587         * lib/freadahead.h: New file.
10588         * lib/freadahead.c: New file.
10589         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
10590         fbufmode, fpurge, freadable, fwritable.
10591
10592 2007-08-19  Eric Blake  <ebb9@byu.net>
10593
10594         Test yesno in combination with closein.
10595         * lib/yesno.c (yesno): Document use of stdin.
10596         * modules/yesno-tests (Files): New module.
10597         * tests/test-yesno.c (main): New file.
10598         * tests/test-yesno.sh: Likewise.
10599
10600 2007-08-19  Bruno Haible  <bruno@clisp.org>
10601
10602         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
10603         * lib/fseeko.c (rpl_fseeko): Likewise.
10604         * lib/fseterr.c (fseterr): Likewise.
10605
10606 2007-08-19  Bruno Haible  <bruno@clisp.org>
10607
10608         * tests/test-lseek.c (main): Disable a test for BeOS.
10609         * doc/functions/lseek.texi: Document the BeOS bug.
10610
10611 2007-08-19  Bruno Haible  <bruno@clisp.org>
10612             Eric Blake  <ebb9@byu.net>
10613
10614         * lib/lseek.c: Include <sys/stat.h>.
10615         (rpl_lseek): Add workaround code also for Unix platforms.
10616         Needed for BeOS.
10617         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
10618         * doc/functions/lseek.texi: Document BeOS definiency.
10619
10620 2007-08-18  Bruno Haible  <bruno@clisp.org>
10621
10622         * modules/fstrcmp-tests: New file.
10623         * tests/test-fstrcmp.c: New file.
10624
10625 2007-08-18  Bruno Haible  <bruno@clisp.org>
10626
10627         * modules/fstrcmp: New file, from GNU gettext with modifications.
10628         * lib/fstrcmp.h: New file, from GNU gettext.
10629         * lib/fstrcmp.c: New file, from GNU gettext.
10630         * MODULES.html.sh (String handling): Add fstrcmp.
10631
10632 2007-08-18  Bruno Haible  <bruno@clisp.org>
10633
10634         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
10635         'bool'.
10636         (diag, compareseq): Remove const from the ctxt argument.
10637         (USE_HEURISTIC): Undefine at the end.
10638
10639 2007-08-18  Jim Meyering  <jim@meyering.net>
10640
10641         New file: lib/idcache.h
10642         * NEWS: Mention the addition.
10643         * modules/idcache (Files): Add lib/idcache.h
10644         * lib/idcache.c: Include "idcache.h".
10645         Don't include <sys/types.h>.
10646         Add a FIXME comment.
10647         Move file-scoped "static" declarations to the top.
10648         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
10649
10650 2007-08-17  Bruno Haible  <bruno@clisp.org>
10651         and Paul Eggert  <eggert@cs.ucla.edu>
10652
10653         * MODULES.html.sh: Add diffseq.
10654         * modules/diffseq: New file.
10655         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
10656         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
10657
10658 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10659
10660         Import changes from coreutils for bootstrap script.
10661
10662         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
10663
10664         * build-aux/bootstrap (slurp): Work even in environments where
10665         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
10666         current code does not slurp files whose names start with ".", and
10667         this looks like it might be a troublesome area.
10668
10669         2007-07-11  Jim Meyering  <jim@meyering.net>
10670
10671         If there's a GPL vN copyright comment, require that N == 3.
10672
10673         2007-07-08  Jim Meyering  <jim@meyering.net>
10674
10675         Run the coreutils-specific code only if tests/Makefile.am.in exists.
10676         * build-aux/bootstrap (mam_template): Move definition out of loop.
10677
10678         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
10679
10680         * build-aux/bootstrap (symlink_to_dir): Rename function from
10681         symlink_to_gnulib.  Add a directory parameter.  Update all
10682         callers.
10683         (cp_mark_as_generated): Also check for -- and link to -- files in
10684         gl/.
10685
10686         2007-07-08  Jim Meyering  <jim@meyering.net>
10687
10688         Adapt to deeper hierarchy in gnulib.
10689         * build-aux/bootstrap (symlink_to_dir): If the destination
10690         directory doesn't exist, create it. This is required at least for
10691         "lib/uniwidth/cjk.h".
10692
10693         2007-05-15  Jim Meyering  <jim@meyering.net>
10694
10695         * build-aux/bootstrap: Now that generated Makefile.am files
10696         are no longer under version control, they must be created at
10697         bootstrap time.
10698
10699 2007-08-14  Ben Pfaff  <blp@gnu.org>
10700
10701         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
10702
10703 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10704
10705         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
10706         given the changes below.
10707         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
10708         even on hosts that have padding bits beyond the supported 64.
10709
10710 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10711
10712         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
10713         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
10714         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
10715         depends on it.
10716         (xstrtol_error): Remove.
10717         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
10718         but with a different signature.
10719         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10720         * lib/xstrtol-error.c: Include exitfail.h.
10721         (xstrtol_fatal): New function, with a different signature from the
10722         old xstrtol_error, so that the caller need not worry about passing
10723         in an exit status, or about storage management of the option argument.
10724         (xstrtol_error): Now a static function.  Redo signature to
10725         implement xstrtol_fatal.  Output the correct number of hyphens in
10726         front of the option so that the caller need not worry about
10727         storage management.
10728         (N_): New macro.
10729         (_): Remove; not used now.
10730         * modules/xstrtol: Depend on getopt.
10731         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10732         of old STRTOL_FATAL_ERROR macro.
10733         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
10734         of test program.
10735         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
10736         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
10737
10738 2007-08-08  Eric Blake  <ebb9@byu.net>
10739
10740         * lib/xstrtol-error.c: Add missing include.
10741
10742         Move xstrtol messages into gnulib domain, when --pobase is used.
10743         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
10744         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
10745         * modules/xstrtol (Files): Distribute new file.
10746         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
10747         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
10748         * tests/test-xstrtol.c: ...into new file.
10749         * tests/test-xstrtoul.c: Also test xstrtoul.
10750         * tests/test-xstrtoimax.c: Also test xstrtoimax.
10751         * tests/test-xstrtoumax.c: Also test xstrtoumax.
10752         * tests/test-xstrtol.sh: Drive the tests.
10753         * tests/test-xstrtoimax.sh: Likewise.
10754         * tests/test-xstrtoumax.sh: Likewise.
10755         * modules/xstrtol-tests: New module.
10756         * modules/xstrtoimax-tests: Likewise.
10757         * modules/xstrtoumax-tests: Likewise.
10758
10759 2007-08-08  Jim Meyering  <jim@meyering.net>
10760
10761         New function: mfile_name_concat.
10762         * lib/filenamecat.c (mfile_name_concat): New function, just like
10763         file_name_concat, but return NULL upon failure rather than exiting
10764         with a diagnostic.
10765         * lib/filenamecat.h: Declare it.
10766
10767 2007-08-07  Bruno Haible  <bruno@clisp.org>
10768
10769         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
10770         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
10771         warning from gcc.
10772         Reported by Eric Blake.
10773
10774 2007-08-07  Simon Josefsson  <simon@josefsson.org>
10775
10776         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
10777         * modules/crypto/arcfour (License): Likewise.
10778         * modules/crypto/des-tests (License): Likewise.
10779         * modules/crypto/gc-arctwo-tests (License): Likewise.
10780         * modules/crypto/gc-des-tests (License): Likewise.
10781         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
10782         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
10783         * modules/crypto/gc-md2-tests (License): Likewise.
10784         * modules/crypto/gc-md4-tests (License): Likewise.
10785         * modules/crypto/gc-md5-tests (License): Likewise.
10786         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
10787         * modules/crypto/gc-rijndael-tests (License): Likewise.
10788         * modules/crypto/gc-sha1-tests (License): Likewise.
10789         * modules/crypto/gc-tests (License): Likewise.
10790         * modules/crypto/hmac-md5 (License): Likewise.
10791         * modules/crypto/hmac-sha1 (License): Likewise.
10792         * modules/crypto/md2-tests (License): Likewise.
10793         * modules/crypto/md4-tests (License): Likewise.
10794         * modules/crypto/md5 (License): Likewise.
10795         * modules/crypto/rijndael (License): Likewise.
10796         * modules/crypto/sha1 (License): Likewise.
10797         * modules/memxor (License): Likewise.
10798
10799 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10800         and Bruno Haible  <bruno@clisp.org>
10801
10802         * NEWS: Describe interface changes to human, xstrtol.
10803         * lib/human.h: Include <xstrtol.h>.
10804         (human_options): Return enum strtol_error, not int.  Remove
10805         bool arg; take int * instead.
10806         * lib/human.c: Don't include "gettext.h".
10807         (_): Remove; no longer used.
10808         Don't include <xstrtol.h>, since human.h does it.
10809         (human_options): Adjust to abovementioned interface changes.
10810         Do not report error to stderr; that's now the caller's
10811         responsibility.
10812         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
10813         interface change.
10814         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
10815         Str, Argument_type_string.  All uses changed.  Put " argument"
10816         in diagnostics to make them clearer.  Change wording of suffix
10817         message for clarity.
10818         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
10819         Argument_type_string.
10820         (STRTOL_FATAL_WARN): Remove; no longer used.
10821         * modules/human (Depends-on): Remove gettext-h.
10822
10823 2007-08-06  Simon Josefsson  <simon@josefsson.org>
10824
10825         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
10826
10827 2007-07-31  Bruno Haible  <bruno@clisp.org>
10828
10829         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
10830         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
10831         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
10832
10833 2007-07-31  Bruno Haible  <bruno@clisp.org>
10834
10835         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
10836         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
10837
10838 2007-07-30  Bruno Haible  <bruno@clisp.org>
10839
10840         * modules/base64 (License): Use the synonymous term "LGPLv2+".
10841         * modules/c-ctype (License): Likewise.
10842         * modules/c-strcase (License): Likewise.
10843         * modules/check-version (License): Likewise.
10844         * modules/iconv (License): Likewise.
10845         * modules/iconv_open (License): Likewise.
10846         * modules/read-file (License): Likewise.
10847         * modules/striconv (License): Likewise.
10848         * modules/strverscmp (License): Likewise.
10849         * modules/vasprintf (License): Likewise.
10850         * modules/crypto/des (License): Likewise.
10851         * modules/crypto/gc (License): Likewise.
10852         * modules/crypto/gc-arcfour (License): Likewise.
10853         * modules/crypto/gc-arctwo (License): Likewise.
10854         * modules/crypto/gc-des (License): Likewise.
10855         * modules/crypto/gc-hmac-md5 (License): Likewise.
10856         * modules/crypto/gc-hmac-sha1 (License): Likewise.
10857         * modules/crypto/gc-md2 (License): Likewise.
10858         * modules/crypto/gc-md4 (License): Likewise.
10859         * modules/crypto/gc-md5 (License): Likewise.
10860         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
10861         * modules/crypto/gc-random (License): Likewise.
10862         * modules/crypto/gc-rijndael (License): Likewise.
10863         * modules/crypto/gc-sha1 (License): Likewise.
10864         * modules/crypto/md2 (License): Likewise.
10865         * modules/crypto/md4 (License): Likewise.
10866
10867 2007-07-30  Jim Meyering  <jim@meyering.net>
10868
10869         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
10870         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
10871         it has valid stat data.  This bug would cause du not to count the
10872         sizes of inaccessible directories.
10873         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
10874         in <http://bugzilla.redhat.com/250077>.
10875
10876 2007-07-25  Peter O'Gorman  <peter@pogma.com>
10877             Bruno Haible  <bruno@clisp.org>
10878
10879         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
10880         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
10881         #include_next, gives a diagnostic about it, but reports no error in
10882         the exit code.
10883         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10884
10885 2007-07-24  Ben Pfaff  <blp@gnu.org>
10886
10887         Improve name: "count-one-bits" is better than "popcount".
10888         * MODULES.html.sh: Update name.
10889         * lib/popcount.h: Renamed lib/count-one-bits.h.
10890         (popcount): Renamed count_one_bits.
10891         (popcountl): Renamed count_one_bits_l.
10892         (popcountll): Renamed count_one_bits_ll.
10893         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
10894         * modules/popcount: Renamed module/count-one-bits.
10895         * modules/popcount-tests: Renamed module/count-one-bits-tests.
10896         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
10897
10898 2007-07-23  Ben Pfaff  <blp@gnu.org>
10899
10900         * lib/popcount.h (popcount32): Reduce size of constants, to allow
10901         better code generation, and add U to large constants to avoid
10902         warnings, in non-GCC case.
10903         Suggested by Bruno Haible.
10904
10905 2007-07-23  Ben Pfaff  <blp@gnu.org>
10906
10907         * lib/popcount.h: Use verify_true instead of if...abort.
10908         * modules/popcount: Depend on verify module.
10909         Suggested by Jim Meyering.
10910
10911 2007-07-23  Bruno Haible  <bruno@clisp.org>
10912
10913         * gnulib-tool (func_import): Create a .cvsignore file also when the
10914         directory is not yet in CVS but the toplevel directory is. When
10915         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
10916         Reported by Karl Berry.
10917
10918 2007-07-22  Ben Pfaff  <blp@gnu.org>
10919
10920         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
10921         case.
10922         Suggested by Eric Blake.
10923
10924 2007-07-22  Ben Pfaff  <blp@gnu.org>
10925
10926         New module: popcount.
10927         * MODULES.html.sh: Add popcount.
10928         * modules/popcount: New file.
10929         * modules/popcount-tests: New file.
10930         * tests/test-popcount.c: New file.
10931         * lib/popcount.h: New file.
10932         * m4/popcount.m4: New file.
10933
10934 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10935
10936         * build-aux/announce-gen: Update to GPLv3.
10937
10938         * build-aux/config.guess: Update from config.
10939
10940 2007-07-21  Bruno Haible  <bruno@clisp.org>
10941
10942         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
10943         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
10944
10945 2007-07-20  Jim Meyering  <jim@meyering.net>
10946
10947         * check-module: Diagnose a self-dependency.
10948
10949 2007-07-19  Bruno Haible  <bruno@clisp.org>
10950
10951         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
10952         empty.
10953         Reported by Eric Blake.
10954
10955 2007-07-18  Bruno Haible  <bruno@clisp.org>
10956
10957         * gnulib-tool: New options --po-base, --po-domain.
10958         (func_usage): Document them.
10959         (pobase, po_domain): New variables.
10960         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
10961         DEFAULT_TEXT_DOMAIN.
10962         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
10963         (func_import): Consider pobase and po_domain. Create a po/ directory.
10964         (func_create_testdir): Set pobase and po_domain to empty.
10965         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
10966         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
10967
10968 2007-07-18  Bruno Haible  <bruno@clisp.org>
10969
10970         * gnulib-tool (func_get_automake_snippet): Synthesize also an
10971         EXTRA_DIST augmentation for files in build-aux/.
10972
10973 2007-07-16  Bruno Haible  <bruno@clisp.org>
10974
10975         * modules/lseek (License): Use the synonymous term "LGPLv2+".
10976         * modules/getdelim (License): Likewise.
10977
10978 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10979
10980         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
10981         * modules/d-type (License): Likewise.
10982         * modules/extensions (License): Likewise.
10983         * modules/fnmatch (License): Likewise.
10984         * modules/fseeko (License): Likewise.
10985         * modules/getaddrinfo (License): Likewise.
10986         * modules/getline (License): Likewise.
10987         * modules/getlogin_r (License): Likewise.
10988         * modules/getpass (License): Likewise.
10989         * modules/gettimeofday (License): Likewise.
10990         * modules/glob (License): Likewise.
10991         * modules/inet_ntop (License): Likewise.
10992         * modules/malloc (License): Likewise.
10993         * modules/malloca (License): Likewise.
10994         * modules/memmem (License): Likewise.
10995         * modules/mempcpy (License): Likewise.
10996         * modules/memset (License): Likewise.
10997         * modules/minmax (License): Likewise.
10998         * modules/mktime (License): Likewise.
10999         * modules/netinet_in (License): Likewise.
11000         * modules/pathmax (License): Likewise.
11001         * modules/poll (License): Likewise.
11002         * modules/regex (License): Likewise.
11003         * modules/snprintf (License): Likewise.
11004         * modules/stdbool (License): Likewise.
11005         * modules/stdint (License): Likewise.
11006         * modules/stdio (License): Likewise.
11007         * modules/strcase (License): Likewise.
11008         * modules/strcasestr (License): Likewise.
11009         * modules/strdup (License): Likewise.
11010         * modules/string (License): Likewise.
11011         * modules/strndup (License): Likewise.
11012         * modules/strnlen (License): Likewise.
11013         * modules/strpbrk (License): Likewise.
11014         * modules/strptime (License): Likewise.
11015         * modules/strsep (License): Likewise.
11016         * modules/sys_select (License): Likewise.
11017         * modules/sys_socket (License): Likewise.
11018         * modules/sys_stat (License): Likewise.
11019         * modules/sys_time (License): Likewise.
11020         * modules/time (License): Likewise.
11021         * modules/time_r (License): Likewise.
11022         * modules/timegm (License): Likewise.
11023         * modules/unistd (License): Likewise.
11024         * modules/vsnprintf (License): Likewise.
11025         * modules/wctype (License): Likewise.
11026
11027 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11028
11029         * modules/argz (License): LGPLv2+.
11030
11031 2007-07-15  Karl Berry  <karl@gnu.org>
11032
11033         * doc/gnulib.texi: revise node structure per new fdl.texi.
11034
11035 2007-07-14  Bruno Haible  <bruno@clisp.org>
11036
11037         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
11038         the output file.
11039         * lib/uniname/uninames.h: Regenerated.
11040
11041 2007-07-14  Karl Berry  <karl@gnu.org>
11042
11043         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
11044         omitting sectioning and index commands.
11045
11046 2007-07-13  Bruno Haible  <bruno@clisp.org>
11047
11048         New gnulib-tool option --more-symlinks.
11049         * gnulib-tool (func_usage): Document --more-symlinks.
11050         (do_copyrights): New variable.
11051         Recognize option --more-symlinks.
11052         (func_import): Don't add a copyright notice transform to
11053         sed_transform_lib_file if do_copyrights is empty.
11054
11055 2007-07-13  Bruno Haible  <bruno@clisp.org>
11056
11057         * lib/vasnprintf.c (decimal_point_char): Define also if
11058         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
11059         && !NEED_PRINTF_DIRECTIVE_A.
11060         Reported by Clemens Koller <clemens.koller@anagramm.de> via
11061         Gary V. Vaughan <gary@gnu.org>.
11062
11063 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11064
11065         * lib/inttypes_.h: Undo previous change, since it was fixed
11066         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
11067
11068 2007-07-13  Bruno Haible  <bruno@clisp.org>
11069
11070         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
11071         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
11072
11073 2007-07-13  Jim Meyering  <jim@meyering.net>
11074
11075         df: Don't fail for Tru64's "file-on-file mount".
11076         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
11077         so we fall through and use statfs instead.  Details here:
11078         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
11079         Reported by Albert Chin.
11080
11081 2007-07-13  Bruno Haible  <bruno@clisp.org>
11082
11083         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
11084         * modules/configmake (License): Likewise.
11085         * modules/gettext (License): Likewise.
11086         * modules/gettext-h (License): Likewise.
11087         * modules/include_next (License): Likewise.
11088         * modules/link-warning (License): Likewise.
11089         * modules/localcharset (License): Likewise.
11090         * modules/localename (License): Likewise.
11091         * modules/lock (License): Likewise.
11092         * modules/relocatable-lib-lgpl (License): Likewise.
11093         * modules/size_max (License): Likewise.
11094         * modules/vasnprintf (License): Likewise.
11095         * modules/wchar (License): Likewise.
11096         * modules/xsize (License): Likewise.
11097
11098 2007-07-13  Bruno Haible  <bruno@clisp.org>
11099
11100         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
11101         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
11102
11103 2007-07-12  Bruno Haible  <bruno@clisp.org>
11104
11105         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
11106         in the modules files.
11107
11108 2007-07-11  Karl Berry  <karl@gnu.org>
11109
11110         * MODULES.html.sh (func_module): use
11111          sed -e '\|^'"${includefile}"'$|d'
11112          instead of /.../d, to avoid errors on $includefile's containing /.
11113
11114 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11115
11116         * gnulib-tool (func_import): Avoid duplication of --avoid
11117         statements
11118         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
11119         names to `_' in variable names.
11120
11121 2007-07-10  Eric Blake  <ebb9@byu.net>
11122
11123         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
11124         * NEWS: Document this change.
11125
11126 2007-07-08  Bruno Haible  <bruno@clisp.org>
11127
11128         Update to Unicode 5.0.
11129         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
11130         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
11131         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
11132         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
11133         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
11134         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
11135         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
11136         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
11137         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
11138         U+10A3F, U+1D242..U+1D244.
11139         (nonspacing_table_ind): Update.
11140         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
11141         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
11142
11143 2007-07-08  Bruno Haible  <bruno@clisp.org>
11144
11145         Update to Unicode 5.0.
11146         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
11147         code transform. Extend the name index field of unicode_name_to_code and
11148         unicode_code_to_name from 16 to 24 bits.
11149         * lib/uniname/uniname.c (unicode_character_name,
11150         unicode_name_character): Add the range 0x12xxx to the code transform.
11151         * lib/uniname/uninames.h: Regenerated.
11152         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
11153
11154 2007-07-07  Bruno Haible  <bruno@clisp.org>
11155
11156         * modules/wcwidth-tests: New file.
11157         * tests/test-wcwidth.c: New file.
11158
11159         Work around MacOS X wcwidth() bug.
11160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
11161         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
11162         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
11163         original wcwidth in non-UTF-8 locales.
11164         * modules/wcwidth (Depends-on): Add localcharset, streq,
11165         uniwidth/width.
11166         * doc/functions/wcwidth.texi: Update.
11167
11168 2007-07-07  Bruno Haible  <bruno@clisp.org>
11169
11170         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
11171         (wcwidth): New declaration.
11172         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
11173         macros.
11174         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
11175         here. Prepare for creating <wchar.h> unconditionally.
11176         * modules/wchar (Depends-on): Add link-warning.
11177         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
11178         REPLACE_WCWIDTH, and GL_LINK_WARNING.
11179         * lib/wcwidth.h: Remove file.
11180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
11181         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
11182         * modules/wcwidth (Files): Remove lib/wcwidth.h.
11183         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
11184         (Include): Replace wcwidth.h with <wchar.h>.
11185         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
11186         * lib/mbchar.h: Don't include wcwidth.h.
11187         * lib/mbswidth.c: Likewise.
11188         * NEWS: Mention the change.
11189
11190 2007-07-07  Bruno Haible  <bruno@clisp.org>
11191
11192         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
11193         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
11194         definition with an external declaration.
11195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
11196         defined as a function. Remove AC_C_INLINE requirement.
11197         * modules/wcwidth (Files): Add lib/wcwidth.c.
11198         (Makefile.am): Remove redundant statement.
11199
11200 2007-07-07  Bruno Haible  <bruno@clisp.org>
11201
11202         * MODULES.html.sh (Unicode string functions): Add the new modules.
11203
11204         * tests/uniwidth/test-u32-strwidth.c: New file.
11205         * modules/uniwidth/u32-strwidth-tests: New file.
11206
11207         * lib/uniwidth/u32-strwidth.c: New file.
11208         * modules/uniwidth/u32-strwidth: New file.
11209
11210         * tests/uniwidth/test-u16-strwidth.c: New file.
11211         * modules/uniwidth/u16-strwidth-tests: New file.
11212
11213         * lib/uniwidth/u16-strwidth.c: New file.
11214         * modules/uniwidth/u16-strwidth: New file.
11215
11216         * tests/uniwidth/test-u8-strwidth.c: New file.
11217         * modules/uniwidth/u8-strwidth-tests: New file.
11218
11219         * lib/uniwidth/u8-strwidth.c: New file.
11220         * modules/uniwidth/u8-strwidth: New file.
11221
11222         * tests/uniwidth/test-u32-width.c: New file.
11223         * modules/uniwidth/u32-width-tests: New file.
11224
11225         * lib/uniwidth/u32-width.c: New file.
11226         * modules/uniwidth/u32-width: New file.
11227
11228         * tests/uniwidth/test-u16-width.c: New file.
11229         * modules/uniwidth/u16-width-tests: New file.
11230
11231         * lib/uniwidth/u16-width.c: New file.
11232         * modules/uniwidth/u16-width: New file.
11233
11234         * tests/uniwidth/test-u8-width.c: New file.
11235         * modules/uniwidth/u8-width-tests: New file.
11236
11237         * lib/uniwidth/u8-width.c: New file.
11238         * modules/uniwidth/u8-width: New file.
11239
11240         * tests/uniwidth/test-uc_width.c: New file.
11241         * modules/uniwidth/width-tests: New file.
11242
11243         * lib/uniwidth/width.c: New file, from GNU libiconv.
11244         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
11245         * modules/uniwidth/width: New file.
11246
11247         * lib/uniwidth.h: New file, from GNU libiconv.
11248         * modules/uniwidth/base: New file.
11249
11250 2007-07-07  Bruno Haible  <bruno@clisp.org>
11251
11252         * lib/uniname.h: New file, from GNU gettext.
11253         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
11254         * lib/uniname/uninames.h: New file, from GNU gettext.
11255         * lib/uniname/uniname.c: New file, from GNU gettext.
11256         * tests/uniname/test-uninames.sh: New file.
11257         * tests/uniname/test-uninames.c: New file, from GNU gettext.
11258         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
11259         * modules/uniname/base: New file.
11260         * modules/uniname/uniname: New file.
11261         * modules/uniname/uniname-tests: New file.
11262         * MODULES.html.sh (Unicode string functions): Add the new modules.
11263
11264 2007-07-06  Bruno Haible  <bruno@clisp.org>
11265
11266         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
11267
11268 2007-07-06  Bruno Haible  <bruno@clisp.org>
11269
11270         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
11271         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
11272         includes <cygwin/sys_time.h> which includes <sys/select.h> which
11273         include <sys/time.h>.
11274         Reported by Eric Blake.
11275
11276 2007-07-06  Eric Blake  <ebb9@byu.net>
11277
11278         Fix testing canonicalize on cygwin.
11279         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11280         Revert patch from 2007-06-19.
11281         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
11282         canonicalize module is also in use.
11283         * tests/test-canonicalize.c: New file.
11284         * tests/test-canonicalize.sh: Likewise.
11285         * modules/canonicalize-tests: Likewise.
11286
11287 2007-07-06  Jim Meyering  <jim@meyering.net>
11288
11289         * lib/getugroups.c (getugroups): Detect getgrent failure.
11290         Adjust comment to reflect reality: this function may return -1.
11291
11292 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11293
11294         * build-aux/bootstrap (TP_URL,get_translations): Update to use
11295         the new TP address.
11296         (usage): Fix typo
11297         (gnulib_mk): New variable.
11298
11299 2007-07-05  Jim Meyering  <jim@meyering.net>
11300
11301         Don't let endgrent clobber errno, no matter how improbable.
11302         * lib/getugroups.c (getugroups): Save and restore errno around
11303         endgrent call.
11304
11305         Close the group DB even when failing with 2^31 or more members.
11306         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
11307
11308 2007-07-04  Jim Meyering  <jim@meyering.net>
11309
11310         * lib/getugroups.h: New file.
11311         * lib/getugroups.c: Include "getugroups.h".
11312         Remove uses of "register" keyword.
11313         Move local variable, "cp", down into scope where used.
11314         Give "username" parameter the "const" attribute.
11315         * modules/getugroups (Files): Add lib/getugroups.h
11316
11317 2007-07-04  Karl Berry  <karl@gnu.org>
11318
11319         * MODULES.html.sh (func_all_modules): Complete rename of
11320         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11321
11322 2007-07-02  Bruno Haible  <bruno@clisp.org>
11323
11324         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11325         mode, when inttypes.h comes from gnulib.
11326         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11327
11328 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11329
11330         * NEWS: Mention lgpl module name change.
11331
11332         * modules/lgpl-2.1: Renamed from lgpl.
11333
11334         * NEWS: Mention gpl module name change.
11335
11336         * modules/gpl-3.0: New file, based on gpl-2.0.
11337
11338         * modules/gpl-2.0: Renamed from gpl.
11339
11340         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11341         doc/gpl-2.0.texi.
11342
11343 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11344
11345         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11346         #define __STDC_LIMIT_MACROS temporarily while including
11347         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11348         Problem reported by Joel E. Denny in
11349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11350
11351 2007-07-01  Bruno Haible  <bruno@clisp.org>
11352
11353         * lib/unistdio.h: New file.
11354         * lib/unistdio/u-asnprintf.h: New file.
11355         * lib/unistdio/u-asprintf.h: New file.
11356         * lib/unistdio/u-printf-args.c: New file.
11357         * lib/unistdio/u-printf-args.h: New file.
11358         * lib/unistdio/u-printf-parse.h: New file.
11359         * lib/unistdio/u-snprintf.h: New file.
11360         * lib/unistdio/u-sprintf.h: New file.
11361         * lib/unistdio/u-vasprintf.h: New file.
11362         * lib/unistdio/u-vsnprintf.h: New file.
11363         * lib/unistdio/u-vsprintf.h: New file.
11364         * lib/unistdio/ulc-asnprintf.c: New file.
11365         * lib/unistdio/ulc-asprintf.c: New file.
11366         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11367         * lib/unistdio/ulc-printf-parse.c: New file.
11368         * lib/unistdio/ulc-snprintf.c: New file.
11369         * lib/unistdio/ulc-sprintf.c: New file.
11370         * lib/unistdio/ulc-vasnprintf.c: New file.
11371         * lib/unistdio/ulc-vasprintf.c: New file.
11372         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11373         * lib/unistdio/ulc-vsnprintf.c: New file.
11374         * lib/unistdio/ulc-vsprintf.c: New file.
11375         * lib/unistdio/u8-asnprintf.c: New file.
11376         * lib/unistdio/u8-asprintf.c: New file.
11377         * lib/unistdio/u8-printf-parse.c: New file.
11378         * lib/unistdio/u8-snprintf.c: New file.
11379         * lib/unistdio/u8-sprintf.c: New file.
11380         * lib/unistdio/u8-vasnprintf.c: New file.
11381         * lib/unistdio/u8-vasprintf.c: New file.
11382         * lib/unistdio/u8-vsnprintf.c: New file.
11383         * lib/unistdio/u8-vsprintf.c: New file.
11384         * lib/unistdio/u8-u8-asnprintf.c: New file.
11385         * lib/unistdio/u8-u8-asprintf.c: New file.
11386         * lib/unistdio/u8-u8-snprintf.c: New file.
11387         * lib/unistdio/u8-u8-sprintf.c: New file.
11388         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11389         * lib/unistdio/u8-u8-vasprintf.c: New file.
11390         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11391         * lib/unistdio/u8-u8-vsprintf.c: New file.
11392         * lib/unistdio/u16-asnprintf.c: New file.
11393         * lib/unistdio/u16-asprintf.c: New file.
11394         * lib/unistdio/u16-printf-parse.c: New file.
11395         * lib/unistdio/u16-snprintf.c: New file.
11396         * lib/unistdio/u16-sprintf.c: New file.
11397         * lib/unistdio/u16-vasnprintf.c: New file.
11398         * lib/unistdio/u16-vasprintf.c: New file.
11399         * lib/unistdio/u16-vsnprintf.c: New file.
11400         * lib/unistdio/u16-vsprintf.c: New file.
11401         * lib/unistdio/u16-u16-asnprintf.c: New file.
11402         * lib/unistdio/u16-u16-asprintf.c: New file.
11403         * lib/unistdio/u16-u16-snprintf.c: New file.
11404         * lib/unistdio/u16-u16-sprintf.c: New file.
11405         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11406         * lib/unistdio/u16-u16-vasprintf.c: New file.
11407         * lib/unistdio/u16-u16-vsnprintf.c: New file.
11408         * lib/unistdio/u16-u16-vsprintf.c: New file.
11409         * lib/unistdio/u32-asnprintf.c: New file.
11410         * lib/unistdio/u32-asprintf.c: New file.
11411         * lib/unistdio/u32-printf-parse.c: New file.
11412         * lib/unistdio/u32-snprintf.c: New file.
11413         * lib/unistdio/u32-sprintf.c: New file.
11414         * lib/unistdio/u32-vasnprintf.c: New file.
11415         * lib/unistdio/u32-vasprintf.c: New file.
11416         * lib/unistdio/u32-vsnprintf.c: New file.
11417         * lib/unistdio/u32-vsprintf.c: New file.
11418         * lib/unistdio/u32-u32-asnprintf.c: New file.
11419         * lib/unistdio/u32-u32-asprintf.c: New file.
11420         * lib/unistdio/u32-u32-snprintf.c: New file.
11421         * lib/unistdio/u32-u32-sprintf.c: New file.
11422         * lib/unistdio/u32-u32-vasnprintf.c: New file.
11423         * lib/unistdio/u32-u32-vasprintf.c: New file.
11424         * lib/unistdio/u32-u32-vsnprintf.c: New file.
11425         * lib/unistdio/u32-u32-vsprintf.c: New file.
11426         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11427         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11428         * tests/unistdio/test-ulc-printf1.h: New file.
11429         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11430         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11431         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11432         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11433         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11434         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11435         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11436         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11437         * tests/unistdio/test-u8-asnprintf1.c: New file.
11438         * tests/unistdio/test-u8-asnprintf1.h: New file.
11439         * tests/unistdio/test-u8-printf1.h: New file.
11440         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11441         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11442         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11443         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11444         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11445         * tests/unistdio/test-u8-vasprintf1.c: New file.
11446         * tests/unistdio/test-u8-vsnprintf1.c: New file.
11447         * tests/unistdio/test-u8-vsprintf1.c: New file.
11448         * tests/unistdio/test-u16-asnprintf1.c: New file.
11449         * tests/unistdio/test-u16-asnprintf1.h: New file.
11450         * tests/unistdio/test-u16-printf1.h: New file.
11451         * tests/unistdio/test-u16-vasnprintf1.c: New file.
11452         * tests/unistdio/test-u16-vasnprintf2.c: New file.
11453         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
11454         * tests/unistdio/test-u16-vasnprintf3.c: New file.
11455         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
11456         * tests/unistdio/test-u16-vasprintf1.c: New file.
11457         * tests/unistdio/test-u16-vsnprintf1.c: New file.
11458         * tests/unistdio/test-u16-vsprintf1.c: New file.
11459         * tests/unistdio/test-u32-asnprintf1.c: New file.
11460         * tests/unistdio/test-u32-asnprintf1.h: New file.
11461         * tests/unistdio/test-u32-printf1.h: New file.
11462         * tests/unistdio/test-u32-vasnprintf1.c: New file.
11463         * tests/unistdio/test-u32-vasnprintf2.c: New file.
11464         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
11465         * tests/unistdio/test-u32-vasnprintf3.c: New file.
11466         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
11467         * tests/unistdio/test-u32-vasprintf1.c: New file.
11468         * tests/unistdio/test-u32-vsnprintf1.c: New file.
11469         * tests/unistdio/test-u32-vsprintf1.c: New file.
11470         * modules/unistdio/base: New file.
11471         * modules/unistdio/u-printf-args: New file.
11472         * modules/unistdio/ulc-asnprintf: New file.
11473         * modules/unistdio/ulc-asprintf: New file.
11474         * modules/unistdio/ulc-fprintf: New file.
11475         * modules/unistdio/ulc-printf-parse: New file.
11476         * modules/unistdio/ulc-snprintf: New file.
11477         * modules/unistdio/ulc-sprintf: New file.
11478         * modules/unistdio/ulc-vasnprintf: New file.
11479         * modules/unistdio/ulc-vasprintf: New file.
11480         * modules/unistdio/ulc-vfprintf: New file.
11481         * modules/unistdio/ulc-vsnprintf: New file.
11482         * modules/unistdio/ulc-vsprintf: New file.
11483         * modules/unistdio/u8-asnprintf: New file.
11484         * modules/unistdio/u8-asprintf: New file.
11485         * modules/unistdio/u8-printf-parse: New file.
11486         * modules/unistdio/u8-snprintf: New file.
11487         * modules/unistdio/u8-sprintf: New file.
11488         * modules/unistdio/u8-vasnprintf: New file.
11489         * modules/unistdio/u8-vasprintf: New file.
11490         * modules/unistdio/u8-vsnprintf: New file.
11491         * modules/unistdio/u8-vsprintf: New file.
11492         * modules/unistdio/u8-u8-asnprintf: New file.
11493         * modules/unistdio/u8-u8-asprintf: New file.
11494         * modules/unistdio/u8-u8-snprintf: New file.
11495         * modules/unistdio/u8-u8-sprintf: New file.
11496         * modules/unistdio/u8-u8-vasnprintf: New file.
11497         * modules/unistdio/u8-u8-vasprintf: New file.
11498         * modules/unistdio/u8-u8-vsnprintf: New file.
11499         * modules/unistdio/u8-u8-vsprintf: New file.
11500         * modules/unistdio/u16-asnprintf: New file.
11501         * modules/unistdio/u16-asprintf: New file.
11502         * modules/unistdio/u16-printf-parse: New file.
11503         * modules/unistdio/u16-snprintf: New file.
11504         * modules/unistdio/u16-sprintf: New file.
11505         * modules/unistdio/u16-vasnprintf: New file.
11506         * modules/unistdio/u16-vasprintf: New file.
11507         * modules/unistdio/u16-vsnprintf: New file.
11508         * modules/unistdio/u16-vsprintf: New file.
11509         * modules/unistdio/u16-u16-asnprintf: New file.
11510         * modules/unistdio/u16-u16-asprintf: New file.
11511         * modules/unistdio/u16-u16-snprintf: New file.
11512         * modules/unistdio/u16-u16-sprintf: New file.
11513         * modules/unistdio/u16-u16-vasnprintf: New file.
11514         * modules/unistdio/u16-u16-vasprintf: New file.
11515         * modules/unistdio/u16-u16-vsnprintf: New file.
11516         * modules/unistdio/u16-u16-vsprintf: New file.
11517         * modules/unistdio/u32-asnprintf: New file.
11518         * modules/unistdio/u32-asprintf: New file.
11519         * modules/unistdio/u32-printf-parse: New file.
11520         * modules/unistdio/u32-snprintf: New file.
11521         * modules/unistdio/u32-sprintf: New file.
11522         * modules/unistdio/u32-vasnprintf: New file.
11523         * modules/unistdio/u32-vasprintf: New file.
11524         * modules/unistdio/u32-vsnprintf: New file.
11525         * modules/unistdio/u32-vsprintf: New file.
11526         * modules/unistdio/u32-u32-asnprintf: New file.
11527         * modules/unistdio/u32-u32-asprintf: New file.
11528         * modules/unistdio/u32-u32-snprintf: New file.
11529         * modules/unistdio/u32-u32-sprintf: New file.
11530         * modules/unistdio/u32-u32-vasnprintf: New file.
11531         * modules/unistdio/u32-u32-vasprintf: New file.
11532         * modules/unistdio/u32-u32-vsnprintf: New file.
11533         * modules/unistdio/u32-u32-vsprintf: New file.
11534         * modules/unistdio/ulc-asnprintf-tests: New file.
11535         * modules/unistdio/ulc-vasnprintf-tests: New file.
11536         * modules/unistdio/ulc-vasprintf-tests: New file.
11537         * modules/unistdio/ulc-vsnprintf-tests: New file.
11538         * modules/unistdio/ulc-vsprintf-tests: New file.
11539         * modules/unistdio/u8-asnprintf-tests: New file.
11540         * modules/unistdio/u8-vasnprintf-tests: New file.
11541         * modules/unistdio/u8-vasprintf-tests: New file.
11542         * modules/unistdio/u8-vsnprintf-tests: New file.
11543         * modules/unistdio/u8-vsprintf-tests: New file.
11544         * modules/unistdio/u16-asnprintf-tests: New file.
11545         * modules/unistdio/u16-vasnprintf-tests: New file.
11546         * modules/unistdio/u16-vasprintf-tests: New file.
11547         * modules/unistdio/u16-vsnprintf-tests: New file.
11548         * modules/unistdio/u16-vsprintf-tests: New file.
11549         * modules/unistdio/u32-asnprintf-tests: New file.
11550         * modules/unistdio/u32-vasnprintf-tests: New file.
11551         * modules/unistdio/u32-vasprintf-tests: New file.
11552         * modules/unistdio/u32-vsnprintf-tests: New file.
11553         * modules/unistdio/u32-vsprintf-tests: New file.
11554         * MODULES.html.sh (Unicode string functions): Add the new modules.
11555
11556 2007-07-01  Bruno Haible  <bruno@clisp.org>
11557
11558         * lib/sprintf.c (sprintf): Limit the available length estimation,
11559         to avoid address wraparound.
11560         * lib/vsprintf.c (vsprintf): Likewise.
11561         * modules/sprintf-posix (Dependencies): Add stdint.
11562         * modules/vsprintf-posix (Dependencies): Likewise.
11563
11564 2007-07-01  Bruno Haible  <bruno@clisp.org>
11565
11566         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
11567         Windows PATH as well. Conservative double-quoting. Comments.
11568
11569 2007-07-01  Bruno Haible  <bruno@clisp.org>
11570             Eric Blake  <ebb9@byu.net>
11571             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11572
11573         * gnulib-tool (self_abspathname): Fix algorithm to cope with
11574         empty components in $PATH, denoting '.'.
11575
11576 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11577
11578         * gnulib-tool: Fix indentation.
11579         (func_create_megatestdir): Likewise.
11580         Report by Bruno Haible.
11581
11582 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11583
11584         Sync from Automake.
11585         * build-aux/gnupload: Fix shell portability issues with for loops.
11586         Report by Karl Berry.
11587
11588 2007-06-29  Simon Josefsson  <simon@josefsson.org>
11589
11590         * build-aux/maint.mk (POURL): Use translationproject.org.
11591
11592 2007-06-27  Simon Josefsson  <simon@josefsson.org>
11593             Bruno Haible  <bruno@clisp.org>
11594
11595         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
11596         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
11597         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
11598         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
11599         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
11600
11601 2007-06-27  Bruno Haible  <bruno@clisp.org>
11602
11603         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
11604         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
11605
11606 2007-06-26  Karl Berry  <karl@gnu.org>
11607
11608         * MODULES.html.sh: remove xreadlink-with-size.
11609
11610 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11611
11612         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
11613         method that I hope also handles the double-include problem noted
11614         by Bruno Haible in
11615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
11616
11617 2007-06-23  Bruno Haible  <bruno@clisp.org>
11618
11619         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11620         Don't let the 'mostlyclean' target fail if the last subdirectory could
11621         not be removed.
11622         Reported by Karl Berry.
11623
11624 2007-06-23  Bruno Haible  <bruno@clisp.org>
11625
11626         * gnulib-tool (echo): Add a speedier workaround for ksh.
11627         * tests/test-echo.sh: Likewise.
11628
11629 2007-06-23  Bruno Haible  <bruno@clisp.org>
11630
11631         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
11632         * tests/test-echo.sh: Likewise.
11633
11634 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11635
11636         * gnulib-tool (IFS): Initialize early, so we don't set it to
11637         empty later.
11638         (self_abspathname): Rewrite algorithm to set it, reindent.
11639         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
11640         (func_create_megatestdir): Merge some sed scripts.
11641
11642 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11643
11644         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
11645         exposed by Sun Studio 11 cc on Solaris 8.
11646
11647 2007-06-22  Bruno Haible  <bruno@clisp.org>
11648
11649         * gnulib-tool (echo): Ensure the echo primitive does not interpret
11650         backslashes.
11651         * tests/test-echo.sh: New file.
11652
11653 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11654
11655         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
11656         simplify `sed_replace_build_aux' scripts, they are portable but
11657         echoing them with `echo' is not.
11658         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
11659
11660 2007-06-21  Karl Berry  <karl@gnu.org>
11661
11662         * config/srclist.txt: guess we can't handle the licenses via
11663         srclist at the moment.
11664
11665 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11666
11667         * MODULES.html.sh: Add include_next.
11668         * modules/include_next: New file.
11669
11670 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11671
11672         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
11673         INCLUDE_NEXT.
11674         (gl_CHECK_NEXT_HEADERS): New macro.
11675         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
11676         the obsolescent gl_ABSOLUTE_HEADER.
11677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11678         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11679         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11680         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11681         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11682         * m4/math_h.m4 (gl_MATH_H): Likewise.
11683         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11684         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11685         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11686         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11687         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11688         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11689         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11690         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11691         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11693         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11694         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11695         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11696         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11697         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11698         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11699         * m4/inttypes.m4 (gl_INTTYPES_H): Define
11700         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
11701         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
11702         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
11703         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
11704         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
11705         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
11706         * lib/float_.h: Likewise.
11707         * lib/inttypes_.h: Likewise.
11708         * lib/math_.h: Likewise.
11709         * lib/search_.h: Likewise.
11710         * lib/signal_.h: Likewise.
11711         * lib/stdint_.h: Likewise.
11712         * lib/stdio_.h: Likewise.
11713         * lib/stdlib_.h: Likewise.
11714         * lib/string_.h: Likewise.
11715         * lib/sys_stat_.h: Likewise.
11716         * lib/sys_time_.h: Likewise.
11717         * lib/time_.h: Likewise.
11718         * lib/unistd_.h: Likewise.
11719         * lib/wchar_.h: Likewise.
11720         * lib/wctype_.h: Likewise.
11721         * lib/dirent_.h: Likewise.
11722         * lib/iconv_.h: Likewise.
11723         * lib/locale_.h: Likewise.
11724         * lib/netinet_in_.h: Likewise.
11725         * lib/sys_select_.h: Likewise.
11726         * lib/sys_socket_.h: Likewise.
11727         * lib/sysexits_.h: Likewise.
11728         * modules/fcntl (Depends-on): Depend on include_next, not
11729         absolute_header.
11730         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11731         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11732         * modules/fchdir: Likewise.
11733         * modules/float: Likewise.
11734         * modules/iconv_open: Likewise.
11735         * modules/inttypes: Likewise.
11736         * modules/locale: Likewise.
11737         * modules/math: Likewise.
11738         * modules/netinet_in: Likewise.
11739         * modules/search: Likewise.
11740         * modules/signal: Likewise.
11741         * modules/stdint: Likewise.
11742         * modules/stdio: Likewise.
11743         * modules/stdlib: Likewise.
11744         * modules/string: Likewise.
11745         * modules/sys_select: Likewise.
11746         * modules/sys_socket: Likewise.
11747         * modules/sys_stat: Likewise.
11748         * modules/sys_time: Likewise.
11749         * modules/sysexits: Likewise.
11750         * modules/time: Likewise.
11751         * modules/unistd: Likewise.
11752         * modules/wchar: Likewise.
11753         * modules/wctype: Likewise.
11754         * modules/sys_stat: Change maintainer to "all".
11755         * modules/unistd: Likewise.
11756
11757 2007-06-20  Karl Berry  <karl@gnu.org>
11758
11759         * config/srclist.txt: track www changes in license files.
11760
11761 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
11762
11763         * build-aux/bootstrap: Remove stray dot.
11764         Make sure build_aux settings are honored when linking
11765         gnulib_extra_files.
11766
11767 2007-06-19  Eric Blake  <ebb9@byu.net>
11768
11769         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11770         Allow compilation on cygwin.
11771
11772 2007-06-19  Jim Meyering  <jim@meyering.net>
11773
11774         xreadlink-with-size: Remove module.  No longer used.
11775         Ex-callers now use xreadlink or mreadlink-with-size.
11776         * modules/xreadlink-with-size: Remove module.
11777         * lib/xreadlink-with-size.c: Remove file.
11778         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
11779         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
11780         just before the function definition *is* accurate.
11781
11782         Eliminate one way canonicalize_filename_mode could exit.
11783         * lib/canonicalize.c (canonicalize_filename_mode):
11784         Use mreadlink_with_size, not xreadlink_with_size.
11785
11786 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11787
11788         Detect porting problems to FreeBSD/arm, which has time_t wider than
11789         long int.  Original problem reported for GNU diff by Xin Li in
11790         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
11791         * modules/getdate (Depends-on): Add intprops, verify.
11792         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
11793         is an integer type no wider than long int.
11794
11795 2007-06-18  Jim Meyering  <jim@meyering.net>
11796
11797         New module: mreadlink-with-size.
11798         * MODULES.html.sh: Add mreadlink-with-size.
11799         * modules/mreadlink-with-size: New module
11800         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
11801         not xreadlink-with-size.
11802         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
11803
11804 2007-06-16  Bruno Haible  <bruno@clisp.org>
11805
11806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
11807         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
11808         Reported by Gary V. Vaughan <gary@gnu.org>.
11809
11810 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11811
11812         Revamp lchown so that it lives in unistd.h where it belongs.
11813         * lib/lchown.h: Remove.
11814         * lib/dirchownmod.c: Don't include lib/lchown.h.
11815         * lib/fchownat.c: Likewise.
11816         * lib/openat.c: Likewise.
11817         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
11818         does not follow symlinks.
11819         (EOPNOTSUPP): Define if not defined.
11820         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
11821         is defined to 0.
11822         (lchown): New decl.
11823         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
11824         Do not check for lchown decl.
11825         Set REPLACE_LCHOWN.
11826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
11827         REPLACE_LCHOWN.
11828         * modules/chown: Make it clear it follows symlinks.
11829         * modules/lchown: Make it clear it doesn't follow symlinks.
11830         (Files): Remove lib/lchown.h
11831         (Depends-on): Add unistd.
11832         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
11833         (Include): Include <unistd.h>, not "lchown.h".
11834         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
11835         REPLACE_LCHOWN.
11836
11837 2007-06-15  Jim Meyering  <jim@meyering.net>
11838
11839         Change license (GPL to LGPL) of fsusage and dependents.
11840         * modules/fsusage (License): Change to LGPL.
11841         * modules/full-read (License): Likewise.
11842         * modules/full-write (License): Likewise.
11843         * modules/safe-read (License): Likewise.
11844         * modules/safe-write (License): Likewise.
11845
11846 2007-06-14  Ben Pfaff  <blp@gnu.org>
11847
11848         Missing part of allocsa -> malloca transition.
11849         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
11850         gl_MALLOCA.
11851
11852 2007-06-12  Bruno Haible  <bruno@clisp.org>
11853
11854         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
11855         to ia64, x86_64, i386.
11856         Reported by Eric Blake.
11857
11858 2007-06-12  Bruno Haible  <bruno@clisp.org>
11859
11860         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
11861         cross-compiling to x86_64.
11862
11863 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
11864
11865         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
11866         glitch reported by Ralf Wildenhues in
11867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
11868
11869         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
11870         Vin Shelton.
11871
11872 2007-06-11  Bruno Haible  <bruno@clisp.org>
11873
11874         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
11875         replacement string.
11876         Reported by Eric Blake.
11877
11878 2007-06-10  Bruno Haible  <bruno@clisp.org>
11879
11880         Prepare vasnprintf code for use with Unicode strings.
11881         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
11882         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
11883         TYPE_U32_STRING.
11884         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
11885         a_u32_string variants.
11886         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11887         * lib/printf-args.c: Don't include config.h and the specification
11888         header if PRINTF_FETCHARGS is already defined.
11889         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11890         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
11891         TYPE_U16_STRING, TYPE_U32_STRING.
11892         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
11893         u16_directive, u16_directives, u32_directive, u32_directives): New
11894         types.
11895         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
11896         New declarations.
11897         * lib/printf-parse.c: Don't include config.h and the specification
11898         header if PRINTF_PARSE is already defined. Eliminate the set of
11899         parameters for WIDE_CHAR_VERSION; the user of this file must provide
11900         them now. Include c-ctype.h.
11901         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
11902         directive and CHAR_T_ONLY_ASCII.
11903         * lib/vasnprintf.c: Don't include config.h and the specification header
11904         if VASNPRINTF is already defined.
11905         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
11906         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
11907         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
11908         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
11909         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
11910         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
11911         code accordingly.
11912         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
11913         pad_ourselves also in this case, with the 'c' and 's' directives, and
11914         with a different notion of "width".
11915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
11916
11917 2007-06-10  Bruno Haible  <bruno@clisp.org>
11918
11919         * modules/unistr/u32-mbsnlen: New file.
11920         * lib/unistr/u32-mbsnlen.c: New file.
11921
11922         * modules/unistr/u16-mbsnlen: New file.
11923         * lib/unistr/u16-mbsnlen.c: New file.
11924
11925         * modules/unistr/u8-mbsnlen: New file.
11926         * lib/unistr/u8-mbsnlen.c: New file.
11927
11928         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
11929         declarations.
11930
11931 2007-06-10  Bruno Haible  <bruno@clisp.org>
11932
11933         * lib/string_.h (mbsnlen): New declaration.
11934         * lib/mbsnlen.c: New file.
11935         * m4/mbsnlen.m4: New file.
11936         * modules/mbsnlen: New file.
11937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
11938         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
11939         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
11940
11941 2007-06-10  Bruno Haible  <bruno@clisp.org>
11942
11943         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
11944
11945 2007-06-10  Bruno Haible  <bruno@clisp.org>
11946
11947         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
11948         * lib/mbuiter.h: Likewise.
11949
11950 2007-06-10  Bruno Haible  <bruno@clisp.org>
11951
11952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
11953         declaration.
11954
11955 2007-06-10  Karl Berry  <karl@gnu.org>
11956
11957         * config/srclist.txt: remove gettext entries, Bruno prefers
11958         to update individually.
11959
11960 2007-06-10  Bruno Haible  <bruno@clisp.org>
11961
11962         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
11963         'maxlen'. Ensure only length + width bytes are allocated, not
11964         length + 1 + width.
11965
11966 2007-06-09  Bruno Haible  <bruno@clisp.org>
11967
11968         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
11969         (CHAR_T): Remove macro.
11970         (VASNPRINTF): Update.
11971
11972 2007-06-09  Bruno Haible  <bruno@clisp.org>
11973
11974         * MODULES.html.sh (Unicode string functions): Add the new modules.
11975
11976         * modules/uniconv/u32-conv-to-enc: New file.
11977         * lib/uniconv/u32-conv-to-enc.c: New file.
11978         * modules/uniconv/u32-conv-to-enc-tests: New file.
11979         * tests/uniconv/test-u32-conv-to-enc.c: New file.
11980
11981         * modules/uniconv/u16-conv-to-enc: New file.
11982         * lib/uniconv/u16-conv-to-enc.c: New file.
11983         * lib/uniconv/u-conv-to-enc.h: New file.
11984         * modules/uniconv/u16-conv-to-enc-tests: New file.
11985         * tests/uniconv/test-u16-conv-to-enc.c: New file.
11986
11987         * modules/uniconv/u8-conv-to-enc: New file.
11988         * lib/uniconv/u8-conv-to-enc.c: New file.
11989         * modules/uniconv/u8-conv-to-enc-tests: New file.
11990         * tests/uniconv/test-u8-conv-to-enc.c: New file.
11991
11992         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11993         u32_conv_to_encoding): New declarations.
11994
11995 2007-06-09  Bruno Haible  <bruno@clisp.org>
11996
11997         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
11998
11999 2007-06-09  Bruno Haible  <bruno@clisp.org>
12000
12001         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
12002         * modules/malloca: Renamed from modules/allocsa, updated.
12003         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
12004         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
12005         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
12006         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
12007         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
12008         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
12009         * modules/xmalloca: Renamed from modules/xallocsa, updated.
12010         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
12011         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
12012         * modules/c-strcasestr (Depends-on): Update.
12013         * lib/c-strcasestr.c: Update.
12014         * modules/c-strstr (Depends-on): Update.
12015         * lib/c-strstr.c: Update.
12016         * modules/canonicalize-lgpl (Depends-on): Update.
12017         * lib/canonicalize-lgpl.c: Update.
12018         * modules/clean-temp (Depends-on): Update.
12019         * lib/clean-temp.c: Update.
12020         * modules/csharpcomp (Depends-on): Update.
12021         * lib/csharpcomp.c: Update.
12022         * modules/csharpexec (Depends-on): Update.
12023         * lib/csharpexec.c: Update.
12024         * modules/javacomp (Depends-on): Update.
12025         * lib/javacomp.c: Update.
12026         * modules/javaexec (Depends-on): Update.
12027         * lib/javaexec.c: Update.
12028         * modules/mbscasestr (Depends-on): Update.
12029         * lib/mbscasestr.c: Update.
12030         * modules/mbsstr (Depends-on): Update.
12031         * lib/mbsstr.c: Update.
12032         * modules/setenv (Depends-on): Update.
12033         * lib/setenv.c: Update.
12034         * modules/strcasestr (Depends-on): Update.
12035         * lib/strcasestr.c: Update.
12036         * modules/striconveha (Depends-on): Update.
12037         * lib/striconveha.c: Update.
12038         * modules/relocatable-prog-wrapper (Files): Update.
12039         * lib/relocwrapper.c: Update.
12040         * build-aux/install-reloc: Update.
12041         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
12042
12043 2007-06-08  Bruno Haible  <bruno@clisp.org>
12044
12045         Port to uClibc.
12046         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
12047         * lib/fpurge.c (fpurge): Likewise.
12048         * lib/freading.c (freading): Likewise.
12049         * lib/fseeko.c (rpl_fseeko): Likewise.
12050         * lib/fseterr.c (fseterr): Likewise.
12051         * lib/fwriting.c (fwriting): Likewise.
12052         * tests/test-fflush.c (main): Avoid a failure on uClibc.
12053
12054 2007-06-08  Bruno Haible  <bruno@clisp.org>
12055
12056         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
12057         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
12058         * modules/gettext (Files): Add m4/intlmacosx.m4.
12059
12060 2007-06-07  Bruno Haible  <bruno@clisp.org>
12061
12062         * modules/localename-tests: New file.
12063         * tests/test-localename.c: New file.
12064
12065         New module 'localename'.
12066         * lib/localename.h: New file.
12067         * lib/localename.c: New file, from GNU gettext.
12068         * m4/localename.m4: New file.
12069         * modules/localename: New file.
12070
12071 2007-06-07  Bruno Haible  <bruno@clisp.org>
12072
12073         Work around the lack of <wchar.h> on some builds of uClibc.
12074         * doc/headers/wchar.texi: Update.
12075         * lib/wchar_.h: Include <wchar.h> only if it exists.
12076         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
12077         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
12078         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
12079         doesn't exist.
12080         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
12081         * modules/mbfile (Depends-on): Add wchar.
12082         * modules/mbiter (Depends-on): Likewise.
12083         * modules/mbuiter (Depends-on): Likewise.
12084         Reported by Simon Josefsson.
12085
12086 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12087
12088         Work around problem reported by Steven M. Schweda in
12089         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
12090         Tru64 5.1B with the Compaq compiler environment installed declares
12091         an 'isblank' function but does not define it in the C library.
12092         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
12093         * lib/regex_internal.h (isblank): Likewise.
12094         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
12095         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12096
12097 2007-06-05  Bruno Haible  <bruno@clisp.org>
12098
12099         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
12100         ia64.
12101         * modules/printf-safe: New file.
12102         * modules/fprintf-posix (Depends-on): Add printf-safe.
12103         * modules/printf-posix (Depends-on): Likewise.
12104         * modules/snprintf-posix (Depends-on): Likewise.
12105         * modules/sprintf-posix (Depends-on): Likewise.
12106         * modules/vasnprintf-posix (Depends-on): Likewise.
12107         * modules/vasprintf-posix (Depends-on): Likewise.
12108         * modules/vfprintf-posix (Depends-on): Likewise.
12109         * modules/vprintf-posix (Depends-on): Likewise.
12110         * modules/vsnprintf-posix (Depends-on): Likewise.
12111         * modules/vsprintf-posix (Depends-on): Likewise.
12112         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12113         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
12114         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
12115         "no" on i386, x86_64, ia64.
12116         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
12117         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12118         on i386, x86_64, ia64.
12119         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
12120         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12121         on i386, x86_64, ia64.
12122         * tests/test-vasnprintf-posix.c: Include float.h.
12123         (LDBL80_WORDS): New macro.
12124         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12125         on i386, x86_64, ia64.
12126         * tests/test-vasprintf-posix.c: Include float.h.
12127         (LDBL80_WORDS): New macro.
12128         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12129         on i386, x86_64, ia64.
12130         * tests/test-snprintf-posix.c: Include float.h.
12131         * tests/test-sprintf-posix.c: Likewise.
12132         * tests/test-vsnprintf-posix.c: Likewise.
12133         * tests/test-vsprintf-posix.c: Likewise.
12134
12135 2007-06-05  Bruno Haible  <bruno@clisp.org>
12136
12137         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
12138         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
12139         non-IEEE numbers on i386, x86_64, ia64.
12140         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
12141         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
12142         * tests/test-isnanl.h: Include float.h.
12143         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
12144
12145 2007-06-05  Bruno Haible  <bruno@clisp.org>
12146
12147         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
12148         also the %a / %A. Handle the %a / %A code before this extra handling.
12149
12150 2007-06-05  Bruno Haible  <bruno@clisp.org>
12151
12152         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
12153         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
12154
12155 2007-06-05  Bruno Haible  <bruno@clisp.org>
12156
12157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
12158         typo in variable name.
12159
12160 2007-06-05  Eric Blake  <ebb9@byu.net>
12161
12162         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
12163         Reported by Simon Josefsson.
12164
12165 2007-06-04  Bruno Haible  <bruno@clisp.org>
12166
12167         Avoid test failures on some PowerPC platforms.
12168         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
12169         Define differently for PowerPC.
12170         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
12171         Reported by Gary V. Vaughan <gary@gnu.org>.
12172
12173 2007-06-02  Bruno Haible  <bruno@clisp.org>
12174
12175         Fix test-stdint failure on FreeBSD/ia64.
12176         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
12177         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
12178         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
12179         * doc/headers/stdint.texi: Update.
12180
12181 2007-06-01  Bruno Haible  <bruno@clisp.org>
12182
12183         * tests/test-binary-io.c (main): Pass a third argument to open().
12184         Reported by Gary V. Vaughan <gary@gnu.org>.
12185
12186 2007-06-01  Bruno Haible  <bruno@clisp.org>
12187
12188         * doc/functions/frexpl.texi: Update for mingw.
12189
12190 2007-06-01  Bruno Haible  <bruno@clisp.org>
12191
12192         * tests/test-lseek.c (main): Disable test of errno for invalid third
12193         argument.
12194         * doc/functions/lseek.texi: Update.
12195         Reported by Gary V. Vaughan <gary@gnu.org>.
12196
12197 2007-05-28  Bruno Haible  <bruno@clisp.org>
12198
12199         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
12200
12201 2007-05-31  Eric Blake  <ebb9@byu.net>
12202
12203         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
12204         cross compiling.
12205
12206 2007-05-30  Eric Blake  <ebb9@byu.net>
12207         and Bruno Haible  <bruno@clisp.org>
12208
12209         Work around mingw test failures exposed by m4-1.4.9b.
12210         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
12211         * tests/test-unistd.c: Disable uid_t and git_t tests for the
12212         moment.
12213
12214 2007-05-30  Bruno Haible  <bruno@clisp.org>
12215
12216         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
12217         assuming that they are closed. Needed on HP-UX 11.
12218
12219 2007-05-29  Bruno Haible  <bruno@clisp.org>
12220
12221         Fix a problem with #include_next.
12222         * lib/dirent_.h: Split the double-inclusion guard.
12223         * lib/fcntl_.h: Likewise.
12224         * lib/float_.h: Likewise.
12225         * lib/iconv_.h: Likewise.
12226         * lib/inttypes_.h: Likewise.
12227         * lib/locale_.h: Likewise.
12228         * lib/math_.h: Likewise.
12229         * lib/netinet_in_.h: Likewise.
12230         * lib/search_.h: Likewise.
12231         * lib/signal_.h: Likewise.
12232         * lib/stdint_.h: Likewise.
12233         * lib/stdio_.h: Likewise.
12234         * lib/stdlib_.h: Likewise.
12235         * lib/string_.h: Likewise.
12236         * lib/sys_select_.h: Likewise.
12237         * lib/sys_socket_.h: Likewise.
12238         * lib/sys_stat_.h: Likewise.
12239         * lib/sys_time_.h: Likewise.
12240         * lib/sysexits_.h: Likewise.
12241         * lib/time_.h: Likewise.
12242         * lib/unistd_.h: Likewise.
12243         * lib/wchar_.h: Likewise.
12244         * lib/wctype_.h: Likewise.
12245
12246 2007-05-29  Bruno Haible  <bruno@clisp.org>
12247
12248         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
12249         for the moment.
12250
12251 2007-05-29  Bruno Haible  <bruno@clisp.org>
12252
12253         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
12254         invocation.
12255         Reported by Eric Blake.
12256
12257 2007-05-29  Bruno Haible  <bruno@clisp.org>
12258
12259         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
12260         compiling case.
12261
12262 2007-05-29  Eric Blake  <ebb9@byu.net>
12263             Bruno Haible  <bruno@clisp.org>
12264
12265         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
12266         cross compiles.
12267
12268 2007-05-28  Eric Blake  <ebb9@byu.net>
12269
12270         * modules/closein-tests (test_closein_LDADD): Support test on
12271         cygwin with libtool.
12272
12273 2007-05-28  Bruno Haible  <bruno@clisp.org>
12274
12275         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
12276         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12277         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12278         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12279         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12280         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12281         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12282         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12283         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12284
12285 2007-05-28  Eric Blake  <ebb9@byu.net>
12286
12287         Unconditionally include <config.h> in unit tests.
12288         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
12289         * tests/test-allocsa.c, tests/test-arcfour.c,
12290         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
12291         tests/test-array_list.c, tests/test-array_oset.c,
12292         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
12293         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
12294         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
12295         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
12296         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
12297         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
12298         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
12299         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
12300         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
12301         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
12302         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
12303         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
12304         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
12305         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
12306         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
12307         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12308         test-md5.c, test-memmem.c, test-printf-posix.c,
12309         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12310         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12311         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12312         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12313         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12314         test-vasnprintf-posix2.c, test-vasnprintf.c,
12315         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12316         test-vfprintf-posix.c, test-vprintf-posix.c,
12317         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12318         test-xvasprintf.c: Likewise.
12319
12320 2007-05-28  Bruno Haible  <bruno@clisp.org>
12321
12322         * gnulib-tool (func_import): Remember the --with-tests command-line
12323         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12324         Reported by Eric Blake.
12325
12326 2007-05-28  Bruno Haible  <bruno@clisp.org>
12327
12328         * modules/ftell-tests: New file.
12329         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12330         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12331
12332         * lib/ftell.c: New file.
12333         * modules/ftell: New file.
12334         * m4/ftell.m4: New file.
12335         * doc/functions/ftell.texi: Update.
12336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12337         REPLACE_FTELL.
12338         * lib/stdio_.h (rpl_ftell): New declaration.
12339         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12340         REPLACE_FTELL.
12341
12342 2007-05-28  Eric Blake  <ebb9@byu.net>
12343
12344         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12345
12346 2007-05-28  Bruno Haible  <bruno@clisp.org>
12347
12348         * modules/fseek-tests: New file.
12349         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12350         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12351
12352         * lib/fseek.c: New file.
12353         * modules/fseek: New file.
12354         * m4/fseek.m4: New file.
12355         * doc/functions/fseek.texi: Update.
12356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12357         REPLACE_FSEEK.
12358         * lib/stdio_.h (rpl_fseek): New declaration.
12359         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12360         REPLACE_FSEEK.
12361
12362 2007-05-28  Bruno Haible  <bruno@clisp.org>
12363
12364         * lib/stdio_.h (fflush): More comments.
12365
12366 2007-05-28  Bruno Haible  <bruno@clisp.org>
12367
12368         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12369         runtime test.
12370
12371 2007-05-28  Eric Blake  <ebb9@byu.net>
12372
12373         Improve lseek module.
12374         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12375         * lib/unistd_.h (lseek): Scale back link warning message.
12376         * tests/test-lseek.c: Beef up test.
12377         * tests/test-lseek.sh: Exercise more facets of lseek.
12378         Reported by Bruno Haible.
12379
12380 2007-05-28  Bruno Haible  <bruno@clisp.org>
12381
12382         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12383         to define.
12384
12385 2007-05-27  Bruno Haible  <bruno@clisp.org>
12386
12387         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12388
12389 2007-05-27  Bruno Haible  <bruno@clisp.org>
12390
12391         * modules/openmp: New file.
12392         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12393         Noah Misch.
12394
12395 2007-05-26  Bruno Haible  <bruno@clisp.org>
12396
12397         * modules/chdir-long (Depends-on): Add fchdir.
12398         * modules/chdir-safer (Depends-on): Likewise.
12399         * modules/fts (Depends-on): Likewise.
12400         * modules/fts-lgpl (Depends-on): Likewise.
12401         * modules/openat (Depends-on): Likewise.
12402         * modules/savewd (Depends-on): Likewise.
12403
12404 2007-05-24  Eric Blake  <ebb9@byu.net>
12405
12406         Fix lseek on mingw.
12407         * modules/lseek: New module.
12408         * m4/lseek.m4: New file.
12409         * lib/lseek.c: New file.
12410         * modules/lseek-tests: New file.
12411         * tests/test-lseek.c: New file.
12412         * tests/test-lseek.sh: New file.
12413         * MODULES.html.sh: Document lseek module.
12414         * modules/fflush (Depends-on): Add lseek, fseeko.
12415         * modules/fseeko (Depends-on): Likewise.
12416         * modules/ftello (Depends-on): Likewise.
12417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
12418         broken.
12419         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
12420         broken.
12421         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
12422         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
12423         * lib/ftello.c (rpl_ftello): Likewise.
12424         * tests/test-fseeko.c (main): Test this.
12425         * tests/test-fseeko.sh: Likewise.
12426         * tests/test-ftello.c (main): Likewise.
12427         * tests/test-ftello.sh: Likewise.
12428         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12429         implies replacing fseek.
12430         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12431         HAVE_FTELLO.
12432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12433         * modules/unistd (Makefile.am): Likewise.
12434         * lib/unistd_.h (lseek): Declare a replacement.
12435         * doc/functions/lseek.texi (lseek): Document this fix.
12436         * doc/functions/fseek.texi (fseek): Likewise.
12437         * doc/functions/ftell.texi (ftell): Likewise.
12438
12439 2007-05-24  Bruno Haible  <bruno@clisp.org>
12440
12441         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12442         in the printed representation of a NaN.
12443         * tests/test-vasprintf-posix.c (test_function): Likewise.
12444         * tests/test-snprintf-posix.h (test_function): Likewise.
12445         * tests/test-sprintf-posix.h (test_function): Likewise.
12446         Reported by Eric Blake.
12447
12448 2007-05-23  Eric Blake  <ebb9@byu.net>
12449
12450         Fix fseeko/ftello on cygwin 1.5.24.
12451         * doc/functions/fseeko.texi (fseeko): Document the fix.
12452         * doc/functions/ftello.texi (ftello): Document the fix.
12453         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
12454         * doc/functions/stdout.text (stdout): New file.
12455         * doc/functions/stderr.text (stderr): New file.
12456         * doc/gnulib.texi (Function Substitutes): Use new files.
12457         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
12458         prior to 1.7.0.
12459         * tests/test-ftello.c (main): Likewise for ftello.
12460         * tests/test-fseeko.sh: New file.
12461         * tests/test-ftello.sh: New file.
12462         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
12463         with seekable stdin.
12464         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
12465         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
12466         (gl_REPLACE_FSEEKO): New macro.
12467         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
12468         * modules/fseeko (Files): Distribute fseeko.c.
12469         * modules/ftello (Files): Distribute ftello.c.
12470         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
12471         mode.
12472         * lib/ftello.c (rpl_ftello): New file.
12473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
12474         fseeko, ftello.
12475         (gl_STDIN_LARGE_OFFSET): New macro.
12476         * modules/stdio (Makefile.am): Perform the replacement.
12477         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
12478
12479 2007-05-23  Bruno Haible  <bruno@clisp.org>
12480
12481         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
12482         GNULIB_POSIXCHECK is defined.
12483
12484 2007-05-21  Bruno Haible  <bruno@clisp.org>
12485
12486         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
12487         Check also the output for NaN arguments. When cross-compiling, guess
12488         no on IRIX.
12489         * lib/vasnprintf.c: Update comments.
12490         * tests/test-vasnprintf-posix.c (strisnan): New function.
12491         (test_function): Use it.
12492         * tests/test-vasprintf-posix.c (strisnan): New function.
12493         (test_function): Use it.
12494         * tests/test-snprintf-posix.h (strisnan): New function.
12495         (test_function): Use it.
12496         * tests/test-sprintf-posix.h (strisnan): New function.
12497         (test_function): Use it.
12498         Reported by Eric Blake.
12499
12500 2007-05-20  Bruno Haible  <bruno@clisp.org>
12501
12502         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
12503         numbers that fails on BeOS.
12504         * doc/functions/frexpl.texi: Update.
12505
12506 2007-05-20  Jim Meyering  <jim@meyering.net>
12507
12508         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
12509         forced upon us by glibc-2.6.
12510
12511 2007-05-20  Bruno Haible  <bruno@clisp.org>
12512
12513         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
12514         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
12515         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
12516         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
12517         NEED_PRINTF_INFINITE.
12518         (is_infinitel): New function.
12519         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
12520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
12521         gl_PREREQ_VASNPRINTF_INFINITE.
12522         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
12523         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12524         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
12525         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
12526         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
12527         gl_PREREQ_VASNPRINTF_INFINITE.
12528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12529         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12530         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12532         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12533         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12534         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12535         * doc/functions/fprintf.texi: Update.
12536         * doc/functions/printf.texi: Update.
12537         * doc/functions/snprintf.texi: Update.
12538         * doc/functions/sprintf.texi: Update.
12539         * doc/functions/vfprintf.texi: Update.
12540         * doc/functions/vprintf.texi: Update.
12541         * doc/functions/vsnprintf.texi: Update.
12542         * doc/functions/vsprintf.texi: Update.
12543
12544 2007-05-20  Bruno Haible  <bruno@clisp.org>
12545
12546         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
12547         was not found in libc.
12548         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12549
12550 2007-05-20  Bruno Haible  <bruno@clisp.org>
12551
12552         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12553         printed as "-nan" instead of "nan".
12554         * tests/test-vasprintf-posix.c (test_function): Likewise.
12555         * tests/test-snprintf-posix.h (test_function): Likewise.
12556         * tests/test-sprintf-posix.h (test_function): Likewise.
12557         Needed for HP-UX 11.
12558
12559 2007-05-20  Jim Meyering  <jim@meyering.net>
12560
12561         Fix buggy test for the fchownat-deref bug.
12562         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
12563         symlink required for the run-test.  Without it, this test would
12564         always declare that fchownat doesn't work, and client code would
12565         unnecessarily use the replacement function with fixed libc.
12566         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
12567         Reported by Greg Schafer.
12568
12569 2007-05-19  Bruno Haible  <bruno@clisp.org>
12570
12571         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
12572         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
12573         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
12574         Needed for IRIX 6.5 and Solaris 2.5.1.
12575
12576 2007-05-19  Bruno Haible  <bruno@clisp.org>
12577
12578         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
12579         (test_function): Skip tests involving -0.0 on platforms where
12580         -0.0 = 0.0.
12581         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
12582         (test_function): Skip tests involving -0.0 on platforms where
12583         -0.0 = 0.0.
12584         * tests/test-snprintf-posix.h (have_minus_zero): New function.
12585         (test_function): Skip tests involving -0.0 on platforms where
12586         -0.0 = 0.0.
12587         * tests/test-sprintf-posix.h (have_minus_zero): New function.
12588         (test_function): Skip tests involving -0.0 on platforms where
12589         -0.0 = 0.0.
12590         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
12591         tests.
12592         * tests/test-printf-posix.h (test_function): Likewise.
12593         * tests/test-printf-posix.output: Remove all -0.0 related results.
12594         Needed for IRIX 6.5.
12595
12596 2007-05-19  Bruno Haible  <bruno@clisp.org>
12597
12598         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12599         printed as "nan0x7fffffff" instead of "nan".
12600         * tests/test-vasprintf-posix.c (test_function): Likewise.
12601         * tests/test-snprintf-posix.h (test_function): Likewise.
12602         * tests/test-sprintf-posix.h (test_function): Likewise.
12603         * tests/test-fprintf-posix.h (NaN): Remove macro.
12604         (test_function): Remove all NaN related tests.
12605         * tests/test-printf-posix.h (NaN): Remove macro.
12606         (test_function): Remove all NaN related tests.
12607         * tests/test-printf-posix.output: Remove all NaN related results.
12608         Needed for IRIX 6.5.
12609
12610 2007-05-19  Bruno Haible  <bruno@clisp.org>
12611
12612         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
12613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12614
12615 2007-05-19  Bruno Haible  <bruno@clisp.org>
12616
12617         * lib/float_.h: New file.
12618         * m4/float_h.m4: New file.
12619         * modules/float: New file.
12620         * modules/isnanl (Dependencies): Add float.
12621         * modules/isnanl-nolibm (Dependencies): Likewise.
12622         * modules/mathl (Dependencies): Likewise.
12623         * modules/printf-frexpl (Dependencies): Likewise.
12624         * modules/signbit (Dependencies): Likewise.
12625         * modules/vasnprintf (Dependencies): Likewise.
12626         * doc/headers/float.texi: Update.
12627
12628 2007-05-19  Jim Meyering  <jim@meyering.net>
12629
12630         * lib/utimens.c (gl_futimens): Rename from futimens,
12631         now that glibc-2.6 declares futimens.
12632         * lib/utimens.h: Likewise.
12633
12634 2007-05-19  Bruno Haible  <bruno@clisp.org>
12635
12636         Avoid test failures on mingw.
12637         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
12638         * tests/test-printf-posix.sh: Likewise.
12639         * tests/test-vfprintf-posix.sh: Likewise.
12640         * tests/test-vprintf-posix.sh: Likewise.
12641
12642 2007-05-19  Bruno Haible  <bruno@clisp.org>
12643
12644         Fix *printf result for NaN, Inf, -0.0 on mingw.
12645         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
12646         * lib/vasnprintf.c: Include math.h and isnan.h.
12647         (is_infinite_or_zero): New function.
12648         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
12649         values in the %f, %F, %e, %E, %g, %G directives.
12650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
12651         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12652         gl_PRINTF_INFINITE and test its result. Invoke
12653         gl_PREREQ_VASNPRINTF_INFINITE.
12654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12655         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12656         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12657         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12658         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12659         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12660         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12661         * doc/functions/fprintf.texi: Update.
12662         * doc/functions/printf.texi: Update.
12663         * doc/functions/snprintf.texi: Update.
12664         * doc/functions/sprintf.texi: Update.
12665         * doc/functions/vfprintf.texi: Update.
12666         * doc/functions/vprintf.texi: Update.
12667         * doc/functions/vsnprintf.texi: Update.
12668         * doc/functions/vsprintf.texi: Update.
12669
12670 2007-05-19  Bruno Haible  <bruno@clisp.org>
12671
12672         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
12673         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
12674         Instead of multiplying with 10^k, set extra_zeroes to k.
12675         (scale10_round_long_double): Remove function.
12676
12677 2007-05-18  Bruno Haible  <bruno@clisp.org>
12678
12679         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
12680         introduced on 2007-05-06.
12681
12682 2007-05-18  Bruno Haible  <bruno@clisp.org>
12683
12684         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
12685         %g directives.
12686         * tests/test-vasprintf-posix.c (test_function): Likewise.
12687         * tests/test-snprintf-posix.h (test_function): Likewise.
12688         * tests/test-sprintf-posix.h (test_function): Likewise.
12689
12690 2007-05-18  Bruno Haible  <bruno@clisp.org>
12691
12692         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
12693         (strmatch): New function.
12694         (test_function): Test the %f directive on numbers of various exponents.
12695         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
12696         (strmatch): New function.
12697         (test_function): Test the %f directive on numbers of various exponents.
12698         * tests/test-snprintf-posix.h (strmatch): New function.
12699         (test_function): Test the %f directive on numbers of various exponents.
12700         * tests/test-sprintf-posix.h (strmatch): New function.
12701         (test_function): Test the %f directive on numbers of various exponents.
12702         * tests/test-snprintf-posix.c (SIZEOF): New macro.
12703         * tests/test-sprintf-posix.c (SIZEOF): New macro.
12704         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
12705         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
12706
12707 2007-05-18  Bruno Haible  <bruno@clisp.org>
12708
12709         Add support for 'long double' number output.
12710         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
12711         * lib/vasnprintf.c: Include math.h and float+.h.
12712         (mp_limb_t): New type.
12713         (GMP_LIMB_BITS): New macro.
12714         (mp_twolimb_t): New type.
12715         (GMP_TWOLIMB_BITS): New macro.
12716         (mpn_t): New type.
12717         (multiply, divide, convert_to_decimal, decode_long_double,
12718         scale10_round_long_double, scale10_round_decimal_long_double,
12719         floorlog10l): New functions.
12720         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12721         for the %f, %F, %e, %E, %g, %G directives.
12722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12724         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12725         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12726         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12727         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12728         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12730         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12732         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12733         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
12734         * modules/snprintf-posix (Depends-on): Likewise.
12735         * modules/sprintf-posix (Depends-on): Likewise.
12736         * modules/vasnprintf-posix (Depends-on): Likewise.
12737         * modules/vasprintf-posix (Depends-on): Likewise.
12738         * modules/vfprintf-posix (Depends-on): Likewise.
12739         * modules/vsnprintf-posix (Depends-on): Likewise.
12740         * modules/vsprintf-posix (Depends-on): Likewise.
12741         * modules/vasnprintf (Files): Add lib/float+.h.
12742         * doc/functions/fprintf.texi: Update.
12743         * doc/functions/printf.texi: Update.
12744         * doc/functions/snprintf.texi: Update.
12745         * doc/functions/sprintf.texi: Update.
12746         * doc/functions/vfprintf.texi: Update.
12747         * doc/functions/vprintf.texi: Update.
12748         * doc/functions/vsnprintf.texi: Update.
12749         * doc/functions/vsprintf.texi: Update.
12750
12751 2007-05-18  Bruno Haible  <bruno@clisp.org>
12752
12753         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
12754
12755 2007-05-18  Bruno Haible  <bruno@clisp.org>
12756
12757         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
12758         for printing 64-bit integers. Needed for mingw.
12759
12760 2007-05-18  Bruno Haible  <bruno@clisp.org>
12761
12762         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12763         gl_FUNC_FREXPL_WORKS.
12764         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
12765
12766 2007-05-18  Bruno Haible  <bruno@clisp.org>
12767
12768         * modules/frexpl-nolibm-tests: New file.
12769
12770         * modules/frexpl-nolibm: New file.
12771         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
12772
12773 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12774
12775         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
12776         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12777         GCC 4.2, which otherwise issues a lot of warnings.
12778         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
12779         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
12780         Likewise.
12781         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
12782         * modules/iconv_open (iconv.h): Likewise.
12783         * modules/locale (locale.h): Likewise.
12784         * modules/netinet_in (netinet/in.h): Likewise.
12785         * modules/sys_select (sys_select.h): Likewise.
12786         * modules/sys_socket (sys/socket.h): Likewise.
12787         * modules/sys_stat (sys/stat.h): Likewise.
12788         * modules/sysexits (sysexits.h): Likewise.
12789         * modules/unistd (unistd.h): Likewise.
12790
12791 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12792
12793         * modules/closein-tests (Makefile.am): Distribute
12794         `test-closein.sh'.
12795
12796 2007-05-17  Bruno Haible  <bruno@clisp.org>
12797
12798         * tests/test-printf-posix.output: Renamed from
12799         tests/test-fprintf-posix.out.
12800         * modules/fprintf-posix-tests: Update.
12801         * modules/printf-posix-tests: Update.
12802         * modules/vfprintf-posix-tests: Update.
12803         * modules/vprintf-posix-tests: Update.
12804         * tests/test-fprintf-posix.sh: Update.
12805         * tests/test-printf-posix.sh: Update.
12806         * tests/test-vfprintf-posix.sh: Update.
12807         * tests/test-vprintf-posix.sh: Update.
12808         Reported by Ralf Wildenhues.
12809
12810 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12811
12812         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
12813         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12814         GCC 4.2, which otherwise issues a lot of warnings.
12815         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
12816         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
12817         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
12818         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
12819         it should no longer be needed.
12820         * lib/string_.h: Likewise.
12821         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
12822         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
12823         * modules/inttypes (inttypes.h): Likewise.
12824         * modules/math (math.h): Likewise.
12825         * modules/search (search.h): Likewise.
12826         * modules/signal (signal.h): Likewise.
12827         * modules/stdint (stdint.h): Likewise.
12828         * modules/stdio (stdio.h): Likewise.
12829         * modules/stdlib (stdlib.h): Likewise.
12830         * modules/string (string.h): Likewise.
12831         * modules/sys_time (sys/time.h): Likewise.
12832         * modules/time (time.h): Likewise.
12833         * modules/wchar (wchar.h): Likewise.
12834         * modules/wctype (wtype.h): Likewise.
12835
12836 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12837
12838         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
12839
12840 2007-05-13  Bruno Haible  <bruno@clisp.org>
12841
12842         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
12843         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12844         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
12845         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12846         (gl_PREREQ_STRTOK_R): Don't require it here.
12847
12848 2007-05-13  Bruno Haible  <bruno@clisp.org>
12849
12850         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
12851         when used in C++ mode.
12852
12853 2007-05-12  Bruno Haible  <bruno@clisp.org>
12854
12855         * lib/linebuffer.h: Tweak doc.
12856         * lib/linebuffer.c: Likewise.
12857
12858 2007-05-12  James Youngman  <jay@gnu.org>
12859
12860         * lib/linebuffer.c (readlinebuffer_delim): New function,
12861         like readlinebuffer, but use a caller-specified delimiter.
12862         (readlinebuffer): Just call readlinebuffer_delim with '\n'
12863         as the delimiter.
12864         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
12865
12866 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12867
12868         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
12869         * modules/openat (Files): Remove openat-die.c.
12870         (Depends-on): Add openat-die.
12871         * modules/openat-die: New module.
12872
12873 2007-05-06  Bruno Haible  <bruno@clisp.org>
12874
12875         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
12876         Update with info about Cygwin.
12877         * doc/functions/fprintf.texi: Update.
12878         * doc/functions/printf.texi: Update.
12879         * doc/functions/snprintf.texi: Update.
12880         * doc/functions/sprintf.texi: Update.
12881         * doc/functions/vfprintf.texi: Update.
12882         * doc/functions/vprintf.texi: Update.
12883         * doc/functions/vsnprintf.texi: Update.
12884         * doc/functions/vsprintf.texi: Update.
12885         Reported by Eric Blake.
12886
12887 2007-05-06  Bruno Haible  <bruno@clisp.org>
12888
12889         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
12890         padding ourselves for the floating-point directives.
12891         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
12892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
12893         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12894         gl_PRINTF_FLAG_ZERO and test its result. Invoke
12895         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
12896         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12897         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12898         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12902         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12903         * tests/test-snprintf-posix.h (test_function): Also check the width
12904         and some flags in the %f directive.
12905         * tests/test-sprintf-posix.h (test_function): Likewise.
12906         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12907         * tests/test-vasprintf-posix.c (test_function): Likewise.
12908         * doc/functions/fprintf.texi: Update.
12909         * doc/functions/printf.texi: Update.
12910         * doc/functions/snprintf.texi: Update.
12911         * doc/functions/sprintf.texi: Update.
12912         * doc/functions/vfprintf.texi: Update.
12913         * doc/functions/vprintf.texi: Update.
12914         * doc/functions/vsnprintf.texi: Update.
12915         * doc/functions/vsprintf.texi: Update.
12916
12917 2007-05-06  Bruno Haible  <bruno@clisp.org>
12918
12919         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
12920         pass the ' flag character to sprintf or snprintf.
12921         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
12922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
12923         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12924         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
12925         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
12926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12928         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12929         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12930         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12932         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12933         * tests/test-snprintf-posix.h (test_function): Also check the grouping
12934         flag.
12935         * tests/test-sprintf-posix.h (test_function): Likewise.
12936         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12937         * tests/test-vasprintf-posix.c (test_function): Likewise.
12938         * doc/functions/fprintf.texi: Update.
12939         * doc/functions/printf.texi: Update.
12940         * doc/functions/snprintf.texi: Update.
12941         * doc/functions/sprintf.texi: Update.
12942         * doc/functions/vfprintf.texi: Update.
12943         * doc/functions/vprintf.texi: Update.
12944         * doc/functions/vsnprintf.texi: Update.
12945         * doc/functions/vsprintf.texi: Update.
12946
12947 2007-05-01  Bruno Haible  <bruno@clisp.org>
12948
12949         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
12950
12951 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
12952
12953         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
12954         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
12955
12956 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12957
12958         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
12959         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
12960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
12961
12962 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
12963
12964         * lib/argp-help.c (struct hol_entry): New member `ord'.
12965         (HOL_ENTRY_PTRCMP): Use ord for comparison
12966         (hol_sort): Initialize ord.
12967
12968 2007-05-01  Bruno Haible  <bruno@clisp.org>
12969
12970         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
12971         Reported by Eric Blake.
12972         * doc/gnulib.texi (Function Substitutes): Update.
12973
12974 2007-05-01  Bruno Haible  <bruno@clisp.org>
12975
12976         * doc/functions.texi: Remove file, now redundant through
12977         doc/functions/*.texi.
12978
12979 2007-05-01  Bruno Haible  <bruno@clisp.org>
12980
12981         * modules/argp (Depends-on): Add sleep.
12982
12983 2007-05-01  Bruno Haible  <bruno@clisp.org>
12984
12985         * modules/sleep-tests: New file.
12986         * tests/test-sleep.c: New file.
12987
12988         * modules/sleep: New file.
12989         * lib/sleep.c: New file.
12990         * m4/sleep.m4: New file.
12991         * lib/unistd_.h (sleep): New declaration.
12992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
12993         HAVE_SLEEP.
12994         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
12995         * doc/functions/sleep.texi: Document the sleep module.
12996
12997 2007-05-01  Bruno Haible  <bruno@clisp.org>
12998
12999         * lib/sigprocmask.h: Remove file.
13000         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
13001         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
13002         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
13003         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
13004         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13005         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
13006         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
13007         HAVE_SIGSET_T as a shell variable.
13008         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
13009         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
13010         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
13011         (Depends-on): Add signal. Remove verify.
13012         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
13013         (Include): Mention <signal.h> instead of sigprocmask.h.
13014         * NEWS: Mention the change.
13015         * lib/fatal-signal.c: Don't include sigprocmask.h.
13016
13017 2007-05-01  Bruno Haible  <bruno@clisp.org>
13018
13019         * modules/signal: New file.
13020         * lib/signal_.h: New file.
13021         * m4/signal_h.m4: New file.
13022
13023 2007-05-01  Bruno Haible  <bruno@clisp.org>
13024
13025         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
13026         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
13027         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
13028         HAVE_WCTYPE_CTMP_BUG into wctype.h.
13029
13030 2007-05-01  Bruno Haible  <bruno@clisp.org>
13031
13032         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
13033         configure time.
13034         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
13035         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
13036         * modules/sys_stat (Makefile.am): Substitute their values into
13037         sys/stat.h.
13038
13039 2007-05-01  Bruno Haible  <bruno@clisp.org>
13040
13041         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
13042         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
13043         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
13044
13045 2007-05-01  Bruno Haible  <bruno@clisp.org>
13046
13047         * doc/header/assert.texi: Undo last change: don't mention the gnulib
13048         'assert' module here.
13049
13050 2007-05-01  Bruno Haible  <bruno@clisp.org>
13051
13052         * doc/functions/*.texi: New files.
13053         * doc/functions/google-ranking.txt: New file.
13054         * doc/gnulib.texi (Function Substitutes): New chapter.
13055         (ctime, inet_ntoa): Remove sections.
13056         * doc/ctime.texi: Remove file.
13057         * doc/inet_ntoa.texi: Remove file.
13058         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
13059         dependencies.
13060         (%.info): New rule, specifying a --reference-limit.
13061
13062 2007-05-01  Bruno Haible  <bruno@clisp.org>
13063
13064         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
13065
13066 2007-05-01  Bruno Haible  <bruno@clisp.org>
13067
13068         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
13069         the portability of 'mkdir' to mingw systems.
13070
13071 2007-05-01  Bruno Haible  <bruno@clisp.org>
13072
13073         * doc/headers/google-ranking.txt: New file.
13074
13075 2007-04-30  Eric Blake  <ebb9@byu.net>
13076
13077         Prefer fseeko to fseek.
13078         * modules/getpass (Depends-on): Add fseeko.
13079         * lib/getpass.c (getpass): Use fseeko, not fseek.
13080
13081 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
13082
13083         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
13084         assumes the sorting is stable, while most qsort implementations
13085         are not.  Use argument addresses to ensure they never compare as
13086         equal.
13087
13088         * tests/test-argp-2.sh (usage-indent test): Fix output
13089         (func_compare): Restore diff options
13090         * tests/test-argp.c: Restore #include "progname.h"
13091
13092 2007-04-29  Bruno Haible  <bruno@clisp.org>
13093
13094         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
13095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13096         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
13097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13098         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
13099         (configure.ac): Define CHECK_SNPRINTF_POSIX.
13100         (TESTS, check_PROGRAMS): Add test-snprintf.
13101         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
13102         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
13103         (TESTS, check_PROGRAMS): Add test-vsnprintf.
13104         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
13105         assertions that fail on HP-UX, OSF/1, or IRIX.
13106         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
13107
13108 2007-04-29  Bruno Haible  <bruno@clisp.org>
13109
13110         * MODULES.html.sh (posix_functions): Remove 'contents'.
13111
13112 2007-04-29  Karl Berry  <karl@gnu.org>
13113
13114         * config/srclist.txt (gendocs_template_min): new entry.
13115
13116 2007-04-29  Bruno Haible  <bruno@clisp.org>
13117
13118         Work around fpurge bug on BSD systems.
13119         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
13120         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
13121         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
13122         fpurge to rpl_fpurge if the system already has this function.
13123         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
13124         the case where the system already has this function. Correct invariants
13125         on BSD systems.
13126         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
13127         BSD systems.
13128
13129 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
13130
13131         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
13132         proposed by Sven Verdoolaege.
13133
13134         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
13135         options.
13136         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
13137         (usage and help tests): Update
13138
13139 2007-04-29  Bruno Haible  <bruno@clisp.org>
13140
13141         * tests/test-fflush.c (main): Use a file of size 17, not 10.
13142         Print more information in case of failure. Disable a test on BeOS.
13143
13144 2007-04-29  Bruno Haible  <bruno@clisp.org>
13145
13146         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
13147         This helps debugging on systems on which no gdb is available.
13148
13149 2007-04-29  Bruno Haible  <bruno@clisp.org>
13150
13151         * lib/freading.h: Improve comments.
13152         * lib/fwriting.h: Likewise.
13153         * tests/test-freading.c (main): Don't check freading immediately after
13154         repositioning. Needed for glibc.
13155
13156 2007-04-29  Bruno Haible  <bruno@clisp.org>
13157
13158         * lib/freading.c (freading): Trivial simplification.
13159
13160 2007-04-28  Bruno Haible  <bruno@clisp.org>
13161
13162         * tests/test-fwriting.c (main): Also test the interaction between
13163         fflush and fwriting.
13164         * modules/fwriting-tests (Depends-on): Add fflush.
13165
13166         * tests/test-freading.c (main): Also test the interaction between
13167         fflush and freading.
13168         * modules/freading-tests (Depends-on): Add fflush.
13169
13170 2007-04-28  Bruno Haible  <bruno@clisp.org>
13171
13172         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
13173         fseeko and ftello.
13174         Suggested by Eric Blake.
13175
13176 2007-04-28  Jim Meyering  <jim@meyering.net>
13177
13178         Avoid false-negative in gl_STDINT_H's C99 conformance test.
13179         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
13180         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
13181
13182 2007-04-27  Eric Blake  <ebb9@byu.net>
13183
13184         * doc/headers/assert.texi (assert.h): Document assert module use.
13185
13186 2007-04-27  Bruno Haible  <bruno@clisp.org>
13187
13188         * doc/headers/*.texi: New files.
13189         * doc/gnulib.texi (Header File Substitutes): New chapter.
13190         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
13191         dependencies.
13192         (standards.info ,standards.html, standards.dvi): Update dependencies.
13193         (mostlyclean, clean): New targets.
13194
13195 2007-04-27  Bruno Haible  <bruno@clisp.org>
13196
13197         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
13198         * modules/sysexits (Files, Makefile.am): Update.
13199
13200         * lib/sys_socket_.h: Renamed from lib/socket_.h.
13201         * modules/sys_socket (Files, Makefile.am): Update.
13202
13203         * lib/sys_stat_.h: Renamed from lib/stat_.h.
13204         * modules/sys_stat (Files, Makefile.am): Update.
13205
13206 2007-04-27  Eric Blake  <ebb9@byu.net>
13207
13208         * lib/freading.h: Improve comments.
13209         * lib/fwriting.h: Likewise.
13210         * lib/fflush.c: Likewise.
13211
13212         Fix closein for mingw.
13213         * modules/closein-tests: Add tests for closein.
13214         * tests/test-closein.c: New file.
13215         * tests/test-closein.sh: Likewise.
13216         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
13217         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
13218
13219 2007-04-27  Bruno Haible  <bruno@clisp.org>
13220
13221         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
13222         version is < 6.
13223         * lib/math_.h [__DECC]: Likewise.
13224         * lib/stdio_.h [__DECC]: Likewise.
13225         * lib/stdlib_.h [__DECC]: Likewise.
13226         * lib/string_.h [__DECC]: Likewise.
13227         * lib/time_.h [__DECC]: Likewise.
13228         * lib/wchar_.h [__DECC]: Likewise.
13229         * lib/wctype_.h [__DECC]: Likewise.
13230
13231 2007-04-27  Bruno Haible  <bruno@clisp.org>
13232
13233         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
13234
13235 2007-04-27  Bruno Haible  <bruno@clisp.org>
13236
13237         * lib/fflush.c: Add comments.
13238         * modules/fpurge-tests (Depends-on): Add fflush.
13239         * modules/freadable-tests (Depends-on): Likewise.
13240         * modules/fwritable-tests (Depends-on): Likewise.
13241
13242 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
13243
13244         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
13245         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
13246         Report by Bruno Haible <bruno@clisp.org>.
13247
13248 2007-04-26  Eric Blake  <ebb9@byu.net>
13249
13250         Fix fflush on mingw.
13251         * modules/fflush (Depends-on): Add freading.
13252         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
13253         but unread data.
13254
13255 2007-04-26  Eric Blake  <ebb9@byu.net>
13256         and Bruno Haible  <bruno@clisp.org>
13257
13258         Implement freading and fwriting.
13259         * lib/freading.c: New file.
13260         * lib/freading.h: Likewise.
13261         * m4/freading.m4: Likewise.
13262         * modules/freading: Likewise.
13263         * modules/freading-tests: Likewise.
13264         * tests/test-freading.c: Likewise.
13265         * lib/fwriting.c: New file.
13266         * lib/fwriting.h: Likewise.
13267         * m4/fwriting.m4: Likewise.
13268         * modules/fwriting: Likewise.
13269         * modules/fwriting-tests: Likewise.
13270         * tests/test-fwriting.c: Likewise.
13271         * MODULES.html.sh (File stream based Input/Output): Mention them.
13272
13273 2007-04-26  Bruno Haible  <bruno@clisp.org>
13274
13275         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
13276         'long' when we assume it.
13277         Suggested by Eric Blake.
13278
13279 2007-04-26  Bruno Haible  <bruno@clisp.org>
13280
13281         Ensure fseeko, ftello are declared on glibc systems.
13282         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
13283         * modules/fseeko (configure.ac-early): Likewise.
13284         * modules/ftello (configure.ac-early): Likewise.
13285         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
13286         AC_FUNC_FSEEKO for this.
13287         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
13288         (gl_CHECK_FSEEKO): Remove macro.
13289
13290 2007-04-26  Bruno Haible  <bruno@clisp.org>
13291
13292         * tests/test-fflush.c (main): Also check the ftell result after
13293         fflush and fseek/fseeko.
13294         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
13295         file descriptor position cache in the stream.
13296         * lib/fseeko.c (rpl_fseeko): Likewise.
13297
13298 2007-04-26  Bruno Haible  <bruno@clisp.org>
13299
13300         * modules/fflush-tests (Depends-on): Add fseeko.
13301
13302 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
13303             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13304
13305         * lib/argz_.h: ensure error_t definition is obtained in same
13306         mechanism system argz.h would have.
13307         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13308         argz facilities are known bad.  Err on the side of caution if
13309         cross-compiling.
13310
13311 2007-04-25  Eric Blake  <ebb9@byu.net>
13312
13313         * lib/fpurge.c (includes): Use stdlib.h for free.
13314         * tests/test-fflush.c (main): Also test fflush-fseeko.
13315
13316 2007-04-25  Bruno Haible  <bruno@clisp.org>
13317
13318         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13319         * lib/fseeko.c: New file.
13320         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13321         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13322         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13323         gl_FUNC_FSEEKO.
13324         (gl_FUNC_FSEEKO): Invoke it.
13325         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13326         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13327         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13328
13329 2007-04-25  Bruno Haible  <bruno@clisp.org>
13330
13331         * modules/fflush (Depends-on): Add ftello.
13332
13333 2007-04-25  Bruno Haible  <bruno@clisp.org>
13334
13335         * modules/ftello-tests: New file.
13336         * tests/test-ftello.c: New file.
13337
13338         * modules/ftello: New file.
13339         * m4/ftello.m4: New file.
13340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13341         HAVE_FTELLO.
13342         * lib/stdio_.h (ftello): New declaration.
13343         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13344         HAVE_FTELLO.
13345
13346 2007-04-25  Bruno Haible  <bruno@clisp.org>
13347
13348         * modules/fseeko-tests: New file.
13349         * tests/test-fseeko.c: New file.
13350
13351         * modules/fseeko: New file.
13352         * m4/fseeko.m4: New file.
13353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13354         HAVE_FSEEKO.
13355         * lib/stdio_.h (fseeko): New declaration.
13356         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13357         HAVE_FSEEKO.
13358
13359 2007-04-25  Bruno Haible  <bruno@clisp.org>
13360
13361         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13362
13363 2007-04-25  Bruno Haible  <bruno@clisp.org>
13364
13365         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13366         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13367         * tests/test-unistd.c: Likewise.
13368         * tests/test-fcntl.c: Likewise.
13369
13370 2007-04-23  Eric Blake  <ebb9@byu.net>
13371
13372         * lib/fflush.c: Fix missing include.
13373         Reported by Bruno Haible.
13374
13375 2007-04-23  Bruno Haible  <bruno@clisp.org>
13376
13377         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13378         Reported by Eric Blake.
13379
13380 2007-04-23  Bruno Haible  <bruno@clisp.org>
13381
13382         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13383
13384 2007-04-23  Bruno Haible  <bruno@clisp.org>
13385
13386         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13387
13388 2007-04-23  Bruno Haible  <bruno@clisp.org>
13389
13390         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13391         Needed on HP-UX 11.
13392
13393 2007-04-16  Eric Blake  <ebb9@byu.net>
13394
13395         Make fflush rely on fpurge.
13396         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13397         open coding all variants.
13398         * modules/fflush (Depends-on): Add fpurge and unistd.
13399         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13400         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13401
13402         Fix --with-tests compilation on cygwin.
13403         * modules/argmatch-tests (Makefile.am): List gnulib library first
13404         in LDADD.
13405         * modules/argp-tests (Makefile.am): Likewise.
13406         * modules/array-list-tests (Makefile.am): Likewise.
13407         * modules/array-oset-tests (Makefile.am): Likewise.
13408         * modules/avltree-list-tests (Makefile.am): Likewise.
13409         * modules/avltree-oset-tests (Makefile.am): Likewise.
13410         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13411         * modules/carray-list-tests (Makefile.am): Likewise.
13412         * modules/dirname-tests (Makefile.am): Likewise.
13413         * modules/frexp-tests (Makefile.am): Likewise.
13414         * modules/isnanl-tests (Makefile.am): Likewise.
13415         * modules/linked-list-tests (Makefile.am): Likewise.
13416         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13417         * modules/lock-tests (Makefile.am): Likewise.
13418         * modules/rbtree-list-tests (Makefile.am): Likewise.
13419         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13420         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13421         * modules/tls-tests (Makefile.am): Likewise.
13422         * modules/tsearch-tests (Makefile.am): Likewise.
13423         * modules/xvasprintf-tests (Makefile.am): Likewise.
13424
13425         Fix fpurge for cygwin.
13426         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13427         value.
13428         * modules/fpurge-tests (Depends-on): Clean up trash.
13429
13430 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13431
13432         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13433
13434         * m4/autobuild.m4: Re-indent.
13435
13436 2007-04-13  Bruno Haible  <bruno@clisp.org>
13437
13438         * modules/fpurge-tests: New file.
13439         * tests/test-fpurge.c: New file.
13440
13441         * modules/fpurge: New file.
13442         * lib/fpurge.h: New file.
13443         * lib/fpurge.c: New file.
13444         * m4/fpurge.m4: New file.
13445
13446 2007-04-13  Bruno Haible  <bruno@clisp.org>
13447
13448         * modules/fbufmode-tests: New file.
13449         * tests/test-fbufmode.c: New file.
13450
13451         * modules/fbufmode: New file.
13452         * lib/fbufmode.h: New file.
13453         * lib/fbufmode.c: New file.
13454         * m4/fbufmode.m4: New file.
13455
13456 2007-04-13  Bruno Haible  <bruno@clisp.org>
13457
13458         * modules/fwritable-tests: New file.
13459         * tests/test-fwritable.c: New file.
13460
13461         * modules/fwritable: New file.
13462         * lib/fwritable.h: New file.
13463         * lib/fwritable.c: New file.
13464         * m4/fwritable.m4: New file.
13465
13466 2007-04-13  Bruno Haible  <bruno@clisp.org>
13467
13468         * modules/freadable-tests: New file.
13469         * tests/test-freadable.c: New file.
13470
13471         * modules/freadable: New file.
13472         * lib/freadable.h: New file.
13473         * lib/freadable.c: New file.
13474         * m4/freadable.m4: New file.
13475
13476 2007-04-13  Bruno Haible  <bruno@clisp.org>
13477
13478         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
13479         MOSTLYCLEANFILES.
13480
13481 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13482
13483         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
13484         gzip bootstrap.conf to avoid dragging in i18n machinery.
13485         (gnulib_tool_option): Use it.
13486
13487 2007-04-13  Bruno Haible  <bruno@clisp.org>
13488
13489         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
13490         %F directives.
13491         * tests/test-vasprintf-posix.c (test_function): Likewise.
13492         * tests/test-snprintf-posix.h (test_function): Likewise.
13493         * tests/test-sprintf-posix.h (test_function): Likewise.
13494         * tests/test-fprintf-posix.h (test_function): Likewise.
13495         * tests/test-printf-posix.h (test_function): Likewise.
13496         * tests/test-fprintf-posix.out: Likewise.
13497
13498 2007-04-13  Bruno Haible  <bruno@clisp.org>
13499
13500         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
13501         * modules/tls-tests (configure.ac): Likewise.
13502         Reported by Arto C. Nirkko <anirkko@insel.ch>.
13503
13504 2007-04-13  Bruno Haible  <bruno@clisp.org>
13505
13506         * lib/tls.c (glthread_tls_get): Fix return type.
13507         Patch by Arto C. Nirkko <anirkko@insel.ch>.
13508
13509 2007-04-12  Eric Blake  <ebb9@byu.net>
13510
13511         * modules/gettime (Depends-on): Remove gettime.
13512         Reported by Dmitry V. Levin.
13513
13514 2007-04-12  Bruno Haible  <bruno@clisp.org>
13515
13516         * modules/fflush (Include): Mention <stdio.h>.
13517         * modules/strtoimax (Include): Mention <inttypes.h>.
13518         * modules/strtoumax (Include): Likewise.
13519
13520 2007-04-12  Eric Blake  <ebb9@byu.net>
13521
13522         * .cvsignore: New file.
13523         * .gitignore: Likewise.
13524
13525 2007-04-12  Bruno Haible  <bruno@clisp.org>
13526
13527         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
13528         not before, since $(LDADD) often contains libgnu.a.
13529         * modules/striconv-tests (test_striconv_LDADD): Likewise.
13530         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
13531         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
13532         Needed on Cygwin.
13533
13534 2007-04-12  Eric Blake  <ebb9@byu.net>
13535
13536         Work around glibc's failure to flush stdin on fclose.
13537         * lib/closein.c (close_stdin): Flush stdin before closing.
13538
13539         Work around glibc's failure to reset seekable stdin on exit.
13540         * modules/closein: New module.
13541         * lib/closein.c: New file.
13542         * lib/closein.h: Likewise.
13543         * m4/closein.m4: Likewise.
13544         * MODULES.html.sh (File stream based Input/Output): Document it.
13545
13546 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13547
13548         * gnulib-tool: Rename generated 'autobuild' script to
13549         'do-autobuild' in --create-megatestdir output.
13550
13551         * doc/gnulib.texi (Build robot for gnulib): Fix.
13552
13553 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13554
13555         * modules/sysexits (Depends-on): Add absolute-header.
13556
13557 2007-04-12  Eric Blake  <ebb9@byu.net>
13558
13559         No need to preserve errno on success.
13560         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
13561         Reported by Bruno Haible.
13562
13563 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13564
13565         * MODULES.html.sh (Support for maintaining and releasing
13566         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
13567
13568 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13569
13570         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
13571
13572 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13573
13574         * modules/autobuild: New module.
13575
13576         * m4/autobuild.m4: New file.
13577
13578 2007-04-11  Bruno Haible  <bruno@clisp.org>
13579
13580         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
13581         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
13582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
13583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
13584         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13585         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13586         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13587         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13588         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13589         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
13591         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13592         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
13594         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13595         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
13597         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13598         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13599         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
13600         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13601         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
13603         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13604         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13605         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
13606         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13607         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13608         Reported by Eric Blake.
13609
13610 2007-04-11  Bruno Haible  <bruno@clisp.org>
13611
13612         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
13613
13614 2007-04-10  Bruno Haible  <bruno@clisp.org>
13615
13616         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
13617         for NaN and Infinity. Needed on FreeBSD 6.1.
13618         * tests/test-vasnprintf-posix.c (test_function): Undo last change
13619         regarding results for "%010a" of Infinity and NaN.
13620         * tests/test-vasprintf-posix.c (test_function): Likewise.
13621         * tests/test-snprintf-posix.h (test_function): Likewise.
13622         * tests/test-sprintf-posix.h (test_function): Likewise.
13623         * tests/test-fprintf-posix.h (test_function): Likewise.
13624         * tests/test-printf-posix.h (test_function): Likewise.
13625         * tests/test-fprintf-posix.out: Likewise.
13626
13627 2007-04-10  Bruno Haible  <bruno@clisp.org>
13628
13629         * modules/locale-tests: New file.
13630         * tests/test-locale.c: New file.
13631
13632         * modules/locale: New file.
13633         * lib/locale_.h: New file.
13634         * m4/locale_h.m4: New file.
13635
13636 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13637             Bruno Haible  <bruno@clisp.org>
13638
13639         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
13640         be determined, test for availability of the copysignf, copysign,
13641         copysignl functions.
13642         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
13643         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
13644         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
13645
13646 2007-04-09  Eric Blake  <ebb9@byu.net>
13647
13648         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
13649         * modules/stdio (Makefile.am): Support fflush.
13650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13651         * modules/fflush: New file.
13652         * lib/fflush.c: Likewise.
13653         * m4/fflush.m4: Likewise.
13654         * modules/fflush-tests: New test.
13655         * tests/test-fflush.c: Likewise.
13656         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
13657
13658 2007-04-06  Bruno Haible  <bruno@clisp.org>
13659
13660         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
13661         (VASNPRINTF): Use signbit for faster determination whether to print a
13662         minus sign.
13663         * modules/vasnprintf (Files): Remove lib/float+.h.
13664         * modules/fprintf-posix (Depends-on): Add signbit.
13665         * modules/snprintf-posix (Depends-on): Likewise.
13666         * modules/sprintf-posix (Depends-on): Likewise.
13667         * modules/vasnprintf-posix (Depends-on): Likewise.
13668         * modules/vasprintf-posix (Depends-on): Likewise.
13669         * modules/vfprintf-posix (Depends-on): Likewise.
13670         * modules/vsnprintf-posix (Depends-on): Likewise.
13671         * modules/vsprintf-posix (Depends-on): Likewise.
13672
13673 2007-04-06  Bruno Haible  <bruno@clisp.org>
13674
13675         * tests/test-frexp.c (main): Test also the sign bit of zero results.
13676         * tests/test-frexpl.c (main): Likewise.
13677         * tests/test-ldexpl.c (main): Likewise.
13678         * modules/frexp-tests (Depends-on): Add signbit.
13679         * modules/frexpl-tests (Depdends-on): Likewise.
13680         * modules/ldexpl-tests (Depdends-on): Likewise.
13681
13682 2007-04-06  Bruno Haible  <bruno@clisp.org>
13683
13684         * modules/signbit-tests: New file.
13685         * tests/test-signbit.c: New file.
13686
13687         * modules/signbit: New file.
13688         * lib/signbitf.c: New file.
13689         * lib/signbitd.c: New file.
13690         * lib/signbitl.c: New file.
13691         * m4/signbit.m4: New file.
13692         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
13693         (signbit): New macro.
13694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
13695         REPLACE_SIGNBIT.
13696         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
13697         REPLACE_FREXPL into math.h.
13698
13699 2007-04-06  Bruno Haible  <bruno@clisp.org>
13700
13701         * modules/isnanf-nolibm-tests: New file.
13702         * tests/test-isnanf.c: New file.
13703
13704         * modules/isnanf-nolibm: New file.
13705         * lib/isnanf.h: New file.
13706         * lib/isnanf.c: New file.
13707         * lib/isnan.c: Consider the USE_FLOAT macro.
13708         * m4/isnanf.m4: New file.
13709
13710 2007-04-06  Bruno Haible  <bruno@clisp.org>
13711
13712         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
13713         (Link): New section.
13714
13715         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
13716
13717 2007-04-06  Bruno Haible  <bruno@clisp.org>
13718
13719         Assume the 'long double' type.
13720         * m4/longdouble.m4: Remove file.
13721         * config/srclist.txt: Don't mention longdouble.m4.
13722         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13723         * lib/float+.h: Likewise.
13724         * lib/frexp.c: Likewise.
13725         * lib/printf-args.h: Likewise.
13726         * lib/printf-args.c: Likewise.
13727         * lib/printf-frexp.c: Likewise.
13728         * lib/printf-parse.c: Likewise.
13729         * lib/vasnprintf.c: Likewise.
13730         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13731         * m4/intl.m4: Likewise.
13732         * m4/isnanl.m4: Likewise.
13733         * m4/printf.m4: Likewise.
13734         * m4/printf-frexpl.m4: Likewise.
13735         * m4/vasnprintf.m4: Likewise.
13736         * modules/allocsa (Files): Remove m4/longdouble.m4.
13737         * modules/gettext (Files): Likewise.
13738         * modules/relocatable-prog-wrapper (Files): Likewise.
13739         * modules/vasnprintf (Files): Likewise.
13740         * modules/isnanl (Files): Likewise.
13741         (Include): Simplify.
13742         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
13743         (Include): Simplify.
13744         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
13745         (Include): Simplify.
13746         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
13747         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13748         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
13749         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13750         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13751         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13752         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
13753         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13754         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13755         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13756         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
13757         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13758         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
13759         * tests/test-isnanl.c: Likewise.
13760         * tests/test-snprintf-posix.h: Likewise.
13761         * tests/test-sprintf-posix.h: Likewise.
13762         * tests/test-vasnprintf-posix.c: Likewise.
13763         * tests/test-vasnprintf-posix2.c: Likewise.
13764         * tests/test-vasprintf-posix.c: Likewise.
13765
13766 2007-04-06  Bruno Haible  <bruno@clisp.org>
13767
13768         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
13769         * lib/math_.h [__DECC]: Include the overridden include file through
13770         #include_next, outside the double-inclusion guard.
13771         * lib/stdio_.h [__DECC]: Likewise.
13772         * lib/stdlib_.h [__DECC]: Likewise.
13773         * lib/string_.h [__DECC]: Likewise.
13774         * lib/time_.h [__DECC]: Likewise.
13775         * lib/wchar_.h [__DECC]: Likewise.
13776         * lib/wctype_.h [__DECC]: Likewise.
13777         * lib/inttypes_.h [__DECC]: Likewise.
13778         Reported by Albert Chin <china@thewrittenword.com> in
13779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
13780
13781 2007-04-04  Eric Blake  <ebb9@byu.net>
13782
13783         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
13784         1.5.x.
13785
13786 2007-04-04  Bruno Haible  <bruno@clisp.org>
13787
13788         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
13789         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
13790
13791 2007-04-04  Bruno Haible  <bruno@clisp.org>
13792
13793         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
13794         results for "%010a" of Infinity and NaN.
13795         * tests/test-vasprintf-posix.c (test_function): Likewise.
13796         * tests/test-snprintf-posix.h (test_function): Likewise.
13797         * tests/test-sprintf-posix.h (test_function): Likewise.
13798         * tests/test-fprintf-posix.h (test_function): Remove these tests.
13799         * tests/test-printf-posix.h (test_function): Likewise.
13800         * tests/test-fprintf-posix.out: Update.
13801         Needed for FreeBSD 6.1.
13802
13803 2007-04-04  Bruno Haible  <bruno@clisp.org>
13804
13805         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
13806         directly used by the gnulib modules nor by gnulib-tool.
13807
13808 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13809
13810         * DEPENDENCIES: Give overall description of version dependency
13811         desirability.  Use more-typical names for apps.
13812         Add shell, coreutils, diffutils, grep, tar, gzip.
13813
13814 2007-04-04  Simon Josefsson  <simon@josefsson.org>
13815
13816         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
13817
13818 2007-04-04  Karl Berry  <karl@gnu.org>
13819
13820         * MODULES.html.sh (func_module): missing '.
13821
13822 2007-04-03  Bruno Haible  <bruno@clisp.org>
13823
13824         * modules/argmatch-tests (Makefile.am): New variable
13825         test_argmatch_LDADD.
13826         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
13827         * modules/array-list-tests (Makefile.am): New variable
13828         test_array_list_LDADD.
13829         * modules/array-oset-tests (Makefile.am): New variable
13830         test_array_oset_LDADD.
13831         * modules/avltree-list-tests (Makefile.am): New variable
13832         test_avltree_list_LDADD.
13833         * modules/avltree-oset-tests (Makefile.am): New variable
13834         test_avltree_oset_LDADD.
13835         * modules/avltreehash-list-tests (Makefile.am): New variable
13836         test_avltreehash_list_LDADD.
13837         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
13838         test_canonicalize_lgpl_LDADD.
13839         * modules/carray-list-tests (Makefile.am): New variable
13840         test_carray_list_LDADD.
13841         * modules/dirname-tests (Makefile.am): New variable
13842         test_dirname_LDADD.
13843         * modules/linked-list-tests (Makefile.am): New variable
13844         test_linked_list_LDADD.
13845         * modules/linkedhash-list-tests (Makefile.am): New variable
13846         test_linkedhash_list_LDADD.
13847         * modules/rbtree-list-tests (Makefile.am): New variable
13848         test_rbtree_list_LDADD.
13849         * modules/rbtree-oset-tests (Makefile.am): New variable
13850         test_rbtree_oset_LDADD.
13851         * modules/rbtreehash-list-tests (Makefile.am): New variable
13852         test_rbtreehash_list_LDADD.
13853         * modules/xvasprintf-tests (Makefile.am): New variable
13854         test_xvasprintf_LDADD.
13855         Reported by Eric Blake.
13856
13857 2007-04-03  Eric Blake  <ebb9@byu.net>
13858
13859         * DEPENDENCIES: Weaken m4 requirements.
13860
13861 2007-04-03  Bruno Haible  <bruno@clisp.org>
13862
13863         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
13864         * modules/isnanl-tests (configure.ac): Likewise.
13865
13866 2007-04-03  Ben Pfaff  <blp@gnu.org>
13867
13868         * modules/iconv_open: Add $(srcdir)/ to source directory
13869         references in Makefile fragments that call gperf, to fix VPATH
13870         builds.
13871
13872 2007-04-03  Bruno Haible  <bruno@clisp.org>
13873
13874         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
13875         * lib/ldexpl.c: Undo last change.
13876
13877 2007-04-03  Bruno Haible  <bruno@clisp.org>
13878
13879         * modules/printf-frexpl (Depends-on): Undo last change.
13880         (Files): Add m4/ldexpl.m4.
13881
13882 2007-04-03  Bruno Haible  <bruno@clisp.org>
13883
13884         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
13885         * modules/isnanl (Link): New section.
13886
13887         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
13888         * modules/frexp (Link): New section.
13889
13890         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
13891         * modules/frexpl (Link): New section.
13892
13893         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
13894         * modules/ldexpl (Link): New section.
13895
13896 2007-04-03  Bruno Haible  <bruno@clisp.org>
13897
13898         * modules/TEMPLATE-EXTENDED: New file.
13899         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
13900
13901 2007-04-03  Bruno Haible  <bruno@clisp.org>
13902
13903         * DEPENDENCIES: New file.
13904         Suggested by Simon Josefsson.
13905
13906 2007-04-03  Bruno Haible  <bruno@clisp.org>
13907
13908         * doc/gnulib.texi: Escape @.
13909
13910 2007-04-03  James Youngman  <jay@gnu.org>
13911         and Paul Eggert  <eggert@cs.ucla.edu>
13912
13913         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
13914         birthtime on all systems that have birthtime, not just those which
13915         use st_birthtimensec rather than st_birthtim.  Putting zero in
13916         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
13917         that the birth time is not available for files on an NFS mount.
13918
13919 2007-04-03  Simon Josefsson  <simon@josefsson.org>
13920
13921         * modules/memxor: Move back from crypto/, suggested by Bruno.
13922         * modules/crypto/hmac-sha1: Fix memxor dependency.
13923
13924         * modules/crypto/gc: Moved from ../.
13925
13926 2007-04-02  Eric Blake  <ebb9@byu.net>
13927
13928         * lib/ldexpl.c (includes): Avoid libm.
13929
13930         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
13931
13932 2007-04-02  Bruno Haible  <bruno@clisp.org>
13933
13934         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
13935         on IRIX.
13936
13937 2007-04-02  Bruno Haible  <bruno@clisp.org>
13938
13939         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
13940         x86 or x86_64 platforms running MacOS X.
13941         Reported by Ryan Schmidt <@ryandesign.com>.
13942
13943 2007-04-02  Bruno Haible  <bruno@clisp.org>
13944
13945         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
13946         i386.
13947
13948 2007-04-01  Simon Josefsson  <simon@josefsson.org>
13949
13950         * modules/crypto/arcfour: Moved from ../.
13951         * modules/crypto/arcfour-tests: Moved from ../.
13952         * modules/crypto/arctwo: Moved from ../.
13953         * modules/crypto/arctwo-tests: Moved from ../.
13954         * modules/crypto/des: Moved from ../.
13955         * modules/crypto/des-tests: Moved from ../.
13956         * modules/crypto/gc-arcfour: Moved from ../.
13957         * modules/crypto/gc-arcfour-tests: Moved from ../.
13958         * modules/crypto/gc-arctwo: Moved from ../.
13959         * modules/crypto/gc-arctwo-tests: Moved from ../.
13960         * modules/crypto/gc-des: Moved from ../.
13961         * modules/crypto/gc-des-tests: Moved from ../.
13962         * modules/crypto/gc-hmac-md5: Moved from ../.
13963         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
13964         * modules/crypto/gc-hmac-sha1: Moved from ../.
13965         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
13966         * modules/crypto/gc-md2: Moved from ../.
13967         * modules/crypto/gc-md2-tests: Moved from ../.
13968         * modules/crypto/gc-md4: Moved from ../.
13969         * modules/crypto/gc-md4-tests: Moved from ../.
13970         * modules/crypto/gc-md5: Moved from ../.
13971         * modules/crypto/gc-md5-tests: Moved from ../.
13972         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
13973         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
13974         * modules/crypto/gc-random: Moved from ../.
13975         * modules/crypto/gc-rijndael: Moved from ../.
13976         * modules/crypto/gc-rijndael-tests: Moved from ../.
13977         * modules/crypto/gc-sha1: Moved from ../.
13978         * modules/crypto/gc-sha1-tests: Moved from ../.
13979         * modules/crypto/gc-tests: Moved from ../.
13980         * modules/crypto/hmac-md5: Moved from ../.
13981         * modules/crypto/hmac-md5-tests: Moved from ../.
13982         * modules/crypto/hmac-sha1: Moved from ../.
13983         * modules/crypto/hmac-sha1-tests: Moved from ../.
13984         * modules/crypto/md2: Moved from ../.
13985         * modules/crypto/md2-tests: Moved from ../.
13986         * modules/crypto/md4: Moved from ../.
13987         * modules/crypto/md4-tests: Moved from ../.
13988         * modules/crypto/md5: Moved from ../.
13989         * modules/crypto/md5-tests: Moved from ../.
13990         * modules/crypto/memxor: Moved from ../.
13991         * modules/crypto/rijndael: Moved from ../.
13992         * modules/crypto/rijndael-tests: Moved from ../.
13993         * modules/crypto/sha1: Moved from ../.
13994
13995 2007-03-30  James Youngman  <jay@gnu.org>
13996
13997         * tests/test-stat-time.c (prepare_test): use chmod() rather than
13998         rename() to change the ctime of a file (because ctime is unaffected
13999         by rename on jfs2 on AIX 5.1).
14000         (main): Start by doing cleanup, in case a previous run failed leaving
14001         test files behind.
14002
14003 2007-03-31  Bruno Haible  <bruno@clisp.org>
14004
14005         Support old proprietary implementations of iconv.
14006         * modules/iconv_open: New file.
14007         * lib/iconv_.h: New file.
14008         * m4/iconv_h.m4: New file.
14009         * lib/iconv_open.c: New file.
14010         * lib/iconv_open-aix.gperf: New file.
14011         * lib/iconv_open-hpux.gperf: New file.
14012         * lib/iconv_open-irix.gperf: New file.
14013         * lib/iconv_open-osf.gperf: New file.
14014         * m4/iconv_open.m4: New file.
14015         * modules/linebreak (Depends-on): Add iconv_open.
14016         * modules/striconv (Depends-on): Likewise.
14017         * modules/striconveh (Depends-on): Likewise.
14018         * modules/unicodeio (Depends-on): Likewise.
14019         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
14020         (iconv_t)(-1).
14021         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
14022         conversion if cd is (iconv_t)(-1).
14023         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
14024         is not possible.
14025
14026 2007-03-31  Bruno Haible  <bruno@clisp.org>
14027
14028         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14029         work on Solaris either. Protect also second use of "autodetect_jp".
14030
14031 2007-03-31  Bruno Haible  <bruno@clisp.org>
14032
14033         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
14034         the function is not present.
14035
14036 2007-03-31  Bruno Haible  <bruno@clisp.org>
14037
14038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
14039         the function is not present.
14040
14041 2007-03-31  Bruno Haible  <bruno@clisp.org>
14042
14043         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
14044         a bug in HP-UX iconv_open().
14045
14046 2007-03-31  Bruno Haible  <bruno@clisp.org>
14047
14048         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
14049         (Mathematics <math.h>): New section, add fpieee.
14050         (Input/output <stdio.h>): Add fseterr.
14051         (Mathematics <math.h>): New section, add printf-frexp.
14052         (Container data structures): Add sublist.
14053         (Core language properties): Add fpucw, inline.
14054         (Functions for greatest-width integer types <inttypes.h>): Add
14055         imaxabs, imaxdiv, inttypes.
14056         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
14057         isnanl-nolibm, ldexp.
14058         (Mathematics <math.h>): New section, add printf-frexpl.
14059         (Support for systems lacking POSIX:2001): Add fprintf-posix,
14060         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
14061         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
14062         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
14063         (Unicode string functions): Add unistr/u*-mbtoucr.
14064         (Java): Add javacomp-script, javaexec-script.
14065         (C#): Add csharpcomp-script, csharpexec-script.
14066         (Support for building libraries and executables): Add havelib,
14067         relocatable-*.
14068         (Support for maintaining and releasing projects): Renamed from
14069         'Support for maintaining and release projects'. Add announce-gen.
14070
14071 2007-03-31  Bruno Haible  <bruno@clisp.org>
14072
14073         * README: Talk primarily about git.
14074         (git and CVS): Renamed from CVS.
14075         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
14076         gnulib is available through git.
14077         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
14078
14079 2007-03-30  Bruno Haible  <bruno@clisp.org>
14080
14081         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
14082         * lib/poll_.h: Likewise.
14083         * lib/stat_.h: Likewise.
14084         * lib/sys_time_.h: Likewise.
14085         * lib/sysexit_.h: Likewise.
14086         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
14087         * lib/stdbool_.h: Likewise.
14088         * lib/byteswap_.h: Add double-inclusion guard.
14089
14090 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
14091
14092         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
14093
14094 2007-03-30  Karl Berry  <karl@gnu.org>
14095
14096         * config/srclist-update: double space after USA in the license
14097         substitution, since that's how it's usually (?) written.
14098
14099 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14100
14101         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
14102         reported by Bruno Haible.
14103
14104 2007-03-29  Bruno Haible  <bruno@clisp.org>
14105
14106         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
14107         a bug in AIX iconv().
14108
14109 2007-03-29  Bruno Haible  <bruno@clisp.org>
14110
14111         * modules/ldexpl-tests: New file.
14112         * tests/test-ldexpl.c: New file.
14113
14114 2007-03-29  Bruno Haible  <bruno@clisp.org>
14115
14116         * lib/ldexpl.c: Include fpucw.h.
14117         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
14118         multiplication.
14119         * modules/ldexpl (Depends-on): Add fpucw.
14120
14121 2007-03-29  Bruno Haible  <bruno@clisp.org>
14122
14123         * modules/ldexpl: New file.
14124         * m4/ldexpl.m4: New file.
14125         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
14126         set.
14127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
14128         REPLACE_LDEXPL.
14129         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
14130         REPLACE_LDEXPL.
14131         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14132         gl_FUNC_LDEXPL_WORKS.
14133         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
14134         * modules/mathl (Files): Remove lib/ldexpl.c.
14135         (Depends-on): Add ldexpl.
14136
14137 2007-03-29  Bruno Haible  <bruno@clisp.org>
14138
14139         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
14140
14141 2007-03-29  Bruno Haible  <bruno@clisp.org>
14142
14143         * tests/test-striconveh.c (main): Don't assume that a direct conversion
14144         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
14145         and possibly also HP-UX.
14146         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14147         work on AIX, IRIX, HP-UX, OSF/1.
14148         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14149         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14150         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14151         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14152         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14153         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14154
14155 2007-03-29  Bruno Haible  <bruno@clisp.org>
14156
14157         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
14158
14159 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14160
14161         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
14162         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
14163
14164 2007-03-29  Eric Blake  <ebb9@byu.net>
14165
14166         * lib/acl-internal.h: Remove redundant include.
14167         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
14168         Cygwin when a file is locked.
14169
14170 2007-03-29  Bruno Haible  <bruno@clisp.org>
14171
14172         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
14173         file.
14174         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
14175
14176 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14177
14178         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
14179         try to remove a parent directory if the child couldn't be removed
14180         (except for the first rmdir, which could fail because the child
14181         doesn't exist).  Problem reported by Jeff Blaine in
14182         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
14183
14184 2007-03-28  Bruno Haible  <bruno@clisp.org>
14185
14186         * lib/striconveh.c (utf8conv_carefully): New function.
14187         (mem_cd_iconveh_internal): Invoke it.
14188
14189 2007-03-28  Bruno Haible  <bruno@clisp.org>
14190
14191         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
14192         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
14193         input.
14194         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
14195         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
14196         unistr/u8-uctomb.
14197
14198 2007-03-28  Bruno Haible  <bruno@clisp.org>
14199
14200         * modules/unistr/u8-mbtoucr: New file.
14201         * lib/unistr/u8-mbtoucr.c: New file.
14202         * modules/unistr/u16-mbtoucr: New file.
14203         * lib/unistr/u16-mbtoucr.c: New file.
14204         * modules/unistr/u16-mbtoucr: New file.
14205         * lib/unistr/u16-mbtoucr.c: New file.
14206         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
14207
14208 2007-03-27  Simon Josefsson  <simon@josefsson.org>
14209             Bruno Haible  <bruno@clisp.org>
14210
14211         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
14212         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
14213         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
14214
14215         * m4/stdio_h.m4: Add stubs for vasprintf too.
14216
14217         * modules/stdio: Support vasprintf in sed command.
14218
14219         * modules/vasprintf: Depend on stdio for prototypes.  Remove
14220         vasprintf.h.  Add stdio module indicator.
14221
14222         * lib/stdio_.h: Declare asprintf and vasprintf, based on
14223         vasprintf.h.
14224
14225         * lib/vasprintf.h: File removed.
14226
14227         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
14228         * lib/vasprintf.c: Ditto.
14229         * lib/xvasprintf.c: Ditto.
14230         * tests/test-vasprintf-posix.c: Ditto.
14231         * tests/test-vasprintf.c: Ditto.
14232
14233 2007-03-27  Bruno Haible  <bruno@clisp.org>
14234
14235         Make vasnprintf multithread-safe.
14236         * lib/vasnprintf.c (decimal_point_char): New function.
14237         (VASNPRINTF): Use it.
14238         Suggested by Simon Josefsson.
14239
14240 2007-03-27  Eric Blake  <ebb9@byu.net>
14241
14242         Support sub-second birthtime on cygwin.
14243         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
14244         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
14245         (get_stat_birthtime): Also work with st_birthtim.
14246
14247 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14248
14249         * lib/stat-time.h (USE_BIRTHTIME): Remove.
14250         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
14251         (get_stat_birthtime_ns): Do not try to use "spare" fields.
14252         (get_stat_birthtime_ns): Simplify compile-time tests.
14253         (get_stat_birthtime): Change the API to look like
14254         get_stat_mtime etc., except return a negative tv_nsec on error.
14255         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14256         Don't check for "spare" fields.
14257         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
14258         or for struct stat.st_birthtime, as these tests aren't used.
14259         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
14260
14261 2007-03-27  Bruno Haible  <bruno@clisp.org>
14262
14263         * lib/stat-time.h: Include <sys/stat.h>.
14264
14265 2007-03-27  James Youngman  <jay@gnu.org>
14266
14267         * lib/stat-time.h (get_stat_birthtime): New function for
14268           retrieving st_birthtime as provided by UFS2 (hence *BSD).
14269         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
14270           and its variants.
14271         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
14272         * modules/stat-time-test: New file.
14273         * tests/test-stat-time.c: New test, devised by Bruno Haible.
14274
14275 2007-03-26  Bruno Haible  <bruno@clisp.org>
14276
14277         Better support of signalling NaNs.
14278         * lib/atanl.c: Include isnanl.h.
14279         (atanl): Perform test for NaN at the beginning of the function and
14280         through a call to isnanl.
14281         * lib/cosl.c: Include isnanl.h.
14282         (cosl): Perform test for NaN at the beginning of the function and
14283         through a call to isnanl.
14284         * lib/ldexpl.c: Include isnanl.h.
14285         (ldexpl): Perform test for NaN through a call to isnanl.
14286         * lib/logl.c: Include isnanl.h.
14287         (logl): Perform test for NaN at the beginning of the function and
14288         through a call to isnanl.
14289         * lib/sinl.c: Include isnanl.h.
14290         (sinl): Perform test for NaN at the beginning of the function and
14291         through a call to isnanl.
14292         * lib/sqrtl.c: Include isnanl.h.
14293         (sqrtl): Perform test for NaN at the beginning of the function and
14294         through a call to isnanl.
14295         * lib/tanl.c: Include isnanl.h.
14296         (tanl): Perform test for NaN at the beginning of the function and
14297         through a call to isnanl.
14298         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
14299         * modules/mathl (Depends-on): Add isnanl.
14300
14301 2007-03-26  Eric Blake  <ebb9@byu.net>
14302
14303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
14304         regression in logic sense of previous patch.
14305
14306 2007-03-26  Bruno Haible  <bruno@clisp.org>
14307
14308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14309         unportable shell command "if ! ...".
14310         Reported by Ralf Wildenhues.
14311
14312 2007-03-25  Bruno Haible  <bruno@clisp.org>
14313
14314         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14315         <sysexits.h> file, and only add EX_CONFIG.
14316         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14317         absolute file name and whether it is sufficient. Substitute also
14318         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14319         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14320         ABSOLUTE_SYSEXITS_H into sysexits.h.
14321
14322 2007-03-25  Bruno Haible  <bruno@clisp.org>
14323
14324         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14325         hints is NULL.
14326
14327 2007-03-25  Bruno Haible  <bruno@clisp.org>
14328
14329         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14330         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14331
14332 2007-03-25  Bruno Haible  <bruno@clisp.org>
14333
14334         * lib/vasnprintf.c: Include langinfo.h.
14335         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14336         multithread-safe.
14337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14339         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14340         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14343         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14344         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14346         Reported by Simon Josefsson.
14347
14348 2007-03-25  Bruno Haible  <bruno@clisp.org>
14349
14350         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14351         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14352         * modules/vasnprintf (Depends-on): Add stdint.
14353
14354 2007-03-25  Bruno Haible  <bruno@clisp.org>
14355
14356         * modules/fpieee: New file.
14357         * m4/fpieee.m4: New file.
14358         * modules/isnan-nolibm (Depends-on): Add fpieee.
14359         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14360         * modules/isnanl (Depends-on): Add fpieee.
14361
14362 2007-03-25  Bruno Haible  <bruno@clisp.org>
14363
14364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14365
14366 2007-03-25  Bruno Haible  <bruno@clisp.org>
14367
14368         Avoid test failures on IRIX 6.5.
14369         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14370         (main): Use it.
14371         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14372         macros.
14373         (main): Use them.
14374
14375 2007-03-25  Bruno Haible  <bruno@clisp.org>
14376
14377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14378         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14379         exists but doesn't work.
14380         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14381         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14383         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14384
14385 2007-03-25  Bruno Haible  <bruno@clisp.org>
14386
14387         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14388         returns inf. Needed on IRIX 6.5.
14389
14390 2007-03-25  Bruno Haible  <bruno@clisp.org>
14391
14392         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14393         (main): Use isnanl instead of x != x idiom.
14394         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14395
14396         * tests/test-frexp.c: Include isnan.h.
14397         (main): Use isnan instead of x != x idiom.
14398         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14399
14400 2007-03-25  Bruno Haible  <bruno@clisp.org>
14401
14402         * tests/test-frexp.c (NaN): New function/macro.
14403         (main): Use it instead of 0.0 / 0.0.
14404         * tests/test-isnan.c (NaN): New function/macro.
14405         (main): Use it instead of 0.0 / 0.0.
14406         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14407         (test_function): Use it instead of 0.0 / 0.0.
14408         * tests/test-vasprintf-posix.c (NaN): New function/macro.
14409         (test_function): Use it instead of 0.0 / 0.0.
14410         * tests/test-snprintf-posix.h (NaN): New function/macro.
14411         (test_function): Use it instead of 0.0 / 0.0.
14412         * tests/test-sprintf-posix.h (NaN): New function/macro.
14413         (test_function): Use it instead of 0.0 / 0.0.
14414         * tests/test-fprintf-posix.h (NaN): New function/macro.
14415         (test_function): Use it instead of 0.0 / 0.0.
14416         * tests/test-printf-posix.h (NaN): New function/macro.
14417         (test_function): Use it instead of 0.0 / 0.0.
14418
14419         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
14420
14421 2007-03-25  Bruno Haible  <bruno@clisp.org>
14422
14423         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
14424
14425 2007-03-25  Bruno Haible  <bruno@clisp.org>
14426
14427         * lib/regexec.c (merge_state_with_log): Make static.
14428
14429 2007-03-25  Bruno Haible  <bruno@clisp.org>
14430
14431         * lib/trigl.c (kernel_rem_pio2): Make static.
14432
14433 2007-03-25  Bruno Haible  <bruno@clisp.org>
14434
14435         * lib/sincosl.c (sincosl_table): Make static.
14436
14437 2007-03-25  Bruno Haible  <bruno@clisp.org>
14438
14439         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14440         if the compiler does not support C99.
14441
14442 2007-03-25  Bruno Haible  <bruno@clisp.org>
14443
14444         * modules/time (Makefile.am): Ensure all rule action lines start with a
14445         tab.
14446
14447 2007-03-24  Bruno Haible  <bruno@clisp.org>
14448
14449         * modules/tsearch-tests: New file.
14450         * tests/test-tsearch.sh: New file.
14451         * tests/test-tsearch.c: New file, mostly copied from glibc.
14452
14453         * modules/search-tests: New file.
14454         * tests/test-search.c: New file.
14455
14456         * modules/search: New file.
14457         * lib/search_.h: New file, incorporating lib/tsearch.h.
14458         * m4/search_h.m4: New file.
14459         * lib/tsearch.h: Remove file.
14460         * lib/tsearch.c: Include search.h instead of tsearch.h.
14461         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
14462         HAVE_TSEARCH.
14463         * modules/tsearch (Files): Remove lib/tsearch.h.
14464         (Depends-on): Add search.
14465         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
14466         (Include): Change tsearch.h into search.h.
14467
14468 2007-03-24  Bruno Haible  <bruno@clisp.org>
14469
14470         * modules/fpucw: New file.
14471         * lib/fpucw.h: New file.
14472         * lib/frexp.c: Include fpucw.h.
14473         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14474         (FUNC): Use them.
14475         * lib/printf-frexp.c: Include fpucw.h.
14476         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14477         (FUNC): Use them.
14478         * lib/vasnprintf.c: Include fpucw.h.
14479         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
14480         'long double' calculations.
14481         * tests/test-frexpl.c: Include fpucw.h.
14482         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14483         * tests/test-printf-frexpl.c: Include fpucw.h.
14484         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14485         * modules/frexpl (Depends-on): Add fpucw.
14486         * modules/printf-frexpl (Depends-on): Likewise.
14487         * modules/fprintf-posix (Depends-on): Likewise.
14488         * modules/snprintf-posix (Depends-on): Likewise.
14489         * modules/sprintf-posix (Depends-on): Likewise.
14490         * modules/vasnprintf-posix (Depends-on): Likewise.
14491         * modules/vasprintf-posix (Depends-on): Likewise.
14492         * modules/vfprintf-posix (Depends-on): Likewise.
14493         * modules/vsnprintf-posix (Depends-on): Likewise.
14494         * modules/vsprintf-posix (Depends-on): Likewise.
14495         * modules/frexpl-tests (Depends-on): Likewise.
14496         * modules/printf-frexpl-tests (Depends-on): Likewise.
14497
14498 2007-03-24  Bruno Haible  <bruno@clisp.org>
14499
14500         * lib/float+.h: New file.
14501         * lib/isnan.c: Include float+.h.
14502         (SIZE): New macro.
14503         (FUNC): Compare only SIZE bytes of the value.
14504         * lib/vasnprintf.c: Include float+.h.
14505         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
14506         SIZEOF_LDBL or SIZEOF_DBL bytes.
14507         * modules/isnan-nolibm (Files): Add lib/float+.h.
14508         * modules/isnanl-nolibm (Files): Add lib/float+.h.
14509         * modules/isnanl (Files): Add lib/float+.h.
14510         * modules/vasnprintf (Files): Add lib/float+.h.
14511
14512 2007-03-24  Bruno Haible  <bruno@clisp.org>
14513
14514         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
14515         include isnanl-nolibm.h.
14516
14517 2007-03-24  Bruno Haible  <bruno@clisp.org>
14518
14519         * tests/test-read-file.c (main): Don't produce spurious output for
14520         expected situations. Make the test fail if it encountered unexpected
14521         results.
14522
14523 2007-03-24  Bruno Haible  <bruno@clisp.org>
14524
14525         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
14526         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
14527
14528 2007-03-24  Bruno Haible  <bruno@clisp.org>
14529
14530         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
14531
14532 2007-03-24  Bruno Haible  <bruno@clisp.org>
14533
14534         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
14535         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
14536
14537         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
14538         * modules/utf8-ucs4: Turn into a symbolic link to module
14539         unistr/u8-mbtouc.
14540
14541         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
14542         utf8-ucs4-unsafe.
14543         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
14544         unistr/u8-mbtouc-unsafe.
14545
14546         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
14547         * modules/utf16-ucs4: Turn into a symbolic link to module
14548         unistr/u16-mbtouc.
14549
14550         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
14551         utf16-ucs4-unsafe.
14552         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
14553         unistr/u16-mbtouc-unsafe.
14554
14555         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
14556         * modules/ucs4-utf8: Turn into a symbolic link to module
14557         unistr/u8-ubtomb.
14558
14559         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
14560         * modules/ucs4-utf16: Turn into a symbolic link to module
14561         unistr/u16-ubtomb.
14562
14563 2007-03-24  Bruno Haible  <bruno@clisp.org>
14564
14565         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
14566         Enable the function only if HAVE_INLINE.
14567         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
14568         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14569         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
14570         Enable the function only if HAVE_INLINE.
14571         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
14572         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14573         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
14574         Enable the function only if HAVE_INLINE.
14575         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
14576         Enable the function only if HAVE_INLINE.
14577         * modules/utf8-ucs4: Update.
14578         * modules/utf8-ucs4-unsafe: Update.
14579         * modules/utf16-ucs4: Update.
14580         * modules/utf16-ucs4-unsafe: Update.
14581         * modules/ucs4-utf8: Update.
14582         * modules/ucs4-utf16: Update.
14583
14584 2007-03-24  Bruno Haible  <bruno@clisp.org>
14585
14586         * lib/utf8-ucs4.h: Remove file.
14587         * lib/utf8-ucs4-unsafe.h: Remove file.
14588         * lib/utf16-ucs4.h: Remove file.
14589         * lib/utf16-ucs4-unsafe.h: Remove file.
14590         * lib/ucs4-utf8.h: Remove file.
14591         * lib/ucs4-utf16.h: Remove file.
14592         * lib/unistr.h: Include their previous contents.
14593         * m4/utf-ucs4.m4: Remove file.
14594         * m4/ucs4-utf.m4: Remove file.
14595         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
14596         (Depends-on): Add unistr/base.
14597         (configure.ac): Remove gl_UTF_UCS4.
14598         (Makefile.am): Update.
14599         (Include): Change to unistr.h.
14600         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
14601         (Depends-on): Add unistr/base.
14602         (configure.ac): Remove gl_UTF_UCS4.
14603         (Makefile.am): Update.
14604         (Include): Change to unistr.h.
14605         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
14606         (Depends-on): Add unistr/base.
14607         (configure.ac): Remove gl_UTF_UCS4.
14608         (Makefile.am): Update.
14609         (Include): Change to unistr.h.
14610         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
14611         (Depends-on): Add unistr/base.
14612         (configure.ac): Remove gl_UTF_UCS4.
14613         (Makefile.am): Update.
14614         (Include): Change to unistr.h.
14615         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
14616         (Depends-on): Add unistr/base.
14617         (configure.ac): Remove gl_UCS4_UTF.
14618         (Makefile.am): Update.
14619         (Include): Change to unistr.h.
14620         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
14621         (Depends-on): Add unistr/base.
14622         (configure.ac): Remove gl_UCS4_UTF.
14623         (Makefile.am): Update.
14624         (Include): Change to unistr.h.
14625         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
14626         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
14627         utf8-ucs4-unsafe.h.
14628         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
14629         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
14630         utf16-ucs4-unsafe.h.
14631         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
14632         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
14633         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
14634         * lib/unistr/u8-strchr.c: Likewise.
14635         * lib/unistr/u8-strrchr.c: Likewise.
14636         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
14637         * lib/unistr/u16-strchr.c: Likewise.
14638         * lib/unistr/u16-strrchr.c: Likewise.
14639         * lib/striconveh.c: Update.
14640         * lib/linebreak.c: Update.
14641
14642 2007-03-24  Bruno Haible  <bruno@clisp.org>
14643
14644         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
14645         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
14646
14647 2007-03-22  Bruno Haible  <bruno@clisp.org>
14648
14649         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
14650
14651 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14652
14653         * MODULES.html.sh (File system functions): New module write-any-file.
14654         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
14655         * m4/write-any-file.m4: New files.
14656
14657 2007-03-23  Eric Blake  <ebb9@byu.net>
14658
14659         * gnulib-tool: Rearrange space-tab sequences, since some editors
14660         like to eat them.
14661
14662 2007-03-23  Eric Blake  <ebb9@byu.net>
14663
14664         * lib/version-etc.c (version_etc_va): Update license wording to
14665         be more concise.  Recommended by Richard Stallman.
14666
14667 2007-03-22  Bruno Haible  <bruno@clisp.org>
14668
14669         * lib/poll.c (MSG_PEEK): New fallback definition.
14670
14671 2007-03-22  Bruno Haible  <bruno@clisp.org>
14672
14673         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
14674         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
14675         (main): Update.
14676         Fixes a compilation error on BeOS.
14677
14678 2007-03-22  Bruno Haible  <bruno@clisp.org>
14679
14680         * modules/frexpl-tests: New file.
14681         * tests/test-frexpl.c: New file.
14682
14683         * modules/frexpl: New file.
14684         * m4/frexpl.m4: New file.
14685         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
14686         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
14687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
14688         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
14689         (Depends-on): Add frexpl. Remove isnanl-nolibm.
14690         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
14691
14692 2007-03-22  Bruno Haible  <bruno@clisp.org>
14693
14694         * lib/frexpl.c: Share code with lib/frexp.c.
14695         * modules/mathl (Files): Add lib/frexp.c.
14696         (Depends-on): Add isnanl-nolibm.
14697
14698 2007-03-22  Bruno Haible  <bruno@clisp.org>
14699
14700         * modules/printf-frexp (Files): Add m4/frexp.m4.
14701         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
14702         only if the found frexp function actually works.
14703
14704 2007-03-22  Bruno Haible  <bruno@clisp.org>
14705
14706         * lib/frexp.c: Remove older implementation that uses divisions.
14707
14708 2007-03-21  Bruno Haible  <bruno@clisp.org>
14709
14710         * modules/frexp-tests: New file.
14711         * tests/test-frexp.c: New file.
14712
14713         * modules/frexp: New file.
14714         * lib/frexp.c: New file.
14715         * m4/frexp.m4: New file.
14716         * lib/math_.h (frexp): New declaration.
14717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
14718         REPLACE_FREXP.
14719         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14720
14721 2007-03-21  Bruno Haible  <bruno@clisp.org>
14722
14723         * modules/isnanl-tests: New file.
14724         * tests/test-isnanl.c: New file.
14725
14726         * modules/isnanl: New file.
14727         * lib/isnanl.h: New file.
14728         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14729         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14730         gl_FUNC_ISNANL_WORKS.
14731         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14732         New macros.
14733
14734 2007-03-21  Bruno Haible  <bruno@clisp.org>
14735
14736         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
14737         lib/isnanl.h.
14738         (Include): Update.
14739         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
14740         * lib/vasnprintf.c: Update.
14741         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
14742         tests/test-isnanl.h, remove tests/test-isnanl.c.
14743         (Makefile.am): Update.
14744         * tests/test-isnanl-nolibm.c: New file.
14745         * tests/test-isnanl.h: New file.
14746         * tests/test-isnanl.c: Remove file.
14747
14748 2007-03-21  Jim Meyering  <jim@meyering.net>
14749
14750         When trying to open ".", treat ESTALE like EACCES.
14751         * lib/savewd.c (savewd_save): Resort to forking not just upon
14752         failure with EACCES, but also when errno is ESTALE.
14753
14754 2007-03-20  Bruno Haible  <bruno@clisp.org>
14755
14756         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
14757         Needed on AIX 5.1. Reported by Matthew Woehlke.
14758
14759 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14760
14761         Suggestions by Bruno Haible:
14762         * lib/acl-internal.h: Include "gettext.h" rather than rolling
14763         our own.
14764         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
14765         * modules/acl (Depends-on): Add gettext.
14766
14767 2007-03-19  Bruno Haible  <bruno@clisp.org>
14768
14769         * modules/iconvme: Remove file.
14770         * lib/iconvme.h: Remove file.
14771         * lib/iconvme.c: Remove file.
14772         * m4/iconvme.m4: Remove file.
14773
14774 2007-03-19  Bruno Haible  <bruno@clisp.org>
14775
14776         * doc/relocatable-maint.texi: Break long shell script line.
14777         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14778
14779 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14780
14781         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
14782         handle file_has_acl.
14783         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
14784         * lib/acl.c: Move header inclusions and related macro defns into
14785         lib/acl-internal.h.
14786         (S_ISLNK): Remove defn, since that's now done for us.
14787         (file_has_acl): Move to lib/file-has-acl.c.
14788         Call acl_trivial if available.  This is the crucial part of the fix.
14789         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
14790         shared within the library.  Rewrite a bit, partly to make it compatible
14791         with the GNU coding style.
14792         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
14793         Remove unnecessary double-quotes.
14794         Don't test for acl_to_text; the build will catch that.
14795         Replace acl_entries if it doesn't exist and it is needed.
14796         Check for -lsec and acl_trivial (as used on Solaris 10).
14797         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
14798         lib/file-has-acl.c.
14799         (Depends-on): Add sys_stat, for S_ISLNK.
14800
14801 2007-03-19  Ben Pfaff  <blp@gnu.org>
14802
14803         * doc/gnulib.texi: Fix typos.
14804         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14805
14806 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14807
14808         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
14809         If size is zero here, buf must be zero.
14810
14811 2007-03-19  Simon Josefsson  <simon@josefsson.org>
14812
14813         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
14814         <bruno@clisp.org>.
14815
14816 2007-03-18  Bruno Haible  <bruno@clisp.org>
14817
14818         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
14819         Suggested by Eric Blake.
14820
14821 2007-03-18  Ben Pfaff  <blp@gnu.org>
14822
14823         * doc/relocatable.texi: Recommend using as prefix a directory
14824         that does not exist and will never be created.  Based on
14825         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
14826         and others.
14827
14828 2007-03-17  Bruno Haible  <bruno@clisp.org>
14829
14830         * lib/fchownat.c: Include lchown.h.
14831
14832 2007-03-17  Bruno Haible  <bruno@clisp.org>
14833
14834         Fix endless loop when the given allocated size was > INT_MAX.
14835         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
14836         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
14837         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
14838         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
14839         * lib/sprintf.c (sprintf): Likewise.
14840
14841 2007-03-17  Bruno Haible  <bruno@clisp.org>
14842
14843         * tests/test-argp-2.sh (func_compare): Output a context diff.
14844
14845 2007-03-17  Bruno Haible  <bruno@clisp.org>
14846
14847         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
14848         locale's decimal-point character.
14849
14850 2007-03-17  Bruno Haible  <bruno@clisp.org>
14851
14852         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
14853         before comparing it. Needed because on some platforms (e.g. x86) a
14854         'long double' occupies less bytes than sizeof (long double).
14855
14856 2007-03-17  Bruno Haible  <bruno@clisp.org>
14857
14858         * tests/test-crc.c (main): Make printf statements 64-bit clean.
14859         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
14860         * tests/test-getaddrinfo.c (simple): Likewise.
14861         * tests/test-read-file.c (main): Likewise.
14862
14863 2007-03-17  Bruno Haible  <bruno@clisp.org>
14864
14865         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
14866
14867 2007-03-17  Bruno Haible  <bruno@clisp.org>
14868
14869         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
14870         unused variable.
14871
14872 2007-03-17  Bruno Haible  <bruno@clisp.org>
14873
14874         * tests/test-c-strcasecmp.c: Include c-strcase.h.
14875         * tests/test-c-strncasecmp.c: Likewise.
14876
14877 2007-03-17  Bruno Haible  <bruno@clisp.org>
14878
14879         * modules/stdlib (Depends-on): Add unistd.
14880         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
14881         Needed for MacOS X 10.3.
14882
14883 2007-03-17  Bruno Haible  <bruno@clisp.org>
14884
14885         * lib/unistr/u-strdup.h: Include <stdlib.h>.
14886
14887 2007-03-17  Bruno Haible  <bruno@clisp.org>
14888
14889         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
14890
14891 2007-03-17  Bruno Haible  <bruno@clisp.org>
14892
14893         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
14894         to reflect files copied from gnulib (with or without modifications).
14895         Suggested by Jim Meyering.
14896
14897 2007-03-17  Eric Blake  <ebb9@byu.net>
14898
14899         * NEWS: Document stdlib change from 2007-02-18.
14900
14901 2007-03-17  Jim Meyering  <jim@meyering.net>
14902
14903         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
14904         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
14905         someone uses a name containing shell meta-characters.
14906         Reported by Alfred M. Szmidt.
14907
14908         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
14909
14910 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14911
14912         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
14913         and copy gettext configuration files only if configure.ac contains
14914         a use of AM_GNU_GETTEXT_VERSION.
14915
14916 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14917
14918         * build-aux/bootstrap (gnulib_name): New variable.
14919         (gnulib_tool_options): Use it.
14920
14921 2007-03-13  Simon Josefsson  <simon@josefsson.org>
14922
14923         * tests/test-des.c: Use new namespace.
14924
14925 2007-03-15  Bruno Haible  <bruno@clisp.org>
14926
14927         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
14928         Reported by James Youngman <jay@gnu.org>.
14929
14930 2007-03-15  Bruno Haible  <bruno@clisp.org>
14931
14932         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
14933         declared prototype. Needed with cc on OSF/1 5.1.
14934
14935 2007-03-15  Bruno Haible  <bruno@clisp.org>
14936
14937         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
14938         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
14939         (struct gl_list_implementation): Add dispose_fn argument to the
14940         'create_empty', 'create' methods.
14941         (struct gl_list_impl_base): Add field 'dispose_fn'.
14942         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
14943         argument.
14944         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
14945         dispose_fn argument.
14946         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
14947         dispose_fn on the dropped values.
14948         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
14949         dispose_fn argument.
14950         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
14951         dropped values.
14952         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
14953         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14954         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
14955         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14956         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
14957         argument.
14958         (gl_tree_list_free): Call dispose_fn on the dropped values.
14959         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
14960         the dropped values.
14961         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14962         Add dispose_fn argument.
14963         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
14964         Call dispose_fn on the dropped values.
14965         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
14966         Add dispose_fn argument.
14967         (gl_sublist_create): Initialize the 'dispose_fn' field.
14968         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
14969         * tests/test-array_list.c (main): Update.
14970         * tests/test-carray_list.c (main): Update.
14971         * tests/test-avltree_list.c (main): Update.
14972         * tests/test-rbtree_list.c (main): Update.
14973         * tests/test-avltreehash_list.c (main): Update.
14974         * tests/test-rbtreehash_list.c (main): Update.
14975         * tests/test-linked_list.c (main): Update.
14976         * tests/test-linkedhash_list.c (main): Update.
14977         * tests/test-array_oset.c (main): Update.
14978
14979 2007-03-15  Bruno Haible  <bruno@clisp.org>
14980
14981         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
14982         (gl_oset_create_empty): Add dispose_fn argument.
14983         (struct gl_oset_implementation): Add dispose_fn argument to
14984         'create_empty' method.
14985         (struct gl_oset_impl_base): Add dispose_fn field.
14986         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
14987         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
14988         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
14989         values.
14990         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
14991         (gl_tree_oset_free): Call dispose_fn on the dropped values.
14992         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14993         dropped value.
14994         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14995         dropped value.
14996         * tests/test-array_oset.c (main): Update.
14997         * tests/test-avltree_oset.c (main): Update.
14998         * tests/test-rbtree_oset.c (main): Update.
14999         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
15000
15001 2007-03-13  Bruno Haible  <bruno@clisp.org>
15002
15003         * tests/test-stdbool.c (i): Update after last patch.
15004
15005 2007-03-12  Bruno Haible  <bruno@clisp.org>
15006
15007         * lib/quotearg.c: Include <wctype.h> early, before the definition of
15008         the iswprint macro. Needed on Solaris 2.5.1.
15009
15010 2007-03-12  Bruno Haible  <bruno@clisp.org>
15011
15012         * tests/test-printf-frexp.c (main): Declare x as volatile.
15013
15014 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15015
15016         * doc/gnulib.texi (Build robot for gnulib): New section.
15017
15018 2007-03-12  Jim Meyering  <jim@meyering.net>
15019
15020         * build-aux/bootstrap: New file.
15021         * build-aux/bootstrap.conf: New file, from coreutils.
15022
15023 2007-03-11  Bruno Haible  <bruno@clisp.org>
15024
15025         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
15026
15027 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15028
15029         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
15030         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
15031         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
15032
15033 2007-03-11  Bruno Haible  <bruno@clisp.org>
15034
15035         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
15036         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
15037
15038 2007-03-11  Bruno Haible  <bruno@clisp.org>
15039
15040         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
15041         formula. Needed for SunPRO C 5.0.
15042
15043 2007-03-11  Bruno Haible  <bruno@clisp.org>
15044
15045         * modules/long-options (Depends-on): Add getopt.
15046
15047 2007-03-11  Bruno Haible  <bruno@clisp.org>
15048
15049         * modules/modechange (Depends-on): Add stdbool.
15050
15051 2007-03-11  Bruno Haible  <bruno@clisp.org>
15052
15053         * modules/i-ring (Depends-on): Add stdbool.
15054
15055 2007-03-11  Bruno Haible  <bruno@clisp.org>
15056
15057         * modules/gc-des (Depends-on): Add stdbool.
15058
15059 2007-03-11  Bruno Haible  <bruno@clisp.org>
15060
15061         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
15062
15063 2007-03-11  Bruno Haible  <bruno@clisp.org>
15064
15065         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
15066
15067 2007-03-11  Bruno Haible  <bruno@clisp.org>
15068
15069         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
15070
15071 2007-03-11  Bruno Haible  <bruno@clisp.org>
15072
15073         * lib/vasnprintf.c (sprintf): Undefine.
15074
15075 2007-03-11  Bruno Haible  <bruno@clisp.org>
15076
15077         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
15078         initializers in SunPRO C and Compaq C compilers.
15079
15080 2007-03-11  Bruno Haible  <bruno@clisp.org>
15081
15082         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
15083         decrementing code ANSI C compliant.
15084
15085 2007-03-11  Bruno Haible  <bruno@clisp.org>
15086
15087         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
15088         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
15089
15090 2007-03-11  Bruno Haible  <bruno@clisp.org>
15091
15092         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
15093         <stdbool.h> substitute doesn't pass.
15094
15095 2007-03-11  Bruno Haible  <bruno@clisp.org>
15096
15097         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
15098
15099 2007-03-11  Bruno Haible  <bruno@clisp.org>
15100
15101         * gnulib-tool (func_create_megatestdir): Create also an autobuild
15102         script, for submission to autobuild.josefsson.org.
15103
15104 2007-03-10  Bruno Haible  <bruno@clisp.org>
15105
15106         * modules/canonicalize-lgpl-tests: New file.
15107         * tests/test-canonicalize-lgpl.sh: New file.
15108         * tests/test-canonicalize-lgpl.c: New file.
15109
15110         * modules/c-strcase-tests: New file.
15111         * tests/test-c-strcase.sh: New file.
15112         * tests/test-c-strcasecmp.c: New file.
15113         * tests/test-c-strncasecmp.c: New file.
15114
15115         * modules/atexit-tests: New file.
15116         * tests/test-atexit.sh: New file.
15117         * tests/test-atexit.c: New file.
15118
15119 2007-03-10  Bruno Haible  <bruno@clisp.org>
15120
15121         * tests/test-binary-io.sh: Use temporary filenames that are not so
15122         likely to clash with those of other tests (in a parallel make).
15123         * tests/test-binary-io.c: Likewise.
15124
15125 2007-03-10  Bruno Haible  <bruno@clisp.org>
15126
15127         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
15128         fallback; use #error instead.
15129         Suggested by Simon Josefsson.
15130
15131 2007-03-10  Bruno Haible  <bruno@clisp.org>
15132
15133         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
15134         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
15135         first and the last.
15136
15137 2007-03-10  Bruno Haible  <bruno@clisp.org>
15138
15139         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
15140
15141 2007-03-10  Bruno Haible  <bruno@clisp.org>
15142
15143         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
15144         "make distcheck".
15145         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
15146         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
15147         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
15148
15149 2007-03-10  Bruno Haible  <bruno@clisp.org>
15150
15151         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
15152         variable.
15153         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
15154         variable.
15155
15156 2007-03-09  Eric Blake  <ebb9@byu.net>
15157         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
15158
15159         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
15160         types are not being provided by gnulib.
15161         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
15162         types are supported.
15163
15164 2007-03-10  Bruno Haible  <bruno@clisp.org>
15165
15166         * lib/stdio_.h (__attribute__): New macro.
15167         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
15168         vsprintf): Specify __attribute__ __format__ for GCC.
15169         Suggested by Eric Blake.
15170
15171 2007-03-09  Bruno Haible  <bruno@clisp.org>
15172
15173         * modules/printf-posix-tests: New file.
15174         * tests/test-printf-posix.sh: New file.
15175         * tests/test-printf-posix.c: New file.
15176
15177         * modules/printf-posix: New file.
15178         * lib/printf.c: New file.
15179         * m4/printf-posix-rpl.m4: New file.
15180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
15181         REPLACE_PRINTF.
15182         * lib/stdio_.h (printf): New declaration.
15183         (format, __format__, ____printf____, ____scanf____, ____strftime____,
15184         ____strfmon____): New macros.
15185         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
15186         REPLACE_PRINTF.
15187
15188 2007-03-09  Bruno Haible  <bruno@clisp.org>
15189
15190         * tests/test-vasnprintf-posix2.sh: New file.
15191         * tests/test-vasnprintf-posix2.c: New file.
15192         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
15193         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15194         (Makefile.am): Activate test-vasnprintf-posix2.sh.
15195
15196         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
15197         a locale dependent decimal point, rather than always '.'.
15198
15199 2007-03-09  Eric Blake  <ebb9@byu.net>
15200
15201         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
15202         spite of platforms like Tandem/NSK that define it to -1.
15203
15204 2007-03-08  Bruno Haible  <bruno@clisp.org>
15205
15206         * modules/vprintf-posix-tests: New file.
15207         * tests/test-vprintf-posix.sh: New file.
15208         * tests/test-vprintf-posix.c: New file.
15209         * tests/test-printf-posix.h: New file.
15210
15211         * modules/vprintf-posix: New file.
15212         * lib/vprintf.c: New file.
15213         * m4/vprintf-posix.m4: New file.
15214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
15215         REPLACE_VPRINTF.
15216         * lib/stdio_.h (vprintf): New declaration.
15217         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
15218         REPLACE_VPRINTF.
15219
15220 2007-03-08  Bruno Haible  <bruno@clisp.org>
15221
15222         * modules/fprintf-posix-tests: New file.
15223         * tests/test-fprintf-posix.sh: New file.
15224         * tests/test-fprintf-posix.c: New file.
15225
15226         * modules/fprintf-posix: New file.
15227         * lib/fprintf.c: New file.
15228         * m4/fprintf-posix.m4: New file.
15229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
15230         REPLACE_FPRINTF.
15231         * lib/stdio_.h (fprintf): New declaration.
15232         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
15233         REPLACE_FPRINTF.
15234
15235 2007-03-08  Bruno Haible  <bruno@clisp.org>
15236
15237         * modules/vfprintf-posix-tests: New file.
15238         * tests/test-vfprintf-posix.sh: New file.
15239         * tests/test-vfprintf-posix.c: New file.
15240         * tests/test-fprintf-posix.h: New file.
15241         * tests/test-fprintf-posix.out: New file.
15242
15243         * modules/vfprintf-posix: New file.
15244         * lib/vfprintf.c: New file.
15245         * m4/vfprintf-posix.m4: New file.
15246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
15247         REPLACE_VFPRINTF.
15248         * lib/stdio_.h (vfprintf): New declaration.
15249         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
15250         REPLACE_VFPRINTF.
15251
15252 2007-03-08  Bruno Haible  <bruno@clisp.org>
15253
15254         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
15255
15256 2007-03-08  Bruno Haible  <bruno@clisp.org>
15257
15258         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
15259         instead of 'expr' invocations.
15260         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15261         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15265         Suggested by Paul Eggert.
15266
15267 2007-03-08  Bruno Haible  <bruno@clisp.org>
15268
15269         * modules/fseterr-tests: New file.
15270         * tests/test-fseterr.c: New file.
15271
15272         * modules/fseterr: New file.
15273         * lib/fseterr.h: New file.
15274         * lib/fseterr.c: New file.
15275
15276 2007-03-08  Bruno Haible  <bruno@clisp.org>
15277
15278         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
15279         * lib/getopt_.h: Likewise.
15280         * lib/mbswidth.h: Likewise.
15281         * lib/setenv.h: Likewise.
15282         * lib/vasnprintf.h: Likewise.
15283         * lib/vasprintf.h: Likewise.
15284         * lib/verror.h: Likewise.
15285         * lib/xsetenv.h: Likewise.
15286         * lib/xvasprintf.h: Likewise.
15287
15288 2007-03-08  Jim Meyering  <jim@meyering.net>
15289
15290         * users.txt: Add parted.
15291
15292         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
15293
15294 2007-03-07  Bruno Haible  <bruno@clisp.org>
15295
15296         * m4/printf.m4: Make the shell script snippets copy&pastable.
15297
15298 2007-03-02  Bruno Haible  <bruno@clisp.org>
15299
15300         * lib/netinet_in_.h: New file.
15301         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
15302         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
15303         * modules/netinet_in (Files): Add lib/netinet_in_.h.
15304         (Depends-on): Add absolute-header.
15305         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
15306         into netinet/in.h.
15307
15308 2007-03-03  Bruno Haible  <bruno@clisp.org>
15309
15310         * lib/sys_select_.h: New file.
15311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15312         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15313         * modules/sys_select (Files): Add lib/sys_select_.h.
15314         (Depends-on): Add absolute-header.
15315         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15316         into sys/select.h.
15317
15318 2007-03-02  Bruno Haible  <bruno@clisp.org>
15319
15320         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15321         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15322         values.
15323         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15324         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15325         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15326         * modules/sys_socket (Depends-on): Add absolute-header.
15327         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15328         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15329         (Include): Remove requirement of inclusion of <sys/types.h>.
15330
15331 2007-03-02  Bruno Haible  <bruno@clisp.org>
15332
15333         * lib/byteswap_.h (bswap_32): Fix formula.
15334
15335 2007-03-06  Bruno Haible  <bruno@clisp.org>
15336
15337         * modules/sprintf-posix-tests: New file.
15338         * tests/test-sprintf-posix.c: New file.
15339
15340         * modules/sprintf-posix: New file.
15341         * lib/sprintf.c: New file.
15342         * m4/sprintf-posix.m4: New file.
15343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15344         REPLACE_SPRINTF.
15345         * lib/stdio_.h (sprintf): New declaration.
15346         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15347         REPLACE_SPRINTF.
15348
15349 2007-03-06  Bruno Haible  <bruno@clisp.org>
15350
15351         * modules/vsprintf-posix-tests: New file.
15352         * tests/test-vsprintf-posix.c: New file.
15353         * tests/test-sprintf-posix.h: New file.
15354
15355         * modules/vsprintf-posix: New file.
15356         * lib/vsprintf.c: New file.
15357         * m4/vsprintf-posix.m4: New file.
15358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15359         REPLACE_VSPRINTF.
15360         * lib/stdio_.h (vsprintf): New declaration.
15361         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15362         REPLACE_VSPRINTF.
15363
15364 2007-03-06  Bruno Haible  <bruno@clisp.org>
15365
15366         * modules/vsnprintf (Depend-on): Remove minmax.
15367
15368 2007-03-06  Bruno Haible  <bruno@clisp.org>
15369
15370         * modules/snprintf-posix-tests: New file.
15371         * tests/test-snprintf-posix.c: New file.
15372
15373         * modules/snprintf-posix: New file.
15374         * m4/snprintf-posix.m4: New file.
15375         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15376         gl_FUNC_SNPRINTF.
15377         (gl_FUNC_SNPRINTF): Invoke it.
15378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15379         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15380         is set.
15381         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15382
15383 2007-03-06  Bruno Haible  <bruno@clisp.org>
15384
15385         * modules/vsnprintf-posix-tests: New file.
15386         * tests/test-vsnprintf-posix.c: New file.
15387         * tests/test-snprintf-posix.h: New file.
15388
15389         * modules/vsnprintf-posix: New file.
15390         * m4/vsnprintf-posix.m4: New file.
15391         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15392         gl_FUNC_VSNPRINTF.
15393         (gl_FUNC_VSNPRINTF): Invoke it.
15394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15395         * lib/stdio_.h (vsnprintf): Define as a replacement if
15396         REPLACE_VSNPRINTF is set.
15397         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15398
15399 2007-03-06  Bruno Haible  <bruno@clisp.org>
15400
15401         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15403
15404 2007-03-06  Bruno Haible  <bruno@clisp.org>
15405
15406         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15407         (asinl): Declare also if HAVE_DECL_ASINL is set.
15408         (atanl): Declare also if HAVE_DECL_ATANL is set.
15409         (ceill): Declare also if HAVE_DECL_CEILL is set.
15410         (cosl): Declare also if HAVE_DECL_COSL is set.
15411         (expl): Declare also if HAVE_DECL_EXPL is set.
15412         (floorl): Declare also if HAVE_DECL_FLOORL is set.
15413         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
15414         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
15415         (logl): Declare also if HAVE_DECL_LOGL is set.
15416         (sinl): Declare also if HAVE_DECL_SINL is set.
15417         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
15418         (tanl): Declare also if HAVE_DECL_TANL is set.
15419         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
15420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
15421         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
15422         declaration of frexpl, ldexpl.
15423         * modules/printf-frexpl (Depends-on): Add math.
15424         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
15425
15426 2007-03-05  Bruno Haible  <bruno@clisp.org>
15427
15428         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15429         frexpl and ldexpl are declared.
15430         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15431
15432 2007-03-05  Bruno Haible  <bruno@clisp.org>
15433
15434         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15435         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15436
15437 2007-03-05  Bruno Haible  <bruno@clisp.org>
15438
15439         * lib/stdio_.h: Include <stddef.h>.
15440
15441 2007-03-05  Bruno Haible  <bruno@clisp.org>
15442
15443         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15444
15445 2007-03-05  Bruno Haible  <bruno@clisp.org>
15446
15447         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
15448         NetBSD 4, from Ralf Wildenhues.
15449
15450 2007-03-04  Bruno Haible  <bruno@clisp.org>
15451
15452         * lib/vasprintf.h: Update #if logic for the case when the functions
15453         exist but are overridden.
15454
15455 2007-03-04  Bruno Haible  <bruno@clisp.org>
15456
15457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
15458         implementations: glibc-2.4 and MacOS X 10.3.
15459         * tests/test-vasnprintf-posix.c (test_function): Test also the case
15460         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
15461         * tests/test-vasprintf-posix.c (test_function): Likewise.
15462
15463 2007-03-04  Bruno Haible  <bruno@clisp.org>
15464
15465         * modules/vasprintf-posix-tests: New file.
15466         * tests/test-vasprintf-posix.c: New file.
15467
15468         * modules/vasprintf-posix: New file.
15469         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
15470         defined.
15471         * m4/vasprintf-posix.m4: New file.
15472         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
15473         gl_FUNC_VASPRINTF.
15474         (gl_FUNC_VASPRINTF): Invoke it.
15475         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
15476         here.
15477         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
15478
15479 2007-03-04  Bruno Haible  <bruno@clisp.org>
15480
15481         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
15482         REPLACE_GETTIMEOFDAY.
15483         * modules/sys_time (Makefile.am): Likewise.
15484         * m4/sys_time_h.m4: Likewise.
15485         * m4/gettimeofday.m4: Likewise.
15486
15487 2007-03-04  Bruno Haible  <bruno@clisp.org>
15488
15489         * modules/vasnprintf-posix-tests: New file.
15490         * tests/test-vasnprintf-posix.c: New file.
15491
15492         * modules/vasnprintf-posix: New file.
15493         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
15494         printf-frexpl.h.
15495         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
15496         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
15497         REPLACE_VASNPRINTF is defined.
15498         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
15499         gl_FUNC_VASNPRINTF.
15500         (gl_FUNC_VASNPRINTF): Invoke it.
15501         * m4/vasnprintf-posix.m4: New file.
15502         * m4/printf.m4: New file.
15503
15504 2007-03-04  Bruno Haible  <bruno@clisp.org>
15505
15506         Compile progreloc.c only if --enable-relocatable is specified.
15507         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
15508         if --enable-relocatable was specified.
15509         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
15510         lib_SOURCES.
15511
15512 2007-03-04  Jim Meyering  <jim@meyering.net>
15513
15514         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
15515         Use it consistently, rather than enumerating errno constants.
15516
15517 2007-03-04  Bruno Haible  <bruno@clisp.org>
15518
15519         * modules/xvasprintf-tests: New file.
15520         * tests/test-xvasprintf.c: New file.
15521
15522         * modules/vasprintf-tests: New file.
15523         * tests/test-vasprintf.c: New file.
15524
15525         * modules/vasnprintf-tests: New file.
15526         * tests/test-vasnprintf.c: New file.
15527
15528         * modules/vsnprintf-tests: New file.
15529         * tests/test-vsnprintf.c: New file.
15530
15531         * modules/snprintf-tests: New file.
15532         * tests/test-snprintf.c: New file.
15533
15534 2007-03-04  Bruno Haible  <bruno@clisp.org>
15535
15536         Compile relocatable.c only if --enable-relocatable is specified.
15537         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
15538         gl_RELOCATABLE_LIBRARY.
15539         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
15540         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
15541         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
15542         gl_RELOCATABLE_LIBRARY.
15543         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
15544         (Makefile.am): Remove lib_SOURCES.
15545         * modules/relocatable-lib-lgpl (configure.ac): Invoke
15546         gl_RELOCATABLE_LIBRARY.
15547         (Makefile.am): Remove lib_SOURCES.
15548         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
15549         always.
15550         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15551         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
15552
15553 2007-03-04  Bruno Haible  <bruno@clisp.org>
15554
15555         * modules/argmatch-tests: New file.
15556         * tests/test-argmatch.c: New file.
15557
15558         * tests/test-allocsa.c (main): Halve the number of loop runs.
15559
15560         * modules/alloca-opt-tests: New file.
15561         * tests/test-alloca-opt.c: New file.
15562
15563 2007-03-04  Jim Meyering  <jim@meyering.net>
15564
15565         Work around difference between Linux ACLs and Solaris 10 ZFS.
15566         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
15567         for EINVAL.
15568
15569 2007-03-03  Bruno Haible  <bruno@clisp.org>
15570
15571         * modules/relocatable-prog (Depends-on): Add back progreloc's
15572         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
15573
15574 2007-03-03  Bruno Haible  <bruno@clisp.org>
15575
15576         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
15577         * modules/relocatable-lib: New file.
15578
15579 2007-03-03  Bruno Haible  <bruno@clisp.org>
15580
15581         * modules/relocatable-prog: Renamed from modules/relocatable.
15582         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
15583
15584 2007-03-03  Bruno Haible  <bruno@clisp.org>
15585
15586         * modules/relocatable-script (Files): Add doc/relocatable.texi,
15587         m4/relocatable-lib.m4.
15588         (Depends-on): Remove 'relocatable'.
15589         (configure.ac): Add gl_RELOCATABLE_NOP.
15590
15591 2007-03-03  Bruno Haible  <bruno@clisp.org>
15592
15593         * modules/relocatable-prog-wrapper: New file.
15594         * modules/relocatable (Depends-on): Add it. Remove all other
15595         dependencies except progname.
15596         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
15597
15598         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
15599         (gl_FUNC_STRERROR): Nop.
15600         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
15601
15602         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
15603         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
15604
15605         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
15606         (gl_FUNC_READLINK): Update.
15607
15608         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
15609
15610 2007-03-03  Bruno Haible  <bruno@clisp.org>
15611
15612         * lib/xreadlink.c: Include <unistd.h> unconditionally.
15613         * modules/xreadlink (Depends-on): Add unistd.
15614         * modules/xreadlink-with-size (Depends-on): Likewise.
15615
15616 2007-03-03  Bruno Haible  <bruno@clisp.org>
15617
15618         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
15619         extracted from gt_FUNC_SETENV.
15620         (gt_FUNC_SETENV): Remove macro.
15621         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
15622         remove gt_FUNC_SETENV.
15623
15624 2007-03-03  Bruno Haible  <bruno@clisp.org>
15625
15626         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
15627         ENABLE_RELOCATABLE here.
15628         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
15629
15630 2007-03-03  Bruno Haible  <bruno@clisp.org>
15631
15632         * modules/rbtreehash-list-tests (Depends-on): Add progname.
15633         * tests/test-rbtreehash_list.c: Include progname.h.
15634         (main): Call set_program_name.
15635
15636         * modules/rbtree-oset-tests (Depends-on): Add progname.
15637         * tests/test-rbtree_oset.c: Include progname.h.
15638         (main): Call set_program_name.
15639
15640         * modules/rbtree-list-tests (Depends-on): Add progname.
15641         * tests/test-rbtree_list.c: Include progname.h.
15642         (main): Call set_program_name.
15643
15644         * modules/linked-list-tests (Depends-on): Add progname.
15645         * tests/test-linked_list.c: Include progname.h.
15646         (main): Call set_program_name.
15647
15648 2007-03-03  Bruno Haible  <bruno@clisp.org>
15649
15650         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
15651         All uses of __restrict changed to _Restrict_.
15652         * lib/glob_.h (__restrict): Remove macro.
15653
15654 2007-03-02  Bruno Haible  <bruno@clisp.org>
15655
15656         * modules/gettext (configure.ac): Require gettext infrastructure
15657         from version 0.16.1.
15658
15659 2007-03-02  Bruno Haible  <bruno@clisp.org>
15660
15661         * modules/linkedhash-list-tests (Depends-on): Add progname.
15662         * tests/test-linkedhash_list.c: Include progname.h.
15663         (main): Call set_program_name.
15664
15665         * modules/carray-list-tests (Depends-on): Add progname.
15666         * tests/test-carray_list.c: Include progname.h.
15667         (main): Call set_program_name.
15668
15669         * modules/avltreehash-list-tests (Depends-on): Add progname.
15670         * tests/test-avltreehash_list.c: Include progname.h.
15671         (main): Call set_program_name.
15672
15673         * modules/avltree-oset-tests (Depends-on): Add progname.
15674         * tests/test-avltree_oset.c: Include progname.h.
15675         (main): Call set_program_name.
15676
15677         * modules/avltree-list-tests (Depends-on): Add progname.
15678         * tests/test-avltree_list.c: Include progname.h.
15679         (main): Call set_program_name.
15680
15681         * modules/array-oset-tests (Depends-on): Add progname.
15682         * tests/test-array_oset.c: Include progname.h.
15683         (main): Call set_program_name.
15684
15685         * modules/array-list-tests (Depends-on): Add progname.
15686         * tests/test-array_list.c: Include progname.h.
15687         (main): Call set_program_name.
15688
15689         * modules/argp-tests (Depends-on): Add progname.
15690         * tests/test-argp.c: Include argp.h first. Include progname.h.
15691         (main): Call set_program_name.
15692
15693 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
15694
15695         * doc/gnulib-tool.texi (Initial import): Reword description of
15696         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
15697         limited effect even if defined after the first system include.
15698
15699 2007-03-01  Bruno Haible  <bruno@clisp.org>
15700
15701         * build-aux/config.libpath: Update to libtool-1.5.22.
15702         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15703
15704 2007-03-01  Bruno Haible  <bruno@clisp.org>
15705
15706         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
15707         foo_CFLAGS.
15708         Reported by Ralf Wildenhues.
15709
15710 2007-03-01  Bruno Haible  <bruno@clisp.org>
15711
15712         * build-aux/install-reloc: Remove object files left over by some
15713         compilers.
15714         Reported by Ralf Wildenhues.
15715
15716 2007-03-01  Bruno Haible  <bruno@clisp.org>
15717
15718         * build-aux/install-reloc: Break long lines.
15719
15720 2007-03-01  Bruno Haible  <bruno@clisp.org>
15721
15722         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15723         Reported by Ralf Wildenhues.
15724
15725 2007-03-01  Bruno Haible  <bruno@clisp.org>
15726
15727         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15728         include ordering constraints.
15729
15730 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15731
15732         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
15733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
15734         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
15735         as another example.
15736         * lib/time_.h: Fix misspelling.
15737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15738         Require gl_HEADER_TIME_H_DEFAULTS.
15739         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
15740         * m4/time_r.m4 (gl_TIME_R): Likewise.
15741         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
15742
15743 2007-03-01  Bruno Haible  <bruno@clisp.org>
15744
15745         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
15746         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15747
15748 2007-03-01  Jim Meyering  <jim@meyering.net>
15749
15750         * modules/xreadlink (Maintainer): Add my name.
15751         * modules/xreadlink-with-size (Depends-on): Alphabetize.
15752
15753 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
15754             Bruno Haible  <bruno@clisp.org>
15755
15756         * build-aux/install-reloc: Compile also c-ctype.c.
15757         * build-aux/relocatable.sh.in: New file.
15758         * doc/relocatable.texi: New file.
15759         * doc/relocatable-maint.texi: New file.
15760         * doc/gnulib.texi: Include relocatable-maint.texi.
15761         * lib/progreloc.c: Include unistd.h unconditionally.
15762         * lib/relocwrapper.c: Include unistd.h unconditionally.
15763         Include c-ctype.h.
15764         (add_dotbin): Use c_tolower.
15765         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
15766         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
15767         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
15768         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
15769         to m4/relocatable-lib.m4.
15770         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
15771         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
15772         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
15773         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
15774         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
15775         * modules/relocatable: New file.
15776         * modules/relocatable-lib: New file.
15777         * modules/relocatable-script: New file.
15778
15779 2007-02-28  Bruno Haible  <bruno@clisp.org>
15780
15781         Import --enable-relocatable infrastructure.
15782         * build-aux/config.libpath: New file, from GNU gettext.
15783         * build-aux/install-reloc: New file, from GNU gettext.
15784         * build-aux/reloc-ldflags: New file, from GNU gettext.
15785         * lib/relocatable.h: New file, from GNU gettext.
15786         * lib/relocatable.c: New file, from GNU gettext.
15787         * lib/relocwrapper.c: New file, from GNU gettext.
15788         * m4/relocatable.m4: New file, from GNU gettext.
15789
15790 2007-02-28  Bruno Haible  <bruno@clisp.org>
15791
15792         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
15793
15794         * modules/xreadlink: New file, from GNU gettext with modifications.
15795         * lib/xreadlink.c: New file, from GNU gettext.
15796         * lib/xreadlink.h: Add comments.
15797         (xreadlink): New declaration.
15798
15799         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
15800         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
15801         lib/xreadlink-with-size.c.
15802         (configure.ac): Remove gl_XREADLINK invocation.
15803         (Makefile.am): Augment lib_SOURCES.
15804         * m4/xreadlink.m4: Remove file.
15805         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
15806         (xreadlink_with_size): Renamed from xreadink.
15807         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
15808         * modules/canonicalize (Depends-on): Replace xreadlink with
15809         xreadlink-with-size.
15810         * lib/canonicalize.c (canonicalize_filename_mode): Update.
15811
15812 2007-02-25  Jim Meyering  <jim@meyering.net>
15813
15814         * build-aux/announce-gen: When complaining about excess arguments,
15815         list them.
15816
15817 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15818
15819         * README: Document signed integer overflow situation more
15820         accurately.
15821
15822 2007-02-25  Bruno Haible  <bruno@clisp.org>
15823
15824         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
15825         'a' or 'A' conversion.
15826
15827 2007-02-25  Bruno Haible  <bruno@clisp.org>
15828
15829         * modules/filename: Renamed from modules/pathname.
15830         (Files): Replace lib/pathname.h with lib/filename.h. Replace
15831         lib/concatpath.c with lib/concat-filename.c.
15832         (Makefile.am): Update.
15833         (Include): Replace pathname.h with filename.h.
15834         * lib/filename.h: Renamed from lib/pathname.h.
15835         (concatenated_filename): Renamed from concatenated_pathname.
15836         * lib/concat-filename.c: Renamed from lib/concatpath.c.
15837         (concatenated_filename): Renamed from concatenated_pathname.
15838         * lib/findprog.c: Include filename.h instead of pathname.h.
15839         (find_in_path): Update.
15840         * lib/javacomp.c: Include filename.h instead of pathname.h.
15841         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15842         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15843         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15844         is_oldgcj_14_13_usable, is_javac_usable): Update.
15845         * lib/javaexec.c: Include filename.h instead of pathname.h.
15846         (execute_java_class): Update.
15847         * modules/findprog: Update.
15848         * modules/javacomp: Update.
15849         * modules/javaexec: Update.
15850         * MODULES.html.sh (File system functions): Add 'filename', remove
15851         'pathname'.
15852
15853 2007-02-25  Bruno Haible  <bruno@clisp.org>
15854
15855         * modules/printf-frexpl-tests: New file.
15856         * tests/test-printf-frexpl.c: New file.
15857
15858         * modules/printf-frexpl: New file.
15859         * lib/printf-frexpl.h: New file.
15860         * lib/printf-frexpl.c: New file.
15861         * m4/printf-frexpl.m4: New file.
15862
15863 2007-02-25  Bruno Haible  <bruno@clisp.org>
15864
15865         * modules/printf-frexp-tests: New file.
15866         * tests/test-printf-frexp.c: New file.
15867
15868         * modules/printf-frexp: New file.
15869         * lib/printf-frexp.h: New file.
15870         * lib/printf-frexp.c: New file.
15871         * m4/printf-frexp.m4: New file.
15872
15873 2007-02-25  Bruno Haible  <bruno@clisp.org>
15874
15875         Assume automake >= 1.10 for the tests.
15876         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
15877         * modules/arctwo-tests: Likewise.
15878         * modules/argp-tests: Likewise.
15879         * modules/avltree-list-tests: Likewise.
15880         * modules/avltree-oset-tests: Likewise.
15881         * modules/avltreehash-list-tests: Likewise.
15882         * modules/carray-list-tests: Likewise.
15883         * modules/crc-tests: Likewise.
15884         * modules/des-tests: Likewise.
15885         * modules/gc-arcfour-tests: Likewise.
15886         * modules/gc-arctwo-tests: Likewise.
15887         * modules/gc-des-tests: Likewise.
15888         * modules/gc-hmac-md5-tests: Likewise.
15889         * modules/gc-hmac-sha1-tests: Likewise.
15890         * modules/gc-md2-tests: Likewise.
15891         * modules/gc-md4-tests: Likewise.
15892         * modules/gc-md5-tests: Likewise.
15893         * modules/gc-pbkdf2-sha1-tests: Likewise.
15894         * modules/gc-rijndael-tests: Likewise.
15895         * modules/gc-sha1-tests: Likewise.
15896         * modules/gc-tests: Likewise.
15897         * modules/getaddrinfo-tests: Likewise.
15898         * modules/hmac-md5-tests: Likewise.
15899         * modules/hmac-sha1-tests: Likewise.
15900         * modules/linked-list-tests: Likewise.
15901         * modules/linkedhash-list-tests: Likewise.
15902         * modules/lock-tests: Likewise.
15903         * modules/md2-tests: Likewise.
15904         * modules/md4-tests: Likewise.
15905         * modules/md5-tests: Likewise.
15906         * modules/rbtree-list-tests: Likewise.
15907         * modules/rbtree-oset-tests: Likewise.
15908         * modules/rbtreehash-list-tests: Likewise.
15909         * modules/read-file-tests: Likewise.
15910         * modules/rijndael-tests: Likewise.
15911         * modules/stdint-tests: Likewise.
15912         * modules/tls-tests: Likewise.
15913
15914 2007-02-24  Bruno Haible  <bruno@clisp.org>
15915
15916         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
15917         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
15918         function; instead check whether isnan with a double argument links.
15919         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
15920         function; instead check whether isnan with a 'long double' argument
15921         links.
15922         Reported by Eric Blake <ebb9@byu.net>.
15923
15924 2007-02-24  Bruno Haible  <bruno@clisp.org>
15925
15926         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
15927         defined.
15928         * lib/isnanl.c: Remove all code. Just include isnan.c.
15929         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
15930
15931 2007-02-25  Jim Meyering  <jim@meyering.net>
15932
15933         Avoid conflicting types for 'unsetenv' on FreeBSD.
15934         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
15935         conflicting with FreeBSD's (5.0 and 6.1) function declaration
15936         in stdlib.h.
15937
15938 2007-02-24  Bruno Haible  <bruno@clisp.org>
15939
15940         * modules/isnanl-nolibm-tests: New file.
15941         * tests/test-isnanl.c: New file.
15942
15943         * modules/isnanl-nolibm: New file.
15944         * lib/isnanl.h: New file.
15945         * lib/isnanl.c: New file.
15946         * m4/isnanl.m4: New file.
15947
15948 2007-02-24  Bruno Haible  <bruno@clisp.org>
15949
15950         * modules/isnan-nolibm-tests: New file.
15951         * tests/test-isnan.c: New file.
15952
15953         * modules/isnan-nolibm: New file.
15954         * lib/isnan.h: New file.
15955         * lib/isnan.c: New file.
15956         * m4/isnan.m4: New file.
15957
15958 2007-02-24  Bruno Haible  <bruno@clisp.org>
15959
15960         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
15961         assume that an exponent fits in 20 bits.
15962
15963 2007-02-24  Jim Meyering  <jim@meyering.net>
15964
15965         * m4/regex.m4: Update the description of the configure-time option,
15966         --without-included-regex, to state accurately what the defaults are,
15967         and perhaps to give people an idea why using this option is risky.
15968
15969 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15970
15971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
15972         loops on small arguments.  This attempts to avoid the problem
15973         Bruno Haible reported for AIX 4.3.2 in
15974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
15975
15976 2007-02-23  Bruno Haible  <bruno@clisp.org>
15977
15978         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
15979         Needed for help2man.
15980
15981 2007-02-23  Karl Berry  <karl@gnu.org>
15982
15983         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
15984         exists, foo.h should be cvs-ignored, not committed.
15985
15986 2007-02-23  Eric Blake  <ebb9@byu.net>
15987
15988         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
15989         * lib/stat-time.h (includes): Likewise.
15990         * lib/utimecmp.c (includes): Likewise.
15991         * lib/utimens.h (includes): Likewise.
15992         * lib/getdate.y (includes): Also include "timespec.h" for use
15993         internal to the module.
15994         * modules/utimens (Depends-on): Revert yesterday's patch.
15995         * modules/nanosleep (Depends-on): Add missing dependency.
15996
15997 2007-02-22  Bruno Haible  <bruno@clisp.org>
15998
15999         * lib/glob.c: Don't include getlogin_r.h.
16000
16001 2007-02-22  Jim Meyering  <jim@meyering.net>
16002
16003         * modules/utimens (Depends-on): Add timespec, required for
16004         utimens.h's inclusion of timespec.h.
16005
16006 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16007
16008         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
16009         long unreadable paths in GNU/Linux.  Problem reported by Andreas
16010         Schwab in
16011         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
16012         I'll try to think of a better way to fix the Solaris problem.
16013
16014         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
16015         like glibc; on Solaris 10, it fails with errno == EINVAL.
16016         POSIX says the behavior is unspecified if the first argument is NULL,
16017         so play it safe and never pass NULL to the system getcwd.
16018
16019 2007-02-21  Jim Meyering  <jim@meyering.net>
16020
16021         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
16022         of gettimeofday.  It would conflict with the one now always
16023         provided via sys_time_.h.  Reported by Matthew Woehlke, as
16024         an IRIX 6.5 build failure.
16025
16026 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16027
16028         Minor fixups to port to Solaris 10 with Sun C 5.8.
16029         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
16030         * modules/getcwd (Depends-on): Add dirfd.
16031         * lib/putenv.c (putenv): #undef it.
16032         (rpl_putenv): New decl.
16033         (malloc, free): Include <stdlib.h> rather than prototyping separately.
16034
16035 2007-02-20  Bruno Haible  <bruno@clisp.org>
16036
16037         * modules/stdio-tests: New file.
16038         * tests/test-stdio.c: New file.
16039
16040         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
16041         (Depends-on): Add stdio.
16042         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16043         (Include): Use <stdio.h> instead of vsnprintf.h.
16044         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16045         HAVE_DECL_VSNPRINTF.
16046         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
16047
16048         * modules/snprintf (Files): Remove lib/snprintf.h.
16049         (Depends-on): Add stdio.
16050         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16051         (Include): Use <stdio.h> instead of snprintf.h.
16052         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16053         HAVE_DECL_SNPRINTF.
16054         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
16055         * lib/getaddrinfo.c: Likewise.
16056
16057         * modules/stdio: New file.
16058         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
16059         * lib/snprintf.h: Remove file.
16060         * lib/vsnprintf.h: Remove file.
16061         * lib/.cppi-disable: Remove snprintf.h.
16062         * m4/stdio_h.m4: New file.
16063         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
16064
16065 2007-02-20  Jim Meyering  <jim@meyering.net>
16066
16067         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
16068         used by e.g., mingw.  From Bruno Haible.
16069
16070 2007-02-19  Bruno Haible  <bruno@clisp.org>
16071
16072         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
16073         warnings.
16074         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16075
16076 2007-02-19  Bruno Haible  <bruno@clisp.org>
16077
16078         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
16079         from mingw users.
16080
16081 2007-02-19  Bruno Haible  <bruno@clisp.org>
16082
16083         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
16084         warnings.
16085         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
16086
16087 2007-02-19  Jim Meyering  <jim@meyering.net>
16088
16089         Don't use FD after a successful "fdopendir (fd)".
16090         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
16091         Reset it by calling dirfd on the just-obtained DIR*.
16092
16093         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
16094         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
16095
16096 2007-02-18  Bruno Haible  <bruno@clisp.org>
16097
16098         * lib/readlink.c: Include <unistd.h>.
16099         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
16100         HAVE_READLINK.
16101         * modules/readlink (Depends-on): Add unistd.
16102         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16103         (Include): Add <unistd.h>.
16104
16105         * lib/getlogin_r.h: Remove file.
16106         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
16107         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
16108         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
16109         HAVE_DECL_GETLOGIN_R.
16110         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
16111         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16112         (Include): Use <unistd.h> instead of getlogin_r.h.
16113
16114         * lib/getcwd.h: Remove file.
16115         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
16116         * lib/xgetcwd.c: Likewise.
16117         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
16118         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
16119         * modules/getcwd (Files): Remove lib/getcwd.h.
16120         (Depends-on): Add unistd.
16121         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16122         (Include): Use <unistd.h> instad of getcwd.h.
16123
16124         * lib/ftruncate.c: Include <unistd.h> first.
16125         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
16126         Set HAVE_FTRUNCATE.
16127         * modules/ftruncate (Depends-on): Add unistd.
16128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16129
16130         * lib/fchdir.c: Include <unistd.h> first.
16131         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
16132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
16133         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
16134         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16135         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
16136
16137         * lib/dup2.c: Include <unistd.h> first.
16138         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
16139         HAVE_DUP2.
16140         * modules/dup2 (Depends-on): Add unistd.
16141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16142
16143         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
16144         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
16145         REPLACE_CHOWN. Don't define chown as a macro here.
16146         * modules/chown (Depends-on): Add unistd.
16147         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16148
16149         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
16150         Add definition for GL_LINK_WARNING.
16151         (chown, dup2): New declarations.
16152         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
16153         link warning.
16154         (ftruncate): New declaration.
16155         (getcwd): New declaration, taken from old getcwd.h.
16156         (getlogin_r): New declaration, taken from old getlogin_r.h.
16157         (readlink): New declaration.
16158         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
16159         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
16160         (gl_PREREQ_UNISTD): Remove macro.
16161         (gl_UNISTD_MODULE_INDICATOR): New macro.
16162         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
16163         many new variables. Don't set UNISTD_H.
16164         * modules/unistd (Description): Change.
16165         (Depends-on): Add link-warning.
16166         (configure.ac): Update.
16167         (Makefile.am): Create unistd.h always. Substitute many new variables
16168         into it.
16169
16170 2007-02-18  Bruno Haible  <bruno@clisp.org>
16171
16172         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
16173         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
16174         HAVE_GETSUBOPT.
16175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
16176         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
16177         * lib/getsubopt.h: Remove file.
16178         * modules/getsubopt (Files): Remove lib/getsubopt.h.
16179         (Depends-on): Add stdlib.
16180         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16181         (Includes): Use <stdlib.h> instead of getsubopt.h.
16182         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
16183         Set HAVE_GETSUBOPT.
16184         * lib/getsubopt.c: Don't include getsubopt.h.
16185
16186 2007-02-18  Bruno Haible  <bruno@clisp.org>
16187
16188         * modules/fchdir (Depends-on): Add dup2.
16189
16190 2007-02-18  Bruno Haible  <bruno@clisp.org>
16191
16192         * lib/stdlib_.h: Handle glibc's special invocation convention
16193         specially.
16194
16195 2007-02-18  Bruno Haible  <bruno@clisp.org>
16196
16197         * modules/stdlib-tests: New file.
16198         * tests/test-stdlib.c: New file.
16199
16200         * modules/mkstemp (Files): Remove lib/mkstemp.h.
16201         (Depends-on): Add stdlib.
16202         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16203         (Includes): Use <stdlib.h> instead of mkstemp.h.
16204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16205         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
16206         * lib/mkstemp.c: Don't include mkstemp.h.
16207         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
16208         * lib/stdlib--.h: Don't include mkstemp.h.
16209
16210         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
16211         (Depends-on): Add stdlib.
16212         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16213         (Includes): Use <stdlib.h> instead of mkdtemp.h.
16214         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16215         HAVE_MKDTEMP.
16216         * lib/mkdtemp.c: Don't include mkdtemp.h.
16217         * lib/clean-temp.c: Don't include mkdtemp.h.
16218
16219         * modules/exit (Files): Remove lib/exit.h.
16220         (Depends-on): Add stdlib.
16221         (Makefile.am): Remove lib_SOURCES.
16222         (Include): Use <stdlib.h> instead of exit.h.
16223         * lib/argmatch.c: Don't include exit.h.
16224         * lib/execute.c: Likewise.
16225         * lib/pagealign_alloc.c: Likewise.
16226         * lib/pipe.c: Likewise.
16227         * lib/wait-process.c: Likewise.
16228         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
16229         * lib/exitfail.c: Likewise.
16230         * lib/savewd.c: Likewise.
16231         * lib/xsetenv.c: Likewise.
16232
16233         * modules/stdlib: New file.
16234         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
16235         and extra comments about mkstemp().
16236         * lib/exit.h: Remove file.
16237         * lib/mkdtemp.h: Remove file.
16238         * lib/mkstemp.h: Remove file.
16239         * m4/stdlib_h.m4: New file.
16240         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
16241
16242 2007-02-18  Bruno Haible  <bruno@clisp.org>
16243
16244         * modules/math-tests: New file.
16245         * tests/test-math.c: New file.
16246
16247         * modules/math: New file.
16248         * modules/mathl (Files): Remove lib/mathl.h.
16249         (Depends-on): Add math.
16250         (Makefile.am): Don't mention mathl.h.
16251         (Include): Use <math.h> instead of mathl.h.
16252         * lib/math_.h: New file.
16253         * lib/mathl.h: Remove file.
16254         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
16255         mathl.h.
16256         * lib/asinl.c: Likewise.
16257         * lib/atanl.c: Likewise.
16258         * lib/ceill.c: Likewise.
16259         * lib/cosl.c: Likewise.
16260         * lib/expl.c: Likewise.
16261         * lib/floorl.c: Likewise.
16262         * lib/frexpl.c: Likewise.
16263         * lib/ldexpl.c: Likewise.
16264         * lib/logl.c: Likewise.
16265         * lib/sincosl.c: Likewise.
16266         * lib/sinl.c: Likewise.
16267         * lib/sqrtl.c: Likewise.
16268         * lib/tanl.c: Likewise.
16269         * lib/trigl.c: Likewise.
16270         * m4/math_h.m4: New file.
16271         * MODULES.html.sh (Mathematics): Add math.
16272
16273 2007-02-17  Bruno Haible  <bruno@clisp.org>
16274
16275         * modules/wctype-tests: New file.
16276         * tests/test-wctype.c: New file.
16277
16278         * modules/wchar-tests: New file.
16279         * tests/test-wchar.c: New file.
16280
16281         * modules/unistd-tests: New file.
16282         * tests/test-unistd.c: New file.
16283
16284         * modules/time-tests: New file.
16285         * tests/test-time.c: New file.
16286
16287         * modules/sysexits-tests: New file.
16288         * tests/test-sysexits.c: New file.
16289
16290         * modules/sys_time-tests: New file.
16291         * tests/test-sys_time.c: New file.
16292
16293         * modules/sys_stat-tests: New file.
16294         * tests/test-sys_stat.c: New file.
16295
16296         * modules/sys_socket-tests: New file.
16297         * tests/test-sys_socket.c: New file.
16298
16299         * modules/sys_select-tests: New file.
16300         * tests/test-sys_select.c: New file.
16301
16302         * modules/string-tests: New file.
16303         * tests/test-string.c: New file.
16304
16305         * modules/stdbool-tests: New file.
16306         * tests/test-stdbool.c: New file.
16307
16308         * modules/netinet_in-tests: New file.
16309         * tests/test-netinet_in.c: New file.
16310
16311         * modules/inttypes-tests: New file.
16312         * tests/test-inttypes.c: New file.
16313
16314         * modules/fcntl-tests: New file.
16315         * tests/test-fcntl.c: New file.
16316
16317         * modules/byteswap-tests: New file.
16318         * tests/test-byteswap.c: New file.
16319
16320         * modules/arpa_inet-tests: New file.
16321         * tests/test-arpa_inet.c: New file.
16322
16323 2007-02-17  Bruno Haible  <bruno@clisp.org>
16324
16325         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16326         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16327         if the corresponding module is not enabled. Emit link warnings if
16328         the function is used nevertheless.
16329         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16330         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16331         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16332         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16333         * modules/inttypes (Depends-on): Add link-warning.
16334         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16335         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16336         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16337         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16338         * modules/imaxdiv (configure.ac): Likewise.
16339         * modules/strtoimax (configure.ac): Likewise.
16340         * modules/strtoumax (configure.ac): Likewise.
16341
16342 2007-02-17  Bruno Haible  <bruno@clisp.org>
16343
16344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16345         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16346         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16347         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16348
16349 2007-02-17  Bruno Haible  <bruno@clisp.org>
16350
16351         * modules/link-warning: New file.
16352         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16353         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16354         * modules/string (Depends-on): Add link-warning.
16355         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16356         string.h.
16357         * MODULES.html.sh (Support for building libraries and executables): Add
16358         link-warning.
16359
16360 2007-02-17  Bruno Haible  <bruno@clisp.org>
16361
16362         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16363         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16364         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16365         long lines.
16366
16367 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16368             Bruno Haible  <bruno@clisp.org>
16369
16370         * modules/tmpfile: New file.
16371         * lib/tmpfile.c: New file.
16372         * m4/tmpfile.m4: New file.
16373         * MODULES.html.sh (func_all_modules): New section "Input/output".
16374
16375 2007-02-15  Bruno Haible  <bruno@clisp.org>
16376
16377         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16378         (supports_delete_on_close): New function.
16379         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16380
16381 2007-02-14  Bruno Haible  <bruno@clisp.org>
16382
16383         * modules/mbspcasecmp-tests: New file.
16384         * tests/test-mbspcasecmp.sh: New file.
16385         * tests/test-mbspcasecmp.c: New file.
16386
16387         New module mbspcasecmp.
16388         * modules/mbspcasecmp: New file.
16389         * lib/mbspcasecmp.c: New file.
16390         * lib/string_.h (strncasecmp): Change warning message.
16391         (mbspcasecmp): New declaration.
16392         * m4/mbspcasecmp.m4: New file.
16393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16394         GNULIB_MBSPCASECMP.
16395         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16396         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16397
16398 2007-02-14  Bruno Haible  <bruno@clisp.org>
16399
16400         * modules/mbsncasecmp-tests: New file.
16401         * tests/test-mbsncasecmp.sh: New file.
16402         * tests/test-mbsncasecmp.c: New file.
16403
16404         New module mbsncasecmp.
16405         * modules/mbsncasecmp: New file.
16406         * lib/mbsncasecmp.c: New file.
16407         * lib/string_.h (mbsncasecmp): New declaration.
16408         * m4/mbsncasecmp.m4: New file.
16409         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16410         GNULIB_MBSNCASECMP.
16411         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
16412         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
16413
16414 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16415
16416         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
16417         Verify that it doesn't overlap with our flags.
16418         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
16419         do not have the desired effect in multibyte locales; instead, use
16420         mbscasecmp.
16421         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
16422         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
16423         we don't require GNU fnmatch ourselves (if our users require it, they
16424         should do so explicitly).
16425
16426         Fix regex code so it doesn't rely on strcasecmp.
16427         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16428         Otherwise, include gnulib's langinfo.h.
16429         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16430         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16431         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16432         * modules/regex (FILES): Remove m4/codeset.m4.
16433         (Depends-on): Add localcharset.  Remove strcase.
16434
16435 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16436
16437         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16438         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16439
16440 2007-02-13  Bruno Haible  <bruno@clisp.org>
16441
16442         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16444
16445 2007-02-12  Bruno Haible  <bruno@clisp.org>
16446
16447         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16448         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
16449         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
16450         time warning rather than a link error.
16451
16452 2007-02-12  Bruno Haible  <bruno@clisp.org>
16453
16454         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
16455         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16456         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16457
16458 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16459
16460         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
16461         args, not 2.
16462
16463 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16464
16465         New module 'time', so that apps can include <time.h> as per
16466         POSIX and GNU instead of separate include files like time_r.h
16467         and timegm.h.  This implementation tries out a simpler approach
16468         for replacing decls in standard include files (as compared to
16469         the string module), somewhat as an experiment.
16470
16471         * config/srclist.txt: Comment out mktime.c for now.
16472         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
16473         since it doesn't apply any more.  Use generic wording instead.
16474         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
16475         'time'.
16476         * lib/time_.h, m4/time_h.m4, modules/time: New files.
16477         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
16478         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
16479         Don't include <sys/types.h>; no longer needed since we assume C89.
16480         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
16481         * lib/strftime.c: Likewise.
16482         * lib/time_r.c: Likewise.
16483         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
16484         * lib/nanosleep.c: Include <time.h> first, to check interface.
16485         * lib/strptime.c: Likewise.
16486         * lib/time_r.c: Likewise.
16487         * lib/timegm.c: Likewise.
16488         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
16489         needed.
16490         * lib/timegm.c: Don't include timegm.h; no longer needed.
16491         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
16492         time.h now handles any problems in that area.
16493         (struct timespec, nanosleep): Remove; time.h now arranges for these.
16494         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
16495         that time.h defines struct timespec.
16496         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
16497         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
16498         handles that.
16499         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
16500         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
16501         needed.  Set REPLACE_LOCALTIME.
16502         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
16503         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
16504         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
16505         nanosleep; time_h.m4 now does that.  Don't require
16506         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
16507         module handles this now.
16508         * modules/getdate (Depends-on): Remove timespec.  Add time.
16509         * modules/nanosleep (Depends-on): Likewise.
16510         * modules/stat-time (Depends-on): Likewise.
16511         * modules/nanosleep (Include): Include time.h, not timespec.h.
16512         * modules/strptime (Files): Remove lib/strptime.h.
16513         (Depends-on): Add extensions, time.
16514         (Include): Include time.h, not strptime.h.
16515         * modules/time_r (Files): Remove lib/time_r.h.
16516         (Depends-on): Add time.
16517         (Include): Include time.h, not time_r.h.
16518         * modules/timegm: Likewise.
16519         * modules/timespec (Description): Now does timespec-related decls
16520         of our own, instead of struct timespec itself.
16521         (Depends-on): Add time; remove extensions.
16522         (Maintainer): Add self.
16523         * modules/utimecmp (Depends-on): Add time; remove timespec.
16524         * modules/utimens (Depends-on): Likewise.
16525         * modules/xnanosleep (Depends-on): Likewise.
16526
16527 2007-02-11  Bruno Haible  <bruno@clisp.org>
16528
16529         * lib/c-strstr.c: Include allocsa.h.
16530         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16531         * lib/c-strcasestr.c: Include allocsa.h.
16532         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16533         * lib/strcasestr.c: Include allocsa.h.
16534         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16535         * lib/mbsstr.c: Include allocsa.h.
16536         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16537         allocsa/freesa instead of malloc/free.
16538         * lib/mbscasestr.c: Include allocsa.h.
16539         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16540         allocsa/freesa instead of malloc/free.
16541         * modules/c-strstr (Depends-on): Add allocsa.
16542         * modules/c-strcasestr (Depends-on): Likewise.
16543         * modules/strcasestr (Depends-on): Likewise.
16544         * modules/mbsstr (Depends-on): Likewise.
16545         * modules/mbscasestr (Depends-on): Likewise.
16546
16547 2007-02-11  Bruno Haible  <bruno@clisp.org>
16548
16549         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
16550
16551         * modules/mbsspn-tests: New file.
16552         * tests/test-mbsspn.sh: New file.
16553         * tests/test-mbsspn.c: New file.
16554
16555 2007-02-11  Bruno Haible  <bruno@clisp.org>
16556
16557         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
16558
16559         * modules/mbspbrk-tests: New file.
16560         * tests/test-mbspbrk.sh: New file.
16561         * tests/test-mbspbrk.c: New file.
16562
16563 2007-02-11  Bruno Haible  <bruno@clisp.org>
16564
16565         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
16566         unneeded cast.
16567
16568         * modules/mbscspn-tests: New file.
16569         * tests/test-mbscspn.sh: New file.
16570         * tests/test-mbscspn.c: New file.
16571
16572 2007-02-11  Bruno Haible  <bruno@clisp.org>
16573
16574         * modules/mbscasecmp-tests: New file.
16575         * tests/test-mbscasecmp.sh: New file.
16576         * tests/test-mbscasecmp.c: New file.
16577
16578 2007-02-11  Bruno Haible  <bruno@clisp.org>
16579
16580         Ensure O(n) worst-case complexity of mbscasestr.
16581         * lib/mbscasestr.c: Include stdbool.h.
16582         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16583         functions.
16584         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
16585         the bookkeeping indicates that it's worth it.
16586         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
16587
16588         * modules/mbscasestr-tests: New file.
16589         * tests/test-mbscasestr1.c: New file.
16590         * tests/test-mbscasestr2.sh: New file.
16591         * tests/test-mbscasestr2.c: New file.
16592         * tests/test-mbscasestr3.sh: New file.
16593         * tests/test-mbscasestr3.c: New file.
16594         * tests/test-mbscasestr4.sh: New file.
16595         * tests/test-mbscasestr4.c: New file.
16596         * m4/locale-tr.m4: New file.
16597
16598 2007-02-11  Bruno Haible  <bruno@clisp.org>
16599
16600         Ensure O(n) worst-case complexity of mbsstr.
16601         * lib/mbsstr.c: Include stdbool.h.
16602         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16603         functions.
16604         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
16605         bookkeeping indicates that it's worth it.
16606         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
16607
16608         * modules/mbsstr-tests: New file.
16609         * tests/test-mbsstr1.c: New file.
16610         * tests/test-mbsstr2.sh: New file.
16611         * tests/test-mbsstr2.c: New file.
16612         * tests/test-mbsstr3.sh: New file.
16613         * tests/test-mbsstr3.c: New file.
16614         * m4/locale-fr.m4: New file.
16615
16616 2007-02-11  Bruno Haible  <bruno@clisp.org>
16617
16618         * lib/mbsrchr.c (mbsrchr): Fix bug.
16619
16620         * modules/mbsrchr-tests: New file.
16621         * tests/test-mbsrchr.sh: New file.
16622         * tests/test-mbsrchr.c: New file.
16623
16624 2007-02-11  Bruno Haible  <bruno@clisp.org>
16625
16626         * lib/mbschr.c (mbschr): Fix bug.
16627
16628         * modules/mbschr-tests: New file.
16629         * tests/test-mbschr.sh: New file.
16630         * tests/test-mbschr.c: New file.
16631         * m4/locale-zh.m4: New file.
16632
16633 2007-02-11  Bruno Haible  <bruno@clisp.org>
16634
16635         Support for copying multibyte string iterators.
16636         * lib/mbiter.h: Include <string.h>.
16637         (mbiter_multi_copy): New function.
16638         (mbi_copy): New macro.
16639         * lib/mbuiter.h: Include <string.h>.
16640         (mbuiter_multi_copy): New function.
16641         (mbui_copy): New macro.
16642
16643 2007-02-11  Bruno Haible  <bruno@clisp.org>
16644
16645         New module mbslen.
16646         * modules/mbslen: New file.
16647         * lib/mbslen.c: New file.
16648         * lib/string_.h (mbslen): New declaration.
16649         * m4/mbslen.m4: New file.
16650         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16651         GNULIB_MBSLEN.
16652         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
16653         * MODULES.html.sh (Internationalization functions): Add mbslen.
16654
16655 2007-02-11  Bruno Haible  <bruno@clisp.org>
16656
16657         Ensure O(n) worst-case complexity of strcasestr substitute.
16658         * lib/strcasestr.c: Include stdbool.h.
16659         (knuth_morris_pratt): New function.
16660         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16661         bookkeeping indicates that it's worth it.
16662         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
16663
16664         * modules/strcasestr-tests: New file.
16665         * tests/test-strcasestr.c: New file.
16666
16667 2007-02-11  Bruno Haible  <bruno@clisp.org>
16668
16669         Ensure O(n) worst-case complexity of c_strcasestr.
16670         * lib/c-strcasestr.c: Include stdbool.h, string.h.
16671         (knuth_morris_pratt): New function.
16672         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
16673         the bookkeeping indicates that it's worth it.
16674         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
16675
16676         * modules/c-strcasestr-tests: New file.
16677         * tests/test-c-strcasestr.c: New file.
16678
16679 2007-02-11  Bruno Haible  <bruno@clisp.org>
16680
16681         Ensure O(n) worst-case complexity of c_strstr.
16682         * lib/c-strstr.c: Include stdbool.h, string.h.
16683         (knuth_morris_pratt): New function.
16684         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16685         bookkeeping indicates that it's worth it.
16686         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
16687
16688         * lib/c-strstr.c: Complete rewrite for maintainability.
16689
16690         * modules/c-strstr-tests: New file.
16691         * tests/test-c-strstr.c: New file.
16692
16693 2007-02-11  Bruno Haible  <bruno@clisp.org>
16694
16695         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
16696         5.2.1 and earlier, whereby \055 was treated just like the range
16697         delimiter '-'.
16698         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16699
16700 2007-02-08  Bruno Haible  <bruno@clisp.org>
16701
16702         * modules/regex (Depends-on): Add stdbool.
16703         Reported by Dalibor Topic <robilad@kaffe.org>.
16704
16705 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16706
16707         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
16708         Prefer returning from main to exiting from it.
16709         Remove unnecessary parens after sizeof.
16710
16711 2007-02-05  Bruno Haible  <bruno@clisp.org>
16712
16713         New module mbssep.
16714         * modules/mbssep: New file.
16715         * lib/mbssep.c: New file.
16716         * lib/string_.h (strsep): Add a conditional link warning.
16717         (mbssep): New declaration.
16718         * m4/mbssep.m4: New file.
16719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16720         GNULIB_MBSSEP.
16721         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16722         * MODULES.html.sh (Internationalization functions): Add mbssep.
16723
16724 2007-02-05  Bruno Haible  <bruno@clisp.org>
16725
16726         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16727         Optimize search in case of 1 delimiter.
16728
16729 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16730
16731         * lib/acl.h: Include sys/types.h before sys/acl.h.
16732
16733 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16734
16735         Merge upstream fix for glibc bugzilla #3957:
16736
16737         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
16738
16739         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16740         bit for RE_HAT_LISTS_NOT_NEWLINE.
16741         (build_charclass_op): Remove bogus comment.
16742
16743 2007-02-05  Simon Josefsson  <simon@josefsson.org>
16744
16745         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
16746
16747 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16748
16749         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
16750         * lib/memmem.c [!defined _LIBC]: Include config.h.
16751
16752 2007-02-04  Bruno Haible  <bruno@clisp.org>
16753
16754         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
16755         warning message.
16756
16757 2007-02-04  Bruno Haible  <bruno@clisp.org>
16758
16759         New module mbstok_r.
16760         * modules/mbstok_r: New file.
16761         * lib/mbstok_r.c: New file.
16762         * lib/string_.h (strtok_r): Change argument names to match the
16763         comments. Add a conditional link warning.
16764         (mbstok_r): New declaration.
16765         * m4/mbstok_r.m4: New file.
16766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16767         GNULIB_MBSTOK_R.
16768         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
16769         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
16770
16771 2007-02-04  Bruno Haible  <bruno@clisp.org>
16772
16773         New module mbsspn.
16774         * modules/mbsspn: New file.
16775         * lib/mbsspn.c: New file.
16776         * lib/string_.h (strspn): Add a conditional link warning.
16777         (mbsspn): New declaration.
16778         * m4/mbsspn.m4: New file.
16779         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16780         GNULIB_MBSSPN.
16781         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
16782         * MODULES.html.sh (Internationalization functions): Add mbsspn.
16783
16784 2007-02-04  Bruno Haible  <bruno@clisp.org>
16785
16786         New module mbspbrk.
16787         * modules/mbspbrk: New file.
16788         * lib/mbspbrk.c: New file.
16789         * lib/string_.h (strpbrk): Add a conditional link warning.
16790         (mbspbrk): New declaration.
16791         * m4/mbspbrk.m4: New file.
16792         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16793         GNULIB_MBSPBRK.
16794         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
16795         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
16796
16797 2007-02-04  Bruno Haible  <bruno@clisp.org>
16798
16799         New module mbscspn.
16800         * modules/mbscspn: New file.
16801         * lib/mbscspn.c: New file.
16802         * lib/string_.h (strcspn): Add a conditional link warning.
16803         (mbscspn): New declaration.
16804         * m4/mbscspn.m4: New file.
16805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16806         GNULIB_MBSCSPN.
16807         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
16808         * MODULES.html.sh (Internationalization functions): Add mbscspn.
16809
16810 2007-02-04  Bruno Haible  <bruno@clisp.org>
16811
16812         New module mbscasestr, reduced goal of strcasestr.
16813         * modules/mbscasestr: New file.
16814         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
16815         (mbscasestr): Renamed from strcasestr.
16816         * lib/strcasestr.c: Don't include mbuiter.h.
16817         (strcasestr): Remove support for multibyte locales.
16818         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
16819         Change the conditional link warning.
16820         (mbscasestr): New declaration.
16821         * m4/mbscasestr.m4: New file.
16822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
16823         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
16824         REPLACE_STRCASESTR.
16825         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
16826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16827         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16828         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
16829         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
16830         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16831         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
16832         (Depends-on): Remove mbuiter.
16833         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
16834
16835 2007-02-04  Bruno Haible  <bruno@clisp.org>
16836
16837         Simplify handling of strncasecmp.
16838         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
16839         the conditional link warning.
16840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16841         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
16842         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
16843         * modules/strcase (configure.ac): Don't invoke
16844         gl_STRING_MODULE_INDICATOR.
16845         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
16846
16847 2007-02-04  Bruno Haible  <bruno@clisp.org>
16848
16849         New module mbscasecmp, reduced goal of strcasecmp.
16850         * modules/mbscasecmp: New file.
16851         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
16852         (mbscasecmp): Renamed from strcasecmp.
16853         * lib/strcasecmp.c: Don't include mbuiter.h.
16854         (strcasecmp): Remove support for multibyte locales.
16855         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
16856         Change the conditional link warning.
16857         (mbscasecmp): New declaration.
16858         * m4/mbscasecmp.m4: New file.
16859         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
16860         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
16861         REPLACE_STRCASECMP.
16862         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
16863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16864         GNULIB_MBSCASECMP.
16865         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
16866         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
16867         * modules/strcase (Files): Remove m4/mbrtowc.m4.
16868         (Depends-on): Remove mbuiter.
16869         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
16870
16871 2007-02-04  Bruno Haible  <bruno@clisp.org>
16872
16873         New module mbsstr. Remove module strstr.
16874         * modules/mbsstr: New file.
16875         * modules/strstr: Remove file.
16876         * lib/mbsstr.c: Renamed from lib/strstr.c.
16877         (mbsstr): Renamed from strstr.
16878         * lib/string_.h (strstr): Remove declaration. Change the conditional
16879         link warning.
16880         (mbsstr): New declaration.
16881         * m4/mbsstr.m4: New file.
16882         * m4/strstr.m4: Remove file.
16883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16884         REPLACE_STRSTR.
16885         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
16886         Don't initialize GNULIB_STRSTR.
16887         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
16888         substitute GNULIB_STRSTR and REPLACE_STRSTR.
16889         * MODULES.html.sh (Internationalization functions): Add mbsstr.
16890         (Support for systems lacking ANSI C 89): Remove strstr.
16891
16892 2007-02-04  Bruno Haible  <bruno@clisp.org>
16893
16894         New module mbsrchr.
16895         * modules/mbsrchr: New file.
16896         * lib/mbsrchr.c: New file.
16897         * lib/string_.h (strrchr): Add a conditional link warning.
16898         (mbsrchr): New declaration.
16899         * m4/mbsrchr.m4: New file.
16900         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16901         GNULIB_MBSRCHR.
16902         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
16903         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
16904
16905 2007-02-04  Bruno Haible  <bruno@clisp.org>
16906
16907         New module mbschr.
16908         * modules/mbschr: New file.
16909         * lib/mbschr.c: New file.
16910         * lib/string_.h (strchr): Add a conditional link warning.
16911         (mbschr): New declaration.
16912         * m4/mbschr.m4: New file.
16913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16914         GNULIB_MBSCHR.
16915         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
16916         * MODULES.html.sh (Internationalization functions): Add mbschr.
16917
16918 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16919
16920         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
16921
16922         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
16923
16924 2007-02-04  Bruno Haible  <bruno@clisp.org>
16925
16926         New module description section 'configure.ac-early'.
16927         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
16928         (func_get_autoconf_early_snippet): New function.
16929         (func_import, func_create_testdir): Use it. Remove special cases for
16930         modules 'extensions' and 'lock'.
16931         * modules/extensions (configure.ac-early): Require
16932         gl_USE_SYSTEM_EXTENSIONS.
16933         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
16934
16935 2007-02-04  Bruno Haible  <bruno@clisp.org>
16936
16937         Make use of gcj-4.3's -fsource and -ftarget option.
16938         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
16939         and if so try the options -fsource and -ftarget.
16940         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
16941         source_version, ftarget_option, target_version arguments.
16942         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
16943         (is_envjavac_oldgcj_14_14_usable): Renamed from
16944         is_envjavac_gcj_14_14_usable.
16945         (is_envjavac_oldgcj_14_13_usable): Renamed from
16946         is_envjavac_gcj_14_13_usable.
16947         (is_gcj_present): Update.
16948         (is_gcj_43, is_gcj43_usable): New functions.
16949         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
16950         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
16951         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
16952         try the options -fsource and -ftarget.
16953
16954 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16955
16956         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
16957         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
16958         larger value.
16959
16960 2007-02-03  Jim Meyering  <jim@meyering.net>
16961
16962         Give tools a better chance to allocate space for very large buffers.
16963         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
16964
16965         Make pwd and readlink work also when run with an unreadable parent dir
16966         on systems with openat support.
16967         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
16968         provided getcwd function, even when we have openat support.
16969         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
16970
16971 2007-02-02  Bruno Haible  <bruno@clisp.org>
16972
16973         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16974         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
16975         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
16976         portability problems if one of these functions is only used on specific
16977         platforms.
16978         Reported by Paul Eggert.
16979
16980 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16981
16982         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
16983         is causing more trouble than it's curing.
16984         * lib/regex_internal.h (__mempcpy): Remove.
16985         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
16986         (and make the code a tad smaller to boot).
16987         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
16988
16989 2007-02-02  Jim Meyering  <jim@meyering.net>
16990
16991         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
16992         section, not in the Makefile.am: one.
16993
16994 2007-02-02  Eric Blake  <ebb9@byu.net>
16995
16996         * lib/strchrnul.c: Always include config.h first.
16997
16998         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
16999         gnulib strstr is not necessary here.
17000
17001 2007-02-02  Simon Josefsson  <simon@josefsson.org>
17002
17003         * m4/socklen.m4: Fix typo.
17004
17005 2007-02-02  Eric Blake  <ebb9@byu.net>
17006
17007         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
17008         * modules/netinet_in (Makefile.am): Likewise.
17009
17010 2007-02-01  Bruno Haible  <bruno@clisp.org>
17011
17012         * lib/string_.h (GL_LINK_WARNING): New macro.
17013         (strcasecmp, strstr, strcasestr): If provided by the system,
17014         conditionally define as a macro that leads to a warning instead of to
17015         an error.
17016         (strncasecmp): Conditionally define as a macro that leads to a warning.
17017
17018 2007-02-01  Karl Berry  <karl@gnu.org>
17019
17020         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
17021
17022 2007-02-01  Bruno Haible  <bruno@clisp.org>
17023
17024         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
17025         renamings.
17026
17027 2007-02-01  Eric Blake  <ebb9@byu.net>
17028
17029         * modules/regex (Depends-on): Revert dependence on mempcpy.
17030         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
17031         module's definition of mempcpy.
17032         Reported by Paul Eggert.
17033
17034 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
17035
17036         * lib/string_.h: If the gnulib module XYZ is not present, undefine
17037         the symbol XYZ before redefining it.  This fixes a problem with
17038         programs that don't use XYZ, when compiled on systems that define
17039         XYZ to something else.
17040
17041 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17042
17043         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
17044         occurs when "mkdir -m foo" creates a setgid directory that is (1)
17045         writeable to group or other and (2) is intended to have a special
17046         mode bit that is set or cleared.  In such a case, the directory
17047         should be neither group- nor other-writeable until the special
17048         mode bits are right.
17049
17050 2007-01-31  Eric Blake  <ebb9@byu.net>
17051
17052         * modules/mountlist (Depends-on): Add strstr.
17053
17054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
17055         bug.
17056         * modules/string (Makefile.am): Remove redundant replacement.
17057         * modules/regex (Depends-on): Add mempcpy.
17058
17059 2007-01-31  Bruno Haible  <bruno@clisp.org>
17060
17061         New module description field 'Link'.
17062         * gnulib-tool (func_usage): Document --extract-link-directive.
17063         (sed_extract_prog): Recognize 'Link' directive.
17064         (func_get_link_directive): New function.
17065         (func_import): Show summary of link directives.
17066         Handle --extract-link-directive option.
17067         * modules/acl (Link): New section.
17068         * modules/clock-time (Link): New section.
17069         * modules/euidaccess (Link): New section.
17070         * modules/gettext (Link): New section.
17071         * modules/iconv (Link): New section.
17072         * modules/lock (Link): New section.
17073         * modules/nanosleep (Link): New section.
17074         * modules/readline (Link): New section.
17075
17076 2007-01-27  Bruno Haible  <bruno@clisp.org>
17077
17078         Enforce the use of gnulib modules for unportable <string.h> functions.
17079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
17080         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
17081         (gl_HEADER_STRING_H_BODY): Require it.
17082         * lib/string_.h: If the gnulib module XYZ is not present, redefine
17083         the symbol XYZ to one that gives a link error.
17084         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
17085         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
17086         * modules/mempcpy (configure.ac): Likewise.
17087         * modules/memrchr (configure.ac): Likewise.
17088         * modules/stpcpy (configure.ac): Likewise.
17089         * modules/stpncpy (configure.ac): Likewise.
17090         * modules/strcase (configure.ac): Likewise.
17091         * modules/strcasestr (configure.ac): Likewise.
17092         * modules/strchrnul (configure.ac): Likewise.
17093         * modules/strdup (configure.ac): Likewise.
17094         * modules/strndup (configure.ac): Likewise.
17095         * modules/strnlen (configure.ac): Likewise.
17096         * modules/strpbrk (configure.ac): Likewise.
17097         * modules/strsep (configure.ac): Likewise.
17098         * modules/strstr (configure.ac): Likewise.
17099         * modules/strtok_r (configure.ac): Likewise.
17100
17101 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
17102
17103         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
17104
17105 2007-01-30  Jim Meyering  <jim@meyering.net>
17106
17107         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
17108
17109 2007-01-29  Bruno Haible  <bruno@clisp.org>
17110
17111         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
17112         * lib/execute.c: Likewise.
17113         * lib/pipe.c: Likewise.
17114         * lib/printf-args.h: Likewise.
17115         * lib/printf-args.c: Likewise.
17116         * lib/printf-parse.c: Likewise.
17117         * lib/vasnprintf.c: Likewise.
17118
17119 2007-01-29  Eric Blake  <ebb9@byu.net>
17120
17121         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
17122         declaration.
17123
17124 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17125
17126         * lib/strptime.h (strptime): Use 'restrict' for args where
17127         POSIX requires this.
17128         * lib/strptime.c (strptime): Likewise.
17129         Change license notice from LGPL to GPL, since gnulib-tool will
17130         change this as needed.
17131         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
17132         defined.
17133         Include "strptime.h" first, to check interface.
17134         Do not #undef _LIBC and _NL_CURRENT.
17135         Do not include <stdlib.h>; no longer needed.
17136         Include "time_r.h" and declare ptime_locale_status
17137         only if _LIBC is not defined.
17138         (__P): Remove unused macro.
17139         (match_string): Bring back glibc version, but use it only if _LIBC
17140         is defined.
17141         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
17142         Remove unnecessary assertion and abort() call.
17143         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
17144         * m4/strptime.m4: Fix serial number comment.
17145         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
17146         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
17147         (Depends-on): Add time_r.
17148
17149 2007-01-29  Bruno Haible  <bruno@clisp.org>
17150
17151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17152         strptime.
17153         * modules/strptime (Depends-on): Add stdbool.
17154         * lib/strptime.h: Include <time.h> always. Add comments.
17155
17156 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17157
17158         * modules/strptime: New file.
17159         * lib/strptime.h: New file.
17160         * lib/strptime.c: New file.
17161         * m4/strptime.m4: New file.
17162
17163 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17164
17165         * MODULES.html.sh: New module mpsort.
17166         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
17167
17168         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
17169         a circularity problem with HP-UX ia64 reported by Bob Proulx in
17170         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
17171         All uses changed.
17172         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
17173         All uses changed.
17174         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
17175         to _Restrict_.
17176         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
17177         the parameter matches the prototype.
17178
17179 2007-01-28  Jim Meyering  <jim@meyering.net>
17180
17181         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17182         sys/time.h here, reverting that part of the previous patch:
17183         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
17184
17185 2007-01-28  Bruno Haible  <bruno@clisp.org>
17186
17187         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
17188         value of $(SYS_TIME_H).
17189         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
17190         remove it conditionally, too. [added by Jim Meyering]
17191         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
17192         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17193         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
17194         GETTIMEOFDAY_REPLACEMENT to 1.
17195
17196 2007-01-28  Bruno Haible  <bruno@clisp.org>
17197
17198         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
17199         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
17200         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
17201         Set UNISTD_H instead of UNISTD_H2.
17202         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
17203
17204 2007-01-28  Bruno Haible  <bruno@clisp.org>
17205
17206         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
17207         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
17208
17209 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17210
17211         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
17212         (func_create_testdir): Ensure C locale for `grep' and `tr'
17213         character ranges.
17214         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
17215         ACLOCAL_AMFLAGS parsing state machine.
17216
17217 2007-01-27  Bruno Haible  <bruno@clisp.org>
17218
17219         * modules/unistr/base: Update.
17220
17221 2007-01-27  Bruno Haible  <bruno@clisp.org>
17222
17223         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
17224         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
17225         * modules/unistr/u32-mbtouc-unsafe: Renamed from
17226         modules/unistr/u32-mbtouc.
17227         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
17228         * lib/unistr.h: Update.
17229         * lib/linebreak.c: Update.
17230         * modules/unistr/u32-mbtouc: Renamed from
17231         modules/unistr/u32-mbtouc-safe.
17232         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
17233         * lib/unistr.h: Update.
17234         * lib/unistr/u32-to-u8.c: Update.
17235         * lib/unistr/u32-to-u16.c: Update.
17236
17237 2007-01-27  Bruno Haible  <bruno@clisp.org>
17238
17239         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
17240         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
17241         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
17242         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
17243         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
17244         * modules/unistr/u16-mbtouc-unsafe: Renamed from
17245         modules/unistr/u16-mbtouc.
17246         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
17247         * lib/unistr.h: Update.
17248         * lib/linebreak.c: Update.
17249         * modules/linebreak: Update.
17250         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
17251         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
17252         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
17253         * modules/unistr/u16-mbtouc: Renamed from
17254         modules/unistr/u16-mbtouc-safe.
17255         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
17256         * lib/unistr.h: Update.
17257         * lib/unistr/u16-to-u8.c: Update.
17258         * modules/unistr/u16-to-u8: Update.
17259         * lib/unistr/u16-to-u32.c: Update.
17260         * modules/unistr/u16-to-u32: Update.
17261
17262 2007-01-27  Bruno Haible  <bruno@clisp.org>
17263
17264         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
17265         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
17266         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
17267         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
17268         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
17269         * modules/unistr/u8-mbtouc-unsafe: Renamed from
17270         modules/unistr/u8-mbtouc.
17271         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
17272         * lib/unistr.h: Update.
17273         * lib/striconveh.c: Update.
17274         * modules/striconveh: Update.
17275         * lib/linebreak.c: Update.
17276         * modules/linebreak: Update.
17277         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
17278         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
17279         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
17280         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
17281         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
17282         * lib/unistr.h: Update.
17283         * lib/striconveh.c: Update.
17284         * modules/striconveh: Update.
17285         * lib/unistr/u8-to-u16.c: Update.
17286         * modules/unistr/u8-to-u16: Update.
17287         * lib/unistr/u8-to-u32.c: Update.
17288         * modules/unistr/u8-to-u32: Update.
17289
17290 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17291
17292         Sync from Libtool.
17293         * lib/argz.c: Do not include strings.h nor memory.h, include
17294         string.h unconditionally.  Patch by Simon Josefsson.
17295
17296 2007-01-27  Bruno Haible  <bruno@clisp.org>
17297
17298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
17299         from gl_HEADER_STRING_H_BODY.
17300         (gl_HEADER_STRING_H_BODY): Require it.
17301         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
17302         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17303         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17304         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17305         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17306         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
17307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17308         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17309         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17310         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17311         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17312         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17313         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17314         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17315         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17316
17317 2007-01-27  Bruno Haible  <bruno@clisp.org>
17318
17319         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17320         check_PROGRAMS into noinst_PROGRAMS.
17321         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17322         check_PROGRAMS in this case.
17323         (func_import): Set for_test to false.
17324         (func_create_testdir): Set for_test to true.
17325
17326 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17327             Bruno Haible  <bruno@clisp.org>
17328
17329         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17330         (Depends-on): Add string.
17331         (Includes): Use <string.h> instead of strcasestr.h.
17332         * modules/string (Makefile.am): Also substitute the value of
17333         REPLACE_STRCASESTR.
17334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17335         assume strcasestr is declared in <string.h> not <strings.h>. Also
17336         set REPLACE_STRCASESTR.
17337         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17338         REPLACE_STRCASESTR.
17339         * lib/strcasestr.h: Remove file.
17340         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17341         * lib/string_.h (strcasestr): New declaration.
17342
17343 2007-01-27  Bruno Haible  <bruno@clisp.org>
17344
17345         * lib/string_.h: Use 'extern'.
17346
17347 2007-01-27  Jim Meyering  <jim@meyering.net>
17348
17349         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17350         of set-but-not-used local, "q".
17351
17352         * lib/mempcpy.c: Include <config.h> before <string.h>.
17353         This fixes a compilation error on HP-UX, due to the system's
17354         "restrict"-using mempcpy prototype.
17355
17356 2007-01-26  Bruno Haible  <bruno@clisp.org>
17357
17358         Small optimization.
17359         * lib/javacomp.c: Include c-strstr.h.
17360          (is_envjavac_gcj): Use c_strstr instead of strstr.
17361         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17362
17363 2007-01-26  Bruno Haible  <bruno@clisp.org>
17364
17365         * MODULES.html.sh (Unicode string functions): Add the new modules.
17366
17367         * modules/uniconv/u32-strconv-to-locale: New file.
17368         * lib/uniconv/u32-strconv-to-locale.c: New file.
17369
17370         * modules/uniconv/u16-strconv-to-locale: New file.
17371         * lib/uniconv/u16-strconv-to-locale.c: New file.
17372
17373         * modules/uniconv/u8-strconv-to-locale: New file.
17374         * lib/uniconv/u8-strconv-to-locale.c: New file.
17375
17376         * modules/uniconv/u32-strconv-from-locale: New file.
17377         * lib/uniconv/u32-strconv-from-locale.c: New file.
17378
17379         * modules/uniconv/u16-strconv-from-locale: New file.
17380         * lib/uniconv/u16-strconv-from-locale.c: New file.
17381
17382         * modules/uniconv/u8-strconv-from-locale: New file.
17383         * lib/uniconv/u8-strconv-from-locale.c: New file.
17384
17385         * modules/uniconv/u32-strconv-to-enc: New file.
17386         * lib/uniconv/u32-strconv-to-enc.c: New file.
17387         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17388         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17389
17390         * modules/uniconv/u16-strconv-to-enc: New file.
17391         * lib/uniconv/u16-strconv-to-enc.c: New file.
17392         * lib/uniconv/u-strconv-to-enc.h: New file.
17393         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17394         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17395
17396         * modules/uniconv/u8-strconv-to-enc: New file.
17397         * lib/uniconv/u8-strconv-to-enc.c: New file.
17398         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17399         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17400
17401         * modules/uniconv/u32-strconv-from-enc: New file.
17402         * lib/uniconv/u32-strconv-from-enc.c: New file.
17403         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17404         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17405
17406         * modules/uniconv/u16-strconv-from-enc: New file.
17407         * lib/uniconv/u16-strconv-from-enc.c: New file.
17408         * modules/uniconv/u16-strconv-from-enc-tests: New file.
17409         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
17410
17411         * modules/uniconv/u8-strconv-from-enc: New file.
17412         * lib/uniconv/u8-strconv-from-enc.c: New file.
17413         * lib/uniconv/u-strconv-from-enc.h: New file.
17414         * modules/uniconv/u8-strconv-from-enc-tests: New file.
17415         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
17416
17417         * modules/uniconv/u32-conv-from-enc: New file.
17418         * lib/uniconv/u32-conv-from-enc.c: New file.
17419         * modules/uniconv/u32-conv-from-enc-tests: New file.
17420         * tests/uniconv/test-u32-conv-from-enc.c: New file.
17421
17422         * modules/uniconv/u16-conv-from-enc: New file.
17423         * lib/uniconv/u16-conv-from-enc.c: New file.
17424         * lib/uniconv/u-conv-from-enc.h: New file.
17425         * modules/uniconv/u16-conv-from-enc-tests: New file.
17426         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17427
17428         * modules/uniconv/u8-conv-from-enc: New file.
17429         * lib/uniconv/u8-conv-from-enc.c: New file.
17430         * modules/uniconv/u8-conv-from-enc-tests: New file.
17431         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17432
17433         * modules/uniconv/base: New file.
17434         * lib/uniconv.h: New file.
17435
17436 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17437
17438         * doc/gnulib-tool.texi (Initial import): Update to match current
17439         behavior with strdup module.
17440         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17441         * lib/memmem.h: Remove; all uses removed.  This is now done
17442         by <string.h>.
17443         * lib/mempcpy.h: Likewise.
17444         * lib/memrchr.h: Likewise.
17445         * lib/stpcpy.h: Likewise.
17446         * lib/stpncpy.h: Likewise.
17447         * lib/strcase.h: Likewise.
17448         * lib/strchrnul.h: Likewise.
17449         * lib/strdup.h: Likewise.
17450         * lib/strndup.h: Likewise.
17451         * lib/strnlen.h: Likewise.
17452         * lib/strpbrk.h: Likewise.
17453         * lib/strsep.h: Likewise.
17454         * lib/strstr.h: Likewise.
17455         * lib/strtok_r.h: Likewise.
17456         * lib/string_.h: New file.
17457         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
17458         Rely on <string.h> instead.
17459         * lib/canon-host.c: Likewise.
17460         * lib/chdir-long.c: Likewise.
17461         * lib/concatpath.c: Likewise.
17462         * lib/exclude.c: Likewise.
17463         * lib/fchdir.c: Likewise.
17464         * lib/getaddrinfo.c: Likewise.
17465         * lib/getcwd.c: Likewise.
17466         * lib/getsubopt.c: Likewise.
17467         * lib/glob.c: Likewise.
17468         * lib/hard-locale.c: Likewise.
17469         * lib/iconvme.c: Likewise.
17470         * lib/javacomp.c: Likewise.
17471         * lib/mempcpy.c: Likewise.
17472         * lib/memrchr.c: Likewise.
17473         * lib/regex_internal.h: Likewise.
17474         * lib/stpncpy.c: Likewise.
17475         * lib/strcasecmp.c: Likewise.
17476         * lib/strchrnul.c: Likewise.
17477         * lib/strdup.c: Likewise.
17478         * lib/striconv.c: Likewise.
17479         * lib/striconveh.c: Likewise.
17480         * lib/striconveha.c: Likewise.
17481         * lib/strncasecmp.c: Likewise.
17482         * lib/strndup.c: Likewise.
17483         * lib/strnlen.c: Likewise.
17484         * lib/strsep.c: Likewise.
17485         * lib/strstr.c: Likewise.
17486         * lib/strtok_r.c: Likewise.
17487         * lib/userspec.c: Likewise.
17488         * lib/w32spawn.h: Likewise.
17489         * lib/xstrndup.c: Likewise.
17490         * lib/mountlist.c (strstr): Remove decl.
17491         * m4/string_h.m4: New file.
17492         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
17493         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
17494         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
17495         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
17496         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
17497         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
17498         Set REPLACE_STRCASECMP if necessary.
17499         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
17500         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
17501         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
17502         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
17503         HAVE_DECL_STRDUP if necessary.
17504         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
17505         since gl_FUNC_STRNDUP does that now.
17506         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
17507         Check for decl here...
17508         (gl_PREREQ_STRNLEN): ... not here.
17509         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
17510         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
17511         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
17512         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
17513         necessary.
17514         * modules/string: New file.
17515         * modules/memmem (Files): Remove special-purpose include file.
17516         (Depends-on): Add string.
17517         (Include): Include <string.h>, not the removed file.
17518         * modules/mempcpy: Likewise.
17519         * modules/memrchr: Likewise.
17520         * modules/stpcpy: Likewise.
17521         * modules/stpncpy: Likewise.
17522         * modules/strcase: Likewise.
17523         * modules/strchrnul: Likewise.
17524         * modules/strdup: Likewise.
17525         * modules/strndup: Likewise.
17526         * modules/strnlen: Likewise.
17527         * modules/strpbrk: Likewise.
17528         * modules/strsep: Likewise.
17529         * modules/strstr: Likewise.
17530         * modules/strtok_r: Likewise.
17531         * tests/test-dirname.c: Don't include "strdup.h", since
17532         <string.h> now suffices.
17533         * tests/test-memmem.c: Don't include "memmem.h", since
17534         <string.h> now suffices.
17535
17536 2007-01-25  Bruno Haible  <bruno@clisp.org>
17537
17538         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
17539         *resultp is 0.
17540
17541         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
17542         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
17543         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
17544         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
17545
17546         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
17547         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
17548         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
17549         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
17550         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
17551         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
17552
17553 2007-01-24  Bruno Haible  <bruno@clisp.org>
17554
17555         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
17556         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
17557         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
17558         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
17559         gl_FUNC_FTS_CORE.
17560         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
17561         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
17562         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17563         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
17564         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
17565         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
17566         gl_FUNC_FCHOWNAT.
17567         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
17568         gl_FUNC_STRFTIME.
17569         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
17570         Reported by Ralf Wildenhues.
17571
17572 2007-01-24  Bruno Haible  <bruno@clisp.org>
17573
17574         Drop AC_REQUIRE calls that are redundant with the module dependencies.
17575         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
17576         gl_GETADDRINFO.
17577         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
17578         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
17579         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
17580
17581 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17582
17583         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
17584         Don't use 'exit'; just return from 'main'.
17585         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
17586
17587         * lib/fnmatch_.h: Readjust white space and comments to match
17588         glibc, to avoid spurious diffs.
17589
17590 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17591
17592         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
17593         2004-12-01 change by Jakub Jelinek, since this code won't compile
17594         if !LIBC.  Problem reported by Bob Proulx.
17595
17596 2007-01-23  Bruno Haible  <bruno@clisp.org>
17597
17598         * lib/striconveh.c: Include c-strcaseeq.h.
17599         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
17600         * modules/striconveh (Depends-on): Add c-strcaseeq.
17601
17602 2007-01-23  Bruno Haible  <bruno@clisp.org>
17603
17604         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
17605
17606         * modules/c-strcaseeq: New file.
17607         * lib/c-strcaseeq.h: New file.
17608
17609         * modules/streq: New file.
17610         * lib/streq.h: New file.
17611
17612 2007-01-23  Bruno Haible  <bruno@clisp.org>
17613
17614         * modules/striconveha-tests: New file.
17615         * tests/test-striconveha.c: New file.
17616
17617         * lib/striconveha.h: Include <stdbool.h>.
17618         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
17619         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
17620         (mem_iconveha_notranslit): Renamed from mem_iconveha.
17621         (mem_iconveha): New function.
17622         (str_iconveha_notranslit): Renamed from str_iconveha.
17623         (str_iconveha): New function.
17624         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
17625         c-strcase.
17626
17627 2007-01-23  Bruno Haible  <bruno@clisp.org>
17628
17629         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
17630         encodings without forgiving before trying any encoding with handler.
17631         (str_iconveha): Try all encodings without forgiving before trying any
17632         encoding with handler.
17633
17634 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17635
17636         Import the following changes from libc.
17637
17638         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17639
17640         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
17641
17642         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
17643
17644         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
17645         normal_bracket label.
17646
17647         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
17648
17649         [BZ #361]
17650         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
17651         to normal_bracket after fetching the next character.
17652
17653 2007-01-22  Bruno Haible  <bruno@clisp.org>
17654
17655         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
17656         argument.
17657         * lib/striconveh.c (iconv_carefully_1): New function.
17658         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
17659         argument.
17660         (str_cd_iconveh): Update.
17661         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
17662         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
17663         * tests/test-striconveh.c (MAGIC): New macro.
17664         (new_offsets): New function.
17665         (main): Test call with and without offsets.
17666
17667 2007-01-22  Bruno Haible  <bruno@clisp.org>
17668
17669         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
17670         * modules/sys_select (Makefile.am): Likewise.
17671         * modules/sys_socket (Makefile.am): Likewise.
17672         * modules/sys_time (Makefile.am): Likewise.
17673
17674 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17675
17676         * modules/gettimeofday (License): Change from GPL to LGPL, since
17677         gettimeofday is a library function.
17678
17679 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17680
17681         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
17682
17683 2007-01-21  Bruno Haible  <bruno@clisp.org>
17684
17685         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
17686
17687 2007-01-21  Bruno Haible  <bruno@clisp.org>
17688
17689         * modules/striconveha: New file.
17690         * lib/striconveha.h: New file.
17691         * lib/striconveha.c: New file.
17692         * MODULES.html.sh (Internationalization functions): Add striconveha.
17693         * lib/striconv.c (str_iconv): Optimize the case of an empty input
17694         string.
17695         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
17696
17697 2007-01-21  Bruno Haible  <bruno@clisp.org>
17698
17699         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
17700         * lib/striconveh.c (str_iconveh): Likewise.
17701
17702 2007-01-21  Bruno Haible  <bruno@clisp.org>
17703
17704         * lib/striconveh.h (mem_iconveh): New declaration.
17705         * lib/striconveh.c (mem_iconveh): New function.
17706         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
17707
17708 2007-01-21  Bruno Haible  <bruno@clisp.org>
17709
17710         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
17711
17712         * lib/striconveh.h (mem_cd_iconveh): Change specification.
17713         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
17714         original result buffer.
17715         (str_cd_iconveh): Update.
17716         * tests/test-striconveh.c (main): Update.
17717
17718         * lib/striconv.h (mem_cd_iconv): Change specification.
17719         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17720         result buffer.
17721         (str_cd_iconv): Update.
17722         * tests/test-striconv.c (main): Update.
17723
17724 2007-01-21  Bruno Haible  <bruno@clisp.org>
17725
17726         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17727
17728 2007-01-20  Jim Meyering  <jim@meyering.net>
17729
17730         * lib/userspec.c (parse_with_separator): If a user or group string
17731         starts with "+", skip the corresponding name-to-ID look-up, since
17732         such a look-up must fail: user and group names may not include "+".
17733
17734 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17735
17736         * lib/poll.c: Include sys/time.h and time.h unconditionally,
17737         since we now assume the sys_time module.
17738         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
17739         check for sys/time.h; no longer needed.
17740         * modules/poll (Depends-on): Depend on sys_time.
17741
17742 2007-01-18  Bruno Haible  <bruno@clisp.org>
17743
17744         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
17745         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17746
17747         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
17748         gettimeofday.
17749
17750         * tests/test-gettimeofday.c: Include <time.h>.
17751         (dummy): Remove variable.
17752
17753         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
17754         gl_HEADER_SYS_TIME_H.
17755         (gl_HEADER_SYS_TIME_H): New macro.
17756
17757         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17758         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17759         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17760         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
17761         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17762         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
17763         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
17764         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17765         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
17766         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
17767         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17768
17769         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
17770         last change; it caused a compilation error when cross-compiling to
17771         Cygwin.
17772
17773 2007-01-18  Jim Meyering  <jim@meyering.net>
17774
17775         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
17776         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
17777         than the race-prone "test -d sys || mkdir sys".
17778         (configure.ac): Use AC_PROG_MKDIR_P.
17779         * modules/sys_select: Likewise.
17780         * modules/sys_socket: Likewise.
17781         * modules/sys_time: Likewise.
17782
17783 2007-01-18  Eric Blake  <ebb9@byu.net>
17784
17785         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
17786         replace gettimeofday.
17787         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
17788         name, to avoid infinite recursion.
17789
17790 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
17791
17792         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
17793         module sys_time.
17794         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
17795         assume timespec.h defines struct timeval.
17796         * lib/settime.c: Likewise.
17797         * lib/utimens.c: Likewise.
17798         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
17799         since we now assume the gettimeofday module.
17800         * lib/tempname.c (__gen_tempname): Likewise.
17801         * lib/gettimeofday.h: Remove.
17802         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
17803         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
17804         Include <time.h>, for 'time()'.
17805         (localtime_buffer_addr): Also use this workaround if
17806         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
17807         to simplify the uses.  All uses changed.
17808         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
17809         that #undef is inside {}, and 'const' follows type name consistently.
17810         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
17811         (gettimeofday): Do not use the maximum possible value for
17812         tv->tv_usec, since that might break usages other than ls.c.
17813         Instead, we'll leave ls.c alone.  This undoes today's patch
17814         by Bruno.  Add a compile-time warning for 1s-clock resolution;
17815         we've never observed the problem but might as well keep the
17816         canary.
17817         * lib/nanosleep.c: Include timespec.h first, for interface check.
17818         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
17819         now assume the sys_time module.
17820         * lib/tempname.c: Likewise.
17821         * lib/timespec.h: Likewise.
17822         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
17823         needed.
17824         * lib/strftime.c: Likewise.
17825         * lib/timespec.h: Likewise.
17826         * lib/posixtm.c: Include posixtm.h first, for interface check.
17827         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
17828         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
17829         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
17830         * lib/sys_time_.h: New file.
17831         * lib/timespec.h (struct timespec): Use long int, not long.
17832         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17833         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
17834         Remove obsolescent call to AC_HEADER_TIME.
17835         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17837         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17838         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
17839         Likewise.
17840         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
17841         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
17842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
17843         into the sys_time module.  Check for gettimeofday just once.
17844         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
17845         for gettimeofday signature to just check the signature.  Merely
17846         compile it, since linking doesn't test signature.  Improve test for
17847         whether gettimeofday.o is actually needed.
17848         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
17849         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
17850         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
17851         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17852         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
17853         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
17854         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
17855         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
17856         than worrying about sys/time.h.
17857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17858         Don't bother worrying about TIME_WITH_SYS_TIME.
17859         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17860         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
17861         * m4/sys_time_h.m4: New file.
17862         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
17863         Don't include sys/time.h.  Return from main rather than exiting.
17864         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
17865         all uses changed.
17866         * modules/gethrxtime (Depends-on): Add sys_time.
17867         * modules/gettime (Depends-on): Likewise.
17868         * modules/gettimeofday (Depends-on): Likewise.
17869         * modules/nanosleep (Depends-on): Likewise.
17870         * modules/settime (Depends-on): Likewise.
17871         * modules/tempname (Depends-on): Likewise.
17872         * modules/utimens (Depends-on): Likewise.
17873         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
17874         (Include:) Change back to <sys/time.h>.
17875         (Maintainer:) Add self.
17876         * modules/sys_time: New file.
17877         * modules/tempname (Depends-on): Add gettimeofday.
17878         * tests/test-gettimeofday.c: Include <sys/time.h>
17879         rather than gettimeofday.h.
17880
17881 2007-01-17  Bruno Haible  <bruno@clisp.org>
17882
17883         * gnulib-tool (func_get_license): Revert last patch. Instead, let
17884         the license default to GPL.
17885         (func_create_testdir): Don't complain if a module is LGPL and its
17886         tests module depends on GPLed modules.
17887
17888 2007-01-17  Bruno Haible  <bruno@clisp.org>
17889
17890         * lib/gettimeofday.c (gettimeofday): Add code for the case
17891         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
17892         maximum possible value for tv->tv_usec, rather than the minimum one.
17893
17894 2005-10-08  Martin Lambers  <marlam@marlam.de>
17895 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17896 2007-01-16  Bruno Haible  <bruno@clisp.org>
17897
17898         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
17899         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
17900         gl_FUNC_GETTIMEOFDAY.
17901         (Include): Add gettimeofday.h.
17902         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
17903         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
17904         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
17905         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
17906         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
17907         * lib/gettimeofday.h: New file.
17908         * lib/gettimeofday.c: Include <sys/timeb.h>.
17909         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
17910         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17911         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
17912         fall back on time().
17913
17914         * tests/test-gettimeofday.c: New file.
17915         * modules/gettimeofday-tests: New file.
17916
17917 2007-01-16  Eric Blake  <ebb9@byu.net>
17918
17919         * modules/fnmatch (Depends-on): Depend on wchar.
17920         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
17921         * m4/fnmatch.m4: Likewise.
17922         * modules/mbchar (Makefile.am): Assume <wchar.h>.
17923         * m4/mbchar.m4: Likewise.
17924         * modules/mbswidth (Depends-on): Depend on wchar.
17925         * lib/mbswidth.c: Assume <wchar.h>.
17926         * m4/mbswidth.m4: Likewise.
17927         * modules/quotearg (Depends-on): Depend on wchar.
17928         * lib/quotearg.c: Assume <wchar.h>.
17929         * m4/quotearg.m4: Likewise.
17930         * modules/regex (Depends-on): Depend on wchar.
17931         * lib/regex_internal.h: Assume <wchar.h>.
17932         * m4/regex.m4: Likewise.
17933         * modules/stdint (Depends-on): Depend on wchar.
17934         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
17935         * m4/stdint.m4: Likewise.
17936         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
17937         * modules/strftime (Depends-on): Depend on wchar.
17938         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
17939         * modules/strtol (Depends-on): Depend on wchar.
17940         * lib/strtol.c: Assume <wchar.h>.
17941         * modules/wcwidth (Depends-on): Depend on wchar.
17942         * lib/wcwidth.h: Assume <wchar.h>.
17943         * m4/wcwidth.m4: Likewise.
17944
17945 2007-01-16  Bruno Haible  <bruno@clisp.org>
17946
17947         * modules/csharpexec-script: New, created from...
17948         * modules/csharpexec: ... this.
17949
17950 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
17951
17952         * modules/javaexec-script: New, created from...
17953         * modules/javaexec: ... this.
17954
17955 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17956
17957         * modules/poll (Dependencies): Add sys_select.
17958
17959 2007-01-15  Jim Meyering  <jim@meyering.net>
17960
17961         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
17962         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
17963         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
17964         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
17965
17966 2007-01-15  Bruno Haible  <bruno@clisp.org>
17967
17968         * modules/striconveh: New file.
17969         * lib/striconveh.h: New file.
17970         * lib/striconveh.c: New file.
17971         * MODULES.html.sh (Internationalization functions): Add striconveh.
17972
17973         * modules/striconveh-tests: New file.
17974         * tests/test-striconveh.c: New file.
17975
17976 2007-01-15  Bruno Haible  <bruno@clisp.org>
17977
17978         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
17979         not from GNU libiconv or GNU libc.
17980
17981 2007-01-15  Bruno Haible  <bruno@clisp.org>
17982
17983         * doc/gnulib-intro.texi (Copyright): Explain the different license
17984         terms for module descriptions, autoconf macros, tests, documentation.
17985
17986 2007-01-14  Bruno Haible  <bruno@clisp.org>
17987
17988         * modules/striconv-tests: New file.
17989         * tests/test-striconv.c: New file.
17990
17991 2007-01-14  Bruno Haible  <bruno@clisp.org>
17992
17993         * modules/iconv-tests: New file.
17994         * tests/test-iconv.c: New file.
17995
17996 2007-01-14  Bruno Haible  <bruno@clisp.org>
17997
17998         * gnulib-tool (func_get_license): For test modules, use the license of
17999         the main module.
18000
18001 2007-01-14  Bruno Haible  <bruno@clisp.org>
18002
18003         * modules/iconv (Include): Clarify that <iconv.h> can only be included
18004         if iconv is found to exist.
18005
18006 2007-01-14  Bruno Haible  <bruno@clisp.org>
18007
18008         * modules/c-ctype-tests: New file.
18009         * tests/test-c-ctype.c: New file.
18010
18011 2007-01-14  Bruno Haible  <bruno@clisp.org>
18012
18013         * modules/binary-io-tests: New file.
18014         * tests/test-binary-io.sh: New file.
18015         * tests/test-binary-io.c: New file.
18016
18017 2007-01-14  Bruno Haible  <bruno@clisp.org>
18018
18019         * modules/array-oset-tests: New file.
18020         * tests/test-array_oset.c: New file.
18021
18022 2007-01-14  Bruno Haible  <bruno@clisp.org>
18023
18024         * modules/array-list-tests: New file.
18025         * tests/test-array_list.c: New file.
18026
18027 2007-01-14  Bruno Haible  <bruno@clisp.org>
18028
18029         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
18030         and make.
18031         Reported by Simon Josefsson in
18032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
18033
18034 2007-01-14  Bruno Haible  <bruno@clisp.org>
18035
18036         * modules/allocsa-tests: New file.
18037         * tests/test-allocsa.c: New file.
18038
18039 2007-01-14  Bruno Haible  <bruno@clisp.org>
18040
18041         * modules/fchdir (Depends-on): Add absolute-header.
18042         * modules/unistd (Depends-on): Likewise.
18043
18044 2006-12-30  Bruno Haible  <bruno@clisp.org>
18045
18046         * modules/fchdir: New file.
18047         * modules/unistd (Files): Add lib/unistd_.h.
18048         (Makefile.am): Generate unistd.h from unistd_.h.
18049         * lib/fchdir.c: New file.
18050         * lib/dirent_.h: New file.
18051         * lib/unistd_.h: New file.
18052         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
18053         * m4/fchdir.m4: New file.
18054         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
18055         (gl_HEADER_UNISTD): Invoke it.
18056         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
18057         function.
18058         * lib/backupfile.c (opendir, closedir): Undefine.
18059         * lib/chown.c (open, close): Undefine.
18060         * lib/clean-temp.c (open, close): Undefine.
18061         * lib/copy-file.c (open, close): Undefine.
18062         * lib/execute.c (open, close): Undefine.
18063         * lib/fsusage.c (open, close): Undefine.
18064         * lib/gc-gnulib.c (open, close): Undefine.
18065         * lib/getcwd.c (opendir, closedir): Undefine.
18066         * lib/glob.c (opendir, closedir): Undefine.
18067         * lib/javacomp.c (open, close): Undefine.
18068         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
18069         * lib/openat-proc.c (open, close): Undefine.
18070         * lib/pagealign_alloc.c (open, close): Undefine.
18071         * lib/pipe.c (open, close): Undefine.
18072         * lib/progreloc.c (open, close): Undefine.
18073         * lib/savedir.c (opendir, closedir): Undefine.
18074         * lib/utime.c (open, close): Undefine.
18075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
18076
18077 2007-01-10  Bruno Haible  <bruno@clisp.org>
18078
18079         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
18080
18081 2007-01-12  Eric Blake  <ebb9@byu.net>
18082
18083         Provide a robust <wchar.h>.  Further simplifications are now
18084         possible in other modules, but not included here.
18085         * modules/wchar: New module.
18086         * m4/wchar.m4: New file.
18087         * lib/wchar_.h: Likewise.
18088         * modules/mbchar (Depends-on): Depend on wchar, as the first use
18089         of the new module.
18090         * MODULES.html.sh (Extended multibyte and wide character utilities):
18091         New section.
18092
18093 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18094
18095         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
18096         to a reasonable default for memory allocation.
18097         (xreadlink): Don't allocate a huge buffer, to work around a buggy
18098         file system that reports garbage st_size values for symlinks.
18099         Problem reported by Liyang Hu.
18100
18101 2007-01-11  Simon Josefsson  <simon@josefsson.org>
18102
18103         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
18104         Emacs .#* auto-save files).
18105
18106 2007-01-11  Bruno Haible  <bruno@clisp.org>
18107
18108         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
18109         directory.
18110
18111 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18112
18113         Use @...@ consistently in lib/wctype_.h.
18114         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
18115         on it being set to 1 or 0.
18116         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
18117         go back to AC_SUBSTing it.
18118         * modules/wctype (Makefile.am): Undo previous change.
18119
18120 2007-01-10  Eric Blake  <ebb9@byu.net>
18121
18122         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
18123         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
18124         * modules/wctype (Makefile.am): Likewise.
18125         Reported by Chris McGuire.
18126
18127 2007-01-10  Jim Meyering  <jim@meyering.net>
18128
18129         fts.c: a small readability/maintainability improvement
18130         * lib/fts.c (fts_read): Make this code slightly more readable and
18131         maintainable by hoisting the "sp->fts_cur = p" assignments to
18132         immediately follow the statements that set P.  Derived from
18133         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
18134
18135 2007-01-10  Eric Blake  <ebb9@byu.net>
18136
18137         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
18138         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
18139         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18140         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18141         Reported by Chris McGuire.
18142
18143 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18144
18145         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
18146         in sed script.
18147
18148 2007-01-09  Bruno Haible  <bruno@clisp.org>
18149
18150         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
18151         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
18152         variables.
18153         (func_module): Use them.
18154
18155 2007-01-09  Bruno Haible  <bruno@clisp.org>
18156
18157         * modules/unistr/base: New file.
18158         * lib/unistr.h: New file.
18159
18160         * modules/unistr/u8-to-u16: New file.
18161         * lib/unistr/u8-to-u16.c: New file.
18162
18163         * modules/unistr/u8-to-u32: New file.
18164         * lib/unistr/u8-to-u32.c: New file.
18165
18166         * modules/unistr/u16-to-u8: New file.
18167         * lib/unistr/u16-to-u8.c: New file.
18168
18169         * modules/unistr/u16-to-u32: New file.
18170         * lib/unistr/u16-to-u32.c: New file.
18171
18172         * modules/unistr/u32-to-u8: New file.
18173         * lib/unistr/u32-to-u8.c: New file.
18174
18175         * modules/unistr/u32-to-u16: New file.
18176         * lib/unistr/u32-to-u16.c: New file.
18177
18178         * modules/unistr/u8-check: New file.
18179         * modules/unistr/u16-check: New file.
18180         * modules/unistr/u32-check: New file.
18181         * lib/unistr/u8-check.c: New file.
18182         * lib/unistr/u16-check.c: New file.
18183         * lib/unistr/u32-check.c: New file.
18184
18185         * modules/unistr/u8-chr: New file.
18186         * modules/unistr/u16-chr: New file.
18187         * modules/unistr/u32-chr: New file.
18188         * lib/unistr/u8-chr.c: New file.
18189         * lib/unistr/u16-chr.c: New file.
18190         * lib/unistr/u32-chr.c: New file.
18191
18192         * modules/unistr/u8-cmp: New file.
18193         * modules/unistr/u16-cmp: New file.
18194         * modules/unistr/u32-cmp: New file.
18195         * lib/unistr/u8-cmp.c: New file.
18196         * lib/unistr/u16-cmp.c: New file.
18197         * lib/unistr/u32-cmp.c: New file.
18198
18199         * modules/unistr/u8-cpy: New file.
18200         * modules/unistr/u16-cpy: New file.
18201         * modules/unistr/u32-cpy: New file.
18202         * lib/unistr/u8-cpy.c: New file.
18203         * lib/unistr/u16-cpy.c: New file.
18204         * lib/unistr/u32-cpy.c: New file.
18205         * lib/unistr/u-cpy.h: New file.
18206
18207         * modules/unistr/u8-cpy-alloc: New file.
18208         * modules/unistr/u16-cpy-alloc: New file.
18209         * modules/unistr/u32-cpy-alloc: New file.
18210         * lib/unistr/u8-cpy-alloc.c: New file.
18211         * lib/unistr/u16-cpy-alloc.c: New file.
18212         * lib/unistr/u32-cpy-alloc.c: New file.
18213         * lib/unistr/u-cpy-alloc.h: New file.
18214
18215         * modules/unistr/u8-endswith: New file.
18216         * modules/unistr/u16-endswith: New file.
18217         * modules/unistr/u32-endswith: New file.
18218         * lib/unistr/u8-endswith.c: New file.
18219         * lib/unistr/u16-endswith.c: New file.
18220         * lib/unistr/u32-endswith.c: New file.
18221         * lib/unistr/u-endswith.h: New file.
18222
18223         * modules/unistr/u8-mblen: New file.
18224         * modules/unistr/u16-mblen: New file.
18225         * modules/unistr/u32-mblen: New file.
18226         * lib/unistr/u8-mblen.c: New file.
18227         * lib/unistr/u16-mblen.c: New file.
18228         * lib/unistr/u32-mblen.c: New file.
18229
18230         * modules/unistr/u8-mbtouc: New file.
18231         * modules/unistr/u16-mbtouc: New file.
18232         * modules/unistr/u32-mbtouc: New file.
18233         * lib/unistr/u8-mbtouc.c: New file.
18234         * lib/unistr/u16-mbtouc.c: New file.
18235         * lib/unistr/u32-mbtouc.c: New file.
18236
18237         * modules/unistr/u8-mbtouc-safe: New file.
18238         * modules/unistr/u16-mbtouc-safe: New file.
18239         * modules/unistr/u32-mbtouc-safe: New file.
18240         * lib/unistr/u8-mbtouc-safe.c: New file.
18241         * lib/unistr/u16-mbtouc-safe.c: New file.
18242         * lib/unistr/u32-mbtouc-safe.c: New file.
18243
18244         * modules/unistr/u8-move: New file.
18245         * modules/unistr/u16-move: New file.
18246         * modules/unistr/u32-move: New file.
18247         * lib/unistr/u8-move.c: New file.
18248         * lib/unistr/u16-move.c: New file.
18249         * lib/unistr/u32-move.c: New file.
18250         * lib/unistr/u-move.h: New file.
18251
18252         * modules/unistr/u8-next: New file.
18253         * modules/unistr/u16-next: New file.
18254         * modules/unistr/u32-next: New file.
18255         * lib/unistr/u8-next.c: New file.
18256         * lib/unistr/u16-next.c: New file.
18257         * lib/unistr/u32-next.c: New file.
18258
18259         * modules/unistr/u8-prev: New file.
18260         * modules/unistr/u16-prev: New file.
18261         * modules/unistr/u32-prev: New file.
18262         * lib/unistr/u8-prev.c: New file.
18263         * lib/unistr/u16-prev.c: New file.
18264         * lib/unistr/u32-prev.c: New file.
18265
18266         * modules/unistr/u8-set: New file.
18267         * modules/unistr/u16-set: New file.
18268         * modules/unistr/u32-set: New file.
18269         * lib/unistr/u8-set.c: New file.
18270         * lib/unistr/u16-set.c: New file.
18271         * lib/unistr/u32-set.c: New file.
18272         * lib/unistr/u-set.h: New file.
18273
18274         * modules/unistr/u8-startswith: New file.
18275         * modules/unistr/u16-startswith: New file.
18276         * modules/unistr/u32-startswith: New file.
18277         * lib/unistr/u8-startswith.c: New file.
18278         * lib/unistr/u16-startswith.c: New file.
18279         * lib/unistr/u32-startswith.c: New file.
18280         * lib/unistr/u-startswith.h: New file.
18281
18282         * modules/unistr/u8-stpcpy: New file.
18283         * modules/unistr/u16-stpcpy: New file.
18284         * modules/unistr/u32-stpcpy: New file.
18285         * lib/unistr/u8-stpcpy.c: New file.
18286         * lib/unistr/u16-stpcpy.c: New file.
18287         * lib/unistr/u32-stpcpy.c: New file.
18288         * lib/unistr/u-stpcpy.h: New file.
18289
18290         * modules/unistr/u8-stpncpy: New file.
18291         * modules/unistr/u16-stpncpy: New file.
18292         * modules/unistr/u32-stpncpy: New file.
18293         * lib/unistr/u8-stpncpy.c: New file.
18294         * lib/unistr/u16-stpncpy.c: New file.
18295         * lib/unistr/u32-stpncpy.c: New file.
18296         * lib/unistr/u-stpncpy.h: New file.
18297
18298         * modules/unistr/u8-strcat: New file.
18299         * modules/unistr/u16-strcat: New file.
18300         * modules/unistr/u32-strcat: New file.
18301         * lib/unistr/u8-strcat.c: New file.
18302         * lib/unistr/u16-strcat.c: New file.
18303         * lib/unistr/u32-strcat.c: New file.
18304         * lib/unistr/u-strcat.h: New file.
18305
18306         * modules/unistr/u8-strchr: New file.
18307         * modules/unistr/u16-strchr: New file.
18308         * modules/unistr/u32-strchr: New file.
18309         * lib/unistr/u8-strchr.c: New file.
18310         * lib/unistr/u16-strchr.c: New file.
18311         * lib/unistr/u32-strchr.c: New file.
18312
18313         * modules/unistr/u8-strcmp: New file.
18314         * modules/unistr/u16-strcmp: New file.
18315         * modules/unistr/u32-strcmp: New file.
18316         * lib/unistr/u8-strcmp.c: New file.
18317         * lib/unistr/u16-strcmp.c: New file.
18318         * lib/unistr/u32-strcmp.c: New file.
18319
18320         * modules/unistr/u8-strcpy: New file.
18321         * modules/unistr/u16-strcpy: New file.
18322         * modules/unistr/u32-strcpy: New file.
18323         * lib/unistr/u8-strcpy.c: New file.
18324         * lib/unistr/u16-strcpy.c: New file.
18325         * lib/unistr/u32-strcpy.c: New file.
18326         * lib/unistr/u-strcpy.h: New file.
18327
18328         * modules/unistr/u8-strcspn: New file.
18329         * modules/unistr/u16-strcspn: New file.
18330         * modules/unistr/u32-strcspn: New file.
18331         * lib/unistr/u8-strcspn.c: New file.
18332         * lib/unistr/u16-strcspn.c: New file.
18333         * lib/unistr/u32-strcspn.c: New file.
18334         * lib/unistr/u-strcspn.h: New file.
18335
18336         * modules/unistr/u8-strdup: New file.
18337         * modules/unistr/u16-strdup: New file.
18338         * modules/unistr/u32-strdup: New file.
18339         * lib/unistr/u8-strdup.c: New file.
18340         * lib/unistr/u16-strdup.c: New file.
18341         * lib/unistr/u32-strdup.c: New file.
18342         * lib/unistr/u-strdup.h: New file.
18343
18344         * modules/unistr/u8-strlen: New file.
18345         * modules/unistr/u16-strlen: New file.
18346         * modules/unistr/u32-strlen: New file.
18347         * lib/unistr/u8-strlen.c: New file.
18348         * lib/unistr/u16-strlen.c: New file.
18349         * lib/unistr/u32-strlen.c: New file.
18350         * lib/unistr/u-strlen.h: New file.
18351
18352         * modules/unistr/u8-strmblen: New file.
18353         * modules/unistr/u16-strmblen: New file.
18354         * modules/unistr/u32-strmblen: New file.
18355         * lib/unistr/u8-strmblen.c: New file.
18356         * lib/unistr/u16-strmblen.c: New file.
18357         * lib/unistr/u32-strmblen.c: New file.
18358
18359         * modules/unistr/u8-strmbtouc: New file.
18360         * modules/unistr/u16-strmbtouc: New file.
18361         * modules/unistr/u32-strmbtouc: New file.
18362         * lib/unistr/u8-strmbtouc.c: New file.
18363         * lib/unistr/u16-strmbtouc.c: New file.
18364         * lib/unistr/u32-strmbtouc.c: New file.
18365
18366         * modules/unistr/u8-strncat: New file.
18367         * modules/unistr/u16-strncat: New file.
18368         * modules/unistr/u32-strncat: New file.
18369         * lib/unistr/u8-strncat.c: New file.
18370         * lib/unistr/u16-strncat.c: New file.
18371         * lib/unistr/u32-strncat.c: New file.
18372         * lib/unistr/u-strncat.h: New file.
18373
18374         * modules/unistr/u8-strncmp: New file.
18375         * modules/unistr/u16-strncmp: New file.
18376         * modules/unistr/u32-strncmp: New file.
18377         * lib/unistr/u8-strncmp.c: New file.
18378         * lib/unistr/u16-strncmp.c: New file.
18379         * lib/unistr/u32-strncmp.c: New file.
18380
18381         * modules/unistr/u8-strncpy: New file.
18382         * modules/unistr/u16-strncpy: New file.
18383         * modules/unistr/u32-strncpy: New file.
18384         * lib/unistr/u8-strncpy.c: New file.
18385         * lib/unistr/u16-strncpy.c: New file.
18386         * lib/unistr/u32-strncpy.c: New file.
18387         * lib/unistr/u-strncpy.h: New file.
18388
18389         * modules/unistr/u8-strnlen: New file.
18390         * modules/unistr/u16-strnlen: New file.
18391         * modules/unistr/u32-strnlen: New file.
18392         * lib/unistr/u8-strnlen.c: New file.
18393         * lib/unistr/u16-strnlen.c: New file.
18394         * lib/unistr/u32-strnlen.c: New file.
18395         * lib/unistr/u-strnlen.h: New file.
18396
18397         * modules/unistr/u8-strpbrk: New file.
18398         * modules/unistr/u16-strpbrk: New file.
18399         * modules/unistr/u32-strpbrk: New file.
18400         * lib/unistr/u8-strpbrk.c: New file.
18401         * lib/unistr/u16-strpbrk.c: New file.
18402         * lib/unistr/u32-strpbrk.c: New file.
18403         * lib/unistr/u-strpbrk.h: New file.
18404
18405         * modules/unistr/u8-strrchr: New file.
18406         * modules/unistr/u16-strrchr: New file.
18407         * modules/unistr/u32-strrchr: New file.
18408         * lib/unistr/u8-strrchr.c: New file.
18409         * lib/unistr/u16-strrchr.c: New file.
18410         * lib/unistr/u32-strrchr.c: New file.
18411
18412         * modules/unistr/u8-strspn: New file.
18413         * modules/unistr/u16-strspn: New file.
18414         * modules/unistr/u32-strspn: New file.
18415         * lib/unistr/u8-strspn.c: New file.
18416         * lib/unistr/u16-strspn.c: New file.
18417         * lib/unistr/u32-strspn.c: New file.
18418         * lib/unistr/u-strspn.h: New file.
18419
18420         * modules/unistr/u8-strstr: New file.
18421         * modules/unistr/u16-strstr: New file.
18422         * modules/unistr/u32-strstr: New file.
18423         * lib/unistr/u8-strstr.c: New file.
18424         * lib/unistr/u16-strstr.c: New file.
18425         * lib/unistr/u32-strstr.c: New file.
18426         * lib/unistr/u-strstr.h: New file.
18427
18428         * modules/unistr/u8-strtok: New file.
18429         * modules/unistr/u16-strtok: New file.
18430         * modules/unistr/u32-strtok: New file.
18431         * lib/unistr/u8-strtok.c: New file.
18432         * lib/unistr/u16-strtok.c: New file.
18433         * lib/unistr/u32-strtok.c: New file.
18434         * lib/unistr/u-strtok.h: New file.
18435
18436         * modules/unistr/u8-uctomb: New file.
18437         * modules/unistr/u16-uctomb: New file.
18438         * modules/unistr/u32-uctomb: New file.
18439         * lib/unistr/u8-uctomb.c: New file.
18440         * lib/unistr/u16-uctomb.c: New file.
18441         * lib/unistr/u32-uctomb.c: New file.
18442
18443         * MODULES.html.sh (Unicode string functions): Add the new modules.
18444
18445 2007-01-08  Bruno Haible  <bruno@clisp.org>
18446
18447         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
18448         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
18449         subdirectories.
18450
18451 2007-01-08  Karl Berry  <karl@gnu.org>
18452
18453         * doc/error.texi: mention that main() fns must set program_name
18454         when progname is used.
18455
18456 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
18457
18458         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
18459         WCTYPE_H is empty, for the benefit of builds from non-distclean
18460         directories.  Problem reported by Eric Blake in
18461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
18462
18463 2007-01-08  Bruno Haible  <bruno@clisp.org>
18464
18465         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
18466         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
18467         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18468         PROVIDE_CANONICALIZE_FILENAME_MODE.
18469         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
18470
18471 2007-01-08  Bruno Haible  <bruno@clisp.org>
18472
18473         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
18474         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
18475         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
18476         * lib/fts.c: Likewise.
18477         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
18478
18479 2006-12-25  Bruno Haible  <bruno@clisp.org>
18480
18481         * modules/utf8-ucs4-safe: New file.
18482         * lib/utf8-ucs4-safe.h: New file.
18483         * lib/unistr/utf8-ucs4-safe.c: New file.
18484
18485         * modules/utf16-ucs4-safe: New file.
18486         * lib/utf16-ucs4-safe.h: New file.
18487         * lib/unistr/utf16-ucs4-safe.c: New file.
18488
18489         * MODULES.html.sh (Unicode string functions): Add the new modules.
18490
18491 2007-01-08  Bruno Haible  <bruno@clisp.org>
18492
18493         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
18494         (Depends-on): Add unitypes.
18495         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18496         (u8_mbtouc_aux): Move out to separate file.
18497         (u8_mbtouc): Use ucs4_t, uint8_t types.
18498         * lib/unistr/utf8-ucs4.c: New file.
18499
18500         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
18501         (Depends-on): Add unitypes.
18502         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18503         (u16_mbtouc_aux): Move out to separate file.
18504         (u16_mbtouc): Use ucs4_t, uint16_t types.
18505         * lib/unistr/utf16-ucs4.c: New file.
18506
18507         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
18508         (Depends-on): Add unitypes.
18509         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
18510         (u8_uctomb_aux): Move out to separate file.
18511         (u8_uctomb): Use ucs4_t, uint8_t types.
18512         * lib/unistr/ucs4-utf8.c: New file.
18513
18514         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
18515         (Depends-on): Add unitypes.
18516         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
18517         (u16_uctomb_aux): Move out to separate file.
18518         (u16_uctomb): Use ucs4_t, uint16_t types.
18519         * lib/unistr/ucs4-utf16.c: New file.
18520
18521 2006-12-25  Bruno Haible  <bruno@clisp.org>
18522
18523         * modules/unitypes: New file.
18524         * lib/unitypes.h: New file.
18525         * MODULES.html.sh (func_all_modules): New section "Unicode string
18526         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
18527         this section. Add unitypes.
18528
18529 2007-01-08  Bruno Haible  <bruno@clisp.org>
18530
18531         Avoid variable names that conflict with those from libtool.
18532         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
18533         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
18534         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
18535         library_names_spec to acl_library_names_spec, hardcode_* to
18536         acl_hardcode_*.
18537         Reported by Ralf Wildenhues.
18538
18539 2007-01-08  Bruno Haible  <bruno@clisp.org>
18540
18541         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
18542         definition.
18543         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
18544         definition.
18545         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
18546         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
18547         definition.
18548         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
18549         definition.
18550         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
18551         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
18552         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
18553         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
18554         definition.
18555         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
18556         definition.
18557         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
18558         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
18559         GC_USE_<algorithm>.
18560         * lib/gc-libgcrypt.c: Likewise.
18561         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
18562         * modules/gc-arctwo (configure.ac): Likewise.
18563         * modules/gc-des (configure.ac): Likewise.
18564         * modules/gc-hmac-md5 (configure.ac): Likewise.
18565         * modules/gc-hmac-sha1 (configure.ac): Likewise.
18566         * modules/gc-md2 (configure.ac): Likewise.
18567         * modules/gc-md4 (configure.ac): Likewise.
18568         * modules/gc-md5 (configure.ac): Likewise.
18569         * modules/gc-random (configure.ac): Likewise.
18570         * modules/gc-rijndael (configure.ac): Likewise.
18571         * modules/gc-sha1 (configure.ac): Likewise.
18572
18573 2007-01-08  Bruno Haible  <bruno@clisp.org>
18574
18575         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
18576         macro definition.
18577         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
18578         definition.
18579         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
18580         definition.
18581         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
18582         * modules/fcntl-safer (configure.ac): Likewise.
18583         * modules/fopen-safer (configure.ac): Likewise.
18584         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
18585         GNULIB_FWRITEERROR macro definition.
18586
18587 2007-01-08  Bruno Haible  <bruno@clisp.org>
18588
18589         * m4/gnulib-common.m4: New file.
18590         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
18591         (func_get_filelist): Add m4/gnulib-common.m4.
18592
18593 2007-01-08  Bruno Haible  <bruno@clisp.org>
18594
18595         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
18596         command.
18597
18598 2007-01-08  Jim Meyering  <jim@meyering.net>
18599
18600         Use a more robust test for a "can't happen" condition.
18601         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
18602         narrowed the st_size value.  Presuming the "can't happen" condition
18603         is true, that narrowing could conceivably convert an invalid st_size
18604         value into a valid one.  Instead, use a change based on Matthew
18605         Woehlke's original patch.
18606
18607         Slight readability improvement: use an assert-like macro
18608         in place of literal "abort ()" uses.
18609         * lib/fts.c (fts_assert): Define.
18610         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
18611         Use this macro instead of a bare 'abort'.
18612
18613 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18614
18615         Don't worry about using IRIX 5.3's wctype.h broken definitions;
18616         simply work around them.
18617         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
18618         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
18619         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
18620         declaring.
18621         Don't bother to define as macros, since the standard doesn't require it.
18622         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18623         longer worry about IRIX 5.3.
18624         (HAVE_WCTYPE_CTMP_BUG): Remove.
18625
18626 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18627
18628         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
18629         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
18630         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18631         Problems reported by Georg Schwarz for IRIX 5.3.
18632
18633         * gnulib-tool (autoconf_minversion): Take the maximum version number
18634         found, not the minimum.  Problem reported by James Youngman.
18635
18636 2007-01-03  Karl Berry  <karl@gnu.org>
18637
18638         * doc/error.texi: new file, explaining interaction with progname.
18639         * doc/gnulib.texi: include it.  Update copyright.
18640
18641 2007-01-03  Simon Josefsson  <simon@josefsson.org>
18642
18643         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
18644         AC_CANONICAL_HOST, to improve autobuild outputs.
18645
18646 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
18647             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18648
18649         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
18650         sockets, server sockets, and other file descriptors.  Count errors
18651         to compute the return value.  Reorder the code a bit to be easier
18652         to follow.  Don't set event bits that were not requested (except
18653         POLLERR and POLLHUP).
18654
18655 2007-01-01  Bruno Haible  <bruno@clisp.org>
18656
18657         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
18658
18659 2007-01-03  Jim Meyering  <jim@meyering.net>
18660
18661         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
18662
18663 2007-01-02  Bruno Haible  <bruno@clisp.org>
18664
18665         * modules/settime (Include): Require timespec.h.
18666         * modules/nanosleep (Include): Likewise.
18667
18668 2007-01-01  Bruno Haible  <bruno@clisp.org>
18669
18670         * gnulib-tool (func_emit_copyright_notice): Bump year.
18671         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
18672
18673 2007-01-01  Bruno Haible  <bruno@clisp.org>
18674
18675         Improve support for OpenBSD.
18676         * build-aux/config.rpath (libname_spec): Export.
18677         (library_names_spec): New variable. Export.
18678         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
18679         library_names_spec from the config.rpath output. Locate shared library
18680         through the name pattern in library_names_spec.
18681
18682 2007-01-01  Eric Blake  <ebb9@byu.net>
18683
18684         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
18685
18686 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18687
18688         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
18689         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
18690         assume the C locale, and avoid an "eval" that could cause trouble.
18691         Problem with SORT reported by Bob Proulx.
18692
18693         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
18694         Define.  Trivial patch from Henning Nielsen Lund, originally
18695         sent to bug-grep@gnu.org today.
18696
18697 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18698
18699         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
18700         struct stat.  Problem reported by Henning Nielsen Lund.
18701         * lib/acl.c: Include acl.h first, to check interface.  Don't
18702         bother to include sys/types.h and sys/stat.h again.
18703
18704 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18705
18706         Import the following change from libc; problem reported by
18707         Sven Verdoolaege.
18708
18709         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
18710
18711         [BZ #1373]
18712         * lib/argp.h: Remove __NTH for __argp_usage inline function.
18713
18714 2006-12-28  Jim Meyering  <jim@meyering.net>
18715
18716         * build-aux/announce-gen: Do not assume that the package
18717         builds any of tar.gz, tar.bz2, and .xdelta files.
18718         Suggestion from Simon Josefsson.
18719
18720 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18721
18722         * modules/announce-gen: New file.
18723
18724 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18725
18726         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18727         handles its gotchas now.
18728         * lib/mbswidth.c: Likewise.
18729         * lib/wcwidth.h: Likewise.
18730         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18731         and iswcntrl; the wctype module does this stuff now.
18732         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18734         * modules/mbchar (Depends-on): Add wctype.
18735         * modules/mbswidth (Depends-on): Likewise.
18736         * modules/wcwidth (Depends-on): Likewise.
18737
18738 2006-12-27  Eric Blake  <ebb9@byu.net>
18739
18740         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
18741         module uses more than what <wctype.h> is required to provide.
18742
18743 2006-12-26  Eric Blake  <ebb9@byu.net>
18744
18745         * gnulib-tool (sed_extract_prog): Avoid space-tab.
18746
18747 2006-12-26  Eric Blake  <ebb9@byu.net>
18748
18749         * modules/absolute-header: New module.
18750         * modules/fcntl (Depends-on): Depend on it.
18751         * modules/inttypes (Depends-on): Likewise.
18752         * modules/stdint (Depends-on): Likewise.
18753         * modules/sys_stat (Depends-on): Likewise.
18754         * modules/wctype (Depends-on): Likewise.
18755         * MODULES.html.sh (Support for building libraries and
18756         executables): Document it.
18757
18758 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18759
18760         * gnulib-tool (SED): Remove, undoing previous change.
18761         The problem was that it broke coreutils on Solaris, because
18762         "sed --posix" leaked into a makefile.
18763         (sed): New alias, if 'alias' and GNU sed.
18764
18765 2006-12-24  Jim Meyering  <jim@meyering.net>
18766
18767         Work around an fchownat bug in glibc-2.4:
18768         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
18769         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
18770         in spite of the -P option.
18771         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
18772         New macros.
18773         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
18774         * modules/openat (Files): Add lib/fchownat.c.
18775         * lib/openat.c (fchownat): Don't define here.  Move to...
18776         * lib/fchownat.c: ...this new file.
18777
18778 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18779
18780         Fix bug reported by Bruno Haible in
18781         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
18782         where quotearg.c didn't compile on Mac OS X 10.2 because it
18783         lacks <wchar.h> and wint_t.
18784         * lib/wctype_.h (__wctype_wint_t): New type.
18785         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
18786         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
18787         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
18788         Arg is now of type __wctype_wint_t, not wint_t.
18789         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
18790         substitute HAVE_WINT_T.
18791         * modules/wctype (Files): Add m4/wint_t.m4.
18792         (wctype.h): Substitute HAVE_WINT_T.
18793
18794 2006-12-23  Bruno Haible  <bruno@clisp.org>
18795
18796         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
18797
18798 2006-12-23  Bruno Haible  <bruno@clisp.org>
18799
18800         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
18801         S_ISLNK.
18802         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
18803         mingw.
18804
18805 2006-12-22  Bruno Haible  <bruno@clisp.org>
18806
18807         * lib/copy-file.c: Include acl.h.
18808         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
18809         Close the file descriptors only after being done with copy_acl.
18810         * modules/copy-file (Depends-on): Add acl.
18811
18812 2006-12-22  Bruno Haible  <bruno@clisp.org>
18813
18814         * gnulib-tool (SED): New variable.
18815         Use $SED instead of sed everywhere.
18816
18817 2006-12-22  Bruno Haible  <bruno@clisp.org>
18818
18819         * modules/no-c++: New file.
18820         * m4/no-c++.m4: New file.
18821         * MODULES.html.sh (Support for building libraries and executables):
18822         Add no-c++.
18823
18824 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18825
18826         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18827         Include <limits.h>, and use its INT_MAX to rewrite the
18828         j loop so that it does not overflow 'int'.  Problem reported by
18829         Ralf Wildenhues in
18830         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
18831         Play it safe by shifting left by 1 rather than multiplying by 2,
18832         as GCC is less likely to optimize this away when the value
18833         is signed (when it assumes overflow leads to undefined behavior).
18834         Also, don't assume time_t uses two's complement.
18835
18836 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18837
18838         * MODULES.html.sh: New module wctype.
18839         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
18840         * lib/fnmatch.c: Don't bother to include <wchar.h> before
18841         <wctype.h>, since the new wctype module should fix this.
18842         * lib/quotearg.c: Include <wctype.h> unconditionally, since
18843         the wctype module should arrange for it.
18844         * lib/regex_internal.h: Likewise.
18845         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
18846         since the wctype module should handle this now.
18847         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
18848         * modules/fnmatch (Depends-on): Add wctype.
18849         * modules/quotearg (Depends-on): Likewise.
18850         * modules/regex (Depends-on): Likewise.
18851
18852 2006-12-19  Bruno Haible  <bruno@clisp.org>
18853
18854         * lib/strdup.h [C++]: Wrap definitions in extern "C".
18855         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
18856
18857 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18858
18859         * modules/savewd (Depends-on): Fix dependency on fcntl.
18860
18861 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18862
18863         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
18864         conforms to C99, rather than relying on the user's environment
18865         setting of STDINT_H.
18866
18867 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18868         and Eric Blake  <ebb9@byu.net>
18869
18870         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
18871         This is more consistent with the other defines here.
18872         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
18873         Port to z/OS.  Problem reported by Paul Gilmartin.
18874         Change local vars to use gl_ prefix rather than ac_.
18875         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
18876         with other defines.
18877         * modules/double-slash-root: New module.
18878         * modules/dirname (Files): Remove m4/double-slash-root.m4.
18879         (Depends-on): Add double-slash-root.
18880         * MODULES.html.sh (File system functions): Mention new module.
18881
18882 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18883
18884         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
18885         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
18886         This is for the benefit of gzip, which doesn't do i18n.
18887
18888 2006-12-12  Jim Meyering  <jim@meyering.net>
18889
18890         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
18891         Reported by Andreas Schwab <schwab@suse.de>.
18892
18893 2006-12-12  Bruno Haible  <bruno@clisp.org>
18894
18895         Merge these changes.
18896         2006-09-05  Bruno Haible  <bruno@clisp.org>
18897         * lib/iconvme.c (iconv_string): No need to save and restore errno when
18898         iconv_alloc succeeded.
18899         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
18900         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
18901         test for " && dest " at the end - dest is always != NULL there. Call
18902         iconv with 4xNULL arguments initially, to reset the state. Call iconv
18903         with 2xNULL arguments, also to flush the state storage. Handle the
18904         IRIX iconv behaviour. Realloc the final result, to throw away unused
18905         memory.
18906
18907 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18908
18909         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
18910         and fchmodat unconditionally, since glibc 2.4 has them.
18911         Problem reported by Arkadiusz Miskiewicz.
18912
18913 2006-12-10  Bruno Haible  <bruno@clisp.org>
18914
18915         * gnulib-tool (func_import): Show the include files only for those
18916         modules that are copied and specified.
18917         Reported by Karl Berry.
18918
18919 2006-12-08  Jim Meyering  <jim@meyering.net>
18920
18921         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
18922         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
18923
18924         * build-aux/announce-gen: Add two new options, both optional:
18925         --bootstrap-tools=TOOL_LIST
18926               a comma-separated list of tools, e.g.,
18927               autoconf,automake,bison,gnulib
18928         --gnulib-snapshot-date=DATE
18929               if gnulib is in the bootstrap tool list,
18930               then report this as the snapshot date.
18931               If not specified, use the current date/time.
18932               If you specify a date here, be sure it's UTC.
18933
18934 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18935
18936         * tests/test-argp-2.sh: Fix test to match actual output.
18937         (func_compare): Fix sed script to be portable.
18938
18939 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18940
18941         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
18942         workaround for this case.  It is not autoconfigured now; offhand
18943         it's hard to see how to autoconfigure it.
18944
18945 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
18946
18947         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
18948         a directory that is about to be chowned.  Such a directory's
18949         initial file permissions should permit the owner only and this
18950         should not be changed until after the chown, since the group and
18951         other bits would be incorrect if they granted permission before
18952         the chown.
18953
18954         Fix porting problem for iswctype reported by Georg Schwarz in:
18955         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
18956         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
18957         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
18958         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
18959         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18960
18961 2006-12-03  Jim Meyering  <jim@meyering.net>
18962
18963         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
18964         p->fts_statp may not yet be defined.
18965         (fts_read): Instead, set it in the caller, once p->fts_statp is
18966         sure to be defined, and corresponds to a top-level directory.
18967         This bug made du -x fail.  Here's the coreutils test case:
18968         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
18969         Reported by Mike Frysinger.
18970
18971 2006-12-01  Jim Meyering  <jim@meyering.net>
18972
18973         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
18974         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
18975         Reported by Simon Josefsson.
18976
18977 2006-11-30  Jim Meyering  <jim@meyering.net>
18978
18979         * m4/warning.m4: Use the all-permissive copyright notice
18980         recommended by RMS (rather than LGPL).
18981         * m4/vararrays.m4: Likewise.
18982         * m4/flexmember.m4: Likewise.
18983
18984 2006-11-29  Bruno Haible  <bruno@clisp.org>
18985
18986         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18987         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
18988         using +=.
18989         Reported by Simon Josefsson <simon@josefsson.org>.
18990
18991 2006-11-28  James Youngman <jay@gnu.org>
18992
18993         * README: Advise users that they might find the bug-gnulib@gnu.org
18994         and autotools-announce@gnu.org mailing lists useful.
18995
18996 2006-11-28  Bruno Haible  <bruno@clisp.org>
18997
18998         * m4/ptrdiff_max.m4: Remove file.
18999
19000 2006-11-21  Bruno Haible  <bruno@clisp.org>
19001
19002         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
19003         _AC_COMPUTE_INT.
19004         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19005         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
19006         _AC_COMPUTE_INT.
19007         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19008         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
19009         _AC_COMPUTE_INT.
19010         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19011
19012 2006-11-28  Jim Meyering  <jim@meyering.net>
19013
19014         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
19015         warning from "gcc -Wshadow" about shadowing the builtin.
19016
19017 2006-11-27  Bruno Haible  <bruno@clisp.org>
19018
19019         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
19020         _AC_COMPUTE_INT.
19021         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19022
19023 2006-11-27  Bruno Haible  <bruno@clisp.org>
19024             Paul Eggert  <eggert@cs.ucla.edu>
19025
19026         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
19027
19028 2006-11-26  Bruno Haible  <bruno@clisp.org>
19029
19030         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19031         noinst_LTLIBRARIES.
19032
19033 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
19034             Bruno Haible  <bruno@clisp.org>
19035
19036         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
19037         if compiling with "gcc -ansi".
19038
19039 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
19040
19041         Fix some incompatibilities with gcc -ansi -pedantic.
19042         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
19043         if compiling pedantically with GCC, unless it's C99 or later.
19044         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
19045         it mishandles gcc -ansi -pedantic as well.
19046         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
19047         if gcc -pedantic.
19048         * lib/regexec.c (check_node_accept_bytes): Don't use auto
19049         initializers for struct if -pedantic, unless it's C99 or later.
19050
19051 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
19052
19053         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
19054         Don't close an fd more than once. Identical atimes indicate
19055         success, not failure.
19056
19057 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
19058
19059         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
19060
19061 2006-11-23  Jim Meyering  <jim@meyering.net>
19062
19063         * build-aux/announce-gen: New file.  From coreutils.
19064
19065 2006-11-22  Jim Meyering  <jim@meyering.net>
19066
19067         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
19068         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
19069         (fts_read): Use a temporary to narrow the overused st_size member
19070         before using it in a switch statement.  Reported by Matthew Woehlke.
19071
19072         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
19073         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19074
19075 2006-11-20  Bruno Haible  <bruno@clisp.org>
19076
19077         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
19078         changequote instead of pairs of brackets.
19079         Reported by Andreas Schwab <schwab@suse.de>.
19080
19081 2006-11-21  Jim Meyering  <jim@meyering.net>
19082
19083         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
19084         so as to remain compatible with older compilers.
19085         Patch from Michael Deutschmann.
19086
19087 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19088
19089         * MODULES.html.sh (File system functions): Add openat.
19090
19091         * lib/openat.h (rpl_fstatat): New macro, if
19092         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
19093         (fstatat): Define to rpl_fstatat under the same conditions,
19094         unless COMPILING_FSTATAT.
19095         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
19096         seems to have the bug.
19097         * lib/fstatat.c: New file.
19098         * modules/openat (Files): Add it.
19099
19100 2006-11-20  Bruno Haible  <bruno@clisp.org>
19101
19102         * Makefile: New file.
19103
19104 2006-11-20  Jim Meyering  <jim@meyering.net>
19105
19106         The beginnings of syntax-related checks for gnulib.
19107         * lib/Makefile: New file.
19108         * lib/t-idcache: New script.  Ensure that the two halves of
19109         idcache.c stay in sync.
19110
19111         * lib/idcache.c: Adjust comments in user- and group- portions to
19112         be more accurate, and to be consistent with one another.
19113
19114 2006-11-20  Jim Meyering  <jim@meyering.net>
19115
19116         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
19117         continue using the flexible array member (thus, this module performs
19118         half as many malloc calls), with the addition that...
19119         (getgroup, getuser): Consistently record a non-match via an empty
19120         "name" string, and map an empty string match to a NULL return value.
19121         * modules/idcache (Depends-on): Re-add flexmember.
19122
19123         * lib/idcache.c (getuser): Remove all uses of the register keyword.
19124         (getuidbyname, getgroup, getgidbyname): Likewise.
19125
19126         Use cleaner syntax: NULL rather than 0.
19127         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
19128
19129 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19130
19131         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
19132         It mishandled the case where the group was missing.
19133         Problem reported by Greg Schafer.
19134         * modules/idcache: Likewise.
19135
19136 2006-11-18  Jim Meyering  <jim@meyering.net>
19137
19138         * check-module (%exempt_header): Add exception for some
19139         conditionally-included headers.
19140
19141         * modules/i-ring (Depends-on): Add verify.
19142         (License): Change to LGPL.
19143
19144 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19145
19146         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
19147         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
19148         and inttostr.h.  Use snprintf rather than uinttostr, so that
19149         LGPLed code doesn't depend on GPLed.
19150
19151 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19152
19153         * modules/inline (License): Change from GPL to LGPL.
19154
19155 2006-11-17  Jim Meyering  <jim@meyering.net>
19156
19157         * modules/d-type (License): Switch to LGPL.
19158
19159 2006-11-15  Bruno Haible  <bruno@clisp.org>
19160
19161         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
19162
19163 2006-11-15  Eric Blake  <ebb9@byu.net>
19164
19165         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
19166         the module dependency.
19167
19168 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19169             Bruno Haible  <bruno@clisp.org>
19170
19171         * gnulib-tool (func_create_testdir): Add license consistency check.
19172
19173 2006-11-15  Eric Blake  <ebb9@byu.net>
19174
19175         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
19176         random "(cached)" in configure output.
19177
19178 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19179
19180         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
19181         test for conforming inttypes.h is both announced and cached.
19182
19183         * MODULES.html.sh (seen_modules, seen_files): New variables.
19184         (func_module): Rewrite to use a few less gnulib-tool and sed
19185         invocations.  Avoid a couple of quadratic algorithms for ...
19186         (missed_modules, missed_files): ... these, with ...
19187         (func_append, func_tmpdir): ... these new functions, from
19188         gnulib-tool.  Analogously, install traps for cleanup.
19189
19190         * tests/test-gc.c (main): Remove unused variables.
19191         * tests/test-read-file.c: Include stdlib.h, for 'free'.
19192
19193 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
19194
19195         * modules/inttostr (License): Change to LGPL.
19196
19197 2006-11-14  Eric Blake  <ebb9@byu.net>
19198
19199         * modules/tempname (License): Change to LGPL.
19200
19201 2006-11-14  Eric Blake  <ebb9@byu.net>
19202
19203         * doc/functions.texi (Function Portability): *printf functions on
19204         Cygwin now understand all POSIX size specifiers.
19205
19206 2006-11-14  Bruno Haible  <bruno@clisp.org>
19207
19208         * modules/c-ctype (License): Change to LGPL.
19209
19210 2006-11-12  Bruno Haible  <bruno@clisp.org>
19211
19212         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19213         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
19214         for GNOME libraries, for which the include files are installed in
19215         subdirectories of $prefix/include.
19216
19217 2006-11-12  Bruno Haible  <bruno@clisp.org>
19218
19219         * m4/lib-link.m4: Require at least autoconf-2.54.
19220         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
19221         name to underscores for the --with option.
19222
19223 2006-11-13  Bruno Haible  <bruno@clisp.org>
19224
19225         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
19226         the tests directory.
19227         Reported by Ralf Wildenhues.
19228
19229 2006-11-13  Bruno Haible  <bruno@clisp.org>
19230
19231         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
19232         (func_emit_initmacro_end): Undo the override here.
19233         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
19234         Works around the famous automake error in coreutils.
19235
19236 2006-11-13  Eric Blake  <ebb9@byu.net>
19237
19238         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
19239         element, not its node.
19240
19241 2006-11-12  Bruno Haible  <bruno@clisp.org>
19242
19243         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
19244         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
19245
19246 2006-11-12  Bruno Haible  <bruno@clisp.org>
19247
19248         * gnulib-tool: New option --local-symlink.
19249         (func_usage): Document it.
19250         (lsymbolic): New variable.
19251         (func_import, func_create_testdir): If --symlink was not specified,
19252         test whether --local-symlink was specified and the file comes from
19253         the local_gnulib_dir.
19254
19255 2006-11-12  Bruno Haible  <bruno@clisp.org>
19256
19257         * gnulib-tool (func_ln): New function.
19258         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
19259
19260 2006-11-12  Bruno Haible  <bruno@clisp.org>
19261
19262         Finish support for source files in subdirectories.
19263         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
19264         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
19265         AUTOMAKE_OPTIONS.
19266         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
19267
19268 2006-11-12  Bruno Haible  <bruno@clisp.org>
19269
19270         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19271         EXTRA_lib_SOURCES augmentation.
19272         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
19273
19274 2006-11-12  Jim Meyering  <jim@meyering.net>
19275
19276         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
19277         file descriptors.  This also averts a failure on systems with
19278         native openat support when a traversed directory lacks "x" access.
19279         * lib/fts_.h: Include "i-ring.h"
19280         (struct FTS) [fts_fd_ring]: New member.
19281         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
19282         (FCHDIR): Add parentheses.
19283         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
19284         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
19285         When descending, rather than simply closing the previous
19286         fts_cwd_fd value, push that file descriptor onto the ring.
19287         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
19288         (fts_open): Initialize the new fd_ring member.
19289         (fts_close): Clear the ring.
19290         (fts_safe_changedir): When possible, use our new fd_ring to skip
19291         the diropen and fstat and dev/ino comparison that would normally
19292         accompany a virtual `chdir ("..")'.
19293
19294         * modules/fts (Depends-on): Add i-ring.
19295         * modules/i-ring: New module.
19296         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
19297         * m4/i-ring.m4: New file.
19298
19299 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19300
19301         * gnulib-tool (func_create_testdir): Fix replacement of
19302         `build-aux' in configure.ac.  Run autotools in gltests
19303         subdirectory.
19304         (func_create_testdir, func_create_megatestdir, test): There is
19305         no need for '--force' in most autotool invocations in a new
19306         tree.  Actually fail the whole test if any of the tools, or the
19307         configure or make stages fail.
19308
19309         Sync from Automake.
19310         * build-aux/gnupload: Revert last change.  Add pointer to upload
19311         instructions of the GNU Maintenance Instructions.
19312         Suggestion by Karl Berry.
19313
19314 2006-11-10  Jim Meyering  <jim@meyering.net>
19315
19316         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19317
19318 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19319
19320         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19321         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19322         (bind_textdomain_codeset) [! ENABLE_NLS]:
19323         Evaluate all the arguments.  That way, callers get compatible behavior
19324         if the arguments have side effects.  Also, it avoids some GCC
19325         diagnostics in some cases; Joel E. Denny reported problems when Bison
19326         was configured with --enable-gcc-warnigs.
19327
19328 2006-11-10  Jim Meyering  <jim@meyering.net>
19329
19330         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19331         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19332         account.
19333
19334 2006-11-10  Jim Meyering  <jim@meyering.net>
19335
19336         * modules/inline: New file/module.
19337         * modules/xalloc (Files): Remove m4/inline.m4.
19338         (Depends-on): Add inline, instead.
19339         * modules/oset: Likewise.
19340         * modules/list: Likewise.
19341
19342 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19343
19344         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19345         Problem reported by Matthew Woehlke.
19346
19347 2006-11-09  Bruno Haible  <bruno@clisp.org>
19348
19349         * lib/tempname.c (gen_tempname): Remove variant that invokes
19350         __gen_tempname.
19351         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19352         __gen_tempname.
19353
19354 2006-11-08  Bruno Haible  <bruno@clisp.org>
19355
19356         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19357         to 'yes' instead of 'cross-compiling'.
19358
19359 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19360
19361         * lib/quotearg.h (quotearg_free): New decl.
19362         * lib/quotearg.c (quotearg_free): New function.
19363         (slot0, nslots, slotvec0, slotvec):
19364         Now file-scope so that quotearg_free can get at them.
19365
19366 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19367
19368         Sync from Automake.
19369         * build-aux/gnupload: Add missing 'gnu' to example URL.
19370         Report by Karl Berry.
19371
19372 2006-11-08  Bruno Haible  <bruno@clisp.org>
19373
19374         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19375         Suggested by Paul Eggert.
19376
19377 2006-11-08  Jim Meyering  <jim@meyering.net>
19378
19379         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19380         It's already included if !_LIBC.
19381         (fts_safe_changedir): Add a comment.
19382
19383 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19384
19385         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19386         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19387         Matthew Woehlke.
19388
19389         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19390         definitions up, to avoid colliding with change below.
19391         (static_inline) [HAVE_INLINE]: New macro.
19392         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19393         Provide extern decls when !HAVE_INLINE.  Do not define unless
19394         static_inline is defined, either by us or by xmalloc.c.  Use
19395         static_inline rather than static inline.
19396         (XCALLOC): Optimize sizeof(T) = 1 case.
19397         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19398
19399 2006-11-07  Bruno Haible  <bruno@clisp.org>
19400
19401         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19402         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19403         AC_C_INLINE.
19404         * modules/xalloc (Files): Add m4/inline.m4.
19405
19406 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19407
19408         * README: Fix typo.
19409         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
19410         (Miscellanous Notes): ...from this.
19411
19412 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19413
19414         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19415         Mention that offsetof should be used instead of sizeof.
19416         From Bruno Haible.
19417
19418 2006-11-07  Bruno Haible  <bruno@clisp.org>
19419
19420         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
19421
19422 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19423
19424         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19425         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
19426         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19427         (gl_tree_add_before, gl_tree_add_after):
19428         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19429         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19430         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19431         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19432         (gl_linked_add_after, gl_linked_add_at): Likewise.
19433         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19434         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19435         (gl_tree_add_before, gl_tree_add_after): Likewise.
19436         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19437         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19438         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19439
19440 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19441
19442         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19443
19444 2006-11-06  Bruno Haible  <bruno@clisp.org>
19445
19446         * m4/inline.m4: New file.
19447         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
19448         * modules/list (Files): Add m4/inline.m4.
19449         * modules/oset (Files): Likewise.
19450
19451 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19452
19453         * lib/idcache.c: Include <stddef.h>, for offsetof.
19454         (struct userid.name): Change from char * to a flexible array member.
19455         All uses changed.
19456         * modules/idcache (Depends-on): Add flexmember.
19457
19458         * MODULES.html.sh (Core language properties): New module flexmember.
19459         * modules/flexmember, m4/flexmember.m4: New files.
19460
19461         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
19462         inline functions that are identical with the old xnmalloc_inline,
19463         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
19464         that we can avoid some unnecessary integer multiplications and
19465         divisions in the common case where the element size is known at
19466         compile time.
19467         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
19468         needed.
19469         (xnboundedmalloc): Remove.
19470         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
19471         arguments, for consistency with rest of this header.
19472         (xcharalloc): Rewrite using XNMALLOC.
19473         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
19474         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
19475         versions have been moved to lib/xalloc.h and renamed to be the
19476         non-*_inline versions.
19477         (xmalloc, xrealloc): Implement without reference to the xnmalloc
19478         and xnrealloc functions, since those functions are now inline and
19479         now call us.
19480         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
19481         renaming described above.
19482         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
19483         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
19484         captures the dependency in AC_C_INLINE.
19485
19486         New module canonicalize-lgpl, proposed by Charles Wilson in
19487         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
19488         with a few small changes afterwards.
19489         * MODULES.html.sh (File system functions): New module
19490         canonicalize-lgpl.
19491         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
19492         and canonicalize_file_name.
19493         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
19494         * modules/canonicalize-lgpl: New files.
19495
19496 2006-11-05  Bruno Haible  <bruno@clisp.org>
19497
19498         * gnulib-tool (func_import, func_create_testdir): Create directories
19499         also for files in subdirectories of lib/.
19500
19501 2006-11-05  Bruno Haible  <bruno@clisp.org>
19502
19503         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
19504         ANSI C compliant.
19505
19506 2006-11-03  Bruno Haible  <bruno@clisp.org>
19507
19508         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19509         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
19510         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
19511         (xnboundedmalloc): New inline function.
19512         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
19513         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
19514         xmalloc.
19515         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
19516         xmalloc.
19517         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
19518         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
19519         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
19520         xmalloc.
19521         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19522         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
19523         xmalloc.
19524         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
19525         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19526         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
19527         xmalloc.
19528         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19529         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
19530         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19531         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
19532         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
19533         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
19534         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
19535
19536 2006-11-03  Bruno Haible  <bruno@clisp.org>
19537
19538         * lib/c-ctype.h [C++]: Define functions without name mangling.
19539         * lib/fwriteerror.h [C++]: Likewise.
19540         * lib/gcd.h [C++]: Likewise.
19541         * lib/linebreak.h [C++]: Likewise.
19542
19543 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19544
19545         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
19546         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
19547         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
19548         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19549         Check for functions and headers just once.
19550         Check for declaration of canonicalize_file_name.
19551         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
19552
19553 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19554
19555         * gnulib-tool (func_import): Fix typo in actioncmd.
19556
19557 2006-11-02  Bruno Haible  <bruno@clisp.org>
19558
19559         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
19560         newline sequence in the Makefile.am snippet as a space, like "make"
19561         does.
19562         Reported by Roger Persson <perrog@gmail.com>.
19563
19564 2006-11-01  Bruno Haible  <bruno@clisp.org>
19565
19566         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
19567         already declared in <string.h>.
19568         * lib/strcase.h (strncasecmp): Don't declare it if yes.
19569
19570 2006-11-01  Bruno Haible  <bruno@clisp.org>
19571
19572         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
19573         * lib/strcase.h: Include <string.h>.
19574         (strcasecmp): Define to rpl_strcasecmp here.
19575
19576 2006-11-01  Bruno Haible  <bruno@clisp.org>
19577
19578         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
19579
19580 2006-11-01  Eric Blake  <ebb9@byu.net>
19581
19582         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
19583
19584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
19585
19586 2006-10-29  Bruno Haible  <bruno@clisp.org>
19587
19588         Make it compile in C++ mode.
19589         * lib/full-write.c (full_rw): Add a cast.
19590
19591 2006-11-01  Bruno Haible  <bruno@clisp.org>
19592
19593         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
19594         be POSIX compliant.
19595         Reported by Roger Persson <perrog@gmail.com>.
19596
19597 2006-11-01  Eric Blake  <ebb9@byu.net>
19598
19599         * lib/getopt_.h: Fix comments.
19600
19601 2006-10-31  Eric Blake  <ebb9@byu.net>
19602
19603         * modules/tmpdir (Depends-on): Add sys_stat.
19604         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
19605         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
19606         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
19607         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
19608         tempname.
19609
19610 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
19611
19612         Avoid some C++ diagnostics reported by Bruno Haible.
19613         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
19614         xmalloc.
19615         (quotearg_alloc): Use xcharalloc rather than xmalloc.
19616         (struct slotvec): Move to top level.
19617         (quotearg_n_options): Rewrite to avoid xmalloc.
19618         * lib/xalloc.h (xcharalloc): New function.
19619         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
19620         [defined __cplusplus]: Add function template that provides result
19621         type propagation.  This part of the change is from Bruno Haible.
19622
19623 2006-10-29  Bruno Haible  <bruno@clisp.org>
19624
19625         Make it compile in C++ mode.
19626         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
19627         * lib/strnlen1.c (strnlen1): Cast memchr result.
19628         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
19629         * lib/clean-temp.c (string_equals, string_hash): Add casts.
19630         (create_temp_dir): Rename local variable 'template'.
19631         (compile_csharp_using_sscli): Add cast.
19632         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
19633         * lib/findprog.c (find_in_path): Likewise.
19634         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
19635         * lib/wait-process.c (register_slave_subprocess): Likewise.
19636
19637 2006-10-22  Bruno Haible  <bruno@clisp.org>
19638
19639         * modules/tsearch: New file.
19640         * lib/tsearch.h: New file.
19641         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
19642         * m4/tsearch.m4: New file.
19643         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
19644
19645 2006-10-29  Eric Blake  <ebb9@byu.net>
19646
19647         * lib/arcfour.c: Assume config.h.
19648         * lib/arctwo.c: Likewise.
19649         * lib/base64.c: Likewise.
19650         * lib/check-version.c: Likewise.
19651         * lib/crc.c: Likewise.
19652         * lib/des.c: Likewise.
19653         * lib/gc-gnulib.c: Likewise.
19654         * lib/gc-libgcrypt.c: Likewise.
19655         * lib/gc-pbkdf2-sha1.c: Likewise.
19656         * lib/getaddrinfo.c: Likewise.
19657         * lib/getdelim.c: Likewise.
19658         * lib/getline.c: Likewise.
19659         * lib/hmac-md5.c: Likewise.
19660         * lib/hmac-sha1.c: Likewise.
19661         * lib/iconvme.c: Likewise.
19662         * lib/md2.c: Likewise.
19663         * lib/md4.c: Likewise.
19664         * lib/memxor.c: Likewise.
19665         * lib/read-file.c: Likewise.
19666         * lib/readline.c: Likewise.
19667         * lib/rijndael-alg-fst.c: Likewise.
19668         * lib/rijndael-api-fst.c: Likewise.
19669         * lib/xgetdomainname.c: Likewise.
19670
19671 2006-10-28  Eric Blake  <ebb9@byu.net>
19672
19673         * lib/xstrndup.c: Assume config.h.
19674
19675 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19676
19677         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
19678         stat-macros.h is now for our own macros, whereas stat_h is for
19679         macros in the <sys/stat.h> name space.
19680         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
19681         (STAT_MACROS_H): Remove.
19682         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
19683         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
19684         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
19685         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
19686         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
19687         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
19688         Move these macros to ...
19689         * lib/stat_.h: here.  Don't include stat-macros.h.
19690         * lib/canonicalize.c: Don't include stat-macros.h.
19691         * lib/chown.c: Likewise.
19692         * lib/euidaccess.c: Likewise.
19693         * lib/file-type.c: Likewise.
19694         * lib/filemode.c: Likewise.
19695         * lib/glob.c: Likewise.
19696         * lib/isapipe.c: Likewise.
19697         * lib/lchown.c: Likewise.
19698         * lib/lstat.c: Likewise.
19699         * lib/mkdir-p.c: Likewise.
19700         * lib/rmdir.c: Likewise.
19701         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
19702         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
19703         unless mkdir isn't declared, to speed up 'configure'.
19704         Always create sys/stat.h, since it's unlikely any real sys/stat.h
19705         would define all the S_* symbols.
19706         * modules/canonicalize (Depends-on):
19707         Depend on sys_stat, not stat-macros.
19708         * modules/chown: Likewise.
19709         * modules/euidaccess: Likewise.
19710         * modules/filemode: Likewise.
19711         * modules/file-type: Likewise.
19712         * modules/glob: Likewise.
19713         * modules/isapipe: Likewise.
19714         * modules/lchown: Likewise.
19715         * modules/lstat: Likewise.
19716         * modules/mkancesdirs: Likewise.
19717         * modules/rmdir: Likewise.
19718         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19719         * modules/modechange: Likewise.
19720         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19721         (configure.ac): Remove gl_STAT_MACROS.
19722         * modules/sys_stat (Depends-on): Remove stat-macros.
19723
19724 2006-10-27  Bruno Haible  <bruno@clisp.org>
19725
19726         * m4/signed.m4: Remove file.
19727         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19728         invocation.
19729         * modules/vasnprintf (Files): Remove m4/signed.m4.
19730
19731 2006-10-27  Bruno Haible  <bruno@clisp.org>
19732
19733         Update to GNU gettext 0.16.
19734         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
19735         m4/inttypes-h.m4, m4/signed.m4.
19736         * m4/gettext.m4: Update to GNU gettext 0.16.
19737         * m4/intl.m4: New file, from GNU gettext.
19738         * m4/intldir.m4: New file, from GNU gettext.
19739         * config/srclist.txt: Update
19740
19741 2006-10-27  Eric Blake  <ebb9@byu.net>
19742
19743         * MODULES.html.sh: Document tempname.
19744         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
19745         dependencies.
19746         (Files): Move lib/tempname.c...
19747         * modules/tempname: ...to this new module.
19748         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
19749         (gl_PREREQ_TEMPNAME): Move...
19750         * m4/tempname.m4: ...to this new file.
19751         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
19752         * modules/sys_stat (Depends-on): Add stat-macros.
19753         * lib/stat_.h (includes): Pick up stat macros.
19754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
19755         if stat macros are broken.
19756         * lib/tempname.c (includes): No need to include "stat-macros.h".
19757         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
19758         (direxists, __path_search) [!_LIBC]: Don't compile these in
19759         gnulib; the tmpdir module covers that.
19760         * lib/tempname.h: New file.
19761
19762 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19763
19764         * COPYING: Explain how gnulib-tool converts licence headers.
19765         Almost all wording by Eric Blake.
19766
19767 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19768
19769         * lib/mbchar.h (is_basic_table): Make read-only.
19770         * lib/mbchar.c (is_basic_table): Likewise.
19771         Reported by John Darrington.
19772
19773 2006-10-25  Bruno Haible  <bruno@clisp.org>
19774
19775         * lib/progname.h (set_program_name): Undefine before defining.
19776
19777 2006-10-25  Bruno Haible  <bruno@clisp.org>
19778
19779         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
19780         false for non-gcc C++ compilers.
19781         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19782
19783 2006-10-24  Bruno Haible  <bruno@clisp.org>
19784
19785         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
19786         iconv implementations like Irix iconv.
19787
19788 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19789
19790         * modules/vararrays: New file.
19791         * m4/vararrays.m4: New file, taken from diffutils.
19792         * MODULES.html.sh: New module vararrays.
19793
19794 2006-10-24  Karl Berry  <karl@gnu.org>
19795
19796         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
19797         Don't call GNU Unix.
19798
19799 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19800
19801         * users.txt: Add Libtool.
19802
19803         Sync from Libtool:
19804
19805         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19806
19807         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
19808         to gnulib's policy of including config.h unconditionally.
19809
19810 2006-10-24  Bruno Haible  <bruno@clisp.org>
19811
19812         * modules/wcwidth (Files): Add m4/wint_t.m4.
19813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
19814         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
19815
19816 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19817
19818         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
19819         to pacify GCC with some -W flags enabled.  Problem reported by
19820         Bruno Haible.
19821
19822 2006-10-24  Jim Meyering  <jim@meyering.net>
19823
19824         * MODULES.html.sh: Remove uinttostr.  It's not a module.
19825         Reported by Karl Berry.
19826
19827 2006-10-23  Bruno Haible  <bruno@clisp.org>
19828
19829         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
19830
19831 2006-10-24  Bruno Haible  <bruno@clisp.org>
19832
19833         * lib/gl_list.h: Use C comment style, not C++ comment style.
19834
19835 2006-10-23  Eric Blake  <ebb9@byu.net>
19836
19837         * lib/getaddrinfo.c (includes): Add missing include.
19838
19839 2006-10-23  Bruno Haible  <bruno@clisp.org>
19840             Paul Eggert  <eggert@cs.ucla.edu>
19841
19842         Ability to rename obstack_free.
19843         * lib/obstack.h (__obstack_free): New macro. Declare instead of
19844         obstack_free.
19845         (obstack_free): Invoke the __obstack_free macro.
19846         * lib/obstack.c (obstack_free): Use __obstack_free macro.
19847
19848 2006-10-23  Bruno Haible  <bruno@clisp.org>
19849             Paul Eggert  <eggert@cs.ucla.edu>
19850
19851         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
19852         __argc, __argv from the declaration. (They are defined as macros on
19853         mingw.)
19854
19855 2006-10-22  Bruno Haible  <bruno@clisp.org>
19856
19857         * doc/gnulib-intro.texi: New file.
19858         * doc/gnulib.texi: Include it.
19859
19860 2006-10-21  Bruno Haible  <bruno@clisp.org>
19861
19862         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
19863         "Introduction", "Miscellanous Notes", "Particular Modules".
19864
19865 2006-10-21  Bruno Haible  <bruno@clisp.org>
19866
19867         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19868         Change mostlyclean-local rule to avoid sh syntax error from bash
19869         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
19870
19871 2006-10-23  Jim Meyering  <jim@meyering.net>
19872
19873         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
19874         in place of snprintf.
19875
19876         * modules/inttostr (Files): Add lib/uinttostr.c.
19877         * lib/uinttostr.c (inttostr): New file/function.
19878         * lib/inttostr.h (uinttostr): Declare.
19879         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
19880         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19881         Add uinttostr.
19882         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
19883
19884 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19885
19886         * lib/canonicalize.c (ELOOP): Define if not already defined.
19887         Problem reported by Bruno Haible in
19888         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
19889
19890 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19891
19892         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
19893         Problem reported by Perry Smith and Ville Laurikari.
19894
19895         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
19896         uses.
19897
19898 2006-10-19  Bruno Haible  <bruno@clisp.org>
19899
19900         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
19901         for mingw.
19902
19903 2006-10-19  Bruno Haible  <bruno@clisp.org>
19904
19905         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
19906         Needed for mingw.
19907
19908 2006-10-19  Bruno Haible  <bruno@clisp.org>
19909
19910         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
19911
19912 2006-10-19  Bruno Haible  <bruno@clisp.org>
19913
19914         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
19915         it.
19916
19917 2006-10-19  Bruno Haible  <bruno@clisp.org>
19918
19919         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
19920         invocation.
19921
19922 2006-10-19  Bruno Haible  <bruno@clisp.org>
19923
19924         * gnulib-tool (func_create_testdir): Don't include ftruncate and
19925         mountlist by default.
19926
19927 2006-10-16  Bruno Haible  <bruno@clisp.org>
19928
19929         * lib/c-strstr.c: Include c-strstr.h.
19930
19931 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19932
19933         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
19934         in a slash.
19935
19936 2006-10-18  Bruno Haible  <bruno@clisp.org>
19937
19938         * lib/lock.h [C++]: Wrap definitions in extern "C".
19939
19940 2006-10-18  Bruno Haible  <bruno@clisp.org>
19941
19942         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
19943         gl_LIBOBJS list.
19944
19945 2006-10-18  Bruno Haible  <bruno@clisp.org>
19946
19947         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
19948
19949 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
19950
19951         * lib/xstrtol.h: Include gettext.h.
19952         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
19953         Problem reported by Eric Blake.
19954         * modules/xstrtol (Depends-on): Add gettext-h.
19955
19956 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
19957
19958         * lib/strftime.c (advance): New macro.
19959         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
19960         incomplete type, so you can't add 0 to it.  Problem and patch
19961         reported by Eelco Dolstra for dietlibc.
19962
19963 2006-10-18  Jim Meyering  <jim@meyering.net>
19964
19965         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
19966         type for a local, and rename it: s/up/user_proc/.
19967
19968 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19969
19970         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
19971         READ_UTMP_USER_PROCESS.
19972         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
19973
19974 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19975
19976         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
19977         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
19978
19979 2006-10-17  Eric Blake  <ebb9@byu.net>
19980
19981         * lib/sigprocmask.c (sigprocmask): Fix typo.
19982
19983         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
19984
19985         * modules/clean-temp (Makefile.am): Don't add to make output...
19986         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
19987         config.h.
19988
19989 2006-10-17  Bruno Haible  <bruno@clisp.org>
19990
19991         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
19992         differently if DEFAULT_TEXT_DOMAIN is set.
19993
19994 2006-10-16  Bruno Haible  <bruno@clisp.org>
19995
19996         * lib/clean-temp.c: Include fwriteerror.h.
19997
19998 2006-10-16  Bruno Haible  <bruno@clisp.org>
19999
20000         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
20001
20002 2006-10-16  Bruno Haible  <bruno@clisp.org>
20003
20004         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
20005         * lib/sigprocmask.h: Include <sys/types.h>.
20006         (sigset_t): Use the system's definition if present.
20007
20008 2006-10-17  Eric Blake  <ebb9@byu.net>
20009
20010         * lib/xvasprintf.c (includes): Assume config.h.
20011         * lib/xasprintf.c (includes): Likewise.
20012
20013 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20014
20015         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
20016         at least as wide as intmax_t.
20017
20018 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
20019
20020         (Imported from Automake.)
20021         * build-aux/gnupload: Update to version 1.1 of directive file.
20022
20023 2006-10-16  Eric Blake  <ebb9@byu.net>
20024
20025         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
20026         match Automake 1.10a.
20027
20028 2006-10-14  Bruno Haible  <bruno@clisp.org>
20029
20030         * modules/sigprocmask: New file.
20031         * lib/sigprocmask.h: New file.
20032         * lib/sigprocmask.c: New file.
20033         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
20034         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
20035         request sigprocmask.o.
20036         (gl_PREREQ_SIGPROCMASK): New macro.
20037         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
20038         (Depends-on): Add sigprocmask.
20039         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
20040         gt_SIGNALBLOCKING. Test for 'raise' only once.
20041         * lib/fatal-signal.c: Include sigprocmask.h.
20042         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
20043         unblock_fatal_signals): Define always.
20044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20045         sigprocmask.
20046
20047 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20048
20049         Sync from Automake.
20050         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
20051         which incorrectly sets the mode of an existing destination
20052         directory.  In some cases the unpatched install-sh could do the
20053         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
20054         system.  We hope this is rare in practice, but it's clearly worth
20055         fixing.  Problem reported by Alex Unleashed in
20056         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
20057         Also, don't bother to check for -m bugs unless we're using -m;
20058         suggested by Stepan Kasal.
20059
20060 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20061
20062         Sync from Automake.
20063         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
20064         `-c' flag, so they appear at the same position as in %FASTDEP%
20065         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
20066         which ignores unknown options only after the first non-option.
20067         Bug report against M4 by Nelson H. F. Beebe.
20068
20069 2006-10-13  Jim Meyering  <jim@meyering.net>
20070
20071         Fix a bug in yesterday's change.
20072         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
20073         p->fts_statp->st_dev would be used uninitialized.
20074         Ensures that we always call fts_stat on the very first entry.
20075         Miklos Szeredi reported that find -xdev stopped working.
20076
20077 2006-10-12  Bruno Haible  <bruno@clisp.org>
20078
20079         * gnulib-tool (func_get_automake_snippet): Append an automatically
20080         computed EXTRA_DIST augmentation.
20081         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
20082         * modules/alloca-opt (Makefile.am): Likewise.
20083         * modules/allocsa (Makefile.am): Likewise.
20084         * modules/arcfour (Makefile.am): Likewise.
20085         * modules/arctwo (Makefile.am): Likewise.
20086         * modules/argmatch (Makefile.am): Likewise.
20087         * modules/argz (Makefile.am): Likewise.
20088         * modules/atexit (Makefile.am): Likewise.
20089         * modules/backupfile (Makefile.am): Likewise.
20090         * modules/byteswap (Makefile.am): Likewise.
20091         * modules/c-strtod (Makefile.am): Likewise.
20092         * modules/c-strtold (Makefile.am): Likewise.
20093         * modules/calloc (Makefile.am): Likewise.
20094         * modules/canon-host (Makefile.am): Likewise.
20095         * modules/canonicalize (Makefile.am): Likewise.
20096         * modules/chdir-long (Makefile.am): Likewise.
20097         * modules/chdir-safer (Makefile.am): Likewise.
20098         * modules/check-version (Makefile.am): Likewise.
20099         * modules/chown (Makefile.am): Likewise.
20100         * modules/cloexec (Makefile.am): Likewise.
20101         * modules/close-stream (Makefile.am): Likewise.
20102         * modules/closeout (Makefile.am): Likewise.
20103         * modules/crc (Makefile.am): Likewise.
20104         * modules/csharpexec (Makefile.am): Likewise.
20105         * modules/cycle-check (Makefile.am): Likewise.
20106         * modules/des (Makefile.am): Likewise.
20107         * modules/dev-ino (Makefile.am): Likewise.
20108         * modules/dirfd (Makefile.am): Likewise.
20109         * modules/dirname (Makefile.am): Likewise.
20110         * modules/dup2 (Makefile.am): Likewise.
20111         * modules/eealloc (Makefile.am): Likewise.
20112         * modules/error (Makefile.am): Likewise.
20113         * modules/euidaccess (Makefile.am): Likewise.
20114         * modules/exclude (Makefile.am): Likewise.
20115         * modules/exitfail (Makefile.am): Likewise.
20116         * modules/fcntl-safer (Makefile.am): Likewise.
20117         * modules/fcntl (Makefile.am): Likewise.
20118         * modules/file-type (Makefile.am): Likewise.
20119         * modules/fileblocks (Makefile.am): Likewise.
20120         * modules/filemode (Makefile.am): Likewise.
20121         * modules/filenamecat (Makefile.am): Likewise.
20122         * modules/fnmatch (Makefile.am): Likewise.
20123         * modules/fopen-safer (Makefile.am): Likewise.
20124         * modules/fpending (Makefile.am): Likewise.
20125         * modules/fprintftime (Makefile.am): Likewise.
20126         * modules/free (Makefile.am): Likewise.
20127         * modules/fsusage (Makefile.am): Likewise.
20128         * modules/ftruncate (Makefile.am): Likewise.
20129         * modules/fts (Makefile.am): Likewise.
20130         * modules/gc-arcfour (Makefile.am): Likewise.
20131         * modules/gc-des (Makefile.am): Likewise.
20132         * modules/gc-hmac-md5 (Makefile.am): Likewise.
20133         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
20134         * modules/gc-md4 (Makefile.am): Likewise.
20135         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20136         * modules/gc-sha1 (Makefile.am): Likewise.
20137         * modules/gc (Makefile.am): Likewise.
20138         * modules/getaddrinfo (Makefile.am): Likewise.
20139         * modules/getcwd (Makefile.am): Likewise.
20140         * modules/getdelim (Makefile.am): Likewise.
20141         * modules/getdomainname (Makefile.am): Likewise.
20142         * modules/getgroups (Makefile.am): Likewise.
20143         * modules/gethostname (Makefile.am): Likewise.
20144         * modules/gethrxtime (Makefile.am): Likewise.
20145         * modules/getline (Makefile.am): Likewise.
20146         * modules/getloadavg (Makefile.am): Likewise.
20147         * modules/getlogin_r (Makefile.am): Likewise.
20148         * modules/getndelim2 (Makefile.am): Likewise.
20149         * modules/getopt (Makefile.am): Likewise.
20150         * modules/getpagesize (Makefile.am): Likewise.
20151         * modules/getpass-gnu (Makefile.am): Likewise.
20152         * modules/getpass (Makefile.am): Likewise.
20153         * modules/getsubopt (Makefile.am): Likewise.
20154         * modules/gettime (Makefile.am): Likewise.
20155         * modules/gettimeofday (Makefile.am): Likewise.
20156         * modules/getugroups (Makefile.am): Likewise.
20157         * modules/getusershell (Makefile.am): Likewise.
20158         * modules/glob (Makefile.am): Likewise.
20159         * modules/group-member (Makefile.am): Likewise.
20160         * modules/hard-locale (Makefile.am): Likewise.
20161         * modules/hash (Makefile.am): Likewise.
20162         * modules/hmac-md5 (Makefile.am): Likewise.
20163         * modules/hmac-sha1 (Makefile.am): Likewise.
20164         * modules/human (Makefile.am): Likewise.
20165         * modules/idcache (Makefile.am): Likewise.
20166         * modules/imaxabs (Makefile.am): Likewise.
20167         * modules/imaxdiv (Makefile.am): Likewise.
20168         * modules/inet_ntop (Makefile.am): Likewise.
20169         * modules/inet_pton (Makefile.am): Likewise.
20170         * modules/intprops (Makefile.am): Likewise.
20171         * modules/inttostr (Makefile.am): Likewise.
20172         * modules/inttypes (Makefile.am): Likewise.
20173         * modules/isapipe (Makefile.am): Likewise.
20174         * modules/javaversion (Makefile.am): Likewise.
20175         * modules/lchmod (Makefile.am): Likewise.
20176         * modules/lchown (Makefile.am): Likewise.
20177         * modules/localcharset (Makefile.am): Likewise.
20178         * modules/long-options (Makefile.am): Likewise.
20179         * modules/lstat (Makefile.am): Likewise.
20180         * modules/malloc (Makefile.am): Likewise.
20181         * modules/mathl (Makefile.am): Likewise.
20182         * modules/mbchar (Makefile.am): Likewise.
20183         * modules/md2 (Makefile.am): Likewise.
20184         * modules/md4 (Makefile.am): Likewise.
20185         * modules/md5 (Makefile.am): Likewise.
20186         * modules/memcasecmp (Makefile.am): Likewise.
20187         * modules/memchr (Makefile.am): Likewise.
20188         * modules/memcmp (Makefile.am): Likewise.
20189         * modules/memcoll (Makefile.am): Likewise.
20190         * modules/memcpy (Makefile.am): Likewise.
20191         * modules/memmem (Makefile.am): Likewise.
20192         * modules/memmove (Makefile.am): Likewise.
20193         * modules/mempcpy (Makefile.am): Likewise.
20194         * modules/memrchr (Makefile.am): Likewise.
20195         * modules/memset (Makefile.am): Likewise.
20196         * modules/memxor (Makefile.am): Likewise.
20197         * modules/mkancesdirs (Makefile.am): Likewise.
20198         * modules/mkdir-p (Makefile.am): Likewise.
20199         * modules/mkdir (Makefile.am): Likewise.
20200         * modules/mkdtemp (Makefile.am): Likewise.
20201         * modules/mkstemp (Makefile.am): Likewise.
20202         * modules/mktime (Makefile.am): Likewise.
20203         * modules/modechange (Makefile.am): Likewise.
20204         * modules/mountlist (Makefile.am): Likewise.
20205         * modules/nanosleep (Makefile.am): Likewise.
20206         * modules/obstack (Makefile.am): Likewise.
20207         * modules/openat (Makefile.am): Likewise.
20208         * modules/pagealign_alloc (Makefile.am): Likewise.
20209         * modules/pathmax (Makefile.am): Likewise.
20210         * modules/physmem (Makefile.am): Likewise.
20211         * modules/poll (Makefile.am): Likewise.
20212         * modules/posixtm (Makefile.am): Likewise.
20213         * modules/posixver (Makefile.am): Likewise.
20214         * modules/putenv (Makefile.am): Likewise.
20215         * modules/quote (Makefile.am): Likewise.
20216         * modules/quotearg (Makefile.am): Likewise.
20217         * modules/raise (Makefile.am): Likewise.
20218         * modules/read-file (Makefile.am): Likewise.
20219         * modules/readline (Makefile.am): Likewise.
20220         * modules/readlink (Makefile.am): Likewise.
20221         * modules/readtokens (Makefile.am): Likewise.
20222         * modules/readutmp (Makefile.am): Likewise.
20223         * modules/realloc (Makefile.am): Likewise.
20224         * modules/regex (Makefile.am): Likewise.
20225         * modules/rename-dest-slash (Makefile.am): Likewise.
20226         * modules/rename (Makefile.am): Likewise.
20227         * modules/rijndael (Makefile.am): Likewise.
20228         * modules/rmdir (Makefile.am): Likewise.
20229         * modules/rpmatch (Makefile.am): Likewise.
20230         * modules/safe-read (Makefile.am): Likewise.
20231         * modules/safe-write (Makefile.am): Likewise.
20232         * modules/same-inode (Makefile.am): Likewise.
20233         * modules/same (Makefile.am): Likewise.
20234         * modules/save-cwd (Makefile.am): Likewise.
20235         * modules/savedir (Makefile.am): Likewise.
20236         * modules/setenv (Makefile.am): Likewise.
20237         * modules/settime (Makefile.am): Likewise.
20238         * modules/sha1 (Makefile.am): Likewise.
20239         * modules/sig2str (Makefile.am): Likewise.
20240         * modules/snprintf (Makefile.am): Likewise.
20241         * modules/stat-macros (Makefile.am): Likewise.
20242         * modules/stat-time (Makefile.am): Likewise.
20243         * modules/stdbool (Makefile.am): Likewise.
20244         * modules/stdint (Makefile.am): Likewise.
20245         * modules/stdlib-safer (Makefile.am): Likewise.
20246         * modules/stpcpy (Makefile.am): Likewise.
20247         * modules/stpncpy (Makefile.am): Likewise.
20248         * modules/strcase (Makefile.am): Likewise.
20249         * modules/strcasestr (Makefile.am): Likewise.
20250         * modules/strchrnul (Makefile.am): Likewise.
20251         * modules/strcspn (Makefile.am): Likewise.
20252         * modules/strdup (Makefile.am): Likewise.
20253         * modules/strerror (Makefile.am): Likewise.
20254         * modules/strftime (Makefile.am): Likewise.
20255         * modules/strndup (Makefile.am): Likewise.
20256         * modules/strnlen (Makefile.am): Likewise.
20257         * modules/strpbrk (Makefile.am): Likewise.
20258         * modules/strsep (Makefile.am): Likewise.
20259         * modules/strstr (Makefile.am): Likewise.
20260         * modules/strtod (Makefile.am): Likewise.
20261         * modules/strtoimax (Makefile.am): Likewise.
20262         * modules/strtok_r (Makefile.am): Likewise.
20263         * modules/strtol (Makefile.am): Likewise.
20264         * modules/strtoll (Makefile.am): Likewise.
20265         * modules/strtoul (Makefile.am): Likewise.
20266         * modules/strtoull (Makefile.am): Likewise.
20267         * modules/strtoumax (Makefile.am): Likewise.
20268         * modules/strverscmp (Makefile.am): Likewise.
20269         * modules/sys_socket (Makefile.am): Likewise.
20270         * modules/sys_stat (Makefile.am): Likewise.
20271         * modules/sysexits (Makefile.am): Likewise.
20272         * modules/time_r (Makefile.am): Likewise.
20273         * modules/timegm (Makefile.am): Likewise.
20274         * modules/timespec (Makefile.am): Likewise.
20275         * modules/tmpfile-safer (Makefile.am): Likewise.
20276         * modules/trim (Makefile.am): Likewise.
20277         * modules/unistd-safer (Makefile.am): Likewise.
20278         * modules/unlinkdir (Makefile.am): Likewise.
20279         * modules/unlocked-io (Makefile.am): Likewise.
20280         * modules/userspec (Makefile.am): Likewise.
20281         * modules/utime (Makefile.am): Likewise.
20282         * modules/utimecmp (Makefile.am): Likewise.
20283         * modules/utimens (Makefile.am): Likewise.
20284         * modules/vasnprintf (Makefile.am): Likewise.
20285         * modules/vasprintf (Makefile.am): Likewise.
20286         * modules/vsnprintf (Makefile.am): Likewise.
20287         * modules/xalloc (Makefile.am): Likewise.
20288         * modules/xgetcwd (Makefile.am): Likewise.
20289         * modules/xnanosleep (Makefile.am): Likewise.
20290         * modules/xreadlink (Makefile.am): Likewise.
20291         * modules/xstrtod (Makefile.am): Likewise.
20292         * modules/xstrtol (Makefile.am): Likewise.
20293         * modules/xstrtold (Makefile.am): Likewise.
20294         * modules/yesno (Makefile.am): Likewise.
20295         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
20296
20297 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20298
20299         * modules/error (Makefile.am): Distribute files through
20300         EXTRA_DIST, not lib_SOURCES.
20301
20302 2006-10-12  Eric Blake  <ebb9@byu.net>
20303
20304         * modules/error (Makefile.am): Distribute files in /lib.
20305         * modules/obstack (Makefile.am): Likewise.
20306
20307 2006-10-12  Bruno Haible  <bruno@clisp.org>
20308
20309         * modules/acl (Makefile.am): Distribute all files in lib/ through
20310         EXTRA_DIST.
20311         * modules/arcfour (Makefile.am): Likewise.
20312         * modules/arctwo (Makefile.am): Likewise.
20313         * modules/argmatch (Makefile.am): Likewise.
20314         * modules/argz (Makefile.am): Likewise.
20315         * modules/atexit (Makefile.am): Likewise.
20316         * modules/backupfile (Makefile.am): Likewise.
20317         * modules/c-strtod (Makefile.am): Likewise.
20318         * modules/c-strtold (Makefile.am): Likewise.
20319         * modules/calloc (Makefile.am): Likewise.
20320         * modules/canon-host (Makefile.am): Likewise.
20321         * modules/canonicalize (Makefile.am): Likewise.
20322         * modules/chdir-long (Makefile.am): Likewise.
20323         * modules/chdir-safer (Makefile.am): Likewise.
20324         * modules/check-version (Makefile.am): Likewise.
20325         * modules/chown (Makefile.am): Likewise.
20326         * modules/cloexec (Makefile.am): Likewise.
20327         * modules/close-stream (Makefile.am): Likewise.
20328         * modules/closeout (Makefile.am): Likewise.
20329         * modules/crc (Makefile.am): Likewise.
20330         * modules/cycle-check (Makefile.am): Likewise.
20331         * modules/des (Makefile.am): Likewise.
20332         * modules/dirfd (Makefile.am): Likewise.
20333         * modules/dirname (Makefile.am): Likewise.
20334         * modules/dup2 (Makefile.am): Likewise.
20335         * modules/euidaccess (Makefile.am): Likewise.
20336         * modules/exclude (Makefile.am): Likewise.
20337         * modules/exitfail (Makefile.am): Likewise.
20338         * modules/fcntl-safer (Makefile.am): Likewise.
20339         * modules/file-type (Makefile.am): Likewise.
20340         * modules/fileblocks (Makefile.am): Likewise.
20341         * modules/filemode (Makefile.am): Likewise.
20342         * modules/filenamecat (Makefile.am): Likewise.
20343         * modules/fnmatch (Makefile.am): Likewise.
20344         * modules/fopen-safer (Makefile.am): Likewise.
20345         * modules/fpending (Makefile.am): Likewise.
20346         * modules/fprintftime (Makefile.am): Likewise.
20347         * modules/free (Makefile.am): Likewise.
20348         * modules/fsusage (Makefile.am): Likewise.
20349         * modules/ftruncate (Makefile.am): Likewise.
20350         * modules/fts (Makefile.am): Likewise.
20351         * modules/gc (Makefile.am): Likewise.
20352         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20353         * modules/getaddrinfo (Makefile.am): Likewise.
20354         * modules/getcwd (Makefile.am): Likewise.
20355         * modules/getdelim (Makefile.am): Likewise.
20356         * modules/getdomainname (Makefile.am): Likewise.
20357         * modules/getgroups (Makefile.am): Likewise.
20358         * modules/gethostname (Makefile.am): Likewise.
20359         * modules/gethrxtime (Makefile.am): Likewise.
20360         * modules/getline (Makefile.am): Likewise.
20361         * modules/getloadavg (Makefile.am): Likewise.
20362         * modules/getlogin_r (Makefile.am): Likewise.
20363         * modules/getopt (Makefile.am): Likewise.
20364         * modules/getpass (Makefile.am): Likewise.
20365         * modules/getpass-gnu (Makefile.am): Likewise.
20366         * modules/getsubopt (Makefile.am): Likewise.
20367         * modules/gettime (Makefile.am): Likewise.
20368         * modules/gettimeofday (Makefile.am): Likewise.
20369         * modules/getugroups (Makefile.am): Likewise.
20370         * modules/getusershell (Makefile.am): Likewise.
20371         * modules/glob (Makefile.am): Likewise.
20372         * modules/group-member (Makefile.am): Likewise.
20373         * modules/hard-locale (Makefile.am): Likewise.
20374         * modules/hash (Makefile.am): Likewise.
20375         * modules/hmac-md5 (Makefile.am): Likewise.
20376         * modules/hmac-sha1 (Makefile.am): Likewise.
20377         * modules/human (Makefile.am): Likewise.
20378         * modules/idcache (Makefile.am): Likewise.
20379         * modules/imaxabs (Makefile.am): Likewise.
20380         * modules/imaxdiv (Makefile.am): Likewise.
20381         * modules/inet_ntop (Makefile.am): Likewise.
20382         * modules/inet_pton (Makefile.am): Likewise.
20383         * modules/inttostr (Makefile.am): Likewise.
20384         * modules/isapipe (Makefile.am): Likewise.
20385         * modules/lchown (Makefile.am): Likewise.
20386         * modules/long-options (Makefile.am): Likewise.
20387         * modules/lstat (Makefile.am): Likewise.
20388         * modules/malloc (Makefile.am): Likewise.
20389         * modules/mathl (Makefile.am): Likewise.
20390         * modules/mbchar (Makefile.am): Likewise.
20391         * modules/md2 (Makefile.am): Likewise.
20392         * modules/md4 (Makefile.am): Likewise.
20393         * modules/md5 (Makefile.am): Likewise.
20394         * modules/memcasecmp (Makefile.am): Likewise.
20395         * modules/memchr (Makefile.am): Likewise.
20396         * modules/memcmp (Makefile.am): Likewise.
20397         * modules/memcoll (Makefile.am): Likewise.
20398         * modules/memcpy (Makefile.am): Likewise.
20399         * modules/memmem (Makefile.am): Likewise.
20400         * modules/memmove (Makefile.am): Likewise.
20401         * modules/mempcpy (Makefile.am): Likewise.
20402         * modules/memrchr (Makefile.am): Likewise.
20403         * modules/memset (Makefile.am): Likewise.
20404         * modules/memxor (Makefile.am): Likewise.
20405         * modules/mkancesdirs (Makefile.am): Likewise.
20406         * modules/mkdir (Makefile.am): Likewise.
20407         * modules/mkdir-p (Makefile.am): Likewise.
20408         * modules/mkdtemp (Makefile.am): Likewise.
20409         * modules/mkstemp (Makefile.am): Likewise.
20410         * modules/mktime (Makefile.am): Likewise.
20411         * modules/modechange (Makefile.am): Likewise.
20412         * modules/mountlist (Makefile.am): Likewise.
20413         * modules/nanosleep (Makefile.am): Likewise.
20414         * modules/openat (Makefile.am): Likewise.
20415         * modules/pagealign_alloc (Makefile.am): Likewise.
20416         * modules/physmem (Makefile.am): Likewise.
20417         * modules/poll (Makefile.am): Likewise.
20418         * modules/posixtm (Makefile.am): Likewise.
20419         * modules/posixver (Makefile.am): Likewise.
20420         * modules/putenv (Makefile.am): Likewise.
20421         * modules/quote (Makefile.am): Likewise.
20422         * modules/quotearg (Makefile.am): Likewise.
20423         * modules/raise (Makefile.am): Likewise.
20424         * modules/read-file (Makefile.am): Likewise.
20425         * modules/readline (Makefile.am): Likewise.
20426         * modules/readlink (Makefile.am): Likewise.
20427         * modules/readtokens (Makefile.am): Likewise.
20428         * modules/readutmp (Makefile.am): Likewise.
20429         * modules/realloc (Makefile.am): Likewise.
20430         * modules/regex (Makefile.am): Likewise.
20431         * modules/rename (Makefile.am): Likewise.
20432         * modules/rename-dest-slash (Makefile.am): Likewise.
20433         * modules/rijndael (Makefile.am): Likewise.
20434         * modules/rmdir (Makefile.am): Likewise.
20435         * modules/rpmatch (Makefile.am): Likewise.
20436         * modules/safe-read (Makefile.am): Likewise.
20437         * modules/safe-write (Makefile.am): Likewise.
20438         * modules/same (Makefile.am): Likewise.
20439         * modules/save-cwd (Makefile.am): Likewise.
20440         * modules/savedir (Makefile.am): Likewise.
20441         * modules/setenv (Makefile.am): Likewise.
20442         * modules/settime (Makefile.am): Likewise.
20443         * modules/sha1 (Makefile.am): Likewise.
20444         * modules/sig2str (Makefile.am): Likewise.
20445         * modules/snprintf (Makefile.am): Likewise.
20446         * modules/stdlib-safer (Makefile.am): Likewise.
20447         * modules/stpcpy (Makefile.am): Likewise.
20448         * modules/stpncpy (Makefile.am): Likewise.
20449         * modules/strcase (Makefile.am): Likewise.
20450         * modules/strcasestr (Makefile.am): Likewise.
20451         * modules/strchrnul (Makefile.am): Likewise.
20452         * modules/strcspn (Makefile.am): Likewise.
20453         * modules/strdup (Makefile.am): Likewise.
20454         * modules/strerror (Makefile.am): Likewise.
20455         * modules/strftime (Makefile.am): Likewise.
20456         * modules/strndup (Makefile.am): Likewise.
20457         * modules/strnlen (Makefile.am): Likewise.
20458         * modules/strpbrk (Makefile.am): Likewise.
20459         * modules/strsep (Makefile.am): Likewise.
20460         * modules/strstr (Makefile.am): Likewise.
20461         * modules/strtod (Makefile.am): Likewise.
20462         * modules/strtoimax (Makefile.am): Likewise.
20463         * modules/strtok_r (Makefile.am): Likewise.
20464         * modules/strtol (Makefile.am): Likewise.
20465         * modules/strtoll (Makefile.am): Likewise.
20466         * modules/strtoul (Makefile.am): Likewise.
20467         * modules/strtoull (Makefile.am): Likewise.
20468         * modules/strtoumax (Makefile.am): Likewise.
20469         * modules/strverscmp (Makefile.am): Likewise.
20470         * modules/time_r (Makefile.am): Likewise.
20471         * modules/timegm (Makefile.am): Likewise.
20472         * modules/tmpfile-safer (Makefile.am): Likewise.
20473         * modules/unistd-safer (Makefile.am): Likewise.
20474         * modules/unlinkdir (Makefile.am): Likewise.
20475         * modules/userspec (Makefile.am): Likewise.
20476         * modules/utime (Makefile.am): Likewise.
20477         * modules/utimecmp (Makefile.am): Likewise.
20478         * modules/utimens (Makefile.am): Likewise.
20479         * modules/vasnprintf (Makefile.am): Likewise.
20480         * modules/vasprintf (Makefile.am): Likewise.
20481         * modules/vsnprintf (Makefile.am): Likewise.
20482         * modules/xalloc (Makefile.am): Likewise.
20483         * modules/xgetcwd (Makefile.am): Likewise.
20484         * modules/xnanosleep (Makefile.am): Likewise.
20485         * modules/xreadlink (Makefile.am): Likewise.
20486         * modules/xstrtod (Makefile.am): Likewise.
20487         * modules/xstrtol (Makefile.am): Likewise.
20488         * modules/xstrtold (Makefile.am): Likewise.
20489         * modules/yesno (Makefile.am): Likewise.
20490
20491 2006-10-12  Jim Meyering  <jim@meyering.net>
20492
20493         * m4/getloadavg.m4: Revert the change below.
20494
20495         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
20496         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
20497         fail with a symlink, which is what coreutils' ./bootstrap now
20498         creates by default.
20499
20500 2006-10-12  Bruno Haible  <bruno@clisp.org>
20501
20502         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
20503         mingw.
20504         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
20505         MSVC and mingw explicitly.
20506
20507 2006-10-11  Simon Josefsson  <jas@extundo.com>
20508             Bruno Haible  <bruno@clisp.org>
20509
20510         Add support for multiple gnulib-tool invocations in the scope of a
20511         single configure.ac file.
20512         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
20513         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
20514         with the same contents as the _LIBADD variable.
20515         (func_emit_initmacro_start, func_emit_initmacro_end,
20516         func_emit_initmacro_done): New functions.
20517         (func_import, func_create_testdir): Invoke them. Allow the identifiers
20518         gl_LIBOBJS and gl_LTLIBOBJS.
20519
20520 2006-10-11  Bruno Haible  <bruno@clisp.org>
20521
20522         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
20523         (func_create_testdir): Don't create po/Makefile.am, don't invoke
20524         autoreconf. Instead, invoke autopoint explicitly but move back the
20525         *.m4 files from gnulib.
20526
20527 2006-10-11  Bruno Haible  <bruno@clisp.org>
20528
20529         * gnulib-tool (func_usage): Make module names after --create-testdir
20530         optional.
20531         (func_create_testdir): If no module was specified, use nearly all
20532         modules.
20533
20534 2006-10-12  Jim Meyering  <jim@meyering.net>
20535
20536         Big performance improvement for fts-based tools that use FTS_NOSTAT.
20537         Avoid spurious inode-mismatch problems on non-POSIX file systems.
20538         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
20539         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
20540         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
20541         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
20542         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
20543         (fts_set_stat_required): New function.
20544         (fts_open): Defer the calls to fts_stat, if possible or requested.
20545         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
20546         into fts_stat itself.
20547         (fts_read): Perform any required (deferred) fts_stat call.
20548         (fts_build): Likewise, for the directory we're about to open and read.
20549         In the readdir loop, carefully decide whether each entry will require
20550         an eventual call to fts_stat, using dirent.d_type info if available.
20551         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
20552         a command line argument into this function.  Update all callers.
20553         Map a return value of FTS_DOT to FTS_D for a command line argument.
20554         * modules/fts (Depends-on): Add d-type.  Alphabetize.
20555         Thanks to Miklos Szeredi for his tenacity and for the initial
20556         bug report about "find" failing on a FUSE-based file system.
20557
20558         * lib/fts.c (fts_open): Use consistent indentation.
20559
20560 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20561
20562         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
20563         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
20564         reported by Jim Meyering.  All uses of cache variables renamed
20565         to match Autoconf's.
20566         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
20567         the other one.
20568
20569         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20570         Fix misspelling in diagnostic.
20571
20572 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20573
20574         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
20575         defined.  Problem reported by Matthew Woehlke.
20576
20577         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
20578         Add support for Tandem NonStop R series.
20579         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
20580         Use new macro.
20581
20582         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
20583         (has_trailing_slash): Omit size arg; all callers changed.
20584         Omit 'inline', since it doesn't help performance and we'd
20585         need to configure it.
20586         Don't count //, ///, etc. as having a trailing slash.
20587         As a side effect, this removes a C99ism reported by Matthew Woehlke.
20588         (rpl_rename_dest_slash): On failure, use rename's errno rather
20589         than (in some cases) an incorrect or junk errno.
20590         Simplify code by removing need to compute length; this does
20591         cause it to make two passes instead of one over the file name,
20592         but it's worth it.
20593
20594         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
20595         change, since Autoconf's version may no longer be appropriate now
20596         that we are using CVS Autoconf's version.  Add support for Tandem.
20597
20598 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20599             Bruno Haible  <bruno@clisp.org>
20600
20601         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
20602         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
20603         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
20604         gl_AC_TYPE_LONG_LONG.
20605
20606         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
20607         instead of HAVE_LONG_LONG.
20608         * lib/printf-args.c (printf_fetchargs): Likewise.
20609         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20610         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20611         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
20612         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
20613         gl_AC_TYPE_LONG_LONG.
20614
20615 2006-10-11  Bruno Haible  <bruno@clisp.org>
20616
20617         * m4/longlong.m4: Add comments.
20618         * m4/ulonglong.m4: Likewise.
20619
20620 2006-10-10  Bruno Haible  <bruno@clisp.org>
20621
20622         Make it possible to #define stpcpy, strdup to aliases.
20623         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
20624         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
20625
20626 2006-10-10  Bruno Haible  <bruno@clisp.org>
20627
20628         Make it possible to #define gcd to an alias.
20629         * lib/gcd.c: Include config.h.
20630
20631 2006-10-10  Bruno Haible  <bruno@clisp.org>
20632
20633         Make it possible to #define c_isascii to an alias.
20634         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
20635         defined. Undefine the macros before defining them, to avoid gcc
20636         warnings.
20637         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
20638         define NO_C_CTYPE_MACROS early.
20639
20640 2006-10-10  Bruno Haible  <bruno@clisp.org>
20641
20642         Make it possible to #define set_program_name to an alias.
20643         * lib/progname.c: Don't undefine set_program_name; instead, undefine
20644         ENABLE_RELOCATABLE early.
20645
20646 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20647
20648         Port to Tandem NSK OSS, which has 64-bit signed int but at most
20649         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
20650         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
20651         More generally, don't assume that 64-bit signed int is available
20652         if unsigned int is, and vice versa.
20653         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
20654         unsigned symbols, not on their signed counterparts.
20655         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
20656         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
20657         (UINT64_C, UINTMAX_C):
20658         Likewise.
20659         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
20660         unsigned counterparts.
20661         (Have_long_long, Unsigned): New macros.
20662         (Int): Renamed from INT.
20663         (strtoimax): Use the new macros.
20664         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
20665         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
20666         * modules/inttypes (inttypes.h): Substitute
20667         HAVE_UNSIGNED_LONG_LONG_INT.
20668         * modules/stdint (stdint.h): Likewise.
20669         (Files): Add m4/ulonglong.m4.
20670
20671 2006-10-10  Bruno Haible  <bruno@clisp.org>
20672
20673         Fix a gcc -Wshadow warning.
20674         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
20675         to 'bucket'.
20676         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
20677         gl_linked_indexof_from_to): Likewise.
20678         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
20679         Likewise.
20680         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
20681         Likewise.
20682         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
20683         Reported by Eric Blake.
20684
20685 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
20686
20687         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
20688         for NetBSD.  Problem reported by Bruno Haible.
20689
20690 2006-10-09  Jim Meyering  <jim@meyering.net>
20691
20692         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
20693         Patch from Bruno Haible.
20694
20695 2006-10-09  Jim Meyering  <jim@meyering.net>
20696
20697         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
20698         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
20699         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
20700
20701 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20702
20703         Don't include <config.h> twice; this doesn't work in some cases,
20704         e.g., when config.h has "#define intmax_t long long int" and
20705         we include <config.h>, <inttypes.h>, <config.h> in that order.
20706         Problem reported by Matthew Woehlke in:
20707         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
20708         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
20709         * lib/fts-cycle.c: Don't include config.h.
20710         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
20711         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
20712         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
20713         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
20714         inttypes.h.
20715         * lib/xstrtoumax.c: Likewise.
20716         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
20717         __strtol and the like, so that this module is more like its siblings.
20718         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20719         Remove; no longer needed now that we assume gnulib inttypes.h.
20720
20721 2006-10-08  Bruno Haible  <bruno@clisp.org>
20722
20723         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20724         option.
20725
20726 2006-10-07  Jim Meyering  <jim@meyering.net>
20727
20728         * modules/inttypes (inttypes.h): Revert what seems to have been
20729         an inadvertent part of today's change: use "|", not "/" in the
20730         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20731
20732 2006-10-07  Bruno Haible  <bruno@clisp.org>
20733
20734         * modules/sublist: New file.
20735
20736 2006-10-07  Bruno Haible  <bruno@clisp.org>
20737
20738         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
20739         * modules/argz (argz.h): Likewise.
20740         * modules/arpa_inet (arpa/inet.h): Likewise.
20741         * modules/byteswap (byteswap.h): Likewise.
20742         * modules/configmake (configmake.h): Likewise.
20743         * modules/fcntl (fcntl.h): Likewise.
20744         * modules/fnmatch (fnmatch.h): Likewise.
20745         * modules/getopt (getopt.h): Likewise.
20746         * modules/glob (glob.h): Likewise.
20747         * modules/inttypes (inttypes.h): Likewise.
20748         * modules/netinet_in (netinet/in.h): Likewise.
20749         * modules/poll (poll.h): Likewise.
20750         * modules/stdbool (stdbool.h): Likewise.
20751         * modules/stdint (stdint.h): Likewise.
20752         * modules/sys_select (sys/select.h): Likewise.
20753         * modules/sys_socket (sys/socket.h): Likewise.
20754         * modules/sys_stat (sys/stat.h): Likewise.
20755         * modules/sysexits (sysexits.h): Likewise.
20756         * modules/unistd (unistd.h): Likewise.
20757         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20758         Add a "DO NOT EDIT" comment to the generated file.
20759         (func_import): Likewise for gnulib-comp.m4.
20760
20761 2006-10-07  Bruno Haible  <bruno@clisp.org>
20762
20763         * lib/gl_sublist.h: New file.
20764         * lib/gl_sublist.c: New file.
20765
20766 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20767
20768         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
20769         name (relative to the original working directory) and the file
20770         name component (relative to the temporary working directory).  All
20771         callers changed.
20772         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
20773         * lib/mkdir-p.c (make_dir_parents): Likewise.
20774         * lib/mkdir-p.h (make_dir_parents): Likewise.
20775
20776 2006-10-06  Eric Blake  <ebb9@byu.net>
20777
20778         Define several macros for use by the clean-temp module.
20779         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
20780         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
20781         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
20782
20783         * lib/clean-temp.h (close_stream_temp): New declaration.
20784         * lib/clean-temp.c (includes): Pull in headers according to what
20785         other modules are in use.
20786         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
20787
20788 2006-10-06  Bruno Haible  <bruno@clisp.org>
20789
20790         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
20791         instead of fopen, fwriteerror.
20792
20793 2006-10-06  Bruno Haible  <bruno@clisp.org>
20794
20795         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
20796         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
20797         int.
20798         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
20799         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
20800         Return an error indicator.
20801         Suggested by Eric Blake.
20802
20803 2006-10-06  Bruno Haible  <bruno@clisp.org>
20804
20805         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
20806         Reported by Eric Blake.
20807
20808 2006-10-06  Bruno Haible  <bruno@clisp.org>
20809
20810         * modules/closeout (Description): Mention stderr too.
20811
20812 2006-10-06  Bruno Haible  <bruno@clisp.org>
20813         and Paul Eggert  <eggert@cs.ucla.edu>
20814
20815         * lib/closeout.c (close_stdout): Also close stderr.
20816         * lib/closeout.h: Update comment.
20817
20818 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20819
20820         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
20821         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
20822         * lib/dirchownmod.c: Include lchown.h.
20823         * lib/lchown.c: Don't include files that lchown.h now includes.
20824         Don't declare chown, since lchown.h now does that.
20825         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
20826         (lchown): Define to rpl_chown if lchown is declared but
20827         does not exist.  Declare using a prototype if lchown is not
20828         declared.  Add a copyright notice.
20829         * lib/mkstemp.h: Include <unistd.h>.
20830         * lib/openat.c: Include lchown.h.
20831
20832         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
20833         we now test for that separately.
20834         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
20835         rather than O_NOFOLLOW, when testing whether it's possible to
20836         avoid a race condition reliably.
20837         * lib/savewd.c (savewd_chdir): Likewise.
20838
20839         Remove macros that are no longer needed now that stdint.h is
20840         reliable.
20841         * lib/fsusage.c (UINTMAX_MAX): Remove.
20842         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
20843         * lib/utimecmp.c (SIZE_MAX): Remove.
20844
20845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
20846
20847         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
20848         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
20849         O_NOATIME works.
20850
20851 2006-10-05  Bruno Haible  <bruno@clisp.org>
20852
20853         * lib/gl_list.h (gl_sortedlist_search_from_to,
20854         gl_sortedlist_indexof_from_to): New declarations.
20855         (gl_list_implementation): New fields sortedlist_search_from_to,
20856         sortedlist_indexof_from_to.
20857         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
20858         inline functions.
20859         * lib/gl_list.c (gl_sortedlist_search_from_to,
20860         gl_sortedlist_indexof_from_to): New functions.
20861         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
20862         function.
20863         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
20864         (gl_array_sortedlist_search_from_to): New function.
20865         (gl_array_list_implementation): Update.
20866         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
20867         function.
20868         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
20869         (gl_carray_sortedlist_search_from_to): New function.
20870         (gl_carray_list_implementation): Update.
20871         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
20872         gl_linked_sortedlist_indexof_from_to): New functions.
20873         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20874         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20875         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
20876         gl_tree_sortedlist_indexof_from_to): New functions.
20877         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20878         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20879         Update.
20880         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20881         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
20882         Update.
20883
20884 2006-10-05  Bruno Haible  <bruno@clisp.org>
20885
20886         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
20887         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
20888         (struct gl_list_implementation): Add fields search_from_to,
20889         indexof_from_to. Remove fields search, indexof.
20890         (gl_list_search): Use the search_from_to method.
20891         (gl_list_search_from, gl_list_search_from_to): New functions.
20892         (gl_list_indexof): Use the indexof_from_to method.
20893         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20894         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
20895         (gl_list_search_from, gl_list_search_from_to): New functions.
20896         (gl_list_indexof): Use the indexof_from_to method.
20897         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20898         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
20899         gl_array_indexof. Add start_index, end_index arguments.
20900         (gl_array_search_from_to): Renamed from gl_array_search. Add
20901         start_index, end_index arguments.
20902         (gl_array_remove, gl_array_list_implementation): Update.
20903         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
20904         gl_carray_indexof. Add start_index, end_index arguments.
20905         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
20906         start_index, end_index arguments.
20907         (gl_carray_remove, gl_carray_list_implementation): Update.
20908         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
20909         gl_linked_search. Add start_index, end_index arguments.
20910         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
20911         start_index, end_index arguments.
20912         (gl_linked_remove): Update.
20913         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20914         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20915         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
20916         field to 'size_t'.
20917         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
20918         gl_tree_search. Add start_index, end_index arguments.
20919         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20920         start_index, end_index arguments.
20921         (gl_tree_remove): Update.
20922         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20923         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20924         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
20925         function.
20926         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
20927         gl_tree_search. Add start_index, end_index arguments.
20928         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20929         start_index, end_index arguments.
20930         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20931         Update.
20932         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20933
20934 2006-10-05  Bruno Haible  <bruno@clisp.org>
20935
20936         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
20937
20938         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
20939         fwriteerror_temp): New declarations.
20940         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
20941         (descriptors): New variable.
20942         (cleanup): First, close the descriptors.
20943         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
20944         fclose_temp, fwriteerror_temp): New functions.
20945
20946 2006-10-04  Jim Meyering  <jim@meyering.net>
20947
20948         * lib/fts.c (fts_open): Tiny comment change.
20949
20950 2006-10-04  Bruno Haible  <bruno@clisp.org>
20951
20952         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
20953         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
20954         gl_LOCK_BODY.
20955         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
20956         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
20957         gl_LOCK_EARLY_BODY.
20958         (gl_LOCK): Require gl_LOCK_BODY.
20959
20960 2006-10-04  Bruno Haible  <bruno@clisp.org>
20961
20962         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
20963         (gl_oset_search_atleast): New declaration.
20964         (struct gl_oset_implementation): Add field 'search_atleast'.
20965         (gl_oset_search_atleast): New inline function.
20966         * lib/gl_oset.c (gl_oset_search_atleast): New function.
20967         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
20968         (gl_array_oset_implementation): Update.
20969         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
20970         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
20971         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
20972
20973 2006-10-04  Bruno Haible  <bruno@clisp.org>
20974
20975         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
20976
20977 2006-10-03  Bruno Haible  <bruno@clisp.org>
20978
20979         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
20980         from gl_avltreehash_list_implementation.
20981
20982 2006-10-03  Bruno Haible  <bruno@clisp.org>
20983
20984         * lib/gl_oset.c (gl_oset_add): Fix return type.
20985
20986 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
20987
20988         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
20989
20990 2006-10-02  Eric Blake  <ebb9@byu.net>
20991
20992         * modules/strnlen (Depends-on): Add extensions.
20993
20994 2006-10-02  Eric Blake  <ebb9@byu.net>
20995
20996         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
20997         definition in 2.60+.
20998
20999 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
21000
21001         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
21002         checks.
21003
21004 2006-10-02  Bruno Haible  <bruno@clisp.org>
21005
21006         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
21007         to the AUTOMAKE_OPTIONS.
21008         Reported by Jim Meyering.
21009
21010 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21011
21012         Work around bug in Solaris 10 /proc file system:
21013         /proc/self/fd/NNN/.. isn't the parent directory of
21014         the directory whose file descriptor is NNN.  This needs to
21015         be worked around at run time, not compile time, since a
21016         program might be built on Solaris 8, where things work, and
21017         run on Solaris 10.
21018         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
21019         to use the following interface instead:
21020         (OPENAT_BUFFER_SIZE): New macro.
21021         (openat_proc_name): New function.
21022         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
21023         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
21024         Likewise.
21025         * lib/openat-proc.c: New file.
21026         * modules/openat (Files): Add lib/openat-proc.c.
21027         (Depends-on): Add same-inode, stdbool.
21028         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
21029
21030 2006-09-29  Bruno Haible  <bruno@clisp.org>
21031
21032         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
21033         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
21034         argument. Set stdout_closed before testing for ferror, not after.
21035         (fwriteerror, fwriteerror_no_ebadf): New functions.
21036
21037 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21038
21039         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
21040
21041 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
21042
21043         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
21044         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
21045
21046 2006-09-28  Jim Meyering  <jim@meyering.net>
21047
21048         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
21049         Include <unistd.h>.
21050
21051 2006-09-28  Bruno Haible  <bruno@clisp.org>
21052
21053         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
21054         * modules/linkedhash-list (Depends-on): Likewise.
21055         * modules/rbtreehash-list (Depends-on): Likewise.
21056
21057 2006-09-28  Bruno Haible  <bruno@clisp.org>
21058
21059         * lib/strndup.h: Simplify the redefinition of strndup.
21060         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
21061         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
21062
21063 2006-09-28  Bruno Haible  <bruno@clisp.org>
21064
21065         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
21066         * lib/gl_linkedhash_list.c: Likewise.
21067         * lib/gl_rbtreehash_list.c: Likewise.
21068
21069 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21070
21071         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
21072         getaddrinfo.
21073
21074         * lib/__fpending.h: Don't include <stdio_ext.h> unless
21075         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
21076         it causes <stdio_ext.h> to cause a compile-time error.
21077         Problem reported by Nelson H. F. Beebe.
21078         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
21079         of HAVE_DECL___PENDING.
21080
21081         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
21082         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
21083         declaration.
21084
21085 2006-09-27  Jim Meyering  <jim@meyering.net>
21086
21087         This file could end up with a definition for a function
21088         named __strndup, rather than rpl_strndup on a system with
21089         incomplete weak_alias support.
21090         * lib/strndup.c (strndup): Rename from __strndup.
21091         Remove #defines that used to map __strndup to strndup.
21092         Don't use K&R prototypes.
21093         Remove LIBC-related code, since this file is not sync'd with glibc.
21094         * lib/strndup.h: Revamp, accordingly.
21095         * m4/strndup.m4: Modernize.
21096
21097 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21098
21099         * modules/savewd (Depends-on): Add 'raise'.
21100         * lib/savewd.c: Include <signal.h>, for 'raise'.
21101
21102 2006-09-26  Jim Meyering  <jim@meyering.net>
21103
21104         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
21105         when we detect Darwin 8.7.0's acl_get_file bug.
21106         Rearrange to perform the new (below) run-test while $LIBS
21107         contains any acl-related library.  Set USE_ACL at the end.
21108         (gl_ACL_GET_FILE): New function.
21109
21110 2006-09-26  Eric Blake  <ebb9@byu.net>
21111
21112         * lib/verror.c: Include <config.h> unconditionally.
21113
21114 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21115
21116         * modules/clock-time (Maintainer): Add self.
21117         * modules/getlogin_r (Depends-on): Add extensions.
21118
21119 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21120
21121         * modules/clock-time: New module.
21122         * modules/nanosleep (Depends-on): Add clock-time.
21123         * modules/gethrxtime (Depends-on): Likewise.
21124         * modules/gettime (Depends-on): Likewise.
21125         * modules/settime (Depends-on): Likewise.
21126
21127         * modules/fts-lgpl: Depend on openat.
21128         * modules/mkancesdirs: Depend on savewd.
21129         * modules/mkdir-p: Likewise.
21130
21131 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21132
21133         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
21134
21135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
21136         `gl_have_arbitrary_file_name_length_limit' to
21137         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
21138         actually works between configure runs.
21139
21140 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21141             Bruno Haible  <bruno@clisp.org>
21142
21143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
21144
21145 2006-09-25  Jim Meyering  <jim@meyering.net>
21146
21147         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
21148         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
21149
21150 2006-09-25  Eric Blake  <ebb9@byu.net>
21151
21152         * gnulib-tool (func_import, func_create_testdir): Fix typos in
21153         exec's in 2006-09-18 patch when shuffling fds.
21154
21155 2006-09-25  Bruno Haible  <bruno@clisp.org>
21156
21157         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
21158         Reported by Jim Meyering.
21159
21160 2006-09-24  Jim Meyering  <jim@meyering.net>
21161
21162         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
21163         compare a pointer against a literal "0".  That caused failures with
21164         at least HP-UX's hpcc.
21165
21166 2006-09-22  Simon Josefsson  <jas@extundo.com>
21167
21168         * modules/gc-sha1:
21169         * modules/gc-md4:
21170         * modules/gc-hmac-sha1:
21171         * modules/gc-hmac-md5:
21172         * modules/gc-des:
21173         * modules/gc-arcfour: Distribute more files.
21174
21175 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21176
21177         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
21178         (gl_linked_iterator_from_to): Initialize struct completely.
21179         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
21180         (gl_tree_iterator_from_to): Likewise
21181         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
21182         * lib/gl_array_list.c [lint] (gl_array_iterator)
21183         (gl_array_iterator_from_to): Likewise.
21184         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
21185         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
21186         (gl_carray_iterator_from_to): Likewise.
21187
21188         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
21189         * lib/md4.c (md4_process_block): Remove unused variable.
21190         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
21191         parentheses for clarity.
21192
21193 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21194
21195         * modules/bison-i18n (Depends-on): Add gettext.
21196
21197 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21198
21199         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
21200         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21201         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
21202         also add missing comma that caused broken test.
21203         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
21204         stdlib.h, for `abort'.
21205         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
21206         variables.
21207         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
21208         include unistd.h if present, for `rmdir'.
21209         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
21210         variables.
21211         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
21212         in the process include standard headers for prototypes.
21213         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
21214         gets declared on GNU/Linux.
21215         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
21216         unistd.h, for `rmdir'.
21217         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
21218
21219         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
21220         always true.
21221         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
21222
21223         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
21224
21225 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21226
21227         * gnulib-tool (func_version): Create output all at once.  This
21228         may help avoid triggering unnecessary SIGPIPEs, and at any
21229         rate it doesn't hurt.
21230
21231 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21232             Bruno Haible  <bruno@clisp.org>
21233
21234         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
21235         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21236         * m4/signed.m4 (bh_C_SIGNED): Likewise.
21237
21238         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
21239         (gl_FUNC_VASPRINTF): Invoke it.
21240
21241 2006-09-22  Bruno Haible  <bruno@clisp.org>
21242
21243         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
21244         getloadavg.c as first argument.
21245
21246 2006-09-22  Bruno Haible  <bruno@clisp.org>
21247
21248         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
21249         at the beginning of the gl_INIT macro.
21250         * modules/getloadavg (configure.ac): Pass $gl_source_base to
21251         gl_GETLOADAVG.
21252
21253 2006-09-22  Bruno Haible  <bruno@clisp.org>
21254
21255         * gnulib-tool (func_create_megatestdir): Don't include the config-h
21256         module.
21257         Suggested by Ralf Wildenhues.
21258
21259 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21260
21261         Import this patch from libc:
21262
21263         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
21264
21265         * lib/regex_internal.c (re_string_reconstruct): Handle
21266         offset < pstr->valid_raw_len && pstr->offsets_needed case.
21267         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
21268         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
21269         re_string_context_at.
21270
21271         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
21272         now requires it.
21273         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
21274         gl_REGEX now does it for us.
21275         (gl_REGEX): Add test taken from
21276         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
21277
21278         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
21279         Check that large offsets work.  Modernize Autoconf usages.
21280         Prefer "yes" to mean a good thing rather than a bad.
21281         Don't put "#define mkstemp" in config.h, as this might interfere
21282         with standard system headers that "#define mkstemp mkstemp64".
21283
21284         * modules/mkstemp (Depends-on): Add extensions, so that
21285         mkstemp is visible on some platforms.
21286         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
21287         (Include): Change to "mkstemp.h" from <stdlib.h>.
21288         (Files): Add mkstemp.h.
21289
21290         * lib/mkstemp.h: New file, since some standard headers
21291         #define mkstemp.
21292         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
21293         Include "mkstemp.h".
21294         Make the _LIBC code resemble glibc original more,
21295         e.g., use K&R style.
21296         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
21297         (mkstemp): Remove, since mkstemp.h does this for us.
21298         * lib/stdlib--.h: Include mkstemp.h.
21299
21300         Import this patch from libc:
21301
21302         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21303
21304         * lib/tempname.c (__gen_tempname): Change attempts_min
21305         into a macro.  Use preprocessor to decide how to initialize
21306         attempts [Coverity CID 67].
21307
21308 2006-09-20  Bruno Haible  <bruno@clisp.org>
21309
21310         * lib/mkdtemp.c: Import from libc.
21311         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21312                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21313                 attempts_min into a macro.  Use preprocessor to decide how to
21314                 initialize attempts [Coverity CID 67].
21315         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21316                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21317                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21318
21319 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21320
21321         * gnulib-tool (func_exit): New function, to allow to pass the
21322         exit status portably through the trap.  Use everywhere.
21323         (--help, --version): Signal a write error.
21324         (trap): catch SIGPIPE, for write errors.
21325         Exit at the end of the trap, with the correct exit status.
21326
21327 2006-09-19  Karl Berry  <karl@gnu.org>
21328
21329         * doc/gnulib.texi: note about the license texinfo files.
21330
21331 2006-09-19  Eric Blake  <ebb9@byu.net>
21332
21333         * gnulib-tool: Avoid space-tab.
21334
21335 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21336
21337         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21338         that prevented coreutils 6.1 from building.  Problem reported
21339         by Petter Reinholdtsen.
21340
21341 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21342
21343         * gnulib-tool (avoidlist): Fix typo that broke options like
21344         --avoid=lock that are used by coreutils bootstrap.
21345
21346 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21347
21348         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21349         more systematically.
21350
21351 2006-09-18  Jim Meyering  <jim@meyering.net>
21352
21353         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21354
21355 2006-09-18  Bruno Haible  <bruno@clisp.org>
21356
21357         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21358
21359 2006-09-18  Bruno Haible  <bruno@clisp.org>
21360
21361         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21362         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21363         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21364         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21365         * m4/gettext.m4: Require autoconf >= 2.52.
21366         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21367         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21368         of gl_cv_header_inttypes_h.
21369
21370 2006-09-18  Bruno Haible  <bruno@clisp.org>
21371
21372         * lib/javaversion.c: Include configmake.h.
21373
21374 2006-09-18  Bruno Haible  <bruno@clisp.org>
21375
21376         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21377         avoid that the while loops be executed in a subshell.
21378
21379 2006-09-18  Bruno Haible  <bruno@clisp.org>
21380
21381         * MODULES.html.sh (func_module): Break long lines.
21382         Suggested by Bruce Korb <bkorb@gnu.org>.
21383
21384 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21385
21386         Speed up by a factor of 1.12.
21387         * gnulib-tool (nl): New variable.
21388         (func_import): Rewrite include directive extraction to only read each
21389         directive once.
21390
21391 2006-09-17  Bruno Haible  <bruno@clisp.org>
21392
21393         * modules/javaversion (Makefile.am): Remove DEFS setting.
21394         (Depends-on): Add configmake, for PKGDATADIR definition.
21395
21396 2006-09-17  Bruno Haible  <bruno@clisp.org>
21397
21398         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21399
21400 2006-09-17  Bruno Haible  <bruno@clisp.org>
21401
21402         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21403         (func_modules_transitive_closure, func_modules_add_dummy,
21404         func_modules_to_filelist, func_import, func_create_testdir,
21405         func_create_megatestdir, ...): Use it wherever possible.
21406         Suggested by Ralf Wildenhues.
21407
21408 2006-09-16  Karl Berry  <karl@gnu.org>
21409
21410         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
21411         to avoid sectioning errors.
21412         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
21413         [ifinfo]: blank line after @center-ed titles.
21414         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
21415         Spell FSF address consistently with others.
21416         (These changes approved by rms.)
21417
21418 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21419
21420         Speed up by a factor of 1.61.
21421         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
21422         already checked module names again.
21423
21424 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21425
21426         Speed up by a factor of 1.13.
21427         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21428         for new_files, and the input to func_add_or_update.
21429
21430 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21431
21432         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21433         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21434
21435 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21436
21437         * modules/mkancesdirs (Depends-on): Add fcntl.
21438         * modules/savewd: New file.
21439         * MODULES.html.sh (File system functions): Add savewd.
21440
21441         * modules/configmake (Makefile.am): Add support for the
21442         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21443
21444 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21445
21446         * m4/savewd.m4: New file.
21447
21448 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21449
21450         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
21451         (dirchownmod): New arg FD.  All callers changed.
21452         Use FD rather than opening the directory ourself, as opening is
21453         now the caller's responsibility.
21454         * lib/dirchownmod.h: Likewise.
21455         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
21456         hosts that require <sys/types.h> before <sys/stat.h>.  Include
21457         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
21458         (test_dir): Remove.
21459         (mkancesdirs): Return length of prefix of FILE that has already
21460         been made, or -2 if there is a child doing the work.  Redo
21461         algorithm so that it is O(N) rather than O(N**2).  Optimize away
21462         ".", and treat ".." specially since it might stray back into
21463         already-created areas.  Use a subprocess if necessary.  New arg
21464         WD; all users changed.  MAKE_DIR function should now return 1
21465         if it creates a directory that is not readable.  Return -2 if
21466         a child process is spun off.
21467         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
21468         Adjust signature to match code.
21469         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
21470         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
21471         all users changed.
21472         * lib/savewd.c, lib/savewd.h: New files.
21473
21474 2006-09-15  Jim Meyering  <jim@meyering.net>
21475
21476         * modules/rename-dest-slash: New module.
21477         * MODULES.html.sh (posix_compat): Add it here.
21478
21479         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
21480
21481 2006-09-15  Jim Meyering  <jim@meyering.net>
21482
21483         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
21484         file.
21485
21486         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
21487
21488 2006-09-15  Jim Meyering  <jim@meyering.net>
21489
21490         * lib/rename-dest-slash.c (has_trailing_slash): Use
21491         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
21492         (rpl_rename_dest_slash): Perform the cheaper trailing slash
21493         test before testing whether SRC is a directory.
21494         Suggestions from Bruno Haible.
21495
21496         Avoid a warning about an unused variable.
21497         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
21498         into the #ifdef block where it's used.
21499
21500         * lib/rename-dest-slash.c: New file.
21501
21502 2006-09-14  Bruno Haible  <bruno@clisp.org>
21503
21504         * lib/allocsa.c: Include <config.h> unconditionally.
21505         * lib/asnprintf.c: Likewise.
21506         * lib/asprintf.c: Likewise.
21507         * lib/c-strcasecmp.c: Likewise.
21508         * lib/c-strcasestr.c: Likewise.
21509         * lib/c-strncasecmp.c: Likewise.
21510         * lib/c-strstr.c: Likewise.
21511         * lib/classpath.c: Likewise.
21512         * lib/clean-temp.c: Likewise.
21513         * lib/concatpath.c: Likewise.
21514         * lib/copy-file.c: Likewise.
21515         * lib/csharpcomp.c: Likewise.
21516         * lib/csharpexec.c: Likewise.
21517         * lib/execute.c: Likewise.
21518         * lib/fatal-signal.c: Likewise.
21519         * lib/findprog.c: Likewise.
21520         * lib/fwriteerror.c: Likewise.
21521         * lib/gl_array_list.c: Likewise.
21522         * lib/gl_array_oset.c: Likewise.
21523         * lib/gl_avltree_list.c: Likewise.
21524         * lib/gl_avltree_oset.c: Likewise.
21525         * lib/gl_avltreehash_list.c: Likewise.
21526         * lib/gl_carray_list.c: Likewise.
21527         * lib/gl_linked_list.c: Likewise.
21528         * lib/gl_linkedhash_list.c: Likewise.
21529         * lib/gl_list.c: Likewise.
21530         * lib/gl_oset.c: Likewise.
21531         * lib/gl_rbtree_list.c: Likewise.
21532         * lib/gl_rbtree_oset.c: Likewise.
21533         * lib/gl_rbtreehash_list.c: Likewise.
21534         * lib/imaxabs.c: Likewise.
21535         * lib/imaxdiv.c: Likewise.
21536         * lib/javacomp.c: Likewise.
21537         * lib/javaexec.c: Likewise.
21538         * lib/javaversion.c: Likewise.
21539         * lib/linebreak.c: Likewise.
21540         * lib/localcharset.c: Likewise.
21541         * lib/lock.c: Likewise.
21542         * lib/mbchar.c: Likewise.
21543         * lib/mbswidth.c: Likewise.
21544         * lib/mkdtemp.c: Likewise.
21545         * lib/pipe.c: Likewise.
21546         * lib/printf-args.c: Likewise.
21547         * lib/printf-parse.c: Likewise.
21548         * lib/progname.c: Likewise.
21549         * lib/progreloc.c: Likewise.
21550         * lib/readlink.c: Likewise.
21551         * lib/sh-quote.c: Likewise.
21552         * lib/stpcpy.c: Likewise.
21553         * lib/stpncpy.c: Likewise.
21554         * lib/strcasecmp.c: Likewise.
21555         * lib/strcasestr.c: Likewise.
21556         * lib/strcspn.c: Likewise.
21557         * lib/striconv.c: Likewise.
21558         * lib/strncasecmp.c: Likewise.
21559         * lib/strnlen1.c: Likewise.
21560         * lib/strstr.c: Likewise.
21561         * lib/strtok_r.c: Likewise.
21562         * lib/tls.c: Likewise.
21563         * lib/tmpdir.c: Likewise.
21564         * lib/unicodeio.c: Likewise.
21565         * lib/unsetenv.c: Likewise.
21566         * lib/vasnprintf.c: Likewise.
21567         * lib/vasprintf.c: Likewise.
21568         * lib/wait-process.c: Likewise.
21569         * lib/xallocsa.c: Likewise.
21570         * lib/xsetenv.c: Likewise.
21571         * lib/xstriconv.c: Likewise.
21572
21573 2006-09-13  Simon Josefsson  <jas@extundo.com>
21574
21575         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
21576         that internally, suggested by Ralf Wildenhues
21577         <Ralf.Wildenhues@gmx.de>.
21578
21579 2006-09-13  Simon Josefsson  <jas@extundo.com>
21580
21581         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
21582         @LIBOBJS@.
21583         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21584
21585 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21586
21587         * lib/_fpending.c: Include <config.h> unconditionally, since we no
21588         longer worry about uses that don't define HAVE_CONFIG_H.
21589         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
21590         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
21591         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
21592         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
21593         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
21594         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
21595         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
21596         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
21597         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
21598         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
21599         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
21600         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
21601         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
21602         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
21603         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
21604         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
21605         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
21606         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
21607         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
21608         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
21609         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
21610         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
21611         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
21612         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
21613         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
21614         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
21615         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
21616         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
21617         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
21618         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
21619         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
21620         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
21621         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
21622         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
21623         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
21624         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
21625         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
21626         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
21627         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
21628         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
21629         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
21630         Likewise.
21631
21632 2006-09-13  Eric Blake  <ebb9@byu.net>
21633
21634         * lib/getopt.c: Fix typo in last commit.
21635
21636 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21637
21638         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
21639         dgettext.
21640
21641 2006-09-12  Jim Meyering  <jim@meyering.net>
21642
21643         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
21644         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
21645         Reported by Nelson H. F. Beebe.
21646
21647 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21648
21649         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
21650         program_invocation_name and program_invocation_short_name are
21651         initialized.
21652         * lib/argp-namefrob.h: Move declarations of program_invocation_name
21653         and program_invocation_short_name to argp.h, so they are visible
21654         to user programs.
21655         * lib/argp.h: Likewise
21656
21657 2006-09-10  Bruno Haible  <bruno@clisp.org>
21658
21659         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21660         m4/inttypes_h.m4, m4/uintmax_t.m4.
21661
21662 2006-09-10  Bruno Haible  <bruno@clisp.org>
21663
21664         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
21665         gl_AC_TYPE_UINTMAX_T.
21666
21667 2006-09-10  Bruno Haible  <bruno@clisp.org>
21668
21669         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
21670
21671 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21672
21673         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
21674         convention.  Text proposed by Bruno Haible.
21675         (struct argp_option): Document the use of N_() wrappers.
21676
21677         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
21678         '\v', and translate the two parts separately, instead of feeding
21679         the whole string to gettext.  This allows to exclude
21680         '\v' from the strings visible to the translator by writing doc
21681         strings as N_("..") "\v" N_("..").
21682
21683 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
21684
21685         * config/srclist.txt: Undo latest change; the bug was fixed.
21686
21687 2006-09-09  Bruno Haible  <bruno@clisp.org>
21688
21689         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
21690         assignments if building a library without libtool.
21691         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
21692         in func_emit_lib_Makefile_am.
21693         (func_import): When building a static library libfoo.a, arrange to
21694         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
21695         (func_create_testdir): Likewise.
21696         * modules/gc (configure.ac, Makefile.am): If building statically,
21697         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
21698         * modules/iconvme (configure.ac, Makefile.am): Likewise.
21699         * modules/striconv (configure.ac, Makefile.am): Likewise.
21700         Based on a suggestion by Ralf Wildenhues.
21701
21702 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21703
21704         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21705         Check for unistd.h too, since Autoconf doesn't assume POSIX.
21706         Also:
21707
21708         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21709         Add year_2050_test to catch glibc bug 2821
21710         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21711
21712         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21713         Prefer #ifdef to #if.
21714
21715         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
21716         Return from 'main' instead of calling 'exit'.
21717
21718 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21719
21720         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21721         returned the maximum time_t value rather than (time_t) -1.
21722         Problem originally reported by William Bardwell
21723         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21724
21725         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21726         Moved to here ...
21727         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21728         ... from here.
21729
21730 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21731
21732         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
21733         2821 is fixed.
21734
21735 2006-09-08  Jim Meyering  <jim@meyering.net>
21736
21737         Don't make generated files read-only.  That would bother too many
21738         people.  However, do retain the ability to work when targets are
21739         read-only: remove the destination and temporary files before writing
21740         them (when generated via sed or echo), or by using the -f option for
21741         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
21742         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21743         * modules/byteswap, modules/configmake, modules/fcntl:
21744         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21745         * modules/localcharset, modules/netinet_in, modules/poll:
21746         * modules/stdbool, modules/stdint, modules/sys_select:
21747         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21748
21749 2006-09-08  Jim Meyering  <jim@meyering.net>
21750
21751         Avoid new build failure on FreeBSD 6.0.
21752         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
21753         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
21754         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
21755
21756 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21757
21758         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
21759
21760 2006-09-07  Jim Meyering  <jim@meyering.net>
21761
21762         Fix global typo in last change: use chmod u-w, not chmod u-x.
21763         Spotted by Paul Eggert and Bruce Korb.
21764         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21765         * modules/byteswap, modules/configmake, modules/fcntl:
21766         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21767         * modules/localcharset, modules/netinet_in, modules/poll:
21768         * modules/stdbool, modules/stdint, modules/sys_select:
21769         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21770
21771 2006-09-06  Jim Meyering  <jim@meyering.net>
21772
21773         Make generated files be read-only.
21774         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
21775         Ensure that each generated file is now read-only.
21776         * modules/argz: Likewise.
21777         * modules/arpa_inet: Likewise.
21778         * modules/byteswap: Likewise.
21779         * modules/configmake: Likewise.
21780         * modules/fcntl: Likewise.
21781         * modules/fnmatch: Likewise.
21782         * modules/getopt: Likewise.
21783         * modules/glob: Likewise.
21784         * modules/inttypes: Likewise.
21785         * modules/netinet_in: Likewise.
21786         * modules/poll: Likewise.
21787         * modules/stdbool: Likewise.
21788         * modules/stdint: Likewise.
21789         * modules/sys_select: Likewise.
21790         * modules/sys_socket: Likewise.
21791         * modules/sys_stat: Likewise.
21792         * modules/sysexits: Likewise.
21793         * modules/localcharset: Same as above, but continue using temporary
21794         file named "t-$@" (why different?) rather than the "$@-t" used
21795         everywhere else.
21796
21797         * modules/sysexits (Makefile.am): Replace literal occurrences
21798         of "sysexit.h" more readable, and more consistent, "$@".
21799
21800 2006-09-06  Bruno Haible  <bruno@clisp.org>
21801
21802         * modules/striconv: New file.
21803         * modules/xstriconv: New file.
21804         * MODULES.html.sh (Internationalization functions): Add striconv,
21805         xstriconv.
21806
21807 2006-09-06  Bruno Haible  <bruno@clisp.org>
21808
21809         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
21810         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
21811         not using libtool correctly.
21812
21813 2006-09-06  Bruno Haible  <bruno@clisp.org>
21814
21815         * lib/striconv.h: New file.
21816         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
21817         iconvstring.c.
21818         * lib/xstriconv.h: New file.
21819         * lib/xstriconv.c: New file.
21820
21821 2006-09-06  Bruno Haible  <bruno@clisp.org>
21822
21823         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21824         lib_..._LDFLAGS.
21825
21826 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21827
21828         * lib/argz_.h: Sync from Libtool.
21829
21830         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
21831                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21832
21833         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
21834
21835 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21836
21837         * modules/trim: New file.
21838
21839 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21840
21841         * lib/trim.h: New file.
21842         * lib/trim.c: New file.
21843
21844 2006-09-05  Bruno Haible  <bruno@clisp.org>
21845
21846         * MODULES.html.sh (String handling): Add trim.
21847
21848 2006-09-04  Karl Berry  <karl@gnu.org>
21849
21850         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
21851         until next release.
21852
21853 2006-09-03  Bruno Haible  <bruno@clisp.org>
21854
21855         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
21856         correctly.
21857
21858 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21859
21860         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
21861         not gl_GETLOADAVG.  Omit unneeded semicolons.
21862         Problems reported by Ralf Wildenhues in
21863         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21864         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
21865         at the end, which is the usual gnulib style.
21866
21867         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
21868         of doing all the work ourselves.
21869         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
21870         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
21871
21872 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21873
21874         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
21875         Problem reported by Ralf Wildenhues in
21876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21877
21878         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
21879         HAVE_STRUCT_STATFS_F_FSTYPENAME.
21880
21881 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21882
21883         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
21884         yesterday's patch by changing test -n to test -z.
21885
21886 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21887
21888         * modules/getloadavg (Files): Add m4/getloadavg.m4.
21889         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
21890         the former is now obsolescent.
21891
21892         * modules/chdir-long (Depends-on): Add fcntl.
21893
21894 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21895
21896         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
21897         obsolescent, and programs should use gnulib instead.
21898         * m4/getloadavg.m4: New file, with contents taken from Autoconf
21899         but with prefixes changed.
21900
21901 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21902
21903         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
21904         or stdbool.h, because they might not exist while configuring.
21905
21906         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
21907         Don't include unistd.h or limits.h; not needed, since chdir-long.h
21908         does that for us.
21909         (O_DIRECTORY): Remove.
21910
21911 2006-08-31  Eric Blake  <ebb9@byu.net>
21912
21913         * gnulib-tool: Don't let emacs change spaces to TAB.
21914
21915 2006-08-31  Bruno Haible  <bruno@clisp.org>
21916
21917         * gnulib-tool: When calling func_import more than once, do it in a
21918         subshell.
21919         Reported by Eric Blake <ebb9@byu.net>.
21920
21921 2006-08-31  Bruno Haible  <bruno@clisp.org>
21922
21923         * gnulib-tool (nl): Remove variable.
21924         (sed_transform_lib_file): Use more robust test for config-h module.
21925         (func_import): Fix typo in 2006-08-25 patch.
21926
21927 2006-08-31  Bruno Haible  <bruno@clisp.org>
21928
21929         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
21930         specified, augment Makefile.am variables instead of assigning them.
21931
21932 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21933
21934         Work around a bug in both the Linux and SunOS 64-bit kernels:
21935         nanosleep mishandles sleeps for longer than 2**31 seconds.
21936         Problem reported by Frank v Waveren in
21937         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
21939         Check for nanosleep bug.
21940         (LIB_NANOSLEEP): Append clock_gettime library if needed.
21941
21942 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21943
21944         Work around a bug in both the Linux and SunOS 64-bit kernels:
21945         nanosleep mishandles sleeps for longer than 2**31 seconds.
21946         Problem reported by Frank v Waveren in
21947         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21948         * lib/nanosleep.c (BILLION): New constant.
21949         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
21950         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
21951         implementation.
21952
21953 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21954
21955         * modules/nanosleep (Depends-on): Add gettime.
21956
21957 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21958         and Simon Josefsson  <jas@extundo.com>
21959         and Oskar Liljeblad  <oskar@osk.mine.nu>
21960
21961         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
21962         * gnulib-tool (func_import): New license type 'unmodifiable license
21963         text'.
21964         * modules/fdl: Use it.  Longer description.
21965         * module/gpl, module/lgpl: New files.
21966
21967 2006-08-30  Jim Meyering  <jim@meyering.net>
21968
21969         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
21970         shadowing the parameter.
21971
21972 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21973
21974         Sync from Libtool:
21975
21976         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21977
21978         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
21979         sharing with gnulib.  Report by Eric Blake.
21980
21981 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21982
21983         * modules/isapipe: New file.
21984         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
21985
21986 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21987
21988         * modules/configmake (Makefile.am): Add a comment, and omit
21989         the CONFIGMAKE_ prefix from generated macro names.  Suggested
21990         by Bruno Haible.
21991
21992 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21993
21994         * m4/isapipe.m4: New file.
21995
21996 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21997
21998         * lib/isapipe.c, lib/isapipe.h: New files.
21999
22000 2006-08-29  Jim Meyering  <jim@meyering.net>
22001
22002         * modules/configmake (Makefile.am): Make configmake.h depend on
22003         Makefile.  Otherwise, a stale configmake.h could hang around.
22004
22005 2006-08-29  Eric Blake  <ebb9@byu.net>
22006
22007         * lib/error.c (error_at_line, print_errno_message): Match libc, after
22008         resolution of upstream bug 3044.
22009
22010 2006-08-29  Bruno Haible  <bruno@clisp.org>
22011
22012         * modules/localcharset (Depends-on): Add configmake.
22013         (Makefile.am): Remove setting of LIBDIR through DEFS.
22014
22015 2006-08-29  Bruno Haible  <bruno@clisp.org>
22016
22017         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
22018         defined.
22019
22020 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22021
22022         * modules/fcntl: New file.
22023         * modules/chdir-safer (Depends-on): Add fcntl.
22024         * modules/fts: Likewise.
22025         * modules/mkdir-p: Likewise.
22026
22027         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
22028         This undoes the most recent change, since we're now addressing the
22029         problem in a different way.
22030
22031         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
22032         into output, since the output might be called Makefile.am even
22033         if $makefile_name is something different.
22034         (func_import): Use $makefile_am rather than
22035         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
22036         empty.
22037
22038         * modules/inttypes (Files): Add m4/inttypes-h.m4.
22039
22040 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22041
22042         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
22043         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
22044         recent change to stdint.m4, since we're now addressing the problem in a
22045         different way.
22046
22047 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22048
22049         * m4/fcntl_h.m4: New file.
22050
22051 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22052
22053         * lib/fcntl_.h: New file.
22054         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
22055         the fcntl module.
22056         * lib/dirchownmod.c: Likewise.
22057         * lib/fts.c: Likewise.
22058
22059         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
22060         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
22061         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
22062         just before including <inttypes.h>, to avoid circular inclusion.
22063
22064 2006-08-28  Jim Meyering  <jim@meyering.net>
22065
22066         * doc/visibility.texi: Actually read and correct the grammar of the
22067         sentence affected by yesterday's change.
22068
22069 2006-08-28  Eric Blake  <ebb9@byu.net>
22070
22071         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
22072         needs wrapper.
22073
22074 2006-08-28  Eric Blake  <ebb9@byu.net>
22075
22076         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
22077
22078 2006-08-28  Eric Blake  <ebb9@byu.net>
22079
22080         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
22081
22082 2006-08-28  Bruno Haible  <bruno@clisp.org>
22083
22084         * modules/c-strstr: New file, from GNU gettext.
22085         * MODULES.html.sh (String handling): Add c-strstr.
22086
22087 2006-08-28  Bruno Haible  <bruno@clisp.org>
22088
22089         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
22090         macros.
22091         Reported by Eric Blake.
22092
22093 2006-08-28  Bruno Haible  <bruno@clisp.org>
22094
22095         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
22096         (VASNPRINTF): Return a string of length > INT_MAX without failing.
22097         * lib/vasprintf.c: Include errno.h, limits.h.
22098         (EOVERFLOW): New fallback definition.
22099         (vasprintf): Test here whether the string length is > INT_MAX.
22100         * lib/vsnprintf.c: Include errno.h, limits.h.
22101         (EOVERFLOW): New fallback definition.
22102         (vsnprintf): Fix bug when generated string was too long for the buffer.
22103         Test here whether the string length is > INT_MAX.
22104
22105 2006-08-28  Bruno Haible  <bruno@clisp.org>
22106
22107         * lib/inttypes_.h (SCNX*): Remove definitions.
22108         Reported by Eric Blake.
22109
22110 2006-08-28  Bruno Haible  <bruno@clisp.org>
22111
22112         * lib/c-strstr.h: New file, from GNU gettext.
22113         * lib/c-strstr.c: New file, from GNU gettext.
22114
22115 2006-08-28  Bruno Haible  <bruno@clisp.org>
22116
22117         * gnulib-tool: Reorder some statements.
22118
22119 2006-08-28  Bruno Haible  <bruno@clisp.org>
22120
22121         * gnulib-tool: New option --makefile-name.
22122         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
22123         $makefile_name.
22124         (func_import): Write $makefile_name to the cache file, and read it from
22125         there unless explicitly specified. Use $makefile_name as file name
22126         instead of Makefile.am. Adjust the recommendations accordingly.
22127
22128 2006-08-28  Bruno Haible  <bruno@clisp.org>
22129
22130         * gnulib-tool (func_verify_module): Check against misapplying patch.
22131
22132 2006-08-28  Bruno Haible  <bruno@clisp.org>
22133
22134         * gnulib-tool (func_relativize, func_relconcat): New functions.
22135         Give an error if --local-dir is given with --update.
22136         Remove trailing slashes from $local_gnulib_dir.
22137         (func_import): Store the relativized $local_gnulib_dir in
22138         gnulib-cache.m4, and read it from there if not specified explicitly.
22139
22140 2006-08-28  Bruno Haible  <bruno@clisp.org>
22141
22142         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
22143         is the current directory. Respect also $local_gnulib_dir.
22144
22145 2006-08-28  Bruno Haible  <bruno@clisp.org>
22146             Simon Josefsson  <jas@extundo.com>
22147
22148         BeOS portability.
22149         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
22150
22151 2006-08-27  Jim Meyering  <jim@meyering.net>
22152
22153         * doc/visibility.texi: Remove duplicate word: "pointer".
22154
22155 2006-08-26  Bruno Haible  <bruno@clisp.org>
22156
22157         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
22158         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
22159         (Makefile.am): Create inttypes.h from inttypes_.h.
22160         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
22161
22162         * modules/imaxabs: New file.
22163
22164         * modules/imaxdiv: New file.
22165
22166 2006-08-26  Bruno Haible  <bruno@clisp.org>
22167
22168         * m4/inttypes.m4: New file.
22169         * m4/_inttypes_h.m4: Remove file.
22170         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
22171         PRI_MACROS_BROKEN.
22172         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
22173
22174         * m4/imaxabs.m4: New file.
22175
22176         * m4/imaxdiv.m4: New file.
22177
22178 2006-08-26  Bruno Haible  <bruno@clisp.org>
22179
22180         * lib/inttypes_.h: New file.
22181         * lib/inttypes.h: Remove file.
22182         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
22183
22184         * lib/imaxabs.c: New file.
22185
22186         * lib/imaxdiv.c: New file.
22187
22188 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22189
22190         New config-h module, so that "make" output needn't be cluttered
22191         by -DHAVE_CONFIG_H.
22192         * MODULES.html.sh (Support for building libraries and executables):
22193         Add config-h.
22194         * modules/config-h: New file.
22195         * gnulib-tool (nl, sed_transform_lib_file): New vars.
22196         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
22197         the config-h module is used.
22198
22199         New configmake module, so that "make" output needn't be cluttered
22200         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
22201         * MODULES.html.sh (Support for building libraries and executables):
22202         Add configmake.
22203         * modules/configmake: New file.
22204
22205 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22206
22207         * m4/config-h.m4: New file.
22208
22209 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22210
22211         * config/srclist.txt: Add elisp-comp.
22212
22213 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22214
22215         * MODULES.html.sh (Support for building libraries and executables):
22216         Add elisp-comp.
22217         * build-aux/elisp-comp: New file.
22218         * modules/elisp-comp: New file.
22219
22220 2006-08-24  Bruno Haible  <bruno@clisp.org>
22221
22222         * gnulib-tool (func_create_testdir): Use non-default values of
22223         sourcebase and m4base.
22224
22225 2006-08-24  Bruno Haible  <bruno@clisp.org>
22226
22227         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
22228         HTML structure.
22229
22230 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22231
22232         * modules/openat (Depends-on): Add lchown.
22233
22234 2006-08-23  Bruno Haible  <bruno@clisp.org>
22235
22236         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
22237         of gl_LOCK_EARLY instead of gl_LOCK.
22238
22239 2006-08-23  Bruno Haible  <bruno@clisp.org>
22240
22241         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
22242         on OSF/1 to no.
22243         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
22244
22245 2006-08-23  Bruno Haible  <bruno@clisp.org>
22246
22247         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
22248         as unusable.
22249
22250         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
22251         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
22252         (gl_LOCK): New macro.
22253
22254 2006-08-22  Simon Josefsson  <jas@extundo.com>
22255
22256         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
22257         to md5 module.
22258
22259 2006-08-22  Simon Josefsson  <jas@extundo.com>
22260
22261         * MODULES.html.sh: Add "Support for maintaining and release
22262         projects".
22263
22264         * build-aux/gnupload: New file, from coreutils.
22265
22266 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22267
22268         Avoid the need for AC_LIBSOURCES in m4 macros.
22269         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
22270         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
22271         * modules/check-version (EXTRA_DIST): Add check-version.h.
22272         * modules/crc (EXTRA_DIST): Add crc.h.
22273         * modules/des (EXTRA_DIST): Add des.h.
22274         * modules/gc (EXTRA_DIST): Add gc.h.
22275         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
22276         * modules/getline (EXTRA_DIST): Add getline.h.
22277         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
22278         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
22279         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
22280         * modules/md2 (EXTRA_DIST): Add md2.h.
22281         * modules/md4 (EXTRA_DIST): Add md4.h.
22282         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
22283         * modules/read-file (EXTRA_DIST): Add read-file.h.
22284         * modules/readline (EXTRA_DIST): Add readline.h.
22285         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
22286         rijndael-api-fst.h.
22287
22288 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22289
22290         * m4/rijndael.m4 (gl_ARCFOUR):
22291         * m4/arctwo.m4 (gl_ARCTWO):
22292         * m4/check-version.m4 (gl_CHECK_VERSION):
22293         * m4/crc.m4 (gl_CRC):
22294         * m4/des.m4 (gl_DES):
22295         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
22296         * m4/gc.m4 (gl_GC):
22297         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22298         * m4/getline.m4 (gl_FUNC_GETLINE):
22299         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
22300         * m4/hmac-md5.m4 (gl_HMAC_MD5):
22301         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
22302         * m4/md2.m4 (gl_MD2):
22303         * m4/md4.m4 (gl_MD4):
22304         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
22305         * m4/read-file.m4 (gl_FUNC_READ_FILE):
22306         * m4/readline.m4 (gl_FUNC_READLINE):
22307         * m4/rijndael.m4 (gl_RIJNDAEL):
22308         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22309         to get the necessary .h files and whatnot.
22310
22311 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22312
22313         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22314         gnulib rather than the other way around.
22315         * config/srclistvars.sh (COREUTILS): Remove.
22316
22317 2006-08-22  Jim Meyering  <jim@meyering.net>
22318
22319         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22320
22321         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22322
22323 2006-08-22  Eric Blake  <ebb9@byu.net>
22324
22325         * modules/regexprops-generic: New file.
22326         * MODULES.html.sh (Support for building documentation): List it.
22327
22328 2006-08-22  Eric Blake  <ebb9@byu.net>
22329
22330         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22331         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22332         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22333         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22334
22335 2006-08-22  Bruno Haible  <bruno@clisp.org>
22336
22337         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22338         and lib_LTLIBRARIES like the other lib_* variables.
22339
22340 2006-08-22  Bruno Haible  <bruno@clisp.org>
22341
22342         * build-aux/x-to-1.in: New file, from GNU gettext.
22343
22344 2006-08-22  Bruno Haible  <bruno@clisp.org>
22345
22346         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22347         <utmpx.h> exists.
22348
22349 2006-08-22  Bruno Haible  <bruno@clisp.org>
22350
22351         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22352         <utmpx.h> exists.
22353
22354 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22355
22356         BeOS portability.
22357         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22358         exist.
22359         Problem reported by Bruno Haible.
22360
22361 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22362
22363         Avoid the need for AC_LIBSOURCES in m4 macros.
22364         * modules/acl (EXTRA_DIST): Add acl.h.
22365         * modules/argmatch (Files): Add m4/argmatch.m4.
22366         (configure.ac): Add gl_ARGMATCH.
22367         (EXTRA_DIST): Renamed from lib_SOURCES, for
22368         consistency with the other modules.  Remove argmatch.c.
22369         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22370         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22371         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22372         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22373         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22374         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22375         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22376         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22377         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22378         * modules/closeout (EXTRA_DIST): Add closeout.h.
22379         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22380         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22381         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22382         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22383         dirname.h; remove basename.c and stripslash.c.
22384         * modules/exclude (EXTRA_DIST): Add exclude.h.
22385         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22386         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22387         * modules/file-type (EXTRA_DIST): Add file-type.h.
22388         * modules/filemode (EXTRA_DIST): Add filemode.h.
22389         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22390         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22391         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22392         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22393         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22394         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22395         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22396         * modules/getdate (EXTRA_DIST): Add getdate.c.
22397         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22398         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22399         * modules/getpass (EXTRA_DIST): Add getpass.h.
22400         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22401         * modules/group-member (EXTRA_DIST): Add group-member.h.
22402         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22403         * modules/hash (EXTRA_DIST): Add hash.h.
22404         * modules/human (EXTRA_DIST): Add human.h.
22405         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22406         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22407         * modules/lchown (EXTRA_DIST): Add lchown.h.
22408         * modules/long-options (EXTRA_DIST): Add long-options.h.
22409         * modules/lstat (EXTRA_DIST): Add lstat.h.
22410         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
22411         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
22412         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
22413         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
22414         * modules/memxor (EXTRA_DIST): Add memxor.h.
22415         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
22416         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
22417         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
22418         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
22419         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
22420         * modules/physmem (EXTRA_DIST): Add physmem.h.
22421         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
22422         * modules/posixver (EXTRA_DIST): Add posixver.h.
22423         * modules/quote (EXTRA_DIST): Add quote.h.
22424         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
22425         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
22426         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22427         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22428         regex_internal.h regexec.c.
22429         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22430         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22431         * modules/same (EXTRA_DIST): Add same.h.
22432         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22433         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22434         * modules/savedir (EXTRA_DIST): Add savedir.h.
22435         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22436         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22437         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22438         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22439         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22440         * modules/strdup (EXTRA_DIST): Add strdup.h.
22441         * modules/strftime (EXTRA_DIST): Add strftime.h.
22442         * modules/strndup (EXTRA_DIST): Add strndup.h.
22443         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22444         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22445         * modules/time_r (EXTRA_DIST): Add time_r.h.
22446         * modules/timespec (EXTRA_DIST): Add timespec.h.
22447         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22448         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
22449         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
22450         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
22451         * modules/userspec (EXTRA_DIST): Add userspec.h.
22452         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
22453         * modules/utimens (EXTRA_DIST): Add utimens.h.
22454         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
22455         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
22456         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
22457         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
22458         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
22459         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
22460         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
22461         * modules/yesno (EXTRA_DIST): Add yesno.h.
22462
22463 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22464
22465         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
22466
22467         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
22468         * m4/dev-ino.m4, same-inode.m4: Remove.
22469
22470         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
22471         * m4/acl.m4 (AC_FUNC_ACL):
22472         * m4/backupfile.m4 (gl_BACKUPFILE):
22473         * m4/c-strtod.m4 (gl_C99_STRTOLD):
22474         * m4/canon-host.m4 (gl_CANON_HOST):
22475         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22476         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
22477         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
22478         * m4/cloexec.m4 (gl_CLOEXEC):
22479         * m4/close-stream.m4 (gl_CLOSE_STREAM):
22480         * m4/closeout.m4 (gl_CLOSEOUT):
22481         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22482         * m4/dirname.m4 (gl_DIRNAME):
22483         * m4/exclude.m4 (gl_EXCLUDE):
22484         * m4/exitfail.m4 (gl_EXITFAIL):
22485         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
22486         * m4/file-type.m4 (gl_FILE_TYPE):
22487         * m4/filemode.m4 (gl_FILEMODE):
22488         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
22489         * m4/fpending.m4 (gl_FUNC_FPENDING):
22490         * m4/fprintftime.m4 (gl_FPRINTFTIME):
22491         * m4/fts.m4 (gl_FUNC_FTS):
22492         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22493         * m4/getdate.m4 (gl_GETDATE):
22494         * m4/gethrxtime.m4 (gl_GETHRXTIME):
22495         * m4/getpagesize.m4 (gl_GETPAGESIZE):
22496         * m4/getpass.m4 (gl_FUNC_GETPASS):
22497         * m4/gettime.m4 (gl_GETTIME):
22498         * m4/getugroups.m4 (gl_GETUGROUPS):
22499         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
22500         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
22501         * m4/hard-locale.m4 (gl_HARD_LOCALE):
22502         * m4/hash.m4 (gl_HASH):
22503         * m4/idcache.m4 (gl_IDCACHE):
22504         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
22505         * m4/lchown.m4 (gl_FUNC_LCHOWN):
22506         * m4/long-options.m4 (gl_LONG_OPTIONS):
22507         * m4/lstat.m4 (gl_FUNC_LSTAT):
22508         * m4/md5.m4 (gl_MD5):
22509         * m4/memcasecmp.m4 (gl_MEMCASECMP):
22510         * m4/memcoll.m4 (gl_MEMCOLL):
22511         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
22512         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
22513         * m4/memxor.m4 (gl_MEMXOR):
22514         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
22515         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
22516         * m4/modechange.m4 (gl_MODECHANGE):
22517         * m4/mountlist.m4 (gl_MOUNTLIST):
22518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22519         * m4/openat.m4 (gl_FUNC_OPENAT):
22520         * m4/pathmax.m4 (gl_PATHMAX):
22521         * m4/physmem.m4 (gl_PHYSMEM):
22522         * m4/posixtm.m4 (gl_POSIXTM):
22523         * m4/posixver.m4 (gl_POSIXVER):
22524         * m4/quote.m4 (gl_QUOTE):
22525         * m4/quotearg.m4 (gl_QUOTEARG):
22526         * m4/readtokens.m4 (gl_READTOKENS):
22527         * m4/readutmp.m4 (gl_READUTMP):
22528         * m4/regex.m4 (gl_REGEX):
22529         * m4/safe-read.m4 (gl_SAFE_READ):
22530         * m4/safe-write.m4 (gl_SAFE_WRITE):
22531         * m4/same.m4 (gl_SAME):
22532         * m4/save-cwd.m4 (gl_SAVE_CWD):
22533         * m4/savedir.m4 (gl_SAVEDIR):
22534         * m4/settime.m4 (gl_SETTIME):
22535         * m4/sha1.m4 (gl_SHA1):
22536         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
22537         * m4/stat-macros.m4 (gl_STAT_MACROS):
22538         * m4/stat-time.m4 (gl_STAT_TIME):
22539         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
22540         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
22541         * m4/strdup.m4 (gl_FUNC_STRDUP):
22542         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
22543         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22544         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
22545         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
22546         * m4/time_r.m4 (gl_TIME_R):
22547         * m4/timespec.m4 (gl_TIMESPEC):
22548         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
22549         * m4/unlinkdir.m4 (gl_UNLINKDIR):
22550         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
22551         * m4/userspec.m4 (gl_USERSPEC):
22552         * m4/utimecmp.m4 (gl_UTIMECMP):
22553         * m4/utimens.m4 (gl_UTIMENS):
22554         * m4/xalloc.m4 (gl_XALLOC):
22555         * m4/xgetcwd.m4 (gl_XGETCWD):
22556         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
22557         * m4/xreadlink.m4 (gl_XREADLINK):
22558         * m4/xstrtod.m4 (gl_XSTRTOD):
22559         * m4/yesno.m4 (gl_YESNO):
22560         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22561         to get the necessary .h files and whatnot.
22562
22563 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
22564             Bruno Haible  <bruno@clisp.org>
22565
22566         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
22567         /bin/sh understanding of '!' conditional negation.
22568
22569 2006-08-21  Jim Meyering  <jim@meyering.net>
22570
22571         * modules/openat (Depends-on): Really alphabetize.
22572
22573         * modules/acl (Depends-on): Add error and quote.
22574
22575         * check-module (find_included_lib_files): Add at-func.c to the
22576         ok-to-include-more-than-once white list.
22577
22578         * modules/openat (Depends-on): Add lstat.  Alphabetize.
22579
22580 2006-08-21  Bruno Haible  <bruno@clisp.org>
22581
22582         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22583         Emit a pkgdata_DATA variable only if some snippets add contents to it.
22584         Reported by Martin Lambers <marlam@marlam.de>.
22585
22586 2006-08-21  Bruno Haible  <bruno@clisp.org>
22587
22588         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
22589         specify an installation location, don't emit a noinst_LIBRARIES or
22590         noinst_LTLIBRARIES assignment.
22591
22592 2006-08-21  Bruno Haible  <bruno@clisp.org>
22593
22594         BeOS portability.
22595         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
22596         BeOS has mbrtowc() but no <wctype.h>.
22597
22598 2006-08-21  Bruno Haible  <bruno@clisp.org>
22599
22600         BeOS portability.
22601         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
22602         exist.
22603
22604 2006-08-21  Bruno Haible  <bruno@clisp.org>
22605
22606         BeOS portability.
22607         * lib/mbchar.h: Include <wctype.h> only if it exists.
22608
22609 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22610
22611         Remove files that are no longer needed by their respective modules.
22612         * m4/obstack.m4: Remove.
22613         * m4/strerror_r.m4: Remove.
22614         * m4/uint32_t.m4: Remove.
22615         * m4/uintptr_t.m4: Remove.
22616         * m4/ullong_max.m4: Remove.
22617         * m4/xstrtoimax.m4: Remove.
22618         * m4/xstrtoumax.m4: Remove.
22619
22620         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
22621         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
22622         dependencies now capture this.
22623
22624         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
22625         Do not use AC_LIBSOURCES, since gnulib modules now do this.
22626         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
22627         * m4/human.m4 (gl_HUMAN): Likewise.
22628         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
22629         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
22630
22631         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
22632
22633         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
22634         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
22635         stdint.
22636         * m4/human.m4 (gl_HUMAN): Likewise.
22637         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
22638         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
22639         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22640         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22641         * m4/xstrtol (gl_XSTRTOL): Likewise.
22642
22643         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
22644         AC_TYPE_LONG_LONG_INT.
22645         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22646         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
22647         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
22648         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22649
22650         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
22651         on stdbool.
22652
22653         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
22654         (gl_PREREQ_XSTRTOUL): Remove.
22655
22656         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
22657
22658         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
22659         mode.
22660
22661 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22662
22663         Add and change modules to make it easier for coreutils to use
22664         gnulib-tool.
22665         * modules/backupfile (Files): Remove m4/d-ino.m4.
22666         (Depends-on): Add d-ino.
22667         * modules/cycle-check (Depends-on): Add stdint.
22668         (lib_SOURCES): Add cycle-check.h.
22669         * modules/d-ino: New module.
22670         * modules/d-type: New module.
22671         * modules/error (Files): Remove m4/strerror_r.m4.
22672         * modules/filemode (Files): Add m4/st_dm_mode.m4.
22673         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22674         m4/inttypes_h.m4, m4/uintmax_t.m4.
22675         (Depends-on): Add stdint.
22676         (lib_SOURCES): Add fsusage.h.
22677         * modules/getcwd (Files): Remove d-ino.m4.
22678         (Depends-on): Add d-ino.
22679         * modules/getndelim2 (Depends-on): Add stdint.
22680         * modules/glob (Files): Remove m4/d-type.m4.
22681         (Depends-on): Add d-type.
22682         * modules/host-os: New module.
22683         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
22684         m4/inttypes_h.m4, m4/uintmax_t.m4.
22685         * Depends-on: Add stdint.
22686         (lib_SOURCES): Add human.h.
22687         * modules/inttostr (Files): Remove m4/intmax_t.m4,
22688         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
22689         m4/uintmax_t.m4, m4/ulonglong.m4.
22690         (Depends-on): Add stdint.
22691         (EXTRA_DIST): Add inttostr.h.
22692         * modules/lchmod: New module.
22693         * modules/link-follow: New module.
22694         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
22695         (Depends-on): Add lchmod.
22696         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
22697         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
22698         (Depends-on): Add stdint.
22699         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
22700         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
22701         (Depends-on): Add stdint.
22702         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
22703         * modules/perl: New module.
22704         * modules/regex (Depends-on): Add stdint.
22705         * modules/rmdir-errno: New module.
22706         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22707         m4/intmax_t.m4.
22708         (Depends-on): Add stdint.
22709         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22710         m4/uintmax_t.m4.
22711         (Depends-on): Add stdint.
22712         * modules/unlink-busy: New module.
22713         * modules/utimecmp (Depends-on): Add stdint.
22714         * modules/uptime: New module.
22715         * modules/winsz-ioctl: New module.
22716         * modules/winsz-termios: New module.
22717         * modules/xnanosleep (Depends-on): Add nanosleep.
22718         * modules/ullong_max: Remove.
22719         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22720         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22721         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22722         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22723         (Depends-on): Add inttypes.
22724         (lib_SOURCES): Add xstrtol.h.
22725         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22726         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22727         * MODULES.html.sh: Move 'assert' into the assert section.
22728         Move 'dummy' into the linking section.
22729         Remove ullong_max.
22730         Add section for compatibility checks for POSIX:2001 functions,
22731         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22732         winsz-ioctl, and winsz-termios into it.
22733         Add lchmod.
22734         Add top-level Misc section and put host-os, perl, and uptime
22735         into it.
22736
22737 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22738
22739         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
22740         now assume the stdint module.  Do not include inttypes.h.
22741         * lib/fsusage.h: Likewise.
22742         * lib/getndelim2.c: Likewise.
22743         * lib/human.h: Likewise.
22744         * lib/inttostr.h: Likewise.
22745         * lib/obstack.c: Likewise.
22746         * lib/regex_internal.h: Likewise.
22747         * lib/tempname.c: Likewise.
22748         * lib/utimecmp.c: Likewise.
22749         * lib/xstrtol.h: Likewise.
22750
22751         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
22752
22753         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
22754         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
22755         * lib/xtime.h: Likewise.
22756
22757 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22758
22759         * modules/openat (Files): Add lib/fchmodat.c.
22760         Fixes problem reported by Jay Youngman.
22761
22762 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22763
22764         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
22765         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
22766
22767 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22768             Bruno Haible  <bruno@clisp.org>
22769
22770         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
22771         and is a script that invokes bison. Tighten the code. Add comments.
22772
22773 2006-08-18  Jim Meyering  <jim@meyering.net>
22774
22775         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
22776         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
22777         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
22778         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
22779
22780 2006-08-18  Bruno Haible  <bruno@clisp.org>
22781
22782         * modules/bison-i18n: New file.
22783         * MODULES.html.sh (Internationalization functions): Add it.
22784
22785 2006-08-18  Bruno Haible  <bruno@clisp.org>
22786
22787         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
22788         sys/statvfs.h. When getmntinfo was found, check its declaration and
22789         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
22790
22791 2006-08-18  Bruno Haible  <bruno@clisp.org>
22792
22793         * m4/bison-i18n.m4: New file, from bison.
22794
22795 2006-08-18  Bruno Haible  <bruno@clisp.org>
22796
22797         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
22798         (ME_DUMMY): Treat "kernfs" as a dummy.
22799         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
22800
22801 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22802
22803         Update from coreutils.
22804
22805         2006-08-15  Jim Meyering  <jim@meyering.net>
22806
22807         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
22808
22809         2006-01-17  Jim Meyering  <jim@meyering.net>
22810
22811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
22812
22813         2006-01-11  Jim Meyering  <jim@meyering.net>
22814
22815         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
22816         Check for the lchmod function.
22817
22818 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22819
22820         Update from coreutils.
22821
22822         * lib/__fpending.h: Add copyright notice.
22823         * lib/fprintftime.h: Likewise.
22824         * lib/savedir.c: Use (C) in copyright notice.
22825         * lib/savedir.h: Likewise.
22826
22827         2006-08-15  Jim Meyering  <jim@meyering.net>
22828
22829         * lib/at-func.c: New file, with the logic of all emulated at-functions.
22830         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
22831         in support of the EXPECTED_ERRNO macro.
22832         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
22833         definitions.  Instead, define the appropriate symbols and include
22834         "at-func.c".
22835         * lib/mkdirat.c (mkdirat): Likewise.
22836         * lib/fchmodat.c (fchmodat): Likewise.
22837         (ENOSYS): Remove definition.
22838         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
22839         it.  Don't include "unistd--.h" -- it wasn't ever used.
22840
22841         2006-01-17  Jim Meyering  <jim@meyering.net>
22842
22843         Rewrite fts.c not to change the current working directory,
22844         by using openat, fstatat, fdopendir, etc..
22845
22846         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
22847         (HAVE_OPENAT_SUPPORT): Define.
22848         [_LIBC] (fchdir): Don't undef or define; no longer used.
22849         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
22850         Now, this `function' always succeeds, and consumes its file descriptor
22851         parameter -- so callers must not close such FDs.  Update callers.
22852         (diropen_fd, opendirat, cwd_advance_fd): New functions.
22853         (diropen): Add parameter, SP.  Adjust all callers.
22854         Implement using diropen_fd, rather than open.
22855         (fts_open): Initialize new member, fts_cwd_fd.
22856         Remove fts_rft-setting code.
22857         (fts_close): Close fts_cwd_fd, if necessary.
22858         (__opendir2): Define in terms of opendir or opendirat,
22859         depending on whether the FST_NOCHDIR flag is set.
22860         (fts_build): Since fts_safe_changedir consumes its FD, and since
22861         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
22862         and close the dup'd file descriptor upon failure.
22863         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
22864         (fts_safe_changedir): Tweak semantics to reflect that this function
22865         now calls cwd_advance_fd and hence consumes its FD argument.
22866         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
22867         [struct FTS] (fts_rft): Remove now-unused member.
22868         [struct FTS] (fts_cycle.state): Improve comment.
22869
22870         * lib/openat.c (openat_needs_fchdir): New function.
22871         * lib/openat.h (openat_needs_fchdir): Declare it.
22872
22873 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22874
22875         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
22876         Problem and fix reported by Pádraig Brady in
22877         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
22878
22879 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22880
22881         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
22882
22883 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22884
22885         * lib/memcoll.c (memcoll): Optimize for the common case where the
22886         arguments are bytewise equal.
22887
22888 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22889
22890         * doc/regexprops-generic.texi: Add a copyright notice.
22891
22892 2006-08-15  Bruno Haible  <bruno@clisp.org>
22893
22894         * modules/tmpdir (License): Change to LGPL.
22895
22896 2006-08-15  Bruno Haible  <bruno@clisp.org>
22897
22898         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
22899         module.
22900
22901 2006-08-14  Simon Josefsson  <jas@extundo.com>
22902
22903         * config/srclist.txt: Add gnupload.
22904
22905 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22906
22907         Change copyright notice from LGPL 2 to GPL 2, since that's the
22908         standard form used in the gnulib repository.
22909         * tests/test-lock.c: Likewise.
22910         * tests/test-stdint.c: Likewise.
22911         * tests/test-tls.c: Likewise.
22912
22913         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
22914         prelude-manager.  User shorter URLs for GNU projects, without '?'.
22915         Add copyright notice.
22916
22917         * check-module: Add copyright notice.  Output a copyright
22918         notice if "--version" is specified.
22919         * modules/COPYING: New file.
22920         * tests/test-getaddrinfo.c: Add copyright notice.
22921         * tests/test-verify.c: Likewise.
22922
22923 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22924
22925         Change copyright notice from LGPL 2 to GPL 2, since that's the
22926         standard form used in the gnulib repository.
22927         * lib/lock.c: LGPL -> GPL.
22928         * lib/lock.h: Likewise.
22929         * lib/strnlen1.c: Likewise.
22930         * lib/strnlen1.h: Likewise.
22931         * lib/tls.c: Likewise.
22932         * lib/tls.h: Likewise.
22933         * lib/tmpdir.c: Likewise.
22934
22935         * lib/TODO: Remove; this belongs only in coreutils.
22936
22937 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22938
22939         Add copyright notices to long-enough files that lack them, since
22940         otherwise the files aren't clearly free.  Use the same notice that
22941         getdate.texi already uses.
22942         * doc/alloca-opt.texi: Add copyright notice.
22943         * doc/alloca.texi: Likewise.
22944         * doc/ctime.texi: Likewise.
22945         * doc/functions.texi: Likewise.
22946         * doc/gcd.texi: Likewise.
22947         * doc/gnulib-tool.texi: Likewise.
22948         * doc/inet_ntoa.texi: Likewise.
22949         * doc/visibility.texi: Likewise.
22950
22951         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
22952         * doc/quote.texi: Add copyright notice.
22953
22954         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
22955         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
22956         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
22957         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
22958         is now obsolete, and give a pointer to the Sun list.
22959         Add copyright notice.
22960
22961 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22962
22963         * config/srclistvars.sh: Add copyright notice.
22964
22965 2006-08-14  Eric Blake  <ebb9@byu.net>
22966
22967         Import the following change from libc:
22968
22969         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
22970
22971         Upstream bug 2997.
22972         * lib/misc/error.c: Add space between program name and message if file
22973         name is missing.
22974
22975 2006-08-12  Karl Berry  <karl@gnu.org>
22976
22977         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
22978         remove, these originate in gnulib now.
22979
22980 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22981
22982         * doc/Makefile (standards.info standards.html standards.dvi):
22983         Also depend on make-stds.texi.
22984
22985 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22986
22987         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
22988         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
22989
22990         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
22991         in wchar_t.  Problem reported by Eric Blake.
22992
22993         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
22994         LEN is smaller than SIZE.  Suggested by Bruno Haible.
22995         Also, help the compiler to keep LEN in a register.
22996
22997 2006-08-11  Eric Blake  <ebb9@byu.net>
22998
22999         * users.txt: Sort.  Add tar.
23000
23001 2006-08-11  Bruno Haible  <bruno@clisp.org>
23002
23003         * users.txt: New file.
23004
23005 2006-08-11  Bruno Haible  <bruno@clisp.org>
23006
23007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
23008         before <wchar.h>. Needed for OSF/1 and BSD/OS.
23009
23010 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23011
23012         * modules/snprintf (Depends-on): Remove minmax.
23013         (Maintainer): Add self and Bruno.
23014
23015 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23016
23017         * lib/.cppi-disable: Add snprintf.h, socket_.h.
23018         * lib/snprintf.c: Include <errno.h> and <limits.h>.
23019         (EOVERFLOW): Define if the system does not.
23020         Do not include "minmax.h"; it wasn't used.
23021         (snprintf): Don't assume size_t promotes to an unsigned type.
23022         Fix bug when generated string was too long for the buffer: the
23023         buffer's contents are supposed to be the initial prefix of the
23024         output.  Don't assume vasnprintf returns EOVERFLOW if the size
23025         exceeds INT_MAX; do the check ourselves.
23026
23027         Import the following changes from libc:
23028
23029         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
23030
23031         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
23032         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
23033         set wc to the byte which couldn't be converted.
23034         (re_string_reconstruct): Don't clear valid_raw_len before calling
23035         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
23036         tip_context using re_string_context_at.
23037
23038         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
23039
23040         * lib/posix/regex.h: g++ still cannot handled [restrict].
23041
23042         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
23043
23044         * lib/posix/regex.h: Remove special handling for VMS.
23045
23046 2006-08-10  Jim Meyering  <jim@meyering.net>
23047
23048         * modules/same-inode: New module.
23049         * modules/dev-ino: New module.
23050         * modules/cycle-check: Depend on these modules, rather than simply
23051         including their .h files.
23052         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
23053         required via m4/cycle-check.m4.
23054         * modules/same: Depend on new same-inode module, rather than
23055         including same-inode.h.
23056         * modules/chdir-safer: New file.
23057
23058         * modules/chown (Depends-on): Add stat-macros.
23059
23060 2006-08-10  Jim Meyering  <jim@meyering.net>
23061
23062         * m4/cycle-check.m4: New file.
23063         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
23064         * m4/dev-ino.m4, m4/same-inode.m4: New files.
23065
23066 2006-08-10  Eric Blake  <ebb9@byu.net>
23067
23068         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
23069         in from original proposal.
23070
23071 2006-08-10  Eric Blake  <ebb9@byu.net>
23072         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23073
23074         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
23075         namespace.
23076
23077 2006-08-10  Bruno Haible  <bruno@clisp.org>
23078
23079         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
23080         as well.
23081
23082 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23083
23084         Sync from coreutils.
23085
23086         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
23087
23088         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
23089         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
23090
23091 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23092
23093         * modules/restrict: Remove; no longer needed now that we assume
23094         Autoconf 2.59 or later.
23095         * MODULES.html.sh: Remove 'restrict'.
23096         * modules/argp (Depends-on): Remove 'restrict'.
23097         * modules/base64 (Depends-on): Likewise.
23098         * modules/gc (Depends-on): Likewise.
23099         * modules/getaddrinfo (Depends-on): Likewise.
23100         * modules/glob (Depends-on): Likewise.
23101         * modules/inet_ntop (Depends-on): Likewise.
23102         * modules/inet_pton (Depends-on): Likewise.
23103         * modules/memxor (Depends-on): Likewise.
23104         * modules/regex (Depends-on): Likewise.
23105         * modules/strtok_r (Depends-on): Likewise.
23106         * modules/time_r (Depends-on): Likewise.
23107
23108 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23109
23110         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
23111         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
23112         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23113         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
23114         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23115         * m4/memxor.m4 (gl_MEMXOR): Likewise.
23116         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
23117         gl_C_RESTRICT replaced by AC_C_RESTRICT.
23118
23119         Merge from coreutils.
23120         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
23121         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
23122         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23123         * m4/time_r.m4 (gl_TIME_R): Likewise.
23124
23125 2006-08-09  Karl Berry  <karl@gnu.org>
23126
23127         * config/srclist.txt: no more gettext-tools, per Bruno.
23128
23129 2006-08-08  Eric Blake  <ebb9@byu.net>
23130
23131         * modules/verror: New module.
23132         * MODULES.html.sh: Document it.
23133
23134 2006-08-08  Eric Blake  <ebb9@byu.net>
23135
23136         * lib/verror.h, lib/verror.c: New files.
23137
23138 2006-08-08  Eric Blake  <ebb9@byu.net>
23139
23140         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
23141         verror_at_line output complies with GNU Coding Standards even when
23142         file is NULL.
23143
23144 2006-08-07  Bruno Haible  <bruno@clisp.org>
23145
23146         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
23147         versions of AIX.
23148         Reported by Ralf Wildenhues.
23149
23150 2006-08-07  Bruno Haible  <bruno@clisp.org>
23151
23152         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
23153         in an AC_DEFUN. Needed so that the autoconf snippets can use
23154         AC_REQUIRE.
23155
23156 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23157
23158         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23159         Initialize pkgdata_DATA.
23160         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
23161         overriding it.
23162
23163 2006-08-06  Eric Blake  <ebb9@byu.net>
23164
23165         * lib/error.h: Fold in some upstream changes from glibc.
23166         * lib/error.c: Likewise.
23167
23168 2006-08-04  Bruno Haible  <bruno@clisp.org>
23169
23170         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23171         Make the mostlyclean-local rule depend on mostlyclean-generic.
23172         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
23173
23174 2006-07-31  Bruno Haible  <bruno@clisp.org>
23175
23176         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
23177         <stdlib.h>, <string.h>.
23178
23179 2006-07-30  Bruno Haible  <bruno@clisp.org>
23180
23181         * modules/readlink (License): Change to LGPL.
23182
23183 2006-07-30  Bruno Haible  <bruno@clisp.org>
23184
23185         * modules/javaversion (Makefile.am): Distribute javaversion.java and
23186         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
23187         set PKGDATADIR to point to it.
23188
23189 2006-07-30  Bruno Haible  <bruno@clisp.org>
23190
23191         * modules/csharpexec (configure.ac): Comment out macro invocation.
23192         * modules/javaexec (configure.ac): Likewise.
23193         * modules/javacomp-script (configure.ac): Likewise.
23194
23195         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
23196
23197 2006-07-30  Bruno Haible  <bruno@clisp.org>
23198
23199         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
23200         linked-list.
23201
23202 2006-07-30  Bruno Haible  <bruno@clisp.org>
23203
23204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
23205
23206 2006-07-30  Bruno Haible  <bruno@clisp.org>
23207
23208         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23209         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
23210         get removed.
23211
23212 2006-07-29  Bruno Haible  <bruno@clisp.org>
23213
23214         Make it possible for gnulib-tool to work with locally modified or
23215         augmented gnulib repositories.
23216         * gnulib-tool (func_usage): Document --local-dir option.
23217         (local_gnulib_dir): New variable.
23218         Handle --local-dir option.
23219         (func_lookup_file): New function.
23220         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
23221         (func_get_description, func_get_filelist, func_get_description,
23222         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
23223         func_get_automake_snippet, func_get_include_directive,
23224         func_get_license, func_get_maintainer): Use func_lookup_file.
23225         (func_import, func_create_testdir): Use func_lookup_file.
23226
23227 2006-07-29  Bruno Haible  <bruno@clisp.org>
23228
23229         * modules/setenv (Depends-on): Add unistd.
23230
23231 2006-07-29  Bruno Haible  <bruno@clisp.org>
23232
23233         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
23234
23235 2006-07-29  Bruno Haible  <bruno@clisp.org>
23236
23237         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
23238
23239 2006-07-29  Bruno Haible  <bruno@clisp.org>
23240
23241         * gnulib-tool (import, update): If there is no Makefile.am, look at
23242         aclocal.m4, instead of bailing out.
23243
23244 2006-07-29  Bruno Haible  <bruno@clisp.org>
23245
23246         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
23247         Categorize the options by when they are useful.
23248
23249 2006-07-29  Bruno Haible  <bruno@clisp.org>
23250
23251         * gnulib-tool (func_usage): Document option --no-libtool.
23252         Handle option --no-libtool.
23253         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
23254         for changed semantics of $libtool variable.
23255         (func_import): Likewise. If libtool is not used, show this through
23256         an option --no-libtool.
23257         (func_create_testdir): Update.
23258
23259 2006-07-29  Bruno Haible  <bruno@clisp.org>
23260
23261         * gnulib-tool (func_import): Extend error message about missing
23262         --doc-base.
23263
23264 2006-07-29  Bruno Haible  <bruno@clisp.org>
23265
23266         * gnulib-tool (func_import): Don't create the $docbase directory if
23267         there is no file to store there.
23268
23269 2006-07-29  Bruno Haible  <bruno@clisp.org>
23270
23271         * gnulib-tool (autoconf_minversion): If a --dir option is given and
23272         relevant, look for configure.ac there, not in the current directory.
23273         Also use a simple search for AC_PREREQ, not "autoconf --trace".
23274
23275 2006-07-29  Bruno Haible  <bruno@clisp.org>
23276
23277         * gnulib-tool (SORT): New variable.
23278         (func_usage): Undocument --assume-autoconf option.
23279         Remove --assume-autoconf option handling.
23280         (autoconf_minversion): Determine from the contents of configure.ac.
23281         (func_import): Remove autoconf_minversion handling.
23282         Suggested by Eric Blake.
23283
23284 2006-07-29  Bruno Haible  <bruno@clisp.org>
23285
23286         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
23287
23288 2006-07-29  Bruno Haible  <bruno@clisp.org>
23289
23290         * config/srclist.txt (*setenv.[ch]): Remove rules.
23291
23292 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23293
23294         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
23295
23296 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23297
23298         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
23299         arpa/inet.h.
23300
23301 2006-07-28  Simon Josefsson  <jas@extundo.com>
23302
23303         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
23304         * modules/inet_pton (Depends-on): Likewise.
23305
23306 2006-07-28  Simon Josefsson  <jas@extundo.com>
23307
23308         * m4/netinet_in_h.m4: New file.
23309
23310 2006-07-28  Simon Josefsson  <jas@extundo.com>
23311
23312         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23313         #include's.
23314
23315 2006-07-28  Simon Josefsson  <jas@extundo.com>
23316
23317         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23318         #include's.
23319
23320 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23321
23322         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23323         setgid on directories only if they set these bits.
23324         * lib/modechange.h: Remove obsolete comment about masks.
23325
23326 2006-07-28  Eric Blake  <ebb9@byu.net>
23327
23328         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23329         macro expansion.
23330
23331 2006-07-28  Bruno Haible  <bruno@clisp.org>
23332
23333         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23334
23335 2006-07-28  Bruno Haible  <bruno@clisp.org>
23336
23337         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23338
23339 2006-07-28  Bruno Haible  <bruno@clisp.org>
23340
23341         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23342         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23343         Define fallbacks.
23344         Avoids link error on FreeBSD 4.x.
23345         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23346
23347         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23348         encoding.
23349         * lib/mbswidth.c (iswcntrl): Likewise.
23350
23351 2006-07-27  Bruno Haible  <bruno@clisp.org>
23352
23353         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23354         test.
23355
23356 2006-07-27  Bruno Haible  <bruno@clisp.org>
23357
23358         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23359         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23360         defined.
23361
23362 2006-07-26  Eric Blake  <ebb9@byu.net>
23363
23364         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23365
23366 2006-07-26  Eric Blake  <ebb9@byu.net>
23367
23368         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23369         like mingw that lack mkstemp.
23370         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23371         avoid compilation warning on mingw.
23372
23373 2006-07-26  Bruno Haible  <bruno@clisp.org>
23374
23375         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23376         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23377         INT_FAST*_MIN, INTPTR_MIN.
23378
23379 2006-07-25  Bruno Haible  <bruno@clisp.org>
23380
23381         * modules/version-etc (Depends-on): Add stdarg.
23382
23383 2006-07-25  Bruno Haible  <bruno@clisp.org>
23384
23385         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23386         complex commands.
23387
23388 2006-07-25  Bruno Haible  <bruno@clisp.org>
23389
23390         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23391         defined in <stdarg.h> or config.h.
23392
23393 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23394
23395         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23396         (gl_STDIO_SAFER): Remove.
23397
23398 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23399
23400         * MODULES.html.sh (File stream based Input/Output):
23401         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23402         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23403         * modules/fopen-safer, modules/tmpfile-safer: New files.
23404         * modules/stdio-safer: Remove.
23405
23406 2006-07-24  Bruno Haible  <bruno@clisp.org>
23407
23408         * modules/tmpdir: New file.
23409         * MODULES.html.sh (File system functions): Add it.
23410
23411 2006-07-24  Bruno Haible  <bruno@clisp.org>
23412
23413         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
23414         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
23415
23416 2006-07-24  Bruno Haible  <bruno@clisp.org>
23417
23418         * modules/clean-temp: New file.
23419
23420 2006-07-24  Bruno Haible  <bruno@clisp.org>
23421
23422         * m4/tmpdir.m4: New file, from GNU gettext.
23423
23424 2006-07-24  Bruno Haible  <bruno@clisp.org>
23425
23426         * lib/tmpdir.h: New file, from GNU gettext.
23427         * lib/tmpdir.c: New file, from GNU gettext.
23428
23429 2006-07-24  Bruno Haible  <bruno@clisp.org>
23430
23431         * lib/clean-temp.h: New file, from GNU gettext.
23432         * lib/clean-temp.c: New file, from GNU gettext.
23433
23434 2006-07-23  Eric Blake  <ebb9@byu.net>
23435
23436         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23437         (Depends-on): Add binary-io.
23438
23439 2006-07-23  Eric Blake  <ebb9@byu.net>
23440
23441         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23442
23443 2006-07-23  Eric Blake  <ebb9@byu.net>
23444
23445         * lib/tmpfile-safer.c: New file.
23446         * lib/stdio-safer.h (fopen_safer): Add prototype.
23447         * lib/stdio--.h (tmpfile): Make safer.
23448
23449 2006-07-23  Bruno Haible  <bruno@clisp.org>
23450
23451         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
23452         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
23453         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
23454         gl_linked_remove_at): Use it.
23455
23456 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23457         and Simon Josefsson <jas@extundo.com>
23458
23459         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
23460
23461         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
23462
23463 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23464
23465         * modules/close-stream: New file.
23466         * modules/closeout (Description): Make it clear that it exits
23467         with a diagnostic on error.
23468         (Depends-on): Add close-stream.  Remove fpending, stdbool.
23469         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
23470
23471 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23472
23473         * m4/close-stream.m4: New file.
23474
23475 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23476
23477         * lib/close-stream.c, lib/close-stream.h: New files.
23478
23479 2006-07-22  Bruno Haible  <bruno@clisp.org>
23480
23481         Merge from GNU gettext 0.15.
23482
23483         2006-05-01  Bruno Haible  <bruno@clisp.org>
23484
23485                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
23486
23487         2006-07-22  Bruno Haible  <bruno@clisp.org>
23488
23489                 * modules/javaversion: New file.
23490                 * MODULES.html.sh (Java): Add javaversion.
23491
23492         2006-03-12  Bruno Haible  <bruno@clisp.org>
23493
23494                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
23495
23496         2005-12-04  Bruno Haible  <bruno@clisp.org>
23497
23498                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
23499                 (untested).
23500
23501         2006-06-21  Bruno Haible  <bruno@clisp.org>
23502
23503                 Avoid warnings from recent versions of mcs.
23504                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
23505                 -o, -L, -r any more. Use options documented since mcs-1.0
23506                 instead. Similarly for -g.
23507
23508         2005-12-04  Bruno Haible  <bruno@clisp.org>
23509
23510                 * build-aux/csharpcomp.sh.in: Suffix for resources is
23511                 .resources, not .resource.
23512
23513         2005-07-09  Bruno Haible  <bruno@clisp.org>
23514
23515                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
23516                 add a .dll suffix.
23517                 Reported by Mark Junker <mjscod@gmx.de>.
23518
23519         2006-07-22  Bruno Haible  <bruno@clisp.org>
23520
23521                 * modules/gettext: Upgrade to gettext-0.15.
23522                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
23523                 m4/visibility.m4.
23524                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
23525
23526 2006-07-22  Bruno Haible  <bruno@clisp.org>
23527
23528         Merge from GNU gettext 0.15.
23529
23530         2006-03-25  Bruno Haible  <bruno@clisp.org>
23531
23532                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
23533
23534         2006-07-21  Bruno Haible  <bruno@clisp.org>
23535
23536                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
23537                 "1.1".
23538
23539         2006-05-09  Bruno Haible  <bruno@clisp.org>
23540
23541                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
23542                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
23543                 for the conftestver execution.
23544
23545         2006-05-01  Bruno Haible  <bruno@clisp.org>
23546
23547                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
23548                 optional target-version argument. Verify that the compiler
23549                 groks source of the specified source-version, or add -source
23550                 option as necessary. Verify that the compiler produces
23551                 bytecode in the specified target-version, or add -target and
23552                 -source options as necessary. Make the result of the test
23553                 available as variable CONF_JAVAC. Also log error output in
23554                 config.log.
23555
23556         2006-03-11  Bruno Haible  <bruno@clisp.org>
23557
23558                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
23559
23560         2006-05-09  Bruno Haible  <bruno@clisp.org>
23561
23562                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
23563                 CLASSPATH_SEPARATOR to a semicolon.
23564
23565         2006-03-12  Bruno Haible  <bruno@clisp.org>
23566
23567                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
23568                 available as variable CONF_JAVA, for subsequent autoconf
23569                 tests. Also log error output in config.log.
23570
23571         2006-07-19  Bruno Haible  <bruno@clisp.org>
23572
23573                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
23574                 that getline works on glibc2 systems. Needed to avoid trouble
23575                 in relocatable.c.
23576                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
23577
23578         2005-12-04  Bruno Haible  <bruno@clisp.org>
23579
23580                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
23581                 launcher (untested).
23582
23583         2005-12-04  Bruno Haible  <bruno@clisp.org>
23584
23585                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
23586
23587         2006-07-22  Bruno Haible  <bruno@clisp.org>
23588
23589                 * gettext.m4: Update from GNU gettext-0.15.
23590                 * nls.m4: Likewise.
23591                 * po.m4: Likewise.
23592                 * inttypes-pri.m4: Likewise.
23593                 * inttypes-h.m4: Renamed from inttypes.m4.
23594                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
23595
23596 2006-07-22  Bruno Haible  <bruno@clisp.org>
23597
23598         Merge from GNU gettext 0.15.
23599
23600         2005-07-05  Bruno Haible  <bruno@clisp.org>
23601
23602                 * printf-args.c (printf_fetchargs): Work around broken
23603                 definition of wint_t on mingw.
23604
23605         2005-02-12  Bruno Haible  <bruno@clisp.org>
23606
23607                 * xallocsa.h: Add extern "C" for C++.
23608
23609         2006-05-17  Bruno Haible  <bruno@clisp.org>
23610
23611                 Cygwin portability.
23612                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
23613
23614         2006-04-30  Bruno Haible  <bruno@clisp.org>
23615
23616                 * progreloc.c: Include <mach-o/dyld.h> if available.
23617                 (find_executable): Use _NSGetExecutablePath when possible.
23618
23619         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23620
23621                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
23622                 function.
23623
23624         2005-12-29  Bruno Haible  <bruno@clisp.org>
23625
23626                 * progreloc.c (set_program_name_and_installdir): Fix
23627                 compilation error.
23628
23629         2005-12-04  Bruno Haible  <bruno@clisp.org>
23630
23631                 Cygwin portability.
23632                 * progreloc.c: Include <windows.h> also on Cygwin.
23633                 (find_executable): Add support for Cygwin.
23634                 (set_program_name_and_installdir): Handle also platforms with
23635                 nonempty EXEEXT.
23636
23637         2006-07-11  Bruno Haible  <bruno@clisp.org>
23638
23639                 * javacomp.c: Fix a comment.
23640                 Reported by Jim Meyering.
23641
23642         2006-04-30  Bruno Haible  <bruno@clisp.org>
23643
23644                 * javacomp.h (compile_java_class): Add source_version,
23645                 target_version arguments.
23646                 * javacomp.c: Rewritten to choose only a compiler that
23647                 respects the specified source_version and target_version.
23648
23649         2006-06-27  Bruno Haible  <bruno@clisp.org>
23650
23651                 Assume correct S_ISDIR macro.
23652                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
23653
23654         2006-07-22  Bruno Haible  <bruno@clisp.org>
23655
23656                 * javaversion.h: New file, from GNU gettext.
23657                 * javaversion.c: New file, from GNU gettext.
23658                 * javaversion.java: New file, from GNU gettext.
23659                 * javaversion.class: New file, from GNU gettext.
23660
23661         2006-05-17  Bruno Haible  <bruno@clisp.org>
23662
23663                 Cygwin portability.
23664                 * javaexec.c (execute_java_class): Test for jview program
23665                 also on Cygwin.
23666
23667         2006-04-09  Bruno Haible  <bruno@clisp.org>
23668
23669                 * fatal-signal.c: Don't include string.h.
23670                 (at_fatal_signal): Use a copying loop instead of memcpy.
23671
23672         2005-12-04  Bruno Haible  <bruno@clisp.org>
23673
23674                 * csharpexec.c: Add support for 'clix' launcher (untested).
23675                 (execute_csharp_using_sscli): New function.
23676                 (execute_csharp_program): Call it.
23677
23678         2006-06-21  Bruno Haible  <bruno@clisp.org>
23679
23680                 Avoid warnings from recent versions of mcs.
23681                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
23682                 -o, -L, -r any more. Use options documented since mcs-1.0
23683                 instead. Similarly for -g.
23684
23685         2005-07-09  Bruno Haible  <bruno@clisp.org>
23686
23687                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
23688                 add a .dll suffix.
23689                 Reported by Mark Junker <mjscod@gmx.de>.
23690
23691         2006-06-17  Bruno Haible  <bruno@clisp.org>
23692
23693                 * config.charset: Update for NetBSD 3.0.
23694
23695         2006-05-17  Bruno Haible  <bruno@clisp.org>
23696
23697                 Cygwin portability.
23698                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
23699
23700         2006-05-16  Bruno Haible  <bruno@clisp.org>
23701
23702                 * localcharset.c [CYGWIN]: Include <windows.h>.
23703                 (get_charset_aliases): For Cygwin, return the same CPxxx
23704                 aliases list as under WIN32.
23705                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
23706                 the environment variables. Fall back to GetACP().
23707
23708         2006-04-05  Bruno Haible  <bruno@clisp.org>
23709
23710                 * config.charset: Update Juan Manuel Guerrero's address.
23711
23712         2005-02-12  Bruno Haible  <bruno@clisp.org>
23713
23714                 * allocsa.h: Add extern "C" for C++.
23715
23716         2005-02-10  Bruno Haible  <bruno@clisp.org>
23717
23718                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23719                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23720
23721         2006-07-22  Bruno Haible  <bruno@clisp.org>
23722
23723                 * gettext.h: Update to GNU gettext-0.15.
23724
23725 2006-07-22  Bruno Haible  <bruno@clisp.org>
23726
23727         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23728         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23729         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23730
23731 2006-07-21  Eric Blake  <ebb9@byu.net>
23732
23733         * modules/stdlib-safer: New file.
23734         * MODULES.html.sh (File stream based Input/Output): Add
23735         stdlib-safer.
23736
23737 2006-07-21  Eric Blake  <ebb9@byu.net>
23738
23739         * lib/stdlib-safer.h: New file from coreutils, required by
23740         stdlib--.h.
23741
23742 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
23743
23744         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
23745
23746 2006-07-20  Bruno Haible  <bruno@clisp.org>
23747
23748         * gnulib-tool: Recognize new option --assume-autoconf.
23749         (autoconf_minversion): New variable.
23750         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
23751
23752 2006-07-20  Bruno Haible  <bruno@clisp.org>
23753
23754         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
23755
23756 2006-07-19  Derek R. Price  <derek@ximbiot.com>
23757
23758         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
23759         Reindent and repaginate.
23760
23761 2006-07-19  Derek Price  <derek@ximbiot.com>
23762
23763         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
23764         Correct grammar.
23765
23766 2006-07-17  Bruno Haible  <bruno@clisp.org>
23767
23768         * modules/list: New file.
23769         * modules/array-list: New file.
23770         * modules/carray-list, modules/carray-list-tests: New files.
23771         * modules/linked-list, modules/linked-list-tests: New files.
23772         * modules/avltree-list, modules/avltree-list-tests: New files.
23773         * modules/rbtree-list, modules/rbtree-list-tests: New files.
23774         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
23775         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
23776         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
23777         * modules/oset: New file.
23778         * modules/array-oset: New file.
23779         * modules/avltree-oset, modules/avltree-oset-tests: New files.
23780         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
23781         * tests/test-carray_list.c: New file.
23782         * tests/test-linked_list.c: New file.
23783         * tests/test-avltree_list.c: New file.
23784         * tests/test-rbtree_list.c: New file.
23785         * tests/test-linkedhash_list.c: New file.
23786         * tests/test-avltreehash_list.c: New file.
23787         * tests/test-rbtreehash_list.c: New file.
23788         * tests/test-avltree_oset.c: New file.
23789         * tests/test-rbtree_oset.c: New file.
23790         * MODULES.html.sh (Container data structures): New section.
23791
23792 2006-07-17  Bruno Haible  <bruno@clisp.org>
23793
23794         * m4/gl_list.m4: New file.
23795
23796 2006-07-17  Bruno Haible  <bruno@clisp.org>
23797
23798         * lib/gl_list.h: New file.
23799         * lib/gl_list.c: New file.
23800         * lib/gl_array_list.h: New file.
23801         * lib/gl_array_list.c: New file.
23802         * lib/gl_carray_list.h: New file.
23803         * lib/gl_carray_list.c: New file.
23804         * lib/gl_linked_list.h: New file.
23805         * lib/gl_linked_list.c: New file.
23806         * lib/gl_anylinked_list1.h: New file.
23807         * lib/gl_anylinked_list2.h: New file.
23808         * lib/gl_avltree_list.h: New file.
23809         * lib/gl_avltree_list.c: New file.
23810         * lib/gl_anyavltree_list1.h: New file.
23811         * lib/gl_anyavltree_list2.h: New file.
23812         * lib/gl_rbtree_list.h: New file.
23813         * lib/gl_rbtree_list.c: New file.
23814         * lib/gl_anyrbtree_list1.h: New file.
23815         * lib/gl_anyrbtree_list2.h: New file.
23816         * lib/gl_anytree_list1.h: New file.
23817         * lib/gl_anytree_list2.h: New file.
23818         * lib/gl_linkedhash_list.h: New file.
23819         * lib/gl_linkedhash_list.c: New file.
23820         * lib/gl_anyhash_list1.h: New file.
23821         * lib/gl_anyhash_list2.h: New file.
23822         * lib/gl_avltreehash_list.h: New file.
23823         * lib/gl_avltreehash_list.c: New file.
23824         * lib/gl_rbtreehash_list.h: New file.
23825         * lib/gl_rbtreehash_list.c: New file.
23826         * lib/gl_anytreehash_list1.h: New file.
23827         * lib/gl_anytreehash_list2.h: New file.
23828
23829         * lib/gl_oset.h: New file.
23830         * lib/gl_oset.c: New file.
23831         * lib/gl_array_oset.h: New file.
23832         * lib/gl_array_oset.c: New file.
23833         * lib/gl_avltree_oset.h: New file.
23834         * lib/gl_avltree_oset.c: New file.
23835         * lib/gl_rbtree_oset.h: New file.
23836         * lib/gl_rbtree_oset.c: New file.
23837         * lib/gl_anytree_oset.h: New file.
23838
23839 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23840
23841         * m4/mkancesdirs.m4: New file.
23842         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
23843         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
23844         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
23845         it.
23846
23847 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23848
23849         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
23850         * lib/mkancesdirs.h: New files.
23851         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
23852         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
23853         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
23854         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
23855         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
23856         callers changed.  Revamp internals significantly, by not
23857         attempting to create directories that are temporarily more
23858         permissive than the final results.  Do not attempt to use
23859         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
23860         This removes some race conditions, fixes some bugs, and simplifies
23861         things.  Use new dirchownmod function to do owner and mode changes.
23862         * lib/mkdir-p.h: Likewise.
23863         * lib/modechange.c (octal_to_mode): New function.
23864         (struct mode_change): New member mentioned.
23865         (make_node_op_equals): New arg mentioned.  All callers changed.
23866         (mode_compile): Keep track of which mode bits the user has explicitly
23867         mentioned.
23868         (mode_adjust): New arg DIR, so that we implement the X op correctly.
23869         New arg PMODE_BITS, to keep track of which mode bits the user
23870         mentioned; it treats S_ISUID and S_ISGID speciall.
23871         All callers changed.
23872         * lib/modechange.h: Likewise.
23873
23874 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23875
23876         * MODULES.html.sh: Add mkancestors.
23877         * modules/mkancesdirs: New module.
23878         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
23879         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
23880         The chdir-safer and afs files are now orphans; I'll remove them
23881         unless someone speaks up.
23882         Add lib/dirchownmod.c, lib/dirchownmod.h.
23883         (Depends-on): Remove alloca, chown, save-cwd, dirname.
23884         Add lchown, mkancesdirs.
23885         (Maintainer): Add self.
23886
23887 2006-07-15  Karl Berry  <karl@gnu.org>
23888
23889         * gnulib-tool: help message wording/arrangement.
23890
23891 2006-07-14  Simon Josefsson  <jas@extundo.com>
23892
23893         * doc/gnulib.texi (Libtool and Windows): New section.
23894
23895 2006-07-12  Simon Josefsson  <jas@extundo.com>
23896
23897         * modules/gendocs (License): Fix license, approved by Karl.
23898
23899 2006-07-12  Eric Blake  <ebb9@byu.net>
23900
23901         * MODULES.html.sh: Add gendocs.
23902
23903 2006-07-11  Eric Blake  <ebb9@byu.net>
23904
23905         * modules/fdl: New module, to install doc/fdl.texi.
23906         * MODULES.html.sh: Add new section for documentation modules.
23907         * gnulib-tool: Avoid space-tab.
23908         (--doc-base): New option, to manage files from doc.
23909
23910 2006-07-11  Eric Blake  <ebb9@byu.net>
23911
23912         * m4/absolute-header.m4: Fix comments to match recent change.
23913
23914 2006-07-11  Eric Blake  <ebb9@byu.net>
23915
23916         * gnulib-tool: List --doc-base before --tests-base.
23917
23918 2006-07-11  Derek R. Price  <derek@ximbiot.com>
23919
23920         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
23921
23922 2006-07-11  Bruno Haible  <bruno@clisp.org>
23923
23924         * README: Mention where to put documentation.
23925
23926 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23927
23928         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
23929
23930 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23931
23932         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
23933         to stdint.m4.
23934
23935 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23936
23937         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
23938         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
23939         "no/such/file/stdint.h" when there is no such file, so that
23940         the resulting C code can be parsed by dodgy compilers.
23941         Problems reported by Bob Proulx.
23942
23943 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23944
23945         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
23946         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23947         macros into the GNU _D_EXACT_NAMLEN.
23948         * lib/savedir.c:  Likewise.
23949         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
23950
23951 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23952         and Paul Eggert  <eggert@cs.ucla.edu>
23953
23954         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
23955         * m4/savedir.m4:
23956         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23957         macros into the GNU _D_EXACT_NAMLEN.
23958
23959 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23960
23961         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
23962         around the absolute name, to work around a problem with the HP-UX
23963         11.23 native C compiler, reported by Bob Proulx.
23964
23965 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23966
23967         * doc/maintain.texi, make-stds.texi: Sync from
23968         <http://savannah.gnu.org/projects/gnustandards>.
23969
23970 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23971
23972         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
23973
23974 2006-07-09  Jim Meyering  <jim@meyering.net>
23975
23976         * m4/glob.m4: Remove a doubled word in a comment.
23977
23978 2006-07-09  Jim Meyering  <jim@meyering.net>
23979
23980         * lib/argp-pv.c: Remove a doubled word in a comment.
23981         * lib/check-version.c (check_version): Likewise.
23982         * lib/javacomp.c (compile_java_class): Likewise.
23983
23984 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23985
23986         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
23987         for the benefit of people using Autoconf 2.60.  If you want to
23988         support older Autoconf versions you can copy m4/onceonly_2_57.m4
23989         (or m4/onceonly.m4, if pre-2.57) manually.
23990
23991 2006-07-08  Jim Meyering  <jim@meyering.net>
23992
23993         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
23994         comment.
23995         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
23996         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
23997         comment.
23998
23999 2006-07-08  Jim Meyering  <jim@meyering.net>
24000
24001         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
24002
24003 2006-07-07  Simon Josefsson  <jas@extundo.com>
24004
24005         * tests/test-crc.c: Change expected crc value, the test vector
24006         were probably computed using the old broken crc.c?
24007
24008 2006-07-06  Simon Josefsson  <jas@extundo.com>
24009
24010         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
24011         now the canonical place for the M4 file).
24012
24013         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
24014         from the sys_socket dependency now.
24015
24016         * modules/inet_pton (Files): Ditto.
24017
24018         * modules/inet_ntop (Files): Ditto.
24019
24020 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24021
24022         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
24023         not gl_PREREQ_GETUSERSHELL.
24024
24025 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24026
24027         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
24028         with only one argument, for Autoconf 2.60.
24029         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
24030         expand to nothing, so add a shell command to avoid syntax error.
24031         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24032
24033 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24034
24035         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
24036
24037 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24038
24039         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
24040         no longer needed.  Check for isblank decl.
24041         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
24042         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
24043         of existence.
24044
24045 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24046
24047         * lib/getloadavg.c: Use __VMS, not VMS.
24048         * lib/getopt.c: Likewise.
24049         * lib/getpagesize.h: Likewise.
24050         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
24051         and probably does not work.
24052
24053 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24054
24055         * lib/.cppi-disable: Add wcwidth.
24056         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
24057         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
24058         (ISGRAPH): Remove.  All uses changed to isgraph.
24059         (FOLD) [!defined _LIBC]: Remove special case.
24060         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
24061         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
24062         HAVE_ISBLANK.
24063         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
24064         case.
24065
24066 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24067
24068         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
24069         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
24070         brackets.  Other minor changes to suppress some compiler
24071         warnings.
24072
24073 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24074         and Paul Eggert  <eggert@cs.ucla.edu>
24075
24076         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
24077         of invoking obsolescent AC_HEADER_DIRENT macro.
24078         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24079         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
24080         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24081         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24082         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
24083         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24084         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
24085         * m4/readdir.m4: Remove; no longer needed.
24086
24087 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24088         and Paul Eggert  <eggert@cs.ucla.edu>
24089
24090         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
24091         Don't worry about this obsolete case any more.
24092         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
24093         directories.
24094         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
24095         worry about this obsolete case any more.
24096         * lib/fts.c: Likewise.
24097         * lib/getcwd.c: Likewise.
24098         * lib/glob.h: Likewise.
24099         * lib/savedir.c: Likewise.
24100
24101 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24102
24103         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
24104         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
24105         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
24106         needed.
24107         All uses removed.
24108         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24109         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24110         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
24111         needed.
24112         * m4/getdate.m4 (gl_GETDATE): Likewise.
24113         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24114         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24115         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24116         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24117         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24118         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24119         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
24120         needed.
24121
24122 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24123
24124         * lib/memcasecmp.c: Include <limits.h>.
24125         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
24126         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
24127         Don't assume isdigit succeeds only on '0' through '9'.
24128
24129 2006-07-05  Eric Blake  <ebb9@byu.net>
24130
24131         * modules/getaddrinfo (Depends-on): Add snprintf.
24132
24133 2006-07-05  Eric Blake  <ebb9@byu.net>
24134
24135         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
24136         to avoid 'header present but could not be compiled' on cygwin.
24137
24138 2006-07-05  Eric Blake  <ebb9@byu.net>
24139
24140         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
24141         missing from netdb.h.
24142         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
24143
24144 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24145
24146         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
24147         no longer needed.
24148         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
24149         * m4/getdate.m4 (gl_GETDATE): Likewise.
24150         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24151         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24152         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24153         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24154         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24155
24156 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24157
24158         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
24159         All uses of is_space replaced by isspace.
24160         * lib/exit.h: Don't talk about STDC_HEADERS.
24161         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
24162         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
24163         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
24164         replaced by isprint etc.
24165         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
24166         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24167         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
24168         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
24169         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
24170         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24171
24172 2006-07-05  Bruno Haible  <bruno@clisp.org>
24173
24174         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
24175         the function exists, before testing against AIX.
24176         Reported by Martin Lambers <marlam@marlam.de>.
24177
24178 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24179
24180         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
24181         From Mark D. Baushke.
24182
24183 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24184
24185         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
24186         to the absolute name, not just one, to bypass Sun C 5.8's
24187         "warning: #include of /usr/include/... may be non-portable".
24188
24189 2006-07-04  Eric Blake  <ebb9@byu.net>
24190
24191         * modules/dirname-tests: New test module.
24192         * tests/test-dirname.c: New file, replacing dirname.c
24193         TEST_DIRNAME section that was recently deleted.
24194
24195 2006-07-04  Bruno Haible  <bruno@clisp.org>
24196
24197         Assume ANSI C header files and <ctype.h> functions.
24198         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
24199         (mbsnwidth): Use isprint, iscntrl instead.
24200
24201 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24202
24203         Merge from coreutils.
24204         * MODULES.html.sh: Add xstrtold.
24205         * modules/xstrtold: New file.
24206         * modules/cycle-check (Files): Add lib/same-inode.h.
24207         * modules/dirname (Files): Add m4/double-slash-root.m4.
24208         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
24209         * modules/mkdir-p (Files): Add lib/same-inode.h.
24210         * modules/same (Files): Add lib/same-inode.h.
24211
24212 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24213
24214         * m4/absolute-header.m4: Renamed from full-header-path.m4.
24215         This is to keep the terminology clean; POSIX talks about
24216         "absolute pathnames", not "full pathnames", but the GNU
24217         Coding Standards say to use "path" for something else;
24218         so use "absolute" to keep both sides happy.
24219         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
24220         Set gl_absolute_header, not gl_full_header_path.
24221         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
24222         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
24223         All uses changed.
24224
24225         Merge from coreutils.
24226
24227         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24228
24229         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
24230         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
24231         want to require the building of c-strtod.o.
24232         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
24233         needs -lm directly.
24234         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
24235
24236         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24237
24238         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
24239         --as-needed option if available.  Problem reported by Albert Chin in
24240         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
24241         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
24242         cc merely issues a bunch of annoying warnings for --as-needed
24243         (this problem was reported by Bob Proulx).  Also, try linking with
24244         -lm to detect a bug in binutils 2.16 (this problem was reported
24245         by Ralf Wildenhues).
24246
24247         2006-06-18  Jim Meyering  <jim@meyering.net>
24248
24249         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
24250         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
24251         macro.
24252         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
24253         also check for glibc-2.4's abort-inducing bug.
24254
24255         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
24256         Low-probability clean-up should be to use rmdir to get rid of
24257         the just-created directory, not unlink.
24258
24259         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
24260         configure fail, and request a bug report to inform us about it.
24261         Add a comment that, barring reports to the contrary, in 2007 we'll
24262         assume ftruncate is universally available.
24263
24264         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24265
24266         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
24267
24268         2006-03-12  Jim Meyering  <jim@meyering.net>
24269
24270         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
24271         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
24272         * m4/same.m4 (gl_SAME): Likewise.
24273         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
24274
24275         2006-03-11  Eric Blake  <ebb9@byu.net>
24276
24277         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
24278         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
24279         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
24280         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
24281
24282 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24283
24284         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
24285         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
24286         reported by Mark D. Baushke, one in
24287         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
24288
24289         Merge from coreutils.
24290
24291         * lib/.cppi-disable: Add stdint_.h.
24292         * lib/.cvsignore: Add stdint.h.
24293
24294         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24295
24296         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
24297         both double and long double versions.
24298         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
24299         * lib/xstrtold.c: New file.
24300         * lib/xstrtod.h (xstrtold): New decl.
24301
24302         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24303
24304         * lib/filemode.c (setst): Remove.
24305         (strmode): Rewrite to avoid setst.  This makes the code shorter,
24306         (arguably) clearer, and the generated code is a bit smaller on my
24307         Debian GNU/Linux stable x86 host.
24308
24309         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24310
24311         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24312         Assume that filemode.h includes sys/types.h and sys/stat.h.
24313         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24314         (ftypelet): Reorder to put common cases first, for efficiency.
24315         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24316         to do 'M'.
24317         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24318         of 10, for compatibility with FreeBSD.  All callers changed.
24319         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24320         types that can't be deduced solely from st_mode.  First arg is now a
24321         const pointer.
24322         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24323         (strmode): Renamed from mode_string.
24324         (filemodestring): New decl.
24325         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24326         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24327         needed.
24328         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24329
24330         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24331
24332         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24333         fsusage.h now does that.  Include fsusage.h first, to test interface.
24334         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24335         at most one method (the old code could have generated decls that
24336         didn't conform to C89, not that this was ever exercised).
24337         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24338
24339         2006-03-19  Jim Meyering  <jim@meyering.net>
24340
24341         Work even in a chroot where d_ino values for entries in "/"
24342         don't match the stat.st_ino values for the same names.
24343         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24344         number, iterate through all entries again, using lstat instead.
24345         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24346         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24347
24348         * lib/getcwd.c (__getcwd): Clarify a comment.
24349         Use memcpy in place of a call to strcpy.
24350
24351         2006-03-12  Jim Meyering  <jim@meyering.net>
24352
24353         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24354         matches that of the current directory (which we're about to chdir ".."
24355         out of), then save the dev-ino of the parent, instead.
24356
24357         * lib/same-inode.h (SAME_INODE): New file/macro.
24358         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24359         Include "same-inode.h", instead.
24360         * lib/same.c: Likewise.
24361         * lib/cycle-check.h: Include "same-inode.h".
24362         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24363         * lib/cycle-check.c (SAME_INODE): Remove definition.
24364         * lib/root-dev-ino.h: Include "same-inode.h".
24365
24366         2006-03-11  Eric Blake  <ebb9@byu.net>
24367
24368         * lib/same.c (same_name): s/base_name/last_component/
24369         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24370         * lib/filenamecat.c (file_name_concat): Likewise.
24371
24372         2006-03-11  Eric Blake  <ebb9@byu.net>,
24373                     Paul Eggert  <eggert@cs.ucla.edu>
24374
24375         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24376         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24377         drive prefix.
24378         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24379         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24380         (last_component): New method.
24381         * lib/dirname.c (dir_len): Determine when drive letters need a
24382         subsequent slash.  Preserve // when it is special.
24383         (dir_name): Don't append dot when drive letter is absolute.
24384         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24385         * lib/basename.c (base_name): New semantics - malloc the result.
24386         Preserve // when it is special.  Preserve relative files that look
24387         like drive letters.
24388         (base_len): Preserve // when it is special.
24389         (last_component): New method, similar to old base_name semantics.
24390         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24391         base_name.  Strip redundant slashes from ///.
24392
24393 2006-07-03  Jim Meyering  <jim@meyering.net>
24394
24395         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24396         macro is used before the first cycle_check call.
24397
24398 2006-07-03  Eric Blake  <ebb9@byu.net>
24399
24400         * modules/dirname (Depends-on): Add xstrndup.
24401
24402 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24403
24404         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24405         test cases, so that config.log is a bit easier to follow.
24406
24407 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24408
24409         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
24410         both are 64 bits, since this seems to be the tradition, and this
24411         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
24412         we ever run into a host that prefers long long to long in this
24413         case, we'll need another configure-time test.  Problem reported by
24414         Jim Meyering.
24415
24416 2006-07-02  Eric Blake  <ebb9@byu.net>
24417
24418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
24419
24420 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24421
24422         * modules/inttypes (Depends-on): No longer depends on stdint.
24423         * modules/stdint (Description): Say more about assumptions.
24424         Say that the fast types might differ.  Say macros are used.
24425         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
24426         (Makefile.am): Revise list of substituted symbols to match
24427         new stdint.m4.
24428         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24429         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24430         * tests/test-stdint.c (verify_same_types)
24431         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24432         the code conforms to C99/C89.
24433         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24434         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24435
24436 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24437
24438         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24439         but fix a bug, by requiring at least 64 bits.
24440         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24441         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24442         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24443         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24444
24445         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
24446         changes.  Make 2.59 a prerequisite.  Check and substitute for
24447         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
24448         inttypes.h.  Do not use special include files; just use the
24449         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
24450         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
24451         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
24452         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
24453         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
24454         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
24455         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
24456         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
24457         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
24458         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
24459         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
24460         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
24461         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
24462         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
24463         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
24464         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
24465         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
24466         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
24467         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
24468         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
24469         WINT_MAX.  Check for C99 conformance more strictly, by detecting
24470         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
24471         not check for things that C99 does not require, e.g., int8_t.  If
24472         a test isn't needed unless <stdint.h> isn't working, and is
24473         unlikely to be needed for any other reason, then don't do it
24474         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
24475         size_t, since we assume C89 freestanding at least.  Do not check
24476         for sig_atomic_t, wchar_t, or wint_t, since the code now does
24477         the right thing even if the types are not defined.  Instead use:
24478         (gl_STDINT_TYPE_PROPERTIES): New macro.
24479         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
24480         testing whether <sys/types.h> clashes, as Autoconf does this for
24481         us now.  All uses removed.
24482         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
24483         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
24484         (gl_CHECK_TYPE_SAME):
24485         Remove; no longer needed.
24486         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
24487         exists, since we'll return 0 anyway in that case.
24488         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
24489
24490 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24491
24492         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
24493         possible collision with system files.
24494         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
24495         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
24496         WCHAR_MIN and WCHAR_MAX in this case.
24497         (<stddef.h>): Do not include; no longer needed.
24498         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
24499         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
24500         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
24501         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
24502         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
24503         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
24504         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
24505         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
24506         !defined(__c99))]: Include in this case too, since it's harmless
24507         now.
24508         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
24509         dangerous to do so.
24510         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
24511         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
24512         (_STDINT_MIN, _STDINT_MAX): New macros.
24513         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
24514         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
24515         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
24516         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
24517         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
24518         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
24519         macros, not typedefs; this simplifies things quite a bit.
24520         Use long int for all types narrower than int64_t.
24521         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
24522         Define in terms of long long int or int64_t or long int,
24523         not int64_t or int32_t.  This saves some compile-time testing.
24524         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
24525         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
24526         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
24527         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
24528         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
24529         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
24530         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
24531         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
24532         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
24533         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
24534         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24535         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24536         undef any previous version and define our own version, for
24537         simplicity and consistency with the new macros for types.
24538         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24539         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24540         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
24541         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
24542         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
24543         @WINT_T_SUFFIX@ to keep things simple here.
24544         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
24545         Simplify by assuming typical 8/16/32/64 host, since we're
24546         already doing that elsewhere anyway.
24547         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
24548         and assume long long int is 64 bits if available.  This
24549         speeds up 'configure'.
24550
24551 2006-07-01  Eric Blake  <ebb9@byu.net>
24552
24553         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
24554         Reported by Andreas Buening.
24555
24556 2006-07-01  Eric Blake  <ebb9@byu.net>
24557
24558         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
24559
24560 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24561
24562         * lib/getaddrinfo.c: fixed typo
24563
24564 2006-06-29  Jim Meyering  <jim@meyering.net>
24565
24566         * modules/strftime (Maintainer): Add my name, since with the
24567         FPRINTFTIME changes strftime.c has forked from glibc.
24568
24569 2006-06-29  Eric Blake  <ebb9@byu.net>
24570
24571         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
24572
24573 2006-06-29  Eric Blake  <ebb9@byu.net>
24574
24575         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
24576
24577 2006-06-29  Eric Blake  <ebb9@byu.net>
24578
24579         * lib/stat_.h: New file.
24580
24581 2006-06-29  Eric Blake  <ebb9@byu.net>
24582
24583         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
24584         unused static function.
24585
24586 2006-06-29  Eric Blake  <ebb9@byu.net>
24587
24588         * doc/functions.texi (Function Portability): Document missing lstat
24589         on mingw.
24590
24591 2006-06-29  Eric Blake  <ebb9@byu.net>
24592
24593         * MODULES.html.sh: Add sys_stat.
24594         * modules/sys_stat: New module.
24595         * modules/mkstemp (Depends-on): Add sys_stat.
24596
24597 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24598
24599         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
24600
24601 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24602
24603         * m4/c-bs-a.m4: Removed.
24604
24605 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24606
24607         * lib/strftime.c: Assume strftime() exists.
24608
24609 2006-06-29  Derek Price  <derek@ximbiot.com>
24610
24611         * modules/c-bs-a: Removed - \a is C89.
24612         * MODULES.html.sh: Remove c-bs-a.
24613
24614 2006-06-29  Bruno Haible  <bruno@clisp.org>
24615
24616         * modules/wcwidth (License): Change to LGPL.
24617
24618 2006-06-28  Simon Josefsson  <jas@extundo.com>
24619
24620         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
24621         on _WIN32.
24622
24623         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
24624         getnameinfo.
24625
24626 2006-06-28  Simon Josefsson  <jas@extundo.com>
24627
24628         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
24629
24630 2006-06-28  Simon Josefsson  <jas@extundo.com>
24631
24632         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
24633         functions there.  It will succeed on Windows XP, but on Windows
24634         2000 and (presumably) earlier, it will fail, and use the internal
24635         re-implementation.
24636         (use_win32_p): New function.
24637         (getaddrinfo): Use strtoul on servname, to support numeric ports.
24638         Support AI_NUMERICSERV to disable getservbyname.
24639         (getnameinfo): New function, only supports
24640         NI_NUMERICHOST|NI_NUMERICSERV for now.
24641
24642         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
24643         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
24644         getnameinfo.
24645
24646 2006-06-28  Eric Blake  <ebb9@byu.net>
24647
24648         * modules/wcwidth: New file.
24649         * modules/mbchar (Depends-on): Add wcwidth.
24650         * modules/mbswidth (Depends-on): Add wcwidth.
24651         * MODULES.html.sh: Add wcwidth.
24652
24653 2006-06-28  Eric Blake  <ebb9@byu.net>
24654
24655         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
24656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
24657
24658 2006-06-28  Eric Blake  <ebb9@byu.net>
24659
24660         * lib/xvasprintf.h: Fix comments.
24661
24662 2006-06-28  Eric Blake  <ebb9@byu.net>
24663
24664         * lib/mbchar.h (wcwidth): Include wcwidth.h.
24665         * lib/mbswidth.c (wcwidth): Move from here...
24666         * lib/wcwidth.h: ...to this new file.
24667
24668 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24669
24670         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
24671
24672         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
24673         it's obsolete.
24674         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
24675
24676 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24677
24678         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
24679         Autoconf 2.60 says this stuff was obsolete.
24680
24681 2006-06-28  Bruno Haible  <bruno@clisp.org>
24682
24683         * modules/wcwidth (Files): Add m4/wchar_t.m4.
24684
24685 2006-06-28  Bruno Haible  <bruno@clisp.org>
24686
24687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
24688         gt_TYPE_WCHAR_T.
24689
24690 2006-06-28  Bruno Haible  <bruno@clisp.org>
24691
24692         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
24693         declaration for wcwidth.
24694         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
24695
24696 2006-06-28  Bruno Haible  <bruno@clisp.org>
24697
24698         * lib/mkdtemp.c [MINGW]: Include <io.h>.
24699         (mkdir): Define using _mkdir.
24700
24701 2006-06-28  Bruno Haible  <bruno@clisp.org>
24702
24703         * lib/getaddrinfo.h: Fix POSIX URL.
24704         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
24705         _WIN32.
24706         (use_win32_p): Make static.
24707         (getaddrinfo): Reject service name if it is empty or does not consist
24708         solely of decimal digits, or if its value is > 65535.
24709         (getnameinfo): Remove useless casts.
24710
24711 2006-06-27  Simon Josefsson  <jas@extundo.com>
24712
24713         * modules/sys_select: New file, suggested by Bruno Haible, Paul
24714         Eggert and Martin Lambers.
24715
24716 2006-06-27  Simon Josefsson  <jas@extundo.com>
24717
24718         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24719         Eggert and Martin Lambers.
24720
24721 2006-06-27  Bruno Haible  <bruno@clisp.org>
24722
24723         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24724         result to 0, not to empty.
24725         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24726
24727 2006-06-27  Bruno Haible  <bruno@clisp.org>
24728
24729         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24730
24731 2006-06-26  Simon Josefsson  <jas@extundo.com>
24732
24733         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
24734         present.
24735
24736 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
24737
24738         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
24739         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
24740         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
24741
24742 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
24743
24744         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
24745
24746 2006-06-26  Bruno Haible  <bruno@clisp.org>
24747
24748         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
24749
24750 2006-06-26  Bruno Haible  <bruno@clisp.org>
24751
24752         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
24753
24754 2006-06-26  Bruno Haible  <bruno@clisp.org>
24755
24756         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
24757         SGI C compiler in pre-C99 mode.
24758         Suggested by Mark D. Baushke and Larry Jones.
24759
24760 2006-06-26  Bruno Haible  <bruno@clisp.org>
24761
24762         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
24763         WCHAR_MAX.
24764         Reported by Mark D. Baushke and Larry Jones.
24765
24766 2006-06-26  Bruno Haible  <bruno@clisp.org>
24767
24768         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
24769         in pre-C99 mode.
24770         Suggested by Mark D. Baushke and Larry Jones.
24771
24772 2006-06-23  Simon Josefsson  <jas@extundo.com>
24773             Bruno Haible  <bruno@clisp.org>
24774
24775         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
24776         Emit mostlyclean-local rule.
24777         (func_emit_tests_Makefile_am): Likewise.
24778         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
24779
24780 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
24781
24782         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
24783
24784 2006-06-23  Bruno Haible  <bruno@clisp.org>
24785
24786         * tests/test-stdint.c: Update to match ISO C 99 Technical
24787         Corrigendum 1.
24788
24789 2006-06-23  Bruno Haible  <bruno@clisp.org>
24790
24791         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
24792
24793 2006-06-23  Bruno Haible  <bruno@clisp.org>
24794
24795         * lib/stdint_.h: Treat IRIX like OpenBSD.
24796
24797 2006-06-23  Bruno Haible  <bruno@clisp.org>
24798
24799         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
24800         ISO C 99 Technical Corrigendum 1.
24801
24802 2006-06-22  Simon Josefsson  <jas@extundo.com>
24803
24804         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
24805         MinGW.
24806
24807 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24808
24809         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
24810         needed.  Some compiler complained about some of them.  Problem reported
24811         by Larry Jones in
24812         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
24813
24814 2006-06-21  Simon Josefsson  <jas@extundo.com>
24815
24816         * tests/test-getaddrinfo.c: New file.
24817
24818         * modules/getaddrinfo-tests: New file.
24819
24820         * MODULES.html.sh: Add inet_pton.
24821
24822         * modules/inet_pton: New file.
24823
24824 2006-06-21  Simon Josefsson  <jas@extundo.com>
24825
24826         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
24827         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
24828         of using the (limited) gnulib implementation on Windows XP.
24829
24830         * m4/inet_pton.m4: New file.
24831
24832 2006-06-21  Simon Josefsson  <jas@extundo.com>
24833
24834         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
24835         variable.
24836
24837         * lib/socket_.h: Don't define WINVER.
24838
24839         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
24840         slightly modified to work in gnulib.
24841
24842 2006-06-21  Simon Josefsson  <jas@extundo.com>
24843
24844         * doc/gnulib.texi (Windows sockets): Add.
24845
24846 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24847
24848         * lib/read-file.c (fread_file): Start with buffer allocation of
24849         0 bytes rather than 1 byte; this simplifies the code.
24850         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
24851         code to free buffer and save/restore errno.
24852         (internal_read_file): Remove unused local.
24853
24854 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24855
24856         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
24857         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
24858         Problem reported by Denis Excoffier in
24859         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
24860
24861 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24862
24863         * modules/sys_socket, modules/socklen: Include sys/types since
24864         FreeBSD 4.x's sys/socket.h needs it.
24865
24866 2006-06-19  Simon Josefsson  <jas@extundo.com>
24867
24868         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
24869
24870 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24871
24872         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
24873
24874 2006-06-19  Bruno Haible  <bruno@clisp.org>
24875
24876         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
24877         and FULL_PATH_INTTYPES_H in angle brackets.
24878         Reported by Mark D. Baushke <mdb@gnu.org>.
24879
24880 2006-06-17  Eric Blake  <ebb9@byu.net>
24881
24882         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
24883         errno.
24884
24885 2006-06-17  Bruno Haible  <bruno@clisp.org>
24886
24887         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
24888         <sys/inttypes.h>.
24889
24890 2006-06-17  Bruno Haible  <bruno@clisp.org>
24891
24892         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
24893         whether errno is declared. Assume <errno.h> declares errno.
24894
24895 2006-06-17  Bruno Haible  <bruno@clisp.org>
24896
24897         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
24898
24899 2006-06-17  Bruno Haible  <bruno@clisp.org>
24900
24901         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
24902         problem on Solaris 2.5.1.
24903
24904 2006-06-16  Eric Blake  <ebb9@byu.net>
24905
24906         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
24907         * lib/unicodeio.c [!defined errno]: Likewise.
24908         * lib/strtol.c [!defined errno]: Likewise.
24909         * lib/strtod.c [!defined errno]: Likewise.
24910
24911 2006-06-15  Eric Blake  <ebb9@byu.net>
24912
24913         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
24914
24915 2006-06-15  Eric Blake  <ebb9@byu.net>
24916
24917         * config/srclist.txt (ssize_t.m4): Lose sync.
24918
24919 2006-06-15  Bruno Haible  <bruno@clisp.org>
24920
24921         * modules/stdint (Files): Include m4/full-header-path.m4,
24922         m4/size_max.m4, m4/wchar_t.m4.
24923         (Makefile.am): Many more substitutions.
24924         * modules/stdint-tests: New file.
24925         * tests/test-stdint.c: New file.
24926
24927 2006-06-15  Bruno Haible  <bruno@clisp.org>
24928
24929         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
24930         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
24931         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
24932         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
24933         gl_CHECK_TYPE_SAME): New macros.
24934
24935 2006-06-15  Bruno Haible  <bruno@clisp.org>
24936
24937         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
24938
24939 2006-06-15  Bruno Haible  <bruno@clisp.org>
24940
24941         * lib/stdint_.h: Rewritten to be fully auto-configured.
24942         Fixes bug on HP-UX/IA64.
24943
24944 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
24945
24946         * lib/getdate.y (__attribute__): Don't define if already defined.
24947         Problem reported by Larry Jones.
24948         * lib/utimens.c (__attribute__): Likewise.
24949
24950 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
24951
24952         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
24953         reported by Andreas Schwab.
24954
24955 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24956             Bruno Haible  <bruno@clisp.org>
24957
24958         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
24959         check for the declaration of strnlen and a run test that exposes the
24960         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
24961         rpl_strndup.
24962
24963 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24964             Bruno Haible  <bruno@clisp.org>
24965
24966         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
24967
24968 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24969
24970         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
24971         compile test, for Tru64 4.0D.
24972
24973 2006-05-28  Karl Berry  <karl@gnu.org>
24974
24975         * config/srclist.txt (printf-args.c): lose sync.
24976
24977 2006-05-26  Martin Lambers  <marlam@marlam.de>
24978
24979         * lib/getpass.c: Updates the test for the native W32 API, and adds
24980         missing includes, thus fixing compilation warnings.
24981
24982 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24983
24984         * lib/exclude.c (exclude_fnmatch): New function.
24985         (excluded_file_name): Call exclude_fnmatch.
24986         * lib/exclude.h (excluded_file_name): New prototype
24987
24988 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
24989
24990         * lib/tempname.c (small_open, large_open): New macros.
24991         (__open, __open64) [!_LIBC]: Remove.
24992         (__gen_tempname): Use small_open and large_open instead of __open
24993         and __open64.  This fixes a portability bug on HP-UX 11.11i
24994         reported by Simon Wing-Tang in
24995         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
24996
24997 2006-05-24  Bruno Haible  <bruno@clisp.org>
24998
24999         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
25000         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
25001         Reported by Thorsten Maerz <torte@netztorte.de> via
25002         Aaron Stone <aaron@serendipity.cx>.
25003
25004 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25005
25006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
25007         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
25008         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
25009         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
25010         not really conditional on the cache.
25011         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
25012
25013 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25014
25015         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
25016         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
25017         (my_usleep): Don't mishandle maximum value.
25018
25019 2006-05-19  Jim Meyering  <jim@meyering.net>
25020
25021         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
25022
25023 2006-05-17  Bruno Haible  <bruno@clisp.org>
25024
25025         Cygwin portability.
25026         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
25027
25028 2006-05-17  Bruno Haible  <bruno@clisp.org>
25029
25030         * lib/stdint_.h: Fix recognition of Cygwin.
25031
25032 2006-05-15  Bruno Haible  <bruno@clisp.org>
25033
25034         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
25035         on libtool patch by Ralf Wildenhues.
25036
25037 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25038
25039         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
25040         test for C99 conformance; (bool) 0.5 is an integer constant
25041         expression, but (bool) -0.5 is not.  Problem reported by Fedor
25042         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
25043
25044 2006-05-11  Simon Josefsson  <jas@extundo.com>
25045
25046         * m4/xvasprintf.m4: Fix obvious typo.
25047
25048 2006-05-11  Jim Meyering  <jim@meyering.net>
25049
25050         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
25051         James Lemley.
25052
25053 2006-05-10  Simon Josefsson  <jas@extundo.com>
25054
25055         * lib/md4.c: Typo fix, update copyright years.
25056         (K1, K2): Don't use L because it turn computations into 64-bit on
25057         64-bit platforms.
25058
25059 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25060
25061         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
25062         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
25063         unwanted sign propagation, e.g., on hosts with 64-bit int.
25064         There still are some problems with reeelly weird theoretical hosts
25065         (e.g., 33-bit int) but it's not worth worrying about now.
25066         * lib/sha1.c (rol): Likewise.
25067         (K1, K2, K3, K4): Remove unnecessary L suffix.
25068
25069 2006-05-10  Bruno Haible  <bruno@clisp.org>
25070
25071         * lib/des.c: Cast to avoid warnings.
25072
25073 2006-05-09  Bruno Haible  <bruno@clisp.org>
25074
25075         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
25076         (Depends-on): Depend also on xsize, stdarg.
25077         (configure.ac): Add gl_XVASPRINTF.
25078
25079 2006-05-09  Bruno Haible  <bruno@clisp.org>
25080
25081         * m4/xvasprintf.m4: New file.
25082
25083 2006-05-09  Bruno Haible  <bruno@clisp.org>
25084
25085         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
25086         (EOVERFLOW): Define fallback value.
25087         (xstrcat): New function.
25088         (xvasprintf): Recognize the special case of a string concatenation.
25089
25090 2006-05-08  Eric Blake  <ebb9@byu.net>
25091
25092         * gnulib-tool (func_version): Base copyright year on CVS date.
25093         (func_emit_copyright_notice): New function.
25094         (func_emit_lib_Makefile_am): Use it.
25095         (func_emit_tests_Makefile_am): Likewise.
25096         (func_import): Likewise.
25097
25098 2006-05-08  Bruno Haible  <bruno@clisp.org>
25099
25100         * modules/stdarg: New file.
25101         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
25102
25103 2006-05-08  Bruno Haible  <bruno@clisp.org>
25104
25105         * m4/stdarg.m4: New file, from GNU gettext.
25106
25107 2006-05-08  Bruno Haible  <bruno@clisp.org>
25108
25109         * config/srclist.txt (build-aux/config.rpath): different from latest
25110         release.
25111
25112 2006-05-08  Bruno Haible  <bruno@clisp.org>
25113
25114         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
25115
25116 2006-05-05  Jim Meyering  <jim@meyering.net>
25117
25118         * m4/warning.m4: New file, derived from bison's file by the same name.
25119
25120 2006-05-03  Bruno Haible  <bruno@clisp.org>
25121
25122         * lib/stdint_.h: Shorter URL.
25123         * lib/inttypes.h: Likewise.
25124
25125 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25126
25127         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
25128
25129 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25130
25131         * lib/verify.h: Document the internals better.  Most of this change
25132         was written by Bruno Haible.
25133
25134 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25135
25136         * doc/verify.texi: New file, partly based on a proposal by
25137         Bruno Haible.
25138
25139 2006-05-02  Bruno Haible  <bruno@clisp.org>
25140
25141         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
25142         test from here...
25143         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
25144
25145 2006-04-29  Bruno Haible  <bruno@clisp.org>
25146
25147         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
25148         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
25149
25150 2006-04-29  Bruno Haible  <bruno@clisp.org>
25151
25152         * gnulib-tool: Make --update option actually work.
25153
25154 2006-04-29  Bruno Haible  <bruno@clisp.org>
25155
25156         * doc/gcd.texi: New file.
25157         * doc/gnulib.texi: Include it.
25158
25159 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25160
25161         * lib/getdate.y (get_date): When adding relative date, start with the
25162         initial time, not with the result of the first mktime call.
25163
25164 2006-04-25  Bruno Haible  <bruno@clisp.org>
25165
25166         * gnulib-tool (func_import): Output the include directives in three
25167         blocks, sorted separately.
25168         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25169
25170 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25171
25172         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
25173         to define main with arguments, for C++.  Reported by Eric Blake.
25174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
25175         Prefer 'int main ()' to 'int main (void)', for C++.
25176         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25177         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
25178         for 'main', for C99 and C++.
25179
25180 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25181
25182         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
25183         Don't assume that exit status -1 is valid.
25184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25185         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25186         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25187         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
25188         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
25189         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
25190         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
25191         functions can be used without declaring them, or that you can
25192         exit with status -1.
25193         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25194
25195 2006-04-24  Karl Berry  <karl@gnu.org>
25196
25197         * config/srclist.txt (longdouble.m4): sync lost.
25198
25199 2006-04-24  Eric Blake  <ebb9@byu.net>
25200
25201         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
25202
25203 2006-04-24  Bruno Haible  <bruno@clisp.org>
25204
25205         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
25206         poll() implementation in AIX.
25207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25208
25209 2006-04-24  Bruno Haible  <bruno@clisp.org>
25210
25211         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
25212         assigned exactly once.
25213
25214 2006-04-23  Claudio Fontana  <claudio@gnu.org>
25215             Bruno Haible  <bruno@clisp.org>
25216
25217         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
25218         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
25219         for AM_CPPFLAGS.
25220
25221 2006-04-23  Bruno Haible  <bruno@clisp.org>
25222
25223         * modules/copy-file: Depend on unistd.
25224         * modules/execute: Likewise.
25225         * modules/fatal-signal: Likewise.
25226         * modules/findprog: Likewise.
25227         * modules/mkdtemp : Likewise.
25228         * modules/pipe: Likewise.
25229         * modules/wait-process: Likewise.
25230
25231 2006-04-23  Bruno Haible  <bruno@clisp.org>
25232
25233         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
25234         condition was already detected.
25235         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25236
25237 2006-04-23  Bruno Haible  <bruno@clisp.org>
25238
25239         * lib/copy-file.c: Include <unistd.h> unconditionally.
25240         * lib/execute.c: Likewise.
25241         * lib/fatal-signal.c: Likewise.
25242         * lib/findprog.c: Likewise.
25243         * lib/mkdtemp.c: Likewise.
25244         * lib/pipe.h: Likewise.
25245         * lib/pipe.c: Likewise.
25246         * lib/wait-process.h: Likewise.
25247
25248 2006-04-23  Bruno Haible  <bruno@clisp.org>
25249
25250         * gnulib-tool (func_usage): Fix --import description. Document
25251         --update.
25252         (func_import): Create temporary file in a temporary directory, if
25253         --dry-run is specified. Silence errors from 'grep' when there are no
25254         m4 files in $m4dir.
25255         (func_create_testdir): Silence errors from 'grep' when there are no
25256         m4 files in $m4dir.
25257         Reported by Karl Berry <karl@freefriends.org>.
25258
25259 2006-04-20  Bruno Haible  <bruno@clisp.org>
25260
25261         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
25262         one argument, so that the code will be portable to Autoconf 2.60.
25263         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
25264         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25265         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
25266
25267 2006-04-19  Derek Price  <derek@ximbiot.com>
25268             Eric Blake  <ebb9@byu.net>
25269
25270         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
25271         rather than "/full/path.h".  Update comment to match.  Shorten &
25272         generalize m4_translit call via AS_TR_CPP.
25273
25274 2006-04-19  Derek Price  <derek@ximbiot.com>
25275             Eric Blake  <ebb9@byu.net>
25276
25277         * lib/inttypes.h: Correct grammar in comment.
25278
25279 2006-04-18  Derek Price  <derek@ximbiot.com>
25280             Paul Eggert  <eggert@cs.ucla.edu>
25281
25282         * modules/inttypes: New file.
25283         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
25284
25285 2006-04-18  Derek Price  <derek@ximbiot.com>
25286             Paul Eggert  <eggert@cs.ucla.edu>
25287
25288         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
25289         New files.
25290
25291 2006-04-18  Derek Price  <derek@ximbiot.com>
25292             Paul Eggert  <eggert@cs.ucla.edu>
25293
25294         * lib/inttypes.h: New file.
25295         * lib/strtoimax.c: Assume <inttypes.h>.
25296
25297 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
25298
25299         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
25300         isn't mounted.  Problem reported by Kir Kolyshkin.
25301
25302 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25303
25304         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
25305         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
25306         Derek R. Price.
25307         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25308         implementation.
25309
25310 2006-04-12  Eric Blake  <ebb9@byu.net>
25311
25312         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25313         is now done automatically by the corresponding Autoconf macro.
25314
25315 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25316
25317         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25318         time_r.h.
25319
25320 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25321
25322         Merge regex changes from libc, removing some of our
25323         POSIX-conformance changes that were rejected and redoing them in a
25324         less-intrusive way.
25325
25326         * lib/regcomp.c (re_compile_internal, init_dfa):
25327         Length arg is now size_t, not Idx.  All uses changed.
25328         (peek_token): Forward decl now says internal_function.
25329         (__re_error_msgid, __re_error_msgid_idx):
25330         Now static rather than extern with attribute_hidden.
25331         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25332         For some reason libc prefers K&R style defns for external functions.
25333         (regerror) [!defined _LIBC]: Likewise.
25334         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25335         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25336         (build_range_exp, build_collating_symbol):
25337         Use K&R-style defn.
25338         (re_compile_fastmap): Use '\0' to memset, not 0.
25339         (utf8_sb_map): Make the calculations more obvious.
25340         (init_dfa, parse_bracket_exp, build_charclass_op):
25341         Call calloc and cast result, as glibc does.
25342         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25343         (build_range_exp, build_collating_symbol):
25344         Now internal functions.
25345
25346         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25347
25348         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25349         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25350         Don't depend on VMS; depend on __VMS instead, for POSIX
25351         namespace cleanness.
25352         (regoff_t): Define to ssize_t, not long int.
25353
25354         Remove the REG_ macros named below.  Instead, make the old names
25355         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25356         __USE_GNU_REGEX.
25357         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25358         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25359         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25360         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25361         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25362         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25363         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25364         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25365         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25366         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25367         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25368         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25369         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25370         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25371         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25372         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25373         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25374         (REG_NREGS):
25375         Remove.  All uses replaced by the old RE_* names.
25376         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25377         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25378         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25379         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25380         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25381         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25382         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25383         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25384         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25385         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25386         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25387         Don't bother having these macros be independent of each others'
25388         values, since they no longer exist in the POSIX name space.
25389
25390         Rename the following member names back to their old names,
25391         unless !__USE_GNU_REGEX.  All uses changed back.
25392         (buffer): Renamed from re_buffer.
25393         (allocated): Renamed from re_allocated.
25394         (used): Renamed from re_used.
25395         (syntax): Renamed from re_syntax.
25396         (fastmap): Renamed from re_fastmap.
25397         (translate): Renamed from re_translate.
25398         (can_be_null): Renamed from re_can_be_null.
25399         (regs_allocated): Renamed from re_regs_allocated.
25400         (fastmap_accurate): Renamed from re_fastmap_accurate.
25401         (no_sub): Renamed from re_no_sub.
25402         (not_bol): Renamed from re_not_bol.
25403         (not_eol): Renamed from re_not_eol.
25404         (newline_anchor): Renamed from re_newline_anchor.
25405         (num_regs): Renamed from rm_num_regs.
25406         (start): Renamed from rm_start.
25407         (end): Renamed from rm_end.
25408
25409         (free_state): Move up a bit.
25410
25411         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
25412         #define to be empty.
25413         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
25414         when that is what is intended.
25415         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
25416         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
25417         (MAX): New macro.
25418         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
25419         All uses changed back to re_malloc, etc.  It's now the caller's
25420         responsibility to check for overflow; all callers changed.
25421         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
25422         (re_x2nrealloc): Remove.
25423         (free_state): Remove decl.
25424
25425         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
25426         (re_set_registers, re_exec):
25427         Use K&R-style defn.
25428
25429         2006-01-31  Roland McGrath  <roland@redhat.com>
25430
25431         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25432         Reported by Mike Frysinger <vapier@gentoo.org>.
25433
25434         2006-01-15  Andreas Jaeger  <aj@suse.de>
25435
25436         [BZ #1950]
25437         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25438         build_wcs_upper_buffer change.
25439         (build_wcs_upper_buffer): Change return type.
25440
25441         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25442
25443         * lib/regex_internal.h: Include <stdint.h> if available.
25444
25445         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
25446
25447         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
25448
25449         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25450
25451         * lib/regcomp.c: Adjust for changed secondary hash function.
25452
25453         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
25454
25455         * lib/regex.h: Pretty printing.
25456         Clean up namespace a bit.
25457
25458         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
25459
25460         * lib/regexec.c (update_cur_sifted_state, check_arrival,
25461         check_arrival_add_next_nodes): Avoid using uninitialized variable.
25462
25463         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25464                     Ulrich Drepper  <drepper@redhat.com>
25465
25466         [BZ #1302]
25467         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
25468         changed.
25469         (bitset_word_t): Renamed from bitset_word.  All uses changed.
25470
25471         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
25472
25473         [BZ #281]
25474         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
25475         * lib/regcomp.c: Remove unnecessary uses of
25476         unsigned RE_TRANSLATE_TYPE.
25477         * lib/regex_internal.h: Likewise.
25478         * lib/regex_internal.c: Likewise.
25479         * lib/regexec.c: Likewise.
25480         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
25481
25482         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
25483
25484         * lib/regexec.c (find_recover_state): Remove unnecessary
25485         initialization.
25486         (transit_state_bkref): Make DFA a const pointer.
25487         (get_subexp): Likewise.
25488         (check_arrival): Likewise.
25489         (update_cur_sifted_state): Likewise.
25490         (re_search_internal): Likewise.
25491         (prune_impossible_nodes): Likewise.
25492         (acquire_init_state_context): Likewise.
25493         (proceed_next_node): Likewise.
25494         (set_regs): Likewise.
25495         (free_fail_stack_return): Likewise.
25496         (check_arrival_expand_ecl): Mark DFA parameter as const.
25497         (check_arrival_expand_ecl_sub): Likewise.
25498         (check_subexp_limits): Likewise.
25499         (sub_epsilon_src_nodes):  Likewise.
25500         (add_epsilon_src_nodes):  Likewise.
25501         (merge_state_array): Likewise.
25502         (update_regs): Likewise.
25503         (build_trtable): Likewise.
25504         (sift_states_backward): Mark MCTX parameter as const.
25505         (build_sifted_states): Likewise.
25506         (update_cur_sifted_state): Likewise.
25507         (sift_states_mkref): Likewise.
25508         (check_arrival_expand_ecl): Mark eclosure as const.
25509         (check_dst_limits_calc_pos_1): Likewise.
25510         * lib/regex_internal.h (re_match_context_t): Make dfa a const
25511         pointer.
25512
25513         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
25514
25515         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
25516         (transit_state_sb): Likewise.
25517         (transit_state_mb): Likewise.
25518         (sift_states_iter_mb): Likewise.
25519         (check_arrival_add_next_nodes): Likewise.
25520         (check_node_accept_bytes): Change first parameter to pointer-to-const.
25521         [_LIBC] (re_search_2_stub): Use mempcpy.
25522
25523         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
25524         mbrtowc for very simple UTF-8 case.
25525
25526         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
25527         a pointer-to-const.
25528         (re_acquire_state_context): Likewise.
25529         * lib/regex_internal.h: Adjust prototypes.
25530
25531         * lib/regex.c: Prevent using C++ compilers.
25532
25533         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
25534         (re_acquire_state_context): Likewise.
25535
25536 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25537
25538         * modules/regex (Depends-on): Add ssize_t.
25539
25540 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25541
25542         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
25543         translation table.
25544
25545 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25546
25547         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
25548
25549 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
25550             Bruno Haible  <bruno@clisp.org>
25551
25552         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
25553         <sys/types.h> and <inttypes.h>.
25554
25555 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25556
25557         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
25558         `__error_t_defined', so argp.h will not typedef the former.
25559
25560 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25561
25562         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
25563         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
25564         glibc names.  Even if glibc is changed to conform to POSIX, the
25565         traditional names will be available anyway, since regex depends on
25566         the extensions module.  Also, fix a longstanding typo in the
25567         implementation of Spencer ERE test #75 from grep 2.3.  Problems
25568         reported by Emanuele Giaquinta.  Also, change sense of cached
25569         variable, so that the message makes sense.
25570
25571 2006-03-24  Simon Josefsson  <jas@extundo.com>
25572
25573         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
25574         including some doc fixes.
25575         (base64_encode_alloc): Fix +1 bug on allocation failures.
25576
25577 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25578
25579         * lib/base64.c (base64_encode): Do not read past end of array with
25580         unsanitized input on systems with CHAR_BIT > 8.
25581
25582 2006-03-24  Eric Blake  <ebb9@byu.net>
25583
25584         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
25585
25586 2006-03-22  Karl Berry  <karl@gnu.org>
25587
25588         * config/srclist.txt (*setenv.[ch]): get from coreutils.
25589         * config/srclistvars.sh (COREUTILS): new var.
25590
25591 2006-03-17  Jim Meyering  <jim@meyering.net>
25592
25593         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
25594         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
25595
25596 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25597
25598         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
25599         no longer needs it.  Instead, check that regoff_t is as least
25600         as wide as ptrdiff_t.
25601
25602         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
25603         so that our regex.h stays compatible with the installed regex.
25604         This is helpful for installers who configure --without-included-regex.
25605         Problem reported by Emanuele Giaquinta.
25606
25607 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25608
25609         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
25610         Typedef to long int, not to off_, as POSIX will likely change
25611         in that direction.
25612
25613 2006-03-15  Eric Blake  <ebb9@byu.net>
25614
25615         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
25616
25617 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25618
25619         * lib/argp-help.c (validate_uparams): Fix typo
25620         * lib/argp-parse.c (argp_default_options): Consistently begin help
25621         messages with a lowercase letter.
25622
25623 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25624
25625         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
25626         overrun buffers and shouldn't be used (much as gets shouldn't be
25627         used).
25628         * lib/time_r.c (asctime_r, ctime_r): Likewise.
25629
25630 2006-03-08  Simon Josefsson  <jas@extundo.com>
25631
25632         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
25633         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25634
25635 2006-03-08  Simon Josefsson  <jas@extundo.com>
25636
25637         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
25638         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25639
25640 2006-03-08  Simon Josefsson  <jas@extundo.com>
25641
25642         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
25643         signal that configure disabled the device.
25644
25645 2006-03-08  Simon Josefsson  <jas@extundo.com>
25646
25647         * build-aux/maint.mk: Fix refresh-po, to handle no translated
25648         languages.
25649
25650 2006-03-07  Simon Josefsson  <jas@extundo.com>
25651
25652         * modules/getopt (Depends-on): Add unistd.
25653
25654         * modules/unistd: New file.
25655
25656 2006-03-07  Simon Josefsson  <jas@extundo.com>
25657
25658         * modules/gc-random: New file.
25659
25660 2006-03-07  Simon Josefsson  <jas@extundo.com>
25661
25662         * m4/unistd_h.m4: New file.
25663
25664 2006-03-07  Simon Josefsson  <jas@extundo.com>
25665
25666         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
25667         test to be side-effect free by storing the result in the cache
25668         variable gl_cv_lib_readline, and moving the assignment of
25669         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
25670         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25671
25672 2006-03-07  Simon Josefsson  <jas@extundo.com>
25673
25674         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
25675         error on missing devices (the functions will return an error).
25676
25677         * m4/gc.m4: Move random stuff to gc-random.m4
25678
25679 2006-03-07  Simon Josefsson  <jas@extundo.com>
25680
25681         * lib/unistd_.h: New file.
25682
25683 2006-03-07  Simon Josefsson  <jas@extundo.com>
25684
25685         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
25686
25687 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25688
25689         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
25690         Problem reported by Juan Manuel Guerrero.
25691
25692 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25693
25694         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
25695         the unistd module.
25696         * lib/getlogin_r.c: Likewise.
25697         * lib/getlogin_r.h: Likewise.
25698         * lib/glob.c: Likewise.
25699         * lib/pagealign_alloc.c: Likewise.
25700         * lib/unistd_.h: Remove; no longer needed.
25701
25702 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25703
25704         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25705         Add unistd.
25706         * modules/c-stack (Depends-on): Add unistd.
25707         * modules/getlogin_r: Likewise.
25708         * modules/glob: Likewise.
25709         * modules/pagealign_alloc: Likewise.
25710         * modules/unistd (Files): Remove lib/unistd_.h.
25711         (EXTRA_DIST): Remove.
25712         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
25713         need unistd_.h.
25714         (MOSTLYCLEANFILES): Remove unistd.h-t.
25715
25716 2006-03-03  Simon Josefsson  <jas@extundo.com>
25717
25718         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25719
25720 2006-03-03  Simon Josefsson  <jas@extundo.com>
25721
25722         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25723         libidn and bison.
25724
25725 2006-03-03  Simon Josefsson  <jas@extundo.com>
25726
25727         * build-aux/maint.mk: Add indent target.
25728
25729 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25730
25731         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25732         our replacement poll.h in any case, to avoid a differing
25733         declaration from a system header.  Seen on AIX.
25734
25735 2006-03-01  Simon Josefsson  <jas@extundo.com>
25736
25737         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
25738         <kasal@ucw.cz>.
25739
25740 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25741
25742         * modules/gettime (Depends-on): Add extensions module.
25743         * modules/nanosleep (Depends-on): Likewise.
25744         * modules/settime (Depends-on): Likewise.
25745
25746 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25747
25748         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
25749         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
25750         pedantically.
25751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25752         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
25753
25754         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
25755         not "==".  Reported by Ralf Wildenhues.
25756
25757 2006-03-01  Karl Berry  <karl@gnu.org>
25758
25759         * doc/Copyright/request-*: new files, synced from gnuorg.
25760
25761 2006-03-01  Karl Berry  <karl@gnu.org>
25762
25763         * config/srclist.txt (Copyright/*): new entries.
25764
25765 2006-02-28  Simon Josefsson  <jas@extundo.com>
25766
25767         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
25768
25769 2006-02-27  Simon Josefsson  <jas@extundo.com>
25770
25771         * lib/base64.h: Indent #define's.  From Jim Meyering
25772         <jim@meyering.net>.
25773
25774 2006-02-27  Jim Meyering  <jim@meyering.net>
25775
25776         Revert the change of 2006-02-24, so these files can continue
25777         to be sync'd from gettext.
25778         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
25779         of `config.h'.
25780
25781 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25782
25783         * modules/intprops: New file.
25784         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25785         Add intprops.
25786         * modules/getloadavg (Files): Remove lib/intprops.h.
25787         (Depends-on): Add intprops.
25788         * modules/human: Likewise.
25789         * modules/inttostr: Likewise.
25790         * modules/openat: Likewise.
25791         * modules/sig2str: Likewise.
25792         * modules/userspec: Likewise.
25793         * modules/utimecmp: Likewise.
25794         * modules/xnanosleep: Likewise.
25795         * modules/xstrtol: Likewise.
25796
25797 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
25798
25799         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
25800         * modules/lock-tests (TESTS): Use $(EXEEXT).
25801         * modules/tls-tests: Likewise.
25802         * modules/argp-tests: Likewise.
25803         (check_PROGRAMS): New var, replacing...
25804         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
25805
25806 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25807
25808         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
25809         `config.h'.
25810
25811 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25812
25813         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
25814
25815 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25816
25817         Sync from coreutils.
25818         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
25819         gl_CHDIR_SAFER.
25820
25821 2006-02-22  Jim Meyering  <jim@meyering.net>
25822
25823         Sync from coreutils.
25824         * m4/chdir-safer.m4: New file.
25825
25826 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25827
25828         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
25829         AT_FDCWD exceeds INT_MAX.
25830         * lib/openat.h (AT_FDCWD): Likewise.
25831
25832 2006-02-17  Eric Blake  <address@hidden>
25833
25834         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
25835
25836 2006-02-16  Simon Josefsson  <jas@extundo.com>
25837
25838         * modules/getaddrinfo (Depends-on): Add sys_socket.
25839
25840 2006-02-15  Simon Josefsson  <jas@extundo.com>
25841
25842         * build-aux/maint.mk: Add dsyntax-check rule.
25843
25844 2006-02-15  Eric Blake  <ebb9@byu.net>
25845
25846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
25847         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
25848         'present but cannot compile' warnings on cygwin.
25849         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
25850         use ws2tcpip.h if sys/socket.h works.
25851         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
25852         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
25853
25854 2006-02-14  Simon Josefsson  <jas@extundo.com>
25855
25856         * modules/maintainer-makefile (Files): Rename.
25857
25858         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
25859         and (the local) Makefile.cfg to maint-cfg.mk.
25860
25861         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
25862         to the latter.
25863
25864         * modules/maintainer-makefile: New module.
25865
25866         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
25867         severaly stripped to make it possible to build it up from scratch
25868         with reliable tests.
25869
25870         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
25871         fixes to permit overriding the default actions when configure and
25872         makefile are not available.
25873
25874 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25875
25876         Sync from coreutils.
25877         * modules/lstat (Depends-on): Don't depend on xalloc.
25878         (License): Change from GPL to LGPL, since this is now simply a
25879         replacement for a libc function.
25880
25881 2006-02-14  Jim Meyering  <jim@meyering.net>
25882
25883         Sync from coreutils.
25884
25885         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
25886         failure on deficient systems, and simplify gnulib lgpl dependencies.
25887         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
25888         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
25889
25890         * lib/xalloc-die.c: Remove unused definition of N_.
25891
25892 2006-02-14  Jim Meyering  <jim@meyering.net>
25893
25894         Sync from coreutils.
25895         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
25896         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
25897         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
25898         double-quote uses of that variable, to accommodate the rare case in
25899         which getmntent is available in none of the libraries checked.  This
25900         happens at least on FreeBSD 5.0.
25901
25902 2006-02-13  Simon Josefsson  <jas@extundo.com>
25903
25904         * gnulib-tool (Usage): Fix --import, from
25905         karl@freefriends.org (Karl Berry).
25906
25907 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25908
25909         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
25910
25911 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
25912
25913         * lib/argp-namefrob.h: Restore changes accidentally lost during the
25914         "autoupdate" on 2005-12-12.
25915
25916 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25917
25918         * modules/closeout (Depends-on): Remove atexit.
25919
25920 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25921
25922         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
25923         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
25924
25925 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25926
25927         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
25928         __EXTENSIONS__ if this causes compilation to fail.  Problem
25929         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
25930         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
25931
25932 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25933
25934         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
25935         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
25936         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
25937         All uses changed.
25938
25939 2006-01-26  Simon Josefsson  <jas@extundo.com>
25940
25941         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
25942         prototype is visible on mingw32.
25943
25944         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
25945         for mingw32.
25946
25947         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
25948         mingw32).
25949
25950 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25951
25952         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
25953         attempt to open for write; this always fails, at least on POSIX
25954         hosts.  This reinstates the 2006-01-09 change, which was
25955         inadvertently removed.
25956
25957 2006-01-26  Bruno Haible  <bruno@clisp.org>
25958
25959         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
25960         Reported by Paul Eggert.
25961
25962 2006-01-26  Bruno Haible  <bruno@clisp.org>
25963             Paul Eggert  <eggert@cs.ucla.edu>
25964
25965         * lib/stdbool_.h (_Bool)
25966         [(! (defined __cplusplus || defined __BEOS__)
25967           && !defined __GNUC__
25968           && !(defined __HP_cc || defined __xlc__
25969                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
25970                || defined __sgi))]:
25971         #define to signed char in these cases too; this simplifies
25972         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
25973         etc., separately) and makes it more conservative.
25974
25975 2006-01-25  Simon Josefsson  <jas@extundo.com>
25976
25977         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
25978         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
25979         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
25980
25981 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25982
25983         * lib/argp-namefrob.h: Bugfix. Remove stray #
25984
25985 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25986
25987         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
25988         so that we test the test.
25989         Check for yet another HP-UX cc bug involving *bool |= bool.
25990
25991 2006-01-25  Karl Berry  <karl@gnu.org>
25992
25993         * config/srclist.txt (vasnprintf.c): sync lost.
25994
25995 2006-01-25  Jim Meyering  <jim@meyering.net>
25996
25997         Sync from the stable (b5) branch of coreutils:
25998
25999         * lib/fts.c (fts_children): Don't let close() clobber errno from
26000         failed fchdir().
26001
26002         * lib/fts.c (fts_stat): When following a symlink-to-directory,
26003         don't necessarily interpret stat-fails+lstat-succeeds as indicating
26004         a dangling symlink.  That can also happen at least for ELOOP.
26005         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
26006         FYI, this bug predates the inclusion of fts.c in coreutils.
26007
26008         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
26009         in their own block, so pre-c99 compilers don't object.
26010
26011         Avoid the double-free (first in fts_read, second in fts_close) that
26012         would occur when an `active' directory is made inaccessible (e.g.,
26013         via chmod a-x) during a traversal.
26014         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26015         before returning.  Reproduce this failure by
26016         mkdir -p a/b; cd a; chmod a-x . b
26017         Reported by Stavros Passas.
26018
26019 2006-01-25  Jim Meyering  <jim@meyering.net>
26020
26021         * lib/fileblocks.c: Remove more useless parentheses.
26022         * lib/readutmp.h: Likewise.
26023
26024 2006-01-25  Bruno Haible  <bruno@clisp.org>
26025
26026         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
26027         warnings.
26028         Reported by Paul Eggert.
26029
26030 2006-01-25  Bruno Haible  <bruno@clisp.org>
26031
26032         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
26033         rid of a trap command. For Solaris sh.
26034         Reported by Mark D. Baushke <mdb@gnu.org>.
26035
26036 2006-01-24  Simon Josefsson  <jas@extundo.com>
26037
26038         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
26039         Bruno.
26040
26041 2006-01-24  Karl Berry  <karl@gnu.org>
26042
26043         * config/srclist.txt (argp-namefrob.h): sync lost.
26044
26045 2006-01-24  Jim Meyering  <jim@meyering.net>
26046
26047         * modules/openat (Files): Add lib/intprops.h.
26048         From Mark D. Baushke.
26049
26050 2006-01-24  Jim Meyering  <jim@meyering.net>
26051
26052         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
26053         Reported by Mark D. Baushke.
26054
26055 2006-01-24  Jim Meyering  <jim@meyering.net>
26056
26057         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
26058
26059 2006-01-24  Bruno Haible  <bruno@clisp.org>
26060
26061         * modules/strnlen (Maintainer): Change from glibc to all.
26062
26063 2006-01-24  Bruno Haible  <bruno@clisp.org>
26064
26065         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
26066         Patch by Paul Eggert.
26067
26068 2006-01-24  Bruno Haible  <bruno@clisp.org>
26069
26070         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
26071         already has it.
26072         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
26073         2005-11-26.
26074
26075         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
26076         'signed char' to avoid problems with the built-in _Bool type.
26077         Reported by Paul Eggert on 2005-11-26.
26078
26079 2006-01-24  Bruno Haible  <bruno@clisp.org>
26080
26081         * gnulib-tool (func_import): Avoid constructing complicated sed
26082         expressions inside backquote.
26083         Report and solution by Mark D. Baushke <mdb@gnu.org>.
26084
26085 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
26086
26087         These changes imported from libc.
26088         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
26089         test and two separate function calls.
26090         * lib/strndup.c (__strndup): Add libc_hidden_def.
26091
26092 2006-01-23  Simon Josefsson  <jas@extundo.com>
26093
26094         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
26095         Remove the test_*_SOURCES variable: automake infers it by default.
26096         * modules/tls-tests: Likewise.
26097
26098 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26099
26100         Work around porting bugs reported by Dieter in
26101         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
26102         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
26103         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
26104         Include "getopt.h" first, to check interface.
26105         (getenv): Declare only if defined HAVE_DECL_GETENV &&
26106         !HAVE_DECL_GETENV.
26107         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
26108         (__strndup): Revert to K&R-style function dfns, the glibc style.
26109         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
26110         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
26111         Include strnlen.h first, to get prototype properly.
26112         (strnlen): Renamed from __strnlen.
26113         Remove weak alias.
26114
26115 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26116
26117         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
26118
26119 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26120
26121         * config/srclist.txt: Adjust to reflect glibc reorganization.
26122         This affects only comments.
26123
26124 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26125
26126          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
26127          Reported by Bruce Korb <bkorb@gnu.org>.
26128
26129 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
26130
26131         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
26132         to pacify gcc -Wswitch-default.
26133
26134 2006-01-22  Bruno Haible  <bruno@clisp.org>
26135
26136         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
26137         temporary buffer for sprintf, take into account the precision also
26138         for 'd', 'i', 'u', 'o', 'x', 'X'.
26139
26140 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26141
26142         * modules/argp-tests: New module
26143         * tests/test-argp.c: New file
26144         * tests/test-argp-2.sh: New file
26145
26146 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26147
26148         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
26149         (__argp_base_name): Removed
26150         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
26151         typo.
26152         (__argp_base_name): Provide macro definition or extern declaration
26153         depending on the configuration
26154
26155 2006-01-20  Simon Josefsson  <jas@extundo.com>
26156
26157         * modules/inet_ntop (Depends-on): Depend on sys_socket.
26158
26159 2006-01-20  Simon Josefsson  <jas@extundo.com>
26160
26161         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
26162
26163 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26164
26165         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
26166         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
26167         Suggested by Bruno Haible.
26168
26169 2006-01-20  Karl Berry  <karl@gnu.org>
26170
26171         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
26172         until changes propagate, I guess.
26173
26174 2006-01-19  Simon Josefsson  <jas@extundo.com>
26175
26176         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
26177
26178 2006-01-19  Simon Josefsson  <jas@extundo.com>
26179
26180         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
26181
26182 2006-01-19  Simon Josefsson  <jas@extundo.com>
26183
26184         * gnulib-tool: Set check_PROGRAMS.
26185
26186         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26187         modules/des-tests, modules/gc-arcfour-tests,
26188         modules/gc-arctwo-tests, modules/gc-des-tests,
26189         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26190         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26191         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26192         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26193         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26194         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
26195         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
26196         test_*_SOURCES.
26197
26198 2006-01-18  Simon Josefsson  <jas@extundo.com>
26199
26200         * modules/socklen (Depends-on): Depend on sys_socket.
26201
26202 2006-01-18  Simon Josefsson  <jas@extundo.com>
26203
26204         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26205         modules/des-tests, modules/gc-arcfour-tests,
26206         modules/gc-arctwo-tests, modules/gc-des-tests,
26207         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26208         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26209         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26210         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26211         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26212         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
26213         $(EXEEXT) to automake TESTS variable, for mingw32.
26214
26215 2006-01-17  Simon Josefsson  <jas@extundo.com>
26216
26217         * modules/socklen (Include): Need sys/socket.h.
26218
26219 2006-01-17  Bruno Haible  <bruno@clisp.org>
26220
26221         * modules/ssize_t (Include): Add <sys/types.h>.
26222
26223 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26224
26225         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
26226         it's not portable and it doesn't work with cross-compiles.
26227         Problem reported by Bruno Haible.  Fix missing-$ typo in
26228         'test "gl_cv_ignore_unused_libraries" ...' that prevented
26229         -zignore from being used with Sun's C compiler.
26230
26231 2006-01-12  Simon Josefsson  <jas@extundo.com>
26232
26233         * lib/base64.c: Fix warning, reported by Bruno Haible
26234         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
26235
26236 2006-01-12  Bruno Haible  <bruno@clisp.org>
26237
26238         * modules/ldd: New file.
26239         * build-aux/ldd.sh.in: New file.
26240         * MODULES.html.sh (Support for building libraries and executables): Add
26241         ldd.
26242
26243 2006-01-12  Bruno Haible  <bruno@clisp.org>
26244
26245         * m4/ldd.m4: New file.
26246
26247 2006-01-12  Bruno Haible  <bruno@clisp.org>
26248
26249         * gnulib-tool (func_import, func_create_testdir): Don't go into an
26250         endless loop while replacing $auxdir with build-aux.
26251
26252 2006-01-11  Simon Josefsson  <jas@extundo.com>
26253
26254         * lib/stdint_.h (SIZE_MAX): Add missing (.
26255
26256 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26257
26258         Sync from coreutils.
26259         * lib/md5.c: Fix commentary typos.
26260         (alignof, UNALIGNED_P): No need for a GCC-specific version.
26261         * lib/md5.h (__attribute__): Remove; unused.
26262         * lib/sha1.c: Fix commentary to match md5 better.
26263         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
26264         so that we don't need to worry about alignment.  All uses changed.
26265         This merges the 2005-10-28 md5 change into sha1.
26266
26267 2006-01-11  Jim Meyering  <jim@meyering.net>
26268
26269         Sync from coreutils.
26270         * lib/md5.c (OP): Fix spacing.
26271
26272 2006-01-11  Bruno Haible  <bruno@clisp.org>
26273
26274         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26275         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
26276         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
26277
26278 2006-01-11  Bruno Haible  <bruno@clisp.org>
26279
26280         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26281         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
26282         the "early" section as well.
26283
26284 2006-01-11  Bruno Haible  <bruno@clisp.org>
26285
26286         Avoid "ar: no archive members specified" error on MacOS X.
26287         * gnulib-tool (func_modules_add_dummy): New function.
26288         (func_import, func_create_testdir): Invoke it.
26289
26290 2006-01-11  Bruno Haible  <bruno@clisp.org>
26291
26292         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
26293         with $auxdir in AC_CONFIG_FILES statements.
26294
26295 2006-01-11  Bruno Haible  <bruno@clisp.org>
26296
26297         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26298         Initialize also noinst_HEADERS to empty.
26299
26300 2006-01-11  Bruno Haible  <bruno@clisp.org>
26301
26302         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
26303         variables.
26304         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
26305         autoreconf.
26306
26307 2006-01-11  Bruno Haible  <bruno@clisp.org>
26308
26309         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26310         overridable by the user.
26311         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26312
26313 2006-01-10  Simon Josefsson  <jas@extundo.com>
26314
26315         * modules/sys_socket: New file.
26316
26317 2006-01-10  Simon Josefsson  <jas@extundo.com>
26318
26319         * m4/sys_socket_h.m4: New file.
26320
26321 2006-01-10  Simon Josefsson  <jas@extundo.com>
26322
26323         * lib/socket_.h: New file.
26324
26325 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26326
26327         * modules/readutmp (Maintainer): Add myself.
26328
26329 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26330
26331         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26332         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26333         People who are still concerned with buggy memcmp implementations
26334         can invoke gl_FUNC_MEMCMP themselves.
26335
26336 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26337
26338         * lib/regex_internal.h (BITSET_WORD_BITS):
26339         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26340         preprocessor mishandles large unsigned values as if they were signed.
26341         Problem reported by Claudio Fontana in
26342         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26343
26344 2006-01-10  Jim Meyering  <jim@meyering.net>
26345
26346         Avoid the double-free (first in fts_read, second in fts_close) that
26347         would occur when an `active' directory is made inaccessible (e.g.,
26348         via chmod a-x) during a traversal.
26349         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26350         before returning.  Reproduce this failure by
26351         mkdir -p a/b; cd a; chmod a-x . b
26352         Reported by Stavros Passas.
26353
26354         Sync from coreutils.
26355         * lib/sha1.c: Tweak grammar in a comment.
26356
26357 2006-01-10  Jim Meyering  <jim@meyering.net>
26358
26359         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26360         Patch by Joerg Sonnenberger.
26361
26362 2006-01-10  Bruno Haible  <bruno@clisp.org>
26363
26364         * modules/readutmp: Depend on module free.
26365         * modules/strtok_r: Depend on module restrict.
26366
26367 2006-01-10  Bruno Haible  <bruno@clisp.org>
26368
26369         * modules/gettext (configure.ac): Add an invocation of
26370         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26371
26372 2006-01-10  Bruno Haible  <bruno@clisp.org>
26373
26374         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26375         Reported by Werner Lemberg <wl@gnu.org>.
26376
26377 2006-01-10  Bruno Haible  <bruno@clisp.org>
26378
26379         * lib/localcharset.c: Update from GNU gettext.
26380
26381 2006-01-10  Bruno Haible  <bruno@clisp.org>
26382
26383         * lib/argp.h (__const): Remove macro. Use const instead.
26384         * lib/argp-fmtstream.h (__const): Likewise.
26385         * lib/glob_.h (__const): Remove macro.
26386         * lib/glob-libc.h: Use const instead of __const.
26387
26388 2006-01-10  Bruno Haible  <bruno@clisp.org>
26389
26390         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26391         variable.
26392         Needed to avoid an automake error regarding the 'gettext' module.
26393
26394 2006-01-09  Simon Josefsson  <jas@extundo.com>
26395
26396         * modules/inet_ntop (Depends-on): Add restrict.
26397
26398 2006-01-09  Simon Josefsson  <jas@extundo.com>
26399
26400         * modules/gc-rijndael-tests (License): Put under LGPL.
26401
26402         * modules/gc-des-tests (License): Likewise.
26403
26404         * modules/gc-arcfour-tests (License): Likewise.
26405
26406         * modules/gc-arctwo-tests (License): Likewise.
26407
26408         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
26409
26410         * modules/gc-hmac-sha1-tests (Files): Likewise.
26411
26412         * modules/gc-hmac-md5-tests (License): Likewise.
26413
26414         * modules/gc-sha1-tests (License): Likewise.
26415
26416         * modules/gc-md5-tests (License): Likewise.
26417
26418         * modules/gc-md4-tests (License): Likewise.
26419
26420         * modules/gc-md2-tests (License): Likewise.
26421
26422         * modules/gc-tests (License): Likewise.
26423
26424         * modules/des-tests (License): Likewise.
26425
26426         * modules/md4-tests (License): Likewise.
26427
26428         * modules/md2-tests (License): Likewise.
26429
26430 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26431
26432         Sync from coreutils:
26433
26434         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26435         * modules/lib-ignore: New file.
26436         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26437         chdir-safer.m4, lchmod.m4.
26438         * modules/openat: Add mkdirat.c, openat-priv.h.
26439
26440 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26441
26442         Sync from coreutils.
26443         * m4/lib-ignore.m4: New file.
26444         * m4/lchmod.m4: New file.
26445
26446 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26447
26448         Sync from coreutils.
26449         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
26450         for write access: POSIX says that must fail.
26451         * lib/fts.c (diropen): Likewise.
26452         * lib/save-cwd.c (save_cwd): Likewise.
26453         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
26454         well, for minor improvements on hosts that lack O_DIRECTORY.
26455         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
26456         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
26457         Fall back on chown if open failed with EACCES.
26458
26459         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
26460         Report an error at compile-time if only a 1-second nominal clock
26461         resolution is found.
26462
26463         * lib/lchmod.h: New file.
26464         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
26465         (make_dir_parents): Use lchown rather than chown, and
26466         lchmod rather than chmod.
26467
26468         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
26469         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
26470         "proc" reported by n0dalus.
26471
26472         * lib/mountlist.c: Include <limits.h>.
26473         (dev_from_mount_options)
26474         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
26475         New function.  It no longer assumes "dev=" has the System V meaning
26476         on Linux (since it doesn't).  It also parses "dev=" more carefully.
26477         (read_file_system_list)
26478         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
26479         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
26480         dev= in that case.
26481
26482         * lib/posixtm.h (PDS_PRE_2000): New macro.
26483         * lib/posixtm.c (year): Arg is now syntax_bits rather than
26484         allow_century.  All usages changed.  Reject dates outside the range
26485         1969-1999 if PDS_PRE_2000 is used.
26486
26487 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26488
26489         Sync from coreutils.
26490         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
26491         (Time of day items): Mention the possibility of leap seconds.
26492         Problem reported by Dr. David Alan Gilbert.
26493
26494 2006-01-09  Jim Meyering  <jim@meyering.net>
26495
26496         Sync from coreutils.
26497
26498         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
26499
26500         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
26501
26502         * lib/modechange.c (mode_compile): Reject an invalid mode string
26503         that starts with an octal digit.  From Andreas Gruenbacher.
26504
26505         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
26506         and dup to open_safer and dup_safer, respectively.
26507         (openat_permissive): Fix typo in comment.
26508
26509         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
26510         "gettext.h"; either no longer needed or are guaranteed by openat.h.
26511         (_): Remove; no longer needed.
26512         (openat): Renamed from rpl_openat; no need for rpl_openat
26513         since openat.h renames openat for us.
26514         Replace most of the body with a call to openat_permissive,
26515         to avoid duplicate code.
26516         Port to (probably hypothetical) environments were mode_t is
26517         wider than int.
26518         (openat_permissive): Require mode arg, so that we can check
26519         types better.  Put it just after flags.  Change cwd failure
26520         indicator from pointer-to-bool to pointer-to-errno-value.
26521         All callers changed.
26522         Invoke openat_save_fail and/or openat_restore_fail if
26523         cwd_errno is null, so that openat can call us.
26524         (openat_permissive, fdopendir, fstatat, unlinkat):
26525         Simplify errno handling to avoid some duplicate code,
26526         as it's OK to set errno on success.
26527         * lib/openat.h: Revamp code so that function macros depend on
26528         __OPENAT_PREFIX only, not also on AT_FDCWD.
26529         (openat_ro): Remove.  Caller changed to use openat_permissive.
26530         (openat_permissive): Now a macro, if not a function.
26531         (openat_restore_fail, openat_save_fail): Now always functions,
26532         since mkdirat needs them even if __OPENAT_PREFIX is defined.
26533
26534         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
26535         and openat.c.
26536         * lib/mkdirat.c: Include openat-priv.h.
26537         Remove definitions of macros defined therein.
26538         * lib/openat.c: Likewise.
26539
26540         * lib/mkdirat.c (mkdirat): New file and function.
26541         * lib/openat.h (mkdirat): Declare.
26542
26543         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
26544
26545         * lib/openat.h (openat_permissive): Declare.
26546         (openat_ro): Define.
26547
26548         * lib/openat.c (EXPECTED_ERRNO): New macro.
26549         (openat_permissive): New function -- used in remove.c rewrite.
26550         (all functions): Set errno just before returning, only if there
26551         was an actual failure.
26552         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
26553
26554         Emulate openat-family functions using Linux's procfs, if possible.
26555         Idea and some code based on Ulrich Drepper's glibc changes.
26556
26557         * lib/openat.c: (BUILD_PROC_NAME): New macro.
26558         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
26559         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
26560         before falling back on save_cwd and restore_cwd.
26561         (fdopendir, fstatat, unlinkat): Likewise.
26562
26563         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
26564         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
26565
26566         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
26567         as second argument to va_arg.  Otherwise, some versions of gcc
26568         warn that `if this code is reached, the program will abort'.
26569
26570 2006-01-09  Jim Meyering  <jim@meyering.net>
26571
26572         Sync from coreutils.
26573         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
26574         Require openat-priv.h.
26575
26576 2006-01-09  Bruno Haible  <bruno@clisp.org>
26577
26578         * modules/strnlen (Include): Use strnlen.h.
26579
26580 2006-01-09  Bruno Haible  <bruno@clisp.org>
26581
26582         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
26583
26584 2006-01-09  Bruno Haible  <bruno@clisp.org>
26585
26586         * lib/sysexit_.h (EX_OK): New macro.
26587         Suggested by Martin Lambers <marlam@marlam.de>.
26588
26589 2006-01-09  Bruno Haible  <bruno@clisp.org>
26590
26591         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
26592         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
26593
26594 2006-01-09  Bruno Haible  <bruno@clisp.org>
26595
26596         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
26597         numbers.
26598
26599 2006-01-09  Bruno Haible  <bruno@clisp.org>
26600
26601         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
26602         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
26603         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
26604         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
26605
26606 2006-01-09  Bruno Haible  <bruno@clisp.org>
26607
26608         * build-aux/javacomp.sh.in: New file, moved from lib/.
26609         * modules/javacomp-script (Files): Update.
26610         (configure.ac): Add AC_CONFIG_FILES invocation.
26611         (EXTRA_DIST): Remove variable.
26612
26613         * build-aux/javaexec.sh.in: New file, moved from lib/.
26614         * modules/javaexec (Files): Update.
26615         (configure.ac): Add AC_CONFIG_FILES invocation.
26616         (EXTRA_DIST): Remove javaexec.sh.in.
26617
26618         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
26619         * modules/csharpcomp-script (Files): Update.
26620         (configure.ac): Add AC_CONFIG_FILES invocation.
26621         (EXTRA_DIST): Remove variable.
26622
26623         * build-aux/csharpexec.sh.in: New file, moved from lib/.
26624         * modules/csharpexec (Files): Update.
26625         (configure.ac): Add AC_CONFIG_FILES invocation.
26626         (EXTRA_DIST): Remove csharpexec.sh.in.
26627
26628 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26629
26630         Sync from coreutils.
26631
26632         Add POSIX ACL support
26633         * lib/acl.h (copy_acl, set_acl): Add declarations.
26634         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
26635         systems other than Linux.
26636         (chmod_or_fchmod): New function: use fchmod when possible,
26637         and chmod otherwise.
26638         (file_has_acl): Add a POSIX ACL implementation, with a
26639         Linux-specific subcase.
26640         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
26641         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
26642         acls are unsupported.
26643         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
26644         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
26645         are unsupported.
26646
26647 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26648
26649         Sync from coreutils.
26650         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
26651
26652 2006-01-07  Bruno Haible  <bruno@clisp.org>
26653
26654         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
26655         gl_EARLY.
26656
26657 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26658
26659         * lib/strftime.c (tzname): Don't declare if it is already #defined.
26660         Problem reported for Mingw by Mark Junker.
26661
26662 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26663
26664         * README: Gnulib normally doesn't generate a tarball.
26665
26666 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26667
26668         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
26669         long int, not int, for nanosecond counts, so that people who are
26670         used to POSIX struct timespec won't be surprised.  Reported by Jim
26671         Meyering.
26672
26673 2005-12-28  Bruno Haible  <bruno@clisp.org>
26674
26675         * build-aux/config.rpath: Update from GNU gettext.
26676
26677 2005-12-16  Jim Meyering  <jim@meyering.net>
26678
26679         * modules/fprintftime: New module.
26680         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
26681
26682 2005-12-16  Jim Meyering  <jim@meyering.net>
26683
26684         * m4/fprintftime.m4: New file.
26685
26686 2005-12-16  Jim Meyering  <jim@meyering.net>
26687
26688         * lib/fprintftime.c, lib/fprintftime.h: New files.
26689
26690 2005-12-15  Simon Josefsson  <jas@extundo.com>
26691
26692         * modules/socklen (configure.ac): Fix M4 macro name, to align with
26693         new m4/socklen.m4.
26694
26695 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26696
26697         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
26698         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
26699
26700 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26701
26702         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
26703         * lib/argp-help.c (fill_in_uparams): Check if the constructed
26704         struct uparams is valid. Fall back to the default values if it is
26705         not.
26706
26707 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26708
26709         * modules/argp (Files): Add argp-pin.c
26710         (Depends-on): dirname
26711         (lib_SOURCES): Add argp-pin.c
26712
26713 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26714
26715         * m4/argp.m4:  Check if program_invocation_name and
26716         program_invocation_short_name are declared and define appropriate
26717         macros if they are not.
26718
26719 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26720
26721         * lib/argp-help.c (__argp_base_name): New function
26722         (__argp_short_program_name): Rewrite using __argp_base_name
26723         * lib/argp-namefrob.h: Define program_invocation_name and
26724         program_invocation_short_name if requested
26725         (__argp_base_name): Add prototype
26726         * lib/argp-parse.c (argp_def): Use gettext wrappers
26727         (argp_default_parser): Use __argp_base_name
26728         * lib/argp-pin.c: New file. Defines program_invocation_name and
26729         program_invocation_short_name on systems that lack them.
26730
26731 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26732
26733         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
26734         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26735         porting problem reported by Georg Schwarz in
26736         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26737
26738 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26739
26740         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
26741         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26742         porting problem reported by Georg Schwarz in
26743         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26744
26745 2005-12-05  Bruno Haible  <bruno@clisp.org>
26746
26747         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
26748         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
26749         Reported by Mark Junker <mjscod@gmx.de>.
26750
26751 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26752
26753         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
26754         Use implementation from Albert Chin, with some
26755         comments/corrections by Stepan Kasal and myself.
26756
26757 2005-12-02  Bruno Haible  <bruno@clisp.org>
26758
26759         * gnulib-tool (func_import): Accept GPLed build tool modules when
26760         --lgpl is given.
26761         * modules/csharpcomp-script: New file.
26762         * modules/csharpcomp: Depend on it.
26763         * modules/javacomp-script: New file.
26764         * modules/javacomp: Depend on it.
26765         Suggested by Simon Josefsson.
26766
26767 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26768
26769         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
26770         statement, to work around an HP-UX 10.20 compiler bug reported by
26771         Peter O'Gorman.
26772
26773 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26774
26775         * modules/savedir (Depends-on): Add openat.
26776
26777 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26778
26779         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
26780         (uintmax_t) [defined uintmax_t]: Do not declare.
26781         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
26782         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
26783         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
26784         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
26785         sake of portability to weird hosts that C allows (though we don't
26786         know of any practical examples).
26787
26788         * lib/savedir.h (fdsavedir): New decl.
26789         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
26790         contains most of the former guts of savedir.
26791         (savedir): Use savedirstream.
26792         Include "openat.h".
26793
26794 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26795
26796         * modules/obstack (Files): Add m4/ulonglong.m4.
26797         Problem reported by Davide Angelocola.
26798
26799 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26800
26801         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
26802         coreutils no longer futzes with rounding modes.
26803
26804 2005-11-14  Jim Meyering  <jim@meyering.net>
26805
26806         * lib/mkstemp-safer.c: Include <config.h>, required for possible
26807         replacement of mkstemp.
26808
26809 2005-11-10  Simon Josefsson  <jas@extundo.com>
26810
26811         * lib/readline.c: Remove EOL.
26812
26813 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26814
26815         * modules/gethrxtime (Depends-on): Add gettime.
26816
26817 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26818
26819         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
26820         or gettimeofday; no longer needed.
26821
26822 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26823
26824         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
26825         time business.
26826         (gethrxtime) [! (HAVE_NANOUPTIME
26827         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
26828         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
26829         our own approximation.
26830
26831 2005-11-08  Eric Blake  <ebb9@byu.net>
26832
26833         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26834
26835 2005-11-08  Eric Blake  <ebb9@byu.net>
26836
26837         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26838
26839 2005-11-04  Bruno Haible  <bruno@clisp.org>
26840
26841         * gnulib-tool: Implement --update mode.
26842
26843 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26844
26845         Fix porting problem reported by Theodoros V. Kalamatianos.
26846         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
26847         Don't assume that futimes failing means we must fail.
26848
26849 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26850
26851         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
26852         variables to suggest the intended function of the PATH_MAX check.
26853
26854 2005-10-30  Kean Johnston  <jkj@sco.com>
26855
26856         Trivial changes to support SCO systems.
26857         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
26858         as PATH_MAX.
26859         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
26860         where __ptr is null when no I/O is pending.
26861
26862 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26863
26864         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
26865         leave errno alone.  Problem reported by Dmitry V. Levin.
26866
26867 2005-10-28  Simon Josefsson  <jas@extundo.com>
26868
26869         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
26870         Test more.
26871
26872         * tests/test-gc-md2.c, tests/test-md2.c: New files.
26873
26874         * modules/md2, modules/md2-tests: New files.
26875
26876 2005-10-28  Simon Josefsson  <jas@extundo.com>
26877
26878         * m4/inet_ntop.m4: More tests.
26879
26880         * m4/gc-md2.m4, md2.m4: New file.
26881
26882 2005-10-28  Simon Josefsson  <jas@extundo.com>
26883
26884         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
26885         "restrict" keywords, as per POSIX.  Protect the function
26886         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
26887         Don't use K&R prototypes.  Check the sprintf return values.
26888         Re-define EAFNOSUPPORT if not present.  Indent.
26889
26890         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
26891         suggested by Bruno Haible <bruno@clisp.org>.
26892
26893         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
26894
26895         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
26896
26897         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
26898         libgcrypt).
26899
26900         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
26901
26902         * lib/md2.h, lib/md2.c: New files.
26903
26904 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
26905
26906         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
26907         errno alone.  Problem reported by Frederic Jolliton.
26908
26909 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26910
26911         * modules/verify (License): Change from GPL to LGPL.  This is a
26912         tiny module and there are apparently near-equivalents that are
26913         under the BSD license.
26914
26915 2005-10-24  Simon Josefsson  <jas@extundo.com>
26916
26917         * modules/sha1: Relicense to LGPL.
26918
26919 2005-10-24  Simon Josefsson  <jas@extundo.com>
26920
26921         * lib/md4.h: Shrink buffer size, now that we changed the type.
26922
26923 2005-10-23  Simon Josefsson  <jas@extundo.com>
26924
26925         * gnulib-tool (func_import): Fix --tests-base.
26926
26927 2005-10-22  Simon Josefsson  <jas@extundo.com>
26928
26929         * modules/arcfour (Depends-on): Need stdint.
26930
26931 2005-10-22  Simon Josefsson  <jas@extundo.com>
26932
26933         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
26934         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
26935
26936 2005-10-22  Simon Josefsson  <jas@extundo.com>
26937
26938         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
26939         suggested by Bruno Haible <bruno@clisp.org>.
26940
26941 2005-10-22  Simon Josefsson  <jas@extundo.com>
26942
26943         * lib/crc.h: Include stddef.h, for size_t.
26944
26945 2005-10-22  Simon Josefsson  <jas@extundo.com>
26946
26947         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
26948         arcfour_context struct (simplify test vector testing in GNU
26949         Shishi).
26950
26951 2005-10-21  Simon Josefsson  <jas@extundo.com>
26952
26953         * modules/des, modules/des-tests: New files.
26954
26955         * modules/gc-des, modules/gc-des-tests: New files.
26956
26957         * tests/test-des.c, tests/test-gc-des.c: New file.
26958
26959 2005-10-21  Simon Josefsson  <jas@extundo.com>
26960
26961         * modules/arctwo, modules/arctwo-tests: New files.
26962
26963         * tests/test-arctwo.c: New file.
26964
26965         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
26966
26967         * tests/test-gc-arctwo.c: New file.
26968
26969 2005-10-21  Simon Josefsson  <jas@extundo.com>
26970
26971         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
26972         Bruno Haible <bruno@clisp.org>.
26973
26974         * m4/gc-des.m4: New file.
26975
26976 2005-10-21  Simon Josefsson  <jas@extundo.com>
26977
26978         * m4/arctwo.m4: New file.
26979
26980         * m4/gc-arctwo.m4: New file.
26981
26982 2005-10-21  Simon Josefsson  <jas@extundo.com>
26983
26984         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
26985         block.
26986
26987 2005-10-21  Simon Josefsson  <jas@extundo.com>
26988
26989         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
26990         <bruno@clisp.org>.
26991
26992         * lib/hmac-sha1.c (hmac_sha1): Likewise.
26993
26994         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
26995         Bruno Haible <bruno@clisp.org>.
26996
26997         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
26998         <bruno@clisp.org>.
26999
27000 2005-10-21  Simon Josefsson  <jas@extundo.com>
27001
27002         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
27003
27004 2005-10-21  Simon Josefsson  <jas@extundo.com>
27005
27006         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
27007
27008 2005-10-21  Simon Josefsson  <jas@extundo.com>
27009
27010         * lib/des.h, lib/des.c: New files.
27011
27012         * lib/gc-gnulib.c: Support DES.c
27013
27014 2005-10-21  Simon Josefsson  <jas@extundo.com>
27015
27016         * lib/arctwo.h, lib/arctwo.c: New files.
27017
27018         * lib/gc-gnulib.c: Support ARCTWO.
27019
27020 2005-10-21  Simon Josefsson  <jas@extundo.com>
27021
27022         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
27023         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27024
27025 2005-10-21  Simon Josefsson  <jas@extundo.com>
27026
27027         * gnulib-tool (func_import, func_create_testdir): Define automake
27028         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
27029         Makefile.am snippet),
27030         suggested by Bruno Haible <bruno@clisp.org>.
27031
27032         * modules/gc (Makefile.am): Use it.
27033
27034 2005-10-21  Bruno Haible  <bruno@clisp.org>
27035
27036         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
27037         patch.
27038
27039 2005-10-19  Simon Josefsson  <jas@extundo.com>
27040
27041         * tests/test-gc-rijndael.c: New file.
27042
27043         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
27044
27045 2005-10-19  Simon Josefsson  <jas@extundo.com>
27046
27047         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
27048         interface too.
27049
27050 2005-10-19  Simon Josefsson  <jas@extundo.com>
27051
27052         * tests/test-gc-arcfour.c: New file.
27053
27054         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
27055
27056 2005-10-19  Simon Josefsson  <jas@extundo.com>
27057
27058         * modules/gc-md4, modules/gc-md4-tests: New file.
27059
27060         * tests/test-gc-md4.c: New file.
27061
27062 2005-10-19  Simon Josefsson  <jas@extundo.com>
27063
27064         * m4/gc-md4.m4: New file.
27065
27066 2005-10-19  Simon Josefsson  <jas@extundo.com>
27067
27068         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
27069         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
27070         <kasal@ucw.cz>.
27071
27072 2005-10-19  Simon Josefsson  <jas@extundo.com>
27073
27074         * m4/gc-arcfour.m4: New file.
27075
27076         * m4/gc-rijndael.m4: New file.
27077
27078 2005-10-19  Simon Josefsson  <jas@extundo.com>
27079
27080         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
27081
27082 2005-10-19  Simon Josefsson  <jas@extundo.com>
27083
27084         * lib/gc-gnulib.c: Support ARCFOUR.
27085
27086 2005-10-19  Simon Josefsson  <jas@extundo.com>
27087
27088         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
27089         support.
27090
27091         * lib/gc.h: Add ECB enum type.
27092
27093         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
27094
27095 2005-10-18  Simon Josefsson  <jas@extundo.com>
27096
27097         * tests/test-md5.c: New file.
27098
27099         * modules/md5-tests: New file.
27100
27101 2005-10-18  Simon Josefsson  <jas@extundo.com>
27102
27103         * tests/test-md4.c: New file.
27104
27105         * modules/md4, modules/md4-tests: New files.
27106
27107 2005-10-18  Simon Josefsson  <jas@extundo.com>
27108
27109         * m4/md4.m4: New file.
27110
27111 2005-10-18  Simon Josefsson  <jas@extundo.com>
27112
27113         * lib/md4.h, lib/md4.c: New files, based on md5.?.
27114
27115 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
27116
27117         * gnulib-tool (func_create_testdir): Omit the second check whether
27118         BUILT_SOURCES in nonempty.
27119
27120 2005-10-17  Simon Josefsson  <jas@extundo.com>
27121
27122         * tests/test-rijndael.c: New file.
27123
27124 2005-10-17  Simon Josefsson  <jas@extundo.com>
27125
27126         * modules/sha1: Depend on stdint instead of md5.
27127
27128         * modules/md5: Depend on stdint, remove uint32_t.
27129
27130 2005-10-17  Simon Josefsson  <jas@extundo.com>
27131
27132         * modules/gc-sha1-tests: New file.
27133
27134         * tests/test-gc-sha1.c: New file.
27135
27136 2005-10-17  Simon Josefsson  <jas@extundo.com>
27137
27138         * m4/md5.m4: Remove call to uint32_t.m4.
27139
27140 2005-10-17  Simon Josefsson  <jas@extundo.com>
27141
27142         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
27143
27144         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
27145         md5.h.
27146
27147         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
27148
27149         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
27150
27151 2005-10-17  Simon Josefsson  <jas@extundo.com>
27152
27153         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
27154
27155 2005-10-17  Simon Josefsson  <jas@extundo.com>
27156
27157         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
27158
27159 2005-10-17  Simon Josefsson  <jas@extundo.com>
27160
27161         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
27162
27163         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
27164
27165 2005-10-17  Bruno Haible  <bruno@clisp.org>
27166
27167         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
27168         that it can also be used in a test.
27169
27170 2005-10-16  Bruno Haible  <bruno@clisp.org>
27171
27172         * gnulib-tool (func_emit_tests_Makefile_am): Also define
27173         TESTS_ENVIRONMENT, so that individual tests can augment it.
27174
27175         * gnulib-tool (func_create_testdir): Use an intermediate target for
27176         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
27177         macros, like $(ALLOCA_H), which cannot be passed through the command
27178         line.
27179
27180 2005-10-15  Simon Josefsson  <jas@extundo.com>
27181
27182         * modules/rijndael-tests: New file.
27183
27184         * modules/rijndael: New file.
27185
27186 2005-10-15  Simon Josefsson  <jas@extundo.com>
27187
27188         * m4/rijndael.m4: New file.
27189
27190 2005-10-15  Simon Josefsson  <jas@extundo.com>
27191
27192         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
27193
27194         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
27195
27196 2005-10-14  Simon Josefsson  <jas@extundo.com>
27197
27198         * tests/test-arcfour.c: New file.
27199
27200         * modules/arcfour, modules/arcfour-tests: New files.
27201
27202 2005-10-14  Simon Josefsson  <jas@extundo.com>
27203
27204         * m4/arcfour.m4: New file.
27205
27206 2005-10-14  Simon Josefsson  <jas@extundo.com>
27207
27208         * lib/arcfour.h, lib/arcfour.c: New files.
27209
27210 2005-10-14  Roland McGrath  <roland@redhat.com>
27211
27212         Import from libc.  [BZ #1331]
27213         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
27214         macro argument.
27215         Reported by Matej Vela <vela@debian.org>.
27216
27217 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27218
27219         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
27220         include <wchar.h>; no longer needed.
27221
27222 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27223
27224         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
27225
27226 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
27227         and  Ulrich Drepper  <drepper@redhat.com>
27228
27229         Import from libc.
27230         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
27231         instead of inline stream orientation test and two separate
27232         function calls.  Pay no attention to USE_IN_LIBIO.
27233
27234 2005-10-13  Simon Josefsson  <jas@extundo.com>
27235
27236         * modules/gc-hmac-md5-tests: New file.
27237
27238         * tests/test-gc-hmac-sha1.c: New file.
27239
27240         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
27241
27242         * modules/gc-hmac-md5-tests: New file.
27243
27244         * tests/test-gc-md5.c: New file.
27245
27246         * modules/gc-md5-tests: New file.
27247
27248 2005-10-13  Simon Josefsson  <jas@extundo.com>
27249
27250         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
27251         Move memory allocation outside of loop.
27252
27253 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27254
27255         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
27256         intermediate directory is in a read-only file system.  Problem
27257         reported by Eric Blake.
27258
27259 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
27260
27261         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
27262
27263 2005-10-12  Simon Josefsson  <jas@extundo.com>
27264
27265         * tests/test-hmac-sha1.c: New file.
27266
27267         * modules/hmac-sha1-tests: New file.
27268
27269         * modules/hmac-sha1: New file.
27270
27271 2005-10-12  Simon Josefsson  <jas@extundo.com>
27272
27273         * modules/gc-sha1: New file.
27274
27275 2005-10-12  Simon Josefsson  <jas@extundo.com>
27276
27277         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
27278
27279         * tests/test-gc-pbkdf2-sha1.c: New file.
27280
27281 2005-10-12  Simon Josefsson  <jas@extundo.com>
27282
27283         * modules/gc-md5, modules/gc-hmac-md5: New files.
27284
27285         * modules/gc (Files): Remove md5, memxor and hmac files.
27286
27287 2005-10-12  Simon Josefsson  <jas@extundo.com>
27288
27289         * m4/gc-pbkdf2-sha1.m4: New file.
27290
27291         * m4/gc-hmac-sha1.m4: New file.
27292
27293         * m4/gc-sha1: New file.
27294
27295         * m4/hmac-sha1.m4: New file.
27296
27297 2005-10-12  Simon Josefsson  <jas@extundo.com>
27298
27299         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
27300
27301         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
27302
27303 2005-10-12  Simon Josefsson  <jas@extundo.com>
27304
27305         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
27306         suggested by Bruno Haible <bruno@clisp.org>.
27307
27308 2005-10-12  Simon Josefsson  <jas@extundo.com>
27309
27310         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27311
27312 2005-10-12  Simon Josefsson  <jas@extundo.com>
27313
27314         * lib/gc-pbkdf2-sha1.c: New file.
27315
27316         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27317
27318 2005-10-12  Simon Josefsson  <jas@extundo.com>
27319
27320         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27321
27322         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27323
27324 2005-10-12  Simon Josefsson  <jas@extundo.com>
27325
27326         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27327         GC_USE_HMAC_MD5, respectively.
27328
27329         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27330         (gc_md5): Fix typo.
27331
27332         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27333
27334         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27335
27336         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27337
27338 2005-10-12  Bruno Haible  <bruno@clisp.org>
27339
27340         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27341         Reported by Stepan Kasal <kasal@ucw.cz>.
27342
27343 2005-10-11  Simon Josefsson  <jas@extundo.com>
27344
27345         * tests/test-crc.c: New file.
27346
27347         * modules/crc, modules/crc-tests: New files.
27348
27349 2005-10-11  Simon Josefsson  <jas@extundo.com>
27350
27351         * m4/crc.m4: New file.
27352
27353 2005-10-11  Simon Josefsson  <jas@extundo.com>
27354
27355         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27356
27357         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27358
27359         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27360
27361 2005-10-11  Simon Josefsson  <jas@extundo.com>
27362
27363         * lib/crc.h, lib/crc.c: New files.
27364
27365         * lib/gc.h (gc_hash_buffer): Add doc.
27366
27367 2005-10-11  Bruno Haible  <bruno@clisp.org>
27368
27369         * modules/c-strcasestr: New file.
27370         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27371
27372 2005-10-11  Bruno Haible  <bruno@clisp.org>
27373
27374         * modules/c-strcase: New file.
27375         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27376
27377 2005-10-11  Bruno Haible  <bruno@clisp.org>
27378
27379         * lib/strcasecmp.c: Include limits.h.
27380         (strcasecmp): Avoid integer overflow on exotic platforms.
27381         * lib/strncasecmp.c: Include limits.h.
27382         (strncasecmp): Avoid integer overflow on exotic platforms.
27383         Reported by Paul Eggert.
27384
27385 2005-10-11  Bruno Haible  <bruno@clisp.org>
27386
27387         * lib/c-strcasestr.h: New file, from GNU gettext.
27388         * lib/c-strcasestr.c: New file, from GNU gettext.
27389
27390 2005-10-11  Bruno Haible  <bruno@clisp.org>
27391
27392         * lib/c-strcase.h: New file, from GNU gettext.
27393         * lib/c-strcasecmp.c: New file, from GNU gettext.
27394         * lib/c-strncasecmp.c: New file, from GNU gettext.
27395
27396 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27397
27398         * modules/mempcpy (License): GPL -> LGPL.
27399         * modules/strchrnul (License): Likewise.
27400         * modules/sysexits (License): Likewise.
27401
27402 2005-10-08  Simon Josefsson  <jas@extundo.com>
27403
27404         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27405
27406 2005-10-07  Simon Josefsson  <jas@extundo.com>
27407
27408         * m4/memxor.m4: Remove gl_C_RESTRICT call.
27409
27410 2005-10-06  Simon Josefsson  <jas@extundo.com>
27411
27412         * tests/test-hmac-md5.c: New file.
27413
27414         * modules/hmac-md5-tests: New file.
27415
27416         * modules/hmac-md5: New file.
27417
27418 2005-10-06  Simon Josefsson  <jas@extundo.com>
27419
27420         * m4/hmac-md5.m4: New file.
27421
27422         * m4/memxor.m4: Require gl_C_RESTRICT.
27423
27424 2005-10-06  Simon Josefsson  <jas@extundo.com>
27425
27426         * lib/memxor.c (memxor): Avoid casts and warnings.
27427
27428 2005-10-06  Simon Josefsson  <jas@extundo.com>
27429
27430         * lib/hmac-md5.c: New file.
27431
27432         * lib/hmac.h: New file.
27433
27434 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27435
27436         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27437         promotes to int, not unsigned int, to catch the AIX 5.3
27438         compiler bug.
27439
27440 2005-10-05  Simon Josefsson  <jas@extundo.com>
27441
27442         * modules/memxor: New file.
27443
27444         * modules/iconv (Files): Move config.rpath to havelib, it is used
27445         there.
27446
27447         * modules/havelib (Files): Add config.rpath.
27448
27449 2005-10-05  Simon Josefsson  <jas@extundo.com>
27450
27451         * m4/memxor.m4: New file.
27452
27453 2005-10-05  Simon Josefsson  <jas@extundo.com>
27454
27455         * lib/memxor.c (memxor): Fix compiler error.
27456
27457         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
27458         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
27459
27460         * lib/memxor.h, lib/memxor.c: New files.
27461
27462         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
27463         we assume all systems have it, suggested by Jim Meyering
27464         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
27465         any systems lack sys/socket.h; mingw32 is known to lack it, but we
27466         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
27467         same reasons.
27468
27469 2005-10-05  Simon Josefsson  <jas@extundo.com>
27470
27471         * config/srclist.txt: Add glibc bug 1423 for md5.h.
27472
27473 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27474
27475         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
27476         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
27477         needed, since the source code now assumes these .h files.
27478
27479 2005-10-05  Derek Price  <derek@ximbiot.com>
27480
27481         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
27482
27483 2005-10-05  Bruno Haible  <bruno@clisp.org>
27484
27485         * modules/stdint (License): Change to LGPL.
27486
27487 2005-10-04  Simon Josefsson  <jas@extundo.com>
27488
27489         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
27490         D. Baushke" <mdb@gnu.org>.
27491
27492 2005-10-04  Bruno Haible  <bruno@clisp.org>
27493
27494         * lib/verify.h (verify_true): Provide alternative definition for C++.
27495
27496 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27497
27498         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
27499         (SSIZE_MAX): New macro, if not already defined.
27500         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
27501         than 2 GiB.
27502
27503 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27504
27505         Sync from coreutils.
27506         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
27507         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
27508         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
27509         ULLONG_MAX doesn't work with 2.7.2.1.
27510
27511 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27512
27513         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
27514         From Ben Pfaff.
27515
27516         * modules/exclude (Depends-on): Depend on verify.
27517         * modules/strtoimax (Depends-on): Likewise.
27518         * modules/utimecmp (Depends-on): Likewise.
27519
27520 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27521
27522         * lib/exclude.c: Include verify.h.
27523         (verify): Remove.  All callers changed to use verify.h's version.
27524         * lib/strtoimax.c: Likewise.
27525         * lib/utimecmp.c: Likewis.e
27526
27527         Sync from coreutils.
27528         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
27529         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
27530         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
27531         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
27532         bother returning ENOSYS if settimeofday or stime fails; just let
27533         them return whatever errno they want to return.
27534         * lib/utimens.c: Include unistd.h, for dup2.
27535         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
27536         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
27537
27538 2005-10-02  Jim Meyering  <jim@meyering.net>
27539
27540         Sync from coreutils.
27541         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
27542         from glibc-2.2.5 that fails for read-only files.
27543
27544 2005-10-02  Jim Meyering  <jim@meyering.net>
27545
27546         Sync from coreutils.
27547         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
27548         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
27549         `#if HAVE_CONFIG_H'.
27550         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
27551         Remove AT_FDCWD test.
27552         Do not consume the fd unless successful.
27553         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
27554         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
27555         block, so that we don't even try to compile it if settimeofday is
27556         available.  This works around a compilation failure on OSF1 V5.1,
27557         due to stime requiring a `long int*' while tv_sec is `int'.
27558
27559 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
27560
27561         Sync from coreutils.
27562         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
27563         against `yes', rather than just testing for nonempty.
27564
27565 2005-10-01  Simon Josefsson  <jas@extundo.com>
27566
27567         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
27568         and Darwin.
27569
27570         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
27571         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
27572         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
27573         freeaddrinfo and gai_strerror are declared by the POSIX headers.
27574         Check if struct addrinfo is declared.
27575
27576 2005-10-01  Simon Josefsson  <jas@extundo.com>
27577
27578         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
27579         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
27580         AI_* and EAI_* definitions.  Protect function declarations.
27581
27582 2005-10-01  Jim Meyering  <jim@meyering.net>
27583
27584         Sync from coreutils.
27585
27586         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
27587         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
27588         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
27589         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27590         in the inet and nsl libraries.  Required on Solaris 5.7.
27591
27592 2005-10-01  Jim Meyering  <jim@meyering.net>
27593
27594         Sync from coreutils.
27595         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27596         in the inet and nsl libraries.  Required on Solaris 5.7.
27597
27598 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
27599
27600         * lib/getdelim.c (getdelim): Remove unused variables.
27601
27602 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
27603
27604         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
27605         so that the code works even with ancient cpp.  Portability problem
27606         with GCC 2.7.2.1 reported by Thomas M.Ott.
27607
27608 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
27609
27610         * modules/regex (Depends-on): Add strcase.
27611
27612         * modules/gethostname (Licence): Change from GPL to LGPL, since
27613         gethostname.c is a trivial implementation of a standard library
27614         function.
27615         * modules/poll (License): Change from GPL to LGPL, since it's
27616         derived from LGPL code.
27617
27618 2005-09-27  Jim Meyering  <jim@meyering.net>
27619
27620         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
27621         HAVE_CONFIG_H.
27622
27623         * lib/intprops.h (signed_type_or_expr__): Define.
27624         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
27625         for unsigned types.
27626
27627 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27628
27629         * lib/verify.h (verify_expr): Remove, replacing with:
27630         (verify_true): New macro that returns true instead of void.
27631         (verify_type__): Remove.
27632         (verify): Use verify_true rather than verify_type__.
27633
27634 2005-09-26  Bruno Haible  <bruno@clisp.org>
27635
27636         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
27637         is necessary.
27638         (lib_SOURCES): Remove mbchar.c.
27639         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
27640         (Files): Add m4/mbrtowc.m4.
27641         * modules/mbiter: Likewise.
27642         * modules/mbuiter: Likewise.
27643
27644 2005-09-26  Bruno Haible  <bruno@clisp.org>
27645
27646         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
27647         compile mbchar.c if they are not both present.
27648         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
27649         * m4/mbiter.m4 (gl_MBITER): Likewise.
27650         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
27651         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
27652         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
27653
27654 2005-09-25  Jim Meyering  <jim@meyering.net>
27655
27656         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
27657         also uses socklen_t.
27658
27659 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27660
27661         * lib/utimens.c (ENOSYS): Define if not already defined.
27662         (futimens): Support having a null PATH if the file descriptor
27663         is nonnegative.
27664
27665         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
27666         Remove.
27667         (__attribute): Define to empty unless GCC 3.1 or later.
27668         This works around a core dump on OpenBSD 3.4, which has GCC
27669         2.95.3, which dumps core when given __attribute__(()).  It also
27670         simplifies other tests, since we really don't want to bother with
27671         worrying about which ancient version of GCC supported what.
27672         Original problem reported by Yoann Vandoorselaere, with part of
27673         the fix suggested by Derek Price.
27674
27675 2005-09-24  Jim Meyering  <jim@meyering.net>
27676
27677         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
27678         so we can once again use a positive bitfield width of 1 -- now we
27679         don't have to explain why we were using a bitfield width of 2.
27680
27681 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27682
27683         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
27684         and similarly for the other external symbols.  Problem reported
27685         by James Gallager.
27686
27687         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
27688         bug reported by Jim Meyering.
27689
27690         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
27691         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
27692         not needed, since socklen is a prerequisite module.
27693
27694 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27695
27696         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
27697         Problem reported by Eric Blake.
27698         (getaddrinfo): Initialize se so that it's not garbage.
27699         Redo internal storage allocation so that it doesn't make unportable
27700         assumptions about alignment.
27701         Fix a memory leak.
27702
27703         * lib/utimens.c (futimens): Use futimesat if available.
27704         Prefer it to futimes since it doesn't have the futimes bug.
27705
27706         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
27707         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
27708         Instead, declare a function that returns a pointer to an array,
27709         and use verify_type__ to declare the size of the array.
27710         Problem and germ of a solution reported by Bruno Haible.
27711         (verify_type__): Use 2, not 1, for bitfield size, to avoid
27712         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
27713
27714 2005-09-23  Jim Meyering  <jim@meyering.net>
27715
27716         Sync from coreutils.
27717         Correct build failure (socklen_t not defined) on at least
27718         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27719         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27720
27721 2005-09-23  Jim Meyering  <jim@meyering.net>
27722
27723         * modules/getaddrinfo (Depends-on): Add socklen.
27724
27725 2005-09-23  Bruno Haible  <bruno@clisp.org>
27726
27727         * tests/test-verify.c: New file.
27728
27729 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27730
27731         Sync from coreutils.
27732
27733         * modules/argmatch (Depends-on): Add verify.
27734         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
27735         unistd-safer.
27736         * modules/save-cwd (Depends-on): Likewise.
27737
27738         * modules/openat (Files): Add lib/openat-die.c.
27739         (Depends-on): Remove error, exitfail.
27740         Add dirname.
27741
27742         * modules/verify: New file.
27743         * MODULES.html.sh (Diagnostics <assert.h>): New section,
27744         with "verify" module.
27745
27746 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27747
27748         Sync from coreutils.
27749
27750         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
27751         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
27752         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
27753         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
27754         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
27755         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
27756         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
27757         Don't bother checking for string.h, stdlib.h, unistd.h.
27758         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
27759         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
27760         module's job.
27761         * m4/jm-macros.m4 (gl_MACROS): Likewise.
27762         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
27763
27764         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
27765         (gl_GETDATE): Use it.
27766
27767         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
27768
27769 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27770
27771         Sync from coreutils.
27772
27773         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
27774         stat-time.h.
27775         * lib/argmatch.h: Include verify.h
27776         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
27777         (ARGMATCH_ASSERT): Remove; unused.
27778         * lib/canonicalize.c: Assume STDC_HEADERS.
27779         * lib/exclude.c: Include "strcase.h".
27780         * lib/regex_internal.h [!defined _LIBC]: Likewise.
27781         * lib/getusershell.c: Include stdio--.h rather than stdio.h
27782         and stdio-safer.h.
27783         (getusershell): Call fopen, not fopen_safer.
27784         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
27785         Do not include unistd-safer.h.
27786         (save_cwd): Don't call fd_safer; no longer needed
27787         now that we include fcntl--.h.
27788
27789         * lib/getdate.y (relative_time): New type.
27790         (RELATIVE_TIME_0): New constant.
27791         (parser_control): Use relative_time instead of doing it ourselves.
27792         (%union): Add new relative_time rel member.
27793         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
27794         Now typeless.
27795         (relunit, relunit_snumber): Now of type rel.
27796         (zone, rel, relunit, get_date): Adjust to above changes.
27797
27798         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
27799         Do not include unistd-safer.h.
27800         (getloadavg): Don't call fd_safer; no longer needed
27801         now that we include fcntl--.h.
27802
27803         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
27804         (make_dir_parents): Treat ENOSYS like EEXIST.
27805
27806         Improve quality of diagnostics on restore_cwd failure.
27807         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
27808         (make_dir_parents): Last arg is now int * (for errno), not bool *.
27809         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
27810         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
27811         each time through the loop.  Do not diagnose restore_cwd failure;
27812         that is the caller's job (and perhaps the caller does not care).
27813
27814         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
27815         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
27816         If the file already exists but is not a directory, don't bother
27817         to try to make its parents.
27818         Close potential file descriptor leak if we can't chdir("/") (!).
27819         Don't always return true if chdir($PWD) fails; return true only
27820         if the requested action was done successfully (except for the
27821         chdir($PWD)).
27822         Don't log final directory unless we actually made it.
27823         Refactor to avoid duplicate code to fix up permissions.
27824         Don't attempt to fix up parent permissions if chdir($PWD) fails.
27825
27826         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
27827         to make it a bit faster and (I hope) clearer.
27828         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
27829         Fix bug in formats like %2N.
27830
27831         * lib/verify.h: New file.
27832
27833 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27834
27835         Sync from coreutils.
27836         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
27837
27838 2005-09-22  Jim Meyering  <jim@meyering.net>
27839
27840         Sync from coreutils.
27841
27842         * m4/lstat.m4 (gl_FUNC_LSTAT):
27843         Use AC_LIBSOURCES to require lstat.c and lstat.h.
27844         Remove obsolete comment.
27845         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
27846         * m4/xstrtod.m4: Likewise.
27847
27848         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
27849
27850 2005-09-22  Jim Meyering  <jim@meyering.net>
27851
27852         Sync from coreutils.
27853
27854         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
27855
27856         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
27857         the .tm_year member, since otherwise gcc-4.0 would now warn about
27858         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
27859
27860         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
27861         order to avoid an unsuppressible warning from gcc on 64-bit systems.
27862
27863         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
27864         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
27865         when run in a time zone for which daylight savings time is in effect
27866         for the starting date.
27867
27868         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
27869         stop us from restricting permissions of just-created absolute-named
27870         directories.
27871         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
27872         to restore initial working directory.
27873         * lib/mkdir-p.c (make_dir_parents): New parameter:
27874         different_working_dir, to tell caller if/when we change the working
27875         directory and are unable to return to the initial one.
27876         * lib/mkdir-p.h (make_dir_parents): Update prototype.
27877         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
27878         `return false'.  This fixes a bug introduced on 2004-07-30.
27879
27880         * lib/openat.c (fdopendir): Be sure to close the supplied
27881         file descriptor before returning.  This makes our replacement
27882         implementation a little closer to Solaris's, where fdopendir
27883         ties the file descriptor to the returned DIR* pointer.
27884         * lib/openat.c (unlinkat): New function.
27885         * lib/openat.h (unlinkat): Add prototype.
27886         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
27887         (openat_restore_fail): Rename from openat_restore_die.
27888         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
27889
27890         Provide an alternative to exiting immediately upon save_cwd or
27891         restore_cwd failure.  Now, an application can arrange e.g.,
27892         to perform a longjump in that case.
27893         * lib/openat.c: Include dirname.h.
27894         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
27895         (rpl_openat, fdopendir, fstatat): Call openat_save_die
27896         and openat_restore_die rather than calling error directly.
27897         Don't include "error.h" or "exitfail.h"; they're no longer needed.
27898
27899         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
27900         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
27901         define.
27902
27903         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
27904         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
27905                             int utc, int nanoseconds);
27906         Background:
27907         date should not have to allocate a megabyte of virtual memory to
27908         handle a format argument like +%1048575T.  When implemented with
27909         strftime, it must allocate such a buffer, use strftime to fill it
27910         in, print it, then free it.
27911         With fprintftime, it simply prints everything and exits.
27912         With no need for memory allocation, that's one fewer way to fail.
27913         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
27914         optional field width, not before, so we accept %9:z, not %:9z.
27915         (my_strftime): Be sure to use L_('x') for literals.
27916
27917         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
27918         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
27919         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
27920         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
27921         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
27922         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
27923         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
27924         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
27925         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
27926         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
27927         * lib/xgethostname.c, lib/xreadlink.c:
27928         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
27929
27930         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
27931         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
27932         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
27933         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27934         and don't include <sys/file.h>).
27935
27936 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
27937
27938         Sync from coreutils.
27939
27940         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
27941         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
27942         [!LDAV_DONE]: Avoid unused variable warning.
27943
27944 2005-09-21  Bruno Haible  <bruno@clisp.org>
27945
27946         * lib/unicodeio.h (unicode_to_mb): New declaration.
27947
27948 2005-09-20  Derek Price  <derek@ximbiot.com>
27949
27950         * lib/getaddrinfo.c: Don't include <netdb.h> included from
27951         getaddrinfo.h.
27952
27953 2005-09-20  Bruno Haible  <bruno@clisp.org>
27954
27955         * gnulib-tool: Remove trailing slashes from the values specified for
27956         --source-base, --m4-base, --tests-base, --aux-dir.
27957         Suggested by Simon Josefsson <jas@extundo.com>.
27958
27959 2005-09-20  Bruno Haible  <bruno@clisp.org>
27960
27961         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
27962         func_modules_to_filelist, func_import, func_create_testdir): Make all
27963         sorting results locale-independent, so that gnulib-cache.m4 doesn't
27964         change when gnulib-tool is invoked in a different locale.
27965
27966 2005-09-19  Simon Josefsson  <jas@extundo.com>
27967
27968         * m4/socklen.m4: Fix typo.
27969
27970 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27971
27972         Use a consistent style for including <config.h>.
27973         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
27974         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
27975         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
27976         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
27977         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
27978         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
27979         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
27980         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
27981         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
27982         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
27983         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
27984         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
27985         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
27986         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
27987         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
27988         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
27989         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
27990         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
27991         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
27992         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
27993         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
27994         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
27995         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
27996         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
27997         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
27998         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
27999         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
28000         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
28001         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
28002         lib/xstrtoumax.c, lib/yesno.c:
28003         Standardize inclusion of config.h.
28004         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
28005         lib/inttostr.h:  Removed inclusion of config.h from header files.
28006         * lib/inttostr.c:  Adjusted in-tree users.
28007         * lib/timespec.h: Remove superfluous warning to include config.h.
28008         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
28009         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
28010         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
28011         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
28012         config.h with HAVE_CONFIG_H.
28013
28014 2005-09-19  Jim Meyering  <jim@meyering.net>
28015
28016         * modules/pathmax (License): Change to LGPL.
28017
28018 2005-09-19  Derek Price  <derek@ximbiot.com>
28019
28020         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
28021
28022 2005-09-19  Bruno Haible  <bruno@clisp.org>
28023
28024         * gnulib-tool (import): Provide default for --tests-base.
28025
28026 2005-09-19  Bruno Haible  <bruno@clisp.org>
28027
28028         * doc/quote.texi: New file, extracted from gnulib.texi.
28029         * doc/ctime.texi: New file, extracted from gnulib.texi.
28030         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
28031         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
28032         * doc/gnulib.texi: Include them.
28033
28034 2005-09-18  Bruno Haible  <bruno@clisp.org>
28035
28036         Portability fix.
28037         * gnulib-tool (func_readlink): New function.
28038         (func_ln_if_changed): Use it.
28039
28040 2005-09-18  Bruno Haible  <bruno@clisp.org>
28041
28042         * gnulib-tool: Support --with-tests also with --import.
28043         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
28044         (func_import): Use variables $testsbase and $inctests. Emit a
28045         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
28046         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
28047         SUBDIRS += $testsdir.
28048         (func_create_testdir): Update.
28049
28050 2005-09-18  Bruno Haible  <bruno@clisp.org>
28051
28052         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
28053         instead of $dry_run.
28054         (func_cp_if_changed, func_mv_if_changed): Remove functions.
28055         (func_ln_if_changed): Don't handle dry-run here.
28056         (func_import): In dry-run mode, detect more precisely which actions
28057         would be performed, and don't use "...ing" verbs.
28058
28059 2005-09-18  Bruno Haible  <bruno@clisp.org>
28060
28061         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
28062         (func_import): Use join on two temporary files instead of three nested
28063         loops, in order to determine which files are new or old.
28064
28065 2005-09-18  Bruno Haible  <bruno@clisp.org>
28066
28067         * gnulib-tool (func_import): Comment out code that spits out the
28068         new files with --dry-run.
28069
28070 2005-09-18  Bruno Haible  <bruno@clisp.org>
28071
28072         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
28073
28074 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28075
28076         * lib/stat-time.h: New file.
28077         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
28078         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
28079         in a different way.
28080         (timespec_cmp): New function.
28081         * lib/utimecmp.c: Include stat-time.h.
28082         (SYSCALL_RESOLUTION): Depend on whether various struct stat
28083         members exist, not on the obsolescent ST_MTIM_NSEC.
28084         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
28085
28086 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28087
28088         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
28089
28090 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28091
28092         * MODULES.html.sh (File system functions): Add stat-time.
28093         * modules/stat-time: New file.
28094         * modules/timespec (Files): Remove m4/st_mtim.m4; this
28095         is now done in a different way, by the stat-time module.
28096         * modules/utimecmp (Depends-on): Add stat-time.
28097
28098 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28099
28100         * m4/st_mtim.m4: Remove.  Superseded by...
28101         * m4/stat-time.m4: New file.
28102         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
28103         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
28104
28105 2005-09-15  Derek Price  <derek@ximbiot.com>
28106
28107         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
28108
28109 2005-09-15  Derek Price  <derek@ximbiot.com>
28110
28111         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
28112         * lib/regex_internal.c: Ditto, using this...
28113         (__GNUC_PREREQ): ...new macro.
28114         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
28115         using...
28116         (__GNUC_PREREQ): ...this new macro.
28117
28118         * lib/strstr.h: Include string.h. Define strstr as a macro here.
28119
28120 2005-09-15  Derek Price  <derek@ximbiot.com>
28121             Paul Eggert  <eggert@cs.ucla.edu>
28122
28123         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
28124         changes, consolidating in...
28125         * lib/regex_internal.h: ...this file.
28126
28127 2005-09-13  Jim Meyering  <jim@meyering.net>
28128
28129         * lib/canon-host.c: Filter through gnu indent and reword comments
28130         slightly.
28131         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
28132
28133 2005-09-13  Derek Price  <derek@ximbiot.com>
28134
28135         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
28136         failure.
28137         Reported by Jim Meyering  <jim@meyering.net>.
28138
28139 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28140
28141         * lib/base64.c: Typo.
28142         (base64_encode): Put b64str in initialized data section.
28143
28144 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28145
28146         Merge glibc and coreutils changes into gnulib, plus a few
28147         extra fixes.
28148         * lib/md5.c: Use #error rather than a string.
28149         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
28150         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
28151         (__attribute__): Define to empty for non recent-GCC.
28152         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
28153         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
28154         Renamed from their non-__ counterparts, with new macros replacing
28155         them if not _LIBC.  Add __THROW attribute.
28156         (rol): Remove.
28157         (struct md5_ctx): Align buffer if using GCC.
28158         * lib/sha1.h (struct sha1_ctx): Likewise.
28159         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
28160         The old name was backwards.
28161         (NOTSWAP): Remove; not used.
28162         (rol): New macro, moved here from md5.h.
28163         (sha1_process_block): Remove a FIXME that doesn't make sense.
28164
28165 2005-09-12  Derek Price  <derek@ximbiot.com>
28166
28167         Return usable errors from canon-host.
28168         * lib/canon-host.h: New file.
28169         * lib/canon-host.c (canon_host): Wrap...
28170         (canon_host_r): ...this new function, which now relies exclusively on
28171         getaddrinfo.
28172         (ch_strerror): New function.
28173         (last_cherror): New global.
28174         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
28175         interface.
28176         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
28177         void *.
28178         (freeaddrinfo): Free ai->ai_canonname when set.
28179
28180 2005-09-12  Derek Price  <derek@ximbiot.com>
28181
28182         Make canon-host require getaddrinfo.
28183         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
28184         AC_LIBSOURCE canon-host.h.  Call...
28185         (gl_PREREQ_CANON_HOST): ...this new function, which requires
28186         gl_GETADDRINFO.
28187         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
28188
28189 2005-09-12  Derek Price  <derek@ximbiot.com>
28190
28191         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
28192         LGPL.
28193         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
28194
28195 2005-09-12  Derek Price  <derek@ximbiot.com>
28196
28197         * lib/gai_strerror.c: Include config.h when available.  Include
28198         getaddrinfo.h before other headers to test interface.
28199         Reported by Larry Jones <lawrence.jones@ugs.com>.
28200
28201 2005-09-12  Derek Price  <derek@ximbiot.com>
28202             Paul Eggert  <eggert@cs.ucla.edu>
28203
28204         * modules/glob (Files): Add glob-libc.h.
28205
28206 2005-09-12  Derek Price  <derek@ximbiot.com>
28207             Paul Eggert  <eggert@cs.ucla.edu>
28208
28209         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
28210         glob_.h, glob-libc.h.
28211         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
28212
28213 2005-09-12  Derek Price  <derek@ximbiot.com>
28214             Paul Eggert  <eggert@cs.ucla.edu>
28215
28216         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
28217         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
28218         protecting things that should be done only in gnulib contexts.
28219         * lib/glob_.h: New file, containing only the glob things needed for
28220         gnulib.
28221         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
28222         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
28223         (glob, globfree, glob_pattern_p): Now defined simply in terms of
28224         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
28225         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
28226         and to respect the namespace rules better.
28227
28228 2005-09-08  Simon Josefsson  <jas@extundo.com>
28229
28230         * modules/socklen: New file.
28231
28232 2005-09-08  Simon Josefsson  <jas@extundo.com>
28233
28234         * m4/socklen.m4: New file.
28235
28236 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28237
28238         * modules/utimens (Files): Add m4/utimbuf.m4, since
28239         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
28240         Reported by Sergey Poznyakoff.
28241
28242 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28243
28244         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
28245         definitions, since that's the preferred style in glibc.
28246         Fix a minor spacing issue, and update copyright notice to match
28247         glibc's.
28248
28249 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28250
28251         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
28252
28253 2005-09-06  Simon Josefsson  <jas@extundo.com>
28254
28255         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
28256         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
28257
28258 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28259
28260         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
28261         warning.
28262
28263 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28264
28265         * config/srclist.txt: Add glibc bug 1302.
28266
28267 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28268
28269         Change bitset word type from unsigned int to unsigned long int,
28270         as this has better performance on typical 64-bit hosts.
28271         Port bitset code to hosts with unusual word sizes.
28272         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
28273         (build_collating_symbol):
28274         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
28275         argument is a bitset.  This is merely a style issue, but it makes
28276         it clearer that an entire array is expected.
28277         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
28278         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
28279         Port to the case where bitset_word is not the same as unsigned int.
28280         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28281         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
28282         Likewise.
28283         * lib/regexec.c (check_dst_limits_calc_pos_1,
28284         check_subexp_matching_top):
28285         (build_trtable, group_nodes_into_DFAstates):
28286         Likewise.
28287         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
28288         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
28289         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
28290         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
28291         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
28292         * lib/regcomp.c (optimize_subexps, lower_subexp):
28293         Work even if bitset_word has holes in its bitwise representation.
28294         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
28295         * lib/regexec.c (check_dst_limits_calc_pos_1,
28296         check_subexp_matching_top):
28297         Likewise.
28298         * lib/regex_internal.c (re_string_reconstruct):
28299         Don't assume UCHAR_MAX == 255.
28300         * lib/regex_internal.h (bitset_set_all): Likewise.
28301         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
28302         All uses changed.
28303         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
28304         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
28305         All uses changed.
28306         (BITSET_WORD_MAX): New macro.
28307         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28308         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28309         (bitset_empty, bitset_copy):
28310         Prefer sizeof (bitset) to multiplying it out ourselves.
28311         (bitset_not_merge): Remove; unused.
28312         (bitset_contain): Return bool, not unsigned int with one bit on.
28313         All callers changed.
28314         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28315         alignment than re_node_set; do this by defining a new internal
28316         type struct dests_alloc and using it to allocate memory.
28317
28318 2005-09-05  Bruno Haible  <bruno@clisp.org>
28319
28320         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28321         links.
28322
28323 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28324
28325         * modules/size_max (Makefile.am): Add size_max.h
28326
28327 2005-09-04  Derek Price  <derek@ximbiot.com>
28328
28329         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28330
28331 2005-09-03  Simon Josefsson  <jas@extundo.com>
28332
28333         * gnulib-tool: Fix typo.
28334
28335 2005-09-03  Simon Josefsson  <jas@extundo.com>
28336
28337         * config/srclist.txt: Add glibc bug 1293.
28338
28339 2005-09-03  Derek Price  <derek@ximbiot.com>
28340
28341         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28342         From Larry Jones <lawrence.jones@ugs.com>.
28343
28344 2005-09-02  Simon Josefsson  <jas@extundo.com>
28345
28346         * modules/socklen: New file.
28347
28348 2005-09-02  Simon Josefsson  <jas@extundo.com>
28349
28350         * modules/havelib: New module.
28351
28352         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28353         Use havelib.
28354
28355 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28356
28357         Check for arithmetic overflow when calculating sizes, to prevent
28358         some buffer-overflow issues.  These patches are conservative, in the
28359         sense that when I couldn't determine whether an overflow was possible,
28360         I inserted a run-time check.
28361         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28362         macros.
28363         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28364         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28365         (re_xnrealloc, re_x2nrealloc): New inline functions.
28366         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28367         parse_bracket_exp):
28368         (build_equiv_class, build_charclass): Check for arithmetic overflow
28369         in size expression calculations.
28370         * lib/regex_internal.c (re_string_realloc_buffers):
28371         (build_wcs_upper_buffer, re_node_set_add_intersect):
28372         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28373         (re_dfa_add_node, register_state): Likewise.
28374         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28375         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28376         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28377         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28378
28379 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28380
28381         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28382         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28383
28384 2005-09-02  Bruno Haible  <bruno@clisp.org>
28385
28386         Support for lib vs. lib64 distinction on biarch platforms.
28387         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28388         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28389         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28390
28391 2005-09-02  Bruno Haible  <bruno@clisp.org>
28392
28393         * gnulib-tool (import): In the other first-use case, provide defaults
28394         as well.
28395
28396 2005-09-02  Bruno Haible  <bruno@clisp.org>
28397
28398         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28399         patches not yet found in the latest gettext release.
28400
28401 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28402
28403         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28404         to avoid a collision with bits/local_lim.h in glibc.
28405         All uses changed.  Problem reported by Dmitry V. Levin in
28406         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28407
28408         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
28409         bugs in int versus size_t comparisons.
28410         (re_string_context_at): Fix bug where the code assumed that
28411         Idx is signed.
28412
28413         Use bool where appropriate.
28414         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
28415         All callers changed.
28416         (calc_eclosure_iter): Likewise, for ROOT arg.
28417         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
28418         (build_charclass_op): Likewise, for NON_MATCH arg.
28419         * lib/regex_internal.c (re_string_allocate, re_string_construct):
28420         (re_string_construct_common): Likewise, for ICASE arg.
28421         * lib/regexec.c (re_search_2_stub, re_search_stub):
28422         Likewise, for RET_LEN arg.
28423         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
28424         (set_regs): Likewise, for FL_BACKTRACK arg.
28425         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
28426         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28427         (calc_eclosure_iter, parse_bracket_exp):
28428         Use bool for internal variables that are booleans.
28429         * lib/regexec.c (re_search_internal, check_matching,
28430         proceed_next_node):
28431         (set_regs, build_sifted_states, sift_states_bkref):
28432         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28433         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28434         (find_collation_sequence_value):
28435         Likewise.
28436         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28437         (re_node_set_compare):
28438         Return bool, not int. All callers changed.
28439         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28440         (build_trtable, check_node_accept): Likewise.
28441         * lib/regex_internal.h: Include stdbool.h.
28442
28443         Fix bugs uncovered when converting to bool.
28444         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28445         failure instead of charging ahead blindly.
28446         * lib/regex_internal.c (register_state): Likewise.
28447         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
28448         for freeing internal storage.
28449         (group_nodes_into_DFA_states): Use unsigned int, not int, for
28450         bitset pieces used as boolean, to avoid undefined behavior
28451         on hosts that do int overflow checking.
28452
28453 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28454
28455         * config/srclist.txt: Add glibc bugs 1285-1287.
28456
28457 2005-09-01  Jim Meyering  <jim@meyering.net>
28458
28459         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
28460         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
28461         Require gl_STAT_MACROS, too.
28462
28463 2005-09-01  Bruno Haible  <bruno@clisp.org>
28464
28465         * gnulib-tool (import): In the first-use case, provide defaults.
28466
28467 2005-09-01  Bruno Haible  <bruno@clisp.org>
28468
28469         * gnulib-tool (func_import): Remove the .tmp files.
28470
28471 2005-09-01  Bruno Haible  <bruno@clisp.org>
28472
28473         * gnulib-tool (func_import): Fix handling of symbolic links.
28474
28475 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28476
28477         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
28478         old glibc regex code mishandles strings longer than 2**31 bytes.
28479         This patch fixes this when the regex code is used in gnulib
28480         (i.e., outside glibc).
28481
28482         This patch should not affect the use of the regex code inside
28483         glibc.  No doubt this problem also needs to be handled for glibc
28484         as well, but the result will be an incompatible change to the
28485         glibc ABI, and the old ABI will have to be supported too.  That
28486         can be the the subject for another patch.
28487
28488         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
28489         governing whether the rest of this patch is active.  By default,
28490         the macro is disabled and the patch has no effect.
28491         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
28492         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
28493         (struct re_pattern_buffer, re_search, re_search_2, re_match):
28494         (re_match_2, re_set_registers): Use the new types.
28495         * lib/regex_internal.h (Idx, re_hashval_t): New types.
28496         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
28497         New macros.
28498         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
28499         (re_string_context_at, bin_tree_t, re_dfastate_t):
28500         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
28501         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
28502         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
28503         (re_string_char_size_at, re_string_wchar_at):
28504         (re_string_elem_size_at):
28505         Use the new types and macros to port to 64-bit hosts.
28506         Use unsigned types for internal values, so that the code
28507         mostly works even for arrays larger than SSIZE_MAX.
28508         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
28509         (search_duplicated_node, calc_eclosure_iter, fetch_number):
28510         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28511         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
28512         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
28513         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
28514         (calc_inveclosure, parse_dup_op, build_range_exp):
28515         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
28516         (fetch_number, create_token_tree, mark_opt_subexp):
28517         Likewise.
28518         * lib/regex_internal.c (re_string_construct_common,
28519         create_ci_newstate):
28520         (create_cd_newstate, re_string_allocate, re_string_construct):
28521         (re_string_realloc_buffers, build_wcs_upper_buffer):
28522         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28523         (re_string_reconstruct, re_string_peek_byte_case):
28524         (re_string_fetch_byte_case, re_string_context_at):
28525         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28526         (re_node_set_init_copy, re_node_set_add_intersect):
28527         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28528         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28529         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28530         (re_acquire_state, re_acquire_state_context, register_state):
28531         Likewise.
28532         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
28533         search_cur_bkref_entry):
28534         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
28535         (re_search_internal, re_search_2_stub, re_search_stub)
28536         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
28537         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
28538         (update_cur_sifted_state, check_dst_limits):
28539         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28540         (check_subexp_limits, sift_states_bkref, merge_state_array):
28541         (check_subexp_matching_top, get_subexp, get_subexp_sub):
28542         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
28543         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28544         (expand_bkref_cache, check_node_accept_bytes):
28545         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
28546         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
28547         (acquire_init_state_context, check_halt_node_context):
28548         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
28549         (sift_states_backward, clean_state_log_if_needed):
28550         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
28551         (find_recover_state, transit_state_sb, transit_state_mb):
28552         (transit_state_bkref, build_trtable, match_ctx_clean):
28553         Likewise.
28554         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
28555         to work around an assumption that REG_MISSING is negative.
28556
28557         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
28558         (seek_collating_symbol_entry) [defined _LIBC]:
28559         (lookup_collation_sequence_value) [defined _LIBC]:
28560         (build_range_exp, build_collating_symbol) [defined _LIBC]:
28561         Use prototypes rather than old-style function definitions.
28562         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
28563         (transit_state_sb) [0]:
28564         (find_collation_sequence_value) [defined _LIBC]: Likewise.
28565
28566         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
28567         rm_eo.
28568
28569         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
28570         (optimize_subexps, lower_subexp):
28571         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
28572         since the signed shift might overflow.  Use 1u<<31 instead.
28573         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28574         Likewise.
28575         * lib/regexec.c (check_dst_limits_calc_pos_1,
28576         check_subexp_matching_top): Likewise.
28577
28578         * lib/regcomp.c (optimize_subexps, lower_subexp):
28579         Use CHAR_BIT rather than 8, for clarity.
28580         * lib/regexec.c (check_dst_limits_calc_pos_1):
28581         (check_subexp_matching_top): Likewise.
28582         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
28583         have to worry about portability issues when shifting it left.
28584         Remove no-longer-needed test for table_size > 0.
28585         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
28586         in a word, as the resulting behavior is undefined.
28587         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
28588         in one case, a <= should have been an <, and in another case the
28589         whole test was missing.
28590         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
28591         the standard name CHAR_BIT.
28592         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
28593         this is not true on one's complement and signed-magnitude hosts.
28594
28595         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
28596         next_last_offset.
28597         (struct re_dfa_t): Remove unused member states_alloc.
28598         * lib/regcomp.c (init_dfa): Don't initialize unused members.
28599
28600 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28601
28602         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
28603         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
28604         and large-file glibc and in 32-bit large-file Solaris.
28605
28606 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28607
28608         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
28609         lengths fit in regoff_t; this isn't true if regoff_t is the same
28610         width as size_t.
28611         * lib/regex.c (re_search_internal): 5th arg is LAST_START
28612         (= START + RANGE) instead of RANGE.  This avoids overflow
28613         problems when regoff_t is the same width as size_t.
28614         All callers changed.
28615         (re_search_2_stub): Check for overflow when adding the
28616         sizes of the two strings.
28617         (re_search_stub): Check for overflow when adding START
28618         to RANGE; if it occurs, substitute the extreme value.
28619
28620 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28621
28622         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
28623
28624 2005-08-31  Jim Meyering  <jim@meyering.net>
28625
28626         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
28627         a pointer-to-const.
28628         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
28629         (register_state): Likewise.
28630         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
28631         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28632         (group_nodes_into_DFAstates): Likewise.
28633
28634 2005-08-31  Jim Meyering  <jim@meyering.net>
28635
28636         * check-module: Add a FIXME comment.
28637
28638 2005-08-31  Eric Blake  <ebb9@byu.net>
28639
28640         * modules/unistd-safer (Files): Add unistd--.h.
28641         * modules/stdio-safer (Files): Add stdio--.h.
28642
28643 2005-08-31  Derek Price  <derek@ximbiot.com>
28644
28645         * lib/getdelim.c (getdelim): Return EOF on EOF.
28646         Reported by Larry Jones <lawrence.jones@ugs.com>.
28647
28648 2005-08-31  Bruno Haible  <bruno@clisp.org>
28649
28650         Avoid unnecessary diffs in the generated lib/Makefile.am.
28651         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
28652         the generated files.
28653         (func_import): Don't set cmd.
28654
28655 2005-08-31  Bruno Haible  <bruno@clisp.org>
28656
28657         * lib/strstr.c: Include <stddef.h>, for NULL.
28658         * lib/strcasestr.c: Likewise.
28659         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28660
28661 2005-08-31  Bruno Haible  <bruno@clisp.org>
28662
28663         * gnulib-tool: New option --macro-prefix.
28664         (func_import): Use macro_prefix.
28665         (import): Handle option --macro-prefix.
28666
28667 2005-08-31  Bruno Haible  <bruno@clisp.org>
28668
28669         * gnulib-tool (import): Rename most ac_* variables to cached_*.
28670         Also use new variables cached_lgpl, cached_libtool.
28671
28672 2005-08-31  Bruno Haible  <bruno@clisp.org>
28673
28674         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
28675         always instantiating them.
28676
28677 2005-08-31  Bruno Haible  <bruno@clisp.org>
28678
28679         * gnulib-tool (func_import): Read the previous cached settings
28680         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
28681         earlier added by gnulib but are now dropped. Warn when a gnulib file
28682         overwrites a non-gnulib file.
28683
28684 2005-08-31  Bruno Haible  <bruno@clisp.org>
28685
28686         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
28687         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
28688         projects that don't keep autogenerated files in CVS. Put into
28689         actioncmd only the specified modules, not the transitive closure.
28690
28691 2005-08-31  Bruno Haible  <bruno@clisp.org>
28692
28693         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
28694         Create directories that shall be filled.
28695         (import): Don't look for gl_* macros in configure.ac. Recurse across
28696         all directories containing a gnulib-cache.m4 files, if meaningful.
28697
28698 2005-08-31  Bruno Haible  <bruno@clisp.org>
28699
28700         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
28701         (import): Set seen_libtool when we see gl_LIBTOOL.
28702
28703 2005-08-31  Bruno Haible  <bruno@clisp.org>
28704
28705         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
28706         declaration macro definitions from generated gnulib.m4.
28707
28708 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
28709
28710         * lib/iconvme.h: Add prototype for iconv_alloc.
28711
28712 2005-08-29  Simon Josefsson  <jas@extundo.com>
28713
28714         * lib/iconvme.c: Fix errno.
28715
28716 2005-08-29  Bruno Haible  <bruno@clisp.org>
28717
28718         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28719         that it works when the directory contains spaces.
28720
28721 2005-08-29  Bruno Haible  <bruno@clisp.org>
28722
28723         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28724
28725 2005-08-29  Bruno Haible  <bruno@clisp.org>
28726
28727         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28728         Emit more advice.
28729
28730 2005-08-29  Bruno Haible  <bruno@clisp.org>
28731         and Stepan Kasal  <kasal@ucw.cz>
28732
28733         * check-module: If more parameters are given, check each of them
28734         separately; add more exceptions, as noted by Jim Meyering.
28735         (check_module): New procedure.
28736         (%exempt_header): Now contains all exceptions.
28737
28738 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
28739
28740         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
28741
28742 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28743
28744         * lib/iconvme.c: Split iconv_string into iconv_alloc.
28745
28746 2005-08-28  Bruno Haible  <bruno@clisp.org>
28747
28748         * m4/gnulib-tool.m4: New file.
28749
28750 2005-08-27  Jim Meyering  <jim@meyering.net>
28751
28752         * modules/unistd-safer (Files): Add pipe-safer.c.
28753         * modules/fcntl-safer (Files): Add creat-safer.c.
28754
28755 2005-08-27  Jim Meyering  <jim@meyering.net>
28756
28757         * m4/stdlib-safer.m4: New file.  From coreutils.
28758         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
28759         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
28760         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
28761         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
28762         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
28763
28764 2005-08-27  Jim Meyering  <jim@meyering.net>
28765
28766         * lib/fopen-safer.c: Merge minor changes from coreutils.
28767         * lib/dup-safer.c: Likewise.
28768         * lib/fd-safer.c: Likewise.
28769
28770         Merge from coreutils.
28771         * lib/stdio--.h: New file.
28772         * lib/stdlib--.h: New file.
28773         * lib/mkstemp-safer.c: New file.
28774
28775         GNU tar needs these.
28776         * lib/pipe-safer.c: New file.
28777         * lib/creat-safer.c: New file.
28778         * lib/fcntl--.h (creat): Define to creat_safer.
28779         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
28780         * lib/unistd--.h (pipe): Define to pipe_safer.
28781         * lib/unistd-safer.h: Declare pipe_safer.
28782
28783 2005-08-26  Simon Josefsson  <jas@extundo.com>
28784
28785         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
28786         Haible <bruno@clisp.org>.
28787
28788 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
28789
28790         * lib/regex_internal.h: Remove all references to
28791         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
28792         or better.
28793         (bitset_not, bitset_merge, bitset_not_merge):
28794         (bitset_mask, re_string_allocate, re_string_construct):
28795         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
28796         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
28797         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
28798         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
28799         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28800         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28801         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
28802         (re_acquire_state_context):
28803         Remove unnecessary forward decls.
28804         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
28805         Put __attribute at function definition,
28806         now that the function decl has been removed.
28807         * lib/regex_internal.c (re_string_peek_byte_case):
28808         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
28809         Likewise.
28810
28811 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
28812
28813         * m4/regex.m4: Add AC_PREREQ(2.50).
28814         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
28815
28816 2005-08-25  Simon Josefsson  <jas@extundo.com>
28817
28818         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
28819         __fsetlocking.
28820
28821 2005-08-25  Simon Josefsson  <jas@extundo.com>
28822
28823         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
28824         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
28825         GLIBC specific code.
28826
28827 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28828
28829         Make regex safe for g++.  This fixes one real bug (an "err"
28830         that should have been "*err").  g++ problem reported by
28831         Sam Steingold.
28832         * lib/regex_internal.h (re_calloc): New macro, consistent with
28833         re_malloc etc.  All callers of calloc changed to use re_calloc.
28834         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
28835         not int.  All callers changed.
28836         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
28837         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
28838         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
28839         (find_recover_state): Change "err" to "*err"; this fixes what
28840         appears to be a real bug.
28841         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
28842         versus int.
28843
28844 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28845
28846         * modules/regex (Depends-on): Add malloc, since the code
28847         assumes that !malloc(0) means failure.
28848
28849 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28850
28851         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
28852
28853         alloca modernization/simplification for regex.
28854         * lib/regex.c: Remove portability cruft for alloca.  This no longer
28855         needs to be at the start of the file, and can be moved into
28856         regex_internal.h and simplified.
28857         * lib/regex_internal.h: Include <alloca.h>.
28858         (__libc_use_alloca) [!defined _LIBC]: New macro.
28859         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
28860         now works outside glibc.
28861
28862 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28863
28864         * config/srclist.txt: Add glibc bugs 1241, 1245.
28865
28866 2005-08-25  Jim Meyering  <jim@meyering.net>
28867
28868         * lib/open-safer.c: Include <config.h>.
28869         Otherwise, we'd lose LARGEFILE support in any file using
28870         e.g. "fcntl--.h"
28871
28872 2005-08-25  Bruno Haible  <bruno@clisp.org>
28873
28874         * m4/minmax.m4: Require autoconf 2.52.
28875         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
28876         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
28877         alternatives of translit over the alphabet.
28878         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
28879
28880 2005-08-24  Simon Josefsson  <jas@extundo.com>
28881
28882         * tests/test-getpass.c: New file.
28883
28884 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28885
28886         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
28887         for GNU regex features.
28888
28889 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28890
28891         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
28892         * lib/regex.h (regerror): Likewise.
28893
28894         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
28895         requires this.  (The code never needed it.)
28896
28897         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
28898         All uses of recently-renamed identifiers changed to use the new,
28899         POSIX-compliant names.  The code will build and run just fine
28900         without these changes, but it's better to eat our own dog food
28901         and use the standard-conforming names.
28902
28903         * lib/regex.h: Fix a multitude of POSIX name space violations.
28904         These changes have an effect only for programs that define
28905         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
28906         do not change anything for programs compiled in the normal way.
28907         Also, there is no effect on the ABI.
28908
28909         (_REGEX_SOURCE): New macro.
28910         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
28911         defined and _GNU_SOURCE is not; this fixes a name space violation.
28912
28913         Rename the following macros to obey POSIX requirements.
28914         The old names are still visible as macros if _REGEX_SOURCE is defined.
28915         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
28916         RE_BACKSLASH_ESCAPE_IN_LISTS.
28917         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
28918         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
28919         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
28920         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
28921         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
28922         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
28923         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
28924         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
28925         (REG_INTERVALS): renamed from RE_INTERVALS.
28926         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
28927         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
28928         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
28929         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
28930         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
28931         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
28932         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
28933         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
28934         RE_UNMATCHED_RIGHT_PAREN_ORD.
28935         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
28936         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
28937         (REG_DEBUG): renamed from RE_DEBUG.
28938         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
28939         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
28940         unusual, since we can't clash with the POSIX REG_ICASE.
28941         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
28942         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
28943         (REG_NO_SUB): renamed from RE_NO_SUB.
28944         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
28945         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
28946         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
28947         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
28948         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
28949         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
28950         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
28951         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
28952         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
28953         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
28954         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
28955         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
28956         RE_SYNTAX_POSIX_MINIMAL_BASIC.
28957         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
28958         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
28959         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
28960         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
28961         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
28962         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
28963         (REG_FIXED): Renamed from REGS_FIXED.
28964         (REG_NREGS): Renamed from RE_NREGS.
28965
28966         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
28967         of other REG_* macros, since POSIX says the user is allowed to
28968         #undef these macros selectively.
28969
28970         (reg_errcode_t): Update comment stating what other tables need
28971         to be consistent.
28972
28973         Rename the following enum values to obey POSIX requirements.
28974         The old names are still visible as macros.
28975         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
28976         is not defined, since GNU is supposed to be a superset of POSIX as
28977         much as possible, and since we want reg_errcode_t to be a signed
28978         type for implementation consistency.
28979         (_REG_NOERROR): Renamed from REG_NOERROR.
28980         (_REG_NOMATCH): Renamed from REG_NOMATCH.
28981         (_REG_BADPAT): Renamed from REG_BADPAT.
28982         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
28983         (_REG_ECTYPE): Renamed from REG_ECTYPE.
28984         (_REG_EESCAPE): Renamed from REG_EESCAPE.
28985         (_REG_ESUBREG): Renamed from REG_ESUBREG.
28986         (_REG_EBRACK): Renamed from REG_EBRACK.
28987         (_REG_EPAREN): Renamed from REG_EPAREN.
28988         (_REG_EBRACE): Renamed from REG_EBRACE.
28989         (_REG_BADBR): Renamed from REG_BADBR.
28990         (_REG_ERANGE): Renamed from REG_ERANGE.
28991         (_REG_ESPACE): Renamed from REG_ESPACE.
28992         (_REG_BADRPT): Renamed from REG_BADRPT.
28993         (_REG_EEND): Renamed from REG_EEND.
28994         (_REG_ESIZE): Renamed from REG_ESIZE.
28995         (_REG_ERPAREN): Renamed from REG_ERPAREN.
28996         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
28997         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
28998         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
28999         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
29000
29001         (_REG_RE_NAME, _REG_RM_NAME): New macros.
29002         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
29003         changed.  But support the old name if the new one is not defined
29004         and if _REGEX_SOURCE.
29005
29006         Change the following member names in struct re_pattern_buffer.
29007         The old names are still supported if !_REGEX_SOURCE.
29008         The new names are always supported, regardless of _REGEX_SOURCE.
29009         (re_buffer): Renamed from buffer.
29010         (re_allocated): Renamed from allocated.
29011         (re_used): Renamed from used.
29012         (re_syntax): Renamed from syntax.
29013         (re_fastmap): Renamed from fastmap.
29014         (re_translate): Renamed from translate.
29015         (re_can_be_null): Renamed from can_be_null.
29016         (re_regs_allocated): Renamed from regs_allocated.
29017         (re_fastmap_accurate): Renamed from fastmap_accurate.
29018         (re_no_sub): Renamed from no_sub.
29019         (re_not_bol): Renamed from not_bol.
29020         (re_not_eol): Renamed from not_eol.
29021         (re_newline_anchor): Renamed from newline_anchor.
29022
29023         Change the following member names in struct re_registers.
29024         The old names are still supported if !_REGEX_SOURCE.
29025         The new names are always supported, regardless of _REGEX_SOURCE.
29026         (rm_num_regs): Renamed from num_regs.
29027         (rm_start): Renamed from start.
29028         (rm_end): Renamed from end.
29029
29030         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
29031         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
29032         Prepend __ to parameter names.
29033
29034         Undo yesterday's changes.
29035
29036 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29037
29038         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
29039         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
29040         lib/regex.c.
29041
29042 2005-08-24  Jim Meyering  <jim@meyering.net>
29043
29044         Sync from coreutils.
29045         * m4/fcntl-safer.m4: New file.
29046
29047         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
29048         and object files for this module.
29049
29050 2005-08-24  Jim Meyering  <jim@meyering.net>
29051
29052         Sync from coreutils.
29053         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
29054
29055 2005-08-24  Jim Meyering  <jim@meyering.net>
29056
29057         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
29058         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
29059
29060 2005-08-24  Jim Meyering  <jim@meyering.net>
29061
29062         * modules/fcntl-safer: New module.
29063         * modules/fts (Depends-on): Add fcntl-safer.
29064         * MODULES.html.sh (File descriptor based Input/Output):
29065         Add fcntl-safer.
29066
29067 2005-08-24  Bruno Haible  <bruno@clisp.org>
29068
29069         Support for unit test modules.
29070         * modules/README: Mention tests modules.
29071         * modules/TEMPLATE-TESTS: New file.
29072         * gnulib-tool: New options --extract-tests-module, --with-tests and
29073         --tests-base (unused for the moment).
29074         (testsbase, inctests): New variables.
29075         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
29076         (func_verify_module): Exclude TEMPLATE-TESTS.
29077         (func_verify_nontests_module, func_verify_tests_module): New functions.
29078         (func_get_dependencies): Add implicit dependency for tests modules.
29079         (func_get_tests_module): New function.
29080         (func_modules_transitive_closure): When --with-tests was specified,
29081         include the unit tests as well, unless explicitly avoided.
29082         (func_emit_lib_Makefile_am): Ignore the tests modules here.
29083         (func_emit_tests_Makefile_am): New function.
29084         (func_create_testdir): When --with-tests was specified, emit a
29085         tests/ directory.
29086         * MODULES.html.sh (Future developments): Update.
29087
29088 2005-08-24  Bruno Haible  <bruno@clisp.org>
29089
29090         * modules/tls-tests: New file.
29091         * tests/test-tls.c: New file, from GNU gettext.
29092
29093 2005-08-24  Bruno Haible  <bruno@clisp.org>
29094
29095         * modules/lock-tests: New file.
29096         * tests/test-lock.c: New file, from GNU gettext.
29097
29098 2005-08-24  Bruno Haible  <bruno@clisp.org>
29099
29100         * lib/lock.h: Add multiple inclusion guard.
29101         * lib/tls.h: Add multiple inclusion guard.
29102
29103 2005-08-24  Bruno Haible  <bruno@clisp.org>
29104
29105         * gnulib-tool: Add support for the --aux-dir option to
29106         --create-testdir, --create-megatestdir, --test, --megatest.
29107         (func_create_testdir, func_create_megatestdir): Optionally emit a
29108         AC_CONFIG_AUX_DIR directive.
29109         (create-testdir, create-megatestdir, test, megatest): Provide a
29110         default value for $auxdir.
29111
29112 2005-08-24  Bruno Haible  <bruno@clisp.org>
29113
29114         * gnulib-tool (import): Use compound statement instead of subshell
29115         where possible.
29116
29117 2005-08-24  Bruno Haible  <bruno@clisp.org>
29118
29119         * gnulib-tool (import): Change --aux-dir default to "build-aux".
29120
29121 2005-08-24  Bruno Haible  <bruno@clisp.org>
29122
29123         * gnulib-tool (func_version): Update.
29124
29125 2005-08-24  Bruno Haible  <bruno@clisp.org>
29126
29127         * gnulib-tool (func_import, func_create_testdir,
29128         func_create_megatestdir): Quote all autoconf macro arguments.
29129
29130 2005-08-24  Bruno Haible  <bruno@clisp.org>
29131
29132         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
29133         option --force, because --force causes the aclocal.m4 of each
29134         subdirectory to be newer than the corresponding config.h.in.
29135
29136 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29137
29138         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
29139         All contents moved to gl_REGEX.
29140         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
29141         assume that it does.
29142
29143 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29144
29145         * lib/regex.h (REG_NOSYS)
29146         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
29147         Define, since POSIX requires it as of 2001.
29148         (_REG_ENOSYS)
29149         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
29150         New private symbol, used to keep the enum signed in all cases.
29151         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
29152         Youngman in
29153         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
29154
29155         * lib/regex_internal.c (re_string_skip_chars, register_state):
29156         (calc_state_hash):
29157         Remove forward decls; no longer needed now that we use prototypes.
29158         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
29159         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
29160         (clean_state_log_if_needed): Likewise.
29161
29162 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29163
29164         * config/srclist.txt: Add glibc bugs 1231-1233.
29165
29166 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29167
29168         Fix problems reported by Sam Steingold in
29169         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
29170         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
29171         assumed that reg_errcode_t is a signed type, which is not
29172         necessarily true if _XOPEN_SOURCE is not defined.
29173         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
29174         since some compilers warn about it otherwise.
29175
29176 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29177
29178         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
29179         (init_word_char, create_initial_state, duplicate_node_closure):
29180         (fetch_token, peek_token_bracket, build_range_exp):
29181         (build_collating_symbol): Remove forward decls; no longer needed
29182         now that we use prototypes.
29183
29184         * lib/regcomp.c:
29185         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
29186         (re_compile_fastmap_iter, regcomp, regerror, regfree):
29187         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
29188         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
29189         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
29190         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
29191         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
29192         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
29193         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
29194         (build_range_exp, build_collating_symbol, parse_bracket_exp):
29195         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
29196         (build_charclass, build_charclass_op, fetch_number, create_tree):
29197         (create_token_tree, mark_opt_subexp, duplicate_tree):
29198         Use prototypes rather than old-style definitions.
29199
29200         * lib/regex_internal.c:
29201         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
29202         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
29203         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29204         (re_string_reconstruct, re_string_peek_byte_case):
29205         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
29206         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29207         (re_node_set_init_copy, re_node_set_add_intersect):
29208         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29209         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29210         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29211         (re_acquire_state, re_acquire_state_context, register_state):
29212         (create_ci_newstate, create_cd_newstate, free_state):
29213         Likewise.
29214         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
29215         re_search_2):
29216         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
29217         (re_search_internal, prune_impossible_nodes):
29218         (acquire_init_state_context, check_matching, static):
29219         (check_halt_node_context, check_halt_state_context, proceed_next_node):
29220         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
29221         (update_regs, sift_states_backward, build_sifted_states):
29222         (clean_state_log_if_needed, merge_state_array):
29223         (update_cur_sifted_state, add_epsilon_src_nodes):
29224         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
29225         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
29226         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
29227         (find_recover_state, check_subexp_matching_top, transit_state_mb):
29228         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
29229         (check_arrival, check_arrival_add_next_nodes):
29230         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29231         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29232         (check_node_accept_bytes, check_node_accept, extend_buffers):
29233         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
29234         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
29235         (sift_ctx_init):
29236         Likewise.
29237
29238         * lib/regex_internal.h:
29239         (re_string_allocate, re_string_construct, re_string_reconstruct):
29240         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
29241         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
29242         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
29243         (re_string_context_at, re_string_peek_byte_case):
29244         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
29245         is defined, since we now use prototypes always.
29246
29247         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
29248         C89 or better.  All uses removed.
29249
29250 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29251
29252         * config/srclist.txt: Add glibc bugs 1220-1227.
29253
29254 2005-08-20  Jim Meyering  <jim@meyering.net>
29255
29256         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
29257         of unused local, dfa.
29258
29259 2005-08-20  Bruno Haible  <bruno@clisp.org>
29260
29261         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
29262
29263 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29264
29265         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
29266         (re_node_set_insert_last, re_dfa_add_node):
29267         Rename local variables to avoid GCC shadowing warnings.
29268
29269 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29270
29271         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
29272         [defined lint]: Suppress bogus uninitialized-variable warnings.
29273
29274         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
29275         and let the caller return REG_ESPACE if out of space.  This
29276         removes an uninitialied-variable warning with GCC 4.0.1, and also
29277         avoids taking the address of a local variable.  All callers
29278         changed.
29279
29280 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29281
29282         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
29283         $LIBCSRC/posix/regexec.c.
29284         Add glibc bug 1217 for regcomp.c.
29285
29286 2005-08-19  Jim Meyering  <jim@meyering.net>
29287
29288         * lib/regexec.c (proceed_next_node): Redo local variables to
29289         avoid GCC shadowing warnings.
29290
29291 2005-08-18  Bruno Haible  <bruno@clisp.org>
29292
29293         * lib/strstr.c (strstr): Fix return value in multibyte case.
29294         * lib/strcasestr.c (strcasestr): Likewise.
29295
29296 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29297
29298         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
29299
29300 2005-08-17  Jim Meyering  <jim@meyering.net>
29301
29302         Make the %s format (seconds since the epoch) work for a negative
29303         number and when used with a zero-padded field width, e.g. %015s.
29304
29305         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
29306         label so that it precedes the code to set `digits'.  Otherwise,
29307         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29308         print `00-22'.  Now, it prints `-0022', as it should.
29309
29310 2005-08-17  Bruno Haible  <bruno@clisp.org>
29311
29312         * modules/strstr (Files): Add m4/mbrtowc.m4.
29313         (Depends-on): Add mbuiter.
29314
29315 2005-08-17  Bruno Haible  <bruno@clisp.org>
29316
29317         * modules/strcasestr: New file.
29318         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29319         strcasestr.
29320
29321 2005-08-17  Bruno Haible  <bruno@clisp.org>
29322
29323         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29324
29325 2005-08-17  Bruno Haible  <bruno@clisp.org>
29326
29327         * modules/mbuiter: New file.
29328         * MODULES.html.sh (Extended multibyte and wide character utilities):
29329         Add mbuiter.
29330
29331 2005-08-17  Bruno Haible  <bruno@clisp.org>
29332
29333         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29334         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29335
29336 2005-08-17  Bruno Haible  <bruno@clisp.org>
29337
29338         * m4/strcasestr.m4: New file.
29339
29340 2005-08-17  Bruno Haible  <bruno@clisp.org>
29341
29342         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29343         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29344
29345 2005-08-17  Bruno Haible  <bruno@clisp.org>
29346
29347         * lib/strcasestr.h: New file.
29348         * lib/strcasestr.c: New file.
29349
29350 2005-08-17  Bruno Haible  <bruno@clisp.org>
29351
29352         * lib/strcasecmp.c: Use mbuiter.h.
29353
29354 2005-08-17  Bruno Haible  <bruno@clisp.org>
29355
29356         * lib/mbuiter.h: New file.
29357
29358 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29359
29360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29361         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29362         and gl_GETOPT are both invoked via different paths (as happens
29363         with GNU tar CVS because it uses both argp and getopt), the former
29364         wins.
29365
29366 2005-08-16  Bruno Haible  <bruno@clisp.org>
29367
29368         * modules/tls: New file.
29369         * MODULES.html.sh (Multithreading): Add tls.
29370
29371 2005-08-16  Bruno Haible  <bruno@clisp.org>
29372
29373         * modules/strnlen1: New file.
29374         * MODULES.html.sh (String handling): Add strnlen1.
29375
29376 2005-08-16  Bruno Haible  <bruno@clisp.org>
29377
29378         * modules/strcase (Files): Add m4/mbrtowc.m4.
29379         (Depends-on): Add strnlen1, mbchar.
29380
29381 2005-08-16  Bruno Haible  <bruno@clisp.org>
29382
29383         * modules/mbiter: New file.
29384         * MODULES.html.sh (Extended multibyte and wide character utilities):
29385         Add mbiter.
29386
29387 2005-08-16  Bruno Haible  <bruno@clisp.org>
29388
29389         * modules/mbfile: New file.
29390         * MODULES.html.sh (Extended multibyte and wide character utilities):
29391         Add mbfile.
29392
29393 2005-08-16  Bruno Haible  <bruno@clisp.org>
29394
29395         * modules/mbchar: New file.
29396         * MODULES.html.sh (Extended multibyte and wide character utilities):
29397         New section.
29398
29399 2005-08-16  Bruno Haible  <bruno@clisp.org>
29400
29401         * m4/tls.m4: New file, from GNU gettext.
29402
29403 2005-08-16  Bruno Haible  <bruno@clisp.org>
29404
29405         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29406         always.
29407         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
29408
29409 2005-08-16  Bruno Haible  <bruno@clisp.org>
29410
29411         * m4/mbiter.m4: New file.
29412
29413 2005-08-16  Bruno Haible  <bruno@clisp.org>
29414
29415         * m4/mbfile.m4: New file.
29416
29417 2005-08-16  Bruno Haible  <bruno@clisp.org>
29418
29419         * m4/mbchar.m4: New file.
29420
29421 2005-08-16  Bruno Haible  <bruno@clisp.org>
29422
29423         * lib/tls.h: New file, from GNU gettext.
29424         * lib/tls.c: New file, from GNU gettext.
29425
29426 2005-08-16  Bruno Haible  <bruno@clisp.org>
29427
29428         * lib/strnlen1.h: New file.
29429         * lib/strnlen1.c: New file.
29430
29431 2005-08-16  Bruno Haible  <bruno@clisp.org>
29432
29433         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29434         (mbi_init): Update.
29435         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29436         NUL byte, not after it.
29437
29438 2005-08-16  Bruno Haible  <bruno@clisp.org>
29439
29440         * lib/strcase.h (strcasecmp): Add note in comments.
29441         * lib/strncasecmp.c: Use code from strcasecmp.c.
29442         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29443         (strcasecmp): Work correctly in multibyte locales.
29444
29445 2005-08-16  Bruno Haible  <bruno@clisp.org>
29446
29447         * lib/mbiter.h: New file.
29448
29449 2005-08-16  Bruno Haible  <bruno@clisp.org>
29450
29451         * lib/mbfile.h: New file.
29452
29453 2005-08-16  Bruno Haible  <bruno@clisp.org>
29454
29455         * lib/mbchar.h: New file.
29456         * lib/mbchar.c: New file.
29457
29458 2005-08-16  Bruno Haible  <bruno@clisp.org>
29459
29460         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
29461         the valid ones. Makes the comparison operations transitive:
29462         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
29463         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
29464
29465 2005-08-15  Simon Josefsson  <jas@extundo.com>
29466
29467         * modules/ssize_t (License): Change to 'unlimited'.
29468
29469         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
29470
29471 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29472
29473         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
29474         Add comments for each pending glibc patch.
29475
29476 2005-08-15  Bruno Haible  <bruno@clisp.org>
29477
29478         * lib/regex.h (__restrict_arr): Don't define to __restrict if
29479         __cplusplus is defined.
29480
29481 2005-08-14  Jim Meyering  <jim@meyering.net>
29482
29483         Sync from coreutils.
29484
29485         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
29486         Use the hash-table-based cycle-detection code not just when
29487         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
29488         Reported by James Youngman in
29489         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
29490         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
29491         FTS_TIGHT_CYCLE_CHECK.
29492         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
29493         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
29494         once again.
29495         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
29496         * lib/fts.c (fd_safer): Remove decl.
29497         Include fcntl--.h rather than unistd-safer.h
29498         (fts_safe_changedir): Don't call fd_safer; no longer needed
29499         now that we include fcntl--.h.
29500
29501 2005-08-12  Simon Josefsson  <jas@extundo.com>
29502
29503         * modules/getndelim2: Use ssize_t module.
29504         * modules/getnline: Likewise.
29505         * modules/safe-read: Likewise.
29506         * modules/xreadlink: Likewise.
29507
29508         * modules/ssize_t: New file.
29509
29510 2005-08-12  Simon Josefsson  <jas@extundo.com>
29511
29512         * m4/readline.m4: Look for termcap, curses or ncurses if required.
29513
29514 2005-08-12  Simon Josefsson  <jas@extundo.com>
29515
29516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29517         ssize_t.
29518
29519 2005-08-12  Simon Josefsson  <jas@extundo.com>
29520
29521         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
29522         readline, getdelim and check_version.
29523         (Support for systems lacking ISO C 99: Sizes of integer types):
29524         Add size_max.
29525
29526 2005-08-12  Bruno Haible  <bruno@clisp.org>
29527
29528         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
29529
29530 2005-08-11  Simon Josefsson  <jas@extundo.com>
29531
29532         * modules/readline: New file.
29533
29534         * modules/strnlen (Files): Add strnlen.h.
29535
29536 2005-08-11  Simon Josefsson  <jas@extundo.com>
29537
29538         * m4/readline.m4: New file.
29539
29540 2005-08-11  Simon Josefsson  <jas@extundo.com>
29541
29542         * lib/readline.h, readline.c: New file.
29543
29544 2005-08-11  Simon Josefsson  <jas@extundo.com>
29545
29546         * doc/gnulib.texi (Initial import, Finishing touches): Mention
29547         gl_AVOID.
29548
29549 2005-08-11  Bruno Haible  <bruno@clisp.org>
29550
29551         * lib/strnlen.h (strnlen): Change parameter name to match comment.
29552
29553 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
29554
29555         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
29556
29557 2005-08-10  Simon Josefsson  <jas@extundo.com>
29558
29559         * tests/test-iconvme.c: New file.
29560
29561 2005-08-10  Simon Josefsson  <jas@extundo.com>
29562
29563         * m4/strnlen.m4: New file.
29564
29565         * m4/strndup.m4: Don't check for strnlen declaration, done in
29566         strnlen.m4.
29567
29568 2005-08-10  Simon Josefsson  <jas@extundo.com>
29569
29570         * lib/strndup.c: Use strnlen.h.
29571
29572         * lib/strnlen.h: New file.
29573
29574 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29575
29576         * README: Typos.
29577
29578 2005-08-02  Simon Josefsson  <jas@extundo.com>
29579
29580         * modules/readline: New file.
29581
29582 2005-08-02  Simon Josefsson  <jas@extundo.com>
29583
29584         * modules/getdelim: New file.
29585
29586         * modules/getline: Rewrite, don't use getndelim2.
29587
29588 2005-08-02  Simon Josefsson  <jas@extundo.com>
29589
29590         * m4/getline.m4: Separate out getdelim stuff into separate module.
29591
29592         * m4/getdelim.m4: New file.
29593
29594 2005-08-02  Simon Josefsson  <jas@extundo.com>
29595
29596         * lib/getline.h, getline.c: Rewrite.
29597
29598         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
29599
29600 2005-07-31  Bruno Haible  <bruno@clisp.org>
29601
29602         * lib/lock.h (gl_lock_initializer): New macro.
29603         (gl_lock_define_initialized): Use it.
29604         (gl_rwlock_initializer): New macro.
29605         (gl_rwlock_define_initialized): Use it.
29606         (gl_recursive_lock_initializer): New macro.
29607         (gl_recursive_lock_define_initialized): Use it.
29608
29609 2005-07-30  Karl Berry  <karl@gnu.org>
29610
29611         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
29612         Report from Ben Pfaff, regarding getopt.
29613
29614 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
29615
29616         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
29617         normal way.
29618         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
29619         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
29620         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
29621         (gl_GETOPT): Use the new macros.  Most of the implementation
29622         is moved to the new macros.  This is for programs like Emacs
29623         that don't want all the functionality of gl_GETOPT.
29624
29625 2005-07-26  Bruno Haible  <bruno@clisp.org>
29626
29627         * m4/lock.m4: Update from GNU gettext.
29628
29629 2005-07-26  Bruno Haible  <bruno@clisp.org>
29630
29631         * lib/lock.h: Update from GNU gettext.
29632         * lib/lock.c: Update from GNU gettext.
29633
29634 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29635
29636         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
29637         obsolescent AC_TRY_RUN.  Include the default includes files, for
29638         'exit'.
29639
29640 2005-07-24  Bruno Haible  <bruno@clisp.org>
29641
29642         * modules/visibility: New file.
29643         * MODULES.html.sh (Misc): Add visibility.
29644
29645 2005-07-24  Bruno Haible  <bruno@clisp.org>
29646
29647         * m4/visibility.m4: New file.
29648
29649 2005-07-24  Bruno Haible  <bruno@clisp.org>
29650
29651         * doc/visibility.texi: New file.
29652
29653 2005-07-22  Bruno Haible  <bruno@clisp.org>
29654
29655         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
29656         $(ALLOCA_H), redundant through BUILT_SOURCES.
29657         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
29658         redundant through BUILT_SOURCES.
29659         * modules/byteswap (Makefile.am): Remove explicit dependency on
29660         $(BYTESWAP_H), redundant through BUILT_SOURCES.
29661         * modules/fnmatch (Makefile.am): Remove explicit dependency on
29662         $(FNMATCH_H), redundant through BUILT_SOURCES.
29663         * modules/getopt (Makefile.am): Remove explicit dependency on
29664         $(GETOPT_H), redundant through BUILT_SOURCES.
29665         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
29666         redundant through BUILT_SOURCES.
29667         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
29668         redundant through BUILT_SOURCES.
29669         * modules/stdbool (Makefile.am): Remove explicit dependency on
29670         $(STDBOOL_H), redundant through BUILT_SOURCES.
29671         * modules/stdint (Makefile.am): Remove explicit dependency on
29672         $(STDINT_H), redundant through BUILT_SOURCES.
29673         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
29674         Remove explicit dependency on $(SYSEXITS_H).
29675         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
29676
29677 2005-07-18  Simon Josefsson  <jas@extundo.com>
29678
29679         * lib/check-version.c (check_version): Accept identical versions too.
29680
29681 2005-07-18  Bruno Haible  <bruno@clisp.org>
29682
29683         * modules/lock: New file.
29684         * MODULES.html.sh (Multithreading): New section.
29685
29686 2005-07-18  Bruno Haible  <bruno@clisp.org>
29687
29688         * m4/lock.m4: New file, from GNU gettext.
29689
29690 2005-07-18  Bruno Haible  <bruno@clisp.org>
29691
29692         * lib/lock.h: New file, from GNU gettext.
29693         * lib/lock.c: New file, from GNU gettext.
29694
29695 2005-07-18  Bruno Haible  <bruno@clisp.org>
29696
29697         * lib/lock.h (gl_once_t): New type.
29698         (gl_once_define, gl_once): New macros.
29699         * lib/lock.c (fresh_once): New variable.
29700         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
29701         functions.
29702
29703 2005-07-16  Simon Josefsson  <jas@extundo.com>
29704
29705         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
29706         workaround, suggested by Bruno.
29707
29708 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29709
29710         * modules/xalloc (Depends-on): Add xalloc-die.
29711         * modules/xvasprintf (Depends-on): Add xalloc-die.
29712
29713 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29714
29715         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
29716         with a minor change.
29717
29718 2005-07-15  Bruno Haible  <bruno@clisp.org>
29719
29720         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29721         When using lib/poll.c, define poll as rpl_poll.
29722
29723 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29724
29725         * modules/argp (Depends-on): Remove unlocked-io.
29726
29727 2005-07-14  Derek Price  <derek@ximbiot.com>
29728
29729         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29730         for glob symlink bug.
29731
29732 2005-07-14  Bruno Haible  <bruno@clisp.org>
29733
29734         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
29735         Instead, test for *_unlocked function declarations directly.
29736
29737 2005-07-11  Simon Josefsson  <jas@extundo.com>
29738
29739         * modules/size_max: New file.
29740
29741         * modules/xsize: Depend on size_max module for size_max.m4.
29742
29743 2005-07-11  Simon Josefsson  <jas@extundo.com>
29744
29745         * lib/size_max.h: New file.
29746
29747 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29748
29749         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
29750         copyright symbol and the year.
29751         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
29752         (version_etc_va): Use parameterized copyright notice.
29753         Reword to conform to the current GNU coding standards.
29754
29755 2005-07-11  Karl Berry  <karl@gnu.org>
29756
29757         * doc/gnulib.texi (Quoting): new node.
29758         (Initial import): more info, from Patrice.
29759
29760 2005-07-11  Bruno Haible  <bruno@clisp.org>
29761
29762         * gnulib-tool (func_usage): Document option --avoid.
29763         (Command line options): Handle --avoid.
29764         (func_acceptable): New function.
29765         (func_modules_transitive_closure): Use it.
29766
29767 2005-07-11  Bruno Haible  <bruno@clisp.org>
29768
29769         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
29770         Reported by Jim Meyering.
29771
29772 2005-07-10  Bruno Haible  <bruno@clisp.org>
29773
29774         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
29775         Needed when size_t is smaller than 'unsigned int'.
29776         Reported by Paul Eggert.
29777
29778 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29779
29780         * modules/argp (Depends-on): Add unlocked-io
29781
29782 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29783
29784         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
29785         block of defines.
29786
29787 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29788
29789         * config/srclist.txt: Comment out regcomp.c, since we have a porting
29790         fix now.
29791
29792 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
29793         and Paul Eggert  <eggert@cs.ucla.edu>
29794
29795         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
29796         in wint_t, not wchar_t.  Remove now-unnecessary cast.
29797
29798 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29799
29800         * modules/regex (Files): Add lib/regex_internal.c,
29801         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
29802         (Depends-on): Add extensions.
29803         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
29804
29805 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29806
29807         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
29808         pathconf.
29809         * m4/same.m4 (gl_SAME): Likewise.
29810         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
29811
29812         * m4/regex.m4: Adjust to new libc regex implementation.
29813         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
29814         all the .c and .h parts of (the new) regex.
29815         Quote the m4 stuff better.
29816         Check for RE_ICASE bug of old gnulib.
29817         Check for REG_STARTEND of recent libc.
29818         Rename local variables from jm_* to gl_*.
29819         Quote operand of "test -f".
29820         Say "recent enough" version of libc, not "version 2".
29821         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
29822         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
29823         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
29824         Remove check for btowc, isascii.
29825         Require AM_LANGINFO_CODESET.
29826
29827 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29828
29829         * lib/regex.c, regex.h: Sync from libc.
29830         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
29831         * lib/regexec.c:
29832         New files, synced from libc, except that regex_internal.h
29833         currently has a small porting fix.
29834
29835 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29836
29837         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
29838         regex_internal.c, regexec.c.
29839         Add regex_internal.h too, but as a comment, since the libc version
29840         is currently broken in gnulib mode.
29841
29842 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29843
29844         Support programs like Emacs that use gnulib but not gettext.
29845         * MODULES.html.sh (Internationalization functions): Add gettext-h.
29846         * modules/gettext-h: New file.
29847         * modules/gettext (Files): Remove lib/gettext.h.
29848         (Depends-on): Add gettext-h.
29849         (Makefile.am): Remove lib_SOURCES.
29850         * modules/argmatch, modules/c-stack, modules/closeout:
29851         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
29852         * modules/execute, modules/file-type, modules/getaddrinfo:
29853         * modules/getopt, modules/human, modules/javacomp:
29854         * modules/javaexec, modules/mkdir-p, modules/obstack:
29855         * modules/openat, modules/pagealign_alloc, modules/pipe:
29856         * modules/quotearg, modules/regex, modules/rpmatch:
29857         * modules/unicodeio, modules/userspec, modules/version-etc:
29858         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
29859         * modules/xsetenv:
29860         Depend on gettext-h, not gettext.
29861
29862 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29863
29864         * gnulib-tool (func_import): Add support for 'public domain' license.
29865         * modules/alloca, modules/atexit, modules/memmove:
29866         Now public domain, not GPL.
29867         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
29868         * modules/realloc, modules/strerror, modules/strtod:
29869         Now LGPL, not GPL.
29870
29871 2005-07-05  Bruno Haible  <bruno@clisp.org>
29872
29873         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
29874         autoconf CVS. Needed for mingw.
29875
29876 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29877
29878         Remove the dependency of the strftime module on the tzset module.
29879         * modules/strftime (Depends-on): Remove dependency on tzset.
29880
29881 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29882
29883         Remove the dependency of the strftime module on the tzset module.
29884         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
29885         gl_FUNC_TZSET_CLOBBER.
29886
29887 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29888
29889         Remove the dependency of the strftime module on the tzset module.
29890         * lib/strftime.c (my_strftime)
29891         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
29892         Copy the input structure, to work around some of the bug with
29893         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
29894         Solaris releases, you should also use the tzset module, but we won't
29895         require it as a dependency any more since we don't want LGPLed code
29896         to depend on GPLed code.
29897
29898 2005-07-02  Jim Meyering  <jim@meyering.net>
29899
29900         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
29901         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
29902         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
29903         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
29904
29905 2005-07-02  Jim Meyering  <jim@meyering.net>
29906
29907         * lib/backupfile.c (backup_args): Change a `0' to NULL.
29908
29909 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
29910
29911         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
29912         declares only 'struct timespec;' (!).
29913
29914 2005-07-01  Jim Meyering  <jim@meyering.net>
29915
29916         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
29917         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
29918         * lib/save-cwd.c, tempname.c:
29919         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29920         and don't include <sys/file.h>).
29921
29922 2005-06-29  Jim Meyering  <jim@meyering.net>
29923
29924         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
29925         type name.  Use the variable name instead.
29926         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
29927         Likewise.
29928
29929 2005-06-28  Simon Josefsson  <jas@extundo.com>
29930
29931         * modules/check-version (Files): Add check-version.m4.
29932
29933 2005-06-28  Simon Josefsson  <jas@extundo.com>
29934
29935         * m4/check-version.m4: New file, suggested by Jim Meyering
29936         <jim@meyering.net>.
29937
29938 2005-06-28  Simon Josefsson  <jas@extundo.com>
29939
29940         * lib/check-version.h, lib/check-version.c: New files.
29941
29942 2005-06-28  Simon Josefsson  <jas@extundo.com>
29943
29944         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
29945         collision with global variable.  Better indentation.  Don't
29946         increment buffer pointer beyond buffer end.  Based on comments
29947         from Paul Eggert <eggert@cs.ucla.edu>.
29948
29949         * lib/base64.h: Indent.
29950
29951 2005-06-28  Simon Josefsson  <jas@extundo.com>
29952
29953         * doc/gnulib.texi (Library version handling): New section.
29954
29955 2005-06-28  Jim Meyering  <jim@meyering.net>
29956
29957         * check-module (find_included_lib_files): Hard-code another
29958         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
29959         but modules/fts-lgpl (correctly) does not list those files.
29960
29961         * modules/canonicalize (Files): Add lib/pathmax.h.
29962
29963 2005-06-25  Simon Josefsson  <jas@extundo.com>
29964
29965         * modules/check-version: New file.
29966
29967 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
29968
29969         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
29970         initializer of struct addrinfo, as an indication that we don't
29971         care how many members the structure has.
29972
29973 2005-06-24  Derek Price  <derek@ximbiot.com>
29974         and Bruno Haible  <bruno@clisp.org>
29975
29976         Remove stat module & update lstat.
29977         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
29978         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29979         * m4/stat.m4: Remove this file.
29980
29981 2005-06-24  Derek Price  <derek@ximbiot.com>
29982         and Bruno Haible  <bruno@clisp.org>
29983
29984         Remove stat module & update lstat.
29985         * lib/stat.c: Remove this file...
29986         (slash_aware_lstat): ...moving this content and its support...
29987         * lib/lstat.c (rpl_lstat): ...into here.
29988         * lib/lstat.h: New file.
29989
29990 2005-06-24  Derek Price  <derek@ximbiot.com>
29991         and Bruno Haible  <bruno@clisp.org>
29992
29993         Remove stat module & update lstat.
29994         * config/srclist.txt (libc sources): Remove stat.
29995
29996 2005-06-24  Derek Price  <derek@ximbiot.com>
29997         and Bruno Haible  <bruno@clisp.org>
29998
29999         Remove stat module & update lstat.
30000         * MODULES.html.sh (stat): Remove.
30001         * MODULES.html: Regenerated.
30002         * modules/lstat (Description): Correct function name.
30003         (Files): Add "lstat.h".
30004         (Depends-on): Remove stat, add xalloc, stat-macros.
30005         * modules/stat: Remove this file.
30006         (Include): Add "lstat.h", remove <sys/stat.h>.
30007
30008 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30009
30010         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
30011         (ranged_convert): Don't save conversion in a temporary struct.
30012         This causes a warning with GCC 4.0.0, and anyway in the typical
30013         case it's not worth the extra 100 bytes or so of code.
30014         (ranged_convert, __mktime_internal): When calling a function via a
30015         pointer P, use P () rather than (*P) (), as we now assume C89 or
30016         better.
30017
30018 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30019
30020         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
30021         "who -r" failed to give output.  Problem reported by Tim Waugh.
30022
30023         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
30024         (xcalloc): Use it to avoid needless tests.
30025         Problem reported by Jim Meyering.
30026
30027 2005-06-20  Derek Price  <derek@ximbiot.com>
30028
30029         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
30030         unnecessary for Autoconfs > 2.59c.
30031
30032 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30033
30034         * lib/argp.h (__option_is_short): Check upper limit of
30035         __key. Isprint() requires its argument to have the value
30036         of an unsigned char or EOF.
30037
30038 2005-06-16  Jim Meyering  <jim@meyering.net>
30039
30040         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
30041         when either N or S is zero.
30042
30043 2005-06-16  Derek Price  <derek@ximbiot.com>
30044
30045         * m4/bison.m4: Declare YACC & YFLAGS precious.
30046
30047 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
30048
30049         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
30050         multibyte string or pattern, fall back on unibyte matching.
30051         Problem reported by James Youngman.
30052
30053 2005-06-08  Bruno Haible  <bruno@clisp.org>
30054
30055         * modules/csharpcomp: New file.
30056         * MODULES.html.sh (C#): Add csharpcomp.
30057
30058 2005-06-08  Bruno Haible  <bruno@clisp.org>
30059
30060         * m4/csharpcomp.m4: New file, from GNU gettext.
30061
30062 2005-06-08  Bruno Haible  <bruno@clisp.org>
30063
30064         * lib/csharpcomp.h: New file, from GNU gettext.
30065         * lib/csharpcomp.c: New file, from GNU gettext.
30066         * lib/csharpcomp.sh.in: New file, from GNU gettext.
30067
30068 2005-06-08  Bruno Haible  <bruno@clisp.org>
30069
30070         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
30071         warning on mingw.
30072
30073 2005-06-07  Derek Price  <derek@ximbiot.com>
30074
30075         Sync from CVS.
30076         * lib/glob_.h: Indent nested #ifdef.
30077
30078 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30079
30080         Sync from coreutils.
30081         Use "file name" when talking about file names, instead of "filename"
30082         or "path", as per the GNU coding standards.
30083         * lib/mkdir-p.c: Renamed from makepath.c.
30084         (make_dir_parents): Renamed from make_path.  All callers changed.
30085         * lib/mkdir-p.h: Likewise.  All includers changed.
30086         * lib/filenamecat.c: Renamed from path-concat.c.
30087         (file_name_concat): Renamed from path_concat.  All callers changed.
30088         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
30089         * lib/filenamecat.h: Likewise.  All includers changed.
30090         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
30091         in comments or local variable names.
30092         * lib/basename.c: Likewise.
30093         * lib/canonicalize.c, canonicalize.h: Likewise.
30094         * lib/dirname.c, dirname.h: Likewise.
30095         * lib/euidaccess.c: Likewise.
30096         * lib/exclude.c: Likewise
30097         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
30098         * lib/fsusage.c, fsuage.h: Likewise.
30099         * lib/fts.c, fts_.h: Likewise.
30100         * lib/getcwd.c: Likewise.
30101         * lib/getloadavg.c: Likewise.
30102         * lib/mkstemp.c: Likewise.
30103         * lib/mountlist.c, mountlist.h: Likewise.
30104         * lib/openat.c, openat.h: Likewise.
30105         * lib/readlink-stub.c: Likewise.
30106         * lib/readutmp.c, readutmp.h: Likewise.
30107         * lib/rename.c: Likewise.
30108         * lib/rmdir.c: Likewise.
30109         * lib/same.c: Likewise.
30110         * lib/savedir.c: Likewise.
30111         * lib/stripslash.c: Likewise.
30112         * lib/tempname.c: Likewise.
30113         * lib/xreadlink.c: Likewise.
30114         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
30115         All uses changed.
30116         * lib/exclude.h: Likewise.
30117
30118         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
30119         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30120         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
30121         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30122         * lib/pathmax.h: Include <limits.h> unconditionally, since other
30123         files have been getting away with it for years (MORE/BSD 4.3
30124         is extinct now).
30125         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
30126         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30127
30128         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
30129         Define to 256, not 255, as per modern POSIX.
30130
30131 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30132
30133         Sync from coreutils.
30134         Use "file name" when talking about file names, instead of "filename"
30135         or "path", as per the GNU coding standards.
30136         * MODULES.html.sh: mkdir-p renamed from makepath.
30137         filenamecat renamed from path-concat.
30138         * modules/filenamecat: Renamed from modules/path-concat.
30139         (Files): filenamecat.h and filenamecat.c renamed from
30140         path-concat.h and path-concat.c.
30141         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
30142         (Include): filenamecat.h, not path-concat.h.
30143         * modules/mkdir-p: Renamed from modules/makepath.
30144         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
30145         makepath.c.
30146         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
30147         (Include): mkdir-p.h, not makepath.h.
30148
30149 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30150
30151         Sync from coreutils.
30152         * m4/mkdir-p.m4: Renamed from makepath.m4.
30153         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
30154         Rename files from makepath.c to mkdir-p.c, and from
30155         makepath.h to mkdir-p.h.
30156         * m4/filenamecat.m4: Renamed from path-concat.m4.
30157         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
30158         Rename files from path-concat.c to filenamecat.c,
30159         and from path-concat.h to filenamecat.h.
30160         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
30161         "file name" in local variables or comments.
30162         * m4/rename.m4: Likewise.
30163
30164 2005-06-01  Bruno Haible  <bruno@clisp.org>
30165
30166         * modules/csharpexec: New file.
30167         * MODULES.html.sh (C#): New section.
30168
30169 2005-06-01  Bruno Haible  <bruno@clisp.org>
30170
30171         * m4/csharp.m4: New file, from GNU gettext.
30172         * m4/csharpexec.m4: New file, from GNU gettext.
30173
30174 2005-06-01  Bruno Haible  <bruno@clisp.org>
30175
30176         * lib/csharpexec.h: New file, from GNU gettext.
30177         * lib/csharpexec.c: New file, from GNU gettext.
30178         * lib/csharpexec.sh.in: New file, from GNU gettext.
30179
30180 2005-05-31  Derek Price  <derek@ximbiot.com>
30181             Paul Eggert  <eggert@cs.ucla.edu>
30182
30183         Sync from cvs.
30184         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30185
30186 2005-05-31  Derek Price  <derek@ximbiot.com>
30187             Paul Eggert  <eggert@cs.ucla.edu>
30188
30189         Sync from cvs.
30190         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30191
30192 2005-05-29  Derek Price  <derek@ximbiot.com>
30193
30194         * config/srclist.txt (glob_.h, glob.c): Add these files.
30195
30196 2005-05-29  Derek Price  <derek@ximbiot.com>
30197
30198         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
30199         * modules/glob: New file.
30200         * modules/getlogin_r: Add link to POSIX spec in description.
30201
30202 2005-05-29  Derek Price  <derek@ximbiot.com>
30203             Paul Eggert  <eggert@cs.ucla.edu>
30204
30205         * m4/glob.m4: New file.
30206
30207 2005-05-29  Derek Price  <derek@ximbiot.com>
30208             Paul Eggert  <eggert@cs.ucla.edu>
30209
30210         * lib/glob_.h, lib/glob.c: New files.
30211
30212 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30213
30214         * modules/fts (Files): Remove m4/inttypes-pri.m4.
30215         * modules/fts-lgpl (Depends-on): Remove gettext.
30216
30217 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30218
30219         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
30220         and don't require gt_INTTYPES_PRI.
30221
30222 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30223
30224         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
30225
30226         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
30227         the configuration hassle isn't worth it.
30228         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
30229         (LONGEST_MODIFIER, PRIuMAX): Remove.
30230
30231 2005-05-27  Bruno Haible  <bruno@clisp.org>
30232
30233         * lib/getlogin_r.h: Remove second include of <stddef.h>.
30234
30235 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30236
30237         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
30238         _POSIX_PTHREAD_SEMANTICS for Solaris.
30239
30240 2005-05-25  Derek Price  <derek@ximbiot.com>
30241
30242         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
30243
30244 2005-05-25  Derek Price  <derek@ximbiot.com>
30245             Paul Eggert  <eggert@cs.ucla.edu>
30246
30247         * modules/getlogin_r, m4/getlogin_r.m4: New files.
30248         * lib/getlogin_r.c, getlogin_r.h: New files.
30249
30250 2005-05-25  Bruno Haible  <bruno@clisp.org>
30251             Derek Price  <derek@ximbiot.com>
30252
30253         * lib/getlogin_r.h: Simplify API documentation.
30254
30255 2005-05-23  Derek Price  <derek@ximbiot.com>
30256
30257         * modules/minmax (Files): Add m4/minmax.m4.
30258         (configure.ac): Add gl_MINMAX.
30259
30260 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30261
30262         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
30263         so that unistd-safer.h (GPL'ed code) need not be included.
30264
30265 2005-05-22  Bruno Haible  <bruno@clisp.org>
30266
30267         * m4/minmax.m4: New file.
30268         Based on a patch by Derek Price <derek@ximbiot.com>.
30269
30270 2005-05-22  Bruno Haible  <bruno@clisp.org>
30271
30272         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
30273         (INT64_MIN): Fix definition.
30274         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30275
30276         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
30277         NEED_SIGNED_INT_TYPES.
30278
30279         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
30280         HAVE_SYSTEM_INTTYPES.
30281
30282 2005-05-22  Bruno Haible  <bruno@clisp.org>
30283
30284         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
30285         Also include <sys/param.h> if it defines MIN, MAX.
30286         Based on a patch by Derek Price <derek@ximbiot.com>.
30287
30288 2005-05-21  Jim Meyering  <jim@meyering.net>
30289
30290         * modules/fts (Files): Add m4/inttypes-pri.m4.
30291         (Depends-on): Add lstat and remove gettext.  Alphabetize.
30292
30293 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30294
30295         New fts module.
30296         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
30297         (setup_dir, free_dir): New functions.
30298         (enter_dir, leave_dir): Define trivial
30299         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
30300         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
30301         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
30302         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
30303         Move to fts-cycle.c.
30304         (fts_open): Use setup_dir.
30305         (fts_close): Use free_dir.
30306         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
30307         This adds a label and some gotos, but the alternatives were messier.
30308         Check for memory allocation failure when entering a dir.
30309         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30310         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30311         (FTS): New member fts_cycle, that is a union that contains the
30312         old active_dir_ht and cycle_state.  All uses changed to mention
30313         fts_cycle.ht and fts_cycle.state.
30314         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30315         fts.c, with the following changes:
30316         (setup_dir, free_dir): New functions.
30317         (enter_dir): Now returns bool.  Return true if successful, false
30318         if memory exhausted.  All callers changed.
30319         Do not bother partly cleaning up on
30320         memory allocation failure; that is free_dir's job.
30321         However, free ad if hash_insert fails, to avoid memory leak.
30322         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30323         fts->fts_options to see which union member to use.
30324
30325 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30326
30327         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30328         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30329
30330 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30331
30332         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30333
30334 2005-05-20  Jim Meyering  <jim@meyering.net>
30335
30336         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30337         Now a macro, to pacify GCC.
30338
30339 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30340
30341         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30342         of -1.
30343
30344 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30345
30346         * lib/chown.c (rpl_chown): Return -1 on failure.
30347
30348 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30349
30350         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30351         Don't check for stddef.h.
30352         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30353         don't use its results.
30354         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30355         since we include them unconditionally.  Don't require
30356         AM_STDBOOL_H, since stdbool is a prerequisite.
30357         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30358         since we assume C89 or better.
30359         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30360         as we don't use their results.
30361         Don't check for fchdir, memmove, memset, strrchr, as we use
30362         them unconditionally.
30363         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30364         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30365
30366 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30367
30368         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30369         Include <stddef.h> unconditionally, since we assume C89 now.
30370         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30371         * lib/fts.c: Include fts_.h first, to check interface.
30372         Do not include intprops.h; no longer needed.
30373         Include cycle-check.h and hash.h, since fts_.h no longer does.
30374         Remove unnecessary casts of closedir to void.
30375         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30376         decide whether to decrement nlinks.
30377         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30378         (FTS): Use struct hash_table * instead of Hash_table, so that
30379         we no longer need to include hash.h here.
30380
30381 2005-05-18  Jim Meyering  <jim@meyering.net>
30382
30383         * modules/dirfd (License): Change to LGPL.  Most of the code
30384         is already in the public domain.
30385
30386 2005-05-18  Jim Meyering  <jim@meyering.net>
30387
30388         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30389         Reported by Yoann Vandoorselaere.
30390
30391 2005-05-17  Jim Meyering  <jim@meyering.net>
30392
30393         * m4/fts.m4: New file, from coreutils.
30394
30395 2005-05-17  Jim Meyering  <jim@meyering.net>
30396
30397         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30398
30399 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30400
30401         Sync from coreutils.
30402         * m4/unlinkdir.m4: New file.
30403
30404 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30405
30406         Sync from coreutils.
30407         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
30408         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
30409         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
30410         White space changes only.
30411         * lib/makepath.c (make_path): Port to hosts where leading "//" is
30412         special.
30413         * lib/yesno.c: Include getline.h, not ctype.h.
30414         (yesno): Don't remove leading white space; POSIX doesn't allow it.
30415         Use getline to remove arbitrary restriction on response length.
30416
30417 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30418
30419         * config/srclist-update: Spell out "Street" in FSF postal
30420         mail address; this is the style the FSF seems to prefer.
30421
30422         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
30423         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
30424         this updates FSF postal mail address.
30425
30426         Sync from coreutils.
30427         * modules/unlinkdir: New file.
30428         * modules/yesno (Depends-on): Add getline.
30429         * MODULES.html.sh (File system functions): Add unlinkdir.
30430
30431 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30432
30433         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30434         lib/strsep.h:
30435         Change the initial comment to refer to GPL, not LGPL.
30436         gnulib-tool will change it to LGPL as needed.
30437
30438         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30439         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30440         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30441         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30442         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30443         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30444         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30445         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
30446         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
30447         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
30448         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
30449         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
30450         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
30451         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
30452         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
30453         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
30454         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
30455         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
30456         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
30457         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
30458         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
30459         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
30460         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
30461         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
30462         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
30463         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
30464         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
30465         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
30466         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
30467         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
30468         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
30469         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
30470         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
30471         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
30472         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
30473         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
30474         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
30475         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
30476         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
30477         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
30478         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
30479         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
30480         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
30481         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
30482         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
30483         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
30484         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
30485         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
30486         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
30487         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
30488         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30489         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
30490         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
30491         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
30492         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
30493         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
30494         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
30495         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
30496         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
30497         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
30498         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
30499         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
30500         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
30501         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
30502         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
30503         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
30504         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
30505         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
30506         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
30507         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
30508         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
30509         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
30510         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
30511         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
30512         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
30513         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
30514         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
30515         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
30516         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
30517         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
30518         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
30519         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
30520         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
30521         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
30522         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
30523         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
30524         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
30525         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
30526         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
30527         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
30528         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
30529         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
30530         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
30531         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
30532         lib/yesno.c, lib/yesno.h:
30533         Update FSF postal mail address.
30534
30535 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30536
30537         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
30538         tests/test-memmem.c, tests/test-stpncpy.c:
30539         Update FSF postal mail address.
30540
30541 2005-05-13  Bruno Haible  <bruno@clisp.org>
30542
30543         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
30544         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
30545         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
30546         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
30547         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
30548         Add support for 64-bit integers in the MSVC compiler.
30549
30550 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30551
30552         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
30553
30554 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
30555
30556         * gnulib-tool (func_import): Sort and uniquify recommended includes.
30557
30558 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30559
30560         * doc/getdate.texi (General date syntax): Don't say that date
30561         date --iso-8601=ns generates acceptable dates; it doesn't yet.
30562         Problem reported by Nic Ferrier.
30563
30564 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30565
30566         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
30567         specified in ai_socktype. Fix invalid ai_protocol
30568         check. ai_protocol is usually set to 0 or depending on
30569         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
30570         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
30571         ai_socktype / ai_protocol in the returned addrinfo structure.
30572
30573 2005-05-10  Simon Josefsson  <jas@extundo.com>
30574
30575         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
30576         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30577
30578 2005-05-10  Karl Berry  <karl@gnu.org>
30579
30580         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
30581         (from http://www.gnu.org/licenses).
30582         * doc/COPYING.LIB: also rename to COPYING.LESSER.
30583         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
30584         fdl.texi suffices.
30585
30586 2005-05-10  Karl Berry  <karl@gnu.org>
30587
30588         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
30589         (COPYING.DOC): remove.
30590
30591         * config/srclist-update: new FSF address.
30592
30593 2005-05-10  Derek Price  <derek@ximbiot.com>
30594
30595         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
30596         possible.
30597
30598 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30599             Bruno Haible  <bruno@clisp.org>
30600
30601         * modules/inet_ntop: New file.
30602         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30603         inet_ntop.
30604
30605 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30606             Bruno Haible  <bruno@clisp.org>
30607
30608         * m4/inet_ntop.m4: New file.
30609
30610 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30611             Bruno Haible  <bruno@clisp.org>
30612
30613         * lib/inet_ntop.h: New file.
30614         * lib/inet_ntop.c: New file, from glibc with modifications.
30615
30616 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
30617
30618         * modules/time_r (License): Change to LGPL.
30619         * modules/extensions (License): Change to LGPL.  Actually,
30620         the license is more permissive than that, but currently gnulib-tool
30621         doesn't know how to handle more-permissive licenses.
30622
30623         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
30624         Problem reported by Dave Love.
30625
30626 2005-05-08  Jim Meyering  <jim@meyering.net>
30627
30628         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
30629         blank.
30630
30631 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30632
30633         * modules/argmatch (Depends-on): Add stdbool.
30634         * modules/backupfile (Depends-on): Likewise.
30635         * modules/chdir-long (Depends-on): Likewise.
30636         * modules/closeout (Depends-on): Likewise.
30637         * modules/cycle-check (Depends-on): Likewise.
30638         * modules/dirname (Depends-on): Likewise.
30639         * modules/fnmatch (Depends-on): Likewise.
30640         * modules/fsusage (Depends-on): Likewise.
30641         * modules/fwriteerror (Depends-on): Likewise.
30642         * modules/getcwd (Depends-on): Likewise.
30643         * modules/getloadavg (Depends-on): Likewise.
30644         * modules/hard-locale (Depends-on): Likewise.
30645         * modules/makepath (Depends-on): Likewise.
30646         * modules/mountlist (Depends-on): Likewise.
30647         * modules/nanosleep (Depends-on): Likewise.
30648         * modules/posixtm (Depends-on): Likewise.
30649         * modules/quotearg (Depends-on): Likewise.
30650         * modules/readtokens (Depends-on): Likewise.
30651         * modules/readtokens0 (Depends-on): Likewise.
30652         * modules/readutmp (Depends-on): Likewise.
30653         * modules/save-cwd (Depends-on): Likewise.
30654         * modules/strftime (Depends-on): Likewise.
30655         * modules/userspec (Depends-on): Likewise.
30656         * modules/utimecmp (Depends-on): Likewise.
30657         * modules/xgetcwd (Depends-on): Likewise.
30658         * modules/xnanosleep (Depends-on): Likewise.
30659         * modules/xstrtod (Depends-on): Likewise.
30660         * modules/yesno (Depends-on): Likewise.
30661
30662 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30663
30664         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
30665         needless checks.
30666
30667 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30668
30669         Merge from coreutils.  Among other things,
30670         add bulletproofing for cases where stdin, stdout, or stderr are closed.
30671         * lib/fd-safer.c: New file.
30672         * lib/fcntl-safer.h, open-safer.c: Remove.
30673         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
30674         * lib/dup-safer.c: Include unistd-safer.h first.
30675         Don't include errno.h.
30676         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
30677         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
30678         * lib/file-type.c: Rely on file-type.h change.
30679         * lib/getloadavg.c: Include unistd-safer.h.
30680         (getloadavg): Use safer open.
30681         * lib/getusershell.c: Include "stdio-safer.h".
30682         (getusershell): Use safer fopen.
30683         * lib/long-options.c (long_options): Use NULL rather than 0.
30684         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
30685         'free'.
30686         * lib/modechange.c: Likewise.
30687         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
30688         (MODE_DONE): New constant.
30689         (struct mode_change): Remove 'next' member.
30690         (make_node_op_equals): New function; like the old one of the
30691         same name, except it allocates an array.
30692         (mode_compile, mode_create_from_ref): Use it.
30693         (mode_compile): Allocate result as an array, not a linked list.
30694         Parse octal string ourself, so that we catch mistakes like "+0".
30695         (mode_adjust): Arg is an array, not a linked list.
30696         * lib/modechange.c: Include stat-macros.h, xalloc.h.
30697         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
30698         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
30699         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
30700         Remove.  This is now stat-macros.h's job.
30701         (talloc): Remove.  All callers replaced by xalloc, so that
30702         our invokers don't have to worry about reporting memory failures.
30703         (make_node_op_equals): Remove.
30704         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30705         New constants.
30706         (struct mode_change): Moved here from modechange.h.
30707         (mode_append_entry): Remove.
30708         (mode_compile): Remove MASKED_OPS arg, since it encouraged
30709         apps to have incorrect behavior.  Use simpler algorithm for head
30710         and tail.  Don't futz with umask; that's now the job of mode_adjust.
30711         Detect more invalid usages rather than having somewhat-random behavior.
30712         Don't insert an "a=" action, as that leads to incorrect behavior.
30713         (mode_compile, mode_create_from_ref): Return NULL on error instead
30714         of an enum, since now there's only one way to have an error.  All
30715         callers changed.
30716         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
30717         at the correct time.  Simplify calculation of "+u" and its ilk.
30718         Don't mishandle "+X".
30719         (mode_free): Remove "register" and localize decls.
30720         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30721         (struct mode_change): Move to modechange.c; callers don't
30722         need to see this stuff.
30723         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30724         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30725         (mode_change, mode_adjust): Reflect the new signatures noted above.
30726         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30727         that might redefine system include files.
30728         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30729         (my_usleep): Use NULL rather than (void *) 0.
30730         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30731         Use siginterrupt to specify that system calls should be interrupted.
30732         (rpl_nanosleep): Move initialization of suspended closer to call of
30733         my_usleep.
30734         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
30735         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
30736         (desirable_utmp_entry): New function.
30737         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
30738         using x2nrealloc, to simplify logic.
30739         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
30740         size calculation.  Do not assume utmp file is a regular file.
30741         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
30742         (READ_UTMP_CHECK_PIDS): New constant.
30743         * lib/save-cwd.c: Include unistd-safer.h.
30744         (save_cwd): Use fd_safer.
30745         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
30746         [!_LIBC] Include "stat-macros.h" instead.
30747         * lib/unistd-safer.h (fd_safer): New decl.
30748
30749 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30750
30751         * modules/getloadavg (Depends-on): Add unistd-safer.
30752         * modules/getusershell (Depends-on): Add stdio-safer.
30753         * modules/lstat (Depends-on): Remove xalloc.
30754         * modules/mkstemp (Depends-on): Add stat-macros.
30755         * modules/modechange (Depends-on): Remove xstrtol.
30756         Add stat-macros, xalloc.
30757         * modules/save-cwd (Depends-on): Add unistd-safer.
30758         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
30759         * modules/unistd-safer (Files): Add lib/fd-safer.c
30760         (Makefile.am): Remove lib_SOURCES.
30761
30762         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
30763         Remove fcntl-safer; unistd-safer supersedes it.
30764
30765 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30766
30767         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
30768         AC_HEADER_STAT.
30769         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
30770         (gl_PREREQ_CHOWN): Remove.
30771         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
30772         it.  Don't require AC_HEADER_STAT.
30773         (gl_PREREQ_LSTAT): Remove.
30774         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
30775         Don't require AC_HEADER_STAT.
30776         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
30777         (gl_PREREQ_RMDIR): Remove.
30778         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
30779         mention stat-macros.h or AC_HEADER_STAT, since we'll make
30780         the stat-macros module a prerequisite.
30781         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
30782         * m4/filemode.m4 (gl_FILEMODE): Likewise.
30783         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
30784         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
30785         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
30786         variable names.
30787         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
30788         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
30789         variable prefixes.
30790         * m4/fcntl-safer.m4: Remove.
30791         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
30792         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
30793         Invoke gl_PREREQ_FD_SAFER.
30794         (gl_PREREQ_FD_SAFER): New macro.
30795         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
30796         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
30797         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
30798         Remove duplicate call to AC_LIBOBJ(readutmp).
30799         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
30800
30801         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
30802         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
30803
30804 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30805
30806         * MODULES.html.sh (Misc): Add byteswap.
30807
30808 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30809
30810         * modules/getcwd (Depends-on): Add extensions.
30811         * modules/openat (Depends-on): Likewise.
30812
30813 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30814
30815         * modules/byteswap: New file.
30816
30817 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30818
30819         * m4/byteswap.m4: New file.
30820
30821 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30822
30823         * lib/byteswap_.h: New file.
30824
30825 2005-04-25  Karl Berry  <karl@gnu.org>
30826
30827         * m4/gettext.m4: Update from GNU gettext 0.14.4.
30828
30829 2005-04-25  Albert Chin  <china@thewrittenword.com>
30830
30831         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
30832         Toolkit C bug.
30833
30834 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
30835
30836         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
30837         (func_ln_if_changed) Remove forcibly for no error message
30838         in case file does not exist.
30839
30840 2005-04-19  Simon Josefsson  <jas@extundo.com>
30841
30842         * gnulib-tool (Options): Make --symlink mean --symbolic.
30843
30844 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
30845
30846         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
30847
30848 2005-04-16  Simon Josefsson  <jas@extundo.com>
30849
30850         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
30851
30852 2005-04-15  Simon Josefsson  <jas@extundo.com>
30853
30854         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
30855
30856 2005-04-15  Simon Josefsson  <jas@extundo.com>
30857
30858         * gnulib-tool: Rename --symlink to --symbolic.
30859
30860 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
30861
30862         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
30863         symbolic links to files instead of copying/moving.  Add --aux-dir,
30864         specifying directory relative --dir where auxiliary build tools
30865         are placed.
30866
30867 2005-04-14  Bruno Haible  <bruno@clisp.org>
30868
30869         * modules/allocsa (License): Change to LGPL.
30870         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30871
30872 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
30873
30874         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
30875         that "UTC +1 second" continues to work.  Problem reported
30876         by Dmitry V. Levin.
30877         (relunit_snumber): New rule.
30878         (relunit): Use it.
30879
30880 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30881
30882         * lib/getdate.y (universal_time_zone_table): New constant.
30883         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
30884         universal_time_zone_table.
30885         (lookup_zone): Prefer universal_time_zone_table to
30886         local_time_zone_table, so that "GMT" time stamps are allowed in
30887         London during the summer.  Problem reported by Ian Abbott.
30888
30889 2005-04-12  Jim Meyering  <jim@meyering.net>
30890
30891         * lib/human.c (humblock): Set *options even when returning due to
30892         xstrtoumax conversion failure.  Thanks to a used-uninitialized
30893         warning from gcc-4.
30894
30895 2005-04-09  Jim Meyering  <jim@meyering.net>
30896
30897         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
30898         -Wuninitialized: initialize tm0.tm_year.
30899
30900 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
30901
30902         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
30903         count, since there's no maximum.  All uses changed.
30904         Add member dsts_seen.
30905         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
30906         not being INT_MAX.
30907         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
30908         Use pc_rels_seen to decide whther a date is absolute.
30909
30910         * lib/getdate.y (number): Don't overwrite year.
30911         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
30912         check.
30913
30914 2005-04-02  Simon Josefsson  <jas@extundo.com>
30915
30916         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
30917         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
30918
30919 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
30920
30921         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
30922         where no absolute path name can be longer than PATH_MAX.
30923
30924 2005-03-27  Jim Meyering  <jim@meyering.net>
30925
30926         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
30927
30928 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
30929
30930         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
30931         "one's complement" -> "ones' complement" in comment, as per Knuth.
30932         "value of type" -> "type or expression" in comment.
30933         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
30934
30935 2005-03-26  Jim Meyering  <jim@meyering.net>
30936
30937         Comment nits.
30938         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
30939         Correct typos: s/or/of/.
30940
30941 2005-03-26  Jim Meyering  <jim@meyering.net>
30942
30943         * modules/check-include-files: Move to ../ and rename to...
30944         * check-module: ...this.
30945
30946 2005-03-25  Jim Meyering  <jim@meyering.net>
30947
30948         * modules/xvasprintf (Files): Add xalloc.h.
30949
30950 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
30951
30952         * modules/gettext (Files): config/config.rpath ->
30953         build-aux/config.rpath
30954         * modules/iconv (Files): Likewise.
30955         Problem reported by Oskar Liljeblad.
30956
30957 2005-03-23  Jim Meyering  <jim@meyering.net>
30958
30959         * modules/check-include-files: New script to check for
30960         missing dependencies, multiple includes, etc.
30961
30962         * modules/c-strtold (Depends-on): Add xalloc.
30963         * modules/c-strtod (Depends-on): Add xalloc.
30964         * modules/hash (Depends-on): Add xalloc.
30965         (Files): Remove lib/xalloc.h.
30966
30967         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
30968         * modules/userspec (Files): Add lib/inttostr.h.
30969
30970 2005-03-23  Jim Meyering  <jim@meyering.net>
30971
30972         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
30973
30974 2005-03-22  Jim Meyering  <jim@meyering.net>
30975
30976         * modules/stat-macros: New module.
30977         * modules/canonicalize, modules/euidaccess, modules/file-type,
30978         * modules/filemode, modules/lchown, modules/makepath,
30979         * modules/rmdir, modules/stat: Depend on new stat-macros module
30980         rather than listing lib/stat-macros.h manually.
30981         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
30982
30983 2005-03-22  Jim Meyering  <jim@meyering.net>
30984
30985         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
30986
30987 2005-03-22  Bruno Haible  <bruno@clisp.org>
30988
30989         * config/srclist.txt: Replace target directory 'config' with
30990         'build-aux'.
30991         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
30992         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
30993         ../build-aux/.
30994
30995 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
30996
30997         * modules/chdir-long (Depends-on): Add mempcpy.
30998
30999         * modules/acl, modules/backupfile, modules/c-strtod,
31000         modules/c-strtold, modules/canon-host, modules/canonicalize,
31001         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
31002         modules/exclude, modules/exitfail, modules/file-type,
31003         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
31004         modules/getdate, modules/getline, modules/getpagesize,
31005         modules/getpass, modules/getugroups, modules/group-member,
31006         modules/hard-locale, modules/hash, modules/human, modules/idcache,
31007         modules/inttostr, modules/long-options, modules/makepath,
31008         modules/md5, modules/memcasecmp, modules/memcoll,
31009         modules/modechange, modules/mountlist, modules/path-concat,
31010         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
31011         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
31012         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
31013         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
31014         modules/strftime, modules/strndup, modules/strverscmp,
31015         modules/timespec, modules/unlocked-io, modules/userspec,
31016         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
31017         modules/yesno:
31018         Remove lib_SOURCES line from Makefile.am section, as this is now
31019         done automatically by the corresponding Autoconf macro.
31020
31021 2005-03-21  Jim Meyering  <jim@meyering.net>
31022
31023         Changes imported from coreutils.
31024
31025         * lib/cycle-check.c: Don't include xalloc.h.
31026
31027         * lib/path-concat.c: Don't include assert.h.
31028         (path_concat): Remove assertion that would have triggered
31029         for ABASE starting with more than one slash.
31030         Reported by Andreas Schwab.
31031
31032         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
31033         properly when ABASE is an absolute file name.
31034         Correct the description of this function.
31035         Include <assert.h>.
31036         Add an assertion and a test driver.
31037         This fixes a bug introduced on 2004-07-02.
31038         Andreas Schwab reported the resulting failure of cp --parents:
31039         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
31040
31041 2005-03-21  Jim Meyering  <jim@meyering.net>
31042
31043         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
31044         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
31045
31046 2005-03-21  Jim Meyering  <jim@meyering.net>
31047         and  Paul Eggert  <eggert@cs.ucla.edu>
31048
31049         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
31050         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
31051         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
31052         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
31053         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
31054         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
31055         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
31056         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
31057         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
31058         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
31059         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
31060         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
31061         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
31062         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
31063         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
31064         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
31065         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
31066         for these modules.
31067
31068 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31069
31070         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
31071         (which shouldn't happen), generate nothing instead of returning 0
31072         immediately, so that nstrftime (NULL, ...) doesn't return 0.
31073
31074 2005-03-16  Bruno Haible  <bruno@clisp.org>
31075
31076         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
31077         HAVE_LONGLONG_64BIT.
31078
31079 2005-03-16  Bruno Haible  <bruno@clisp.org>
31080
31081         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
31082         HAVE_LONGLONG_64BIT.
31083
31084 2005-03-16  Bruno Haible  <bruno@clisp.org>
31085
31086         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
31087         HAVE_LONGLONG_64BIT.
31088
31089 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31090
31091         * lib/strftime.c (my_strftime): Prepend space to format so that we can
31092         reliably distinguish strftime failure from empty output on POSIX
31093         hosts.
31094
31095 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31096
31097         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
31098         (iconv_string): Don't guess a size-zero buffer, as that might cause
31099         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
31100         result would be 'too large', where 'too large' is (heuristically)
31101         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
31102         overflow concerns.  This will prevent some unwanted malloc failures
31103         when the inputs are very large.
31104
31105 2005-03-15  Karl Berry  <karl@gnu.org>
31106
31107         * config/srclist.txt (config.rpath): from gettext.
31108         * config/config.rpath: update.
31109
31110 2005-03-15  Bruno Haible  <bruno@clisp.org>
31111
31112         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
31113         to 'negate'.
31114
31115         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
31116         variable.
31117
31118         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
31119         results.
31120
31121 2005-03-14  Simon Josefsson  <jas@extundo.com>
31122
31123         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
31124         <fx@gnu.org>.
31125
31126 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
31127
31128         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
31129         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
31130         intprops.h.
31131         * lib/strtol.c: Likewise.
31132
31133 2005-03-14  Jim Meyering  <jim@meyering.net>
31134
31135         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
31136         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
31137         to be nonzero so that we (and caller) can detect the difference
31138         between a valid zero-length expansion and an error return, even
31139         when the underlying strftime fails before writing anything into
31140         that location.
31141
31142 2005-03-14  Bruno Haible  <bruno@clisp.org>
31143
31144         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
31145         Update from GNU gettext 0.14.3.
31146
31147 2005-03-10  Jim Meyering  <jim@meyering.net>
31148
31149         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
31150
31151 2005-03-10  Jim Meyering  <jim@meyering.net>
31152
31153         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
31154         so that this module works on systems without fchdir.
31155
31156 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
31157
31158         Factor int-properties macros into a single file, except for
31159         glibc-related files.
31160         * lib/intprops.h: New file.
31161         * lib/getloadavg.c: Include it instead of limits.h.
31162         (INT_STRLEN_BOUND): Remove.
31163         * lib/human.c: Include intprops.h.
31164         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
31165         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
31166         302/1000.
31167         * lib/inttostr.h: Include intprops.h instead of limits.h.
31168         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
31169         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
31170         for consistency with intprops.h.
31171         (time_t_is_integer, twos_complement_arithmetic): Use them.
31172         * lib/sig2str.h: Include <signal.h>, intprops.h.
31173         (INT_STRLEN_BOUND): Remove.
31174         * lib/strftime.c (TYPE_SIGNED): Remove.
31175         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
31176         * lib/strtol.c: Adjust comments to match intprops.h.
31177         * lib/userspec.c: Include intprops.h.
31178         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
31179         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
31180         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
31181         instead of rolling our own expressions.
31182         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
31183
31184         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
31185         instead of int.
31186         (my_strftime): Do not mishandle years close to INT_MAX, by doing
31187         the right thing even if adding 1900 would overflow.  Similarly
31188         for tm_mon + 1 and tm_yday + 1.
31189         Make %Y always equivalent to %C%y, and similarly for %G and %g.
31190         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
31191         (DO_SIGNED_NUMBER): New macro.
31192         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
31193
31194 2005-03-07  Bruno Haible  <bruno@clisp.org>
31195
31196         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
31197
31198 2005-03-07  Bruno Haible  <bruno@clisp.org>
31199
31200         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
31201
31202 2005-03-04  Derek R. Price  <derek@ximbiot.com>
31203
31204         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
31205         (func_import): Only replace files via --import when they have actually
31206         changed.
31207
31208 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31209
31210         * m4/mmap-anon.m4: New file.
31211         * m4/pagealign_alloc.m4: New file.
31212
31213 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31214             Bruno Haible  <bruno@clisp.org>
31215
31216         * modules/pagealign_alloc: New file.
31217         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
31218
31219 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31220             Bruno Haible  <bruno@clisp.org>
31221
31222         * lib/pagealign_alloc.h: New file.
31223         * lib/pagealign_alloc.c: New file.
31224
31225 2005-03-03  Bruno Haible  <bruno@clisp.org>
31226
31227         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
31228         Use an all-permissive copyright notice, recommended by RMS.
31229
31230 2005-03-02  Bruno Haible  <bruno@clisp.org>
31231
31232         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
31233         of AIX, the replacement has to be done only after <string.h> is
31234         included, therefore not in config.h. stpncpy.h does the replacement,
31235         and stpncpy.c uses it.
31236
31237 2005-03-02  Bruno Haible  <bruno@clisp.org>
31238
31239         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
31240         stpncpy.c uses it.
31241
31242 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31243
31244         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
31245         The workaround isn't strictly needed for POSIX conformance, and
31246         it's too much of a pain to configure and maintain.  We'll ask
31247         people to fix their kernels instead.
31248         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
31249         (NANOSLEEP_BUG_WORKAROUND): Remove.
31250         (xnanosleep): Remove the workaround.
31251
31252 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31253
31254         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
31255         Reported by Derek Price.
31256         (Include): Add "timespec.h".
31257
31258         * modules/xnanosleep (Depends-on): Remove gethrxtime.
31259
31260 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31261
31262         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
31263         to detect nanosleep bug.
31264
31265 2005-03-01  Bruno Haible  <bruno@clisp.org>
31266
31267         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
31268
31269 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31270
31271         * modules/gethrxtime: New file.
31272         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
31273         (Depends-on): Add gethrxtime.
31274         (configure.ac): Add gl_XNANOSLEEP.
31275         (Makefile.am): Remove lib_SOURCES line.
31276
31277 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31278
31279         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
31280         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
31281
31282 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31283
31284         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
31285         * lib/timespec.h (gettime): Return void, since it always
31286         succeeds now.  All uses changed.
31287         * lib/gettime.c (gettime) Likewise.
31288         [HAVE_NANOTIME]: Prefer nanotime.
31289         Assume gettimeofday succeeds, as POSIX requires.
31290         Assime time () succeeds, since other code already does.
31291         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
31292         (timespec_subtract): Remove.
31293         (NANOSLEEP_BUG_WORKAROUND): New constant.
31294         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
31295         things considerably.  Use it only on GNU/Linux hosts, since the
31296         workaround shouldn't be needed elsewhere.
31297
31298 2005-02-24  Bruno Haible  <bruno@clisp.org>
31299
31300         * modules/gettext (Files): Add m4/glibc2.m4.
31301
31302 2005-02-24  Bruno Haible  <bruno@clisp.org>
31303
31304         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
31305         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
31306         * m4/progtest.m4:
31307         Update from GNU gettext 0.14.2.
31308         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31309
31310 2005-02-24  Bruno Haible  <bruno@clisp.org>
31311
31312         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31313         * lib/config.charset: Update from GNU gettext 0.14.2.
31314
31315 2005-02-24  Bruno Haible  <bruno@clisp.org>
31316
31317         * lib/gettext.h: Update from GNU gettext 0.14.2.
31318
31319 2005-02-23  Simon Josefsson  <jas@extundo.com>
31320
31321         * m4/iconvme.m4: New file.
31322
31323 2005-02-23  Jim Meyering  <jim@meyering.net>
31324
31325         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31326         change.
31327         Thanks to Bruno Haible for catching it.
31328
31329 2005-02-22  Simon Josefsson  <jas@extundo.com>
31330
31331         * modules/iconvme: New file.
31332
31333         * MODULES.html.sh: Add iconvme.
31334
31335 2005-02-22  Simon Josefsson  <jas@extundo.com>
31336
31337         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31338
31339 2005-02-22  Simon Josefsson  <jas@extundo.com>
31340
31341         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31342
31343 2005-02-22  Jim Meyering  <jim@meyering.net>
31344
31345         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31346         s/ifndef/ifdef/.
31347
31348 2005-02-20  Neil Conway  <neilc@samurai.com>
31349
31350         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31351         returned by OSX/Darwin if the specified buffer is not large
31352         enough for the hostname.
31353
31354 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31355
31356         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31357         pass it to _help, otherwise the latter coredumps trying to
31358         dereference state.root_argp.
31359
31360 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31361
31362         * modules/chdir-long (Depends-on): Add memrchr.
31363         * modules/memrchr (Files): Add lib/memrchr.h.
31364         (Include): "memrchr.h".
31365
31366 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31367
31368         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31369
31370 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31371
31372         * lib/memrchr.h: New file.
31373         * lib/chdir-long.c: Include it.
31374         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31375         Don't bother including stddef.h.
31376
31377 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31378
31379         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31380         inclusion.
31381         Include <sys/types.h>, for dev_t.
31382         (ME_DUMMY, ME_REMOTE): Move from here....
31383         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31384         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31385         Dmitry V. Levin.
31386         Include mountlist.h first, to test the interface.
31387
31388 2005-01-29  Bruno Haible  <bruno@clisp.org>
31389
31390         * lib/progname.c (program_name): Initialize.
31391         Needed when linking statically on MacOS X.
31392
31393 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31394
31395         Sync from coreutils.
31396         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31397         (Depends-on): Add c-strtod.
31398         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31399
31400 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31401
31402         Sync from coreutils.
31403         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31404
31405         Remove files that are specific to coreutils.
31406         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31407
31408 2005-01-28  Bruno Haible  <bruno@clisp.org>
31409
31410         * modules/javacomp: New file.
31411         * MODULES.html.sh (Java): Add javacomp.
31412
31413 2005-01-28  Bruno Haible  <bruno@clisp.org>
31414
31415         * m4/javacomp.m4: New file, from GNU gettext.
31416
31417 2005-01-28  Bruno Haible  <bruno@clisp.org>
31418
31419         * lib/javacomp.sh.in: New file, from GNU gettext.
31420         * lib/javacomp.h: New file, from GNU gettext.
31421         * lib/javacomp.c: New file, from GNU gettext.
31422
31423 2005-01-26  Simon Josefsson  <jas@extundo.com>
31424
31425         * lib/gai_strerror.c: Use GPL in header.
31426
31427 2005-01-26  Bruno Haible  <bruno@clisp.org>
31428
31429         * modules/javaexec: New file.
31430         * MODULES.html.sh (Java): Add javaexec.
31431
31432 2005-01-26  Bruno Haible  <bruno@clisp.org>
31433
31434         * m4/javaexec.m4: New file, from GNU gettext.
31435
31436 2005-01-26  Bruno Haible  <bruno@clisp.org>
31437
31438         * lib/javaexec.sh.in: New file, from GNU gettext.
31439         * lib/javaexec.h: New file, from GNU gettext.
31440         * lib/javaexec.c: New file, from GNU gettext.
31441
31442 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31443
31444         * modules/lchown (Depends-on): Remove lchown.h
31445
31446 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31447
31448         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
31449         must be defined if the header file was not found, in order
31450         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
31451
31452 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31453
31454         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
31455         initializers for struct pentry_state.
31456         (__argp_error): Check return value of __asprintf
31457         (__argp_failure): Translate error message
31458
31459         * lib/argp-parse.c: Removed braces around the expansion of N_()
31460
31461 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31462
31463         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
31464         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
31465         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
31466         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
31467         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
31468         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
31469         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
31470         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
31471         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
31472         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
31473         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
31474         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
31475         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
31476         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
31477         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
31478         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
31479         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
31480         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
31481         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
31482         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
31483         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
31484         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
31485         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
31486         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
31487         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
31488         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
31489         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
31490         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
31491         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
31492         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
31493         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
31494         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
31495         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
31496         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
31497         xstrtol.m4, xstrtoumax.m4, yesno.m4:
31498         Use an all-permissive copyright notice, recommended by RMS.
31499
31500 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31501
31502         * modules/chdir-long (Depends-on): Remove mempcpy.
31503
31504 2005-01-21  Jim Meyering  <jim@meyering.net>
31505
31506         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
31507         same value as for Solaris 9.
31508
31509         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
31510         component length.  This included changing the parameter to be
31511         of type `char *' rather than `char const *'.
31512         * lib/chdir-long.h (chdir_long): Update prototype.
31513
31514         * lib/openat.c (fdopendir, fstatat): New functions.
31515         * lib/openat.h: Include headers required for use of DIR and struct
31516         stat.
31517         [AT_SYMLINK_NOFOLLOW]: Define.
31518         (fdopendir, fstatat): Add prototypes.
31519
31520 2005-01-21  Bruno Haible  <bruno@clisp.org>
31521
31522         * modules/classpath: New file.
31523         * MODULES.html.sh (Java): Add classpath.
31524
31525 2005-01-21  Bruno Haible  <bruno@clisp.org>
31526
31527         * lib/classpath.h: New file, from GNU gettext.
31528         * lib/classpath.c: New file, from GNU gettext.
31529
31530 2005-01-20  Simon Josefsson  <jas@extundo.com>
31531
31532         * modules/version-etc-fsf: New file.
31533
31534 2005-01-20  Simon Josefsson  <jas@extundo.com>
31535
31536         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
31537         * lib/version-etc.c: Remove version_etc_copyright.
31538         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
31539         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
31540
31541 2005-01-20  Simon Josefsson  <jas@extundo.com>
31542
31543         * lib/base64.h (isbase64): Add.
31544
31545         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
31546         using a unsigned prototype, don't inline.
31547         (base64_decode): Use it.
31548
31549 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31550
31551         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
31552         it.
31553
31554 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31555
31556         * lib/save-cwd.c (save_cwd): Remove code to support the case
31557         where fchdir is missing or flaky.
31558
31559 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31560
31561         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
31562
31563 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
31564
31565         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
31566         AC_LIBSOURCES now does this.
31567         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
31568         with new ullong_max module.
31569
31570 2005-01-19  Bruno Haible  <bruno@clisp.org>
31571
31572         * modules/sh-quote: New file.
31573         * MODULES.html.sh (Executing programs): Add sh-quote.
31574
31575 2005-01-19  Bruno Haible  <bruno@clisp.org>
31576
31577         * lib/sh-quote.h: New file, from GNU gettext.
31578         * lib/sh-quote.c: New file, from GNU gettext.
31579
31580 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31581
31582         Merge from coreutils.
31583         * m4/ullong_max.m4: New file.
31584         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
31585         (gl_MACROS): Assume localeconv exists.
31586
31587 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31588
31589         Merge changes from coreutils, as described below in several
31590         changelogs dated today.
31591
31592         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
31593         (O_DIRECTORY): Remove; not needed here, since "." must be
31594         a directory.  All uses removed.
31595         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
31596         universal on Suns, and we also need to test for IRIX.
31597         Revamp code to use 'if' rather than '#if'.
31598         Avoid unnecessary comparison of cwd->desc to 0.
31599
31600         * lib/utimens.c (futimens): Robustify the previous patch, by checking
31601         for known valid error numbers rather than observed invalid ones.
31602
31603 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31604
31605         * modules/ullong_max: New file.
31606
31607         * modules/chdir-long, modules/openat: New files.
31608         * modules/save-cwd (Depends-on): Depend on chdir-long.
31609         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
31610
31611 2005-01-18  Jim Meyering  <jim@meyering.net>
31612
31613         Merge from coreutils.
31614         * m4/chdir-long.m4, m4/openat.m4: New files.
31615         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
31616         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
31617         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
31618         is sane and DOES follow symlinks.  Besides, testing 20 different
31619         systems found no broken chown implementations.
31620         Prompted by a change in rsync's copy of this macro.
31621         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
31622
31623         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
31624
31625         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
31626         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
31627         NULL-means-set-to-current-time semantics.
31628         Remove temporary file immediately, rather than waiting
31629         for configure's at-exit trap code to do it.
31630
31631 2005-01-18  Jim Meyering  <jim@meyering.net>
31632
31633         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31634
31635         * lib/utimens.c (futimens): Account for the fact that futimes
31636         can also fail with errno == ENOSYS or errno == ENOENT.
31637         Patch from Dmitry V. Levin.
31638
31639         Change the name of the robust chdir function from chdir to chdir_long.
31640         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
31641         (restore_cwd): Use chdir_long, not chdir.
31642         * lib/chdir-long.c: Renamed from chdir.c.
31643         * lib/chdir-long.h: Renamed from chdir.h.
31644         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
31645         Hurd.
31646
31647 2005-01-18  Bruno Haible  <bruno@clisp.org>
31648
31649         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
31650         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
31651         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
31652         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
31653         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
31654         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
31655         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
31656         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
31657         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
31658         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
31659         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
31660         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
31661         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
31662         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
31663         Use an all-permissive copyright notice, recommended by RMS.
31664
31665 2005-01-18  Bob Proulx  <bob@proulx.com>
31666
31667         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
31668         simplify offsetof() macro construct to avoid compile failure with
31669         native HP-UX 11.0 ANSI C compiler.
31670
31671 2005-01-17  Bruno Haible  <bruno@clisp.org>
31672
31673         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
31674         redundant because stpncpy.m4 takes care of it.
31675
31676 2005-01-17  Bruno Haible  <bruno@clisp.org>
31677
31678         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
31679
31680 2005-01-17  Bruno Haible  <bruno@clisp.org>
31681
31682         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
31683         used.
31684
31685 2005-01-17  Bruno Haible  <bruno@clisp.org>
31686
31687         * lib/fwriteerror.h (fwriteerror): Change specification to include
31688         fclose.
31689         * lib/fwriteerror.c: Include <stdbool.h>.
31690         (fwriteerror): At the end, close the file stream. Record whether
31691         stdout was already closed.
31692
31693 2005-01-17  Bruno Haible  <bruno@clisp.org>
31694
31695         * lib/execute.c (environ): Declare if needed.
31696         * lib/pipe.c (environ): Likewise.
31697         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
31698
31699 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31700
31701         * modules/argp: Depend on vsnprintf
31702
31703 2005-01-10  Jim Meyering  <jim@meyering.net>
31704
31705         * modules/closeout (Depends-on): Add atexit.
31706
31707 2005-01-06  Bruno Haible  <bruno@clisp.org>
31708
31709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
31710
31711 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31712
31713         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
31714         definitions to be after all include files, to avoid collisions.
31715         Problem reported by Bob Proulx.
31716
31717 2005-01-04  Jim Meyering  <jim@meyering.net>
31718
31719         Changes imported from coreutils.
31720         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31721         as the mkstemp template, use a temporary directory and an
31722         8.3-friendly template to avoid trouble on systems like DJGPP.
31723         Reported by Juan M. Guerrero via Stepan Kasal.
31724         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31725         close. Remove the temporary directory right away, rather than waiting
31726         for configure's at-exit trap code to do it.
31727         Suggestion from Stepan Kasal.
31728
31729 2005-01-01  Simon Josefsson  <jas@extundo.com>
31730
31731         * gnulib-tool: Print #include directives when --import'ing.
31732
31733 2004-12-28  Simon Josefsson  <jas@extundo.com>
31734
31735         * tests/test-base64.c: Include required header files.  Remove
31736         unused variables.
31737
31738 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31739
31740         * modules/error (Depends-on): Remove gettext.
31741
31742 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31743
31744         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
31745         not needed.  This removes a dependency on the gettext module.
31746         [defined _LIBC]: Do not include <libintl.h>; not needed.
31747
31748 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31749
31750         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
31751         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
31752
31753 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31754
31755         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
31756         HAVE_DECL_STRTOLD.
31757
31758 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31759
31760         * modules/getdate (Depends-on): Remove alloca-opt.
31761
31762 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31763
31764         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
31765
31766 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31767
31768         * lib/argp-parse.c: Include <stddef.h>.
31769         (alignof, alignto): New macros.
31770         (parser_init): Don't assume that void * is aligned sufficiently
31771         for struct option.
31772
31773         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
31774         need to extend the stack.
31775         (YYINITDEPTH): New macro, so that the initial stack isn't overly
31776         large.
31777
31778 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31779
31780         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
31781
31782 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31783
31784         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
31785         (2004-10-24) change.  Apparently this was a false alarm.
31786
31787         * modules/getdate: Depend on alloca-opt, not alloca.
31788
31789 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31790
31791         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
31792         Remove now-obsolete comment about AIX.
31793         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
31794         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
31795         (YYMAXDEPTH): New macro.
31796
31797 2004-12-18  Simon Josefsson  <jas@extundo.com>
31798
31799         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
31800
31801 2004-12-18  Bruno Haible  <bruno@clisp.org>
31802
31803         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
31804
31805 2004-12-18  Bruno Haible  <bruno@clisp.org>
31806
31807         * lib/fatal-signal.c (fatal_signals): Make non-const.
31808         (init_fatal_signals): New function.
31809         (uninstall_handlers, install_handlers): Ignore signals that were set to
31810         SIG_IGN.
31811         (at_fatal_signal): Call init_fatal_signals.
31812         (init_fatal_signal_set): Likewise. Ignore signals that were set to
31813         SIG_IGN.
31814         Reported by Paul Eggert.
31815
31816 2004-12-18  Bruno Haible  <bruno@clisp.org>
31817
31818         * doc/alloca.texi: New file.
31819         * doc/alloca-opt.texi: New file.
31820
31821 2004-12-17  Jim Meyering  <jim@meyering.net>
31822
31823         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
31824         Otherwise, install-sh could exit with improper exit status when
31825         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
31826
31827 2004-12-16  Simon Josefsson  <jas@extundo.com>
31828
31829         * tests/test-base64.c: Add license.
31830
31831 2004-12-15  Stepan Kasal  <address@hidden>
31832
31833         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
31834
31835 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31836
31837         * modules/getcwd (Files): Add m4/d-ino.m4.
31838         Suggested by Mark D. Baushke.
31839
31840 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31841
31842         * lib/getdate.y (textint): New member "negative".
31843         (time_zone_hhmm): New function.
31844         Expect 14 shift-reduce conflicts, not 13.
31845         (o_colon_minutes): New rule.
31846         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
31847         (yylex): Set the "negative" member of signed numbers.
31848
31849 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31850
31851         * doc/getdate.texi (Time of day items, Time zone items):
31852         Describe new formats +00:00, UTC+00:00.
31853
31854 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31855
31856         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
31857         spurious "-l"s.  Problem reported by Stepan Kasal.
31858
31859 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
31860
31861         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
31862         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
31863
31864 2004-12-04  Simon Josefsson  <jas@extundo.com>
31865
31866         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
31867         Vandoorselaere <yoann@prelude-ids.org>.
31868
31869 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31870
31871         Changes imported from coreutils.
31872         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
31873         exist.
31874         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
31875
31876 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31877
31878         Changes imported from coreutils.
31879         * lib/hard-locale.c: Assume <locale.h> exists.
31880         Include "strdup.h".
31881         (GLIBC_VERSION): New macro.
31882         (hard_locale): Assume setlocale exists.
31883         Rewrite to avoid #ifdef.
31884         Use strdup rather than malloc + strcpy.
31885         * lib/human.c: Assume <locale.h> exists.
31886         (human_readable): Assume localeconv exists.
31887
31888 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31889
31890         * modules/hard-locale (Depends-on): Add strdup.
31891
31892 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
31893
31894         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
31895         convert T2, not T.  (Imported from libc.)
31896
31897 2004-11-30  Simon Josefsson  <jas@extundo.com>
31898
31899         * modules/restrict (License): Change to LGPL.
31900
31901 2004-11-30  Simon Josefsson  <jas@extundo.com>
31902
31903         * m4/restrict.m4: Add copyright and copying conditions.
31904
31905 2004-11-30  Simon Josefsson  <jas@extundo.com>
31906
31907         * m4/base64.m4: New file.
31908
31909 2004-11-30  Simon Josefsson  <jas@extundo.com>
31910
31911         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
31912         base64.
31913
31914         * tests/test-base64.c: New file.
31915
31916         * modules/base64: New file.
31917
31918 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31919
31920         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31921         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
31922
31923         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
31924
31925 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31926
31927         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
31928         (__getcwd.c): Don't restore errno; glibc doesn't.
31929         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
31930         first, falling back to our code only if its results look suspicious.
31931         Ensure that the resulting buffer is only as large as necessary.
31932
31933         * lib/readutmp.c: Include readutmp.h first.
31934         Include <errno.h>, since readutmp.h no longer does that.
31935         * lib/readutmp.h: Don't include <errno.h>,
31936         <sys/param.h>, <time.h>; not needed to establish interface.
31937         (errno): Remove decl.
31938         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
31939         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
31940         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
31941
31942 2004-11-28  Simon Josefsson  <jas@extundo.com>
31943
31944         * lib/base64.h, base64.c: New file.
31945
31946 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31947
31948         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
31949
31950 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
31951
31952         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
31953         (Depends-on): Remove pathmax, same.  Add mempcpy.
31954         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
31955         (Makefile.am): Append getcwd.h to lib_SOURCES.
31956         (Include): Add getcwd.h.
31957         (Maintainer): Change from Jim Meyering to "all, glibc",
31958         since getdate now uses intended-for-glibc code.
31959         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
31960         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
31961
31962 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31963
31964         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
31965         HP's ANSI C compiler.
31966         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
31967         Declaring int functions causes warnings on some modern systems and
31968         shouldn't be needed to compile on ancient ones.
31969         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
31970         defined.
31971
31972         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
31973         with the following changes.
31974         (__set_errno): Parenthesize properly.
31975         Include <stdbool.h>.
31976         (MIN, MAX, MATCHING_INO): New macros.
31977         (__getcwd): Define with prototype, not K&R form.
31978         Use heuristics to allocate default buffer on stack if possible.
31979         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
31980         behavior, and to avoid the PATH_MAX limit when computing
31981         ../../../../...
31982         Use MATCHING_INO to compare inode number to file.
31983         Check for arithmetic overflow in size calculations.
31984         Fix bug in reallocation of dot array that caused getcwd to fail
31985         on directories nested deeper than 75.
31986         Be more careful about saving errno on error.
31987         Do not use realloc; use only free+malloc, as this is a bit
31988         more flexible and avoids a needless copy operation.
31989         Do not inspect st_dev and st_ino for symbolic links; POSIX
31990         doesn't specify the latter.
31991         Check for closedir errors.
31992         Avoid needless casts.
31993         Use "#ifdef weak_alias" around weak_alias, to be like other
31994         glibc code.
31995         The following changes to getcwd.c have effect only when used in
31996         gnulib; they have no effect inside glibc proper.
31997         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
31998         as alloca isn't used.
31999         (alloca, __alloca): Likewise.
32000         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
32001         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
32002         unconditionally, as gnulib assumes C89 or better.
32003         Do not include <sys/param.h>.
32004         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
32005         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
32006         better.
32007         (NULL) [!defined NULL]: Remove; we assume C89 or better.
32008         Include <dirent.h> in a way that is compatible with modern Autoconf.
32009         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
32010         New macros, if not already defined.
32011         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
32012         Use "_LIBC", not "defined _LIBC", for consistency.
32013         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
32014         a mempcpy module.
32015         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
32016         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
32017         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
32018         credit only to Jim Meyering and adjust the copyright dates.
32019         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
32020         <stdlib.h>, <unistd.h>, "pathmax.h".
32021         Instead, include "xgetcwd.h" (first) and "getcwd.h".
32022         (INITIAL_BUFFER_SIZE): Remove.
32023         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
32024
32025 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32026
32027         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
32028         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
32029         Use the _ONCE methods, for efficiency.
32030         Check for fcntl.h.  In test program, include <errno.h>
32031         and <fcntl.h> if available.  Remove old K&R cruft from
32032         test program.  Check for common errors in GNU/Linux,
32033         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
32034         don't do AC_LIBOBJ, as that's getcwd.m4's job.
32035         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
32036         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
32037         name accordingly.
32038         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
32039         accommodate new getcwd.c.
32040         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
32041         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
32042         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
32043         that's all we need now.
32044
32045 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32046
32047         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
32048         argp-parse.c depends on getopt internals, that means we should
32049         always use our getopt, to be on the safe side.
32050         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
32051         order not to spoil the result of an eventual previous invocation
32052         of gl_GETOPT_SUBSTITUTE.
32053
32054 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32055
32056         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
32057         redefinition warnings. To avoid them, include the defines
32058         in `#if !defined __need_getopt ... #endif'. The only place
32059         where __getopt_argv_const is used is in definitions
32060         of getopt_long and getopt_long_only below, which are as well
32061         protected by `#ifndef __need_getopt'.
32062         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
32063         __need_getopt after including <stdio.h> and <unistd.h> These
32064         headers might have defined it.
32065
32066 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32067
32068         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
32069
32070 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32071
32072         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
32073         (futimens): New function, which uses futimes if available.
32074         (futimens, utimens): Support timespec==NULL, with same semantics
32075         as utime and utimens.
32076         * lib/utimens.h (futimens): New decl.
32077
32078 2004-11-23  Jim Meyering  <jim@meyering.net>
32079
32080         * lib/getopt_.h: Remove trailing blanks.
32081
32082 2004-11-23  Jim Meyering  <jim@meyering.net>
32083
32084         * lib/__fpending.c: Add comment.
32085
32086 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
32087
32088         * modules/canonicalize (Depends-on): Add xreadlink.
32089         Problem reported by James Youngman.
32090
32091 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32092
32093         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
32094         New macros.
32095         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
32096         optopt): Use them instead of invoking ## directly; otherwise, the
32097         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
32098
32099 2004-11-19  Bruno Haible  <bruno@clisp.org>
32100
32101         * lib/strtok_r.c: Move comments from here...
32102         * lib/strtok_r.h: ... to here.
32103
32104 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32105
32106         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
32107         implementations that mishandle size_t overflow.
32108
32109 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32110
32111         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
32112         might fail.  Problem reported by Yoann Vandoorselaere.
32113         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
32114         implementations that mishandle size_t overflow.
32115
32116 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32117
32118         * modules/canon-host (Depends-on): Add strdup.
32119
32120 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32121
32122         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
32123
32124 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32125
32126         * lib/canon-host.c: Include "strdup.h".
32127         (canon_host): Use getaddrinfo if available, so that IPv6 works.
32128         Use strdup instead of malloc/strcpy to duplicate strings.
32129
32130         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
32131         (human_space_before_unit): New constant.
32132         * lib/human.c (human_readable): Support it.
32133
32134         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
32135         (xgetcwd): Set errno correctly when failing.
32136         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
32137         the failure is actually due to a PATH_MAX problem.
32138
32139         Further getopt changes to make it more likely that glibc will
32140         buy the changes back.
32141         * lib/getopt.c (POSIXLY_CORRECT): New constant.
32142         (getopt): Use it, so to preserve glibc semantic
32143         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
32144         when compiling for libc.
32145         * lib/getopt_.h (__getopt_argv_const): Bring it back.
32146         (getopt_long, getopt_long_only): Use it.
32147
32148         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32149         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
32150         (getopt): Argv is now char * const *, as per standard.
32151         (_getopt_internal_r, _getopt_internal): Argv is now char **,
32152         not char *__getopt_argv_const *.
32153         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32154         _getopt_long_only_r): Likewise.
32155         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
32156         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32157         _getopt_long_r, _getopt_long_only_r): Likewise.
32158         * lib/getopt_.h (__getopt_argv_const): Remove.
32159         (getopt): Argv is now char * const *, as per standard.
32160
32161         * lib/getdate.y (tORDINAL): New token.
32162         (day, relunit): Allow it for relative times.
32163         (relative_time_table): Use tORDINAL for ordinals.
32164
32165 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32166
32167         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
32168         Document that "second" isn't allowed as an ordinal number.
32169
32170 2004-11-16  Jim Meyering  <jim@meyering.net>
32171
32172         * modules/closeout (Depends-on): Add fpending.
32173
32174 2004-11-15  Jim Meyering  <jim@meyering.net>
32175
32176         * lib/closeout.c: Include "__fpending.h" once again.
32177         Include <stdbool.h>.
32178         (close_stdout): Don't fail just because stdout was closed initially,
32179         since some programs don't write to stdout in the normal course of
32180         operation (other than --version and --help), and we don't want this
32181         function to make e.g. `touch file >&-' fail.
32182         But do fail if it was closed and someone has tried to write to it.
32183         E.g., `printf foo >&-' must fail.
32184
32185 2004-11-13  Jim Meyering  <jim@meyering.net>
32186
32187         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
32188
32189 2004-11-12  Simon Josefsson  <jas@extundo.com>
32190
32191         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
32192         small doc fix is still pending.
32193
32194 2004-11-11  Simon Josefsson  <jas@extundo.com>
32195
32196         * modules/strtok_r: New file.
32197
32198         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32199         strtok_r.
32200
32201 2004-11-11  Simon Josefsson  <jas@extundo.com>
32202
32203         * m4/strtok_r.m4: New file.
32204
32205         * m4/getopt.m4: Replace opterr.
32206
32207 2004-11-11  Simon Josefsson  <jas@extundo.com>
32208
32209         * lib/strtok_r.h, strtok_r.c: New file.
32210
32211 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32212
32213         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
32214         of replacing opterr, getopt, etc.  This should handle the
32215         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
32216
32217 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32218
32219         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
32220         we can stop lying to compilers about the constness of argv when we
32221         are compiled outside glibc.
32222         (getopt, getopt_long, getopt_long_only): Use it.
32223         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32224         _getopt_internal, getopt): Likewise.
32225         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32226         _getopt_long_only_r): Likewise.
32227         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32228         _getopt_long_r, _getopt_long_only_r): Likewise.
32229
32230         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
32231         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
32232         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
32233         the other external symbols.
32234         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
32235         declaration, since the above renaming now works around collisions.
32236
32237 2004-11-11  Jim Meyering  <jim@meyering.net>
32238
32239         * lib/linebreak.c: Remove trailing blanks.
32240         * lib/alloca_.h: Likewise.
32241         * lib/acosl.c: Likewise.
32242         * lib/euidaccess.c: Likewise.
32243         * lib/allocsa.h: Likewise.
32244
32245 2004-11-10  Simon Josefsson  <jas@extundo.com>
32246
32247         * m4/getaddrinfo.m4: New file.
32248
32249 2004-11-10  Simon Josefsson  <jas@extundo.com>
32250
32251         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
32252
32253 2004-11-10  Simon Josefsson  <jas@extundo.com>
32254
32255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32256         getaddrinfo.
32257
32258         * modules/getaddrinfo: New file.
32259
32260 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32261
32262         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
32263
32264 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32265
32266         * lib/mktime.c (SHR): New macro, which is a portable
32267         substitute for >> that should work even on Crays.
32268         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
32269         Problem reported by Mark D. Baushke in
32270         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
32271         * lib/getdate.y (SHR): Likewise.
32272         (tm_diff): Use it.
32273         * lib/strftime.c (SHR): Likewise.
32274         (tm_diff): Use it.
32275         * lib/quotearg.c (struct quoting_options): Use unsigned int for
32276         quote_these_too, so that right shifts are well defined.  All uses
32277         changed.
32278
32279 2004-11-10  Jim Meyering  <jim@meyering.net>
32280
32281         Ensure that no close failure goes unreported.
32282         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
32283         return early when it seems there's nothing to flush.
32284         Don't include __fpending.h.
32285
32286 2004-11-10  Jim Meyering  <jim@meyering.net>
32287
32288         * modules/closeout (Depends-on): Remove fpending.
32289
32290 2004-11-10  Jim Meyering  <jim@meyering.net>
32291
32292         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
32293
32294 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32295
32296         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
32297         gl_FUNC_STRFTIME.
32298         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
32299         and AC_REQUIRE when possible, to avoid duplicate checks.
32300         Check for <wchar.h>.
32301
32302 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32303
32304         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
32305
32306 2004-11-09  Bruno Haible  <bruno@clisp.org>
32307
32308         * m4/sockpfaf.m4: New file.
32309
32310 2004-11-05  Bruno Haible  <bruno@clisp.org>
32311
32312         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32313         Reported by Mark D. Baushke <mdb@cvshome.org>.
32314
32315 2004-11-04  Bruno Haible  <bruno@clisp.org>
32316
32317         2004-09-11  Bruno Haible  <bruno@clisp.org>
32318                 * allocsa.valgrind: New file.
32319         2004-02-06  Bruno Haible  <bruno@clisp.org>
32320                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32321                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32322                 Reported by Christopher Seip <chris.seip@hp.com>.
32323
32324 2004-11-04  Bruno Haible  <bruno@clisp.org>
32325
32326         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32327         (Makefile.am): Distribute it.
32328
32329 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32330
32331         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32332         with errno == ERANGE if the buffer is too small.
32333         Problem reported by Mark D. Baushke.
32334
32335 2004-11-03  Albert Chin  <china@thewrittenword.com>
32336             Paul Eggert  <eggert@cs.ucla.edu>
32337
32338         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32339         equivalent, substitute $ac_type for equivalent type rather than
32340         blindly using uint32_t *always* which won't work if uint32_t is not
32341         available.  Define _UINT32_T to work around typedef of uint32_t if
32342         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32343         2.5.1.
32344
32345 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32346
32347         * m4/jm-macros.m4: Sync from coreutils.
32348         (gl_MACROS): Check for mbrlen, for pathchk.
32349         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32350
32351 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32352
32353         * lib/xreadlink.c (MAXSIZE): New macro.
32354         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32355         size does not exceed MAXSIZE.  Avoid cast.
32356         As suggested by Mark D. Baushke in
32357         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32358         if readlink fails with buffer size just under MAXSIZE, try again
32359         with MAXSIZE.
32360
32361 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32362
32363         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32364
32365 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32366         and  Paul Eggert  <eggert@cs.ucla.edu>
32367
32368         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32369         (get_date): Overparenthesize to avoid GCC warning.
32370
32371 2004-11-02  Bruno Haible  <bruno@clisp.org>
32372
32373         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32374         returns void.
32375
32376 2004-11-02  Bruno Haible  <bruno@clisp.org>
32377
32378         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32379         function returns void.
32380
32381 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32382
32383         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32384         fflush_unlocked, flockfile, funlockfile, funlockfile,
32385         fputs_unlocked, putc_unlocked.
32386
32387 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32388
32389         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32390         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32391         already declared.
32392
32393 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32394
32395         * modules/getdate (Files): Add doc/getdate.texi.
32396         (Depends-on): Add setenv, xalloc.
32397
32398 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32399
32400         * lib/getdate.y: Add support for TZ="foo" within a date string.
32401         Fix some bugs near time_t boundaries.  Reject dates with
32402         out-of-range components, e.g., "Sept 31".
32403         Include <stdlib.h>, "setenv.h", "xalloc.h".
32404         (ISDIGIT_LOCALE): Remove; unused.
32405         Note that the TZ and time functions used here are not reentrant.
32406         (mktime_ok, get_tz): New functions.
32407         (TZBUFSIZE): New constant.
32408         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
32409         This requires that we sometimes generate our own TZ="XXX..." setting.
32410
32411 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32412
32413         * doc/getdate.texi: New file, from coreutils with modifications for
32414         the new TZ parsing.
32415
32416 2004-10-27  Derek R. Price  <derek@ximbiot.com>
32417
32418         * lib/mktime.c (not_equal_tm): Remove redundant check.
32419
32420 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32421
32422         * modules/regex (lib_SOURCES): Add regex.c.
32423         Reported by James Youngman in
32424         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
32425
32426 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32427
32428         * lib/getdate.y: Use Bison 1.875 features, and some minor
32429         code cleanups.  This change does not affect semantics.
32430         Don't include <stdlib.h>; no longer needed.
32431         Don't include unlocked-io.h; only the "#if TEST" code uses
32432         stdio, and performance isn't crucial there.
32433         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32434         Bison 1.875 features as described below.
32435         All uses of "PC." replaced by "pc->".
32436         (YYSTYPE): Add a forward declaration.
32437         (yylex, yyerror): Use full prototypes in forward decls.
32438         Use "%pure-parser" rather than obsolescent "%pure_parser".
32439         Use %parse-param and %lex-param instead of obsolescent
32440         YYPARSE_PARAM and YYLEX_PARAM.
32441         (meridian_table, month_and_day_table, time_units_table,
32442         relative_time_table, time_zone_table, military_table,
32443         lookup_zone, lookup_word, get_date):
32444         Use NULL instead of 0 where appropriate.
32445         (to_hour): Avoid abort (), to avoid a dependency on
32446         stdlib.h.
32447         (yyerror, yylex): Now accepts parser_control * arg.
32448         (main) [TEST]: Use '\0' rather than 0 for char.
32449
32450 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32451
32452         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
32453
32454 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32455
32456         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
32457         It's now the caller's responsibility to handle the case where
32458         !HAVE_GETPAGESIZE && !defined getpagesize.
32459
32460         * lib/mktime.c (leapyear): Arg is long int, not int.
32461
32462 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32463
32464         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
32465
32466 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32467
32468         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
32469         missing.  Problem reported by James Youngman.
32470
32471 2004-10-16  Simon Josefsson  <jas@extundo.com>
32472
32473         * gnulib-tool: Fix comments.  Fix parse problem.
32474         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
32475
32476 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32477
32478         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
32479         implementation of getopt_long.  Problem reported by Alexander Taler in:
32480         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
32481
32482 2004-10-15  Bruno Haible  <bruno@clisp.org>
32483
32484         * gnulib-tool: Untabify. Initialize supplied_libname.
32485         (func_usage): More homogenous output.
32486         (func_modules_transitive_closure, func_modules_to_filelist,
32487         func_emit_lib_Makefile_am): New functions.
32488         (func_import): New function, extracted from big case statement. Use
32489         func_get_license, func_modules_transitive_closure,
32490         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
32491         opt_lgpl. Don't use test -a, as it's not portable.
32492         (func_create_testdir): Use func_modules_transitive_closure,
32493         func_modules_to_filelist, func_emit_lib_Makefile_am.
32494
32495 2004-10-15  Bruno Haible  <bruno@clisp.org>
32496
32497         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
32498
32499 2004-10-15  Bruno Haible  <bruno@clisp.org>
32500
32501         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
32502         the portions belonging to each module.
32503         Suggested by Derek Robert Price <derek@ximbiot.com>.
32504
32505 2004-10-12  Simon Josefsson  <jas@extundo.com>
32506
32507         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32508         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
32509         to real functions.
32510
32511 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32512
32513         * modules/vsnprintf: New file.
32514
32515 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32516
32517         * m4/vsnprintf.m4: New file.
32518
32519 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32520
32521         * lib/vsnprintf.h: New file.
32522         * lib/vsnprintf.c: New file.
32523
32524 2004-10-11  Bruno Haible  <bruno@clisp.org>
32525
32526         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
32527         vsnprintf.
32528
32529 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32530
32531         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
32532
32533 2004-10-07  Bruno Haible  <bruno@clisp.org>
32534
32535         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
32536         fits into the provided buffer.
32537
32538 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32539
32540         * lib/diacrit.c, diacrit.h: Add GPL notice.
32541
32542         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
32543         notice.
32544         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
32545         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
32546         This avoids a potential constant-folding bug.
32547
32548 2004-10-05  Bruno Haible  <bruno@clisp.org>
32549
32550         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
32551         for the declaration of strsep.
32552
32553 2004-10-05  Bruno Haible  <bruno@clisp.org>
32554
32555         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
32556
32557 2004-10-04  Simon Josefsson  <jas@extundo.com>
32558
32559         * modules/memmem: New file.
32560         * tests/test-memmem.c: New file.
32561         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
32562
32563 2004-10-04  Simon Josefsson  <jas@extundo.com>
32564
32565         * m4/memmem.m4: New file.
32566
32567 2004-10-04  Simon Josefsson  <jas@extundo.com>
32568
32569         * lib/memmem.h: New file.
32570         * lib/memmem.c: New file, taken from glibc.
32571
32572 2004-10-04  Simon Josefsson  <jas@extundo.com>
32573
32574         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
32575         '#ifdef USE_UNLOCKED_IO'.
32576
32577 2004-10-04  Simon Josefsson  <jas@extundo.com>
32578
32579         * config/srclist.txt: Add memmem from glibc.
32580
32581 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32582
32583         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
32584
32585         * modules/argmatch, modules/argp, modules/closeout, modules/error,
32586         modules/exclude, modules/getdate, modules/getline,
32587         modules/getndelim2, modules/getpass, modules/getpass-gnu,
32588         modules/getusershell, modules/linebuffer, modules/md5,
32589         modules/mountlist, modules/posixtm, modules/readtokens,
32590         modules/readutmp, modules/regex, modules/sha1,
32591         modules/version-etc, modules/yesno:
32592         Remove dependency on unlocked-io.
32593
32594 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32595
32596         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
32597
32598         * m4/unlocked-io.m4: Add copyright notice.
32599         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
32600
32601 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32602
32603         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
32604         * lib/xmalloc.c (xmemdup): Likewise.
32605         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
32606         XFREE): Remove these long-obsolescent macros.
32607         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
32608         * lib/xstrdup.c: Remove.
32609
32610         * lib/regex.c (re_comp): Cast gettext return value to char *,
32611         Problem reported by Martin Neitzel via Mark D. Baushke.
32612
32613 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32614
32615         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
32616         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
32617         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
32618         regex.c, sha1.c, version-etc.c, yesno.c:
32619         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
32620         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
32621         the includer's responsibility.
32622
32623         Sync from coreutils.
32624
32625         * lib/modechange.c (mode_compile): Don't decrement a pointer that
32626         points to the start of a string, as the C Standard says the
32627         resulting behavior is undefined.
32628
32629         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
32630         simple -> simple_backups, numbered_existing ->
32631         numbered_existing_backups, numbered -> numbered_backups
32632         to avoid shadowing problems.  All uses changed.
32633         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
32634         * lib/backupfile.c (check_extension, numbered_backup):
32635         Rename locals to avoid shadowing 'basename'.
32636         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
32637         once.
32638
32639         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
32640         * lib/.cvsignore: Add getopt.h.
32641
32642 2004-10-04  Bruno Haible  <bruno@clisp.org>
32643
32644         * modules/README: New file.
32645         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
32646         not a module.
32647
32648 2004-10-02  Jim Meyering  <jim@meyering.net>
32649
32650         * lib/dirfd.h, getpagesize.h: Add copyright notice.
32651
32652 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32653
32654         * modules/strsep: New file.
32655
32656 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32657
32658         * m4/strsep.m4: New file.
32659
32660 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32661
32662         * lib/strsep.h: New file.
32663         * lib/strsep.c: New file.
32664
32665 2004-10-01  Simon Josefsson  <jas@extundo.com>
32666
32667         * lib/snprintf.c (snprintf): Handle size==0.
32668
32669 2004-10-01  Simon Josefsson  <jas@extundo.com>
32670             Bruno Haible  <bruno@clisp.org>
32671
32672         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
32673         (snprintf): Declare 'args'.
32674
32675 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
32676
32677         * lib/snprintf.c: Remove comments as to why each header is needed.
32678
32679 2004-10-01  Bruno Haible  <bruno@clisp.org>
32680
32681         * MODULES.html.sh: Add strsep.
32682
32683 2004-09-30  Simon Josefsson  <jas@extundo.com>
32684
32685         * modules/snprintf: New file.
32686
32687 2004-09-30  Simon Josefsson  <jas@extundo.com>
32688
32689         * m4/snprintf.m4: New file.
32690
32691 2004-09-30  Simon Josefsson  <jas@extundo.com>
32692
32693         * lib/snprintf.h, lib/snprintf.c: New files.
32694
32695 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32696
32697         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
32698         (hol_entry_help): Never translate an empty string.
32699         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
32700         * lib/argp.h (OPTION_NO_TRANS): New option.
32701
32702 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32703
32704         * modules/argp (Maintainer): Replace Simon Josefsson
32705         by Sergey Poznyakoff.
32706
32707 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32708
32709         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
32710         changes merged back into glibc.
32711
32712 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32713
32714         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
32715
32716 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
32717
32718         * lib/xvasprintf.c: Include xalloc.h.
32719         (xvasprintf): Use xalloc_die, not xmalloc_die.
32720
32721 2004-09-29  Bruno Haible  <bruno@clisp.org>
32722
32723         * modules/alloca-opt: New file, derived from modules/alloca.
32724         * modules/allocsa: Depend on alloca-opt instead of alloca.
32725         * modules/setenv: Likewise.
32726         * modules/vasnprintf: Likewise.
32727         * MODULES.html.sh: Add alloca-opt.
32728
32729 2004-09-28  Simon Josefsson  <jas@extundo.com>
32730
32731         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32732         LGPL, and to replace license template from GPL to LGPL.
32733
32734 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32735
32736         * modules/dummy: Change license to LGPL.
32737
32738 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32739
32740         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
32741
32742 2004-09-24  Simon Josefsson  <jas@extundo.com>
32743
32744         * modules/minmax (License): Change from GPL to LGPL.
32745
32746 2004-09-23  Simon Josefsson  <jas@extundo.com>
32747
32748         * gnulib-tool (--import): Typo.
32749
32750 2004-09-23  Simon Josefsson  <jas@extundo.com>
32751
32752         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
32753
32754 2004-09-22  Bruno Haible  <bruno@clisp.org>
32755
32756         * modules/*: Add 'License' field.
32757         * gnulib-tool: Accept --extract-license option.
32758         (func_get_license): New function.
32759
32760 2004-09-21  Bruno Haible  <bruno@clisp.org>
32761
32762         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
32763         Reported by Simon Josefsson.
32764
32765 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32766
32767         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
32768         gl_AC_TYPE_LONG_LONG.
32769
32770 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32771
32772         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
32773
32774 2004-09-18  Simon Josefsson  <jas@extundo.com>
32775         and  Paul Eggert  <eggert@cs.ucla.edu>
32776
32777         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
32778         calls with autoreconf.  Define GL_LIB.
32779
32780 2004-09-14  Karl Berry  <karl@gnu.org>
32781
32782         * config/srclist.txt: unsync setenv.c, sigh.
32783
32784 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32785
32786         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
32787         Problem reported by Bruno Haible in:
32788         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
32789
32790 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32791
32792         * config/srclist.txt: Comment out argp-pvh.c.
32793
32794 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
32795
32796         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
32797         in case some system header has #define'd it.  Problem reported by
32798         Soeren D. Schulze in
32799         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
32800
32801 2004-09-09  Karl Berry  <karl@gnu.org>
32802
32803         * regex.[ch]: delete from the root.  These were supposed to be
32804                 synced with emacs cvs, but this has not happened for about
32805                 a year, and anyway nothing else uses emacs regex.[ch].
32806                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
32807                 lib/regex[.ch] is untouched.
32808
32809 2004-09-09  Bruno Haible  <bruno@clisp.org>
32810
32811         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
32812
32813 2004-09-09  Bruno Haible  <bruno@clisp.org>
32814
32815         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
32816         modifications.
32817         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
32818
32819 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32820
32821         * modules/xvasprintf: New file.
32822         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
32823
32824 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32825
32826         * lib/xvasprintf.h: New file.
32827         * lib/xvasprintf.c: New file.
32828         * lib/xasprintf.c: New file.
32829
32830 2004-09-08  Bruno Haible  <bruno@clisp.org>
32831
32832         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
32833
32834 2004-09-08  Bruno Haible  <bruno@clisp.org>
32835
32836         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
32837         length is > INT_MAX.
32838         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
32839         more.
32840
32841 2004-09-08  Bruno Haible  <bruno@clisp.org>
32842
32843         * lib/stdint_.h: New file, taken from GNU clisp.
32844
32845 2004-09-08  Bruno Haible  <bruno@clisp.org>
32846             Oskar Liljeblad  <oskar@osk.mine.nu>
32847
32848         * modules/stdint: New file.
32849         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
32850
32851 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32852
32853         Import from coreutils.
32854         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
32855         strings on unbounded length.  alloca's performance benefits aren't
32856         that important here.
32857         (V_STRDUP): Remove.
32858         (parse_with_separator): New function, with most of the internals
32859         of the old parse_user_spec.  Allow user to omit both user and group,
32860         for compatibility with FreeBSD.
32861         Clone only the user name, not the entire spec.
32862         Do not set *uid, *gid unless entirely successful.
32863         Avoid memory leak in some failing cases.
32864         Fix regression for USER.GROUP reported by Dmitry V. Levin in
32865         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
32866         (parse_user_spec): Rewrite to use parse_with_separator.
32867
32868 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32869
32870         * modules/userspec: Don't depend on alloca.
32871
32872 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32873
32874         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
32875
32876 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32877
32878         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
32879         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
32880         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
32881
32882 2004-08-16  Simon Josefsson  <jas@extundo.com>
32883
32884         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
32885         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
32886         Add --dry-run for --import.
32887         Let user provided command line parameters override configure.ac
32888         settings.
32889
32890 2004-08-12  Simon Josefsson  <jas@extundo.com>
32891
32892         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
32893         as discussed with Paul Eggert in threads rooted at
32894         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
32895         and
32896         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
32897         Before, the test was empty, and relied on ELIDE_CODE in source
32898         code.)
32899         (gl_PREREQ_GETOPT): New macro.
32900         (gl_GETOPT): Use them.
32901
32902 2004-08-12  Simon Josefsson  <jas@extundo.com>
32903
32904         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
32905         * lib/getopt_.h: Renamed from getopt.h.
32906
32907 2004-08-12  Simon Josefsson  <jas@extundo.com>
32908
32909         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
32910         Change default library name from libfoo to libgnu.
32911         Now, if you have a configure.ac that says:
32912                 gl_SOURCE_BASE(gl)
32913                 gl_M4_BASE(gl/m4)
32914                 gl_MODULES(error getopt etcetera)
32915                 gl_INIT
32916         you can import all you need by running:
32917                 ../gnulib/gnulib-tool --import
32918
32919         * modules/getopt (Files): Rename getopt.h to getopt_.h.
32920         (Makefile.am): Rewrite, use logic from argz.
32921         (Include): Use <getopt.h> instead of "getopt.h".
32922
32923 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32924
32925         * modules/argp (Files): Add m4/unlocked-io.m4.
32926         (Depends-on): Add extensions.
32927
32928 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32929
32930         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
32931         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
32932         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
32933         Check for program_invocation_name, program_invocation_short_name,
32934         flockfile, funlockfile, features.h, _getopt_long_only_r.
32935
32936 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32937
32938         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
32939         its complicated substitute.
32940         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
32941         and program_invocation_name.
32942         (__argp_basename) [!_LIBC]: Remove; the only use was
32943         replaced by its body.
32944         (__argp_short_program_name): Change condition from
32945         !defined __argp_short_program_name to
32946         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
32947         to match argp-namefrob.h.
32948         (__argp_failure): Don't assume strerror_r returns char *.
32949         * lib/argp-parse.c (N_): Define unconditionally.
32950         (argp_default_options): Fill out initializers with 0 to avoid
32951         gcc warnings.
32952
32953 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32954
32955         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
32956         getopt1.c.
32957
32958 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32959
32960         Merge from coreutils.
32961
32962         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
32963
32964         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
32965         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
32966
32967 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32968
32969         Merge from coreutils.
32970
32971         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
32972         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
32973         for Reliant Unix 5.43.
32974
32975         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
32976         (union fooround): Use uintmax_t, not long int.
32977         The rest is a merge from libc:
32978         [defined _LIBC]: Include <shlib-compat.h>.
32979         (_obstack) [defined _LIBC]: Remove after 2.3.4.
32980
32981         * lib/settime.c (settime): Recode to avoid warning with
32982         Sun Forte C 6U2.
32983
32984         * lib/strverscmp.c: Convert to UTF-8.
32985
32986 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32987
32988         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
32989         m4/uintmax_t.m4.
32990
32991 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32992
32993         * modules/xalloc-die: New file.
32994         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
32995
32996         * modules/md5 (Files): Add m4/uint32_t.m4.
32997         * modules/sha1: Renamed from modules/sha.
32998         (Files):
32999         Rename lib/sha.h to lib/sha1.h.
33000         Rename lib/sha.c to lib/sha1.c.
33001         Rename m4/sha.m4 to m4/sha1.m4.
33002         (lib_SOURCES): Likewise.
33003         (configure.ac): Rename gl_SHA to gl_SHA1.
33004         (Include): sha.h -> sha1.h.
33005
33006 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33007
33008         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
33009         * m4/sha1.m4: Renamed from sha.m4.
33010         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
33011
33012 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33013
33014         * lib/obstack.h (obstack_empty_p):
33015         Don't assume that chunk->contents is suitably aligned.
33016         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
33017         Likewise. Problem reported by Benno in
33018         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
33019
33020         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
33021         readable.  This could be improved further but it'd take some work.
33022
33023 2004-08-08  Simon Josefsson  <jas@extundo.com>
33024
33025         * modules/xgethostname (Depends-on): Remove exit and error (not
33026         used).
33027
33028         * modules/getpass-gnu: Add getpass.h.
33029         (Depends-on): Add stdbool.
33030         * modules/getpass: Add getpass.h.
33031
33032 2004-08-08  Simon Josefsson  <jas@extundo.com>
33033
33034         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
33035         Check getpass declaration.
33036
33037 2004-08-08  Simon Josefsson  <jas@extundo.com>
33038
33039         * lib/xgethostname.c: Don't include error.h (not used).
33040
33041         * lib/getpass.h: Add.
33042         * lib/getpass.c: Include getpass.h first.
33043
33044 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33045
33046         * lib/xalloc-die.c: New file.
33047         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
33048         All uses removed.
33049         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
33050         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
33051         xalloc-die.c.
33052         (_, N_, xalloc_die): Move to xalloc-die.c.
33053         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
33054         so that we needn't mess with xalloc_msg_memory_exhausted.
33055
33056         * lib/sha1.h: Renamed from sha.h.
33057         (SHA1_H): Renamed from _SHA_H.
33058         (sha1_ctx): Renamed from sha_ctx.
33059         (sha1_init_ctx): Renamed from sha_init_ctx.
33060         (sha1_process_block): Renamed from sha_process_block.
33061         (sha1_process_bytes): Renamed from sha_process_bytes.
33062         (sha1_finish_ctx): Renamed from sha_finish_ctx.
33063         (sha1_read_ctx): Renamed from sha_read_ctx.
33064         (sha1_stream): Renamed from sha_stream.
33065         (sha1_buffer): Renamed from sha_buffer.
33066         * lib/sha1.c: Likewise; renamed from sha.c.
33067         Do not include <sys/types.h>.
33068         Include <stddef.h> rather than <stdlib.h>.
33069
33070 2004-08-08  Bruno Haible  <bruno@clisp.org>
33071
33072         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
33073         FILESYSTEM_PREFIX_LEN.
33074         * lib/progreloc.c: Likewise.
33075         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
33076
33077 2004-08-06  Simon Josefsson  <jas@extundo.com>
33078
33079         * modules/progname (Depends-on): Don't depend on stdbool.
33080
33081 2004-08-06  Simon Josefsson  <jas@extundo.com>
33082
33083         * modules/getsubopt: New file.
33084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33085         getsubopt.
33086
33087 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33088
33089         More merge from coreutils.
33090
33091         * m4/utimens.m4, m4/utimecmp.m4: New files.
33092         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
33093         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
33094         prereq.m4, sha.m4: Import changes from coreutils.
33095
33096 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33097
33098         More merge from coreutils.
33099         * modules/raise, modules/readtokens0, modules/utimens:
33100         * modules/utimecmp, module/xnanosleep: New files.
33101         * modules/strftime: Add lib/strftime.h.
33102         Change include from <time.h> to "strftime.h".
33103         * modules/yesno: Add lib/yesno.h.
33104         * modules/backupfile: Remove lib/addext.c.
33105         * modules/euidaccess: Add stat-macros.h.
33106         * modules/canonicalize, modules/euidaccess,
33107         modules/filemode, modules/lchown, modules/makepath,
33108         modules/rmdir, modules/stat: Likewise.
33109
33110 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33111
33112         Merge from tar.
33113         * lib/argp-help.c (make_hol, hol_append): Don't assume that
33114         SIZE_MAX is a valid preprocessor constant.
33115         (__argp_basename): Change from "#ifndef _LIBC"
33116         to "#ifndef __argp_short_program_name", so that
33117         we don't compile these functions for tar.
33118
33119         More merges from coreutils.
33120         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
33121         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
33122         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
33123         * lib/addext.c: Remove; no longer needed.
33124         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
33125         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
33126         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
33127         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
33128         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
33129         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
33130         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
33131         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
33132         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
33133         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33134         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
33135         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
33136         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
33137         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
33138         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
33139         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
33140         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
33141         Import changes from coreutils.
33142
33143 2004-08-05  Simon Josefsson  <jas@extundo.com>
33144
33145         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
33146
33147 2004-08-05  Simon Josefsson  <jas@extundo.com>
33148
33149         * m4/getsubopt.m4: New file.
33150
33151 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33152
33153         Merge from coreutils.
33154
33155         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
33156         * m4/getcwd-path-max.m4: New files.
33157
33158         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
33159         FILESYSTEM_PREFIX_LEN ->
33160         FILE_SYSTEM_PREFIX_LEN.
33161         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
33162         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
33163         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
33164         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
33165
33166         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
33167         prerequisite modules now handle the DOS stuff.
33168         Don't check for unistd.h.
33169
33170 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33171
33172         Merge from coreutils.
33173
33174         * lib/.gdb-history: Remove; this doesn't belong here.
33175
33176         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
33177         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
33178         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
33179         * lib/getcwd.c: New files.
33180
33181         * lib/dirname.h: Include <stdbool.h>.
33182         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
33183         for consistency with POSIX terminology.  All uses changed.
33184         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
33185         (strip_trailing_slashes): Use bool for booleans.
33186         * lib/stripslash.c (strip_trailing_slashes): Likewise.
33187
33188         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
33189         sometimes returns a positive errno value even when it succeeds.
33190         (print_errno_message) [!LIBC]: Fall back on strerror if
33191         __strerror_r fails.
33192
33193         * lib/path-concat.c (mempcpy): Don't define if a system header defines
33194         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
33195         (longest_relative_suffix): New function.
33196         (path_concat): Use it.  Assume first argument is not NULL.
33197         Port to DOS.  Omit redundant separators.
33198         Report an error instead of returning NULL.
33199         Use mempcpy instead of memcpy.
33200         (xpath_concat): Remove: not declared or used.
33201
33202         * lib/same.h: Include <stdbool.h>
33203         (same_name): Return bool, not int.
33204         * lib/same.c (same_name): Likewise.
33205         (errno): Don't declare; we assume C89 or better now.
33206
33207         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
33208         if not already defined.
33209
33210         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
33211         * lib/dup-safer.c (errno): Likewise.
33212
33213 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33214
33215         Merge from coreutils.
33216         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
33217         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
33218         * modules/path-concat: Don't depend on strdup.
33219
33220 2004-08-03  Simon Josefsson  <jas@extundo.com>
33221
33222         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
33223         * lib/progname.h: Don't include stdbool.h.
33224
33225 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33226
33227         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
33228         * MODULES.html.sh (func_all_modules): Remove fatal.
33229
33230 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33231
33232         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
33233
33234 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33235
33236         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
33237         working.
33238
33239 2004-08-02  Simon Josefsson  <jas@extundo.com>
33240
33241         * lib/getsubopt.h: New file, with comments from Bruno Haible.
33242         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
33243         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
33244
33245 2004-08-01  Simon Josefsson  <jas@extundo.com>
33246
33247         * lib/xgetdomainname.c: Include stdlib.h, for free().
33248
33249 2004-07-19  Bruno Haible  <bruno@clisp.org>
33250
33251         * MODULES.html.sh (func_all_modules): Add dummy.
33252
33253 2004-07-16  Simon Josefsson  <jas@extundo.com>
33254
33255         * modules/dummy: New file.
33256
33257 2004-07-16  Simon Josefsson  <jas@extundo.com>
33258
33259         * lib/dummy.c: New file.
33260
33261 2004-07-16  Bruno Haible  <bruno@clisp.org>
33262
33263         * lib/backupfile.h: Add extern "C" for C++.
33264         * lib/closeout.h: Likewise.
33265         * lib/copy-file.h: Likewise.
33266         * lib/findprog.h: Likewise.
33267         * lib/full-write.h: Likewise.
33268         * lib/pathname.h: Likewise.
33269         * lib/progname.h: Likewise.
33270         * lib/stpcpy.h: Likewise.
33271         * lib/stpncpy.h: Likewise.
33272         * lib/strcase.h: Likewise.
33273         * lib/strstr.h: Likewise.
33274         * lib/xalloc.h: Likewise.
33275
33276         * lib/mbswidth.h: Add extern "C" for C++.
33277         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
33278
33279 2004-07-13  Robert Millan  <robertmh@gnu.org>
33280
33281         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
33282
33283 2004-07-09  Simon Josefsson  <jas@extundo.com>
33284
33285         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
33286         failed without this.)
33287
33288 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33289
33290         * modules/chown (Files): Add lib/fchown-stub.c, since
33291         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
33292
33293 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33294
33295         * lib/fchown-stub.c: New file.
33296
33297 2004-06-24  Jim Meyering  <jim@meyering.net>
33298
33299         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
33300
33301 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33302
33303         * modules/argz: Omit "#include".
33304
33305         * MODULES.html.sh (func_all_modules): Add calloc, to match
33306         2004-06-01 addition of calloc module.
33307
33308 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33309
33310         * m4/argz.m4: New file, which is autoupdated from libtool.
33311
33312 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33313
33314         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33315         libtool.
33316
33317 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33318
33319         * config/srclist-update: Don't insist on "USA." before the
33320         close-comment, as libtool omits the period and puts the */ on a
33321         separate line.
33322         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33323         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33324
33325 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33326
33327         * modules/argz: New file.
33328         * MODULES.html.sh (func_all_modules): Add argz.
33329
33330 2004-06-12  Jim Meyering  <jim@meyering.net>
33331         and  Paul Eggert  <eggert@cs.ucla.edu>
33332
33333         * modules/hash (Files): Add lib/xalloc.h.
33334         * modules/pipe (Depends-on): Add wait-process.
33335         * modules/stat (Depends-on): Add xalloc.
33336         * modules/userspec (Files): Add lib/userspec.h.
33337         * modules/xstrto
33338
33339         Upgrade from gettext-0.13.
33340         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33341         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33342         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33343
33344 2004-06-10  Jim Meyering  <jim@meyering.net>
33345
33346         * lib/calloc.c: New file.
33347
33348 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33349
33350         * lib/getdate.y (yylex): Allow space between sign and number.
33351         Problem reported by Dan Jacobson.
33352
33353 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33354
33355         Merge from coreutils CVS.
33356
33357         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33358         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33359         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33360         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33361         xstrtol.m4: Fix copyright date and/or serial number.
33362
33363         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33364         See if we need an fchown replacement.
33365         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33366         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33367         and use the replacement function if we detect either defect.
33368
33369         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33370         gl_UTIMECMP.
33371
33372 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33373         and  Jim Meyering  <jim@meyering.net>
33374
33375         Merge from coreutils CVS.
33376
33377         * lib/stat-macros.h: New file, with contents from file-type.h
33378         and coreutils' system.h.
33379         * lib/file-type.c: Include "stat-macros.h".
33380         * lib/file-type.h (file_type): Move all macro definitions to new file,
33381         stat-macros.h.
33382
33383         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33384         Wrap old code with this conditional.
33385         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33386         function that does not dereference symlinks.
33387         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33388
33389         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33390         dependency problems.
33391         (xreadlink): Accept new arg SIZE, for efficiency.
33392         All decls and uses changed.
33393         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33394
33395         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33396         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33397
33398         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33399         sysexits.h.
33400
33401 2004-06-01  Jim Meyering  <jim@meyering.net>
33402
33403         * m4/calloc.m4: New file.
33404
33405 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33406
33407         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
33408         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
33409         Also, fix a typo in a diagnostic.
33410
33411 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33412
33413         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
33414         or AC_FUNC_REALLOC.
33415
33416 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33417
33418         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
33419         macros to be defined.
33420         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
33421         the allocator returns NULL because the requested size is zero.
33422
33423 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33424
33425         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
33426         var.  Add comment explaining why libc still defines it.  This
33427         merges the following patch from glibc:
33428         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33429
33430 2004-05-20  Andreas Schwab  <schwab@suse.de>
33431
33432         * m4/free.m4: Replace free if it not known to work, not the other
33433         way round.
33434
33435 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33436
33437         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33438         present in glibc since revision 1.1 of this file.
33439         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33440         obstack_alignment_mask, obstack_alloc, obstack_base,
33441         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33442         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33443         obstack_grow0, obstack_init, obstack_int_grow,
33444         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33445         obstack_next_free, obstack_object_size, obstack_ptr_grow,
33446         obstack_ptr_grow_fast, obstack_room): Remove declarations of
33447         nonexistent functions.
33448
33449 2004-05-18  Karl Berry  <karl@gnu.org>
33450
33451         * config/srclist.txt: break link for vasnprintf.c.
33452
33453 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33454
33455         Port obstack to the AS/400, where pointers are 16 bytes wide and
33456         you cannot cast an integer to a valid pointer.  This patch is
33457         currently waiting to be integrated into glibc; see
33458         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
33459
33460         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
33461         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
33462         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
33463         (struct obstack): temp member is now a union of a pointer and
33464         an integer, instead of an integer.  All integer uses changed.
33465         This does not affect the physical layout of struct obstack,
33466         except on hosts (like the AS/400) where the size or alignment of
33467         void * is greater than that of ptrdiff_t.
33468         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
33469         __STDC__)]: Store temporary in pointer member of union, not
33470         integer member.
33471         * lib/obstack.c: Include <stddef.h>, for offsetof.
33472         (struct fooalign): Remove; it doesn't need a name.
33473         (union fooround): Change double to long double, and add void *.
33474         (DEFAULT_ALIGNMENT): Use offsetof to compute.
33475         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
33476         not a macro.  Hence the values are always int; so remove all
33477         casts-to-int in uses.
33478
33479 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33480
33481         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
33482         we can get this patch merged into glibc.
33483
33484 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33485             Paul Eggert  <eggert@cs.ucla.edu>
33486
33487         * m4/argp: Depend on alloca.
33488
33489 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33490             Paul Eggert  <eggert@cs.ucla.edu>
33491
33492         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
33493         freecoding.
33494
33495 2004-05-17  Bruno Haible  <bruno@clisp.org>
33496
33497         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
33498         precision that consists of a '.' followed by an empty digit string.
33499         Patch by Tor Lillqvist <tml@iki.fi>.
33500
33501 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33502
33503         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
33504         for backward compatibility with older code.  We need our own
33505         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
33506         it under some other name, and our alloca.h will define it.
33507
33508 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33509             Derek Price  <derek@ximbiot.com>
33510
33511         * lib/alloca.c: Include <alloca.h>, to get our interface.
33512         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
33513         include <alloca.h> first.  Use C89 prototype for alloca; this
33514         requires including <stddef.h> for size_t.  Use extern "C" if C++.
33515         Use #elif for simplicity, since we can assume C89 now.
33516         Don't try to source the system alloca.h since it will not be found
33517         and to prevent recursively including its replacement.
33518         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
33519         * lib/regex.c: Likewise.
33520
33521 2004-05-16  Derek Price  <derek@ximbiot.com>
33522             Paul Eggert  <eggert@cs.ucla.edu>
33523
33524         getline cleanup.  This changes the getndelim2 API: both order of
33525         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
33526         no delimiter).
33527
33528         * lib/getline.c: Don't include stddef.h or stdio.h, since our
33529         interface does that.
33530         (getline): Always use getdelim, so that we don't have two
33531         copies of this code.
33532         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
33533         if available.
33534         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
33535         (GETNDELIM2_MAXIMUM): New macro.
33536         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
33537         instead of the old practice of delim2==0.  All callers changed.
33538         Return -1 on overflow, instead of returning junk.
33539         Do not set *linesize unless allocation succeeds.
33540         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
33541         that we include sys/types.h.
33542         * lib/getnline.h: Likewise.
33543         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
33544         (getndelim2): Reorder arguments.
33545         * lib/getnline.c (getnline, getndelim):
33546         Don't discard the NMAX argument.
33547         (getnline): Invoke getndelim, to avoid code duplication.
33548         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
33549         of (size_t) -1 by callers of the getnline family.
33550
33551 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33552
33553         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
33554         Check for gettimeofday.
33555         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
33556         Check for settimeofday, stime.
33557
33558 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33559
33560         * lib/nanosleep.c (suspended): Change its type from int to
33561         sig_atomic_t volatile.
33562         (first_call): Make it private to rpl_nanosleep, and have it
33563         be zero initially as that's a bit faster.
33564         (my_usleep): Round up fractional times instead of truncating them,
33565         as this is the usual meaning for 'sleep'.
33566
33567         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
33568         doesn't work.
33569         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
33570         (ENOSYS): Define if not defined.
33571         (settime): Fall back on stime if it exists and settimeofday fails.
33572         But don't bother with fallbacks if a method fails with errno == EPERM.
33573
33574 2004-05-11  Jim Meyering  <jim@meyering.net>
33575
33576         Prior to this change, the save_cwd caller required read access to the
33577         current directory on most systems (ones with the fchdir function).
33578
33579         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
33580         fails, try write-only, and finally, resort to using xgetcwd.
33581
33582 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33583
33584         * lib/obstack.c, obstack.h: Import changes from libc.
33585
33586 2004-04-28  Bruno Haible  <bruno@clisp.org>
33587
33588         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
33589         also implicitly appends .exe to executables.
33590         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
33591         accepts Windows pathnames.
33592         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33593         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33594         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33595         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33596         Reported by Derek Robert Price <derek@ximbiot.com>.
33597
33598 2004-04-21  Karl Berry  <karl@gnu.org>
33599
33600         * config/srclist.txt (localcharset.c): break sync.
33601
33602 2004-04-20  Paul Eggert  <eggert@twinsun.com>
33603
33604         * m4/host-os.m4: Add a copyright notice.
33605
33606 2004-04-20  Jim Meyering  <jim@meyering.net>
33607
33608         Change UTILS_ to gl_ in AC_DEFINE'd names.
33609         Change utils_- and jm_-prefixed variables, too.
33610         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
33611         UTILS_FUNC_MKDIR_TRAILING_SLASH.
33612         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
33613
33614         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
33615         Don't emit trailing blanks.
33616         Also rename jm_-prefixed variables to have gl_ prefix.
33617
33618         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
33619         Also rename jm_-prefixed variables to have gl_ prefix.
33620
33621         * m4/jm-macros.m4: Reflect the renamings.
33622         * m4/prereq.m4: Likewise.
33623
33624 2004-04-20  Jim Meyering  <jim@meyering.net>
33625
33626         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
33627         memory.
33628
33629 2004-04-20  Jim Meyering  <jim@meyering.net>
33630             Bruno Haible  <bruno@clisp.org>
33631
33632         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
33633         memory when realloc fails.
33634
33635 2004-04-19  Jim Meyering  <jim@meyering.net>
33636
33637         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
33638         now that readutmp.c may call `free (0)'.
33639
33640 2004-04-19  Bruno Haible  <bruno@clisp.org>
33641
33642         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
33643         * m4/inttypes_h.m4: Likewise.
33644         * m4/stdint_h.m4: Likewise.
33645         * m4/intmax_t.m4: Likewise.
33646         * m4/uintmax_t.m4: Likewise.
33647
33648 2004-04-18  Jim Meyering  <jim@meyering.net>
33649
33650         * m4/prereq.m4: Don't forbid jm_ prefix.
33651
33652         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
33653         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
33654         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
33655         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
33656         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
33657         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
33658         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
33659         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
33660         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
33661         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
33662         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
33663         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
33664         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
33665         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
33666         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
33667         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
33668         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
33669         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
33670         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
33671
33672 2004-04-18  Jim Meyering  <jim@meyering.net>
33673
33674         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
33675         failure, don't leak memory and do call END_UTMP_ENT.
33676
33677 2004-04-16  Jim Meyering  <jim@meyering.net>
33678
33679         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
33680         coreutils' stat program.
33681         (gl_PREREQ): Don't require jm_PREREQ_STAT.
33682
33683 2004-04-11  Paul Eggert  <eggert@twinsun.com>
33684
33685         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
33686         C89.
33687         (CHAR_BIT): Remove, since we assume C89.
33688         Include <stdint.h> if available, as per current Autoconf CVS advice.
33689
33690 2004-03-31  Jim Meyering  <jim@meyering.net>
33691
33692         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
33693         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
33694         * m4/xalloc.m4: Likewise.
33695
33696 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33697
33698         Merge from coreutils.
33699
33700         * m4/inttostr.m4: New file.
33701         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
33702         Require AM_STDBOOL_H and gl_TIMESPEC instead.
33703         Require gl_CLOCK_TIME.
33704         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
33705
33706 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33707
33708         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
33709         not bool, to be more consistent with Unix conventions.
33710         Suggested by Bruno Haible.
33711
33712         Merge from coreutils.
33713
33714         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
33715         * lib/umaxtostr.c: New files.
33716
33717         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
33718         the usual <time.h> dance.
33719         (get_date): Change signature to support fractional time stamps.
33720         All callers changed.
33721         * lib/getdate.y: Include "getdate.h" first, as we can now
33722         assume C89 and don't need to worry about 'const'.
33723         Similarly, include "unlocked-io.h" near start, not in middle.
33724         Include <limits.h>.
33725         (textint.value): Use long int rather than int.
33726         (textint.digits): Use size_t rather than int.
33727         (BILLION, LOG10_BILLION): New constants.
33728         (parser_control): New member rel_ns.  Members day_ordinal,
33729         time_zone, month, day, hour, minutes, rel_year, rel_month,
33730         rel_day, rel_hour, rel_minutes, rel_seconds
33731         are now long int, not int.  Member seconds is now struct timespec,
33732         not int.  New member timespec_seen.  Members dates_seen, days_seen,
33733         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
33734         not int.
33735         (%union.intval): Now long int, not int.
33736         New member timespec.
33737         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
33738         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
33739         (spec): Now is a timespec or an item list.
33740         (timespec, items): New nonterminals.
33741         (time, rel, relunit, number, get_date):
33742         Add support for fractional seconds.
33743         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
33744         (gmtime, localtime, mktime): Remove decls; not needed with C89.
33745         (to_hour): First arg is now long int, not int.
33746         (to_year): Returns long int, not int.
33747         Don't treat year -70 like 70.
33748         (tm_diff): Returns long int, not int.
33749         (lookup_word): Use bool instead of int when appropriate.
33750         (yylex): Use size_t for count, not int.
33751         Detect overflow when parsing large integer constants.
33752         Add support for fractions.
33753         (get_date): Make pointers 'const' if possible.
33754         Use more-portable code to detect integer overflow.
33755         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
33756         Don't use ctime; it's not reliable if the year has >4 digits.
33757
33758         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
33759         This is for compatibility with BSD.
33760
33761         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
33762         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
33763         From coreutils' system.h.
33764
33765         * lib/userspec.c: Don't include "posixver.h".
33766         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
33767         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
33768         compatible extension.  Simplify code by removing a boolean int
33769         that was always nonzero if a string was nonnull.
33770
33771 2004-03-30  Jim Meyering  <jim@meyering.net>
33772
33773         Merge from coreutils.
33774
33775         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
33776         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
33777         on some systems one must include <grp.h> before it.
33778         Reported by Christian Krackowizer.
33779
33780 2004-03-30  Jim Meyering  <jim@meyering.net>
33781
33782         Merge from coreutils.
33783
33784         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
33785
33786         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
33787         an empty input stream.
33788
33789         * lib/readtokens.c: Include <stdbool.h>.
33790         (readtoken): Use `size_t' rather than int/long.
33791         All callers adjusted.
33792         Use `bool' rather than `int' where appropriate.
33793         Use memset rather than an explicit loop.
33794         Use x2nrealloc rather than xrealloc.
33795         Allow the use of `\0' as a delimiter.
33796         (readtokens): Likewise.
33797         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
33798
33799 2004-03-30  Jim Meyering  <jim@meyering.net>
33800
33801         * m4/realloc.m4: Remove file, since now it does no more than
33802         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
33803         the `configure.ac' section of module/realloc.
33804         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
33805
33806 2004-03-30  Bruno Haible  <bruno@clisp.org>
33807
33808         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
33809         nonnull.
33810
33811 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33812
33813         Merge changes to getloadavg.c from coreutils and Emacs.
33814
33815         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
33816         Define to an expression, not to the empty string.
33817         Include cloexec.h and xalloc.h.
33818         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
33819         Use set_cloexec_flag rather than rolling our own.
33820         * lib/cloexec.c, lib/cloexec.h: New files.
33821
33822 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33823
33824         * m4/cloexec.m4: New file.
33825
33826 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33827
33828         * lib/getopt.h: Sync with libc CVS.
33829
33830 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33831             Bruno Haible  <bruno@clisp.org>
33832
33833         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
33834         mbswidth.
33835
33836 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33837             Bruno Haible  <bruno@clisp.org>
33838
33839         * lib/mbswidth.h: Include <wchar.h> only if
33840         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
33841         <wchar.h>.
33842         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
33843
33844 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33845
33846         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
33847         Sync with libc CVS.
33848         * lib/getopt_int.h: New file, also synced from libc.
33849
33850 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33851
33852         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
33853         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
33854         Bring back getopt.c, getopt.h, getopt1.c.
33855
33856 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33857
33858         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
33859         All uses changed.  Check for sa_sigaction member; this fixes
33860         a bug first reported by Jason Andrade in
33861         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33862
33863 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33864
33865         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
33866         '#if' expressions.  Unlike the code it replaces, it does not
33867         depend on (defined _SC_PAGESIZE).  However, it does depend on
33868         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
33869         first reported by Jason Andrade in
33870         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33871
33872 2004-02-25  Simon Josefsson  <jas@extundo.com>
33873
33874         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
33875
33876 2004-02-25  Simon Josefsson  <jas@extundo.com>
33877
33878         * lib/strdup.h: New file.
33879         * lib/strdup.c: Include it.
33880         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
33881         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
33882
33883 2004-02-23  Karl Berry  <karl@gnu.org>
33884
33885         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
33886         (from fencepost.gnu.org:/gd/gnuorg).
33887
33888 2004-02-23  Karl Berry  <karl@gnu.org>
33889
33890         * config/srclistvars.sh (GNUORG) [karl]: redefine.
33891         * config/srclist.txt: add maintain/standards documents.
33892
33893 2004-02-18  Bruno Haible  <bruno@clisp.org>
33894
33895         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
33896         Reported by Derek Robert Price <derek@ximbiot.com>.
33897
33898 2004-02-16  Karl Berry  <karl@gnu.org>
33899
33900         * config/mkinstalldirs, install-sh: update from automake.
33901
33902 2004-02-06  Karl Berry  <karl@gnu.org>
33903
33904         * m4/po.m4: update from gettext 0.14.1.
33905
33906 2004-02-06  Karl Berry  <karl@gnu.org>
33907
33908         * lib/config.charset: update from gettext 0.14.1.
33909
33910 2004-02-05  Paul Eggert  <eggert@twinsun.com>
33911
33912         Add comments and code, prompted by suggestions from Bruno Haible
33913         for sh-quote.
33914         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
33915         describing the enum quoting_style values.
33916         * lib/quotearg.c (quotearg_alloc): New function.
33917         (quotearg_buffer_restyled): Treat lone { and } as special.
33918         Treat = as special.  Work around bug with older shells
33919         that "see" a '\' that is really the 2nd byte of a multibyte char.
33920         Quote empty string with shell_quoting_style.
33921
33922 2004-02-03  Bruno Haible  <bruno@clisp.org>
33923
33924         * m4/pipe.m4: New file, from GNU gettext.
33925
33926 2004-02-03  Bruno Haible  <bruno@clisp.org>
33927
33928         * lib/pipe.h: New file, from GNU gettext.
33929         * lib/pipe.c: New file, from GNU gettext.
33930
33931 2004-01-27  Bruno Haible  <bruno@clisp.org>
33932
33933         * m4/execute.m4: New file, from GNU gettext.
33934
33935 2004-01-27  Bruno Haible  <bruno@clisp.org>
33936
33937         * lib/execute.h: New file, from GNU gettext.
33938         * lib/execute.c: New file, from GNU gettext.
33939         * lib/w32spawn.h: New file, from GNU gettext.
33940
33941 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33942
33943         Merge from diffutils.
33944
33945         * lib/file-type.c (file_type): Add typed memory objects.
33946         * lib/file-type.h (S_TYPEISTMO): New macro.
33947
33948         * lib/c-stack.h (c_stack_action): Remove argv argument.
33949         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
33950         (die): Don't calculate message unless segv_action returns.
33951         (get_stack_location, min_address_from_argv, max_address_from_argv,
33952         volatile stack_base, volatile_stack_size): Remove.
33953         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
33954         that every segmentation violation is a stack overflow.  (Ouch!)
33955         See Debian bug 136249 (still outstanding) for more info about why
33956         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
33957
33958 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33959
33960         Exit-status fix from coreutils.
33961
33962         Use exit_failure consistently in place of EXIT_FAILURE,
33963         so that program exit statuses are consistent on failure.
33964
33965         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
33966         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
33967         * lib/argmatch.h: Comment fix to match the above.
33968         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
33969         Now a macro referring to exit_failure, instead of a separate
33970         variable.  Include "exitfail.h" to get it.
33971         * lib/xstrtol.h: Include "exitfail.h".
33972         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
33973
33974         * lib/long-options.c (parse_long_options): Use prototype
33975         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
33976         for clarity.
33977
33978 2004-01-21  Jim Meyering  <jim@meyering.net>
33979
33980         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
33981         so as not to conflict with a different-sized __mktime_internal
33982         function in GNU libc.
33983         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
33984         Problem building statically-linked `ls' reported by Michael Brunnbauer.
33985
33986 2004-01-20  Karl Berry  <karl@gnu.org>
33987
33988         * config/config.guess: update from config.
33989
33990         * config/srclistvars.sh: GNUWWWLICENSES for karl.
33991
33992 2004-01-20  Bruno Haible  <bruno@clisp.org>
33993
33994         Safer stack allocation.
33995         * lib/setenv.c: Include allocsa.h.
33996         (alloca): Remove fallback definition.
33997         (freea): Remove macro.
33998         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
33999         instead of freea.
34000
34001 2004-01-20  Bruno Haible  <bruno@clisp.org>
34002
34003         * m4/eealloc.m4: New file, from GNU gettext.
34004
34005 2004-01-20  Bruno Haible  <bruno@clisp.org>
34006
34007         * m4/allocsa.m4: New file, from GNU gettext.
34008
34009 2004-01-20  Bruno Haible  <bruno@clisp.org>
34010
34011         * lib/xallocsa.h: New file, from GNU gettext.
34012         * lib/xallocsa.c: New file, from GNU gettext.
34013
34014 2004-01-20  Bruno Haible  <bruno@clisp.org>
34015
34016         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
34017
34018 2004-01-20  Bruno Haible  <bruno@clisp.org>
34019
34020         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
34021         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
34022         specially.
34023
34024 2004-01-20  Bruno Haible  <bruno@clisp.org>
34025
34026         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
34027         patch.
34028
34029 2004-01-20  Bruno Haible  <bruno@clisp.org>
34030
34031         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
34032
34033 2004-01-20  Bruno Haible  <bruno@clisp.org>
34034
34035         * lib/eealloc.h: New file.
34036
34037 2004-01-20  Bruno Haible  <bruno@clisp.org>
34038
34039         * lib/binary-io.h: Avoid warnings on Cygwin.
34040
34041 2004-01-20  Bruno Haible  <bruno@clisp.org>
34042
34043         * lib/allocsa.h: New file, from GNU gettext.
34044         * lib/allocsa.c: New file, from GNU gettext.
34045
34046 2004-01-18  Karl Berry  <karl@gnu.org>
34047
34048         * doc/gpl.texi, doc/lgpl.texi: new files.
34049
34050 2004-01-18  Karl Berry  <karl@gnu.org>
34051
34052         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
34053         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
34054
34055 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34056
34057         Merge from coreutils.
34058
34059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
34060         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
34061         (gl_DEFAULT_POSIX2_VERSION): Move
34062         the documentation from 'configure' into 'config.hin',
34063         so that 'configure --help' isn't burdened by it and
34064         we don't have to worry about its formatting there.
34065         Reword the documentation so that it's more succinct
34066         and can be run together into a single paragraph.
34067         * m4/same.m4 (gl_SAME): Check for pathconf.
34068
34069 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34070
34071         Merge from coreutils.
34072
34073         * lib/posixver.c: Include posixver.h.
34074
34075         * lib/same.c: Include <stdbool.h>, <limits.h>.
34076         (_POSIX_NAME_MAX): Define if not defined.
34077         (MIN): New macro.
34078         (same_name): If file names are silently truncated, report
34079         that the file names are the same if they are the same after
34080         the silent truncation.
34081
34082         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
34083         conversion function.
34084         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
34085         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
34086         longer needed.
34087
34088 2004-01-15  Jim Meyering  <jim@meyering.net>
34089
34090         Merge from coreutils.
34091
34092         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
34093         if no library is required.
34094         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
34095         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
34096         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
34097         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
34098         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
34099         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
34100         value, $ac_cv_search_crypt, if it's "none required".
34101         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
34102         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
34103         not gl_FUNC_GETLOADAVG.
34104         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
34105         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
34106
34107 2004-01-15  Jim Meyering  <jim@meyering.net>
34108
34109         Merge from coreutils.
34110
34111         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
34112         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
34113         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
34114
34115         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
34116         optional configure-time default.
34117
34118         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34119
34120         * lib/xreadlink.c (xreadlink): Correct outdated comment.
34121
34122 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
34123
34124         Merge from coreutils.
34125
34126         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
34127         value, $ac_cv_search_nanosleep, if it's "none required".
34128
34129 2004-01-14  Paul Eggert  <eggert@twinsun.com>
34130
34131         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
34132         with like-named macro in fnmatch.c.
34133         (EXT): Use an internal constant instead.
34134
34135         Merge fnmatch patches from glibc.
34136         * lib/fnmatch.c (mbsinit): Remove define.
34137         Add libc_hidden_ver (__fnmatch, fnmatch).
34138         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
34139         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
34140
34141 2004-01-14  Karl Berry  <karl@gnu.org>
34142
34143         * config/install-sh: update from automake.
34144
34145 2004-01-13  Karl Berry  <karl@gnu.org>
34146
34147         * config/install-sh: update from automake.
34148
34149 2004-01-09  Karl Berry  <karl@gnu.org>
34150
34151         * config/install-sh: update from automake.
34152
34153 2004-01-05  Karl Berry  <karl@gnu.org>
34154
34155         * config/config.{sub,guess}: update from config.
34156
34157 2003-12-31  Karl Berry  <karl@gnu.org>
34158
34159         * config/depcomp: update from automake.
34160
34161 2003-12-14  Karl Berry  <karl@gnu.org>
34162
34163         * lib/config.charset: update from gettext-runtime.
34164
34165 2003-12-03  Paul Eggert  <eggert@twinsun.com>
34166
34167         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
34168         Bug reported by Alfred M. Szmidt.
34169
34170 2003-12-03  Bruno Haible  <bruno@clisp.org>
34171
34172         * m4/gettext.m4: Upgrade from gettext-0.13.
34173         * m4/po.m4: Upgrade from gettext-0.13.
34174         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
34175         * m4/intmax.m4: New file, from gettext-0.13.
34176         * m4/printf-posix.m4: New file, from gettext-0.13.
34177
34178 2003-11-29  Karl Berry  <karl@gnu.org>
34179
34180         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
34181
34182 2003-11-25  Paul Eggert  <eggert@twinsun.com>
34183             Bruno Haible  <bruno@clisp.org>
34184
34185         * lib/printf-parse.h: Don't include sys/types.h.
34186         (ARG_NONE): New macro.
34187         (char_directive): Change type of *arg_index fields to size_t.
34188         * lib/printf-parse.c: Don't include sys/types.h.
34189         (SSIZE_MAX): Remove macro.
34190         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
34191         Remove unnecessary overflow check.
34192         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
34193         fields.
34194
34195 2003-11-25  Bruno Haible  <bruno@clisp.org>
34196
34197         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
34198
34199 2003-11-25  Bruno Haible  <bruno@clisp.org>
34200
34201         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
34202         gt_TYPE_SSIZE_T.
34203
34204 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34205
34206         * modules/alloca: Remove dependency on xalloc.
34207
34208 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34209
34210         * lib/alloca.c: Remove dependency on xalloc module.
34211         (xalloc_die): Remove.
34212         (memory_full) [!defined emacs]: New macro.
34213         [!defined emacs]: Don't include xalloc.h.
34214         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
34215         address arithmetic overflows.  Change datatypes a bit to avoid
34216         unnecessary casts.
34217
34218 2003-11-22  Jim Meyering  <jim@meyering.net>
34219
34220         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
34221         s/size/size_t/.
34222
34223 2003-11-21  Karl Berry  <karl@gnu.org>
34224
34225         * config/config.{sub,guess}: update from config.
34226
34227 2003-11-18  Karl Berry  <karl@gnu.org>
34228
34229         * config/config.{sub,guess}: update from config.
34230
34231         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
34232
34233 2003-11-17  Paul Eggert  <eggert@twinsun.com>
34234
34235         * README: Mention that S+T cannot overflow if S is the size of
34236         an existing object and T is sufficiently small.
34237
34238 2003-11-17  Jim Meyering  <jim@meyering.net>
34239
34240         On systems without utime and without a utimes function capable of
34241         dealing with a NULL struct utimbuf* argument, this utime replacement
34242         could -- in unusual circumstances -- leak a file descriptor.
34243         * lib/utime.c: Include <unistd.h> and <errno.h>.
34244         (utime_null): Be sure to close `fd' and to preserve errno.
34245         Reported by Geoff Collyer via Arnold Robbins.
34246
34247 2003-11-17  Bruno Haible  <bruno@clisp.org>
34248
34249         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
34250         (Depends-on): Add xsize.
34251
34252 2003-11-17  Bruno Haible  <bruno@clisp.org>
34253
34254         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
34255
34256 2003-11-17  Bruno Haible  <bruno@clisp.org>
34257
34258         * lib/vasnprintf.c (alloca): Remove fallback definition.
34259         (freea): Remove definition.
34260         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
34261         Reported by Paul Eggert.
34262
34263 2003-11-16  Paul Eggert  <eggert@twinsun.com>
34264             Bruno Haible  <bruno@clisp.org>
34265
34266         Protect against address arithmetic overflow.
34267         * lib/printf-args.h: Include stddef.h.
34268         (arguments): Change type of field 'count' to size_t.
34269         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
34270         'unsigned int' where appropriate.
34271         * lib/printf-parse.h: Include sys/types.h.
34272         (char_directive): Change type of *arg_index fields to ssize_t.
34273         (char_directives): Change type of fields 'count', max_*_length to
34274         size_t.
34275         * lib/printf-parse.c: Include sys/types.h and xsize.h.
34276         (SSIZE_MAX): Define fallback value.
34277         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
34278         instead of 'int' where appropriate. Check a_allocated, d_allocated
34279         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
34280         * lib/vasnprintf.c: Include xsize.h.
34281         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
34282         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
34283         overflow. Avoid wraparound when converting a width or precision from
34284         decimal to binary.
34285
34286 2003-11-16  Bruno Haible  <bruno@clisp.org>
34287
34288         Update from GNU gettext.
34289         * lib/printf-parse.c: Generalize to it can be compiled for wide
34290         strings.
34291         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
34292         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
34293         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
34294         SNPRINTF): New macros.
34295         Don't include <alloca.h> if the file is used inside libintl.
34296         (local_wcslen): New function, for Solaris 2.5.1.
34297         (VASNPRINTF): Use it instead of wcslen.
34298
34299 2003-11-16  Bruno Haible  <bruno@clisp.org>
34300
34301         * lib/xsize.h (xmax): New function.
34302         (xsum, xsum3, xsum4): Declare as "pure" functions.
34303
34304 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34305
34306         * modules/xalloc (Files): Undo latest change, since xalloc.h
34307         no longer needs SIZE_MAX or PTRDIFF_MAX.
34308
34309 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34310
34311         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34312         gl_PTRDIFF_MAX.
34313
34314 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34315
34316         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34317         "return", to pacify some unknown compiler.  Problem reported
34318         by Joerg Schilling.
34319
34320 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34321
34322         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34323         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34324         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34325         heuristic is just as accurate as far as we know, and it removes a
34326         dependency on size_max.m4 and ptrdiff_max.m4.
34327
34328 2003-11-11  Bruno Haible  <bruno@clisp.org>
34329
34330         * modules/xsize (Files): Add m4/size_max.m4.
34331         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34332
34333 2003-11-11  Bruno Haible  <bruno@clisp.org>
34334
34335         * m4/size_max.m4: New file.
34336         * m4/ptrdiff_max.m4: New file.
34337         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34338         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34339         (gl_XALLOC): Invoke it.
34340
34341 2003-11-11  Bruno Haible  <bruno@clisp.org>
34342
34343         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34344         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34345         defined.
34346
34347 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34348
34349         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34350         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34351         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34352         From Bruno Haible.
34353         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34354         not (size_t) -1, since it's defined here.
34355
34356 2003-11-09  Karl Berry  <karl@gnu.org>
34357
34358         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34359
34360 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34361
34362         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34363         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34364         Reject sizes of exactly SIZE_MAX bytes.
34365         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34366         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34367
34368 2003-11-05  Bruno Haible  <bruno@clisp.org>
34369
34370         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34371         SIZE_MAX defined in <limits.h> on Solaris.
34372
34373 2003-11-04  Jim Meyering  <jim@meyering.net>
34374
34375         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34376         variable names, rather than @VAR@.
34377         * modules/poll: Likewise.
34378
34379 2003-11-04  Bruno Haible  <bruno@clisp.org>
34380
34381         * modules/xsize: New file.
34382         * modules/linebreak: Depend on xsize.
34383         * MODULES.html.sh (func_all_modules): Add xsize.
34384
34385 2003-11-04  Bruno Haible  <bruno@clisp.org>
34386
34387         * m4/xsize.m4: New file.
34388
34389 2003-11-04  Bruno Haible  <bruno@clisp.org>
34390
34391         * lib/xsize.h: New file.
34392         * lib/linebreak.c: Include xsize.h.
34393         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34394         argument for overflow.
34395         Suggested by Paul Eggert.
34396
34397 2003-11-03  Karl Berry  <karl@gnu.org>
34398
34399         * config/config.{guess,sub}: update from config.
34400
34401 2003-11-03  Jim Meyering  <jim@meyering.net>
34402
34403         * modules/userspec (lib_SOURCES): Add userspec.h.
34404         (Include): Add "userspec.h".
34405         Improve description.
34406
34407 2003-11-03  Jim Meyering  <jim@meyering.net>
34408
34409         * lib/userspec.c: Include "userspec.h".
34410         * lib/userspec.h: New file.
34411
34412 2003-11-03  Bruno Haible  <bruno@clisp.org>
34413
34414         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
34415
34416 2003-11-03  Bruno Haible  <bruno@clisp.org>
34417
34418         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
34419         available, to avoid (extremely rare) race condition.
34420         Suggested by Paul Eggert.
34421
34422 2003-11-02  Karl Berry  <karl@gnu.org>
34423
34424         * config/srclist.txt (vasprintf.c): sync broken, sigh.
34425
34426 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34427
34428         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34429         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34430         (read_filesystem_list): Set and use me_type_malloced.
34431         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34432         whatever the type happens to be), for brevity and consistency.
34433         Check for size calculation overflow on Alphas running OSF/1.
34434
34435 2003-10-31  Jim Meyering  <jim@meyering.net>
34436
34437         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34438
34439         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34440
34441 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34442             Bruno Haible  <bruno@clisp.org>
34443
34444         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34445         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
34446
34447 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34448
34449         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
34450         netbsd*-gnu*.  Suggested by Robert Millan.
34451
34452 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34453
34454         * modules/group-member: Depend on stdbool.
34455
34456 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34457
34458         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
34459
34460 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34461
34462         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
34463         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
34464         after the 'gnu' in these cases.  This fixes some bugs in the
34465         previous change, and is based on suggestions by Robert Millan.
34466
34467 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34468
34469         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
34470         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
34471         no longer needed.
34472         * lib/quotearg.c (quotearg_n_options): Use it.
34473         * lib/group-member.c: Include <stdbool.h>.
34474         (free_group_info): Arg is now const *; don't free arg.
34475         (get_group_info): Now returns bool and accepts struct group_info *,
34476         rather than returning a malloc'ed struct group_info *.
34477         All uses changed.  Check for overflow in internal size calculation.
34478
34479         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
34480         rather than xmalloc/xrealloc.
34481         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
34482         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
34483         conformance bug: the old code used a pointer after freeing the
34484         storage that it addressed.
34485         * lib/hash.c (hash_initialize): Simplify the code by using
34486         xalloc_oversized rather than doing it by hand.
34487         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
34488         the buffer preserved.  Use free and xmalloc instead.
34489         * lib/quotearg.c (quotearg_n_options): Likewise.
34490         Use a simpler test for size overflow.  Don't use xalloc_oversized
34491         because unsigned int might be wider than size_t (!); this suggests
34492         that we should switch from unsigned int to size_t for slot numbers.
34493
34494 2003-10-28  Paul Eggert  <eggert@twinsun.com>
34495
34496         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
34497         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
34498         NetBSD kernels.  Requested by Richard Stallman.
34499
34500 2003-10-27  Paul Eggert  <eggert@twinsun.com>
34501
34502         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
34503         to allocate the returned structure.  Do not allocate a subarray,
34504         as x2nrealloc will do that.
34505         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
34506         instead of xnrealloc.
34507         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
34508
34509 2003-10-27  Bruno Haible  <bruno@clisp.org>
34510
34511         * lib/stdbool_.h: Better support for BeOS.
34512
34513 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34514
34515         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
34516         now uses inline.
34517
34518 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34519
34520         * lib/xalloc.h (xalloc_oversized): New static inline function, for
34521         callers that want to do their own size-overflow checking.  Include
34522         <stdbool.h>, since xalloc_oversized returns bool.
34523         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
34524         to use xalloc_oversized.
34525
34526         Add two functions x2realloc, x2nrealloc, for programs that grow
34527         arrays dynamically by doubling their sizes.
34528         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
34529         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
34530         New functions.
34531
34532         Port to C99 semantics for 'inline' of external functions.
34533         Bug reported by Bruno Haible.
34534         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
34535         with the old contents of xnmalloc.
34536         (xnmalloc, xmalloc): Use it.
34537         (xnrealloc_inline): New static inline function,
34538         with the old contents of xnrealloc.
34539         (xnrealloc, xrealloc): Use it.
34540
34541         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
34542         that.
34543
34544 2003-10-26  Karl Berry  <karl@gnu.org>
34545
34546         * config/srclist.txt (COPYING.DOC): no longer available from
34547         /gd/gnuorg; don't know where the ultimate source is.
34548
34549 2003-10-25  Paul Eggert  <eggert@twinsun.com>
34550
34551         Fix several address-calculation bugs in the hash modules,
34552         plus some minor code cleanup.
34553
34554         * lib/hash.h: Include <stdbool.h>, for bool.
34555         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
34556         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
34557         hash_get_n_entries, hash_get_max_bucket_length,
34558         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
34559         hash_rehash): Use size_t rather than unsigned.
34560         * lib/hash.c (struct hash_table, hash_get_n_buckets,
34561         hash_get_n_buckets_used, hash_get_n_entries,
34562         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
34563         hash_get_entries, hash_do_for_each, hash_string, is_prime,
34564         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
34565         Likewise.
34566         (SIZE_MAX): Define if not defined.
34567         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
34568         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
34569         hash_print):
34570         Use const * when possible.
34571         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
34572         (check_tuning): Fix bug: if tuning parameters were very close to
34573         0 or 1, rounding errors could have caused subscript violations.
34574         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
34575         (hash_initialize): Add 'fail:' label
34576         to free table and return NULL, and use it to simplify code.
34577         Use calloc rather than clearing the storage ourself.
34578         (hash_initialize, hash_rehash): Check for arithmetic overflow in
34579         buffer size calculations.
34580         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
34581         Include <stddef.h>, for size_t.
34582         * lib/hash-pjw.c (hash_pjw): Likewise.
34583         Switch to method described by Bruno Haible.
34584         Include <limits.h>, for CHAR_BIT.
34585         (SIZE_BITS): New macro.
34586
34587 2003-10-23  Paul Eggert  <eggert@twinsun.com>
34588
34589         * m4/getline.m4 (AM_FUNC_GETLINE):
34590         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
34591         hosts.  Problem reported by Derek Robert Price in
34592         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
34593         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
34594         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
34595
34596 2003-10-21  Paul Eggert  <eggert@twinsun.com>
34597
34598         * lib/getndelim2.c (getndelim2): When size calculation overflows,
34599         ceiling the allocation at NMAX bytes rather than silently
34600         discarding input bytes before NMAX is reached.  This makes
34601         a difference only if NMAX exceeds SIZE_MAX / 2.
34602
34603         * lib/obstack.c: Merge from glibc.
34604         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
34605         Add libc_hidden_def (_obstack_newchunk).
34606         (_obstack_free) [! defined _LIBC]: Remove.
34607         [defined _LIBC]: Make a strong alias from obstack_free, rather than
34608         a clone of the function body.
34609         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
34610         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
34611
34612         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
34613         glibc.
34614         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
34615         arg to memcpy.
34616
34617         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
34618         (obstack_ptr_grow_fast, obstack_int_grow_fast):
34619         Don't use lvalue casts, as GCC plans to remove support for them
34620         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
34621         was also present in the non-GCC version, indicating that this
34622         code had always been buggy and had never been widely used.
34623         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
34624         Use the fast variant of each macro, rather than copying the
34625         definiens of the fast variant; that way, we'll be more likely to
34626         catch future bugs in the fast variants.
34627
34628 2003-10-20  Bruno Haible  <bruno@clisp.org>
34629
34630         * modules/wait-process: New file.
34631         * MODULES.html.sh (func_all_modules): Add wait-process.
34632
34633 2003-10-20  Bruno Haible  <bruno@clisp.org>
34634
34635         * m4/wait-process.m4: New file.
34636
34637 2003-10-20  Bruno Haible  <bruno@clisp.org>
34638
34639         * lib/wait-process.h: New file, from GNU gettext.
34640         * lib/wait-process.c: New file, from GNU gettext.
34641
34642 2003-10-19  Jim Meyering  <jim@meyering.net>
34643
34644         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
34645         HPUX 10.20.
34646
34647 2003-10-18  Karl Berry  <karl@gnu.org>
34648
34649         * config/config.guess: update from config.
34650
34651 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34652
34653         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
34654         (getgroups): First arg is int, not size_t.
34655         Don't let 'free' mangle errno.
34656
34657 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34658
34659         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
34660
34661 2003-10-16  Karl Berry  <karl@gnu.org>
34662
34663         * config/config.{guess,sub}: update from config.
34664
34665 2003-10-16  Jim Meyering  <jim@meyering.net>
34666
34667         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
34668         memcpy.
34669
34670 2003-10-15  Paul Eggert  <eggert@twinsun.com>
34671
34672         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
34673         (SIZE_MAX): Remove.
34674         (new_exclude, add_exclude_file): Initial size no longer needs to
34675         be a power of 2.
34676         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
34677         our own address arithmetic overflow checking.
34678
34679         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
34680         (fnmatch): Do not alloca more than 2000 wide characters;
34681         instead, use malloc for large buffers.
34682         Check for address arithmetic overflow, and return -1
34683         with errno set to ENOMEM in that case.
34684         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
34685         (NEW_PATTERN): Do not alloca more than 8000 bytes;
34686         instead, return -1.  Check for address arithmetic overflow.
34687
34688 2003-10-14  Paul Eggert  <eggert@twinsun.com>
34689
34690         Handle invalid suffixes and overflow independently, so that
34691         callers can treat them independently as needed.  Fix some bugs in
34692         suffix handling, e.g., "100k@" was not diagnosed as an invalid
34693         suffix for a human-readable blocksize.  The major caller-visible
34694         change is the addition of a new
34695         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
34696         that both overflow and suffix chars were found.
34697
34698         * lib/human.c (humblock): Don't check separately for invalid suffix
34699         char; that is xstrtoumax's job (now that its bug is fixed).
34700         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
34701         INTMAX_MAX]: New macros.
34702         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
34703         TYPE_MAXIMUM): New macros.
34704         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
34705         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
34706         if overflow occurs, as it's what __strtol does and it's more useful
34707         in practice.
34708         (__xstrtol): If __strtol reports some error other than ERANGE,
34709         reflect it to the caller as LONGINT_INVALID.  If it reports
34710         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
34711         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
34712         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
34713         value.
34714         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
34715         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
34716         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
34717         [defined UINTMAX_MAX]: New macros.
34718
34719 2003-10-14  Bruno Haible  <bruno@clisp.org>
34720
34721         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34722
34723 2003-10-14  Bruno Haible  <bruno@clisp.org>
34724
34725         * m4/sig_atomic_t: New file, from GNU gettext.
34726         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34727
34728 2003-10-14  Bruno Haible  <bruno@clisp.org>
34729
34730         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34731         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34732         Also use volatile where needed.
34733
34734 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34735
34736         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
34737         Change maintainer from Bruno Haible to 'all'.
34738
34739 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34740
34741         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
34742
34743 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34744
34745         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
34746         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
34747         and define in terms of the other primitives.
34748         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
34749         (SIZE_MAX): Define if not already defined.
34750         (array_size_overflow): New function.
34751         (xalloc_die): Abort instead of exiting if 'error' returns.
34752         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
34753         (xmalloc, xrealloc): Use them.
34754         (xcalloc): Check for address arithmetic overflow.
34755         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
34756         a bit faster than strcpy.
34757
34758 2003-10-10  Simon Josefsson  <jas@extundo.com>
34759
34760         * modules/argp (Depends-on): Add restrict and strcase.
34761
34762 2003-10-10  Simon Josefsson  <jas@extundo.com>
34763
34764         * m4/argp.m4: Add AC_C_INLINE.
34765
34766 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34767
34768         Merge getpass from libc, plus a few fixes.
34769
34770         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
34771         Include <stdbool.h>.
34772         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
34773         __fsetlocking to empty.
34774         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
34775         do include <bits/libc-lock.h>.
34776         Do not include <fcntl.h>; not needed.
34777         [_LIBC]: Include <wchar.h>.
34778         (NOTCANCEL_MODE): New macro.
34779         (flockfile, funlockfile) [_LIBC]: New macros.
34780         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
34781         [!_LIBC]: New macros.
34782         (call_fclose): New function.
34783         (getpass): Use it.  Save tty stream separately; this simplifies the
34784         code and makes it more reliable if stdin happens to equal stdout.
34785         Invoke __fsetlocking on tty.
34786         Handle thread cancellation if needed.
34787         Namespace cleanup (use __tcgetattr, __getline).
34788         Use bool for Booleans.
34789         [USE_IN_LIBIO]: Handle wide streams.
34790         [!_LIBC]: Unconditionally do the fseek, since we don't know what
34791         stream might go where.
34792
34793         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
34794         doesn't have to include <stdio.h> before us.
34795         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
34796         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
34797         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
34798         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
34799         if not declared, so that we can use getpass.c code from libc without
34800         rewriting it.
34801         (flockfile, ftrylockfile, funlockfile): New macros.
34802
34803 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34804
34805         * modules/getpass: Depend on stdbool.
34806
34807 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34808
34809         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
34810
34811 2003-10-07  Karl Berry  <karl@gnu.org>
34812
34813         * config/config.{guess,sub}: update from config.
34814
34815 2003-10-06  Jim Meyering  <jim@meyering.net>
34816             Bruno Haible  <bruno@clisp.org>
34817
34818         This lets translators provide better translations for the
34819         "Written by ..." part of --version output.
34820         * lib/version-etc.h: Include stdarg.h.
34821         (version_etc_copyright): Declare as readonly.
34822         (version_etc): Make this function variadic with a NULL-terminated list
34823         of author name strings.
34824         (version_etc_va): New declaration.
34825         * lib/version-etc.c: Include stdarg.h, stdlib.h.
34826         (version_etc_copyright): Declare as readonly.
34827         (version_etc_va): New function. Provide a different translatable string
34828         for each possible number of authors < 10. Abbreviate when there are 10
34829         authors or more.
34830         (version_etc): Make this function variadic. Call version_etc_va.
34831         Suggestion from Gary V. Vaughan.
34832
34833         * lib/long-options.h (parse_long_options): Change prototype: the
34834         authors string is moved to the end and becomes variadic.
34835         * lib/long-options.c: Include stdarg.h.
34836         (parse_long_options): Make this function variadic, too.
34837         Call version_etc_va, not version_etc.
34838
34839 2003-10-06  Bruno Haible  <bruno@clisp.org>
34840
34841         * modules/version-etc-2: Remove file.
34842         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
34843
34844 2003-10-06  Bruno Haible  <bruno@clisp.org>
34845
34846         * modules/fatal-signal: New file.
34847         * MODULES.html.sh (func_all_modules): Add fatal-signal.
34848
34849 2003-10-06  Bruno Haible  <bruno@clisp.org>
34850
34851         * m4/fatal-signal.m4: New file.
34852         * m4/signalblocking.m4: New file, from GNU gettext.
34853
34854 2003-10-06  Bruno Haible  <bruno@clisp.org>
34855
34856         * lib/version-etc-2.h: Remove file.
34857         * lib/version-etc-2.c: Remove file.
34858
34859 2003-10-06  Bruno Haible  <bruno@clisp.org>
34860
34861         * lib/fatal-signal.h: New file, from GNU gettext.
34862         * lib/fatal-signal.c: New file, from GNU gettext.
34863
34864 2003-10-05  Paul Eggert  <eggert@twinsun.com>
34865
34866         * README: Rework advice for preventing empty .o files.
34867         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
34868         not <sys/types.h>.
34869
34870 2003-10-04  Karl Berry  <karl@gnu.org>
34871
34872         * lib/argp*: update from libc.
34873
34874 2003-10-04  Karl Berry  <karl@gnu.org>
34875
34876         * config/config.{guess,sub}: update from config.
34877
34878 2003-10-02  Bruno Haible  <bruno@clisp.org>
34879
34880         * modules/lchown (Include): Add lchown.h.
34881         * modules/time_r (Include): Use "..." syntax.
34882         * modules/xgetdomainname (Include): Add xgetdomainname.h.
34883
34884 2003-10-01  Simon Josefsson  <jas@extundo.com>
34885
34886         * MODULES.html.sh (func_all_modules): Move gethostname from section
34887         'based on' to section 'lacking' POSIX:2001.
34888
34889 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
34890
34891         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
34892         to output mode on the same stream.
34893
34894 2003-09-29  Paul Eggert  <eggert@twinsun.com>
34895
34896         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
34897         Fix arg typo in previous patch.
34898
34899 2003-09-28  Jim Meyering  <jim@meyering.net>
34900
34901         * lib/error.c: Correct cpp indentation.
34902
34903 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34904
34905         * modules/free: New file.
34906
34907 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34908
34909         * m4/free.m4: New file.
34910
34911 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34912
34913         * lib/minmax.h (MIN, MAX)
34914         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
34915         Omit the special code that used __typeof__, since we worry that
34916         it could be more trouble than it's worth.  See:
34917         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
34918         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
34919
34920         * lib/free.c: New file.
34921
34922 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
34923
34924         Trivial fixes to Makefile.am parts of module listings.
34925         * modules/strstr: Append strstr.h to lib_SOURCES.
34926         * modules/strcase: Likewise, for strcase.h.
34927
34928 2003-09-27  Karl Berry  <karl@gnu.org>
34929
34930         * config/mkinstalldirs: update from automake.
34931
34932 2003-09-26  Paul Eggert  <eggert@twinsun.com>
34933
34934         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
34935         (error_tail): Do not loop, reallocating temporary buffer, since
34936         the output cannot contain more wide characters than the input
34937         contains bytes, the size must be big enough already.  This avoids
34938         one potential size overflow calculation.  Check for size overflow
34939         when calculating temporary buffer size.  Free temporary buffer
34940         when done, if it was allocated with malloc; this plugs a memory
34941         leak.  Remove casts from void * to pointers, that are no longer
34942         needed now that we're assuming C89 or better.
34943
34944         Merge error changes from glibc.
34945
34946         * lib/error.c, error.h: Update copyright notice header to match glibc.
34947         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
34948         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
34949         Disable cancellation while printing error.
34950         * lib/error.h: Prepend __ to parameter names.
34951
34952 2003-09-26  Jim Meyering  <jim@meyering.net>
34953
34954         * lib/error.c (error_tail): Move some declarations
34955         into inner scope where the local variables are used.
34956
34957 2003-09-26  Bruno Haible  <bruno@clisp.org>
34958
34959         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
34960         stpncpy().
34961         Don't define stpncpy through config.h; it's now done through stpncpy.h.
34962
34963 2003-09-26  Bruno Haible  <bruno@clisp.org>
34964
34965         * lib/stpncpy.h (gnu_stpncpy): New declaration.
34966         (stpncpy): Define as alias for gnu_stpncpy.
34967         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
34968
34969 2003-09-25  Simon Josefsson  <jas@extundo.com>
34970
34971         * lib/xgetdomainname.h: New file.
34972         * lib/xgetdomainname.c: New file.
34973
34974 2003-09-25  Simon Josefsson  <jas@extundo.com>
34975             Bruno Haible  <bruno@clisp.org>
34976
34977         * modules/getdomainname: New file.
34978         * modules/xgetdomainname: New file.
34979         * MODULES.html.sh (func_all_modules): Add getdomainname,
34980         xgetdomainname.
34981
34982 2003-09-25  Simon Josefsson  <jas@extundo.com>
34983             Bruno Haible  <bruno@clisp.org>
34984
34985         * m4/getdomainname.m4: New file.
34986
34987 2003-09-25  Simon Josefsson  <jas@extundo.com>
34988             Bruno Haible  <bruno@clisp.org>
34989
34990         * lib/getdomainname.h: New file.
34991         * lib/getdomainname.c: New file.
34992
34993 2003-09-25  Karl Berry  <karl@gnu.org>
34994
34995         * lib/argp-fmtstream.c, argp-help.c: update from libc.
34996
34997 2003-09-25  Karl Berry  <karl@gnu.org>
34998
34999         * config/install-sh: update from automake.
35000
35001 2003-09-25  Bruno Haible  <bruno@clisp.org>
35002
35003         * modules/version-etc-2: New file, from modules/version-etc with
35004         modifications.
35005         * MODULES.html.sh (func_all_modules): Add version-etc-2.
35006
35007 2003-09-25  Bruno Haible  <bruno@clisp.org>
35008
35009         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
35010         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
35011
35012 2003-09-24  Simon Josefsson  <jas@extundo.com>
35013
35014         * modules/xgethostname: Add xgethostname.h.
35015
35016 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35017
35018         * lib/linebuffer.c (freebuffer): Don't free the argument, just
35019         the buffer associated with the argument.  Bug reported by
35020         Simon Josefsson.
35021
35022 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35023
35024         * README: Document assumptions that 'int' is at least 32 bits
35025         wide, that integer arithmetic is 2's complement without overflow,
35026         that there are no holes in integer values, that adding sizes of
35027         two nonoverlapping objects can't overflow, and that all-bits-zero
35028         yields scalar zero.  Fix spelling and capitalization typos.
35029
35030 2003-09-19  Karl Berry  <karl@gnu.org>
35031
35032         * lib/argp.h: update from libc.
35033
35034 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35035
35036         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
35037         to avoid spurious warnings like "AC_RUN_IFELSE was called before
35038         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
35039
35040 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35041
35042         * gnulib-tool: Use "test -h", not "test -L", for portability
35043         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
35044         (tags_regexp): Remove, since \| doesn't conform to POSIX.
35045         (sed_extract_prog): Issue s commands one-by-one, rather than
35046         using \| in one s command.
35047
35048 2003-09-16  Paul Eggert  <eggert@twinsun.com>
35049
35050         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
35051         input error, instead of returning NULL the next time we are called
35052         (and therefore losing track of errno).
35053
35054 2003-09-16  Bruno Haible  <bruno@clisp.org>
35055
35056         * gnulib-tool (func_create_testdir): Warn about duplicated
35057         dependencies.
35058
35059 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35060
35061         * modules/argmatch, modules/fatal, modules/obstack,
35062         modules/xalloc, modules/xgethostname: Sort dependencies by
35063         importance, not alphabetically.
35064
35065 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35066
35067         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
35068         fails, so that the caller gets the proper errno.
35069
35070         * lib/readutmp.c (read_utmp): Likewise.
35071         Check for fstat error.  Close stream and free storage
35072         when failing.
35073
35074 2003-09-14  Karl Berry  <karl@gnu.org>
35075
35076         * config/srclist.txt (strdup.c): disable for c89 changes.
35077
35078 2003-09-14  Jim Meyering  <jim@meyering.net>
35079
35080         * lib/getloadavg.c: Correct cpp indentation.
35081         * lib/strdup.c: Likewise.
35082         * lib/vasnprintf.c: Likewise.
35083
35084 2003-09-14  Bruno Haible  <bruno@clisp.org>
35085
35086         * modules/fwriteerror: New file.
35087         * MODULES.html.sh (func_all_modules): Add fwriteerror.
35088
35089 2003-09-14  Bruno Haible  <bruno@clisp.org>
35090
35091         * lib/fwriteerror.h: New file.
35092         * lib/fwriteerror.c: New file.
35093
35094 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35095
35096         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
35097         modules/xgethostname, modules/xalloc: Depend on exit.
35098
35099 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35100
35101         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
35102
35103         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
35104         and AC_MINIX, too, so that their extensions are available.
35105
35106         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
35107         This macro has been superseded by gl_BACKUPFILE.
35108
35109         More patches to assume C89 or better.
35110
35111         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
35112
35113         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
35114         unconditionally.
35115         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
35116         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
35117         Include <string.h>, <stdlib.h> unconditionally.
35118         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
35119         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
35120         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
35121         headers or for string.h.
35122         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
35123         or strtoul.
35124
35125         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
35126         headers.
35127         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
35128         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35129         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
35130         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
35131         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35132         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
35133         memcpy, memset.
35134         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
35135         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
35136         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
35137         strtol.
35138         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
35139         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
35140         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
35141         strtoul.
35142
35143 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35144
35145         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
35146         * lib/obstack.c [!defined _LIBC]: Likewise.
35147         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
35148         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
35149         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
35150
35151         More changes to assume C89 or better.
35152
35153         * lib/error.c (error_tail): Assume vprintf.
35154
35155         * lib/argmatch.c (getenv): Remove decl.
35156         * lib/progreloc.c (get_full_program_name): Define via prototype.
35157         * lib/setenv.c (clearenv): Likewise.
35158         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
35159         needed.
35160         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
35161         (malloc, memcpy): Remove decls.
35162         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
35163         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
35164         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35165         (memcpy): Remove macro.
35166         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
35167         (__P): Remove.  All uses removed.
35168         (PTR): Remove.  All uses changed to void *.
35169         (CHAR_BIT, NULL): Remove.
35170         (spaces, zeros, memset_space, memset_zero)
35171         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
35172         Remove.
35173         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
35174         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
35175         Define with prototype.
35176         Remove now-unnecessary prototype decl.
35177         (extra_args_spec): Assume ANSI C.  All uses changed.
35178         (extra_args_spec_iso): Remove.
35179         (my_strftime, emacs_strftimeu): Define via prototype.
35180         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
35181         unconditionally.
35182         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
35183         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
35184         (strtoul, strtol): Remove decls.
35185         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
35186         LONG_MAX): Remove.
35187         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35188         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
35189         (LOCALE_PARAM_PROTO): New macro.
35190         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
35191         (INTERNAL (strtol), strtol): Define with a prototype.
35192         (PARAMS): Remove.  All uses removed.
35193         * lib/tempname.c: Include <string.h> unconditionally.
35194         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
35195         * lib/xgethostname.c (main): Define with a prototype.
35196         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
35197         Include <stdlib.h> unconditionally.
35198         (calloc, malloc, realloc, free): Remove decls.
35199         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
35200         Include <stdlib.h> unconditionally.  Sort include file names.
35201         (strtod): Remove.
35202         (xstrtod): Define with a prototype.
35203         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
35204         (strtol, strtoul): Remove decls.
35205
35206 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35207
35208         More patches to assume C89 or better.
35209         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
35210         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
35211         string.h, memchr, STDC_HEADERS.
35212
35213 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35214
35215         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
35216         Include <stdlib.h>, <string.h> unconditionally.
35217         Remove now-unnecessary cast to char *.
35218         * lib/strnlen.c: Include <string.h> unconditionally.
35219         * lib/yesno.c (yesno): Define with a prototype.
35220
35221 2003-09-11  Bruno Haible  <bruno@clisp.org>
35222
35223         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
35224
35225 2003-09-10  Jim Meyering  <jim@meyering.net>
35226
35227         * lib/error.c: Correct indentation of cpp directives.
35228
35229 2003-09-10  Bruno Haible  <bruno@clisp.org>
35230
35231         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
35232         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
35233         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
35234         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
35235         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
35236         <stdlib.h> and <string.h> checks.
35237         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
35238         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
35239
35240 2003-09-10  Bruno Haible  <bruno@clisp.org>
35241
35242         * lib/strcspn.c: Include <string.h> unconditionally.
35243         * lib/strpbrk.c: Include <string.h> unconditionally.
35244         * lib/strstr.c: Include <string.h> unconditionally.
35245         * lib/unicodeio.c: Include <string.h> unconditionally.
35246         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
35247         * lib/unsetenv.c: Likewise.
35248         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
35249         * lib/yesno.c: Include <stdlib.h> unconditionally.
35250         (rpmatch): Add prototype.
35251
35252 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35253
35254         More patches to assume C89 or better.
35255         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
35256         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
35257         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
35258         or for string.h.
35259         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
35260         stdlib.h.
35261         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
35262         C headers.
35263         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
35264         string.h.
35265         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
35266         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
35267         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
35268         or for string.h.
35269         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
35270         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
35271         C headers.
35272         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
35273         memcpy.
35274         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
35275         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
35276         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
35277         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
35278         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
35279         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
35280         string.h, free.
35281         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
35282         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
35283         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
35284         C headers, or for string.h.
35285         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
35286         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
35287         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
35288         headers, memory.h, stdlib.h, string.h, strings.h.
35289         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
35290         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
35291         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
35292         strchr.
35293         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
35294         headers, memory.h, string.h.
35295         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
35296         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
35297         free.
35298         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
35299         headers.
35300         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
35301         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
35302         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
35303         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
35304         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
35305
35306 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35307
35308         More K&R removal.
35309
35310         * lib/acosl.c (main): Use a prototype.
35311         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35312         tanl.c: Likewise.
35313
35314         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35315
35316         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35317         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35318         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35319         with a prototype.
35320         * lib/getopt.c (const): Remove macro.
35321         Include <string.h> unconditionally.
35322         (my_index): Remove; all uses changed to strchr.
35323         (strlen): Remove decl.
35324         (exchange): Remove forward decl; no longer needed.
35325         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35326         Define with prototype.
35327         * lib/getopt1.c (const): Remove macro.
35328         (getopt_long, getopt_long_only, main): Define with prototype.
35329
35330         * lib/getugroups.c: Include <string.h> unconditionally.
35331
35332         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35333         (getusershell, setusershell, endusershell, readname, main):
35334         Define with prototypes.
35335
35336         * lib/group-member.c: Include group-member.h first.
35337         Include <stdlib.h> unconditionally.
35338
35339         * lib/hard-locale.c: Include hard-locale.h first.
35340         Include <stdlib.h>, <string.h> unconditionally.
35341
35342         * lib/hash.c (free, malloc): Remove decls.
35343         Include <stdlib.h> unconditionally.
35344
35345         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35346         (getenv): Do not declare.
35347
35348         * lib/idcache.c: Include <string.h> unconditionally.
35349
35350         * lib/long-options.c: Include long-options.h first, to test interface.
35351         Include <stdlib.h> unconditionally.
35352
35353         * lib/makepath.c: Include makepath.h first, to test interface.
35354         Include <stdlib.h> and <string.h> unconditionally.
35355
35356         * lib/linebuffer.c: Include <stdlib.h>.
35357         (free): Remove decl.
35358
35359         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35360         stddef.h. rpl_malloc returns void *, not char *.
35361         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35362         prototype.
35363
35364         * lib/md5.h: Include <limits.h> unconditionally.
35365         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35366         (__P): Remove; all uses removed.
35367         * lib/md5.c: Include "md5.h" first.
35368         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35369         md5_buffer, md5_process_bytes, md5_process_block):
35370         Define with prototypes.
35371         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35372         * lib/sha.c: Include "sha.h" first.
35373         Include <stdlib.h>, <string.h> unconditionally.
35374
35375         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35376         * lib/memcmp.c (__ptr_t): Likewise.
35377         * lib/memrchr.c (__ptr_t): Likewise.
35378         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35379         Include <string.h> unconditionally.
35380         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35381         * lib/memchr.c: Include <stdlib.h> unconditionally.
35382         * lib/memchr.c (LONG_MAX): Remove.
35383         * lib/memrchr.c (LONG_MAX): Likewise.
35384         * lib/memchr.c (__memchr): Define via a prototype.
35385         * lib/memrchr.c (__memrchr): Likewise.
35386         * lib/memcmp.c (__P): Remove, and remove all uses.
35387         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35388         Remove forward decls; no longer needed.
35389         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35390         Use types required by C89 in prototype.
35391
35392         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35393         * lib/savedir.c: Likewise.
35394         * lib/mkdir.c (free): Remove decl.
35395         * lib/rmdir.c (rmdir): Define with a prototype.
35396         * lib/savedir.c: Include savedir.h first, to test interface.
35397
35398         * lib/mktime.c (STDC_HEADERS): Remove.
35399         Include <stdlib.h>, <string.h> unconditionally.
35400
35401         * lib/modechange.c: Include <stdlib.h> unconditionally.
35402         (malloc): Remove decl.
35403
35404         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35405         (free): Remove decl.
35406
35407         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
35408         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
35409         (This type really should be intptr_t, but that's a C99ism.)
35410         (_obstack_memcpy): Remove: all uses changed to memcpy.
35411         Include <string.h> unconditionally.
35412         (struct obstack): Assume __STDC__ for types of members
35413         chunkfun, freefun, extra_arg.
35414         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
35415         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
35416         obstack_begin, obstack_specify_allocation,
35417         obstack_specify_allocation_with_arg, obstack_chunkfun,
35418         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
35419         Remove unprototyped decls and the macros that use them.
35420         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
35421         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
35422         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
35423         (defined __STDC__ && __STDC__)]:
35424         Remove nonprototyped code.
35425         Include <stdlib.h> unconditionally.
35426         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35427         _obstack_allocated_p, _obstack_free, obstack_free,
35428         _obstack_memory_used, print_and_abort):
35429         Define using prototypes.
35430         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35431         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35432         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35433         obstack_next_free, obstack_object_size, obstack_room) [0]:
35434         Remove unused, unprototyped code.
35435
35436         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35437
35438         * lib/physmem.c (physmem_total, physmem_available, main): Define
35439         with prototypes.
35440
35441         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35442         (main): Define with a prototype.
35443
35444         * lib/posixver.c (getenv): Remove decl.
35445
35446         * lib/putenv.c (malloc): Returns void *, not char *.
35447         Include <string.h> unconditionally.
35448         (strchr, memcpy, NULL): Do not define.
35449
35450         * lib/readtokens.c: Include readtokens.h first, to test interface.
35451         Include <stdlib.h>, <string.h> unconditionally.
35452         (init_tokenbuffer): Define with a prototype.
35453
35454         * lib/regex.c (PARAMS): Remove.  All uses removed.
35455         All uses of _RE_ARGS removed, too.
35456         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35457         unconditionally.
35458         (bzero): Assume memset exists.
35459         (memcmp, memcpy, NULL): Remove.
35460         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
35461         char, or assignments to local vars of type signed char.
35462         (init_syntax_once, PREFIX(extract_number_and_incr),
35463         PREFIX(print_partial_compiled_pattern),
35464         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
35465         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
35466         PREFIX(regex_grow_registers), PREFIX(regex_compile),
35467         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
35468         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
35469         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
35470         wcs_compile_range, byte_compile_range, truncate_wchar,
35471         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
35472         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
35473         count_mbs_length, wcs_re_match_2_internal,
35474         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
35475         PREFIX(alt_match_null_string_p),
35476         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
35477         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
35478         regfree, PREFIX(extract_number)): Define with prototype.  Remove
35479         now-unnecessary declaration, if any.
35480         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
35481         regcomp, regexec):
35482         Remove now-unnecessary casts among pointer types.
35483         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
35484
35485         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
35486         (free): Remove decl.
35487
35488         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
35489
35490         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
35491         (free): Remove decl.
35492
35493         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
35494         * lib/xgetcwd.c: Likewise.
35495
35496         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
35497         (free): Remove decl.
35498
35499         * lib/strchrnul.c (strchrnul): Define with a prototype.
35500         Fix bug: c_in was not converted to char before searching.
35501
35502         The following changes are not K&R related:
35503
35504         * lib/group-member.h: Include <sys/types.h>, so that this file is
35505         self-contained.
35506         * lib/makepath.h: Likewise.
35507
35508         * lib/getusershell.c (readname, default_index, line_size, readname):
35509         Use size_t, not int, for sizes.
35510         (readname): If the size overflows, report an error instead of
35511         looping forever.
35512
35513 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35514
35515         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
35516         libc.
35517
35518 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35519
35520         * README: New section: portability guidelines.
35521
35522 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35523
35524         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
35525         C89 spec.
35526
35527 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35528
35529         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
35530
35531 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35532
35533         Assume C89 or better; remove K&R cruft.
35534         A few of these changes were first proposed by Derek Robert Price
35535         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
35536
35537         * lib/addext.c: Include <string.h> unconditionally.
35538         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
35539         Don't declare getenv or malloc.
35540
35541         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
35542         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
35543         (NULL): Remove.
35544         (find_stack_direction, alloca): Use prototypes.
35545
35546         * lib/atexit.c (atexit): Define using a prototype.
35547
35548         * lib/basename.c, dirname.c, stripslash.c:
35549         Include <string.h> unconditionally.
35550
35551         * lib/bcopy.c: Include <stddef.h>.
35552         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
35553
35554         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
35555
35556         * lib/error.h (error, error_at_line, error_print_progname)
35557         [! (defined (__STDC__) && __STDC__)]: Remove decls.
35558         * lib/error.c: Include error.h first, to check interface.
35559         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35560         (VA_START): Remove; all uses changeed to va_start.
35561         (exit, strerror): Remove decls.
35562         (error_print_progname): Prototype uncondionally.
35563         Don't include <errno.h>; no longer needed.
35564         (private_strerror): Remove.
35565         (error_tail): Always define.
35566         (error, error_at_line): Assume C89 or better; always use prototypes.
35567         * lib/fatal.c: Include "fatal.h" first, to test interface.
35568         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35569         (VA_START): Remove; all uses changed to va_start.
35570         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
35571         this case.
35572         (exit): Remove decl.
35573         (fatal): Prototype unconditionally.  Assume va_start works.
35574         Abort at end, to pacify gcc.
35575
35576         * lib/euidaccess.c (main): Define with a prototype.
35577
35578         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
35579
35580         * lib/exitfail.c: Include <stdlib.h> unconditionally.
35581
35582         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
35583         prototypes.
35584         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
35585         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
35586         (getenv): Remove decl.
35587         (fnmatch): Define using a prototype.
35588         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
35589         (FCT): Define using a prototype.
35590
35591         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
35592
35593         * lib/gethostname.c: Include <stddef.h>.
35594         (gethostname): Define with prototype.  Length is size_t, not int.
35595
35596 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35597
35598         Assume C89 or better; remove K&R cruft.
35599         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
35600         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
35601         string.h, getenv, malloc.
35602         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
35603         headers.
35604         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
35605         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
35606         do not check for strerror.
35607         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
35608         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
35609         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
35610         do not check for doprnt or vprintf.
35611         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
35612         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
35613
35614 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35615
35616         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
35617         getversion.c should have been removed then, but was accidentally
35618         preserved.
35619
35620         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
35621         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
35622
35623 2003-09-08  Karl Berry  <karl@gnu.org>
35624
35625         * config/config.sub, config.guess, srclistvars.sh: update from savannah
35626                 config, forget about prep.
35627
35628         * config/depcomp, missing: update from automake.
35629
35630 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35631
35632         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
35633         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35634
35635 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35636
35637         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
35638         copy_tm_result.  Bug reported by Simon Josefsson in
35639         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35640
35641 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35642
35643         * m4/time_r.m4: New file.
35644         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
35645         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
35646         is. Check for timegm declaration.
35647         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
35648         Do not check for gmtime_r.
35649         Replace mktime if __mktime_internal does not exist and if mktime
35650         hasn't been replaced already.
35651
35652 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35653
35654         * lib/time_r.c, lib/time_r.h: New files.
35655
35656         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
35657         __localtime_r.
35658         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
35659         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
35660
35661         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
35662         __gmtime_r.
35663         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
35664         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
35665         Include <time_r.h>.
35666
35667         * lib/timegm.c: Switch to glibc implementation, with the following
35668         changes:
35669         [defined HAVE_CONFIG_H]: Include <config.h>.
35670         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
35671         (__mktime_internal) [!defined _LIBC]: New decl.
35672         (__gmtime_r) [!defined _LIBC]: New macro and function.
35673         (timegm): Use a prototype, since gnulib assumes C89.
35674         Do not bother declaring tmp to be const, as it's not really usefu.
35675         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
35676         (timegm): Declare only if HAVE_DECL_TIMEGM.
35677
35678 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35679
35680         * MODULES.html.sh (func_all_modules): Add time_r.
35681         * modules/time_r: New file.
35682         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
35683         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
35684
35685 2003-09-03  Paul Eggert  <eggert@twinsun.com>
35686
35687         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
35688         Bug reported by Lute Kamstra in
35689         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
35690
35691         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
35692         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
35693         course with correspondingly smaller numbers for tomorrow and
35694         yesterday.  From Tadayoshi Funaba.  Originally installed into
35695         sh-utils on 1999-08-07, but the patch got lost (I guess during the
35696         coreutils merge?).
35697
35698 2003-08-31  Simon Josefsson  <jas@extundo.com>
35699
35700         * modules/timegm: New file.
35701         * MODULES.html.sh (func_all_modules): Add timegm.
35702
35703 2003-08-31  Simon Josefsson  <jas@extundo.com>
35704
35705         * m4/timegm.m4: New file.
35706
35707 2003-08-31  Simon Josefsson  <jas@extundo.com>
35708
35709         * lib/timegm.h: New file.
35710         * lib/timegm.c: New file.  Based on
35711         wget-1.8.2/src/http.c:mktime_from_utc.
35712
35713 2003-08-31  Karl Berry  <karl@gnu.org>
35714
35715         * lib/argp.h: update from libc.
35716
35717 2003-08-28  Bruno Haible  <bruno@clisp.org>
35718
35719         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35720         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35721         followed by '#define fnmatch fnmatch_posix' gives an error.
35722
35723 2003-08-28  Bruno Haible  <bruno@clisp.org>
35724
35725         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35726         warning on QNX, which defines O_BINARY to 000000.
35727
35728 2003-08-27  Jim Meyering  <jim@meyering.net>
35729
35730         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35731         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35732         would fail after 32.  Reported by Danny Levinson.  Details here:
35733         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
35734
35735 2003-08-24  Bruno Haible  <bruno@clisp.org>
35736
35737         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
35738         MSVC7 <stdio.h> is included later.
35739
35740 2003-08-22  Simon Josefsson  <jas@extundo.com>
35741
35742         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
35743
35744 2003-08-20  Karl Berry  <karl@gnu.org>
35745
35746         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
35747
35748 2003-08-20  Bruno Haible  <bruno@clisp.org>
35749
35750         * modules/progname: New file.
35751         * MODULES.html.sh (func_all_modules): Add progname.
35752
35753 2003-08-20  Bruno Haible  <bruno@clisp.org>
35754
35755         * lib/progname.h: New file, from GNU gettext.
35756         * lib/progname.c: New file, from GNU gettext.
35757         * lib/progreloc.c: New file, from GNU gettext.
35758
35759 2003-08-19  Jim Meyering  <jim@meyering.net>
35760
35761         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
35762         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
35763
35764 2003-08-19  Bruno Haible  <bruno@clisp.org>
35765
35766         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
35767         more.
35768
35769 2003-08-19  Bruno Haible  <bruno@clisp.org>
35770
35771         * lib/xstrdup.c: Assume <string.h> exists.
35772
35773 2003-08-18  Paul Eggert  <eggert@twinsun.com>
35774
35775         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
35776         in makefile rules.
35777
35778 2003-08-18  Jim Meyering  <jim@meyering.net>
35779
35780         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
35781         * m4/lib-ld.m4: Likewise.
35782
35783 2003-08-18  Jim Meyering  <jim@meyering.net>
35784
35785         * lib/setenv.h: Indent nested cpp directive.
35786         * lib/vasnprintf.c: Remove trailing blanks.
35787
35788 2003-08-17  Simon Josefsson  <jas@extundo.com>
35789
35790         * modules/xstrndup: New file.
35791         * MODULES.html.sh (func_all_modules): Add xstrndup.
35792
35793 2003-08-17  Simon Josefsson  <jas@extundo.com>
35794
35795         * modules/argp: Fix autoconf macro name. Add more dependencies.
35796
35797 2003-08-17  Simon Josefsson  <jas@extundo.com>
35798
35799         * m4/xstrndup.m4: New file.
35800
35801 2003-08-17  Simon Josefsson  <jas@extundo.com>
35802
35803         * m4/argp.m4: New file.
35804
35805 2003-08-17  Simon Josefsson  <jas@extundo.com>
35806             Bruno Haible  <bruno@clisp.org>
35807
35808         * lib/xstrndup.h: New file.
35809         * lib/xstrndup.c: New file.
35810
35811 2003-08-17  Bruno Haible  <bruno@clisp.org>
35812
35813         * modules/strndup (Files, Include): Add lib/strndup.h.
35814
35815 2003-08-17  Bruno Haible  <bruno@clisp.org>
35816
35817         * modules/euidaccess (Files): Add lib/euidaccess.h.
35818
35819 2003-08-17  Bruno Haible  <bruno@clisp.org>
35820
35821         * lib/strndup.h: New file.
35822
35823 2003-08-17  Bruno Haible  <bruno@clisp.org>
35824
35825         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
35826         like AC_GNU_SOURCE.
35827         * modules/extensions (configure.ac): Comment out the invocation of
35828         gl_USE_SYSTEM_EXTENSIONS.
35829
35830 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35831
35832         Merges from coreutils, etc.
35833         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
35834         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
35835         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
35836         fixing a typo.
35837         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
35838         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
35839
35840 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35841
35842         Document merge from coreutils.
35843         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
35844         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
35845         * modules/utime: Add m4/utimes-null.m4.
35846
35847 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35848
35849         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
35850         space, undoing this 2003-08-12 change:
35851         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35852
35853 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35854
35855         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
35856         strtoul.c from libc, undoing this 2003-08-12 change:
35857         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35858
35859 2003-08-16  Jim Meyering  <jim@meyering.net>
35860
35861         Merges from coreutils.
35862         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
35863         prefix.  Adjust cache variables similarly.  Create 500 rather than
35864         just 300 files, to exercise bug on Darwin6.5, too.
35865         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
35866         $missing_dir.
35867         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
35868         AM_SYS_POSIX_TERMIOS.
35869         Reported by mkc@mathdogs.com.
35870         Also change use of $am_cv_sys_posix_termios
35871         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
35872         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
35873         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
35874         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
35875         in /proc/mounts until it finds one with matching device number.  This
35876         is unnecessary when the FILE argument *is* a mount point.  No stat call
35877         is necessary in that case.  So, disable the statvfs-testing code on
35878         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
35879         as RedHat bug# 84846.
35880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35881         to 1MB, so as not to render systems with no stack size limit (e.g.,
35882         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35883         Include <unistd.h>.  On some systems,
35884         it is required for the definition of _SC_PAGESIZE.
35885
35886 2003-08-16  Jim Meyering  <jim@meyering.net>
35887
35888         Merge from coreutils.
35889         * lib/xstrtoimax.c: #else #if -> #elif.
35890         * lib/xstrtoumax.c: Likewise.
35891
35892 2003-08-16  Jim Meyering  <jim@meyering.net>
35893
35894         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
35895         * m4/utimes.m4: Removed.
35896         * m4/utimes-null.m4: Renamed from utimes.m4.
35897
35898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35899         to 1MB, so as not to render systems with no stack size limit (e.g.,
35900         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35901         Include <unistd.h>.  On some systems,
35902         it is required for the definition of _SC_PAGESIZE.
35903
35904 2003-08-16  Jim Meyering  <jim@meyering.net>
35905         and Paul Eggert  <eggert@cs.ucla.edu>
35906
35907         Merges from coreutils, etc.
35908
35909         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
35910         using the latest version from cvs.  This avoids problems with #line
35911         directives using a vendor (Sun) compiler.
35912         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
35913         Don't set GETGROUPS_LIB here; now it's
35914         done via getgroups.m4's wrapper function.
35915         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
35916         rather than just in sh-util/configure.in, so that the
35917         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
35918         same.
35919         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
35920         AC_FUNC_GETLOADAVG where to find getloadavg.c.
35921         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
35922         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
35923         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
35924         Remove code that is now done by the newly-required macros.
35925         Append $(EXEEXT) to DF_PROG.
35926         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
35927         Do not invoke or require the following here,
35928         since prereq.m4 or some gnulib .m4 now does this for us:
35929         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
35930         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
35931         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
35932         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
35933         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
35934         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
35935         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
35936         AC_FUNC_OBSTACK.
35937         Do not replace the following functions, as this is now the job
35938         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
35939         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
35940         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
35941         atexit getpass, strdup, getpagesize.
35942         Replace 'raise'.
35943         Do not check for the following functions, as this is now the job
35944         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
35945         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
35946         setregid.
35947         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
35948         Check for sys/sysctl.h.
35949         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
35950         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
35951         of checking for ssize_t ourselves.
35952
35953         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
35954         Require every macro that gnulib/modules/* suggests for us.
35955         (jm_PREREQ_ADDEXT): New macro.
35956         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
35957         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
35958
35959         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
35960         (gl_PHYSMEM): Use it.
35961         Also check for `table' function.
35962         Check for new headers and functions.
35963         Add check for sys/sysmp.h.
35964         With suggestions from Kaveh Ghazi.
35965         Ignore headers that are present but cannot be compiled.  This
35966         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
35967         C 5.4.
35968
35969 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35970
35971         Document merge from coreutils.
35972         * modules/userspec: Depend on posixver.
35973         * modules/strftime: Depend on tzset.
35974
35975 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35976
35977         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
35978         rather than tab, after '#' in shell-script copyright notices.
35979         Suggested by Bruno Haible.
35980
35981 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35982
35983         * config/srclist-update: Use three spaces, rather than tab, after '#'
35984         in shell-script copyright notices.  Suggested by Bruno Haible.
35985         Remove unnecessary parenthesization in regular expression.
35986
35987 2003-08-15  Jim Meyering  <jim@meyering.net>
35988
35989         Merge from coreutils.
35990         * lib/xgethostname.c: Include <stdlib.h>.
35991         (xghostname): Don't exit for anything other than memory-related
35992         failure; just return NULL.
35993         * lib/userspec.c: Include "posixver.h".
35994         (parse_user_spec): Accept `.' as a separator only
35995         in pre-POSIX-200112 mode.
35996         * lib/strtoimax.c: Use #elif rather than #else #if.
35997         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
35998         Remove function, now that we can rely on a working tzset function.
35999         [!_LIBC]: Ensure that the required autoconf test has been run.
36000         [!defined _NL_CURRENT && HAVE_STRFTIME]:
36001         Use underlying_strftime for %r.
36002         * lib/sha.c: Merge in some clean-up and optimization changes from
36003         glibc.
36004         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
36005         Ensure that it is a multiple of 64.
36006         Rearrange loop exit tests so as to avoid performing an
36007         additional fread after encountering an error or EOF.
36008         * lib/realloc.c: Update copyright date.
36009
36010 2003-08-15  Jim Meyering  <jim@meyering.net>
36011         and Paul Eggert  <eggert@twinsun.com>
36012
36013         Merge from coreutils.
36014         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
36015         member but strut utmpx does not.  Needed for AIX 4.3.3.
36016         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
36017
36018 2003-08-15  Jim Meyering  <jim@meyering.net>
36019         and Paul Eggert  <eggert@cs.ucla.edu>
36020
36021         Merges from coreutils, etc.
36022         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
36023         Require gl_FUNC_TZSET_CLOBBER.
36024         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
36025         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
36026         members.
36027
36028 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36029
36030         Help the merge from coreutils.
36031         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
36032         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
36033         * m4/tzset.m4: Use it too.
36034
36035 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36036
36037         * modules/tzset: New file.
36038
36039 2003-08-14  Jim Meyering  <jim@meyering.net>
36040
36041         Merges from coreutils.
36042         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
36043         variable names, rather than @FNMATCH_H@.
36044         * modules/alloca: Likewise for $(ALLOCA_H).
36045
36046         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
36047         the three copies of the literal target, `fnmatch.h'.
36048         * modules/alloca (alloca.h): Likewise.
36049
36050 2003-08-14  Jim Meyering  <jim@meyering.net>
36051
36052         Merge from coreutils.
36053         * m4/tzset.m4: New file.
36054         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
36055         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
36056         otherwise, AIX 5.1 systems would end up using the latter.
36057         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
36058         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
36059         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
36060         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
36061
36062 2003-08-14  Jim Meyering  <jim@meyering.net>
36063
36064         Merge from coreutils.
36065         * lib/obstack.h: Whitespace changes.
36066         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
36067         and xcalloc return values.
36068         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
36069         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
36070         hang on OSF/1 5.1 for DIR on both local and remote file systems.
36071         Reported by (and fix confirmed by) Nelson H. F. Beebe.
36072         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36073         error from mntctl.
36074         Use mntctl's return value to drive the entry-processing loop, since
36075         we can't rely on the value of the vmt_length member in the last
36076         entry.  On some systems doing so could result in exhausting
36077         virtual memory.  Based in part on a patch from Mike Jetzer.
36078
36079 2003-08-14  Jim Meyering  <jim@meyering.net>
36080         and Paul Eggert  <eggert@twinsun.com>
36081
36082         Merges from coreutils, plus other fixes.
36083         * lib/physmem.c: Merge in portability changes from gcc/libiberty
36084         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
36085         for credits and details.  Thanks to Kaveh Ghazi for helping
36086         to keep these files in sync.
36087         (ARRAY_SIZE): Define it.
36088         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
36089         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
36090         (memcasecmp): Don't assume size_t fits in unsigned int.
36091         Remove casts and duplicate code.
36092         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
36093         (memcpy): Remove definition.
36094         Merge in some clean-up and optimization changes from glibc.
36095         [BLOCKSIZE]: Move definition to top of file.
36096         Ensure that it is a multiple of 64.
36097         Rearrange loop exit tests so as to avoid performing an
36098         additional fread after encountering an error or EOF.
36099         * lib/md5.h (md5_uintptr): Define.
36100         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
36101         return to the initial working directory.  Preserve errno
36102         for caller.
36103         * lib/idcache.c: Include "xalloc.h".
36104         (xmalloc, xrealloc): Remove decls.
36105         (getuser): Remove casts no longer required in C89.
36106         * lib/human.c: Include stdio.h, for sprintf.
36107         * lib/group-member.c: Include "xalloc.h".
36108         (xmalloc, xrealloc): Remove decls.
36109         (get_group_info): Remove casts no longer required in C89.
36110         * lib/getusershell.c (readname): Remove casts no longer required in
36111         C89.
36112         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
36113         * lib/getline.c: Whitespace fix, from coreutils.
36114
36115 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36116
36117         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
36118         Check for isascii.
36119
36120         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36121         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36122         Undo previous (whitespace-only) change.
36123
36124 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36125
36126         * lib/exclude.c: Include <ctype.h>
36127         (IN_CTYPE_DOMAIN): New macro.
36128         (is_space): New fn.
36129         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
36130         and empty lines.
36131
36132         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36133         Undo previous (whitespace-only) change.
36134
36135 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36136
36137         * config/srclist-update: Change update back to the old behavior,
36138         leaving whitespace alone.  Use one 'sed' command rather than a
36139         pipeline.
36140         (fixlicense): Now a variable, not a function.
36141         (remove_trailing_blanks): Remove.
36142         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
36143         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36144         Undo previous (whitespace-only) change.
36145
36146 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36147
36148         Merge from coreutils.
36149         * modules/euidaccess: Add lib_SOURCES, include for new
36150         file euidaccess.h
36151
36152 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36153
36154         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36155         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36156         Normalize leading white space and remove trailing white space.
36157
36158         Merge from coreutils
36159         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
36160
36161         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
36162         0.12.1.  These files are now being upgraded automatically by
36163         ../config/srclist-update.
36164
36165 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36166
36167         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36168         Normalize leading white space and remove trailing white space.
36169         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
36170         notice, as per ../config/srclist-update.
36171
36172         Merge from coreutils.
36173         * lib/euidaccess.h: New file.
36174         * lib/euidaccess.c: Include it.
36175         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
36176         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
36177         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
36178
36179 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36180
36181         * config/srclist-update: Add copyright notice.
36182         (remove_id_lines, remove_trailing_blanks): New constants.
36183         (fixfile): Use them to normalize spacing a bit in copied files.
36184         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36185         Normalize leading white space and remove trailing white space.
36186
36187         * config/texinfo.tex: Sync with texinfo.
36188
36189         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
36190         strtoul.c from libc, to merge coreutils whitespace changes.
36191
36192         * config/srclist.txt: Get the following m4 files from gettext:
36193         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
36194         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
36195         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
36196         wint_t.m4.
36197
36198 2003-08-12  Karl Berry  <karl@gnu.org>
36199
36200         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
36201         been made.
36202
36203 2003-08-11  Paul Eggert  <eggert@twinsun.com>
36204
36205         * modules/gnu-source, m4/gnu-source.m4:
36206         Remove; we're assuming Autoconf 2.54 or later now.
36207         Suggested by Bruno Haible.
36208         * MODULES.html.sh (func_all_modules): Remove gnu-source.
36209
36210 2003-08-11  Bruno Haible  <bruno@clisp.org>
36211
36212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
36213
36214 2003-08-11  Bruno Haible  <bruno@clisp.org>
36215
36216         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
36217         (vasnprintf): Use it instead of wcslen.
36218
36219 2003-08-11  Bruno Haible  <bruno@clisp.org>
36220
36221         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
36222         value to ensure that _Bool promotes to int. Use #define for _Bool when
36223         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
36224
36225 2003-08-10  Karl Berry  <karl@gnu.org>
36226
36227         * lib/regex.h: update from libc (whitespace fix).
36228
36229 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36230
36231         Merge some files from coreutils.  These changes were
36232         originally made by Jim Meyering.
36233         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
36234         many older Unixes require this.
36235         * lib/alloca.c (alloca): Remove cast to argument of free;
36236         no longer needed in C89.
36237         * lib/alloca_.h, regex.h: Fix white space to match
36238         what GNU indent does.
36239
36240 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36241
36242         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
36243         apparently Emacs's Unicode mode got confused before my 2003-08-05
36244         checkin.
36245
36246 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36247
36248         * m4/extensions.m4: New file.
36249         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
36250         Require gl_USE_SYSTEM_EXTENSIONS.
36251         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
36252         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
36253
36254 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36255
36256         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
36257         * modules/extensions, modules/gnu-source: New files.
36258         * modules/timespec, modules/unlocked-io: Depend on extensions.
36259
36260 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36261
36262         * modules/restrict: New file.
36263         * MODULES.html.sh (func_all_modules): Add restrict.
36264         * modules/regex: Depend on restrict.
36265
36266 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36267
36268         * m4/restrict.m4: New file.
36269         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
36270
36271 2003-08-07  Bruno Haible  <bruno@clisp.org>
36272
36273         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
36274         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
36275
36276 2003-08-07  Bruno Haible  <bruno@clisp.org>
36277
36278         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
36279         makes the module 'getndelim2' compatible with the module 'getline'.
36280
36281 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36282
36283         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
36284         byte with "\201" to avoid glitches when editing that source file
36285         with multi-gnome-terminal.
36286
36287 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36288
36289         * lib/bumpalloc.h: Remove.
36290
36291 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36292
36293         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
36294         * modules/bumpalloc: Remove.
36295
36296 2003-08-04  Paul Eggert  <eggert@twinsun.com>
36297
36298         * lib/getloadavg.c: Change copyright notice and spacing to conform to
36299         GNU coding style.
36300
36301         Merge from coreutils.
36302         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
36303         1. From glibc.
36304         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
36305         from Karl Berry, implemented by Jim Meyering.
36306         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
36307         from Dmitry V. Levin.
36308         Remove anachronistic cast of xrealloc.
36309         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36310         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36311         type. Otherwise, it wouldn't compile with at least /bin/cc on
36312         ymp-cray-unicos9.0.2.X.
36313         Combine two mostly-identical uses of alloca into one.
36314         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36315
36316 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36317
36318         [From Emacs.]
36319
36320         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36321         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36322         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36323         obsolete NLIST_NAME_UNION.
36324         [__GNU__]: Undef BSD and FSCALE.
36325         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36326
36327 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36328
36329         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36330         an enum type, so that it's guaranteed to promote to int.  See:
36331         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36332
36333 2003-08-03  Karl Berry  <karl@gnu.org>
36334
36335         * config/depcomp: update from automake.
36336
36337 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36338
36339         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36340         (strerror): Don't assume that a printable int fits in 14 bytes.
36341
36342 2003-07-31  Bruno Haible  <bruno@clisp.org>
36343
36344         * modules/getpass-gnu: New file.
36345         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36346
36347 2003-07-31  Bruno Haible  <bruno@clisp.org>
36348
36349         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36350
36351 2003-07-24  Karl Berry  <karl@gnu.org>
36352
36353         * config/missing: update from automake.
36354
36355 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36356             Bruno Haible  <bruno@clisp.org>
36357
36358         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36359         * lib/getline.c (getline, getdelim): Likewise.
36360         Remove _GNU_SOURCE define; now it's defined in config.h through
36361         m4/getline.m4.
36362
36363 2003-07-23  Karl Berry  <karl@gnu.org>
36364
36365         * config/config.sub: update from prep.
36366
36367 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36368
36369         * modules/xalloc (Depends-on): Add exitfail.
36370         * modules/xmemcoll: Likewise.
36371
36372 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36373
36374         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36375         over-parenthesization in macros.
36376
36377         Sync with coreutils.
36378
36379         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36380         required by C99.
36381
36382         Use `exit_failure' for xalloc and xmemcoll instead of their own
36383         private exit-failure variables.
36384         * lib/xalloc.h (xalloc_exit_failure): Remove.
36385         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36386         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36387         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36388         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36389         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36390
36391 2003-07-20  Jim Meyering  <jim@meyering.net>
36392
36393         * modules/closeout (Depends-on): Add exitfail.
36394         Suggestion from Bruno Haible.
36395
36396 2003-07-19  Karl Berry  <karl@gnu.org>
36397
36398         * config/config.sub: update from prep.
36399
36400 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36401
36402         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36403         Remove.
36404         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36405         to test that it can stand by itself.  Include "exitfail.h".
36406         Clients should set exit_failure instead.
36407         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
36408
36409 2003-07-18  Bruno Haible  <bruno@clisp.org>
36410
36411         * modules/getndelim2: New file.
36412         * modules/getline: Share files with module getndelim2.
36413         * modules/getnline: Depend on getndelim2 instead of sharing files with
36414         it. Add getnline.c to lib_SOURCES.
36415         * MODULES.html.sh (func_all_modules): Add getndelim2.
36416
36417 2003-07-18  Bruno Haible  <bruno@clisp.org>
36418
36419         * m4/getndelim2.m4: New file.
36420         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
36421         invoke gl_PREREQ_GETNDELIM2.
36422         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
36423         gl_PREREQ_GETNDELIM2.
36424         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
36425         gl_GETNDELIM2.
36426
36427 2003-07-18  Bruno Haible  <bruno@clisp.org>
36428
36429         * lib/getndelim2.h: New file.
36430         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36431         getndelim2.h.
36432         (getndelim2): Make non-static. Change return type to ssize_t.
36433         * lib/getline.h: Change argument names.
36434         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36435         * lib/getnline.c: Include getndelim2.h.
36436
36437 2003-07-18  Andreas Schwab  <schwab@suse.de>
36438
36439         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36440
36441 2003-07-17  Karl Berry  <karl@gnu.org>
36442
36443         * config/config.sub: update from prep.
36444
36445 2003-07-17  Bruno Haible  <bruno@clisp.org>
36446
36447         * modules/getnline: New file.
36448         * modules/getline: Add lib/getndelim2.c to source file list.
36449         * MODULES.html.sh (func_all_modules): Add getnline.
36450
36451 2003-07-17  Bruno Haible  <bruno@clisp.org>
36452
36453         * m4/getnline.m4: New file.
36454
36455 2003-07-17  Bruno Haible  <bruno@clisp.org>
36456
36457         * m4/Makefile.am.in: Remove file.
36458         * m4/Makefile.am: Remove file.
36459         * m4/Makefile.in: Remove file.
36460
36461 2003-07-17  Bruno Haible  <bruno@clisp.org>
36462
36463         * lib/getnline.h: New file.
36464         * lib/getnline.c: New file.
36465         * lib/getndelim2.c: New file, extracted from getline.c.
36466         (getndelim2): Renamed from getdelim2, with added nmax argument.
36467         * lib/getline.c: Include getndelim2.c.
36468         (getdelim2): Moved out to getndelim2.c.
36469         (getline, getdelim): Update.
36470
36471 2003-07-17  Bruno Haible  <bruno@clisp.org>
36472
36473         * lib/Makefile.am: Remove file.
36474         * lib/Makefile.in: Remove file.
36475
36476 2003-07-17  Bruno Haible  <bruno@clisp.org>
36477
36478         * configure.in: Remove file.
36479         * Makefile.in: Remove file.
36480
36481 2003-07-17  Bruno Haible  <bruno@clisp.org>
36482
36483         * MODULES.html.sh: Put the </BODY> right before </HTML>.
36484
36485 2003-07-16  Karl Berry  <karl@gnu.org>
36486
36487         * config/srclist-update: was running fixlicense twice, which caused
36488                 texinfo.tex to be nullified for some reason.  Simplify,
36489                 $gplsrc is no longer needed as far as I can see?
36490
36491 2003-07-16  Jim Meyering  <jim@meyering.net>
36492
36493         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
36494
36495 2003-07-15  Paul Eggert  <eggert@twinsun.com>
36496
36497         * config/srclist.txt: Get the following files from gettext-runtime/intl
36498         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
36499         ref-del.sin.  From Bruno Haible.
36500         * config/srclist-update (fixfile): Change grep pattern again, since the
36501         previous fix didn't work (there was another trailing $).  Use
36502         '[$]' to escape the $s.
36503
36504 2003-07-15  Karl Berry  <karl@gnu.org>
36505
36506         * lib/vasnprintf.c: update from gettext.
36507
36508 2003-07-15  Karl Berry  <karl@gnu.org>
36509
36510         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
36511         gets expanded when surrounded by '$'.
36512
36513 2003-07-15  Jim Meyering  <jim@meyering.net>
36514
36515         * modules/save-cwd: Don't depend on error.  From Derek Price.
36516
36517 2003-07-15  Jim Meyering  <jim@meyering.net>
36518
36519         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
36520
36521 2003-07-14  Simon Josefsson  <jas@extundo.com>
36522
36523         * modules/mempcpy: New file.
36524         * MODULES.html.sh (func_all_modules): Add mempcpy.
36525
36526 2003-07-14  Simon Josefsson  <jas@extundo.com>
36527
36528         * m4/mempcpy.m4: New file.
36529
36530 2003-07-14  Simon Josefsson  <jas@extundo.com>
36531
36532         * lib/mempcpy.h: New file.
36533         * lib/mempcpy.c: New file.
36534
36535 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36536
36537         * modules/getdate, modules/posixtm: Depend on mktime.
36538
36539 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36540
36541         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
36542         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
36543         unicodeio.c, unicodeio.h, unlocked-io.h:
36544         Switch from LGPL to GPL.
36545
36546 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36547
36548         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
36549         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
36550         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
36551         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
36552         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
36553         updated automatically by ../config/srclist-update.  This changes
36554         their license from LPGL to GPL.
36555
36556 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36557
36558         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
36559         assumed to refer to the root of the most recent stable gettext version.
36560         * config/srclistvars.sh: Add defaults for eggert.
36561         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
36562         Match "This program" as well as "The program".  This is needed
36563         for gettext.
36564
36565 2003-07-14  Jim Meyering  <jim@meyering.net>
36566
36567         Don't emit diagnostics.  Let callers do that.
36568         * lib/save-cwd.c: Don't include "error.h".
36569         (save_cwd): Don't call error.  Ensure that errno is valid
36570         when returning nonzero.
36571
36572         * lib/save-cwd.h (restore_cwd): Update prototype.
36573         * lib/save-cwd.c (restore_cwd): Remove two parameters.
36574         Simplify.  Don't call error upon failure.  Let callers do that.
36575         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
36576         when auditing is enabled.  But don't bother updating the #if.
36577
36578 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
36579
36580         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
36581         it breaks C++ compilation.
36582         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
36583
36584 2003-07-10  Simon Josefsson  <jas@extundo.com>
36585
36586         * modules/strchrnul (Makefile.am): Add strchrnul.h.
36587
36588 2003-07-10  Jim Meyering  <jim@meyering.net>
36589
36590         * m4/clock_time.m4: Remove trailing blank.
36591         * m4/intmax_t.m4: Likewise.
36592
36593 2003-07-10  Jim Meyering  <jim@meyering.net>
36594
36595         * lib/vasnprintf.c: Remove trailing blanks.
36596         Make cpp indentation consistent.
36597
36598 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36599
36600         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
36601         posixver.c, strftime.c, strnlen.c, strverscmp.c:
36602         Switch from LGPL to GPL.
36603
36604 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36605
36606         * config/srclist.txt: Sort sublists.  Add
36607         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
36608         that differ from gnulib for one reason or another; we'd like this list
36609         to be smaller but for now let's document what we have.
36610
36611 2003-07-08  Paul Eggert  <eggert@twinsun.com>
36612
36613         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
36614         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
36615         and sweeter "eval x=$x".
36616         * config/srclist.txt: Get lib/argp* from glibc.
36617
36618 2003-07-07  Paul Eggert  <eggert@twinsun.com>
36619
36620         * lib/mktime.c: Fix some boundary cases and remove need for floating
36621         point.
36622
36623         Issue a compile-time diagnostic if time_t is floating point, or if
36624         two's complement arithmetic is not in effect, or if arithmetic
36625         right shift does not propagate the sign.  These assumptions were
36626         all in the original code but they weren't checked.
36627
36628         (TIME_T_MIDPOINT, verify): New macros.
36629         (__isleap): Remove; it has integer overflow problems.
36630         (leapyear): New function, without those problems.
36631         (ydhms_tm_diff): Remove; splitting into two parts.
36632         (ydhms_diff): New function, containing the arithmetic part of
36633         the old ydhms_tm_diff function.  Issue a compile-time
36634         diagnostic if we are not using C99 integer division.
36635         Avoid casts when possible.
36636         (guess_time_tm): New function, containing the checking part of
36637         the old ydhms_tm_diff function.  Return the new value, rather than
36638         the difference between it and the old.  Accept a new argument T
36639         so that *T specifies the old value.  Check for overflow in the result.
36640
36641         (__mktime_internal): Use a time_t offset, not a long int offset.
36642         This undoes the 2003-06-04 change, which is no longer needed now
36643         that we have better overflow checking.
36644         (localtime_offset): Likewise.
36645
36646         (__mktime_internal): Avoid harmful overflow on hosts where time_t
36647         and long are 64-bit but int is only 32-bit.
36648         (ydhms_diff): Use long int to store year1 and yday1.
36649         Issue a compile-time diagnostic if long int is not wide enough.
36650
36651         (__mktime_internal): Use long int to store adjusted year and yday.
36652         Use plain C rather than preprocessor commands, if that doesn't
36653         affect efficiency.
36654         Check for overflow (and try to repair) after each probe
36655         rather than checking only at the very end.  This avoids some bugs
36656         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
36657         does not equal GMT offset at maximum time).
36658         Use integer to check for overflow rather than floating point; this
36659         is more portable to non-IEEE hosts, and is a tad faster.
36660         When we detect that we are oscillating between two values,
36661         don't check whether tm_isdst has the requested value, since
36662         we already know the answer.  When tm_isdst has the wrong value,
36663         use a different heuristic to find the right one, based on the
36664         extreme values actually observed in practice in tz2003a,
36665         rather than the (overly optimistic) "previous 3 calendar quarters".
36666
36667         (not_equal_tm, print_tm, check_result): Use "const T" rather than
36668         "T const" to accommodate glibc style.
36669         (check_result): Use less-confusing report format.  "long" -> "long int.
36670         (main): Likewise.
36671         Don't loop if the iteration overflows time_t.
36672         Allow a negative step in the iteration.
36673
36674 2003-07-06  Karl Berry  <karl@gnu.org>
36675
36676         * config/depcomp: update from automake.
36677         * config/config.sub: update from prep.
36678
36679 2003-07-03  Karl Berry  <karl@gnu.org>
36680
36681         * config/config.guess: update from prep.
36682
36683 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36684
36685         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
36686         xreadlink.c now includes it unconditionally.
36687
36688 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36689
36690         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
36691         having it depend on HAVE_SYS_TYPES_H.
36692
36693 2003-07-01  Bruno Haible  <bruno@clisp.org>
36694
36695         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
36696         <sys/types.h> should be sufficient.
36697         Reported by Paul Eggert.
36698
36699 2003-06-26  Karl Berry  <karl@gnu.org>
36700
36701         * config/depcomp: update from automake.
36702
36703 2003-06-26  Bruno Haible  <bruno@clisp.org>
36704
36705         * modules/human: Depend on module stdbool.
36706
36707 2003-06-25  Bruno Haible  <bruno@clisp.org>
36708
36709         * modules/readlink: New file.
36710         * modules/xreadlink: Depend on it.
36711         * MODULES.html.sh (func_all_modules): Add readlink.
36712
36713 2003-06-25  Bruno Haible  <bruno@clisp.org>
36714
36715         * m4/readlink.m4: New file.
36716
36717 2003-06-25  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/readlink.c: New file.
36720
36721 2003-06-22  Karl Berry  <karl@gnu.org>
36722
36723         * config/srclist.txt: update mkinstalldirs from automake.
36724         * config/mkinstalldirs: update.
36725
36726 2003-06-22  Bruno Haible  <bruno@clisp.org>
36727
36728         Portability to mingw32.
36729         * m4/ssize_t.m4: New file, from GNU gettext.
36730         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36731         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36732
36733 2003-06-22  Bruno Haible  <bruno@clisp.org>
36734
36735         * modules/safe-read: Add m4/ssize_t.m4.
36736         * modules/xreadlink: Add m4/ssize_t.m4.
36737
36738 2003-06-20  Bruno Haible  <bruno@clisp.org>
36739
36740         Assume C89, so PARAMS isn't needed.
36741         * lib/unicodeio.h (PARAMS): Remove.
36742         * lib/unicodeio.c: Don't use PARAMS.
36743
36744 2003-06-18  Karl Berry  <karl@gnu.org>
36745
36746         * config/config.{guess,sub}: update from prep.
36747
36748 2003-06-18  Jim Meyering  <jim@meyering.net>
36749
36750         Merge changes from coreutils.
36751         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
36752         Remove explicit declarations of xmalloc and realloc.
36753         Include xalloc.h.
36754         (read_utmp): Remove anachronistic cast of xmalloc.
36755
36756 2003-06-17  Paul Eggert  <eggert@twinsun.com>
36757
36758         Assume C89, so PARAMS isn't needed.
36759         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
36760         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
36761         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
36762         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
36763         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
36764         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
36765         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
36766         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
36767         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
36768         lib/xstrtod.h, lib/xstrtol.h: Likewise.
36769         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
36770         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
36771         no longer needed. Anyway, config.h should always be included before any
36772         other file.
36773
36774 2003-06-11  Simon Josefsson  <jas@extundo.com>
36775
36776         * modules/sysexits: New file.
36777         * MODULES.html.sh (func_all_modules): Add sysexits.
36778
36779 2003-06-11  Simon Josefsson  <jas@extundo.com>
36780
36781         * lib/sysexit_.h: New file.
36782
36783 2003-06-11  Derek Price  <derek@ximbiot.com>
36784
36785         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
36786         necessary.
36787
36788 2003-06-11  Bruno Haible  <bruno@clisp.org>
36789
36790         * m4/sysexits.m4: New file.
36791
36792 2003-06-10  Simon Josefsson  <jas@extundo.com>
36793
36794         * lib/argp.h: New file, from glibc.
36795         * lib/argp-ba.c: New file, from glibc.
36796         * lib/argp-eexst.c: New file, from glibc.
36797         * lib/argp-fmtstream.c: New file, from glibc.
36798         * lib/argp-fmtstream.h: New file, from glibc.
36799         * lib/argp-fs-xinl.c: New file, from glibc.
36800         * lib/argp-help.c: New file, from glibc.
36801         * lib/argp-namefrob.h: New file, from glibc.
36802         * lib/argp-parse.c: New file, from glibc.
36803         * lib/argp-pv.c: New file, from glibc.
36804         * lib/argp-pvh.c: New file, from glibc.
36805         * lib/argp-xinl.c: New file, from glibc.
36806
36807 2003-06-10  Simon Josefsson  <jas@extundo.com>
36808
36809         * modules/strchrnul: New file.
36810
36811 2003-06-10  Simon Josefsson  <jas@extundo.com>
36812
36813         * modules/argp: New file.
36814
36815 2003-06-10  Simon Josefsson  <jas@extundo.com>
36816
36817         * m4/strchrnul.m4: New file.
36818
36819 2003-06-10  Simon Josefsson  <jas@extundo.com>
36820
36821         * lib/strchrnul.h: New file.
36822         * lib/strchrnul.c: New file.
36823
36824 2003-06-10  Bruno Haible  <bruno@clisp.org>
36825
36826         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
36827
36828 2003-06-07  Karl Berry  <karl@gnu.org>
36829
36830         * config/config.{guess,sub}: update from prep.
36831
36832 2003-06-07  Jim Meyering  <jim@meyering.net>
36833
36834         * modules/strtod: Use $(...) notation, not @...@ for
36835         AC_REPLACE'd variables.
36836         * modules/localcharset: Likewise.
36837
36838 2003-06-07  Jim Meyering  <jim@meyering.net>
36839
36840         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
36841         in place of my name in the copyright comment.
36842         Remove definition and uses of __P.
36843
36844         From coreutils.
36845         * lib/stat.c: Don't declare xmalloc explicitly.
36846         Instead, include "xalloc.h".
36847         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
36848         xrealloc, and xcalloc return values.
36849         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
36850         Improve comment.
36851         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
36852
36853 2003-06-07  Bruno Haible  <bruno@clisp.org>
36854
36855         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
36856         avoid AC_CONFIG_LINKS.
36857         * modules/fnmatch (Makefile.am): Use explicit creation rule for
36858         fnmatch.h, to avoid AC_CONFIG_LINKS.
36859         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
36860
36861 2003-06-07  Bruno Haible  <bruno@clisp.org>
36862
36863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
36864         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
36865         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36866         directory.
36867         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
36868         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36869         directory.
36870
36871 2003-06-06  Jim Meyering  <jim@meyering.net>
36872
36873         Merge from coreutils.
36874         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
36875         Consolidate declarations and initializations of *_base* locals.
36876
36877         Merge from coreutils.
36878         This avoids a core dump on systems without GNU putenv,
36879         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
36880         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
36881         (unsetenv): New static function, from GNU libc.
36882         (rpl_putenv): Use it.
36883
36884         * lib/modechange.c: Remove trailing blanks.
36885
36886         Merge from coreutils.
36887         * lib/fsusage.c: Remove declaration of statfs.
36888         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
36889
36890         * lib/posixtm.c: Include <stdbool.h> unconditionally.
36891
36892 2003-06-06  Jim Meyering  <jim@meyering.net>
36893
36894         * lib/stdbool_.h: Renamed from stdbool.h.in.
36895
36896 2003-06-06  Jim Meyering  <jim@meyering.net>
36897             Bruno Haible  <bruno@clisp.org>
36898
36899         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
36900         Adjust Makefile.am snippet not to redirect directly to target.
36901         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
36902
36903 2003-06-05  Paul Eggert  <eggert@twinsun.com>
36904
36905         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
36906         mismatch, look in future quarters as well as past.  This fixes a
36907         bug when processing fall-backwards gaps immediately after a long
36908         period of daylight-saving time.
36909
36910         * lib/mktime.c: Assume freestanding C89 or better.
36911         (HAVE_LIMITS_H): Remove.  Assume it's 1.
36912         (__P): Remove; not used.
36913         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
36914         (mktime, not_equal_tm, print_tm, check_result,
36915         main): Use prototypes.  Use const * where appropriate.
36916         (main): Fix typo in testing code that uncovered by above changes.
36917         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
36918
36919 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36920
36921         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
36922         locale.h, localeconv.  This merges changes from coreutils.
36923
36924         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
36925         It can be removed after the next Autoconf is released.
36926         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
36927         needed.
36928
36929 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36930
36931         * lib/mktime.c: Fix Debian bug 177940
36932         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
36933         (localtime_offset): Now long int, not time_t, because we want it
36934         to be guaranteed to be signed.  All uses changed.
36935         (__mktime_internal): If overflow would occur when adding offset,
36936         don't add it.
36937
36938         Merge 'human' changes from coreutils.  Rewrite to support
36939         locale-specific notations like thousands separators.
36940         * lib/human.c: Simplify authorship notice.
36941         Include human.h immediately after config.h.
36942         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
36943         <limits.h>: Do not include, since human.h does.
36944         (SIZE_MAX, UINTMAX_MAX): New macros.
36945         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
36946         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
36947         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
36948         (power_letter): Renamed from suffixes.
36949         (generate_suffix_backwards): Remove.
36950         (adjust_value): Now takes int style (because of human.h changes)
36951         and long double value (for greater precision on some platforms).
36952         (group_number): New function.
36953         (human_readable): Use it.  Use integer options, not enum.
36954         Put the options before the sizes in the arg list.
36955         Support all the new options.
36956         The old human_readable function has been removed;
36957         use inttostr.h instead.
36958         (human_readable, default_block_size, humblock):
36959         Use uintmax_t, not int, for block sizes.
36960         (human_readable_inexact, block_size_types): Remove.
36961         (block_size_opts): New constant.
36962         (human_options): Renamed from human_block_size, with new signature
36963         that allows block sizes up to UINTMAX_MAX.  All callers changed.
36964         * lib/human.h: Add copyright and authorship notice.
36965         Include <limits.h> and <stdbool.h> unconditionally.
36966         (PARAMS): Remove.  All uses removed.
36967         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
36968         (enum human_inexact_style): Remove tag; now a nameless enum.
36969         (human_floor, human_ceiling, human_round_to_even): Now have
36970         values 2, 0, 1 rather than -1, 1, 0.
36971         (human_group_digits, human_suppress_point_zero, human_autoscale,
36972         human_base_1024, human_SI, human_B): New constants.
36973         (human_readable_inexact, human_block_size): Remove.
36974         (human_readable): Size args are now uintmax_t, not int.
36975         (human_options): New decl.
36976
36977         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
36978         unnecessary now that we assume C89 or better.  This change
36979         imported from coreutils.
36980
36981         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36982         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
36983         in the 2003-05-30 sync from glibc.
36984
36985         .h files should stand alone, but we shouldn't include <sys/types.h>
36986         if we can get away with just <stddef.h>.
36987
36988         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
36989         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
36990         rather than <sys/types.h>, as we merely need size_t.
36991         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
36992         to get size_t.
36993         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
36994         Include <stdio.h>, to get FILE.
36995         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
36996         memcasecmp.h has included <stddef.h> and all we need is size_t.
36997         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
36998         our interface, instead of including <sys/types.h>
36999
37000 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37001
37002         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
37003         now, as glibc mktime is buggy on non-glibc systems.
37004
37005 2003-06-03  Karl Berry  <karl@gnu.org>
37006
37007         * config/config.sub: update from prep.
37008
37009 2003-06-02  Paul Eggert  <eggert@twinsun.com>
37010
37011         [from coreutils]
37012         Fix some minor time-related bugs with POSIX time arguments.
37013         Some valid time stamps were being rejected (notably -1, and
37014         time stamps before 1900 on 64-bit hosts).  And some invalid
37015         time stamps were being accepted, e.g. September 31.
37016
37017         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
37018         that we can return (time_t) -1 successfully.
37019         * lib/posixtm.c: Likewise.
37020         [HAVE_STDBOOL_H]: Include <stdbool.h>.
37021         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
37022         (t): Remove static var.
37023         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
37024         of static var.  All uses changed.
37025         (year): Do not reject years before 1900; they can occur with
37026         64-bit time_t.
37027         (posix_time_parse): Do not check for out-of-range components;
37028         that is now the caller's responsibility, since our checks were
37029         only approximations.
37030         (posixtime): Use mktime to check for out-of-range components,
37031         since it knows them exactly.
37032         If mktime returns (time_t) -1, check whether an error actually occurred
37033         by invoking localtime on -1.
37034         (main) [TEST_POSIXTIME]: Check for input data errors, and report
37035         posixtime failures better.
37036         Improve the test data (in comments only).
37037
37038 2003-06-02  Karl Berry  <karl@gnu.org>
37039
37040         * config/mkinstalldirs (version): new variable.
37041         (--version): new option.
37042         (usage): improve message.
37043
37044 2003-05-30  Karl Berry  <karl@gnu.org>
37045
37046         * lib/mktime.c: update from libc.
37047
37048 2003-05-30  Bruno Haible  <bruno@clisp.org>
37049
37050         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
37051         * config/config.rpath: Upgrade to gettext-0.12.1.
37052
37053 2003-05-30  Bruno Haible  <bruno@clisp.org>
37054
37055         * m4/gettext.m4: Upgrade to gettext-0.12.1.
37056         * m4/nls.m4: New file, from gettext-0.12.1.
37057         * m4/po.m4: New file, from gettext-0.12.1.
37058         * m4/progtest.m4: Upgrade to gettext-0.12.1.
37059
37060 2003-05-30  Bruno Haible  <bruno@clisp.org>
37061
37062         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
37063         * lib/localcharset.h: Likewise.
37064         * lib/localcharset.c: Likewise.
37065
37066 2003-05-29  Karl Berry  <karl@gnu.org>
37067
37068         * config/config.rpath: update from gettext.
37069
37070 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37071
37072         Assume the headers required for C89 freestanding compilers.
37073         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
37074         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
37075         * m4/human.m4 (gl_HUMAN): Likewise.
37076         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
37077         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
37078         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37079         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
37080         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37081         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
37082
37083 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37084
37085         Assume the headers required for C89 freestanding compilers.
37086         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
37087         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
37088         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
37089         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
37090         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
37091         define, since <limits.h> is guaranteed to do that.
37092         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
37093         * lib/exclude.c: Include <stdbool.h> unconditionally.
37094         * lib/tempname.c: Include <stddef.h> unconditionally.
37095         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
37096         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
37097         <stddef.h> does that.
37098         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
37099         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
37100         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
37101         needed.
37102         * lib/xstrtol.c: Likewise.
37103         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
37104         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
37105
37106         * lib/addext.c (addext): Use assignment rather than cast, to avoid
37107         warnings on some platforms.
37108
37109         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37110         arbitrarily.
37111
37112 2003-05-26  Jim Meyering  <jim@meyering.net>
37113
37114         Merge in a change from coreutils:
37115         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
37116         that is guaranteed to be `no'.  Use `no_such_member' to indicate
37117         that condition, rather than `-1' which is slightly misleading.
37118         Change the name of the cache variable to have the gl_ prefix.
37119         Prompted by a patch from Richard Dawe for DJGPP.
37120
37121 2003-05-24  Karl Berry  <karl@gnu.org>
37122
37123         * config/config.guess: update from prep.
37124
37125 2003-05-22  Karl Berry  <karl@gnu.org>
37126
37127         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
37128
37129 2003-05-20  Karl Berry  <karl@gnu.org>
37130
37131         * config/config.guess: update from prep.
37132
37133 2003-05-18  Karl Berry  <karl@gnu.org>
37134
37135         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
37136         might actually be set by the user.
37137
37138         * config/depcomp, install-sh, mdate-sh: update from automake.
37139
37140 2003-05-17  Bruno Haible  <bruno@clisp.org>
37141
37142         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
37143         invalid expansion for AC_EGREP_CPP.
37144         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
37145         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37146         Suggested by Akim Demaille <akim@epita.fr> in
37147         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
37148
37149 2003-05-12  Jim Meyering  <jim@meyering.net>
37150
37151         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
37152         the space-padded-by-default conversion specifiers, %e, %k, %l.
37153
37154 2003-05-12  Bruno Haible  <bruno@clisp.org>
37155
37156         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
37157         the string is longer than 4 KB.
37158
37159 2003-05-11  Karl Berry  <karl@gnu.org>
37160
37161         * config/config.{guess,sub}: update from prep.
37162
37163 2003-05-09  Bruno Haible  <bruno@clisp.org>
37164
37165         * modules/error: Add m4/strerror_r.m4 to file list.
37166
37167 2003-05-03  Bruno Haible  <bruno@clisp.org>
37168
37169         Upgrade to Unicode-4.0.
37170         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
37171         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
37172         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
37173         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
37174         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
37175         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
37176         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
37177         Change width of U+E0100..U+E01EF from 1 to 0.
37178
37179 2003-04-25  Jim Meyering  <jim@meyering.net>
37180
37181         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
37182         of type size_t, not int.
37183
37184 2003-04-25  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/copy-file.c: Include <stddef.h>, for size_t.
37187
37188 2003-04-21  Paul Eggert  <eggert@twinsun.com>
37189
37190         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
37191         code which expansion is under static control.  Patch imported from
37192         Akim Demaille's patch to Bison; see
37193         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
37194
37195 2003-04-14  Bruno Haible  <bruno@clisp.org>
37196
37197         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
37198
37199 2003-04-11  Jim Meyering  <jim@meyering.net>
37200
37201         Merge changes from Coreutils.
37202
37203         2003-03-22  Jim Meyering  <jim@meyering.net>
37204
37205         * lib/strftime.c (widen): Cast alloca return value to proper type.
37206
37207         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
37208
37209         From GNU libc.
37210         * lib/strftime.c (my_strftime): Handle very large width
37211         specifications for numeric values correctly.  Improve checks for
37212         overflow.
37213
37214         2003-01-19  Jim Meyering  <jim@meyering.net>
37215
37216         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
37217         definitions.
37218         (nl_get_alt_digit) [! defined my_strftime]: Define.
37219         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
37220         _nl_get_alt_digit and _nl_get_walt_digit.
37221
37222         * lib/strftime.c (my_strftime): Merge in locale-related changes from
37223         libc. These changes have no effect outside of _LIBC.
37224
37225 2003-04-10  Bruno Haible  <bruno@clisp.org>
37226
37227         * modules/findprog: New file.
37228         * MODULES.html.sh (func_all_modules): Add it.
37229
37230 2003-04-10  Bruno Haible  <bruno@clisp.org>
37231
37232         * m4/findprog.m4: New file.
37233         * m4/eaccess.m4: New file.
37234
37235 2003-04-10  Bruno Haible  <bruno@clisp.org>
37236
37237         * lib/findprog.h: New file, from GNU gettext.
37238         * lib/findprog.c: New file, from GNU gettext.
37239
37240 2003-04-05  Jim Meyering  <jim@meyering.net>
37241
37242         Merge changes from Coreutils.
37243
37244         * lib/exclude.h (PARAMS): Remove definition and uses.
37245         * lib/exclude.c: Remove uses of `PARAMS'.
37246
37247         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
37248         Add test-cases for DOS filenames. Declare program_name.
37249         (main): Set up program_name.  Patch by Rich Dawe.
37250
37251         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37252         error from mntctl.
37253         Use mntctl's return value to drive the entry-processing loop, since
37254         we can't rely on the value of the vmt_length member in the last
37255         entry.  On some systems doing so could result in exhausting
37256         virtual memory.  Based in part on a patch from Mike Jetzer.
37257
37258 2003-04-04  Bruno Haible  <bruno@clisp.org>
37259
37260         * modules/linebreak: New file.
37261         * MODULES.html.sh (func_all_modules): Add it.
37262
37263 2003-04-04  Bruno Haible  <bruno@clisp.org>
37264
37265         * m4/linebreak.m4: New file.
37266
37267 2003-04-04  Bruno Haible  <bruno@clisp.org>
37268
37269         * lib/linebreak.h: New file, from GNU gettext.
37270         * lib/linebreak.c: New file, from GNU gettext with slight
37271         modifications.
37272         * lib/lbrkprop.h: New file, from GNU gettext.
37273
37274 2003-04-03  Bruno Haible  <bruno@clisp.org>
37275
37276         * modules/utf8-ucs4: New file.
37277         * modules/utf16-ucs4: New file.
37278         * modules/ucs4-utf8: New file.
37279         * modules/ucs4-utf16: New file.
37280         * MODULES.html.sh (func_all_modules): Add them.
37281
37282 2003-04-03  Bruno Haible  <bruno@clisp.org>
37283
37284         * m4/utf-ucs4.m4: New file.
37285         * m4/ucs4-utf.m4: New file.
37286
37287 2003-04-03  Bruno Haible  <bruno@clisp.org>
37288
37289         * lib/utf8-ucs4.h: New file, from GNU gettext.
37290         * lib/utf16-ucs4.h: New file, from GNU gettext.
37291         * lib/ucs4-utf8.h: New file, from GNU gettext.
37292         * lib/ucs4-utf16.h: New file, from GNU gettext.
37293
37294 2003-04-02  Bruno Haible  <bruno@clisp.org>
37295
37296         * modules/binary-io: New file.
37297         * MODULES.html.sh (func_all_modules): Add it.
37298
37299 2003-04-02  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/binary-io.h: New file, from GNU gettext.
37302
37303 2003-04-01  Bruno Haible  <bruno@clisp.org>
37304
37305         * modules/pathname: New file.
37306         * MODULES.html.sh (func_all_modules): Add it.
37307
37308 2003-04-01  Bruno Haible  <bruno@clisp.org>
37309
37310         * lib/pathname.h: New file, from GNU gettext.
37311         * lib/concatpath.c: New file, from GNU gettext.
37312
37313 2003-03-30  Bruno Haible  <bruno@clisp.org>
37314
37315         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37316
37317 2003-03-30  Bruno Haible  <bruno@clisp.org>
37318
37319         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37320         function chown() doesn't exist.
37321
37322 2003-03-28  Bruno Haible  <bruno@clisp.org>
37323
37324         * modules/copy-file: New file.
37325         * MODULES.html.sh (func_all_modules): Add it.
37326
37327 2003-03-28  Bruno Haible  <bruno@clisp.org>
37328
37329         * m4/copy-file.m4: New file.
37330
37331 2003-03-28  Bruno Haible  <bruno@clisp.org>
37332
37333         * lib/copy-file.h: New file, from GNU gettext.
37334         * lib/copy-file.c: New file, from GNU gettext.
37335
37336 2003-03-18  Jim Meyering  <jim@meyering.net>
37337
37338         * lib/quote.c (quote_n): Fix typo in comment.
37339
37340 2003-03-18  Bruno Haible  <bruno@clisp.org>
37341
37342         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37343         checking.
37344         * m4/onceonly_2_57.m4: Likewise.
37345
37346 2003-03-17  Bruno Haible  <bruno@clisp.org>
37347
37348         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37349         (m4_quote): Remove macro.
37350         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37351
37352 2003-03-14  Jim Meyering  <jim@meyering.net>
37353
37354         Merge changes from Coreutils.
37355         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37356         to be const, in order to avoid warnings.
37357         (obstack_room): Likewise.
37358         (obstack_empty_p): Likewise.
37359
37360 2003-03-14  Bruno Haible  <bruno@clisp.org>
37361
37362         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37363         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37364
37365 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37366
37367         Merge changes from Bison.
37368         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37369         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37370         when compiling Bison 1.875's `bitset bset = obstack_alloc
37371         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37372         * lib/hash.c: Include <stdbool.h> unconditionally.
37373
37374 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37375
37376         * m4/onceonly.m4 (m4_quote): New macro.
37377         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37378         Quote AC_FOREACH variable-expansions properly.
37379
37380 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37381
37382         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37383
37384 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37385
37386         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37387         Reported by Bruce Becker; see:
37388         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37389
37390 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37391             Bruno Haible  <bruno@clisp.org>
37392
37393         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37394         Reported by John Hughes, see
37395         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37396
37397 2003-02-20  Bruno Haible  <bruno@clisp.org>
37398
37399         * MODULES.html.sh (func_all_modules): Add poll.
37400
37401 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37402
37403         * modules/poll: New file.
37404
37405 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37406
37407         * lib/poll_.h: New file.
37408         * lib/poll.c: New file.
37409
37410 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37411
37412         * m4/poll.m4: New file.
37413
37414 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37415
37416         * modules/mathl: New file.
37417
37418 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37419
37420         * lib/mathl.h: New file.
37421         * lib/acosl.c: New file.
37422         * lib/asinl.c: New file.
37423         * lib/atanl.c: New file.
37424         * lib/ceill.c: New file.
37425         * lib/cosl.c: New file.
37426         * lib/expl.c: New file.
37427         * lib/floorl.c: New file.
37428         * lib/frexpl.c: New file.
37429         * lib/ldexpl.c: New file.
37430         * lib/logl.c: New file.
37431         * lib/sincosl.c: New file.
37432         * lib/sinl.c: New file.
37433         * lib/sqrtl.c: New file.
37434         * lib/tanl.c: New file.
37435         * lib/trigl.c: New file.
37436         * lib/trigl.h: New file.
37437
37438 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37439
37440         * m4/mathl.m4: New file.
37441
37442 2003-02-18  Bruno Haible  <bruno@clisp.org>
37443
37444         * MODULES.html.sh (func_all_modules): Add mathl.
37445
37446 2003-02-17  Bruno Haible  <bruno@clisp.org>
37447
37448         * modules/mkdtemp: New module.
37449         * MODULES.html.sh (func_all_modules): Add it.
37450
37451 2003-02-17  Bruno Haible  <bruno@clisp.org>
37452
37453         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
37454
37455 2003-02-17  Bruno Haible  <bruno@clisp.org>
37456
37457         * lib/mkdtemp.h: New file, from GNU gettext.
37458         * lib/mkdtemp.c: New file, from GNU gettext.
37459
37460 2003-02-02  Jim Meyering  <jim@meyering.net>
37461
37462         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
37463         e.g. glibc-2.2.93.
37464
37465 2003-01-31  Bruno Haible  <bruno@clisp.org>
37466
37467         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
37468         'rpl_rename'.
37469         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
37470         'rpl_strnlen'.
37471         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
37472         'rpl_strtod'.
37473         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
37474         'rpl_utime'.
37475
37476 2003-01-31  Bruno Haible  <bruno@clisp.org>
37477
37478         * lib/rename.c: #undef rename before defining rpl_rename.
37479         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
37480
37481 2003-01-30  Bruno Haible  <bruno@clisp.org>
37482
37483         * modules/vasnprintf, modules/vasprintf: New modules.
37484         * MODULES.html.sh (func_all_modules): Add them.
37485
37486 2003-01-30  Bruno Haible  <bruno@clisp.org>
37487
37488         * m4/signed.m4: New file, from GNU gettext.
37489         * m4/longdouble.m4: New file, from GNU gettext.
37490         * m4/wchar_t.m4: New file, from GNU gettext.
37491         * m4/wint_t.m4: New file, from GNU gettext.
37492         * m4/vasnprintf.m4: New file.
37493         * m4/vasprintf.m4: New file.
37494
37495 2003-01-30  Bruno Haible  <bruno@clisp.org>
37496
37497         * lib/printf-args.h: New file, from GNU gettext.
37498         * lib/printf-args.c: New file, from GNU gettext.
37499         * lib/printf-parse.h: New file, from GNU gettext.
37500         * lib/printf-parse.c: New file, from GNU gettext.
37501         * lib/vasnprintf.h: New file, from GNU gettext.
37502         * lib/vasnprintf.c: New file, from GNU gettext.
37503         * lib/asnprintf.c: New file, from GNU gettext.
37504         * lib/vasprintf.h: New file, from GNU gettext with modifications.
37505         * lib/vasprintf.c: New file, from GNU gettext.
37506         * lib/asprintf.c: New file, from GNU gettext.
37507
37508 2003-01-29  Bruno Haible  <bruno@clisp.org>
37509
37510         * modules/stpncpy: New module.
37511         * MODULES.html.sh (func_all_modules): Add it.
37512
37513 2003-01-29  Bruno Haible  <bruno@clisp.org>
37514
37515         * m4/stpncpy.m4: New file.
37516
37517 2003-01-29  Bruno Haible  <bruno@clisp.org>
37518
37519         * lib/stpncpy.h: New file, from GNU gettext with modifications.
37520         * lib/stpncpy.c: New file, from GNU gettext with modifications.
37521
37522 2003-01-28  Bruno Haible  <bruno@clisp.org>
37523
37524         * modules/c-ctype: New module.
37525         * MODULES.html.sh (func_all_modules): Add it.
37526
37527 2003-01-28  Bruno Haible  <bruno@clisp.org>
37528
37529         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
37530         Paul Eggert.
37531         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
37532         Paul Eggert.
37533
37534 2003-01-27  Bruno Haible  <bruno@clisp.org>
37535
37536         * modules/xsetenv: New module.
37537         * MODULES.html.sh (func_all_modules): Add it.
37538
37539 2003-01-27  Bruno Haible  <bruno@clisp.org>
37540
37541         * lib/xsetenv.h: New file, from GNU gettext.
37542         * lib/xsetenv.c: New file, from GNU gettext.
37543
37544 2003-01-23  Jim Meyering  <jim@meyering.net>
37545
37546         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
37547         from working on systems without dirfd (at least Irix and OSF1/Tru64).
37548
37549 2003-01-23  Bruno Haible  <bruno@clisp.org>
37550
37551         * modules/minmax: New module.
37552         * MODULES.html.sh (func_all_modules): Add it.
37553
37554 2003-01-23  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
37557         Eggert.
37558
37559 2003-01-22  Bruno Haible  <bruno@clisp.org>
37560
37561         * modules/exit: New module.
37562         * MODULES.html.sh (func_all_modules): Add it.
37563
37564 2003-01-22  Bruno Haible  <bruno@clisp.org>
37565
37566         * lib/exit.h: New file, from GNU gettext.
37567
37568 2003-01-19  Bruno Haible  <bruno@clisp.org>
37569
37570         * gnulib-tool: Recognize option --extract-maintainer.
37571         (func_get_maintainer): New function.
37572         * modules/*: Add Maintainer entry.
37573
37574 2003-01-16  Jim Meyering  <jim@meyering.net>
37575
37576         * m4/regex.m4: The `regex' struct is both input and output.
37577         Initialize it before each use.  Patch by Tim Waugh.
37578
37579 2003-01-16  Bruno Haible  <bruno@clisp.org>
37580
37581         * MODULES.html.sh: Add a table of contents. Add the module name as
37582         leftmost column. Add hyperlinks.
37583
37584 2003-01-15  Bruno Haible  <bruno@clisp.org>
37585
37586         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
37587
37588 2003-01-15  Bruno Haible  <bruno@clisp.org>
37589
37590         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
37591         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
37592         suffix.
37593
37594 2003-01-15  Bruno Haible  <bruno@clisp.org>
37595
37596         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
37597
37598 2003-01-15  Bruno Haible  <bruno@clisp.org>
37599
37600         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
37601         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
37602
37603 2003-01-14  Jim Meyering  <jim@meyering.net>
37604
37605         * lib/same.c (same_name): Tweak a comment.
37606
37607 2003-01-14  Bruno Haible  <bruno@clisp.org>
37608
37609         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
37610         when a string comparison is sufficient.
37611
37612 2003-01-14  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
37615         'unsigned int'.
37616
37617 2003-01-14  Bruno Haible  <bruno@clisp.org>
37618
37619         * lib/hash-pjw.c: Add comment about low quality of this function.
37620
37621 2003-01-13  Bruno Haible  <bruno@clisp.org>
37622
37623         * modules/stpcpy: Distribute lib/stpcpy.h.
37624         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
37625
37626 2003-01-13  Bruno Haible  <bruno@clisp.org>
37627
37628         * modules/*: Add a description.
37629         * modules/strpbrk: Fix Makefile.am snippet.
37630         * modules/strtoimax: Fix dependencies.
37631         * modules/strtoumax: Likewise.
37632
37633 2003-01-13  Bruno Haible  <bruno@clisp.org>
37634
37635         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
37636         * modules/alloca (Makefile.am): All object files depend on alloca.h.
37637         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
37638
37639 2003-01-13  Bruno Haible  <bruno@clisp.org>
37640
37641         * gnulib-tool (func_create_testdir): Store config/* files in the main
37642         directory.
37643         * config.rpath: Move to ...
37644         * config/config.rpath: ... here.
37645         * modules/gettext: Contains config/config.rpath, not config.rpath.
37646         * modules/iconv: Likewise.
37647
37648 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37649
37650         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37651         to avoid collisions with libcurses and libreadline.
37652
37653         * m4/getstr.m4: Remove.
37654         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
37655
37656 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37657
37658         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37659         to avoid collisions with libcurses and libreadline.
37660
37661         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
37662         * lib/getstr.h, getstr.c: Remove.
37663         * lib/getline.c: Include "getline.h", to check interface.
37664         Move body of old getstr.c here: this defines MIN_CHUNK and
37665         declares getdelim2, which is renamed from getstr.
37666         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
37667
37668         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
37669         All uses changed.
37670         * lib/linebuffer.h: Likewise.
37671         (readline): Remove backward-compatibility macro.
37672
37673 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37674
37675         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37676         to avoid collisions with libcurses and libreadline.
37677         * getstr: Remove.
37678         * MODULES.html.sh: Remove getstr.
37679         * modules/getline: Depend on unlocked-io, not getstr.
37680
37681 2003-01-12  Jim Meyering  <jim@meyering.net>
37682
37683         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
37684
37685 2003-01-10  Bruno Haible  <bruno@clisp.org>
37686
37687         * modules/alloca: Change Makefile.am requirements. Simplify Include
37688         requirements. Add lib/alloca_.h to file list.
37689
37690 2003-01-10  Bruno Haible  <bruno@clisp.org>
37691
37692         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
37693
37694 2003-01-10  Bruno Haible  <bruno@clisp.org>
37695
37696         * lib/alloca_.h: New file.
37697         * lib/getdate.y: Unconditionally include alloca.h.
37698         * lib/makepath.c: Likewise.
37699         * lib/setenv.c: Likewise.
37700         * lib/userspec.c: Likewise.
37701
37702 2003-01-09  Karl Berry  <karl@gnu.org>
37703
37704         * MODULES.html.sh: include `dirname $0` in PATH, to find
37705         gnulib-tool.
37706
37707 2003-01-09  Bruno Haible  <bruno@clisp.org>
37708
37709         * modules/stdbool: Change configure.ac, Makefile.am requirements.
37710         Simplify Include requirements. Add lib/stdbool.h.in to file list.
37711
37712 2003-01-09  Bruno Haible  <bruno@clisp.org>
37713
37714         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
37715
37716 2003-01-09  Bruno Haible  <bruno@clisp.org>
37717
37718         * lib/stdbool.h.in: New file.
37719
37720 2003-01-09  Bruno Haible  <bruno@clisp.org>
37721
37722         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37723         * MODULES.html.sh: Likewise.
37724
37725 2003-01-08  Jim Meyering  <jim@meyering.net>
37726
37727         * lib/full-write.c: Undefine and define-away `const' after inclusion
37728         of errno.h, not before.  Suggestion from Bruno Haible.
37729
37730 2003-01-08  Bruno Haible  <bruno@clisp.org>
37731
37732         * modules/full-read: Depend on full-write.
37733
37734 2003-01-08  Bruno Haible  <bruno@clisp.org>
37735
37736         * lib/safe-read.c: Include specification header first, to ensure its
37737         selfcontainedness.
37738         * lib/full-write.c: Likewise.
37739
37740 2003-01-07  Jim Meyering  <jim@meyering.net>
37741
37742         * lib/full-write.c: Rework so that it may serve to define full_read,
37743         too.
37744         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
37745
37746 2003-01-07  Bruno Haible  <bruno@clisp.org>
37747
37748         * lib/strtoimax.c: Include <stdint.h> as an alternative to
37749         <inttypes.h>.
37750         * lib/xstrtol.h: Likewise.
37751         * lib/xstrtoimax.c: Likewise.
37752         * lib/xstrtoumax.c: Likewise.
37753         * lib/human.h: Likewise.
37754
37755         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
37756         on systems that have <inttypes.h> but not <stdint.h>.
37757
37758 2003-01-07  Bruno Haible  <bruno@clisp.org>
37759
37760         * MODULES.html.sh: Add copyright notice.
37761         (missed_files): Omit CVS directory entries.
37762         (func_module): Make it work with sed-3.02.
37763         * MODULES.txt: Remove file.
37764
37765 2003-01-06  Jim Meyering  <jim@meyering.net>
37766
37767         * lib/version-etc.c: Update year in translatable copyright string.
37768
37769 2003-01-03  Karl Berry  <karl@gnu.org>
37770
37771         * config/config.{guess,sub}: update from prep.
37772
37773 2003-01-02  Karl Berry  <karl@gnu.org>
37774
37775         * doc/COPYING.DOC: belatedly updated to 1.2.
37776
37777 2003-01-01  Karl Berry  <karl@gnu.org>
37778
37779         * gnulib-tool (func_verify_module): report module name $module in
37780         error message, not $1.
37781         * gnulib-tool (create-testdir): don't complain if destdir couldn't
37782         be created, only if it doesn't exist.
37783         * gnulib-tool (last_checkin_date): don't expand the $Date here.
37784
37785 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37786
37787         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
37788
37789 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37790
37791         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
37792         memcmp if strcoll doesn't work.
37793
37794 2002-12-31  Bruno Haible  <bruno@clisp.org>
37795
37796         * lib/utime.c (utime_null): No need to call ftruncate if the file was
37797         nonempty.
37798
37799 2002-12-31  Bruno Haible  <bruno@clisp.org>
37800
37801         * lib/memcoll.c (STRCOLL): New macro.
37802         (memcoll): Use it.
37803
37804 2002-12-31  Bruno Haible  <bruno@clisp.org>
37805
37806         * lib/localcharset.h: New file.
37807         * lib/localcharset.c: Include it.
37808         * lib/unicodeio.c: Likewise.
37809
37810 2002-12-31  Bruno Haible  <bruno@clisp.org>
37811
37812         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
37813         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
37814
37815 2002-12-31  Bruno Haible  <bruno@clisp.org>
37816
37817         * lib/getline.h: Include <stddef.h>, for size_t.
37818
37819         * lib/unicodeio.h: Include <stddef.h>, for size_t.
37820         * lib/unicodeio.c: Don't include <stddef.h>.
37821
37822 2002-12-31  Bruno Haible  <bruno@clisp.org>
37823
37824         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
37825         HAVE_TM_ZONE.
37826
37827 2002-12-24  Karl Berry  <karl@gnu.org>
37828
37829         * config/config.guess: update from prep.
37830
37831 2002-12-24  Bruno Haible  <bruno@clisp.org>
37832
37833         General infrasructure.
37834         * m4/README: Rewritten.
37835         * m4/onceonly.m4: New file.
37836         * m4/onceonly_2_57.m4: New file.
37837
37838         Module atexit.
37839         * m4/atexit.m4: New file.
37840
37841         Module strtod.
37842         * m4/strtod.m4: New file.
37843
37844         Module strtol.
37845         * m4/strtol.m4: New file.
37846
37847         Module strtoul.
37848         * m4/strtoul.m4: New file.
37849
37850         Module memchr.
37851         * m4/memchr.m4: New file.
37852
37853         Module memcmp.
37854         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
37855         (jm_FUNC_MEMCMP): Invoke it.
37856
37857         Module memcpy.
37858         * m4/memcpy.m4: New file.
37859
37860         Module memmove.
37861         * m4/memmove.m4: New file.
37862
37863         Module memset.
37864         * m4/memset.m4: New file.
37865
37866         Module strcspn.
37867         * m4/strcspn.m4: New file.
37868
37869         Module strpbrk.
37870         * m4/strpbrk.m4: New file.
37871
37872         Module strstr.
37873         * m4/strstr.m4: New file.
37874
37875         Module strerror.
37876         * m4/strerror.m4: New file.
37877
37878         Module mktime.
37879         * m4/mktime.m4: Renamed from jm-mktime.m4.
37880         (gl_PREREQ_MKTIME): New macro.
37881         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
37882
37883         Module malloc.
37884         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
37885         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
37886         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
37887
37888         Module realloc.
37889         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
37890         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
37891         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
37892
37893         Module strftime.
37894         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
37895         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
37896         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
37897         gl_TM_GMTOFF.
37898         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
37899
37900         Module xalloc.
37901         * m4/xalloc.m4: New file.
37902
37903         Module alloca.
37904         * m4/alloca.m4: New file.
37905
37906         Module putenv.
37907         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
37908         (jm_FUNC_PUTENV): Invoke it.
37909
37910         Module setenv.
37911         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
37912         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
37913         when invoked twice.
37914         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
37915         gt_FUNC_SETENV.
37916
37917         Module memrchr.
37918         * m4/memrchr.m4: New file.
37919
37920         Module stpcpy.
37921         * m4/stpcpy.m4: New file.
37922
37923         Module strcase.
37924         * m4/strcase.m4: New file.
37925
37926         Module strdup.
37927         * m4/strdup.m4: New file.
37928
37929         Module strnlen.
37930         * m4/strnlen.m4: New file.
37931
37932         Module strndup.
37933         * m4/strndup.m4: New file.
37934
37935         Module xstrtod.
37936         * m4/xstrtod.m4: New file.
37937
37938         Module xstrtol.
37939         * m4/xstrtol.m4: New file.
37940
37941         Module getdate.
37942         * m4/getdate.m4: New file.
37943
37944         Module unlocked-io.
37945         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
37946         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
37947         * m4/jm-glibc-io.m4n: Remove file.
37948
37949         Module long-options.
37950         * m4/long-options.m4: New file.
37951
37952         Module md5.
37953         * m4/md5.m4: New file.
37954
37955         Module sha.
37956         * m4/sha.m4: New file.
37957
37958         Module getstr.
37959         * m4/getstr.m4: New file.
37960
37961         Module getline.
37962         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
37963         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
37964         <sys/types.h>, for size_t. Use the function name gnu_getline, not
37965         simply getline. Infoke gl_PREREQ_GETLINE.
37966
37967         Module obstack.
37968         * m4/obstack.m4: New file.
37969
37970         Module hash.
37971         * m4/hash.m4: New file.
37972
37973         Module readtokens.
37974         * m4/readtokens.m4: New file.
37975
37976         Module strverscmp.
37977         * m4/strverscmp.m4: New file.
37978
37979         Module stdbool.
37980         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
37981         OSF/1.
37982
37983         Module strtoll.
37984         * m4/strtoll.m4: New file.
37985
37986         Module strtoull.
37987         * m4/strtoull.m4: New file.
37988
37989         Module strtoimax.
37990         * m4/strtoimax.m4: New file.
37991
37992         Module strtoumax.
37993         * m4/strtoumax.m4: New file.
37994
37995         Module xstrtoimax.
37996         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
37997         jm_AC_PREREQ_XSTRTOIMAX.
37998         Moved the strtol prerequisites to strtol.m4.
37999         Moved the strtoll prerequisites to strtoll.m4.
38000         Moved the strtoimax prerequisites to strtoimax.m4.
38001
38002         Module xstrtoumax.
38003         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
38004         jm_AC_PREREQ_XSTRTOUMAX.
38005         Moved the strtoul prerequisites to strtoul.m4.
38006         Moved the strtoull prerequisites to strtoull.m4.
38007         Moved the strtoumax prerequisites to strtoumax.m4.
38008
38009         Module chown.
38010         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
38011         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
38012
38013         Module dup2.
38014         * m4/dup2.m4: New file.
38015
38016         Module ftruncate.
38017         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
38018         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
38019
38020         Module getgroups.
38021         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
38022         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
38023
38024         Module gettimeofday.
38025         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
38026         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
38027         gl_PREREQ_GETTIMEOFDAY.
38028
38029         Module mkdir.
38030         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
38031         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
38032
38033         Module mkstemp.
38034         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
38035         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
38036         jm_AC_TYPE_UINTMAX_T.
38037         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
38038
38039         Module stat.
38040         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
38041         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
38042
38043         Module lstat.
38044         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
38045         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
38046
38047         Module timespec.
38048         * m4/timespec.m4 (gl_TIMESPEC): New macro.
38049         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
38050         * m4/st_mtim.m4: Indentation.
38051
38052         Module nanosleep.
38053         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
38054         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
38055         gl_PREREQ_NANOSLEEP.
38056
38057         Module regex.
38058         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
38059         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
38060         (gl_REGEX): New macro.
38061
38062         Module rename.
38063         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
38064         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
38065
38066         Module rmdir.
38067         * m4/rmdir.m4: New file.
38068
38069         Module utime.
38070         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
38071         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
38072         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
38073
38074         Module dirname.
38075         * m4/dirname.m4: New file.
38076
38077         Module getopt.
38078         * m4/getopt.m4: New file.
38079
38080         Module unistd-safer.
38081         * m4/unistd-safer.m4: New file.
38082
38083         Module fnmatch.
38084         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
38085         declaration.
38086         (gl_PREREQ_FNMATCH_EXTRA): New macro.
38087         (gl_FUNC_FNMATCH_POSIX): New macro.
38088         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
38089         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
38090         simply fnmatch.
38091
38092         Module exclude.
38093         * m4/exclude.m4: New file.
38094
38095         Module human.
38096         * m4/human.m4: New file.
38097
38098         Module acl.
38099         * m4/acl.m4: Nop.
38100
38101         Module backupfile.
38102         * m4/backupfile.m4: New file.
38103         * m4/d-ino.m4: Indentation.
38104
38105         Module fsusage.
38106         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
38107         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
38108         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
38109
38110         Module dirfd.
38111         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
38112         requirements.
38113
38114         Module euidaccess.
38115         * m4/euidaccess.m4: New file.
38116
38117         Module file-type.
38118         * m4/file-type.m4: New file.
38119
38120         Module fileblocks.
38121         * m4/fileblocks.m4: New file.
38122
38123         Module filemode.
38124         * m4/filemode.m4: New file.
38125
38126         Module isdir.
38127         * m4/isdir.m4: New file.
38128
38129         Module lchown.
38130         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
38131         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
38132
38133         Module makepath.
38134         * m4/makepath.m4: New file.
38135
38136         Module modechange.
38137         * m4/modechange.m4: New file.
38138
38139         Module mountlist.
38140         * m4/mountlist.m4: New file.
38141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
38142         Indentation.
38143
38144         Module path-concat.
38145         * m4/path-concat.m4: New file.
38146
38147         Module pathmax.
38148         * m4/pathmax.m4: New file.
38149
38150         Module same.
38151         * m4/same.m4: New file.
38152
38153         Module save-cwd.
38154         * m4/save-cwd.m4: New file.
38155
38156         Module savedir.
38157         * m4/savedir.m4: New file.
38158
38159         Module xgetcwd.
38160         * m4/xgetcwd.m4: New file.
38161         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
38162
38163         Module xreadlink.
38164         * m4/xreadlink.m4: New file.
38165
38166         Module safe-read.
38167         * m4/safe-read.m4: New file.
38168
38169         Module safe-write.
38170         * m4/safe-write.m4: New file.
38171
38172         Module closeout.
38173         * m4/closeout.m4: New file.
38174
38175         Module stdio-safer.
38176         * m4/stdio-safer.m4: New file.
38177
38178         Module getpass.
38179         * m4/getpass.m4: New file.
38180
38181         Module getugroups.
38182         * m4/getugroups.m4: New file.
38183
38184         Module group-member.
38185         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
38186         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
38187
38188         Module idcache.
38189         * m4/idcache.m4: New file.
38190
38191         Module userspec.
38192         * m4/userspec.m4: New file.
38193
38194         Module gettime.
38195         * m4/clock_time.m4: New file.
38196         * m4/gettime.m4: New file.
38197
38198         Module settime.
38199         * m4/settime.m4: New file.
38200
38201         Module posixtm.
38202         * m4/posixtm.m4: New file.
38203
38204         Module gethostname.
38205         * m4/gethostname.m4: New file.
38206
38207         Module canon-host.
38208         * m4/canon-host.m4: New file.
38209
38210         Module gettext.
38211         * m4/codeset.m4: New file, from gettext-0.11.5.
38212         * m4/gettext.m4: New file, from gettext-0.11.5.
38213         * m4/glibc21.m4: New file, from gettext-0.11.5.
38214         * m4/iconv.m4: New file, from gettext-0.11.5.
38215         * m4/intdiv0.m4: New file, from gettext-0.11.5.
38216         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
38217         * m4/inttypes.m4: New file, from gettext-0.11.5.
38218         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
38219         * m4/isc-posix.m4: New file, from gettext-0.11.5.
38220         * m4/lcmessage.m4: New file, from gettext-0.11.5.
38221         * m4/lib-ld.m4: New file, from gettext-0.11.5.
38222         * m4/lib-link.m4: New file, from gettext-0.11.5.
38223         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
38224         * m4/progtest.m4: New file, from gettext-0.11.5.
38225         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
38226         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
38227         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
38228
38229         Module localcharset.
38230         * m4/localcharset.m4: New file.
38231
38232         Module hard-locale.
38233         * m4/hard-locale.m4: New file.
38234
38235         Module mbswidth.
38236         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
38237         onceonly macros.
38238         * m4/mbrtowc.m4: Add comment.
38239
38240         Module memcasecmp.
38241         * m4/memcasecmp.m4: New file.
38242
38243         Module memcoll.
38244         * m4/memcoll.m4: New file.
38245
38246         Module unicodeio.
38247         * m4/unicodeio.m4: New file.
38248
38249         Module rpmatch.
38250         * m4/rpmatch.m4: New file.
38251
38252         Module yesno.
38253         * m4/yesno.m4: New file.
38254
38255         Module exitfail.
38256         * m4/exitfail.m4: New file.
38257
38258         Module c-stack.
38259         * m4/c-stack.m4 (gl_C_STACK): New macro.
38260         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
38261
38262         Module error.
38263         * m4/error.m4 (gl_ERROR): New macro.
38264         (jm_PREREQ_ERROR): Use onceonly macros.
38265
38266         Module fatal.
38267         * m4/fatal.m4: New file.
38268
38269         Module getloadavg.
38270         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
38271         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
38272
38273         Module getpagesize.
38274         * m4/getpagesize.m4: New file.
38275
38276         Module getusershell.
38277         * m4/getusershell.m4: New file.
38278
38279         Module physmem.
38280         * m4/physmem.m4: New file.
38281
38282         Module posixver.
38283         * m4/posixver.m4: New file.
38284
38285         Module quotearg.
38286         * m4/quotearg.m4: New file.
38287
38288         Module quote.
38289         * m4/quote.m4: New file.
38290
38291         Module readutmp.
38292         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
38293
38294         Module sig2str.
38295         * m4/sig2str.m4: New file.
38296
38297         Other.
38298         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
38299         ulonglong.m4.
38300         * m4/intmax_t.m4: New file.
38301         * m4/d-type.m4: Indentation.
38302         * m4/jm-macros.m4: Update.
38303         * m4/prereq.m4 (jm_PREREQ): Update.
38304         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
38305         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
38306         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
38307         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38308         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38309         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38310         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38311         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38312         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38313         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38314         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38315         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38316         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38317         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38318         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38319         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38320         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38321         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38322         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38323
38324 2002-12-24  Bruno Haible  <bruno@clisp.org>
38325
38326         * MODULES.txt: Update according to m4/ changes.
38327
38328         Module gettext.
38329         * config.rpath: New file, from gettext-0.11.5.
38330
38331         * modules/*: New module descriptions.
38332         * gnulib-tool: New file.
38333         * MODULES.html.sh: New file.
38334
38335 2002-12-21  Karl Berry  <karl@gnu.org>
38336
38337         * doc/fdl.texi: update to version 1.2.
38338
38339 2002-12-19  Karl Berry  <karl@gnu.org>
38340
38341         * config/config.guess: update from prep.
38342
38343 2002-12-18  Bruno Haible  <bruno@clisp.org>
38344
38345         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38346         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38347
38348 2002-12-17  Bruno Haible  <bruno@clisp.org>
38349
38350         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38351         stdlib.h, string.h.
38352
38353 2002-12-17  Bruno Haible  <bruno@clisp.org>
38354
38355         * lib/canon-host.c (strdup): Remove unused declaration.
38356
38357         * lib/fsusage.c: Include full_read.h.
38358         (get_fs_usage): Use full_read instead of safe_read.
38359
38360         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38361
38362 2002-12-12  Karl Berry  <karl@gnu.org>
38363
38364         * config/config.guess: update from prep.
38365
38366 2002-12-11  Bruno Haible  <bruno@clisp.org>
38367
38368         * m4/setenv.m4: New file, from gettext-0.11.5.
38369
38370 2002-12-11  Bruno Haible  <bruno@clisp.org>
38371
38372         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38373         not unsetenv().
38374         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38375         modifications:
38376
38377         2002-12-11  Bruno Haible  <bruno@clisp.org>
38378
38379                 * setenv.c (alloca): Fall back to malloc.
38380                 (freea): New macro.
38381                 (setenv): Use freea() to free memory allocated with alloca().
38382
38383         2002-11-13  Bruno Haible  <bruno@clisp.org>
38384
38385                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38386                 function declarations.
38387                 * unsetenv.c (unsetenv): Likewise.
38388
38389         2002-03-04  Bruno Haible  <bruno@clisp.org>
38390
38391                 Portability to AIX 4.3.3.
38392                 * unsetenv.c: New file, extracted from setenv.c.
38393                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38394
38395         2001-12-20  Bruno Haible  <bruno@clisp.org>
38396
38397                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38398                 use malloc instead. For SunOS 4.
38399
38400         2001-12-11  Bruno Haible  <bruno@clisp.org>
38401
38402                 * setenv.c: Declare alloca.
38403                 (compar_fn_t): New typedef.
38404                 (KNOWN_VALUE, STORE_VALUE): Use it.
38405
38406         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38407         setenv.h.
38408
38409 2002-12-10  Paul Eggert  <eggert@twinsun.com>
38410
38411         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
38412         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
38413         Choose values that are less likely to collide with system fnmatch
38414         options.
38415         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
38416         defined (e.g., a pure POSIX system).
38417         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
38418         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
38419
38420 2002-12-06  Paul Eggert  <eggert@twinsun.com>
38421
38422         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
38423         a pain in practice to deal with generated m4 files.  This change
38424         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
38425
38426         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38427         and jm-glibc-io.m4, as they are no longer a special case.
38428         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38429         kludge and the auto-generation stuff.  Check only whether the
38430         functions are declared, not whether they exist, since older hosts
38431         that don't declare the functions can't use the optimization anyway.
38432
38433 2002-12-06  Jim Meyering  <jim@meyering.net>
38434
38435         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38436
38437         Merge in changes from libc's misc/error.c, in preparation
38438         for the merge of gnulib's changes back into libc.
38439
38440         * lib/error.c (_): Define only if not already defined.
38441         Move definition to follow all #include directives.
38442         Include unlocked-io.h only if !_LIBC.
38443         [_LIBC]: Include <libio/libioP.h>.
38444         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38445         (fflush): Tweak definition to use INTUSE.
38446         (putc): Define.
38447
38448 2002-12-05  Paul Eggert  <eggert@twinsun.com>
38449
38450         * lib/alloca.c [defined emacs]: Include "lisp.h".
38451         (xalloc_die) [defined emacs]: New macro.
38452         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
38453         [! defined emacs]: Include <xalloc.h>.
38454         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
38455         (pointer): Typedef to POINTER_TYPE *.
38456         (malloc): Remove decl; we now always use xmalloc.
38457         (alloca): Use old-style definition, since Emacs needs this.
38458         Check for arithmetic overflow when computing combined size.
38459
38460 2002-12-04  Paul Eggert  <eggert@twinsun.com>
38461
38462         Do not generate unlocked-io.h automatically, since it's easier to
38463         maintain it by hand.
38464
38465         * lib/unlocked-io.h: New file, from GNU diffutils,
38466         but with proper copyright notice and attribution.
38467         * lib/gen-uio: Remove.
38468         * lib/Makefile.am: Add copyright notice.
38469         (libfetish_a_SOURCES): Add unlocked-io.h.
38470         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
38471         (DISTCLEANFILES, io_functions): Remove macros.
38472         (EXTRA_DIST): Remove gen_uio.
38473         (unlocked-io.h): Remove rule.
38474
38475 2002-12-04  Jim Meyering  <jim@meyering.net>
38476
38477         Reflect the fact that stat.c and lstat.c are no longer generated.
38478         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
38479         (DISTCLEANFILES): Likewise.
38480         (EXTRA_DIST): Likewise.
38481         (all_local): Don't depend on stat.c or lstat.c.
38482         (stat.c, lstat.c): Remove rules.
38483         (EXTRA_DIST): Remove xstat.in.
38484
38485         * lib/xstat.in: Remove file.  Contents moved into stat.c.
38486         * lib/stat.c: New file.  Contents mostly from xstat.in.
38487         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
38488         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
38489
38490         * lib/safe-read.c: Rework so that it may serve to define safe_write,
38491         too.
38492         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
38493
38494 2002-12-03  Jim Meyering  <jim@meyering.net>
38495
38496         * lib/safe-read.c, safe-write.c: Change variable names and comments,
38497         but not semantics, to minimize the differences between these two files.
38498         (safe_read): Change comment to mention SAFE_READ_ERROR.
38499
38500         * lib/safe-read.c (IS_EINTR): Define.
38501         (safe_read): Use IS_EINTR in place of in-function cpp directives.
38502
38503 2002-12-02  Jim Meyering  <jim@meyering.net>
38504
38505         * lib/safe-read.c (EINTR): Define.
38506         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38507         (INT_MAX): Provide fallback.
38508         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
38509
38510         * lib/safe-read.h (SAFE_READ_ERROR): Define.
38511
38512 2002-12-02  Bruno Haible  <bruno@clisp.org>
38513
38514         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
38515         Define, taken from safe-read.c.
38516         (INT_MAX): Provide fallback.
38517         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
38518         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
38519
38520         * lib/safe-read.c (EINTR): Remove definition.
38521         (safe_read): Don't use EINTR if it is absent.
38522
38523 2002-12-01  Jim Meyering  <jim@meyering.net>
38524
38525         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
38526         zero.
38527         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
38528
38529 2002-11-27  Paul Eggert  <eggert@twinsun.com>
38530
38531         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
38532         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
38533         with `if (! (value < limit)) abort ();', for readability.
38534
38535 2002-11-26  Karl Berry  <karl@gnu.org>
38536
38537         * lib/strdup.c: copy from libc again, with jim's ok.
38538         * lib/.cppi-disable: re-add strdup.c
38539
38540 2002-11-25  Karl Berry  <karl@gnu.org>
38541
38542         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
38543         instead of "strtol.c".
38544
38545 2002-11-25  Karl Berry  <karl@gnu.org>
38546
38547         * config/install-sh: update from automake for variable quoting, $0 in
38548         error msgs, etc.
38549
38550         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
38551         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
38552         entry.
38553
38554 2002-11-25  Jim Meyering  <jim@meyering.net>
38555
38556         * lib/mktime.c: Sync from libc, now that it has the latest fix.
38557
38558 2002-11-24  Karl Berry  <karl@gnu.org>
38559
38560         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
38561         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
38562
38563 2002-11-24  Jim Meyering  <jim@meyering.net>
38564
38565         Update from coreutils:
38566
38567         * lib/mktime.c: Merge in changes from libc.
38568
38569         Avoid a link-time failure on some Linux systems.
38570         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
38571         (otherwise).
38572         (__mon_yday): Declare with the STATIC attribute.
38573         (__mktime_internal): Likewise.
38574         Based on a report from Greg Schafer.
38575
38576 2002-11-23  Jim Meyering  <jim@meyering.net>
38577
38578         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
38579         Use `unsigned', not `int', as type of index.
38580
38581         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
38582
38583         * lib/fsusage.c: Remove unneeded parentheses around operands of
38584         `defined'.
38585
38586 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38587
38588         * lib/quotearg.h: Allow multiple inclusion by surrounding with
38589         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
38590         so that we can be included first.
38591         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
38592         * lib/quotearg.c: Include quotearg.h immediately after config.h.
38593         No need to include stddef.h or sys/types.h any more.
38594         Surround local include files with "", not "<>".
38595         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
38596         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
38597         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
38598         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
38599         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
38600         (ISPRINT): Remove; no longer needed now that we assume C89.
38601
38602         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
38603         Preserve errno.
38604
38605         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
38606         quotearg_char): Use SIZE_MAX rather than
38607         (size_t) -1 when we are talking about "infinity".
38608
38609         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
38610
38611 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38612
38613         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
38614         hint that one should use `if (! x) abort ();' rather than `assert
38615         (x);', and anyway it's one less thing to worry about configuring.
38616         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
38617         hash_rehash, hash_insert): Use abort rather than assert.
38618
38619 2002-11-22  Bruno Haible  <bruno@clisp.org>
38620
38621         * lib/safe-read.h: Assume C89. Add comments.
38622         (safe_read): Change return type to size_t.
38623         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
38624         byte counts > SSIZE_MAX correctly.
38625         * lib/safe-write.h: New file.
38626         * lib/safe-write.c: New file.
38627         * lib/full-read.h: New file.
38628         * lib/full-read.c: New file.
38629         * lib/full-write.h: Assume C89. Add comments.
38630         * lib/full-write.c: Include safe-write.h.
38631         (full_write): Rewritten to use safe_write.
38632         Suggested by Jim Meyering and Paul Eggert.
38633
38634 2002-11-21  Jim Meyering  <jim@meyering.net>
38635
38636         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
38637
38638         Merge in changes from the coreutils.
38639
38640         2002-09-25  Paul Eggert  <eggert@twinsun.com>
38641         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
38642         <stdint.h>.
38643         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
38644         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
38645         int.  Work more efficiently if X is the same width as uintmax_t.
38646         Do not compare X to -1, to avoid bogus compiler warning.
38647         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
38648         Don't assume that f_frsize and f_bsize are the same type.
38649
38650         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
38651         warning on FreeBSD.
38652
38653         * lib/makepath.c (make_path): Restore umask *before* creating the final
38654         component.
38655         (make_path): Minor reformatting.
38656
38657         * lib/xmalloc.c: Adjust to work with new autoconf macros,
38658         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
38659         HAVE_MALLOC/HAVE_REALLOC.
38660
38661         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
38662         dummy ones.  At least on GNU/Linux systems, `auto' means something
38663         else.
38664         From Michael Stone.
38665
38666 2002-11-21  Bruno Haible  <bruno@clisp.org>
38667
38668         Remove case insensitive option matching.
38669         * lib/argmatch.h (argcasematch): Remove declaration.
38670         (ARGCASEMATCH): Remove macro.
38671         (__xargmatch_internal): Remove case_sensitive argument.
38672         (XARGMATCH): Update.
38673         (XARGCASEMATCH): Remove macro.
38674         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
38675         case_sensitive argument.
38676         (argcasematch): Remove function.
38677         (__xargmatch_internal): Remove case_sensitive argument.
38678         (main): Use XARGMATCH instead of XARGCASEMATCH.
38679
38680         * lib/xmalloc.c: Change compile-time error message. Add comment about
38681         required autoconf version.
38682
38683 2002-11-20  Paul Eggert  <eggert@twinsun.com>
38684
38685         Merge argmatch cleanups from Bison.  Assume C89.
38686
38687         * lib/argmatch.c: Include config.h here, not in argmatch.h.
38688         Include stdlib.h, for EXIT_FAILURE.
38689         Always include <string.h>, since we assume C89.
38690         (EXIT_FAILURE): Remove pre-C89 bug workaround.
38691         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
38692         Include <stddef.h> instead, since it's all we need for size_t.
38693         (PARAMS): Remove.  All uses removed.
38694         (ARRAY_CARDINALITY): Do not bother to #undef.
38695         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
38696         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38697         Remove unnecessary parentheses.
38698         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38699         Insert necessary parentheses.
38700         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
38701         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
38702
38703 2002-11-19  Bruno Haible  <bruno@clisp.org>
38704
38705         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
38706         * lib/mbswidth.h: Include <stddef.h>, for size_t.
38707
38708         * lib/mbswidth.h (PARAMS): Remove macro.
38709         (mbswidth, mbsnwidth): Use ANSI C function declarations.
38710         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
38711
38712         * lib/gcd.h (PARAMS): Remove macro.
38713         (gcd): Use ANSI C function declarations.
38714         * lib/gcd.c (gcd): Likewise.
38715
38716 2002-11-15  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/strcspn.c: Include <stddef.h>.
38719         (strcspn): Use ANSI C function declaration. Change return type to
38720         size_t. Use NULL.
38721         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38722         (strpbrk): Use NULL.
38723         * lib/strpbrk.h (PARAMS): Remove macro.
38724         (strpbrk): Use ANSI C function declaration.
38725         * lib/strstr.c: Don't include <sys/types.h>.
38726         * lib/strstr.h (PARAMS): Remove macro.
38727         (strstr): Use ANSI C function declarations.
38728
38729 2002-11-14  Karl Berry  <karl@gnu.org>
38730
38731         * config/mkinstalldirs: `do' on separate line, instead of
38732         `for var; do'.
38733
38734 2002-11-06  Bruno Haible  <bruno@clisp.org>
38735
38736         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
38737         * lib/gcd.c (gcd): Likewise.
38738
38739 2002-11-05  Bruno Haible  <bruno@clisp.org>
38740
38741         * lib/gcd.h: New file, from gettext-0.11.5.
38742         * lib/gcd.c: New file, from gettext-0.11.5.
38743
38744 2002-11-05  Bruno Haible  <bruno@clisp.org>
38745
38746         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38747         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38748         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38749         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38750
38751         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
38752         <libintl.h>.
38753         * lib/makepath.c: Include gettext.h instead of <locale.h> and
38754         <libintl.h>.
38755
38756         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
38757         * lib/human.c: Include gettext.h instead of <libintl.h>.
38758         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
38759         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
38760         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
38761         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
38762         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
38763         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
38764         (textdomain): Remove definition.
38765         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
38766
38767         * lib/long-options.c: Remove include of <libintl.h> and definition of
38768         _.
38769         * lib/same.c: Remove include of <libintl.h> and definition of _.
38770
38771 2002-11-04  Owen Taylor  <otaylor@redhat.com>
38772
38773         * lib/config.charset: A few additions for Solaris.
38774
38775 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38776
38777         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
38778         * lib/localcharset.c (locale_charset): Declare as extern "C".
38779
38780 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38781
38782         * lib/config.charset: msdos in uk_UA uses CP1125.
38783
38784 2002-11-04  Bruno Haible  <bruno@clisp.org>
38785
38786         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
38787         * lib/strcase.h: New file, from GNU gettext-0.11.5.
38788         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
38789         * lib/strstr.h: New file, from GNU gettext-0.11.5.
38790         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
38791
38792 2002-11-04  Bruno Haible  <bruno@clisp.org>
38793
38794         * lib/localcharset.c (locale_charset): Don't return an empty string.
38795
38796 2002-11-04  Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
38799         aliases.
38800
38801 2002-11-04  Bruno Haible  <bruno@clisp.org>
38802
38803         * lib/config.charset: Update for newest glibc. Add canonical names
38804         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
38805
38806 2002-11-04  Bruno Haible  <bruno@clisp.org>
38807
38808         * lib/config.charset: Add support for NetBSD.
38809
38810 2002-11-04  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
38813
38814 2002-11-01  Bruno Haible  <bruno@clisp.org>
38815
38816         * configure.in: Add AC_CONFIG_AUX_DIR call.
38817         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
38818         test/Makefile.
38819         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
38820
38821 2002-09-28  Karl Berry  <karl@gnu.org>
38822
38823         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
38824         installed automake until the next release, since changes have been
38825         made.
38826
38827 2002-09-25  Karl Berry  <karl@gnu.org>
38828
38829         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
38830         * lib/getopt*: copy from libc/posix.
38831         * lib/gettext.h: copy from gettext.
38832         * lib/.cppi-disable: add strdup.c, gettext.h.
38833
38834 2002-09-25  Karl Berry  <karl@gnu.org>
38835
38836         * config/srclist.txt: enable gettext.h check.
38837         * config/config.{guess,sub}: update from prep.
38838         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
38839                 from automake 1.6.3.
38840         See srclist*.
38841
38842 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
38843
38844         * regex.c (PATFETCH): Remove the translating fetch.
38845         (PATFETCH_RAW): Rename to PATFETCH.
38846         (set_image_of_range): New fun.
38847         (SET_RANGE_TABLE_WORK_AREA): Use it.
38848         (regex_compile): Don't translate the pattern chars so eagerly.
38849         Only do it when inserting an `exactn' bytecode or when handling
38850         a char-range.
38851         (mutually_exclusive_p): Avoid empty statement.
38852
38853 2002-07-06  Jim Meyering  <meyering@lucent.com>
38854
38855         * m4/README: Don't mention Makefile.am.in.
38856         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
38857
38858 2002-07-01  Jim Meyering  <meyering@lucent.com>
38859
38860         * lib/c-stack.c: Include sys/time.h.
38861         From Volker Borchert.
38862
38863 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38864
38865         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
38866
38867 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38868
38869         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
38870         New macro.  Use it uniformly instead of
38871         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
38872         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
38873         reported by Vin Shelton.
38874
38875 2002-06-22  Paul Eggert  <eggert@twinsun.com>
38876
38877         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
38878         Do not assume SA_SIGINFO behavior.
38879         Bug reported by Jim Meyering on NetBSD 1.5.2.
38880
38881 2002-06-22  Jim Meyering  <meyering@lucent.com>
38882
38883         * m4/c-stack.m4: New file, from diffutils-2.8.2.
38884         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
38885
38886         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
38887         now that configure.ac uses AC_GNU_SOURCE.
38888         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
38889         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
38890
38891         Update to latest tools.  Suggestions from Paul Eggert.
38892         * m4/stdbool.m4: New file, from diffutils-2.8.2.
38893         * m4/gnu-source.m4: Update from diffutils-2.8.2.
38894         * m4/fnmatch.m4: Likewise.
38895         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
38896         to AC_HEADER_STDBOOL
38897
38898 2002-06-22  Jim Meyering  <meyering@lucent.com>
38899
38900         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
38901         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
38902
38903 2002-06-22  Jim Meyering  <meyering@lucent.com>
38904
38905         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
38906
38907         * lib/exitfail.c, exitfail.h: Likewise.
38908         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
38909
38910         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
38911         of fnmatch.h.
38912         (EXTRA_DIST): Add fnmatch_loop.c.
38913         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
38914
38915         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
38916         * lib/fnmatch.c: Update from diffutils-2.8.2.
38917         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
38918         * lib/fnmatch.h: Remove file.
38919
38920 2002-06-21  Jim Meyering  <meyering@lucent.com>
38921
38922         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
38923         * m4/mbrtowc.m4: Likewise.
38924
38925         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
38926         * m4/mbswidth.m4: Reflect name change:
38927         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
38928         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38929
38930         * m4/lib-link.m4: Update from gettext-0.11.2.
38931         * m4/gettext.m4: Likewise.
38932
38933         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
38934         From Alfred M. Szmidt.
38935
38936 2002-06-18  Paul Eggert  <eggert@twinsun.com>
38937
38938         * lib/file-type.h: Report an error if neither S_ISREG nor
38939         S_IFREG is defined, instead of using a test specific to glibc
38940         2.2.  This should be safe, since POSIX requires S_ISREG and
38941         Unix Version 7 had S_IFREG.  We don't need to check for
38942         <sys/types.h> since we don't use any symbols that it defines.
38943
38944 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
38945
38946         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
38947         $@-t, so that each temporary file name is unique and valid in the first
38948         8 characters, for operation under DOS.
38949
38950 2002-06-15  Paul Eggert  <eggert@twinsun.com>
38951
38952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
38953
38954 2002-06-15  Jim Meyering  <meyering@lucent.com>
38955
38956         Work even with DJGPP 2.03, which lacks support for symlinks.
38957         From Richard Dawe.
38958         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
38959         is defined.
38960         * lib/lchown.c (S_ISLNK): Likewise.
38961
38962 2002-06-15  Jim Meyering  <meyering@lucent.com>
38963
38964         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
38965         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
38966         have been included before this file.
38967
38968 2002-06-14  Jim Meyering  <meyering@lucent.com>
38969
38970         * lib/file-type.h: Use the version from diffutils-2.8.2.
38971         * lib/file-type.c: Likewise.
38972
38973 2002-06-07  Jim Meyering  <meyering@lucent.com>
38974
38975         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
38976         They're needed at least for NetBSD 1.5.2.
38977         ($statxfs_includes): Include those same headers.
38978         ($statxfs_includes): Include sys/vfs.h if available.
38979         ($statxfs_includes): Likewise for sys/statvfs.h.
38980         Check for the following members in both structs statfs and statvfs:
38981         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
38982
38983 2002-06-01  Jim Meyering  <meyering@lucent.com>
38984
38985         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
38986         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
38987
38988 2002-05-28  Jim Meyering  <meyering@lucent.com>
38989
38990         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
38991         Reported by Volker Borchert.
38992
38993 2002-05-27  Jim Meyering  <meyering@lucent.com>
38994
38995         Fix a problem seen only on nonconforming systems whereby ls.c's
38996         use of localtime, and then of gettimeofday would cause trouble:
38997         the localtime call used to initialize rpl_gettimeofday's save
38998         mechanism would clobber ls's current local time information so
38999         that in any long listing the first file would always be listed
39000         with date 1970-01-01.  Analysis by Volker Borchert.
39001
39002         * lib/gettimeofday.c (localtime): Undefine.
39003         (rpl_localtime): New function.
39004
39005 2002-05-27  Jim Meyering  <meyering@lucent.com>
39006
39007         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
39008         localtime.
39009
39010         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
39011         use the replacement function; it wouldn't resolve at link time.
39012         Reported by Volker Borchert.
39013
39014 2002-05-22  Jim Meyering  <meyering@lucent.com>
39015
39016         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
39017         file-type.h.
39018         * lib/file-type.h: New file.
39019         * lib/file-type.c (file_type): New file/function.  Extracted from
39020         diffutils.
39021
39022 2002-04-30  Jim Meyering  <meyering@lucent.com>
39023
39024         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
39025
39026 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39027
39028         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
39029
39030 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39031
39032         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
39033         Do not check for alloca.h (no longer used) or stdbool.h (was never
39034         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
39035
39036 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39037
39038         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
39039
39040 2002-04-29  Jim Meyering  <meyering@lucent.com>
39041
39042         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
39043         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
39044         Use AC_FUNC_STRNLEN here instead.
39045
39046         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
39047         With autoconf-2.53a, it's part of AC_PROG_CC.
39048
39049 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39050
39051         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
39052         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
39053
39054 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39055
39056         * lib/sig2str.h, lib/sig2str.c: New files.
39057         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
39058
39059 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39060
39061         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
39062         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
39063         of 127, since 64 is the largest conceivable number for ancient
39064         nonstandard hosts.
39065         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
39066
39067 2002-04-28  Jim Meyering  <meyering@lucent.com>
39068
39069         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
39070
39071 2002-04-24  Jim Meyering  <meyering@lucent.com>
39072
39073         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
39074         (jm_PREREQ): Use it.
39075
39076         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
39077         mach/mach.h fcntl.h.
39078         Check for this function: setlocale.
39079
39080 2002-04-24  Jim Meyering  <meyering@lucent.com>
39081
39082         * lib/gettext.h: New file, from Gettext.
39083         * lib/Makefile.am (INCLUDES): Remove -I../intl.
39084         (libfetish_a_SOURCES): Add gettext.h.
39085
39086 2002-04-16  Jim Meyering  <meyering@lucent.com>
39087
39088         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
39089         ut_pid, ut_id, ut_exit.
39090
39091 2002-04-16  Jim Meyering  <meyering@lucent.com>
39092
39093         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
39094         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
39095         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
39096
39097 2002-04-12  Jim Meyering  <meyering@lucent.com>
39098
39099         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
39100         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
39101         existence of the getmntinfo function.  Needed for Darwin 5.3.
39102
39103         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
39104         This is necessary at least on Darwin 5.3.
39105
39106         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
39107         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
39108         strnlen.o in the library, and that makes some versions of ranlib
39109         object.
39110
39111 2002-04-12  Jim Meyering  <meyering@lucent.com>
39112
39113         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
39114
39115 2002-04-09  Jim Meyering  <meyering@lucent.com>
39116
39117         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
39118         to be more precise.  Rather than saying we're checking whether the
39119         function `works', say what we're testing.
39120         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
39121         Reported by Bruno Haible.
39122
39123 2002-03-10  Jim Meyering  <meyering@lucent.com>
39124
39125         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
39126         Suggestion from Santiago Vila.
39127
39128 2002-03-08  Jim Meyering  <meyering@lucent.com>
39129
39130         * lib/rename.c: Mention that this wrapper is needed also on
39131         mips-dec-ultrix4.4 systems.
39132
39133 2002-03-02  Jim Meyering  <meyering@lucent.com>
39134
39135         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
39136         not HAVE_CLOCK_SETTIME.
39137
39138 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39139
39140         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
39141         Check for clock_settime.
39142
39143 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39144
39145         * lib/nanosleep.h: Rename to....
39146         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
39147
39148         * lib/gettime.c: New file.
39149         * lib/settime.c: New file.
39150         * lib/stime.c: Remove.
39151
39152         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
39153         timespec.h.  Remove nanosleep.h.
39154
39155 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39156
39157         * m4/acl.m4: New file.
39158         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
39159         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
39160
39161 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39162
39163         * lib/acl.c, lib/acl.h: New files.
39164         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
39165
39166 2002-02-24  Jim Meyering  <meyering@lucent.com>
39167
39168         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
39169         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
39170         cause trouble.  Reported by Nelson Beebe.
39171
39172 2002-02-23  Paul Eggert  <eggert@twinsun.com>
39173
39174         * lib/path-concat.c (xpath_concat): Reorder code to pacify
39175         compilers that don't know that xalloc_die never returns.
39176
39177 2002-02-20  Jim Meyering  <meyering@lucent.com>
39178
39179         * lib/getdate.c: Regenerate using bison-1.33.
39180
39181 2002-02-17  Jim Meyering  <meyering@lucent.com>
39182
39183         * config/config.guess (main): Don't use `head -1'; it's no longer
39184         portable. Use `sed 1q' instead.
39185
39186 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
39187
39188         * m4/codeset.m4: Upgrade to gettext-0.11.
39189         * m4/gettext.m4: Upgrade to gettext-0.11.
39190         * m4/glibc21.m4: Upgrade to gettext-0.11.
39191         * m4/iconv.m4: Upgrade to gettext-0.11.
39192         * m4/isc-posix.m4: Upgrade to gettext-0.11.
39193         * m4/lcmessage.m4: Upgrade to gettext-0.11.
39194         * m4/lib-ld.m4: New file, from gettext-0.11.
39195         * m4/lib-link.m4: New file, from gettext-0.11.
39196         * m4/lib-prefix.m4: New file, from gettext-0.11.
39197         * m4/progtest.m4: Upgrade to gettext-0.11.
39198
39199 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39200
39201         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
39202         (jm_PREREQ): Use it.
39203
39204 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39205
39206         * lib/posixver.c, lib/posixver.h: New files.
39207         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39208
39209 2002-02-02  Paul Eggert  <eggert@twinsun.com>
39210             Bruno Haible  <bruno@clisp.org>
39211
39212         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
39213         (fwrite_success_callback): New declaration.
39214         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
39215         print_unicode_char. Call failure callback instead of error.
39216         (fwrite_success_callback): New function.
39217         (exit_failure_callback): New function.
39218         (fallback_failure_callback): New function.
39219         (print_unicode_char): Call unicode_to_mb.
39220
39221 2002-01-26  Jim Meyering  <meyering@lucent.com>
39222
39223         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
39224         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
39225
39226 2002-01-26  Jim Meyering  <meyering@lucent.com>
39227
39228         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
39229
39230 2002-01-22  Paul Eggert  <eggert@twinsun.com>
39231
39232         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
39233
39234 2002-01-22  Jim Meyering  <meyering@lucent.com>
39235
39236         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
39237         Otherwise, some versions of automake would omit the rule that makes
39238         Makefile from Makefile.in.
39239
39240 2002-01-21  Paul Eggert  <eggert@twinsun.com>
39241
39242         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
39243         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39244         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
39245         (memcoll): Set errno to zero if there is no error.
39246
39247         * lib/quotearg.c (quotearg_buffer_restyled):
39248         Fix bug with quoting buffers containing NUL when backslashing escapes.
39249         This bug was exposed by the other changes in this patch.
39250         (quotearg_n_options): New arg ARGSIZE.
39251         All callers changed.
39252         (quoting_options_from_style): New function.
39253         (quotearg_n_style): Use it.
39254         (quotearg_n_style_mem): New function.
39255
39256         * lib/quotearg.h (quotearg_n_style_mem): New function.
39257
39258 2002-01-19  Jim Meyering  <meyering@lucent.com>
39259
39260         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
39261         Remove useless quotes: DF_PROG="df".
39262         * m4/strnlen.m4: New file.
39263
39264 2002-01-16  Paul Eggert  <eggert@twinsun.com>
39265
39266         * lib/backupfile.c (ISDIGIT): Comment fix.
39267         * lib/getdate.y (ISDIGIT): Likewise.
39268         * lib/posixtm.c (ISDIGIT, year): Likewise.
39269         * lib/strverscmp.c (ISDIGIT): Likewise.
39270         * lib/userspec.c (ISDIGIT): Likewise.
39271
39272 2002-01-16  Jim Meyering  <meyering@lucent.com>
39273
39274         * lib/getdate.y: Add three semicolons, each just before a closing
39275         brace. Bison (as of version 1.31) no longer papers over that mistake.
39276
39277 2002-01-05  Jim Meyering  <meyering@lucent.com>
39278
39279         * lib/version-etc.c (version_etc_copyright): Update copyright year.
39280
39281 2001-12-19  Paul Eggert  <eggert@twinsun.com>
39282
39283         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
39284         not silently exit merely because the output buffer happens to
39285         have nothing pending.
39286
39287 2001-12-18  Paul Eggert  <eggert@twinsun.com>
39288
39289         See the big note in ../ChangeLog.
39290         * lib/human.c (suffixes): Prefer K to k for 1024.
39291         (generate_suffix_backwards): New function.
39292         (human_readable_inexact): Use it.
39293         * lib/xstrtol.c (__xstrtol): If there is no number but there
39294         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
39295         Accept 'K' as well as 'k'.
39296
39297 2001-12-15  Jim Meyering  <meyering@lucent.com>
39298
39299         * lib/regex.h (__restrict_arr): Update from libc.
39300
39301         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
39302         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
39303         (STREQ): Define.
39304
39305 2001-12-14  Jim Meyering  <meyering@lucent.com>
39306
39307         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39308         Suggestion from Bruno Haible.
39309
39310 2001-12-10  Jim Meyering  <meyering@lucent.com>
39311
39312         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39313         xrealloc, Instead, include "xalloc.h".
39314         (initbuffer): Don't cast xmalloc return value to char*.
39315         (readline): Reword comment.
39316         Don't cast xrealloc return value to char*
39317         Return NULL, not 0.
39318
39319 2001-12-09  Jim Meyering  <meyering@lucent.com>
39320
39321         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39322         about `signed and unsigned type in conditional expression'.
39323         * lib/posixtm.c (posix_time_parse): Likewise.
39324
39325         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39326
39327         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39328         to avoid a pedantic warning.
39329
39330         * lib/getstr.c: Don't include assert.h.
39331         (getstr): Remove warning-evoking assertions.
39332         Return -1 if offset parameter is out of bounds.
39333         Change the type of a local from int to size_t.
39334
39335         * lib/strftime.c (my_strftime_localtime_r): Include this function
39336         definition in the `#if ! HAVE_TM_GMTOFF' block.
39337
39338         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39339         Include xalloc.h instead.
39340
39341 2001-12-02  Jim Meyering  <meyering@lucent.com>
39342
39343         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39344         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39345         included.
39346
39347         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39348         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39349
39350 2001-11-30  Akim Demaille  <akim@epita.fr>
39351
39352         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39353         before being defined.
39354
39355 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39356
39357         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39358         First arg is int, not unsigned.
39359         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39360         (SIZE_MAX, UINT_MAX): New macros.
39361         (quotearg_n_options): Abort if N is negative.
39362         Avoid overflow check on hosts where size_t is 64 bits and int
39363         is 32 bits, as overflow is impossible there.
39364         Fix off-by-one typo that caused unnecessary reallocation.
39365
39366 2001-11-27  Jim Meyering  <meyering@lucent.com>
39367
39368         * lib/tempname.c: Merge with version from libc.
39369         * lib/regex.c: Likewise.
39370
39371         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39372         systems for which STDC_HEADERS is 0, it was not included, resulting in
39373         a warning about an integer-to-pointer conversion problem with getenv.
39374         Reported by Volker Borchert.
39375
39376 2001-11-26  Jim Meyering  <meyering@lucent.com>
39377
39378         * lib/gtod.h: Remove file.
39379         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39380         * lib/gettimeofday.c: Don't include gtod.h.
39381         (GTOD_init): Remove function.
39382         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39383         Suggestion from Volker Borchert.
39384
39385 2001-11-23  Jim Meyering  <meyering@lucent.com>
39386
39387         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39388         it.
39389         * lib/hash.c (struct hash_table): Define it here instead.
39390
39391 2001-11-22  Jim Meyering  <meyering@lucent.com>
39392
39393         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39394
39395 2001-11-20  Jim Meyering  <meyering@lucent.com>
39396
39397         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39398         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39399
39400 2001-11-19  Jim Meyering  <meyering@lucent.com>
39401
39402         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39403         directory.  Use "conftestXXXXXX" as the template.
39404         Suggestion from Paul Eggert.
39405
39406         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39407         immediately, so the test doesn't mistakenly hit the max-open-files
39408         limit.
39409
39410 2001-11-18  Paul Eggert  <eggert@twinsun.com>
39411
39412         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
39413         (TEMPORARIES): New macro.
39414         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
39415         removes an artificial limitation (e.g. HP-UX 10.20, where
39416         TMP_MAX is 17576).
39417
39418 2001-11-18  Jim Meyering  <meyering@lucent.com>
39419
39420         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
39421
39422 2001-11-18  Jim Meyering  <meyering@lucent.com>
39423
39424         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
39425         on SunOS 4.
39426
39427         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39428         files will be created before anything else.
39429
39430 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39431
39432         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39433         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39434
39435 2001-11-17  Jim Meyering  <meyering@lucent.com>
39436
39437         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39438         Prompted by a report from Bob Proulx.
39439
39440         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39441         Instead, require UTILS_FUNC_MKSTEMP.
39442
39443 2001-11-17  Jim Meyering  <meyering@lucent.com>
39444
39445         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
39446         Now, that's done as part of AC_FUNC_STRTOD.
39447
39448 2001-11-17  Jim Meyering  <meyering@lucent.com>
39449
39450         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
39451         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
39452         rather than group writable.  Patch by Juan F. Codagnone.
39453
39454         * lib/readtokens.c: Remove explicit declarations of xmalloc and
39455         xrealloc, Instead, include "xalloc.h".
39456
39457         * lib/mountlist.c: Include unlocked-io.h after all system headers.
39458         Remove explicit declarations of xmalloc, xrealloc,
39459         and xstrdup.  Instead, include "xalloc.h".
39460
39461         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
39462         unlocked-io.h.
39463         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
39464         Likewise.
39465         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
39466
39467         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
39468         Reported by Padraig Brady.
39469
39470         * lib/mkstemp.c: #undef mkstemp.
39471         Include config.h.
39472         (rpl_mkstemp): Rename from mkstemp.
39473         Protoize.
39474
39475 2001-11-16  Jim Meyering  <meyering@lucent.com>
39476
39477         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
39478         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
39479         determine the amount of total physical memory, use pstat_getstatic.
39480         HPUX-11 doesn't define _SC_PHYS_PAGES.
39481         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
39482         If sysconf couldn't be used to determine the amount of available
39483         physical memory, use both pstat_getstatic and pstat_getdynamic.
39484         Based on a patch from Bob Proulx.
39485
39486 2001-11-10  Jim Meyering  <meyering@lucent.com>
39487
39488         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
39489         (jm_PREREQ): Use it.
39490
39491 2001-11-09  Jim Meyering  <meyering@lucent.com>
39492
39493         * m4/jm-macros.m4: Require autoconf-2.52f.
39494         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
39495         Use these AC_-prefixed names, not the AM_-prefixed ones.
39496
39497         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
39498
39499 2001-11-05  Jim Meyering  <meyering@lucent.com>
39500
39501         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
39502
39503 2001-11-04  Jim Meyering  <meyering@lucent.com>
39504
39505         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
39506         $DEFS.
39507
39508 2001-11-03  Jim Meyering  <meyering@lucent.com>
39509
39510         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
39511         of AC_DEFUN.
39512
39513         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
39514         know the name of the variable in the macro definition.
39515
39516 2001-11-03  Jim Meyering  <meyering@lucent.com>
39517
39518         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
39519         in argmatch_to_argument call.
39520
39521         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
39522         argument.
39523
39524         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
39525         e.g., a fault due to an attempt to free a NULL pointer.
39526
39527 2001-11-01  Jim Meyering  <meyering@lucent.com>
39528
39529         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
39530         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
39531
39532 2001-11-01  Jim Meyering  <meyering@lucent.com>
39533
39534         * lib/dirfd.c, lib/dirfd.h: New files.
39535         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
39536
39537         * lib/hash.c (hash_print) [TESTING]: Clean up.
39538
39539 2001-10-22  Paul Eggert  <eggert@twinsun.com>
39540
39541         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
39542         to avoid a warning if -Wall.
39543
39544 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
39545
39546         * README: New file
39547         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
39548         (per RMS's instructions, this is now the canonical source)
39549         * lgpl/, gpl/: New directories.
39550
39551 2001-10-21  Paul Eggert  <eggert@twinsun.com>
39552
39553         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
39554
39555 2001-10-21  Jim Meyering  <meyering@lucent.com>
39556
39557         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
39558         this code would end up calling gettext even in packages built
39559         with --disable-nls.
39560         * lib/getopt.c (_): Likewise.
39561         * lib/regex.c (_): Likewise.
39562
39563 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39564
39565         * m4/error.m4 (jm_PREREQ_ERROR):
39566         Do not invoke AC_CHECK_FUNCS with strerror_r, as
39567         AC_FUNC_STRERROR_R does that.
39568         Check for strerror declaration.
39569
39570         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
39571         are supposed to have them these days.
39572         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
39573         Merge changes from latest Autoconf CVS.
39574         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
39575         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
39576         POSIX decided to standardize on the int flavor of strerror_r.
39577
39578 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39579
39580         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
39581         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
39582         Use strerror_r that is only a macro, even if it is not a function.
39583         (strerror): Check for HAVE_DECL_STRERROR before declaring.
39584         (private_strerror): Use prototypes, not old-style function definition.
39585         (print_errno_message): New function.
39586         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
39587         char*-flavored one.
39588         (error_tail, error, error_at_line): Use it.
39589
39590 2001-10-11  Jim Meyering  <meyering@lucent.com>
39591
39592         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
39593         and quote_n (1, ... to avoid clobbering a buffer.
39594
39595 2001-10-05  Jim Meyering  <meyering@lucent.com>
39596
39597         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
39598         hash-pjw.h.
39599         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
39600         * lib/hash-pjw.h: New file.
39601
39602 2001-09-30  Jim Meyering  <meyering@lucent.com>
39603
39604         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
39605         `struct fsstat' has the `f_fstypename' member.
39606         Use that to define FS_TYPE, which is now used to make
39607         the getfsstat link test tighter.
39608
39609 2001-09-30  Jim Meyering  <meyering@lucent.com>
39610
39611         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
39612         Include <sys/ucred.h>, for Apple Darwin.
39613         Include sys/mount.h and sys/fs_types.h only if available.
39614         (FS_TYPE): Define.
39615         (read_filesystem_list): Use FS_TYPE.
39616
39617 2001-09-29  Paul Eggert  <eggert@twinsun.com>
39618
39619         * lib/exclude.c (excluded_filename): 0 -> false, since it's
39620         a boolean context.
39621
39622 2001-09-29  Jim Meyering  <meyering@lucent.com>
39623
39624         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39625         [one-argument getmntent function]): Include stdio.h before mntent.h.
39626         SunOS 4.1.x needs it for the declaration of `FILE'.
39627         Patch by Volker Borchert.
39628
39629         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39630         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
39631         sys/fs_types.h, and make the link-test for getfsstat guard #include
39632         directives with appropriate #if HAVE_*_H tests so that we can
39633         detect getfsstat on Apple Darwin1.3.7 systems.
39634         Reported by Nelson Beebe.
39635         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
39636
39637 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39638
39639         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39640         #defines strtoimax.  Also treat the other strto* functions
39641         like strtoimax.
39642
39643         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39644         Check for strtoul and strtoumax,
39645         as those declarations are made even in the signed case.
39646         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
39647         Likewise, for strtol and strtoimax.
39648
39649 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39650
39651         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39652         #defines strtoimax.  Also treat the other strto* functions
39653         like strtoimax.
39654
39655         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
39656         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
39657         (strtoimax, strtoumax): Do not declare if already defined as a macro.
39658
39659 2001-09-26  Jim Meyering  <meyering@lucent.com>
39660
39661         Most macros in unlocked-io.h had the wrong number of arguments.
39662         * lib/gen-uio: New script.
39663         (USE_UNLOCKED_IO): Define to 1 if not already defined.
39664         * lib/unlocked-io.hin: Remove file.
39665         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
39666         rather than trying to embed it here.
39667         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
39668         Reported by Padraig Brady.
39669
39670 2001-09-25  Volker Borchert  <bt@teknon.de>
39671
39672         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
39673         `result'.
39674
39675 2001-09-24  Jim Meyering  <meyering@lucent.com>
39676
39677         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
39678
39679 2001-09-23  Jim Meyering  <meyering@lucent.com>
39680
39681         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
39682         instead of the mere test for existence of mntent.h.  The latter
39683         would get a false-positive on AIX 3.4 systems.
39684         In the outer getmntent if-block, don't die if neither of the getmntent
39685         tests succeeds.  Instead, just fall through and continue with the
39686         remaining tests.
39687
39688 2001-09-23  Jim Meyering  <meyering@lucent.com>
39689
39690         * lib/mountlist.c: Remove useless parentheses in #if directives.
39691         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
39692         the deprecated MOUNTED symbol is no longer defined in mntent.h.
39693
39694 2001-09-22  Jim Meyering  <meyering@lucent.com>
39695
39696         * m4/gettext.m4: New file.  From gettext.
39697         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
39698         * m4/progtest.m4: Likewise
39699         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
39700         * m4/glibc21.m4: Likewise.
39701
39702         * m4/libintl.m4: Remove.  No longer used.
39703
39704 2001-09-22  Jim Meyering  <meyering@lucent.com>
39705
39706         * lib/localcharset.c: Update from latest gettext.
39707         * lib/config.charset: Likewise.
39708
39709 2001-09-20  Jim Meyering  <meyering@lucent.com>
39710
39711         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
39712         strtoimax.
39713         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
39714         strtoumax.
39715
39716 2001-09-20  Jim Meyering  <meyering@lucent.com>
39717
39718         * lib/xstrtol.c (strtoimax): Guard declaration with
39719         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39720         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39721         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39722         (strtoumax): Likewise, for completeness (it wasn't necessary).
39723
39724 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39725
39726         * lib/strtoimax.c (HAVE_LONG_LONG):
39727         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39728         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39729         to work around bug in IBM C compiler.
39730
39731 2001-09-17  Jim Meyering  <meyering@lucent.com>
39732
39733         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
39734         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
39735         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
39736         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
39737         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
39738         whenever the right hand side need not be expanded by the shell.
39739
39740 2001-09-16  Paul Eggert  <eggert@twinsun.com>
39741
39742         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
39743         library.  It's not correct, as some older glibcs are buggy.
39744         fnmatch wasn't fixed until glibc 2.2.
39745
39746         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
39747         special shell magic here.
39748
39749 2001-09-16  Jim Meyering  <meyering@lucent.com>
39750
39751         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
39752         * m4/jm-macros.m4: Require it.
39753
39754 2001-09-16  Jim Meyering  <meyering@lucent.com>
39755
39756         * lib/mkdir.c: New file.
39757
39758 2001-09-15  Jim Meyering  <meyering@lucent.com>
39759
39760         * m4/jm-macros.m4: Check for help2man.
39761
39762 2001-09-11  Jim Meyering  <meyering@lucent.com>
39763
39764         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
39765         The body, by Paul Eggert, was moved here from configure.in.
39766         * m4/jm-macros.m4: Require UTILS_HOST_OS.
39767
39768 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39769
39770         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
39771         (jm_PREREQ): Use it.
39772
39773 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39774
39775         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
39776         Use ssize_t, not int, to store result of readlink.
39777         Check for ssize_t overflow as well as size_t overflow,
39778         as POSIX says the result of readlink is implementation-defined
39779         when ssize_t overflows.
39780         Remove unnecessary cast to char*.
39781         Use free+malloc instead of realloc, as the storage doesn't need
39782         to be preserved and it's clearer and can be more efficient that way.
39783         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
39784         * lib/xreadlink.h (xreadlink): Update prototype.
39785
39786 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39787
39788         * lib/xgetcwd.c: Revert some of the previous change; intead,
39789         fix the HAVE_GETCWD_NULL code to behave more like the
39790         !HAVE_GETCWD_NULL code used to.
39791
39792         Include "xalloc.h".
39793         (xgetcwd): Do not return NULL when memory is exhausted; instead,
39794         invoke xalloc_die.
39795
39796 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39797
39798         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
39799         sys/param.h, as pathmax.h includes them.
39800
39801 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39802
39803         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
39804         (jm_PREREQ_XGETCWD): New macro.
39805
39806         * m4/getcwd.m4: New file.
39807
39808 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39809
39810         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
39811         like the HAVE_GETCWD_NULL code.
39812         Include pathmax.h if not HAVE_GETCWD.
39813         Do not include xalloc.h.
39814         (INITIAL_BUFFER_SIZE): New symbol.
39815         Do not use xmalloc / xrealloc, since the caller is responsible for
39816         handling errors.  Preserve errno around `free' during failure.
39817         Do not overrun buffer when using getwd.
39818
39819 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39820
39821         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
39822         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
39823         getcwd (NULL, 0).
39824
39825 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39826
39827         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
39828         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
39829         spotted by Jim Meyering.
39830
39831 2001-09-03  Jim Meyering  <meyering@lucent.com>
39832
39833         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
39834         failure.
39835
39836 2001-09-02  Jim Meyering  <meyering@lucent.com>
39837
39838         * lib/error.c: Update from GNU libc.
39839
39840 2001-09-01  Jim Meyering  <meyering@lucent.com>
39841
39842         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
39843         Used by df.
39844
39845 2001-09-01  Jim Meyering  <meyering@lucent.com>
39846
39847         * lib/xreadlink.c: New file.
39848         * lib/xreadlink.h: New file.
39849         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
39850         xreadlink.h.
39851
39852         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
39853         doesn't conflict with sparc Solaris 7's definition in
39854         /usr/include/sys/int_types.h.
39855
39856         * lib/exclude.c: Use `""', not `<>' to #include non-system header
39857         files.
39858         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
39859         and strncasecmp as r-values.  Unixware didn't have declarations.
39860
39861 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39862
39863         * lib/xstrtol.h: Add copyright notice.
39864         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
39865         LONGINT_INVALID_SUFFIX_CHAR.
39866
39867 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39868
39869         * lib/xstrtol.c (strtoimax): New decl.
39870
39871 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39872
39873         * lib/xgetcwd.c: Don't include pathmax.h.
39874         Include stdlib.h and unistd.h if available.
39875         Include xalloc.h.
39876         (xmalloc, xstrdup, free): Remove decls.
39877         (xgetcwd): Don't assume sizes fit in unsigned.
39878         Check for overflow when computing sizes.
39879         Simplify reallocation code.
39880
39881 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39882
39883         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
39884         a directory's st_size can have an arbitrary value, so the old
39885         usage could waste an arbitrary amount of memory.  All uses
39886         changed.
39887         * lib/savedir.h: Update prototype.
39888
39889 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39890
39891         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
39892
39893         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
39894         old strtoimax.c.
39895
39896         Also, make the following further changes to make this file's
39897         configuration more similar to that of strtol.c:
39898         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
39899         (strtoumax, uintmax_t, strtoull, strtol): Remove.
39900         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
39901         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
39902         changed to signed values.
39903
39904         And make the following changes as well:
39905         Fix copyright notice, as 1999 was missing.
39906         (verify): New macro.
39907         (strtoimax): Check sizes at compile-time, not run-time.
39908         Prefer strtol to strtoll if both work.
39909         (main): Remove; it was not that useful and was a pain to maintain.
39910
39911         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
39912
39913 2001-08-31  Jim Meyering  <meyering@lucent.com>
39914
39915         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
39916         Use an initial, malloc'd, buffer of length 128 rather than
39917         a statically allocated one of length 1024.
39918
39919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39920
39921         Simplify code, partly by assuming autoconf 2.52 semantics.
39922
39923         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
39924
39925         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
39926         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
39927         All uses removed.
39928         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
39929         Move AC_REQUIRE to next-to-top level, to avoid confusion.
39930         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
39931         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
39932         jm_AC_HEADER_INTTYPES_H.
39933         * m4/jm-macros.m4 (jm_MACROS): Likewise.
39934
39935         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
39936
39937         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39938         Quote first arg of AC_DEFUN.
39939         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
39940         since they are needed to parse the include file even if we need
39941         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
39942         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
39943         but with opposite signedness.
39944
39945 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39946
39947         Merge 'exclude' changes from tar 1.13.22.
39948         This fixes one or two unlikely storage allocation overflow bugs,
39949         but doesn't change user-visible behavior otherwise.
39950
39951 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39952
39953         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
39954         (jm_PREREQ_EXCLUDE): New macro.
39955
39956 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39957
39958         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
39959         tm to be declared.
39960
39961 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39962
39963         * lib/hash.c: Remove '2001' from copyright notice.
39964
39965 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39966
39967         * lib/full-write.h: New file.
39968         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
39969         * lib/full-write.c: Correct credits, as cccp.c no longer
39970         exists and anyway it was so heavily changed from the old cccp
39971         code as to be unrecognizable.  Include full-write.h.
39972         (full_write) Return size_t, with short writes meaning failure.
39973         All callers changed.  This fixes a bug with large buffers
39974         on 64-bit hosts.
39975         * lib/utime.c: Include full-write.h.
39976
39977 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39978
39979         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
39980         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
39981         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
39982         Include if available.
39983         (<xalloc.h>): Include
39984         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
39985         (verify): New macro.  Use it to verify that EXCLUDE macros do not
39986         collide with FNM macros.
39987         (struct patopts): New struct.
39988         (struct exclude): Use it, as exclude patterns now come with options.
39989         (new_exclude): Support above changes.
39990         (new_exclude, add_exclude_file):
39991         Initial size must now be a power of two to simplify overflow checking.
39992         (free_exclude, fnmatch_no_wildcards): New function.
39993         (excluded_filename): No longer requires options arg, as the options
39994         are determined by add_exclude.  Now returns bool, not int.
39995         (excluded_filename, add_exclude):
39996         Add support for the fancy new exclusion options.
39997         (add_exclude, add_exclude_file): Now takes int options arg.
39998         Check for arithmetic overflow when computing sizes.
39999         (add_exclude_file): xrealloc might modify errno, so don't
40000         realloc until after errno might be used.
40001
40002         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
40003         New macros.
40004         (free_exclude): New decl.
40005         (add_exclude, add_exclude_file): Now takes int options arg.
40006         (excluded_filename): No longer requires options arg, as the options
40007         are determined by add_exclude.  Now returns bool, not int.
40008
40009 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40010
40011         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
40012
40013 2001-08-27  Jim Meyering  <meyering@lucent.com>
40014
40015         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
40016
40017         * lib/version-etc.c (N_): Remove definition.
40018         Revert most of last change.
40019         Instead, simply don't mark the `Copyright...' string for translation.
40020         Based on advice from Paul Eggert.
40021
40022         * lib/strtoxmax.c: Tweak comment.
40023
40024 2001-08-26  Jim Meyering  <meyering@lucent.com>
40025
40026         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
40027
40028         * m4/xstrtoimax.m4: New file.
40029         * m4/xstrtoumax.m4: Add comments explaining why we
40030         AC_REPLACE_FUNCS(strtol).
40031
40032 2001-08-26  Jim Meyering  <meyering@lucent.com>
40033
40034         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
40035         of copyright with `%s' so translators don't get an untranslated
40036         message in 2002.
40037         (COPYRIGHT_YEAR): Define.
40038         (version_etc): Use fprintf rather than fputs.
40039         Suggestion from Ulrich Drepper.
40040
40041         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
40042
40043         * lib/strtoll.c: New file, from GNU libc.
40044         * lib/xstrtoimax.c: New file.
40045
40046         * lib/xstrtol.h: Add xstrtoimax.
40047         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
40048         * lib/strtoimax.c: New file.  Likewise, but first define
40049         STRTOUXMAX_SIGNED.
40050
40051         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
40052         ...
40053         * lib/strtoxmax.c: ... then renamed to this.
40054
40055 2001-08-18  Paul Eggert  <eggert@twinsun.com>
40056
40057         * m4/inttypes.m4: Add AC_PREREQ(2.13).
40058         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
40059         (jm_AC_TYPE_INTMAX_T): New macro.
40060         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
40061
40062         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
40063
40064         * m4/longlong.m4: Renamed from ulonglong.m4.
40065         * m4/inttypes.m4: Renamed from inttypes_h.m4.
40066         * m4/uintmax_t.m4: Removed.
40067
40068 2001-08-13  Paul Eggert  <eggert@twinsun.com>
40069
40070         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
40071         Port to Solaris 8, where 'sed' requires a space after the 'r'
40072         command, and where sh dislikes "$/".  Clean up the spacing a bit.
40073         Redirect output to $tmp just once.
40074
40075 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
40076
40077         * lib/addext.c (<errno.h>): Include.
40078         (errno): Declare if not defined.
40079         (addext): Work correctly when pathconf returns -1 and leaves
40080         errno alone because there is no limit.  Also, work even if
40081         pathconf returns a value greater than SIZE_MAX.
40082
40083 2001-08-12  Jim Meyering  <meyering@lucent.com>
40084
40085         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
40086         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
40087         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
40088         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
40089         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
40090         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
40091         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
40092         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
40093         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
40094         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
40095         utime.m4, utimes.m4, xstrtoumax.m4:
40096         Quote the first argument in each use of AC_DEFUN.
40097
40098 2001-08-12  Jim Meyering  <meyering@lucent.com>
40099
40100         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
40101         Simply `return getcwd (NULL, 0);'.
40102         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
40103         Use 1300 as initial value for length, not PATH_MAX.
40104
40105         * lib/pathmax.h: Clean up cpp syntax.
40106
40107 2001-08-12  Jim Meyering  <meyering@lucent.com>
40108
40109         * lib/gettimeofday.c: New file.
40110         * lib/gtod.h: New file.
40111         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
40112
40113 2001-08-05  Jim Meyering  <meyering@lucent.com>
40114
40115         * m4/jm-macros.m4: Require autoconf-2.52.
40116
40117 2001-08-04  Jim Meyering  <meyering@lucent.com>
40118
40119         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
40120         stmt, to get in sync with glibc.
40121
40122 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40123
40124         The following changes are from gettext 0.10.39 as maintained by
40125         Bruno Haible.
40126
40127         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
40128         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
40129         with inverted sense.  All uses changed.
40130
40131         * lib/mbswidth.c: Don't include <limits.h>.
40132         Include <stdlib.h> and <string.h> unconditionally.
40133         (iswcntrl, mbsinit, ISCNTRL): New macros.
40134         (mbsnwidth): Use K&R style function declarations.
40135         Don't bother checking for MB_LEN_MAX == 1, since the compiler
40136         can optimize it when MB_CUR_MAX == 1.
40137         The width of control characters is zero, not 1.
40138
40139 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40140
40141         The following changes are from gettext 0.10.39 as maintained by
40142         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
40143
40144         * m4/codeset.m4: Upgrade to serial AM1.
40145         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
40146         all uses changed.  Quote first arg of AC_DEFUN.
40147         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
40148
40149         * m4/iconv.m4: Upgrade to serial AM2.
40150         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
40151         Add --with-libconv-prefix.
40152         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
40153         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
40154         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
40155         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
40156         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
40157
40158         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
40159         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
40160         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
40161         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
40162         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
40163         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
40164         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40165         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
40166         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
40167
40168         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
40169         string.h any more.
40170
40171         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
40172         not the default value.
40173
40174         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
40175         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
40176         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
40177         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
40178         Also check for iswcntrl, used for wcwidth fallback.
40179         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
40180         to Autoconf 2.13.
40181
40182 2001-08-03  Jim Meyering  <meyering@lucent.com>
40183
40184         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
40185         as it was in the original.  Reported by Paul Eggert.
40186
40187 2001-07-16  Jim Meyering  <meyering@lucent.com>
40188
40189         * m4/gettimeofday.m4: New file.
40190         Prompted by a report from Bernhard Baehr.
40191
40192 2001-07-15  Jim Meyering  <meyering@lucent.com>
40193
40194         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
40195         stuff. Now it's in ../Makefile.cfg.
40196
40197 2001-07-15  Jim Meyering  <meyering@lucent.com>
40198
40199         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
40200         (BUILT_SOURCES): Add unlocked-io.h.
40201         (io_functions): Define.
40202         (unlocked-io.h): New rule.
40203         (DISTCLEANFILES): Add unlocked-io.h.
40204         (all-local): Depend on unlocked-io.h, to ensure it is created.
40205
40206         * lib/unlocked-io.hin: New file
40207
40208         * lib/regex.c: Update from glibc.
40209
40210 2001-07-05  Jim Meyering  <meyering@lucent.com>
40211
40212         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
40213         recommendation.
40214         (libfetish_a_SOURCES): Put all .h files here instead.
40215         Remove a thus-exposed (better checks in automake) duplicate and
40216         two unnecessary .h files.
40217
40218 2001-07-04  Jim Meyering  <meyering@lucent.com>
40219
40220         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
40221         that generates jm-glibc-io.m4 so that it doesn't trigger any make
40222         distcheck failure.
40223
40224 2001-07-02  Jim Meyering  <meyering@lucent.com>
40225
40226         The following changes were prompted by suggestions from Bruno Haible.
40227
40228         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
40229         is now generated.
40230         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
40231         definition of EXTRA_DIST.
40232         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
40233         ensure that the generated file is created/updated whenever the list
40234         of $(unlocked_functions) is changed.
40235         (jm-glibc-io.m4): New rule.
40236         (unlocked-io.h): New rule -- currently unused.
40237
40238 2001-06-24  Jim Meyering  <meyering@lucent.com>
40239
40240         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
40241         unmatched right bracket, rather than kludging it with an extra,
40242         falsely-matching quote in a comment.  Patch by Akim Demaille.
40243
40244 2001-06-11  Jim Meyering  <meyering@lucent.com>
40245
40246         * lib/regex.c: Update from GNU libc.
40247
40248 2001-05-27  Jim Meyering  <meyering@lucent.com>
40249
40250         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
40251         Check for ut_type in struct utmp.
40252
40253 2001-05-27  Jim Meyering  <meyering@lucent.com>
40254
40255         * lib/readutmp.h (UT_TYPE): Define.
40256
40257 2001-05-24  Jim Meyering  <meyering@lucent.com>
40258
40259         * lib/argmatch.c: Include "quote.h".
40260         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
40261         quote function.  Reported by Göran Uddeborg.
40262
40263 2001-05-22  Jim Meyering  <meyering@lucent.com>
40264
40265         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
40266         now that we use the package-supplied version unconditionally.
40267         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
40268
40269 2001-05-21  Jim Meyering  <meyering@lucent.com>
40270
40271         * m4/regex.m4: Change a couple backticks to single quotes to avoid
40272         shell syntax errors.
40273
40274 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40275
40276         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
40277
40278 2001-05-20  Paul Eggert  <eggert@twinsun.com>
40279
40280         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
40281         Don't bother to check library strftime, since
40282         we'll be using our own my_strftime function anyway.
40283         Define my_strftime instead of strftime.
40284
40285 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
40286
40287         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
40288         which is not yet declared.
40289
40290 2001-05-15  Jim Meyering  <meyering@lucent.com>
40291
40292         * m4/regex.m4: Use proper quoting so brackets appear in the test
40293         program.
40294         Reported by, and with help from, Bruno Haible.
40295
40296 2001-05-13  Jim Meyering  <meyering@lucent.com>
40297
40298         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
40299         undefined.
40300
40301 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40302
40303         dirname code cleanup.  base_name now behaves more compatibly
40304         with POSIX basename when given file names that have trailing
40305         slashes, and similarly for dir_name.  Add new primitives
40306         base_len and dir_len.  Put the directory-name-related decls
40307         into dirname.h.
40308
40309         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40310         * lib/backupfile.c (base_name): Likewise.
40311         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40312         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40313         * lib/makepath.c (strip_trailing_slashes): Likewise.
40314         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40315         ISSLASH): Likewise.
40316         * lib/rename.c (strip_trailing_slashes): Likewise.
40317         * lib/same.c (base_name): Likewise.
40318         * lib/stripslash.c (ISSLASH): Likewise.
40319
40320         * lib/addext.c: Include <dirname.h> after size_t is defined.
40321         * lib/backupfile.c: Likewise.
40322
40323         * lib/addext.c (addext): Use base_len to trim redundant
40324         trailing slashes instead of doing it ourselves.
40325         But do not trim the last slash if it is not redundant.
40326
40327         * lib/backupfile.c (find_backup_file_name,
40328         max_backup_version): Use base_len instead of rolling it ourselves.
40329         Handle the case of "" and (on DOS) "C:" correctly.
40330
40331         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40332         needed. Include <string.h>, <dirname.h>.
40333         (base_name): Allow file names ending in slashes, other than names
40334         that are all slashes.  In this case, return the basename followed
40335         by the slashes.  This is more general, and can be used in places
40336         where the original base_name purposely had an assertion failure.
40337         (base_len): New function.
40338
40339         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40340         Do not include <assert.h>; no longer needed.
40341         Include xalloc.h.
40342         (memrchr): Remove decl.
40343         (dir_name_r): Remove.
40344         (dir_len): Renamed from dirlen.  All callers changed.
40345         Rewrite in terms of base_name, for simplicity and consistency.
40346         (dir_name): Never return NULL.  All callers changed.
40347         Do not include <stdlib.h> in test program; no longer needed.
40348         return 0; is fine for test program.
40349
40350         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40351         New macros.
40352         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40353
40354         * lib/path-concat.c (path_concat): Use base_len to compute
40355         base length, not strlen; this means we cannot rely on memcpy
40356         to null-terminate.
40357
40358         * lib/same.c (STREQ): Remove.
40359         (same_name): Handle the case where the basename ends in trailing '/'.
40360
40361         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40362         a slash was stripped.  Do not strip the last slash after a
40363         file system prefix.
40364
40365 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40366
40367         * lib/Makefile.am (libfetish_a_SOURCES):
40368         Add strftime.c, since we now compile it on all hosts.
40369
40370         * lib/strftime.c (my_strftime):
40371         Define to nstrftime if emacs, but only if my_strftime is not defined.
40372         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40373         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40374         Add one more extra argument: a nanoseconds value.
40375         All uses changed.
40376         (ns): New macro.
40377         (my_strftime function): Add %N format.
40378         (emacs_strftimeu): Renamed from emacs_strftime,
40379         with extra ut argument.
40380
40381 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40382
40383         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40384
40385 2001-04-21  Jim Meyering  <meyering@lucent.com>
40386
40387         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40388         doesn't interfere.
40389
40390 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40391
40392         * m4/ftruncate.m4: Check for chsize.
40393         Link with ftruncate.o unconditionally if ftruncate is missing.
40394         This was required when cross-compiling to i586-mingw32msvc.
40395
40396 2001-04-08  Jim Meyering  <meyering@lucent.com>
40397
40398         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40399         recomputed; that's necessary when the offset spans a DST transition.
40400         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40401
40402 2001-04-02  Jim Meyering  <meyering@lucent.com>
40403
40404         * lib/regex.h, regex.c: Update from GNU libc.
40405
40406 2001-03-24  Jim Meyering  <meyering@lucent.com>
40407
40408         * m4/jm-macros.m4: Require autoconf-2.49d.
40409
40410 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
40411
40412         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
40413
40414 2001-03-19  Paul Eggert  <eggert@twinsun.com>
40415
40416         * lib/version-etc.c (version_etc_copyright): Update to 2001.
40417
40418 2001-03-17  Jim Meyering  <meyering@lucent.com>
40419
40420         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
40421         now that the version in autoconf is equivalent.
40422         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
40423
40424         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
40425         Suggestion from Akim Demaille.
40426
40427         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40428         (jm_PREREQ_TEMPNAME): New function.
40429
40430 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40431
40432         * lib/tempname.c (uint64_t): Define to uintmax_t if
40433         not defined, and if UINT64_MAX is not defined.
40434         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40435         Reported by John David Anglin.
40436
40437 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40438
40439         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40440         resolve alias if codeset is empty.
40441         * lib/config.charset (BeOS): Use wildcard syntax.
40442
40443 2001-03-13  Jim Meyering  <meyering@lucent.com>
40444
40445         * lib/path-concat.c (path_concat)
40446         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
40447         concatenating e.g., `C:' and `foo'.
40448         From Bruno Haible.
40449
40450 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40451
40452         * lib/localcharset.c (locale_charset): Don't use
40453         setlocale(LC_CTYPE,NULL). Don't return NULL.
40454         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
40455
40456 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40457
40458         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
40459         support for DOS/DJGPP.
40460
40461 2001-03-01  Paul Eggert  <eggert@twinsun.com>
40462
40463         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
40464         lacks mkstemp.  Compile our own tempname.c if we compile our own
40465         mkstemp.c, as mkstemp relies on tempname.
40466
40467 2001-03-01  Jim Meyering  <meyering@lucent.com>
40468
40469         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
40470         AH_VERBATIM really does output its argument verbatim.
40471
40472 2001-02-28  Paul Eggert  <eggert@twinsun.com>
40473
40474         * lib/Makefile.am (libfetish_a_SOURCES):
40475         Add dup-safer.c, fopen-safer.c.
40476         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
40477
40478         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
40479         * lib/unistd-safer.h: New files.
40480
40481 2001-02-25  Paul Eggert  <eggert@twinsun.com>
40482
40483         The mkstemp replacement is taken from glibc 2.2.2, with some
40484         portability fixes for use outside glibc, as follows:
40485
40486         * lib/tempname.c (struct_stat64): New macro.
40487         (direxists, __gen_tempname): Use it.
40488         This avoids a portability problem with Solaris 8.
40489
40490         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
40491         (<stddef.h>, <stdint.h>, <string.h>):
40492         Include only if STDC_HEADERS || _LIBC.
40493         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
40494         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
40495         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
40496         (__set_errno): Define this macro if <errno.h> doesn't.
40497         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
40498         Define these macros if <stdio.h> doesn't.
40499         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
40500         Define these macros if <sys/stat.h>
40501         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
40502         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
40503         __xstat64): Define if not _LIBC.
40504         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
40505         (__gen_tempname): Invoke gettimeofday only if
40506         HAVE_GETTIMEOFDAY || _LIBC;
40507         otherwise, fall back on plain "time".
40508         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
40509
40510         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
40511
40512         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
40513
40514 2001-02-18  Paul Eggert  <eggert@twinsun.com>
40515
40516         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
40517
40518 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40519
40520         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
40521         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
40522         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
40523         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40524
40525 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40526
40527         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
40528         Remove workaround macros for hosts that have mbrtowc but not
40529         mbstate_t, as we now insist on proper declarations for both
40530         before using mbrtowc.
40531
40532 2001-02-17  Jim Meyering  <meyering@lucent.com>
40533
40534         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
40535         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
40536         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
40537         UnixWare 7.1.1.
40538
40539         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
40540         rather than AC_CACHE_VAL.
40541
40542 2001-02-17  Jim Meyering  <meyering@lucent.com>
40543
40544         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
40545         around included file name.
40546
40547         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
40548
40549         * lib/strftime.c: Update from GNU libc (the only changes were to
40550         comments).
40551
40552 2001-02-17  Jim Meyering  <meyering@lucent.com>
40553
40554         * lib/regex.c: Update from libc.
40555
40556 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
40557
40558         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
40559         clash.
40560
40561 2001-02-16  Paul Eggert  <eggert@twinsun.com>
40562
40563         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
40564         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
40565         Reported by Mark Hounschell via Paul Eggert.
40566
40567 2001-02-07  Jim Meyering  <meyering@lucent.com>
40568
40569         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
40570
40571 2001-02-05  Jim Meyering  <meyering@lucent.com>
40572
40573         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
40574         it includes the patch required for `large file' support with at least
40575         HP-UX's 10.20 /bin/cc.
40576
40577 2001-02-03  Jim Meyering  <meyering@lucent.com>
40578
40579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
40580         AS_IF, now that it works once again (mysteriously).
40581         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40582
40583 2001-01-30  Jim Meyering  <meyering@lucent.com>
40584
40585         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
40586         * m4/chown.m4: Rename conftestchown to conftest.chown.
40587         * m4/rename.m4: s/conftestdir/conftest.d1/ and
40588         s/conftestdir2/conftest.d2/.
40589         * m4/utimes.m4: s/conftestdata/conftest.data/
40590         Inspired by Pavel Roskin's change in autoconf.
40591
40592 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
40593
40594         * lib/config.charset: Update for FreeBSD 4.2.
40595
40596 2001-01-27  Jim Meyering  <meyering@lucent.com>
40597
40598         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
40599         a use of AS_IF.
40600         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40601
40602 2001-01-26  Jim Meyering  <meyering@lucent.com>
40603
40604         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
40605         quotearg.c includes it.
40606
40607 2001-01-26  Jim Meyering  <meyering@lucent.com>
40608
40609         * lib/quotearg.c: Include stddef.h.
40610         * lib/quote.c: Include stddef.h.
40611         Reported by Axel Kittenberger.
40612
40613         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
40614         line in double quotes so that it evokes a better diagnostic.
40615         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
40616         Reported by Axel Kittenberger.
40617
40618 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
40619
40620         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
40621         as if it was a `charset'.
40622
40623 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40624
40625         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
40626         has const.
40627
40628 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40629
40630         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
40631         to avoid a warning.  Add back 'const' to inptr.
40632
40633 2001-01-20  Jim Meyering  <meyering@lucent.com>
40634
40635         Be sure that headers are checked before used in code compiled
40636         for the type checks.
40637         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
40638         In place of that, invoke jm_CHECK_ALL_TYPES.
40639         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
40640         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
40641         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
40642         The check for ssize_t was mistakenly run before the test for unistd.h.
40643
40644         The configure-time check for stdbool.h was missing.
40645         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
40646         (jm_PREREQ_HASH): New function.
40647
40648 2001-01-17  Jim Meyering  <meyering@lucent.com>
40649
40650         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
40651         for autoconf-2.49c.
40652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
40653
40654 2001-01-16  Jim Meyering  <meyering@lucent.com>
40655
40656         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
40657         From Bruno Haible.
40658
40659 2001-01-14  Jim Meyering  <meyering@lucent.com>
40660
40661         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
40662         foo and bar.  Create conftestdir/ in the script, not in the C code.
40663         Remove directories in the script, not in the C code.
40664         Remove conftestdir{,2} before trying to create the directory.
40665         Make the entire configure script fail if the mkdir fails.
40666
40667 2001-01-14  Jim Meyering  <meyering@lucent.com>
40668
40669         * lib/rename.c: New file.  From Volker Borchert.
40670         Include stdlib.h, string.h or strings.h, and xalloc.h.
40671         Use strip_trailing_slashes rather than open-coding it.
40672
40673 2001-01-03  Paul Eggert  <eggert@twinsun.com>
40674
40675         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
40676
40677 2001-01-03  Jim Meyering  <meyering@lucent.com>
40678
40679         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
40680         of local `inptr' to avoid warning with some system declarations of
40681         iconv.
40682
40683 2001-01-02  Volker Borchert  <bt@teknon.de>
40684
40685         * m4/rename.m4: New file.
40686         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
40687
40688 2001-01-01  Jim Meyering  <meyering@lucent.com>
40689
40690         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
40691         even on systems with utmpx.h.  It's necessary for the declaration of
40692         utmp's ut_user member.  Reported by Andreas Jaeger.
40693
40694         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
40695         available. They are required for the declarations of getgrgid and
40696         getpwuid resp.
40697         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
40698         Reported by Andreas Jaeger.
40699
40700 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
40701
40702         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
40703         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
40704         so `make install' also works in VPATH builds.
40705
40706 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
40707
40708         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
40709         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
40710         can be used in subdirectories.
40711
40712 2000-12-29  Paul Eggert  <eggert@twinsun.com>
40713
40714         * lib/modechange.c: Do not assume that mode_t uses the
40715         traditional octal encoding.  E.g. "chmod 1 FOO" should set
40716         the other-execute bit of FOO even if S_IXOTH != 1.
40717
40718         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40719         WOTH, XOTH, ALLM): New macros.
40720         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40721          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40722         Use them.
40723         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40724         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40725         (mode_compile):
40726         No need to use uintmax_t; unsigned long is long enough.
40727         Don't bother to get suffix since we don't use it.
40728
40729 2000-12-26  Jim Meyering  <meyering@lucent.com>
40730
40731         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40732         better with autoheader.
40733
40734 2000-12-24  Jim Meyering  <meyering@lucent.com>
40735
40736         * lib/hash.c (is_prime): Return explicit boolean values.
40737         (hash_get_first): Return NULL to appease Irix5.6's 89.
40738         Reported by Nelson Beebe.
40739
40740 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
40741
40742         * lib/localcharset.c (locale_charset): Add support for Win32.
40743
40744 2000-12-18  Paul Eggert  <eggert@twinsun.com>
40745
40746         * lib/physmem.h, lib/physmem.c: New files.
40747
40748         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
40749         (noinst_HEADERS): Add physmem.h.
40750
40751         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
40752         't' for compatibility with Solaris 8 sort.
40753
40754 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
40755
40756         * lib/config.charset: Add support for BeOS.
40757
40758 2000-12-17  Jim Meyering  <meyering@lucent.com>
40759
40760         * m4/dos.m4 (jm_AC_DOS): New file and macro.
40761         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
40762
40763 2000-12-16  Jim Meyering  <meyering@lucent.com>
40764
40765         This bug had a serious impact on chown: `chown N:M FILE' (for integer
40766         N and M) would have treated it like `chown N:N FILE'.
40767
40768         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
40769
40770 2000-12-16  Jim Meyering  <meyering@lucent.com>
40771
40772         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
40773         SHELLS_FILE to a file name that's useful on djgpp systems.
40774         Include stdlib.h.
40775         (ADDITIONAL_DEFAULT_SHELLS): Define.
40776         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
40777         Based mostly on a patch from Prashant TR.
40778
40779 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
40780
40781         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
40782         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
40783         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
40784
40785 2000-12-08  Andreas Schwab  <schwab@suse.de>
40786
40787         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
40788         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
40789
40790 2000-12-07  Jim Meyering  <meyering@lucent.com>
40791
40792         * lib/stripslash.c (ISSLASH): Define.
40793         (strip_trailing_slashes): Use ISSLASH rather than comparing against
40794         `/'.
40795         From Prashant TR.
40796
40797         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
40798         (dir_name_r): Declare this function as static.
40799         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
40800         manifest itself on a name containing a mix of slashes and
40801         backslashes.
40802         Make this function work with names starting with a DOS-style
40803         drive letter and colon prefix.
40804         (dir_name): Append `.' if necessary.
40805         Based mostly on patches from Prashant TR and Eli Zaretskii.
40806
40807         * lib/dirname.h (dir_name_r): Remove prototype.
40808
40809 2000-12-06  Paul Eggert  <eggert@twinsun.com>
40810
40811         * m4/off_t-format.m4: Remove this file.
40812         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
40813
40814 2000-12-06  Jim Meyering  <meyering@lucent.com>
40815
40816         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
40817         replacement strtoull, we may well need the replacement strtoul, too.
40818         Check for declarations of strtoul and strtoull.
40819         Check for strtol.  Mainly as a cue to cause automake to include
40820         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
40821         Check for limits.h -- strtol.c needs it.
40822
40823 2000-12-05  Jim Meyering  <meyering@lucent.com>
40824
40825         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
40826
40827 2000-12-04  Jim Meyering  <meyering@lucent.com>
40828
40829         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
40830         Also include memory.h, stdlib.h, unistd.h if appropriate.
40831         Reported by Andreas Jaeger (conflicting declaration of malloc).
40832
40833 2000-12-02  Jim Meyering  <meyering@lucent.com>
40834
40835         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
40836         * m4/jm-macros.m4 (jm_MACROS): require it.
40837
40838 2000-12-02  Jim Meyering  <meyering@lucent.com>
40839
40840         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
40841
40842 2000-12-01  Paul Eggert  <eggert@twinsun.com>
40843
40844         * lib/memrchr.c: Include <config.h> before any system include file.
40845
40846 2000-11-30  Jim Meyering  <meyering@lucent.com>
40847
40848         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
40849
40850 2000-11-30  Jim Meyering  <meyering@lucent.com>
40851
40852         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
40853
40854 2000-11-29  Paul Eggert  <eggert@twinsun.com>
40855
40856         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
40857
40858 2000-11-26  Jim Meyering  <meyering@lucent.com>
40859
40860         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
40861
40862 2000-11-22  Paul Eggert  <eggert@twinsun.com>
40863
40864         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
40865         size of (size_t) -1; it's not portable.
40866
40867 2000-11-17  Jim Meyering  <meyering@lucent.com>
40868
40869         * lib/strstr.c: Update from GNU libc.
40870
40871 2000-11-17  Akim Demaille  <akim@epita.fr>
40872
40873         * lib/obstack.h: Formatting changes.
40874         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
40875         prevent type checking.
40876         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
40877         cast the value to (void *): assigning a `foo *' to a `void *'
40878         variable is valid.
40879         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
40880
40881 2000-11-16  Jim Meyering  <meyering@lucent.com>
40882
40883         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
40884
40885 2000-11-11  Jim Meyering  <meyering@lucent.com>
40886
40887         * lib/error.c: Add a couple #includes, merging from GNU libc version.
40888
40889 2000-11-10  Jim Meyering  <meyering@lucent.com>
40890
40891         * lib/obstack.h: Update from GNU libc.
40892         * lib/obstack.c: Likewise.
40893
40894 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
40895
40896         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
40897
40898 2000-11-06  Paul Eggert  <eggert@twinsun.com>
40899
40900         * lib/getusershell.c (setusershell): Use rewind rather than
40901         fseek/fseeko, to avoid configuration hassles with fseeko.
40902         Don't bother opening SHELLS_FILE if shellstream is NULL;
40903         it's not necessary.
40904
40905 2000-11-05  Jim Meyering  <meyering@lucent.com>
40906
40907         * lib/makepath.h (make_dir): Declare.
40908         * lib/makepath.c (make_dir): Remove `static' attribute.
40909         Tweak a comment.
40910
40911 2000-11-04  Jim Meyering  <meyering@lucent.com>
40912
40913         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
40914
40915 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
40916
40917         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
40918         last one in a bucket, advance to the next bucket.
40919
40920 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
40921
40922         * lib/fnmatch.c: Do not comment out all the code if we are using
40923         the GNU C library, because in some cases we are replacing buggy
40924         code in the GNU C library itself.
40925
40926 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
40927
40928         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
40929         (regex_compile): Catch bogus \(\1\).
40930
40931 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40932
40933         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
40934         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
40935         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
40936
40937 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40938
40939         * lib/error.h, getline.h, modechange.h:
40940         Remove "2000" from Copyright line, as the file hasn't been
40941         changed this year other than in the copyright notice.
40942
40943         * lib/xalloc.h: Add "2000" to Copyright line, as this file
40944         was changed this year.
40945
40946 2000-10-29  Jim Meyering  <meyering@lucent.com>
40947
40948         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
40949         renaming.
40950         * m4/ls-mntd-fs.m4: Likewise
40951
40952 2000-10-29  Jim Meyering  <meyering@lucent.com>
40953
40954         * lib/xstat.in: Fix grammar in comment.
40955
40956 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
40957
40958         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
40959         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
40960         doesn't define __restrict_arr.
40961
40962 2000-10-28  Jim Meyering  <meyering@lucent.com>
40963
40964         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
40965         (jm_PREREQ_MEMCHR): New function.
40966
40967 2000-10-28  Jim Meyering  <meyering@lucent.com>
40968
40969         * lib/memchr.c: Update from libc.
40970         Adjust for portability:
40971         [HAVE_STDLIB_H]: Include stdlib.h.
40972         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
40973         Undef __memchr, too.
40974         [!weak_alias]: Define __memchr to memchr.
40975
40976         * lib/regex.c: Update from libc.
40977         * lib/regex.h: Likewise.
40978         * lib/getopt1.c: Likewise.
40979         * lib/memcmp.c: Likewise.
40980
40981         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
40982         Avoid using fseek, when possible -- it's broken by design.
40983         Patch by Ulrich Drepper.
40984
40985 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
40986
40987         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
40988         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
40989         Giving in to popular pressure to shut up the compiler with casts.
40990
40991 2000-10-26  Jim Meyering  <meyering@lucent.com>
40992
40993         * lib/strftime.c: Update from libc.
40994
40995 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
40996
40997         * regex.c: More `unsigned char' -> `re_char' changes.
40998         Also change several `int' into `re_wchar_t'.
40999         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
41000         (PUSH_FAILURE_POINTER): Don't cast any more.
41001         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
41002         We want GCC to complain, since this piece of code makes
41003         re_match non-reentrant, which *should* be fixed.
41004         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
41005         (EXTEND_BUFFER): Use RETALLOC.
41006         (SET_LIST_BIT): Don't cast.
41007         (re_wchar_t): New type.
41008         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
41009         that those two functions will always properly return.
41010         (IMMEDIATE_QUIT_CHECK): Cast to void.
41011         (analyse_first): Use recursion rather than an explicit stack.
41012         (re_compile_fastmap): Can't fail anymore.
41013         (re_search_2): Don't check re_compile_fastmap for failure.
41014         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
41015         Now also sets the new value (passed in a new argument).
41016         (re_match_2_internal): Use it.
41017         Also, use a new var `reg' of type size_t when looping through regs
41018         rather than reuse the inappropriate `mcnt'.
41019
41020 2000-10-25  Jim Meyering  <meyering@lucent.com>
41021
41022         * lib/obstack.c: Update from libc.
41023
41024 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
41025
41026         * regex.c (regex_compile): Change the way of handling a range from
41027         a char less than 256 to a char not less than 256.
41028
41029 2000-10-24  Andrew Innes  <andrewi@gnu.org>
41030
41031         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
41032         NT-Emacs only.
41033         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
41034         so that re_search functions only quit when callers expect them to.
41035
41036 2000-10-23  Jim Meyering  <meyering@lucent.com>
41037
41038         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
41039         wrong.  That set_locale call must not have any side effects.
41040         From Paul Eggert.
41041
41042 2000-10-22  Jim Meyering  <meyering@lucent.com>
41043
41044         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
41045         [CYCLIC]: Remove now-unused definition.
41046
41047         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
41048         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
41049         Suggestion from Ulrich Drepper.
41050
41051 2000-10-21  Jim Meyering  <meyering@lucent.com>
41052
41053         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
41054         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
41055         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
41056
41057 2000-10-21  Jim Meyering  <meyering@lucent.com>
41058
41059         * lib/dirname.c (memrchr): Declare if necessary.
41060         (dir_name): Remove the restriction that there be no
41061         trailing slashes.  Now, this code skips past them, effectively
41062         ignoring them.
41063         [TEST_DIRNAME] (main): New unit tests.
41064
41065         * lib/memrchr.c: New file from GNU libc.
41066         Undef __memrchr, too.
41067         [!weak_alias]: Define __memrchr to memrchr.
41068         Guard weak_alias use with `#ifdef weak_alias'.
41069
41070 2000-10-21  Jim Meyering  <meyering@lucent.com>
41071
41072         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
41073         (dir_name): Use dir_name_r.
41074         * lib/dirname.h (dir_name_r): Declare it.
41075
41076 2000-10-17  Jim Meyering  <meyering@lucent.com>
41077
41078         * lib/quote.h (PARAMS): Define and use.
41079         Reported by Akim Demaille.
41080
41081         * lib/getopt.c: Update from libc.
41082
41083 2000-10-16  Jim Meyering  <meyering@lucent.com>
41084
41085         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
41086         setlocale.
41087         From Jan Fedak.
41088
41089 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
41090
41091         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
41092
41093 2000-09-25  Jim Meyering  <meyering@lucent.com>
41094
41095         * lib/md5.h (rol): Define (from GnuPG).
41096
41097         * lib/sha.c: Give credit (GnuPG) where due.
41098         (M): Use rol rather than open-coding it.
41099         Add a FIXME comment.
41100
41101 2000-09-21  Jim Meyering  <meyering@lucent.com>
41102
41103         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
41104         Reported by Michael Stone.
41105
41106 2000-09-20  Jim Meyering  <meyering@lucent.com>
41107
41108         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
41109         (noinst_HEADERS): Add sha.h.
41110         Based on code from Scott G. Miller and from GnuPG.
41111
41112 2000-09-18  Jim Meyering  <meyering@lucent.com>
41113
41114         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
41115         LIBS. Otherwise, everyone ends up linking with -lelf for some
41116         configurations.
41117         Reported by Mike Stone.
41118
41119 2000-09-15  Jim Meyering  <meyering@lucent.com>
41120
41121         * lib/regex.c: Update from libc.
41122
41123 2000-09-10  Jim Meyering  <meyering@lucent.com>
41124
41125         * lib/getopt.c (_getopt_internal): Update from glibc.
41126
41127 2000-09-09  Jim Meyering  <meyering@lucent.com>
41128
41129         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
41130         think it should be used as a general replacement for isascii.
41131         * lib/fnmatch.c: Likewise.
41132         * lib/mbswidth.c: Likewise
41133         * lib/regex.c: Likewise.
41134
41135         Don't use atoi.
41136         * lib/userspec.c: Include sys/param.h and limits.h.
41137         Include xstrtol.h.
41138         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41139         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
41140         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
41141         UID, GID.  Check range.
41142
41143 2000-09-06  Jim Meyering  <meyering@lucent.com>
41144
41145         * lib/getopt.c (_getopt_internal): Update from glibc.
41146
41147 2000-08-30  Jim Meyering  <meyering@lucent.com>
41148
41149         * lib/strftime.c: Merge in changes from GNU libc.
41150
41151 2000-08-26  Jim Meyering  <meyering@lucent.com>
41152
41153         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
41154         * m4/fpending.m4: New file.
41155
41156 2000-08-26  Jim Meyering  <meyering@lucent.com>
41157
41158         * lib/closeout.c: Include "__fpending.h".
41159         (close_stdout_status): Return right away if there's nothing to flush.
41160
41161         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
41162         * lib/__fpending.c: New file.
41163         * lib/__fpending.h: New file.
41164
41165 2000-08-20  Jim Meyering  <meyering@lucent.com>
41166
41167         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
41168         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
41169         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
41170
41171 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
41172
41173         Improve fileutils installation on systems where running
41174         programs (like install) can't be unlinked.
41175         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
41176         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
41177
41178 2000-08-07  Paul Eggert  <eggert@twinsun.com>
41179
41180         Standardize on "memory exhausted" instead of "Memory exhausted"
41181         or "virtual memory exhausted".
41182         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
41183         "virtual memory exhausted".
41184         * lib/same.c (same_name): Invoke xalloc_die instead of printing
41185         our own message.
41186         * lib/userspec.c (parse_user_spec): Likewise.
41187         * lib/bumpalloc.h: comment fix
41188         * lib/same.c, userspec.c: Include xalloc.h.
41189
41190         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
41191         not char *const and pointing to a constant array.
41192         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
41193         (xrealloc): Comment fix.
41194
41195         * lib/userspec.c (parse_user_spec):
41196         Don't translate a message until just before returning,
41197         to avoid unnecessary translation.
41198
41199 2000-08-07  Jim Meyering  <meyering@lucent.com>
41200
41201         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
41202         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
41203         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
41204         getgroups.c, gethostname.c, getopt.h, group-member.c,
41205         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
41206         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
41207         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
41208         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
41209         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
41210         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
41211         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
41212         yesno.c: Back out Copyright date changes for each file with no change
41213         this year.  This eases coordination with other programs using the same
41214         source code modules.  From Paul Eggert.
41215
41216 2000-08-06  Paul Eggert  <eggert@twinsun.com>
41217
41218         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
41219         not char, for compatibility with glibc 2.1.3 strftime.c.
41220
41221 2000-08-03  Greg McGary  <greg@mcgary.org>
41222
41223         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
41224         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
41225         (EXTEND_BUFFER): Use them.
41226
41227 2000-08-01  Jim Meyering  <meyering@lucent.com>
41228
41229         * lib/dirname.c (ISSLASH): Define.
41230         (BACKSLASH_IS_PATH_SEPARATOR): Define.
41231         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
41232         both `\' and `/' may be use as path separators.
41233         Based on a patch from Prashant TR.
41234
41235 2000-07-31  Paul Eggert  <eggert@twinsun.com>
41236
41237         * lib/quotearg.c (quotearg_n_options): Don't make the initial
41238         slot vector a constant, since it might get modified.
41239
41240 2000-07-31  Jim Meyering  <meyering@lucent.com>
41241
41242         * lib/xmalloc.c: Use `virtual memory exhausted', not
41243         `Memory exhausted'.
41244         * lib/obstack.c (print_and_abort): Likewise.
41245
41246 2000-07-30  Paul Eggert  <eggert@twinsun.com>
41247
41248         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
41249         buffer, so that the caller can always quote one small
41250         component of a "memory exhausted" message in slot 0.
41251         From a suggestion by Jim Meyering.
41252
41253 2000-07-30  Jim Meyering  <meyering@lucent.com>
41254
41255         * lib/makepath.c (make_path): Quote the other instance, too.
41256
41257         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
41258         (STATIC_BUF_SIZE): Define.
41259         (quotearg_n_options): Use only statically allocated storage when
41260         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
41261         than STATIC_BUF_SIZE.
41262
41263 2000-07-29  Jim Meyering  <meyering@lucent.com>
41264
41265         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
41266         * lib/dirname.c (dir_name): Likewise.
41267
41268         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
41269         `/'.
41270
41271         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
41272         (dir_name): Assert that there are no trailing slashes.
41273
41274 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
41275
41276         * lib/mbswidth.h (mbswidth): Add a flags argument.
41277         (mbswidth): New declaration.
41278         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
41279         * lib/mbswidth.c (mbswidth): Add a flags argument.
41280         (mbsnwidth): New function.
41281
41282 2000-07-24  Jim Meyering  <meyering@lucent.com>
41283
41284         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
41285
41286 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41287
41288         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
41289
41290 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41291
41292         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
41293         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
41294         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
41295         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
41296         invoke multibyte primitives.
41297
41298 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41299
41300         * lib/quotearg.c:
41301         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
41302         so that mbstate_t is always defined.
41303
41304         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
41305         be 1 in at least one GCC installation, and this configuration
41306         error is likely to be common.  Ignoring MB_LEN_MAX hurts
41307         performance on hosts that have mbrtowc but have only unibyte
41308         locales, but I assume these hosts are rare.
41309
41310 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41311
41312         * lib/mbswidth.c (_XOPEN_SOURCE):
41313         Don't define; this causes problems on Solaris 7.
41314         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41315
41316 2000-07-23  Jim Meyering  <meyering@lucent.com>
41317
41318         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41319         too: getgrgid, getpwuid, getuid.
41320
41321 2000-07-23  Jim Meyering  <meyering@lucent.com>
41322
41323         * lib/basename.c (base_name): Add an assertion.
41324
41325 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41326
41327         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41328         shadow its mbsinit function.
41329
41330 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41331
41332         * lib/mbswidth.h: New file.
41333         * lib/mbswidth.c: New file.
41334         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41335         (noinst_HEADERS): Add mbswidth.h.
41336
41337 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41338
41339         * lib/config.charset: Add support for FreeBSD. Improve support for
41340         HP-UX and IRIX 6.
41341
41342 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41343
41344         * m4/mbswidth.m4: New file.
41345         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41346
41347 2000-07-15  Jim Meyering  <meyering@lucent.com>
41348
41349         * lib/makepath.c: Include quote.h.
41350         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41351         corresponding argument in a `quote (...)' call.
41352         Give better diagnostics.
41353
41354         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41355         (noinst_HEADERS): Add quote.h.
41356
41357         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41358         from tar's src/misc.c.
41359         * lib/quote.h: New file.  Prototypes for same.
41360
41361 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41362
41363         From a suggestion by Bruno Haible.
41364         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41365         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41366         to decide whether to define the BeOS workaround macro;
41367         this adjusts to the change to AC_MBSTATE_T.
41368
41369 2000-07-14  Jim Meyering  <meyering@lucent.com>
41370
41371         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41372         jm_AC_TYPE_UINTMAX_T.
41373
41374 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41375
41376         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41377
41378         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41379         quotearg_buffer_restyled): Add support for
41380         clocale_quoting_style.  Undo previous change to
41381         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41382         and "{RIGHT QUOTATION MARK}" msgids.
41383
41384 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41385
41386         From a suggestion by Bruno Haible.
41387         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41388         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41389         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41390         and mbstate_t, to a single-part test that simply defines mbstate_t.
41391         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41392         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41393
41394 2000-07-10  Jim Meyering  <meyering@lucent.com>
41395
41396         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41397
41398         * m4/gnu-source.m4: Output to confdefs.h directly.
41399         Suggestion from Akim Demaille.
41400
41401 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41402
41403         The old behavior of quoting `like this' doesn't look good with
41404         newer, ISO-style fonts.  See:
41405         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41406
41407         Instead, quote "like this" by default.  Let the translator
41408         tailor the locale-specific quoting behavior by providing
41409         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
41410
41411         * lib/quotearg.c (N_): New macro.
41412         (gettext_default): New function.
41413         (quotearg_buffer_restyled): Use
41414         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
41415         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
41416
41417 2000-07-09  Jim Meyering  <meyering@lucent.com>
41418
41419         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
41420         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
41421
41422         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
41423         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
41424
41425 2000-07-09  Jim Meyering  <meyering@lucent.com>
41426
41427         * lib/Most files: Update copyright dates to include 2000.
41428
41429 2000-07-08  Jim Meyering  <meyering@lucent.com>
41430
41431         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41432         if not defined.
41433         (xgethostname): Remove now-unnecessary #ifdef.
41434         Move declaration of `err' into loop where it's used.
41435
41436 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41437         and Bruno Haible  <haible@clisp.cons.org>
41438
41439         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41440         only if the test for an object-type mbstate_t fails.  This
41441         prevents us from mistakenly reporting that mbstate_t is a
41442         system object type after we "#define mbstate_t int" to work
41443         around its lack.
41444
41445 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41446         and Bruno Haible  <haible@clisp.cons.org>
41447
41448         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
41449
41450 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41451
41452         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
41453         to strerror_r.
41454         Include <ctype.h> for use of isalpha.
41455
41456 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41457
41458         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
41459         by allocating a larger buffer. Test the gethostname return value for
41460         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
41461         returns an error and ENAMETOOLONG isn't defined.
41462
41463 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41464
41465         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
41466         dimension.
41467
41468 2000-07-04  Jim Meyering  <meyering@lucent.com>
41469
41470         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
41471         of the deprecated AC_CHECKING.
41472
41473 2000-07-04  Jim Meyering  <meyering@lucent.com>
41474
41475         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
41476         Reported by Bruno Haible.
41477
41478 2000-07-04  Jim Meyering  <meyering@lucent.com>
41479
41480         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
41481         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
41482         lacks mbrtowc.
41483
41484 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41485
41486         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
41487         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
41488
41489 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41490         and Bruno Haible  <haible@clisp.cons.org>
41491
41492         * lib/quotearg.c (mbrtowc):
41493         Assign to *pwc, and return 1 only if result is nonzero.
41494         (iswprint): Use ISPRINT when substituting our own mbrtowc.
41495
41496 2000-07-03  Jim Meyering  <meyering@lucent.com>
41497
41498         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
41499
41500 2000-07-03  Jim Meyering  <meyering@lucent.com>
41501
41502         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
41503         This is necessary to get a definition of e.g., UTMP_FILE on
41504         HP-UX 10.20.
41505         From Bob Proulx.
41506
41507 2000-07-02  Jim Meyering  <meyering@lucent.com>
41508
41509         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
41510
41511         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
41512         AC_LIBOBJ(function_name).
41513         * m4/chown.m4: Likewise.
41514         * m4/fnmatch.m4: Likewise.
41515         * m4/ftruncate.m4: Likewise.
41516         * m4/getgroups.m4: Likewise.
41517         * m4/getline.m4: Likewise.
41518         * m4/group-member.m4: Likewise.
41519         * m4/jm-macros.m4: Likewise.
41520         * m4/lstat.m4: Likewise.
41521         * m4/malloc.m4: Likewise.
41522         * m4/memcmp.m4: Likewise.
41523         * m4/nanosleep.m4: Likewise.
41524         * m4/putenv.m4: Likewise.
41525         * m4/realloc.m4: Likewise.
41526         * m4/regex.m4: Likewise.
41527         * m4/stat.m4: Likewise.
41528         * m4/strftime.m4: Likewise.
41529
41530 2000-07-02  Jim Meyering  <meyering@lucent.com>
41531
41532         * lib/quotearg.c (mbstate_t): Don't define here.
41533
41534 2000-07-02  Jim Meyering  <meyering@lucent.com>
41535
41536         * lib/nanosleep.c (SIGCONT): Define if not already defined.
41537
41538 2000-07-01  Jim Meyering  <meyering@lucent.com>
41539
41540         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
41541
41542 2000-07-01  Jim Meyering  <meyering@lucent.com>
41543
41544         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
41545         problem.
41546
41547 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41548
41549         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
41550         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
41551
41552 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41553
41554         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
41555         per change in ../m4/ls-mntd-fs.m4.
41556         (read_filesystem_list): Ignore symbolic links.
41557
41558 2000-06-29  Jim Meyering  <meyering@lucent.com>
41559
41560         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
41561         for declaration of strcmp.
41562
41563         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
41564
41565         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
41566         Avoid warning by casting result to `char *' to remove `const'.
41567
41568 2000-06-28  Jim Meyering  <meyering@lucent.com>
41569
41570         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
41571         included by quotearg.c, for which we perform this test.  From
41572         Bruno Haible.
41573
41574 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41575
41576         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
41577         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
41578         <utmpx.h> exists, put readutmp.o into LIBOBJS.
41579
41580 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41581
41582         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
41583
41584 2000-06-26  Paul Eggert  <eggert@twinsun.com>
41585
41586         savedir now sets errno on failure and invokes xmalloc to get memory.
41587         Fix a couple of other minor bugs while we're at it.
41588
41589         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
41590         (NAMLEN): Remove macro.
41591         (malloc, realloc): Remove decls.
41592         (stpcpy): Likewise.
41593         ("xalloc.h"): Include.
41594         (NAME_SIZE_DEFAULT): New macro.
41595         (savedir): Use xmalloc / xrealloc to allocate memory.
41596         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
41597         Skip "" directory entries.
41598         Use strlen to calculate directory entry length, since the old method
41599         is rarely used these days and isn't worth supporting.
41600         Don't use a pointer after freeing it.
41601         Check for integer overflow when calculating allocation size.
41602         Use memcpy to copy entries, instead of stpcpy.
41603         Set errno properly when returning NULL.
41604         Check for readdir error.
41605
41606 2000-06-26  Jim Meyering  <meyering@lucent.com>
41607
41608         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
41609
41610 2000-06-25  Jim Meyering  <meyering@lucent.com>
41611
41612         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
41613         Linux header bug when _XOPEN_SOURCE is defined to 500.
41614
41615 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41616
41617         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
41618         deficiency.
41619
41620 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41621
41622         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
41623         Include xalloc.h.
41624         Don't include <stdlib.h>.  Don't declare malloc, realloc.
41625
41626 2000-06-24  Jim Meyering  <meyering@lucent.com>
41627
41628         * m4/strerror_r.m4: Revive this file -- to try out an experimental
41629         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
41630         for which strerror does return char*, but which lacks a conveniently
41631         accessible declaration of the function.  If the compile-test says
41632         strerror_r doesn't work, then resort to a `run'-test that works on
41633         BeOS and segfaults on DEC Unix.
41634
41635 2000-06-24  Jim Meyering  <meyering@lucent.com>
41636
41637         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
41638
41639 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41640
41641         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
41642         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
41643
41644 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41645
41646         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
41647         (mbrtowc, mbstate_t): Define substitutes if
41648         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
41649         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
41650         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
41651
41652 2000-06-23  Jim Meyering  <meyering@lucent.com>
41653
41654         * m4/afs.m4: Add missing AC_MSG_RESULT.
41655         Reported by Bruno Haible.
41656
41657         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
41658         Suggestion from Bruno Haible.
41659
41660 2000-06-23  Jim Meyering  <meyering@lucent.com>
41661
41662         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
41663
41664 2000-06-21  Jim Meyering  <meyering@lucent.com>
41665
41666         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
41667
41668 2000-06-21  Jim Meyering  <meyering@lucent.com>
41669
41670         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
41671         (noinst_HEADERS): Add getstr.h.
41672
41673         * lib/getline.c (getstr): Move into a separate file.
41674         * lib/getstr.c (getstr): New file, extracted from getline.c, with
41675         the following changes: new parameter, delim2; both delim[12]
41676         parameters have type `int', not `char'.  The latter would lose
41677         with 8-bit delimiters.
41678         * lib/getstr.h: New file.
41679
41680 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41681
41682         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
41683         than 1024, return a memory chunk of least possible size, instead
41684         of size PATH_MAX + 2. In the loop, increment the size proportionally.
41685         Use free/xmalloc instead of xrealloc to avoid copying for very long
41686         paths.
41687
41688 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41689
41690         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
41691         the empty string.
41692
41693 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41694
41695         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
41696         address, not strdup.  Include <stdlib.h> and don't declare free().
41697
41698 2000-06-19  Jim Meyering  <meyering@lucent.com>
41699
41700         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
41701
41702 2000-06-18  Jim Meyering  <meyering@lucent.com>
41703
41704         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
41705
41706         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
41707         `checking whether...' message to be consistent with that of the
41708         lstat test.
41709
41710 2000-06-18  Jim Meyering  <meyering@lucent.com>
41711
41712         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
41713         Besides, these days every porting target provides a mkdir function.
41714
41715         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
41716         needed. (this snippet comes from src/system.h).
41717
41718 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41719
41720         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41721
41722 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41723
41724         * lib/human.c (adjust_value): New function.
41725         (human_readable_inexact): Apply rounding style even when
41726         printing approximate values.
41727
41728 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41729
41730         * lib/human.c (human_readable_inexact): Allow an input block
41731         size that is not a multiple of the output block size, and vice versa.
41732         Reported by Piergiorgio Sartor.
41733
41734 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41735
41736         * lib/getdate.y (get_date): Apply relative times after time
41737         zone indicator, not before.  Reported by Todd A. Jacobs.
41738
41739 2000-06-13  Jim Meyering  <meyering@lucent.com>
41740
41741         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
41742
41743         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
41744
41745 2000-06-12  Paul Eggert  <eggert@twinsun.com>
41746
41747         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
41748
41749 2000-06-12  Jim Meyering  <meyering@lucent.com>
41750
41751         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
41752         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
41753         optional argument.
41754         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
41755         the optional argument, `lib'.
41756
41757 2000-06-08  Jim Meyering  <meyering@lucent.com>
41758
41759         * m4/largefile.m4: Remove file (now that it's part of autoconf).
41760
41761 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41762
41763         Rewrite largefile configuration so that we don't need to run
41764         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
41765         AC_CANONICAL_HOST in configure.in -- jmm]
41766
41767         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
41768         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
41769         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
41770         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
41771         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
41772         All uses changed.
41773         Instead of inspecting the output of getconf, try to compile the
41774         test program without and with the macro definition.
41775         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
41776         for getconf.  Instead, check for the needed flags by compiling
41777         test programs.
41778
41779 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41780
41781         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
41782
41783 2000-06-04  Jim Meyering  <meyering@lucent.com>
41784
41785         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
41786         SunOS 4.1.4 for which gid_t is an unsigned type.
41787
41788 2000-06-03  Jim Meyering  <meyering@lucent.com>
41789
41790         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
41791         now that autoconf requires that.
41792
41793         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
41794         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
41795         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
41796
41797 2000-06-03  Jim Meyering  <meyering@lucent.com>
41798
41799         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
41800
41801 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41802
41803         * m4/glibc21.m4: New file.
41804         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
41805
41806 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41807
41808         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
41809         newer, don't install charset.alias.
41810         * lib/config.charset: Change the Linux/glibc rules so they become empty
41811         on glibc-2.1 or newer.
41812
41813 2000-06-02  Jim Meyering  <meyering@lucent.com>
41814
41815         * lib/mountlist.c: Back out last change.  Instead, do this...
41816         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
41817         me_dummy member using the same `ignore'-testing code.
41818         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
41819         fs_type strings.
41820         From Mark D. Roth.
41821
41822 2000-05-29  Jim Meyering  <meyering@lucent.com>
41823
41824         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
41825         mounts with the `ignore' attribute.  Based on a patch from
41826         Mark D. Roth.
41827
41828 2000-05-28  Jim Meyering  <meyering@lucent.com>
41829
41830         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
41831         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41832         * m4/stat.m4: Likewise.
41833         * m4/lstat.m4: Likewise.
41834         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
41835
41836         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
41837         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
41838
41839 2000-05-26  Jim Meyering  <meyering@lucent.com>
41840
41841         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
41842
41843 2000-05-24  Jim Meyering  <meyering@lucent.com>
41844
41845         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
41846         autoconf requires that.
41847         * m4/lib-check.m4: Likewise.
41848         * m4/jm-macros.m4: Likewise.
41849         * m4/strftime.m4: Likewise.
41850
41851         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
41852         AC_CHECK_DECLS, now that autoconf requires that.
41853
41854 2000-05-22  Jim Meyering  <meyering@lucent.com>
41855
41856         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41857         * m4/lstat.m4: Likewise.
41858
41859 2000-05-22  Jim Meyering  <meyering@lucent.com>
41860
41861         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
41862
41863 2000-05-20  Jim Meyering  <meyering@lucent.com>
41864
41865         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
41866         (jm_PREREQ): Use it.
41867
41868 2000-05-18  Jim Meyering  <meyering@lucent.com>
41869
41870         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
41871         back, too, since it may have been modified by allocate_entry.
41872         (hash_delete): Rewrite to use neither the assignment operator
41873         nor the comma operator in an if-expression.
41874
41875 2000-05-15  Paul Eggert  <eggert@twinsun.com>
41876
41877         * lib/closeout.c:
41878         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
41879         Remove; no longer needed.
41880         "quotearg.h": Add include.
41881         (file_name): Do not bother to explicitly initialize to NULL; it's less
41882         efficient on some hosts.
41883         (close_stdout_status): Remove test as to whether stdout was already
41884         closed; it breaks for the case "echo x | sort >&-".
41885         Quote file name colons.
41886         Do not assume that _("write error") lacks format strings.
41887
41888 2000-05-15  Jim Meyering  <meyering@lucent.com>
41889
41890         * lib/version-etc.c (version_etc_copyright): Update the copyright
41891         string used in all --version output.
41892
41893 2000-05-14  Jim Meyering  <meyering@lucent.com>
41894
41895         * lib/closeout.c (close_stdout_set_file_name): New function.
41896         (close_stdout_status): Use new file-scoped global.
41897         Return right away if fstat says the stdout file descriptor is invalid.
41898         * lib/closeout.h (close_stdout_set_file_name): Declare.
41899
41900 2000-05-10  Jim Meyering  <meyering@lucent.com>
41901
41902         * lib/closeout.c [default_exit_status]: New file-scoped variable.
41903         (close_stdout_set_status): New function.
41904         * lib/closeout.h (close_stdout_set_status): Declare.
41905
41906 2000-05-09  Jim Meyering  <meyering@lucent.com>
41907
41908         * m4/gettext.m4: Rename this...
41909         * m4/libintl.m4: ...to this.
41910
41911 2000-05-08  Jim Meyering  <meyering@lucent.com>
41912
41913         * lib/long-options.c: Don't include closeout.h.
41914         (parse_long_options): Don't call close_stdout for --version.
41915
41916 2000-05-06  Paul Eggert  <eggert@twinsun.com>
41917
41918         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
41919         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
41920         2.1.3 bug.  This avoids a clash when files like regex.c define
41921         _GNU_SOURCE.
41922
41923 2000-05-06  Jim Meyering  <meyering@lucent.com>
41924
41925         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
41926         (AC_REPLACE_FUNCS): Add strnlen.
41927
41928         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
41929         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
41930
41931         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
41932         AC_SEARCH_LIBS call for nanosleep.
41933         (LIB_NANOSLEEP): Set and AC_SUBST.
41934
41935 2000-05-06  Jim Meyering  <meyering@lucent.com>
41936
41937         * lib/strnlen.c: Undefine __strnlen and strnlen.
41938         [!weak_alias]: Define __strnlen to strnlen.
41939
41940         * lib/atexit.c: New file, from libiberty.
41941
41942 2000-05-06  Jim Meyering  <meyering@lucent.com>
41943
41944         * lib/closeout.c (close_stdout_status): Also check for errors on the
41945         stderr stream.
41946
41947 2000-05-05  Jim Meyering  <meyering@lucent.com>
41948
41949         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
41950         AC_SEARCH_LIBS call for clock_gettime.
41951         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
41952
41953         * m4/search-libs.m4: Update from autoconf.
41954
41955         su doesn't work on Solaris 2.6.
41956         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
41957         <shadow.h>.  Reported by Dragos Harabor.
41958
41959 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
41960
41961         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
41962         memcpy instead of xmalloc, xrealloc, path_concat.
41963         (locale_charset): Treat empty environment variables as absent.
41964         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
41965
41966 2000-05-04  Jim Meyering  <meyering@lucent.com>
41967
41968         * lib/getopt.c: Update from glibc.
41969         * lib/obstack.c: Likewise.
41970         * lib/obstack.h: Likewise.
41971         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
41972         file
41973
41974         * lib/regex.h: Likewise.
41975         * lib/strndup.c: Likewise.
41976         * lib/strnlen.c: New file, from glibc.
41977
41978 2000-05-03  Jim Meyering  <meyering@lucent.com>
41979
41980         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
41981
41982 2000-05-02  Paul Eggert  <eggert@twinsun.com>
41983
41984         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
41985         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
41986         compile-time test, rather than inspecting host and OS, to
41987         decide whether to define _LARGEFILE_SOURCE.
41988
41989 2000-05-01  Jim Meyering  <meyering@lucent.com>
41990
41991         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
41992
41993         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
41994         Based on a patch from Bruno Haible.
41995
41996 2000-05-01  Jim Meyering  <meyering@lucent.com>
41997
41998         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
41999
42000 2000-04-29  Jim Meyering  <meyering@lucent.com>
42001
42002         * lib/path-concat.c: Declare strdup only if it's not defined.
42003         * lib/canon-host.c: Likewise.
42004
42005 2000-04-28  Jim Meyering  <meyering@lucent.com>
42006
42007         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
42008         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
42009         is included first, then limits.h is included by locale.h by libintl.h.
42010         From John David Anglin.
42011
42012 2000-04-25  Jim Meyering  <meyering@lucent.com>
42013
42014         * lib/makepath.c (S_IRWXUGO): Define.
42015         (make_path): Always perform explicit chmod if MODE specifies any
42016         of the `special' permission bits.  Prompted by a bug report against
42017         install from Mate Wierdl and Joost van Baal.
42018
42019 2000-04-18  Jim Meyering  <meyering@lucent.com>
42020
42021         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
42022         (jm_PREREQ): Use it.
42023
42024 2000-04-18  Jim Meyering  <meyering@lucent.com>
42025
42026         * lib/README: New file.
42027
42028         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
42029         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
42030
42031 2000-04-17  Jim Meyering  <meyering@lucent.com>
42032
42033         Get it right :-)
42034         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
42035         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
42036         Suggestion from Akim Demaille.
42037
42038 2000-04-17  Jim Meyering  <meyering@lucent.com>
42039
42040         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
42041         the definition of it to rpl_strftime also defined-away the system's
42042         declaration.
42043
42044 2000-04-15  Jim Meyering  <meyering@lucent.com>
42045
42046         Use `C' to denote so-called `contiguous' files, the same way
42047         that tar does.
42048         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
42049         (ftypelet): Use S_ISCTG.
42050         From Michael Deutschmann.
42051
42052 2000-04-14  Jim Meyering  <meyering@lucent.com>
42053
42054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
42055         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
42056         clobbered.
42057
42058 2000-04-14  Jim Meyering  <meyering@lucent.com>
42059
42060         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
42061
42062 2000-04-13  Jim Meyering  <meyering@lucent.com>
42063
42064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
42065         AH_VERBATIM to insert required #ifndef into config.h.in.
42066         Suggestion from Akim Demaille.
42067
42068 2000-04-12  Jim Meyering  <meyering@lucent.com>
42069
42070         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
42071         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
42072         Christian Krackowizer.
42073
42074         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
42075         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
42076         (AC_SYS_LARGEFILE): Require.
42077         (AM_C_PROTOTYPES): Require.
42078
42079 2000-04-08  Jim Meyering  <meyering@lucent.com>
42080
42081         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
42082         names don't conflict.  Reported by Eli Zaretskii.
42083
42084 2000-04-07  Jim Meyering  <meyering@lucent.com>
42085
42086         * lib/putenv.c: Move inclusion of errno.h so it follows that of
42087         sys/types.h, to work around system header problems on AIX 3.2.5.
42088         From Bruno Haible.
42089
42090 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
42091
42092         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
42093         bug.  Deal with the different error behavior of Irix iconv.
42094
42095 2000-04-05  Paul Eggert  <eggert@twinsun.com>
42096
42097         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
42098         IRIX if the installer said otherwise.
42099
42100 2000-04-05  Jim Meyering  <meyering@lucent.com>
42101
42102         Portability tweaks required for ultrix4.3.
42103         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
42104         (jm_CHECK_DECLS): Add getutent to the list of functions.
42105         (_jm_DECL_HEADERS): Add utmpx.h.
42106         From John David Anglin.
42107
42108         * m4/strftime.m4: Back out the 2000-04-02 change.
42109         Instead of that change, simply undefine putenv in the test program.
42110
42111 2000-04-05  Jim Meyering  <meyering@lucent.com>
42112
42113         Portability tweaks required for ultrix4.3.
42114         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
42115         getutent.
42116         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
42117         * lib/canon-host.c: Declare strdup.
42118         * lib/path-concat.c: Likewise.
42119         From John David Anglin.
42120
42121 2000-04-04  Jim Meyering  <meyering@lucent.com>
42122
42123         Be more DOS 8.3-friendly.
42124         * lib/ref-add.sin: Renamed from ref-add.sed.in.
42125         * lib/ref-del.sin: Renamed from ref-del.sed.in.
42126         * lib/Makefile.am: Reflect renaming.
42127         Reported by Eli Zaretskii.
42128
42129         Use a temporary file name that won't clash with `charset.alias'
42130         in the DOS 8.3 name space.
42131         * lib/Makefile.am (charset_tmp): Define.
42132         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
42133         (uninstall-local): Likewise.
42134         Reported by Eli Zaretskii.
42135
42136 2000-04-03  Jim Meyering  <meyering@lucent.com>
42137
42138         * m4/gettext.m4: Fix typo in comment.
42139
42140         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
42141         textutils/configure.in).  Suggestion from Paul Eggert.
42142         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
42143
42144 2000-04-02  Paul Eggert  <eggert@twinsun.com>
42145
42146         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
42147         variable in the shell rather than using putenv, which isn't
42148         portable.  This avoids the configure-time inter-test dependency
42149         on the potentially-renamed putenv function.
42150
42151 2000-03-30  Paul Eggert  <eggert@twinsun.com>
42152
42153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
42154         before checking struct stat.st_blksize, so that
42155         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
42156
42157 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42158
42159         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
42160         since strftime.c uses HAVE_STRFTIME to decide whether to use
42161         the underlying strftime.
42162
42163 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42164
42165         * lib/time/strftime.c (my_strftime): Make sure we call the system
42166         strftime, not ourselves, when invoking the underlying strftime.
42167
42168 2000-03-24  Jim Meyering  <meyering@lucent.com>
42169
42170         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
42171         (charset_alias): Define.
42172         (install-exec-local): Factor out common code.
42173         (uninstall-local): Split lines longer than 80.
42174         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
42175         (SUFFIXES): Define.
42176         (.sed.in.sed): New rule.  Don't redirect directly to $@.
42177         (CLEANFILES): Add ref-add.sed and ref-del.sed.
42178
42179 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
42180
42181         * lib/config.charset: Output a line containing "Packages using this
42182         file".
42183         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
42184         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
42185         ref-del.sed): New rules.
42186
42187 2000-03-17  Jim Meyering  <meyering@lucent.com>
42188
42189         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
42190         Otherwise, include <strings.h>
42191
42192 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
42193
42194         * lib/unicodeio.c (utf8_wctomb): New function.
42195         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
42196         format instead of in UCS-4 with platform dependent endianness.
42197
42198 2000-03-10  Jim Meyering  <meyering@lucent.com>
42199
42200         * m4/lib-check.m4: Look for getspnam in -lgen, too.
42201         From Marco Franzen.
42202
42203 2000-03-07  Paul Eggert  <eggert@twinsun.com>
42204
42205         * lib/savedir.c (savedir): Work even if directory size is
42206         negative; this can happen with some screwy NFS configurations.
42207
42208 2000-03-06  Jim Meyering  <meyering@lucent.com>
42209
42210         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
42211         if it's NULL (because we ran out of memory).  From Bruno Haible.
42212
42213 2000-03-05  Jim Meyering  <meyering@lucent.com>
42214
42215         * lib/localcharset.c ("path-concat.h"): Include.
42216         (get_charset_aliases): Use path_concat instead of ANSI string
42217         concatenation.
42218
42219         * lib/unicodeio.h (PARAMS): Define.
42220         Use it to guard prototype.
42221
42222 2000-03-04  Jim Meyering  <meyering@lucent.com>
42223
42224         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
42225         for lib/localcharset.c.
42226
42227 2000-03-04  Jim Meyering  <meyering@lucent.com>
42228
42229         * lib/Makefile.am (install-exec-local): Create $(libdir) before
42230         installing into it.
42231         (uninstall-local): Uncomment this rule so `make distcheck' works
42232         once again.
42233
42234         * lib/unicodeio.c (<errno.h>): Include it.
42235         (errno): Declare if not defined.
42236
42237         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
42238
42239         * lib/config.charset: New version, incorporating remarks from a linux
42240         i18n mailing list.  From Bruno Haible.
42241
42242 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
42243
42244         * m4/codeset.m4: New file.
42245         * m4/iconv.m4: New file.
42246         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
42247
42248 2000-03-03  Jim Meyering  <meyering@lucent.com>
42249
42250         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
42251
42252 2000-03-02  Jim Meyering  <meyering@lucent.com>
42253
42254         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
42255         the messages come out on separate lines.
42256
42257         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
42258         rather than jm_CHECK_DECLARATIONS.
42259         * m4/decl.m4: Remove now-unused file.
42260
42261         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
42262         geteuid.
42263
42264 2000-03-02  Jim Meyering  <meyering@lucent.com>
42265
42266         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
42267
42268 2000-03-01  Jim Meyering  <meyering@lucent.com>
42269
42270         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
42271         * lib/unicodeio.c: Likewise.
42272
42273 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
42274
42275         * lib/config.charset: New file.
42276         * lib/localcharset.c: New file.
42277         * lib/unicodeio.h, lib/unicodeio.c: New files.
42278         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
42279         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
42280         (noinst_HEADERS): Add unicodeio.h.
42281         (all-local, install-exec-local, charset.alias): New targets.
42282
42283 2000-02-28  Paul Eggert  <eggert@twinsun.com>
42284
42285         * lib/quotearg.c (ALERT_CHAR): New macro.
42286         (quotearg_buffer_restyled): Use it.
42287
42288 2000-02-27  Jim Meyering  <meyering@lucent.com>
42289
42290         * m4/check-decl.m4: Add getenv to the list.
42291
42292 2000-02-27  Jim Meyering  <meyering@lucent.com>
42293
42294         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
42295         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
42296
42297         * lib/backupfile.c: Guard inclusion of stdlib.h with
42298         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
42299         Declare malloc if needed.
42300
42301         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
42302         `#ifndef HAVE_DECL..'
42303         now that autoconf always defines the HAVE_DECL_ symbols.
42304         * lib/human.c: Likewise.
42305         * lib/same.c: Likewise.
42306         * lib/strtoumax.c: Likewise.
42307
42308         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42309         declaration check was not run.
42310         * lib/hash.c: Likewise.
42311         * lib/human.c: Likewise.
42312         * lib/same.c: Likewise.
42313         * lib/strtoumax.c: Likewise.
42314
42315         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42316         `.', then first look up the entire `.'-containing string as a login
42317         name.
42318
42319 2000-02-23  Jim Meyering  <meyering@lucent.com>
42320
42321         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42322         in place of my hack.
42323
42324 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42325
42326         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42327         (textint): New typedef.
42328         (parser_control): Member year changed from int to textint.
42329         All uses changed.
42330         (YYSTYPE): Removed; replaced by %union with int and textint members.
42331         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42332         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42333         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42334         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42335         (date, number, to_year): Use width of number in digits, not its value,
42336         to determine whether it's a 2-digit year, or a 2-digit time.
42337         (yylex): Store number of digits of numeric tokens.
42338         Reported by John Kendall.
42339
42340         (parser_control): Changed from struct parser_control to typedef (for
42341         consistency).  All uses changed.
42342
42343         (tID): Removed; not used.
42344         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42345
42346 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42347
42348         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42349         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42350
42351 2000-02-12  Jim Meyering  <meyering@lucent.com>
42352
42353         * lib/userspec.c (ISDIGIT): Define it.
42354         (isdigit): Remove definition.
42355         (is_number): Use ISDIGIT, not isdigit.
42356         <libintl.h>: Include.
42357         (_ and N_): Define.
42358         (parse_user_spec): Mark translatable strings.
42359
42360 2000-02-10  Jim Meyering  <meyering@lucent.com>
42361
42362         With these changes, nanosleep.[ch] are finally enough like the other
42363         lib/* replacement files to compile on a few more losing systems.
42364
42365         * lib/nanosleep.h: Don't include config.h.
42366         Remove prototype from declaration of nanosleep.
42367         (PARAMS): Remove now-unneeded definition.
42368         * lib/nanosleep.c: #undef nanosleep.
42369         (rpl_nanosleep): Rename from nanosleep.
42370
42371 2000-02-10  Jim Meyering  <meyering@lucent.com>
42372
42373         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42374         gnu_nanosleep to rpl_nanosleep.
42375
42376 2000-02-09  Jim Meyering  <meyering@lucent.com>
42377
42378         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42379         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42380
42381 2000-02-08  Akim Demaille  <akim@epita.fr>
42382
42383         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42384         `[' and `]' and remove uses of `changequote'.
42385         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42386         (AC_SYS_LARGEFILE): Likewise.
42387         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42388         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42389         of changequote.
42390         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42391         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42392         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42393         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42394
42395 2000-02-05  Jim Meyering  <meyering@lucent.com>
42396
42397         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42398         Remove explicit use of AC_HEADER_TIME.  It is required by
42399         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42400         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42401         in autoconf whereby the expansion of the latter ended up preceding
42402         the expansion of its prerequisite, AC_HEADER_TIME.
42403         Reported by Volker Borchert.
42404
42405 2000-02-03  Jim Meyering  <meyering@lucent.com>
42406
42407         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
42408
42409 2000-02-03  Jim Meyering  <meyering@lucent.com>
42410
42411         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
42412         rather than with `#if HAVE_UTMPNAME'.
42413
42414 2000-02-02  Jim Meyering  <meyering@lucent.com>
42415
42416         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
42417         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
42418         Reported by Eli Zaretskii.
42419
42420 2000-02-01  Jim Meyering  <meyering@lucent.com>
42421
42422         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
42423
42424 2000-01-31  Jim Meyering  <meyering@lucent.com>
42425
42426         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42427         functions.  Add the time.h and sys/time.h headers along with the
42428         AC_REQUIRE'ment of AC_HEADER_TIME.
42429
42430 2000-01-31  Jim Meyering  <meyering@lucent.com>
42431
42432         * lib/nanosleep.h (nanosleep): Guard declaration with
42433         `#if ! HAVE_DECL_NANOSLEEP'.
42434         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42435         the declaration in that vendor's sys/timers.h.
42436         Reported by Christian Krackowizer.
42437
42438         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42439         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42440         (ISPRINT): Likewise.
42441         Reported by Tom Tromey.
42442
42443 2000-01-30  Jim Meyering  <meyering@lucent.com>
42444
42445         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
42446
42447         * m4/prereq.m4 (utmp_includes): Define.
42448         Check for ut_user and ut_name members in both struct utmpx
42449         and struct utmp.
42450
42451 2000-01-30  Jim Meyering  <meyering@lucent.com>
42452
42453         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
42454         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
42455         header files where only utmpx.ut_user is declared.
42456
42457         * lib/readutmp.h (UT_USER): Define.
42458
42459 2000-01-29  Jim Meyering  <meyering@lucent.com>
42460
42461         * m4/lib-check.m4: New file containing library-related checks from
42462         fileutils and sh-utils (textutils had none).
42463
42464 2000-01-28  Jim Meyering  <meyering@lucent.com>
42465
42466         * m4/perl.m4: Change format of warning message to look more like that
42467         from the missing script.  Suggestion from François Pinard.
42468
42469 2000-01-25  Jim Meyering  <meyering@lucent.com>
42470
42471         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
42472         well as time.h in the compile check.
42473         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
42474         Fix typo in cross-compiling case: s/yes/no/.
42475
42476 2000-01-23  Jim Meyering  <meyering@lucent.com>
42477
42478         * m4/jm-macros.m4: Move df-related tests here from
42479         fileutils/configure.in
42480
42481         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
42482         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
42483
42484         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
42485         s/space/ac_fsusage_space/.
42486         (jm_FILE_SYSTEM_USAGE): Take two parameters.
42487
42488         * m4/ftruncate.m4: New file (derived from part of
42489         fileutils/configure.in).
42490         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
42491         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
42492
42493         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
42494         AC_SUBST these here, rather than just in sh-util/configure.in, so
42495         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
42496         all the same.
42497         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
42498         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
42499         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
42500         (AC_SUBST(POW_LIBM)): Likewise.
42501         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
42502
42503 2000-01-23  Jim Meyering  <meyering@lucent.com>
42504
42505         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
42506         obstack.c.
42507
42508 2000-01-22  Jim Meyering  <meyering@lucent.com>
42509
42510         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
42511
42512         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
42513
42514         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
42515         configure.in
42516         (AC_CHECK_HEADERS): Likewise for sh-utils.
42517         (AC_CHECK_HEADERS): Likewise for textutils.
42518         Merge the three lists of headers.
42519
42520         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
42521         from fileutils' configure.in.
42522
42523         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
42524         code. Moved tests into their own function (_jm_DECL_HEADERS) in
42525         check-decl.m4.
42526
42527         * m4/check-decl.m4: Use #if rather than #ifdef.
42528         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
42529         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
42530         (_jm_DECL_HEADERS): Define new function.
42531         (jm_CHECK_DECLARATIONS): Require it.
42532
42533 2000-01-22  Jim Meyering  <meyering@lucent.com>
42534
42535         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
42536         [! HAVE_DECL_STRTOULL]: Declare strtoull.
42537         Required for some AIX systems.  Reported by Christian Krackowizer.
42538         [TESTING] (main): New function.
42539
42540         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
42541         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
42542         letters.
42543
42544         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
42545         iswprint.
42546
42547         * lib/strverscmp.c (ISDIGIT): Define.
42548         (strverscmp): Use ISDIGIT, not isdigit.
42549
42550 2000-01-19  Jim Meyering  <meyering@lucent.com>
42551
42552         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
42553         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
42554         defines `struct timespec' in <sys/time.h>
42555
42556         * m4/c-bs-a.m4: Remove uses of changequote altogether.
42557         Thanks to Akim for explaining.
42558
42559 2000-01-17  Paul Eggert  <eggert@twinsun.com>
42560
42561         * lib/nanosleep.c (nanosleep):
42562         Don't use SA_INTERRUPT to decide whether to call sigaction, as
42563         POSIX.1 doesn't require SA_INTERRUPT and some systems
42564         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
42565         it's been part of POSIX.1 since day 1 (in 1988).
42566
42567 2000-01-17  Jim Meyering  <meyering@lucent.com>
42568
42569         * lib/interlock: Remove unused file.  Reported by François Pinard.
42570
42571 2000-01-16  Paul Eggert  <eggert@twinsun.com>
42572
42573         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
42574         alert, backslash, formfeed, and vertical tab unnecessarily in
42575         shell quoting style.
42576
42577 2000-01-16  Jim Meyering  <meyering@lucent.com>
42578
42579         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
42580         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
42581         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
42582         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
42583
42584 2000-01-16  Jim Meyering  <meyering@lucent.com>
42585
42586         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
42587         because the latter didn't work.
42588
42589 2000-01-15  Jim Meyering  <meyering@lucent.com>
42590
42591         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
42592         (AC_REPLACE_FUNCS): Add memcpy and memset.
42593         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
42594         Add strpbrk.
42595         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
42596
42597 2000-01-12  Jim Meyering  <meyering@lucent.com>
42598
42599         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
42600         (jm_PREREQ): Use it.
42601         (jm_PREREQ_READUTMP): New macro.
42602         (jm_PREREQ): Use it.
42603
42604 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42605
42606         Quote multibyte characters correctly.
42607         * m4/c-bs-a.m4: New file.
42608         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
42609         (jm_PREREQ): Use it.
42610
42611 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42612
42613         * m4/uintmax_t.m4: Port to autoconf 2.13.
42614
42615 2000-01-08  Jim Meyering  <meyering@ascend.com>
42616
42617         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
42618         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
42619
42620 2000-01-04  Jim Meyering  <meyering@ascend.com>
42621
42622         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
42623         jm_STRUCT_DIRENT_D_TYPE.
42624         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
42625         jm_STRUCT_DIRENT_D_INO.
42626         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
42627         jm_STRUCT_UTIMBUF.
42628         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
42629         renamings.
42630         * m4/utime.m4: Likewise.
42631
42632         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
42633         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
42634
42635 2000-01-03  Paul Eggert  <eggert@twinsun.com>
42636
42637         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
42638         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
42639
42640 2000-01-02  Jim Meyering  <meyering@ascend.com>
42641
42642         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
42643         remember if this is necessary.
42644
42645 1999-12-26  Jim Meyering  <meyering@ascend.com>
42646
42647         * m4/jm-macros.m4: Use it here.
42648         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
42649
42650 1999-12-23  Jim Meyering  <meyering@ascend.com>
42651
42652         * m4/jm-macros.m4: Check for clock_gettime (moved from
42653         fileutils/configure.in)
42654         Check for gettimeofday.
42655
42656 1999-12-20  Jim Meyering  <meyering@ascend.com>
42657
42658         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
42659         autoconf-2.14a-1999-12-20.
42660
42661 1999-12-19  Jim Meyering  <meyering@ascend.com>
42662
42663         * m4/lstat-slash.m4: New file.
42664         * m4/jm-macros.m4: Use the new macro:
42665         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42666
42667 1999-12-07  Jim Meyering  <meyering@ascend.com>
42668
42669         * m4/perl.m4: Require that File::Compare be available, too.
42670         Too many systems seem to lack it.
42671
42672         * m4/strftime.m4: Add checks for most of the cpp macros tested in
42673         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
42674
42675 1999-11-18  Paul Eggert  <eggert@twinsun.com>
42676
42677         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
42678         problem with the QNX 4.25 shell, which doesn't propagate exit
42679         status of failed commands inside shell assignments.
42680
42681 1999-11-17  Jim Meyering  <meyering@ascend.com>
42682
42683         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
42684
42685 1999-11-07  Jim Meyering  <meyering@ascend.com>
42686
42687         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
42688
42689 1999-11-06  Jim Meyering  <meyering@ascend.com>
42690
42691         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
42692         * m4/jm-macros.m4 (jm_MACROS): Use it here.
42693
42694 1999-11-05  Jim Meyering  <meyering@ascend.com>
42695
42696         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
42697         configure.in of textutils, fileutils, and sh-utils into this one
42698         (shared between those packages) file.
42699         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
42700         AC_STRUCT_ST_BLKSIZE.
42701
42702 1999-11-03  Jim Meyering  <meyering@ascend.com>
42703
42704         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
42705         of AC_CHECK_TYPE checks includes unistd.h.
42706         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
42707         Suggestion from Akim Demaille.
42708
42709 1999-10-30  Jim Meyering  <meyering@ascend.com>
42710
42711         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
42712         m4-quoted string.
42713         * m4/ls-mntd-fs.m4: Likewise.
42714         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
42715         * m4/jm-winsz1.m4: Likewise.
42716
42717         * m4/const.m4: Remove file, since the fix made it into the experimental
42718         version of autoconf.
42719         * m4/mktime.m4: Likewise.
42720
42721         * m4/check-type.m4: Remove file, now that the latest version of
42722         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42723
42724         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42725         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42726         AC_CHECK_TYPE.
42727
42728 1999-10-04  Jim Meyering  <meyering@ascend.com>
42729
42730         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42731
42732 1999-09-22  Paul Eggert  <eggert@twinsun.com>
42733
42734         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
42735         2.95.1 bug with HP-UX 10.20.
42736
42737 1999-09-17  Jim Meyering  <meyering@ascend.com>
42738
42739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
42740         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
42741         due to missing strdup (against sh-utils-2.0).
42742
42743 1999-08-29  Jim Meyering  <meyering@ascend.com>
42744
42745         * m4/jm-macros.m4: Require jm_BISON.
42746         * m4/bison.m4: New file.
42747
42748 1999-08-17  Paul Eggert  <eggert@twinsun.com>
42749
42750         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
42751         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
42752
42753 1999-08-05  Jim Meyering  <meyering@ascend.com>
42754
42755         * m4/getline.m4: Rename test file from conftestdata to conftest.data
42756         to avoid conflicts with `conftest' on 8+3 filesystems.
42757         Suggestion from Eli Zaretskii.
42758
42759 1999-08-04  Jim Meyering  <meyering@ascend.com>
42760
42761         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
42762         fileutils and sh-utils (textutils's getline test was inadequate).
42763         (AM_FUNC_GETLINE): Run this test.
42764         (AC_CHECK_FUNCS): Check for getdelim.
42765         Reported by Bob Proulx.
42766
42767 1999-08-02  Jim Meyering  <meyering@ascend.com>
42768
42769         * m4/jm-macros.m4: Add a comment.
42770
42771 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42772
42773         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
42774         <inttypes.h> defines strtoumax as a macro (and not as a
42775         function).
42776
42777 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42778
42779         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
42780         that we can shift, multiply and divide unsigned long long
42781         values; Ultrix cc can't do it.
42782
42783 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42784
42785         * m4/mktime.m4: New file, which is a preview of what should appear
42786         in the next public autoconf release.
42787
42788 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42789
42790         * m4/lfs.m4: Remove this file.
42791         * m4/largefile.m4: New file.  It contains the old contents of
42792         lfs.m4, except that all names with prefix AC_LFS have been
42793         changed to use the prefix AC_SYS_LARGEFILE instead, to be
42794         compatible with future autoconf versions.  Also, some minor m4
42795         quoting problems have been fixed.
42796
42797 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42798
42799         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
42800         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
42801         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
42802         and simplify the shell code.
42803
42804 1999-08-01  Jim Meyering  <meyering@ascend.com>
42805
42806         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
42807         m4.
42808
42809 1999-07-20  Jim Meyering  <meyering@ascend.com>
42810
42811         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
42812
42813 1999-07-15  Jim Meyering  <meyering@ascend.com>
42814
42815         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
42816
42817 1999-05-22  Jim Meyering  <meyering@ascend.com>
42818
42819         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
42820
42821 1999-05-20  Jim Meyering  <meyering@ascend.com>
42822
42823         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
42824         Add a colon after each `then' in case $4 is empty.
42825
42826 1999-05-16  Jim Meyering  <meyering@ascend.com>
42827
42828         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
42829
42830 1999-05-10  Jim Meyering  <meyering@ascend.com>
42831
42832         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
42833
42834         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
42835         AC_FUNC_MKTIME.
42836
42837 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
42838
42839         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
42840
42841 1999-05-04  Paul Eggert  <eggert@twinsun.com>
42842
42843         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
42844         not CPPFLAGS, so that linking works correctly in IRIX.
42845
42846 1999-04-30  Paul Eggert  <eggert@twinsun.com>
42847
42848         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
42849
42850 1999-04-20  Paul Eggert  <eggert@twinsun.com>
42851
42852         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
42853         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
42854         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
42855         jm_AC_TYPE_UNSIGNED_LONG_LONG.
42856         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
42857
42858         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
42859
42860 1999-04-20  Jim Meyering  <meyering@ascend.com>
42861
42862         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
42863         AC_REPLACE xstroull if necessary.  From Paul Eggert.
42864         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
42865
42866 1999-04-18  Jim Meyering  <meyering@ascend.com>
42867
42868         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
42869         * m4/jm-macros.m4: Use it.
42870
42871 1999-04-06  Jim Meyering  <meyering@ascend.com>
42872
42873         * m4/strftime.m4: Remove test for %f.
42874
42875 1999-03-29  Jim Meyering  <meyering@ascend.com>
42876
42877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
42878         superset of the AC_TYPE_* checks in the textutils, fileutils,
42879         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
42880         AC_TYPE_PID_T.
42881
42882 1999-03-28  Jim Meyering  <meyering@ascend.com>
42883
42884         * m4/jm-macros.m4: Define GNU_PACKAGE here.
42885         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
42886         replaced e.g., in the *.sh files of the sh-utils.
42887
42888 1999-03-20  Jim Meyering  <meyering@ascend.com>
42889
42890         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
42891         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
42892         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
42893
42894 1999-03-19  Jim Meyering  <meyering@ascend.com>
42895
42896         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
42897
42898 1999-03-12  Jim Meyering  <meyering@ascend.com>
42899
42900         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
42901
42902 1999-03-07  Jim Meyering  <meyering@ascend.com>
42903
42904         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
42905         declared.
42906
42907 1999-02-17  Jim Meyering  <meyering@ascend.com>
42908
42909         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
42910         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
42911
42912 1999-02-07  Jim Meyering  <meyering@ascend.com>
42913
42914         * m4/group-member.m4: New file -- extracted from sh-utils'
42915         configure.in.
42916
42917         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
42918         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
42919
42920 1999-02-06  Jim Meyering  <meyering@ascend.com>
42921
42922         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
42923         * m4/fnmatch.m4: Likewise.
42924         * m4/getgroups.m4: Likewise.
42925         * m4/lstat.m4: Likewise.
42926         * m4/malloc.m4: Likewise.
42927         * m4/putenv.m4: Likewise.
42928         * m4/realloc.m4: Likewise.
42929         * m4/regex.m4: Likewise.
42930         * m4/stat.m4: Likewise.
42931         * m4/strftime.m4: Likewise.
42932         Suggestion from Alain Magloire.
42933
42934         * m4/chown.m4: Use `.$ac_objext', not `.o'.
42935         * m4/fnmatch.m4: Likewise.
42936         * m4/getgroups.m4: Likewise.
42937         * m4/getline.m4: Likewise.
42938         * m4/lstat.m4: Likewise.
42939         * m4/malloc.m4: Likewise.
42940         * m4/memcmp.m4: Likewise.
42941         * m4/putenv.m4: Likewise.
42942         * m4/realloc.m4: Likewise.
42943         * m4/regex.m4: Likewise.
42944         * m4/stat.m4: Likewise.
42945         * m4/strftime.m4: Likewise.
42946         Suggestion from Alain Magloire.
42947
42948         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
42949         an argument.
42950
42951         * m4/regex.m4: Add a run-time Test for proper operation of
42952         re_compile_pattern.
42953
42954 1999-01-31  Jim Meyering  <meyering@ascend.com>
42955
42956         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
42957
42958 1999-01-30  Jim Meyering  <meyering@ascend.com>
42959
42960         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
42961
42962         * m4/jm-mktime.m4: Make this a wrapper around the official
42963         AM_FUNC_MKTIME rather than my private copy, now that the official one
42964         is up to date.
42965         * m4/mktime.m4: Remove file.
42966
42967         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
42968         * m4/uptime.m4: Likewise.
42969         * m4/uintmax_t.m4: Likewise.
42970
42971 1999-01-28  Jim Meyering  <meyering@ascend.com>
42972
42973         * m4/jm-macros.m4: Use jm_AFS.
42974         * m4/afs.m4: New file (from fileutils' configure.in).
42975
42976         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
42977         * m4/chown.m4: Likewise.
42978         * m4/d-ino.m4: Likewise.
42979         * m4/d-type.m4: Likewise.
42980         * m4/fnmatch.m4: Likewise.
42981         * m4/getgroups.m4: Likewise.
42982         * m4/gettext.m4: Likewise.
42983         * m4/jm-mktime.m4: Likewise.
42984         * m4/jm-winsz2.m4: Likewise.
42985         * m4/lcmessage.m4: Likewise.
42986         * m4/ls-mntd-fs.m4: Likewise.
42987         * m4/malloc.m4: Likewise.
42988         * m4/memcmp.m4: Likewise.
42989         * m4/putenv.m4: Likewise.
42990         * m4/realloc.m4: Likewise.
42991         * m4/st_mtim.m4: Likewise.
42992         * m4/strftime.m4: Likewise.
42993
42994 1999-01-16  Jim Meyering  <meyering@ascend.com>
42995
42996         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
42997         (ARGMATCH_DIE_DECL): Define.
42998
42999 1999-01-12  Jim Meyering  <meyering@ascend.com>
43000
43001         * m4/Makefile.am.in: Rewrite to avoid using fmt.
43002         Reported by Lars Hecking.
43003
43004 1999-01-10  Jim Meyering  <meyering@ascend.com>
43005
43006         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
43007         gross kludge.
43008         * m4/inttypes_h.m4: Likewise.
43009         * m4/lstat.m4: Likewise.
43010         * m4/malloc.m4: Likewise.
43011         * m4/readdir.m4: Likewise.
43012         * m4/realloc.m4: Likewise.
43013         * m4/st_dm_mode.m4: Likewise.
43014         * m4/stat.m4: Likewise.
43015         * m4/utimbuf.m4: Likewise.
43016         * m4/utimes.m4: Likewise.
43017
43018         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
43019         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
43020         comments in config.h.in are meaningful.
43021
43022         * m4/jm-macros.m4: Require autoconf-2.13 here.
43023
43024         * m4/regex.m4: By default, don't use the included regex.c on systems
43025         with glibc 2.  Suggestion from Uli Drepper.
43026
43027 1999-01-02  Jim Meyering  <meyering@ascend.com>
43028
43029         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
43030
43031 1998-12-18  Jim Meyering  <meyering@ascend.com>
43032
43033         * m4/Makefile.am.in (Makefile.am): Simplify rule.
43034         Based on a suggestion from Lars Hecking.
43035
43036 1998-11-16  Paul Eggert  <eggert@twinsun.com>
43037
43038         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
43039
43040 1998-11-16  Jim Meyering  <meyering@ascend.com>
43041
43042         * m4/lfs.m4: Double-quote the `uname...` expression.
43043
43044 1998-11-14  Jim Meyering  <meyering@ascend.com>
43045
43046         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
43047         * m4/stat.m4: Likewise.
43048
43049 1998-11-03  Jim Meyering  <meyering@ascend.com>
43050
43051         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
43052         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
43053
43054 1998-10-18  Jim Meyering  <meyering@ascend.com>
43055
43056         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
43057
43058 1998-10-17  Jim Meyering  <meyering@ascend.com>
43059
43060         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
43061         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
43062         calls for those previously hard-coded headers.  Instead, take a new
43063         parameter.
43064         (jm_CHECK_DECLARATIONS): Reflect interface change.
43065         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
43066         (jm_CHECK_DECL_LOCALTIME_R): New macro.
43067
43068         * m4/mktime.m4: Test for spring-forward gap before long-running test.
43069
43070 1998-10-14  Jim Meyering  <meyering@ascend.com>
43071
43072         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
43073         instead of "TZ=America/Vancouver".  From Paul Eggert.
43074
43075 1998-10-11  Jim Meyering  <meyering@ascend.com>
43076
43077         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
43078         This adds a test for a recently added compatibility fix for mktime.c.
43079         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
43080
43081 1998-09-27  Jim Meyering  <meyering@ascend.com>
43082
43083         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
43084
43085         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
43086         ../configure.in, including a change from Gordon Matzigkeit to allow
43087         cross-compiling for the Hurd.
43088
43089         * m4/glibc.m4: New file/macro to test for the GNU C Library
43090         versions 1 and 2.  From Gordon Matzigkeit.
43091         Indent.
43092
43093 1998-09-21  Jim Meyering  <meyering@ascend.com>
43094
43095         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
43096
43097 1998-08-18  Paul Eggert  <eggert@twinsun.com>
43098
43099         Port nanosecond-resolution times to UnixWare 2.1.2 and
43100         pedantic Solaris 2.6.
43101
43102         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
43103         AC_STRUCT_ST_MTIM.
43104         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
43105         Generate name of ns member, instead of just 1 or undef.
43106         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
43107
43108 1998-08-15  Jim Meyering  <meyering@ascend.com>
43109
43110         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
43111         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
43112         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
43113         instead of jm_TYPE_SSIZE_T.
43114
43115 1998-08-12  Jim Meyering  <meyering@ascend.com>
43116
43117         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
43118
43119 1998-08-02  Jim Meyering  <meyering@ascend.com>
43120
43121         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
43122         in acconfig.h manually.
43123
43124 1998-07-31  Paul Eggert  <eggert@twinsun.com>
43125
43126         * m4/st_mtim.m4: New file.
43127
43128 1998-07-28  Jim Meyering  <meyering@ascend.com>
43129
43130         * m4/utimes.m4: Undef stat.
43131
43132 1998-07-25  Jim Meyering  <meyering@ascend.com>
43133
43134         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
43135         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
43136
43137 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
43138
43139         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
43140         uid and gid actually remain unchanged.
43141
43142 1998-07-07  Jim Meyering  <meyering@ascend.com>
43143
43144         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
43145
43146 1998-07-04  Jim Meyering  <meyering@ascend.com>
43147
43148         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
43149         to prove that this macro can be used in packages without regex.c.
43150
43151 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
43152
43153         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
43154         is to be used.
43155
43156 1998-07-03  Jim Meyering  <meyering@ascend.com>
43157
43158         * m4/gettext.m4: Add -lintl if it's found to be necessary.
43159
43160         * m4/gettext.m4: New file -- from gettext-0.10.35.
43161         * m4/lcmessage.m4: Likewise.
43162         * m4/progtest.m4: Likewise.
43163
43164         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
43165         * m4/jm-macros.m4: Require the new macro.
43166
43167 1998-06-29  Jim Meyering  <meyering@ascend.com>
43168
43169         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
43170         for the definition of NGROUPS (used in a system header included
43171         by sys/mount.h).
43172
43173 1998-06-28  Jim Meyering  <meyering@ascend.com>
43174
43175         * m4/ls-mntd-fs.m4: New file.
43176         * m4/fstypename.m4: New file.
43177
43178         * m4/jm-macros.m4: Require the new macro.
43179         * m4/jm-glibc-io.m4: New file.
43180
43181 1998-05-19  Jim Meyering  <meyering@ascend.com>
43182
43183         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
43184         * m4/lchown.m4: New file.
43185
43186         * m4/Makefile.am.in: New file.
43187         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
43188
43189 1998-05-14  Jim Meyering  <meyering@ascend.com>
43190
43191         * m4/Makefile.am (EXTRA_DIST): Add them.
43192         * m4/jm-macros.m4: New file.
43193         * m4/utimbuf.m4: New file.
43194
43195 1998-05-12  Jim Meyering  <meyering@ascend.com>
43196
43197         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
43198
43199 1998-05-11  Jim Meyering  <meyering@ascend.com>
43200
43201         * m4/isc-posix.m4: New file.
43202
43203 1998-05-10  Jim Meyering  <meyering@ascend.com>
43204
43205         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
43206
43207 1998-05-09  Jim Meyering  <meyering@ascend.com>
43208
43209         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
43210         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
43211         with automake.
43212
43213         * m4/ssize_t.m4: New file.
43214         * m4/mktime.m4: Remove file -- the new automake has this now.
43215
43216 1998-04-26  Jim Meyering  <meyering@ascend.com>
43217
43218         * m4/assert.m4: New file.
43219         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
43220
43221 1998-04-05  Jim Meyering  <meyering@ascend.com>
43222
43223         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
43224         (jm_PREREQ): Use it here.
43225
43226 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
43227
43228         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
43229         in acconfig.h.
43230
43231 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
43232
43233         * m4/prereq.m4: New file.
43234         * m4/error.m4: New file.
43235         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
43236
43237 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
43238
43239         * m4/getline.m4: Don't set am_cv_func_working_getline before the
43240         cache-check for the same variable -- that defeated the purpose of
43241         the test; the test program was never run.  This was a problem only
43242         on systems with losing getline functions -- HP-UX 10.20 is one.
43243         Reported by Bjorn Helgaas.
43244
43245 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
43246
43247         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
43248
43249 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
43250
43251         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
43252
43253         * m4/const.m4: New file.  Use an initializer in this declaration
43254         typedef int charset[2]; const charset x;
43255         Reported by Bob Glickstein.
43256
43257 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
43258
43259         * m4/chown.m4: Fix reversed types on -1 args to chown.
43260         From Kaveh Ghazi.
43261
43262 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
43263
43264         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
43265         Add lseek and memchr.
43266
43267         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
43268         T.E.Dickey <dickey@clark.net> said that some older preprocessors
43269         have a 20-character limit on names.
43270
43271 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
43272
43273         * m4/inttypes_h.m4: New file.
43274         * m4/uintmax_t.m4: New file.
43275         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
43276
43277
43278         -----
43279
43280         Local Variables:
43281         coding: utf-8
43282         End:
43283
43284         Copyright (C) 1997-2008 Free Software Foundation, Inc.
43285
43286         Copying and distribution of this file, with or without
43287         modification, are permitted provided the copyright notice
43288         and this notice are preserved.