220f45ccfb53d28517bc9c44f2f495de82a66bf9
[gnulib.git] / ChangeLog
1 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2
3         * gnulib-tool (func_import): Store the --tests-base option in the
4         comment in gnulib-cache.m4.
5
6 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
7
8         * NEWS: Document increased portability that sys_select now provides.
9
10         * lib/sys_select.in.h: Install select wrapper.
11         * lib/sys_socket.in.h: Use more descriptive name when there is no
12         select wrapper.
13         * lib/winsock-select.c: New.
14         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
15         Require gl_HEADER_SYS_SOCKET.
16         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
17         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18         * tests/test-sys_select.c: Add functional tests.
19
20 2008-09-24  Eric Blake  <ebb9@byu.net>
21
22         open, fopen: close fd leak in last patch
23         * lib/open.c (rpl_open): Close fd before returning error.
24         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25         * doc/posix-functions/open.texi (open): Document that Irix also
26         has the bug.
27         * doc/posix-functions/fopen.texi (fopen): Likewise.
28         Reported by Paolo Bonzini.
29
30 2008-09-24  Bruno Haible  <bruno@clisp.org>
31
32         Ensure that a filename ending in a slash cannot be used to access a
33         non-directory.
34         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35         to check whether it's really a directory.
36         * lib/fopen.c: Include fcntl.h, unistd.h.
37         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38         and fdopen().
39         * modules/fopen (Depends-on): Add unistd.
40         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
41         * tests/test-fopen.c (main): Likewise.
42         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43         * doc/posix-functions/fopen.texi: Likewise.
44         Reported by Eric Blake.
45
46 2008-09-23  Eric Blake  <ebb9@byu.net>
47
48         c-stack: avoid compiler optimizations when provoking overflow
49         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
50         recursion harder to optimize, to ensure a stack overflow occurs.
51         * tests/test-c-stack.c (recurse): Likewise.
52         Borrowed from libsigsegv.
53
54         c-stack: work around Irix sigaltstack bug
55         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56         whether sigaltstack uses wrong end of stack_t (copied in part from
57         libsigsegv).
58         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
59         Irix bug, without requiring an over-allocation.
60         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
61         bug.
62
63         fopen: document mingw bug on directories
64         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
65         not allowing a stream visiting a directory, even though reading
66         from such a stream is not portable.
67
68 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
69
70         * lib/poll.c: Rewrite.
71         * modules/poll: Depend on alloca.
72
73 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
74
75         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
76         instead define prototypes for a full set of wrappers.  Ensure
77         that Cygwin does not use the compatibility code, which is only
78         for MinGW.
79         * lib/winsock.c: New.
80         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
81         * modules/sys_socket: Add lib/winsock.c.
82
83         * modules/poll-tests: Add errno and perror.
84         * tests/test-poll.c: Use ioctl, not ioctlsocket.
85
86 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87
88         * tests/test-poll.c: Downgrade minimum needed Winsock version.
89
90 2008-09-23  Bruno Haible  <bruno@clisp.org>
91
92         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
93         * doc/glibc-functions/*: Likewise.
94
95 2008-09-23  Simon Josefsson  <simon@josefsson.org>
96
97         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
98         success.
99
100 2008-09-22  Eric Blake  <ebb9@byu.net>
101             Bruno Haible  <bruno@clisp.org>
102
103         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
104         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
105         supply %A but mishandle pseudo-NaN.
106         Reported by Simon Josefsson.
107
108 2008-09-21  Bruno Haible  <bruno@clisp.org>
109
110         * tests/test-lock.c (main): Tweak skip message.
111         * tests/test-tls.c (main): Likewise.
112
113 2008-09-21  Bruno Haible  <bruno@clisp.org>
114
115         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
116         whether 'struct sigaction' has sa_sigaction here...
117         (gl_PREREQ_SIG_HANDLER_H): ... not here.
118         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
119
120 2008-09-21  Bruno Haible  <bruno@clisp.org>
121
122         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
123         section.
124         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
125         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
126         the new section.
127         (Support for obsolete systems lacking POSIX:2001): New section.
128         (String handling <string.h>): Move strdup to the new section.
129         Suggested by Simon Josefsson and Paolo Bonzini.
130
131 2008-09-21  Bruno Haible  <bruno@clisp.org>
132
133         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
134         exponents in %e and %g results on 'long double'. Needed for mingw's
135         improved *printf functions.
136         * tests/test-vasprintf-posix.c (test_function): Likewise.
137         * tests/test-snprintf-posix.h (test_function): Likewise.
138         * tests/test-sprintf-posix.h (test_function): Likewise.
139         Reported by Eric Blake.
140
141 2008-09-21  Bruno Haible  <bruno@clisp.org>
142
143         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
144         * tests/test-sprintf-posix.h (test_function): Likewise.
145
146 2008-09-21  Bruno Haible  <bruno@clisp.org>
147
148         * modules/getpass (Depends-on): Add strdup-posix.
149
150         New module 'strdup-posix'.
151         * modules/strdup-posix: New file.
152         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
153         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
155         REPLACE_STRDUP.
156         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
157         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
158         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
159         strdup-posix.
160
161         * modules/strdup (Depends-on): Remove malloc-posix.
162
163 2008-09-20  Bruno Haible  <bruno@clisp.org>
164
165         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
166         Wildenhues.
167
168 2008-09-20  Bruno Haible  <bruno@clisp.org>
169
170         Ensure that wint_t gets defined on IRIX 5.3.
171         * lib/wchar.in.h (wint_t): Define if not defined by the system.
172         * lib/wctype.in.h (wint_t): Likewise.
173         (__wctype_wint_t): Remove type.
174         (isw*): Use wint_t instead of __wctype_wint_t.
175         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
176         * modules/wchar (Files): Add m4/wint_t.m4.
177         (Makefile.am): Substitute HAVE_WINT_T.
178         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
179         * tests/test-wctype.c: Check that wint_t is defined.
180         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
181         * doc/posix-headers/wctype.texi: Likewise.
182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
183
184 2008-09-18  Bruno Haible  <bruno@clisp.org>
185
186         * gnulib-tool (func_exit): Update comment.
187
188 2008-09-18  Simon Josefsson  <simon@josefsson.org>
189
190         * modules/getaddrinfo (Depends-on): Remove strdup, this module
191         assumes strdup exists and does not depend on strdup to return
192         ENOMEM on out of memory conditions.
193
194 2008-09-18  Bruno Haible  <bruno@clisp.org>
195
196         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
197         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
198         digits for the exponent.
199
200 2008-09-18  Jim Meyering  <meyering@redhat.com>
201             Bruno Haible  <bruno@clisp.org>
202
203         * lib/vasnprintf.c (decimal_point_char): Define also if
204         NEED_PRINTF_INFINITE_LONG_DOUBLE.
205
206 2008-09-16  Bruno Haible  <bruno@clisp.org>
207         and Eric Blake  <ebb9@byu.net>
208
209         vasnprintf: support Irix 5.3
210         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
211         that mishandle long double infinity.
212         Reported by Tom G. Christensen.
213
214 2008-09-16  Bruno Haible  <bruno@clisp.org>
215
216         * doc/glibc-functions/scandir.texi: Mention the function is missing on
217         Solaris 9.
218         * doc/glibc-functions/alphasort.texi: Likewise.
219         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
220
221 2008-09-16  Jim Meyering  <meyering@redhat.com>
222
223         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
224         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
225         a umask modification leak out of a subshell.  Otherwise, the
226         opensolaris /bin/sh would be accepted and thus cause unwarranted
227         failures in the coreutils test suite.
228
229 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
230
231         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
232         to succeed.
233
234 2008-09-16  Jim Meyering  <meyering@redhat.com>
235
236         avoid spurious test failure when library is built without ACL support
237         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
238         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
239         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
240         * tests/test-copy-acl.sh: Likewise.
241
242 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
243
244         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
245         based on character occurrence counts.
246
247 2008-09-15  Eric Blake  <ebb9@byu.net>
248
249         tests: avoid some compiler warnings
250         * tests/test-memchr.c (main): Pass NULL indirectly.
251         * tests/test-closein.c (main): Avoid unused variable.
252
253 2008-09-15  Bruno Haible  <bruno@clisp.org>
254
255         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
256         are missing on OpenBSD 4.0 individually.
257         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
258
259 2008-09-15  Bruno Haible  <bruno@clisp.org>
260
261         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
262         * doc/posix-functions/strerror.texi: Mention also Cygwin.
263         * doc/posix-functions/perror.texi: Likewise.
264         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
265         is missing.
266         Reported by Eric Blake.
267
268         * lib/errno.in.h: Use replacement values >= 2000.
269         Reported by Eric Blake.
270
271 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
272
273         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
274         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
275         limit.
276         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
277         compareseq was aborted.
278
279 2008-09-14  Bruno Haible  <bruno@clisp.org>
280
281         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
282         yvec_edit_count.
283         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
284         (fstrcmp_bounded): Simplify result computation accordingly.
285
286 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
287
288         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
289         (fstrcmp): Define in terms of fstrcmp_bounded.
290         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
291         lower_bound argument.
292         Return quickly if the result is certainly < lower_bound.
293         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
294
295 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
296
297         * lib/diffseq.h (EARLY_ABORT): New macro.
298         (compareseq): Change return type to bool. Return true when EARLY_ABORT
299         evaluates to true.
300
301 2008-09-14  Bruno Haible  <bruno@clisp.org>
302
303         * modules/perror-tests: New file.
304         * tests/test-perror.sh: New file.
305         * tests/test-perror.c: New file.
306
307         New module 'perror'.
308         * lib/stdio.in.h (perror): New declaration.
309         * lib/perror.c: New file.
310         * m4/perror.m4: New file.
311         * modules/perror: New file.
312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
313         * doc/posix-functions/perror.texi: Mention the perror module.
314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
315         REPLACE_PERROR.
316         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
317         REPLACE_PERROR.
318
319 2008-09-14  Bruno Haible  <bruno@clisp.org>
320
321         * modules/stdio (Makefile.am): Reorder to match the order in
322         lib/stdio.in.h.
323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
324
325 2008-09-13  Bruno Haible  <bruno@clisp.org>
326
327         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
328
329 2008-09-13  Bruno Haible  <bruno@clisp.org>
330
331         Extend strerror to cover the added errno values.
332         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
333         (rpl_strerror): Provide error messages for the added errno values and
334         for the WSA* values.
335         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
336         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
337         strerror.
338         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
339         * modules/strerror (Depends-on): Add errno.
340         * doc/posix-functions/strerror.texi: Document the change.
341         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
342         and EOVERFLOW.
343
344 2008-09-13  Bruno Haible  <bruno@clisp.org>
345
346         * modules/EOVERFLOW: Remove file.
347         * m4/eoverflow.m4: Remove file.
348         * modules/EOVERFLOW-tests: Remove file.
349         * tests/test-EOVERFLOW.c: Remove file.
350         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
351         * modules/ftell (Depends-on): Likewise.
352         * modules/getdelim (Depends-on): Likewise.
353         * modules/getugroups (Depends-on): Likewise.
354         * modules/poll (Depends-on): Likewise.
355         * modules/snprintf (Depends-on): Likewise.
356         * modules/sprintf-posix (Depends-on): Likewise.
357         * modules/vasnprintf (Depends-on): Likewise.
358         * modules/vasprintf (Depends-on): Likewise.
359         * modules/vfprintf-posix (Depends-on): Likewise.
360         * modules/vsnprintf (Depends-on): Likewise.
361         * modules/vsprintf-posix (Depends-on): Likewise.
362         * modules/xvasprintf (Depends-on): Likewise.
363         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
364         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
365         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
366         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
367         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
368         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
369         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
370         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
371         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
372         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
373         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
374         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
375         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
376         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
377         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
378         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
379         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
380         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
381         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
382         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
383         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
384         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
385         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
386         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
387         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
388         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
389         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
390         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
391         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
392         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
393         * MODULES.html.sh: Remove EOVERFLOW.
394         * NEWS: Mention the change.
395
396 2008-09-13  Bruno Haible  <bruno@clisp.org>
397
398         * modules/errno-tests: New file.
399         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
400
401         * lib/errno.in.h: New file.
402         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
403         * modules/errno: New file.
404         * doc/posix-headers/errno.texi: Update documentation.
405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
406
407 2008-09-13  Bruno Haible  <bruno@clisp.org>
408
409         * tests/test-poll.c: Use #if for native Windows, rather than testing
410         __MSVCRT__.
411
412 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
413             Bruno Haible  <bruno@clisp.org>
414
415         * lib/glob.c: Don't include <pwd.h> on native Windows.
416         (WINDOWS32): New macro.
417         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
418
419 2008-09-13  Bruno Haible  <bruno@clisp.org>
420
421         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
422         (ETIMEDOUT): Remove macro.
423         (glthread_cond_timedwait_multithreaded): New declaration.
424         (glthread_cond_timedwait): Use it.
425         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
426         (glthread_cond_timedwait_multithreaded): New function.
427
428 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
429
430         * modules/poll-tests: Do not check for io.h.
431         * tests/test-poll.c: Check for __MSVCRT__ instead.
432
433 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
434
435         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
436         * modules/poll-tests: Add inet_pton, stdbool, sockets.
437         * tests/test-poll.c: Use them.  Use _pipe on Windows.
438
439 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
440
441         * modules/poll-tests: New.
442         * tests/test-poll.c: New.
443
444 2008-09-12  Eric Blake  <ebb9@byu.net>
445
446         frexp: test for NetBSD failure on -0.0
447         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
448         not all, bugs from NetBSD 3.0 have been fixed.
449         * doc/posix-functions/frexp.texi (frexp): Document bug.
450         Reported by Thomas Klausner.
451
452         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
453         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
454         literal -0.0.
455         Reported by Jonathan C. Patschke <jp@centtech.com>.
456
457 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
458
459         * lib/glthread/cond.h: Use dummy implementation also if
460         USE_WIN32_THREADS.
461
462 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
463
464         * modules/fnmatch-posix (License): Change to LGPLv2+.
465         * modules/fnmatch-gnu (License): Likewise.
466
467 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
468
469         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
470
471 2008-09-11  Jim Meyering  <meyering@redhat.com>
472
473         * users.txt: Add gtk-vnc.
474
475 2008-09-08  Simon Josefsson  <simon@josefsson.org>
476
477         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
478         rotate amounts.
479
480         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
481         required for 16-bit and 8-bit rotates.
482         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
483         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
484         UINT8_MAX instead of hard-coded constants.
485         Suggested by Paul Eggert.
486
487 2008-09-07  Bruno Haible  <bruno@clisp.org>
488
489         * tests/test-striconveh.c (main): Check behaviour when converting from
490         UTF-7.
491
492         Make striconveh work better with stateful encodings.
493         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
494         that iconv does not increment the inptr when returning -1/EINVAL.
495
496 2008-09-07  Bruno Haible  <bruno@clisp.org>
497
498         * build-aux/config.rpath: Update according to libtool-2.2.6.
499         * build-aux/config.libpath: Likewise.
500
501 2008-09-06  Bruno Haible  <bruno@clisp.org>
502
503         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
504         * lib/freadptr.c (freadptr): Likewise.
505         * lib/freadseek.c (freadptrinc): Likewise.
506         Reported by Simon Josefsson.
507
508 2008-09-06  Bruno Haible  <bruno@clisp.org>
509
510         * modules/freadptr (License): Change to LGPLv2+.
511         * modules/freadseek (License): Likewise.
512         Suggested by Eric Blake.
513
514         * modules/memchr2 (License): Change to LGPLv2+.
515         Approved by Eric Blake.
516
517 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
518             Bruno Haible  <bruno@clisp.org>
519
520         Make gnulib-tool work with native 'sed' on AIX.
521         * gnulib-tool (sed_noop): New variable.
522         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
523         func_add_or_update, func_create_testdir): Use it to initialize sed
524         script variables.
525         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
526
527 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
528             Bruno Haible  <bruno@clisp.org>
529
530         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
531         also works after #include directives.
532
533 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
534
535         getdate.y: reject an out-of-range timezone value
536         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
537         the range [-24...+24].  When specified with only one or two digits,
538         * tests/test-getdate.c: Tests for the fix.
539         * doc/getdate.texi: Document this change.
540
541 2008-09-03  Bruno Haible  <bruno@clisp.org>
542
543         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
544
545 2008-09-02  Simon Josefsson  <simon@josefsson.org>
546
547         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
548         <bruce.korb@gmail.com> with ideas from Ben Pfaff
549         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
550         Blake <ebb9@byu.net>.
551
552         * tests/test-bitrotate.c: Add more test vectors.
553
554 2008-09-02  Eric Blake  <ebb9@byu.net>
555
556         vasnprintf-posix: handle large precision via %.*d
557         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
558         when handling it ourselves.
559         * tests/test-vasnprintf-posix.c (test_function): Add test.
560         * tests/test-snprintf-posix.h (test_function): Likewise.
561         * tests/test-sprintf-posix.h (test_function): Likewise.
562         * tests/test-vasprintf-posix.c (test_function): Likewise.
563         Reported by Alain Guibert.
564
565 2008-09-01  Eric Blake  <ebb9@byu.net>
566
567         c-stack: make configure-time check more robust
568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
569         successful sigaction call.
570         Reported by Tom G. Christensen.
571
572 2008-09-01  Bruno Haible  <bruno@clisp.org>
573
574         New module 'findprog-lgpl'.
575         * modules/findprog-lgpl: New file.
576         * lib/findprog-lgpl.c: New file.
577         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
578         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
579         to decide whether to use strdup or xstrdup, concatenated_filename or
580         xconcatenated_filename.
581
582 2008-09-01  Bruno Haible  <bruno@clisp.org>
583
584         Split module 'concat-filename' into 'concat-filename' (LGPL) and
585         'xconcat-filename' (GPL).
586         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
587         (License): Change to LGPLv2+.
588         * modules/xconcat-filename: New file.
589         * lib/concat-filename.h (concatenated_filename): Change specification.
590         (xconcatenated_filename): New declaration.
591         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
592         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
593         memory situations.
594         * lib/xconcat-filename.c: New file.
595         * NEWS: Mention the change.
596         * lib/findprog.c: Include concat-filename.h, not filename.h.
597         (find_in_path): Use xconcatenated_filename instead of
598         concatenated_filename.
599         * lib/javacomp.c: Include concat-filename.h, not filename.h.
600         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
601         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
602         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
603         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
604         instead of concatenated_filename.
605         * lib/javaexec.c: Include concat-filename.h, not filename.h.
606         (execute_java_class): Use xconcatenated_filename instead of
607         concatenated_filename.
608         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
609         * modules/javacomp (Depends-on): Likewise.
610         * modules/javaexec (Depends-on): Likewise.
611
612 2008-09-01  Bruno Haible  <bruno@clisp.org>
613
614         Split module 'filename' into 'filename' and 'concat-filename'.
615         * modules/filename: Keep only lib/filename.h.
616         (License): Change to LGPLv2+.
617         * modules/concat-filename: New file, extracted from modules/filename.
618         * lib/filename.h (concatenated_filename): Remove declaration.
619         * lib/concat-filename.h: New file, extracted from lib/filename.h.
620         * lib/concat-filename.c: Include concat-filename.h.
621         * NEWS: Mention the change.
622
623 2008-09-01  Simon Josefsson  <simon@josefsson.org>
624
625         * lib/bitrotate.h (rotl8, rotr8): Add.
626
627         * modules/bitrotate (configure.ac): Need
628         AC_REQUIRE([AC_C_INLINE]).
629         (Description): Mention stdint.h.  Reported by Bruno Haible
630         <bruno@clisp.org>.
631
632         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
633         Paolo Bonzini <bonzini@gnu.org>.
634
635 2008-08-31  Bruno Haible  <bruno@clisp.org>
636
637         Assume Solaris specific bi-arch conventions on Solaris systems.
638         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
639         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
640         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
641         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
642         like acl_libdirstem.
643         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
644         acl_libdirstem.
645         * NEWS: Mention the change.
646         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
647
648 2008-08-31  Jim Meyering  <meyering@redhat.com>
649
650         * lib/strftime.h: Add comments describing the two added arguments.
651
652         remove duplicate #include directives
653         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
654         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
655
656 2008-08-31  Bruno Haible  <bruno@clisp.org>
657
658         New module 'sigpipe-die'.
659         * modules/sigpipe-die: New file.
660         * lib/sigpipe-die.h: New file.
661         * lib/sigpipe-die.c: New file.
662         * MODULES.html.sh (Signal handling): Add sigpipe-die.
663
664 2008-08-31  Bruno Haible  <bruno@clisp.org>
665
666         Don't override previously installed signal handlers.
667         * lib/fatal-signal.c (saved_sigactions): New variable.
668         (uninstall_handlers): Reset the signal to the saved handler, not
669         to SIG_DFL (except when ignored).
670         (install_handlers): Save the previous handlers.
671
672 2008-08-30  Bruno Haible  <bruno@clisp.org>
673
674         * gnulib-tool (func_reset_sigpipe): New function.
675         (func_get_automake_snippet, func_modules_transitive_closure,
676         func_import): Invoke it before a join command that reads from stdin,
677         to avoid "echo: write error: Broken pipe" error messages on stderr.
678         Reported by Sam Steingold <sds@gnu.org>.
679
680 2008-08-30  Bruno Haible  <bruno@clisp.org>
681
682         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
683         Code copied from m4/open.m4.
684         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
685         access and the filename ends in a slash. Code copied from lib/open.c.
686         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
687         * tests/test-fopen.c (main): Check against bug with trailing slash.
688
689 2008-08-29  Bruno Haible  <bruno@clisp.org>
690
691         Avoid some "gcc -pedantic" warnings.
692         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
693         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
694         * lib/dirent.in.h: Likewise.
695         * lib/fcntl.in.h: Likewise.
696         * lib/float.in.h: Likewise.
697         * lib/iconv.in.h: Likewise.
698         * lib/inttypes.in.h: Likewise.
699         * lib/locale.in.h: Likewise.
700         * lib/math.in.h: Likewise.
701         * lib/netinet_in.in.h: Likewise.
702         * lib/search.in.h: Likewise.
703         * lib/signal.in.h: Likewise.
704         * lib/stdarg.in.h: Likewise.
705         * lib/stdint.in.h: Likewise.
706         * lib/stdio.in.h: Likewise.
707         * lib/stdlib.in.h: Likewise.
708         * lib/string.in.h: Likewise.
709         * lib/strings.in.h: Likewise.
710         * lib/sys_select.in.h: Likewise.
711         * lib/sys_socket.in.h: Likewise.
712         * lib/sys_stat.in.h: Likewise.
713         * lib/sys_time.in.h: Likewise.
714         * lib/sysexits.in.h: Likewise.
715         * lib/time.in.h: Likewise.
716         * lib/unistd.in.h: Likewise.
717         * lib/wchar.in.h: Likewise.
718         * lib/wctype.in.h: Likewise.
719         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
720         * modules/fchdir (Makefile.am): Likewise.
721         * modules/fcntl (Makefile.am): Likewise.
722         * modules/float (Makefile.am): Likewise.
723         * modules/iconv_open (Makefile.am): Likewise.
724         * modules/inttypes (Makefile.am): Likewise.
725         * modules/locale (Makefile.am): Likewise.
726         * modules/math (Makefile.am): Likewise.
727         * modules/netinet_in (Makefile.am): Likewise.
728         * modules/search (Makefile.am): Likewise.
729         * modules/signal (Makefile.am): Likewise.
730         * modules/stdarg (Makefile.am): Likewise.
731         * modules/stdint (Makefile.am): Likewise.
732         * modules/stdio (Makefile.am): Likewise.
733         * modules/stdlib (Makefile.am): Likewise.
734         * modules/string (Makefile.am): Likewise.
735         * modules/strings (Makefile.am): Likewise.
736         * modules/sys_select (Makefile.am): Likewise.
737         * modules/sys_socket (Makefile.am): Likewise.
738         * modules/sys_stat (Makefile.am): Likewise.
739         * modules/sys_time (Makefile.am): Likewise.
740         * modules/sysexits (Makefile.am): Likewise.
741         * modules/time (Makefile.am): Likewise.
742         * modules/unistd (Makefile.am): Likewise.
743         * modules/wchar (Makefile.am): Likewise.
744         * modules/wctype (Makefile.am): Likewise.
745         Reported by Reuben Thomas <rrt@sc3d.org>.
746
747 2008-08-29  Bruno Haible  <bruno@clisp.org>
748
749         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
750         any more.
751
752 2008-08-29  Simon Josefsson  <simon@josefsson.org>
753
754         * MODULES.html.sh (Misc): Add bitrotate.
755
756         * modules/bitrotate: New file.
757
758         * lib/bitrotate.h: New file.
759
760         * modules/bitrotate-tests: New file.
761
762         * tests/test-bitrotate.c: New file.
763
764         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
765         on the bitrotate module.
766
767         * lib/arctwo.c: Use new bitrotate module.
768
769 2008-08-29  Jim Meyering  <meyering@redhat.com>
770
771         bootstrap: merge changes from coreutils
772         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
773         of copied files.  Remove a kludge, now that this is fixed.
774         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
775         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
776         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
777
778 2008-08-29  Bruno Haible  <bruno@clisp.org>
779
780         * MODULES.html.sh: Remove --cvs-urls option.
781
782 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
783
784         maint.mk: adjust to file name change
785         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
786
787 2008-08-28  Jim Meyering  <meyering@redhat.com>
788
789         * modules/getndelim2 (License): Relicense to LGPLv2+.
790         Approved by Richard Stallman for the version of 1995, and by
791         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
792
793 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
794
795         * lib/getdelim.c (flockfile, funlockfile): Make all of them
796         dummy if one is not available.  Do not touch them if
797         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
798         (getc_maybe_unlocked): New.
799         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
800
801 2008-08-26  Eric Blake  <ebb9@byu.net>
802
803         doc/INSTALL: resync from autoconf
804         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
805         (INSTALL_PRELUDE): Delete; this is done more efficiently by
806         moving...
807         * install.texi [!autoconf]: ...here.  Resync from autoconf.
808         * INSTALL: Regenerate.
809         * INSTALL.ISO: New file.
810         * INSTALL.UTF-8: Likewise.
811
812 2008-08-26  Jim Meyering  <meyering@redhat.com>
813
814         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
815         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
816         these definitions conditional, so that they may be overridden, too.
817
818 2008-08-26  Bruno Haible  <bruno@clisp.org>
819
820         Generate INSTALL file variants with prettier quotes.
821         * doc/Makefile (INSTALL_PRELUDE): New macro.
822         (INSTALL): Use it.
823         (INSTALL.ISO, INSTALL.UTF-8): New rules.
824
825 2008-08-26  Bruno Haible  <bruno@clisp.org>
826
827         Run makeinfo in an English locale.
828         * doc/Makefile (MAKEINFO): New variable.
829
830 2008-08-26  Bruno Haible  <bruno@clisp.org>
831
832         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
833         Suggested by Eric Blake.
834
835 2008-08-25  Bruno Haible  <bruno@clisp.org>
836
837         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
838
839 2008-08-25  Eric Blake  <ebb9@byu.net>
840
841         c-stack: test that stack overflow can be caught
842         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
843         that platform allows handling stack overflow; at least OS/2 EMX
844         has sigaltstack, but crashes before transferring control to
845         handler on stack overflow.
846         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
847         check for HAVE_STACK_OVERFLOW_HANDLING.
848         Reported by Elbert Pol.
849
850 2008-08-25  Bruno Haible  <bruno@clisp.org>
851
852         * doc/posix-functions/strftime.texi: Fix description of strftime
853         module.
854
855 2008-08-24  Bruno Haible  <bruno@clisp.org>
856
857         * tests/uniwidth/test-uc_width2.c: New file.
858         * tests/uniwidth/test-uc_width2.sh: New file.
859         * modules/uniwidth/width-tests (Files): Add the new files.
860         (TESTS): Add uniwidth/test-uc_width2.sh.
861         (TESTS_ENVIRONMENT): New variable.
862         (check_PROGRAMS): Add test-uc_width2.
863         (test_uc_width2_SOURCES): New variable.
864
865         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
866         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
867         not 0x00AB.
868         Reported by Alexander V. Lukyanov <lav@netis.ru>.
869
870 2008-08-22  Eric Blake  <ebb9@byu.net>
871
872         test-lock, test-tls: mention why a test is skipped
873         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
874         skipped.
875         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
876
877         count-one-bits: relax license
878         * modules/count-one-bits (License): Relicense to LGPLv2+.
879         Suggested by Ludovic Courtès, approved by Ben Pfaff.
880
881 2008-08-22  Andreas Schwab  <schwab@suse.de>
882
883         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
884         Remove spurious space in assignment.
885
886 2008-08-21  Simon Josefsson  <simon@josefsson.org>
887
888         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
889         Paul Eggert <eggert@CS.UCLA.EDU>.
890
891 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
892
893         * modules/gettext: Add m4/threadlib.m4.
894
895 2008-08-19  Eric Blake  <ebb9@byu.net>
896
897         test-c-stack: fix compilation failure on FreeBSD 5.0
898         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
899         headers before <sys/resource.h>.
900         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
901         the bug.
902         Reported by Nelson H. F. Beebe.
903
904         strverscmp: migrate from "strverscmp.h" to <string.h>
905         * modules/string (Makefile.am): Add new hooks.
906         * modules/strverscmp (Files): Remove strverscmp.h.
907         (Depends-on): Add string.
908         (configure.ac): Add indicator.
909         (Include): Mention new header.
910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
911         defaults.
912         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
913         results.
914         * lib/strverscmp.h: Delete.
915         * lib/string.in.h (strverscmp): Provide declaration, when needed.
916         * tests/test-strverscmp.c (includes): Adjust client.
917         * lib/check-version.c (includes): Likewise.
918         * NEWS: Document the change.
919
920         strverscmp: add unit test
921         * modules/strverscmp-tests: New file.
922         * tests/test-strverscmp.c: Likewise.
923
924 2008-08-19  Simon Josefsson  <simon@josefsson.org>
925
926         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
927         regarding Windows crypto stuff, from Mono.
928
929 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
930
931         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
932         if present, for intel RND.  Return error on failures.
933
934 2008-08-18  Ben Pfaff  <blp@gnu.org>
935
936         gitlog-to-changelog: give better diagnostic for failed pipe-open
937         * build-aux/gitlog-to-changelog: Improve error message: suggest
938         that the version of Git may be too old.
939
940 2008-08-18  Simon Josefsson  <simon@josefsson.org>
941
942         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
943         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
944
945 2008-08-18  Bruno Haible  <bruno@clisp.org>
946
947         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
948         pthread_in_use().
949
950 2008-08-18  Bruno Haible  <bruno@clisp.org>
951
952         * lib/glthread/threadlib.c: Include <pthread.h>.
953
954 2008-08-18  Bruno Haible  <bruno@clisp.org>
955
956         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
957         glthread_recursive_lock_* macros.
958         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
959         Fix syntax error.
960
961 2008-08-18  Bruno Haible  <bruno@clisp.org>
962
963         * lib/glthread/thread.c: Avoid forcing a context switch right after
964         thread creation.
965
966 2008-08-17  Bruno Haible  <bruno@clisp.org>
967
968         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
969         * lib/glthread/thread.h: Provide Win32 specific implementation.
970         * modules/thread (Files): Add lib/glthread/thread.c.
971         (Depends-on): Add lock.
972         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
973
974 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
975
976         New module 'yield'.
977         * modules/yield: New file.
978         * lib/glthread/yield.h: New file.
979         * m4/yield.m4: New file.
980         * MODULES.html.sh (Multithreading): Add yield.
981
982 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
983
984         New module 'thread'.
985         * modules/thread: New file.
986         * lib/glthread/thread.h: New file.
987         * m4/thread.m4: New file.
988         * MODULES.html.sh (Multithreading): Add thread.
989
990 2008-08-17  Bruno Haible  <bruno@clisp.org>
991
992         * lib/glthread/lock.h: Include <stdlib.h> always.
993         * lib/glthread/tls.h: Likewise.
994         * lib/glthread/cond.h: Likewise.
995
996 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
997
998         New module 'cond'.
999         * modules/cond: New file.
1000         * lib/glthread/cond.h: New file.
1001         * lib/glthread/cond.c: New file.
1002         * m4/cond.m4: New file.
1003         * MODULES.html.sh (Multithreading): Add cond.
1004
1005 2008-08-16  Eric Blake  <ebb9@byu.net>
1006
1007         c-stack: fix regression on Irix 5.3 from 2008-06-21
1008         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
1009         sa_sigaction...
1010         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
1011         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
1012         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
1013         * modules/signal (Makefile.am): Use the value.
1014         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
1015         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
1016         * doc/posix-headers/signal.texi (signal.h): Document this
1017         portability issue.
1018         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
1019         Reported by Tom G. Christensen.
1020
1021 2008-08-17  Bruno Haible  <bruno@clisp.org>
1022
1023         New module 'threadlib'.
1024         * modules/threadlib: New file.
1025         * lib/glthread/threadlib.c: New file, extracted from
1026         lib/glthread/lock.c.
1027         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
1028         functions.
1029         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
1030         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
1031         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
1032         macros.
1033         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
1034         (gl_DISABLE_THREADS): Remove macro.
1035         * modules/lock (Files): Remove build-aux/config.rpath.
1036         (Depends-on): Remove havelib. Add threadlib.
1037         (configure.ac-early): Remove section.
1038         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
1039         * modules/tls (Depends-on): Remove lock. Add threadlib.
1040         (Link): New section, copied from threadlib.
1041         * MODULES.html.sh (Multithreading): Add threadlib.
1042
1043 2008-08-14  Bruno Haible  <bruno@clisp.org>
1044
1045         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
1046         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
1047         glthread_rwlock_unlock, glthread_rwlock_destroy,
1048         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
1049         glthread_recursive_lock_destroy): Define as macros always.
1050         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
1051         glthread_lock_lock.
1052         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
1053         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
1054         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
1055         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
1056         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
1057         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
1058         (glthread_recursive_lock_lock_func): Renamed from
1059         glthread_recursive_lock_lock.
1060         (glthread_recursive_lock_unlock_func): Renamed from
1061         glthread_recursive_lock_unlock.
1062         (glthread_recursive_lock_destroy_func): Renamed from
1063         glthread_recursive_lock_destroy.
1064
1065 2008-08-14  Bruno Haible  <bruno@clisp.org>
1066
1067         * lib/glthread/lock.h: Renamed from lib/lock.h.
1068         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
1069         * lib/glthread/tls.h: Renamed from lib/tls.h.
1070         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
1071         * lib/fstrcmp.c: Update includes.
1072         * lib/strsignal.c: Update includes.
1073         * modules/lock (Files, Makefile.am): Update.
1074         (Include): Change to "glthread/lock.h".
1075         * modules/tls (Files, Makefile.am): Update.
1076         (Include): Change to "glthread/tls.h".
1077         * tests/test-lock.c: Update includes.
1078         * tests/test-tls.c: Update includes.
1079         * NEWS: Mention the renamed header files.
1080
1081 2008-08-11  Jim Meyering  <meyering@redhat.com>
1082
1083         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
1084
1085 2008-08-11  Eric Blake  <ebb9@byu.net>
1086
1087         test-c-stack: avoid C99-ism
1088         * tests/test-c-stack.c (main): Fix whitespace, move declaration
1089         before statement.
1090         Reported by Alain Guibert.
1091
1092 2008-08-10  Jim Meyering  <meyering@redhat.com>
1093
1094         ensure that return value of uinttostr et al are not ignored
1095         * lib/inttostr.h (__GNUC_PREREQ): Define.
1096         (__attribute_warn_unused_result__): Define.
1097         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
1098
1099 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
1100
1101         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
1102         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
1103
1104 2008-08-07  Jim Meyering  <meyering@redhat.com>
1105
1106         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
1107
1108         * modules/mkstemp (License): Relicense under LGPLv2+.
1109         * modules/tempname (License): Likewise.
1110
1111 2008-08-06  Bruno Haible  <bruno@clisp.org>
1112
1113         * lib/poll.c (poll): Further micro-optimization.
1114
1115 2008-08-06  Jim Meyering  <meyering@redhat.com>
1116
1117         inet_pton.c: use locale-independent tolower
1118         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
1119         (inet_pton6): Use c_tolower rather than tolower.
1120         * modules/inet_pton (Depends-on): Add c-ctype.
1121
1122 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
1123
1124         * lib/poll.c (poll): Avoid division when timeout is 0, cache
1125         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
1126
1127 2008-08-06  Jim Meyering  <meyering@redhat.com>
1128
1129         * modules/inet_pton (License): Relicense under LGPLv2+.
1130
1131 2008-08-03  Bruno Haible  <bruno@clisp.org>
1132
1133         Additional non-aborting API for lock and tls.
1134         * lib/lock.h: Include <errno.h>.
1135         (glthread_lock_init): New macro/function.
1136         (gl_lock_init): Define as wrapper around glthread_lock_init.
1137         (glthread_lock_lock): New macro/function.
1138         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
1139         (glthread_lock_unlock): New macro/function.
1140         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
1141         (glthread_lock_destroy): New macro/function.
1142         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
1143         (glthread_rwlock_init): New macro/function.
1144         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
1145         (glthread_rwlock_rdlock): New macro/function.
1146         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
1147         (glthread_rwlock_wrlock): New macro/function.
1148         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
1149         (glthread_rwlock_unlock): New macro/function.
1150         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
1151         (glthread_rwlock_destroy): New macro/function.
1152         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
1153         (glthread_recursive_lock_init): New macro/function.
1154         (gl_recursive_lock_init): Define as wrapper around
1155         glthread_recursive_lock_init.
1156         (glthread_recursive_lock_lock): New macro/function.
1157         (gl_recursive_lock_lock): Define as wrapper around
1158         glthread_recursive_lock_lock.
1159         (glthread_recursive_lock_unlock): New macro/function.
1160         (gl_recursive_lock_unlock): Define as wrapper around
1161         glthread_recursive_lock_unlock.
1162         (glthread_recursive_lock_destroy): New macro/function.
1163         (gl_recursive_lock_destroy): Define as wrapper around
1164         glthread_recursive_lock_destroy.
1165         (glthread_once): New macro/function.
1166         (gl_once): Define as wrapper around glthread_once.
1167         Update function declarations.
1168         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
1169         glthread_rwlock_init. Return error code.
1170         (glthread_rwlock_rdlock_multithreaded): Renamed from
1171         glthread_rwlock_rdlock. Return error code.
1172         (glthread_rwlock_wrlock_multithreaded): Renamed from
1173         glthread_rwlock_wrlock. Return error code.
1174         (glthread_rwlock_unlock_multithreaded): Renamed from
1175         glthread_rwlock_unlock. Return error code.
1176         (glthread_rwlock_destroy_multithreaded): Renamed from
1177         glthread_rwlock_destroy. Return error code.
1178         (glthread_recursive_lock_init_multithreaded): Renamed from
1179         glthread_recursive_lock_init. Return error code.
1180         (glthread_recursive_lock_lock_multithreaded): Renamed from
1181         glthread_recursive_lock_lock. Return error code.
1182         (glthread_recursive_lock_unlock_multithreaded): Renamed from
1183         glthread_recursive_lock_unlock. Return error code.
1184         (glthread_recursive_lock_destroy_multithreaded): Renamed from
1185         glthread_recursive_lock_destroy. Return error code.
1186         (glthread_once_call): Make static.
1187         (glthread_once_multithreaded): Renamed from glthread_once.
1188         * lib/tls.h: Include <errno.h>.
1189         (glthread_tls_key_init): New macro/function.
1190         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
1191         (glthread_tls_set): New macro/function.
1192         (gl_tls_set): Define as wrapper around glthread_tls_set.
1193         (glthread_tls_key_destroy): New macro/function.
1194         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
1195         Update function declarations.
1196         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
1197         glthread_tls_get.
1198         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1199
1200 2008-08-04  Eric Blake  <ebb9@byu.net>
1201
1202         gnumakefile: use space, not TAB, outside of targets
1203         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
1204
1205 2008-08-02  Jim Meyering  <meyering@redhat.com>
1206
1207         getdate.y: avoid locale-dependent date parsing failure
1208         In Turkish locales, getdate would fail to recognize keywords
1209         containing a lowercase "i".  The solution is not to rely on
1210         locale-sensitive case-conversion.
1211         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
1212         (lookup_word): Use c_toupper in place of toupper.
1213         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
1214         Reported by Vefa Bicakci <bicave@superonline.com> in
1215         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
1216         * modules/getdate (Depends-on): Add c-ctype.
1217
1218 2008-08-02  Bruno Haible  <bruno@clisp.org>
1219
1220         * gnulib-tool (func_import): When updating or creating a .gitignore
1221         file, prepend each added line with a slash, and ignore leading slashes
1222         from the existing lines.
1223         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1224
1225 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1226
1227         Portability fix for GNU make 3.79.1.
1228         * top/GNUmakefile: Avoid 'else COND', which older GNU make
1229         versions do not understand.
1230
1231 2008-08-01  Bruno Haible  <bruno@clisp.org>
1232
1233         Work around bug of HP-UX 10.20 cc with -0.0 literal.
1234         * tests/test-isnanf.h (zero): New variable.
1235         (main): Avoid literal -0.0f.
1236         * tests/test-isnand.h (zero): New variable.
1237         (main): Avoid literal -0.0.
1238         * tests/test-isnanl.h (zero): New variable.
1239         (main): Avoid literal -0.0L.
1240         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
1241         (test_float, test_double, test_long_double): Avoid literals -0.0f,
1242         -0.0, -0.0L.
1243         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
1244         (test_signbitd): Avoid literal -0.0.
1245         (test_signbitl): Avoid literal -0.0L.
1246         * tests/test-ceilf1.c (zero): New variable.
1247         (main): Avoid literal -0.0f.
1248         * tests/test-ceill.c (zero): New variable.
1249         (main): Avoid literal -0.0L.
1250         * tests/test-floorf1.c (zero): New variable.
1251         (main): Avoid literal -0.0f.
1252         * tests/test-floorl.c (zero): New variable.
1253         (main): Avoid literal -0.0L.
1254         * tests/test-roundf1.c (zero): New variable.
1255         (main): Avoid literal -0.0f.
1256         * tests/test-round1.c (zero): New variable.
1257         (main): Avoid literal -0.0.
1258         * tests/test-roundl.c (zero): New variable.
1259         (main): Avoid literal -0.0L.
1260         * tests/test-truncf1.c (zero): New variable.
1261         (main): Avoid literal -0.0f.
1262         * tests/test-trunc1.c (zero): New variable.
1263         (main): Avoid literal -0.0.
1264         * tests/test-truncl.c (zero): New variable.
1265         (main): Avoid literal -0.0L.
1266         * tests/test-frexp.c (zero): New variable.
1267         (main): Avoid literal -0.0.
1268         * tests/test-frexpl.c (zero): New variable.
1269         (main): Avoid literal -0.0L.
1270         * tests/test-ldexpl.c (zero): New variable.
1271         (main): Avoid literal -0.0L.
1272         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1273         (zerod, zerol): New variables.
1274         (test_function): Avoid literals -0.0, -0.0L.
1275         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1276         (zerod, zerol): New variables.
1277         (test_function): Avoid literals -0.0, -0.0L.
1278         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1279         (zerod, zerol): New variables.
1280         (test_function): Avoid literals -0.0, -0.0L.
1281         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1282         (zerod, zerol): New variables.
1283         (test_function): Avoid literals -0.0, -0.0L.
1284         * tests/test-strtod.c (zero): New variable.
1285         (main): Avoid literal -0.0.
1286         Reported by Jonathan C. Patschke <jp@centtech.com>.
1287
1288 2008-07-31  Jim Meyering  <meyering@redhat.com>
1289
1290         sha256.h: correct definition of SHA224_DIGEST_SIZE
1291         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1292         Reported by Paulie Pena IV <paulie4@gmail.com>.
1293         Define as 224 / 8, rather than as a literal.
1294         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1295         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1296         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1297
1298 2008-07-31  Bruno Haible  <bruno@clisp.org>
1299
1300         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1301         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1302         Reported by Jonathan Patschke <jp@centtech.com>.
1303
1304 2008-07-31  Bruno Haible  <bruno@clisp.org>
1305
1306         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1307         Reported by Paolo Bonzini <bonzini@gnu.org>.
1308
1309 2008-07-30  Eric Blake  <ebb9@byu.net>
1310
1311         test-strtod: allow compilation without -lm
1312         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1313         Reported by Dennis Clarke <blastwave@gmail.com>.
1314
1315 2008-07-28  Jim Meyering  <meyering@redhat.com>
1316
1317         bootstrap: work also when there are no .po files in po/
1318         * build-aux/bootstrap (update_po_files): Complete the change
1319         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1320
1321 2008-07-27  Jim Meyering  <meyering@redhat.com>
1322
1323         * users.txt: Add zile.
1324
1325 2008-07-26  Ben Pfaff  <blp@gnu.org>
1326
1327         Add missing dependencies on new m4/exponent[fdl].m4 files.
1328         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1329         * modules/isnand-nolibm: Add m4/exponentd.m4.
1330         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1331         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1332         m4/isnan[fdl].m4, because the macros actually used moved.
1333         Reported by Jim Meyering.
1334
1335 2008-07-14  Ben Pfaff  <blp@gnu.org>
1336
1337         Add isinf module.
1338         * lib/isinf.c: New file.
1339         * lib/math.in.h: Define isinf macro if we have decided to replace
1340         it.
1341         * m4/isinf.m4: New file.
1342         * m4/math_h.m4: Initialize and substitute variables for isinf
1343         module.
1344         * modules/isinf: New file.
1345         * modules/isinf-tests: New file.
1346         * modules/math: Add substitutions for new module.
1347         * tests/test-isinf.c: New file.
1348         * doc/posix-functions/isinf.texi: Mention new module.
1349         * MODULES.html.sh: Mention new module.
1350
1351 2008-07-14  Ben Pfaff  <blp@gnu.org>
1352
1353         Factor out some macros for use by additional modules.
1354         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1355         exponentf.m4.
1356         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1357         exponentd.m4.
1358         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1359         file exponentl.m4.
1360         * m4/exponentf.m4: New file.
1361         * m4/exponentd.m4: New file.
1362         * m4/exponentl.m4: New file.
1363         * modules/isnanf: Use new file m4/exponentf.m4.
1364         * modules/isnand: Use new file m4/exponentd.m4.
1365         * modules/isnanl: Use new file m4/exponentl.m4.
1366
1367 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1368
1369         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1370         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1371         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1372         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1373
1374         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1375         readlink on platforms without PATH_MAX.
1376
1377 2008-07-21  Eric Blake  <ebb9@byu.net>
1378
1379         Warn, not fail, on stale version.
1380         * top/GNUmakefile (_curr-ver): Tone down previous patch.
1381
1382         Don't allow installation with stale devel version number.
1383         * top/GNUmakefile (_is-install-target): New macro.
1384         (_curr-ver): Forbid installation with stale version number.
1385
1386 2008-07-20  Bruno Haible  <bruno@clisp.org>
1387
1388         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
1389         TESTS_ENVIRONMENT.
1390         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
1391
1392 2008-07-20  Bruno Haible  <bruno@clisp.org>
1393
1394         * lib/c-stack.h (c_stack_action): Add documentation.
1395         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
1396
1397 2008-07-20  Bruno Haible  <bruno@clisp.org>
1398
1399         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1400         * modules/readlink (License): Likewise.
1401
1402 2008-07-17  Eric Blake  <ebb9@byu.net>
1403
1404         * modules/c-stack (Link): Fix typo.
1405
1406         Make c-stack use libsigsegv, when available.
1407         * modules/c-stack (Depends-on): Add libsigsegv.
1408         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1409         needed.
1410         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1411         (segv_handler, overflow_handler, c_stack_action)
1412         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1413         implementation when libsigsegv is available, but only when using
1414         the library is necessary.
1415         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1416         comment, explaining why XSI check fails on Linux.
1417         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
1418         * tests/test-c-stack2.sh: Tweak skip message.
1419         * NEWS: Document new link-time requirements.
1420
1421 2008-07-16  Eric Blake  <ebb9@byu.net>
1422
1423         c-stack: Expose false positives when not using libsigsegv.
1424         * modules/c-stack-tests (Files): Expand test.
1425         * tests/test-c-stack.c (main): Add means to conditionally trigger
1426         non-overflow SIGSEGV.
1427         * tests/test-c-stack2.sh: New file.
1428
1429 2008-07-14  Bruno Haible  <bruno@clisp.org>
1430
1431         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
1432         Reported by Eric Blake.
1433
1434 2008-07-14  Sam Steingold  <sds@gnu.org>
1435             Bruno Haible  <bruno@clisp.org>
1436
1437         New module libsigsegv.
1438         * modules/libsigsegv: New file.
1439         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
1440         modifications.
1441         * MODULES.html.sh (Signal handling): New section.
1442
1443 2008-07-14  Bruno Haible  <bruno@clisp.org>
1444
1445         * modules/unictype/ctype-* (Description): Add the word "function".
1446         Improves the resulting doc in MODULES.html.
1447
1448 2008-07-12  Ben Pfaff  <blp@gnu.org>
1449
1450         Add longlong module.
1451         * modules/longlong: New file.
1452
1453 2008-07-12  Bruno Haible  <bruno@clisp.org>
1454
1455         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
1456         to empty.
1457
1458 2008-07-10  Ben Pfaff  <blp@gnu.org>
1459
1460         Add isnan module.
1461         * doc/posix-functions/isnan.texi: Mention new module.
1462         * lib/math.in.h: Define isnan macro if we have decided to replace
1463         it.
1464         * m4/isnan.m4: New file.
1465         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
1466         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
1467         also.
1468         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
1469         redundancy.
1470         * m4/math_h.m4: Initialize and substitute variables for isnan
1471         module.
1472         * modules/isnan: New file.
1473         * modules/isnan-tests: New file.
1474         * modules/math: Add substitutions for new module.
1475         * tests/test-isnan.c: New file.
1476         * MODULES.html.sh: Mention new module.
1477
1478 2008-07-10  Ben Pfaff  <blp@gnu.org>
1479
1480         Add isnanf module.
1481         * lib/isnanf.m4: New file.
1482         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
1483         (gl_HAVE_ISNANF_IN_LIBM): New macro.
1484         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
1485         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
1486         * modules/isnanf: New file.
1487         * modules/isnanf-tests: New file.
1488         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
1489         files.
1490         * tests/test-isnanf-nolibm.c: factored most of its contents into
1491         new file tests/test-isnanf.h.
1492         * tests/test-isnanf.h: New file.
1493         * tests/test-isnanf.c: New file.
1494         * MODULES.html.sh: Mention new module.
1495         * doc/glibc-functions/isnanf.texi: Mention new module.
1496
1497 2008-07-10  Ben Pfaff  <blp@gnu.org>
1498
1499         Add isnand module.
1500         * lib/isnand.h: New file.
1501         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
1502         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
1503         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
1504         functionality also.
1505         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
1506         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
1507         (gl_HAVE_ISNAND_IN_LIBM): New macro.
1508         * modules/isnand: New file.
1509         * modules/isnand-tests: New file.
1510         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
1511         files.
1512         * tests/test-isnand-nolibm.c: factored most of its contents into
1513         new file tests/test-isnand.h.
1514         * tests/test-isnand.h: New file.
1515         * tests/test-isnand.c: New file.
1516         * MODULES.html.sh: Mention new module.
1517
1518 2008-07-10  Ben Pfaff  <blp@gnu.org>
1519
1520         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
1521         * lib/isnand.h: Rename lib/isnand-nolibm.h.
1522         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
1523         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
1524         * modules/isnanf-nolibm: Update references to renamed files.
1525         * modules/isnand-nolibm: Likewise.
1526         * modules/isnanf-nolibm-tests: Likewise.
1527         * modules/isnand-nolibm-tests: Likewise.
1528         * lib/frexp.c: Likewise.
1529         * lib/isfinite.c: Likewise.
1530         * lib/signbitd.c: Likewise.
1531         * lib/signbitf.c: Likewise.
1532         * lib/vasnprintf.c: Likewise.
1533         * tests/test-ceilf1.c: Likewise.
1534         * tests/test-ceilf2.c: Likewise.
1535         * tests/test-floorf1.c: Likewise.
1536         * tests/test-floorf2.c: Likewise.
1537         * tests/test-frexp.c: Likewise.
1538         * tests/test-round1.c: Likewise.
1539         * tests/test-round2.c: Likewise.
1540         * tests/test-roundf1.c: Likewise.
1541         * tests/test-strtod.c: Likewise.
1542         * tests/test-trunc1.c: Likewise.
1543         * tests/test-trunc2.c: Likewise.
1544         * tests/test-truncf1.c: Likewise.
1545         * tests/test-truncf2.c: Likewise.
1546         * NEWS: Mention the renamed header files.
1547
1548 2008-07-11  Jim Meyering  <meyering@redhat.com>
1549
1550         vc-list-files: make the last-resort awk code more portable
1551         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
1552         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
1553         does not support it.
1554
1555 2008-07-10  Eric Blake  <ebb9@byu.net>
1556
1557         Work with tar's bootstrap.
1558         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
1559         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
1560         an m4 comment.
1561
1562 2008-07-09  Jim Meyering  <meyering@redhat.com>
1563
1564         posix-shell.m4: fix typo that made this test malfunction
1565         * m4/posix-shell.m4: Remove capitalization in variable name.
1566
1567 2008-07-08  Bruno Haible  <bruno@clisp.org>
1568
1569         * m4/onceonly.m4: Update comments.
1570         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1571
1572 2008-07-04  Jim Meyering  <meyering@redhat.com>
1573
1574         * users.txt: Add vc-dwim.
1575         (bison, coreutils): Use the gitweb URL.
1576
1577 2008-07-03  Jim Meyering  <meyering@redhat.com>
1578
1579         * users.txt: Add libffcall.  From Sam Steingold.
1580
1581 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
1582
1583         getdate.y: do not ignore TZ with relative day, month or year offset
1584         * lib/getdate.y (get_date): Move the tz-handling block to follow the
1585         relative-date-handling, since otherwise, the latter would clobber the
1586         sole output (an updated Start value) of the tz-handling block.
1587         * tests/test-getdate.c: Tests for the fix
1588
1589 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1590
1591         Recognize 'foo_LIBRARIES += libgnu.a'.
1592         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
1593         makefile snippet has already specified an installation location,
1594         also using '+='.
1595
1596 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
1597
1598         getdate.y: factor out common actions
1599         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
1600         Use them in place of open-coded actions.
1601
1602 2008-07-01  Simon Josefsson  <simon@josefsson.org>
1603
1604         Add self-test for getdate module.
1605         * modules/getdate-tests: New file.
1606         * tests/test-getdate.c: New file.
1607
1608 2008-06-29  Bruno Haible  <bruno@clisp.org>
1609
1610         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
1611         .gitignore.
1612         Reported by Sylvain Beucler <beuc@beuc.net>.
1613
1614 2008-06-29  Bruno Haible  <bruno@clisp.org>
1615
1616         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
1617         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
1618
1619 2008-06-29  Bruno Haible  <bruno@clisp.org>
1620
1621         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
1622         EXTRA_DIST.
1623         Reported by Sylvain Beucler <beuc@beuc.net>.
1624
1625 2008-06-26  Jim Meyering  <meyering@redhat.com>
1626
1627         make several modules depend on the "open" module
1628         This provides slightly increased consistency when opening-for-write
1629         the name of a non-directory spelled with a trailing slash.
1630         * modules/chdir-safer: Likewise.
1631         * modules/chown: Likewise.
1632         * modules/clean-temp: Likewise.
1633         * modules/copy-file: Likewise.
1634         * modules/fchdir: Likewise.
1635         * modules/fcntl-safer: Likewise.
1636         * modules/pipe: Likewise.
1637         * modules/utime: Likewise.
1638         Prompted by Eric Blake and Bruno Haible.
1639
1640 2008-06-24  Andreas Schwab  <schwab@suse.de>
1641
1642         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
1643         literals can be used as initializers for global variables.
1644
1645 2008-06-23  Eric Blake  <ebb9@byu.net>
1646
1647         Make gnulib-cache.m4 easier to diff.
1648         * gnulib-tool (func_import): Allow newlines when reading cached
1649         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
1650
1651 2008-06-23  Bruno Haible  <bruno@clisp.org>
1652
1653         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
1654         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
1655         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
1656         m4/signalblocking.m4.
1657         (gl_PREREQ_SIGACTION): Don't invoke it.
1658         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
1659         gl_PREREQ_SIG_HANDLER_H.
1660         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1661         Don't check for sigaction here.
1662
1663 2008-06-23  Bruno Haible  <bruno@clisp.org>
1664
1665         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
1666         (install_handlers): Don't set the SA_RESETHAND flag.
1667
1668 2008-06-23  Bruno Haible  <bruno@clisp.org>
1669
1670         * m4/sigaction.m4: Comment fixes.
1671         * lib/signal.in.h: Likewise.
1672
1673 2008-06-23  Eric Blake  <ebb9@byu.net>
1674
1675         Fix typo.
1676         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
1677
1678         Avoid SA_ namespace.
1679         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
1680         Reported by Ralf Wildenhues.
1681
1682         Avoid test failure due to SA_RESTORER.
1683         * tests/test-sigaction.c (SA_MASK): New macro.
1684         (main): Avoid failing due to extension flags being set.
1685         Reported by Jim Meyering.
1686
1687         Revert use of sig-handler.h in sigprocmask.c.
1688         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
1689         it requires the existence of struct sigaction.
1690         * lib/sigprocmask.c (handler_t): Restore typedef.
1691         (rpl_signal, old_handlers): Use local type.
1692
1693 2008-06-22  Bruno Haible  <bruno@clisp.org>
1694
1695         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1696         conditionally.
1697         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1698
1699 2008-06-22  Bruno Haible  <bruno@clisp.org>
1700
1701         * doc/posix-functions/siginterrupt.texi: Move note.
1702
1703         * lib/signal.in.h (SA_RESTART): New macro.
1704         * lib/sigaction.c: Update comment.
1705
1706         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
1707
1708         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
1709         (gl_PREREQ_SIGPROCMASK): Invoke it.
1710         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
1711
1712         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
1713
1714         * lib/sigprocmask.c: Update a comment.
1715
1716 2008-06-21  Eric Blake  <ebb9@byu.net>
1717
1718         Use sigaction module rather than signal().
1719         * modules/c-stack (Depends-on): Add sigaction.
1720         * modules/fatal-signal (Depends-on): Likewise.
1721         * modules/nanosleep (Depends-on): Likewise.
1722         * modules/sigprocmask (Files): Add sig-handler.h.
1723         * modules/sigaction (Files): Likewise.
1724         * lib/sig-handler.h (get_handler): New file, suggested by Paul
1725         Eggert.
1726         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
1727         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
1728         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1729         (init_fatal_signals): Likewise.
1730         * lib/nanosleep.c (rpl_nanosleep): Likewise.
1731         (siginterrupt): Delete fallback.
1732         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
1733         instead.
1734         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
1735         siginterrupt.
1736
1737         New module sigaction, for mingw.
1738         * modules/sigaction: New module...
1739         * modules/sigaction-tests: ...and its test.
1740         * m4/sigaction.m4: New file.
1741         * lib/sigaction.c: Likewise.
1742         * tests/test-sigaction.c: Likewise.
1743         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
1744         * modules/signal (Makefile.am): Likewise.
1745         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
1746         needed.
1747         * doc/posix-headers/signal.texi (signal.h): Mention provided
1748         types.
1749         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
1750         that sigaction is preferable.
1751         * doc/posix-functions/sigaction.texi (sigaction): Mention new
1752         module.
1753         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1754         sigaction.
1755
1756         Improve robustness of sigprocmask by overriding signal.
1757         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
1758         is in use.
1759         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
1760         (SIGKILL, SIGSTOP): Provide fallbacks.
1761         (rpl_signal): Implement.
1762         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
1763         signal can be called inside handlers.
1764
1765         Fix nanosleep module on mingw.
1766         * modules/nanosleep (Depends-on): Add sys_select.
1767         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
1768
1769         Fix licensing of sigprocmask.
1770         * modules/raise (License): Relicense as LGPL.
1771
1772 2008-06-21  Bruno Haible  <bruno@clisp.org>
1773
1774         * lib/propername.c (proper_name_utf8): Don't use the transliterated
1775         result if it contains question marks.
1776         Reported by Michael Geng <linux@michaelgeng.de>.
1777
1778 2008-06-19  Bruno Haible  <bruno@clisp.org>
1779
1780         Fix CVS-ism.
1781         * doc/gnulib.texi: Include updated-stamp.texi.
1782         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
1783         (updated-stamp.texi): New rule.
1784         (gnulib.info): Depend on it.
1785         * doc/.gitignore: Add updated-stamp.texi.
1786         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
1787
1788 2008-06-19  Bruno Haible  <bruno@clisp.org>
1789
1790         * doc/Makefile (gnulib.info): Update and simplify dependencies.
1791         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1792
1793 2008-06-19  Eric Blake  <ebb9@byu.net>
1794
1795         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
1796         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
1797         Reported by Stepan Kasal.
1798
1799 2008-06-18  Bruno Haible  <bruno@clisp.org>
1800
1801         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1802         Reported by Eric Blake.
1803
1804 2008-06-18  Eric Blake  <ebb9@byu.net>
1805
1806         Work around cygwin 1.5.25 strsignal bug.
1807         * tests/test-strsignal.c: Allow for const char *.
1808         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
1809
1810 2008-06-18  Simon Josefsson  <simon@josefsson.org>
1811
1812         * users.txt: Update URL to article and add author/date
1813         information.
1814
1815 2008-06-17  Bruno Haible  <bruno@clisp.org>
1816
1817         New macro gl_DISABLE_THREADS.
1818         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
1819         if the user did not pass --enable-threads or --disable-threads option.
1820         (gl_DISABLE_THREADS): New macro.
1821         Reported by Eric Blake <ebb9@byu.net>.
1822
1823 2008-06-17  Bruno Haible  <bruno@clisp.org>
1824
1825         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
1826         when the macro ignores it.
1827         Based on a patch by Eric Blake <ebb9@byu.net>.
1828
1829 2008-06-17  Bruno Haible  <bruno@clisp.org>
1830
1831         * modules/tls (License): Change to LGPLv2+.
1832         Reported by Eric Blake.
1833
1834 2008-06-17  Eric Blake  <ebb9@byu.net>
1835
1836         Simplify c-stack prerequisites.
1837         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
1838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
1839         no longer requires <ucontext.h> to exist.  Optimize setrlimit
1840         check.
1841         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
1842         <sys/resource.h>.
1843
1844         Move c-stack test into testsuite.
1845         * modules/c-stack-tests: New file.
1846         * lib/c-stack.c [DEBUG]: Move test program...
1847         * tests/test-c-stack.c: ...into this new file.  Skip rather than
1848         fail test if sigaltstack is lacking.
1849         * tests/test-c-stack.sh: New driver file.
1850
1851 2008-06-16  Eric Blake  <ebb9@byu.net>
1852
1853         Use raise module consistently.
1854         * modules/fatal-signal (Depends-on): Add raise.
1855         * modules/sigprocmask (Depends-on): Likewise.
1856         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
1857         * lib/sigprocmask.c (sigprocmask): Likewise.
1858         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1859         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
1860
1861         Fix compliance bug in sigpending.
1862         * lib/sigprocmask.c (sigpending): Return pending array via
1863         parameter, not return value.
1864
1865 2008-06-14  Eric Blake  <ebb9@byu.net>
1866
1867         Improve obstack-printf test code.
1868         * tests/test-obstack-printf.c (test_function): Fix comment, and
1869         simplify usage of obstack_* in macros.  Add a test for coverage.
1870         Reported by Bruno Haible.
1871
1872 2008-06-14  Bruno Haible  <bruno@clisp.org>
1873
1874         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
1875         array size as a constant, not as a const variable.
1876         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
1877         AC_USE_SYSTEM_EXTENSIONS.
1878         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1879         Test whether the obstack_printf function actually exists.
1880         * modules/obstack-printf (Depends-on): Add extensions.
1881         (Include): Remove obstack.h.
1882         * modules/obstack-printf-posix (Depends-on): Add extensions.
1883         (Include): Remove obstack.h.
1884
1885 2008-06-13  Eric Blake  <ebb9@byu.net>
1886
1887         Add obstack-printf and obstack-printf-posix modules.
1888         * modules/obstack-printf: New file.
1889         * modules/obstack-printf-posix: Likewise.
1890         * MODULES.html.sh (Misc): Mention them.
1891         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
1892         Likewise.
1893         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
1894         Likewise.
1895         * modules/stdio (Makefile.am): Accomodate new modules.
1896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1897         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
1898         Declare.
1899         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
1900         functions.
1901         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
1902         (gl_REPLACE_OBSTACK_PRINTF): New macros
1903         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
1904         * tests/test-obstack-printf.c: New file.
1905         * modules/obstack-printf-tests: Likewise.
1906         * modules/obstack-printf-posix-tests: Likewise.
1907
1908 2008-06-11  Bruno Haible  <bruno@clisp.org>
1909
1910         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
1911         * lib/open.c: Include errno.h.
1912         (open): Fail when attempting to write to a file that has a trailing
1913         slash.
1914         * tests/test-open.c (main): Test against trailing slash bug.
1915         * doc/posix-functions/open.texi: Mention the trailing slash bug.
1916
1917 2008-06-10  Bruno Haible  <bruno@clisp.org>
1918
1919         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
1920         for $? to work inside the trap command, with various /bin/sh-s.
1921         * tests/test-vc-list-files-cvs.sh: Likewise.
1922
1923 2008-06-10  Bruno Haible  <bruno@clisp.org>
1924
1925         * lib/acl-internal.h: Don't include gettext.h here.
1926         * lib/set-mode-acl.c: Include gettext.h here.
1927         * lib/copy-acl.c: Likewise.
1928
1929 2008-06-10  Bruno Haible  <bruno@clisp.org>
1930
1931         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
1932         * lib/wait-process.c (wait_subprocess): Likewise.
1933         * lib/execute.h (execute): Add termsigp argument.
1934         * lib/execute.c (execute): Likewise.
1935         * lib/csharpcomp.c (compile_csharp_using_pnet,
1936         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
1937         * lib/csharpexec.c (execute_csharp_using_pnet,
1938         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
1939         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1940         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1941         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1942         is_jikes_present): Update.
1943         * lib/javaexec.c (execute_java_class): Update.
1944         * lib/javaversion.c (execute_and_read_line): Update.
1945         * NEWS: Document the changes.
1946         Reported by Eric Blake.
1947
1948 2008-06-10  Eric Blake  <ebb9@byu.net>
1949
1950         Add missing include.
1951         * tests/test-strstr.c (includes): Add <signal.h>.
1952         * tests/test-strcasestr.c (includes): Likewise.
1953         * tests/test-memmem.c (includes): Likewise.
1954
1955 2008-06-10  Bruno Haible  <bruno@clisp.org>
1956
1957         * lib/wait-process.c (wait_subprocess): Add an assertion.
1958
1959 2008-06-10  Bruno Haible  <bruno@clisp.org>
1960
1961         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
1962
1963 2008-06-10  Bruno Haible  <bruno@clisp.org>
1964
1965         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
1966         using alarm().
1967         * tests/test-strcasestr.c (main): Likewise.
1968         * tests/test-strstr.c (main): Likewise.
1969
1970 2008-06-09  Bruno Haible  <bruno@clisp.org>
1971
1972         Work around the Solaris 10 ACE ACLs ABI change.
1973         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
1974         declare if ACL_NO_TRIVIAL is present.
1975         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
1976         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
1977         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
1978         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
1979         define if ACL_NO_TRIVIAL is present.
1980         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
1981         and use the current ABI.
1982         (file_has_acl): Use same #if condition as elsewhere.
1983         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
1984         in use, and use the current ABI.
1985         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
1986         Reported by Jim Meyering.
1987
1988 2008-06-09  Eric Blake  <ebb9@byu.net>
1989
1990         Work around environments that (stupidly) ignore SIGALRM.
1991         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
1992         before using alarm().
1993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1994         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1995         Reported by Ian Beckwith <ianb@erislabs.net>.
1996
1997         Produce autobuild blurb earlier in log.
1998         * modules/autobuild (configure.ac-early): Move AB_INIT here.
1999
2000 2008-06-09  Jim Meyering  <meyering@redhat.com>
2001         and Ondřej Vašík  <ovasik@redhat.com>
2002
2003         utimens.c: correct kernel bug work-around
2004         Ondřej Vašík found that the invalid return value of 280 indicates
2005         failure, not success, and the kernel bug we're trying to work
2006         around affects not just the utimensat call, but also the fallback
2007         futimens call.
2008         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
2009         not success.
2010         [HAVE_FUTIMENS]: Use the same work-around, here.
2011
2012 2008-06-09  Jim Meyering  <meyering@redhat.com>
2013
2014         add more guards around definition of ACE_-related code
2015         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
2016         ALLOW and ACE_OWNER are also defined.
2017
2018 2008-06-08  Bruno Haible  <bruno@clisp.org>
2019
2020         * lib/acl-internal.h: Add me as co-author.
2021         * lib/file-has-acl.c: Likewise.
2022         * lib/set-mode-acl.c: Likewise.
2023         * lib/copy-acl.c: Likewise.
2024
2025 2008-06-08  Bruno Haible  <bruno@clisp.org>
2026
2027         Add support for AIX ACLs.
2028         * lib/acl-internal.h (acl_nontrivial): New declaration.
2029         * lib/file-has-acl.c (acl_nontrivial): New function.
2030         (file_has_acl): Add implementation using AIX 4 ACL API.
2031         * lib/set-mode-acl.c (qset_acl): Likewise.
2032         * lib/copy-acl.c (qcopy_acl): Likewise.
2033
2034 2008-06-08  Bruno Haible  <bruno@clisp.org>
2035
2036         Add support for HP-UX ACLs.
2037         * lib/acl-internal.h (acl_nontrivial): New declaration.
2038         * lib/file-has-acl.c (acl_nontrivial): New function.
2039         (file_has_acl): Add implementation using HP-UX 11 ACL API.
2040         * lib/set-mode-acl.c (qset_acl): Likewise.
2041         * lib/copy-acl.c (qcopy_acl): Likewise.
2042
2043 2008-06-08  Bruno Haible  <bruno@clisp.org>
2044
2045         Add support for Cygwin ACLs.
2046         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
2047         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
2048         the chmod_or_fchmod call.
2049         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
2050
2051 2008-06-08  Bruno Haible  <bruno@clisp.org>
2052
2053         Fix bug with setuid modes in Solaris 10+ code.
2054         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
2055         succeeded, when the mode contains some special bits.
2056
2057 2008-06-08  Bruno Haible  <bruno@clisp.org>
2058
2059         Add support for Solaris 7..10 ACLs.
2060         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
2061         declarations.
2062         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
2063         functions.
2064         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
2065         * lib/set-mode-acl.c (qset_acl): Likewise.
2066         * lib/copy-acl.c (qcopy_acl): Likewise.
2067
2068 2008-06-08  Bruno Haible  <bruno@clisp.org>
2069
2070         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
2071         declaration.
2072         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
2073         (acl_access_nontrivial): Remove MacOS X case.
2074         (file_has_acl): Use acl_extended_nontrivial.
2075         * lib/copy-acl.c (qcopy_acl): Likewise.
2076
2077 2008-06-08  Bruno Haible  <bruno@clisp.org>
2078
2079         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
2080
2081 2008-06-08  Jim Meyering  <meyering@redhat.com>
2082
2083         * modules/acl (Maintainer): Add Bruno Haible.
2084
2085 2008-06-07  Bruno Haible  <bruno@clisp.org>
2086
2087         Improve support for Tru64 ACLs.
2088         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
2089         ACL on OSF/1.
2090
2091 2008-06-07  Bruno Haible  <bruno@clisp.org>
2092
2093         Add support for MacOS X ACLs.
2094         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
2095         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
2096         * lib/set-mode-acl.c (qset_acl): Likewise.
2097         * lib/copy-acl.c (qcopy_acl): Likewise.
2098
2099 2008-06-07  Bruno Haible  <bruno@clisp.org>
2100
2101         Fix memory leak introduced on 2008-05-22.
2102         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
2103         use.
2104
2105 2008-06-07  Bruno Haible  <bruno@clisp.org>
2106
2107         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
2108         to construct an empty ACL.
2109
2110 2008-06-07  Bruno Haible  <bruno@clisp.org>
2111
2112         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
2113         precisely.
2114         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
2115
2116 2008-06-07  Bruno Haible  <bruno@clisp.org>
2117
2118         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
2119         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
2120
2121 2008-06-07  Bruno Haible  <bruno@clisp.org>
2122
2123         * doc/posix-functions/_setjmp.texi: Explain the use of this function
2124         regardless of POSIX.
2125         * doc/posix-functions/_longjmp.texi: Likewise.
2126         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
2127         SystemV platform in this case.
2128
2129 2008-06-06  Eric Blake  <ebb9@byu.net>
2130
2131         Document abort() bugs.
2132         * doc/posix-functions/abort.texi (abort): Mention anomalies.
2133
2134         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
2135         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
2136         sigsetjmp.
2137         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
2138         siglongjmp, but only as a macro.
2139         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
2140         is obsolete.
2141         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
2142
2143         Tweak documentation to cover cygwin argz bugs.
2144         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
2145         argz bug fix; no code change needed since no cygwin releases
2146         occurred between the last fix and the bug being tested.
2147         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
2148         module and recently fixed cygwin bugs.
2149         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
2150         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
2151         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
2152         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
2153         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
2154         Likewise.
2155         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
2156         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
2157         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
2158         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
2159         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
2160         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
2161         Likewise.
2162
2163         Avoid gcc warning on cygwin.
2164         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
2165         !ACL_NO_TRIVIAL]: Avoid unused variable.
2166
2167 2008-06-05  Eric Blake  <ebb9@byu.net>
2168
2169         Be tolerant of UNKNOWN version in gnulib-tool test dir.
2170         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
2171         git-version-gen fails to come up with a version.
2172         Reported by Simon Josefsson.
2173
2174 2008-06-05  Jim Meyering  <meyering@redhat.com>
2175             Paul Eggert  <eggert@cs.ucla.edu>
2176
2177         utimens.c: work around a probable Linux kernel bug
2178         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
2179         appears to be a kernel bug that causes utimensat to return 280
2180         instead of 0, indicating success.
2181
2182 2008-06-04  Bruno Haible  <bruno@clisp.org>
2183
2184         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
2185         2008-06-01 commit.
2186
2187 2008-06-04  Bruno Haible  <bruno@clisp.org>
2188
2189         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
2190         * lib/file-has-acl.c (acl_access_nontrivial): New function.
2191         (file_has_acl): Use it. Save errno afterwards.
2192         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
2193
2194 2008-06-03  Bruno Haible  <bruno@clisp.org>
2195
2196         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
2197         draft code. Simplify #ifs.
2198         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
2199         Put Solaris code after POSIX-draft code. Fix comments regarding
2200         Solaris 10, HP-UX. Mention Cygwin.
2201         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
2202
2203 2008-06-03  Eric Blake  <ebb9@byu.net>
2204
2205         Provide fallback for older kernels.
2206         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
2207         Provide runtime fallback if kernel lacks support.
2208         Reported by Mike Frysinger.
2209
2210 2008-06-02  Bruno Haible  <bruno@clisp.org>
2211
2212         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
2213         it exists.
2214
2215 2008-06-02  Bruno Haible  <bruno@clisp.org>
2216
2217         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
2218         * lib/copy-acl.c (qcopy_acl): Update comment.
2219
2220 2008-06-02  Bruno Haible  <bruno@clisp.org>
2221
2222         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
2223         like ACL APIs.
2224
2225 2008-06-02  Bruno Haible  <bruno@clisp.org>
2226
2227         * tests/test-file-has-acl.sh: Use different code for Cygwin.
2228         * tests/test-set-mode-acl.sh: Likewise.
2229         * tests/test-copy-acl.sh: Likewise.
2230         * tests/test-copy-file.sh: Likewise.
2231
2232 2008-06-02  Bruno Haible  <bruno@clisp.org>
2233
2234         * tests/test-file-has-acl.sh: Remove unused code.
2235
2236 2008-06-01  Bruno Haible  <bruno@clisp.org>
2237
2238         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
2239         (copy_acl): Just a wrapper around qcopy_acl that emits the error
2240         messages.
2241         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
2242
2243 2008-06-01  Bruno Haible  <bruno@clisp.org>
2244
2245         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
2246         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
2247         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
2248         APIs.
2249         * modules/acl-tests (configure.ac): Remove tests now contained in
2250         m4/acl.m4.
2251
2252 2008-06-02  Jim Meyering  <meyering@redhat.com>
2253
2254         announce-gen: use a better key-server host name
2255         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
2256         it may be more consistently reliable.  Suggested by Werner Koch
2257         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
2258
2259 2008-06-01  Bruno Haible  <bruno@clisp.org>
2260
2261         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
2262         Reported by Voroskoi Andras <voroskoi@gmail.com>.
2263
2264 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
2265
2266         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
2267
2268 2008-06-01  Bruno Haible  <bruno@clisp.org>
2269
2270         New ACL tests.
2271         * tests/test-file-has-acl.sh: New file.
2272         * tests/test-file-has-acl.c: New file.
2273         * tests/test-set-mode-acl.sh: New file.
2274         * tests/test-set-mode-acl.c: New file.
2275         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
2276         * tests/test-copy-acl.c: New file.
2277         * modules/acl-tests: New file, based on modules/copy-file-tests.
2278         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2279         (Depends-on): Add acl-tests.
2280         (configure.ac): Remove checks.
2281         (Makefile.am): Don't create test-sameacls program here any more.
2282
2283 2008-06-01  Bruno Haible  <bruno@clisp.org>
2284
2285         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2286         * tests/test-sameacls.c: Include progname.h.
2287         (main): Invoke set_program_name. Portability fixes for MacOS X,
2288         Solaris, HP-UX.
2289
2290 2008-06-01  Bruno Haible  <bruno@clisp.org>
2291
2292         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2293         function.
2294         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2295
2296 2008-06-01  Bruno Haible  <bruno@clisp.org>
2297
2298         * modules/rpmatch (Depends-on): Add strdup.
2299
2300 2008-06-01  Bruno Haible  <bruno@clisp.org>
2301
2302         * lib/pipe.c: Include unistd-safer.h.
2303         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2304         * modules/pipe (Depends-on): Add unistd-safer.
2305
2306 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2307
2308         * modules/autobuild (configure.ac): Call AB_INIT.
2309
2310 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2311
2312         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2313         Suggested by Bruno Haible <bruno@clisp.org>.
2314
2315 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2316
2317         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2318         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2319         <bruno@clisp.org>.
2320
2321 2008-05-29  Eric Blake  <ebb9@byu.net>
2322
2323         Prefer new POSIX 200x interfaces over futimesat.
2324         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2325         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2326         when available.
2327         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2328
2329 2008-05-28  Bruno Haible  <bruno@clisp.org>
2330
2331         * modules/stpcpy (License): Change to LGPLv2+.
2332         Requested by David Lutterkort <dlutter@redhat.com>.
2333
2334 2008-05-27  Bruno Haible  <bruno@clisp.org>
2335
2336         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2337         current mingw.
2338         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2339
2340 2008-05-27  Bruno Haible  <bruno@clisp.org>
2341
2342         * modules/iconv_open (Link): New section, from module 'iconv'.
2343         * modules/striconv (Link): Likewise.
2344         * modules/striconveh (Link): Likewise.
2345         * modules/xstriconv (Link): Likewise.
2346         * modules/unicodeio (Link): Likewise.
2347         * modules/propername (Link): Likewise.
2348         Reported by Jim Meyering.
2349
2350 2008-05-26  Jim Meyering  <meyering@redhat.com>
2351
2352         sha256: do not artificially restrict buffer length to be < 2^32
2353         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2354         uint32_t to size_t.
2355         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2356         to match.
2357
2358         avoid unaligned access errors, e.g., on sparc
2359         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2360         direct access through a possibly-unaligned uint64* pointer.
2361         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2362         direct access through a possibly-unaligned uint32* pointer.
2363         Prompted by this patch from Tom "spot" Callaway:
2364         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2365
2366         sha512.c: fix typo in comment
2367         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2368
2369 2008-05-25  Bruno Haible  <bruno@clisp.org>
2370
2371         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2372         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2373         (Makefile.am): Update lib_SOURCES.
2374
2375 2008-05-25  Bruno Haible  <bruno@clisp.org>
2376
2377         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2378
2379 2008-05-25  Jim Meyering  <meyering@redhat.com>
2380
2381         useless-if-before-free: freed expr may have white-space differences
2382         * build-aux/useless-if-before-free: Recognize cases in which the
2383         freed expression differs from the tested one in embedded white
2384         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
2385         $1 was used, so we can't make any regexp shy.  Improved tests now
2386         detect this.
2387
2388         useless-if-before-free: accept white space in the expression.
2389         * build-aux/useless-if-before-free: For now, any white space
2390         in the expression must be identical in the free argument.
2391
2392         useless-if-before-free: efficiency tweak
2393         * build-aux/useless-if-before-free: Make the expression-matching
2394         regexp "shy".
2395         Make the *outer* regexp shy, not the expr-matching one.
2396
2397         update code-in-comment to accept cast of free arg
2398         * build-aux/useless-if-before-free: Update regexp.
2399
2400 2008-05-25  Bruno Haible  <bruno@clisp.org>
2401
2402         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2403         * modules/copy-file-tests (Files, Makefile.am): Update.
2404         * tests/test-copy-file.c (func_test_copy): Update.
2405
2406 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2407
2408         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2409
2410 2008-05-23  Bruno Haible  <bruno@clisp.org>
2411
2412         Improve support for ACLs on OSF/1.
2413         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2414         Remove fallback for unknown flavors of ACLs.
2415
2416 2008-05-22  Bruno Haible  <bruno@clisp.org>
2417
2418         Add support for ACLs on OSF/1.
2419         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
2420         replacements.
2421         (acl_free_text): New macro fallback.
2422         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
2423         acl_free.
2424         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
2425         acl_free_text function. Require AC_C_INLINE.
2426
2427 2008-05-22  Bruno Haible  <bruno@clisp.org>
2428
2429         Make copy_acl work on MacOS X 10.5.
2430         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
2431         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
2432         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
2433         If MODE_INSIDE_ACL, don't assume that every system has the same text
2434         representation for ACLs as FreeBSD.
2435         * lib/copy-acl.c (copy_acl): Add support for platforms with
2436         !MODE_INSIDE_ACL.
2437         * lib/file-has-acl.c (file_has_acl): Likewise.
2438         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
2439         FreeBSD, MacOS X, or IRIX, respectively.
2440
2441 2008-05-22  Bruno Haible  <bruno@clisp.org>
2442
2443         * lib/acl.h: Don't include <sys/acl.h>.
2444         (GETACLCNT): Move fallback to lib/acl-internal.h.
2445         * lib/acl-internal.h: Include <sys/acl.h> here.
2446         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
2447
2448 2008-05-22  Bruno Haible  <bruno@clisp.org>
2449
2450         Split off copy_acl function to separate file.
2451         * lib/copy-acl.c: New file, extracted from lib/acl.c.
2452         * lib/acl.c (copy_acl): Moved function to separate file.
2453         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
2454         * modules/acl (Files): Add lib/copy-acl.c.
2455         (Makefiles.am): Augment lib_SOURCES.
2456
2457 2008-05-22  Bruno Haible  <bruno@clisp.org>
2458
2459         * modules/copy-file-tests: New file.
2460         * tests/test-copy-file.sh: New file.
2461         * tests/test-copy-file.c: New file.
2462         * tests/test-copy-file-sameacls.c: New file.
2463
2464 2008-05-22  Eric Blake  <ebb9@byu.net>
2465
2466         Avoid gcc warning.
2467         * tests/test-memcmp.c (main): Pass NULL indirectly.
2468
2469 2008-05-21  Bruno Haible  <bruno@clisp.org>
2470
2471         Add reference doc about ACLs.
2472         * doc/acl-resources.txt: New file.
2473         * doc/acl-cygwin.txt: New file.
2474
2475 2008-05-21  Bruno Haible  <bruno@clisp.org>
2476
2477         Avoid one more warning from gcc.
2478         * lib/vasnprintf.c (IF_LINT): Update comments.
2479         (VASNPRINTF): Use it also for the 'prefix' array initializer.
2480
2481 2008-05-21  Jim Meyering  <meyering@redhat.com>
2482
2483         avoid a warning from gcc
2484         * lib/vasnprintf.c (IF_LINT): Define.
2485         (scale10_round_decimal_long_double):
2486         Use it to avoid a "may be used uninitialized" warning.
2487         (scale10_round_decimal_double): Likewise.
2488
2489 2008-05-21  Simon Josefsson  <simon@josefsson.org>
2490
2491         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
2492         declared.
2493
2494 2008-05-20  Bruno Haible  <bruno@clisp.org>
2495
2496         * tests/test-memcmp.c (main): Test also the sign of the result. Test
2497         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
2498
2499 2008-05-20  Simon Josefsson  <simon@josefsson.org>
2500
2501         * modules/memcmp-tests: New file.
2502         * tests/test-memcmp.c: New file.
2503
2504 2008-05-19  Bruno Haible  <bruno@clisp.org>
2505
2506         * modules/propername (Notice, configure.ac): Put quoted "..." into
2507         --keyword option.
2508         * lib/propername.h: Update comments accordingly.
2509         Reported by Eric Blake.
2510
2511 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
2512
2513         * modules/getpass-gnu (Depends-on): Add fseeko.
2514
2515 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2516
2517         * modules/base64-tests: New file.
2518
2519 2008-05-19  Bo Borgerson <gigabo@gmail.com>
2520
2521         * lib/base64.c (base64_decode_ctx): If a decode context structure
2522         was passed in use it to ignore newlines.  If a context structure
2523         was _not_ passed in, continue to treat newlines as garbage (this
2524         is the historical behavior).  Formerly base64_decode.
2525         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2526         takes a decode context structure.
2527         * lib/base64.h (base64_decode): Macro for four-argument calls.
2528         (base64_decode_alloc): Likewise.
2529         * lib/base64.c (base64_decode_ctx): If a decode context structure
2530         was passed in use it to ignore newlines.  If a context structure
2531         was _not_ passed in, continue to treat newlines as garbage (this
2532         is the historical behavior).  Formerly base64_decode.
2533         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2534         takes a decode context structure.
2535         * lib/base64.h (base64_decode): Macro for four-argument calls.
2536         (base64_decode_alloc): Likewise.
2537
2538 2008-05-19  Jim Meyering  <meyering@redhat.com>
2539
2540         avoid a warning from gcc
2541         * lib/trim.c (IF_LINT): Define.
2542         (trim2): Use it to avoid a "may be used uninitialized" warning.
2543
2544         Fix doc typo.
2545         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
2546
2547 2008-05-19  Bruno Haible  <bruno@clisp.org>
2548
2549         * doc/glibc-functions/getpass.texi: Document limits of other
2550         implementations.
2551
2552 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2553             Bruno Haible <bruno@clisp.org>
2554
2555         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
2556
2557 2008-05-18  Bruno Haible  <bruno@clisp.org>
2558
2559         * modules/propername: New file, from GNU gettext.
2560         * lib/propername.h: New file, from GNU gettext.
2561         * lib/propername.c: New file, from GNU gettext.
2562         * MODULES.html.sh (Internationalization functions): Add propername.
2563
2564 2008-05-16  Jim Meyering  <meyering@redhat.com>
2565             Bruno Haible  <bruno@clisp.org>
2566
2567         Avoid some warnings from "gcc -Wshadow".
2568         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
2569
2570 2008-05-15  Eric Blake  <ebb9@byu.net>
2571
2572         Extend previous patch to cygwin 1.7.0.
2573         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
2574         fast implementation in cygwin >= 1.7.0.
2575         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2576         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2577
2578 2008-05-15  Bruno Haible  <bruno@clisp.org>
2579
2580         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
2581         implementation in glibc >= 2.9.
2582         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2584
2585 2008-05-15  Bruno Haible  <bruno@clisp.org>
2586
2587         * MODULES.html.sh (Internationalization functions): Remove linebreak.
2588         (Unicode string functions): Add unilbrk/*.
2589         Reported by Karl Berry.
2590
2591 2008-05-15  Eric Blake  <ebb9@byu.net>
2592
2593         Fix violation of <stdbool.h> replacement in regex.
2594         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
2595         * lib/regexec.c (re_search_internal): Likewise.
2596         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
2597
2598 2008-05-15  Jim Meyering  <meyering@redhat.com>
2599
2600         avoid distracting test output when git or cvs is not found
2601         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
2602         * tests/test-vc-list-files-git.sh: Likewise.
2603
2604 2008-05-15  Eric Blake  <ebb9@byu.net>
2605
2606         Glibc finally accepted the memmem speedup code, bugzilla #5514.
2607         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
2608         glibc version.
2609         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2610         * doc/posix-functions/strstr.texi (strstr): Likewise.
2611         * lib/str-two-way.h (MAX): Sychronize with glibc.
2612
2613 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
2614
2615         * lib/regcomp.c (optimize_utf8): Add a note on why we test
2616         opr.ctx_type.
2617         (calc_first): Initialize constraint field.
2618         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2619         Fix grammar.
2620         (duplicate_node): Merge constraint field for all node types.
2621         (calc_eclosure_iter): Look at constraint field for all node types.
2622         * lib/regex_internal.c (create_cd_newstate): Don't look at
2623         opr.ctx_type.
2624
2625 2008-05-14  Bruno Haible  <bruno@clisp.org>
2626
2627         Help GCC to do better code generation.
2628         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
2629         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2630         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
2631         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
2632         Declare with attribute 'malloc' if supported.
2633
2634 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
2635
2636         use "echo STR|wc -c" rather than unportable "expr length STR"
2637         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
2638         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
2639
2640 2008-05-14  Jim Meyering  <meyering@redhat.com>
2641
2642         use dd ibs=$n count=1 ... rather than less-portable head -c$n
2643         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
2644         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
2645         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
2646         via Collin Lasse.
2647
2648 2008-05-14  Eric Blake  <ebb9@byu.net>
2649
2650         Avoid quadratic growth in gl_LIBSOURCES.
2651         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
2652         Suggested by Bruno Haible.
2653
2654         Test xmemdup0.
2655         * modules/xmemdup0-tests: New file.
2656         * tests/test-xmemdup0.c: Likewise.
2657
2658 2008-05-13  Eric Blake  <ebb9@byu.net>
2659
2660         Split xmemdup0 into its own module.
2661         * modules/xmemdup0: New file.
2662         * lib/xmemdup0.h: Likewise.
2663         * lib/xmemdup0.c: Likewise.
2664         * MODULES.html.sh (Memory management functions): Add xmemdup0.
2665         * lib/xalloc.h (xmemdup0): Remove.
2666         * lib/xmalloc.c (xmemdup0): Likewise.
2667
2668 2008-05-13  Eric Blake  <ebb9@byu.net>
2669             Bruno Haible  <bruno@clisp.org>
2670
2671         Reduce number of forks required during autoconf.
2672         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
2673         and gl_LIBSOURCES_DIR.
2674         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
2675         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
2676         m4_syscmd per file.
2677         <m4_foreach_w>: Move...
2678         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
2679
2680 2008-05-13  Eric Blake  <ebb9@byu.net>
2681
2682         * gnulib-tool: Fix various comment typos.
2683
2684 2008-05-12  Bruno Haible  <bruno@clisp.org>
2685
2686         Tailor the linebreaking algorithm.
2687         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
2688
2689 2008-05-12  Bruno Haible  <bruno@clisp.org>
2690
2691         Update to Unicode 5.0.0.
2692         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2693         LBP_JV, LBP_JT. Redistribute values.
2694         (unilbrk_table): Change size.
2695         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2696         Unicode TR#14 rev. 22.
2697         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2698         LBP_JV, LBP_JT. Redistribute values.
2699         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2700         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2701         Update.
2702         * lib/unilbrk/lbrkprop1.h: Regenerated.
2703         * lib/unilbrk/lbrkprop2.h: Regenerated.
2704         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
2705         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
2706         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
2707         Likewise.
2708         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
2709         Likewise.
2710         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
2711         result.
2712         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2713         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2714         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2715         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
2716         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
2717         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
2718
2719 2008-05-11  Bruno Haible  <bruno@clisp.org>
2720
2721         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
2722
2723 2008-05-11  Bruno Haible  <bruno@clisp.org>
2724
2725         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
2726         * modules/unilbrk/gen-lbrk: New file.
2727
2728 2008-05-11  Bruno Haible  <bruno@clisp.org>
2729
2730         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
2731         * m4/sha512.m4 (gl_SHA512): Likewise.
2732
2733 2008-05-11  Jim Meyering  <meyering@redhat.com>
2734
2735         New modules: crypto/sha256, crypto/sha512 (from coreutils)
2736         * modules/crypto/sha256: New file.
2737         * modules/crypto/sha512: Likewise.
2738         * lib/sha256.c: Likewise.
2739         * lib/sha256.h: Likewise.
2740         * lib/sha512.c: Likewise.
2741         * lib/sha512.h: Likewise.
2742         * lib/u64.h: Likewise.
2743         * m4/sha256.m4: Likewise.
2744         * m4/sha512.m4: Likewise.
2745         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
2746
2747 2008-05-10  Bruno Haible  <bruno@clisp.org>
2748
2749         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
2750         (Input/Output <stdio.h>): Add xprintf.
2751         (Signal handling <signal.h>): Add strsignal.
2752         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
2753         (Core language properties): Add func.
2754         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
2755         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
2756         strings.
2757         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
2758         (Input/output): New section.
2759         (File system functions): Add openat-die, stat-macros.
2760         (Networking functions): Add sockets.
2761         (Unicode string functions): Add unictype/*.
2762         (Support for building libraries and executables): Add gperf.
2763         (Support for building documentation): Add agpl-3.0.
2764         (Misc): Add nocrash.
2765
2766 2008-05-10  Bruno Haible  <bruno@clisp.org>
2767
2768         * modules/unictype/gen-ctype: New file.
2769
2770 2008-05-10  Jim Meyering  <meyering@redhat.com>
2771
2772         Make chdir-safer.c more efficient on a system with no symlinks.
2773         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
2774         also if ELOOP is zero.  Suggested by Bruno Haible.
2775
2776         Make chdir-safer.c slightly safer.
2777         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
2778         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
2779
2780         Avoid compile failure on systems without ELOOP (like mingw).
2781         * lib/chdir-safer.c (ELOOP): Define if not already defined.
2782         Reported by Bruno Haible.
2783
2784 2008-05-10  Bruno Haible  <bruno@clisp.org>
2785
2786         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
2787         (is_utf8_encoding): Use a case-insensitive comparison.
2788         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
2789         streq.
2790
2791 2008-05-10  Bruno Haible  <bruno@clisp.org>
2792
2793         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
2794         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
2795         * lib/unilbrk/ulc-common.h (iconv_string_length,
2796         iconv_string_keeping_offsets): Remove declarations.
2797         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
2798         Don't include <iconv.h>, streq.h, xsize.h.
2799         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
2800         conversion.
2801         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
2802         <iconv.h>, streq.h, xsize.h.
2803         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
2804         conversion.
2805         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
2806         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
2807         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
2808         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
2809
2810 2008-05-10  Bruno Haible  <bruno@clisp.org>
2811
2812         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
2813         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
2814
2815         * modules/unilbrk/u32-width-linebreaks-tests: New file.
2816         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
2817
2818         * modules/unilbrk/u16-width-linebreaks-tests: New file.
2819         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
2820
2821         * modules/unilbrk/u8-width-linebreaks-tests: New file.
2822         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
2823
2824         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
2825         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
2826
2827         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
2828         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
2829
2830         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
2831         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
2832
2833         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
2834         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
2835
2836 2008-05-10  Bruno Haible  <bruno@clisp.org>
2837
2838         Split up 'linebreak' module.
2839         * lib/unilbrk.h: New file, based on lib/linebreak.h.
2840         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
2841         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
2842         modifications.
2843         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
2844         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
2845         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
2846         lib/linebreak.c.
2847         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
2848         lib/linebreak.c.
2849         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
2850         lib/linebreak.c.
2851         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
2852         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
2853         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
2854         lib/linebreak.c.
2855         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
2856         lib/linebreak.c.
2857         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
2858         lib/linebreak.c.
2859         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
2860         lib/linebreak.c.
2861         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
2862         lib/linebreak.c.
2863         * modules/unilbrk/base: New file.
2864         * modules/unilbrk/tables: New file.
2865         * modules/unilbrk/u8-possible-linebreaks: New file.
2866         * modules/unilbrk/u16-possible-linebreaks: New file.
2867         * modules/unilbrk/u32-possible-linebreaks: New file.
2868         * modules/unilbrk/ulc-common: New file.
2869         * modules/unilbrk/ulc-possible-linebreaks: New file.
2870         * modules/unilbrk/u8-width-linebreaks: New file.
2871         * modules/unilbrk/u16-width-linebreaks: New file.
2872         * modules/unilbrk/u32-width-linebreaks: New file.
2873         * modules/unilbrk/ulc-width-linebreaks: New file.
2874         * lib/linebreak.h: Remove file.
2875         * lib/linebreak.c: Remove file.
2876         * m4/linebreak.m4: Remove file.
2877         * modules/linebreak: Remove file.
2878         * NEWS: Mention the changes.
2879
2880 2008-05-09  Eric Blake  <ebb9@byu.net>
2881
2882         Add xmemdup0.
2883         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
2884         implementation.
2885         * lib/xmalloc.c (xmemdup0): New C implementation.
2886
2887 2008-05-08  Bruno Haible  <bruno@clisp.org>
2888
2889         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
2890
2891 2008-05-07  Eric Blake  <ebb9@byu.net>
2892
2893         Support cross-compilation of <wctype.h>.
2894         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
2895         AC_CACHE_CHECK.
2896
2897 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
2898
2899         * build-aux/vc-list-files: Add support for bzr.
2900
2901 2008-05-03  Jim Meyering  <meyering@redhat.com>
2902
2903         avoid failed assertion with tight malloc
2904         * tests/test-getndelim2.c: Correct an off-by-one assertion.
2905
2906 2008-05-03  Simon Josefsson  <simon@josefsson.org>
2907
2908         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
2909         are needed from arpa/inet.h.
2910         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
2911         Reported by Bruno Haible.
2912
2913 2008-05-02  Jim Meyering  <meyering@redhat.com>
2914
2915         avoid compilation error on FreeBSD 6
2916         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
2917
2918 2008-05-01  Jim Meyering  <meyering@redhat.com>
2919
2920         useless-if-before-free: correct --help's exit status description
2921         * build-aux/useless-if-before-free (usage): Like grep, exit 0
2922         for one or more matches, etc.  Reported by Bruno Haible.
2923
2924         vc-list-files: make the stand-alone gnulib test work
2925         * modules/vc-list-files-tests (configure.ac):
2926         Define and AC_SUBST abs_aux_dir.
2927         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
2928         $(abs_top_srcdir) to each script and having each of them
2929         duplicate the work of setting PATH, set PATH here, using
2930         the new variable, abs_aux_dir instead.
2931         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
2932         * tests/test-vc-list-files-git.sh: Likewise.
2933         Reported by Bruno Haible.
2934
2935 2008-05-01  Bruno Haible  <bruno@clisp.org>
2936
2937         * lib/getndelim2.c (getndelim2): Fix newsize computation during
2938         reallocation. Rename 'done' to 'found_delimiter'.
2939
2940 2008-05-01  Jim Meyering  <meyering@redhat.com>
2941
2942         vc-list-files: accommodate /bin/sh like the one from Solaris 10
2943         * build-aux/vc-list-files: Use `...`, not $(...).
2944
2945 2008-04-30  Jim Meyering  <meyering@redhat.com>
2946
2947         add tests for vc-list-files
2948         * modules/vc-list-files-tests: New module.
2949         * tests/test-vc-list-files-cvs.sh: New file.
2950         * tests/test-vc-list-files-git.sh: New file.
2951
2952         avoid a warning from gcc
2953         * lib/getndelim2.c (IF_LINT): Define.
2954         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
2955
2956         vc-list-files: work properly with build-aux/cvsu, too
2957         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
2958         to all cvs-based clauses.
2959
2960         vc-list-files: work properly in the CVS+awk case, too
2961         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
2962
2963         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
2964         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
2965         take more than one file argument, so .  Add quotes, just in case $dir
2966         ever contains a shell meta-character.  Prompted by Soren Hansen in
2967         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
2968
2969 2008-04-29  Eric Blake  <ebb9@byu.net>
2970
2971         Optimize getndelim2 to use block operations when possible.
2972         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
2973         freadseek, and memchr2.
2974         * lib/getndelim2.c (getndelim2): Use them for block reads.
2975
2976 2008-04-29  Bruno Haible  <bruno@clisp.org>
2977
2978         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
2979         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2980         * modules/inet_ntop (Depends-on): Add extensions.
2981         * modules/inet_pton (Depends-on): Likewise.
2982         Reported by Simon Josefsson.
2983
2984 2008-04-29  Jim Meyering  <meyering@redhat.com>
2985
2986         When the is more than one match in a block, match all of them.
2987         * build-aux/useless-if-before-free: Iterate through each block
2988         until there are no more matches.
2989
2990         Fix broken useless-if-before-free script.
2991         * build-aux/useless-if-before-free: Fix typo: missing "?" after
2992         the expression to match cast of argument to free-like function.
2993
2994 2008-04-29  Eric Blake  <ebb9@byu.net>
2995
2996         Use new header.
2997         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
2998
2999 2008-04-29  Jim Meyering  <meyering@redhat.com>
3000
3001         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
3002         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
3003         by gnulib to exist and to declare e.g., inet_ntop.
3004         Don't include "inet_ntop.h", now removed.
3005
3006         * m4/arpa_inet_h.m4: Remove trailing blanks.
3007
3008 2008-04-29  Eric Blake  <ebb9@byu.net>
3009
3010         Silence valgrind on safe reads beyond potential array bounds.
3011         * lib/rawmemchr.valgrind: New file.
3012         * lib/strchrnul.valgrind: Likewise.
3013         * modules/rawmemchr (Files): Distribute new file.
3014         * modules/strchrnul (Files): Likewise.
3015         Suggested by Bruno Haible.
3016
3017 2008-04-29  Bruno Haible  <bruno@clisp.org>
3018
3019         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
3020         (inet_ntop, inet_pton): Change portability warning's wording.
3021         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
3022         Invoke gl_CHECK_NEXT_HEADERS.
3023         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
3024         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
3025         set ARPA_INET_H.
3026         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3027         * modules/arpa_inet (Description): No longer only for systems that
3028         lack it.
3029         (Depends-on): Add include_next.
3030         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
3031         HAVE_ARPA_INET_H.
3032
3033 2008-04-29  Jim Meyering  <meyering@redhat.com>
3034
3035         * modules/mkdir (License): Re-license as LGPLv2+.
3036
3037 2008-04-29  Bruno Haible  <bruno@clisp.org>
3038
3039         * modules/rawmemchr (Maintainer): Set to Eric.
3040         * modules/strchrnul (Maintainer): Likewise.
3041
3042 2008-04-29  Simon Josefsson  <simon@josefsson.org>
3043
3044         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
3045         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
3046
3047         * modules/arpa_inet (arpa/inet.h): Use them.
3048
3049 2008-04-28  Eric Blake  <ebb9@byu.net>
3050
3051         Test getndelim2.
3052         * modules/getndelim2-tests: New file.
3053         * tests/test-getndelim2.c: Likewise.
3054         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
3055         stream.
3056         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
3057
3058         * MODULES.html.sh: Document new module.
3059
3060 2008-04-20  Bruno Haible  <bruno@clisp.org>
3061
3062         * lib/c-stack.c (die): Use raise.
3063         * modules/c-stack (Depends-on): Add raise.
3064
3065 2008-04-28  Bruno Haible  <bruno@clisp.org>
3066
3067         Expect rpmatch to be declared.
3068         * lib/yesno.c (rpmatch): Remove declaration.
3069
3070         Declare rpmatch.
3071         * lib/stdlib.in.h (rpmatch): New declaration.
3072         * lib/rpmatch.c: Include <stdlib.h> first.
3073         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
3074         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
3075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
3076         HAVE_RPMATCH.
3077         * modules/rpmatch (Depends-on): Add stdlib, extensions.
3078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3079         (Include): Set to <stdlib.h>.
3080         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
3081         HAVE_RPMATCH.
3082         * NEWS: Document the change.
3083
3084 2008-04-28  Bruno Haible  <bruno@clisp.org>
3085
3086         Change rpmatch to use nl_langinfo when appropriate.
3087         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
3088         (N_): New macro.
3089         (localized_pattern): New function/macro.
3090         (try): Remove match, nomatch arguments. Copy the pattern into safe
3091         memory before caching it.
3092         (rpmatch): Use localized_pattern. Add translator comments.
3093         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
3094         Suggested by Eric Blake.
3095         * modules/rpmatch (Depends-on): Add stdbool.
3096
3097 2008-04-28  Eric Blake  <ebb9@byu.net>
3098
3099         Add rawmemchr module, matching glibc.
3100         * modules/string (Makefile.am): New indicator.
3101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
3102         * lib/string.in.h (rawmemchr): Declare when appropriate.
3103         * modules/rawmemchr: New file.
3104         * m4/rawmemchr.m4: Likewise.
3105         * lib/rawmemchr.c: Likewise.
3106         * modules/rawmemchr-tests: Likewise.
3107         * tests/test-rawmemchr.c: Likewise.
3108         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
3109         module.
3110         * modules/strchrnul (Depends-on): Add rawmemchr.
3111         * lib/strchrnul.c (strchrnul): Optimize a corner case.
3112
3113         Whitespace cleanup.
3114         * tests/test-strchrnul.c: Reindent.
3115         * lib/strchrnul.c: Likewise.
3116
3117         Optimize and test strchrnul.
3118         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
3119         * modules/strchrnul-tests: New file.
3120         * tests/test-strchrnul.c: Likewise.
3121
3122         Remove intprops dependency.
3123         * modules/memchr (Depends-on): Remove intprops.
3124         * modules/memrchr (Depends-on): Likewise.
3125         * modules/memchr2 (Depends-on): Likewise.
3126         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
3127         * lib/memrchr.c (__memrchr): Likewise.
3128         * lib/memrchr2.c (memchr2): Likewise.
3129         Reported by Simon Josefsson.
3130
3131 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3132
3133         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
3134         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3135
3136 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3137
3138         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
3139
3140         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
3141
3142         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
3143
3144         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
3145         declarations.
3146         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
3147
3148         * m4/inet_pton.m4: Don't check for header files.
3149
3150         * m4/inet_ntop.m4: Don't check for header files.
3151
3152 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3153
3154         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
3155         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
3156         trigger for cygwin).
3157         Reported by Bruno Haible  <bruno@clisp.org>.
3158
3159 2008-04-28  Bruno Haible  <bruno@clisp.org>
3160
3161         * doc/posix-functions/strdup.texi: Mention mingw problem.
3162
3163 2008-04-27  Bruno Haible  <bruno@clisp.org>
3164
3165         * modules/stat-time-tests (Depends-on): Add sleep.
3166         * tests/test-stat-time.c (force_unlink): New function.
3167         (cleanup): Use it.
3168         (test_mtime): Remove the ctime related tests.
3169         (test_ctime): New function, containing the ctime related tests.
3170         (main): Call test_ctime, except on native Windows platforms.
3171
3172 2008-04-27  Bruno Haible  <bruno@clisp.org>
3173
3174         * lib/rpmatch.c (rpmatch): Add some comments.
3175         Reported by James Youngman <jay@gnu.org>.
3176
3177 2008-04-27  Bruno Haible  <bruno@clisp.org>
3178
3179         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
3180         quiet NaNs.
3181
3182 2008-04-27  Bruno Haible  <bruno@clisp.org>
3183
3184         Make test-yesno.sh work on mingw.
3185         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
3186         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
3187         (main): Set stdin to binary mode.
3188         * modules/yesno-tests (Depends-on): Add binary-io.
3189
3190 2008-04-27  Bruno Haible  <bruno@clisp.org>
3191
3192         Fix 'isfinite' on x86, x86_64, ia64 platforms.
3193         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
3194         argument that lie outside the IEEE 854 domain.
3195         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
3196         (gl_ISFINITE): Use it.
3197         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
3198
3199 2008-04-27  Bruno Haible  <bruno@clisp.org>
3200
3201         Allow local renaming in config.h.
3202         * lib/memrchr.c (memrchr): Don't undefine outside libc.
3203
3204 2008-04-27  Bruno Haible  <bruno@clisp.org>
3205
3206         * lib/memchr.c (__memchr): Change type of 'i'.
3207         * lib/memchr2.c (memchr2): Likewise.
3208
3209 2008-04-26  Eric Blake  <ebb9@byu.net>
3210         and Bruno Haible  <bruno@clisp.org>
3211
3212         Optimize and test memrchr.
3213         * modules/memrchr (Depends-on): Add intprops.
3214         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
3215         * modules/memrchr-tests: New file.
3216         * tests/test-memrchr.c: New file.
3217
3218 2008-04-26  Bruno Haible  <bruno@clisp.org>
3219
3220         Add tentative support for DragonFly BSD.
3221         * lib/stdio-impl.h: Add macros for DragonFly BSD.
3222         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
3223         fp.
3224         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3225         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
3226         * lib/fpurge.c (fpurge): Likewise.
3227         * lib/freadable.c (freaadable): Likewise.
3228         * lib/freadahead.c (freadahead): Likewise.
3229         * lib/freading.c (freading): Likewise.
3230         * lib/freadptr.c (freadptr): Likewise.
3231         * lib/freadseek.c (freadptrinc): Likewise.
3232         * lib/fseeko.c (fseeko): Likewise.
3233         * lib/fseterr.c (fseterr): Likewise.
3234         * lib/fwritable.c (fwritable): Likewise.
3235         * lib/fwriting.c (fwriting): Likewise.
3236
3237 2008-04-26  Bruno Haible  <bruno@clisp.org>
3238
3239         * lib/stdio-impl.h: New file.
3240         * lib/fbufmode.c: Include stdio-impl.h.
3241         (fbufmode): Use fp_, remove redundant #defines.
3242         * lib/fflush.c: Include stdio-impl.h.
3243         (clear_ungetc_buffer): Remove redundant #defines.
3244         * lib/fpurge.c: Include stdio-impl.h.
3245         (fpurge): Remove redundant #defines.
3246         * lib/freadable.c: Include stdio-impl.h.
3247         (freadable): Remove redundant #defines.
3248         * lib/freadahead.c: Include stdio-impl.h.
3249         (freadahead): Remove redundant #defines.
3250         * lib/freading.c: Include stdio-impl.h.
3251         (freading): Remove redundant #defines.
3252         * lib/freadptr.c: Include stdio-impl.h.
3253         (freadptr): Remove redundant #defines.
3254         * lib/freadseek.c: Include stdio-impl.h.
3255         (freadptrinc): Remove redundant #defines.
3256         * lib/fseeko.c: Include stdio-impl.h.
3257         (rpl_fseeko): Remove redundant #defines.
3258         * lib/fseterr.c: Include stdio-impl.h.
3259         (fseterr): Remove redundant #defines.
3260         * lib/fwritable.c: Include stdio-impl.h.
3261         (fwritable: Remove redundant #defines.
3262         * lib/fwriting.c: Include stdio-impl.h.
3263         (fwriting): Remove redundant #defines.
3264         * modules/fbufmode (Files): Add lib/stdio-impl.h.
3265         * modules/fflush (Files): Likewise.
3266         * modules/fpurge (Files): Likewise.
3267         * modules/freadable (Files): Likewise.
3268         * modules/freadahead (Files): Likewise.
3269         * modules/freading (Files): Likewise.
3270         * modules/freadptr (Files): Likewise.
3271         * modules/freadseek (Files): Likewise.
3272         * modules/fseeko (Files): Likewise.
3273         * modules/fseterr (Files): Likewise.
3274         * modules/fwritable (Files): Likewise.
3275         * modules/fwriting (Files): Likewise.
3276
3277 2008-04-26  Bruno Haible  <bruno@clisp.org>
3278
3279         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3280         restore_seek_optimization, update_fpos_cache): New functions, extracted
3281         from rpl_fflush.
3282         (rpl_fflush): Use them.
3283         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3284         (gl_REPLACE_FFLUSH): Use it.
3285
3286 2008-04-26  Bruno Haible  <bruno@clisp.org>
3287
3288         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3289         on Solaris.
3290         * tests/test-xstrtoimax.sh: Likewise.
3291         * tests/test-xstrtoumax.sh: Likewise.
3292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3293
3294 2008-04-26  Bruno Haible  <bruno@clisp.org>
3295
3296         * modules/memchr-tests: New file.
3297         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3298
3299 2008-04-26  Eric Blake  <ebb9@byu.net>
3300             Bruno Haible  <bruno@clisp.org>
3301
3302         * lib/memchr.c: Include intprops.h.
3303         (__memchr): Optimize parallel detection of matching bytes. Rename local
3304         variables. Add explanatory comments.
3305
3306 2008-04-26  Bruno Haible  <bruno@clisp.org>
3307
3308         Fix module 'memchr', broken since 2000-10-28.
3309         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3310
3311 2008-04-26  Bruno Haible  <bruno@clisp.org>
3312
3313         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3314         comments.
3315
3316 2008-04-25  Eric Blake  <ebb9@byu.net>
3317
3318         Use native fstatat on cygwin 1.7.0.
3319         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3320         first.
3321
3322 2008-04-23  Eric Blake  <ebb9@byu.net>
3323
3324         Improve memchr2 performance.
3325         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3326         NUL bytes.
3327         * modules/memchr2 (Depends-on): Use intprops.h.
3328
3329 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3330
3331         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3332         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3333         <blp@cs.stanford.edu>.
3334
3335 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3336
3337         * lib/arpa_inet.in.h: New file.
3338
3339         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3340         (Makefile.am): Sed in substitute header file.
3341
3342         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3343         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3344
3345         * modules/inet_ntop (configure.ac): Use
3346         gl_ARPA_INET_MODULE_INDICATOR.
3347
3348         * modules/inet_pton (configure.ac): Use
3349         gl_ARPA_INET_MODULE_INDICATOR.
3350
3351 2008-04-22  Jim Meyering  <meyering@redhat.com>
3352
3353         * modules/verify (License): Re-license as LGPLv2+.
3354
3355 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3356
3357         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3358         parameter to void* as per POSIX standard (MinGW uses char*).
3359
3360 2008-04-21  Bruno Haible  <bruno@clisp.org>
3361
3362         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3363         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3364         Define to replacements if REPLACE_ISWCNTRL is 1.
3365         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3366         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3367         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3368         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3369         what it fixes.
3370         * doc/posix-functions/iswalpha.texi: Likewise.
3371         * doc/posix-functions/iswblank.texi: Likewise.
3372         * doc/posix-functions/iswcntrl.texi: Likewise.
3373         * doc/posix-functions/iswdigit.texi: Likewise.
3374         * doc/posix-functions/iswgraph.texi: Likewise.
3375         * doc/posix-functions/iswlower.texi: Likewise.
3376         * doc/posix-functions/iswprint.texi: Likewise.
3377         * doc/posix-functions/iswpunct.texi: Likewise.
3378         * doc/posix-functions/iswspace.texi: Likewise.
3379         * doc/posix-functions/iswupper.texi: Likewise.
3380         * doc/posix-functions/iswxdigit.texi: Likewise.
3381         Reported by Alain Guibert.
3382
3383 2008-04-21  Bruno Haible  <bruno@clisp.org>
3384
3385         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
3386         Patch by Alain Guibert.
3387
3388 2008-04-21  Bruno Haible  <bruno@clisp.org>
3389
3390         Fix test failures on mingw.
3391         * tests/test-xstrtol.c (print_no_progname): New function.
3392         (main): Install it in error_print_progname hook.
3393         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
3394         * tests/test-xstrtoimax.sh: Likewise.
3395         * tests/test-xstrtoumax.sh: Likewise.
3396
3397 2008-04-21  Bruno Haible  <bruno@clisp.org>
3398
3399         Fix test failure on mingw.
3400         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3401
3402 2008-04-21  Bruno Haible  <bruno@clisp.org>
3403
3404         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3405         Actually assign a value.
3406
3407 2008-04-20  Bruno Haible  <bruno@clisp.org>
3408
3409         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3410         take 2.
3411         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3412         'canonicalize-lgpl' module is also used.
3413         * lib/canonicalize-lgpl.c: Undo last change.
3414         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3415
3416 2008-04-20  Bruno Haible  <bruno@clisp.org>
3417
3418         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
3419         config.h. Provide _mkdir based fallback for mingw.
3420         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
3421         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
3422         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
3423         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
3424         rather than defining mkdir in config.h.
3425         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
3426         (gl_SYS_STAT_H_DEFAULTS): New macro.
3427         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
3428         HAVE_IO_H any more.
3429         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
3430         HAVE_DECL_MKDIR and HAVE_IO_H.
3431
3432 2008-04-20  Bruno Haible  <bruno@clisp.org>
3433
3434         * lib/isapipe.c: Port to native Windows platforms.
3435
3436 2008-04-20  Bruno Haible  <bruno@clisp.org>
3437
3438         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
3439
3440 2008-04-21  Eric Blake  <ebb9@byu.net>
3441
3442         Work around preprocessors that don't handle UINTMAX_MAX.
3443         * lib/memchr2.c (memchr2): Avoid embedded #if.
3444         Reported by Alain Guibert, fix suggested by Bruno Haible.
3445
3446 2008-04-21  Simon Josefsson  <simon@josefsson.org>
3447
3448         * doc/posix-functions/strftime.texi (strftime): Explain better
3449         Windows incompatibility.  Suggested by Micah Cowan
3450         <micah@cowan.name>.
3451
3452 2008-04-20  Bruno Haible  <bruno@clisp.org>
3453
3454         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
3455         unistr/u8-mblen.
3456
3457 2008-04-20  Bruno Haible  <bruno@clisp.org>
3458
3459         Fix test failure on platforms with non-GNU iconv.
3460         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
3461         (U_TO_U8): Use it, rather than u16_to_u8.
3462         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
3463         units at the end of the input string.
3464         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
3465
3466 2008-04-20  Bruno Haible  <bruno@clisp.org>
3467
3468         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
3469         when the resulting length is 0.
3470         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
3471
3472 2008-04-20  Bruno Haible  <bruno@clisp.org>
3473
3474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
3475         works.
3476         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
3477
3478 2008-04-20  Bruno Haible  <bruno@clisp.org>
3479
3480         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
3481         * modules/tsearch-tests (configure.ac): Test for initstate function.
3482
3483 2008-04-20  Bruno Haible  <bruno@clisp.org>
3484
3485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
3486         for nlink_t if missing.
3487         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
3488
3489 2008-04-19  Bruno Haible  <bruno@clisp.org>
3490
3491         Work around snprintf bug on Linux libc5.
3492         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
3493         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3494         gl_SNPRINTF_SIZE1.
3495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3496         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
3497         that test failed.
3498         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3499         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
3500         * modules/snprintf (Files): Add m4/printf.m4.
3501         * modules/vsnprintf (Files): Likewise.
3502         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
3503         * doc/posix-functions/vsnprintf.texi: Likewise.
3504
3505 2008-04-19  Bruno Haible  <bruno@clisp.org>
3506
3507         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
3508         from 0.0058 to less than 10^-7.
3509
3510 2008-04-19  Bruno Haible  <bruno@clisp.org>
3511
3512         Fix rounding when a precision is given.
3513         * lib/vasnprintf.c (is_borderline): New function.
3514         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
3515         9...9x.
3516         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
3517         %e, %g.
3518         * tests/test-vasprintf-posix.c (test_function): Likewise.
3519         * tests/test-snprintf-posix.h (test_function): Likewise.
3520         * tests/test-sprintf-posix.h (test_function): Likewise.
3521         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
3522         * tests/test-printf-posix.h (test_function): Likewise.
3523         * tests/test-printf-posix.output: Update.
3524         Reported by John Darrington <john@darrington.wattle.id.au> via
3525         Ben Pfaff <blp@cs.stanford.edu>.
3526
3527 2008-04-18  Simon Josefsson  <simon@josefsson.org>
3528
3529         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
3530         Suggested by Bruno Haible <bruno@clisp.org>.
3531
3532 2008-04-17  Bruno Haible  <bruno@clisp.org>
3533
3534         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
3535         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
3536         implementation.
3537         Patch by Bruce Merry <bmerry@gmail.com>.
3538
3539 2008-04-17  Simon Josefsson  <simon@josefsson.org>
3540
3541         * doc/posix-functions/strftime.texi (strftime): Mention that %e
3542         doesn't work under Windows.
3543
3544 2008-04-16  Bruno Haible  <bruno@clisp.org>
3545
3546         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
3547         New macros.
3548         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
3549         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
3550         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
3551         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
3552         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
3553         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
3554         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
3555         macros.
3556         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
3557         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
3558         Northern Sotho, Uighur.
3559
3560 2008-04-16  Bruno Haible  <bruno@clisp.org>
3561
3562         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
3563         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
3564         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
3565         Reported by Daniel Bergström <daniel@octocode.com>.
3566
3567 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
3568             Bruno Haible  <bruno@clisp.org>
3569
3570         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
3571         function.
3572         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
3573         New functions, mostly extracted from gl_locale_name_default.
3574         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
3575
3576 2008-04-16  Eric Blake  <ebb9@byu.net>
3577
3578         Adjust strtod detection to catch glibc 2.7 bug.
3579         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
3580         Reported by John Gatewood Ham.
3581
3582 2008-04-16  Bruno Haible  <bruno@clisp.org>
3583
3584         Add tentative support for Linux libc5.
3585         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
3586         * lib/fpurge.c (fpurge): Likewise.
3587         * lib/freadable.c (freadable): Likewise.
3588         * lib/freadahead.c (freadahead): Likewise.
3589         * lib/freading.c (freading): Likewise.
3590         * lib/freadptr.c (freadptr): Likewise.
3591         * lib/freadseek.c (freadptrinc): Likewise.
3592         * lib/fseeko.c (rpl_fseeko): Likewise.
3593         * lib/fseterr.c (fseterr): Likewise.
3594         * lib/fwritable.c (fwritable): Likewise.
3595         * lib/fwriting.c (fwriting): Likewise.
3596         Reported by Alain Guibert <alguibert+bts@free.fr>.
3597
3598 2008-04-15  Bruno Haible  <bruno@clisp.org>
3599
3600         * modules/mathl (configure.ac): Define module indicator.
3601
3602 2008-04-15  Bruno Haible  <bruno@clisp.org>
3603
3604         * lib/logl.c (logl): Remove unused variables.
3605
3606 2008-04-15  Bruno Haible  <bruno@clisp.org>
3607
3608         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
3609         fails.
3610
3611 2008-04-15  Bruno Haible  <bruno@clisp.org>
3612
3613         * lib/trim.c (trim2): Fix argument of isspace() macro.
3614
3615 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
3616
3617         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
3618         to 0.
3619         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
3620
3621 2008-04-14  Bruno Haible  <bruno@clisp.org>
3622
3623         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
3624         AC_LANG_PROGRAM argument.
3625         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3626         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
3627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3628         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3629         * m4/math_h.m4 (gl_MATH_H): Likewise.
3630         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3631         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3632         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3633         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3634         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3635         * m4/regex.m4 (gl_REGEX): Likewise.
3636         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3637         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
3638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3639         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
3640         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3641         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3643         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3644
3645 2008-04-14  Jim Meyering  <meyering@redhat.com>
3646
3647         test-strtod: fix typos: s/abs/fabs/
3648         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
3649
3650 2008-04-13  Bruno Haible  <bruno@clisp.org>
3651
3652         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
3653         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
3654         module is also used and while not building the reloc-wrapper.
3655
3656 2008-04-13  Bruno Haible  <bruno@clisp.org>
3657
3658         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
3659
3660 2008-04-13  Bruno Haible  <bruno@clisp.org>
3661
3662         Fix AIX compilation failure introduced on 2008-04-02.
3663         * tests/test-frexp.c (exp): Undefine before redefining.
3664         * tests/test-frexpl.c (exp): Likewise.
3665
3666 2008-04-13  Bruno Haible  <bruno@clisp.org>
3667
3668         Work around a HP-UX stdio bug.
3669         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
3670         * tests/test-ftello.c (main): Likewise.
3671         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
3672         * doc/posix-functions/ftello.texi: Likewise.
3673
3674 2008-04-13  Bruno Haible  <bruno@clisp.org>
3675
3676         Make test-signbit pass on HP-UX/hppa.
3677         * tests/test-signbit.c (minus_zerol): New variable.
3678         (test_signbitl): Use it.
3679
3680 2008-04-13  Bruno Haible  <bruno@clisp.org>
3681
3682         Make truncl work on OSF/1 4.0.
3683         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
3684         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3685         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
3687         HAVE_DECL_TRUNCL.
3688         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
3689         HAVE_DECL_TRUNCL.
3690         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3691
3692 2008-04-13  Bruno Haible  <bruno@clisp.org>
3693
3694         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3695
3696 2008-04-13  Bruno Haible  <bruno@clisp.org>
3697
3698         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3699         expression, so as to avoid HP-UX 11 cc compiler bug.
3700
3701 2008-04-13  Bruno Haible  <bruno@clisp.org>
3702
3703         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
3704
3705 2008-04-13  Bruno Haible  <bruno@clisp.org>
3706
3707         * lib/git-merge-changelog.c: Remove empty declaration outside of
3708         functions.
3709
3710 2008-04-13  Bruno Haible  <bruno@clisp.org>
3711
3712         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
3713
3714 2008-04-13  Bruno Haible  <bruno@clisp.org>
3715
3716         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
3717         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
3718         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
3719         also if it exists but lacks definitions of the SHUT_* macros.
3720         * modules/sys_socket (Description): Update.
3721         Reported by Elbert Pol <e.pol@chello.nl>.
3722
3723 2008-04-13  Bruno Haible  <bruno@clisp.org>
3724
3725         * lib/localcharset.c (OS2): Don't redefine if already defined.
3726         Reported by Elbert Pol <e.pol@chello.nl>.
3727
3728 2008-04-13  Bruno Haible  <bruno@clisp.org>
3729
3730         * lib/binary-io.h [__EMX__]: Include <io.h>.
3731         Reported by Elbert Pol <e.pol@chello.nl>.
3732
3733 2008-04-12  Bruno Haible  <bruno@clisp.org>
3734
3735         * lib/fpucw.h: Enable the definitions also for x86_64.
3736         Needed for NetBSD/x86_64.
3737         Reported by Thomas Klausner <tk@giga.or.at>.
3738
3739 2008-04-12  Bruno Haible  <bruno@clisp.org>
3740
3741         * tests/test-strtod.c: Include isnand.h.
3742         (main): Use isnand instead of isnan.
3743         Reported by Jim Meyering.
3744
3745 2008-04-12  Bruno Haible  <bruno@clisp.org>
3746
3747         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
3748         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3749
3750 2008-04-12  Jim Meyering  <meyering@redhat.com>
3751
3752         * m4/math_h.m4 (gl_MATH_H): Fix typos.
3753
3754 2008-04-12  Bruno Haible  <bruno@clisp.org>
3755
3756         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
3757         Reported by Elbert Pol <e.pol@chello.nl>.
3758
3759 2008-04-12  Eric Blake  <ebb9@byu.net>
3760
3761         Work around Solaris 10 math.h bug.
3762         * m4/math_h.m4 (gl_MATH_H): Check for bug.
3763         (gl_MATH_H_DEFAULTS): Set up default.
3764         * modules/math (Makefile.am): Replace new indicators.
3765         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
3766         * tests/test-math.c (main): Test this.
3767         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
3768         * doc/posix-headers/math.texi (math.h): Mention bug.
3769         Reported by Nelson H. F. Beebe and Jim Meyering.
3770
3771 2008-04-11  Bruno Haible  <bruno@clisp.org>
3772
3773         Adapt to future versions of Apple GCC.
3774         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
3775         Reported by Peter O'Gorman <peter@pogma.com>.
3776
3777 2008-04-11  Bruno Haible  <bruno@clisp.org>
3778
3779         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
3780
3781 2008-04-11  Bruno Haible  <bruno@clisp.org>
3782
3783         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
3784
3785         * modules/getaddrinfo-tests (Makefile.am): Define
3786         test_getaddrinfo_LDADD.
3787
3788 2008-04-11  Bruno Haible  <bruno@clisp.org>
3789
3790         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
3791         (init): Fix syntax error.
3792         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
3793         is declared.
3794
3795 2008-04-11  Bruno Haible  <bruno@clisp.org>
3796
3797         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
3798         * modules/glob (Depends-on): Add stdbool.
3799
3800 2008-04-11  Bruno Haible  <bruno@clisp.org>
3801
3802         * lib/trim.c: Include <string.h>.
3803
3804 2008-04-11  Eric Blake  <ebb9@byu.net>
3805
3806         Avoid compile failure on OS/2.
3807         * lib/regex_internal.h (internal_function): Disable optimization
3808         on OS/2 (__EMX__), where it caused compiler error.
3809         Reported by Elbert Pol.
3810
3811 2008-04-11  Bruno Haible  <bruno@clisp.org>
3812
3813         Flush the standard error stream before aborting. Needed on mingw.
3814         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
3815         * tests/test-array_list.c (ASSERT): Likewise.
3816         * tests/test-array_oset.c (ASSERT): Likewise.
3817         * tests/test-avltree_list.c (ASSERT): Likewise.
3818         * tests/test-avltree_oset.c (ASSERT): Likewise.
3819         * tests/test-avltreehash_list.c (ASSERT): Likewise.
3820         * tests/test-binary-io.c (ASSERT): Likewise.
3821         * tests/test-byteswap.c (ASSERT): Likewise.
3822         * tests/test-c-ctype.c (ASSERT): Likewise.
3823         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
3824         * tests/test-c-strcasestr.c (ASSERT): Likewise.
3825         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
3826         * tests/test-c-strstr.c (ASSERT): Likewise.
3827         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
3828         * tests/test-canonicalize.c (ASSERT): Likewise.
3829         * tests/test-carray_list.c (ASSERT): Likewise.
3830         * tests/test-ceilf1.c (ASSERT): Likewise.
3831         * tests/test-ceilf2.c (ASSERT): Likewise.
3832         * tests/test-ceill.c (ASSERT): Likewise.
3833         * tests/test-count-one-bits.c (ASSERT): Likewise.
3834         * tests/test-fbufmode.c (ASSERT): Likewise.
3835         * tests/test-fflush2.c (ASSERT): Likewise.
3836         * tests/test-floorf1.c (ASSERT): Likewise.
3837         * tests/test-floorf2.c (ASSERT): Likewise.
3838         * tests/test-floorl.c (ASSERT): Likewise.
3839         * tests/test-fopen.c (ASSERT): Likewise.
3840         * tests/test-fpending.c (ASSERT): Likewise.
3841         * tests/test-fprintf-posix.c (ASSERT): Likewise.
3842         * tests/test-fpurge.c (ASSERT): Likewise.
3843         * tests/test-freadable.c (ASSERT): Likewise.
3844         * tests/test-freadahead.c (ASSERT): Likewise.
3845         * tests/test-freading.c (ASSERT): Likewise.
3846         * tests/test-freadptr.c (ASSERT): Likewise.
3847         * tests/test-freadptr2.c (ASSERT): Likewise.
3848         * tests/test-freadseek.c (ASSERT): Likewise.
3849         * tests/test-freopen.c (ASSERT): Likewise.
3850         * tests/test-frexp.c (ASSERT): Likewise.
3851         * tests/test-frexpl.c (ASSERT): Likewise.
3852         * tests/test-fseek.c (ASSERT): Likewise.
3853         * tests/test-fseeko.c (ASSERT): Likewise.
3854         * tests/test-fstrcmp.c (ASSERT): Likewise.
3855         * tests/test-ftell.c (ASSERT): Likewise.
3856         * tests/test-ftello.c (ASSERT): Likewise.
3857         * tests/test-func.c (ASSERT): Likewise.
3858         * tests/test-fwritable.c (ASSERT): Likewise.
3859         * tests/test-fwriting.c (ASSERT): Likewise.
3860         * tests/test-getdelim.c (ASSERT): Likewise.
3861         * tests/test-getline.c (ASSERT): Likewise.
3862         * tests/test-i-ring.c (ASSERT): Likewise.
3863         * tests/test-iconv-utf.c (ASSERT): Likewise.
3864         * tests/test-iconv.c (ASSERT): Likewise.
3865         * tests/test-isfinite.c (ASSERT): Likewise.
3866         * tests/test-isnand.c (ASSERT): Likewise.
3867         * tests/test-isnanf.c (ASSERT): Likewise.
3868         * tests/test-isnanl.h (ASSERT): Likewise.
3869         * tests/test-ldexpl.c (ASSERT): Likewise.
3870         * tests/test-linked_list.c (ASSERT): Likewise.
3871         * tests/test-linkedhash_list.c (ASSERT): Likewise.
3872         * tests/test-localename.c (ASSERT): Likewise.
3873         * tests/test-lseek.c (ASSERT): Likewise.
3874         * tests/test-mbscasecmp.c (ASSERT): Likewise.
3875         * tests/test-mbscasestr1.c (ASSERT): Likewise.
3876         * tests/test-mbscasestr2.c (ASSERT): Likewise.
3877         * tests/test-mbscasestr3.c (ASSERT): Likewise.
3878         * tests/test-mbscasestr4.c (ASSERT): Likewise.
3879         * tests/test-mbschr.c (ASSERT): Likewise.
3880         * tests/test-mbscspn.c (ASSERT): Likewise.
3881         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
3882         * tests/test-mbspbrk.c (ASSERT): Likewise.
3883         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
3884         * tests/test-mbsrchr.c (ASSERT): Likewise.
3885         * tests/test-mbsspn.c (ASSERT): Likewise.
3886         * tests/test-mbsstr1.c (ASSERT): Likewise.
3887         * tests/test-mbsstr2.c (ASSERT): Likewise.
3888         * tests/test-mbsstr3.c (ASSERT): Likewise.
3889         * tests/test-memchr2.c (ASSERT): Likewise.
3890         * tests/test-memmem.c (ASSERT): Likewise.
3891         * tests/test-open.c (ASSERT): Likewise.
3892         * tests/test-printf-frexp.c (ASSERT): Likewise.
3893         * tests/test-printf-frexpl.c (ASSERT): Likewise.
3894         * tests/test-printf-posix.c (ASSERT): Likewise.
3895         * tests/test-quotearg.c (ASSERT): Likewise.
3896         * tests/test-rbtree_list.c (ASSERT): Likewise.
3897         * tests/test-rbtree_oset.c (ASSERT): Likewise.
3898         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
3899         * tests/test-round1.c (ASSERT): Likewise.
3900         * tests/test-roundf1.c (ASSERT): Likewise.
3901         * tests/test-roundl.c (ASSERT): Likewise.
3902         * tests/test-signbit.c (ASSERT): Likewise.
3903         * tests/test-sleep.c (ASSERT): Likewise.
3904         * tests/test-snprintf-posix.c (ASSERT): Likewise.
3905         * tests/test-snprintf.c (ASSERT): Likewise.
3906         * tests/test-sprintf-posix.c (ASSERT): Likewise.
3907         * tests/test-stat-time.c (ASSERT): Likewise.
3908         * tests/test-strcasestr.c (ASSERT): Likewise.
3909         * tests/test-strerror.c (ASSERT): Likewise.
3910         * tests/test-striconv.c (ASSERT): Likewise.
3911         * tests/test-striconveh.c (ASSERT): Likewise.
3912         * tests/test-striconveha.c (ASSERT): Likewise.
3913         * tests/test-strsignal.c (ASSERT): Likewise.
3914         * tests/test-strstr.c (ASSERT): Likewise.
3915         * tests/test-strtod.c (ASSERT): Likewise.
3916         * tests/test-trunc1.c (ASSERT): Likewise.
3917         * tests/test-trunc2.c (ASSERT): Likewise.
3918         * tests/test-truncf1.c (ASSERT): Likewise.
3919         * tests/test-truncf2.c (ASSERT): Likewise.
3920         * tests/test-truncl.c (ASSERT): Likewise.
3921         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
3922         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
3923         * tests/test-vasnprintf.c (ASSERT): Likewise.
3924         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
3925         * tests/test-vasprintf.c (ASSERT): Likewise.
3926         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
3927         * tests/test-vprintf-posix.c (ASSERT): Likewise.
3928         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
3929         * tests/test-vsnprintf.c (ASSERT): Likewise.
3930         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
3931         * tests/test-wcwidth.c (ASSERT): Likewise.
3932         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
3933         * tests/test-xprintf-posix.c (ASSERT): Likewise.
3934         * tests/test-xvasprintf.c (ASSERT): Likewise.
3935         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
3936         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
3937         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
3938         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
3939         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
3940         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
3941         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
3942         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
3943         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
3944         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
3945         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
3946         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
3947         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
3948         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
3949         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
3950         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
3951         * tests/unictype/test-block_list.c (ASSERT): Likewise.
3952         * tests/unictype/test-block_of.c (ASSERT): Likewise.
3953         * tests/unictype/test-block_test.c (ASSERT): Likewise.
3954         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
3955         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
3956         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
3957         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
3958         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
3959         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
3960         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
3961         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
3962         * tests/unictype/test-combining.c (ASSERT): Likewise.
3963         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
3964         * tests/unictype/test-digit.c (ASSERT): Likewise.
3965         * tests/unictype/test-mirror.c (ASSERT): Likewise.
3966         * tests/unictype/test-numeric.c (ASSERT): Likewise.
3967         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
3968         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
3969         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
3970         * tests/unictype/test-scripts.c (ASSERT): Likewise.
3971         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
3972         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
3973         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
3974         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
3975         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
3976         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
3977         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
3978         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
3979         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
3980         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
3981         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
3982         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
3983         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
3984         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
3985         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
3986         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
3987         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
3988         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
3989         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
3990         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
3991         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
3992         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
3993         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
3994         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
3995         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
3996         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
3997         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
3998         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
3999         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
4000         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
4001         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
4002         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
4003         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
4004         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
4005         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
4006         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
4007         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
4008         Reported by Eric Blake.
4009
4010 2008-04-11  Bruno Haible  <bruno@clisp.org>
4011
4012         * lib/wchar.in.h: Tweak comment.
4013
4014 2008-04-11  Bruno Haible  <bruno@clisp.org>
4015
4016         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
4017         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
4018         gl_COMMON.
4019         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
4020
4021 2008-04-11  Bruno Haible  <bruno@clisp.org>
4022
4023         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
4024
4025 2008-04-11  Simon Josefsson  <simon@josefsson.org>
4026
4027         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
4028         of attempting to use non-existing /dev/*random.  Based on patch
4029         from Adam Strzelecki <ono@java.pl> in
4030         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
4031
4032 2008-04-08  Bruno Haible  <bruno@clisp.org>
4033
4034         Add tentative support for emx+gcc.
4035         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
4036         * lib/fpurge.c (fpurge): Likewise.
4037         * lib/freadable.c (freadable): Likewise.
4038         * lib/freadahead.c (freadahead): Likewise.
4039         * lib/freading.c (freading): Likewise.
4040         * lib/freadptr.c (freadptr): Likewise.
4041         * lib/freadseek.c (freadptrinc): Likewise.
4042         * lib/fseeko.c (rpl_fseeko): Likewise.
4043         * lib/fseterr.c (fseterr): Likewise.
4044         * lib/fwritable.c (fwritable): Likewise.
4045         * lib/fwriting.c (fwriting): Likewise.
4046         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
4047
4048 2008-04-09  Eric Blake  <ebb9@byu.net>
4049
4050         Avoid some autoconf warnings.
4051         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
4052         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
4053         * m4/afs.m4 (gl_AFS): Likewise.
4054         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
4055         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
4056         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4057         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
4058         (gl_INTEGER_TYPE_SUFFIX): Likewise.
4059         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
4060         (AC_CHECK_DECLS_ONCE): Likewise.
4061         Rename file...
4062         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
4063         gnulib-tool requires autoconf 2.59 or better.
4064         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
4065
4066 2008-04-08  Eric Blake  <ebb9@byu.net>
4067
4068         Use 'git describe --match' if present (added in git 1.5.5).
4069         * build-aux/git-version-gen: Limit result to tags that match 'v*'
4070         if possible.
4071
4072 2008-04-08  Bruno Haible  <bruno@clisp.org>
4073
4074         Add tentative support for OpenServer.
4075         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
4076         _ptr, _cnt.
4077         * lib/fpurge.c (fpurge): Likewise.
4078         * lib/freadable.c (freadable): Likewise.
4079         * lib/freadahead.c (freadahead): Likewise.
4080         * lib/freading.c (freading): Likewise.
4081         * lib/freadptr.c (freadptr): Likewise.
4082         * lib/freadseek.c (freadptrinc): Likewise.
4083         * lib/fseeko.c (rpl_fseeko): Likewise.
4084         * lib/fseterr.c (fseterr): Likewise.
4085         * lib/fwritable.c (fwritable): Likewise.
4086         * lib/fwriting.c (fwriting): Likewise.
4087         Reported by Roger Cornelius <rac@tenzing.org> and
4088         Brian K. White <brian@aljex.com>.
4089
4090 2008-04-06  Jim Meyering  <meyering@redhat.com>
4091
4092         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
4093
4094 2008-04-06  Bruno Haible  <bruno@clisp.org>
4095
4096         Avoid possible error with non-ASCII bytes in UTF-8 locales.
4097         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
4098         * tests/test-printf-posix.sh: Likewise.
4099         * tests/test-vfprintf-posix.sh: Likewise.
4100         * tests/test-vprintf-posix.sh: Likewise.
4101         * tests/test-xprintf-posix.sh: Likewise.
4102
4103 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4104
4105         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
4106         hide error from 'ls', needed on OS/2.
4107         Report by Elbert Pol <elbert.pol@gmail.com>.
4108
4109 2008-04-04  Eric Blake  <ebb9@byu.net>
4110
4111         Make test-fseeko.c failures meaningful.
4112         * tests/test-fseeko.c: Print line number on failure.
4113         * tests/test-fseek.c: Likewise.
4114         Reported by Nelson H. F. Beebe.
4115
4116         Improve strtod bug detection check.
4117         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
4118         required for Solaris 10.
4119         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
4120
4121 2008-04-04  Bruno Haible  <bruno@clisp.org>
4122
4123         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
4124         by m4/setenv.m4.
4125
4126 2008-04-03  Eric Blake  <ebb9@byu.net>
4127
4128         Ensure sane .version contents.
4129         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
4130         version string.
4131         * build-aux/git-version-gen: Improve documentation.
4132
4133         Make GNU make output nicer.
4134         * top/GNUmakefile [!_have-Makefile]: Add dependency on
4135         MAKECMDGOALS to enforce message for all command line targets.  Set
4136         srcdir for use in maint.mk.
4137
4138         Another maintainer tweak.
4139         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
4140         a target that regenerates version.
4141
4142 2008-04-03  Jim Meyering  <meyering@redhat.com>
4143
4144         vc-list-files: don't cause coreutils "make po-check" failure
4145         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
4146
4147 2008-04-03  Eric Blake  <ebb9@byu.net>
4148
4149         Allow VPATH usage of vc-list-files.
4150         * build-aux/vc-list-files (scriptversion): Add timestamp.
4151         (options): Add --help, --version, -C.
4152         (CVS): Support installed cvsu.
4153
4154 2008-04-02  Bruno Haible  <bruno@clisp.org>
4155
4156         Avoid some "statement with no effect" warnings from gcc.
4157         * tests/test-wctype.c (main): Explicitly ignore unused values.
4158         Reported by Jim Meyering.
4159
4160 2008-04-02  Jim Meyering  <meyering@redhat.com>
4161
4162         Avoid some warnings from "gcc -Wshadow".
4163         * tests/test-frexp.c (exp): Define to a different identifier.
4164         * tests/test-frexpl.c (exp): Likewise.
4165
4166 2008-04-03  Jim Meyering  <meyering@redhat.com>
4167
4168         bootstrap: remove dangling *.[ch] symlinks from lib
4169         * build-aux/bootstrap [dangling symlink removal]: Move find's
4170         -depth option to precede all others, to avoid a warning.
4171         Remove *.[ch] files too, and from "$source_base" (usually lib/).
4172
4173 2008-04-02  Bruno Haible  <bruno@clisp.org>
4174
4175         Avoid some warnings from "gcc -Wshadow".
4176         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
4177         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
4178         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
4179         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
4180         Reported by Jim Meyering.
4181
4182 2008-04-01  Bruno Haible  <bruno@clisp.org>
4183
4184         Fix test to work on IRIX 6.5 with cc.
4185         * tests/test-math.c (numeric_equal): New function.
4186         (main): Use it.
4187
4188 2008-04-01  Bruno Haible  <bruno@clisp.org>
4189
4190         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
4191
4192 2008-04-01  Bruno Haible  <bruno@clisp.org>
4193
4194         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
4195         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4196         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
4197         (Depends-on): Remove math.
4198
4199         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
4200         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4201         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
4202         (Depends-on): Remove math.
4203
4204         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
4205         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4206         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
4207         (Depends-on): Remove math.
4208         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
4209         (Depends-on): Remove math.
4210
4211         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
4212         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4213         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
4214         (Depends-on): Remove math.
4215         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
4216         (Depends-on): Remove math.
4217
4218         * tests/test-round1.c: Include nan.h.
4219         (main): Use NaNd instead of NAN.
4220         * modules/round-tests (Files): Add tests/nan.h.
4221
4222         * tests/test-trunc1.c: Include nan.h.
4223         (main): Use NaNd instead of NAN.
4224         * modules/trunc-tests (Files): Add tests/nan.h.
4225
4226         * tests/test-roundf1.c: Include nan.h.
4227         (main): Use NaNf instead of NAN.
4228         * modules/roundf-tests (Files): Add tests/nan.h.
4229
4230         * tests/test-truncf1.c: Include nan.h.
4231         (main): Use NaNf instead of NAN.
4232         * modules/truncf-tests (Files): Add tests/nan.h.
4233
4234         * tests/test-ceilf1.c: Include nan.h.
4235         (main): Use NaNf instead of NAN.
4236         * modules/ceilf-tests (Files): Add tests/nan.h.
4237
4238         * tests/test-floorf1.c: Include nan.h.
4239         (main): Use NaNf instead of NAN.
4240         * modules/floorf-tests (Files): Add tests/nan.h.
4241
4242         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
4243         (main): Use NaNf instead of NAN.
4244         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
4245
4246         * tests/test-isnand.c: Include nan.h instead of <math.h>.
4247         (main): Use NaNd instead of NAN.
4248         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
4249
4250         * tests/test-frexp.c: Include nan.h.
4251         (main): Use NaNd instead of NAN.
4252         * modules/frexp-tests (Files): Add tests/nan.h.
4253
4254         * lib/isnan.c: Don't include <math.h>.
4255         (FUNC): Don't use NAN macro.
4256         * modules/isnand-nolibm (Depends-on): Remove math.
4257         * modules/isnanf-nolibm (Depends-on): Remove math.
4258         * modules/isnanl (Depends-on): Remove math.
4259         * modules/isnanl-nolibm (Depends-on): Remove math.
4260
4261         * tests/nan.h: New file.
4262
4263 2008-04-01  Eric Blake  <ebb9@byu.net>
4264
4265         Fix typos.
4266         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
4267         values to be the right type.
4268
4269         For now, cater to gnulib strtod inaccuracies.
4270         * tests/test-strtod.c (main): Allow 1-ulp error on expected
4271         fractional results.  While not as nice from a QoI perspective, it
4272         is a quicker patch than correctly implementing decimal to binary
4273         rounding.
4274
4275 2008-03-31  Eric Blake  <ebb9@byu.net>
4276
4277         Guarantee a definition of NAN.
4278         * lib/math.in.h (NAN): Define if missing.
4279         * tests/test-math.c (main): Test it.
4280         * doc/posix-headers/math.texi (math.h): Document this.
4281         * lib/isnan.c (rpl_isnand): Use it.
4282         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4283         * tests/test-floorf1.c (NaN): Likewise.
4284         * tests/test-frexp.c (NaN): Likewise.
4285         * tests/test-isnand.c (NaN): Likewise.
4286         * tests/test-isnanf.c (NaN): Likewise.
4287         * tests/test-round1.c (NaN): Likewise.
4288         * tests/test-roundf1.c (NaN): Likewise.
4289         * tests/test-snprintf-posix.h (NaN): Likewise.
4290         * tests/test-sprintf-posix.h (NaN): Likewise.
4291         * tests/test-trunc1.c (NaN): Likewise.
4292         * tests/test-truncf1.c (NaN): Likewise.
4293         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4294         * tests/test-vasprintf-posix.c (NaN): Likewise.
4295         * modules/isnand-nolibm (Depends-on): Add math.
4296         * modules/isnanf-nolibm (Depends-on): Likewise.
4297         * modules/isnanl (Depends-on): Likewise.
4298         * modules/isnanl-nolibm (Depends-on): Likewise.
4299         * modules/snprintf-posix-tests (Depends-on): Likewise.
4300         * modules/sprintf-posix-tests (Depends-on): Likewise.
4301         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4302         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4303         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4304         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4305
4306 2008-03-31  Bruno Haible  <bruno@clisp.org>
4307
4308         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4309         * doc/posix-functions/strtod.texi: Likewise.
4310
4311 2008-03-31  Bruno Haible  <bruno@clisp.org>
4312
4313         * tests/test-strtod.c (main): Don't use C99 syntax.
4314
4315 2008-03-31  Bruno Haible  <bruno@clisp.org>
4316
4317         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4318         Reported by Eric Blake.
4319
4320 2008-03-31  Jim Meyering  <meyering@redhat.com>
4321
4322         Don't compare actual signbit return values.
4323         * tests/test-strtod.c (main): Rather, compare only their
4324         zero/non-zero nature.
4325
4326 2008-03-31  Eric Blake  <ebb9@byu.net>
4327
4328         More strtod documentation.
4329         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4330         failures as distinct bugs.
4331
4332 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4333
4334         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4335         Problem reported by Erik Benada in
4336         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4337
4338 2008-03-30  Bruno Haible  <bruno@clisp.org>
4339
4340         * tests/test-strtod.c: Add comments about which assertion fails on which
4341         platform.
4342         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4343
4344 2008-03-30  Eric Blake  <ebb9@byu.net>
4345
4346         Test signbit behavior on zeros.
4347         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4348         (test_signbitd, test_signbitl): Likewise.
4349
4350         More strtod touchups.
4351         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4352         sign of negative underflow, for now.  Use .5, not .1.
4353         * doc/posix-functions/strtod.texi (strtod): Mention these
4354         limitations.
4355         Reported by Jim Meyering.
4356
4357 2008-03-30  Bruno Haible  <bruno@clisp.org>
4358
4359         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4360         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4361
4362 2008-03-30  Bruno Haible  <bruno@clisp.org>
4363
4364         Avoid failure when attempting to return empty iconv results on some
4365         platforms.
4366         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4367         allocation, don't report ENOMEM when the resulting string is empty.
4368
4369 2008-03-30  Bruno Haible  <bruno@clisp.org>
4370
4371         Fix buffer overrun.
4372         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4373         Don't consider the width for tmp_length. Check count against tmp_length
4374         before doing the padding. Ensure enough allocation during padding.
4375
4376 2008-03-30  Eric Blake  <ebb9@byu.net>
4377
4378         strtod touchups.
4379         * lib/strtod.c (strtod): Avoid compiler warnings.
4380         Reported by Jim Meyering.
4381
4382 2008-03-30  Bruno Haible  <bruno@clisp.org>
4383
4384         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
4385         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
4386         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
4387         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
4388         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
4389         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
4390         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
4391         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
4392
4393         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
4394         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
4395         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
4396         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
4397         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4398         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4399         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4400         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4401
4402         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4403         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4404         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4405         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4406         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4407         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4408         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4409         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4410
4411         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4412         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4413
4414         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4415         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4416
4417         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
4418         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
4419
4420         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
4421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
4422         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
4423
4424         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
4425         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
4426         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
4427
4428         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
4429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
4430         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
4431
4432         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
4433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
4434         * modules/vasprintf (Depends-on): Add EOVERFLOW.
4435
4436         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
4437         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
4438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
4439         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
4440         (Depends-on): Add EOVERFLOW.
4441         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
4442         (Depends-on): Add EOVERFLOW.
4443         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4444         (Depends-on): Add EOVERFLOW.
4445         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4446         (Depends-on): Add EOVERFLOW.
4447         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4448         (Depends-on): Add EOVERFLOW.
4449         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4450         (Depends-on): Add EOVERFLOW.
4451         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4452         (Depends-on): Add EOVERFLOW.
4453         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4454         (Depends-on): Add EOVERFLOW.
4455
4456         * lib/sprintf.c (EOVERFLOW): Remove fallback.
4457         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
4458         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
4459
4460         * lib/snprintf.c (EOVERFLOW): Remove fallback.
4461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
4462         * modules/snprintf (Depends-on): Add EOVERFLOW.
4463
4464         * lib/poll.c (EOVERFLOW): Remove fallback.
4465         * modules/poll (Depends-on): Add EOVERFLOW.
4466
4467         * lib/getugroups.c (EOVERFLOW): Remove fallback.
4468         * modules/getugroups (Depends-on): Add EOVERFLOW.
4469
4470         * lib/getdelim.c (EOVERFLOW): Remove fallback.
4471         * modules/getdelim (Depends-on): Add EOVERFLOW.
4472
4473         * lib/ftell.c (EOVERFLOW): Remove fallback.
4474         * modules/ftell (Depends-on): Add EOVERFLOW.
4475
4476         * lib/fprintf.c (EOVERFLOW): Remove fallback.
4477         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
4478         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
4479
4480         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
4481
4482         * modules/EOVERFLOW-tests: New file.
4483         * tests/test-EOVERFLOW.c: New file.
4484
4485         * modules/EOVERFLOW: New file.
4486         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
4487
4488 2008-03-30  Bruno Haible  <bruno@clisp.org>
4489
4490         Fix bug introduced on 2007-06-10.
4491         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
4492         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
4493
4494 2008-03-30  Bruno Haible  <bruno@clisp.org>
4495
4496         Improve freadseek's efficiency after ungetc.
4497         * lib/freadseek.c: Include freadahead.h.
4498         (freadptrinc): New function, extracted from freadseek.
4499         (freadseek): Use it in a loop. Use freadahead to determine the number
4500         of loop iterations.
4501         * modules/freadseek (Depends-on): Add freadahead.
4502         (configure.ac): Require AC_C_INLINE.
4503
4504 2008-03-30  Bruno Haible  <bruno@clisp.org>
4505
4506         * lib/freadseek.c (freadseek): Don't ignore the return value of
4507         freadptr.
4508
4509 2008-03-29  Eric Blake  <ebb9@byu.net>
4510
4511         Add hex float support.
4512         * modules/strtod (Depends-on): Add c-ctype.
4513         (Link): Mention POW_LIB.
4514         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
4515         whitespace between 'e' and exponent.
4516         * tests/test-strtod.c (main): Enable hex float tests.
4517         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
4518         now provides.
4519
4520         Document various strtod bugs, with some fixes.
4521         * doc/posix-functions/strtod.texi (strtod): Document bugs with
4522         "-0x", "inf", "nan", and hex constants.
4523         * doc/posix-functions/atof.texi (atof): Likewise.
4524         * modules/stdlib (Makefile.am): Support strtod.
4525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4526         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
4527         detect additional strtod bugs.
4528         * lib/stdlib.in.h (rpl_strtod): Add declarations.
4529         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
4530         bool where appropriate.  Parse 'inf' and 'nan'.
4531         * tests/test-strtod.c: New file.
4532         * modules/strtod (Depends-on): Add stdbool, stdlib.
4533         (configure.ac): Turn on module indicator.
4534         * modules/strtod-tests: New module.
4535
4536 2008-03-29  Eric Blake  <ebb9@byu.net>
4537
4538         Fix ftell on mingw.
4539         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
4540         * modules/ftell-tests (Depends-on): Add binary-io.
4541         * modules/ftello-tests (Depends-on): Likewise.
4542         * tests/test-ftell.c (main): Enhance test to cover behavior after
4543         ungetc.  Enforce binary mode.
4544         * tests/test-ftello.c (main): Likewise.
4545
4546         Pass test-freadseek on cygwin.
4547         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
4548         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
4549         ungetc buffer.
4550
4551         * tests/test-fflush2.c (main): Fix typo.
4552
4553 2008-03-29  Bruno Haible  <bruno@clisp.org>
4554
4555         * tests/test-fflush2.c (main): Temporarily disable the contents of
4556         this test.
4557         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
4558         Reported by Eric Blake.
4559
4560 2008-03-28  Simon Josefsson  <simon@josefsson.org>
4561
4562         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
4563         (GC_SHA224_DIGEST_SIZE): Add.
4564
4565         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
4566         (gc_hash_digest_length): Likewise.
4567         (gc_hash_buffer): Likewise.
4568
4569 2008-03-25  Bruno Haible  <bruno@clisp.org>
4570
4571         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
4572         detail which gettext release to use.
4573         Reported by Simon Josefsson.
4574
4575 2008-03-26  Jim Meyering  <meyering@redhat.com>
4576
4577         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
4578         * modules/gnumakefile (clean-GNUmakefile): Also, use
4579         test ... && ... || : syntax rather than if-then ... fi.
4580
4581         gnumakefile: Don't double-quote-expand $(VPATH) value.
4582         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
4583
4584 2008-03-24  Eric Blake  <ebb9@byu.net>
4585
4586         Alter GNUmakefile to install into top directory.
4587         * modules/maintainer-makefile: Split, and add dependency...
4588         * modules/gnumakefile: to this new module.
4589         * build-aux/GNUmakefile: Move...
4590         * top/GNUmakefile: ...here.
4591         * build-aux/maint.mk: Move...
4592         * top/maint.mk: ...here.
4593         * MODULES.html.sh (Support for maintaining...): Document new
4594         module.
4595
4596 2008-03-23  Bruno Haible  <bruno@clisp.org>
4597
4598         * gnulib-tool: New options --vc-files, --no-vc-files.
4599         (func_usage): Document them.
4600         (vc_files): New variable.
4601         (func_import): Consider vc_files.
4602         (func_create_testdir): Set vc_files to empty.
4603         Suggested by Jim Meyering and Karl Berry.
4604
4605 2008-03-23  Bruno Haible  <bruno@clisp.org>
4606
4607         Fix regex compilation error on HP-UX 11.
4608         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
4609         * modules/regex (Files): Add m4/mbstate_t.m4.
4610         Reported by Ton Voon <ton.voon@altinity.com>.
4611
4612 2008-03-23  Bruno Haible  <bruno@clisp.org>
4613
4614         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
4615
4616 2008-03-23  Eric Blake  <ebb9@byu.net>
4617             Bruno Haible  <bruno@clisp.org>
4618
4619         Install files from top/ in the destination directory.
4620         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4621         augmentation also for the files from top/.
4622         (func_import, func_create_testdir): Rewrite file names:
4623         top/filename -> filename.
4624
4625 2008-03-23  Bruno Haible  <bruno@clisp.org>
4626
4627         Tweak "gnulib --version" output.
4628         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
4629
4630 2008-03-23  Bruno Haible  <bruno@clisp.org>
4631
4632         Tweak "gnulib --version" output.
4633         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
4634         rather than contents of ChangeLog, when possible.
4635
4636 2008-03-21  Eric Blake  <ebb9@byu.net>
4637
4638         More --version tweaks.
4639         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
4640         date of last ChangeLog entry.
4641
4642 2008-03-21  Jim Meyering  <meyering@redhat.com>
4643
4644         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
4645
4646 2008-03-20  Eric Blake  <ebb9@byu.net>
4647
4648         VPATH fix.
4649         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
4650
4651 2008-03-20  Simon Josefsson  <simon@josefsson.org>
4652
4653         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
4654         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
4655
4656 2008-03-20  Eric Blake  <ebb9@byu.net>
4657
4658         Sync GNUmakefile with coreutils.
4659         * build-aux/GNUmakefile (have-Makefile): Rename...
4660         (_have-Makefile): ...to this, for namespace consideration.
4661         (GNUmakefile.cfg): Include, if present.
4662         (_autoreconf): Define a default.
4663         (_is-dist-target): New rule for rebuilds to pick up intra-release
4664         version.
4665         (maint-cfg.mk): Rename...
4666         (cfg.mk): ...to this.
4667
4668 2008-03-18  Jim Meyering  <meyering@redhat.com>
4669
4670         New script and module: mktempd
4671         * MODULES.html.sh (maint+release support): Add mktempd.
4672         * build-aux/mktempd: New file.
4673         * modules/mktempd: New file.
4674
4675 2008-03-15  Jim Meyering  <meyering@redhat.com>
4676
4677         Undo last change.
4678         * lib/sha1.c, lib/md5.c: 63 != ~63.
4679         Reported by Andreas Schwab.
4680
4681         sha1.c, md5.c: Hoist a redundant expression.
4682         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
4683         "ctx->buflen" only once, before calling *_process_block.
4684         * lib/md5.c (md5_process_bytes): Likewise.
4685
4686 2008-03-14  Eric Blake  <ebb9@byu.net>
4687
4688         Bump copyright year in files generated by gnulib-tool.
4689         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4690         gnulib-tool, rather than hard-coding it.
4691
4692         Fix 'gnulib-tool --version' output to work with git.
4693         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4694         (startup): ...here.
4695         (func_version): Use it to invoke git-version-gen, rather than
4696         relying on CVS keyword expansion.  Modernize wording.
4697         (cvsdatestamp, last_checkin_date, version): Kill unused
4698         variables.
4699
4700 2008-03-12  Jim Meyering  <meyering@redhat.com>
4701
4702         Recognize optional cast of the argument to free.
4703         * build-aux/useless-if-before-free: Update regexps.
4704
4705         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
4706
4707 2008-03-11  Bruno Haible  <bruno@clisp.org>
4708
4709         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
4710         by a single package.
4711         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
4712         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
4713         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
4714         Reported by Sam Steingold <sds@gnu.org>.
4715
4716 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4717
4718         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
4719         repositories.
4720
4721 2008-03-11  Bruno Haible  <bruno@clisp.org>
4722
4723         Avoid conflicts between local macro definitions.
4724         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4725         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
4726
4727 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
4728             Bruno Haible  <bruno@clisp.org>
4729
4730         Make va_copy work with some version of xlc on AIX 5.1.
4731         * lib/stdarg.in.h: New file.
4732         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
4733         On AIX, use a <stdarg.h> file substitute.
4734         * modules/stdarg (Files): Add lib/stdarg.in.h.
4735         (Depends-on): Add include_next.
4736         (Makefile.am): Build a stdarg.h substitute if requested.
4737         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
4738
4739 2008-03-10  Bruno Haible  <bruno@clisp.org>
4740
4741         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
4742         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4743         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4744
4745 2008-03-10  Bruno Haible  <bruno@clisp.org>
4746
4747         * modules/stdlib (Depends-on): Add include_next, remove
4748         absolute-header.
4749
4750 2008-03-09  Bruno Haible  <bruno@clisp.org>
4751
4752         * lib/freadahead.h (freadahead): Document more precisely.
4753         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
4754         the sum of both buffer sizes.
4755         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
4756         * NEWS: Document the change.
4757
4758 2008-03-09  Bruno Haible  <bruno@clisp.org>
4759
4760         Extend freadptr to return also the buffer size.
4761         * lib/freadptr.h (freadptr): Add sizep argument.
4762         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
4763         (freadptr): Add sizep argument. Determine buffer size like freadahead
4764         does.
4765         * tests/test-freadptr.c: Don't include freadahead.h.
4766         (main): Adapt for new calling convention of freadptr.
4767         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
4768         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
4769         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
4770         tests/test-freadptr2.sh.
4771         (Depends): Remove freadahead.
4772         (TESTS): Add test-freadptr2.sh.
4773         (check_PROGRAMS): Add test-freadptr2.
4774
4775 2008-03-09  Bruno Haible  <bruno@clisp.org>
4776
4777         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
4778         Report and solution by Simon Josefsson.
4779
4780 2008-03-06  Bruno Haible  <bruno@clisp.org>
4781
4782         Make fflush after ungetc work on BSD platforms.
4783         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
4784         * tests/test-fflush2.c: New file.
4785         * tests/test-fflush2.sh: New file.
4786         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
4787         tests/test-fflush2.c.
4788         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
4789         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
4790
4791 2008-03-06  Eric Blake  <ebb9@byu.net>
4792
4793         Likewise for ftello.
4794         * modules/ftello (Dependencies): Add extensions.
4795         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
4796
4797 2008-03-06  Bruno Haible  <bruno@clisp.org>
4798
4799         * modules/fseeko (Dependencies): Add extensions.
4800         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
4801         Needed on glibc systems.
4802
4803 2008-03-06  Bruno Haible  <bruno@clisp.org>
4804
4805         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
4806         email address.
4807         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4808
4809 2008-03-06  Bruno Haible  <bruno@clisp.org>
4810
4811         * users.txt: Add libgnupdf.
4812
4813 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4814
4815         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
4816         (Header File Substitutes, Function Substitutes,
4817         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
4818         (Build robot for gnulib): Fix typo.
4819
4820 2008-03-06  Bruno Haible  <bruno@clisp.org>
4821
4822         * doc/gnulib-tool.texi (VCS Issues): Small updates.
4823         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4824
4825 2008-03-06  Bruno Haible  <bruno@clisp.org>
4826
4827         * doc/func.texi: New file, extracted from doc/gnulib.texi.
4828         * doc/gnulib.texi: Include it.
4829
4830 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4831
4832         * modules/func (License): Change license to unlimited; there was
4833         no LGPL parts in the module anyway.
4834
4835 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4836
4837         * modules/__func__: Renamed to modules/func.
4838         * modules/__func__-tests: Renamed to modules/func-tests.
4839         * tests/test-__func__.c: Renamed to tests/test-func.c.
4840         * m4/__func__.m4: Renamed to m4/func.m4.
4841         * doc/gnulib.texi (__func__): Section renamed to func.
4842         Suggested by Eric Blake <ebb9@byu.net>.
4843
4844 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4845
4846         * doc/gnulib.texi (__func__): Use C99 terminology when talking
4847         about __func__.  Make example self-contained.  Suggested by Eric
4848         Blake <ebb9@byu.net>.
4849
4850         * tests/test-__func__.c (main): Avoid extraneous () around __func.
4851         Suggested by Eric Blake <ebb9@byu.net>.
4852
4853 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4854
4855         * modules/__func__: New file.
4856         * modules/__func__-tests: New file.
4857         * tests/test-__func__.c: New file.
4858         * m4/__func__.m4: New file.
4859         * doc/gnulib.texi (__func__): Document __func__ module.
4860
4861 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4862
4863         * modules/byteswap (License): Re-license as LGPLv2+.
4864
4865 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4866
4867         * doc/Makefile: Add pdf target.
4868
4869 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4870
4871         * modules/inline (License): Use 'unlimited', since there are only
4872         *.m4 files in this module.
4873
4874 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4875             Bruno Haible  <bruno@clisp.org>
4876
4877         Add support for HP C 7.1 on OpenVMS 8.3.
4878         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
4879
4880 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4881
4882         Update VMS specifics.
4883         * lib/getopt.c [VMS]: Remove include of unixlib.h.
4884
4885 2008-03-02  Jim Meyering  <meyering@redhat.com>
4886
4887         Remove the last dependency on the "free" module.
4888         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
4889         Reported by Bob Proulx.
4890
4891         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
4892
4893         Remove useless "if" tests before free.  Deprecate "free" module.
4894         * doc/posix-functions/free.texi: Mention that this
4895         module is no longer useful.
4896         * modules/free (Notice): Say this module is obsolete.
4897         * modules/readutmp (Depends-on): Remove free.
4898         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
4899         * lib/putenv.c (putenv): Likewise.
4900         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
4901         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
4902         * tests/test-c-strcasestr.c (main): Likewise.
4903         * tests/test-c-strstr.c (main): Likewise.
4904         * tests/test-mbscasestr1.c (main): Likewise.
4905         * tests/test-mbscasestr2.c (main): Likewise.
4906         * tests/test-mbsstr1.c (main): Likewise.
4907         * tests/test-mbsstr2.c (main): Likewise.
4908         * tests/test-memmem.c (main): Likewise.
4909         * tests/test-strcasestr.c (main): Likewise.
4910         * tests/test-striconv.c (main): Likewise.
4911         * tests/test-striconveh.c (main): Likewise.
4912         * tests/test-striconveha.c (main): Likewise.
4913         * tests/test-strstr.c (main): Likewise.
4914
4915         * build-aux/git-version-gen: Adjust a comment and the Usage string.
4916
4917         bootstrap: sync from coreutils again
4918         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
4919
4920 2008-03-01  Jim Meyering  <meyering@redhat.com>
4921
4922         bootstrap: sync from coreutils
4923         * build-aux/bootstrap (update_po_files): Copy a .po file into place
4924         also when the target doesn't exist.
4925
4926 2008-03-01  Eric Blake  <ebb9@byu.net>
4927
4928         Fix bugs in last patch.
4929         * lib/memchr2.c (memchr2): Fix typo.
4930         * tests/test-memchr2.c: Test previous bug, and don't use GNU
4931         extension.
4932         Reported by Bruce Korb.
4933
4934         New module 'memchr2'.
4935         * modules/memchr2: New file.
4936         * modules/memchr2-tests: Likewise.
4937         * lib/memchr2.h: Likewise.
4938         * lib/memchr2.c: Likewise, based on memchr.c.
4939         * tests/test-memchr2.c: New test.
4940         * MODULES.html.sh (String handling): Add memchr2.
4941
4942 2008-02-29  Bruno Haible  <bruno@clisp.org>
4943
4944         * modules/freadseek-tests: New file.
4945         * tests/test-freadseek.sh: New file.
4946         * tests/test-freadseek.c: New file.
4947
4948         New module 'freadseek'.
4949         * modules/freadseek: New file.
4950         * lib/freadseek.h: New file.
4951         * lib/freadseek.c: New file.
4952         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
4953
4954 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
4955
4956         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
4957         wydawca.
4958
4959         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
4960         program_invocation_name and program_invocation_short_name are
4961         present.
4962
4963 2008-02-28  Bruno Haible  <bruno@clisp.org>
4964
4965         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
4966         * tests/test-freadptr.sh: Also test non-seekable stdin.
4967
4968 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
4969
4970         * build-aux/bootstrap (source_base, m4_base)
4971         (doc_base, tests_base): New variables.
4972         (gnulib_tool_options): Do not hardcode base directories, use
4973         the above variables instead.
4974
4975 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
4976
4977         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
4978
4979 2008-02-28  Bruno Haible  <bruno@clisp.org>
4980
4981         * modules/freadptr-tests: New file.
4982         * tests/test-freadptr.sh: New file.
4983         * tests/test-freadptr.c: New file.
4984
4985         New module 'freadptr'.
4986         * modules/freadptr: New file.
4987         * lib/freadptr.h: New file.
4988         * lib/freadptr.c: New file.
4989         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
4990
4991 2008-02-26  Karl Berry  <karl@freefriends.org>
4992
4993         Sync from Libtool:
4994         * libltdl/argz.c (argz_add, argz_count): New functions.
4995         * libltdl/argz.in.h: Declare them.
4996         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
4997
4998 2008-02-22  Bruno Haible  <bruno@clisp.org>
4999
5000         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
5001         is a pointer type.  Needed for HP-UX 10.
5002         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
5003         * doc/posix-functions/gmtime_r.texi: Likewise.
5004         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5005
5006 2008-02-24  Bruno Haible  <bruno@clisp.org>
5007
5008         * modules/environ-tests: New file.
5009         * tests/test-environ.c: New file.
5010
5011         New module 'environ'.
5012         * modules/environ: New file.
5013         * lib/unistd.in.h (environ): New declaration.
5014         * m4/environ.m4: New file.
5015         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
5016         after use.
5017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
5018         HAVE_DECL_ENVIRON.
5019         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
5020         HAVE_DECL_ENVIRON.
5021         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
5022         wrong claim that 'environ' is missing on some systems.
5023         * modules/execute (Depends-on): Add environ.
5024         * lib/execute.c (environ): Remove fallback declaration.
5025         * modules/pipe (Depends-on): Add environ.
5026         * lib/pipe.c (environ): Remove fallback declaration.
5027         * modules/setenv (Depends-on): Add environ.
5028         * lib/setenv.c (environ): Remove fallback declaration.
5029         * modules/unsetenv (Depends-on): Add environ.
5030         * lib/unsetenv.c (environ): Remove fallback declaration.
5031         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
5032         m4/environ.m4.
5033         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
5034         (gl_PREREQ_UNSETENV): Likewise.
5035
5036 2008-02-24  Bruno Haible  <bruno@clisp.org>
5037
5038         * doc/posix-functions/environ.texi: Document the MacOS X problem.
5039
5040 2008-02-20  Bob Proulx  <bob@proulx.com>
5041
5042         Enable use of older two part flavor 'git describe'.
5043         * build-aux/git-version-gen: If using the older two part flavor of
5044         git version then recreate the third part now present in the
5045         newer three part flavor of git describe.
5046
5047 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
5048
5049         * lib/fts.c (fts_build): Typo correction to comment.
5050
5051 2008-02-17  Bruno Haible  <bruno@clisp.org>
5052
5053         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
5054         generating no-op conflicts.
5055
5056 2008-02-17  Bruno Haible  <bruno@clisp.org>
5057
5058         Speed up by 10%.
5059         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
5060         result_entries, rather than an index-based loop.
5061
5062 2008-02-17  Bruno Haible  <bruno@clisp.org>
5063
5064         Speed up by 25%.
5065         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
5066         'hashcode_cached'.
5067         (entry_create): New function.
5068         (entry_hashcode): Use the cached hashcode if possible.
5069         (read_changelog_file, try_split_merged_entry): Use entry_create.
5070
5071 2008-02-17  Bruno Haible  <bruno@clisp.org>
5072
5073         Speed up from O(n^2) to O(n) for long ChangeLog files.
5074         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
5075         (read_changelog_file): Change implementation of entries_reversed list
5076         to rbtreehash.
5077         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
5078
5079 2008-02-17  Bruno Haible  <bruno@clisp.org>
5080
5081         New option --split-merged-entry.
5082         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
5083         (find_paragraph_end, try_split_merged_entry): New functions.
5084         (long_options): Add option --split-merged-entry.
5085         (usage): Document option --split-merged-entry.
5086         (main): Implement option --split-merged-entry.
5087         Reported by Eric Blake.
5088
5089 2008-02-17  Bruno Haible  <bruno@clisp.org>
5090
5091         * lib/git-merge-changelog.c: Include c-strstr.h.
5092         (main): Support the "git pull --rebase" situation.
5093         * modules/git-merge-changelog (Depends-on): Add c-strstr.
5094         Reported by Eric Blake.
5095
5096 2008-02-16  Eric Blake  <ebb9@byu.net>
5097
5098         Avoid doubling \ in common case of "c-maybe" quoting style.
5099         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
5100         eliding outer quotes.
5101         * lib/quotearg.h: Document this.
5102         * tests/test-quotearg.c (result_strings, inputs, results_g)
5103         (flag_results, locale_results): Test it by adding a new string to
5104         each test group.
5105         (compare_strings): Test new string.
5106
5107 2008-02-13  Eric Blake  <ebb9@byu.net>
5108
5109         Avoid trigraph quoting in default output.
5110         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
5111         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
5112         unless explicitly requested.
5113         * tests/test-quotearg.c (flag_results, main): Add additional tests.
5114
5115 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
5116
5117         Don't rely on signed integer overflowing to negative value.
5118         * lib/getugroups.c (getugroups): Include <limits.h>.
5119         Instead, compare against INT_MAX, and increment only if the test passes.
5120
5121 2008-02-13  Jim Meyering  <meyering@redhat.com>
5122         and Eric Blake  <ebb9@byu.net>
5123
5124         Avoid shadowing warning and compile errors on Linux.
5125         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
5126         forwarding macros on Linux.
5127         (dcgettext): Define a stub, for Linux.
5128         (results_g, main): Avoid warnings.
5129
5130 2008-02-12  Eric Blake  <ebb9@byu.net>
5131
5132         Silence warning in last patch.
5133         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
5134
5135         Quotearg part 4: add tests, fix c-maybe colon quoting.
5136         * lib/quotearg.h: Improve documentation.
5137         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
5138         escapes when adding outer quotes.  When quoting trigraphs, use
5139         valid C notation.  When quoting NUL, omit extra characters if next
5140         character is not digit.  Alter prototype.
5141         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
5142         callers.
5143         * modules/quotearg-tests: New module.
5144         * tests/test-quotearg.c: New test.
5145
5146 2008-02-07  Eric Blake  <ebb9@byu.net>
5147
5148         Quotearg part 3: add flag to control outer quote elision.
5149         * lib/quotearg.h (c_maybe_quoting_style): New style.
5150         (enum quoting_flags): Better documentation of flags.
5151         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
5152         c-maybe style.
5153         (quotearg_buffer_restyled): Handle new flag to elide outer
5154         quotes.
5155
5156         Quotearg part 2: add flag that can control NUL elision.
5157         * lib/quotearg.h (set_quoting_flags): New prototype.
5158         * lib/quotearg.c (struct quoting_options): Add flag field.
5159         (set_quoting_flags): New function.
5160         (quotearg_buffer_restyled): Add flags parameter.
5161         (quotearg_alloc_mem): Set the flag if length cannot be returned.
5162         (quotearg_n_options): Set the flag, since length cannot be
5163         returned.
5164         (quoting_options_from_style): Default flags correctly.
5165
5166         Quotearg part 1: more wrappers, restore quotearg_char state.
5167         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
5168         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
5169         (quotearg_colon_mem): New wrappers.
5170         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
5171         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
5172         functions.
5173         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
5174         (quotearg_colon_mem): New functions.
5175
5176 2008-02-11  Bruno Haible  <bruno@clisp.org>
5177
5178         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
5179         library in the current directory: it does not work with parallel make.
5180         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5181
5182 2008-02-11  Bruno Haible  <bruno@clisp.org>
5183
5184         * .gitattributes: New file.
5185
5186 2008-02-11  Jim Meyering  <meyering@redhat.com>
5187
5188         useless-if-before-free: Fix reversed exit values.
5189         * build-aux/useless-if-before-free: Use correct values
5190         for EXIT_MATCH and EXIT_NO_MATCH.
5191
5192         * build-aux/useless-if-before-free: Close stdout carefully.
5193
5194 2008-02-10  Bruno Haible  <bruno@clisp.org>
5195
5196         New module 'git-merge-changelog'.
5197         * modules/git-merge-changelog: New file.
5198         * lib/git-merge-changelog.c: New file.
5199
5200 2008-02-10  Jim Meyering  <meyering@redhat.com>
5201
5202         useless-if-before-free: New option: --list (-l).
5203
5204         useless-if-before-free: Don't exit immediately upon open failure.
5205         * build-aux/useless-if-before-free: Exit 2 for errors.
5206         Upon failure to open a file, don't exit immediately.
5207         Rather, just warn and continue with any remaining files.
5208
5209 2008-02-10  Bruno Haible  <bruno@clisp.org>
5210
5211         New abstract list operation 'node_set_value'.
5212         * lib/gl_list.h (gl_list_node_set_value): New function.
5213         (struct gl_list_implementation): New field node_set_value.
5214         * lib/gl_list.c (gl_list_node_set_value): New function.
5215         * lib/gl_array_list.c (gl_array_node_set_value): New function.
5216         (gl_array_list_implementation): Update.
5217         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
5218         (gl_carray_list_implementation): Update.
5219         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
5220         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5221         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5222         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
5223         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5224         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5225         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5226         Update.
5227         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5228         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
5229         (gl_sublist_list_implementation): Update.
5230
5231 2008-02-10  Bruno Haible  <bruno@clisp.org>
5232
5233         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
5234         Needed when ELEMENT is #defined to 'some_type *'.
5235
5236 2008-02-10  Jim Meyering  <meyering@redhat.com>
5237
5238         New script and module: useless-if-before-free
5239         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
5240         * build-aux/useless-if-before-free: New file.
5241         * modules/useless-if-before-free: New file.
5242
5243         * build-aux/gitlog-to-changelog: Use committer date, not author date.
5244
5245         xstrtol_error: Fix typo.
5246         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
5247         s/exit_failure/exit_status/.
5248
5249 2008-02-09  Jim Meyering  <meyering@redhat.com>
5250
5251         New script and module: gitlog-to-changelog
5252         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
5253         * modules/gitlog-to-changelog: New file.
5254         * build-aux/gitlog-to-changelog: New file.
5255
5256 2008-02-08  Jim Meyering  <meyering@redhat.com>
5257
5258         Avoid two "parameter unused" warnings.
5259         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
5260         Mark "st" as used.
5261
5262         Use "git COMMAND", not "git-COMMAND".
5263         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
5264         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
5265         * build-aux/git-version-gen: Use "git status", not "git-status".
5266
5267 2008-02-07  Bruno Haible  <bruno@clisp.org>
5268
5269         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
5270         Avoids a crash on Windows Vista.
5271         Reported by Adam Strzelecki <ono@java.pl> via
5272         Simon Josefsson <simon@josefsson.org>.
5273
5274 2008-02-06  Bruno Haible  <bruno@clisp.org>
5275
5276         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
5277         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
5278         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5280         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5281         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5282         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5283         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5288         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5290         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5291         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5292         left-adjust flag.
5293         * tests/test-snprintf-posix.h (test_function): Likewise.
5294         * tests/test-sprintf-posix.h (test_function): Likewise.
5295         * tests/test-vasprintf-posix.c (test_function): Likewise.
5296         * doc/posix-functions/fprintf.texi: Update.
5297         * doc/posix-functions/printf.texi: Update.
5298         * doc/posix-functions/snprintf.texi: Update.
5299         * doc/posix-functions/sprintf.texi: Update.
5300         * doc/posix-functions/vfprintf.texi: Update.
5301         * doc/posix-functions/vprintf.texi: Update.
5302         * doc/posix-functions/vsnprintf.texi: Update.
5303         * doc/posix-functions/vsprintf.texi: Update.
5304         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5305
5306 2008-02-06  Bruno Haible  <bruno@clisp.org>
5307
5308         Fix bug introduced on 2008-01-26.
5309         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5310
5311 2008-02-06  Bruno Haible  <bruno@clisp.org>
5312
5313         Fix bug introduced on 2007-06-10.
5314         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5315         !NEED_PRINTF_FLAG_ZERO.
5316
5317 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5318
5319         getloadavg: use libperfstat on AIX5
5320         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5321
5322 2008-02-03  Bruno Haible  <bruno@clisp.org>
5323
5324         * lib/diffseq.h: Add comments about required #includes.
5325         Reported by Michael Biggs <gnulib@doubleplum.net>.
5326
5327 2008-02-01  Bruno Haible  <bruno@clisp.org>
5328
5329         * users.txt: Add gnuit.
5330
5331 2008-01-31  Bruno Haible  <bruno@clisp.org>
5332
5333         * lib/md4.c (set_uint32): Mark as inline.
5334         * lib/md5.c (set_uint32): Likewise.
5335         * lib/sha1.c (set_uint32): Likewise.
5336         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5337         * m4/md5.m4 (gl_MD5): Likewise.
5338         * m4/sha1.m4 (gl_SHA1): Likewise.
5339
5340 2008-01-31  Jim Meyering  <meyering@redhat.com>
5341
5342         Use "sizeof VAR", rather than a literal "4".
5343         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5344         * lib/md4.c (md4_read_ctx): Likewise.
5345         * lib/sha1.c (sha1_read_ctx): Likewise.
5346
5347 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5348
5349         * tests/test-sha1.c: New file, based on test-md5.c.
5350
5351         * modules/crypto/sha1-tests: New file.
5352
5353 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5354
5355         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5356
5357 2008-01-31  Jim Meyering  <meyering@redhat.com>
5358
5359         Prefer "sizeof v" over the equivalent "4".
5360         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5361         * lib/md5.c (set_uint32): Likewise.
5362         * lib/sha1.c (set_uint32): Likewise.
5363
5364 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5365
5366         * lib/sha1.c (set_uint32): Mark function as static.
5367
5368 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5369
5370         md2: clarify comments to say that alignment is not required.
5371         * lib/md2.h: Remove warning about alignment in comment.
5372         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5373         never been required.
5374
5375 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5376
5377         md4: adapt alignment constraint fix from sha1.
5378         * lib/md4.c (set_uint32): New function, from sha1.c
5379         (md4_read_ctx): Use it.
5380         (md4_finish_ctx): Doc fix.
5381         * lib/md4.h: Doc fix.
5382
5383 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5384
5385         md5: adapt alignment constraint fix from sha1.
5386         * lib/md5.c (set_uint32): New function, from sha1.c
5387         (md5_read_ctx): Use it.
5388         (md5_finish_ctx): Doc fix.
5389         * lib/md5.h: Doc fix.
5390
5391 2008-01-30  Peter Palfrader  <weasel@debian.org>
5392
5393         sha1: remove the result buffer alignment constraint
5394         * lib/sha1.c (set_uint32): New function.
5395         (sha1_read_ctx): Rewrite to remove the result buffer alignment
5396         constraint.
5397         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5398         * lib/sha1.h: Likewise.
5399
5400 2008-01-30  Andreas Schwab  <schwab@suse.de>
5401             Bruno Haible  <bruno@clisp.org>
5402
5403         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5404         correct definition of LDBL_MIN_EXP.
5405
5406 2008-01-30  Karl Berry  <karl@gnu.org>
5407
5408         * config/srclist-update: try to preserve x bit on updates.
5409         * config/srclistvars.sh: update for karl.
5410
5411 2008-01-29  Jim Meyering  <meyering@redhat.com>
5412
5413         vasnprintf.c: Avoid warning about unused label
5414         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5415         "overflow" label definition and associated code with the
5416         same cpp condition that guards the sole use of that label.
5417
5418 2008-01-26  Bruno Haible  <bruno@clisp.org>
5419
5420         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5421         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
5422         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
5423         * lib/isnanl-nolibm.h (isnanl): Likewise.
5424         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5425
5426 2008-01-26  Bruno Haible  <bruno@clisp.org>
5427
5428         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
5429         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
5430
5431 2008-01-26  Bruno Haible  <bruno@clisp.org>
5432
5433         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
5434         GCC >= 4.0 built-in.
5435         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
5436
5437 2008-01-26  Bruno Haible  <bruno@clisp.org>
5438
5439         Rename isnan, applicable to 'double' only, to isnand.
5440         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
5441         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
5442         (configure.ac): Update.
5443         (Include): Replace "isnan.h" with "isnand.h".
5444         * m4/isnand.m4: Renamed from m4/isnan.m4.
5445         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
5446         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
5447         instead of isnan.c.
5448         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
5449         instead of HAVE_ISNAN_IN_LIBC.
5450         (isnand): Renamed from isnan.
5451         * lib/isnand.c: New file.
5452         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
5453         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
5454         (Makefile.am): Update.
5455         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
5456         Include isnand.h instead of isnan.h.
5457         (main): Test isnand instead of isnan.
5458         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
5459         isnan-nolibm.
5460         * modules/frexp (Depends-on): Likewise.
5461         * modules/frexp-tests (Depends-on): Likewise.
5462         * modules/frexp-nolibm (Depends-on): Likewise.
5463         * modules/frexp-nolibm-tests (Depends-on): Likewise.
5464         * modules/isfinite (Depends-on): Likewise.
5465         * modules/round-tests (Depends-on): Likewise.
5466         * modules/signbit (Depends-on): Likewise.
5467         * modules/signbit-tests (Depends-on): Likewise.
5468         * modules/snprintf-posix (Depends-on): Likewise.
5469         * modules/sprintf-posix (Depends-on): Likewise.
5470         * modules/trunc-tests (Depends-on): Likewise.
5471         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5472         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5473         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5474         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5475         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5476         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5477         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5478         * modules/vasnprintf-posix (Depends-on): Likewise.
5479         * modules/vasprintf-posix (Depends-on): Likewise.
5480         * modules/vfprintf-posix (Depends-on): Likewise.
5481         * modules/vsnprintf-posix (Depends-on): Likewise.
5482         * modules/vsprintf-posix (Depends-on): Likewise.
5483         * lib/frexp.c: Include isnand.h instead of isnan.h.
5484         (ISNAN): Set to isnand instead of isnan.
5485         * lib/isfinite.c: Include isnand.h instead of isnan.h.
5486         (gl_isfinited): Use isnand instead of isnan.
5487         * lib/signbitd.c: Include isnand.h instead of isnan.h.
5488         (gl_signbitd): Use isnand instead of isnan.
5489         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
5490         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
5491         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
5492         (main): Use isnand instead of isnan.
5493         * tests/test-round1.c: Include isnand.h.
5494         (main): Use isnand instead of isnan.
5495         * tests/test-round2.c: Include isnand.h instead of isnan.h.
5496         (ISNAN): Set to isnand instead of isnan.
5497         * tests/test-trunc1.c: Include isnand.h.
5498         (main): Use isnand instead of isnan.
5499         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
5500         (equal): Use isnand instead of isnan.
5501         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
5502         isnand-nolibm.
5503         * NEWS: Mention the change.
5504
5505 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5506             Bruno Haible  <bruno@clisp.org>
5507
5508         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
5509         the GCC builtins for signbits are present and set
5510         REPLACE_SIGNBIT_USING_GCC if so.
5511         * lib/math.in.h (signbit): Define using GCC builtins if
5512         REPLACE_SIGNBIT_USING_GCC is set.
5513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5514         REPLACE_SIGNBIT_USING_GCC.
5515         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
5516
5517 2008-01-25  Jim Meyering  <meyering@redhat.com>
5518
5519         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
5520         * lib/poll.c: Include <config.h>, not "config.h".
5521         * tests/test-getaddrinfo.c: Likewise.
5522
5523 2008-01-25  Simon Josefsson  <simon@josefsson.org>
5524
5525         * modules/sockets-tests: New file.
5526
5527 2008-01-24  Simon Josefsson  <simon@josefsson.org>
5528
5529         * modules/sockets: New module, can be used to call WSA_Startup and
5530         WSA_Cleanup when needed.
5531
5532         * lib/sockets.h, lib/sockets.c: New files.
5533
5534         * m4/sockets.m4: New file.
5535
5536         * tests/test-sockets.c: New file.
5537
5538 2008-01-19  Bruno Haible  <bruno@clisp.org>
5539
5540         * doc/posix-headers: Renamed from doc/headers.
5541         * doc/posix-functions: Renamed from doc/functions.
5542         * doc/gnulib.texi: Update.
5543
5544 2008-01-19  Bruno Haible  <bruno@clisp.org>
5545
5546         * doc/glibc-functions/strcasestr.texi: Include contents of
5547         doc/functions/strcasestr.texi, fixing the list of platforms.
5548         * doc/functions/strcasestr.texi: Remove file.
5549
5550 2008-01-19  Bruno Haible  <bruno@clisp.org>
5551
5552         * doc/glibc-functions/memmem.texi: Include contents of
5553         doc/functions/memmem.texi.
5554         * doc/functions/memmem.texi: Remove file.
5555
5556 2008-01-18  Bruno Haible  <bruno@clisp.org>
5557
5558         * doc/glibc-functions/*.texi: New files.
5559         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
5560         to use the new files.
5561
5562 2008-01-17  Bruno Haible  <bruno@clisp.org>
5563
5564         * tests/test-gethostname.c (main): Fix printf statement.
5565
5566 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5567
5568         * modules/gethostname-tests: New file.
5569
5570         * tests/test-gethostname.c: New file.
5571
5572 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5573
5574         * lib/gethostname.c: Include string.h unconditionally, strncpy is
5575         used by the UNAME case.  Reported by Bruno Haible
5576         <bruno@clisp.org>.
5577
5578 2008-01-17  Eric Blake  <ebb9@byu.net>
5579
5580         Convert c-strcasestr to be more efficient.
5581         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
5582         (Depends-on): Add c-strcase, remove malloca, strnlen.
5583         * tests/test-c-strcasestr.c (main): Enhance test.
5584         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
5585
5586 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5587
5588         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
5589         Use it in creating po/Makevars.
5590
5591 2008-01-15  Simon Josefsson  <simon@josefsson.org>
5592
5593         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
5594         Applications that requires it should initialize libgcrypt
5595         manually.
5596
5597 2008-01-16  Simon Josefsson  <simon@josefsson.org>
5598
5599         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
5600
5601 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5602
5603         Fix problem with getdate on mingw32 reported by Simon Josefsson
5604         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5605         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
5606         tzname", when deciding whether to declare tzname.
5607         * lib/strftime.c (tzname): Likewise.
5608
5609 2008-01-15  Bruno Haible  <bruno@clisp.org>
5610
5611         Work around a MacOS X 10.5 bug in frexpl().
5612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
5613         * doc/functions/frexpl.texi: Document the bug.
5614         Reported by Elias Pipping <pipping@gentoo.org>.
5615
5616 2008-01-14  Eric Blake  <ebb9@byu.net>
5617
5618         Touch up previous patch.
5619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
5620         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
5621
5622         Convert strcasestr module to use Two-Way algorithm.
5623         * modules/strcasestr-simple: New module, based on the old
5624         strcasestr, but with Two-Way rather than KMP.
5625         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
5626         * lib/string.in.h (rpl_strcasestr): Declare.
5627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
5628         performance.
5629         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
5630         * modules/string (Makefile.am): Support strcasestr.
5631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
5632         * modules/strcasestr-tests (Depends-on): Check for alarm.
5633         * tests/test-strcasestr.c: Augment test.
5634         * lib/str-two-way.h: Clean up stray macro.
5635         * NEWS: Document new module.
5636         * MODULES.html.sh (string handling): Likewise.
5637         * doc/functions/strcasestr.texi: New file.
5638         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
5639         here, since it is not a POSIX function.
5640
5641 2008-01-14  Colin Watson  <cjwatson@debian.org>
5642             Bruno Haible  <bruno@clisp.org>
5643
5644         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
5645         works fine; if not, set REPLACE_STRSIGNAL.
5646         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
5647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5648         REPLACE_STRSIGNAL.
5649         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
5650         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
5651         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
5652
5653 2008-01-14  Bruno Haible  <bruno@clisp.org>
5654
5655         * modules/strsignal (Include): Change to <string.h>.
5656
5657 2008-01-14  Colin Watson  <cjwatson@debian.org>
5658
5659         * modules/argp (Notice): Add a notice recommending to change
5660         XGETTEXT_OPTIONS.
5661         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
5662
5663 2008-01-13  Colin Watson  <cjwatson@debian.org>
5664
5665         * modules/strsignal-tests: New file.
5666         * tests/test-strsignal.c: New file.
5667
5668         * lib/strsignal.c: New file, from glibc with modifications.
5669         * lib/siglist.h: New file, from glibc with modifications.
5670         * lib/string.in.h (strsignal): New declaration.
5671         * m4/strsignal.m4: New file.
5672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5673         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
5674         * modules/strsignal: New file.
5675         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
5676         HAVE_DECL_STRSIGNAL.
5677
5678 2008-01-13  Bruno Haible  <bruno@clisp.org>
5679
5680         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
5681         locale encoding is not ASCII. Needed for OpenBSD 4.0.
5682         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5683         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5684
5685 2008-01-13  Bruno Haible  <bruno@clisp.org>
5686
5687         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
5688         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
5689         * lib/argp.h (__attribute__): Likewise.
5690         * lib/c-stack.c (__attribute__): Likewise.
5691         * lib/error.h (__attribute__): Likewise.
5692         * lib/fts.c (__attribute__): Likewise.
5693         * lib/openat.h (__attribute__): Likewise.
5694         * lib/stdio.in.h (__attribute__): Likewise.
5695         * lib/string.in.h (__attribute__): Likewise.
5696         * lib/utimens.c (__attribute__): Likewise.
5697         * lib/vasnprintf.h (__attribute__): Likewise.
5698         * lib/xalloc.h (__attribute__): Likewise.
5699         * lib/xprintf.h (__attribute__): Likewise.
5700         * lib/xstrtol.h (__attribute__): Likewise.
5701         * lib/xvasprintf.h (__attribute__): Likewise.
5702
5703 2008-01-12  Bruno Haible  <bruno@clisp.org>
5704
5705         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
5706         * doc/glibc-headers/a.out.texi: New file.
5707         * doc/glibc-headers/aliases.texi: New file.
5708         * doc/glibc-headers/alloca.texi: New file.
5709         * doc/glibc-headers/ar.texi: New file.
5710         * doc/glibc-headers/argp.texi: New file.
5711         * doc/glibc-headers/argz.texi: New file.
5712         * doc/glibc-headers/byteswap.texi: New file.
5713         * doc/glibc-headers/crypt.texi: New file.
5714         * doc/glibc-headers/endian.texi: New file.
5715         * doc/glibc-headers/envz.texi: New file.
5716         * doc/glibc-headers/err.texi: New file.
5717         * doc/glibc-headers/error.texi: New file.
5718         * doc/glibc-headers/execinfo.texi: New file.
5719         * doc/glibc-headers/fpu_control.texi: New file.
5720         * doc/glibc-headers/fstab.texi: New file.
5721         * doc/glibc-headers/fts.texi: New file.
5722         * doc/glibc-headers/getopt.texi: New file.
5723         * doc/glibc-headers/ieee754.texi: New file.
5724         * doc/glibc-headers/ifaddrs.texi: New file.
5725         * doc/glibc-headers/libintl.texi: New file.
5726         * doc/glibc-headers/mcheck.texi: New file.
5727         * doc/glibc-headers/mntent.texi: New file.
5728         * doc/glibc-headers/obstack.texi: New file.
5729         * doc/glibc-headers/paths.texi: New file.
5730         * doc/glibc-headers/printf.texi: New file.
5731         * doc/glibc-headers/pty.texi: New file.
5732         * doc/glibc-headers/resolv.texi: New file.
5733         * doc/glibc-headers/shadow.texi: New file.
5734         * doc/glibc-headers/sysexits.texi: New file.
5735         * doc/glibc-headers/ttyent.texi: New file.
5736
5737 2008-01-12  Jim Meyering  <meyering@redhat.com>
5738
5739         announce-gen: emit Gnulib's git-based version string.
5740         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
5741         New option --gnulib-version=V, where V is expected to be
5742         the output of running git describe in the gnulib directory.
5743         (get_tool_versions): Request feedback on xdelta.  I suspect it's
5744         not useful, and plan to stop publishing an xdelta file with each
5745         coreutils release.
5746
5747         * build-aux/announce-gen: Also check for lzma-compressed files.
5748
5749 2008-01-11  Bruno Haible  <bruno@clisp.org>
5750
5751         * tests/test-memmem.c (main): Increase maximum allowed time.
5752         * tests/test-strstr.c (main): Likewise.
5753
5754 2008-01-11  Bruno Haible  <bruno@clisp.org>
5755
5756         * doc/functions/memmem.texi: Add more precisions about platforms.
5757         * doc/functions/strstr.texi: Likewise.
5758
5759 2008-01-10  Eric Blake  <ebb9@byu.net>
5760
5761         * m4/strstr.m4: Delete cruft from copy-n-paste.
5762         Reported by Bruno Haible.
5763
5764 2008-01-10  Bruno Haible  <bruno@clisp.org>
5765
5766         Make c-strstr rely on strstr.
5767         * lib/c-strstr.c: Don't include str-kmp.h.
5768         (c_strstr): Define in terms of strstr.
5769         * modules/c-strstr (Files): Remove lib/str-kmp.h.
5770         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
5771
5772 2008-01-10  Bruno Haible  <bruno@clisp.org>
5773
5774         * doc/gnulib.texi (String Functions in C Locale): New section.
5775         * doc/c-ctype.texi: New file.
5776         * doc/c-strcase.texi: New file.
5777         * doc/c-strcaseeq.texi: New file.
5778         * doc/c-strcasestr.texi: New file.
5779         * doc/c-strstr.texi: New file.
5780         * doc/c-strtod.texi: New file.
5781         * doc/c-strtold.texi: New file.
5782
5783 2008-01-10  Eric Blake  <ebb9@byu.net>
5784
5785         * lib/relocatable.h: Fix a comment.
5786
5787 2008-01-10  Eric Blake  <ebb9@byu.net>
5788
5789         Share two-way algorithm.
5790         * lib/str-two-way.h: New file, merged from...
5791         * lib/memmem.c: ...here...
5792         * lib/strstr.c: ...and here.
5793         * modules/memmem (Files): Use it.
5794         * modules/strstr (Files): Likewise.
5795
5796         Avoid quadratic strstr implementations.
5797         * lib/strstr.c: New file.
5798         * m4/strstr.m4: Likewise.
5799         * modules/strstr: Likewise.
5800         * modules/strstr-tests: Likewise.
5801         * tests/test-strstr.c: Likewise.
5802         * lib/string.in.h (rpl_strstr): Declare.
5803         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
5804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
5805         * modules/string (Makefile.am): Likewise.
5806         * MODULES.html.sh (string handling): Mention new module.
5807         * doc/functions/strstr.texi (strstr): Document the bug.
5808
5809 2008-01-10  Bruno Haible  <bruno@clisp.org>
5810
5811         * lib/relocatable.h (relocate): State whether result is freshly
5812         allocated or not.
5813         * lib/relocatable.c (relocate): Return a freshly allocated string
5814         instead of a pointer to a privately held string.
5815         Reported by Sylvain Beucler <beuc@gnu.org>.
5816
5817 2008-01-10  Colin Watson  <cjwatson@debian.org>
5818
5819         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
5820         s/S_ISNLK/S_ISLNK/.
5821
5822 2008-01-09  Bruno Haible  <bruno@clisp.org>
5823
5824         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
5825         and other files.
5826         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
5827         if it's only a guess.
5828         * modules/memmem: Simplify by depending on memmem-simple.
5829
5830 2008-01-09  Bruno Haible  <bruno@clisp.org>
5831
5832         Work around OpenBSD 4.0 tdelete() bug.
5833         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
5834         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
5835         macros and don't redefine the enum values.
5836         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
5837         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
5838         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
5839
5840 2008-01-09  Bruno Haible  <bruno@clisp.org>
5841
5842         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
5843         (main): Don't perform the tests if setlocale did not install a UTF-8
5844         locale. Needed on OpenBSD 4.0.
5845         * modules/wcwidth-tests (Depends-on): Add localcharset.
5846
5847 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5848
5849         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
5850         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
5851         * NEWS: announce this.
5852         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
5853
5854 2008-01-09  Simon Josefsson  <simon@josefsson.org>
5855         and Eric Blake  <ebb9@byu.net>
5856
5857         Add memmem-simple module.
5858         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
5859         (gl_FUNC_MEMMEM): Separate performance from presence checks.
5860         * modules/memmem-simple: New file.
5861         * modules/memmem (Description): Tweak.
5862         * MODULES.html.sh (string handling): Mention new module.
5863         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
5864         addressed by memmem-simple.
5865         * NEWS: Document the difference.
5866
5867 2008-01-09  Eric Blake  <ebb9@byu.net>
5868
5869         Give gcc some memmem optimization hints.
5870         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
5871         (strcasestr): Declare as pure.
5872         * modules/memmem (Maintainer): Claim my implementation.
5873
5874 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5875
5876         Support AIX 6.1 and higher.
5877         * build-aux/config.libpath: Likewise.
5878         * build-aux/config.rpath: Likewise.
5879
5880 2008-01-08  Jim Meyering  <meyering@redhat.com>
5881             Bruno Haible  <bruno@clisp.org>
5882
5883         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
5884         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
5885         Reported by Peter Fales in
5886         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
5887
5888 2008-01-08  Bruno Haible  <bruno@clisp.org>
5889
5890         * modules/unictype/category-of (Depends-on): Add
5891         unictype/category-none.
5892         * modules/unictype/category-and-tests (Depends-on): Add
5893         unictype/category-{L,N,Lu,Nd}.
5894         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
5895         * modules/unictype/category-or-tests (Depends-on): Add
5896         unictype/category-{L,N}.
5897         * modules/unictype/category-name-tests (Depends-on): Add
5898         unictype/category-{Z,Nl}.
5899         Reported by Simon Josefsson.
5900
5901 2008-01-08  Bruno Haible  <bruno@clisp.org>
5902
5903         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
5904         convention better.
5905         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
5906         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
5907         Reported by Peter Miller <millerp@canb.auug.org.au>.
5908
5909 2008-01-08  Eric Blake  <ebb9@byu.net>
5910
5911         Rewrite memmem to guarantee linear complexity without malloc.
5912         * lib/memmem.c (memmem): Use Two-Way rather than
5913         Knuth-Morris-Pratt, to allow O(1) space usage.
5914         (critical_factorization, two_way_short_needle)
5915         (two_way_long_needle): New functions.
5916         (knuth_morris_pratt): Delete.
5917         * modules/memmem (Depends-on): No longer need malloca or stdbool.
5918         Add stdint.
5919         * tests/test-memmem.c (main): Add tests for periodic needle and
5920         sublinear performance.
5921         * doc/functions/memmem.texi (memmem): Document other deficiencies
5922         in cygwin and older glibc.
5923
5924 2008-01-08  Bruno Haible  <bruno@clisp.org>
5925
5926         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
5927         augmentation.
5928
5929 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
5930
5931         Add a configure time option: --disable-acl.
5932         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
5933         AC_ARG_ENABLE(acl).
5934
5935 2008-01-06  Simon Josefsson  <simon@josefsson.org>
5936
5937         * tests/test-localename.c: Don't include obsolete "setenv.h".
5938
5939         * modules/localename-tests (Depends-on): Need unsetenv.
5940
5941 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5942
5943         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
5944
5945 2008-01-06  Colin Watson  <cjwatson@debian.org>
5946
5947         * users.txt: Add man-db.
5948
5949 2008-01-07  Bruno Haible  <bruno@clisp.org>
5950
5951         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
5952         previous section name.
5953
5954 2008-01-07  Bruno Haible  <bruno@clisp.org>
5955
5956         * lib/progname.c (set_program_name): Don't strip off a leading
5957         "lt-" prefix outside a .libs directory.
5958         Suggested by Paul Eggert.
5959
5960 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
5961             Bruno Haible  <bruno@clisp.org>
5962
5963         Improve memory cleanup in 'relocatable' module.
5964         * lib/relocatable.h (compute_curr_prefix): Change return type to
5965         'char *'.
5966         * lib/relocatable.c (compute_curr_prefix): Change return type to
5967         'char *'. Free curr_installdir after use.
5968         (relocate): Free curr_prefix_better after use.
5969         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
5970
5971 2008-01-01  Bruno Haible  <bruno@clisp.org>
5972
5973         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
5974         failure on older glibc systems.
5975         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5976
5977 2008-01-05  Eric Blake  <ebb9@byu.net>
5978
5979         Avoid quadratic system memmem.
5980         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
5981         Reported by Ralf Wildenhues.
5982
5983         Fix memmem test for mingw.
5984         * modules/memmem-tests (configure.ac): Check for alarm.
5985         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
5986         it.
5987         * doc/functions/memmem.texi: New file.
5988         * doc/gnulib.texi (Function Substitutes): Add memmem.
5989         Reported by Bruno Haible.
5990
5991 2008-01-04  Bruno Haible  <bruno@clisp.org>
5992
5993         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
5994         Require gl_HEADER_STRINGS_H_DEFAULTS, not
5995         gl_HEADER_STRING_H_DEFAULTS.
5996
5997 2008-01-04  Eric Blake  <ebb9@byu.net>
5998
5999         Shorten duration of memmem test.
6000         * tests/test-memmem.c (main): Use alarm to declare failure if test
6001         is taking too long.
6002         Reported by Ralf Wildenhues.
6003
6004 2007-12-21  Simon Josefsson  <simon@josefsson.org>
6005
6006         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
6007         string, needed by strerror.
6008
6009 2008-01-03  Colin Watson  <cjwatson@debian.org>
6010             Bruno Haible  <bruno@clisp.org>
6011
6012         * doc/gnulib-tool.texi (Localization): New section.
6013
6014 2008-01-02  Bruno Haible  <bruno@clisp.org>
6015
6016         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
6017         variables to 'unsigned char *' type.
6018         Reported by Paul Eggert.
6019
6020 2008-01-02  Jim Meyering  <jim@meyering.net>
6021
6022         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
6023
6024 2007-12-31  Jim Meyering  <jim@meyering.net>
6025
6026         Avoid use of private FTS type name.
6027         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
6028
6029 2007-12-30  Karl Berry  <karl@gnu.org>
6030
6031         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
6032         work around defect in Texinfo and/or the standalone Info browser.
6033
6034 2007-12-30  Bruno Haible  <bruno@clisp.org>
6035
6036         Unify 5 copies of the KMP code.
6037         * lib/str-kmp.h: New file.
6038         * lib/c-strcasestr.c: Include str-kmp.h.
6039         (knuth_morris_pratt): Remove function.
6040         (c_strcasestr): Update.
6041         * lib/c-strstr.c: Include str-kmp.h.
6042         (knuth_morris_pratt): Remove function.
6043         (c_strcasestr): Update.
6044         * lib/mbscasestr.c: Include str-kmp.h.
6045         (knuth_morris_pratt_unibyte): Remove function.
6046         * lib/mbsstr.c: Include str-kmp.h.
6047         (knuth_morris_pratt_unibyte): Remove function.
6048         * lib/strcasestr.c: Include str-kmp.h.
6049         (knuth_morris_pratt): Remove function.
6050         (strcasestr): Update.
6051         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
6052         * modules/c-strstr (Files): Likewise.
6053         * modules/mbscasestr (Files): Likewise.
6054         * modules/mbsstr (Files): Likewise.
6055         * modules/strcasestr (Files): Likewise.
6056         Suggested by Paul Eggert.
6057
6058 2007-12-30  Bruno Haible  <bruno@clisp.org>
6059
6060         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
6061         defined.
6062
6063 2007-12-30  Bruno Haible  <bruno@clisp.org>
6064
6065         * lib/xmalloca.h: Include xalloc.h.
6066         (xnmalloca): New macro.
6067
6068 2007-12-30  Bruno Haible  <bruno@clisp.org>
6069
6070         * lib/malloca.h (nmalloca): New macro.
6071         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
6072         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
6073         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
6074         knuth_morris_pratt_multibyte): Likewise.
6075         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
6076         knuth_morris_pratt_multibyte): Likewise.
6077         * lib/memmem.c (knuth_morris_pratt): Likewise.
6078         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
6079
6080 2007-12-25  Bruno Haible  <bruno@clisp.org>
6081
6082         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
6083         * lib/glob.c: Don't include openat.h.
6084         (link_exists2_p): Add back the code that deals with the
6085         !GLOB_ALTDIRFUNC case.
6086         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
6087         let it do the filename concatenation.
6088         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
6089         * modules/glob (Depends-on): Remove openat.
6090
6091 2007-12-31  Bruno Haible  <bruno@clisp.org>
6092
6093         * modules/dirfd (License): Change to LGPLv2+.
6094         Approved by Jim Meyering.
6095
6096 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6097
6098         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
6099         when multiplying M by sizeof (size_t).
6100
6101 2007-12-10  Martin Lambers  <marlam@marlam.de>
6102
6103         Override getpagesize on mingw.
6104         * lib/getpagesize.c: New file.
6105         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
6106         * modules/getpagesize (Files): Add lib/getpagesize.c.
6107         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
6108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6109         REPLACE_GETPAGESIZE.
6110         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
6111
6112 2007-12-25  Bruno Haible  <bruno@clisp.org>
6113
6114         * modules/localcharset (Notice): New field.
6115         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
6116         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6117
6118 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6119             Bruno Haible  <bruno@clisp.org>
6120
6121         Avoid using the syntax symbol() in formatted documentation.
6122         * MODULES.html.sh (func_module): When replacing symbol() with a
6123         hyperlink, remove the parentheses. Show an error if some remain.
6124         Recognize and render the '...' syntax.
6125         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
6126         Rework. Add paragraph about GCC's inlining.
6127         * doc/alloca.texi: Likewise.
6128         * doc/error.texi: Remove parentheses from symbol reference.
6129         * doc/gnulib-intro.texi: Likewise.
6130         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
6131         * modules/fnmatch (Description): Reword to say "the ... function".
6132         * modules/full-read (Description): Likewise.
6133         * modules/full-write (Description): Likewise.
6134         * modules/safe-read (Description): Likewise.
6135         * modules/safe-write (Description): Likewise.
6136         * modules/strchrnul (Description): Likewise.
6137         * modules/trim (Description): Likewise.
6138         * modules/error (Description): Remove parentheses from symbol
6139         references.
6140         * modules/verror (Description): Likewise.
6141         Reported by Karl Berry.
6142
6143 2007-12-25  Bruno Haible  <bruno@clisp.org>
6144
6145         Fixup after 2007-10-16 commit.
6146         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
6147
6148 2007-12-24  Bruno Haible  <bruno@clisp.org>
6149
6150         Make --enable-relocatable work with DESTDIR.
6151         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
6152         to compute installdir from destprog.
6153         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
6154         also set the RELOC_DESTDIR variable.
6155         Reported by Левашев Иван <octagram@bluebottle.com>.
6156
6157 2007-12-24  Bruno Haible  <bruno@clisp.org>
6158
6159         Fix link error due to xalloc_die().
6160         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
6161         of xreadlink.
6162         * lib/relocwrapper.c: Update comments.
6163         * build-aux/install-reloc: Remove xreadlink.c from file list.
6164         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
6165         xreadlink.c.
6166         Reported by Левашев Иван <octagram@bluebottle.com>.
6167
6168 2007-12-24  Bruno Haible  <bruno@clisp.org>
6169
6170         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
6171         * lib/setenv.h: Remove file.
6172         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
6173         lib/setenv.h.
6174         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
6175         (Depends-on): Add stdlib.
6176         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
6177         gl_FUNC_UNSETENV.
6178         (Include): Replace setenv.h with <stdlib.h>.
6179         * modules/unsetenv: New file.
6180         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
6181         * lib/unsetenv.c: Include <stdlib.h> first.
6182         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
6183         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
6184         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
6185         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
6186         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
6187         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
6189         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6190         * doc/functions/unsetenv.texi: Update.
6191         * modules/xsetenv (Depends-on): Add unsetenv.
6192         * modules/getdate (Depends-on): Likewise.
6193         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
6194         * lib/xsetenv.c: Don't include setenv.h.
6195         * lib/getdate.y: Likewise.
6196         * lib/relocwrapper.c: Likewise.
6197         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
6198         (Depends-on): Add stdlib.
6199         * NEWS: Mention the changes.
6200         Reported by Левашев Иван <octagram@bluebottle.com>.
6201
6202 2007-12-23  Bruno Haible  <bruno@clisp.org>
6203
6204         * lib/memmem.c (memmem): Use lowercase variable names. Tab
6205         indentation.
6206
6207 2007-12-23  Bruno Haible  <bruno@clisp.org>
6208
6209         * lib/c-strcasestr.c: Add more comments.
6210         * lib/c-strstr.c: Likewise.
6211         * lib/mbscasestr.c: Likewise.
6212         * lib/mbsstr.c: Likewise.
6213         * lib/strcasestr.c: Likewise.
6214         * lib/memmem.c: Likewise.
6215
6216 2007-12-23  Bruno Haible  <bruno@clisp.org>
6217
6218         * tests/test-memmem.c: Include <string.h> first.
6219
6220 2007-12-22  Bruno Haible  <bruno@clisp.org>
6221
6222         * gnulib-tool (func_create_testdir): Change $auxdir while generating
6223         the contents of $testsbase.
6224         Reported by Ralf Wildenhues.
6225
6226 2007-12-22  Bruno Haible  <bruno@clisp.org>
6227
6228         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
6229         two variables local_ldadd_before, local_ldadd_last.
6230
6231 2007-12-20  Eric Blake  <ebb9@byu.net>
6232
6233         Work around circular library issue when cross-compiling.
6234         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
6235         that progname.o does not need to pull in rpl_memcmp.
6236
6237 2007-12-19  Eric Blake  <ebb9@byu.net>
6238
6239         Fix memmem to avoid O(n^2) worst-case complexity.
6240         * lib/memmem.c (knuth_morris_pratt): New function.
6241         (memmem): Use it if first few naive iterations fail.
6242         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
6243         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
6244         * modules/memchr (License): Likewise.
6245         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
6246         malloca.
6247         * tests/test-memmem.c: Rewrite, borrowing ideas from
6248         test-mbsstr1.c; the old version wouldn't even compile!
6249         * modules/memmem-tests: New file.
6250         * lib/string.in.h (rpl_memmem): Add declaration.
6251         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
6252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
6253         REPLACE_MEMMEM.
6254
6255 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6256
6257         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
6258         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
6259         before any system include files, and undef after them all.  This
6260         should fix a problem on VMS reported by John E. Malmberg in
6261         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
6262
6263 2007-12-17  Eric Blake  <ebb9@byu.net>
6264
6265         Revert addition of verify, for BSD/OS.
6266         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
6267         can't handle large files, for the sake of obsolete platforms.
6268         * modules/fseeko (Depends-on): Remove verify.
6269         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
6270         * doc/functions/ftello.texi (ftello): Likewise.
6271         * doc/functions/fgetpos.texi (fgetpos): Likewise.
6272         Reported by Larry Jones.
6273
6274 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
6275
6276         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
6277         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
6278
6279 2007-12-17  Jim Meyering  <meyering@redhat.com>
6280
6281         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6282         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6283         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6284         * modules/getcwd (Depends-on): Add openat.
6285         Reported by Petr Salinger.
6286
6287 2007-12-17  Bruno Haible  <bruno@clisp.org>
6288
6289         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6290         avoid a segmentation fault of the configure test on x86_64 systems.
6291
6292 2007-12-15  Jim Meyering  <meyering@redhat.com>
6293
6294         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6295
6296 2007-12-13  Eric Blake  <ebb9@byu.net>
6297
6298         Another fseek test.
6299         * tests/test-fseek.c (main): Also test ungetc handling.
6300         * tests/test-fseeko.c (main): Likewise.
6301         * modules/fseeko (Depends-on): Add verify.
6302         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6303         large.
6304         Reported by Larry Jones.
6305
6306         Fix fseeko on mingw.
6307         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6308         seek.
6309
6310         Beef up fseek tests.
6311         * tests/test-fseek.c (main): Also test eof handling.
6312         * tests/test-fseeko.c (main): Likewise.
6313         Reported by Larry Jones.
6314
6315 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6316
6317         Fix fseeko on BSD-based platforms.
6318         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6319         successful seek.
6320
6321 2007-12-12  Eric Blake  <ebb9@byu.net>
6322
6323         Allow circular dependency of separate libtests.a
6324         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6325         when use_libtests.
6326
6327 2007-12-11  Eric Blake  <ebb9@byu.net>
6328
6329         Fix bug with -0.0L in previous patch.
6330         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6331         * tests/test-isnan.c (main): Also test on zeroes.
6332         * tests/test-isnanf.c (main): Likewise.
6333         * tests/test-isnanl.h (main): Likewise.
6334
6335         Detect pseudo-denormals on x86 even when cross-compiling.
6336         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6337         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6338         invalid bit patterns that happen to satisfy ==.
6339
6340         Avoid link failures with separate libtests.a.
6341         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6342         last, to satisfy circular dependencies.
6343
6344 2007-12-11  Eric Blake  <ebb9@byu.net>
6345         and Bruno Haible  <bruno@clisp.org>
6346
6347         Fix OpenBSD 4.0 <float.h> handling of long double.
6348         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6349         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6350         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6351
6352 2007-12-11  Jim Meyering  <meyering@redhat.com>
6353
6354         * users.txt: Add libvirt.
6355
6356         Support versions of autoconf prior to 2.59c.
6357         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6358         if it is not already defined.
6359
6360 2007-12-09  Bruno Haible  <bruno@clisp.org>
6361
6362         Let 'gnulib-tool --import' collect sources needed for the tests in
6363         tests/ rather than in lib/.
6364         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6365         argument. If true, add rules to generate libtests.a, and put libtests.a
6366         into $(LDADD). Consider source files in subdirectories and set
6367         uses_subdirs.
6368         (func_emit_initmacro_start, func_emit_initmacro_end,
6369         func_emit_initmacro_done): Pass all arguments explicitly.
6370         (func_import): Determine two module lists main_modules,
6371         testsrelated_modules. Determine use_libtests. Determine two variables
6372         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6373         instead of just sed_transform_lib_file. Determine two variables
6374         main_files and testsrelated_files. Compute 'files' as the union of
6375         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6376         func_add_or_update. In the generated gnulib-comp.m4, collect the
6377         object files for tests/ in different variables than those for lib/.
6378         Substitute LIBTESTS_LIBDEPS.
6379         (func_create_testdir): Combine the uses_subdirs results from
6380         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
6381
6382 2007-12-09  Bruno Haible  <bruno@clisp.org>
6383
6384         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
6385         the build-aux directory.
6386
6387 2007-12-09  Bruno Haible  <bruno@clisp.org>
6388
6389         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
6390         introduced on 2006-09-09.
6391
6392 2007-12-07  Jim Meyering  <meyering@redhat.com>
6393
6394         Let these macros work also with autoconf-2.59.
6395         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
6396         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
6397         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6398
6399 2007-12-06  Jim Meyering  <meyering@redhat.com>
6400
6401         Avoid a configure-time syntax error in gl_FUNC_ACL.
6402         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6403         function in each branch, before testing the cache variable.
6404
6405 2007-12-04  Eric Blake  <ebb9@byu.net>
6406
6407         Make scripts executable.
6408         * build-aux/config.guess: Add execute permissions.
6409         * build-aux/config.sub: Likewise.
6410         * build-aux/gendocs.sh: Likewise.
6411
6412         Fix frexp on mingw.
6413         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6414         cross-compiling.
6415         * doc/functions/frexp.texi (frexp): Document the bug.
6416
6417         Make cygwin fseeko check more reliable.
6418         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
6419         version numbers, rather than unrelated feature check.
6420         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
6421         * doc/functions/ftello.texi (ftello): Likewise.
6422         Reported by Bruno Haible.
6423
6424         * m4/strerror.m4: Bump version number.
6425
6426 2007-12-03  Bruno Haible  <bruno@clisp.org>
6427
6428         * doc/functions/mprotect.texi: Mention the mingw problem.
6429
6430 2007-12-03  Eric Blake  <ebb9@byu.net>
6431
6432         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
6433         REPLACE_STRERROR is initialized before this macro.
6434
6435 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6436
6437         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
6438         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
6439         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
6440         put -lsec in even for programs other than 'ls'.  This fixes a problem
6441         for gettext reported by Bruno Haible in
6442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
6443         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
6444         Add support for Solaris 10.  This isn't efficient, but should get the
6445         job done for now.
6446
6447 2007-12-03  James Youngman  <jay@gnu.org>
6448
6449         * doc/regexprops-generic.texi: change "an close-group" to "a
6450         close-group" and "illegal" to "not allowed".
6451
6452 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6453
6454         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
6455         pr_byname.h. Needed for the rare case when the maintainer has done
6456         "make maintainer-clean" in the source directory and then attempts a
6457         build outside the source directory.
6458         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
6459         scripts_byname.h.
6460
6461 2007-12-02  Martin Lambers <marlam@marlam.de>
6462             Bruno Haible  <bruno@clisp.org>
6463
6464         * lib/getpagesize.h: Remove file.
6465         * lib/unistd.in.h: Include declaration of getpagesize here.
6466         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
6467         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
6468         HAVE_SYS_PARAM_H.
6469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
6470         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6471         * modules/getpagesize (Files): Remove lib/getpagesize.h.
6472         (Depends-on): Add unistd.
6473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6474         (Include): Use <unistd.h> instead of getpagesize.h.
6475         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
6476         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6477         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
6478         gl_GETPAGESIZE invocation, already handled by module dependency.
6479         * lib/pagealign_alloc.c: Don't include getpagesize.h.
6480
6481 2007-12-02  Bruno Haible  <bruno@clisp.org>
6482
6483         * modules/strings-tests: New file.
6484         * tests/test-strings.c: New file.
6485
6486         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
6487         * lib/strings.in.h: New file.
6488         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
6489         * m4/strings_h.m4: New file.
6490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
6491         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
6492         * modules/strings: New file.
6493         * modules/string (Makefile.am): Update.
6494         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
6495         Reported by Karl Berry.
6496
6497 2007-12-01  Eric Blake  <ebb9@byu.net>
6498
6499         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
6500         accomodate fix in cygwin 1.5.25.
6501
6502 2007-12-01  Jim Meyering  <meyering@redhat.com>
6503
6504         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
6505         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6506         that would inhibit utf8-optimization of a regexp containing line-
6507         or buffer-anchors, e.g., `^', `$'.
6508
6509 2007-11-30  Bruno Haible  <bruno@clisp.org>
6510
6511         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
6512         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
6513         glthread_recursive_lock_init.
6514         * lib/lock.c (glthread_recursive_lock_init)
6515         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
6516         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6517
6518 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6519
6520         New function qset_acl, like set_acl but with syscall semantics.
6521         * lib/acl.h (qset_acl): New decl.
6522         * lib/acl.c (qset_acl): New function.
6523         (set_acl): Use new function.  Use more-consistent diagnostics.
6524
6525 2007-11-28  Jim Meyering  <meyering@redhat.com>
6526
6527         * modules/physmem (License): Change from GPL to LGPLv2+.
6528
6529 2007-11-26  Bruno Haible  <bruno@clisp.org>
6530
6531         * lib/vasnprintf.c (decode_long_double): Don't abort if the
6532         'long double' type has excess precision.
6533         Reported by Jim Meyering in
6534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
6535
6536 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6537
6538         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
6539         Sync from <http://gnu.org/licenses>.
6540         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
6541         with license text from same location.
6542         * doc/maintain.texi, doc/standards.texi:  Sync from
6543         <http://savannah.gnu.org/projects/gnustandards>.
6544
6545 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
6546         and Jim Meyering  <meyering@redhat.com>
6547
6548         Adjust getdate' grammar to accept a slightly more regular language.
6549         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
6550         Before, the former was rejected.
6551         * lib/getdate.y (digits_to_date_time): New function, factored
6552         out of ...
6553         (number): ...here.  Just call digits_to_date_time.
6554         (hybrid): New non-terminal to handle an <unsigned number,
6555         signed relative offset> sequence consistently.
6556
6557 2007-11-18  Jim Meyering  <meyering@redhat.com>
6558
6559         Pull my changes from coreutils:
6560         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
6561         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
6562         use of $gnulib_tool_option_extras, so that it's separated from the
6563         preceding argument.
6564
6565         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
6566         * build-aux/bootstrap (cp_mark_as_generated): Create any required
6567         parent destination directories before copying a file into place.
6568
6569 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6570
6571         bootstrap: work also with 4-argument variant of AC_INIT
6572         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
6573
6574 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6575
6576         Port test-getaddrinfo to Solaris.
6577         Problem reported by Bruno Haible in
6578         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
6579         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
6580         explanation of setting 'hints'.
6581         Don't reject an implementation merely because it returns EAI_SERVICE.
6582         (EAI_SERVICE): Define to 0 if not defined.
6583
6584 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6585
6586         The license of gnu-make and posix-shell is now "GPLed build tool".
6587         * modules/gnu-make (License): Likewise.
6588         * modules/posix-shell (License): Likewise.
6589
6590         New module posix-shell, for determining a POSIX shell
6591         or perhaps something that is close enough to a POSIX shell.
6592         * m4/posix-shell.m4: New file.
6593         * modules/posix-shell: New file.
6594
6595         * MODULES.html.sh: Mention new module.
6596
6597         New module gnu-make, for determining whether we're using GNU Make.
6598         * m4/gnu-make.m4: New file.
6599         * modules/gnu-make: New file.
6600         * MODULES.html.sh: Mention new module.
6601
6602 2007-11-14  Jim Meyering  <meyering@redhat.com>
6603
6604         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
6605         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
6606         use this macro to create a function _definition_.
6607         Remove useless "#undef ARGMATCH_DIE".
6608
6609 2007-11-14  Bruno Haible  <bruno@clisp.org>
6610
6611         * lib/config.charset: Update for OpenBSD 4.1.
6612         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
6613
6614 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6615
6616         Document 64-bit #if problems in stdint.texi.
6617         * doc/headers/stdint.texi (stdint.h): Mention problems with
6618         64-bit-#if, and how to work around them.
6619
6620         Don't insist on 'long long int' support in the preprocessor.  It
6621         breaks too many things.  For example, PRIdMAX still uses a 'long
6622         long int' format with the latest Sun compiler, even though
6623         HAVE_LONG_LONG_INT isn't defined due to that compiler's
6624         preprocessor problem.  This causes the latest coreutils to dump
6625         core on Solaris 10 sparc with the Sun C compiler.
6626         Instead, fix the 2007-10-16 problem in a different way, by evaluating
6627         the troublesome expressions at configure-time, not at #if-time.
6628         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
6629         preprocessor.
6630         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
6631         compile-time C checks, done at 'configure'-time.
6632         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
6633         * modules/inttypes (Makefile): Substitute the new symbols that
6634         gl_INTTYPES_H now generates.
6635         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
6636
6637 2007-11-12  Bruno Haible  <bruno@clisp.org>
6638
6639         Tests for Unicode character classification functions.
6640
6641         * modules/unictype/bidicategory-byname-tests: New file.
6642         * modules/unictype/bidicategory-name-tests: New file.
6643         * modules/unictype/bidicategory-of-tests: New file.
6644         * modules/unictype/bidicategory-test-tests: New file.
6645         * modules/unictype/block-list-tests: New file.
6646         * modules/unictype/block-of-tests: New file.
6647         * modules/unictype/block-test-tests: New file.
6648         * modules/unictype/category-C-tests: New file.
6649         * modules/unictype/category-Cc-tests: New file.
6650         * modules/unictype/category-Cf-tests: New file.
6651         * modules/unictype/category-Cn-tests: New file.
6652         * modules/unictype/category-Co-tests: New file.
6653         * modules/unictype/category-Cs-tests: New file.
6654         * modules/unictype/category-L-tests: New file.
6655         * modules/unictype/category-Ll-tests: New file.
6656         * modules/unictype/category-Lm-tests: New file.
6657         * modules/unictype/category-Lo-tests: New file.
6658         * modules/unictype/category-Lt-tests: New file.
6659         * modules/unictype/category-Lu-tests: New file.
6660         * modules/unictype/category-M-tests: New file.
6661         * modules/unictype/category-Mc-tests: New file.
6662         * modules/unictype/category-Me-tests: New file.
6663         * modules/unictype/category-Mn-tests: New file.
6664         * modules/unictype/category-N-tests: New file.
6665         * modules/unictype/category-Nd-tests: New file.
6666         * modules/unictype/category-Nl-tests: New file.
6667         * modules/unictype/category-No-tests: New file.
6668         * modules/unictype/category-P-tests: New file.
6669         * modules/unictype/category-Pc-tests: New file.
6670         * modules/unictype/category-Pd-tests: New file.
6671         * modules/unictype/category-Pe-tests: New file.
6672         * modules/unictype/category-Pf-tests: New file.
6673         * modules/unictype/category-Pi-tests: New file.
6674         * modules/unictype/category-Po-tests: New file.
6675         * modules/unictype/category-Ps-tests: New file.
6676         * modules/unictype/category-S-tests: New file.
6677         * modules/unictype/category-Sc-tests: New file.
6678         * modules/unictype/category-Sk-tests: New file.
6679         * modules/unictype/category-Sm-tests: New file.
6680         * modules/unictype/category-So-tests: New file.
6681         * modules/unictype/category-Z-tests: New file.
6682         * modules/unictype/category-Zl-tests: New file.
6683         * modules/unictype/category-Zp-tests: New file.
6684         * modules/unictype/category-Zs-tests: New file.
6685         * modules/unictype/category-and-not-tests: New file.
6686         * modules/unictype/category-and-tests: New file.
6687         * modules/unictype/category-byname-tests: New file.
6688         * modules/unictype/category-name-tests: New file.
6689         * modules/unictype/category-none-tests: New file.
6690         * modules/unictype/category-of-tests: New file.
6691         * modules/unictype/category-or-tests: New file.
6692         * modules/unictype/category-test-withtable-tests: New file.
6693         * modules/unictype/combining-class-tests: New file.
6694         * modules/unictype/ctype-alnum-tests: New file.
6695         * modules/unictype/ctype-alpha-tests: New file.
6696         * modules/unictype/ctype-blank-tests: New file.
6697         * modules/unictype/ctype-cntrl-tests: New file.
6698         * modules/unictype/ctype-digit-tests: New file.
6699         * modules/unictype/ctype-graph-tests: New file.
6700         * modules/unictype/ctype-lower-tests: New file.
6701         * modules/unictype/ctype-print-tests: New file.
6702         * modules/unictype/ctype-punct-tests: New file.
6703         * modules/unictype/ctype-space-tests: New file.
6704         * modules/unictype/ctype-upper-tests: New file.
6705         * modules/unictype/ctype-xdigit-tests: New file.
6706         * modules/unictype/decimal-digit-tests: New file.
6707         * modules/unictype/digit-tests: New file.
6708         * modules/unictype/mirror-tests: New file.
6709         * modules/unictype/numeric-tests: New file.
6710         * modules/unictype/property-alphabetic-tests: New file.
6711         * modules/unictype/property-ascii-hex-digit-tests: New file.
6712         * modules/unictype/property-bidi-arabic-digit-tests: New file.
6713         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
6714         * modules/unictype/property-bidi-block-separator-tests: New file.
6715         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
6716         * modules/unictype/property-bidi-common-separator-tests: New file.
6717         * modules/unictype/property-bidi-control-tests: New file.
6718         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
6719         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
6720         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
6721         * modules/unictype/property-bidi-european-digit-tests: New file.
6722         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
6723         * modules/unictype/property-bidi-left-to-right-tests: New file.
6724         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
6725         * modules/unictype/property-bidi-other-neutral-tests: New file.
6726         * modules/unictype/property-bidi-pdf-tests: New file.
6727         * modules/unictype/property-bidi-segment-separator-tests: New file.
6728         * modules/unictype/property-bidi-whitespace-tests: New file.
6729         * modules/unictype/property-byname-tests: New file.
6730         * modules/unictype/property-combining-tests: New file.
6731         * modules/unictype/property-composite-tests: New file.
6732         * modules/unictype/property-currency-symbol-tests: New file.
6733         * modules/unictype/property-dash-tests: New file.
6734         * modules/unictype/property-decimal-digit-tests: New file.
6735         * modules/unictype/property-default-ignorable-code-point-tests: New file.
6736         * modules/unictype/property-deprecated-tests: New file.
6737         * modules/unictype/property-diacritic-tests: New file.
6738         * modules/unictype/property-extender-tests: New file.
6739         * modules/unictype/property-format-control-tests: New file.
6740         * modules/unictype/property-grapheme-base-tests: New file.
6741         * modules/unictype/property-grapheme-extend-tests: New file.
6742         * modules/unictype/property-grapheme-link-tests: New file.
6743         * modules/unictype/property-hex-digit-tests: New file.
6744         * modules/unictype/property-hyphen-tests: New file.
6745         * modules/unictype/property-id-continue-tests: New file.
6746         * modules/unictype/property-id-start-tests: New file.
6747         * modules/unictype/property-ideographic-tests: New file.
6748         * modules/unictype/property-ids-binary-operator-tests: New file.
6749         * modules/unictype/property-ids-trinary-operator-tests: New file.
6750         * modules/unictype/property-ignorable-control-tests: New file.
6751         * modules/unictype/property-iso-control-tests: New file.
6752         * modules/unictype/property-join-control-tests: New file.
6753         * modules/unictype/property-left-of-pair-tests: New file.
6754         * modules/unictype/property-line-separator-tests: New file.
6755         * modules/unictype/property-logical-order-exception-tests: New file.
6756         * modules/unictype/property-lowercase-tests: New file.
6757         * modules/unictype/property-math-tests: New file.
6758         * modules/unictype/property-non-break-tests: New file.
6759         * modules/unictype/property-not-a-character-tests: New file.
6760         * modules/unictype/property-numeric-tests: New file.
6761         * modules/unictype/property-other-alphabetic-tests: New file.
6762         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
6763         * modules/unictype/property-other-grapheme-extend-tests: New file.
6764         * modules/unictype/property-other-id-continue-tests: New file.
6765         * modules/unictype/property-other-id-start-tests: New file.
6766         * modules/unictype/property-other-lowercase-tests: New file.
6767         * modules/unictype/property-other-math-tests: New file.
6768         * modules/unictype/property-other-uppercase-tests: New file.
6769         * modules/unictype/property-paired-punctuation-tests: New file.
6770         * modules/unictype/property-paragraph-separator-tests: New file.
6771         * modules/unictype/property-pattern-syntax-tests: New file.
6772         * modules/unictype/property-pattern-white-space-tests: New file.
6773         * modules/unictype/property-private-use-tests: New file.
6774         * modules/unictype/property-punctuation-tests: New file.
6775         * modules/unictype/property-quotation-mark-tests: New file.
6776         * modules/unictype/property-radical-tests: New file.
6777         * modules/unictype/property-sentence-terminal-tests: New file.
6778         * modules/unictype/property-soft-dotted-tests: New file.
6779         * modules/unictype/property-space-tests: New file.
6780         * modules/unictype/property-terminal-punctuation-tests: New file.
6781         * modules/unictype/property-test-tests: New file.
6782         * modules/unictype/property-titlecase-tests: New file.
6783         * modules/unictype/property-unassigned-code-value-tests: New file.
6784         * modules/unictype/property-unified-ideograph-tests: New file.
6785         * modules/unictype/property-uppercase-tests: New file.
6786         * modules/unictype/property-variation-selector-tests: New file.
6787         * modules/unictype/property-white-space-tests: New file.
6788         * modules/unictype/property-xid-continue-tests: New file.
6789         * modules/unictype/property-xid-start-tests: New file.
6790         * modules/unictype/property-zero-width-tests: New file.
6791         * modules/unictype/scripts-tests: New file.
6792         * modules/unictype/syntax-c-ident-tests: New file.
6793         * modules/unictype/syntax-c-whitespace-tests: New file.
6794         * modules/unictype/syntax-java-ident-tests: New file.
6795         * modules/unictype/syntax-java-whitespace-tests: New file.
6796         * tests/unictype/test-bidi_byname.c: New file.
6797         * tests/unictype/test-bidi_name.c: New file.
6798         * tests/unictype/test-bidi_of.c: New file.
6799         * tests/unictype/test-bidi_test.c: New file.
6800         * tests/unictype/test-block_list.c: New file.
6801         * tests/unictype/test-block_of.c: New file.
6802         * tests/unictype/test-block_test.c: New file.
6803         * tests/unictype/test-categ_and.c: New file.
6804         * tests/unictype/test-categ_and_not.c: New file.
6805         * tests/unictype/test-categ_byname.c: New file.
6806         * tests/unictype/test-categ_name.c: New file.
6807         * tests/unictype/test-categ_none.c: New file.
6808         * tests/unictype/test-categ_of.c: New file.
6809         * tests/unictype/test-categ_or.c: New file.
6810         * tests/unictype/test-categ_test_withtable.c: New file.
6811         * tests/unictype/test-combining.c: New file.
6812         * tests/unictype/test-decdigit.c: New file.
6813         * tests/unictype/test-digit.c: New file.
6814         * tests/unictype/test-mirror.c: New file.
6815         * tests/unictype/test-numeric.c: New file.
6816         * tests/unictype/test-pr_byname.c: New file.
6817         * tests/unictype/test-pr_test.c: New file.
6818         * tests/unictype/test-predicate-part1.h: New file.
6819         * tests/unictype/test-predicate-part2.h: New file.
6820         * tests/unictype/test-scripts.c: New file.
6821         * tests/unictype/test-sy_c_ident.c: New file.
6822         * tests/unictype/test-sy_java_ident.c: New file.
6823
6824         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
6825         for Unicode 5.0.0.
6826         * tests/unictype/test-categ_Cc.c: Likewise.
6827         * tests/unictype/test-categ_Cf.c: Likewise.
6828         * tests/unictype/test-categ_Cn.c: Likewise.
6829         * tests/unictype/test-categ_Co.c: Likewise.
6830         * tests/unictype/test-categ_Cs.c: Likewise.
6831         * tests/unictype/test-categ_L.c: Likewise.
6832         * tests/unictype/test-categ_Ll.c: Likewise.
6833         * tests/unictype/test-categ_Lm.c: Likewise.
6834         * tests/unictype/test-categ_Lo.c: Likewise.
6835         * tests/unictype/test-categ_Lt.c: Likewise.
6836         * tests/unictype/test-categ_Lu.c: Likewise.
6837         * tests/unictype/test-categ_M.c: Likewise.
6838         * tests/unictype/test-categ_Mc.c: Likewise.
6839         * tests/unictype/test-categ_Me.c: Likewise.
6840         * tests/unictype/test-categ_Mn.c: Likewise.
6841         * tests/unictype/test-categ_N.c: Likewise.
6842         * tests/unictype/test-categ_Nd.c: Likewise.
6843         * tests/unictype/test-categ_Nl.c: Likewise.
6844         * tests/unictype/test-categ_No.c: Likewise.
6845         * tests/unictype/test-categ_P.c: Likewise.
6846         * tests/unictype/test-categ_Pc.c: Likewise.
6847         * tests/unictype/test-categ_Pd.c: Likewise.
6848         * tests/unictype/test-categ_Pe.c: Likewise.
6849         * tests/unictype/test-categ_Pf.c: Likewise.
6850         * tests/unictype/test-categ_Pi.c: Likewise.
6851         * tests/unictype/test-categ_Po.c: Likewise.
6852         * tests/unictype/test-categ_Ps.c: Likewise.
6853         * tests/unictype/test-categ_S.c: Likewise.
6854         * tests/unictype/test-categ_Sc.c: Likewise.
6855         * tests/unictype/test-categ_Sk.c: Likewise.
6856         * tests/unictype/test-categ_Sm.c: Likewise.
6857         * tests/unictype/test-categ_So.c: Likewise.
6858         * tests/unictype/test-categ_Z.c: Likewise.
6859         * tests/unictype/test-categ_Zl.c: Likewise.
6860         * tests/unictype/test-categ_Zp.c: Likewise.
6861         * tests/unictype/test-categ_Zs.c: Likewise.
6862         * tests/unictype/test-ctype_alnum.c: Likewise.
6863         * tests/unictype/test-ctype_alpha.c: Likewise.
6864         * tests/unictype/test-ctype_blank.c: Likewise.
6865         * tests/unictype/test-ctype_cntrl.c: Likewise.
6866         * tests/unictype/test-ctype_digit.c: Likewise.
6867         * tests/unictype/test-ctype_graph.c: Likewise.
6868         * tests/unictype/test-ctype_lower.c: Likewise.
6869         * tests/unictype/test-ctype_print.c: Likewise.
6870         * tests/unictype/test-ctype_punct.c: Likewise.
6871         * tests/unictype/test-ctype_space.c: Likewise.
6872         * tests/unictype/test-ctype_upper.c: Likewise.
6873         * tests/unictype/test-ctype_xdigit.c: Likewise.
6874         * tests/unictype/test-decdigit.h: Likewise.
6875         * tests/unictype/test-digit.h: Likewise.
6876         * tests/unictype/test-numeric.h: Likewise.
6877         * tests/unictype/test-pr_alphabetic.c: Likewise.
6878         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
6879         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6880         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6881         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
6882         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6883         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
6884         * tests/unictype/test-pr_bidi_control.c: Likewise.
6885         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
6886         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
6887         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6888         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6889         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6890         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6891         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6892         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6893         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
6894         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
6895         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
6896         * tests/unictype/test-pr_combining.c: Likewise.
6897         * tests/unictype/test-pr_composite.c: Likewise.
6898         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6899         * tests/unictype/test-pr_dash.c: Likewise.
6900         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6901         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
6902         * tests/unictype/test-pr_deprecated.c: Likewise.
6903         * tests/unictype/test-pr_diacritic.c: Likewise.
6904         * tests/unictype/test-pr_extender.c: Likewise.
6905         * tests/unictype/test-pr_format_control.c: Likewise.
6906         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6907         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6908         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6909         * tests/unictype/test-pr_hex_digit.c: Likewise.
6910         * tests/unictype/test-pr_hyphen.c: Likewise.
6911         * tests/unictype/test-pr_id_continue.c: Likewise.
6912         * tests/unictype/test-pr_id_start.c: Likewise.
6913         * tests/unictype/test-pr_ideographic.c: Likewise.
6914         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
6915         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
6916         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6917         * tests/unictype/test-pr_iso_control.c: Likewise.
6918         * tests/unictype/test-pr_join_control.c: Likewise.
6919         * tests/unictype/test-pr_left_of_pair.c: Likewise.
6920         * tests/unictype/test-pr_line_separator.c: Likewise.
6921         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6922         * tests/unictype/test-pr_lowercase.c: Likewise.
6923         * tests/unictype/test-pr_math.c: Likewise.
6924         * tests/unictype/test-pr_non_break.c: Likewise.
6925         * tests/unictype/test-pr_not_a_character.c: Likewise.
6926         * tests/unictype/test-pr_numeric.c: Likewise.
6927         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6928         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
6929         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
6930         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6931         * tests/unictype/test-pr_other_id_start.c: Likewise.
6932         * tests/unictype/test-pr_other_lowercase.c: Likewise.
6933         * tests/unictype/test-pr_other_math.c: Likewise.
6934         * tests/unictype/test-pr_other_uppercase.c: Likewise.
6935         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
6936         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
6937         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
6938         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
6939         * tests/unictype/test-pr_private_use.c: Likewise.
6940         * tests/unictype/test-pr_punctuation.c: Likewise.
6941         * tests/unictype/test-pr_quotation_mark.c: Likewise.
6942         * tests/unictype/test-pr_radical.c: Likewise.
6943         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6944         * tests/unictype/test-pr_soft_dotted.c: Likewise.
6945         * tests/unictype/test-pr_space.c: Likewise.
6946         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6947         * tests/unictype/test-pr_titlecase.c: Likewise.
6948         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6949         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6950         * tests/unictype/test-pr_uppercase.c: Likewise.
6951         * tests/unictype/test-pr_variation_selector.c: Likewise.
6952         * tests/unictype/test-pr_white_space.c: Likewise.
6953         * tests/unictype/test-pr_xid_continue.c: Likewise.
6954         * tests/unictype/test-pr_xid_start.c: Likewise.
6955         * tests/unictype/test-pr_zero_width.c: Likewise.
6956         * tests/unictype/test-sy_c_whitespace.c: Likewise.
6957         * tests/unictype/test-sy_java_whitespace.c: Likewise.
6958
6959 2007-11-12  Bruno Haible  <bruno@clisp.org>
6960
6961         Unicode character classification functions.
6962         * lib/unictype.h: New file.
6963         * modules/unictype/base: New file.
6964         * modules/unictype/category-L: New file.
6965         * modules/unictype/category-Lu: New file.
6966         * modules/unictype/category-Ll: New file.
6967         * modules/unictype/category-Lt: New file.
6968         * modules/unictype/category-Lm: New file.
6969         * modules/unictype/category-Lo: New file.
6970         * modules/unictype/category-M: New file.
6971         * modules/unictype/category-Mn: New file.
6972         * modules/unictype/category-Mc: New file.
6973         * modules/unictype/category-Me: New file.
6974         * modules/unictype/category-N: New file.
6975         * modules/unictype/category-Nd: New file.
6976         * modules/unictype/category-Nl: New file.
6977         * modules/unictype/category-No: New file.
6978         * modules/unictype/category-P: New file.
6979         * modules/unictype/category-Pc: New file.
6980         * modules/unictype/category-Pd: New file.
6981         * modules/unictype/category-Ps: New file.
6982         * modules/unictype/category-Pe: New file.
6983         * modules/unictype/category-Pi: New file.
6984         * modules/unictype/category-Pf: New file.
6985         * modules/unictype/category-Po: New file.
6986         * modules/unictype/category-S: New file.
6987         * modules/unictype/category-Sm: New file.
6988         * modules/unictype/category-Sc: New file.
6989         * modules/unictype/category-Sk: New file.
6990         * modules/unictype/category-So: New file.
6991         * modules/unictype/category-Z: New file.
6992         * modules/unictype/category-Zs: New file.
6993         * modules/unictype/category-Zl: New file.
6994         * modules/unictype/category-Zp: New file.
6995         * modules/unictype/category-C: New file.
6996         * modules/unictype/category-Cc: New file.
6997         * modules/unictype/category-Cf: New file.
6998         * modules/unictype/category-Cs: New file.
6999         * modules/unictype/category-Co: New file.
7000         * modules/unictype/category-Cn: New file.
7001         * modules/unictype/category-or: New file.
7002         * modules/unictype/category-of: New file.
7003         * modules/unictype/category-test: New file.
7004         * modules/unictype/category-test-withtable: New file.
7005         * modules/unictype/category-byname: New file.
7006         * modules/unictype/category-none: New file.
7007         * modules/unictype/category-and: New file.
7008         * modules/unictype/category-and-not: New file.
7009         * modules/unictype/category-name: New file.
7010         * modules/unictype/combining-class: New file.
7011         * modules/unictype/category-all: New file.
7012         * modules/unictype/bidicategory-all: New file.
7013         * modules/unictype/bidicategory-byname: New file.
7014         * modules/unictype/bidicategory-name: New file.
7015         * modules/unictype/bidicategory-of: New file.
7016         * modules/unictype/bidicategory-test: New file.
7017         * modules/unictype/decimal-digit: New file.
7018         * modules/unictype/digit: New file.
7019         * modules/unictype/numeric: New file.
7020         * modules/unictype/mirror: New file.
7021         * modules/unictype/property-white-space: New file.
7022         * modules/unictype/property-alphabetic: New file.
7023         * modules/unictype/property-other-alphabetic: New file.
7024         * modules/unictype/property-not-a-character: New file.
7025         * modules/unictype/property-default-ignorable-code-point: New file.
7026         * modules/unictype/property-other-default-ignorable-code-point: New
7027         file.
7028         * modules/unictype/property-deprecated: New file.
7029         * modules/unictype/property-logical-order-exception: New file.
7030         * modules/unictype/property-variation-selector: New file.
7031         * modules/unictype/property-private-use: New file.
7032         * modules/unictype/property-unassigned-code-value: New file.
7033         * modules/unictype/property-uppercase: New file.
7034         * modules/unictype/property-other-uppercase: New file.
7035         * modules/unictype/property-lowercase: New file.
7036         * modules/unictype/property-other-lowercase: New file.
7037         * modules/unictype/property-titlecase: New file.
7038         * modules/unictype/property-soft-dotted: New file.
7039         * modules/unictype/property-id-start: New file.
7040         * modules/unictype/property-other-id-start: New file.
7041         * modules/unictype/property-id-continue: New file.
7042         * modules/unictype/property-other-id-continue: New file.
7043         * modules/unictype/property-xid-start: New file.
7044         * modules/unictype/property-xid-continue: New file.
7045         * modules/unictype/property-pattern-white-space: New file.
7046         * modules/unictype/property-pattern-syntax: New file.
7047         * modules/unictype/property-join-control: New file.
7048         * modules/unictype/property-grapheme-base: New file.
7049         * modules/unictype/property-grapheme-extend: New file.
7050         * modules/unictype/property-other-grapheme-extend: New file.
7051         * modules/unictype/property-grapheme-link: New file.
7052         * modules/unictype/property-bidi-control: New file.
7053         * modules/unictype/property-bidi-left-to-right: New file.
7054         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
7055         * modules/unictype/property-bidi-arabic-right-to-left: New file.
7056         * modules/unictype/property-bidi-european-digit: New file.
7057         * modules/unictype/property-bidi-eur-num-separator: New file.
7058         * modules/unictype/property-bidi-eur-num-terminator: New file.
7059         * modules/unictype/property-bidi-arabic-digit: New file.
7060         * modules/unictype/property-bidi-common-separator: New file.
7061         * modules/unictype/property-bidi-block-separator: New file.
7062         * modules/unictype/property-bidi-segment-separator: New file.
7063         * modules/unictype/property-bidi-whitespace: New file.
7064         * modules/unictype/property-bidi-non-spacing-mark: New file.
7065         * modules/unictype/property-bidi-boundary-neutral: New file.
7066         * modules/unictype/property-bidi-pdf: New file.
7067         * modules/unictype/property-bidi-embedding-or-override: New file.
7068         * modules/unictype/property-bidi-other-neutral: New file.
7069         * modules/unictype/property-hex-digit: New file.
7070         * modules/unictype/property-ascii-hex-digit: New file.
7071         * modules/unictype/property-ideographic: New file.
7072         * modules/unictype/property-unified-ideograph: New file.
7073         * modules/unictype/property-radical: New file.
7074         * modules/unictype/property-ids-binary-operator: New file.
7075         * modules/unictype/property-ids-trinary-operator: New file.
7076         * modules/unictype/property-zero-width: New file.
7077         * modules/unictype/property-space: New file.
7078         * modules/unictype/property-non-break: New file.
7079         * modules/unictype/property-iso-control: New file.
7080         * modules/unictype/property-format-control: New file.
7081         * modules/unictype/property-dash: New file.
7082         * modules/unictype/property-hyphen: New file.
7083         * modules/unictype/property-punctuation: New file.
7084         * modules/unictype/property-line-separator: New file.
7085         * modules/unictype/property-paragraph-separator: New file.
7086         * modules/unictype/property-quotation-mark: New file.
7087         * modules/unictype/property-sentence-terminal: New file.
7088         * modules/unictype/property-terminal-punctuation: New file.
7089         * modules/unictype/property-currency-symbol: New file.
7090         * modules/unictype/property-math: New file.
7091         * modules/unictype/property-other-math: New file.
7092         * modules/unictype/property-paired-punctuation: New file.
7093         * modules/unictype/property-left-of-pair: New file.
7094         * modules/unictype/property-combining: New file.
7095         * modules/unictype/property-composite: New file.
7096         * modules/unictype/property-decimal-digit: New file.
7097         * modules/unictype/property-numeric: New file.
7098         * modules/unictype/property-diacritic: New file.
7099         * modules/unictype/property-extender: New file.
7100         * modules/unictype/property-ignorable-control: New file.
7101         * modules/unictype/property-test: New file.
7102         * modules/unictype/property-byname: New file.
7103         * modules/unictype/property-all: New file.
7104         * modules/unictype/scripts: New file.
7105         * modules/unictype/scripts-all: New file.
7106         * modules/unictype/block-of: New file.
7107         * modules/unictype/block-test: New file.
7108         * modules/unictype/block-list: New file.
7109         * modules/unictype/block-all: New file.
7110         * modules/unictype/syntax-c-whitespace: New file.
7111         * modules/unictype/syntax-java-whitespace: New file.
7112         * modules/unictype/syntax-c-ident: New file.
7113         * modules/unictype/syntax-java-ident: New file.
7114         * modules/unictype/ctype-alnum: New file.
7115         * modules/unictype/ctype-alpha: New file.
7116         * modules/unictype/ctype-cntrl: New file.
7117         * modules/unictype/ctype-digit: New file.
7118         * modules/unictype/ctype-graph: New file.
7119         * modules/unictype/ctype-lower: New file.
7120         * modules/unictype/ctype-print: New file.
7121         * modules/unictype/ctype-punct: New file.
7122         * modules/unictype/ctype-space: New file.
7123         * modules/unictype/ctype-upper: New file.
7124         * modules/unictype/ctype-xdigit: New file.
7125         * modules/unictype/ctype-blank: New file.
7126         * lib/unictype/bidi_byname.c: New file.
7127         * lib/unictype/bidi_name.c: New file.
7128         * lib/unictype/bidi_of.c: New file.
7129         * lib/unictype/bidi_test.c: New file.
7130         * lib/unictype/bitmap.h: New file.
7131         * lib/unictype/block_test.c: New file.
7132         * lib/unictype/blocks.c: New file.
7133         * lib/unictype/categ_C.c: New file.
7134         * lib/unictype/categ_Cc.c: New file.
7135         * lib/unictype/categ_Cf.c: New file.
7136         * lib/unictype/categ_Cn.c: New file.
7137         * lib/unictype/categ_Co.c: New file.
7138         * lib/unictype/categ_Cs.c: New file.
7139         * lib/unictype/categ_L.c: New file.
7140         * lib/unictype/categ_Ll.c: New file.
7141         * lib/unictype/categ_Lm.c: New file.
7142         * lib/unictype/categ_Lo.c: New file.
7143         * lib/unictype/categ_Lt.c: New file.
7144         * lib/unictype/categ_Lu.c: New file.
7145         * lib/unictype/categ_M.c: New file.
7146         * lib/unictype/categ_Mc.c: New file.
7147         * lib/unictype/categ_Me.c: New file.
7148         * lib/unictype/categ_Mn.c: New file.
7149         * lib/unictype/categ_N.c: New file.
7150         * lib/unictype/categ_Nd.c: New file.
7151         * lib/unictype/categ_Nl.c: New file.
7152         * lib/unictype/categ_No.c: New file.
7153         * lib/unictype/categ_P.c: New file.
7154         * lib/unictype/categ_Pc.c: New file.
7155         * lib/unictype/categ_Pd.c: New file.
7156         * lib/unictype/categ_Pe.c: New file.
7157         * lib/unictype/categ_Pf.c: New file.
7158         * lib/unictype/categ_Pi.c: New file.
7159         * lib/unictype/categ_Po.c: New file.
7160         * lib/unictype/categ_Ps.c: New file.
7161         * lib/unictype/categ_S.c: New file.
7162         * lib/unictype/categ_Sc.c: New file.
7163         * lib/unictype/categ_Sk.c: New file.
7164         * lib/unictype/categ_Sm.c: New file.
7165         * lib/unictype/categ_So.c: New file.
7166         * lib/unictype/categ_Z.c: New file.
7167         * lib/unictype/categ_Zl.c: New file.
7168         * lib/unictype/categ_Zp.c: New file.
7169         * lib/unictype/categ_Zs.c: New file.
7170         * lib/unictype/categ_and.c: New file.
7171         * lib/unictype/categ_and_not.c: New file.
7172         * lib/unictype/categ_byname.c: New file.
7173         * lib/unictype/categ_name.c: New file.
7174         * lib/unictype/categ_none.c: New file.
7175         * lib/unictype/categ_of.c: New file.
7176         * lib/unictype/categ_or.c: New file.
7177         * lib/unictype/categ_test.c: New file.
7178         * lib/unictype/combining.c: New file.
7179         * lib/unictype/ctype_alnum.c: New file.
7180         * lib/unictype/ctype_alpha.c: New file.
7181         * lib/unictype/ctype_blank.c: New file.
7182         * lib/unictype/ctype_cntrl.c: New file.
7183         * lib/unictype/ctype_digit.c: New file.
7184         * lib/unictype/ctype_graph.c: New file.
7185         * lib/unictype/ctype_lower.c: New file.
7186         * lib/unictype/ctype_print.c: New file.
7187         * lib/unictype/ctype_punct.c: New file.
7188         * lib/unictype/ctype_space.c: New file.
7189         * lib/unictype/ctype_upper.c: New file.
7190         * lib/unictype/ctype_xdigit.c: New file.
7191         * lib/unictype/decdigit.c: New file.
7192         * lib/unictype/digit.c: New file.
7193         * lib/unictype/identsyntaxmap.h: New file.
7194         * lib/unictype/mirror.c: New file.
7195         * lib/unictype/numeric.c: New file.
7196         * lib/unictype/pr_alphabetic.c: New file.
7197         * lib/unictype/pr_ascii_hex_digit.c: New file.
7198         * lib/unictype/pr_bidi_arabic_digit.c: New file.
7199         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
7200         * lib/unictype/pr_bidi_block_separator.c: New file.
7201         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
7202         * lib/unictype/pr_bidi_common_separator.c: New file.
7203         * lib/unictype/pr_bidi_control.c: New file.
7204         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
7205         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
7206         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
7207         * lib/unictype/pr_bidi_european_digit.c: New file.
7208         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
7209         * lib/unictype/pr_bidi_left_to_right.c: New file.
7210         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
7211         * lib/unictype/pr_bidi_other_neutral.c: New file.
7212         * lib/unictype/pr_bidi_pdf.c: New file.
7213         * lib/unictype/pr_bidi_segment_separator.c: New file.
7214         * lib/unictype/pr_bidi_whitespace.c: New file.
7215         * lib/unictype/pr_byname.c: New file.
7216         * lib/unictype/pr_byname.gperf: New file.
7217         * lib/unictype/pr_combining.c: New file.
7218         * lib/unictype/pr_composite.c: New file.
7219         * lib/unictype/pr_currency_symbol.c: New file.
7220         * lib/unictype/pr_dash.c: New file.
7221         * lib/unictype/pr_decimal_digit.c: New file.
7222         * lib/unictype/pr_default_ignorable_code_point.c: New file.
7223         * lib/unictype/pr_deprecated.c: New file.
7224         * lib/unictype/pr_diacritic.c: New file.
7225         * lib/unictype/pr_extender.c: New file.
7226         * lib/unictype/pr_format_control.c: New file.
7227         * lib/unictype/pr_grapheme_base.c: New file.
7228         * lib/unictype/pr_grapheme_extend.c: New file.
7229         * lib/unictype/pr_grapheme_link.c: New file.
7230         * lib/unictype/pr_hex_digit.c: New file.
7231         * lib/unictype/pr_hyphen.c: New file.
7232         * lib/unictype/pr_id_continue.c: New file.
7233         * lib/unictype/pr_id_start.c: New file.
7234         * lib/unictype/pr_ideographic.c: New file.
7235         * lib/unictype/pr_ids_binary_operator.c: New file.
7236         * lib/unictype/pr_ids_trinary_operator.c: New file.
7237         * lib/unictype/pr_ignorable_control.c: New file.
7238         * lib/unictype/pr_iso_control.c: New file.
7239         * lib/unictype/pr_join_control.c: New file.
7240         * lib/unictype/pr_left_of_pair.c: New file.
7241         * lib/unictype/pr_line_separator.c: New file.
7242         * lib/unictype/pr_logical_order_exception.c: New file.
7243         * lib/unictype/pr_lowercase.c: New file.
7244         * lib/unictype/pr_math.c: New file.
7245         * lib/unictype/pr_non_break.c: New file.
7246         * lib/unictype/pr_not_a_character.c: New file.
7247         * lib/unictype/pr_numeric.c: New file.
7248         * lib/unictype/pr_other_alphabetic.c: New file.
7249         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
7250         * lib/unictype/pr_other_grapheme_extend.c: New file.
7251         * lib/unictype/pr_other_id_continue.c: New file.
7252         * lib/unictype/pr_other_id_start.c: New file.
7253         * lib/unictype/pr_other_lowercase.c: New file.
7254         * lib/unictype/pr_other_math.c: New file.
7255         * lib/unictype/pr_other_uppercase.c: New file.
7256         * lib/unictype/pr_paired_punctuation.c: New file.
7257         * lib/unictype/pr_paragraph_separator.c: New file.
7258         * lib/unictype/pr_pattern_syntax.c: New file.
7259         * lib/unictype/pr_pattern_white_space.c: New file.
7260         * lib/unictype/pr_private_use.c: New file.
7261         * lib/unictype/pr_punctuation.c: New file.
7262         * lib/unictype/pr_quotation_mark.c: New file.
7263         * lib/unictype/pr_radical.c: New file.
7264         * lib/unictype/pr_sentence_terminal.c: New file.
7265         * lib/unictype/pr_soft_dotted.c: New file.
7266         * lib/unictype/pr_space.c: New file.
7267         * lib/unictype/pr_terminal_punctuation.c: New file.
7268         * lib/unictype/pr_test.c: New file.
7269         * lib/unictype/pr_titlecase.c: New file.
7270         * lib/unictype/pr_unassigned_code_value.c: New file.
7271         * lib/unictype/pr_unified_ideograph.c: New file.
7272         * lib/unictype/pr_uppercase.c: New file.
7273         * lib/unictype/pr_variation_selector.c: New file.
7274         * lib/unictype/pr_white_space.c: New file.
7275         * lib/unictype/pr_xid_continue.c: New file.
7276         * lib/unictype/pr_xid_start.c: New file.
7277         * lib/unictype/pr_zero_width.c: New file.
7278         * lib/unictype/scripts.c: New file.
7279         * lib/unictype/sy_c_ident.c: New file.
7280         * lib/unictype/sy_c_whitespace.c: New file.
7281         * lib/unictype/sy_java_ident.c: New file.
7282         * lib/unictype/sy_java_whitespace.c: New file.
7283
7284         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7285         Unicode 5.0.0.
7286         * lib/unictype/blocks.h: Likewise.
7287         * lib/unictype/categ_C.h: Likewise.
7288         * lib/unictype/categ_Cc.h: Likewise.
7289         * lib/unictype/categ_Cf.h: Likewise.
7290         * lib/unictype/categ_Cn.h: Likewise.
7291         * lib/unictype/categ_Co.h: Likewise.
7292         * lib/unictype/categ_Cs.h: Likewise.
7293         * lib/unictype/categ_L.h: Likewise.
7294         * lib/unictype/categ_Ll.h: Likewise.
7295         * lib/unictype/categ_Lm.h: Likewise.
7296         * lib/unictype/categ_Lo.h: Likewise.
7297         * lib/unictype/categ_Lt.h: Likewise.
7298         * lib/unictype/categ_Lu.h: Likewise.
7299         * lib/unictype/categ_M.h: Likewise.
7300         * lib/unictype/categ_Mc.h: Likewise.
7301         * lib/unictype/categ_Me.h: Likewise.
7302         * lib/unictype/categ_Mn.h: Likewise.
7303         * lib/unictype/categ_N.h: Likewise.
7304         * lib/unictype/categ_Nd.h: Likewise.
7305         * lib/unictype/categ_Nl.h: Likewise.
7306         * lib/unictype/categ_No.h: Likewise.
7307         * lib/unictype/categ_P.h: Likewise.
7308         * lib/unictype/categ_Pc.h: Likewise.
7309         * lib/unictype/categ_Pd.h: Likewise.
7310         * lib/unictype/categ_Pe.h: Likewise.
7311         * lib/unictype/categ_Pf.h: Likewise.
7312         * lib/unictype/categ_Pi.h: Likewise.
7313         * lib/unictype/categ_Po.h: Likewise.
7314         * lib/unictype/categ_Ps.h: Likewise.
7315         * lib/unictype/categ_S.h: Likewise.
7316         * lib/unictype/categ_Sc.h: Likewise.
7317         * lib/unictype/categ_Sk.h: Likewise.
7318         * lib/unictype/categ_Sm.h: Likewise.
7319         * lib/unictype/categ_So.h: Likewise.
7320         * lib/unictype/categ_Z.h: Likewise.
7321         * lib/unictype/categ_Zl.h: Likewise.
7322         * lib/unictype/categ_Zp.h: Likewise.
7323         * lib/unictype/categ_Zs.h: Likewise.
7324         * lib/unictype/categ_of.h: Likewise.
7325         * lib/unictype/combining.h: Likewise.
7326         * lib/unictype/ctype_alnum.h: Likewise.
7327         * lib/unictype/ctype_alpha.h: Likewise.
7328         * lib/unictype/ctype_blank.h: Likewise.
7329         * lib/unictype/ctype_cntrl.h: Likewise.
7330         * lib/unictype/ctype_digit.h: Likewise.
7331         * lib/unictype/ctype_graph.h: Likewise.
7332         * lib/unictype/ctype_lower.h: Likewise.
7333         * lib/unictype/ctype_print.h: Likewise.
7334         * lib/unictype/ctype_punct.h: Likewise.
7335         * lib/unictype/ctype_space.h: Likewise.
7336         * lib/unictype/ctype_upper.h: Likewise.
7337         * lib/unictype/ctype_xdigit.h: Likewise.
7338         * lib/unictype/decdigit.h: Likewise.
7339         * lib/unictype/digit.h: Likewise.
7340         * lib/unictype/mirror.h: Likewise.
7341         * lib/unictype/numeric.h: Likewise.
7342         * lib/unictype/pr_alphabetic.h: Likewise.
7343         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7344         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7345         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7346         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7347         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7348         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7349         * lib/unictype/pr_bidi_control.h: Likewise.
7350         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7351         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7352         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7353         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7354         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7355         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7356         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7357         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7358         * lib/unictype/pr_bidi_pdf.h: Likewise.
7359         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7360         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7361         * lib/unictype/pr_combining.h: Likewise.
7362         * lib/unictype/pr_composite.h: Likewise.
7363         * lib/unictype/pr_currency_symbol.h: Likewise.
7364         * lib/unictype/pr_dash.h: Likewise.
7365         * lib/unictype/pr_decimal_digit.h: Likewise.
7366         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7367         * lib/unictype/pr_deprecated.h: Likewise.
7368         * lib/unictype/pr_diacritic.h: Likewise.
7369         * lib/unictype/pr_extender.h: Likewise.
7370         * lib/unictype/pr_format_control.h: Likewise.
7371         * lib/unictype/pr_grapheme_base.h: Likewise.
7372         * lib/unictype/pr_grapheme_extend.h: Likewise.
7373         * lib/unictype/pr_grapheme_link.h: Likewise.
7374         * lib/unictype/pr_hex_digit.h: Likewise.
7375         * lib/unictype/pr_hyphen.h: Likewise.
7376         * lib/unictype/pr_id_continue.h: Likewise.
7377         * lib/unictype/pr_id_start.h: Likewise.
7378         * lib/unictype/pr_ideographic.h: Likewise.
7379         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7380         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7381         * lib/unictype/pr_ignorable_control.h: Likewise.
7382         * lib/unictype/pr_iso_control.h: Likewise.
7383         * lib/unictype/pr_join_control.h: Likewise.
7384         * lib/unictype/pr_left_of_pair.h: Likewise.
7385         * lib/unictype/pr_line_separator.h: Likewise.
7386         * lib/unictype/pr_logical_order_exception.h: Likewise.
7387         * lib/unictype/pr_lowercase.h: Likewise.
7388         * lib/unictype/pr_math.h: Likewise.
7389         * lib/unictype/pr_non_break.h: Likewise.
7390         * lib/unictype/pr_not_a_character.h: Likewise.
7391         * lib/unictype/pr_numeric.h: Likewise.
7392         * lib/unictype/pr_other_alphabetic.h: Likewise.
7393         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7394         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7395         * lib/unictype/pr_other_id_continue.h: Likewise.
7396         * lib/unictype/pr_other_id_start.h: Likewise.
7397         * lib/unictype/pr_other_lowercase.h: Likewise.
7398         * lib/unictype/pr_other_math.h: Likewise.
7399         * lib/unictype/pr_other_uppercase.h: Likewise.
7400         * lib/unictype/pr_paired_punctuation.h: Likewise.
7401         * lib/unictype/pr_paragraph_separator.h: Likewise.
7402         * lib/unictype/pr_pattern_syntax.h: Likewise.
7403         * lib/unictype/pr_pattern_white_space.h: Likewise.
7404         * lib/unictype/pr_private_use.h: Likewise.
7405         * lib/unictype/pr_punctuation.h: Likewise.
7406         * lib/unictype/pr_quotation_mark.h: Likewise.
7407         * lib/unictype/pr_radical.h: Likewise.
7408         * lib/unictype/pr_sentence_terminal.h: Likewise.
7409         * lib/unictype/pr_soft_dotted.h: Likewise.
7410         * lib/unictype/pr_space.h: Likewise.
7411         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7412         * lib/unictype/pr_titlecase.h: Likewise.
7413         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7414         * lib/unictype/pr_unified_ideograph.h: Likewise.
7415         * lib/unictype/pr_uppercase.h: Likewise.
7416         * lib/unictype/pr_variation_selector.h: Likewise.
7417         * lib/unictype/pr_white_space.h: Likewise.
7418         * lib/unictype/pr_xid_continue.h: Likewise.
7419         * lib/unictype/pr_xid_start.h: Likewise.
7420         * lib/unictype/pr_zero_width.h: Likewise.
7421         * lib/unictype/scripts.h: Likewise.
7422         * lib/unictype/scripts_byname.gperf: Likewise.
7423         * lib/unictype/sy_c_ident.h: Likewise.
7424         * lib/unictype/sy_c_whitespace.h: Likewise.
7425         * lib/unictype/sy_java_ident.h: Likewise.
7426         * lib/unictype/sy_java_whitespace.h: Likewise.
7427
7428         * lib/unictype/Makefile: New file.
7429         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
7430         glibc.
7431         * lib/unictype/3level.h: New file, copied from glibc.
7432         * lib/unictype/3levelbit.h: New file.
7433
7434 2007-11-11  Bruno Haible  <bruno@clisp.org>
7435
7436         * modules/gperf: New file.
7437         * modules/iconv_open (Depends-on): Add it.
7438         (Makefile.am): Remove the GPERF definition.
7439
7440 2007-11-11  Bruno Haible  <bruno@clisp.org>
7441
7442         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
7443         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
7444
7445 2007-11-11  Bruno Haible  <bruno@clisp.org>
7446
7447         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
7448         (usage): Remove function.
7449
7450 2007-11-11  Bruno Haible  <bruno@clisp.org>
7451
7452         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
7453         gl_FUNC_CEILF_LIBS.
7454         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
7455         gl_FUNC_CEIL_LIBS.
7456         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
7457         gl_FUNC_CEILL_LIBS.
7458         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
7459         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
7460         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
7461
7462 2007-11-11  Bruno Haible  <bruno@clisp.org>
7463
7464         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
7465         roundf were declared but do not exist on functions.
7466         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
7467         roundl were declared but do not exist on functions.
7468         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
7469         HAVE_FLOORL_AND_CEILL, respectively.
7470         Needed for Sun C on Solaris 10.
7471
7472 2007-11-11  Bruno Haible  <bruno@clisp.org>
7473
7474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
7475         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
7476         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
7477         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
7478         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
7479         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
7480         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
7481         HAVE_DECL_ROUNDF.
7482         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
7483         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
7484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
7485         of HAVE_DECL_ROUND*.
7486         * modules/math (Makefile.am): Update.
7487
7488 2007-11-10  Bruno Haible  <bruno@clisp.org>
7489
7490         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
7491         ptrdiff_t as m4/intl.m4.
7492
7493 2007-11-10  Jim Meyering  <meyering@redhat.com>
7494
7495         Avoid link failure for the argmatch test.
7496         * tests/test-argmatch.c (usage): Define function to avoid a link
7497         failure: argmatch_die requires a usage function.
7498
7499 2007-11-09  Bruno Haible  <bruno@clisp.org>
7500
7501         * doc/functions/snprintf.texi: Mention BeOS deficiency.
7502         * doc/functions/vsnprintf.texi: Likewise.
7503         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
7504         with a size argument < 2.
7505
7506 2007-11-09  Bruno Haible  <bruno@clisp.org>
7507
7508         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
7509         buffer. Fixes an inefficiency introduced on 2007-11-03.
7510
7511 2007-11-09  Bruno Haible  <bruno@clisp.org>
7512
7513         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
7514         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
7515
7516 2007-11-08  Jim Meyering  <meyering@redhat.com>
7517
7518         Change cache variable name prefix "jm_" to "gl_" everywhere.
7519         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
7520         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
7521         * m4/uptime.m4: s/gl_/jm_/
7522
7523 2007-11-07  Bruno Haible  <bruno@clisp.org>
7524
7525         Update to GNU gettext 0.17.
7526         * m4/intl.m4: Update to GNU gettext 0.17.
7527         * m4/po.m4: Likewise.
7528         * modules/gettext (Files): Remove m4/ulonglong.m4.
7529         (configure.ac): Require gettext infrastructure from version 0.17.
7530
7531 2007-11-06  Bruno Haible  <bruno@clisp.org>
7532
7533         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
7534         symbolic values are not defined in a public header.
7535         * lib/freadable.c (freadable) [QNX]: Likewise.
7536         * lib/freadahead.c (freadahead) [QNX]: Likewise.
7537         * lib/freading.c (freading) [QNX]: Likewise.
7538         * lib/fseterr.c (fseterr) [QNX]: Likewise.
7539         * lib/fwritable.c (fwritable) [QNX]: Likewise.
7540         * lib/fwriting.c (fwriting) [QNX]: Likewise.
7541         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
7542         Reported by Alain Magloire.
7543
7544         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
7545
7546 2007-11-05  Bruno Haible  <bruno@clisp.org>
7547
7548         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
7549         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
7550         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
7551         Reported by Eric Blake.
7552
7553 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7554             Bruno Haible  <bruno@clisp.org>
7555
7556         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
7557         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
7558         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
7559         (malloc): Undefine also before including <stdlib.h>.
7560         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
7561         Needed on OSF/1 4.0.
7562
7563 2007-11-05  Jim Meyering  <meyering@redhat.com>
7564
7565         git-version-gen: sync from coreutils.
7566         * build-aux/git-version-gen: Add comments.
7567         Change the first '-' to '.' in the snapshot version string,
7568         e.g., 6.9-377-08144 -> 6.9.377-08144
7569         Remove first parameter.
7570         Don't declare a version "-dirty" merely because a time
7571         stamp has changed.
7572
7573 2007-11-04  Bruno Haible  <bruno@clisp.org>
7574
7575         * lib/lock.h: Protect all macro definitions containing an 'if'
7576         statement through a "do { ... } while (0)".
7577         * lib/tls.h: Likewise.
7578
7579 2007-11-04  Bruno Haible  <bruno@clisp.org>
7580
7581         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
7582
7583 2007-11-04  Bruno Haible  <bruno@clisp.org>
7584
7585         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
7586         * modules/fprintf-posix (Depends-on): Add nocrash.
7587         * modules/snprintf-posix (Depends-on): Likewise.
7588         * modules/sprintf-posix (Depends-on): Likewise.
7589         * modules/vasnprintf-posix (Depends-on): Likewise.
7590         * modules/vasprintf-posix (Depends-on): Likewise.
7591         * modules/vfprintf-posix (Depends-on): Likewise.
7592         * modules/vsnprintf-posix (Depends-on): Likewise.
7593         * modules/vsprintf-posix (Depends-on): Likewise.
7594         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7595         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7596         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7597         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7598         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7599         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7600         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7601
7602 2007-11-04  Bruno Haible  <bruno@clisp.org>
7603
7604         * modules/nocrash: New file.
7605         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
7606         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
7607
7608 2007-11-04  Bruno Haible  <bruno@clisp.org>
7609
7610         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
7611         precision handling.
7612         * tests/test-vasprintf-posix.c (test_function): Likewise.
7613         * tests/test-snprintf-posix.h (test_function): Likewise.
7614         * tests/test-sprintf-posix.h (test_function): Likewise.
7615
7616         Fix *printf behaviour for large precisions on mingw and BeOS.
7617         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
7618         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
7619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
7620         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7621         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7622         gl_PRINTF_PRECISION and test its result. Invoke
7623         gl_PREREQ_VASNPRINTF_PRECISION.
7624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7625         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7626         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7631         * doc/functions/fprintf.texi: Update.
7632         * doc/functions/printf.texi: Update.
7633         * doc/functions/snprintf.texi: Update.
7634         * doc/functions/sprintf.texi: Update.
7635         * doc/functions/vfprintf.texi: Update.
7636         * doc/functions/vprintf.texi: Update.
7637         * doc/functions/vsnprintf.texi: Update.
7638         * doc/functions/vsprintf.texi: Update.
7639
7640 2007-11-04  Bruno Haible  <bruno@clisp.org>
7641
7642         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
7643
7644 2007-11-04  Bruno Haible  <bruno@clisp.org>
7645
7646         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
7647         Reported by Sylvain Beucler <beuc@gnu.org>.
7648
7649 2007-11-03  Bruno Haible  <bruno@clisp.org>
7650
7651         * tests/test-fprintf-posix2.sh: New file.
7652         * tests/test-fprintf-posix2.c: New file.
7653         * modules/fprintf-posix-tests (Files): Add them.
7654         (TESTS): Add test-fprintf-posix2.sh.
7655         (configure.ac): Check for getrlimit and setrlimit.
7656         (check_PROGRAMS): Add test-fprintf-posix2.
7657
7658         * tests/test-printf-posix2.sh: New file.
7659         * tests/test-printf-posix2.c: New file.
7660         * modules/printf-posix-tests (Files): Add them.
7661         (TESTS): Add test-printf-posix2.sh.
7662         (configure.ac): Check for getrlimit and setrlimit.
7663         (check_PROGRAMS): Add test-printf-posix2.
7664
7665         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
7666         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
7667         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
7668         (decode_double): New function, copied from decode_long_double.
7669         (scale10_round_decimal_decoded): New function, extracted from
7670         scale10_round_decimal_long_double.
7671         (scale10_round_decimal_long_double): Use it.
7672         (scale10_round_decimal_double): New function.
7673         (floorlog10): New function.
7674         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
7675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
7676         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7677         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7678         gl_PRINTF_ENOMEM and test its result. Invoke
7679         gl_PREREQ_VASNPRINTF_ENOMEM.
7680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7681         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7682         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7683         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7684         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7685         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7686         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7687         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
7688         * modules/snprintf-posix (Depends-on): Likewise.
7689         * modules/sprintf-posix (Depends-on): Likewise.
7690         * modules/vasnprintf-posix (Depends-on): Likewise.
7691         * modules/vasprintf-posix (Depends-on): Likewise.
7692         * modules/vfprintf-posix (Depends-on): Likewise.
7693         * modules/vsnprintf-posix (Depends-on): Likewise.
7694         * modules/vsprintf-posix (Depends-on): Likewise.
7695         * doc/functions/fprintf.texi: Update.
7696         * doc/functions/printf.texi: Update.
7697         * doc/functions/snprintf.texi: Update.
7698         * doc/functions/sprintf.texi: Update.
7699         * doc/functions/vfprintf.texi: Update.
7700         * doc/functions/vprintf.texi: Update.
7701         * doc/functions/vsnprintf.texi: Update.
7702         * doc/functions/vsprintf.texi: Update.
7703
7704 2007-11-03  Bruno Haible  <bruno@clisp.org>
7705
7706         * modules/frexp-nolibm-tests: New file.
7707
7708         * modules/frexp-nolibm: New file.
7709         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
7710
7711 2007-11-03  Bruno Haible  <bruno@clisp.org>
7712
7713         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
7714         value is C99 compliant.
7715         Needed for OSF/1 5.1.
7716
7717 2007-11-03  Bruno Haible  <bruno@clisp.org>
7718
7719         Fix out-of-memory handling of vasnprintf.
7720         * lib/printf-parse.c: Include <errno.h>.
7721         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
7722         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
7723         is already set.
7724
7725 2007-11-02  Eric Blake  <ebb9@byu.net>
7726
7727         Fix tests on cygwin.
7728         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
7729
7730 2007-11-01  Bruno Haible  <bruno@clisp.org>
7731
7732         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
7733         warning.
7734         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
7735         needed for POSIX compatibility.
7736
7737 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7738
7739         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
7740         for compatibility with GNU.
7741
7742 2007-11-01  Bruno Haible  <bruno@clisp.org>
7743
7744         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
7745         (putenv): Renamed from rpl_putenv. Change argument type from
7746         'const char *' to 'char *'.
7747         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
7748         of defining putenv in config.h, just set REPLACE_PUTENV.
7749         * modules/putenv (Depends-on): Add stdlib.
7750         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7751         (Include): Use <stdlib.h>.
7752         * lib/stdlib.in.h (putenv): New declaration.
7753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
7754         REPLACE_PUTENV.
7755         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
7756         REPLACE_PUTENV.
7757         Needed for MacOS X 10.5.0.
7758         Reported by Peter O'Gorman <peter@pogma.com>.
7759
7760 2007-11-01  Jim Meyering  <meyering@redhat.com>
7761
7762         Treat an empty date string exactly like "0".
7763         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
7764         if the remaining date string (to be parsed) is empty, use "0".
7765         Reported by Mischa Molhoek and discussed in this thread:
7766         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
7767
7768 2007-10-31  Bruno Haible  <bruno@clisp.org>
7769
7770         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
7771         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
7772         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
7773         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
7774         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
7775         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
7776
7777 2007-10-31  Bruno Haible  <bruno@clisp.org>
7778
7779         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
7780         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7781         (AC_TYPE_LONG_LONG_INT): Use it.
7782         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
7783         it as well.
7784         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
7785         to m4/longlong.m4.
7786         * modules/stdint (Files): Remove m4/ulonglong.m4.
7787         * modules/strtoull (Files): Use m4/longlong.m4 instead of
7788         m4/ulonglong.m4.
7789         * modules/strtoumax (Files): Likewise.
7790
7791 2007-10-30  Bruno Haible  <bruno@clisp.org>
7792
7793         * modules/xvasprintf-posix: New file.
7794         Suggested by Eric Blake.
7795
7796 2007-10-30  Bruno Haible  <bruno@clisp.org>
7797
7798         * modules/xprintf-posix-tests: New file.
7799         * tests/test-xprintf-posix.sh: New file.
7800         * tests/test-xprintf-posix.c: New file.
7801         * tests/test-xfprintf-posix.c: New file.
7802
7803         * modules/xprintf-posix: New file.
7804
7805 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7806
7807         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
7808         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
7809         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
7810
7811 2007-10-29  Bruno Haible  <bruno@clisp.org>
7812
7813         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
7814         contain the special marker '_cv_'.
7815         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7816         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7817         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7818         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7819         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7820         Reported by Ralf Wildenhues.
7821
7822 2007-10-29  Bruno Haible  <bruno@clisp.org>
7823
7824         * gnulib-tool (func_import): When --lgpl is not specified, set
7825         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
7826         GPLv3.
7827         Reported by Simon Josefsson.
7828
7829 2007-10-28  Bruno Haible  <bruno@clisp.org>
7830
7831         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
7832         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
7833         HAVE_DECL_ISFINITE.
7834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7835         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
7836         HAVE_DECL_ISFINITE.
7837
7838 2007-10-28  Bruno Haible  <bruno@clisp.org>
7839
7840         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
7841         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
7842
7843 2007-10-28  Bruno Haible  <bruno@clisp.org>
7844
7845         Fix link errors with Sun C 5.0 on Solaris 10.
7846         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
7847         function is declared but not present in the compiler's libm.
7848         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7849         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7850         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
7851         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
7852         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
7853         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
7854         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
7855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7856         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
7857         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
7858         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
7859         HAVE_DECL_FLOORL.
7860
7861 2007-10-28  Bruno Haible  <bruno@clisp.org>
7862
7863         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
7864         gl_FUNC_FLOORL. Cache the result.
7865         (gl_FUNC_FLOORL): Use it.
7866         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
7867         gl_FUNC_CEILL. Cache the result.
7868         (gl_FUNC_CEILL): Use it.
7869
7870         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
7871         gl_FUNC_FLOOR. Cache the result.
7872         (gl_FUNC_FLOOR): Use it.
7873         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
7874         gl_FUNC_CEIL. Cache the result.
7875         (gl_FUNC_CEIL): Use it.
7876
7877         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
7878         gl_FUNC_FLOORF. Cache the result.
7879         (gl_FUNC_FLOORF): Use it.
7880         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
7881         gl_FUNC_CEILF. Cache the result.
7882         (gl_FUNC_CEILF): Use it.
7883
7884 2007-10-28  Bruno Haible  <bruno@clisp.org>
7885
7886         * gnulib-tool: Allow specifying the LGPL version number through
7887         --lgpl=2 or --lgpl=3.
7888         (func_usage): Document --lgpl with argument.
7889         Handle --lgpl=... arguments.
7890         (func_import): Recognize also gl_LGPL calls with an argument. When
7891         --lgpl=2 is used and the module's license is just LGPL, report an
7892         error. Set sed_transform_lib_file according to the lgpl variable. In
7893         the generated files, use --lgpl or gl_LGPL invocations with argument,
7894         if necessary.
7895         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
7896         an LGPv2+ license.
7897         * doc/gnulib-tool.texi (Modified imports): Update explanation of
7898         gl_LGPL macro.
7899
7900 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7901             Bruno Haible  <bruno@clisp.org>
7902
7903         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
7904         (u16_uctomb_aux): Likewise.
7905         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
7906         !HAVE_INLINE.
7907         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
7908
7909 2007-10-28  Bruno Haible  <bruno@clisp.org>
7910
7911         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
7912         Invoke AM_GETTEXT_OPTION if it exists.
7913         * modules/vasprintf: Likewise.
7914         * modules/verror: Likewise.
7915         * modules/xprintf: Likewise.
7916         * modules/xvasprintf: Likewise.
7917
7918 2007-10-27  Ben Pfaff  <blp@gnu.org>
7919
7920         * lib/math.in.h: Define isfinite macro and prototypes for
7921         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
7922         implementations.
7923         * m4/math_h.m4: New substitutions for isfinite module.
7924         * lib/isfinite.c: New file.
7925         * m4/isfinite.m4: New file.
7926         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
7927         * modules/isfinite: New file.
7928         * modules/isfinite-tests: New file.
7929         * tests/tests-isfinite.c: New file.
7930         * doc/functions/isfinite.texi: Mention isfinite module.
7931         * MODULES.html.sh: Mention new module.
7932
7933 2007-10-27  Ben Pfaff  <blp@gnu.org>
7934
7935         Ralf Wildenhues reported that Tru64 4.0D declares the round
7936         functions but does not have definitions.
7937         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
7938         cannot be found in any library, set the output variable to
7939         "missing" instead of "".
7940         * m4/round.m4: Also use our substitute if we cannot find round in
7941         any library, even if it is declared.
7942         * m4/roundf.m4: Likewise for roundf.
7943         * m4/roundl.m4: Likewise for roundl.
7944         * lib/math.in.h: Undefine roundf, round, roundl before defining
7945         their replacements, to allow for hypothetical systems where these
7946         may be defined as macros but not available in libraries.
7947
7948 2007-10-27  Bruno Haible  <bruno@clisp.org>
7949
7950         * doc/gnulib.texi: Invoke @firstparagraphindent.
7951         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
7952         changes in gnulib.
7953         (Source changes): New section.
7954
7955 2007-10-26  Bruno Haible  <bruno@clisp.org>
7956
7957         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
7958         borrowed from autoconf.
7959
7960 2007-10-26  Bruno Haible  <bruno@clisp.org>
7961
7962         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
7963         strerror returned the empty string. Needed on HP-UX 11.00.
7964
7965 2007-10-24  Micah Cowan  <micah@cowan.name>
7966
7967         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
7968         * build-aux/bootstrap: Remove support for now-unnecessary option,
7969         --cvs-user, and envvars CVS_USER, CVS_RSH.
7970
7971 2007-10-24  Jim Meyering  <meyering@redhat.com>
7972
7973         Avoid diagnostics from sha1sum when there is no cached checksum.
7974         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
7975         if the po.s1 file hasn't been created yet.
7976
7977         * build-aux/bootstrap: Sync from coreutils:
7978         2007-10-24  Jim Meyering  <meyering@redhat.com>
7979         Get gnulib from the git repository, not from an obsolete cvs one.
7980         * build-aux/bootstrap: Suggestion from Micah Cowan.
7981         2007-10-04  Jim Meyering  <jim@meyering.net>
7982         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
7983         (update_po_files): Work also when there are no .po files in po/.
7984
7985 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7986
7987         * README: Append ".git" to git and cg examples.
7988         Problem reported by Benoit Sigoure.
7989
7990 2007-10-23  Micah Cowan  <micah@cowan.name>
7991
7992         * users.txt: Add wget.
7993
7994 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7995
7996         Fix linking of some unistdio tests on FreeBSD.
7997         * modules/unistdio/u16-vsnprintf-tests
7998         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
7999         * modules/unistdio/u16-vsprintf-tests
8000         (test_u16_vsnprintf1_LDADD): Likewise.
8001         * modules/unistdio/u32-vsnprintf-tests
8002         (test_u32_vsnprintf1_LDADD): Likewise.
8003         * modules/unistdio/u32-vsprintf-tests
8004         (test_u32_vsprintf1_LDADD): Likewise.
8005         * modules/unistdio/u8-vsnprintf-tests
8006         (test_u8_vsnprintf1_LDADD): Likewise.
8007         * modules/unistdio/u8-vsprintf-tests
8008         (test_u8_vsprintf1_LDADD): Likewise.
8009         * modules/unistdio/ulc-vsnprintf-tests
8010         (test_ulc_vsnprintf1_LDADD): Likewise.
8011         * modules/unistdio/ulc-vsprintf-tests
8012         (test_ulc_vsprintf1_LDADD): Likewise.
8013
8014         Fix linking of some uniconv tests on FreeBSD.
8015         * modules/uniconv/u16-conv-from-enc-tests
8016         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
8017         * modules/uniconv/u16-conv-to-enc-tests
8018         (test_u16_conv_to_enc_LDADD): Likewise.
8019         * modules/uniconv/u16-strconv-from-enc-tests
8020         (test_u16_strconv_from_enc_LDADD): Likewise.
8021         * modules/uniconv/u16-strconv-to-enc-tests
8022         (test_u16_strconv_to_enc_LDADD): Likewise.
8023         * modules/uniconv/u32-conv-from-enc-tests
8024         (test_u32_conv_from_enc_LDADD): Likewise.
8025         * modules/uniconv/u32-conv-to-enc-tests
8026         (test_u32_conv_to_enc_LDADD): Likewise.
8027         * modules/uniconv/u32-strconv-from-enc-tests
8028         (test_u32_strconv_from_enc_LDADD): Likewise.
8029         * modules/uniconv/u32-strconv-to-enc-tests
8030         (test_u32_strconv_to_enc_LDADD): Likewise.
8031         * modules/uniconv/u8-conv-from-enc-tests
8032         (test_u8_conv_from_enc_LDADD): Likewise.
8033         * modules/uniconv/u8-conv-to-enc-tests
8034         (test_u8_conv_to_enc_LDADD): Likewise.
8035         * modules/uniconv/u8-strconv-from-enc-tests
8036         (test_u8_strconv_from_enc_LDADD): Likewise.
8037         * modules/uniconv/u8-strconv-to-enc-tests
8038         (test_u8_strconv_to_enc_LDADD): Likewise.
8039
8040 2007-10-22  Bruno Haible  <bruno@clisp.org>
8041
8042         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
8043         size.
8044
8045 2007-10-22  Eric Blake  <ebb9@byu.net>
8046
8047         Tweak x*printf documentation.
8048         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
8049         variable name and comments.
8050         Suggested by Bruno Haible.
8051
8052 2007-10-22  Bruno Haible  <bruno@clisp.org>
8053
8054         * lib/acl.c (copy_acl): Fix file name in comment.
8055
8056 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8057
8058         Fix Tru64 problem with stdbool.h.
8059         * lib/stdbool.in.h (false, true):
8060         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
8061         Don't declare as an enum in this situation; it runs afoul of Tru64.
8062         Problem reported by Steven M. Schweda in
8063         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
8064
8065 2007-10-22  Eric Blake  <ebb9@byu.net>
8066
8067         Also wrap vf?printf.
8068         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
8069         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
8070         (xvprintf, xvfprintf): New functions.
8071
8072 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8073
8074         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
8075         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
8076
8077         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
8078         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
8079
8080 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8081
8082         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
8083         by Bruno Haible.
8084
8085 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8086
8087         * lib/getloadavg.c
8088         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
8089         Undef `sys' after including sys/table.h, for Tru64 4.0D.
8090
8091         * tests/test-i-ring.c: Work for C89.
8092
8093 2007-10-22  Bruno Haible  <bruno@clisp.org>
8094
8095         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
8096         -1u, in preprocessor expression, so that we don't test for the bug
8097         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
8098         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
8099
8100 2007-10-22  Eric Blake  <ebb9@byu.net>
8101
8102         * tests/test-yesno.sh: Silence stderr during test.
8103
8104 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8105
8106         * modules/crypto/gc-camellia: New file.
8107
8108         * m4/gc-camellia.m4: New file.
8109
8110         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
8111
8112         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
8113
8114 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8115
8116         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
8117         --help to stdout.  Reported by sms@antinode.org (Steven
8118         M. Schweda).
8119
8120 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8121
8122         * users.txt: Fix link to libksba.
8123
8124 2007-10-21  Ben Pfaff  <blp@gnu.org>
8125
8126         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
8127         round.c roundf implementation that depends on floorf and ceilf to
8128         be tested unconditionally.
8129
8130 2007-10-21  Ben Pfaff  <blp@gnu.org>
8131
8132         * m4/check-libm-func.m4: Removed.
8133         * m4/check-math-lib.m4: New file.
8134         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
8135         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
8136         definition and lack of AC_LIBOBJ([roundf]).
8137         * m4/roundl.m4: Ditto, and similarly for roundl.
8138         * modules/round: Reference new m4 file.
8139         * modules/roundf: Ditto.
8140         * modules/roundl: Ditto.
8141         * tests/test-round2.c (main): Use ROUND instead of round.
8142         Bug report from Bruno Haible.
8143
8144 2007-10-21  Bruno Haible  <bruno@clisp.org>
8145
8146         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
8147         context.
8148
8149 2007-10-21  Bruno Haible  <bruno@clisp.org>
8150
8151         * tests/test-wcwidth.c (main): Allow negative result for some control
8152         characters.
8153
8154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
8155         Needed on OSF/1 5.1.
8156
8157 2007-10-21  Bruno Haible  <bruno@clisp.org>
8158
8159         * tests/test-floorf1.c: Include isnanf.h.
8160         (main): Use isnanf() instead of isnan().
8161         * tests/test-ceilf1.c: Include isnanf.h.
8162         (main): Use isnanf() instead of isnan().
8163         * tests/test-truncf1.c: Include isnanf.h.
8164         (main): Use isnanf() instead of isnan().
8165         * tests/test-roundf1.c: Include isnanf.h.
8166         (main): Use isnanf() instead of isnan().
8167
8168 2007-10-21  Eric Blake  <ebb9@byu.net>
8169
8170         * users.txt: Update URL for m4.
8171
8172 2007-10-21  Bruno Haible  <bruno@clisp.org>
8173
8174         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
8175
8176 2007-10-21  Bruno Haible  <bruno@clisp.org>
8177
8178         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
8179         Git's management files if the CVS files are not present.
8180
8181 2007-10-20  Bruno Haible  <bruno@clisp.org>
8182
8183         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
8184         gcc-3.4.x.
8185
8186 2007-10-20  Ben Pfaff  <blp@gnu.org>
8187
8188         * lib/math.in.h: Declare round, roundf, roundl if we are providing
8189         implementations.
8190         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
8191         * lib/round.c: New file.
8192         * lib/roundf.c: New file.
8193         * lib/roundl.c: New file.
8194         * m4/round.m4: New file.
8195         * m4/roundf.m4: New file.
8196         * m4/roundl.m4: New file.
8197         * m4/check-libm-func-m4: New file.
8198         * modules/math: Replace round, roundf, roundl related @VARS@ in
8199         math.in.h.
8200         * modules/round: New file.
8201         * modules/round-tests: New file.
8202         * modules/roundf: New file.
8203         * modules/roundf-tests: New file.
8204         * modules/roundl: New file.
8205         * modules/roundl-tests: New file.
8206         * tests/test-round1.c: New file.
8207         * tests/test-round2.c: New file.
8208         * tests/test-roundf1.c: New file.
8209         * tests/test-roundf2.c: New file.
8210         * tests/test-roundl.c: New file.
8211         * doc/functions/round.texi: Mention round module.
8212         * doc/functions/roundf.texi: Mention roundf module.
8213         * doc/functions/roundl.texi: Mention roundl module.
8214         * MODULES.html.sh: Mention new modules.
8215         Thanks to Bruno Haible for suggestions.
8216
8217 2007-10-20  Jim Meyering  <meyering@redhat.com>
8218
8219         * lib/xprintf.c: Include <config.h> unconditionally.
8220
8221         Change xprintf's license to GPL.
8222         * modules/xprintf (License): s/LGPL/GPL/, since this module
8223         depends on modules (exit and exitfail) which are GPL.
8224         Suggestion from Bruno Haible.
8225
8226         xprintf fixes.
8227         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
8228         Use a clearer diagnostic.
8229         Patch from Bruno Haible.
8230
8231 2007-10-20  Bruno Haible  <bruno@clisp.org>
8232
8233         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
8234         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
8235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8236
8237 2007-10-20  Bruno Haible  <bruno@clisp.org>
8238
8239         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
8240         precision in the comparison result > x - 1 or similar.
8241         * tests/test-ceilf2.c (correct_result_p): Likewise.
8242         * tests/test-truncf2.c (correct_result_p): Likewise.
8243         * tests/test-trunc2.c (correct_result_p): Likewise.
8244         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8245
8246 2007-10-20  Bruno Haible  <bruno@clisp.org>
8247
8248         * modules/ceil: New file.
8249         * m4/ceil.m4: New file.
8250         * doc/functions/ceil.texi: Mention the 'ceil' module.
8251
8252 2007-10-20  Bruno Haible  <bruno@clisp.org>
8253
8254         * modules/floor: New file.
8255         * m4/floor.m4: New file.
8256         * doc/functions/floor.texi: Mention the 'floor' module.
8257
8258 2007-10-20  Bruno Haible  <bruno@clisp.org>
8259
8260         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
8261         of %a.
8262         * modules/floorf-tests (Depends-on): Likewise.
8263         * modules/truncf-tests (Depends-on): Likewise.
8264         * modules/trunc-tests (Depends-on): Likewise.
8265         Reported by Ben Pfaff.
8266
8267 2007-10-19  Jim Meyering  <meyering@redhat.com>
8268
8269         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
8270         Don't bother testing specific errno values.  Just test ferror.
8271
8272         New module: xprintf
8273         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
8274
8275 2007-10-19  Bruno Haible  <bruno@clisp.org>
8276
8277         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
8278         syntax.
8279         * modules/javaexec (Makefile.am): Likewise.
8280         * modules/relocatable-prog (Makefile.am): Likewise.
8281         Suggested by Jim Meyering.
8282
8283 2007-10-18  Bruno Haible  <bruno@clisp.org>
8284
8285         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8286         Reported by Jim Meyering.
8287
8288 2007-10-18  Eric Blake  <ebb9@byu.net>
8289
8290         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8291
8292 2007-10-18  Bruno Haible  <bruno@clisp.org>
8293
8294         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8295         the format string into writable memory. Needed in Fortify conditions.
8296
8297 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8298             Bruno Haible  <bruno@clisp.org>
8299
8300         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8301         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8302         * modules/trim (Depends-on): Add mbchar.
8303         (configure.ac): Add gl_FUNC_MBRTOWC.
8304         (Makefile.am): Augment lib_SOURCES.
8305
8306 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8307
8308         Modify glob.c to use fstatat and dirfd, to simplify it.
8309         Suggested by Eric Blake.
8310         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8311         Don't include <stdbool.h>; not used.
8312         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8313         (link_exists_p): Simplify implementation, since we can now assume
8314         dirfd and fstatat.
8315         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8316
8317 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8318
8319         * gnulib-tool (func_get_dependencies): Fix sed script to
8320         match only tests.
8321
8322 2007-10-17  Bruno Haible  <bruno@clisp.org>
8323
8324         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8325         allow locale names without encoding suffix.
8326         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8327         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8328
8329 2007-10-16  Bruno Haible  <bruno@clisp.org>
8330
8331         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8332         * lib/getgroups.c (getgroups): Likewise.
8333         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8334
8335 2007-10-16  Bruno Haible  <bruno@clisp.org>
8336
8337         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8338         * modules/malloc-posix (License): Likewise.
8339         * modules/realloc-posix (License): Likewise.
8340         * modules/calloc-posix (License): Likewise.
8341         * modules/intprops (License): Change from GPL to LGPL, with
8342         Paul Eggert's approval.
8343
8344 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8345
8346         Merge glibc changes into lib/glob.c.
8347
8348         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8349         2007-10-15 04:59:03 UTC.  Here are the changes:
8350
8351         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8352
8353         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8354
8355         * lib/glob.c: Add some branch prediction throughout.
8356
8357         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8358
8359         [BZ #5103]
8360         * lib/glob.c (glob): Recognize patterns starting \/.
8361
8362         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8363
8364         [BZ #3996]
8365         * lib/glob.c (attribute_hidden): Define if not defined.
8366         (glob): Unescape dirname, filename or username when needed and not
8367         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8368         is NULL.  Handle unescaped [ in pattern without closing ].
8369         Don't pass GLOB_CHECK down to recursive glob for directories.
8370         (__glob_pattern_type): New function.
8371         (__glob_pattern_p): Implement using __glob_pattern_type.
8372         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8373         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8374         Remove unreachable code.
8375
8376         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8377
8378         * lib/glob.c (glob_in_dir): Add some comments and asserts to
8379         explain why there are no leaks.
8380
8381         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8382
8383         [BZ #3253]
8384         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8385         time, rather allocate increasingly bigger arrays of pointers, if
8386         possible with alloca, if too large with malloc.
8387
8388 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8389
8390         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8391         Problem reported by H.Merijn Brand in
8392         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8393         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
8394         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8395
8396 2007-10-15  Bruno Haible  <bruno@clisp.org>
8397
8398         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8399         with explicit rpl_ prefix.
8400         * lib/fopen.c (fopen): Likewise.
8401         * lib/freopen.c (freopen): Likewise.
8402         * lib/iconv.c (iconv): Likewise.
8403         * lib/iconv_close.c (iconv_close): Likewise.
8404
8405 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8406
8407         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8408
8409 2007-10-15  Bruno Haible  <bruno@clisp.org>
8410
8411         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8412         <stddef.h> instead of <stdlib.h> since we only need NULL.
8413         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8414
8415 2007-10-15  Bruno Haible  <bruno@clisp.org>
8416
8417         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
8418         Replace paragraph talking about LIBOBJS.
8419         Reported by Colin Watson <cjwatson@debian.org>.
8420
8421 2007-10-15  Bruno Haible  <bruno@clisp.org>
8422
8423         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
8424         <stdlib.h> before using NULL.
8425
8426 2007-10-15  Simon Josefsson  <simon@josefsson.org>
8427
8428         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
8429         Reported by Albert Chin <china@thewrittenword.com>.
8430
8431 2007-10-14  Bruno Haible  <bruno@clisp.org>
8432
8433         * modules/iconv_open-utf-tests: New file.
8434         * tests/test-iconv-utf.c: New file.
8435
8436         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
8437         * modules/iconv_open-utf: New file.
8438         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
8439         (iconv, iconv_close): New declarations.
8440         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
8441         be defined.
8442         (iconv_open): Add special handling of conversion between UTF-8 and
8443         UTF-{16,32}{BE,LE}.
8444         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
8445         * lib/iconv_close.c: New file.
8446         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
8447         gl_FUNC_ICONV_OPEN.
8448         (gl_FUNC_ICONV_OPEN): Use it.
8449         (gl_FUNC_ICONV_OPEN_UTF): New macro.
8450         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
8451         and REPLACE_ICONV_UTF.
8452         * modules/iconv_open (Depends-on): Add c-strcase.
8453         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
8454         ICONV_CONST.
8455         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
8456
8457 2007-10-13  Albert Chin  <china@thewrittenword.com>
8458             Bruno Haible  <bruno@clisp.org>
8459
8460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
8461         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
8462
8463 2007-10-13  Bruno Haible  <bruno@clisp.org>
8464
8465         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
8466         defined, use the ISO C99 inline semantics.
8467         * lib/argp.h (ARGP_EI): Likewise.
8468
8469 2007-10-13  Bruno Haible  <bruno@clisp.org>
8470
8471         Handle 'inline' change in gcc 4.3.0.
8472         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
8473         argp_fmtstream_write, argp_fmtstream_set_lmargin,
8474         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
8475         argp_fmtstream_point): Disable 'extern' declaration if the function
8476         definition is going to be provided inline.
8477         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
8478         semantics, not the ISO C99 inline semantics.
8479         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
8480         'extern' declaration if the function definition is going to be provided
8481         inline.
8482         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
8483         the GNU C inline semantics, not the ISO C99 inline semantics. With
8484         GCC 4.2, avoid a warning.
8485
8486 2007-10-13  Bruno Haible  <bruno@clisp.org>
8487
8488         * lib/freading.h (freading): Enable the use of __freading for
8489         glibc >= 2.7.
8490         * lib/freading.c (freading): Likewise.
8491
8492 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8493
8494         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
8495         "warning: C99 inline functions are not supported; using GNU89".
8496
8497 2007-10-12  Bruno Haible  <bruno@clisp.org>
8498
8499         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
8500         of 2.
8501         * tests/test-ceilf2.c: New file.
8502         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
8503
8504         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
8505         * modules/ceilf-tests: Update.
8506
8507 2007-10-12  Bruno Haible  <bruno@clisp.org>
8508
8509         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
8510         of 2.
8511         * tests/test-floorf2.c: New file.
8512         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
8513
8514         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
8515         * modules/floorf-tests: Update.
8516
8517 2007-10-12  Bruno Haible  <bruno@clisp.org>
8518
8519         * tests/test-trunc2.c: New file.
8520         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
8521
8522         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
8523         * modules/trunc-tests: Update.
8524
8525 2007-10-12  Bruno Haible  <bruno@clisp.org>
8526
8527         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
8528         of 2.
8529         * tests/test-truncf2.c: New file.
8530         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
8531
8532         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
8533         * modules/truncf-tests: Update.
8534
8535 2007-10-11  Eric Blake  <ebb9@byu.net>
8536
8537         Don't claim strerror is broken on Interix.
8538         * doc/functions/strerror.texi (strerror): Known broken systems are
8539         now Solaris 8, and not Interix.
8540         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
8541         Interix on cross-compile.
8542         Reported by Martin Koeppe in
8543         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
8544
8545 2007-10-11  Bruno Haible  <bruno@clisp.org>
8546
8547         * modules/i-ring-tests: New file.
8548         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
8549         instead of assert.
8550
8551 2007-10-11  Bruno Haible  <bruno@clisp.org>
8552
8553         * modules/filenamecat-tests: New file.
8554         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
8555         * lib/filenamecat.c: Remove test code.
8556
8557 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8558
8559         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
8560
8561         * lib/strerror.c: Include <string.h> always, to test interface,
8562         and to remove the need for the dummy.
8563         Include intprops.h to compute width instead of doing it ourselves
8564         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
8565         (strerror): Define it to return NULL if there's no system strerror.
8566         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
8567         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
8568         ancient pre-strerror Unix systems well any more.  Saying "unknown
8569         system error" is enough.
8570         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
8571         simpler strerror.c implementation.
8572         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
8573         Simplify the tests to reflect the simpler strerror implementation.
8574         * modules/strerror (Depends-on): Add intprops.
8575
8576 2007-10-09  Eric Blake  <ebb9@byu.net>
8577
8578         Silence test-fpending.
8579         * modules/fpending-tests (Files): Add wrapper script.
8580         * tests/test-fpending.sh: New file.
8581
8582 2007-10-09  Bruno Haible  <bruno@clisp.org>
8583
8584         * MODULES.html.sh (func_module): Don't create a hyperlink for
8585         function names like 'printf_frexp'.
8586         (Misc): Add crc, memxor.
8587         (Characteristics of floating types): New section.
8588         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
8589         isnanf-nolibm, signbit, trunc, truncf, truncl.
8590         (Enhancements for ISO C 99 functions): New subsection Input/output.
8591         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
8592         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
8593         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
8594         (Compatibility checks for POSIX:2001 functions): Add clock-time.
8595         (Enhancements for POSIX:2001 functions): Add chdir-long.
8596         (File system functions): Add areadlink, chdir-safer, read-file.
8597         Remove cycle-check.
8598         (File system as inode set): New section.
8599         (Date and time): Add gethrxtime.
8600         (Multithreading): Add openmp.
8601         (Internationalization functions): Add localename.
8602         (Unicode string functions): Add unistr/u*-mbsnlen.
8603         (Support for maintaining and releasing projects): Add git-version-gen.
8604         (Lone files): Remove directories.
8605
8606 2007-10-08  Ben Pfaff  <blp@gnu.org>
8607
8608         * lib/xmalloca.h: Fix typo in comment.
8609
8610 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8611
8612         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
8613         when avoiding problems with integer overflow.  Use a portable test
8614         instead.
8615
8616 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8617
8618         * modules/dummy (License): Change to LGPLv2+.
8619         * modules/float (License): Likewise
8620         * modules/realloc (License): Likewise
8621         * modules/stdlib (License): Likewise
8622
8623 2007-10-07  Bruno Haible  <bruno@clisp.org>
8624
8625         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
8626         * floor.c (TWO_MANT_DIG): Likewise.
8627         * ceil.c (TWO_MANT_DIG): Likewise.
8628         Reported by Ben Pfaff.
8629
8630 2007-10-07  Bruno Haible  <bruno@clisp.org>
8631
8632         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
8633         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
8634         * lib/frexp.c (FUNC): Likewise.
8635         * lib/printf-frexp.h (printf_frexp): Likewise.
8636         * lib/printf-frexpl.h (printf_frexpl): Likewise.
8637         * lib/printf-frexp.c (FUNC): Likewise.
8638         Suggested by Jim Meyering.
8639
8640 2007-10-07  Jim Meyering  <meyering@redhat.com>
8641
8642         Make xnanosleep's integer overflow test more robust.
8643         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
8644         so that gcc-4.3.0 doesn't optimize away this test for overflow.
8645
8646 2007-10-07  Bruno Haible  <bruno@clisp.org>
8647
8648         * NEWS: Mention the license change.
8649
8650         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
8651         abbreviations in the modules files.
8652
8653         Change copyright notice from GPLv2+ to GPLv3+.
8654         * README: Change copyright notice.
8655         * MODULES.html.sh: Likewise.
8656         * build-aux/bootstrap.conf: Likewise.
8657         * build-aux/config.libpath: Likewise.
8658         * build-aux/csharpcomp.sh.in: Likewise.
8659         * build-aux/csharpexec.sh.in: Likewise.
8660         * build-aux/install-reloc: Likewise.
8661         * build-aux/javacomp.sh.in: Likewise.
8662         * build-aux/javaexec.sh.in: Likewise.
8663         * build-aux/ldd.sh.in: Likewise.
8664         * build-aux/reloc-ldflags: Likewise.
8665         * build-aux/relocatable.sh.in: Likewise.
8666         * build-aux/x-to-1.in: Likewise.
8667         * check-module: Likewise.
8668         * config/srclistvars.sh: Likewise.
8669         * gnulib-tool: Likewise.
8670         * lib/acl-internal.h: Likewise.
8671         * lib/acl.c: Likewise.
8672         * lib/acl.h: Likewise.
8673         * lib/acl_entries.c: Likewise.
8674         * lib/areadlink-with-size.c: Likewise.
8675         * lib/areadlink.c: Likewise.
8676         * lib/areadlink.h: Likewise.
8677         * lib/argmatch.c: Likewise.
8678         * lib/argmatch.h: Likewise.
8679         * lib/argp-ba.c: Likewise.
8680         * lib/argp-eexst.c: Likewise.
8681         * lib/argp-fmtstream.c: Likewise.
8682         * lib/argp-fmtstream.h: Likewise.
8683         * lib/argp-fs-xinl.c: Likewise.
8684         * lib/argp-help.c: Likewise.
8685         * lib/argp-namefrob.h: Likewise.
8686         * lib/argp-parse.c: Likewise.
8687         * lib/argp-pin.c: Likewise.
8688         * lib/argp-pv.c: Likewise.
8689         * lib/argp-pvh.c: Likewise.
8690         * lib/argp-xinl.c: Likewise.
8691         * lib/argp.h: Likewise.
8692         * lib/at-func.c: Likewise.
8693         * lib/atanl.c: Likewise.
8694         * lib/backupfile.c: Likewise.
8695         * lib/backupfile.h: Likewise.
8696         * lib/basename.c: Likewise.
8697         * lib/binary-io.h: Likewise.
8698         * lib/byteswap.in.h: Likewise.
8699         * lib/c-stack.c: Likewise.
8700         * lib/c-stack.h: Likewise.
8701         * lib/c-strcasestr.c: Likewise.
8702         * lib/c-strcasestr.h: Likewise.
8703         * lib/c-strstr.c: Likewise.
8704         * lib/c-strstr.h: Likewise.
8705         * lib/c-strtod.c: Likewise.
8706         * lib/calloc.c: Likewise.
8707         * lib/canon-host.c: Likewise.
8708         * lib/canon-host.h: Likewise.
8709         * lib/canonicalize-lgpl.c: Likewise.
8710         * lib/canonicalize.c: Likewise.
8711         * lib/canonicalize.h: Likewise.
8712         * lib/ceil.c: Likewise.
8713         * lib/ceilf.c: Likewise.
8714         * lib/ceill.c: Likewise.
8715         * lib/chdir-long.c: Likewise.
8716         * lib/chdir-long.h: Likewise.
8717         * lib/chdir-safer.c: Likewise.
8718         * lib/chdir-safer.h: Likewise.
8719         * lib/chown.c: Likewise.
8720         * lib/classpath.c: Likewise.
8721         * lib/classpath.h: Likewise.
8722         * lib/clean-temp.c: Likewise.
8723         * lib/clean-temp.h: Likewise.
8724         * lib/cloexec.c: Likewise.
8725         * lib/close-stream.c: Likewise.
8726         * lib/closein.c: Likewise.
8727         * lib/closein.h: Likewise.
8728         * lib/closeout.c: Likewise.
8729         * lib/closeout.h: Likewise.
8730         * lib/concat-filename.c: Likewise.
8731         * lib/copy-file.c: Likewise.
8732         * lib/copy-file.h: Likewise.
8733         * lib/count-one-bits.h: Likewise.
8734         * lib/crc.c: Likewise.
8735         * lib/crc.h: Likewise.
8736         * lib/creat-safer.c: Likewise.
8737         * lib/csharpcomp.c: Likewise.
8738         * lib/csharpcomp.h: Likewise.
8739         * lib/csharpexec.c: Likewise.
8740         * lib/csharpexec.h: Likewise.
8741         * lib/cycle-check.c: Likewise.
8742         * lib/cycle-check.h: Likewise.
8743         * lib/diacrit.c: Likewise.
8744         * lib/diacrit.h: Likewise.
8745         * lib/diffseq.h: Likewise.
8746         * lib/dirchownmod.c: Likewise.
8747         * lib/dirent.in.h: Likewise.
8748         * lib/dirfd.c: Likewise.
8749         * lib/dirfd.h: Likewise.
8750         * lib/dirname.c: Likewise.
8751         * lib/dirname.h: Likewise.
8752         * lib/dummy.c: Likewise.
8753         * lib/dup-safer.c: Likewise.
8754         * lib/dup2.c: Likewise.
8755         * lib/eealloc.h: Likewise.
8756         * lib/error.c: Likewise.
8757         * lib/error.h: Likewise.
8758         * lib/euidaccess.c: Likewise.
8759         * lib/exclude.c: Likewise.
8760         * lib/exclude.h: Likewise.
8761         * lib/execute.c: Likewise.
8762         * lib/execute.h: Likewise.
8763         * lib/exitfail.c: Likewise.
8764         * lib/exitfail.h: Likewise.
8765         * lib/expl.c: Likewise.
8766         * lib/fatal-signal.c: Likewise.
8767         * lib/fatal-signal.h: Likewise.
8768         * lib/fbufmode.c: Likewise.
8769         * lib/fbufmode.h: Likewise.
8770         * lib/fchdir.c: Likewise.
8771         * lib/fchmodat.c: Likewise.
8772         * lib/fchownat.c: Likewise.
8773         * lib/fcntl--.h: Likewise.
8774         * lib/fcntl-safer.h: Likewise.
8775         * lib/fcntl.in.h: Likewise.
8776         * lib/fd-safer.c: Likewise.
8777         * lib/fflush.c: Likewise.
8778         * lib/file-has-acl.c: Likewise.
8779         * lib/file-set.c: Likewise.
8780         * lib/file-type.c: Likewise.
8781         * lib/file-type.h: Likewise.
8782         * lib/fileblocks.c: Likewise.
8783         * lib/filemode.c: Likewise.
8784         * lib/filemode.h: Likewise.
8785         * lib/filename.h: Likewise.
8786         * lib/filenamecat.c: Likewise.
8787         * lib/filenamecat.h: Likewise.
8788         * lib/findprog.c: Likewise.
8789         * lib/findprog.h: Likewise.
8790         * lib/float.in.h: Likewise.
8791         * lib/floor.c: Likewise.
8792         * lib/floorf.c: Likewise.
8793         * lib/floorl.c: Likewise.
8794         * lib/fopen-safer.c: Likewise.
8795         * lib/fopen.c: Likewise.
8796         * lib/fpending.c: Likewise.
8797         * lib/fpending.h: Likewise.
8798         * lib/fprintf.c: Likewise.
8799         * lib/fprintftime.h: Likewise.
8800         * lib/fpucw.h: Likewise.
8801         * lib/fpurge.c: Likewise.
8802         * lib/fpurge.h: Likewise.
8803         * lib/freadable.c: Likewise.
8804         * lib/freadable.h: Likewise.
8805         * lib/freadahead.c: Likewise.
8806         * lib/freadahead.h: Likewise.
8807         * lib/freading.c: Likewise.
8808         * lib/freading.h: Likewise.
8809         * lib/free.c: Likewise.
8810         * lib/freopen.c: Likewise.
8811         * lib/frexp.c: Likewise.
8812         * lib/frexpl.c: Likewise.
8813         * lib/fseek.c: Likewise.
8814         * lib/fseterr.c: Likewise.
8815         * lib/fseterr.h: Likewise.
8816         * lib/fstatat.c: Likewise.
8817         * lib/fstrcmp.c: Likewise.
8818         * lib/fstrcmp.h: Likewise.
8819         * lib/fsusage.c: Likewise.
8820         * lib/fsusage.h: Likewise.
8821         * lib/ftell.c: Likewise.
8822         * lib/ftello.c: Likewise.
8823         * lib/fts-cycle.c: Likewise.
8824         * lib/fts.c: Likewise.
8825         * lib/fts_.h: Likewise.
8826         * lib/full-read.c: Likewise.
8827         * lib/full-read.h: Likewise.
8828         * lib/full-write.c: Likewise.
8829         * lib/full-write.h: Likewise.
8830         * lib/fwritable.c: Likewise.
8831         * lib/fwritable.h: Likewise.
8832         * lib/fwriteerror.c: Likewise.
8833         * lib/fwriteerror.h: Likewise.
8834         * lib/fwriting.c: Likewise.
8835         * lib/fwriting.h: Likewise.
8836         * lib/gcd.c: Likewise.
8837         * lib/gcd.h: Likewise.
8838         * lib/getcwd.c: Likewise.
8839         * lib/getdate.h: Likewise.
8840         * lib/getdate.y: Likewise.
8841         * lib/getdomainname.c: Likewise.
8842         * lib/getdomainname.h: Likewise.
8843         * lib/getgroups.c: Likewise.
8844         * lib/gethostname.c: Likewise.
8845         * lib/gethrxtime.c: Likewise.
8846         * lib/gethrxtime.h: Likewise.
8847         * lib/getloadavg.c: Likewise.
8848         * lib/getndelim2.c: Likewise.
8849         * lib/getndelim2.h: Likewise.
8850         * lib/getnline.c: Likewise.
8851         * lib/getnline.h: Likewise.
8852         * lib/getopt.c: Likewise.
8853         * lib/getopt.in.h: Likewise.
8854         * lib/getopt1.c: Likewise.
8855         * lib/getopt_int.h: Likewise.
8856         * lib/getpagesize.h: Likewise.
8857         * lib/getsubopt.c: Likewise.
8858         * lib/gettime.c: Likewise.
8859         * lib/getugroups.c: Likewise.
8860         * lib/getugroups.h: Likewise.
8861         * lib/getusershell.c: Likewise.
8862         * lib/gl_anyavltree_list1.h: Likewise.
8863         * lib/gl_anyavltree_list2.h: Likewise.
8864         * lib/gl_anyhash_list1.h: Likewise.
8865         * lib/gl_anyhash_list2.h: Likewise.
8866         * lib/gl_anylinked_list1.h: Likewise.
8867         * lib/gl_anylinked_list2.h: Likewise.
8868         * lib/gl_anyrbtree_list1.h: Likewise.
8869         * lib/gl_anyrbtree_list2.h: Likewise.
8870         * lib/gl_anytree_list1.h: Likewise.
8871         * lib/gl_anytree_list2.h: Likewise.
8872         * lib/gl_anytree_oset.h: Likewise.
8873         * lib/gl_anytreehash_list1.h: Likewise.
8874         * lib/gl_anytreehash_list2.h: Likewise.
8875         * lib/gl_array_list.c: Likewise.
8876         * lib/gl_array_list.h: Likewise.
8877         * lib/gl_array_oset.c: Likewise.
8878         * lib/gl_array_oset.h: Likewise.
8879         * lib/gl_avltree_list.c: Likewise.
8880         * lib/gl_avltree_list.h: Likewise.
8881         * lib/gl_avltree_oset.c: Likewise.
8882         * lib/gl_avltree_oset.h: Likewise.
8883         * lib/gl_avltreehash_list.c: Likewise.
8884         * lib/gl_avltreehash_list.h: Likewise.
8885         * lib/gl_carray_list.c: Likewise.
8886         * lib/gl_carray_list.h: Likewise.
8887         * lib/gl_linked_list.c: Likewise.
8888         * lib/gl_linked_list.h: Likewise.
8889         * lib/gl_linkedhash_list.c: Likewise.
8890         * lib/gl_linkedhash_list.h: Likewise.
8891         * lib/gl_list.c: Likewise.
8892         * lib/gl_list.h: Likewise.
8893         * lib/gl_oset.c: Likewise.
8894         * lib/gl_oset.h: Likewise.
8895         * lib/gl_rbtree_list.c: Likewise.
8896         * lib/gl_rbtree_list.h: Likewise.
8897         * lib/gl_rbtree_oset.c: Likewise.
8898         * lib/gl_rbtree_oset.h: Likewise.
8899         * lib/gl_rbtreehash_list.c: Likewise.
8900         * lib/gl_rbtreehash_list.h: Likewise.
8901         * lib/gl_sublist.c: Likewise.
8902         * lib/gl_sublist.h: Likewise.
8903         * lib/group-member.c: Likewise.
8904         * lib/group-member.h: Likewise.
8905         * lib/hard-locale.c: Likewise.
8906         * lib/hard-locale.h: Likewise.
8907         * lib/hash-pjw.c: Likewise.
8908         * lib/hash-pjw.h: Likewise.
8909         * lib/hash-triple.c: Likewise.
8910         * lib/hash.c: Likewise.
8911         * lib/hash.h: Likewise.
8912         * lib/human.c: Likewise.
8913         * lib/human.h: Likewise.
8914         * lib/i-ring.c: Likewise.
8915         * lib/i-ring.h: Likewise.
8916         * lib/idcache.c: Likewise.
8917         * lib/imaxabs.c: Likewise.
8918         * lib/imaxdiv.c: Likewise.
8919         * lib/inet_pton.c: Likewise.
8920         * lib/inet_pton.h: Likewise.
8921         * lib/intprops.h: Likewise.
8922         * lib/inttostr.c: Likewise.
8923         * lib/inttostr.h: Likewise.
8924         * lib/inttypes.in.h: Likewise.
8925         * lib/isapipe.c: Likewise.
8926         * lib/isdir.c: Likewise.
8927         * lib/isnan.c: Likewise.
8928         * lib/isnan.h: Likewise.
8929         * lib/isnanf.c: Likewise.
8930         * lib/isnanf.h: Likewise.
8931         * lib/isnanl-nolibm.h: Likewise.
8932         * lib/isnanl.c: Likewise.
8933         * lib/isnanl.h: Likewise.
8934         * lib/javacomp.c: Likewise.
8935         * lib/javacomp.h: Likewise.
8936         * lib/javaexec.c: Likewise.
8937         * lib/javaexec.h: Likewise.
8938         * lib/javaversion.c: Likewise.
8939         * lib/javaversion.h: Likewise.
8940         * lib/javaversion.java: Likewise.
8941         * lib/lbrkprop.h: Likewise.
8942         * lib/lchmod.h: Likewise.
8943         * lib/lchown.c: Likewise.
8944         * lib/ldexpl.c: Likewise.
8945         * lib/linebreak.c: Likewise.
8946         * lib/linebreak.h: Likewise.
8947         * lib/linebuffer.c: Likewise.
8948         * lib/linebuffer.h: Likewise.
8949         * lib/locale.in.h: Likewise.
8950         * lib/logl.c: Likewise.
8951         * lib/long-options.c: Likewise.
8952         * lib/long-options.h: Likewise.
8953         * lib/lstat.c: Likewise.
8954         * lib/lstat.h: Likewise.
8955         * lib/math.in.h: Likewise.
8956         * lib/mbchar.c: Likewise.
8957         * lib/mbchar.h: Likewise.
8958         * lib/mbfile.h: Likewise.
8959         * lib/mbiter.h: Likewise.
8960         * lib/mbscasecmp.c: Likewise.
8961         * lib/mbscasestr.c: Likewise.
8962         * lib/mbschr.c: Likewise.
8963         * lib/mbscspn.c: Likewise.
8964         * lib/mbslen.c: Likewise.
8965         * lib/mbsncasecmp.c: Likewise.
8966         * lib/mbsnlen.c: Likewise.
8967         * lib/mbspbrk.c: Likewise.
8968         * lib/mbspcasecmp.c: Likewise.
8969         * lib/mbsrchr.c: Likewise.
8970         * lib/mbssep.c: Likewise.
8971         * lib/mbsspn.c: Likewise.
8972         * lib/mbsstr.c: Likewise.
8973         * lib/mbstok_r.c: Likewise.
8974         * lib/mbswidth.c: Likewise.
8975         * lib/mbswidth.h: Likewise.
8976         * lib/mbuiter.h: Likewise.
8977         * lib/memcasecmp.c: Likewise.
8978         * lib/memcasecmp.h: Likewise.
8979         * lib/memchr.c: Likewise.
8980         * lib/memcmp.c: Likewise.
8981         * lib/memcoll.c: Likewise.
8982         * lib/memcoll.h: Likewise.
8983         * lib/memcpy.c: Likewise.
8984         * lib/memrchr.c: Likewise.
8985         * lib/mkancesdirs.c: Likewise.
8986         * lib/mkdir-p.c: Likewise.
8987         * lib/mkdir-p.h: Likewise.
8988         * lib/mkdir.c: Likewise.
8989         * lib/mkdirat.c: Likewise.
8990         * lib/mkdtemp.c: Likewise.
8991         * lib/mkstemp-safer.c: Likewise.
8992         * lib/mkstemp.c: Likewise.
8993         * lib/modechange.c: Likewise.
8994         * lib/modechange.h: Likewise.
8995         * lib/mountlist.c: Likewise.
8996         * lib/mountlist.h: Likewise.
8997         * lib/mpsort.c: Likewise.
8998         * lib/nanosleep.c: Likewise.
8999         * lib/obstack.c: Likewise.
9000         * lib/obstack.h: Likewise.
9001         * lib/open-safer.c: Likewise.
9002         * lib/open.c: Likewise.
9003         * lib/openat-die.c: Likewise.
9004         * lib/openat-priv.h: Likewise.
9005         * lib/openat-proc.c: Likewise.
9006         * lib/openat.c: Likewise.
9007         * lib/openat.h: Likewise.
9008         * lib/pagealign_alloc.c: Likewise.
9009         * lib/pagealign_alloc.h: Likewise.
9010         * lib/physmem.c: Likewise.
9011         * lib/physmem.h: Likewise.
9012         * lib/pipe-safer.c: Likewise.
9013         * lib/pipe.c: Likewise.
9014         * lib/pipe.h: Likewise.
9015         * lib/posixtm.c: Likewise.
9016         * lib/posixtm.h: Likewise.
9017         * lib/posixver.c: Likewise.
9018         * lib/printf-frexp.c: Likewise.
9019         * lib/printf-frexp.h: Likewise.
9020         * lib/printf-frexpl.c: Likewise.
9021         * lib/printf-frexpl.h: Likewise.
9022         * lib/printf.c: Likewise.
9023         * lib/progname.c: Likewise.
9024         * lib/progname.h: Likewise.
9025         * lib/progreloc.c: Likewise.
9026         * lib/putenv.c: Likewise.
9027         * lib/quote.c: Likewise.
9028         * lib/quote.h: Likewise.
9029         * lib/quotearg.c: Likewise.
9030         * lib/quotearg.h: Likewise.
9031         * lib/raise.c: Likewise.
9032         * lib/readline.c: Likewise.
9033         * lib/readline.h: Likewise.
9034         * lib/readlink.c: Likewise.
9035         * lib/readtokens.c: Likewise.
9036         * lib/readtokens.h: Likewise.
9037         * lib/readtokens0.c: Likewise.
9038         * lib/readtokens0.h: Likewise.
9039         * lib/readutmp.c: Likewise.
9040         * lib/readutmp.h: Likewise.
9041         * lib/realloc.c: Likewise.
9042         * lib/relocwrapper.c: Likewise.
9043         * lib/rename-dest-slash.c: Likewise.
9044         * lib/rename.c: Likewise.
9045         * lib/rmdir.c: Likewise.
9046         * lib/rpmatch.c: Likewise.
9047         * lib/safe-read.c: Likewise.
9048         * lib/safe-read.h: Likewise.
9049         * lib/safe-write.c: Likewise.
9050         * lib/safe-write.h: Likewise.
9051         * lib/same-inode.h: Likewise.
9052         * lib/same.c: Likewise.
9053         * lib/same.h: Likewise.
9054         * lib/save-cwd.c: Likewise.
9055         * lib/save-cwd.h: Likewise.
9056         * lib/savedir.c: Likewise.
9057         * lib/savedir.h: Likewise.
9058         * lib/savewd.c: Likewise.
9059         * lib/savewd.h: Likewise.
9060         * lib/search.in.h: Likewise.
9061         * lib/setenv.c: Likewise.
9062         * lib/setenv.h: Likewise.
9063         * lib/settime.c: Likewise.
9064         * lib/sh-quote.c: Likewise.
9065         * lib/sh-quote.h: Likewise.
9066         * lib/sig2str.c: Likewise.
9067         * lib/sig2str.h: Likewise.
9068         * lib/signal.in.h: Likewise.
9069         * lib/signbitd.c: Likewise.
9070         * lib/signbitf.c: Likewise.
9071         * lib/signbitl.c: Likewise.
9072         * lib/sigprocmask.c: Likewise.
9073         * lib/sincosl.c: Likewise.
9074         * lib/sleep.c: Likewise.
9075         * lib/sprintf.c: Likewise.
9076         * lib/sqrtl.c: Likewise.
9077         * lib/stat-time.h: Likewise.
9078         * lib/stdio--.h: Likewise.
9079         * lib/stdio-safer.h: Likewise.
9080         * lib/stdlib--.h: Likewise.
9081         * lib/stdlib-safer.h: Likewise.
9082         * lib/stdlib.in.h: Likewise.
9083         * lib/stpcpy.c: Likewise.
9084         * lib/stpncpy.c: Likewise.
9085         * lib/strchrnul.c: Likewise.
9086         * lib/strcspn.c: Likewise.
9087         * lib/strerror.c: Likewise.
9088         * lib/strftime.c: Likewise.
9089         * lib/strftime.h: Likewise.
9090         * lib/striconveh.c: Likewise.
9091         * lib/striconveh.h: Likewise.
9092         * lib/striconveha.c: Likewise.
9093         * lib/striconveha.h: Likewise.
9094         * lib/stripslash.c: Likewise.
9095         * lib/strnlen1.c: Likewise.
9096         * lib/strnlen1.h: Likewise.
9097         * lib/strtod.c: Likewise.
9098         * lib/strtoimax.c: Likewise.
9099         * lib/strtok_r.c: Likewise.
9100         * lib/strtol.c: Likewise.
9101         * lib/strtoll.c: Likewise.
9102         * lib/strtoul.c: Likewise.
9103         * lib/strtoull.c: Likewise.
9104         * lib/sysexits.in.h: Likewise.
9105         * lib/tempname.c: Likewise.
9106         * lib/tempname.h: Likewise.
9107         * lib/timespec.h: Likewise.
9108         * lib/tls.c: Likewise.
9109         * lib/tls.h: Likewise.
9110         * lib/tmpdir.c: Likewise.
9111         * lib/tmpdir.h: Likewise.
9112         * lib/tmpfile-safer.c: Likewise.
9113         * lib/tmpfile.c: Likewise.
9114         * lib/trigl.c: Likewise.
9115         * lib/trigl.h: Likewise.
9116         * lib/trim.c: Likewise.
9117         * lib/trim.h: Likewise.
9118         * lib/trunc.c: Likewise.
9119         * lib/truncf.c: Likewise.
9120         * lib/truncl.c: Likewise.
9121         * lib/tsearch.c: Likewise.
9122         * lib/unicodeio.c: Likewise.
9123         * lib/unicodeio.h: Likewise.
9124         * lib/unistd--.h: Likewise.
9125         * lib/unistd-safer.h: Likewise.
9126         * lib/unistdio/ulc-fprintf.c: Likewise.
9127         * lib/unistdio/ulc-vfprintf.c: Likewise.
9128         * lib/unlinkdir.c: Likewise.
9129         * lib/unlinkdir.h: Likewise.
9130         * lib/unlocked-io.h: Likewise.
9131         * lib/unsetenv.c: Likewise.
9132         * lib/userspec.c: Likewise.
9133         * lib/utime.c: Likewise.
9134         * lib/utimecmp.c: Likewise.
9135         * lib/utimecmp.h: Likewise.
9136         * lib/utimens.c: Likewise.
9137         * lib/verify.h: Likewise.
9138         * lib/verror.c: Likewise.
9139         * lib/verror.h: Likewise.
9140         * lib/version-etc-fsf.c: Likewise.
9141         * lib/version-etc.c: Likewise.
9142         * lib/version-etc.h: Likewise.
9143         * lib/vfprintf.c: Likewise.
9144         * lib/vprintf.c: Likewise.
9145         * lib/vsprintf.c: Likewise.
9146         * lib/w32spawn.h: Likewise.
9147         * lib/wait-process.c: Likewise.
9148         * lib/wait-process.h: Likewise.
9149         * lib/wcwidth.c: Likewise.
9150         * lib/write-any-file.c: Likewise.
9151         * lib/xalloc-die.c: Likewise.
9152         * lib/xalloc.h: Likewise.
9153         * lib/xasprintf.c: Likewise.
9154         * lib/xgetcwd.c: Likewise.
9155         * lib/xgetcwd.h: Likewise.
9156         * lib/xgetdomainname.c: Likewise.
9157         * lib/xgetdomainname.h: Likewise.
9158         * lib/xgethostname.c: Likewise.
9159         * lib/xmalloc.c: Likewise.
9160         * lib/xmalloca.c: Likewise.
9161         * lib/xmalloca.h: Likewise.
9162         * lib/xmemcoll.c: Likewise.
9163         * lib/xnanosleep.c: Likewise.
9164         * lib/xreadlink.c: Likewise.
9165         * lib/xreadlink.h: Likewise.
9166         * lib/xsetenv.c: Likewise.
9167         * lib/xsetenv.h: Likewise.
9168         * lib/xstriconv.c: Likewise.
9169         * lib/xstriconv.h: Likewise.
9170         * lib/xstrndup.c: Likewise.
9171         * lib/xstrndup.h: Likewise.
9172         * lib/xstrtod.c: Likewise.
9173         * lib/xstrtod.h: Likewise.
9174         * lib/xstrtol-error.c: Likewise.
9175         * lib/xstrtol.c: Likewise.
9176         * lib/xstrtol.h: Likewise.
9177         * lib/xtime.h: Likewise.
9178         * lib/xvasprintf.c: Likewise.
9179         * lib/xvasprintf.h: Likewise.
9180         * lib/yesno.c: Likewise.
9181         * lib/yesno.h: Likewise.
9182         * posix-modules: Likewise.
9183         * tests/test-alloca-opt.c: Likewise.
9184         * tests/test-arcfour.c: Likewise.
9185         * tests/test-arctwo.c: Likewise.
9186         * tests/test-argmatch.c: Likewise.
9187         * tests/test-argp-2.sh: Likewise.
9188         * tests/test-argp.c: Likewise.
9189         * tests/test-arpa_inet.c: Likewise.
9190         * tests/test-array_list.c: Likewise.
9191         * tests/test-array_oset.c: Likewise.
9192         * tests/test-atexit.c: Likewise.
9193         * tests/test-avltree_list.c: Likewise.
9194         * tests/test-avltree_oset.c: Likewise.
9195         * tests/test-avltreehash_list.c: Likewise.
9196         * tests/test-base64.c: Likewise.
9197         * tests/test-binary-io.c: Likewise.
9198         * tests/test-byteswap.c: Likewise.
9199         * tests/test-c-ctype.c: Likewise.
9200         * tests/test-c-strcasecmp.c: Likewise.
9201         * tests/test-c-strcasestr.c: Likewise.
9202         * tests/test-c-strncasecmp.c: Likewise.
9203         * tests/test-c-strstr.c: Likewise.
9204         * tests/test-canonicalize-lgpl.c: Likewise.
9205         * tests/test-canonicalize.c: Likewise.
9206         * tests/test-carray_list.c: Likewise.
9207         * tests/test-ceilf.c: Likewise.
9208         * tests/test-ceill.c: Likewise.
9209         * tests/test-count-one-bits.c: Likewise.
9210         * tests/test-crc.c: Likewise.
9211         * tests/test-dirname.c: Likewise.
9212         * tests/test-fbufmode.c: Likewise.
9213         * tests/test-fcntl.c: Likewise.
9214         * tests/test-fflush.c: Likewise.
9215         * tests/test-floorf.c: Likewise.
9216         * tests/test-floorl.c: Likewise.
9217         * tests/test-fopen.c: Likewise.
9218         * tests/test-fprintf-posix.c: Likewise.
9219         * tests/test-fprintf-posix.h: Likewise.
9220         * tests/test-fpurge.c: Likewise.
9221         * tests/test-freadable.c: Likewise.
9222         * tests/test-freadahead.c: Likewise.
9223         * tests/test-freading.c: Likewise.
9224         * tests/test-freopen.c: Likewise.
9225         * tests/test-frexp.c: Likewise.
9226         * tests/test-frexpl.c: Likewise.
9227         * tests/test-fseek.c: Likewise.
9228         * tests/test-fseeko.c: Likewise.
9229         * tests/test-fseterr.c: Likewise.
9230         * tests/test-fstrcmp.c: Likewise.
9231         * tests/test-ftell.c: Likewise.
9232         * tests/test-ftello.c: Likewise.
9233         * tests/test-fwritable.c: Likewise.
9234         * tests/test-fwriting.c: Likewise.
9235         * tests/test-getaddrinfo.c: Likewise.
9236         * tests/test-getpass.c: Likewise.
9237         * tests/test-gettimeofday.c: Likewise.
9238         * tests/test-hmac-md5.c: Likewise.
9239         * tests/test-hmac-sha1.c: Likewise.
9240         * tests/test-iconv.c: Likewise.
9241         * tests/test-iconvme.c: Likewise.
9242         * tests/test-inttypes.c: Likewise.
9243         * tests/test-isnan.c: Likewise.
9244         * tests/test-isnanf.c: Likewise.
9245         * tests/test-isnanl-nolibm.c: Likewise.
9246         * tests/test-isnanl.c: Likewise.
9247         * tests/test-isnanl.h: Likewise.
9248         * tests/test-ldexpl.c: Likewise.
9249         * tests/test-linked_list.c: Likewise.
9250         * tests/test-linkedhash_list.c: Likewise.
9251         * tests/test-locale.c: Likewise.
9252         * tests/test-localename.c: Likewise.
9253         * tests/test-lock.c: Likewise.
9254         * tests/test-lseek.c: Likewise.
9255         * tests/test-malloca.c: Likewise.
9256         * tests/test-math.c: Likewise.
9257         * tests/test-mbscasecmp.c: Likewise.
9258         * tests/test-mbscasestr1.c: Likewise.
9259         * tests/test-mbscasestr2.c: Likewise.
9260         * tests/test-mbscasestr3.c: Likewise.
9261         * tests/test-mbscasestr4.c: Likewise.
9262         * tests/test-mbschr.c: Likewise.
9263         * tests/test-mbscspn.c: Likewise.
9264         * tests/test-mbsncasecmp.c: Likewise.
9265         * tests/test-mbspbrk.c: Likewise.
9266         * tests/test-mbspcasecmp.c: Likewise.
9267         * tests/test-mbsrchr.c: Likewise.
9268         * tests/test-mbsspn.c: Likewise.
9269         * tests/test-mbsstr1.c: Likewise.
9270         * tests/test-mbsstr2.c: Likewise.
9271         * tests/test-mbsstr3.c: Likewise.
9272         * tests/test-md5.c: Likewise.
9273         * tests/test-memmem.c: Likewise.
9274         * tests/test-netinet_in.c: Likewise.
9275         * tests/test-open.c: Likewise.
9276         * tests/test-printf-frexp.c: Likewise.
9277         * tests/test-printf-frexpl.c: Likewise.
9278         * tests/test-printf-posix.c: Likewise.
9279         * tests/test-printf-posix.h: Likewise.
9280         * tests/test-rbtree_list.c: Likewise.
9281         * tests/test-rbtree_oset.c: Likewise.
9282         * tests/test-rbtreehash_list.c: Likewise.
9283         * tests/test-read-file.c: Likewise.
9284         * tests/test-rijndael.c: Likewise.
9285         * tests/test-search.c: Likewise.
9286         * tests/test-signbit.c: Likewise.
9287         * tests/test-sleep.c: Likewise.
9288         * tests/test-snprintf-posix.c: Likewise.
9289         * tests/test-snprintf-posix.h: Likewise.
9290         * tests/test-snprintf.c: Likewise.
9291         * tests/test-sprintf-posix.c: Likewise.
9292         * tests/test-sprintf-posix.h: Likewise.
9293         * tests/test-stat-time.c: Likewise.
9294         * tests/test-stdbool.c: Likewise.
9295         * tests/test-stdint.c: Likewise.
9296         * tests/test-stdio.c: Likewise.
9297         * tests/test-stdlib.c: Likewise.
9298         * tests/test-stpncpy.c: Likewise.
9299         * tests/test-strcasestr.c: Likewise.
9300         * tests/test-striconv.c: Likewise.
9301         * tests/test-striconveh.c: Likewise.
9302         * tests/test-striconveha.c: Likewise.
9303         * tests/test-string.c: Likewise.
9304         * tests/test-sys_select.c: Likewise.
9305         * tests/test-sys_socket.c: Likewise.
9306         * tests/test-sys_stat.c: Likewise.
9307         * tests/test-sys_time.c: Likewise.
9308         * tests/test-sysexits.c: Likewise.
9309         * tests/test-time.c: Likewise.
9310         * tests/test-tls.c: Likewise.
9311         * tests/test-trunc.c: Likewise.
9312         * tests/test-truncf.c: Likewise.
9313         * tests/test-truncl.c: Likewise.
9314         * tests/test-unistd.c: Likewise.
9315         * tests/test-vasnprintf-posix.c: Likewise.
9316         * tests/test-vasnprintf-posix2.c: Likewise.
9317         * tests/test-vasnprintf.c: Likewise.
9318         * tests/test-vasprintf-posix.c: Likewise.
9319         * tests/test-vasprintf.c: Likewise.
9320         * tests/test-verify.c: Likewise.
9321         * tests/test-vfprintf-posix.c: Likewise.
9322         * tests/test-vprintf-posix.c: Likewise.
9323         * tests/test-vsnprintf-posix.c: Likewise.
9324         * tests/test-vsnprintf.c: Likewise.
9325         * tests/test-vsprintf-posix.c: Likewise.
9326         * tests/test-wchar.c: Likewise.
9327         * tests/test-wctype.c: Likewise.
9328         * tests/test-wcwidth.c: Likewise.
9329         * tests/test-xstrtol.c: Likewise.
9330         * tests/test-xvasprintf.c: Likewise.
9331         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9332         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9333         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9334         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9335         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9336         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9337         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9338         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9339         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9340         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9341         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9342         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9343         * tests/uniname/test-uninames.c: Likewise.
9344         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9345         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9346         * tests/unistdio/test-u16-printf1.h: Likewise.
9347         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9348         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9349         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9350         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9351         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9352         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9353         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9354         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9355         * tests/unistdio/test-u32-printf1.h: Likewise.
9356         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9357         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9358         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9359         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9360         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9361         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9362         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9363         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9364         * tests/unistdio/test-u8-printf1.h: Likewise.
9365         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9366         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9367         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9368         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9369         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9370         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9371         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9372         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9373         * tests/unistdio/test-ulc-printf1.h: Likewise.
9374         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9375         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9376         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9377         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9378         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9379         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9380         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9381         * tests/uniwidth/test-u16-width.c: Likewise.
9382         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9383         * tests/uniwidth/test-u32-width.c: Likewise.
9384         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9385         * tests/uniwidth/test-u8-width.c: Likewise.
9386         * tests/uniwidth/test-uc_width.c: Likewise.
9387         * config/srclist-update: Likewise.
9388         (fixlicense): Update to GPLv3+.
9389
9390         Change copyright notice from LGPLv2.1+ to LGPLv3+.
9391         * tests/test-tsearch.c: Change copyright notice.
9392
9393         Change copyright notice from LGPLv2.0+ to LGPLv3+.
9394         * lib/c-strcaseeq.h: Change copyright notice.
9395         * lib/streq.h: Likewise.
9396         * lib/uniconv.h: Likewise.
9397         * lib/uniconv/u-conv-from-enc.h: Likewise.
9398         * lib/uniconv/u-conv-to-enc.h: Likewise.
9399         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9400         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9401         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9402         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9403         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9404         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9405         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9406         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9407         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9408         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9409         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9410         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9411         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9412         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9413         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9414         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9415         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9416         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
9417         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
9418         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
9419         * lib/uniname.h: Likewise.
9420         * lib/uniname/uniname.c: Likewise.
9421         * lib/unistdio.h: Likewise.
9422         * lib/unistdio/u-asnprintf.h: Likewise.
9423         * lib/unistdio/u-asprintf.h: Likewise.
9424         * lib/unistdio/u-printf-args.c: Likewise.
9425         * lib/unistdio/u-printf-args.h: Likewise.
9426         * lib/unistdio/u-printf-parse.h: Likewise.
9427         * lib/unistdio/u-snprintf.h: Likewise.
9428         * lib/unistdio/u-sprintf.h: Likewise.
9429         * lib/unistdio/u-vasprintf.h: Likewise.
9430         * lib/unistdio/u-vsnprintf.h: Likewise.
9431         * lib/unistdio/u-vsprintf.h: Likewise.
9432         * lib/unistdio/u16-asnprintf.c: Likewise.
9433         * lib/unistdio/u16-asprintf.c: Likewise.
9434         * lib/unistdio/u16-printf-parse.c: Likewise.
9435         * lib/unistdio/u16-snprintf.c: Likewise.
9436         * lib/unistdio/u16-sprintf.c: Likewise.
9437         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
9438         * lib/unistdio/u16-u16-asprintf.c: Likewise.
9439         * lib/unistdio/u16-u16-snprintf.c: Likewise.
9440         * lib/unistdio/u16-u16-sprintf.c: Likewise.
9441         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
9442         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
9443         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
9444         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
9445         * lib/unistdio/u16-vasnprintf.c: Likewise.
9446         * lib/unistdio/u16-vasprintf.c: Likewise.
9447         * lib/unistdio/u16-vsnprintf.c: Likewise.
9448         * lib/unistdio/u16-vsprintf.c: Likewise.
9449         * lib/unistdio/u32-asnprintf.c: Likewise.
9450         * lib/unistdio/u32-asprintf.c: Likewise.
9451         * lib/unistdio/u32-printf-parse.c: Likewise.
9452         * lib/unistdio/u32-snprintf.c: Likewise.
9453         * lib/unistdio/u32-sprintf.c: Likewise.
9454         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
9455         * lib/unistdio/u32-u32-asprintf.c: Likewise.
9456         * lib/unistdio/u32-u32-snprintf.c: Likewise.
9457         * lib/unistdio/u32-u32-sprintf.c: Likewise.
9458         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
9459         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
9460         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
9461         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
9462         * lib/unistdio/u32-vasnprintf.c: Likewise.
9463         * lib/unistdio/u32-vasprintf.c: Likewise.
9464         * lib/unistdio/u32-vsnprintf.c: Likewise.
9465         * lib/unistdio/u32-vsprintf.c: Likewise.
9466         * lib/unistdio/u8-asnprintf.c: Likewise.
9467         * lib/unistdio/u8-asprintf.c: Likewise.
9468         * lib/unistdio/u8-printf-parse.c: Likewise.
9469         * lib/unistdio/u8-snprintf.c: Likewise.
9470         * lib/unistdio/u8-sprintf.c: Likewise.
9471         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
9472         * lib/unistdio/u8-u8-asprintf.c: Likewise.
9473         * lib/unistdio/u8-u8-snprintf.c: Likewise.
9474         * lib/unistdio/u8-u8-sprintf.c: Likewise.
9475         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
9476         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
9477         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
9478         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
9479         * lib/unistdio/u8-vasnprintf.c: Likewise.
9480         * lib/unistdio/u8-vasprintf.c: Likewise.
9481         * lib/unistdio/u8-vsnprintf.c: Likewise.
9482         * lib/unistdio/u8-vsprintf.c: Likewise.
9483         * lib/unistdio/ulc-asnprintf.c: Likewise.
9484         * lib/unistdio/ulc-asprintf.c: Likewise.
9485         * lib/unistdio/ulc-printf-parse.c: Likewise.
9486         * lib/unistdio/ulc-snprintf.c: Likewise.
9487         * lib/unistdio/ulc-sprintf.c: Likewise.
9488         * lib/unistdio/ulc-vasnprintf.c: Likewise.
9489         * lib/unistdio/ulc-vasprintf.c: Likewise.
9490         * lib/unistdio/ulc-vsnprintf.c: Likewise.
9491         * lib/unistdio/ulc-vsprintf.c: Likewise.
9492         * lib/unistr.h: Likewise.
9493         * lib/unistr/u-cpy-alloc.h: Likewise.
9494         * lib/unistr/u-cpy.h: Likewise.
9495         * lib/unistr/u-endswith.h: Likewise.
9496         * lib/unistr/u-move.h: Likewise.
9497         * lib/unistr/u-set.h: Likewise.
9498         * lib/unistr/u-startswith.h: Likewise.
9499         * lib/unistr/u-stpcpy.h: Likewise.
9500         * lib/unistr/u-stpncpy.h: Likewise.
9501         * lib/unistr/u-strcat.h: Likewise.
9502         * lib/unistr/u-strcpy.h: Likewise.
9503         * lib/unistr/u-strcspn.h: Likewise.
9504         * lib/unistr/u-strdup.h: Likewise.
9505         * lib/unistr/u-strlen.h: Likewise.
9506         * lib/unistr/u-strncat.h: Likewise.
9507         * lib/unistr/u-strncpy.h: Likewise.
9508         * lib/unistr/u-strnlen.h: Likewise.
9509         * lib/unistr/u-strpbrk.h: Likewise.
9510         * lib/unistr/u-strspn.h: Likewise.
9511         * lib/unistr/u-strstr.h: Likewise.
9512         * lib/unistr/u-strtok.h: Likewise.
9513         * lib/unistr/u16-check.c: Likewise.
9514         * lib/unistr/u16-chr.c: Likewise.
9515         * lib/unistr/u16-cmp.c: Likewise.
9516         * lib/unistr/u16-cpy-alloc.c: Likewise.
9517         * lib/unistr/u16-cpy.c: Likewise.
9518         * lib/unistr/u16-endswith.c: Likewise.
9519         * lib/unistr/u16-mblen.c: Likewise.
9520         * lib/unistr/u16-mbsnlen.c: Likewise.
9521         * lib/unistr/u16-mbtouc-aux.c: Likewise.
9522         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9523         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9524         * lib/unistr/u16-mbtouc.c: Likewise.
9525         * lib/unistr/u16-mbtoucr.c: Likewise.
9526         * lib/unistr/u16-move.c: Likewise.
9527         * lib/unistr/u16-next.c: Likewise.
9528         * lib/unistr/u16-prev.c: Likewise.
9529         * lib/unistr/u16-set.c: Likewise.
9530         * lib/unistr/u16-startswith.c: Likewise.
9531         * lib/unistr/u16-stpcpy.c: Likewise.
9532         * lib/unistr/u16-stpncpy.c: Likewise.
9533         * lib/unistr/u16-strcat.c: Likewise.
9534         * lib/unistr/u16-strchr.c: Likewise.
9535         * lib/unistr/u16-strcmp.c: Likewise.
9536         * lib/unistr/u16-strcpy.c: Likewise.
9537         * lib/unistr/u16-strcspn.c: Likewise.
9538         * lib/unistr/u16-strdup.c: Likewise.
9539         * lib/unistr/u16-strlen.c: Likewise.
9540         * lib/unistr/u16-strmblen.c: Likewise.
9541         * lib/unistr/u16-strmbtouc.c: Likewise.
9542         * lib/unistr/u16-strncat.c: Likewise.
9543         * lib/unistr/u16-strncmp.c: Likewise.
9544         * lib/unistr/u16-strncpy.c: Likewise.
9545         * lib/unistr/u16-strnlen.c: Likewise.
9546         * lib/unistr/u16-strpbrk.c: Likewise.
9547         * lib/unistr/u16-strrchr.c: Likewise.
9548         * lib/unistr/u16-strspn.c: Likewise.
9549         * lib/unistr/u16-strstr.c: Likewise.
9550         * lib/unistr/u16-strtok.c: Likewise.
9551         * lib/unistr/u16-to-u32.c: Likewise.
9552         * lib/unistr/u16-to-u8.c: Likewise.
9553         * lib/unistr/u16-uctomb-aux.c: Likewise.
9554         * lib/unistr/u16-uctomb.c: Likewise.
9555         * lib/unistr/u32-check.c: Likewise.
9556         * lib/unistr/u32-chr.c: Likewise.
9557         * lib/unistr/u32-cmp.c: Likewise.
9558         * lib/unistr/u32-cpy-alloc.c: Likewise.
9559         * lib/unistr/u32-cpy.c: Likewise.
9560         * lib/unistr/u32-endswith.c: Likewise.
9561         * lib/unistr/u32-mblen.c: Likewise.
9562         * lib/unistr/u32-mbsnlen.c: Likewise.
9563         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9564         * lib/unistr/u32-mbtouc.c: Likewise.
9565         * lib/unistr/u32-mbtoucr.c: Likewise.
9566         * lib/unistr/u32-move.c: Likewise.
9567         * lib/unistr/u32-next.c: Likewise.
9568         * lib/unistr/u32-prev.c: Likewise.
9569         * lib/unistr/u32-set.c: Likewise.
9570         * lib/unistr/u32-startswith.c: Likewise.
9571         * lib/unistr/u32-stpcpy.c: Likewise.
9572         * lib/unistr/u32-stpncpy.c: Likewise.
9573         * lib/unistr/u32-strcat.c: Likewise.
9574         * lib/unistr/u32-strchr.c: Likewise.
9575         * lib/unistr/u32-strcmp.c: Likewise.
9576         * lib/unistr/u32-strcpy.c: Likewise.
9577         * lib/unistr/u32-strcspn.c: Likewise.
9578         * lib/unistr/u32-strdup.c: Likewise.
9579         * lib/unistr/u32-strlen.c: Likewise.
9580         * lib/unistr/u32-strmblen.c: Likewise.
9581         * lib/unistr/u32-strmbtouc.c: Likewise.
9582         * lib/unistr/u32-strncat.c: Likewise.
9583         * lib/unistr/u32-strncmp.c: Likewise.
9584         * lib/unistr/u32-strncpy.c: Likewise.
9585         * lib/unistr/u32-strnlen.c: Likewise.
9586         * lib/unistr/u32-strpbrk.c: Likewise.
9587         * lib/unistr/u32-strrchr.c: Likewise.
9588         * lib/unistr/u32-strspn.c: Likewise.
9589         * lib/unistr/u32-strstr.c: Likewise.
9590         * lib/unistr/u32-strtok.c: Likewise.
9591         * lib/unistr/u32-to-u16.c: Likewise.
9592         * lib/unistr/u32-to-u8.c: Likewise.
9593         * lib/unistr/u32-uctomb.c: Likewise.
9594         * lib/unistr/u8-check.c: Likewise.
9595         * lib/unistr/u8-chr.c: Likewise.
9596         * lib/unistr/u8-cmp.c: Likewise.
9597         * lib/unistr/u8-cpy-alloc.c: Likewise.
9598         * lib/unistr/u8-cpy.c: Likewise.
9599         * lib/unistr/u8-endswith.c: Likewise.
9600         * lib/unistr/u8-mblen.c: Likewise.
9601         * lib/unistr/u8-mbsnlen.c: Likewise.
9602         * lib/unistr/u8-mbtouc-aux.c: Likewise.
9603         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9604         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9605         * lib/unistr/u8-mbtouc.c: Likewise.
9606         * lib/unistr/u8-mbtoucr.c: Likewise.
9607         * lib/unistr/u8-move.c: Likewise.
9608         * lib/unistr/u8-next.c: Likewise.
9609         * lib/unistr/u8-prev.c: Likewise.
9610         * lib/unistr/u8-set.c: Likewise.
9611         * lib/unistr/u8-startswith.c: Likewise.
9612         * lib/unistr/u8-stpcpy.c: Likewise.
9613         * lib/unistr/u8-stpncpy.c: Likewise.
9614         * lib/unistr/u8-strcat.c: Likewise.
9615         * lib/unistr/u8-strchr.c: Likewise.
9616         * lib/unistr/u8-strcmp.c: Likewise.
9617         * lib/unistr/u8-strcpy.c: Likewise.
9618         * lib/unistr/u8-strcspn.c: Likewise.
9619         * lib/unistr/u8-strdup.c: Likewise.
9620         * lib/unistr/u8-strlen.c: Likewise.
9621         * lib/unistr/u8-strmblen.c: Likewise.
9622         * lib/unistr/u8-strmbtouc.c: Likewise.
9623         * lib/unistr/u8-strncat.c: Likewise.
9624         * lib/unistr/u8-strncmp.c: Likewise.
9625         * lib/unistr/u8-strncpy.c: Likewise.
9626         * lib/unistr/u8-strnlen.c: Likewise.
9627         * lib/unistr/u8-strpbrk.c: Likewise.
9628         * lib/unistr/u8-strrchr.c: Likewise.
9629         * lib/unistr/u8-strspn.c: Likewise.
9630         * lib/unistr/u8-strstr.c: Likewise.
9631         * lib/unistr/u8-strtok.c: Likewise.
9632         * lib/unistr/u8-to-u16.c: Likewise.
9633         * lib/unistr/u8-to-u32.c: Likewise.
9634         * lib/unistr/u8-uctomb-aux.c: Likewise.
9635         * lib/unistr/u8-uctomb.c: Likewise.
9636         * lib/unitypes.h: Likewise.
9637         * lib/uniwidth.h: Likewise.
9638         * lib/uniwidth/cjk.h: Likewise.
9639         * lib/uniwidth/u16-strwidth.c: Likewise.
9640         * lib/uniwidth/u16-width.c: Likewise.
9641         * lib/uniwidth/u32-strwidth.c: Likewise.
9642         * lib/uniwidth/u32-width.c: Likewise.
9643         * lib/uniwidth/u8-strwidth.c: Likewise.
9644         * lib/uniwidth/u8-width.c: Likewise.
9645         * lib/uniwidth/width.c: Likewise.
9646
9647 2007-10-07  Bruno Haible  <bruno@clisp.org>
9648
9649         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
9650         The file is still under LGPL (see modules/inttypes).
9651
9652 2007-10-06  Bruno Haible  <bruno@clisp.org>
9653
9654         * modules/trunc (Dependencies): Add 'extensions'.
9655         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
9656         Reported by Ben Pfaff <blp@gnu.org>.
9657
9658 2007-10-06  Bruno Haible  <bruno@clisp.org>
9659
9660         * modules/freopen-tests: New file.
9661         * tests/test-freopen.c: New file.
9662
9663         * modules/fopen-tests: New file.
9664         * tests/test-fopen.c: New file.
9665
9666         * modules/fopen: New file.
9667         * lib/fopen.c: New file.
9668         * m4/fopen.m4: New file.
9669         * modules/freopen: New file.
9670         * lib/freopen.c: New file.
9671         * m4/freopen.m4: New file.
9672         * lib/stdio.in.h (fopen, freopen): New declarations.
9673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
9674         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9675         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
9676         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9677         * doc/functions/fopen.texi: Mention the 'fopen' module.
9678         * doc/functions/freopen.texi: Mention the 'freopen' module.
9679
9680 2007-10-06  Bruno Haible  <bruno@clisp.org>
9681
9682         * modules/open-tests: New file.
9683         * tests/test-open.c: New file.
9684
9685         * modules/open: New file.
9686         * lib/open.c: New file.
9687         * m4/open.m4: New file.
9688         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
9689         lib/open.c does.
9690         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9691         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9692         macros.
9693         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9694         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9695         REPLACE_OPEN.
9696         * doc/functions/open.texi: Mention the 'open' module.
9697
9698 2007-10-04  Bruno Haible  <bruno@clisp.org>
9699
9700         * modules/ceill-tests: New file.
9701         * tests/test-ceill.c: New file.
9702
9703         * modules/ceill: New file.
9704         * lib/ceill.c: Replace entire file.
9705         * m4/ceill.m4: New file.
9706         * lib/math.in.h (ceill): Replace declaration.
9707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
9708         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
9709         * doc/functions/ceill.texi: Mention the 'ceill' module.
9710         * modules/mathl (Files): Remove lib/ceill.c.
9711         (Depends-on): Add ceill.
9712
9713 2007-10-04  Bruno Haible  <bruno@clisp.org>
9714
9715         * modules/ceilf-tests: New file.
9716         * tests/test-ceilf.c: New file.
9717
9718         * modules/ceilf: New file.
9719         * lib/ceil.c: New file.
9720         * lib/ceilf.c: New file.
9721         * m4/ceilf.m4: New file.
9722         * lib/math.in.h (ceilf): New declaration.
9723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
9724         HAVE_DECL_CEILF.
9725         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
9726         HAVE_DECL_CEILF.
9727         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
9728
9729 2007-10-04  Bruno Haible  <bruno@clisp.org>
9730
9731         * modules/floorl-tests: New file.
9732         * tests/test-floorl.c: New file.
9733
9734         * modules/floorl: New file.
9735         * lib/floorl.c: Replace entire file.
9736         * m4/floorl.m4: New file.
9737         * lib/math.in.h (floorl): Replace declaration.
9738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
9739         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
9740         * doc/functions/floorl.texi: Mention the 'floorl' module.
9741         * modules/mathl (Files): Remove lib/floorl.c.
9742         (Depends-on): Add floorl.
9743
9744 2007-10-04  Bruno Haible  <bruno@clisp.org>
9745
9746         * modules/floorf-tests: New file.
9747         * tests/test-floorf.c: New file.
9748
9749         * modules/floorf: New file.
9750         * lib/floor.c: New file.
9751         * lib/floorf.c: New file.
9752         * m4/floorf.m4: New file.
9753         * lib/math.in.h (floorf): New declaration.
9754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
9755         HAVE_DECL_FLOORF.
9756         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
9757         HAVE_DECL_FLOORF.
9758         * doc/functions/floorf.texi: Mention the 'floorf' module.
9759
9760 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
9761             Bruno Haible  <bruno@clisp.org>
9762
9763         Advertise for the Git server instead of the CVS server.
9764         * doc/gnulib-intro.texi (Steady Development): Mention the Git
9765         repository instead of the CVS one.
9766         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
9767         about all VCS systems generically.
9768         * doc/gnulib.texi (Introduction): Capitalize `Git'.
9769
9770 2007-10-04  Bruno Haible  <bruno@clisp.org>
9771
9772         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
9773         means.
9774         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
9775
9776 2007-10-04  Bruno Haible  <bruno@clisp.org>
9777
9778         * modules/truncl-tests: New file.
9779         * tests/test-truncl.c: New file.
9780
9781         * modules/truncl: New file.
9782         * lib/truncl.c: New file.
9783         * m4/truncl.m4: New file.
9784         * lib/math.in.h (truncl): New declaration.
9785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
9786         HAVE_DECL_TRUNCL.
9787         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
9788         HAVE_DECL_TRUNCL.
9789         * doc/functions/truncl.texi: Mention the 'truncl' module.
9790
9791 2007-10-04  Bruno Haible  <bruno@clisp.org>
9792
9793         * modules/truncf-tests: New file.
9794         * tests/test-truncf.c: New file.
9795
9796         * modules/truncf: New file.
9797         * lib/trunc.c: Make paramerizable through USE_* macros.
9798         * lib/truncf.c: New file.
9799         * m4/truncf.m4: New file.
9800         * lib/math.in.h (truncf): New declaration.
9801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
9802         HAVE_DECL_TRUNCF.
9803         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
9804         HAVE_DECL_TRUNCF.
9805         * doc/functions/truncf.texi: Mention the 'truncf' module.
9806
9807 2007-10-03  Bruno Haible  <bruno@clisp.org>
9808
9809         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
9810         augmentation also for tests modules.
9811         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
9812         * modules/atexit-tests (Makefile.am): Likewise.
9813         * modules/binary-io-tests (Makefile.am): Likewise.
9814         * modules/c-strcase-tests (Makefile.am): Likewise.
9815         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
9816         * modules/canonicalize-tests (Makefile.am): Likewise.
9817         * modules/closein-tests (Makefile.am): Likewise.
9818         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9819         * modules/freadahead-tests (Makefile.am): Likewise.
9820         * modules/fseek-tests (Makefile.am): Likewise.
9821         * modules/fseeko-tests (Makefile.am): Likewise.
9822         * modules/ftell-tests (Makefile.am): Likewise.
9823         * modules/ftello-tests (Makefile.am): Likewise.
9824         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
9825         * modules/isnanl-tests (Makefile.am): Likewise.
9826         * modules/lseek-tests (Makefile.am): Likewise.
9827         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9828         * modules/mbscasestr-tests (Makefile.am): Likewise.
9829         * modules/mbschr-tests (Makefile.am): Likewise.
9830         * modules/mbscspn-tests (Makefile.am): Likewise.
9831         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9832         * modules/mbspbrk-tests (Makefile.am): Likewise.
9833         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9834         * modules/mbsrchr-tests (Makefile.am): Likewise.
9835         * modules/mbsspn-tests (Makefile.am): Likewise.
9836         * modules/mbsstr-tests (Makefile.am): Likewise.
9837         * modules/printf-posix-tests (Makefile.am): Likewise.
9838         * modules/snprintf-posix-tests (Makefile.am): Likewise.
9839         * modules/sprintf-posix-tests (Makefile.am): Likewise.
9840         * modules/tsearch-tests (Makefile.am): Likewise.
9841         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9842         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9843         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9844         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9845         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9846         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9847         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9848         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9849         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
9850         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
9851         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9852         * modules/xstrtol-tests (Makefile.am): Likewise.
9853         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9854         * modules/yesno-tests (Makefile.am): Likewise.
9855
9856 2007-10-03  Bruno Haible  <bruno@clisp.org>
9857
9858         * modules/trunc-tests: New file.
9859         * tests/test-trunc.c: New file.
9860
9861         * modules/trunc: New file.
9862         * lib/trunc.c: New file.
9863         * m4/trunc.m4: New file.
9864         * lib/math.in.h (trunc): New declaration.
9865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
9866         HAVE_DECL_TRUNC.
9867         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
9868         HAVE_DECL_TRUNC.
9869         * doc/functions/trunc.texi: Mention the 'trunc' module.
9870
9871 2007-10-03  Bruno Haible  <bruno@clisp.org>
9872
9873         * tests/test-fpending.c: New file, mostly copied
9874         from coreutils/lib/t-fpending.c.
9875         * modules/fpending-tests: New file.
9876
9877 2007-10-03  Bruno Haible  <bruno@clisp.org>
9878
9879         Port the stdio extensions to QNX (untested).
9880         * lib/fseterr.c (fseterr): Add support for QNX.
9881         * lib/fbufmode.c (fbufmode): Likewise.
9882         * lib/freadable.c (freadable): Likewise.
9883         * lib/fwritable.c (fwritable): Likewise.
9884         * lib/freading.c (freading): Likewise.
9885         * lib/fwriting.c (fwriting): Likewise.
9886         * lib/freadahead.c (freadahed): Likewise.
9887         * lib/fpurge.c (fpurge): Likewise.
9888         * lib/fseeko.c (rpl_fseeko): Likewise.
9889
9890 2007-10-03  Bruno Haible  <bruno@clisp.org>
9891             Jim Meyering  <jim@meyering.net>
9892             Eric Blake  <ebb9@byu.net>
9893
9894         * doc/relocatable.texi: Use @command instead of @program.
9895
9896 2007-10-02  Jim Meyering  <jim@meyering.net>
9897
9898         Perform one more "_.h" -> ".in.h" substitution.
9899         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
9900         instead of unistd_.h here, too.
9901
9902 2007-10-01  Bruno Haible  <bruno@clisp.org>
9903
9904         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
9905         Needed for the alloca-opt module.
9906
9907 2007-09-30  Bruno Haible  <bruno@clisp.org>
9908
9909         * lib/alloca.in.h: Renamed from lib/alloca_.h.
9910         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
9911         alloca_.h.
9912         * lib/argz.in.h: Renamed from lib/argz_.h.
9913         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
9914         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
9915         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
9916         byteswap_.h.
9917         * lib/dirent.in.h: Renamed from lib/dirent_.h.
9918         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
9919         dirent_.h.
9920         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
9921         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
9922         fcntl_.h.
9923         * lib/float.in.h: Renamed from lib/float_.h.
9924         * modules/float (Files, Makefile.am): Use float.in.h instead of
9925         float_.h.
9926         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
9927         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
9928         fnmatch_.h.
9929         * lib/getopt.in.h: Renamed from lib/getopt_.h.
9930         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
9931         getopt_.h.
9932         * lib/glob.in.h: Renamed from lib/glob_.h.
9933         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
9934         * lib/iconv.in.h: Renamed from lib/iconv_.h.
9935         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
9936         iconv_.h.
9937         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
9938         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
9939         inttypes_.h.
9940         * lib/locale.in.h: Renamed from lib/locale_.h.
9941         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
9942         locale_.h.
9943         * lib/math.in.h: Renamed from lib/math_.h.
9944         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
9945         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
9946         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
9947         of netinet_in_.h. Add dependency.
9948         * lib/poll.in.h: Renamed from lib/poll_.h.
9949         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
9950         * lib/search.in.h: Renamed from lib/search_.h.
9951         * modules/search (Files, Makefile.am): Use search.in.h instead of
9952         search_.h.
9953         * lib/signal.in.h: Renamed from lib/signal_.h.
9954         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
9955         _signal.h.
9956         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
9957         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
9958         stdbool_.h.
9959         * lib/stdint.in.h: Renamed from lib/stdint_.h.
9960         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
9961         stdint_.h.
9962         * lib/stdio.in.h: Renamed from lib/stdio_.h.
9963         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
9964         stdio_.h.
9965         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
9966         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
9967         stdlib_.h.
9968         * lib/string.in.h: Renamed from lib/string_.h.
9969         * modules/string (Files, Makefile.am): Use string.in.h instead of
9970         string_.h.
9971         * doc/gnulib-tool.texi (Initial import): Update.
9972         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
9973         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
9974         of sys_select_.h. Add dependency.
9975         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
9976         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
9977         of sys_socket_.h.
9978         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
9979         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
9980         sys_stat_.h.
9981         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
9982         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
9983         sys_time_.h.
9984         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
9985         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
9986         sysexits_.h.
9987         * lib/time.in.h: Renamed from lib/time_.h.
9988         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
9989         * lib/unistd.in.h: Renamed from lib/unistd_.h.
9990         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
9991         unistd_.h.
9992         * lib/wchar.in.h: Renamed from lib/wchar_.h.
9993         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
9994         wchar_.h.
9995         * lib/wctype.in.h: Renamed from lib/wctype_.h.
9996         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
9997         wctype_.h.
9998         * build-aux/bootstrap (slurp): Update.
9999         * lib/.cppi-disable: Update.
10000
10001 2007-09-30  Bruno Haible  <bruno@clisp.org>
10002
10003         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
10004         Needed on BeOS.
10005
10006 2007-09-30  Bruno Haible  <bruno@clisp.org>
10007
10008         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
10009
10010 2007-09-29  Bruno Haible  <bruno@clisp.org>
10011
10012         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
10013
10014 2007-09-29  Bruno Haible  <bruno@clisp.org>
10015
10016         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
10017         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
10018         * build-aux/install-reloc: Compile also areadlink.c.
10019         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
10020
10021 2007-09-29  Bruno Haible  <bruno@clisp.org>
10022
10023         * gnulib-tool (func_emit_initmacro_done): Indentation.
10024
10025 2007-09-29  Bruno Haible  <bruno@clisp.org>
10026
10027         * README: Add CVS checkout update instructions.
10028         Info from Bob Proulx <bob@proulx.com>.
10029
10030 2007-09-28  Eric Blake  <ebb9@byu.net>
10031
10032         Provide move-if-change.
10033         * build-aux/move-if-change: New file, based on best practice
10034         rather than any canonical upstream location.
10035
10036 2007-09-28  Jim Meyering  <jim@meyering.net>
10037
10038         Fix canonicalize loop-detection corner case.
10039         Do not attempt to stat the symlink values stored via seen_triple.
10040         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
10041         on linux-2.6.18, (but not 2.6.22).
10042         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
10043         triple_compare.  The former compares dev,ino,filename, while the latter
10044         would actually stat dirname(filename) when dev and ino were equal.
10045         * lib/hash-triple.c: Install <string.h>.
10046         (STREQ): Define.
10047         (triple_compare_ino_str): New function.
10048         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
10049
10050 2007-09-28  Eric Blake  <ebb9@byu.net>
10051
10052         Enforce that AC_REPLACE_FUNCS files exist.
10053         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
10054         override check for typos.
10055
10056         Fix test-closein on Solaris 10.
10057         * tests/test-closein.c (main): Don't assume stdin can be inherited
10058         closed on all systems.
10059         * tests/test-closein.sh: Likewise.
10060         Reported by Piotr Tarnowski.
10061
10062 2007-09-28  Jim Meyering  <jim@meyering.net>
10063
10064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
10065
10066 2007-09-27  Jim Meyering  <jim@meyering.net>
10067
10068         canonicalize: Avoid a false-positive cycle failure.
10069         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
10070         Sort.  Remove cycle-check.
10071         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
10072         not cycle-check.h.
10073         (seen_triple): New function.
10074         (canonicalize_filename_mode): Use it instead of cycle-check.
10075         * tests/test-canonicalize.c: Add a test for this bug.
10076         * tests/test-canonicalize.sh: Set up and run the test.
10077
10078         New module, file-set, from coreutils.
10079         * modules/file-set: Define it.
10080         * lib/file-set.c, lib/file-set.h: Implement.
10081
10082         New module, hash-triple, from coreutils.
10083         * modules/hash-triple: Define it.
10084         * lib/hash-triple.c, lib/hash-triple.h: Implement.
10085
10086 2007-09-25  Eric Blake  <ebb9@byu.net>
10087
10088         Fix strerror on Interix.
10089         * lib/string_.h (strerror): Declare replacement.
10090         * doc/functions/strerror.texi (strerror): Document the Interix
10091         shortcoming.
10092         * modules/string (Makefile.am): Support new hooks.
10093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
10094         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
10095         gl_FUNC_STRERROR_SEPARATE.
10096         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
10097         * lib/strerror.c (rpl_strerror): Provide replacement.
10098         * modules/strerror (Depends-on): Add string.
10099         (configure.ac): Detect use of module.
10100         * tests/test-strerror.c: New file.
10101         * modules/strerror-tests: New test module.
10102         * modules/argp (Depends-on): Add strerror.
10103         * modules/error (Depends-on): Likewise.
10104         Reported by Martin Koeppe.
10105
10106 2007-09-24  Bruno Haible  <bruno@clisp.org>
10107
10108         * README: Update git instructions.
10109
10110 2007-09-24  Eric Blake  <ebb9@byu.net>
10111
10112         Revert fpending breakage from 2007-09-08.
10113         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
10114         __fpending.c.
10115
10116 2007-09-24  Jim Meyering  <jim@meyering.net>
10117
10118         filenamecat.c: Add a test.
10119         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
10120         showing how the function works when DIR is the empty string.
10121
10122 2007-09-21  Simon Josefsson  <simon@josefsson.org>
10123
10124         * tests/test-canonicalize.sh: Turn on executable bit.
10125
10126 2007-09-19  Eric Blake  <ebb9@byu.net>
10127
10128         * README: Update CVS instructions.
10129
10130 2007-09-18  Bruno Haible  <bruno@clisp.org>
10131
10132         * modules/areadlink: New file.
10133         * lib/areadlink.h (areadlink): New declaration.
10134         * lib/areadlink.c: New file, based on lib/xreadlink.c.
10135
10136 2007-09-17  Jim Meyering  <jim@meyering.net>
10137
10138         * lib/savewd.c (ESTALE) [!defined]: Define.
10139         Reported to be required on Interix by Martin Koeppe.
10140
10141 2007-09-17  Bruno Haible  <bruno@clisp.org>
10142
10143         * gnulib-tool (func_version): Use $version.
10144
10145 2007-09-16  Bruno Haible  <bruno@clisp.org>
10146
10147         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
10148         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
10149         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
10150         Reported by Greg Schafer <gschafer@zip.com.au>.
10151
10152 2007-09-15  Bruno Haible  <bruno@clisp.org>
10153
10154         * gnulib-tool (sed): Try a little harder to make bash understand the
10155         alias.
10156         Reported by Bruce Korb <bruce.korb@gmail.com>.
10157
10158 2007-09-13  Eric Blake  <ebb9@byu.net>
10159
10160         * ChangeLog: Remove conflict markers.
10161
10162 2007-09-13  Simon Josefsson  <simon@josefsson.org>
10163
10164         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
10165         Reported by Bruno Haible <bruno@clisp.org>.
10166
10167 2007-09-12  Bruno Haible  <bruno@clisp.org>
10168
10169         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
10170         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
10171         is not defined.
10172
10173 2007-09-12  Eric Blake  <ebb9@byu.net>
10174
10175         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
10176         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
10177         Autoconf definition.
10178         * modules/euidaccess (Depends-on): Add extensions, for
10179         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
10180         * modules/fnmatch (Depends-on): Likewise.
10181         * modules/getaddrinfo (Depends-on): Likewise.
10182         * modules/getdelim (Depends-on): Likewise.
10183         * modules/getline (Depends-on): Likewise.
10184         * modules/getsubopt (Depends-on): Likewise.
10185         * modules/gettext (Depends-on): Likewise.
10186         * modules/group-member (Depends-on): Likewise.
10187         * modules/mbchar (Depends-on): Likewise.
10188         * modules/memmem (Depends-on): Likewise.
10189         * modules/mempcpy (Depends-on): Likewise.
10190         * modules/memrchr (Depends-on): Likewise.
10191         * modules/pagealign_alloc (Depends-on): Likewise.
10192         * modules/readutmp (Depends-on): Likewise.
10193         * modules/stpcpy (Depends-on): Likewise.
10194         * modules/stpncpy (Depends-on): Likewise.
10195         * modules/strchrnul (Depends-on): Likewise.
10196         * modules/strndup (Depends-on): Likewise.
10197         * modules/strsep (Depends-on): Likewise.
10198         * modules/strverscmp (Depends-on): Likewise.
10199         * modules/vasprintf (Depends-on): Likewise.
10200         * modules/wcwidth (Depends-on): Likewise.
10201         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
10202         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
10203         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
10204         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
10205         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10206         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10207         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
10208         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10209         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
10210         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10211         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10212         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10213         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10214         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10215         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
10216         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10217         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10218         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10219         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10220         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10221         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10222         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10223         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10224         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
10225         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
10226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10227         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
10228         so that lock.m4 can be used in gettext without extensions module.
10229
10230 2007-09-11  Bruno Haible  <bruno@clisp.org>
10231
10232         * m4/isc-posix.m4: Remove file.
10233         Suggested by Eric Blake.
10234
10235 2007-09-11  Eric Blake  <ebb9@byu.net>
10236
10237         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
10238
10239 2007-09-10  Bruno Haible  <bruno@clisp.org>
10240
10241         * posix-modules: Fix typo in error message.
10242         Reported by Matt <mkraai@beckman.com>.
10243
10244 2007-09-09  Bruno Haible  <bruno@clisp.org>
10245
10246         * doc/functions/getdelim.texi: Update list of platforms lacking the
10247         function.
10248         * doc/functions/getline.texi: Likewise.
10249
10250 2007-09-09  Jim Meyering  <jim@meyering.net>
10251
10252         * lib/hash.c (hash_initialize): Detect calloc failure.
10253         Reported by Bruno Haible.
10254
10255 2007-09-09  Bruno Haible  <bruno@clisp.org>
10256
10257         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
10258         malloc or realloc fails.
10259
10260 2007-09-09  Bruno Haible  <bruno@clisp.org>
10261
10262         * modules/getcwd (Depends-on): Add malloc-posix.
10263         * modules/glob (Depends-on): Likewise.
10264         * modules/putenv (Depends-on): Likewise.
10265         * modules/strdup (Depends-on): Likewise.
10266         * modules/getdelim (Depends-on): Add realloc-posix.
10267         * modules/read-file (Depends-on): Likewise.
10268
10269 2007-09-09  Bruno Haible  <bruno@clisp.org>
10270
10271         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
10272         (gl_FUNC_MALLOC_POSIX): Require it.
10273         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
10274         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
10275         * modules/realloc (Files): Add m4/malloc.m4.
10276         * modules/calloc (Files): Likewise.
10277
10278 2007-09-09  Bruno Haible  <bruno@clisp.org>
10279
10280         * modules/malloc-posix: New file.
10281         * modules/malloc (Depends-on): Add malloc-posix.
10282         * lib/malloc.c: Include errno.h.
10283         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10284         and a POSIX-compatible malloc into a single function. Set ENOMEM
10285         when returning NULL.
10286         * m4/malloc.m4: New file.
10287         * doc/functions/malloc.texi: Mention the malloc-posix module.
10288         * lib/stdlib_.h (malloc): New declaration.
10289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10290         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10291         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10292         and HAVE_MALLOC_POSIX.
10293
10294 2007-09-09  Bruno Haible  <bruno@clisp.org>
10295
10296         * modules/realloc-posix: New file.
10297         * modules/realloc (Depends-on): Add realloc-posix.
10298         * lib/realloc.c: Include errno.h.
10299         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10300         and a POSIX-compatible realloc into a single function. Set ENOMEM
10301         when returning NULL.
10302         * m4/realloc.m4: New file.
10303         * doc/functions/realloc.texi: Mention the realloc-posix module.
10304         * lib/stdlib_.h (realloc): New declaration.
10305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10306         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10307         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10308         and HAVE_REALLOC_POSIX.
10309
10310 2007-09-09  Bruno Haible  <bruno@clisp.org>
10311
10312         * modules/calloc-posix: New file.
10313         * modules/calloc (Depends-on): Add calloc-posix.
10314         * lib/calloc.c: Include errno.h.
10315         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10316         and a POSIX-compatible calloc into a single function. Set ENOMEM
10317         when returning NULL.
10318         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10319         * doc/functions/calloc.texi: Mention the calloc-posix module.
10320         * lib/stdlib_.h (calloc): New declaration.
10321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10322         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10323         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10324         and HAVE_CALLOC_POSIX.
10325
10326 2007-09-09  Bruno Haible  <bruno@clisp.org>
10327
10328         Allow for modules to show an arbitrary notice.
10329         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10330         * gnulib-tool: New option --extract-notice.
10331         (func_usage): Document it.
10332         (sed_extract_prog): Update.
10333         (func_get_notice): New function.
10334         (func_modules_notice): New function.
10335         (func_import, func_create_testdir): Invoke it.
10336         Suggested by Jim Meyering.
10337
10338 2007-09-09  Bruno Haible  <bruno@clisp.org>
10339
10340         * gnulib-tool: New options --verbose, --quiet.
10341         (func_usage): Document them.
10342         (verbose): New variable.
10343         (func_execute_command): New function.
10344         (func_import): Don't show the module list and the file list if
10345         $verbose < 0.
10346         (func_create_testdir): Likewise. Use func_execute_command.
10347         (func_create_megatestdir): Use func_execute_command.
10348
10349 2007-09-08  Bruno Haible  <bruno@clisp.org>
10350
10351         * gnulib-tool (func_import): Prefer rsync over wget when available,
10352         for fetching the PO files.
10353
10354 2007-09-08  Bruno Haible  <bruno@clisp.org>
10355
10356         * posix-modules: New file. Portions copied from gnulib-tool.
10357         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10358
10359 2007-09-08  Jim Meyering  <jim@meyering.net>
10360
10361         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10362         * lib/fpending.h: Rename from __fpending.h.
10363         * lib/fpending.c: Rename from __fpending.c.
10364         Include "fpending.h", not "__fpending.h".
10365         * lib/__fpending.h, lib/__fpending.c: Remove files.
10366         * modules/fpending (Files): Reflect new file names.
10367         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10368
10369 2007-09-08  Bruno Haible  <bruno@clisp.org>
10370
10371         * m4/inttypes-h.m4: Remove stub file.
10372
10373 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10374
10375         * doc/headers/stdint.texi: Discuss #include_next issue.
10376
10377 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10378
10379         * build-aux/bootstrap: Remove obsolete comment about wget --help.
10380
10381 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10382
10383         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
10384         in variable name.
10385
10386 2007-09-03  Jim Meyering  <jim@meyering.net>
10387
10388         New module: git-version-gen.
10389         * modules/git-version-gen: New file.
10390
10391         Import changes from coreutils for bootstrap script.
10392
10393         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
10394
10395         bootstrap: uses rsync to download the .po files
10396         * build-aux/bootstrap (po_download_command_format): New global.
10397         (download_po_files): Use rsync.
10398         (update_po_files): Don't remove .po files after download,
10399         so future rsync runs can take advantage of the copies.
10400
10401         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10402
10403         Solve the unnecessary-.po-file-regeneration problem once and for all.
10404         * build-aux/bootstrap (download_po_files): New function, renamed from
10405         get_translations.  Now, downloads, but doesn't update LINGUAS.
10406         (update_po_files): New function.
10407
10408         bootstrap: Ignore more.
10409         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10410         uniwidth to e.g., lib/.gitignore.
10411         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10412
10413         * build-aux/bootstrap: New setting: vc_ignore.
10414         (insert_sorted_if_absent): Create $file if absent.
10415         Adapt to new, possibly empty, list: $vc_ignore.
10416
10417         bootstrap: generate more ignorable names
10418         * build-aux/bootstrap (slurp): When generating ignorable names,
10419         also map .sin to .sed, .gperf to .c, and .y to .c.
10420
10421 2007-09-03  Jim Meyering  <jim@meyering.net>
10422
10423         * build-aux/git-version-gen: New file, from coreutils.  For details, see
10424         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
10425
10426 2007-09-02  Bruno Haible  <bruno@clisp.org>
10427
10428         Fix mis-recognition of 'mcs' on QNX 6.
10429         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
10430         output contains the string "Mono".
10431         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
10432         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
10433
10434 2007-09-01  Bruno Haible  <bruno@clisp.org>
10435
10436         Fix collision between uniwidth/* and linebreak modules.
10437         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
10438         u32_width): Remove declarations.
10439         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
10440         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
10441         streq3, streq2, streq1, streq0): Remove functions.
10442         (STREQ): Remove macro.
10443         (is_cjk_encoding): Remove function.
10444         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
10445         (uc_width, u8_width, u16_width, u32_width): Remove functions.
10446         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
10447         * NEWS: Document the change.
10448
10449 2007-09-01  Bruno Haible  <bruno@clisp.org>
10450
10451         * lib/streq.h: Add double-inclusion guard.
10452
10453 2007-09-01  Karl Berry  <karl@gnu.org>
10454
10455         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
10456
10457 2007-08-28  Jim Meyering  <jim@meyering.net>
10458
10459         Rename mreadlink_with_size to areadlink_with_size.
10460         * NEWS: Document the change.
10461         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
10462         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
10463         * lib/mreadlink.h: Rename this to...
10464         * lib/areadlink.h: ...this.
10465         * modules/mreadlink-with-size: Rename this to...
10466         * modules/areadlink-with-size: ...this.
10467         * lib/canonicalize.c: Reflect the renaming.
10468         * modules/canonicalize: Likewise.
10469
10470 2007-08-26  Bruno Haible  <bruno@clisp.org>
10471
10472         * gnulib-tool (func_import): When deciding which files to remove,
10473         consider also dangling symbolic links.
10474         Reported by Eric Blake.
10475
10476 2007-08-26  Bruno Haible  <bruno@clisp.org>
10477
10478         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
10479
10480 2007-08-23  Simon Josefsson  <simon@josefsson.org>
10481
10482         * lib/readline.c: Don't include getline.h, the prototype is now
10483         found in stdio.h.
10484
10485 2007-08-23  Jim Meyering  <jim@meyering.net>
10486
10487         Getdelim touchup.
10488         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
10489         around the funlockfile call, since funlockfile never sets errno.
10490         Don't set errno upon failed realloc.
10491
10492 2007-08-22  Eric Blake  <ebb9@byu.net>
10493
10494         Getline touchups.
10495         * lib/getdelim.c (getdelim): Revert regression that required *n to
10496         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
10497         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
10498         getdelim, rather than whether implementation is missing.
10499         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
10500         * lib/stdio_.h (getline): Also declare if replacement is
10501         required.
10502         * doc/functions/getdelim.texi: New file.
10503         * doc/functions/getline.texi: Likewise.
10504         * doc/gnulib.texi (Function Substitutes): Add new files.
10505         Reported by Bruno Haible.
10506
10507 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
10508
10509         * users.txt: Add Guile.
10510
10511 2007-08-22  Eric Blake  <ebb9@byu.net>
10512
10513         * tests/test-getdelim.c (main): Use remove, not unlink.
10514         * tests/test-getline.c (main): Likewise.
10515
10516         Move getline and getdelim into stdio.h, per POSIX 200x.
10517         * modules/getline (Files): Remove getline.h.
10518         (Depends-on): Add stdio.
10519         (configure.ac): Add module indicator.
10520         * modules/getdelim (Files): Remove getdelim.h.
10521         (Depends-on): Add stdio.
10522         (configure.ac): Add module indicator.
10523         * modules/stdio (Makefile.am): Work with new indicators.
10524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10525         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
10526         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10527         * lib/getdelim.h: Delete.
10528         * lib/getline.h: Delete.
10529         * lib/stdio_.h (getdelim, getline): Declare.
10530         * modules/getdelim-tests: New module.
10531         * modules/getline-tests: Likewise.
10532         * tests/test-getdelim.c: New file.
10533         * tests/test-getline.c: Likewise.
10534         * NEWS: Document the change.
10535         * lib/getline.c: Update choice of header.
10536         * lib/csharpcomp.c: Likewise.
10537         * lib/getpass.c: Likewise.
10538         * lib/javacomp.c: Likewise.
10539         * lib/javaversion.c: Likewise.
10540         * lib/yesno.c: Likewise.
10541         * lib/getdelim.c: Likewise.
10542         (getdelim): Set errno on failure, and avoid memory leak.
10543
10544 2007-08-19  Bruno Haible  <bruno@clisp.org>
10545
10546         * modules/closein (Depends-on): Add freadahead.
10547         * lib/closein.c: Include freadahead.h.
10548         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
10549         is zero.
10550
10551 2007-08-19  Bruno Haible  <bruno@clisp.org>
10552
10553         * modules/freadahead-tests: New file.
10554         * tests/test-freadahead.sh: New file.
10555         * tests/test-freadahead.c: New file.
10556
10557         * modules/freadahead: New file.
10558         * lib/freadahead.h: New file.
10559         * lib/freadahead.c: New file.
10560         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
10561         fbufmode, fpurge, freadable, fwritable.
10562
10563 2007-08-19  Eric Blake  <ebb9@byu.net>
10564
10565         Test yesno in combination with closein.
10566         * lib/yesno.c (yesno): Document use of stdin.
10567         * modules/yesno-tests (Files): New module.
10568         * tests/test-yesno.c (main): New file.
10569         * tests/test-yesno.sh: Likewise.
10570
10571 2007-08-19  Bruno Haible  <bruno@clisp.org>
10572
10573         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
10574         * lib/fseeko.c (rpl_fseeko): Likewise.
10575         * lib/fseterr.c (fseterr): Likewise.
10576
10577 2007-08-19  Bruno Haible  <bruno@clisp.org>
10578
10579         * tests/test-lseek.c (main): Disable a test for BeOS.
10580         * doc/functions/lseek.texi: Document the BeOS bug.
10581
10582 2007-08-19  Bruno Haible  <bruno@clisp.org>
10583             Eric Blake  <ebb9@byu.net>
10584
10585         * lib/lseek.c: Include <sys/stat.h>.
10586         (rpl_lseek): Add workaround code also for Unix platforms.
10587         Needed for BeOS.
10588         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
10589         * doc/functions/lseek.texi: Document BeOS definiency.
10590
10591 2007-08-18  Bruno Haible  <bruno@clisp.org>
10592
10593         * modules/fstrcmp-tests: New file.
10594         * tests/test-fstrcmp.c: New file.
10595
10596 2007-08-18  Bruno Haible  <bruno@clisp.org>
10597
10598         * modules/fstrcmp: New file, from GNU gettext with modifications.
10599         * lib/fstrcmp.h: New file, from GNU gettext.
10600         * lib/fstrcmp.c: New file, from GNU gettext.
10601         * MODULES.html.sh (String handling): Add fstrcmp.
10602
10603 2007-08-18  Bruno Haible  <bruno@clisp.org>
10604
10605         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
10606         'bool'.
10607         (diag, compareseq): Remove const from the ctxt argument.
10608         (USE_HEURISTIC): Undefine at the end.
10609
10610 2007-08-18  Jim Meyering  <jim@meyering.net>
10611
10612         New file: lib/idcache.h
10613         * NEWS: Mention the addition.
10614         * modules/idcache (Files): Add lib/idcache.h
10615         * lib/idcache.c: Include "idcache.h".
10616         Don't include <sys/types.h>.
10617         Add a FIXME comment.
10618         Move file-scoped "static" declarations to the top.
10619         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
10620
10621 2007-08-17  Bruno Haible  <bruno@clisp.org>
10622         and Paul Eggert  <eggert@cs.ucla.edu>
10623
10624         * MODULES.html.sh: Add diffseq.
10625         * modules/diffseq: New file.
10626         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
10627         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
10628
10629 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10630
10631         Import changes from coreutils for bootstrap script.
10632
10633         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
10634
10635         * build-aux/bootstrap (slurp): Work even in environments where
10636         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
10637         current code does not slurp files whose names start with ".", and
10638         this looks like it might be a troublesome area.
10639
10640         2007-07-11  Jim Meyering  <jim@meyering.net>
10641
10642         If there's a GPL vN copyright comment, require that N == 3.
10643
10644         2007-07-08  Jim Meyering  <jim@meyering.net>
10645
10646         Run the coreutils-specific code only if tests/Makefile.am.in exists.
10647         * build-aux/bootstrap (mam_template): Move definition out of loop.
10648
10649         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
10650
10651         * build-aux/bootstrap (symlink_to_dir): Rename function from
10652         symlink_to_gnulib.  Add a directory parameter.  Update all
10653         callers.
10654         (cp_mark_as_generated): Also check for -- and link to -- files in
10655         gl/.
10656
10657         2007-07-08  Jim Meyering  <jim@meyering.net>
10658
10659         Adapt to deeper hierarchy in gnulib.
10660         * build-aux/bootstrap (symlink_to_dir): If the destination
10661         directory doesn't exist, create it. This is required at least for
10662         "lib/uniwidth/cjk.h".
10663
10664         2007-05-15  Jim Meyering  <jim@meyering.net>
10665
10666         * build-aux/bootstrap: Now that generated Makefile.am files
10667         are no longer under version control, they must be created at
10668         bootstrap time.
10669
10670 2007-08-14  Ben Pfaff  <blp@gnu.org>
10671
10672         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
10673
10674 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10675
10676         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
10677         given the changes below.
10678         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
10679         even on hosts that have padding bits beyond the supported 64.
10680
10681 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10682
10683         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
10684         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
10685         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
10686         depends on it.
10687         (xstrtol_error): Remove.
10688         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
10689         but with a different signature.
10690         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10691         * lib/xstrtol-error.c: Include exitfail.h.
10692         (xstrtol_fatal): New function, with a different signature from the
10693         old xstrtol_error, so that the caller need not worry about passing
10694         in an exit status, or about storage management of the option argument.
10695         (xstrtol_error): Now a static function.  Redo signature to
10696         implement xstrtol_fatal.  Output the correct number of hyphens in
10697         front of the option so that the caller need not worry about
10698         storage management.
10699         (N_): New macro.
10700         (_): Remove; not used now.
10701         * modules/xstrtol: Depend on getopt.
10702         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10703         of old STRTOL_FATAL_ERROR macro.
10704         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
10705         of test program.
10706         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
10707         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
10708
10709 2007-08-08  Eric Blake  <ebb9@byu.net>
10710
10711         * lib/xstrtol-error.c: Add missing include.
10712
10713         Move xstrtol messages into gnulib domain, when --pobase is used.
10714         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
10715         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
10716         * modules/xstrtol (Files): Distribute new file.
10717         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
10718         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
10719         * tests/test-xstrtol.c: ...into new file.
10720         * tests/test-xstrtoul.c: Also test xstrtoul.
10721         * tests/test-xstrtoimax.c: Also test xstrtoimax.
10722         * tests/test-xstrtoumax.c: Also test xstrtoumax.
10723         * tests/test-xstrtol.sh: Drive the tests.
10724         * tests/test-xstrtoimax.sh: Likewise.
10725         * tests/test-xstrtoumax.sh: Likewise.
10726         * modules/xstrtol-tests: New module.
10727         * modules/xstrtoimax-tests: Likewise.
10728         * modules/xstrtoumax-tests: Likewise.
10729
10730 2007-08-08  Jim Meyering  <jim@meyering.net>
10731
10732         New function: mfile_name_concat.
10733         * lib/filenamecat.c (mfile_name_concat): New function, just like
10734         file_name_concat, but return NULL upon failure rather than exiting
10735         with a diagnostic.
10736         * lib/filenamecat.h: Declare it.
10737
10738 2007-08-07  Bruno Haible  <bruno@clisp.org>
10739
10740         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
10741         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
10742         warning from gcc.
10743         Reported by Eric Blake.
10744
10745 2007-08-07  Simon Josefsson  <simon@josefsson.org>
10746
10747         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
10748         * modules/crypto/arcfour (License): Likewise.
10749         * modules/crypto/des-tests (License): Likewise.
10750         * modules/crypto/gc-arctwo-tests (License): Likewise.
10751         * modules/crypto/gc-des-tests (License): Likewise.
10752         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
10753         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
10754         * modules/crypto/gc-md2-tests (License): Likewise.
10755         * modules/crypto/gc-md4-tests (License): Likewise.
10756         * modules/crypto/gc-md5-tests (License): Likewise.
10757         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
10758         * modules/crypto/gc-rijndael-tests (License): Likewise.
10759         * modules/crypto/gc-sha1-tests (License): Likewise.
10760         * modules/crypto/gc-tests (License): Likewise.
10761         * modules/crypto/hmac-md5 (License): Likewise.
10762         * modules/crypto/hmac-sha1 (License): Likewise.
10763         * modules/crypto/md2-tests (License): Likewise.
10764         * modules/crypto/md4-tests (License): Likewise.
10765         * modules/crypto/md5 (License): Likewise.
10766         * modules/crypto/rijndael (License): Likewise.
10767         * modules/crypto/sha1 (License): Likewise.
10768         * modules/memxor (License): Likewise.
10769
10770 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10771         and Bruno Haible  <bruno@clisp.org>
10772
10773         * NEWS: Describe interface changes to human, xstrtol.
10774         * lib/human.h: Include <xstrtol.h>.
10775         (human_options): Return enum strtol_error, not int.  Remove
10776         bool arg; take int * instead.
10777         * lib/human.c: Don't include "gettext.h".
10778         (_): Remove; no longer used.
10779         Don't include <xstrtol.h>, since human.h does it.
10780         (human_options): Adjust to abovementioned interface changes.
10781         Do not report error to stderr; that's now the caller's
10782         responsibility.
10783         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
10784         interface change.
10785         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
10786         Str, Argument_type_string.  All uses changed.  Put " argument"
10787         in diagnostics to make them clearer.  Change wording of suffix
10788         message for clarity.
10789         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
10790         Argument_type_string.
10791         (STRTOL_FATAL_WARN): Remove; no longer used.
10792         * modules/human (Depends-on): Remove gettext-h.
10793
10794 2007-08-06  Simon Josefsson  <simon@josefsson.org>
10795
10796         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
10797
10798 2007-07-31  Bruno Haible  <bruno@clisp.org>
10799
10800         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
10801         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
10802         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
10803
10804 2007-07-31  Bruno Haible  <bruno@clisp.org>
10805
10806         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
10807         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
10808
10809 2007-07-30  Bruno Haible  <bruno@clisp.org>
10810
10811         * modules/base64 (License): Use the synonymous term "LGPLv2+".
10812         * modules/c-ctype (License): Likewise.
10813         * modules/c-strcase (License): Likewise.
10814         * modules/check-version (License): Likewise.
10815         * modules/iconv (License): Likewise.
10816         * modules/iconv_open (License): Likewise.
10817         * modules/read-file (License): Likewise.
10818         * modules/striconv (License): Likewise.
10819         * modules/strverscmp (License): Likewise.
10820         * modules/vasprintf (License): Likewise.
10821         * modules/crypto/des (License): Likewise.
10822         * modules/crypto/gc (License): Likewise.
10823         * modules/crypto/gc-arcfour (License): Likewise.
10824         * modules/crypto/gc-arctwo (License): Likewise.
10825         * modules/crypto/gc-des (License): Likewise.
10826         * modules/crypto/gc-hmac-md5 (License): Likewise.
10827         * modules/crypto/gc-hmac-sha1 (License): Likewise.
10828         * modules/crypto/gc-md2 (License): Likewise.
10829         * modules/crypto/gc-md4 (License): Likewise.
10830         * modules/crypto/gc-md5 (License): Likewise.
10831         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
10832         * modules/crypto/gc-random (License): Likewise.
10833         * modules/crypto/gc-rijndael (License): Likewise.
10834         * modules/crypto/gc-sha1 (License): Likewise.
10835         * modules/crypto/md2 (License): Likewise.
10836         * modules/crypto/md4 (License): Likewise.
10837
10838 2007-07-30  Jim Meyering  <jim@meyering.net>
10839
10840         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
10841         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
10842         it has valid stat data.  This bug would cause du not to count the
10843         sizes of inaccessible directories.
10844         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
10845         in <http://bugzilla.redhat.com/250077>.
10846
10847 2007-07-25  Peter O'Gorman  <peter@pogma.com>
10848             Bruno Haible  <bruno@clisp.org>
10849
10850         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
10851         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
10852         #include_next, gives a diagnostic about it, but reports no error in
10853         the exit code.
10854         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10855
10856 2007-07-24  Ben Pfaff  <blp@gnu.org>
10857
10858         Improve name: "count-one-bits" is better than "popcount".
10859         * MODULES.html.sh: Update name.
10860         * lib/popcount.h: Renamed lib/count-one-bits.h.
10861         (popcount): Renamed count_one_bits.
10862         (popcountl): Renamed count_one_bits_l.
10863         (popcountll): Renamed count_one_bits_ll.
10864         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
10865         * modules/popcount: Renamed module/count-one-bits.
10866         * modules/popcount-tests: Renamed module/count-one-bits-tests.
10867         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
10868
10869 2007-07-23  Ben Pfaff  <blp@gnu.org>
10870
10871         * lib/popcount.h (popcount32): Reduce size of constants, to allow
10872         better code generation, and add U to large constants to avoid
10873         warnings, in non-GCC case.
10874         Suggested by Bruno Haible.
10875
10876 2007-07-23  Ben Pfaff  <blp@gnu.org>
10877
10878         * lib/popcount.h: Use verify_true instead of if...abort.
10879         * modules/popcount: Depend on verify module.
10880         Suggested by Jim Meyering.
10881
10882 2007-07-23  Bruno Haible  <bruno@clisp.org>
10883
10884         * gnulib-tool (func_import): Create a .cvsignore file also when the
10885         directory is not yet in CVS but the toplevel directory is. When
10886         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
10887         Reported by Karl Berry.
10888
10889 2007-07-22  Ben Pfaff  <blp@gnu.org>
10890
10891         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
10892         case.
10893         Suggested by Eric Blake.
10894
10895 2007-07-22  Ben Pfaff  <blp@gnu.org>
10896
10897         New module: popcount.
10898         * MODULES.html.sh: Add popcount.
10899         * modules/popcount: New file.
10900         * modules/popcount-tests: New file.
10901         * tests/test-popcount.c: New file.
10902         * lib/popcount.h: New file.
10903         * m4/popcount.m4: New file.
10904
10905 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10906
10907         * build-aux/announce-gen: Update to GPLv3.
10908
10909         * build-aux/config.guess: Update from config.
10910
10911 2007-07-21  Bruno Haible  <bruno@clisp.org>
10912
10913         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
10914         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
10915
10916 2007-07-20  Jim Meyering  <jim@meyering.net>
10917
10918         * check-module: Diagnose a self-dependency.
10919
10920 2007-07-19  Bruno Haible  <bruno@clisp.org>
10921
10922         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
10923         empty.
10924         Reported by Eric Blake.
10925
10926 2007-07-18  Bruno Haible  <bruno@clisp.org>
10927
10928         * gnulib-tool: New options --po-base, --po-domain.
10929         (func_usage): Document them.
10930         (pobase, po_domain): New variables.
10931         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
10932         DEFAULT_TEXT_DOMAIN.
10933         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
10934         (func_import): Consider pobase and po_domain. Create a po/ directory.
10935         (func_create_testdir): Set pobase and po_domain to empty.
10936         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
10937         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
10938
10939 2007-07-18  Bruno Haible  <bruno@clisp.org>
10940
10941         * gnulib-tool (func_get_automake_snippet): Synthesize also an
10942         EXTRA_DIST augmentation for files in build-aux/.
10943
10944 2007-07-16  Bruno Haible  <bruno@clisp.org>
10945
10946         * modules/lseek (License): Use the synonymous term "LGPLv2+".
10947         * modules/getdelim (License): Likewise.
10948
10949 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10950
10951         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
10952         * modules/d-type (License): Likewise.
10953         * modules/extensions (License): Likewise.
10954         * modules/fnmatch (License): Likewise.
10955         * modules/fseeko (License): Likewise.
10956         * modules/getaddrinfo (License): Likewise.
10957         * modules/getline (License): Likewise.
10958         * modules/getlogin_r (License): Likewise.
10959         * modules/getpass (License): Likewise.
10960         * modules/gettimeofday (License): Likewise.
10961         * modules/glob (License): Likewise.
10962         * modules/inet_ntop (License): Likewise.
10963         * modules/malloc (License): Likewise.
10964         * modules/malloca (License): Likewise.
10965         * modules/memmem (License): Likewise.
10966         * modules/mempcpy (License): Likewise.
10967         * modules/memset (License): Likewise.
10968         * modules/minmax (License): Likewise.
10969         * modules/mktime (License): Likewise.
10970         * modules/netinet_in (License): Likewise.
10971         * modules/pathmax (License): Likewise.
10972         * modules/poll (License): Likewise.
10973         * modules/regex (License): Likewise.
10974         * modules/snprintf (License): Likewise.
10975         * modules/stdbool (License): Likewise.
10976         * modules/stdint (License): Likewise.
10977         * modules/stdio (License): Likewise.
10978         * modules/strcase (License): Likewise.
10979         * modules/strcasestr (License): Likewise.
10980         * modules/strdup (License): Likewise.
10981         * modules/string (License): Likewise.
10982         * modules/strndup (License): Likewise.
10983         * modules/strnlen (License): Likewise.
10984         * modules/strpbrk (License): Likewise.
10985         * modules/strptime (License): Likewise.
10986         * modules/strsep (License): Likewise.
10987         * modules/sys_select (License): Likewise.
10988         * modules/sys_socket (License): Likewise.
10989         * modules/sys_stat (License): Likewise.
10990         * modules/sys_time (License): Likewise.
10991         * modules/time (License): Likewise.
10992         * modules/time_r (License): Likewise.
10993         * modules/timegm (License): Likewise.
10994         * modules/unistd (License): Likewise.
10995         * modules/vsnprintf (License): Likewise.
10996         * modules/wctype (License): Likewise.
10997
10998 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10999
11000         * modules/argz (License): LGPLv2+.
11001
11002 2007-07-15  Karl Berry  <karl@gnu.org>
11003
11004         * doc/gnulib.texi: revise node structure per new fdl.texi.
11005
11006 2007-07-14  Bruno Haible  <bruno@clisp.org>
11007
11008         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
11009         the output file.
11010         * lib/uniname/uninames.h: Regenerated.
11011
11012 2007-07-14  Karl Berry  <karl@gnu.org>
11013
11014         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
11015         omitting sectioning and index commands.
11016
11017 2007-07-13  Bruno Haible  <bruno@clisp.org>
11018
11019         New gnulib-tool option --more-symlinks.
11020         * gnulib-tool (func_usage): Document --more-symlinks.
11021         (do_copyrights): New variable.
11022         Recognize option --more-symlinks.
11023         (func_import): Don't add a copyright notice transform to
11024         sed_transform_lib_file if do_copyrights is empty.
11025
11026 2007-07-13  Bruno Haible  <bruno@clisp.org>
11027
11028         * lib/vasnprintf.c (decimal_point_char): Define also if
11029         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
11030         && !NEED_PRINTF_DIRECTIVE_A.
11031         Reported by Clemens Koller <clemens.koller@anagramm.de> via
11032         Gary V. Vaughan <gary@gnu.org>.
11033
11034 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11035
11036         * lib/inttypes_.h: Undo previous change, since it was fixed
11037         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
11038
11039 2007-07-13  Bruno Haible  <bruno@clisp.org>
11040
11041         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
11042         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
11043
11044 2007-07-13  Jim Meyering  <jim@meyering.net>
11045
11046         df: Don't fail for Tru64's "file-on-file mount".
11047         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
11048         so we fall through and use statfs instead.  Details here:
11049         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
11050         Reported by Albert Chin.
11051
11052 2007-07-13  Bruno Haible  <bruno@clisp.org>
11053
11054         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
11055         * modules/configmake (License): Likewise.
11056         * modules/gettext (License): Likewise.
11057         * modules/gettext-h (License): Likewise.
11058         * modules/include_next (License): Likewise.
11059         * modules/link-warning (License): Likewise.
11060         * modules/localcharset (License): Likewise.
11061         * modules/localename (License): Likewise.
11062         * modules/lock (License): Likewise.
11063         * modules/relocatable-lib-lgpl (License): Likewise.
11064         * modules/size_max (License): Likewise.
11065         * modules/vasnprintf (License): Likewise.
11066         * modules/wchar (License): Likewise.
11067         * modules/xsize (License): Likewise.
11068
11069 2007-07-13  Bruno Haible  <bruno@clisp.org>
11070
11071         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
11072         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
11073
11074 2007-07-12  Bruno Haible  <bruno@clisp.org>
11075
11076         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
11077         in the modules files.
11078
11079 2007-07-11  Karl Berry  <karl@gnu.org>
11080
11081         * MODULES.html.sh (func_module): use
11082          sed -e '\|^'"${includefile}"'$|d'
11083          instead of /.../d, to avoid errors on $includefile's containing /.
11084
11085 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11086
11087         * gnulib-tool (func_import): Avoid duplication of --avoid
11088         statements
11089         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
11090         names to `_' in variable names.
11091
11092 2007-07-10  Eric Blake  <ebb9@byu.net>
11093
11094         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
11095         * NEWS: Document this change.
11096
11097 2007-07-08  Bruno Haible  <bruno@clisp.org>
11098
11099         Update to Unicode 5.0.
11100         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
11101         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
11102         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
11103         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
11104         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
11105         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
11106         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
11107         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
11108         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
11109         U+10A3F, U+1D242..U+1D244.
11110         (nonspacing_table_ind): Update.
11111         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
11112         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
11113
11114 2007-07-08  Bruno Haible  <bruno@clisp.org>
11115
11116         Update to Unicode 5.0.
11117         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
11118         code transform. Extend the name index field of unicode_name_to_code and
11119         unicode_code_to_name from 16 to 24 bits.
11120         * lib/uniname/uniname.c (unicode_character_name,
11121         unicode_name_character): Add the range 0x12xxx to the code transform.
11122         * lib/uniname/uninames.h: Regenerated.
11123         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
11124
11125 2007-07-07  Bruno Haible  <bruno@clisp.org>
11126
11127         * modules/wcwidth-tests: New file.
11128         * tests/test-wcwidth.c: New file.
11129
11130         Work around MacOS X wcwidth() bug.
11131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
11132         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
11133         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
11134         original wcwidth in non-UTF-8 locales.
11135         * modules/wcwidth (Depends-on): Add localcharset, streq,
11136         uniwidth/width.
11137         * doc/functions/wcwidth.texi: Update.
11138
11139 2007-07-07  Bruno Haible  <bruno@clisp.org>
11140
11141         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
11142         (wcwidth): New declaration.
11143         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
11144         macros.
11145         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
11146         here. Prepare for creating <wchar.h> unconditionally.
11147         * modules/wchar (Depends-on): Add link-warning.
11148         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
11149         REPLACE_WCWIDTH, and GL_LINK_WARNING.
11150         * lib/wcwidth.h: Remove file.
11151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
11152         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
11153         * modules/wcwidth (Files): Remove lib/wcwidth.h.
11154         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
11155         (Include): Replace wcwidth.h with <wchar.h>.
11156         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
11157         * lib/mbchar.h: Don't include wcwidth.h.
11158         * lib/mbswidth.c: Likewise.
11159         * NEWS: Mention the change.
11160
11161 2007-07-07  Bruno Haible  <bruno@clisp.org>
11162
11163         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
11164         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
11165         definition with an external declaration.
11166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
11167         defined as a function. Remove AC_C_INLINE requirement.
11168         * modules/wcwidth (Files): Add lib/wcwidth.c.
11169         (Makefile.am): Remove redundant statement.
11170
11171 2007-07-07  Bruno Haible  <bruno@clisp.org>
11172
11173         * MODULES.html.sh (Unicode string functions): Add the new modules.
11174
11175         * tests/uniwidth/test-u32-strwidth.c: New file.
11176         * modules/uniwidth/u32-strwidth-tests: New file.
11177
11178         * lib/uniwidth/u32-strwidth.c: New file.
11179         * modules/uniwidth/u32-strwidth: New file.
11180
11181         * tests/uniwidth/test-u16-strwidth.c: New file.
11182         * modules/uniwidth/u16-strwidth-tests: New file.
11183
11184         * lib/uniwidth/u16-strwidth.c: New file.
11185         * modules/uniwidth/u16-strwidth: New file.
11186
11187         * tests/uniwidth/test-u8-strwidth.c: New file.
11188         * modules/uniwidth/u8-strwidth-tests: New file.
11189
11190         * lib/uniwidth/u8-strwidth.c: New file.
11191         * modules/uniwidth/u8-strwidth: New file.
11192
11193         * tests/uniwidth/test-u32-width.c: New file.
11194         * modules/uniwidth/u32-width-tests: New file.
11195
11196         * lib/uniwidth/u32-width.c: New file.
11197         * modules/uniwidth/u32-width: New file.
11198
11199         * tests/uniwidth/test-u16-width.c: New file.
11200         * modules/uniwidth/u16-width-tests: New file.
11201
11202         * lib/uniwidth/u16-width.c: New file.
11203         * modules/uniwidth/u16-width: New file.
11204
11205         * tests/uniwidth/test-u8-width.c: New file.
11206         * modules/uniwidth/u8-width-tests: New file.
11207
11208         * lib/uniwidth/u8-width.c: New file.
11209         * modules/uniwidth/u8-width: New file.
11210
11211         * tests/uniwidth/test-uc_width.c: New file.
11212         * modules/uniwidth/width-tests: New file.
11213
11214         * lib/uniwidth/width.c: New file, from GNU libiconv.
11215         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
11216         * modules/uniwidth/width: New file.
11217
11218         * lib/uniwidth.h: New file, from GNU libiconv.
11219         * modules/uniwidth/base: New file.
11220
11221 2007-07-07  Bruno Haible  <bruno@clisp.org>
11222
11223         * lib/uniname.h: New file, from GNU gettext.
11224         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
11225         * lib/uniname/uninames.h: New file, from GNU gettext.
11226         * lib/uniname/uniname.c: New file, from GNU gettext.
11227         * tests/uniname/test-uninames.sh: New file.
11228         * tests/uniname/test-uninames.c: New file, from GNU gettext.
11229         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
11230         * modules/uniname/base: New file.
11231         * modules/uniname/uniname: New file.
11232         * modules/uniname/uniname-tests: New file.
11233         * MODULES.html.sh (Unicode string functions): Add the new modules.
11234
11235 2007-07-06  Bruno Haible  <bruno@clisp.org>
11236
11237         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
11238
11239 2007-07-06  Bruno Haible  <bruno@clisp.org>
11240
11241         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
11242         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
11243         includes <cygwin/sys_time.h> which includes <sys/select.h> which
11244         include <sys/time.h>.
11245         Reported by Eric Blake.
11246
11247 2007-07-06  Eric Blake  <ebb9@byu.net>
11248
11249         Fix testing canonicalize on cygwin.
11250         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11251         Revert patch from 2007-06-19.
11252         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
11253         canonicalize module is also in use.
11254         * tests/test-canonicalize.c: New file.
11255         * tests/test-canonicalize.sh: Likewise.
11256         * modules/canonicalize-tests: Likewise.
11257
11258 2007-07-06  Jim Meyering  <jim@meyering.net>
11259
11260         * lib/getugroups.c (getugroups): Detect getgrent failure.
11261         Adjust comment to reflect reality: this function may return -1.
11262
11263 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11264
11265         * build-aux/bootstrap (TP_URL,get_translations): Update to use
11266         the new TP address.
11267         (usage): Fix typo
11268         (gnulib_mk): New variable.
11269
11270 2007-07-05  Jim Meyering  <jim@meyering.net>
11271
11272         Don't let endgrent clobber errno, no matter how improbable.
11273         * lib/getugroups.c (getugroups): Save and restore errno around
11274         endgrent call.
11275
11276         Close the group DB even when failing with 2^31 or more members.
11277         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
11278
11279 2007-07-04  Jim Meyering  <jim@meyering.net>
11280
11281         * lib/getugroups.h: New file.
11282         * lib/getugroups.c: Include "getugroups.h".
11283         Remove uses of "register" keyword.
11284         Move local variable, "cp", down into scope where used.
11285         Give "username" parameter the "const" attribute.
11286         * modules/getugroups (Files): Add lib/getugroups.h
11287
11288 2007-07-04  Karl Berry  <karl@gnu.org>
11289
11290         * MODULES.html.sh (func_all_modules): Complete rename of
11291         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11292
11293 2007-07-02  Bruno Haible  <bruno@clisp.org>
11294
11295         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11296         mode, when inttypes.h comes from gnulib.
11297         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11298
11299 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11300
11301         * NEWS: Mention lgpl module name change.
11302
11303         * modules/lgpl-2.1: Renamed from lgpl.
11304
11305         * NEWS: Mention gpl module name change.
11306
11307         * modules/gpl-3.0: New file, based on gpl-2.0.
11308
11309         * modules/gpl-2.0: Renamed from gpl.
11310
11311         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11312         doc/gpl-2.0.texi.
11313
11314 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11315
11316         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11317         #define __STDC_LIMIT_MACROS temporarily while including
11318         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11319         Problem reported by Joel E. Denny in
11320         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11321
11322 2007-07-01  Bruno Haible  <bruno@clisp.org>
11323
11324         * lib/unistdio.h: New file.
11325         * lib/unistdio/u-asnprintf.h: New file.
11326         * lib/unistdio/u-asprintf.h: New file.
11327         * lib/unistdio/u-printf-args.c: New file.
11328         * lib/unistdio/u-printf-args.h: New file.
11329         * lib/unistdio/u-printf-parse.h: New file.
11330         * lib/unistdio/u-snprintf.h: New file.
11331         * lib/unistdio/u-sprintf.h: New file.
11332         * lib/unistdio/u-vasprintf.h: New file.
11333         * lib/unistdio/u-vsnprintf.h: New file.
11334         * lib/unistdio/u-vsprintf.h: New file.
11335         * lib/unistdio/ulc-asnprintf.c: New file.
11336         * lib/unistdio/ulc-asprintf.c: New file.
11337         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11338         * lib/unistdio/ulc-printf-parse.c: New file.
11339         * lib/unistdio/ulc-snprintf.c: New file.
11340         * lib/unistdio/ulc-sprintf.c: New file.
11341         * lib/unistdio/ulc-vasnprintf.c: New file.
11342         * lib/unistdio/ulc-vasprintf.c: New file.
11343         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11344         * lib/unistdio/ulc-vsnprintf.c: New file.
11345         * lib/unistdio/ulc-vsprintf.c: New file.
11346         * lib/unistdio/u8-asnprintf.c: New file.
11347         * lib/unistdio/u8-asprintf.c: New file.
11348         * lib/unistdio/u8-printf-parse.c: New file.
11349         * lib/unistdio/u8-snprintf.c: New file.
11350         * lib/unistdio/u8-sprintf.c: New file.
11351         * lib/unistdio/u8-vasnprintf.c: New file.
11352         * lib/unistdio/u8-vasprintf.c: New file.
11353         * lib/unistdio/u8-vsnprintf.c: New file.
11354         * lib/unistdio/u8-vsprintf.c: New file.
11355         * lib/unistdio/u8-u8-asnprintf.c: New file.
11356         * lib/unistdio/u8-u8-asprintf.c: New file.
11357         * lib/unistdio/u8-u8-snprintf.c: New file.
11358         * lib/unistdio/u8-u8-sprintf.c: New file.
11359         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11360         * lib/unistdio/u8-u8-vasprintf.c: New file.
11361         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11362         * lib/unistdio/u8-u8-vsprintf.c: New file.
11363         * lib/unistdio/u16-asnprintf.c: New file.
11364         * lib/unistdio/u16-asprintf.c: New file.
11365         * lib/unistdio/u16-printf-parse.c: New file.
11366         * lib/unistdio/u16-snprintf.c: New file.
11367         * lib/unistdio/u16-sprintf.c: New file.
11368         * lib/unistdio/u16-vasnprintf.c: New file.
11369         * lib/unistdio/u16-vasprintf.c: New file.
11370         * lib/unistdio/u16-vsnprintf.c: New file.
11371         * lib/unistdio/u16-vsprintf.c: New file.
11372         * lib/unistdio/u16-u16-asnprintf.c: New file.
11373         * lib/unistdio/u16-u16-asprintf.c: New file.
11374         * lib/unistdio/u16-u16-snprintf.c: New file.
11375         * lib/unistdio/u16-u16-sprintf.c: New file.
11376         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11377         * lib/unistdio/u16-u16-vasprintf.c: New file.
11378         * lib/unistdio/u16-u16-vsnprintf.c: New file.
11379         * lib/unistdio/u16-u16-vsprintf.c: New file.
11380         * lib/unistdio/u32-asnprintf.c: New file.
11381         * lib/unistdio/u32-asprintf.c: New file.
11382         * lib/unistdio/u32-printf-parse.c: New file.
11383         * lib/unistdio/u32-snprintf.c: New file.
11384         * lib/unistdio/u32-sprintf.c: New file.
11385         * lib/unistdio/u32-vasnprintf.c: New file.
11386         * lib/unistdio/u32-vasprintf.c: New file.
11387         * lib/unistdio/u32-vsnprintf.c: New file.
11388         * lib/unistdio/u32-vsprintf.c: New file.
11389         * lib/unistdio/u32-u32-asnprintf.c: New file.
11390         * lib/unistdio/u32-u32-asprintf.c: New file.
11391         * lib/unistdio/u32-u32-snprintf.c: New file.
11392         * lib/unistdio/u32-u32-sprintf.c: New file.
11393         * lib/unistdio/u32-u32-vasnprintf.c: New file.
11394         * lib/unistdio/u32-u32-vasprintf.c: New file.
11395         * lib/unistdio/u32-u32-vsnprintf.c: New file.
11396         * lib/unistdio/u32-u32-vsprintf.c: New file.
11397         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11398         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11399         * tests/unistdio/test-ulc-printf1.h: New file.
11400         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11401         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11402         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11403         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11404         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11405         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11406         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11407         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11408         * tests/unistdio/test-u8-asnprintf1.c: New file.
11409         * tests/unistdio/test-u8-asnprintf1.h: New file.
11410         * tests/unistdio/test-u8-printf1.h: New file.
11411         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11412         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11413         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11414         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11415         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11416         * tests/unistdio/test-u8-vasprintf1.c: New file.
11417         * tests/unistdio/test-u8-vsnprintf1.c: New file.
11418         * tests/unistdio/test-u8-vsprintf1.c: New file.
11419         * tests/unistdio/test-u16-asnprintf1.c: New file.
11420         * tests/unistdio/test-u16-asnprintf1.h: New file.
11421         * tests/unistdio/test-u16-printf1.h: New file.
11422         * tests/unistdio/test-u16-vasnprintf1.c: New file.
11423         * tests/unistdio/test-u16-vasnprintf2.c: New file.
11424         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
11425         * tests/unistdio/test-u16-vasnprintf3.c: New file.
11426         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
11427         * tests/unistdio/test-u16-vasprintf1.c: New file.
11428         * tests/unistdio/test-u16-vsnprintf1.c: New file.
11429         * tests/unistdio/test-u16-vsprintf1.c: New file.
11430         * tests/unistdio/test-u32-asnprintf1.c: New file.
11431         * tests/unistdio/test-u32-asnprintf1.h: New file.
11432         * tests/unistdio/test-u32-printf1.h: New file.
11433         * tests/unistdio/test-u32-vasnprintf1.c: New file.
11434         * tests/unistdio/test-u32-vasnprintf2.c: New file.
11435         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
11436         * tests/unistdio/test-u32-vasnprintf3.c: New file.
11437         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
11438         * tests/unistdio/test-u32-vasprintf1.c: New file.
11439         * tests/unistdio/test-u32-vsnprintf1.c: New file.
11440         * tests/unistdio/test-u32-vsprintf1.c: New file.
11441         * modules/unistdio/base: New file.
11442         * modules/unistdio/u-printf-args: New file.
11443         * modules/unistdio/ulc-asnprintf: New file.
11444         * modules/unistdio/ulc-asprintf: New file.
11445         * modules/unistdio/ulc-fprintf: New file.
11446         * modules/unistdio/ulc-printf-parse: New file.
11447         * modules/unistdio/ulc-snprintf: New file.
11448         * modules/unistdio/ulc-sprintf: New file.
11449         * modules/unistdio/ulc-vasnprintf: New file.
11450         * modules/unistdio/ulc-vasprintf: New file.
11451         * modules/unistdio/ulc-vfprintf: New file.
11452         * modules/unistdio/ulc-vsnprintf: New file.
11453         * modules/unistdio/ulc-vsprintf: New file.
11454         * modules/unistdio/u8-asnprintf: New file.
11455         * modules/unistdio/u8-asprintf: New file.
11456         * modules/unistdio/u8-printf-parse: New file.
11457         * modules/unistdio/u8-snprintf: New file.
11458         * modules/unistdio/u8-sprintf: New file.
11459         * modules/unistdio/u8-vasnprintf: New file.
11460         * modules/unistdio/u8-vasprintf: New file.
11461         * modules/unistdio/u8-vsnprintf: New file.
11462         * modules/unistdio/u8-vsprintf: New file.
11463         * modules/unistdio/u8-u8-asnprintf: New file.
11464         * modules/unistdio/u8-u8-asprintf: New file.
11465         * modules/unistdio/u8-u8-snprintf: New file.
11466         * modules/unistdio/u8-u8-sprintf: New file.
11467         * modules/unistdio/u8-u8-vasnprintf: New file.
11468         * modules/unistdio/u8-u8-vasprintf: New file.
11469         * modules/unistdio/u8-u8-vsnprintf: New file.
11470         * modules/unistdio/u8-u8-vsprintf: New file.
11471         * modules/unistdio/u16-asnprintf: New file.
11472         * modules/unistdio/u16-asprintf: New file.
11473         * modules/unistdio/u16-printf-parse: New file.
11474         * modules/unistdio/u16-snprintf: New file.
11475         * modules/unistdio/u16-sprintf: New file.
11476         * modules/unistdio/u16-vasnprintf: New file.
11477         * modules/unistdio/u16-vasprintf: New file.
11478         * modules/unistdio/u16-vsnprintf: New file.
11479         * modules/unistdio/u16-vsprintf: New file.
11480         * modules/unistdio/u16-u16-asnprintf: New file.
11481         * modules/unistdio/u16-u16-asprintf: New file.
11482         * modules/unistdio/u16-u16-snprintf: New file.
11483         * modules/unistdio/u16-u16-sprintf: New file.
11484         * modules/unistdio/u16-u16-vasnprintf: New file.
11485         * modules/unistdio/u16-u16-vasprintf: New file.
11486         * modules/unistdio/u16-u16-vsnprintf: New file.
11487         * modules/unistdio/u16-u16-vsprintf: New file.
11488         * modules/unistdio/u32-asnprintf: New file.
11489         * modules/unistdio/u32-asprintf: New file.
11490         * modules/unistdio/u32-printf-parse: New file.
11491         * modules/unistdio/u32-snprintf: New file.
11492         * modules/unistdio/u32-sprintf: New file.
11493         * modules/unistdio/u32-vasnprintf: New file.
11494         * modules/unistdio/u32-vasprintf: New file.
11495         * modules/unistdio/u32-vsnprintf: New file.
11496         * modules/unistdio/u32-vsprintf: New file.
11497         * modules/unistdio/u32-u32-asnprintf: New file.
11498         * modules/unistdio/u32-u32-asprintf: New file.
11499         * modules/unistdio/u32-u32-snprintf: New file.
11500         * modules/unistdio/u32-u32-sprintf: New file.
11501         * modules/unistdio/u32-u32-vasnprintf: New file.
11502         * modules/unistdio/u32-u32-vasprintf: New file.
11503         * modules/unistdio/u32-u32-vsnprintf: New file.
11504         * modules/unistdio/u32-u32-vsprintf: New file.
11505         * modules/unistdio/ulc-asnprintf-tests: New file.
11506         * modules/unistdio/ulc-vasnprintf-tests: New file.
11507         * modules/unistdio/ulc-vasprintf-tests: New file.
11508         * modules/unistdio/ulc-vsnprintf-tests: New file.
11509         * modules/unistdio/ulc-vsprintf-tests: New file.
11510         * modules/unistdio/u8-asnprintf-tests: New file.
11511         * modules/unistdio/u8-vasnprintf-tests: New file.
11512         * modules/unistdio/u8-vasprintf-tests: New file.
11513         * modules/unistdio/u8-vsnprintf-tests: New file.
11514         * modules/unistdio/u8-vsprintf-tests: New file.
11515         * modules/unistdio/u16-asnprintf-tests: New file.
11516         * modules/unistdio/u16-vasnprintf-tests: New file.
11517         * modules/unistdio/u16-vasprintf-tests: New file.
11518         * modules/unistdio/u16-vsnprintf-tests: New file.
11519         * modules/unistdio/u16-vsprintf-tests: New file.
11520         * modules/unistdio/u32-asnprintf-tests: New file.
11521         * modules/unistdio/u32-vasnprintf-tests: New file.
11522         * modules/unistdio/u32-vasprintf-tests: New file.
11523         * modules/unistdio/u32-vsnprintf-tests: New file.
11524         * modules/unistdio/u32-vsprintf-tests: New file.
11525         * MODULES.html.sh (Unicode string functions): Add the new modules.
11526
11527 2007-07-01  Bruno Haible  <bruno@clisp.org>
11528
11529         * lib/sprintf.c (sprintf): Limit the available length estimation,
11530         to avoid address wraparound.
11531         * lib/vsprintf.c (vsprintf): Likewise.
11532         * modules/sprintf-posix (Dependencies): Add stdint.
11533         * modules/vsprintf-posix (Dependencies): Likewise.
11534
11535 2007-07-01  Bruno Haible  <bruno@clisp.org>
11536
11537         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
11538         Windows PATH as well. Conservative double-quoting. Comments.
11539
11540 2007-07-01  Bruno Haible  <bruno@clisp.org>
11541             Eric Blake  <ebb9@byu.net>
11542             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11543
11544         * gnulib-tool (self_abspathname): Fix algorithm to cope with
11545         empty components in $PATH, denoting '.'.
11546
11547 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11548
11549         * gnulib-tool: Fix indentation.
11550         (func_create_megatestdir): Likewise.
11551         Report by Bruno Haible.
11552
11553 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11554
11555         Sync from Automake.
11556         * build-aux/gnupload: Fix shell portability issues with for loops.
11557         Report by Karl Berry.
11558
11559 2007-06-29  Simon Josefsson  <simon@josefsson.org>
11560
11561         * build-aux/maint.mk (POURL): Use translationproject.org.
11562
11563 2007-06-27  Simon Josefsson  <simon@josefsson.org>
11564             Bruno Haible  <bruno@clisp.org>
11565
11566         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
11567         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
11568         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
11569         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
11570         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
11571
11572 2007-06-27  Bruno Haible  <bruno@clisp.org>
11573
11574         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
11575         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
11576
11577 2007-06-26  Karl Berry  <karl@gnu.org>
11578
11579         * MODULES.html.sh: remove xreadlink-with-size.
11580
11581 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11582
11583         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
11584         method that I hope also handles the double-include problem noted
11585         by Bruno Haible in
11586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
11587
11588 2007-06-23  Bruno Haible  <bruno@clisp.org>
11589
11590         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11591         Don't let the 'mostlyclean' target fail if the last subdirectory could
11592         not be removed.
11593         Reported by Karl Berry.
11594
11595 2007-06-23  Bruno Haible  <bruno@clisp.org>
11596
11597         * gnulib-tool (echo): Add a speedier workaround for ksh.
11598         * tests/test-echo.sh: Likewise.
11599
11600 2007-06-23  Bruno Haible  <bruno@clisp.org>
11601
11602         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
11603         * tests/test-echo.sh: Likewise.
11604
11605 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11606
11607         * gnulib-tool (IFS): Initialize early, so we don't set it to
11608         empty later.
11609         (self_abspathname): Rewrite algorithm to set it, reindent.
11610         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
11611         (func_create_megatestdir): Merge some sed scripts.
11612
11613 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11614
11615         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
11616         exposed by Sun Studio 11 cc on Solaris 8.
11617
11618 2007-06-22  Bruno Haible  <bruno@clisp.org>
11619
11620         * gnulib-tool (echo): Ensure the echo primitive does not interpret
11621         backslashes.
11622         * tests/test-echo.sh: New file.
11623
11624 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11625
11626         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
11627         simplify `sed_replace_build_aux' scripts, they are portable but
11628         echoing them with `echo' is not.
11629         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
11630
11631 2007-06-21  Karl Berry  <karl@gnu.org>
11632
11633         * config/srclist.txt: guess we can't handle the licenses via
11634         srclist at the moment.
11635
11636 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11637
11638         * MODULES.html.sh: Add include_next.
11639         * modules/include_next: New file.
11640
11641 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11642
11643         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
11644         INCLUDE_NEXT.
11645         (gl_CHECK_NEXT_HEADERS): New macro.
11646         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
11647         the obsolescent gl_ABSOLUTE_HEADER.
11648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11649         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11650         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11651         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11652         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11653         * m4/math_h.m4 (gl_MATH_H): Likewise.
11654         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11655         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11656         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11657         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11658         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11659         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11660         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11662         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11664         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11665         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11666         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11667         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11668         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11669         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11670         * m4/inttypes.m4 (gl_INTTYPES_H): Define
11671         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
11672         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
11673         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
11674         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
11675         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
11676         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
11677         * lib/float_.h: Likewise.
11678         * lib/inttypes_.h: Likewise.
11679         * lib/math_.h: Likewise.
11680         * lib/search_.h: Likewise.
11681         * lib/signal_.h: Likewise.
11682         * lib/stdint_.h: Likewise.
11683         * lib/stdio_.h: Likewise.
11684         * lib/stdlib_.h: Likewise.
11685         * lib/string_.h: Likewise.
11686         * lib/sys_stat_.h: Likewise.
11687         * lib/sys_time_.h: Likewise.
11688         * lib/time_.h: Likewise.
11689         * lib/unistd_.h: Likewise.
11690         * lib/wchar_.h: Likewise.
11691         * lib/wctype_.h: Likewise.
11692         * lib/dirent_.h: Likewise.
11693         * lib/iconv_.h: Likewise.
11694         * lib/locale_.h: Likewise.
11695         * lib/netinet_in_.h: Likewise.
11696         * lib/sys_select_.h: Likewise.
11697         * lib/sys_socket_.h: Likewise.
11698         * lib/sysexits_.h: Likewise.
11699         * modules/fcntl (Depends-on): Depend on include_next, not
11700         absolute_header.
11701         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11702         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11703         * modules/fchdir: Likewise.
11704         * modules/float: Likewise.
11705         * modules/iconv_open: Likewise.
11706         * modules/inttypes: Likewise.
11707         * modules/locale: Likewise.
11708         * modules/math: Likewise.
11709         * modules/netinet_in: Likewise.
11710         * modules/search: Likewise.
11711         * modules/signal: Likewise.
11712         * modules/stdint: Likewise.
11713         * modules/stdio: Likewise.
11714         * modules/stdlib: Likewise.
11715         * modules/string: Likewise.
11716         * modules/sys_select: Likewise.
11717         * modules/sys_socket: Likewise.
11718         * modules/sys_stat: Likewise.
11719         * modules/sys_time: Likewise.
11720         * modules/sysexits: Likewise.
11721         * modules/time: Likewise.
11722         * modules/unistd: Likewise.
11723         * modules/wchar: Likewise.
11724         * modules/wctype: Likewise.
11725         * modules/sys_stat: Change maintainer to "all".
11726         * modules/unistd: Likewise.
11727
11728 2007-06-20  Karl Berry  <karl@gnu.org>
11729
11730         * config/srclist.txt: track www changes in license files.
11731
11732 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
11733
11734         * build-aux/bootstrap: Remove stray dot.
11735         Make sure build_aux settings are honored when linking
11736         gnulib_extra_files.
11737
11738 2007-06-19  Eric Blake  <ebb9@byu.net>
11739
11740         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11741         Allow compilation on cygwin.
11742
11743 2007-06-19  Jim Meyering  <jim@meyering.net>
11744
11745         xreadlink-with-size: Remove module.  No longer used.
11746         Ex-callers now use xreadlink or mreadlink-with-size.
11747         * modules/xreadlink-with-size: Remove module.
11748         * lib/xreadlink-with-size.c: Remove file.
11749         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
11750         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
11751         just before the function definition *is* accurate.
11752
11753         Eliminate one way canonicalize_filename_mode could exit.
11754         * lib/canonicalize.c (canonicalize_filename_mode):
11755         Use mreadlink_with_size, not xreadlink_with_size.
11756
11757 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11758
11759         Detect porting problems to FreeBSD/arm, which has time_t wider than
11760         long int.  Original problem reported for GNU diff by Xin Li in
11761         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
11762         * modules/getdate (Depends-on): Add intprops, verify.
11763         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
11764         is an integer type no wider than long int.
11765
11766 2007-06-18  Jim Meyering  <jim@meyering.net>
11767
11768         New module: mreadlink-with-size.
11769         * MODULES.html.sh: Add mreadlink-with-size.
11770         * modules/mreadlink-with-size: New module
11771         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
11772         not xreadlink-with-size.
11773         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
11774
11775 2007-06-16  Bruno Haible  <bruno@clisp.org>
11776
11777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
11778         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
11779         Reported by Gary V. Vaughan <gary@gnu.org>.
11780
11781 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11782
11783         Revamp lchown so that it lives in unistd.h where it belongs.
11784         * lib/lchown.h: Remove.
11785         * lib/dirchownmod.c: Don't include lib/lchown.h.
11786         * lib/fchownat.c: Likewise.
11787         * lib/openat.c: Likewise.
11788         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
11789         does not follow symlinks.
11790         (EOPNOTSUPP): Define if not defined.
11791         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
11792         is defined to 0.
11793         (lchown): New decl.
11794         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
11795         Do not check for lchown decl.
11796         Set REPLACE_LCHOWN.
11797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
11798         REPLACE_LCHOWN.
11799         * modules/chown: Make it clear it follows symlinks.
11800         * modules/lchown: Make it clear it doesn't follow symlinks.
11801         (Files): Remove lib/lchown.h
11802         (Depends-on): Add unistd.
11803         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
11804         (Include): Include <unistd.h>, not "lchown.h".
11805         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
11806         REPLACE_LCHOWN.
11807
11808 2007-06-15  Jim Meyering  <jim@meyering.net>
11809
11810         Change license (GPL to LGPL) of fsusage and dependents.
11811         * modules/fsusage (License): Change to LGPL.
11812         * modules/full-read (License): Likewise.
11813         * modules/full-write (License): Likewise.
11814         * modules/safe-read (License): Likewise.
11815         * modules/safe-write (License): Likewise.
11816
11817 2007-06-14  Ben Pfaff  <blp@gnu.org>
11818
11819         Missing part of allocsa -> malloca transition.
11820         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
11821         gl_MALLOCA.
11822
11823 2007-06-12  Bruno Haible  <bruno@clisp.org>
11824
11825         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
11826         to ia64, x86_64, i386.
11827         Reported by Eric Blake.
11828
11829 2007-06-12  Bruno Haible  <bruno@clisp.org>
11830
11831         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
11832         cross-compiling to x86_64.
11833
11834 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
11835
11836         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
11837         glitch reported by Ralf Wildenhues in
11838         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
11839
11840         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
11841         Vin Shelton.
11842
11843 2007-06-11  Bruno Haible  <bruno@clisp.org>
11844
11845         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
11846         replacement string.
11847         Reported by Eric Blake.
11848
11849 2007-06-10  Bruno Haible  <bruno@clisp.org>
11850
11851         Prepare vasnprintf code for use with Unicode strings.
11852         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
11853         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
11854         TYPE_U32_STRING.
11855         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
11856         a_u32_string variants.
11857         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11858         * lib/printf-args.c: Don't include config.h and the specification
11859         header if PRINTF_FETCHARGS is already defined.
11860         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11861         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
11862         TYPE_U16_STRING, TYPE_U32_STRING.
11863         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
11864         u16_directive, u16_directives, u32_directive, u32_directives): New
11865         types.
11866         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
11867         New declarations.
11868         * lib/printf-parse.c: Don't include config.h and the specification
11869         header if PRINTF_PARSE is already defined. Eliminate the set of
11870         parameters for WIDE_CHAR_VERSION; the user of this file must provide
11871         them now. Include c-ctype.h.
11872         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
11873         directive and CHAR_T_ONLY_ASCII.
11874         * lib/vasnprintf.c: Don't include config.h and the specification header
11875         if VASNPRINTF is already defined.
11876         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
11877         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
11878         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
11879         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
11880         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
11881         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
11882         code accordingly.
11883         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
11884         pad_ourselves also in this case, with the 'c' and 's' directives, and
11885         with a different notion of "width".
11886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
11887
11888 2007-06-10  Bruno Haible  <bruno@clisp.org>
11889
11890         * modules/unistr/u32-mbsnlen: New file.
11891         * lib/unistr/u32-mbsnlen.c: New file.
11892
11893         * modules/unistr/u16-mbsnlen: New file.
11894         * lib/unistr/u16-mbsnlen.c: New file.
11895
11896         * modules/unistr/u8-mbsnlen: New file.
11897         * lib/unistr/u8-mbsnlen.c: New file.
11898
11899         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
11900         declarations.
11901
11902 2007-06-10  Bruno Haible  <bruno@clisp.org>
11903
11904         * lib/string_.h (mbsnlen): New declaration.
11905         * lib/mbsnlen.c: New file.
11906         * m4/mbsnlen.m4: New file.
11907         * modules/mbsnlen: New file.
11908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
11909         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
11910         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
11911
11912 2007-06-10  Bruno Haible  <bruno@clisp.org>
11913
11914         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
11915
11916 2007-06-10  Bruno Haible  <bruno@clisp.org>
11917
11918         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
11919         * lib/mbuiter.h: Likewise.
11920
11921 2007-06-10  Bruno Haible  <bruno@clisp.org>
11922
11923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
11924         declaration.
11925
11926 2007-06-10  Karl Berry  <karl@gnu.org>
11927
11928         * config/srclist.txt: remove gettext entries, Bruno prefers
11929         to update individually.
11930
11931 2007-06-10  Bruno Haible  <bruno@clisp.org>
11932
11933         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
11934         'maxlen'. Ensure only length + width bytes are allocated, not
11935         length + 1 + width.
11936
11937 2007-06-09  Bruno Haible  <bruno@clisp.org>
11938
11939         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
11940         (CHAR_T): Remove macro.
11941         (VASNPRINTF): Update.
11942
11943 2007-06-09  Bruno Haible  <bruno@clisp.org>
11944
11945         * MODULES.html.sh (Unicode string functions): Add the new modules.
11946
11947         * modules/uniconv/u32-conv-to-enc: New file.
11948         * lib/uniconv/u32-conv-to-enc.c: New file.
11949         * modules/uniconv/u32-conv-to-enc-tests: New file.
11950         * tests/uniconv/test-u32-conv-to-enc.c: New file.
11951
11952         * modules/uniconv/u16-conv-to-enc: New file.
11953         * lib/uniconv/u16-conv-to-enc.c: New file.
11954         * lib/uniconv/u-conv-to-enc.h: New file.
11955         * modules/uniconv/u16-conv-to-enc-tests: New file.
11956         * tests/uniconv/test-u16-conv-to-enc.c: New file.
11957
11958         * modules/uniconv/u8-conv-to-enc: New file.
11959         * lib/uniconv/u8-conv-to-enc.c: New file.
11960         * modules/uniconv/u8-conv-to-enc-tests: New file.
11961         * tests/uniconv/test-u8-conv-to-enc.c: New file.
11962
11963         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11964         u32_conv_to_encoding): New declarations.
11965
11966 2007-06-09  Bruno Haible  <bruno@clisp.org>
11967
11968         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
11969
11970 2007-06-09  Bruno Haible  <bruno@clisp.org>
11971
11972         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
11973         * modules/malloca: Renamed from modules/allocsa, updated.
11974         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
11975         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
11976         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
11977         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
11978         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
11979         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
11980         * modules/xmalloca: Renamed from modules/xallocsa, updated.
11981         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
11982         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
11983         * modules/c-strcasestr (Depends-on): Update.
11984         * lib/c-strcasestr.c: Update.
11985         * modules/c-strstr (Depends-on): Update.
11986         * lib/c-strstr.c: Update.
11987         * modules/canonicalize-lgpl (Depends-on): Update.
11988         * lib/canonicalize-lgpl.c: Update.
11989         * modules/clean-temp (Depends-on): Update.
11990         * lib/clean-temp.c: Update.
11991         * modules/csharpcomp (Depends-on): Update.
11992         * lib/csharpcomp.c: Update.
11993         * modules/csharpexec (Depends-on): Update.
11994         * lib/csharpexec.c: Update.
11995         * modules/javacomp (Depends-on): Update.
11996         * lib/javacomp.c: Update.
11997         * modules/javaexec (Depends-on): Update.
11998         * lib/javaexec.c: Update.
11999         * modules/mbscasestr (Depends-on): Update.
12000         * lib/mbscasestr.c: Update.
12001         * modules/mbsstr (Depends-on): Update.
12002         * lib/mbsstr.c: Update.
12003         * modules/setenv (Depends-on): Update.
12004         * lib/setenv.c: Update.
12005         * modules/strcasestr (Depends-on): Update.
12006         * lib/strcasestr.c: Update.
12007         * modules/striconveha (Depends-on): Update.
12008         * lib/striconveha.c: Update.
12009         * modules/relocatable-prog-wrapper (Files): Update.
12010         * lib/relocwrapper.c: Update.
12011         * build-aux/install-reloc: Update.
12012         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
12013
12014 2007-06-08  Bruno Haible  <bruno@clisp.org>
12015
12016         Port to uClibc.
12017         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
12018         * lib/fpurge.c (fpurge): Likewise.
12019         * lib/freading.c (freading): Likewise.
12020         * lib/fseeko.c (rpl_fseeko): Likewise.
12021         * lib/fseterr.c (fseterr): Likewise.
12022         * lib/fwriting.c (fwriting): Likewise.
12023         * tests/test-fflush.c (main): Avoid a failure on uClibc.
12024
12025 2007-06-08  Bruno Haible  <bruno@clisp.org>
12026
12027         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
12028         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
12029         * modules/gettext (Files): Add m4/intlmacosx.m4.
12030
12031 2007-06-07  Bruno Haible  <bruno@clisp.org>
12032
12033         * modules/localename-tests: New file.
12034         * tests/test-localename.c: New file.
12035
12036         New module 'localename'.
12037         * lib/localename.h: New file.
12038         * lib/localename.c: New file, from GNU gettext.
12039         * m4/localename.m4: New file.
12040         * modules/localename: New file.
12041
12042 2007-06-07  Bruno Haible  <bruno@clisp.org>
12043
12044         Work around the lack of <wchar.h> on some builds of uClibc.
12045         * doc/headers/wchar.texi: Update.
12046         * lib/wchar_.h: Include <wchar.h> only if it exists.
12047         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
12048         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
12049         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
12050         doesn't exist.
12051         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
12052         * modules/mbfile (Depends-on): Add wchar.
12053         * modules/mbiter (Depends-on): Likewise.
12054         * modules/mbuiter (Depends-on): Likewise.
12055         Reported by Simon Josefsson.
12056
12057 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12058
12059         Work around problem reported by Steven M. Schweda in
12060         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
12061         Tru64 5.1B with the Compaq compiler environment installed declares
12062         an 'isblank' function but does not define it in the C library.
12063         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
12064         * lib/regex_internal.h (isblank): Likewise.
12065         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
12066         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12067
12068 2007-06-05  Bruno Haible  <bruno@clisp.org>
12069
12070         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
12071         ia64.
12072         * modules/printf-safe: New file.
12073         * modules/fprintf-posix (Depends-on): Add printf-safe.
12074         * modules/printf-posix (Depends-on): Likewise.
12075         * modules/snprintf-posix (Depends-on): Likewise.
12076         * modules/sprintf-posix (Depends-on): Likewise.
12077         * modules/vasnprintf-posix (Depends-on): Likewise.
12078         * modules/vasprintf-posix (Depends-on): Likewise.
12079         * modules/vfprintf-posix (Depends-on): Likewise.
12080         * modules/vprintf-posix (Depends-on): Likewise.
12081         * modules/vsnprintf-posix (Depends-on): Likewise.
12082         * modules/vsprintf-posix (Depends-on): Likewise.
12083         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12084         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
12085         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
12086         "no" on i386, x86_64, ia64.
12087         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
12088         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12089         on i386, x86_64, ia64.
12090         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
12091         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12092         on i386, x86_64, ia64.
12093         * tests/test-vasnprintf-posix.c: Include float.h.
12094         (LDBL80_WORDS): New macro.
12095         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12096         on i386, x86_64, ia64.
12097         * tests/test-vasprintf-posix.c: Include float.h.
12098         (LDBL80_WORDS): New macro.
12099         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12100         on i386, x86_64, ia64.
12101         * tests/test-snprintf-posix.c: Include float.h.
12102         * tests/test-sprintf-posix.c: Likewise.
12103         * tests/test-vsnprintf-posix.c: Likewise.
12104         * tests/test-vsprintf-posix.c: Likewise.
12105
12106 2007-06-05  Bruno Haible  <bruno@clisp.org>
12107
12108         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
12109         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
12110         non-IEEE numbers on i386, x86_64, ia64.
12111         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
12112         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
12113         * tests/test-isnanl.h: Include float.h.
12114         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
12115
12116 2007-06-05  Bruno Haible  <bruno@clisp.org>
12117
12118         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
12119         also the %a / %A. Handle the %a / %A code before this extra handling.
12120
12121 2007-06-05  Bruno Haible  <bruno@clisp.org>
12122
12123         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
12124         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
12125
12126 2007-06-05  Bruno Haible  <bruno@clisp.org>
12127
12128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
12129         typo in variable name.
12130
12131 2007-06-05  Eric Blake  <ebb9@byu.net>
12132
12133         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
12134         Reported by Simon Josefsson.
12135
12136 2007-06-04  Bruno Haible  <bruno@clisp.org>
12137
12138         Avoid test failures on some PowerPC platforms.
12139         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
12140         Define differently for PowerPC.
12141         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
12142         Reported by Gary V. Vaughan <gary@gnu.org>.
12143
12144 2007-06-02  Bruno Haible  <bruno@clisp.org>
12145
12146         Fix test-stdint failure on FreeBSD/ia64.
12147         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
12148         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
12149         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
12150         * doc/headers/stdint.texi: Update.
12151
12152 2007-06-01  Bruno Haible  <bruno@clisp.org>
12153
12154         * tests/test-binary-io.c (main): Pass a third argument to open().
12155         Reported by Gary V. Vaughan <gary@gnu.org>.
12156
12157 2007-06-01  Bruno Haible  <bruno@clisp.org>
12158
12159         * doc/functions/frexpl.texi: Update for mingw.
12160
12161 2007-06-01  Bruno Haible  <bruno@clisp.org>
12162
12163         * tests/test-lseek.c (main): Disable test of errno for invalid third
12164         argument.
12165         * doc/functions/lseek.texi: Update.
12166         Reported by Gary V. Vaughan <gary@gnu.org>.
12167
12168 2007-05-28  Bruno Haible  <bruno@clisp.org>
12169
12170         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
12171
12172 2007-05-31  Eric Blake  <ebb9@byu.net>
12173
12174         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
12175         cross compiling.
12176
12177 2007-05-30  Eric Blake  <ebb9@byu.net>
12178         and Bruno Haible  <bruno@clisp.org>
12179
12180         Work around mingw test failures exposed by m4-1.4.9b.
12181         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
12182         * tests/test-unistd.c: Disable uid_t and git_t tests for the
12183         moment.
12184
12185 2007-05-30  Bruno Haible  <bruno@clisp.org>
12186
12187         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
12188         assuming that they are closed. Needed on HP-UX 11.
12189
12190 2007-05-29  Bruno Haible  <bruno@clisp.org>
12191
12192         Fix a problem with #include_next.
12193         * lib/dirent_.h: Split the double-inclusion guard.
12194         * lib/fcntl_.h: Likewise.
12195         * lib/float_.h: Likewise.
12196         * lib/iconv_.h: Likewise.
12197         * lib/inttypes_.h: Likewise.
12198         * lib/locale_.h: Likewise.
12199         * lib/math_.h: Likewise.
12200         * lib/netinet_in_.h: Likewise.
12201         * lib/search_.h: Likewise.
12202         * lib/signal_.h: Likewise.
12203         * lib/stdint_.h: Likewise.
12204         * lib/stdio_.h: Likewise.
12205         * lib/stdlib_.h: Likewise.
12206         * lib/string_.h: Likewise.
12207         * lib/sys_select_.h: Likewise.
12208         * lib/sys_socket_.h: Likewise.
12209         * lib/sys_stat_.h: Likewise.
12210         * lib/sys_time_.h: Likewise.
12211         * lib/sysexits_.h: Likewise.
12212         * lib/time_.h: Likewise.
12213         * lib/unistd_.h: Likewise.
12214         * lib/wchar_.h: Likewise.
12215         * lib/wctype_.h: Likewise.
12216
12217 2007-05-29  Bruno Haible  <bruno@clisp.org>
12218
12219         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
12220         for the moment.
12221
12222 2007-05-29  Bruno Haible  <bruno@clisp.org>
12223
12224         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
12225         invocation.
12226         Reported by Eric Blake.
12227
12228 2007-05-29  Bruno Haible  <bruno@clisp.org>
12229
12230         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
12231         compiling case.
12232
12233 2007-05-29  Eric Blake  <ebb9@byu.net>
12234             Bruno Haible  <bruno@clisp.org>
12235
12236         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
12237         cross compiles.
12238
12239 2007-05-28  Eric Blake  <ebb9@byu.net>
12240
12241         * modules/closein-tests (test_closein_LDADD): Support test on
12242         cygwin with libtool.
12243
12244 2007-05-28  Bruno Haible  <bruno@clisp.org>
12245
12246         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
12247         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12248         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12249         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12250         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12251         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12252         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12253         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12254         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12255
12256 2007-05-28  Eric Blake  <ebb9@byu.net>
12257
12258         Unconditionally include <config.h> in unit tests.
12259         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
12260         * tests/test-allocsa.c, tests/test-arcfour.c,
12261         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
12262         tests/test-array_list.c, tests/test-array_oset.c,
12263         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
12264         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
12265         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
12266         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
12267         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
12268         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
12269         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
12270         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
12271         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
12272         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
12273         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
12274         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
12275         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
12276         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
12277         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
12278         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12279         test-md5.c, test-memmem.c, test-printf-posix.c,
12280         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12281         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12282         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12283         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12284         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12285         test-vasnprintf-posix2.c, test-vasnprintf.c,
12286         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12287         test-vfprintf-posix.c, test-vprintf-posix.c,
12288         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12289         test-xvasprintf.c: Likewise.
12290
12291 2007-05-28  Bruno Haible  <bruno@clisp.org>
12292
12293         * gnulib-tool (func_import): Remember the --with-tests command-line
12294         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12295         Reported by Eric Blake.
12296
12297 2007-05-28  Bruno Haible  <bruno@clisp.org>
12298
12299         * modules/ftell-tests: New file.
12300         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12301         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12302
12303         * lib/ftell.c: New file.
12304         * modules/ftell: New file.
12305         * m4/ftell.m4: New file.
12306         * doc/functions/ftell.texi: Update.
12307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12308         REPLACE_FTELL.
12309         * lib/stdio_.h (rpl_ftell): New declaration.
12310         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12311         REPLACE_FTELL.
12312
12313 2007-05-28  Eric Blake  <ebb9@byu.net>
12314
12315         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12316
12317 2007-05-28  Bruno Haible  <bruno@clisp.org>
12318
12319         * modules/fseek-tests: New file.
12320         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12321         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12322
12323         * lib/fseek.c: New file.
12324         * modules/fseek: New file.
12325         * m4/fseek.m4: New file.
12326         * doc/functions/fseek.texi: Update.
12327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12328         REPLACE_FSEEK.
12329         * lib/stdio_.h (rpl_fseek): New declaration.
12330         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12331         REPLACE_FSEEK.
12332
12333 2007-05-28  Bruno Haible  <bruno@clisp.org>
12334
12335         * lib/stdio_.h (fflush): More comments.
12336
12337 2007-05-28  Bruno Haible  <bruno@clisp.org>
12338
12339         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12340         runtime test.
12341
12342 2007-05-28  Eric Blake  <ebb9@byu.net>
12343
12344         Improve lseek module.
12345         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12346         * lib/unistd_.h (lseek): Scale back link warning message.
12347         * tests/test-lseek.c: Beef up test.
12348         * tests/test-lseek.sh: Exercise more facets of lseek.
12349         Reported by Bruno Haible.
12350
12351 2007-05-28  Bruno Haible  <bruno@clisp.org>
12352
12353         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12354         to define.
12355
12356 2007-05-27  Bruno Haible  <bruno@clisp.org>
12357
12358         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12359
12360 2007-05-27  Bruno Haible  <bruno@clisp.org>
12361
12362         * modules/openmp: New file.
12363         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12364         Noah Misch.
12365
12366 2007-05-26  Bruno Haible  <bruno@clisp.org>
12367
12368         * modules/chdir-long (Depends-on): Add fchdir.
12369         * modules/chdir-safer (Depends-on): Likewise.
12370         * modules/fts (Depends-on): Likewise.
12371         * modules/fts-lgpl (Depends-on): Likewise.
12372         * modules/openat (Depends-on): Likewise.
12373         * modules/savewd (Depends-on): Likewise.
12374
12375 2007-05-24  Eric Blake  <ebb9@byu.net>
12376
12377         Fix lseek on mingw.
12378         * modules/lseek: New module.
12379         * m4/lseek.m4: New file.
12380         * lib/lseek.c: New file.
12381         * modules/lseek-tests: New file.
12382         * tests/test-lseek.c: New file.
12383         * tests/test-lseek.sh: New file.
12384         * MODULES.html.sh: Document lseek module.
12385         * modules/fflush (Depends-on): Add lseek, fseeko.
12386         * modules/fseeko (Depends-on): Likewise.
12387         * modules/ftello (Depends-on): Likewise.
12388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
12389         broken.
12390         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
12391         broken.
12392         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
12393         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
12394         * lib/ftello.c (rpl_ftello): Likewise.
12395         * tests/test-fseeko.c (main): Test this.
12396         * tests/test-fseeko.sh: Likewise.
12397         * tests/test-ftello.c (main): Likewise.
12398         * tests/test-ftello.sh: Likewise.
12399         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12400         implies replacing fseek.
12401         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12402         HAVE_FTELLO.
12403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12404         * modules/unistd (Makefile.am): Likewise.
12405         * lib/unistd_.h (lseek): Declare a replacement.
12406         * doc/functions/lseek.texi (lseek): Document this fix.
12407         * doc/functions/fseek.texi (fseek): Likewise.
12408         * doc/functions/ftell.texi (ftell): Likewise.
12409
12410 2007-05-24  Bruno Haible  <bruno@clisp.org>
12411
12412         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12413         in the printed representation of a NaN.
12414         * tests/test-vasprintf-posix.c (test_function): Likewise.
12415         * tests/test-snprintf-posix.h (test_function): Likewise.
12416         * tests/test-sprintf-posix.h (test_function): Likewise.
12417         Reported by Eric Blake.
12418
12419 2007-05-23  Eric Blake  <ebb9@byu.net>
12420
12421         Fix fseeko/ftello on cygwin 1.5.24.
12422         * doc/functions/fseeko.texi (fseeko): Document the fix.
12423         * doc/functions/ftello.texi (ftello): Document the fix.
12424         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
12425         * doc/functions/stdout.text (stdout): New file.
12426         * doc/functions/stderr.text (stderr): New file.
12427         * doc/gnulib.texi (Function Substitutes): Use new files.
12428         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
12429         prior to 1.7.0.
12430         * tests/test-ftello.c (main): Likewise for ftello.
12431         * tests/test-fseeko.sh: New file.
12432         * tests/test-ftello.sh: New file.
12433         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
12434         with seekable stdin.
12435         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
12436         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
12437         (gl_REPLACE_FSEEKO): New macro.
12438         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
12439         * modules/fseeko (Files): Distribute fseeko.c.
12440         * modules/ftello (Files): Distribute ftello.c.
12441         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
12442         mode.
12443         * lib/ftello.c (rpl_ftello): New file.
12444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
12445         fseeko, ftello.
12446         (gl_STDIN_LARGE_OFFSET): New macro.
12447         * modules/stdio (Makefile.am): Perform the replacement.
12448         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
12449
12450 2007-05-23  Bruno Haible  <bruno@clisp.org>
12451
12452         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
12453         GNULIB_POSIXCHECK is defined.
12454
12455 2007-05-21  Bruno Haible  <bruno@clisp.org>
12456
12457         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
12458         Check also the output for NaN arguments. When cross-compiling, guess
12459         no on IRIX.
12460         * lib/vasnprintf.c: Update comments.
12461         * tests/test-vasnprintf-posix.c (strisnan): New function.
12462         (test_function): Use it.
12463         * tests/test-vasprintf-posix.c (strisnan): New function.
12464         (test_function): Use it.
12465         * tests/test-snprintf-posix.h (strisnan): New function.
12466         (test_function): Use it.
12467         * tests/test-sprintf-posix.h (strisnan): New function.
12468         (test_function): Use it.
12469         Reported by Eric Blake.
12470
12471 2007-05-20  Bruno Haible  <bruno@clisp.org>
12472
12473         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
12474         numbers that fails on BeOS.
12475         * doc/functions/frexpl.texi: Update.
12476
12477 2007-05-20  Jim Meyering  <jim@meyering.net>
12478
12479         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
12480         forced upon us by glibc-2.6.
12481
12482 2007-05-20  Bruno Haible  <bruno@clisp.org>
12483
12484         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
12485         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
12486         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
12487         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
12488         NEED_PRINTF_INFINITE.
12489         (is_infinitel): New function.
12490         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
12491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
12492         gl_PREREQ_VASNPRINTF_INFINITE.
12493         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
12494         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12495         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
12496         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
12497         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
12498         gl_PREREQ_VASNPRINTF_INFINITE.
12499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12500         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12506         * doc/functions/fprintf.texi: Update.
12507         * doc/functions/printf.texi: Update.
12508         * doc/functions/snprintf.texi: Update.
12509         * doc/functions/sprintf.texi: Update.
12510         * doc/functions/vfprintf.texi: Update.
12511         * doc/functions/vprintf.texi: Update.
12512         * doc/functions/vsnprintf.texi: Update.
12513         * doc/functions/vsprintf.texi: Update.
12514
12515 2007-05-20  Bruno Haible  <bruno@clisp.org>
12516
12517         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
12518         was not found in libc.
12519         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12520
12521 2007-05-20  Bruno Haible  <bruno@clisp.org>
12522
12523         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12524         printed as "-nan" instead of "nan".
12525         * tests/test-vasprintf-posix.c (test_function): Likewise.
12526         * tests/test-snprintf-posix.h (test_function): Likewise.
12527         * tests/test-sprintf-posix.h (test_function): Likewise.
12528         Needed for HP-UX 11.
12529
12530 2007-05-20  Jim Meyering  <jim@meyering.net>
12531
12532         Fix buggy test for the fchownat-deref bug.
12533         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
12534         symlink required for the run-test.  Without it, this test would
12535         always declare that fchownat doesn't work, and client code would
12536         unnecessarily use the replacement function with fixed libc.
12537         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
12538         Reported by Greg Schafer.
12539
12540 2007-05-19  Bruno Haible  <bruno@clisp.org>
12541
12542         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
12543         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
12544         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
12545         Needed for IRIX 6.5 and Solaris 2.5.1.
12546
12547 2007-05-19  Bruno Haible  <bruno@clisp.org>
12548
12549         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
12550         (test_function): Skip tests involving -0.0 on platforms where
12551         -0.0 = 0.0.
12552         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
12553         (test_function): Skip tests involving -0.0 on platforms where
12554         -0.0 = 0.0.
12555         * tests/test-snprintf-posix.h (have_minus_zero): New function.
12556         (test_function): Skip tests involving -0.0 on platforms where
12557         -0.0 = 0.0.
12558         * tests/test-sprintf-posix.h (have_minus_zero): New function.
12559         (test_function): Skip tests involving -0.0 on platforms where
12560         -0.0 = 0.0.
12561         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
12562         tests.
12563         * tests/test-printf-posix.h (test_function): Likewise.
12564         * tests/test-printf-posix.output: Remove all -0.0 related results.
12565         Needed for IRIX 6.5.
12566
12567 2007-05-19  Bruno Haible  <bruno@clisp.org>
12568
12569         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12570         printed as "nan0x7fffffff" instead of "nan".
12571         * tests/test-vasprintf-posix.c (test_function): Likewise.
12572         * tests/test-snprintf-posix.h (test_function): Likewise.
12573         * tests/test-sprintf-posix.h (test_function): Likewise.
12574         * tests/test-fprintf-posix.h (NaN): Remove macro.
12575         (test_function): Remove all NaN related tests.
12576         * tests/test-printf-posix.h (NaN): Remove macro.
12577         (test_function): Remove all NaN related tests.
12578         * tests/test-printf-posix.output: Remove all NaN related results.
12579         Needed for IRIX 6.5.
12580
12581 2007-05-19  Bruno Haible  <bruno@clisp.org>
12582
12583         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
12584         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12585
12586 2007-05-19  Bruno Haible  <bruno@clisp.org>
12587
12588         * lib/float_.h: New file.
12589         * m4/float_h.m4: New file.
12590         * modules/float: New file.
12591         * modules/isnanl (Dependencies): Add float.
12592         * modules/isnanl-nolibm (Dependencies): Likewise.
12593         * modules/mathl (Dependencies): Likewise.
12594         * modules/printf-frexpl (Dependencies): Likewise.
12595         * modules/signbit (Dependencies): Likewise.
12596         * modules/vasnprintf (Dependencies): Likewise.
12597         * doc/headers/float.texi: Update.
12598
12599 2007-05-19  Jim Meyering  <jim@meyering.net>
12600
12601         * lib/utimens.c (gl_futimens): Rename from futimens,
12602         now that glibc-2.6 declares futimens.
12603         * lib/utimens.h: Likewise.
12604
12605 2007-05-19  Bruno Haible  <bruno@clisp.org>
12606
12607         Avoid test failures on mingw.
12608         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
12609         * tests/test-printf-posix.sh: Likewise.
12610         * tests/test-vfprintf-posix.sh: Likewise.
12611         * tests/test-vprintf-posix.sh: Likewise.
12612
12613 2007-05-19  Bruno Haible  <bruno@clisp.org>
12614
12615         Fix *printf result for NaN, Inf, -0.0 on mingw.
12616         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
12617         * lib/vasnprintf.c: Include math.h and isnan.h.
12618         (is_infinite_or_zero): New function.
12619         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
12620         values in the %f, %F, %e, %E, %g, %G directives.
12621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
12622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12623         gl_PRINTF_INFINITE and test its result. Invoke
12624         gl_PREREQ_VASNPRINTF_INFINITE.
12625         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12626         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12627         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12628         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12629         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12630         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12631         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12632         * doc/functions/fprintf.texi: Update.
12633         * doc/functions/printf.texi: Update.
12634         * doc/functions/snprintf.texi: Update.
12635         * doc/functions/sprintf.texi: Update.
12636         * doc/functions/vfprintf.texi: Update.
12637         * doc/functions/vprintf.texi: Update.
12638         * doc/functions/vsnprintf.texi: Update.
12639         * doc/functions/vsprintf.texi: Update.
12640
12641 2007-05-19  Bruno Haible  <bruno@clisp.org>
12642
12643         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
12644         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
12645         Instead of multiplying with 10^k, set extra_zeroes to k.
12646         (scale10_round_long_double): Remove function.
12647
12648 2007-05-18  Bruno Haible  <bruno@clisp.org>
12649
12650         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
12651         introduced on 2007-05-06.
12652
12653 2007-05-18  Bruno Haible  <bruno@clisp.org>
12654
12655         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
12656         %g directives.
12657         * tests/test-vasprintf-posix.c (test_function): Likewise.
12658         * tests/test-snprintf-posix.h (test_function): Likewise.
12659         * tests/test-sprintf-posix.h (test_function): Likewise.
12660
12661 2007-05-18  Bruno Haible  <bruno@clisp.org>
12662
12663         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
12664         (strmatch): New function.
12665         (test_function): Test the %f directive on numbers of various exponents.
12666         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
12667         (strmatch): New function.
12668         (test_function): Test the %f directive on numbers of various exponents.
12669         * tests/test-snprintf-posix.h (strmatch): New function.
12670         (test_function): Test the %f directive on numbers of various exponents.
12671         * tests/test-sprintf-posix.h (strmatch): New function.
12672         (test_function): Test the %f directive on numbers of various exponents.
12673         * tests/test-snprintf-posix.c (SIZEOF): New macro.
12674         * tests/test-sprintf-posix.c (SIZEOF): New macro.
12675         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
12676         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
12677
12678 2007-05-18  Bruno Haible  <bruno@clisp.org>
12679
12680         Add support for 'long double' number output.
12681         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
12682         * lib/vasnprintf.c: Include math.h and float+.h.
12683         (mp_limb_t): New type.
12684         (GMP_LIMB_BITS): New macro.
12685         (mp_twolimb_t): New type.
12686         (GMP_TWOLIMB_BITS): New macro.
12687         (mpn_t): New type.
12688         (multiply, divide, convert_to_decimal, decode_long_double,
12689         scale10_round_long_double, scale10_round_decimal_long_double,
12690         floorlog10l): New functions.
12691         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12692         for the %f, %F, %e, %E, %g, %G directives.
12693         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12694         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12695         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12696         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12697         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12698         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12701         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12702         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12703         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12704         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
12705         * modules/snprintf-posix (Depends-on): Likewise.
12706         * modules/sprintf-posix (Depends-on): Likewise.
12707         * modules/vasnprintf-posix (Depends-on): Likewise.
12708         * modules/vasprintf-posix (Depends-on): Likewise.
12709         * modules/vfprintf-posix (Depends-on): Likewise.
12710         * modules/vsnprintf-posix (Depends-on): Likewise.
12711         * modules/vsprintf-posix (Depends-on): Likewise.
12712         * modules/vasnprintf (Files): Add lib/float+.h.
12713         * doc/functions/fprintf.texi: Update.
12714         * doc/functions/printf.texi: Update.
12715         * doc/functions/snprintf.texi: Update.
12716         * doc/functions/sprintf.texi: Update.
12717         * doc/functions/vfprintf.texi: Update.
12718         * doc/functions/vprintf.texi: Update.
12719         * doc/functions/vsnprintf.texi: Update.
12720         * doc/functions/vsprintf.texi: Update.
12721
12722 2007-05-18  Bruno Haible  <bruno@clisp.org>
12723
12724         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
12725
12726 2007-05-18  Bruno Haible  <bruno@clisp.org>
12727
12728         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
12729         for printing 64-bit integers. Needed for mingw.
12730
12731 2007-05-18  Bruno Haible  <bruno@clisp.org>
12732
12733         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12734         gl_FUNC_FREXPL_WORKS.
12735         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
12736
12737 2007-05-18  Bruno Haible  <bruno@clisp.org>
12738
12739         * modules/frexpl-nolibm-tests: New file.
12740
12741         * modules/frexpl-nolibm: New file.
12742         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
12743
12744 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12745
12746         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
12747         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12748         GCC 4.2, which otherwise issues a lot of warnings.
12749         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
12750         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
12751         Likewise.
12752         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
12753         * modules/iconv_open (iconv.h): Likewise.
12754         * modules/locale (locale.h): Likewise.
12755         * modules/netinet_in (netinet/in.h): Likewise.
12756         * modules/sys_select (sys_select.h): Likewise.
12757         * modules/sys_socket (sys/socket.h): Likewise.
12758         * modules/sys_stat (sys/stat.h): Likewise.
12759         * modules/sysexits (sysexits.h): Likewise.
12760         * modules/unistd (unistd.h): Likewise.
12761
12762 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12763
12764         * modules/closein-tests (Makefile.am): Distribute
12765         `test-closein.sh'.
12766
12767 2007-05-17  Bruno Haible  <bruno@clisp.org>
12768
12769         * tests/test-printf-posix.output: Renamed from
12770         tests/test-fprintf-posix.out.
12771         * modules/fprintf-posix-tests: Update.
12772         * modules/printf-posix-tests: Update.
12773         * modules/vfprintf-posix-tests: Update.
12774         * modules/vprintf-posix-tests: Update.
12775         * tests/test-fprintf-posix.sh: Update.
12776         * tests/test-printf-posix.sh: Update.
12777         * tests/test-vfprintf-posix.sh: Update.
12778         * tests/test-vprintf-posix.sh: Update.
12779         Reported by Ralf Wildenhues.
12780
12781 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12782
12783         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
12784         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12785         GCC 4.2, which otherwise issues a lot of warnings.
12786         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
12787         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
12788         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
12789         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
12790         it should no longer be needed.
12791         * lib/string_.h: Likewise.
12792         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
12793         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
12794         * modules/inttypes (inttypes.h): Likewise.
12795         * modules/math (math.h): Likewise.
12796         * modules/search (search.h): Likewise.
12797         * modules/signal (signal.h): Likewise.
12798         * modules/stdint (stdint.h): Likewise.
12799         * modules/stdio (stdio.h): Likewise.
12800         * modules/stdlib (stdlib.h): Likewise.
12801         * modules/string (string.h): Likewise.
12802         * modules/sys_time (sys/time.h): Likewise.
12803         * modules/time (time.h): Likewise.
12804         * modules/wchar (wchar.h): Likewise.
12805         * modules/wctype (wtype.h): Likewise.
12806
12807 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12808
12809         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
12810
12811 2007-05-13  Bruno Haible  <bruno@clisp.org>
12812
12813         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
12814         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12815         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
12816         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12817         (gl_PREREQ_STRTOK_R): Don't require it here.
12818
12819 2007-05-13  Bruno Haible  <bruno@clisp.org>
12820
12821         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
12822         when used in C++ mode.
12823
12824 2007-05-12  Bruno Haible  <bruno@clisp.org>
12825
12826         * lib/linebuffer.h: Tweak doc.
12827         * lib/linebuffer.c: Likewise.
12828
12829 2007-05-12  James Youngman  <jay@gnu.org>
12830
12831         * lib/linebuffer.c (readlinebuffer_delim): New function,
12832         like readlinebuffer, but use a caller-specified delimiter.
12833         (readlinebuffer): Just call readlinebuffer_delim with '\n'
12834         as the delimiter.
12835         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
12836
12837 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12838
12839         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
12840         * modules/openat (Files): Remove openat-die.c.
12841         (Depends-on): Add openat-die.
12842         * modules/openat-die: New module.
12843
12844 2007-05-06  Bruno Haible  <bruno@clisp.org>
12845
12846         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
12847         Update with info about Cygwin.
12848         * doc/functions/fprintf.texi: Update.
12849         * doc/functions/printf.texi: Update.
12850         * doc/functions/snprintf.texi: Update.
12851         * doc/functions/sprintf.texi: Update.
12852         * doc/functions/vfprintf.texi: Update.
12853         * doc/functions/vprintf.texi: Update.
12854         * doc/functions/vsnprintf.texi: Update.
12855         * doc/functions/vsprintf.texi: Update.
12856         Reported by Eric Blake.
12857
12858 2007-05-06  Bruno Haible  <bruno@clisp.org>
12859
12860         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
12861         padding ourselves for the floating-point directives.
12862         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
12863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
12864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12865         gl_PRINTF_FLAG_ZERO and test its result. Invoke
12866         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
12867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12870         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12871         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12873         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12874         * tests/test-snprintf-posix.h (test_function): Also check the width
12875         and some flags in the %f directive.
12876         * tests/test-sprintf-posix.h (test_function): Likewise.
12877         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12878         * tests/test-vasprintf-posix.c (test_function): Likewise.
12879         * doc/functions/fprintf.texi: Update.
12880         * doc/functions/printf.texi: Update.
12881         * doc/functions/snprintf.texi: Update.
12882         * doc/functions/sprintf.texi: Update.
12883         * doc/functions/vfprintf.texi: Update.
12884         * doc/functions/vprintf.texi: Update.
12885         * doc/functions/vsnprintf.texi: Update.
12886         * doc/functions/vsprintf.texi: Update.
12887
12888 2007-05-06  Bruno Haible  <bruno@clisp.org>
12889
12890         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
12891         pass the ' flag character to sprintf or snprintf.
12892         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
12893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
12894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12895         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
12896         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
12897         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12898         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12900         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12903         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12904         * tests/test-snprintf-posix.h (test_function): Also check the grouping
12905         flag.
12906         * tests/test-sprintf-posix.h (test_function): Likewise.
12907         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12908         * tests/test-vasprintf-posix.c (test_function): Likewise.
12909         * doc/functions/fprintf.texi: Update.
12910         * doc/functions/printf.texi: Update.
12911         * doc/functions/snprintf.texi: Update.
12912         * doc/functions/sprintf.texi: Update.
12913         * doc/functions/vfprintf.texi: Update.
12914         * doc/functions/vprintf.texi: Update.
12915         * doc/functions/vsnprintf.texi: Update.
12916         * doc/functions/vsprintf.texi: Update.
12917
12918 2007-05-01  Bruno Haible  <bruno@clisp.org>
12919
12920         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
12921
12922 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
12923
12924         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
12925         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
12926
12927 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12928
12929         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
12930         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
12931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
12932
12933 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
12934
12935         * lib/argp-help.c (struct hol_entry): New member `ord'.
12936         (HOL_ENTRY_PTRCMP): Use ord for comparison
12937         (hol_sort): Initialize ord.
12938
12939 2007-05-01  Bruno Haible  <bruno@clisp.org>
12940
12941         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
12942         Reported by Eric Blake.
12943         * doc/gnulib.texi (Function Substitutes): Update.
12944
12945 2007-05-01  Bruno Haible  <bruno@clisp.org>
12946
12947         * doc/functions.texi: Remove file, now redundant through
12948         doc/functions/*.texi.
12949
12950 2007-05-01  Bruno Haible  <bruno@clisp.org>
12951
12952         * modules/argp (Depends-on): Add sleep.
12953
12954 2007-05-01  Bruno Haible  <bruno@clisp.org>
12955
12956         * modules/sleep-tests: New file.
12957         * tests/test-sleep.c: New file.
12958
12959         * modules/sleep: New file.
12960         * lib/sleep.c: New file.
12961         * m4/sleep.m4: New file.
12962         * lib/unistd_.h (sleep): New declaration.
12963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
12964         HAVE_SLEEP.
12965         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
12966         * doc/functions/sleep.texi: Document the sleep module.
12967
12968 2007-05-01  Bruno Haible  <bruno@clisp.org>
12969
12970         * lib/sigprocmask.h: Remove file.
12971         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
12972         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
12973         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
12974         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
12975         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12976         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
12977         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
12978         HAVE_SIGSET_T as a shell variable.
12979         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
12980         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
12981         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
12982         (Depends-on): Add signal. Remove verify.
12983         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
12984         (Include): Mention <signal.h> instead of sigprocmask.h.
12985         * NEWS: Mention the change.
12986         * lib/fatal-signal.c: Don't include sigprocmask.h.
12987
12988 2007-05-01  Bruno Haible  <bruno@clisp.org>
12989
12990         * modules/signal: New file.
12991         * lib/signal_.h: New file.
12992         * m4/signal_h.m4: New file.
12993
12994 2007-05-01  Bruno Haible  <bruno@clisp.org>
12995
12996         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
12997         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
12998         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
12999         HAVE_WCTYPE_CTMP_BUG into wctype.h.
13000
13001 2007-05-01  Bruno Haible  <bruno@clisp.org>
13002
13003         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
13004         configure time.
13005         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
13006         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
13007         * modules/sys_stat (Makefile.am): Substitute their values into
13008         sys/stat.h.
13009
13010 2007-05-01  Bruno Haible  <bruno@clisp.org>
13011
13012         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
13013         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
13014         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
13015
13016 2007-05-01  Bruno Haible  <bruno@clisp.org>
13017
13018         * doc/header/assert.texi: Undo last change: don't mention the gnulib
13019         'assert' module here.
13020
13021 2007-05-01  Bruno Haible  <bruno@clisp.org>
13022
13023         * doc/functions/*.texi: New files.
13024         * doc/functions/google-ranking.txt: New file.
13025         * doc/gnulib.texi (Function Substitutes): New chapter.
13026         (ctime, inet_ntoa): Remove sections.
13027         * doc/ctime.texi: Remove file.
13028         * doc/inet_ntoa.texi: Remove file.
13029         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
13030         dependencies.
13031         (%.info): New rule, specifying a --reference-limit.
13032
13033 2007-05-01  Bruno Haible  <bruno@clisp.org>
13034
13035         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
13036
13037 2007-05-01  Bruno Haible  <bruno@clisp.org>
13038
13039         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
13040         the portability of 'mkdir' to mingw systems.
13041
13042 2007-05-01  Bruno Haible  <bruno@clisp.org>
13043
13044         * doc/headers/google-ranking.txt: New file.
13045
13046 2007-04-30  Eric Blake  <ebb9@byu.net>
13047
13048         Prefer fseeko to fseek.
13049         * modules/getpass (Depends-on): Add fseeko.
13050         * lib/getpass.c (getpass): Use fseeko, not fseek.
13051
13052 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
13053
13054         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
13055         assumes the sorting is stable, while most qsort implementations
13056         are not.  Use argument addresses to ensure they never compare as
13057         equal.
13058
13059         * tests/test-argp-2.sh (usage-indent test): Fix output
13060         (func_compare): Restore diff options
13061         * tests/test-argp.c: Restore #include "progname.h"
13062
13063 2007-04-29  Bruno Haible  <bruno@clisp.org>
13064
13065         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
13066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13067         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
13068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13069         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
13070         (configure.ac): Define CHECK_SNPRINTF_POSIX.
13071         (TESTS, check_PROGRAMS): Add test-snprintf.
13072         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
13073         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
13074         (TESTS, check_PROGRAMS): Add test-vsnprintf.
13075         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
13076         assertions that fail on HP-UX, OSF/1, or IRIX.
13077         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
13078
13079 2007-04-29  Bruno Haible  <bruno@clisp.org>
13080
13081         * MODULES.html.sh (posix_functions): Remove 'contents'.
13082
13083 2007-04-29  Karl Berry  <karl@gnu.org>
13084
13085         * config/srclist.txt (gendocs_template_min): new entry.
13086
13087 2007-04-29  Bruno Haible  <bruno@clisp.org>
13088
13089         Work around fpurge bug on BSD systems.
13090         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
13091         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
13092         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
13093         fpurge to rpl_fpurge if the system already has this function.
13094         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
13095         the case where the system already has this function. Correct invariants
13096         on BSD systems.
13097         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
13098         BSD systems.
13099
13100 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
13101
13102         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
13103         proposed by Sven Verdoolaege.
13104
13105         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
13106         options.
13107         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
13108         (usage and help tests): Update
13109
13110 2007-04-29  Bruno Haible  <bruno@clisp.org>
13111
13112         * tests/test-fflush.c (main): Use a file of size 17, not 10.
13113         Print more information in case of failure. Disable a test on BeOS.
13114
13115 2007-04-29  Bruno Haible  <bruno@clisp.org>
13116
13117         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
13118         This helps debugging on systems on which no gdb is available.
13119
13120 2007-04-29  Bruno Haible  <bruno@clisp.org>
13121
13122         * lib/freading.h: Improve comments.
13123         * lib/fwriting.h: Likewise.
13124         * tests/test-freading.c (main): Don't check freading immediately after
13125         repositioning. Needed for glibc.
13126
13127 2007-04-29  Bruno Haible  <bruno@clisp.org>
13128
13129         * lib/freading.c (freading): Trivial simplification.
13130
13131 2007-04-28  Bruno Haible  <bruno@clisp.org>
13132
13133         * tests/test-fwriting.c (main): Also test the interaction between
13134         fflush and fwriting.
13135         * modules/fwriting-tests (Depends-on): Add fflush.
13136
13137         * tests/test-freading.c (main): Also test the interaction between
13138         fflush and freading.
13139         * modules/freading-tests (Depends-on): Add fflush.
13140
13141 2007-04-28  Bruno Haible  <bruno@clisp.org>
13142
13143         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
13144         fseeko and ftello.
13145         Suggested by Eric Blake.
13146
13147 2007-04-28  Jim Meyering  <jim@meyering.net>
13148
13149         Avoid false-negative in gl_STDINT_H's C99 conformance test.
13150         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
13151         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
13152
13153 2007-04-27  Eric Blake  <ebb9@byu.net>
13154
13155         * doc/headers/assert.texi (assert.h): Document assert module use.
13156
13157 2007-04-27  Bruno Haible  <bruno@clisp.org>
13158
13159         * doc/headers/*.texi: New files.
13160         * doc/gnulib.texi (Header File Substitutes): New chapter.
13161         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
13162         dependencies.
13163         (standards.info ,standards.html, standards.dvi): Update dependencies.
13164         (mostlyclean, clean): New targets.
13165
13166 2007-04-27  Bruno Haible  <bruno@clisp.org>
13167
13168         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
13169         * modules/sysexits (Files, Makefile.am): Update.
13170
13171         * lib/sys_socket_.h: Renamed from lib/socket_.h.
13172         * modules/sys_socket (Files, Makefile.am): Update.
13173
13174         * lib/sys_stat_.h: Renamed from lib/stat_.h.
13175         * modules/sys_stat (Files, Makefile.am): Update.
13176
13177 2007-04-27  Eric Blake  <ebb9@byu.net>
13178
13179         * lib/freading.h: Improve comments.
13180         * lib/fwriting.h: Likewise.
13181         * lib/fflush.c: Likewise.
13182
13183         Fix closein for mingw.
13184         * modules/closein-tests: Add tests for closein.
13185         * tests/test-closein.c: New file.
13186         * tests/test-closein.sh: Likewise.
13187         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
13188         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
13189
13190 2007-04-27  Bruno Haible  <bruno@clisp.org>
13191
13192         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
13193         version is < 6.
13194         * lib/math_.h [__DECC]: Likewise.
13195         * lib/stdio_.h [__DECC]: Likewise.
13196         * lib/stdlib_.h [__DECC]: Likewise.
13197         * lib/string_.h [__DECC]: Likewise.
13198         * lib/time_.h [__DECC]: Likewise.
13199         * lib/wchar_.h [__DECC]: Likewise.
13200         * lib/wctype_.h [__DECC]: Likewise.
13201
13202 2007-04-27  Bruno Haible  <bruno@clisp.org>
13203
13204         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
13205
13206 2007-04-27  Bruno Haible  <bruno@clisp.org>
13207
13208         * lib/fflush.c: Add comments.
13209         * modules/fpurge-tests (Depends-on): Add fflush.
13210         * modules/freadable-tests (Depends-on): Likewise.
13211         * modules/fwritable-tests (Depends-on): Likewise.
13212
13213 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
13214
13215         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
13216         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
13217         Report by Bruno Haible <bruno@clisp.org>.
13218
13219 2007-04-26  Eric Blake  <ebb9@byu.net>
13220
13221         Fix fflush on mingw.
13222         * modules/fflush (Depends-on): Add freading.
13223         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
13224         but unread data.
13225
13226 2007-04-26  Eric Blake  <ebb9@byu.net>
13227         and Bruno Haible  <bruno@clisp.org>
13228
13229         Implement freading and fwriting.
13230         * lib/freading.c: New file.
13231         * lib/freading.h: Likewise.
13232         * m4/freading.m4: Likewise.
13233         * modules/freading: Likewise.
13234         * modules/freading-tests: Likewise.
13235         * tests/test-freading.c: Likewise.
13236         * lib/fwriting.c: New file.
13237         * lib/fwriting.h: Likewise.
13238         * m4/fwriting.m4: Likewise.
13239         * modules/fwriting: Likewise.
13240         * modules/fwriting-tests: Likewise.
13241         * tests/test-fwriting.c: Likewise.
13242         * MODULES.html.sh (File stream based Input/Output): Mention them.
13243
13244 2007-04-26  Bruno Haible  <bruno@clisp.org>
13245
13246         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
13247         'long' when we assume it.
13248         Suggested by Eric Blake.
13249
13250 2007-04-26  Bruno Haible  <bruno@clisp.org>
13251
13252         Ensure fseeko, ftello are declared on glibc systems.
13253         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
13254         * modules/fseeko (configure.ac-early): Likewise.
13255         * modules/ftello (configure.ac-early): Likewise.
13256         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
13257         AC_FUNC_FSEEKO for this.
13258         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
13259         (gl_CHECK_FSEEKO): Remove macro.
13260
13261 2007-04-26  Bruno Haible  <bruno@clisp.org>
13262
13263         * tests/test-fflush.c (main): Also check the ftell result after
13264         fflush and fseek/fseeko.
13265         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
13266         file descriptor position cache in the stream.
13267         * lib/fseeko.c (rpl_fseeko): Likewise.
13268
13269 2007-04-26  Bruno Haible  <bruno@clisp.org>
13270
13271         * modules/fflush-tests (Depends-on): Add fseeko.
13272
13273 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
13274             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13275
13276         * lib/argz_.h: ensure error_t definition is obtained in same
13277         mechanism system argz.h would have.
13278         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13279         argz facilities are known bad.  Err on the side of caution if
13280         cross-compiling.
13281
13282 2007-04-25  Eric Blake  <ebb9@byu.net>
13283
13284         * lib/fpurge.c (includes): Use stdlib.h for free.
13285         * tests/test-fflush.c (main): Also test fflush-fseeko.
13286
13287 2007-04-25  Bruno Haible  <bruno@clisp.org>
13288
13289         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13290         * lib/fseeko.c: New file.
13291         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13292         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13293         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13294         gl_FUNC_FSEEKO.
13295         (gl_FUNC_FSEEKO): Invoke it.
13296         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13297         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13298         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13299
13300 2007-04-25  Bruno Haible  <bruno@clisp.org>
13301
13302         * modules/fflush (Depends-on): Add ftello.
13303
13304 2007-04-25  Bruno Haible  <bruno@clisp.org>
13305
13306         * modules/ftello-tests: New file.
13307         * tests/test-ftello.c: New file.
13308
13309         * modules/ftello: New file.
13310         * m4/ftello.m4: New file.
13311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13312         HAVE_FTELLO.
13313         * lib/stdio_.h (ftello): New declaration.
13314         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13315         HAVE_FTELLO.
13316
13317 2007-04-25  Bruno Haible  <bruno@clisp.org>
13318
13319         * modules/fseeko-tests: New file.
13320         * tests/test-fseeko.c: New file.
13321
13322         * modules/fseeko: New file.
13323         * m4/fseeko.m4: New file.
13324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13325         HAVE_FSEEKO.
13326         * lib/stdio_.h (fseeko): New declaration.
13327         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13328         HAVE_FSEEKO.
13329
13330 2007-04-25  Bruno Haible  <bruno@clisp.org>
13331
13332         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13333
13334 2007-04-25  Bruno Haible  <bruno@clisp.org>
13335
13336         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13337         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13338         * tests/test-unistd.c: Likewise.
13339         * tests/test-fcntl.c: Likewise.
13340
13341 2007-04-23  Eric Blake  <ebb9@byu.net>
13342
13343         * lib/fflush.c: Fix missing include.
13344         Reported by Bruno Haible.
13345
13346 2007-04-23  Bruno Haible  <bruno@clisp.org>
13347
13348         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13349         Reported by Eric Blake.
13350
13351 2007-04-23  Bruno Haible  <bruno@clisp.org>
13352
13353         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13354
13355 2007-04-23  Bruno Haible  <bruno@clisp.org>
13356
13357         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13358
13359 2007-04-23  Bruno Haible  <bruno@clisp.org>
13360
13361         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13362         Needed on HP-UX 11.
13363
13364 2007-04-16  Eric Blake  <ebb9@byu.net>
13365
13366         Make fflush rely on fpurge.
13367         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13368         open coding all variants.
13369         * modules/fflush (Depends-on): Add fpurge and unistd.
13370         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13371         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13372
13373         Fix --with-tests compilation on cygwin.
13374         * modules/argmatch-tests (Makefile.am): List gnulib library first
13375         in LDADD.
13376         * modules/argp-tests (Makefile.am): Likewise.
13377         * modules/array-list-tests (Makefile.am): Likewise.
13378         * modules/array-oset-tests (Makefile.am): Likewise.
13379         * modules/avltree-list-tests (Makefile.am): Likewise.
13380         * modules/avltree-oset-tests (Makefile.am): Likewise.
13381         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13382         * modules/carray-list-tests (Makefile.am): Likewise.
13383         * modules/dirname-tests (Makefile.am): Likewise.
13384         * modules/frexp-tests (Makefile.am): Likewise.
13385         * modules/isnanl-tests (Makefile.am): Likewise.
13386         * modules/linked-list-tests (Makefile.am): Likewise.
13387         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13388         * modules/lock-tests (Makefile.am): Likewise.
13389         * modules/rbtree-list-tests (Makefile.am): Likewise.
13390         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13391         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13392         * modules/tls-tests (Makefile.am): Likewise.
13393         * modules/tsearch-tests (Makefile.am): Likewise.
13394         * modules/xvasprintf-tests (Makefile.am): Likewise.
13395
13396         Fix fpurge for cygwin.
13397         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13398         value.
13399         * modules/fpurge-tests (Depends-on): Clean up trash.
13400
13401 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13402
13403         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13404
13405         * m4/autobuild.m4: Re-indent.
13406
13407 2007-04-13  Bruno Haible  <bruno@clisp.org>
13408
13409         * modules/fpurge-tests: New file.
13410         * tests/test-fpurge.c: New file.
13411
13412         * modules/fpurge: New file.
13413         * lib/fpurge.h: New file.
13414         * lib/fpurge.c: New file.
13415         * m4/fpurge.m4: New file.
13416
13417 2007-04-13  Bruno Haible  <bruno@clisp.org>
13418
13419         * modules/fbufmode-tests: New file.
13420         * tests/test-fbufmode.c: New file.
13421
13422         * modules/fbufmode: New file.
13423         * lib/fbufmode.h: New file.
13424         * lib/fbufmode.c: New file.
13425         * m4/fbufmode.m4: New file.
13426
13427 2007-04-13  Bruno Haible  <bruno@clisp.org>
13428
13429         * modules/fwritable-tests: New file.
13430         * tests/test-fwritable.c: New file.
13431
13432         * modules/fwritable: New file.
13433         * lib/fwritable.h: New file.
13434         * lib/fwritable.c: New file.
13435         * m4/fwritable.m4: New file.
13436
13437 2007-04-13  Bruno Haible  <bruno@clisp.org>
13438
13439         * modules/freadable-tests: New file.
13440         * tests/test-freadable.c: New file.
13441
13442         * modules/freadable: New file.
13443         * lib/freadable.h: New file.
13444         * lib/freadable.c: New file.
13445         * m4/freadable.m4: New file.
13446
13447 2007-04-13  Bruno Haible  <bruno@clisp.org>
13448
13449         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
13450         MOSTLYCLEANFILES.
13451
13452 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13453
13454         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
13455         gzip bootstrap.conf to avoid dragging in i18n machinery.
13456         (gnulib_tool_option): Use it.
13457
13458 2007-04-13  Bruno Haible  <bruno@clisp.org>
13459
13460         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
13461         %F directives.
13462         * tests/test-vasprintf-posix.c (test_function): Likewise.
13463         * tests/test-snprintf-posix.h (test_function): Likewise.
13464         * tests/test-sprintf-posix.h (test_function): Likewise.
13465         * tests/test-fprintf-posix.h (test_function): Likewise.
13466         * tests/test-printf-posix.h (test_function): Likewise.
13467         * tests/test-fprintf-posix.out: Likewise.
13468
13469 2007-04-13  Bruno Haible  <bruno@clisp.org>
13470
13471         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
13472         * modules/tls-tests (configure.ac): Likewise.
13473         Reported by Arto C. Nirkko <anirkko@insel.ch>.
13474
13475 2007-04-13  Bruno Haible  <bruno@clisp.org>
13476
13477         * lib/tls.c (glthread_tls_get): Fix return type.
13478         Patch by Arto C. Nirkko <anirkko@insel.ch>.
13479
13480 2007-04-12  Eric Blake  <ebb9@byu.net>
13481
13482         * modules/gettime (Depends-on): Remove gettime.
13483         Reported by Dmitry V. Levin.
13484
13485 2007-04-12  Bruno Haible  <bruno@clisp.org>
13486
13487         * modules/fflush (Include): Mention <stdio.h>.
13488         * modules/strtoimax (Include): Mention <inttypes.h>.
13489         * modules/strtoumax (Include): Likewise.
13490
13491 2007-04-12  Eric Blake  <ebb9@byu.net>
13492
13493         * .cvsignore: New file.
13494         * .gitignore: Likewise.
13495
13496 2007-04-12  Bruno Haible  <bruno@clisp.org>
13497
13498         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
13499         not before, since $(LDADD) often contains libgnu.a.
13500         * modules/striconv-tests (test_striconv_LDADD): Likewise.
13501         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
13502         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
13503         Needed on Cygwin.
13504
13505 2007-04-12  Eric Blake  <ebb9@byu.net>
13506
13507         Work around glibc's failure to flush stdin on fclose.
13508         * lib/closein.c (close_stdin): Flush stdin before closing.
13509
13510         Work around glibc's failure to reset seekable stdin on exit.
13511         * modules/closein: New module.
13512         * lib/closein.c: New file.
13513         * lib/closein.h: Likewise.
13514         * m4/closein.m4: Likewise.
13515         * MODULES.html.sh (File stream based Input/Output): Document it.
13516
13517 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13518
13519         * gnulib-tool: Rename generated 'autobuild' script to
13520         'do-autobuild' in --create-megatestdir output.
13521
13522         * doc/gnulib.texi (Build robot for gnulib): Fix.
13523
13524 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13525
13526         * modules/sysexits (Depends-on): Add absolute-header.
13527
13528 2007-04-12  Eric Blake  <ebb9@byu.net>
13529
13530         No need to preserve errno on success.
13531         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
13532         Reported by Bruno Haible.
13533
13534 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13535
13536         * MODULES.html.sh (Support for maintaining and releasing
13537         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
13538
13539 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13540
13541         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
13542
13543 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13544
13545         * modules/autobuild: New module.
13546
13547         * m4/autobuild.m4: New file.
13548
13549 2007-04-11  Bruno Haible  <bruno@clisp.org>
13550
13551         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
13552         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
13553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
13554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
13555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13556         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13557         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13559         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13560         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13561         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
13562         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13563         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
13565         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13566         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
13568         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13569         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13570         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
13571         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13572         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13573         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
13574         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13575         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
13577         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13578         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13579         Reported by Eric Blake.
13580
13581 2007-04-11  Bruno Haible  <bruno@clisp.org>
13582
13583         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
13584
13585 2007-04-10  Bruno Haible  <bruno@clisp.org>
13586
13587         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
13588         for NaN and Infinity. Needed on FreeBSD 6.1.
13589         * tests/test-vasnprintf-posix.c (test_function): Undo last change
13590         regarding results for "%010a" of Infinity and NaN.
13591         * tests/test-vasprintf-posix.c (test_function): Likewise.
13592         * tests/test-snprintf-posix.h (test_function): Likewise.
13593         * tests/test-sprintf-posix.h (test_function): Likewise.
13594         * tests/test-fprintf-posix.h (test_function): Likewise.
13595         * tests/test-printf-posix.h (test_function): Likewise.
13596         * tests/test-fprintf-posix.out: Likewise.
13597
13598 2007-04-10  Bruno Haible  <bruno@clisp.org>
13599
13600         * modules/locale-tests: New file.
13601         * tests/test-locale.c: New file.
13602
13603         * modules/locale: New file.
13604         * lib/locale_.h: New file.
13605         * m4/locale_h.m4: New file.
13606
13607 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13608             Bruno Haible  <bruno@clisp.org>
13609
13610         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
13611         be determined, test for availability of the copysignf, copysign,
13612         copysignl functions.
13613         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
13614         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
13615         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
13616
13617 2007-04-09  Eric Blake  <ebb9@byu.net>
13618
13619         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
13620         * modules/stdio (Makefile.am): Support fflush.
13621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13622         * modules/fflush: New file.
13623         * lib/fflush.c: Likewise.
13624         * m4/fflush.m4: Likewise.
13625         * modules/fflush-tests: New test.
13626         * tests/test-fflush.c: Likewise.
13627         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
13628
13629 2007-04-06  Bruno Haible  <bruno@clisp.org>
13630
13631         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
13632         (VASNPRINTF): Use signbit for faster determination whether to print a
13633         minus sign.
13634         * modules/vasnprintf (Files): Remove lib/float+.h.
13635         * modules/fprintf-posix (Depends-on): Add signbit.
13636         * modules/snprintf-posix (Depends-on): Likewise.
13637         * modules/sprintf-posix (Depends-on): Likewise.
13638         * modules/vasnprintf-posix (Depends-on): Likewise.
13639         * modules/vasprintf-posix (Depends-on): Likewise.
13640         * modules/vfprintf-posix (Depends-on): Likewise.
13641         * modules/vsnprintf-posix (Depends-on): Likewise.
13642         * modules/vsprintf-posix (Depends-on): Likewise.
13643
13644 2007-04-06  Bruno Haible  <bruno@clisp.org>
13645
13646         * tests/test-frexp.c (main): Test also the sign bit of zero results.
13647         * tests/test-frexpl.c (main): Likewise.
13648         * tests/test-ldexpl.c (main): Likewise.
13649         * modules/frexp-tests (Depends-on): Add signbit.
13650         * modules/frexpl-tests (Depdends-on): Likewise.
13651         * modules/ldexpl-tests (Depdends-on): Likewise.
13652
13653 2007-04-06  Bruno Haible  <bruno@clisp.org>
13654
13655         * modules/signbit-tests: New file.
13656         * tests/test-signbit.c: New file.
13657
13658         * modules/signbit: New file.
13659         * lib/signbitf.c: New file.
13660         * lib/signbitd.c: New file.
13661         * lib/signbitl.c: New file.
13662         * m4/signbit.m4: New file.
13663         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
13664         (signbit): New macro.
13665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
13666         REPLACE_SIGNBIT.
13667         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
13668         REPLACE_FREXPL into math.h.
13669
13670 2007-04-06  Bruno Haible  <bruno@clisp.org>
13671
13672         * modules/isnanf-nolibm-tests: New file.
13673         * tests/test-isnanf.c: New file.
13674
13675         * modules/isnanf-nolibm: New file.
13676         * lib/isnanf.h: New file.
13677         * lib/isnanf.c: New file.
13678         * lib/isnan.c: Consider the USE_FLOAT macro.
13679         * m4/isnanf.m4: New file.
13680
13681 2007-04-06  Bruno Haible  <bruno@clisp.org>
13682
13683         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
13684         (Link): New section.
13685
13686         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
13687
13688 2007-04-06  Bruno Haible  <bruno@clisp.org>
13689
13690         Assume the 'long double' type.
13691         * m4/longdouble.m4: Remove file.
13692         * config/srclist.txt: Don't mention longdouble.m4.
13693         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13694         * lib/float+.h: Likewise.
13695         * lib/frexp.c: Likewise.
13696         * lib/printf-args.h: Likewise.
13697         * lib/printf-args.c: Likewise.
13698         * lib/printf-frexp.c: Likewise.
13699         * lib/printf-parse.c: Likewise.
13700         * lib/vasnprintf.c: Likewise.
13701         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13702         * m4/intl.m4: Likewise.
13703         * m4/isnanl.m4: Likewise.
13704         * m4/printf.m4: Likewise.
13705         * m4/printf-frexpl.m4: Likewise.
13706         * m4/vasnprintf.m4: Likewise.
13707         * modules/allocsa (Files): Remove m4/longdouble.m4.
13708         * modules/gettext (Files): Likewise.
13709         * modules/relocatable-prog-wrapper (Files): Likewise.
13710         * modules/vasnprintf (Files): Likewise.
13711         * modules/isnanl (Files): Likewise.
13712         (Include): Simplify.
13713         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
13714         (Include): Simplify.
13715         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
13716         (Include): Simplify.
13717         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
13718         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13719         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
13720         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13721         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13722         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13723         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
13724         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13725         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13726         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13727         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
13728         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13729         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
13730         * tests/test-isnanl.c: Likewise.
13731         * tests/test-snprintf-posix.h: Likewise.
13732         * tests/test-sprintf-posix.h: Likewise.
13733         * tests/test-vasnprintf-posix.c: Likewise.
13734         * tests/test-vasnprintf-posix2.c: Likewise.
13735         * tests/test-vasprintf-posix.c: Likewise.
13736
13737 2007-04-06  Bruno Haible  <bruno@clisp.org>
13738
13739         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
13740         * lib/math_.h [__DECC]: Include the overridden include file through
13741         #include_next, outside the double-inclusion guard.
13742         * lib/stdio_.h [__DECC]: Likewise.
13743         * lib/stdlib_.h [__DECC]: Likewise.
13744         * lib/string_.h [__DECC]: Likewise.
13745         * lib/time_.h [__DECC]: Likewise.
13746         * lib/wchar_.h [__DECC]: Likewise.
13747         * lib/wctype_.h [__DECC]: Likewise.
13748         * lib/inttypes_.h [__DECC]: Likewise.
13749         Reported by Albert Chin <china@thewrittenword.com> in
13750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
13751
13752 2007-04-04  Eric Blake  <ebb9@byu.net>
13753
13754         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
13755         1.5.x.
13756
13757 2007-04-04  Bruno Haible  <bruno@clisp.org>
13758
13759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
13760         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
13761
13762 2007-04-04  Bruno Haible  <bruno@clisp.org>
13763
13764         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
13765         results for "%010a" of Infinity and NaN.
13766         * tests/test-vasprintf-posix.c (test_function): Likewise.
13767         * tests/test-snprintf-posix.h (test_function): Likewise.
13768         * tests/test-sprintf-posix.h (test_function): Likewise.
13769         * tests/test-fprintf-posix.h (test_function): Remove these tests.
13770         * tests/test-printf-posix.h (test_function): Likewise.
13771         * tests/test-fprintf-posix.out: Update.
13772         Needed for FreeBSD 6.1.
13773
13774 2007-04-04  Bruno Haible  <bruno@clisp.org>
13775
13776         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
13777         directly used by the gnulib modules nor by gnulib-tool.
13778
13779 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13780
13781         * DEPENDENCIES: Give overall description of version dependency
13782         desirability.  Use more-typical names for apps.
13783         Add shell, coreutils, diffutils, grep, tar, gzip.
13784
13785 2007-04-04  Simon Josefsson  <simon@josefsson.org>
13786
13787         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
13788
13789 2007-04-04  Karl Berry  <karl@gnu.org>
13790
13791         * MODULES.html.sh (func_module): missing '.
13792
13793 2007-04-03  Bruno Haible  <bruno@clisp.org>
13794
13795         * modules/argmatch-tests (Makefile.am): New variable
13796         test_argmatch_LDADD.
13797         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
13798         * modules/array-list-tests (Makefile.am): New variable
13799         test_array_list_LDADD.
13800         * modules/array-oset-tests (Makefile.am): New variable
13801         test_array_oset_LDADD.
13802         * modules/avltree-list-tests (Makefile.am): New variable
13803         test_avltree_list_LDADD.
13804         * modules/avltree-oset-tests (Makefile.am): New variable
13805         test_avltree_oset_LDADD.
13806         * modules/avltreehash-list-tests (Makefile.am): New variable
13807         test_avltreehash_list_LDADD.
13808         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
13809         test_canonicalize_lgpl_LDADD.
13810         * modules/carray-list-tests (Makefile.am): New variable
13811         test_carray_list_LDADD.
13812         * modules/dirname-tests (Makefile.am): New variable
13813         test_dirname_LDADD.
13814         * modules/linked-list-tests (Makefile.am): New variable
13815         test_linked_list_LDADD.
13816         * modules/linkedhash-list-tests (Makefile.am): New variable
13817         test_linkedhash_list_LDADD.
13818         * modules/rbtree-list-tests (Makefile.am): New variable
13819         test_rbtree_list_LDADD.
13820         * modules/rbtree-oset-tests (Makefile.am): New variable
13821         test_rbtree_oset_LDADD.
13822         * modules/rbtreehash-list-tests (Makefile.am): New variable
13823         test_rbtreehash_list_LDADD.
13824         * modules/xvasprintf-tests (Makefile.am): New variable
13825         test_xvasprintf_LDADD.
13826         Reported by Eric Blake.
13827
13828 2007-04-03  Eric Blake  <ebb9@byu.net>
13829
13830         * DEPENDENCIES: Weaken m4 requirements.
13831
13832 2007-04-03  Bruno Haible  <bruno@clisp.org>
13833
13834         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
13835         * modules/isnanl-tests (configure.ac): Likewise.
13836
13837 2007-04-03  Ben Pfaff  <blp@gnu.org>
13838
13839         * modules/iconv_open: Add $(srcdir)/ to source directory
13840         references in Makefile fragments that call gperf, to fix VPATH
13841         builds.
13842
13843 2007-04-03  Bruno Haible  <bruno@clisp.org>
13844
13845         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
13846         * lib/ldexpl.c: Undo last change.
13847
13848 2007-04-03  Bruno Haible  <bruno@clisp.org>
13849
13850         * modules/printf-frexpl (Depends-on): Undo last change.
13851         (Files): Add m4/ldexpl.m4.
13852
13853 2007-04-03  Bruno Haible  <bruno@clisp.org>
13854
13855         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
13856         * modules/isnanl (Link): New section.
13857
13858         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
13859         * modules/frexp (Link): New section.
13860
13861         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
13862         * modules/frexpl (Link): New section.
13863
13864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
13865         * modules/ldexpl (Link): New section.
13866
13867 2007-04-03  Bruno Haible  <bruno@clisp.org>
13868
13869         * modules/TEMPLATE-EXTENDED: New file.
13870         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
13871
13872 2007-04-03  Bruno Haible  <bruno@clisp.org>
13873
13874         * DEPENDENCIES: New file.
13875         Suggested by Simon Josefsson.
13876
13877 2007-04-03  Bruno Haible  <bruno@clisp.org>
13878
13879         * doc/gnulib.texi: Escape @.
13880
13881 2007-04-03  James Youngman  <jay@gnu.org>
13882         and Paul Eggert  <eggert@cs.ucla.edu>
13883
13884         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
13885         birthtime on all systems that have birthtime, not just those which
13886         use st_birthtimensec rather than st_birthtim.  Putting zero in
13887         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
13888         that the birth time is not available for files on an NFS mount.
13889
13890 2007-04-03  Simon Josefsson  <simon@josefsson.org>
13891
13892         * modules/memxor: Move back from crypto/, suggested by Bruno.
13893         * modules/crypto/hmac-sha1: Fix memxor dependency.
13894
13895         * modules/crypto/gc: Moved from ../.
13896
13897 2007-04-02  Eric Blake  <ebb9@byu.net>
13898
13899         * lib/ldexpl.c (includes): Avoid libm.
13900
13901         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
13902
13903 2007-04-02  Bruno Haible  <bruno@clisp.org>
13904
13905         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
13906         on IRIX.
13907
13908 2007-04-02  Bruno Haible  <bruno@clisp.org>
13909
13910         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
13911         x86 or x86_64 platforms running MacOS X.
13912         Reported by Ryan Schmidt <@ryandesign.com>.
13913
13914 2007-04-02  Bruno Haible  <bruno@clisp.org>
13915
13916         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
13917         i386.
13918
13919 2007-04-01  Simon Josefsson  <simon@josefsson.org>
13920
13921         * modules/crypto/arcfour: Moved from ../.
13922         * modules/crypto/arcfour-tests: Moved from ../.
13923         * modules/crypto/arctwo: Moved from ../.
13924         * modules/crypto/arctwo-tests: Moved from ../.
13925         * modules/crypto/des: Moved from ../.
13926         * modules/crypto/des-tests: Moved from ../.
13927         * modules/crypto/gc-arcfour: Moved from ../.
13928         * modules/crypto/gc-arcfour-tests: Moved from ../.
13929         * modules/crypto/gc-arctwo: Moved from ../.
13930         * modules/crypto/gc-arctwo-tests: Moved from ../.
13931         * modules/crypto/gc-des: Moved from ../.
13932         * modules/crypto/gc-des-tests: Moved from ../.
13933         * modules/crypto/gc-hmac-md5: Moved from ../.
13934         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
13935         * modules/crypto/gc-hmac-sha1: Moved from ../.
13936         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
13937         * modules/crypto/gc-md2: Moved from ../.
13938         * modules/crypto/gc-md2-tests: Moved from ../.
13939         * modules/crypto/gc-md4: Moved from ../.
13940         * modules/crypto/gc-md4-tests: Moved from ../.
13941         * modules/crypto/gc-md5: Moved from ../.
13942         * modules/crypto/gc-md5-tests: Moved from ../.
13943         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
13944         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
13945         * modules/crypto/gc-random: Moved from ../.
13946         * modules/crypto/gc-rijndael: Moved from ../.
13947         * modules/crypto/gc-rijndael-tests: Moved from ../.
13948         * modules/crypto/gc-sha1: Moved from ../.
13949         * modules/crypto/gc-sha1-tests: Moved from ../.
13950         * modules/crypto/gc-tests: Moved from ../.
13951         * modules/crypto/hmac-md5: Moved from ../.
13952         * modules/crypto/hmac-md5-tests: Moved from ../.
13953         * modules/crypto/hmac-sha1: Moved from ../.
13954         * modules/crypto/hmac-sha1-tests: Moved from ../.
13955         * modules/crypto/md2: Moved from ../.
13956         * modules/crypto/md2-tests: Moved from ../.
13957         * modules/crypto/md4: Moved from ../.
13958         * modules/crypto/md4-tests: Moved from ../.
13959         * modules/crypto/md5: Moved from ../.
13960         * modules/crypto/md5-tests: Moved from ../.
13961         * modules/crypto/memxor: Moved from ../.
13962         * modules/crypto/rijndael: Moved from ../.
13963         * modules/crypto/rijndael-tests: Moved from ../.
13964         * modules/crypto/sha1: Moved from ../.
13965
13966 2007-03-30  James Youngman  <jay@gnu.org>
13967
13968         * tests/test-stat-time.c (prepare_test): use chmod() rather than
13969         rename() to change the ctime of a file (because ctime is unaffected
13970         by rename on jfs2 on AIX 5.1).
13971         (main): Start by doing cleanup, in case a previous run failed leaving
13972         test files behind.
13973
13974 2007-03-31  Bruno Haible  <bruno@clisp.org>
13975
13976         Support old proprietary implementations of iconv.
13977         * modules/iconv_open: New file.
13978         * lib/iconv_.h: New file.
13979         * m4/iconv_h.m4: New file.
13980         * lib/iconv_open.c: New file.
13981         * lib/iconv_open-aix.gperf: New file.
13982         * lib/iconv_open-hpux.gperf: New file.
13983         * lib/iconv_open-irix.gperf: New file.
13984         * lib/iconv_open-osf.gperf: New file.
13985         * m4/iconv_open.m4: New file.
13986         * modules/linebreak (Depends-on): Add iconv_open.
13987         * modules/striconv (Depends-on): Likewise.
13988         * modules/striconveh (Depends-on): Likewise.
13989         * modules/unicodeio (Depends-on): Likewise.
13990         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
13991         (iconv_t)(-1).
13992         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
13993         conversion if cd is (iconv_t)(-1).
13994         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
13995         is not possible.
13996
13997 2007-03-31  Bruno Haible  <bruno@clisp.org>
13998
13999         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14000         work on Solaris either. Protect also second use of "autodetect_jp".
14001
14002 2007-03-31  Bruno Haible  <bruno@clisp.org>
14003
14004         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
14005         the function is not present.
14006
14007 2007-03-31  Bruno Haible  <bruno@clisp.org>
14008
14009         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
14010         the function is not present.
14011
14012 2007-03-31  Bruno Haible  <bruno@clisp.org>
14013
14014         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
14015         a bug in HP-UX iconv_open().
14016
14017 2007-03-31  Bruno Haible  <bruno@clisp.org>
14018
14019         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
14020         (Mathematics <math.h>): New section, add fpieee.
14021         (Input/output <stdio.h>): Add fseterr.
14022         (Mathematics <math.h>): New section, add printf-frexp.
14023         (Container data structures): Add sublist.
14024         (Core language properties): Add fpucw, inline.
14025         (Functions for greatest-width integer types <inttypes.h>): Add
14026         imaxabs, imaxdiv, inttypes.
14027         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
14028         isnanl-nolibm, ldexp.
14029         (Mathematics <math.h>): New section, add printf-frexpl.
14030         (Support for systems lacking POSIX:2001): Add fprintf-posix,
14031         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
14032         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
14033         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
14034         (Unicode string functions): Add unistr/u*-mbtoucr.
14035         (Java): Add javacomp-script, javaexec-script.
14036         (C#): Add csharpcomp-script, csharpexec-script.
14037         (Support for building libraries and executables): Add havelib,
14038         relocatable-*.
14039         (Support for maintaining and releasing projects): Renamed from
14040         'Support for maintaining and release projects'. Add announce-gen.
14041
14042 2007-03-31  Bruno Haible  <bruno@clisp.org>
14043
14044         * README: Talk primarily about git.
14045         (git and CVS): Renamed from CVS.
14046         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
14047         gnulib is available through git.
14048         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
14049
14050 2007-03-30  Bruno Haible  <bruno@clisp.org>
14051
14052         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
14053         * lib/poll_.h: Likewise.
14054         * lib/stat_.h: Likewise.
14055         * lib/sys_time_.h: Likewise.
14056         * lib/sysexit_.h: Likewise.
14057         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
14058         * lib/stdbool_.h: Likewise.
14059         * lib/byteswap_.h: Add double-inclusion guard.
14060
14061 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
14062
14063         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
14064
14065 2007-03-30  Karl Berry  <karl@gnu.org>
14066
14067         * config/srclist-update: double space after USA in the license
14068         substitution, since that's how it's usually (?) written.
14069
14070 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14071
14072         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
14073         reported by Bruno Haible.
14074
14075 2007-03-29  Bruno Haible  <bruno@clisp.org>
14076
14077         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
14078         a bug in AIX iconv().
14079
14080 2007-03-29  Bruno Haible  <bruno@clisp.org>
14081
14082         * modules/ldexpl-tests: New file.
14083         * tests/test-ldexpl.c: New file.
14084
14085 2007-03-29  Bruno Haible  <bruno@clisp.org>
14086
14087         * lib/ldexpl.c: Include fpucw.h.
14088         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
14089         multiplication.
14090         * modules/ldexpl (Depends-on): Add fpucw.
14091
14092 2007-03-29  Bruno Haible  <bruno@clisp.org>
14093
14094         * modules/ldexpl: New file.
14095         * m4/ldexpl.m4: New file.
14096         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
14097         set.
14098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
14099         REPLACE_LDEXPL.
14100         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
14101         REPLACE_LDEXPL.
14102         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14103         gl_FUNC_LDEXPL_WORKS.
14104         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
14105         * modules/mathl (Files): Remove lib/ldexpl.c.
14106         (Depends-on): Add ldexpl.
14107
14108 2007-03-29  Bruno Haible  <bruno@clisp.org>
14109
14110         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
14111
14112 2007-03-29  Bruno Haible  <bruno@clisp.org>
14113
14114         * tests/test-striconveh.c (main): Don't assume that a direct conversion
14115         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
14116         and possibly also HP-UX.
14117         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14118         work on AIX, IRIX, HP-UX, OSF/1.
14119         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14120         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14121         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14122         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14123         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14124         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14125
14126 2007-03-29  Bruno Haible  <bruno@clisp.org>
14127
14128         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
14129
14130 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14131
14132         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
14133         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
14134
14135 2007-03-29  Eric Blake  <ebb9@byu.net>
14136
14137         * lib/acl-internal.h: Remove redundant include.
14138         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
14139         Cygwin when a file is locked.
14140
14141 2007-03-29  Bruno Haible  <bruno@clisp.org>
14142
14143         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
14144         file.
14145         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
14146
14147 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14148
14149         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
14150         try to remove a parent directory if the child couldn't be removed
14151         (except for the first rmdir, which could fail because the child
14152         doesn't exist).  Problem reported by Jeff Blaine in
14153         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
14154
14155 2007-03-28  Bruno Haible  <bruno@clisp.org>
14156
14157         * lib/striconveh.c (utf8conv_carefully): New function.
14158         (mem_cd_iconveh_internal): Invoke it.
14159
14160 2007-03-28  Bruno Haible  <bruno@clisp.org>
14161
14162         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
14163         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
14164         input.
14165         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
14166         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
14167         unistr/u8-uctomb.
14168
14169 2007-03-28  Bruno Haible  <bruno@clisp.org>
14170
14171         * modules/unistr/u8-mbtoucr: New file.
14172         * lib/unistr/u8-mbtoucr.c: New file.
14173         * modules/unistr/u16-mbtoucr: New file.
14174         * lib/unistr/u16-mbtoucr.c: New file.
14175         * modules/unistr/u16-mbtoucr: New file.
14176         * lib/unistr/u16-mbtoucr.c: New file.
14177         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
14178
14179 2007-03-27  Simon Josefsson  <simon@josefsson.org>
14180             Bruno Haible  <bruno@clisp.org>
14181
14182         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
14183         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
14184         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
14185
14186         * m4/stdio_h.m4: Add stubs for vasprintf too.
14187
14188         * modules/stdio: Support vasprintf in sed command.
14189
14190         * modules/vasprintf: Depend on stdio for prototypes.  Remove
14191         vasprintf.h.  Add stdio module indicator.
14192
14193         * lib/stdio_.h: Declare asprintf and vasprintf, based on
14194         vasprintf.h.
14195
14196         * lib/vasprintf.h: File removed.
14197
14198         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
14199         * lib/vasprintf.c: Ditto.
14200         * lib/xvasprintf.c: Ditto.
14201         * tests/test-vasprintf-posix.c: Ditto.
14202         * tests/test-vasprintf.c: Ditto.
14203
14204 2007-03-27  Bruno Haible  <bruno@clisp.org>
14205
14206         Make vasnprintf multithread-safe.
14207         * lib/vasnprintf.c (decimal_point_char): New function.
14208         (VASNPRINTF): Use it.
14209         Suggested by Simon Josefsson.
14210
14211 2007-03-27  Eric Blake  <ebb9@byu.net>
14212
14213         Support sub-second birthtime on cygwin.
14214         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
14215         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
14216         (get_stat_birthtime): Also work with st_birthtim.
14217
14218 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14219
14220         * lib/stat-time.h (USE_BIRTHTIME): Remove.
14221         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
14222         (get_stat_birthtime_ns): Do not try to use "spare" fields.
14223         (get_stat_birthtime_ns): Simplify compile-time tests.
14224         (get_stat_birthtime): Change the API to look like
14225         get_stat_mtime etc., except return a negative tv_nsec on error.
14226         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14227         Don't check for "spare" fields.
14228         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
14229         or for struct stat.st_birthtime, as these tests aren't used.
14230         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
14231
14232 2007-03-27  Bruno Haible  <bruno@clisp.org>
14233
14234         * lib/stat-time.h: Include <sys/stat.h>.
14235
14236 2007-03-27  James Youngman  <jay@gnu.org>
14237
14238         * lib/stat-time.h (get_stat_birthtime): New function for
14239           retrieving st_birthtime as provided by UFS2 (hence *BSD).
14240         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
14241           and its variants.
14242         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
14243         * modules/stat-time-test: New file.
14244         * tests/test-stat-time.c: New test, devised by Bruno Haible.
14245
14246 2007-03-26  Bruno Haible  <bruno@clisp.org>
14247
14248         Better support of signalling NaNs.
14249         * lib/atanl.c: Include isnanl.h.
14250         (atanl): Perform test for NaN at the beginning of the function and
14251         through a call to isnanl.
14252         * lib/cosl.c: Include isnanl.h.
14253         (cosl): Perform test for NaN at the beginning of the function and
14254         through a call to isnanl.
14255         * lib/ldexpl.c: Include isnanl.h.
14256         (ldexpl): Perform test for NaN through a call to isnanl.
14257         * lib/logl.c: Include isnanl.h.
14258         (logl): Perform test for NaN at the beginning of the function and
14259         through a call to isnanl.
14260         * lib/sinl.c: Include isnanl.h.
14261         (sinl): Perform test for NaN at the beginning of the function and
14262         through a call to isnanl.
14263         * lib/sqrtl.c: Include isnanl.h.
14264         (sqrtl): Perform test for NaN at the beginning of the function and
14265         through a call to isnanl.
14266         * lib/tanl.c: Include isnanl.h.
14267         (tanl): Perform test for NaN at the beginning of the function and
14268         through a call to isnanl.
14269         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
14270         * modules/mathl (Depends-on): Add isnanl.
14271
14272 2007-03-26  Eric Blake  <ebb9@byu.net>
14273
14274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
14275         regression in logic sense of previous patch.
14276
14277 2007-03-26  Bruno Haible  <bruno@clisp.org>
14278
14279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14280         unportable shell command "if ! ...".
14281         Reported by Ralf Wildenhues.
14282
14283 2007-03-25  Bruno Haible  <bruno@clisp.org>
14284
14285         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14286         <sysexits.h> file, and only add EX_CONFIG.
14287         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14288         absolute file name and whether it is sufficient. Substitute also
14289         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14290         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14291         ABSOLUTE_SYSEXITS_H into sysexits.h.
14292
14293 2007-03-25  Bruno Haible  <bruno@clisp.org>
14294
14295         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14296         hints is NULL.
14297
14298 2007-03-25  Bruno Haible  <bruno@clisp.org>
14299
14300         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14301         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14302
14303 2007-03-25  Bruno Haible  <bruno@clisp.org>
14304
14305         * lib/vasnprintf.c: Include langinfo.h.
14306         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14307         multithread-safe.
14308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14309         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14311         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14314         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14317         Reported by Simon Josefsson.
14318
14319 2007-03-25  Bruno Haible  <bruno@clisp.org>
14320
14321         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14322         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14323         * modules/vasnprintf (Depends-on): Add stdint.
14324
14325 2007-03-25  Bruno Haible  <bruno@clisp.org>
14326
14327         * modules/fpieee: New file.
14328         * m4/fpieee.m4: New file.
14329         * modules/isnan-nolibm (Depends-on): Add fpieee.
14330         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14331         * modules/isnanl (Depends-on): Add fpieee.
14332
14333 2007-03-25  Bruno Haible  <bruno@clisp.org>
14334
14335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14336
14337 2007-03-25  Bruno Haible  <bruno@clisp.org>
14338
14339         Avoid test failures on IRIX 6.5.
14340         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14341         (main): Use it.
14342         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14343         macros.
14344         (main): Use them.
14345
14346 2007-03-25  Bruno Haible  <bruno@clisp.org>
14347
14348         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14349         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14350         exists but doesn't work.
14351         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14352         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14354         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14355
14356 2007-03-25  Bruno Haible  <bruno@clisp.org>
14357
14358         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14359         returns inf. Needed on IRIX 6.5.
14360
14361 2007-03-25  Bruno Haible  <bruno@clisp.org>
14362
14363         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14364         (main): Use isnanl instead of x != x idiom.
14365         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14366
14367         * tests/test-frexp.c: Include isnan.h.
14368         (main): Use isnan instead of x != x idiom.
14369         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14370
14371 2007-03-25  Bruno Haible  <bruno@clisp.org>
14372
14373         * tests/test-frexp.c (NaN): New function/macro.
14374         (main): Use it instead of 0.0 / 0.0.
14375         * tests/test-isnan.c (NaN): New function/macro.
14376         (main): Use it instead of 0.0 / 0.0.
14377         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14378         (test_function): Use it instead of 0.0 / 0.0.
14379         * tests/test-vasprintf-posix.c (NaN): New function/macro.
14380         (test_function): Use it instead of 0.0 / 0.0.
14381         * tests/test-snprintf-posix.h (NaN): New function/macro.
14382         (test_function): Use it instead of 0.0 / 0.0.
14383         * tests/test-sprintf-posix.h (NaN): New function/macro.
14384         (test_function): Use it instead of 0.0 / 0.0.
14385         * tests/test-fprintf-posix.h (NaN): New function/macro.
14386         (test_function): Use it instead of 0.0 / 0.0.
14387         * tests/test-printf-posix.h (NaN): New function/macro.
14388         (test_function): Use it instead of 0.0 / 0.0.
14389
14390         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
14391
14392 2007-03-25  Bruno Haible  <bruno@clisp.org>
14393
14394         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
14395
14396 2007-03-25  Bruno Haible  <bruno@clisp.org>
14397
14398         * lib/regexec.c (merge_state_with_log): Make static.
14399
14400 2007-03-25  Bruno Haible  <bruno@clisp.org>
14401
14402         * lib/trigl.c (kernel_rem_pio2): Make static.
14403
14404 2007-03-25  Bruno Haible  <bruno@clisp.org>
14405
14406         * lib/sincosl.c (sincosl_table): Make static.
14407
14408 2007-03-25  Bruno Haible  <bruno@clisp.org>
14409
14410         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14411         if the compiler does not support C99.
14412
14413 2007-03-25  Bruno Haible  <bruno@clisp.org>
14414
14415         * modules/time (Makefile.am): Ensure all rule action lines start with a
14416         tab.
14417
14418 2007-03-24  Bruno Haible  <bruno@clisp.org>
14419
14420         * modules/tsearch-tests: New file.
14421         * tests/test-tsearch.sh: New file.
14422         * tests/test-tsearch.c: New file, mostly copied from glibc.
14423
14424         * modules/search-tests: New file.
14425         * tests/test-search.c: New file.
14426
14427         * modules/search: New file.
14428         * lib/search_.h: New file, incorporating lib/tsearch.h.
14429         * m4/search_h.m4: New file.
14430         * lib/tsearch.h: Remove file.
14431         * lib/tsearch.c: Include search.h instead of tsearch.h.
14432         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
14433         HAVE_TSEARCH.
14434         * modules/tsearch (Files): Remove lib/tsearch.h.
14435         (Depends-on): Add search.
14436         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
14437         (Include): Change tsearch.h into search.h.
14438
14439 2007-03-24  Bruno Haible  <bruno@clisp.org>
14440
14441         * modules/fpucw: New file.
14442         * lib/fpucw.h: New file.
14443         * lib/frexp.c: Include fpucw.h.
14444         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14445         (FUNC): Use them.
14446         * lib/printf-frexp.c: Include fpucw.h.
14447         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14448         (FUNC): Use them.
14449         * lib/vasnprintf.c: Include fpucw.h.
14450         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
14451         'long double' calculations.
14452         * tests/test-frexpl.c: Include fpucw.h.
14453         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14454         * tests/test-printf-frexpl.c: Include fpucw.h.
14455         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14456         * modules/frexpl (Depends-on): Add fpucw.
14457         * modules/printf-frexpl (Depends-on): Likewise.
14458         * modules/fprintf-posix (Depends-on): Likewise.
14459         * modules/snprintf-posix (Depends-on): Likewise.
14460         * modules/sprintf-posix (Depends-on): Likewise.
14461         * modules/vasnprintf-posix (Depends-on): Likewise.
14462         * modules/vasprintf-posix (Depends-on): Likewise.
14463         * modules/vfprintf-posix (Depends-on): Likewise.
14464         * modules/vsnprintf-posix (Depends-on): Likewise.
14465         * modules/vsprintf-posix (Depends-on): Likewise.
14466         * modules/frexpl-tests (Depends-on): Likewise.
14467         * modules/printf-frexpl-tests (Depends-on): Likewise.
14468
14469 2007-03-24  Bruno Haible  <bruno@clisp.org>
14470
14471         * lib/float+.h: New file.
14472         * lib/isnan.c: Include float+.h.
14473         (SIZE): New macro.
14474         (FUNC): Compare only SIZE bytes of the value.
14475         * lib/vasnprintf.c: Include float+.h.
14476         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
14477         SIZEOF_LDBL or SIZEOF_DBL bytes.
14478         * modules/isnan-nolibm (Files): Add lib/float+.h.
14479         * modules/isnanl-nolibm (Files): Add lib/float+.h.
14480         * modules/isnanl (Files): Add lib/float+.h.
14481         * modules/vasnprintf (Files): Add lib/float+.h.
14482
14483 2007-03-24  Bruno Haible  <bruno@clisp.org>
14484
14485         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
14486         include isnanl-nolibm.h.
14487
14488 2007-03-24  Bruno Haible  <bruno@clisp.org>
14489
14490         * tests/test-read-file.c (main): Don't produce spurious output for
14491         expected situations. Make the test fail if it encountered unexpected
14492         results.
14493
14494 2007-03-24  Bruno Haible  <bruno@clisp.org>
14495
14496         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
14497         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
14498
14499 2007-03-24  Bruno Haible  <bruno@clisp.org>
14500
14501         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
14502
14503 2007-03-24  Bruno Haible  <bruno@clisp.org>
14504
14505         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
14506         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
14507
14508         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
14509         * modules/utf8-ucs4: Turn into a symbolic link to module
14510         unistr/u8-mbtouc.
14511
14512         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
14513         utf8-ucs4-unsafe.
14514         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
14515         unistr/u8-mbtouc-unsafe.
14516
14517         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
14518         * modules/utf16-ucs4: Turn into a symbolic link to module
14519         unistr/u16-mbtouc.
14520
14521         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
14522         utf16-ucs4-unsafe.
14523         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
14524         unistr/u16-mbtouc-unsafe.
14525
14526         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
14527         * modules/ucs4-utf8: Turn into a symbolic link to module
14528         unistr/u8-ubtomb.
14529
14530         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
14531         * modules/ucs4-utf16: Turn into a symbolic link to module
14532         unistr/u16-ubtomb.
14533
14534 2007-03-24  Bruno Haible  <bruno@clisp.org>
14535
14536         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
14537         Enable the function only if HAVE_INLINE.
14538         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
14539         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14540         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
14541         Enable the function only if HAVE_INLINE.
14542         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
14543         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14544         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
14545         Enable the function only if HAVE_INLINE.
14546         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
14547         Enable the function only if HAVE_INLINE.
14548         * modules/utf8-ucs4: Update.
14549         * modules/utf8-ucs4-unsafe: Update.
14550         * modules/utf16-ucs4: Update.
14551         * modules/utf16-ucs4-unsafe: Update.
14552         * modules/ucs4-utf8: Update.
14553         * modules/ucs4-utf16: Update.
14554
14555 2007-03-24  Bruno Haible  <bruno@clisp.org>
14556
14557         * lib/utf8-ucs4.h: Remove file.
14558         * lib/utf8-ucs4-unsafe.h: Remove file.
14559         * lib/utf16-ucs4.h: Remove file.
14560         * lib/utf16-ucs4-unsafe.h: Remove file.
14561         * lib/ucs4-utf8.h: Remove file.
14562         * lib/ucs4-utf16.h: Remove file.
14563         * lib/unistr.h: Include their previous contents.
14564         * m4/utf-ucs4.m4: Remove file.
14565         * m4/ucs4-utf.m4: Remove file.
14566         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
14567         (Depends-on): Add unistr/base.
14568         (configure.ac): Remove gl_UTF_UCS4.
14569         (Makefile.am): Update.
14570         (Include): Change to unistr.h.
14571         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
14572         (Depends-on): Add unistr/base.
14573         (configure.ac): Remove gl_UTF_UCS4.
14574         (Makefile.am): Update.
14575         (Include): Change to unistr.h.
14576         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
14577         (Depends-on): Add unistr/base.
14578         (configure.ac): Remove gl_UTF_UCS4.
14579         (Makefile.am): Update.
14580         (Include): Change to unistr.h.
14581         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
14582         (Depends-on): Add unistr/base.
14583         (configure.ac): Remove gl_UTF_UCS4.
14584         (Makefile.am): Update.
14585         (Include): Change to unistr.h.
14586         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
14587         (Depends-on): Add unistr/base.
14588         (configure.ac): Remove gl_UCS4_UTF.
14589         (Makefile.am): Update.
14590         (Include): Change to unistr.h.
14591         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
14592         (Depends-on): Add unistr/base.
14593         (configure.ac): Remove gl_UCS4_UTF.
14594         (Makefile.am): Update.
14595         (Include): Change to unistr.h.
14596         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
14597         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
14598         utf8-ucs4-unsafe.h.
14599         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
14600         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
14601         utf16-ucs4-unsafe.h.
14602         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
14603         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
14604         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
14605         * lib/unistr/u8-strchr.c: Likewise.
14606         * lib/unistr/u8-strrchr.c: Likewise.
14607         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
14608         * lib/unistr/u16-strchr.c: Likewise.
14609         * lib/unistr/u16-strrchr.c: Likewise.
14610         * lib/striconveh.c: Update.
14611         * lib/linebreak.c: Update.
14612
14613 2007-03-24  Bruno Haible  <bruno@clisp.org>
14614
14615         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
14616         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
14617
14618 2007-03-22  Bruno Haible  <bruno@clisp.org>
14619
14620         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
14621
14622 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14623
14624         * MODULES.html.sh (File system functions): New module write-any-file.
14625         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
14626         * m4/write-any-file.m4: New files.
14627
14628 2007-03-23  Eric Blake  <ebb9@byu.net>
14629
14630         * gnulib-tool: Rearrange space-tab sequences, since some editors
14631         like to eat them.
14632
14633 2007-03-23  Eric Blake  <ebb9@byu.net>
14634
14635         * lib/version-etc.c (version_etc_va): Update license wording to
14636         be more concise.  Recommended by Richard Stallman.
14637
14638 2007-03-22  Bruno Haible  <bruno@clisp.org>
14639
14640         * lib/poll.c (MSG_PEEK): New fallback definition.
14641
14642 2007-03-22  Bruno Haible  <bruno@clisp.org>
14643
14644         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
14645         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
14646         (main): Update.
14647         Fixes a compilation error on BeOS.
14648
14649 2007-03-22  Bruno Haible  <bruno@clisp.org>
14650
14651         * modules/frexpl-tests: New file.
14652         * tests/test-frexpl.c: New file.
14653
14654         * modules/frexpl: New file.
14655         * m4/frexpl.m4: New file.
14656         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
14657         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
14658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
14659         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
14660         (Depends-on): Add frexpl. Remove isnanl-nolibm.
14661         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
14662
14663 2007-03-22  Bruno Haible  <bruno@clisp.org>
14664
14665         * lib/frexpl.c: Share code with lib/frexp.c.
14666         * modules/mathl (Files): Add lib/frexp.c.
14667         (Depends-on): Add isnanl-nolibm.
14668
14669 2007-03-22  Bruno Haible  <bruno@clisp.org>
14670
14671         * modules/printf-frexp (Files): Add m4/frexp.m4.
14672         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
14673         only if the found frexp function actually works.
14674
14675 2007-03-22  Bruno Haible  <bruno@clisp.org>
14676
14677         * lib/frexp.c: Remove older implementation that uses divisions.
14678
14679 2007-03-21  Bruno Haible  <bruno@clisp.org>
14680
14681         * modules/frexp-tests: New file.
14682         * tests/test-frexp.c: New file.
14683
14684         * modules/frexp: New file.
14685         * lib/frexp.c: New file.
14686         * m4/frexp.m4: New file.
14687         * lib/math_.h (frexp): New declaration.
14688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
14689         REPLACE_FREXP.
14690         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14691
14692 2007-03-21  Bruno Haible  <bruno@clisp.org>
14693
14694         * modules/isnanl-tests: New file.
14695         * tests/test-isnanl.c: New file.
14696
14697         * modules/isnanl: New file.
14698         * lib/isnanl.h: New file.
14699         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14700         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14701         gl_FUNC_ISNANL_WORKS.
14702         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14703         New macros.
14704
14705 2007-03-21  Bruno Haible  <bruno@clisp.org>
14706
14707         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
14708         lib/isnanl.h.
14709         (Include): Update.
14710         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
14711         * lib/vasnprintf.c: Update.
14712         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
14713         tests/test-isnanl.h, remove tests/test-isnanl.c.
14714         (Makefile.am): Update.
14715         * tests/test-isnanl-nolibm.c: New file.
14716         * tests/test-isnanl.h: New file.
14717         * tests/test-isnanl.c: Remove file.
14718
14719 2007-03-21  Jim Meyering  <jim@meyering.net>
14720
14721         When trying to open ".", treat ESTALE like EACCES.
14722         * lib/savewd.c (savewd_save): Resort to forking not just upon
14723         failure with EACCES, but also when errno is ESTALE.
14724
14725 2007-03-20  Bruno Haible  <bruno@clisp.org>
14726
14727         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
14728         Needed on AIX 5.1. Reported by Matthew Woehlke.
14729
14730 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14731
14732         Suggestions by Bruno Haible:
14733         * lib/acl-internal.h: Include "gettext.h" rather than rolling
14734         our own.
14735         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
14736         * modules/acl (Depends-on): Add gettext.
14737
14738 2007-03-19  Bruno Haible  <bruno@clisp.org>
14739
14740         * modules/iconvme: Remove file.
14741         * lib/iconvme.h: Remove file.
14742         * lib/iconvme.c: Remove file.
14743         * m4/iconvme.m4: Remove file.
14744
14745 2007-03-19  Bruno Haible  <bruno@clisp.org>
14746
14747         * doc/relocatable-maint.texi: Break long shell script line.
14748         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14749
14750 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14751
14752         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
14753         handle file_has_acl.
14754         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
14755         * lib/acl.c: Move header inclusions and related macro defns into
14756         lib/acl-internal.h.
14757         (S_ISLNK): Remove defn, since that's now done for us.
14758         (file_has_acl): Move to lib/file-has-acl.c.
14759         Call acl_trivial if available.  This is the crucial part of the fix.
14760         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
14761         shared within the library.  Rewrite a bit, partly to make it compatible
14762         with the GNU coding style.
14763         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
14764         Remove unnecessary double-quotes.
14765         Don't test for acl_to_text; the build will catch that.
14766         Replace acl_entries if it doesn't exist and it is needed.
14767         Check for -lsec and acl_trivial (as used on Solaris 10).
14768         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
14769         lib/file-has-acl.c.
14770         (Depends-on): Add sys_stat, for S_ISLNK.
14771
14772 2007-03-19  Ben Pfaff  <blp@gnu.org>
14773
14774         * doc/gnulib.texi: Fix typos.
14775         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14776
14777 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14778
14779         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
14780         If size is zero here, buf must be zero.
14781
14782 2007-03-19  Simon Josefsson  <simon@josefsson.org>
14783
14784         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
14785         <bruno@clisp.org>.
14786
14787 2007-03-18  Bruno Haible  <bruno@clisp.org>
14788
14789         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
14790         Suggested by Eric Blake.
14791
14792 2007-03-18  Ben Pfaff  <blp@gnu.org>
14793
14794         * doc/relocatable.texi: Recommend using as prefix a directory
14795         that does not exist and will never be created.  Based on
14796         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
14797         and others.
14798
14799 2007-03-17  Bruno Haible  <bruno@clisp.org>
14800
14801         * lib/fchownat.c: Include lchown.h.
14802
14803 2007-03-17  Bruno Haible  <bruno@clisp.org>
14804
14805         Fix endless loop when the given allocated size was > INT_MAX.
14806         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
14807         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
14808         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
14809         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
14810         * lib/sprintf.c (sprintf): Likewise.
14811
14812 2007-03-17  Bruno Haible  <bruno@clisp.org>
14813
14814         * tests/test-argp-2.sh (func_compare): Output a context diff.
14815
14816 2007-03-17  Bruno Haible  <bruno@clisp.org>
14817
14818         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
14819         locale's decimal-point character.
14820
14821 2007-03-17  Bruno Haible  <bruno@clisp.org>
14822
14823         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
14824         before comparing it. Needed because on some platforms (e.g. x86) a
14825         'long double' occupies less bytes than sizeof (long double).
14826
14827 2007-03-17  Bruno Haible  <bruno@clisp.org>
14828
14829         * tests/test-crc.c (main): Make printf statements 64-bit clean.
14830         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
14831         * tests/test-getaddrinfo.c (simple): Likewise.
14832         * tests/test-read-file.c (main): Likewise.
14833
14834 2007-03-17  Bruno Haible  <bruno@clisp.org>
14835
14836         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
14837
14838 2007-03-17  Bruno Haible  <bruno@clisp.org>
14839
14840         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
14841         unused variable.
14842
14843 2007-03-17  Bruno Haible  <bruno@clisp.org>
14844
14845         * tests/test-c-strcasecmp.c: Include c-strcase.h.
14846         * tests/test-c-strncasecmp.c: Likewise.
14847
14848 2007-03-17  Bruno Haible  <bruno@clisp.org>
14849
14850         * modules/stdlib (Depends-on): Add unistd.
14851         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
14852         Needed for MacOS X 10.3.
14853
14854 2007-03-17  Bruno Haible  <bruno@clisp.org>
14855
14856         * lib/unistr/u-strdup.h: Include <stdlib.h>.
14857
14858 2007-03-17  Bruno Haible  <bruno@clisp.org>
14859
14860         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
14861
14862 2007-03-17  Bruno Haible  <bruno@clisp.org>
14863
14864         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
14865         to reflect files copied from gnulib (with or without modifications).
14866         Suggested by Jim Meyering.
14867
14868 2007-03-17  Eric Blake  <ebb9@byu.net>
14869
14870         * NEWS: Document stdlib change from 2007-02-18.
14871
14872 2007-03-17  Jim Meyering  <jim@meyering.net>
14873
14874         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
14875         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
14876         someone uses a name containing shell meta-characters.
14877         Reported by Alfred M. Szmidt.
14878
14879         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
14880
14881 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14882
14883         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
14884         and copy gettext configuration files only if configure.ac contains
14885         a use of AM_GNU_GETTEXT_VERSION.
14886
14887 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14888
14889         * build-aux/bootstrap (gnulib_name): New variable.
14890         (gnulib_tool_options): Use it.
14891
14892 2007-03-13  Simon Josefsson  <simon@josefsson.org>
14893
14894         * tests/test-des.c: Use new namespace.
14895
14896 2007-03-15  Bruno Haible  <bruno@clisp.org>
14897
14898         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
14899         Reported by James Youngman <jay@gnu.org>.
14900
14901 2007-03-15  Bruno Haible  <bruno@clisp.org>
14902
14903         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
14904         declared prototype. Needed with cc on OSF/1 5.1.
14905
14906 2007-03-15  Bruno Haible  <bruno@clisp.org>
14907
14908         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
14909         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
14910         (struct gl_list_implementation): Add dispose_fn argument to the
14911         'create_empty', 'create' methods.
14912         (struct gl_list_impl_base): Add field 'dispose_fn'.
14913         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
14914         argument.
14915         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
14916         dispose_fn argument.
14917         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
14918         dispose_fn on the dropped values.
14919         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
14920         dispose_fn argument.
14921         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
14922         dropped values.
14923         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
14924         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14925         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
14926         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14927         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
14928         argument.
14929         (gl_tree_list_free): Call dispose_fn on the dropped values.
14930         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
14931         the dropped values.
14932         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14933         Add dispose_fn argument.
14934         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
14935         Call dispose_fn on the dropped values.
14936         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
14937         Add dispose_fn argument.
14938         (gl_sublist_create): Initialize the 'dispose_fn' field.
14939         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
14940         * tests/test-array_list.c (main): Update.
14941         * tests/test-carray_list.c (main): Update.
14942         * tests/test-avltree_list.c (main): Update.
14943         * tests/test-rbtree_list.c (main): Update.
14944         * tests/test-avltreehash_list.c (main): Update.
14945         * tests/test-rbtreehash_list.c (main): Update.
14946         * tests/test-linked_list.c (main): Update.
14947         * tests/test-linkedhash_list.c (main): Update.
14948         * tests/test-array_oset.c (main): Update.
14949
14950 2007-03-15  Bruno Haible  <bruno@clisp.org>
14951
14952         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
14953         (gl_oset_create_empty): Add dispose_fn argument.
14954         (struct gl_oset_implementation): Add dispose_fn argument to
14955         'create_empty' method.
14956         (struct gl_oset_impl_base): Add dispose_fn field.
14957         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
14958         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
14959         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
14960         values.
14961         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
14962         (gl_tree_oset_free): Call dispose_fn on the dropped values.
14963         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14964         dropped value.
14965         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14966         dropped value.
14967         * tests/test-array_oset.c (main): Update.
14968         * tests/test-avltree_oset.c (main): Update.
14969         * tests/test-rbtree_oset.c (main): Update.
14970         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
14971
14972 2007-03-13  Bruno Haible  <bruno@clisp.org>
14973
14974         * tests/test-stdbool.c (i): Update after last patch.
14975
14976 2007-03-12  Bruno Haible  <bruno@clisp.org>
14977
14978         * lib/quotearg.c: Include <wctype.h> early, before the definition of
14979         the iswprint macro. Needed on Solaris 2.5.1.
14980
14981 2007-03-12  Bruno Haible  <bruno@clisp.org>
14982
14983         * tests/test-printf-frexp.c (main): Declare x as volatile.
14984
14985 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14986
14987         * doc/gnulib.texi (Build robot for gnulib): New section.
14988
14989 2007-03-12  Jim Meyering  <jim@meyering.net>
14990
14991         * build-aux/bootstrap: New file.
14992         * build-aux/bootstrap.conf: New file, from coreutils.
14993
14994 2007-03-11  Bruno Haible  <bruno@clisp.org>
14995
14996         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
14997
14998 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14999
15000         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
15001         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
15002         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
15003
15004 2007-03-11  Bruno Haible  <bruno@clisp.org>
15005
15006         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
15007         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
15008
15009 2007-03-11  Bruno Haible  <bruno@clisp.org>
15010
15011         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
15012         formula. Needed for SunPRO C 5.0.
15013
15014 2007-03-11  Bruno Haible  <bruno@clisp.org>
15015
15016         * modules/long-options (Depends-on): Add getopt.
15017
15018 2007-03-11  Bruno Haible  <bruno@clisp.org>
15019
15020         * modules/modechange (Depends-on): Add stdbool.
15021
15022 2007-03-11  Bruno Haible  <bruno@clisp.org>
15023
15024         * modules/i-ring (Depends-on): Add stdbool.
15025
15026 2007-03-11  Bruno Haible  <bruno@clisp.org>
15027
15028         * modules/gc-des (Depends-on): Add stdbool.
15029
15030 2007-03-11  Bruno Haible  <bruno@clisp.org>
15031
15032         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
15033
15034 2007-03-11  Bruno Haible  <bruno@clisp.org>
15035
15036         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
15037
15038 2007-03-11  Bruno Haible  <bruno@clisp.org>
15039
15040         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
15041
15042 2007-03-11  Bruno Haible  <bruno@clisp.org>
15043
15044         * lib/vasnprintf.c (sprintf): Undefine.
15045
15046 2007-03-11  Bruno Haible  <bruno@clisp.org>
15047
15048         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
15049         initializers in SunPRO C and Compaq C compilers.
15050
15051 2007-03-11  Bruno Haible  <bruno@clisp.org>
15052
15053         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
15054         decrementing code ANSI C compliant.
15055
15056 2007-03-11  Bruno Haible  <bruno@clisp.org>
15057
15058         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
15059         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
15060
15061 2007-03-11  Bruno Haible  <bruno@clisp.org>
15062
15063         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
15064         <stdbool.h> substitute doesn't pass.
15065
15066 2007-03-11  Bruno Haible  <bruno@clisp.org>
15067
15068         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
15069
15070 2007-03-11  Bruno Haible  <bruno@clisp.org>
15071
15072         * gnulib-tool (func_create_megatestdir): Create also an autobuild
15073         script, for submission to autobuild.josefsson.org.
15074
15075 2007-03-10  Bruno Haible  <bruno@clisp.org>
15076
15077         * modules/canonicalize-lgpl-tests: New file.
15078         * tests/test-canonicalize-lgpl.sh: New file.
15079         * tests/test-canonicalize-lgpl.c: New file.
15080
15081         * modules/c-strcase-tests: New file.
15082         * tests/test-c-strcase.sh: New file.
15083         * tests/test-c-strcasecmp.c: New file.
15084         * tests/test-c-strncasecmp.c: New file.
15085
15086         * modules/atexit-tests: New file.
15087         * tests/test-atexit.sh: New file.
15088         * tests/test-atexit.c: New file.
15089
15090 2007-03-10  Bruno Haible  <bruno@clisp.org>
15091
15092         * tests/test-binary-io.sh: Use temporary filenames that are not so
15093         likely to clash with those of other tests (in a parallel make).
15094         * tests/test-binary-io.c: Likewise.
15095
15096 2007-03-10  Bruno Haible  <bruno@clisp.org>
15097
15098         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
15099         fallback; use #error instead.
15100         Suggested by Simon Josefsson.
15101
15102 2007-03-10  Bruno Haible  <bruno@clisp.org>
15103
15104         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
15105         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
15106         first and the last.
15107
15108 2007-03-10  Bruno Haible  <bruno@clisp.org>
15109
15110         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
15111
15112 2007-03-10  Bruno Haible  <bruno@clisp.org>
15113
15114         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
15115         "make distcheck".
15116         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
15117         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
15118         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
15119
15120 2007-03-10  Bruno Haible  <bruno@clisp.org>
15121
15122         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
15123         variable.
15124         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
15125         variable.
15126
15127 2007-03-09  Eric Blake  <ebb9@byu.net>
15128         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
15129
15130         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
15131         types are not being provided by gnulib.
15132         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
15133         types are supported.
15134
15135 2007-03-10  Bruno Haible  <bruno@clisp.org>
15136
15137         * lib/stdio_.h (__attribute__): New macro.
15138         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
15139         vsprintf): Specify __attribute__ __format__ for GCC.
15140         Suggested by Eric Blake.
15141
15142 2007-03-09  Bruno Haible  <bruno@clisp.org>
15143
15144         * modules/printf-posix-tests: New file.
15145         * tests/test-printf-posix.sh: New file.
15146         * tests/test-printf-posix.c: New file.
15147
15148         * modules/printf-posix: New file.
15149         * lib/printf.c: New file.
15150         * m4/printf-posix-rpl.m4: New file.
15151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
15152         REPLACE_PRINTF.
15153         * lib/stdio_.h (printf): New declaration.
15154         (format, __format__, ____printf____, ____scanf____, ____strftime____,
15155         ____strfmon____): New macros.
15156         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
15157         REPLACE_PRINTF.
15158
15159 2007-03-09  Bruno Haible  <bruno@clisp.org>
15160
15161         * tests/test-vasnprintf-posix2.sh: New file.
15162         * tests/test-vasnprintf-posix2.c: New file.
15163         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
15164         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15165         (Makefile.am): Activate test-vasnprintf-posix2.sh.
15166
15167         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
15168         a locale dependent decimal point, rather than always '.'.
15169
15170 2007-03-09  Eric Blake  <ebb9@byu.net>
15171
15172         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
15173         spite of platforms like Tandem/NSK that define it to -1.
15174
15175 2007-03-08  Bruno Haible  <bruno@clisp.org>
15176
15177         * modules/vprintf-posix-tests: New file.
15178         * tests/test-vprintf-posix.sh: New file.
15179         * tests/test-vprintf-posix.c: New file.
15180         * tests/test-printf-posix.h: New file.
15181
15182         * modules/vprintf-posix: New file.
15183         * lib/vprintf.c: New file.
15184         * m4/vprintf-posix.m4: New file.
15185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
15186         REPLACE_VPRINTF.
15187         * lib/stdio_.h (vprintf): New declaration.
15188         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
15189         REPLACE_VPRINTF.
15190
15191 2007-03-08  Bruno Haible  <bruno@clisp.org>
15192
15193         * modules/fprintf-posix-tests: New file.
15194         * tests/test-fprintf-posix.sh: New file.
15195         * tests/test-fprintf-posix.c: New file.
15196
15197         * modules/fprintf-posix: New file.
15198         * lib/fprintf.c: New file.
15199         * m4/fprintf-posix.m4: New file.
15200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
15201         REPLACE_FPRINTF.
15202         * lib/stdio_.h (fprintf): New declaration.
15203         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
15204         REPLACE_FPRINTF.
15205
15206 2007-03-08  Bruno Haible  <bruno@clisp.org>
15207
15208         * modules/vfprintf-posix-tests: New file.
15209         * tests/test-vfprintf-posix.sh: New file.
15210         * tests/test-vfprintf-posix.c: New file.
15211         * tests/test-fprintf-posix.h: New file.
15212         * tests/test-fprintf-posix.out: New file.
15213
15214         * modules/vfprintf-posix: New file.
15215         * lib/vfprintf.c: New file.
15216         * m4/vfprintf-posix.m4: New file.
15217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
15218         REPLACE_VFPRINTF.
15219         * lib/stdio_.h (vfprintf): New declaration.
15220         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
15221         REPLACE_VFPRINTF.
15222
15223 2007-03-08  Bruno Haible  <bruno@clisp.org>
15224
15225         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
15226
15227 2007-03-08  Bruno Haible  <bruno@clisp.org>
15228
15229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
15230         instead of 'expr' invocations.
15231         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15234         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15235         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15236         Suggested by Paul Eggert.
15237
15238 2007-03-08  Bruno Haible  <bruno@clisp.org>
15239
15240         * modules/fseterr-tests: New file.
15241         * tests/test-fseterr.c: New file.
15242
15243         * modules/fseterr: New file.
15244         * lib/fseterr.h: New file.
15245         * lib/fseterr.c: New file.
15246
15247 2007-03-08  Bruno Haible  <bruno@clisp.org>
15248
15249         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
15250         * lib/getopt_.h: Likewise.
15251         * lib/mbswidth.h: Likewise.
15252         * lib/setenv.h: Likewise.
15253         * lib/vasnprintf.h: Likewise.
15254         * lib/vasprintf.h: Likewise.
15255         * lib/verror.h: Likewise.
15256         * lib/xsetenv.h: Likewise.
15257         * lib/xvasprintf.h: Likewise.
15258
15259 2007-03-08  Jim Meyering  <jim@meyering.net>
15260
15261         * users.txt: Add parted.
15262
15263         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
15264
15265 2007-03-07  Bruno Haible  <bruno@clisp.org>
15266
15267         * m4/printf.m4: Make the shell script snippets copy&pastable.
15268
15269 2007-03-02  Bruno Haible  <bruno@clisp.org>
15270
15271         * lib/netinet_in_.h: New file.
15272         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
15273         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
15274         * modules/netinet_in (Files): Add lib/netinet_in_.h.
15275         (Depends-on): Add absolute-header.
15276         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
15277         into netinet/in.h.
15278
15279 2007-03-03  Bruno Haible  <bruno@clisp.org>
15280
15281         * lib/sys_select_.h: New file.
15282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15283         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15284         * modules/sys_select (Files): Add lib/sys_select_.h.
15285         (Depends-on): Add absolute-header.
15286         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15287         into sys/select.h.
15288
15289 2007-03-02  Bruno Haible  <bruno@clisp.org>
15290
15291         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15292         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15293         values.
15294         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15295         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15296         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15297         * modules/sys_socket (Depends-on): Add absolute-header.
15298         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15299         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15300         (Include): Remove requirement of inclusion of <sys/types.h>.
15301
15302 2007-03-02  Bruno Haible  <bruno@clisp.org>
15303
15304         * lib/byteswap_.h (bswap_32): Fix formula.
15305
15306 2007-03-06  Bruno Haible  <bruno@clisp.org>
15307
15308         * modules/sprintf-posix-tests: New file.
15309         * tests/test-sprintf-posix.c: New file.
15310
15311         * modules/sprintf-posix: New file.
15312         * lib/sprintf.c: New file.
15313         * m4/sprintf-posix.m4: New file.
15314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15315         REPLACE_SPRINTF.
15316         * lib/stdio_.h (sprintf): New declaration.
15317         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15318         REPLACE_SPRINTF.
15319
15320 2007-03-06  Bruno Haible  <bruno@clisp.org>
15321
15322         * modules/vsprintf-posix-tests: New file.
15323         * tests/test-vsprintf-posix.c: New file.
15324         * tests/test-sprintf-posix.h: New file.
15325
15326         * modules/vsprintf-posix: New file.
15327         * lib/vsprintf.c: New file.
15328         * m4/vsprintf-posix.m4: New file.
15329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15330         REPLACE_VSPRINTF.
15331         * lib/stdio_.h (vsprintf): New declaration.
15332         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15333         REPLACE_VSPRINTF.
15334
15335 2007-03-06  Bruno Haible  <bruno@clisp.org>
15336
15337         * modules/vsnprintf (Depend-on): Remove minmax.
15338
15339 2007-03-06  Bruno Haible  <bruno@clisp.org>
15340
15341         * modules/snprintf-posix-tests: New file.
15342         * tests/test-snprintf-posix.c: New file.
15343
15344         * modules/snprintf-posix: New file.
15345         * m4/snprintf-posix.m4: New file.
15346         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15347         gl_FUNC_SNPRINTF.
15348         (gl_FUNC_SNPRINTF): Invoke it.
15349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15350         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15351         is set.
15352         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15353
15354 2007-03-06  Bruno Haible  <bruno@clisp.org>
15355
15356         * modules/vsnprintf-posix-tests: New file.
15357         * tests/test-vsnprintf-posix.c: New file.
15358         * tests/test-snprintf-posix.h: New file.
15359
15360         * modules/vsnprintf-posix: New file.
15361         * m4/vsnprintf-posix.m4: New file.
15362         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15363         gl_FUNC_VSNPRINTF.
15364         (gl_FUNC_VSNPRINTF): Invoke it.
15365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15366         * lib/stdio_.h (vsnprintf): Define as a replacement if
15367         REPLACE_VSNPRINTF is set.
15368         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15369
15370 2007-03-06  Bruno Haible  <bruno@clisp.org>
15371
15372         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15374
15375 2007-03-06  Bruno Haible  <bruno@clisp.org>
15376
15377         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15378         (asinl): Declare also if HAVE_DECL_ASINL is set.
15379         (atanl): Declare also if HAVE_DECL_ATANL is set.
15380         (ceill): Declare also if HAVE_DECL_CEILL is set.
15381         (cosl): Declare also if HAVE_DECL_COSL is set.
15382         (expl): Declare also if HAVE_DECL_EXPL is set.
15383         (floorl): Declare also if HAVE_DECL_FLOORL is set.
15384         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
15385         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
15386         (logl): Declare also if HAVE_DECL_LOGL is set.
15387         (sinl): Declare also if HAVE_DECL_SINL is set.
15388         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
15389         (tanl): Declare also if HAVE_DECL_TANL is set.
15390         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
15391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
15392         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
15393         declaration of frexpl, ldexpl.
15394         * modules/printf-frexpl (Depends-on): Add math.
15395         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
15396
15397 2007-03-05  Bruno Haible  <bruno@clisp.org>
15398
15399         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15400         frexpl and ldexpl are declared.
15401         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15402
15403 2007-03-05  Bruno Haible  <bruno@clisp.org>
15404
15405         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15406         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15407
15408 2007-03-05  Bruno Haible  <bruno@clisp.org>
15409
15410         * lib/stdio_.h: Include <stddef.h>.
15411
15412 2007-03-05  Bruno Haible  <bruno@clisp.org>
15413
15414         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15415
15416 2007-03-05  Bruno Haible  <bruno@clisp.org>
15417
15418         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
15419         NetBSD 4, from Ralf Wildenhues.
15420
15421 2007-03-04  Bruno Haible  <bruno@clisp.org>
15422
15423         * lib/vasprintf.h: Update #if logic for the case when the functions
15424         exist but are overridden.
15425
15426 2007-03-04  Bruno Haible  <bruno@clisp.org>
15427
15428         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
15429         implementations: glibc-2.4 and MacOS X 10.3.
15430         * tests/test-vasnprintf-posix.c (test_function): Test also the case
15431         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
15432         * tests/test-vasprintf-posix.c (test_function): Likewise.
15433
15434 2007-03-04  Bruno Haible  <bruno@clisp.org>
15435
15436         * modules/vasprintf-posix-tests: New file.
15437         * tests/test-vasprintf-posix.c: New file.
15438
15439         * modules/vasprintf-posix: New file.
15440         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
15441         defined.
15442         * m4/vasprintf-posix.m4: New file.
15443         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
15444         gl_FUNC_VASPRINTF.
15445         (gl_FUNC_VASPRINTF): Invoke it.
15446         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
15447         here.
15448         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
15449
15450 2007-03-04  Bruno Haible  <bruno@clisp.org>
15451
15452         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
15453         REPLACE_GETTIMEOFDAY.
15454         * modules/sys_time (Makefile.am): Likewise.
15455         * m4/sys_time_h.m4: Likewise.
15456         * m4/gettimeofday.m4: Likewise.
15457
15458 2007-03-04  Bruno Haible  <bruno@clisp.org>
15459
15460         * modules/vasnprintf-posix-tests: New file.
15461         * tests/test-vasnprintf-posix.c: New file.
15462
15463         * modules/vasnprintf-posix: New file.
15464         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
15465         printf-frexpl.h.
15466         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
15467         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
15468         REPLACE_VASNPRINTF is defined.
15469         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
15470         gl_FUNC_VASNPRINTF.
15471         (gl_FUNC_VASNPRINTF): Invoke it.
15472         * m4/vasnprintf-posix.m4: New file.
15473         * m4/printf.m4: New file.
15474
15475 2007-03-04  Bruno Haible  <bruno@clisp.org>
15476
15477         Compile progreloc.c only if --enable-relocatable is specified.
15478         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
15479         if --enable-relocatable was specified.
15480         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
15481         lib_SOURCES.
15482
15483 2007-03-04  Jim Meyering  <jim@meyering.net>
15484
15485         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
15486         Use it consistently, rather than enumerating errno constants.
15487
15488 2007-03-04  Bruno Haible  <bruno@clisp.org>
15489
15490         * modules/xvasprintf-tests: New file.
15491         * tests/test-xvasprintf.c: New file.
15492
15493         * modules/vasprintf-tests: New file.
15494         * tests/test-vasprintf.c: New file.
15495
15496         * modules/vasnprintf-tests: New file.
15497         * tests/test-vasnprintf.c: New file.
15498
15499         * modules/vsnprintf-tests: New file.
15500         * tests/test-vsnprintf.c: New file.
15501
15502         * modules/snprintf-tests: New file.
15503         * tests/test-snprintf.c: New file.
15504
15505 2007-03-04  Bruno Haible  <bruno@clisp.org>
15506
15507         Compile relocatable.c only if --enable-relocatable is specified.
15508         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
15509         gl_RELOCATABLE_LIBRARY.
15510         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
15511         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
15512         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
15513         gl_RELOCATABLE_LIBRARY.
15514         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
15515         (Makefile.am): Remove lib_SOURCES.
15516         * modules/relocatable-lib-lgpl (configure.ac): Invoke
15517         gl_RELOCATABLE_LIBRARY.
15518         (Makefile.am): Remove lib_SOURCES.
15519         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
15520         always.
15521         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15522         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
15523
15524 2007-03-04  Bruno Haible  <bruno@clisp.org>
15525
15526         * modules/argmatch-tests: New file.
15527         * tests/test-argmatch.c: New file.
15528
15529         * tests/test-allocsa.c (main): Halve the number of loop runs.
15530
15531         * modules/alloca-opt-tests: New file.
15532         * tests/test-alloca-opt.c: New file.
15533
15534 2007-03-04  Jim Meyering  <jim@meyering.net>
15535
15536         Work around difference between Linux ACLs and Solaris 10 ZFS.
15537         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
15538         for EINVAL.
15539
15540 2007-03-03  Bruno Haible  <bruno@clisp.org>
15541
15542         * modules/relocatable-prog (Depends-on): Add back progreloc's
15543         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
15544
15545 2007-03-03  Bruno Haible  <bruno@clisp.org>
15546
15547         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
15548         * modules/relocatable-lib: New file.
15549
15550 2007-03-03  Bruno Haible  <bruno@clisp.org>
15551
15552         * modules/relocatable-prog: Renamed from modules/relocatable.
15553         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
15554
15555 2007-03-03  Bruno Haible  <bruno@clisp.org>
15556
15557         * modules/relocatable-script (Files): Add doc/relocatable.texi,
15558         m4/relocatable-lib.m4.
15559         (Depends-on): Remove 'relocatable'.
15560         (configure.ac): Add gl_RELOCATABLE_NOP.
15561
15562 2007-03-03  Bruno Haible  <bruno@clisp.org>
15563
15564         * modules/relocatable-prog-wrapper: New file.
15565         * modules/relocatable (Depends-on): Add it. Remove all other
15566         dependencies except progname.
15567         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
15568
15569         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
15570         (gl_FUNC_STRERROR): Nop.
15571         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
15572
15573         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
15574         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
15575
15576         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
15577         (gl_FUNC_READLINK): Update.
15578
15579         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
15580
15581 2007-03-03  Bruno Haible  <bruno@clisp.org>
15582
15583         * lib/xreadlink.c: Include <unistd.h> unconditionally.
15584         * modules/xreadlink (Depends-on): Add unistd.
15585         * modules/xreadlink-with-size (Depends-on): Likewise.
15586
15587 2007-03-03  Bruno Haible  <bruno@clisp.org>
15588
15589         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
15590         extracted from gt_FUNC_SETENV.
15591         (gt_FUNC_SETENV): Remove macro.
15592         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
15593         remove gt_FUNC_SETENV.
15594
15595 2007-03-03  Bruno Haible  <bruno@clisp.org>
15596
15597         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
15598         ENABLE_RELOCATABLE here.
15599         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
15600
15601 2007-03-03  Bruno Haible  <bruno@clisp.org>
15602
15603         * modules/rbtreehash-list-tests (Depends-on): Add progname.
15604         * tests/test-rbtreehash_list.c: Include progname.h.
15605         (main): Call set_program_name.
15606
15607         * modules/rbtree-oset-tests (Depends-on): Add progname.
15608         * tests/test-rbtree_oset.c: Include progname.h.
15609         (main): Call set_program_name.
15610
15611         * modules/rbtree-list-tests (Depends-on): Add progname.
15612         * tests/test-rbtree_list.c: Include progname.h.
15613         (main): Call set_program_name.
15614
15615         * modules/linked-list-tests (Depends-on): Add progname.
15616         * tests/test-linked_list.c: Include progname.h.
15617         (main): Call set_program_name.
15618
15619 2007-03-03  Bruno Haible  <bruno@clisp.org>
15620
15621         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
15622         All uses of __restrict changed to _Restrict_.
15623         * lib/glob_.h (__restrict): Remove macro.
15624
15625 2007-03-02  Bruno Haible  <bruno@clisp.org>
15626
15627         * modules/gettext (configure.ac): Require gettext infrastructure
15628         from version 0.16.1.
15629
15630 2007-03-02  Bruno Haible  <bruno@clisp.org>
15631
15632         * modules/linkedhash-list-tests (Depends-on): Add progname.
15633         * tests/test-linkedhash_list.c: Include progname.h.
15634         (main): Call set_program_name.
15635
15636         * modules/carray-list-tests (Depends-on): Add progname.
15637         * tests/test-carray_list.c: Include progname.h.
15638         (main): Call set_program_name.
15639
15640         * modules/avltreehash-list-tests (Depends-on): Add progname.
15641         * tests/test-avltreehash_list.c: Include progname.h.
15642         (main): Call set_program_name.
15643
15644         * modules/avltree-oset-tests (Depends-on): Add progname.
15645         * tests/test-avltree_oset.c: Include progname.h.
15646         (main): Call set_program_name.
15647
15648         * modules/avltree-list-tests (Depends-on): Add progname.
15649         * tests/test-avltree_list.c: Include progname.h.
15650         (main): Call set_program_name.
15651
15652         * modules/array-oset-tests (Depends-on): Add progname.
15653         * tests/test-array_oset.c: Include progname.h.
15654         (main): Call set_program_name.
15655
15656         * modules/array-list-tests (Depends-on): Add progname.
15657         * tests/test-array_list.c: Include progname.h.
15658         (main): Call set_program_name.
15659
15660         * modules/argp-tests (Depends-on): Add progname.
15661         * tests/test-argp.c: Include argp.h first. Include progname.h.
15662         (main): Call set_program_name.
15663
15664 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
15665
15666         * doc/gnulib-tool.texi (Initial import): Reword description of
15667         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
15668         limited effect even if defined after the first system include.
15669
15670 2007-03-01  Bruno Haible  <bruno@clisp.org>
15671
15672         * build-aux/config.libpath: Update to libtool-1.5.22.
15673         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15674
15675 2007-03-01  Bruno Haible  <bruno@clisp.org>
15676
15677         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
15678         foo_CFLAGS.
15679         Reported by Ralf Wildenhues.
15680
15681 2007-03-01  Bruno Haible  <bruno@clisp.org>
15682
15683         * build-aux/install-reloc: Remove object files left over by some
15684         compilers.
15685         Reported by Ralf Wildenhues.
15686
15687 2007-03-01  Bruno Haible  <bruno@clisp.org>
15688
15689         * build-aux/install-reloc: Break long lines.
15690
15691 2007-03-01  Bruno Haible  <bruno@clisp.org>
15692
15693         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15694         Reported by Ralf Wildenhues.
15695
15696 2007-03-01  Bruno Haible  <bruno@clisp.org>
15697
15698         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15699         include ordering constraints.
15700
15701 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15702
15703         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
15704         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
15705         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
15706         as another example.
15707         * lib/time_.h: Fix misspelling.
15708         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15709         Require gl_HEADER_TIME_H_DEFAULTS.
15710         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
15711         * m4/time_r.m4 (gl_TIME_R): Likewise.
15712         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
15713
15714 2007-03-01  Bruno Haible  <bruno@clisp.org>
15715
15716         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
15717         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15718
15719 2007-03-01  Jim Meyering  <jim@meyering.net>
15720
15721         * modules/xreadlink (Maintainer): Add my name.
15722         * modules/xreadlink-with-size (Depends-on): Alphabetize.
15723
15724 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
15725             Bruno Haible  <bruno@clisp.org>
15726
15727         * build-aux/install-reloc: Compile also c-ctype.c.
15728         * build-aux/relocatable.sh.in: New file.
15729         * doc/relocatable.texi: New file.
15730         * doc/relocatable-maint.texi: New file.
15731         * doc/gnulib.texi: Include relocatable-maint.texi.
15732         * lib/progreloc.c: Include unistd.h unconditionally.
15733         * lib/relocwrapper.c: Include unistd.h unconditionally.
15734         Include c-ctype.h.
15735         (add_dotbin): Use c_tolower.
15736         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
15737         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
15738         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
15739         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
15740         to m4/relocatable-lib.m4.
15741         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
15742         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
15743         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
15744         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
15745         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
15746         * modules/relocatable: New file.
15747         * modules/relocatable-lib: New file.
15748         * modules/relocatable-script: New file.
15749
15750 2007-02-28  Bruno Haible  <bruno@clisp.org>
15751
15752         Import --enable-relocatable infrastructure.
15753         * build-aux/config.libpath: New file, from GNU gettext.
15754         * build-aux/install-reloc: New file, from GNU gettext.
15755         * build-aux/reloc-ldflags: New file, from GNU gettext.
15756         * lib/relocatable.h: New file, from GNU gettext.
15757         * lib/relocatable.c: New file, from GNU gettext.
15758         * lib/relocwrapper.c: New file, from GNU gettext.
15759         * m4/relocatable.m4: New file, from GNU gettext.
15760
15761 2007-02-28  Bruno Haible  <bruno@clisp.org>
15762
15763         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
15764
15765         * modules/xreadlink: New file, from GNU gettext with modifications.
15766         * lib/xreadlink.c: New file, from GNU gettext.
15767         * lib/xreadlink.h: Add comments.
15768         (xreadlink): New declaration.
15769
15770         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
15771         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
15772         lib/xreadlink-with-size.c.
15773         (configure.ac): Remove gl_XREADLINK invocation.
15774         (Makefile.am): Augment lib_SOURCES.
15775         * m4/xreadlink.m4: Remove file.
15776         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
15777         (xreadlink_with_size): Renamed from xreadink.
15778         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
15779         * modules/canonicalize (Depends-on): Replace xreadlink with
15780         xreadlink-with-size.
15781         * lib/canonicalize.c (canonicalize_filename_mode): Update.
15782
15783 2007-02-25  Jim Meyering  <jim@meyering.net>
15784
15785         * build-aux/announce-gen: When complaining about excess arguments,
15786         list them.
15787
15788 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15789
15790         * README: Document signed integer overflow situation more
15791         accurately.
15792
15793 2007-02-25  Bruno Haible  <bruno@clisp.org>
15794
15795         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
15796         'a' or 'A' conversion.
15797
15798 2007-02-25  Bruno Haible  <bruno@clisp.org>
15799
15800         * modules/filename: Renamed from modules/pathname.
15801         (Files): Replace lib/pathname.h with lib/filename.h. Replace
15802         lib/concatpath.c with lib/concat-filename.c.
15803         (Makefile.am): Update.
15804         (Include): Replace pathname.h with filename.h.
15805         * lib/filename.h: Renamed from lib/pathname.h.
15806         (concatenated_filename): Renamed from concatenated_pathname.
15807         * lib/concat-filename.c: Renamed from lib/concatpath.c.
15808         (concatenated_filename): Renamed from concatenated_pathname.
15809         * lib/findprog.c: Include filename.h instead of pathname.h.
15810         (find_in_path): Update.
15811         * lib/javacomp.c: Include filename.h instead of pathname.h.
15812         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15813         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15814         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15815         is_oldgcj_14_13_usable, is_javac_usable): Update.
15816         * lib/javaexec.c: Include filename.h instead of pathname.h.
15817         (execute_java_class): Update.
15818         * modules/findprog: Update.
15819         * modules/javacomp: Update.
15820         * modules/javaexec: Update.
15821         * MODULES.html.sh (File system functions): Add 'filename', remove
15822         'pathname'.
15823
15824 2007-02-25  Bruno Haible  <bruno@clisp.org>
15825
15826         * modules/printf-frexpl-tests: New file.
15827         * tests/test-printf-frexpl.c: New file.
15828
15829         * modules/printf-frexpl: New file.
15830         * lib/printf-frexpl.h: New file.
15831         * lib/printf-frexpl.c: New file.
15832         * m4/printf-frexpl.m4: New file.
15833
15834 2007-02-25  Bruno Haible  <bruno@clisp.org>
15835
15836         * modules/printf-frexp-tests: New file.
15837         * tests/test-printf-frexp.c: New file.
15838
15839         * modules/printf-frexp: New file.
15840         * lib/printf-frexp.h: New file.
15841         * lib/printf-frexp.c: New file.
15842         * m4/printf-frexp.m4: New file.
15843
15844 2007-02-25  Bruno Haible  <bruno@clisp.org>
15845
15846         Assume automake >= 1.10 for the tests.
15847         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
15848         * modules/arctwo-tests: Likewise.
15849         * modules/argp-tests: Likewise.
15850         * modules/avltree-list-tests: Likewise.
15851         * modules/avltree-oset-tests: Likewise.
15852         * modules/avltreehash-list-tests: Likewise.
15853         * modules/carray-list-tests: Likewise.
15854         * modules/crc-tests: Likewise.
15855         * modules/des-tests: Likewise.
15856         * modules/gc-arcfour-tests: Likewise.
15857         * modules/gc-arctwo-tests: Likewise.
15858         * modules/gc-des-tests: Likewise.
15859         * modules/gc-hmac-md5-tests: Likewise.
15860         * modules/gc-hmac-sha1-tests: Likewise.
15861         * modules/gc-md2-tests: Likewise.
15862         * modules/gc-md4-tests: Likewise.
15863         * modules/gc-md5-tests: Likewise.
15864         * modules/gc-pbkdf2-sha1-tests: Likewise.
15865         * modules/gc-rijndael-tests: Likewise.
15866         * modules/gc-sha1-tests: Likewise.
15867         * modules/gc-tests: Likewise.
15868         * modules/getaddrinfo-tests: Likewise.
15869         * modules/hmac-md5-tests: Likewise.
15870         * modules/hmac-sha1-tests: Likewise.
15871         * modules/linked-list-tests: Likewise.
15872         * modules/linkedhash-list-tests: Likewise.
15873         * modules/lock-tests: Likewise.
15874         * modules/md2-tests: Likewise.
15875         * modules/md4-tests: Likewise.
15876         * modules/md5-tests: Likewise.
15877         * modules/rbtree-list-tests: Likewise.
15878         * modules/rbtree-oset-tests: Likewise.
15879         * modules/rbtreehash-list-tests: Likewise.
15880         * modules/read-file-tests: Likewise.
15881         * modules/rijndael-tests: Likewise.
15882         * modules/stdint-tests: Likewise.
15883         * modules/tls-tests: Likewise.
15884
15885 2007-02-24  Bruno Haible  <bruno@clisp.org>
15886
15887         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
15888         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
15889         function; instead check whether isnan with a double argument links.
15890         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
15891         function; instead check whether isnan with a 'long double' argument
15892         links.
15893         Reported by Eric Blake <ebb9@byu.net>.
15894
15895 2007-02-24  Bruno Haible  <bruno@clisp.org>
15896
15897         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
15898         defined.
15899         * lib/isnanl.c: Remove all code. Just include isnan.c.
15900         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
15901
15902 2007-02-25  Jim Meyering  <jim@meyering.net>
15903
15904         Avoid conflicting types for 'unsetenv' on FreeBSD.
15905         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
15906         conflicting with FreeBSD's (5.0 and 6.1) function declaration
15907         in stdlib.h.
15908
15909 2007-02-24  Bruno Haible  <bruno@clisp.org>
15910
15911         * modules/isnanl-nolibm-tests: New file.
15912         * tests/test-isnanl.c: New file.
15913
15914         * modules/isnanl-nolibm: New file.
15915         * lib/isnanl.h: New file.
15916         * lib/isnanl.c: New file.
15917         * m4/isnanl.m4: New file.
15918
15919 2007-02-24  Bruno Haible  <bruno@clisp.org>
15920
15921         * modules/isnan-nolibm-tests: New file.
15922         * tests/test-isnan.c: New file.
15923
15924         * modules/isnan-nolibm: New file.
15925         * lib/isnan.h: New file.
15926         * lib/isnan.c: New file.
15927         * m4/isnan.m4: New file.
15928
15929 2007-02-24  Bruno Haible  <bruno@clisp.org>
15930
15931         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
15932         assume that an exponent fits in 20 bits.
15933
15934 2007-02-24  Jim Meyering  <jim@meyering.net>
15935
15936         * m4/regex.m4: Update the description of the configure-time option,
15937         --without-included-regex, to state accurately what the defaults are,
15938         and perhaps to give people an idea why using this option is risky.
15939
15940 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15941
15942         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
15943         loops on small arguments.  This attempts to avoid the problem
15944         Bruno Haible reported for AIX 4.3.2 in
15945         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
15946
15947 2007-02-23  Bruno Haible  <bruno@clisp.org>
15948
15949         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
15950         Needed for help2man.
15951
15952 2007-02-23  Karl Berry  <karl@gnu.org>
15953
15954         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
15955         exists, foo.h should be cvs-ignored, not committed.
15956
15957 2007-02-23  Eric Blake  <ebb9@byu.net>
15958
15959         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
15960         * lib/stat-time.h (includes): Likewise.
15961         * lib/utimecmp.c (includes): Likewise.
15962         * lib/utimens.h (includes): Likewise.
15963         * lib/getdate.y (includes): Also include "timespec.h" for use
15964         internal to the module.
15965         * modules/utimens (Depends-on): Revert yesterday's patch.
15966         * modules/nanosleep (Depends-on): Add missing dependency.
15967
15968 2007-02-22  Bruno Haible  <bruno@clisp.org>
15969
15970         * lib/glob.c: Don't include getlogin_r.h.
15971
15972 2007-02-22  Jim Meyering  <jim@meyering.net>
15973
15974         * modules/utimens (Depends-on): Add timespec, required for
15975         utimens.h's inclusion of timespec.h.
15976
15977 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15978
15979         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
15980         long unreadable paths in GNU/Linux.  Problem reported by Andreas
15981         Schwab in
15982         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
15983         I'll try to think of a better way to fix the Solaris problem.
15984
15985         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
15986         like glibc; on Solaris 10, it fails with errno == EINVAL.
15987         POSIX says the behavior is unspecified if the first argument is NULL,
15988         so play it safe and never pass NULL to the system getcwd.
15989
15990 2007-02-21  Jim Meyering  <jim@meyering.net>
15991
15992         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
15993         of gettimeofday.  It would conflict with the one now always
15994         provided via sys_time_.h.  Reported by Matthew Woehlke, as
15995         an IRIX 6.5 build failure.
15996
15997 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15998
15999         Minor fixups to port to Solaris 10 with Sun C 5.8.
16000         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
16001         * modules/getcwd (Depends-on): Add dirfd.
16002         * lib/putenv.c (putenv): #undef it.
16003         (rpl_putenv): New decl.
16004         (malloc, free): Include <stdlib.h> rather than prototyping separately.
16005
16006 2007-02-20  Bruno Haible  <bruno@clisp.org>
16007
16008         * modules/stdio-tests: New file.
16009         * tests/test-stdio.c: New file.
16010
16011         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
16012         (Depends-on): Add stdio.
16013         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16014         (Include): Use <stdio.h> instead of vsnprintf.h.
16015         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16016         HAVE_DECL_VSNPRINTF.
16017         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
16018
16019         * modules/snprintf (Files): Remove lib/snprintf.h.
16020         (Depends-on): Add stdio.
16021         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16022         (Include): Use <stdio.h> instead of snprintf.h.
16023         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16024         HAVE_DECL_SNPRINTF.
16025         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
16026         * lib/getaddrinfo.c: Likewise.
16027
16028         * modules/stdio: New file.
16029         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
16030         * lib/snprintf.h: Remove file.
16031         * lib/vsnprintf.h: Remove file.
16032         * lib/.cppi-disable: Remove snprintf.h.
16033         * m4/stdio_h.m4: New file.
16034         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
16035
16036 2007-02-20  Jim Meyering  <jim@meyering.net>
16037
16038         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
16039         used by e.g., mingw.  From Bruno Haible.
16040
16041 2007-02-19  Bruno Haible  <bruno@clisp.org>
16042
16043         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
16044         warnings.
16045         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16046
16047 2007-02-19  Bruno Haible  <bruno@clisp.org>
16048
16049         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
16050         from mingw users.
16051
16052 2007-02-19  Bruno Haible  <bruno@clisp.org>
16053
16054         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
16055         warnings.
16056         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
16057
16058 2007-02-19  Jim Meyering  <jim@meyering.net>
16059
16060         Don't use FD after a successful "fdopendir (fd)".
16061         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
16062         Reset it by calling dirfd on the just-obtained DIR*.
16063
16064         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
16065         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
16066
16067 2007-02-18  Bruno Haible  <bruno@clisp.org>
16068
16069         * lib/readlink.c: Include <unistd.h>.
16070         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
16071         HAVE_READLINK.
16072         * modules/readlink (Depends-on): Add unistd.
16073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16074         (Include): Add <unistd.h>.
16075
16076         * lib/getlogin_r.h: Remove file.
16077         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
16078         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
16079         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
16080         HAVE_DECL_GETLOGIN_R.
16081         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
16082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16083         (Include): Use <unistd.h> instead of getlogin_r.h.
16084
16085         * lib/getcwd.h: Remove file.
16086         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
16087         * lib/xgetcwd.c: Likewise.
16088         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
16089         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
16090         * modules/getcwd (Files): Remove lib/getcwd.h.
16091         (Depends-on): Add unistd.
16092         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16093         (Include): Use <unistd.h> instad of getcwd.h.
16094
16095         * lib/ftruncate.c: Include <unistd.h> first.
16096         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
16097         Set HAVE_FTRUNCATE.
16098         * modules/ftruncate (Depends-on): Add unistd.
16099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16100
16101         * lib/fchdir.c: Include <unistd.h> first.
16102         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
16103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
16104         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
16105         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16106         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
16107
16108         * lib/dup2.c: Include <unistd.h> first.
16109         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
16110         HAVE_DUP2.
16111         * modules/dup2 (Depends-on): Add unistd.
16112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16113
16114         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
16115         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
16116         REPLACE_CHOWN. Don't define chown as a macro here.
16117         * modules/chown (Depends-on): Add unistd.
16118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16119
16120         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
16121         Add definition for GL_LINK_WARNING.
16122         (chown, dup2): New declarations.
16123         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
16124         link warning.
16125         (ftruncate): New declaration.
16126         (getcwd): New declaration, taken from old getcwd.h.
16127         (getlogin_r): New declaration, taken from old getlogin_r.h.
16128         (readlink): New declaration.
16129         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
16130         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
16131         (gl_PREREQ_UNISTD): Remove macro.
16132         (gl_UNISTD_MODULE_INDICATOR): New macro.
16133         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
16134         many new variables. Don't set UNISTD_H.
16135         * modules/unistd (Description): Change.
16136         (Depends-on): Add link-warning.
16137         (configure.ac): Update.
16138         (Makefile.am): Create unistd.h always. Substitute many new variables
16139         into it.
16140
16141 2007-02-18  Bruno Haible  <bruno@clisp.org>
16142
16143         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
16144         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
16145         HAVE_GETSUBOPT.
16146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
16147         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
16148         * lib/getsubopt.h: Remove file.
16149         * modules/getsubopt (Files): Remove lib/getsubopt.h.
16150         (Depends-on): Add stdlib.
16151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16152         (Includes): Use <stdlib.h> instead of getsubopt.h.
16153         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
16154         Set HAVE_GETSUBOPT.
16155         * lib/getsubopt.c: Don't include getsubopt.h.
16156
16157 2007-02-18  Bruno Haible  <bruno@clisp.org>
16158
16159         * modules/fchdir (Depends-on): Add dup2.
16160
16161 2007-02-18  Bruno Haible  <bruno@clisp.org>
16162
16163         * lib/stdlib_.h: Handle glibc's special invocation convention
16164         specially.
16165
16166 2007-02-18  Bruno Haible  <bruno@clisp.org>
16167
16168         * modules/stdlib-tests: New file.
16169         * tests/test-stdlib.c: New file.
16170
16171         * modules/mkstemp (Files): Remove lib/mkstemp.h.
16172         (Depends-on): Add stdlib.
16173         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16174         (Includes): Use <stdlib.h> instead of mkstemp.h.
16175         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16176         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
16177         * lib/mkstemp.c: Don't include mkstemp.h.
16178         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
16179         * lib/stdlib--.h: Don't include mkstemp.h.
16180
16181         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
16182         (Depends-on): Add stdlib.
16183         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16184         (Includes): Use <stdlib.h> instead of mkdtemp.h.
16185         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16186         HAVE_MKDTEMP.
16187         * lib/mkdtemp.c: Don't include mkdtemp.h.
16188         * lib/clean-temp.c: Don't include mkdtemp.h.
16189
16190         * modules/exit (Files): Remove lib/exit.h.
16191         (Depends-on): Add stdlib.
16192         (Makefile.am): Remove lib_SOURCES.
16193         (Include): Use <stdlib.h> instead of exit.h.
16194         * lib/argmatch.c: Don't include exit.h.
16195         * lib/execute.c: Likewise.
16196         * lib/pagealign_alloc.c: Likewise.
16197         * lib/pipe.c: Likewise.
16198         * lib/wait-process.c: Likewise.
16199         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
16200         * lib/exitfail.c: Likewise.
16201         * lib/savewd.c: Likewise.
16202         * lib/xsetenv.c: Likewise.
16203
16204         * modules/stdlib: New file.
16205         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
16206         and extra comments about mkstemp().
16207         * lib/exit.h: Remove file.
16208         * lib/mkdtemp.h: Remove file.
16209         * lib/mkstemp.h: Remove file.
16210         * m4/stdlib_h.m4: New file.
16211         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
16212
16213 2007-02-18  Bruno Haible  <bruno@clisp.org>
16214
16215         * modules/math-tests: New file.
16216         * tests/test-math.c: New file.
16217
16218         * modules/math: New file.
16219         * modules/mathl (Files): Remove lib/mathl.h.
16220         (Depends-on): Add math.
16221         (Makefile.am): Don't mention mathl.h.
16222         (Include): Use <math.h> instead of mathl.h.
16223         * lib/math_.h: New file.
16224         * lib/mathl.h: Remove file.
16225         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
16226         mathl.h.
16227         * lib/asinl.c: Likewise.
16228         * lib/atanl.c: Likewise.
16229         * lib/ceill.c: Likewise.
16230         * lib/cosl.c: Likewise.
16231         * lib/expl.c: Likewise.
16232         * lib/floorl.c: Likewise.
16233         * lib/frexpl.c: Likewise.
16234         * lib/ldexpl.c: Likewise.
16235         * lib/logl.c: Likewise.
16236         * lib/sincosl.c: Likewise.
16237         * lib/sinl.c: Likewise.
16238         * lib/sqrtl.c: Likewise.
16239         * lib/tanl.c: Likewise.
16240         * lib/trigl.c: Likewise.
16241         * m4/math_h.m4: New file.
16242         * MODULES.html.sh (Mathematics): Add math.
16243
16244 2007-02-17  Bruno Haible  <bruno@clisp.org>
16245
16246         * modules/wctype-tests: New file.
16247         * tests/test-wctype.c: New file.
16248
16249         * modules/wchar-tests: New file.
16250         * tests/test-wchar.c: New file.
16251
16252         * modules/unistd-tests: New file.
16253         * tests/test-unistd.c: New file.
16254
16255         * modules/time-tests: New file.
16256         * tests/test-time.c: New file.
16257
16258         * modules/sysexits-tests: New file.
16259         * tests/test-sysexits.c: New file.
16260
16261         * modules/sys_time-tests: New file.
16262         * tests/test-sys_time.c: New file.
16263
16264         * modules/sys_stat-tests: New file.
16265         * tests/test-sys_stat.c: New file.
16266
16267         * modules/sys_socket-tests: New file.
16268         * tests/test-sys_socket.c: New file.
16269
16270         * modules/sys_select-tests: New file.
16271         * tests/test-sys_select.c: New file.
16272
16273         * modules/string-tests: New file.
16274         * tests/test-string.c: New file.
16275
16276         * modules/stdbool-tests: New file.
16277         * tests/test-stdbool.c: New file.
16278
16279         * modules/netinet_in-tests: New file.
16280         * tests/test-netinet_in.c: New file.
16281
16282         * modules/inttypes-tests: New file.
16283         * tests/test-inttypes.c: New file.
16284
16285         * modules/fcntl-tests: New file.
16286         * tests/test-fcntl.c: New file.
16287
16288         * modules/byteswap-tests: New file.
16289         * tests/test-byteswap.c: New file.
16290
16291         * modules/arpa_inet-tests: New file.
16292         * tests/test-arpa_inet.c: New file.
16293
16294 2007-02-17  Bruno Haible  <bruno@clisp.org>
16295
16296         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16297         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16298         if the corresponding module is not enabled. Emit link warnings if
16299         the function is used nevertheless.
16300         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16301         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16302         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16303         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16304         * modules/inttypes (Depends-on): Add link-warning.
16305         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16306         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16307         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16308         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16309         * modules/imaxdiv (configure.ac): Likewise.
16310         * modules/strtoimax (configure.ac): Likewise.
16311         * modules/strtoumax (configure.ac): Likewise.
16312
16313 2007-02-17  Bruno Haible  <bruno@clisp.org>
16314
16315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16316         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16317         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16318         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16319
16320 2007-02-17  Bruno Haible  <bruno@clisp.org>
16321
16322         * modules/link-warning: New file.
16323         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16324         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16325         * modules/string (Depends-on): Add link-warning.
16326         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16327         string.h.
16328         * MODULES.html.sh (Support for building libraries and executables): Add
16329         link-warning.
16330
16331 2007-02-17  Bruno Haible  <bruno@clisp.org>
16332
16333         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16334         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16335         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16336         long lines.
16337
16338 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16339             Bruno Haible  <bruno@clisp.org>
16340
16341         * modules/tmpfile: New file.
16342         * lib/tmpfile.c: New file.
16343         * m4/tmpfile.m4: New file.
16344         * MODULES.html.sh (func_all_modules): New section "Input/output".
16345
16346 2007-02-15  Bruno Haible  <bruno@clisp.org>
16347
16348         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16349         (supports_delete_on_close): New function.
16350         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16351
16352 2007-02-14  Bruno Haible  <bruno@clisp.org>
16353
16354         * modules/mbspcasecmp-tests: New file.
16355         * tests/test-mbspcasecmp.sh: New file.
16356         * tests/test-mbspcasecmp.c: New file.
16357
16358         New module mbspcasecmp.
16359         * modules/mbspcasecmp: New file.
16360         * lib/mbspcasecmp.c: New file.
16361         * lib/string_.h (strncasecmp): Change warning message.
16362         (mbspcasecmp): New declaration.
16363         * m4/mbspcasecmp.m4: New file.
16364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16365         GNULIB_MBSPCASECMP.
16366         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16367         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16368
16369 2007-02-14  Bruno Haible  <bruno@clisp.org>
16370
16371         * modules/mbsncasecmp-tests: New file.
16372         * tests/test-mbsncasecmp.sh: New file.
16373         * tests/test-mbsncasecmp.c: New file.
16374
16375         New module mbsncasecmp.
16376         * modules/mbsncasecmp: New file.
16377         * lib/mbsncasecmp.c: New file.
16378         * lib/string_.h (mbsncasecmp): New declaration.
16379         * m4/mbsncasecmp.m4: New file.
16380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16381         GNULIB_MBSNCASECMP.
16382         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
16383         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
16384
16385 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16386
16387         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
16388         Verify that it doesn't overlap with our flags.
16389         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
16390         do not have the desired effect in multibyte locales; instead, use
16391         mbscasecmp.
16392         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
16393         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
16394         we don't require GNU fnmatch ourselves (if our users require it, they
16395         should do so explicitly).
16396
16397         Fix regex code so it doesn't rely on strcasecmp.
16398         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16399         Otherwise, include gnulib's langinfo.h.
16400         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16401         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16402         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16403         * modules/regex (FILES): Remove m4/codeset.m4.
16404         (Depends-on): Add localcharset.  Remove strcase.
16405
16406 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16407
16408         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16409         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16410
16411 2007-02-13  Bruno Haible  <bruno@clisp.org>
16412
16413         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16414         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16415
16416 2007-02-12  Bruno Haible  <bruno@clisp.org>
16417
16418         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16419         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
16420         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
16421         time warning rather than a link error.
16422
16423 2007-02-12  Bruno Haible  <bruno@clisp.org>
16424
16425         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
16426         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16428
16429 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16430
16431         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
16432         args, not 2.
16433
16434 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16435
16436         New module 'time', so that apps can include <time.h> as per
16437         POSIX and GNU instead of separate include files like time_r.h
16438         and timegm.h.  This implementation tries out a simpler approach
16439         for replacing decls in standard include files (as compared to
16440         the string module), somewhat as an experiment.
16441
16442         * config/srclist.txt: Comment out mktime.c for now.
16443         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
16444         since it doesn't apply any more.  Use generic wording instead.
16445         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
16446         'time'.
16447         * lib/time_.h, m4/time_h.m4, modules/time: New files.
16448         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
16449         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
16450         Don't include <sys/types.h>; no longer needed since we assume C89.
16451         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
16452         * lib/strftime.c: Likewise.
16453         * lib/time_r.c: Likewise.
16454         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
16455         * lib/nanosleep.c: Include <time.h> first, to check interface.
16456         * lib/strptime.c: Likewise.
16457         * lib/time_r.c: Likewise.
16458         * lib/timegm.c: Likewise.
16459         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
16460         needed.
16461         * lib/timegm.c: Don't include timegm.h; no longer needed.
16462         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
16463         time.h now handles any problems in that area.
16464         (struct timespec, nanosleep): Remove; time.h now arranges for these.
16465         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
16466         that time.h defines struct timespec.
16467         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
16468         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
16469         handles that.
16470         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
16471         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
16472         needed.  Set REPLACE_LOCALTIME.
16473         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
16474         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
16475         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
16476         nanosleep; time_h.m4 now does that.  Don't require
16477         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
16478         module handles this now.
16479         * modules/getdate (Depends-on): Remove timespec.  Add time.
16480         * modules/nanosleep (Depends-on): Likewise.
16481         * modules/stat-time (Depends-on): Likewise.
16482         * modules/nanosleep (Include): Include time.h, not timespec.h.
16483         * modules/strptime (Files): Remove lib/strptime.h.
16484         (Depends-on): Add extensions, time.
16485         (Include): Include time.h, not strptime.h.
16486         * modules/time_r (Files): Remove lib/time_r.h.
16487         (Depends-on): Add time.
16488         (Include): Include time.h, not time_r.h.
16489         * modules/timegm: Likewise.
16490         * modules/timespec (Description): Now does timespec-related decls
16491         of our own, instead of struct timespec itself.
16492         (Depends-on): Add time; remove extensions.
16493         (Maintainer): Add self.
16494         * modules/utimecmp (Depends-on): Add time; remove timespec.
16495         * modules/utimens (Depends-on): Likewise.
16496         * modules/xnanosleep (Depends-on): Likewise.
16497
16498 2007-02-11  Bruno Haible  <bruno@clisp.org>
16499
16500         * lib/c-strstr.c: Include allocsa.h.
16501         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16502         * lib/c-strcasestr.c: Include allocsa.h.
16503         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16504         * lib/strcasestr.c: Include allocsa.h.
16505         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16506         * lib/mbsstr.c: Include allocsa.h.
16507         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16508         allocsa/freesa instead of malloc/free.
16509         * lib/mbscasestr.c: Include allocsa.h.
16510         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16511         allocsa/freesa instead of malloc/free.
16512         * modules/c-strstr (Depends-on): Add allocsa.
16513         * modules/c-strcasestr (Depends-on): Likewise.
16514         * modules/strcasestr (Depends-on): Likewise.
16515         * modules/mbsstr (Depends-on): Likewise.
16516         * modules/mbscasestr (Depends-on): Likewise.
16517
16518 2007-02-11  Bruno Haible  <bruno@clisp.org>
16519
16520         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
16521
16522         * modules/mbsspn-tests: New file.
16523         * tests/test-mbsspn.sh: New file.
16524         * tests/test-mbsspn.c: New file.
16525
16526 2007-02-11  Bruno Haible  <bruno@clisp.org>
16527
16528         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
16529
16530         * modules/mbspbrk-tests: New file.
16531         * tests/test-mbspbrk.sh: New file.
16532         * tests/test-mbspbrk.c: New file.
16533
16534 2007-02-11  Bruno Haible  <bruno@clisp.org>
16535
16536         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
16537         unneeded cast.
16538
16539         * modules/mbscspn-tests: New file.
16540         * tests/test-mbscspn.sh: New file.
16541         * tests/test-mbscspn.c: New file.
16542
16543 2007-02-11  Bruno Haible  <bruno@clisp.org>
16544
16545         * modules/mbscasecmp-tests: New file.
16546         * tests/test-mbscasecmp.sh: New file.
16547         * tests/test-mbscasecmp.c: New file.
16548
16549 2007-02-11  Bruno Haible  <bruno@clisp.org>
16550
16551         Ensure O(n) worst-case complexity of mbscasestr.
16552         * lib/mbscasestr.c: Include stdbool.h.
16553         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16554         functions.
16555         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
16556         the bookkeeping indicates that it's worth it.
16557         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
16558
16559         * modules/mbscasestr-tests: New file.
16560         * tests/test-mbscasestr1.c: New file.
16561         * tests/test-mbscasestr2.sh: New file.
16562         * tests/test-mbscasestr2.c: New file.
16563         * tests/test-mbscasestr3.sh: New file.
16564         * tests/test-mbscasestr3.c: New file.
16565         * tests/test-mbscasestr4.sh: New file.
16566         * tests/test-mbscasestr4.c: New file.
16567         * m4/locale-tr.m4: New file.
16568
16569 2007-02-11  Bruno Haible  <bruno@clisp.org>
16570
16571         Ensure O(n) worst-case complexity of mbsstr.
16572         * lib/mbsstr.c: Include stdbool.h.
16573         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16574         functions.
16575         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
16576         bookkeeping indicates that it's worth it.
16577         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
16578
16579         * modules/mbsstr-tests: New file.
16580         * tests/test-mbsstr1.c: New file.
16581         * tests/test-mbsstr2.sh: New file.
16582         * tests/test-mbsstr2.c: New file.
16583         * tests/test-mbsstr3.sh: New file.
16584         * tests/test-mbsstr3.c: New file.
16585         * m4/locale-fr.m4: New file.
16586
16587 2007-02-11  Bruno Haible  <bruno@clisp.org>
16588
16589         * lib/mbsrchr.c (mbsrchr): Fix bug.
16590
16591         * modules/mbsrchr-tests: New file.
16592         * tests/test-mbsrchr.sh: New file.
16593         * tests/test-mbsrchr.c: New file.
16594
16595 2007-02-11  Bruno Haible  <bruno@clisp.org>
16596
16597         * lib/mbschr.c (mbschr): Fix bug.
16598
16599         * modules/mbschr-tests: New file.
16600         * tests/test-mbschr.sh: New file.
16601         * tests/test-mbschr.c: New file.
16602         * m4/locale-zh.m4: New file.
16603
16604 2007-02-11  Bruno Haible  <bruno@clisp.org>
16605
16606         Support for copying multibyte string iterators.
16607         * lib/mbiter.h: Include <string.h>.
16608         (mbiter_multi_copy): New function.
16609         (mbi_copy): New macro.
16610         * lib/mbuiter.h: Include <string.h>.
16611         (mbuiter_multi_copy): New function.
16612         (mbui_copy): New macro.
16613
16614 2007-02-11  Bruno Haible  <bruno@clisp.org>
16615
16616         New module mbslen.
16617         * modules/mbslen: New file.
16618         * lib/mbslen.c: New file.
16619         * lib/string_.h (mbslen): New declaration.
16620         * m4/mbslen.m4: New file.
16621         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16622         GNULIB_MBSLEN.
16623         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
16624         * MODULES.html.sh (Internationalization functions): Add mbslen.
16625
16626 2007-02-11  Bruno Haible  <bruno@clisp.org>
16627
16628         Ensure O(n) worst-case complexity of strcasestr substitute.
16629         * lib/strcasestr.c: Include stdbool.h.
16630         (knuth_morris_pratt): New function.
16631         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16632         bookkeeping indicates that it's worth it.
16633         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
16634
16635         * modules/strcasestr-tests: New file.
16636         * tests/test-strcasestr.c: New file.
16637
16638 2007-02-11  Bruno Haible  <bruno@clisp.org>
16639
16640         Ensure O(n) worst-case complexity of c_strcasestr.
16641         * lib/c-strcasestr.c: Include stdbool.h, string.h.
16642         (knuth_morris_pratt): New function.
16643         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
16644         the bookkeeping indicates that it's worth it.
16645         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
16646
16647         * modules/c-strcasestr-tests: New file.
16648         * tests/test-c-strcasestr.c: New file.
16649
16650 2007-02-11  Bruno Haible  <bruno@clisp.org>
16651
16652         Ensure O(n) worst-case complexity of c_strstr.
16653         * lib/c-strstr.c: Include stdbool.h, string.h.
16654         (knuth_morris_pratt): New function.
16655         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16656         bookkeeping indicates that it's worth it.
16657         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
16658
16659         * lib/c-strstr.c: Complete rewrite for maintainability.
16660
16661         * modules/c-strstr-tests: New file.
16662         * tests/test-c-strstr.c: New file.
16663
16664 2007-02-11  Bruno Haible  <bruno@clisp.org>
16665
16666         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
16667         5.2.1 and earlier, whereby \055 was treated just like the range
16668         delimiter '-'.
16669         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16670
16671 2007-02-08  Bruno Haible  <bruno@clisp.org>
16672
16673         * modules/regex (Depends-on): Add stdbool.
16674         Reported by Dalibor Topic <robilad@kaffe.org>.
16675
16676 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16677
16678         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
16679         Prefer returning from main to exiting from it.
16680         Remove unnecessary parens after sizeof.
16681
16682 2007-02-05  Bruno Haible  <bruno@clisp.org>
16683
16684         New module mbssep.
16685         * modules/mbssep: New file.
16686         * lib/mbssep.c: New file.
16687         * lib/string_.h (strsep): Add a conditional link warning.
16688         (mbssep): New declaration.
16689         * m4/mbssep.m4: New file.
16690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16691         GNULIB_MBSSEP.
16692         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16693         * MODULES.html.sh (Internationalization functions): Add mbssep.
16694
16695 2007-02-05  Bruno Haible  <bruno@clisp.org>
16696
16697         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16698         Optimize search in case of 1 delimiter.
16699
16700 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16701
16702         * lib/acl.h: Include sys/types.h before sys/acl.h.
16703
16704 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16705
16706         Merge upstream fix for glibc bugzilla #3957:
16707
16708         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
16709
16710         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16711         bit for RE_HAT_LISTS_NOT_NEWLINE.
16712         (build_charclass_op): Remove bogus comment.
16713
16714 2007-02-05  Simon Josefsson  <simon@josefsson.org>
16715
16716         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
16717
16718 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16719
16720         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
16721         * lib/memmem.c [!defined _LIBC]: Include config.h.
16722
16723 2007-02-04  Bruno Haible  <bruno@clisp.org>
16724
16725         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
16726         warning message.
16727
16728 2007-02-04  Bruno Haible  <bruno@clisp.org>
16729
16730         New module mbstok_r.
16731         * modules/mbstok_r: New file.
16732         * lib/mbstok_r.c: New file.
16733         * lib/string_.h (strtok_r): Change argument names to match the
16734         comments. Add a conditional link warning.
16735         (mbstok_r): New declaration.
16736         * m4/mbstok_r.m4: New file.
16737         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16738         GNULIB_MBSTOK_R.
16739         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
16740         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
16741
16742 2007-02-04  Bruno Haible  <bruno@clisp.org>
16743
16744         New module mbsspn.
16745         * modules/mbsspn: New file.
16746         * lib/mbsspn.c: New file.
16747         * lib/string_.h (strspn): Add a conditional link warning.
16748         (mbsspn): New declaration.
16749         * m4/mbsspn.m4: New file.
16750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16751         GNULIB_MBSSPN.
16752         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
16753         * MODULES.html.sh (Internationalization functions): Add mbsspn.
16754
16755 2007-02-04  Bruno Haible  <bruno@clisp.org>
16756
16757         New module mbspbrk.
16758         * modules/mbspbrk: New file.
16759         * lib/mbspbrk.c: New file.
16760         * lib/string_.h (strpbrk): Add a conditional link warning.
16761         (mbspbrk): New declaration.
16762         * m4/mbspbrk.m4: New file.
16763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16764         GNULIB_MBSPBRK.
16765         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
16766         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
16767
16768 2007-02-04  Bruno Haible  <bruno@clisp.org>
16769
16770         New module mbscspn.
16771         * modules/mbscspn: New file.
16772         * lib/mbscspn.c: New file.
16773         * lib/string_.h (strcspn): Add a conditional link warning.
16774         (mbscspn): New declaration.
16775         * m4/mbscspn.m4: New file.
16776         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16777         GNULIB_MBSCSPN.
16778         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
16779         * MODULES.html.sh (Internationalization functions): Add mbscspn.
16780
16781 2007-02-04  Bruno Haible  <bruno@clisp.org>
16782
16783         New module mbscasestr, reduced goal of strcasestr.
16784         * modules/mbscasestr: New file.
16785         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
16786         (mbscasestr): Renamed from strcasestr.
16787         * lib/strcasestr.c: Don't include mbuiter.h.
16788         (strcasestr): Remove support for multibyte locales.
16789         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
16790         Change the conditional link warning.
16791         (mbscasestr): New declaration.
16792         * m4/mbscasestr.m4: New file.
16793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
16794         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
16795         REPLACE_STRCASESTR.
16796         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
16797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16798         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16799         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
16800         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
16801         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16802         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
16803         (Depends-on): Remove mbuiter.
16804         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
16805
16806 2007-02-04  Bruno Haible  <bruno@clisp.org>
16807
16808         Simplify handling of strncasecmp.
16809         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
16810         the conditional link warning.
16811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16812         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
16813         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
16814         * modules/strcase (configure.ac): Don't invoke
16815         gl_STRING_MODULE_INDICATOR.
16816         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
16817
16818 2007-02-04  Bruno Haible  <bruno@clisp.org>
16819
16820         New module mbscasecmp, reduced goal of strcasecmp.
16821         * modules/mbscasecmp: New file.
16822         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
16823         (mbscasecmp): Renamed from strcasecmp.
16824         * lib/strcasecmp.c: Don't include mbuiter.h.
16825         (strcasecmp): Remove support for multibyte locales.
16826         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
16827         Change the conditional link warning.
16828         (mbscasecmp): New declaration.
16829         * m4/mbscasecmp.m4: New file.
16830         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
16831         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
16832         REPLACE_STRCASECMP.
16833         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
16834         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16835         GNULIB_MBSCASECMP.
16836         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
16837         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
16838         * modules/strcase (Files): Remove m4/mbrtowc.m4.
16839         (Depends-on): Remove mbuiter.
16840         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
16841
16842 2007-02-04  Bruno Haible  <bruno@clisp.org>
16843
16844         New module mbsstr. Remove module strstr.
16845         * modules/mbsstr: New file.
16846         * modules/strstr: Remove file.
16847         * lib/mbsstr.c: Renamed from lib/strstr.c.
16848         (mbsstr): Renamed from strstr.
16849         * lib/string_.h (strstr): Remove declaration. Change the conditional
16850         link warning.
16851         (mbsstr): New declaration.
16852         * m4/mbsstr.m4: New file.
16853         * m4/strstr.m4: Remove file.
16854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16855         REPLACE_STRSTR.
16856         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
16857         Don't initialize GNULIB_STRSTR.
16858         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
16859         substitute GNULIB_STRSTR and REPLACE_STRSTR.
16860         * MODULES.html.sh (Internationalization functions): Add mbsstr.
16861         (Support for systems lacking ANSI C 89): Remove strstr.
16862
16863 2007-02-04  Bruno Haible  <bruno@clisp.org>
16864
16865         New module mbsrchr.
16866         * modules/mbsrchr: New file.
16867         * lib/mbsrchr.c: New file.
16868         * lib/string_.h (strrchr): Add a conditional link warning.
16869         (mbsrchr): New declaration.
16870         * m4/mbsrchr.m4: New file.
16871         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16872         GNULIB_MBSRCHR.
16873         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
16874         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
16875
16876 2007-02-04  Bruno Haible  <bruno@clisp.org>
16877
16878         New module mbschr.
16879         * modules/mbschr: New file.
16880         * lib/mbschr.c: New file.
16881         * lib/string_.h (strchr): Add a conditional link warning.
16882         (mbschr): New declaration.
16883         * m4/mbschr.m4: New file.
16884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16885         GNULIB_MBSCHR.
16886         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
16887         * MODULES.html.sh (Internationalization functions): Add mbschr.
16888
16889 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16890
16891         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
16892
16893         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
16894
16895 2007-02-04  Bruno Haible  <bruno@clisp.org>
16896
16897         New module description section 'configure.ac-early'.
16898         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
16899         (func_get_autoconf_early_snippet): New function.
16900         (func_import, func_create_testdir): Use it. Remove special cases for
16901         modules 'extensions' and 'lock'.
16902         * modules/extensions (configure.ac-early): Require
16903         gl_USE_SYSTEM_EXTENSIONS.
16904         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
16905
16906 2007-02-04  Bruno Haible  <bruno@clisp.org>
16907
16908         Make use of gcj-4.3's -fsource and -ftarget option.
16909         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
16910         and if so try the options -fsource and -ftarget.
16911         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
16912         source_version, ftarget_option, target_version arguments.
16913         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
16914         (is_envjavac_oldgcj_14_14_usable): Renamed from
16915         is_envjavac_gcj_14_14_usable.
16916         (is_envjavac_oldgcj_14_13_usable): Renamed from
16917         is_envjavac_gcj_14_13_usable.
16918         (is_gcj_present): Update.
16919         (is_gcj_43, is_gcj43_usable): New functions.
16920         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
16921         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
16922         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
16923         try the options -fsource and -ftarget.
16924
16925 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16926
16927         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
16928         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
16929         larger value.
16930
16931 2007-02-03  Jim Meyering  <jim@meyering.net>
16932
16933         Give tools a better chance to allocate space for very large buffers.
16934         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
16935
16936         Make pwd and readlink work also when run with an unreadable parent dir
16937         on systems with openat support.
16938         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
16939         provided getcwd function, even when we have openat support.
16940         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
16941
16942 2007-02-02  Bruno Haible  <bruno@clisp.org>
16943
16944         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16945         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
16946         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
16947         portability problems if one of these functions is only used on specific
16948         platforms.
16949         Reported by Paul Eggert.
16950
16951 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16952
16953         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
16954         is causing more trouble than it's curing.
16955         * lib/regex_internal.h (__mempcpy): Remove.
16956         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
16957         (and make the code a tad smaller to boot).
16958         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
16959
16960 2007-02-02  Jim Meyering  <jim@meyering.net>
16961
16962         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
16963         section, not in the Makefile.am: one.
16964
16965 2007-02-02  Eric Blake  <ebb9@byu.net>
16966
16967         * lib/strchrnul.c: Always include config.h first.
16968
16969         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
16970         gnulib strstr is not necessary here.
16971
16972 2007-02-02  Simon Josefsson  <simon@josefsson.org>
16973
16974         * m4/socklen.m4: Fix typo.
16975
16976 2007-02-02  Eric Blake  <ebb9@byu.net>
16977
16978         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
16979         * modules/netinet_in (Makefile.am): Likewise.
16980
16981 2007-02-01  Bruno Haible  <bruno@clisp.org>
16982
16983         * lib/string_.h (GL_LINK_WARNING): New macro.
16984         (strcasecmp, strstr, strcasestr): If provided by the system,
16985         conditionally define as a macro that leads to a warning instead of to
16986         an error.
16987         (strncasecmp): Conditionally define as a macro that leads to a warning.
16988
16989 2007-02-01  Karl Berry  <karl@gnu.org>
16990
16991         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
16992
16993 2007-02-01  Bruno Haible  <bruno@clisp.org>
16994
16995         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
16996         renamings.
16997
16998 2007-02-01  Eric Blake  <ebb9@byu.net>
16999
17000         * modules/regex (Depends-on): Revert dependence on mempcpy.
17001         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
17002         module's definition of mempcpy.
17003         Reported by Paul Eggert.
17004
17005 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
17006
17007         * lib/string_.h: If the gnulib module XYZ is not present, undefine
17008         the symbol XYZ before redefining it.  This fixes a problem with
17009         programs that don't use XYZ, when compiled on systems that define
17010         XYZ to something else.
17011
17012 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17013
17014         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
17015         occurs when "mkdir -m foo" creates a setgid directory that is (1)
17016         writeable to group or other and (2) is intended to have a special
17017         mode bit that is set or cleared.  In such a case, the directory
17018         should be neither group- nor other-writeable until the special
17019         mode bits are right.
17020
17021 2007-01-31  Eric Blake  <ebb9@byu.net>
17022
17023         * modules/mountlist (Depends-on): Add strstr.
17024
17025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
17026         bug.
17027         * modules/string (Makefile.am): Remove redundant replacement.
17028         * modules/regex (Depends-on): Add mempcpy.
17029
17030 2007-01-31  Bruno Haible  <bruno@clisp.org>
17031
17032         New module description field 'Link'.
17033         * gnulib-tool (func_usage): Document --extract-link-directive.
17034         (sed_extract_prog): Recognize 'Link' directive.
17035         (func_get_link_directive): New function.
17036         (func_import): Show summary of link directives.
17037         Handle --extract-link-directive option.
17038         * modules/acl (Link): New section.
17039         * modules/clock-time (Link): New section.
17040         * modules/euidaccess (Link): New section.
17041         * modules/gettext (Link): New section.
17042         * modules/iconv (Link): New section.
17043         * modules/lock (Link): New section.
17044         * modules/nanosleep (Link): New section.
17045         * modules/readline (Link): New section.
17046
17047 2007-01-27  Bruno Haible  <bruno@clisp.org>
17048
17049         Enforce the use of gnulib modules for unportable <string.h> functions.
17050         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
17051         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
17052         (gl_HEADER_STRING_H_BODY): Require it.
17053         * lib/string_.h: If the gnulib module XYZ is not present, redefine
17054         the symbol XYZ to one that gives a link error.
17055         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
17056         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
17057         * modules/mempcpy (configure.ac): Likewise.
17058         * modules/memrchr (configure.ac): Likewise.
17059         * modules/stpcpy (configure.ac): Likewise.
17060         * modules/stpncpy (configure.ac): Likewise.
17061         * modules/strcase (configure.ac): Likewise.
17062         * modules/strcasestr (configure.ac): Likewise.
17063         * modules/strchrnul (configure.ac): Likewise.
17064         * modules/strdup (configure.ac): Likewise.
17065         * modules/strndup (configure.ac): Likewise.
17066         * modules/strnlen (configure.ac): Likewise.
17067         * modules/strpbrk (configure.ac): Likewise.
17068         * modules/strsep (configure.ac): Likewise.
17069         * modules/strstr (configure.ac): Likewise.
17070         * modules/strtok_r (configure.ac): Likewise.
17071
17072 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
17073
17074         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
17075
17076 2007-01-30  Jim Meyering  <jim@meyering.net>
17077
17078         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
17079
17080 2007-01-29  Bruno Haible  <bruno@clisp.org>
17081
17082         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
17083         * lib/execute.c: Likewise.
17084         * lib/pipe.c: Likewise.
17085         * lib/printf-args.h: Likewise.
17086         * lib/printf-args.c: Likewise.
17087         * lib/printf-parse.c: Likewise.
17088         * lib/vasnprintf.c: Likewise.
17089
17090 2007-01-29  Eric Blake  <ebb9@byu.net>
17091
17092         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
17093         declaration.
17094
17095 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17096
17097         * lib/strptime.h (strptime): Use 'restrict' for args where
17098         POSIX requires this.
17099         * lib/strptime.c (strptime): Likewise.
17100         Change license notice from LGPL to GPL, since gnulib-tool will
17101         change this as needed.
17102         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
17103         defined.
17104         Include "strptime.h" first, to check interface.
17105         Do not #undef _LIBC and _NL_CURRENT.
17106         Do not include <stdlib.h>; no longer needed.
17107         Include "time_r.h" and declare ptime_locale_status
17108         only if _LIBC is not defined.
17109         (__P): Remove unused macro.
17110         (match_string): Bring back glibc version, but use it only if _LIBC
17111         is defined.
17112         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
17113         Remove unnecessary assertion and abort() call.
17114         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
17115         * m4/strptime.m4: Fix serial number comment.
17116         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
17117         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
17118         (Depends-on): Add time_r.
17119
17120 2007-01-29  Bruno Haible  <bruno@clisp.org>
17121
17122         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17123         strptime.
17124         * modules/strptime (Depends-on): Add stdbool.
17125         * lib/strptime.h: Include <time.h> always. Add comments.
17126
17127 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17128
17129         * modules/strptime: New file.
17130         * lib/strptime.h: New file.
17131         * lib/strptime.c: New file.
17132         * m4/strptime.m4: New file.
17133
17134 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17135
17136         * MODULES.html.sh: New module mpsort.
17137         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
17138
17139         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
17140         a circularity problem with HP-UX ia64 reported by Bob Proulx in
17141         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
17142         All uses changed.
17143         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
17144         All uses changed.
17145         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
17146         to _Restrict_.
17147         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
17148         the parameter matches the prototype.
17149
17150 2007-01-28  Jim Meyering  <jim@meyering.net>
17151
17152         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17153         sys/time.h here, reverting that part of the previous patch:
17154         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
17155
17156 2007-01-28  Bruno Haible  <bruno@clisp.org>
17157
17158         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
17159         value of $(SYS_TIME_H).
17160         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
17161         remove it conditionally, too. [added by Jim Meyering]
17162         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
17163         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17164         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
17165         GETTIMEOFDAY_REPLACEMENT to 1.
17166
17167 2007-01-28  Bruno Haible  <bruno@clisp.org>
17168
17169         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
17170         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
17171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
17172         Set UNISTD_H instead of UNISTD_H2.
17173         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
17174
17175 2007-01-28  Bruno Haible  <bruno@clisp.org>
17176
17177         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
17178         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
17179
17180 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17181
17182         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
17183         (func_create_testdir): Ensure C locale for `grep' and `tr'
17184         character ranges.
17185         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
17186         ACLOCAL_AMFLAGS parsing state machine.
17187
17188 2007-01-27  Bruno Haible  <bruno@clisp.org>
17189
17190         * modules/unistr/base: Update.
17191
17192 2007-01-27  Bruno Haible  <bruno@clisp.org>
17193
17194         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
17195         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
17196         * modules/unistr/u32-mbtouc-unsafe: Renamed from
17197         modules/unistr/u32-mbtouc.
17198         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
17199         * lib/unistr.h: Update.
17200         * lib/linebreak.c: Update.
17201         * modules/unistr/u32-mbtouc: Renamed from
17202         modules/unistr/u32-mbtouc-safe.
17203         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
17204         * lib/unistr.h: Update.
17205         * lib/unistr/u32-to-u8.c: Update.
17206         * lib/unistr/u32-to-u16.c: Update.
17207
17208 2007-01-27  Bruno Haible  <bruno@clisp.org>
17209
17210         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
17211         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
17212         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
17213         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
17214         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
17215         * modules/unistr/u16-mbtouc-unsafe: Renamed from
17216         modules/unistr/u16-mbtouc.
17217         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
17218         * lib/unistr.h: Update.
17219         * lib/linebreak.c: Update.
17220         * modules/linebreak: Update.
17221         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
17222         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
17223         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
17224         * modules/unistr/u16-mbtouc: Renamed from
17225         modules/unistr/u16-mbtouc-safe.
17226         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
17227         * lib/unistr.h: Update.
17228         * lib/unistr/u16-to-u8.c: Update.
17229         * modules/unistr/u16-to-u8: Update.
17230         * lib/unistr/u16-to-u32.c: Update.
17231         * modules/unistr/u16-to-u32: Update.
17232
17233 2007-01-27  Bruno Haible  <bruno@clisp.org>
17234
17235         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
17236         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
17237         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
17238         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
17239         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
17240         * modules/unistr/u8-mbtouc-unsafe: Renamed from
17241         modules/unistr/u8-mbtouc.
17242         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
17243         * lib/unistr.h: Update.
17244         * lib/striconveh.c: Update.
17245         * modules/striconveh: Update.
17246         * lib/linebreak.c: Update.
17247         * modules/linebreak: Update.
17248         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
17249         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
17250         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
17251         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
17252         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
17253         * lib/unistr.h: Update.
17254         * lib/striconveh.c: Update.
17255         * modules/striconveh: Update.
17256         * lib/unistr/u8-to-u16.c: Update.
17257         * modules/unistr/u8-to-u16: Update.
17258         * lib/unistr/u8-to-u32.c: Update.
17259         * modules/unistr/u8-to-u32: Update.
17260
17261 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17262
17263         Sync from Libtool.
17264         * lib/argz.c: Do not include strings.h nor memory.h, include
17265         string.h unconditionally.  Patch by Simon Josefsson.
17266
17267 2007-01-27  Bruno Haible  <bruno@clisp.org>
17268
17269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
17270         from gl_HEADER_STRING_H_BODY.
17271         (gl_HEADER_STRING_H_BODY): Require it.
17272         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
17273         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17274         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17275         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17276         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17277         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
17278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17279         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17280         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17281         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17282         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17283         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17284         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17285         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17286         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17287
17288 2007-01-27  Bruno Haible  <bruno@clisp.org>
17289
17290         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17291         check_PROGRAMS into noinst_PROGRAMS.
17292         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17293         check_PROGRAMS in this case.
17294         (func_import): Set for_test to false.
17295         (func_create_testdir): Set for_test to true.
17296
17297 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17298             Bruno Haible  <bruno@clisp.org>
17299
17300         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17301         (Depends-on): Add string.
17302         (Includes): Use <string.h> instead of strcasestr.h.
17303         * modules/string (Makefile.am): Also substitute the value of
17304         REPLACE_STRCASESTR.
17305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17306         assume strcasestr is declared in <string.h> not <strings.h>. Also
17307         set REPLACE_STRCASESTR.
17308         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17309         REPLACE_STRCASESTR.
17310         * lib/strcasestr.h: Remove file.
17311         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17312         * lib/string_.h (strcasestr): New declaration.
17313
17314 2007-01-27  Bruno Haible  <bruno@clisp.org>
17315
17316         * lib/string_.h: Use 'extern'.
17317
17318 2007-01-27  Jim Meyering  <jim@meyering.net>
17319
17320         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17321         of set-but-not-used local, "q".
17322
17323         * lib/mempcpy.c: Include <config.h> before <string.h>.
17324         This fixes a compilation error on HP-UX, due to the system's
17325         "restrict"-using mempcpy prototype.
17326
17327 2007-01-26  Bruno Haible  <bruno@clisp.org>
17328
17329         Small optimization.
17330         * lib/javacomp.c: Include c-strstr.h.
17331          (is_envjavac_gcj): Use c_strstr instead of strstr.
17332         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17333
17334 2007-01-26  Bruno Haible  <bruno@clisp.org>
17335
17336         * MODULES.html.sh (Unicode string functions): Add the new modules.
17337
17338         * modules/uniconv/u32-strconv-to-locale: New file.
17339         * lib/uniconv/u32-strconv-to-locale.c: New file.
17340
17341         * modules/uniconv/u16-strconv-to-locale: New file.
17342         * lib/uniconv/u16-strconv-to-locale.c: New file.
17343
17344         * modules/uniconv/u8-strconv-to-locale: New file.
17345         * lib/uniconv/u8-strconv-to-locale.c: New file.
17346
17347         * modules/uniconv/u32-strconv-from-locale: New file.
17348         * lib/uniconv/u32-strconv-from-locale.c: New file.
17349
17350         * modules/uniconv/u16-strconv-from-locale: New file.
17351         * lib/uniconv/u16-strconv-from-locale.c: New file.
17352
17353         * modules/uniconv/u8-strconv-from-locale: New file.
17354         * lib/uniconv/u8-strconv-from-locale.c: New file.
17355
17356         * modules/uniconv/u32-strconv-to-enc: New file.
17357         * lib/uniconv/u32-strconv-to-enc.c: New file.
17358         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17359         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17360
17361         * modules/uniconv/u16-strconv-to-enc: New file.
17362         * lib/uniconv/u16-strconv-to-enc.c: New file.
17363         * lib/uniconv/u-strconv-to-enc.h: New file.
17364         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17365         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17366
17367         * modules/uniconv/u8-strconv-to-enc: New file.
17368         * lib/uniconv/u8-strconv-to-enc.c: New file.
17369         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17370         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17371
17372         * modules/uniconv/u32-strconv-from-enc: New file.
17373         * lib/uniconv/u32-strconv-from-enc.c: New file.
17374         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17375         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17376
17377         * modules/uniconv/u16-strconv-from-enc: New file.
17378         * lib/uniconv/u16-strconv-from-enc.c: New file.
17379         * modules/uniconv/u16-strconv-from-enc-tests: New file.
17380         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
17381
17382         * modules/uniconv/u8-strconv-from-enc: New file.
17383         * lib/uniconv/u8-strconv-from-enc.c: New file.
17384         * lib/uniconv/u-strconv-from-enc.h: New file.
17385         * modules/uniconv/u8-strconv-from-enc-tests: New file.
17386         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
17387
17388         * modules/uniconv/u32-conv-from-enc: New file.
17389         * lib/uniconv/u32-conv-from-enc.c: New file.
17390         * modules/uniconv/u32-conv-from-enc-tests: New file.
17391         * tests/uniconv/test-u32-conv-from-enc.c: New file.
17392
17393         * modules/uniconv/u16-conv-from-enc: New file.
17394         * lib/uniconv/u16-conv-from-enc.c: New file.
17395         * lib/uniconv/u-conv-from-enc.h: New file.
17396         * modules/uniconv/u16-conv-from-enc-tests: New file.
17397         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17398
17399         * modules/uniconv/u8-conv-from-enc: New file.
17400         * lib/uniconv/u8-conv-from-enc.c: New file.
17401         * modules/uniconv/u8-conv-from-enc-tests: New file.
17402         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17403
17404         * modules/uniconv/base: New file.
17405         * lib/uniconv.h: New file.
17406
17407 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17408
17409         * doc/gnulib-tool.texi (Initial import): Update to match current
17410         behavior with strdup module.
17411         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17412         * lib/memmem.h: Remove; all uses removed.  This is now done
17413         by <string.h>.
17414         * lib/mempcpy.h: Likewise.
17415         * lib/memrchr.h: Likewise.
17416         * lib/stpcpy.h: Likewise.
17417         * lib/stpncpy.h: Likewise.
17418         * lib/strcase.h: Likewise.
17419         * lib/strchrnul.h: Likewise.
17420         * lib/strdup.h: Likewise.
17421         * lib/strndup.h: Likewise.
17422         * lib/strnlen.h: Likewise.
17423         * lib/strpbrk.h: Likewise.
17424         * lib/strsep.h: Likewise.
17425         * lib/strstr.h: Likewise.
17426         * lib/strtok_r.h: Likewise.
17427         * lib/string_.h: New file.
17428         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
17429         Rely on <string.h> instead.
17430         * lib/canon-host.c: Likewise.
17431         * lib/chdir-long.c: Likewise.
17432         * lib/concatpath.c: Likewise.
17433         * lib/exclude.c: Likewise.
17434         * lib/fchdir.c: Likewise.
17435         * lib/getaddrinfo.c: Likewise.
17436         * lib/getcwd.c: Likewise.
17437         * lib/getsubopt.c: Likewise.
17438         * lib/glob.c: Likewise.
17439         * lib/hard-locale.c: Likewise.
17440         * lib/iconvme.c: Likewise.
17441         * lib/javacomp.c: Likewise.
17442         * lib/mempcpy.c: Likewise.
17443         * lib/memrchr.c: Likewise.
17444         * lib/regex_internal.h: Likewise.
17445         * lib/stpncpy.c: Likewise.
17446         * lib/strcasecmp.c: Likewise.
17447         * lib/strchrnul.c: Likewise.
17448         * lib/strdup.c: Likewise.
17449         * lib/striconv.c: Likewise.
17450         * lib/striconveh.c: Likewise.
17451         * lib/striconveha.c: Likewise.
17452         * lib/strncasecmp.c: Likewise.
17453         * lib/strndup.c: Likewise.
17454         * lib/strnlen.c: Likewise.
17455         * lib/strsep.c: Likewise.
17456         * lib/strstr.c: Likewise.
17457         * lib/strtok_r.c: Likewise.
17458         * lib/userspec.c: Likewise.
17459         * lib/w32spawn.h: Likewise.
17460         * lib/xstrndup.c: Likewise.
17461         * lib/mountlist.c (strstr): Remove decl.
17462         * m4/string_h.m4: New file.
17463         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
17464         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
17465         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
17466         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
17467         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
17468         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
17469         Set REPLACE_STRCASECMP if necessary.
17470         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
17471         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
17472         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
17473         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
17474         HAVE_DECL_STRDUP if necessary.
17475         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
17476         since gl_FUNC_STRNDUP does that now.
17477         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
17478         Check for decl here...
17479         (gl_PREREQ_STRNLEN): ... not here.
17480         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
17481         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
17482         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
17483         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
17484         necessary.
17485         * modules/string: New file.
17486         * modules/memmem (Files): Remove special-purpose include file.
17487         (Depends-on): Add string.
17488         (Include): Include <string.h>, not the removed file.
17489         * modules/mempcpy: Likewise.
17490         * modules/memrchr: Likewise.
17491         * modules/stpcpy: Likewise.
17492         * modules/stpncpy: Likewise.
17493         * modules/strcase: Likewise.
17494         * modules/strchrnul: Likewise.
17495         * modules/strdup: Likewise.
17496         * modules/strndup: Likewise.
17497         * modules/strnlen: Likewise.
17498         * modules/strpbrk: Likewise.
17499         * modules/strsep: Likewise.
17500         * modules/strstr: Likewise.
17501         * modules/strtok_r: Likewise.
17502         * tests/test-dirname.c: Don't include "strdup.h", since
17503         <string.h> now suffices.
17504         * tests/test-memmem.c: Don't include "memmem.h", since
17505         <string.h> now suffices.
17506
17507 2007-01-25  Bruno Haible  <bruno@clisp.org>
17508
17509         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
17510         *resultp is 0.
17511
17512         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
17513         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
17514         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
17515         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
17516
17517         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
17518         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
17519         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
17520         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
17521         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
17522         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
17523
17524 2007-01-24  Bruno Haible  <bruno@clisp.org>
17525
17526         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
17527         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
17528         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
17529         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
17530         gl_FUNC_FTS_CORE.
17531         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
17532         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
17533         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17534         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
17535         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
17536         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
17537         gl_FUNC_FCHOWNAT.
17538         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
17539         gl_FUNC_STRFTIME.
17540         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
17541         Reported by Ralf Wildenhues.
17542
17543 2007-01-24  Bruno Haible  <bruno@clisp.org>
17544
17545         Drop AC_REQUIRE calls that are redundant with the module dependencies.
17546         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
17547         gl_GETADDRINFO.
17548         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
17549         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
17550         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
17551
17552 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17553
17554         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
17555         Don't use 'exit'; just return from 'main'.
17556         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
17557
17558         * lib/fnmatch_.h: Readjust white space and comments to match
17559         glibc, to avoid spurious diffs.
17560
17561 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17562
17563         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
17564         2004-12-01 change by Jakub Jelinek, since this code won't compile
17565         if !LIBC.  Problem reported by Bob Proulx.
17566
17567 2007-01-23  Bruno Haible  <bruno@clisp.org>
17568
17569         * lib/striconveh.c: Include c-strcaseeq.h.
17570         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
17571         * modules/striconveh (Depends-on): Add c-strcaseeq.
17572
17573 2007-01-23  Bruno Haible  <bruno@clisp.org>
17574
17575         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
17576
17577         * modules/c-strcaseeq: New file.
17578         * lib/c-strcaseeq.h: New file.
17579
17580         * modules/streq: New file.
17581         * lib/streq.h: New file.
17582
17583 2007-01-23  Bruno Haible  <bruno@clisp.org>
17584
17585         * modules/striconveha-tests: New file.
17586         * tests/test-striconveha.c: New file.
17587
17588         * lib/striconveha.h: Include <stdbool.h>.
17589         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
17590         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
17591         (mem_iconveha_notranslit): Renamed from mem_iconveha.
17592         (mem_iconveha): New function.
17593         (str_iconveha_notranslit): Renamed from str_iconveha.
17594         (str_iconveha): New function.
17595         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
17596         c-strcase.
17597
17598 2007-01-23  Bruno Haible  <bruno@clisp.org>
17599
17600         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
17601         encodings without forgiving before trying any encoding with handler.
17602         (str_iconveha): Try all encodings without forgiving before trying any
17603         encoding with handler.
17604
17605 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17606
17607         Import the following changes from libc.
17608
17609         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17610
17611         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
17612
17613         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
17614
17615         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
17616         normal_bracket label.
17617
17618         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
17619
17620         [BZ #361]
17621         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
17622         to normal_bracket after fetching the next character.
17623
17624 2007-01-22  Bruno Haible  <bruno@clisp.org>
17625
17626         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
17627         argument.
17628         * lib/striconveh.c (iconv_carefully_1): New function.
17629         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
17630         argument.
17631         (str_cd_iconveh): Update.
17632         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
17633         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
17634         * tests/test-striconveh.c (MAGIC): New macro.
17635         (new_offsets): New function.
17636         (main): Test call with and without offsets.
17637
17638 2007-01-22  Bruno Haible  <bruno@clisp.org>
17639
17640         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
17641         * modules/sys_select (Makefile.am): Likewise.
17642         * modules/sys_socket (Makefile.am): Likewise.
17643         * modules/sys_time (Makefile.am): Likewise.
17644
17645 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17646
17647         * modules/gettimeofday (License): Change from GPL to LGPL, since
17648         gettimeofday is a library function.
17649
17650 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17651
17652         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
17653
17654 2007-01-21  Bruno Haible  <bruno@clisp.org>
17655
17656         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
17657
17658 2007-01-21  Bruno Haible  <bruno@clisp.org>
17659
17660         * modules/striconveha: New file.
17661         * lib/striconveha.h: New file.
17662         * lib/striconveha.c: New file.
17663         * MODULES.html.sh (Internationalization functions): Add striconveha.
17664         * lib/striconv.c (str_iconv): Optimize the case of an empty input
17665         string.
17666         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
17667
17668 2007-01-21  Bruno Haible  <bruno@clisp.org>
17669
17670         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
17671         * lib/striconveh.c (str_iconveh): Likewise.
17672
17673 2007-01-21  Bruno Haible  <bruno@clisp.org>
17674
17675         * lib/striconveh.h (mem_iconveh): New declaration.
17676         * lib/striconveh.c (mem_iconveh): New function.
17677         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
17678
17679 2007-01-21  Bruno Haible  <bruno@clisp.org>
17680
17681         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
17682
17683         * lib/striconveh.h (mem_cd_iconveh): Change specification.
17684         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
17685         original result buffer.
17686         (str_cd_iconveh): Update.
17687         * tests/test-striconveh.c (main): Update.
17688
17689         * lib/striconv.h (mem_cd_iconv): Change specification.
17690         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17691         result buffer.
17692         (str_cd_iconv): Update.
17693         * tests/test-striconv.c (main): Update.
17694
17695 2007-01-21  Bruno Haible  <bruno@clisp.org>
17696
17697         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17698
17699 2007-01-20  Jim Meyering  <jim@meyering.net>
17700
17701         * lib/userspec.c (parse_with_separator): If a user or group string
17702         starts with "+", skip the corresponding name-to-ID look-up, since
17703         such a look-up must fail: user and group names may not include "+".
17704
17705 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17706
17707         * lib/poll.c: Include sys/time.h and time.h unconditionally,
17708         since we now assume the sys_time module.
17709         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
17710         check for sys/time.h; no longer needed.
17711         * modules/poll (Depends-on): Depend on sys_time.
17712
17713 2007-01-18  Bruno Haible  <bruno@clisp.org>
17714
17715         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
17716         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17717
17718         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
17719         gettimeofday.
17720
17721         * tests/test-gettimeofday.c: Include <time.h>.
17722         (dummy): Remove variable.
17723
17724         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
17725         gl_HEADER_SYS_TIME_H.
17726         (gl_HEADER_SYS_TIME_H): New macro.
17727
17728         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17729         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17730         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17731         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
17732         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17733         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
17734         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
17735         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17736         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
17737         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
17738         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17739
17740         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
17741         last change; it caused a compilation error when cross-compiling to
17742         Cygwin.
17743
17744 2007-01-18  Jim Meyering  <jim@meyering.net>
17745
17746         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
17747         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
17748         than the race-prone "test -d sys || mkdir sys".
17749         (configure.ac): Use AC_PROG_MKDIR_P.
17750         * modules/sys_select: Likewise.
17751         * modules/sys_socket: Likewise.
17752         * modules/sys_time: Likewise.
17753
17754 2007-01-18  Eric Blake  <ebb9@byu.net>
17755
17756         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
17757         replace gettimeofday.
17758         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
17759         name, to avoid infinite recursion.
17760
17761 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
17762
17763         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
17764         module sys_time.
17765         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
17766         assume timespec.h defines struct timeval.
17767         * lib/settime.c: Likewise.
17768         * lib/utimens.c: Likewise.
17769         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
17770         since we now assume the gettimeofday module.
17771         * lib/tempname.c (__gen_tempname): Likewise.
17772         * lib/gettimeofday.h: Remove.
17773         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
17774         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
17775         Include <time.h>, for 'time()'.
17776         (localtime_buffer_addr): Also use this workaround if
17777         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
17778         to simplify the uses.  All uses changed.
17779         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
17780         that #undef is inside {}, and 'const' follows type name consistently.
17781         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
17782         (gettimeofday): Do not use the maximum possible value for
17783         tv->tv_usec, since that might break usages other than ls.c.
17784         Instead, we'll leave ls.c alone.  This undoes today's patch
17785         by Bruno.  Add a compile-time warning for 1s-clock resolution;
17786         we've never observed the problem but might as well keep the
17787         canary.
17788         * lib/nanosleep.c: Include timespec.h first, for interface check.
17789         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
17790         now assume the sys_time module.
17791         * lib/tempname.c: Likewise.
17792         * lib/timespec.h: Likewise.
17793         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
17794         needed.
17795         * lib/strftime.c: Likewise.
17796         * lib/timespec.h: Likewise.
17797         * lib/posixtm.c: Include posixtm.h first, for interface check.
17798         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
17799         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
17800         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
17801         * lib/sys_time_.h: New file.
17802         * lib/timespec.h (struct timespec): Use long int, not long.
17803         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17804         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
17805         Remove obsolescent call to AC_HEADER_TIME.
17806         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17808         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17809         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
17810         Likewise.
17811         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
17812         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
17813         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
17814         into the sys_time module.  Check for gettimeofday just once.
17815         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
17816         for gettimeofday signature to just check the signature.  Merely
17817         compile it, since linking doesn't test signature.  Improve test for
17818         whether gettimeofday.o is actually needed.
17819         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
17820         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
17821         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
17822         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17823         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
17824         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
17825         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
17826         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
17827         than worrying about sys/time.h.
17828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17829         Don't bother worrying about TIME_WITH_SYS_TIME.
17830         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17831         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
17832         * m4/sys_time_h.m4: New file.
17833         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
17834         Don't include sys/time.h.  Return from main rather than exiting.
17835         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
17836         all uses changed.
17837         * modules/gethrxtime (Depends-on): Add sys_time.
17838         * modules/gettime (Depends-on): Likewise.
17839         * modules/gettimeofday (Depends-on): Likewise.
17840         * modules/nanosleep (Depends-on): Likewise.
17841         * modules/settime (Depends-on): Likewise.
17842         * modules/tempname (Depends-on): Likewise.
17843         * modules/utimens (Depends-on): Likewise.
17844         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
17845         (Include:) Change back to <sys/time.h>.
17846         (Maintainer:) Add self.
17847         * modules/sys_time: New file.
17848         * modules/tempname (Depends-on): Add gettimeofday.
17849         * tests/test-gettimeofday.c: Include <sys/time.h>
17850         rather than gettimeofday.h.
17851
17852 2007-01-17  Bruno Haible  <bruno@clisp.org>
17853
17854         * gnulib-tool (func_get_license): Revert last patch. Instead, let
17855         the license default to GPL.
17856         (func_create_testdir): Don't complain if a module is LGPL and its
17857         tests module depends on GPLed modules.
17858
17859 2007-01-17  Bruno Haible  <bruno@clisp.org>
17860
17861         * lib/gettimeofday.c (gettimeofday): Add code for the case
17862         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
17863         maximum possible value for tv->tv_usec, rather than the minimum one.
17864
17865 2005-10-08  Martin Lambers  <marlam@marlam.de>
17866 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17867 2007-01-16  Bruno Haible  <bruno@clisp.org>
17868
17869         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
17870         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
17871         gl_FUNC_GETTIMEOFDAY.
17872         (Include): Add gettimeofday.h.
17873         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
17874         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
17875         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
17876         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
17877         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
17878         * lib/gettimeofday.h: New file.
17879         * lib/gettimeofday.c: Include <sys/timeb.h>.
17880         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
17881         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17882         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
17883         fall back on time().
17884
17885         * tests/test-gettimeofday.c: New file.
17886         * modules/gettimeofday-tests: New file.
17887
17888 2007-01-16  Eric Blake  <ebb9@byu.net>
17889
17890         * modules/fnmatch (Depends-on): Depend on wchar.
17891         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
17892         * m4/fnmatch.m4: Likewise.
17893         * modules/mbchar (Makefile.am): Assume <wchar.h>.
17894         * m4/mbchar.m4: Likewise.
17895         * modules/mbswidth (Depends-on): Depend on wchar.
17896         * lib/mbswidth.c: Assume <wchar.h>.
17897         * m4/mbswidth.m4: Likewise.
17898         * modules/quotearg (Depends-on): Depend on wchar.
17899         * lib/quotearg.c: Assume <wchar.h>.
17900         * m4/quotearg.m4: Likewise.
17901         * modules/regex (Depends-on): Depend on wchar.
17902         * lib/regex_internal.h: Assume <wchar.h>.
17903         * m4/regex.m4: Likewise.
17904         * modules/stdint (Depends-on): Depend on wchar.
17905         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
17906         * m4/stdint.m4: Likewise.
17907         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
17908         * modules/strftime (Depends-on): Depend on wchar.
17909         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
17910         * modules/strtol (Depends-on): Depend on wchar.
17911         * lib/strtol.c: Assume <wchar.h>.
17912         * modules/wcwidth (Depends-on): Depend on wchar.
17913         * lib/wcwidth.h: Assume <wchar.h>.
17914         * m4/wcwidth.m4: Likewise.
17915
17916 2007-01-16  Bruno Haible  <bruno@clisp.org>
17917
17918         * modules/csharpexec-script: New, created from...
17919         * modules/csharpexec: ... this.
17920
17921 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
17922
17923         * modules/javaexec-script: New, created from...
17924         * modules/javaexec: ... this.
17925
17926 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17927
17928         * modules/poll (Dependencies): Add sys_select.
17929
17930 2007-01-15  Jim Meyering  <jim@meyering.net>
17931
17932         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
17933         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
17934         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
17935         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
17936
17937 2007-01-15  Bruno Haible  <bruno@clisp.org>
17938
17939         * modules/striconveh: New file.
17940         * lib/striconveh.h: New file.
17941         * lib/striconveh.c: New file.
17942         * MODULES.html.sh (Internationalization functions): Add striconveh.
17943
17944         * modules/striconveh-tests: New file.
17945         * tests/test-striconveh.c: New file.
17946
17947 2007-01-15  Bruno Haible  <bruno@clisp.org>
17948
17949         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
17950         not from GNU libiconv or GNU libc.
17951
17952 2007-01-15  Bruno Haible  <bruno@clisp.org>
17953
17954         * doc/gnulib-intro.texi (Copyright): Explain the different license
17955         terms for module descriptions, autoconf macros, tests, documentation.
17956
17957 2007-01-14  Bruno Haible  <bruno@clisp.org>
17958
17959         * modules/striconv-tests: New file.
17960         * tests/test-striconv.c: New file.
17961
17962 2007-01-14  Bruno Haible  <bruno@clisp.org>
17963
17964         * modules/iconv-tests: New file.
17965         * tests/test-iconv.c: New file.
17966
17967 2007-01-14  Bruno Haible  <bruno@clisp.org>
17968
17969         * gnulib-tool (func_get_license): For test modules, use the license of
17970         the main module.
17971
17972 2007-01-14  Bruno Haible  <bruno@clisp.org>
17973
17974         * modules/iconv (Include): Clarify that <iconv.h> can only be included
17975         if iconv is found to exist.
17976
17977 2007-01-14  Bruno Haible  <bruno@clisp.org>
17978
17979         * modules/c-ctype-tests: New file.
17980         * tests/test-c-ctype.c: New file.
17981
17982 2007-01-14  Bruno Haible  <bruno@clisp.org>
17983
17984         * modules/binary-io-tests: New file.
17985         * tests/test-binary-io.sh: New file.
17986         * tests/test-binary-io.c: New file.
17987
17988 2007-01-14  Bruno Haible  <bruno@clisp.org>
17989
17990         * modules/array-oset-tests: New file.
17991         * tests/test-array_oset.c: New file.
17992
17993 2007-01-14  Bruno Haible  <bruno@clisp.org>
17994
17995         * modules/array-list-tests: New file.
17996         * tests/test-array_list.c: New file.
17997
17998 2007-01-14  Bruno Haible  <bruno@clisp.org>
17999
18000         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
18001         and make.
18002         Reported by Simon Josefsson in
18003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
18004
18005 2007-01-14  Bruno Haible  <bruno@clisp.org>
18006
18007         * modules/allocsa-tests: New file.
18008         * tests/test-allocsa.c: New file.
18009
18010 2007-01-14  Bruno Haible  <bruno@clisp.org>
18011
18012         * modules/fchdir (Depends-on): Add absolute-header.
18013         * modules/unistd (Depends-on): Likewise.
18014
18015 2006-12-30  Bruno Haible  <bruno@clisp.org>
18016
18017         * modules/fchdir: New file.
18018         * modules/unistd (Files): Add lib/unistd_.h.
18019         (Makefile.am): Generate unistd.h from unistd_.h.
18020         * lib/fchdir.c: New file.
18021         * lib/dirent_.h: New file.
18022         * lib/unistd_.h: New file.
18023         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
18024         * m4/fchdir.m4: New file.
18025         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
18026         (gl_HEADER_UNISTD): Invoke it.
18027         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
18028         function.
18029         * lib/backupfile.c (opendir, closedir): Undefine.
18030         * lib/chown.c (open, close): Undefine.
18031         * lib/clean-temp.c (open, close): Undefine.
18032         * lib/copy-file.c (open, close): Undefine.
18033         * lib/execute.c (open, close): Undefine.
18034         * lib/fsusage.c (open, close): Undefine.
18035         * lib/gc-gnulib.c (open, close): Undefine.
18036         * lib/getcwd.c (opendir, closedir): Undefine.
18037         * lib/glob.c (opendir, closedir): Undefine.
18038         * lib/javacomp.c (open, close): Undefine.
18039         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
18040         * lib/openat-proc.c (open, close): Undefine.
18041         * lib/pagealign_alloc.c (open, close): Undefine.
18042         * lib/pipe.c (open, close): Undefine.
18043         * lib/progreloc.c (open, close): Undefine.
18044         * lib/savedir.c (opendir, closedir): Undefine.
18045         * lib/utime.c (open, close): Undefine.
18046         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
18047
18048 2007-01-10  Bruno Haible  <bruno@clisp.org>
18049
18050         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
18051
18052 2007-01-12  Eric Blake  <ebb9@byu.net>
18053
18054         Provide a robust <wchar.h>.  Further simplifications are now
18055         possible in other modules, but not included here.
18056         * modules/wchar: New module.
18057         * m4/wchar.m4: New file.
18058         * lib/wchar_.h: Likewise.
18059         * modules/mbchar (Depends-on): Depend on wchar, as the first use
18060         of the new module.
18061         * MODULES.html.sh (Extended multibyte and wide character utilities):
18062         New section.
18063
18064 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18065
18066         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
18067         to a reasonable default for memory allocation.
18068         (xreadlink): Don't allocate a huge buffer, to work around a buggy
18069         file system that reports garbage st_size values for symlinks.
18070         Problem reported by Liyang Hu.
18071
18072 2007-01-11  Simon Josefsson  <simon@josefsson.org>
18073
18074         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
18075         Emacs .#* auto-save files).
18076
18077 2007-01-11  Bruno Haible  <bruno@clisp.org>
18078
18079         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
18080         directory.
18081
18082 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18083
18084         Use @...@ consistently in lib/wctype_.h.
18085         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
18086         on it being set to 1 or 0.
18087         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
18088         go back to AC_SUBSTing it.
18089         * modules/wctype (Makefile.am): Undo previous change.
18090
18091 2007-01-10  Eric Blake  <ebb9@byu.net>
18092
18093         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
18094         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
18095         * modules/wctype (Makefile.am): Likewise.
18096         Reported by Chris McGuire.
18097
18098 2007-01-10  Jim Meyering  <jim@meyering.net>
18099
18100         fts.c: a small readability/maintainability improvement
18101         * lib/fts.c (fts_read): Make this code slightly more readable and
18102         maintainable by hoisting the "sp->fts_cur = p" assignments to
18103         immediately follow the statements that set P.  Derived from
18104         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
18105
18106 2007-01-10  Eric Blake  <ebb9@byu.net>
18107
18108         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
18109         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
18110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18111         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18112         Reported by Chris McGuire.
18113
18114 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18115
18116         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
18117         in sed script.
18118
18119 2007-01-09  Bruno Haible  <bruno@clisp.org>
18120
18121         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
18122         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
18123         variables.
18124         (func_module): Use them.
18125
18126 2007-01-09  Bruno Haible  <bruno@clisp.org>
18127
18128         * modules/unistr/base: New file.
18129         * lib/unistr.h: New file.
18130
18131         * modules/unistr/u8-to-u16: New file.
18132         * lib/unistr/u8-to-u16.c: New file.
18133
18134         * modules/unistr/u8-to-u32: New file.
18135         * lib/unistr/u8-to-u32.c: New file.
18136
18137         * modules/unistr/u16-to-u8: New file.
18138         * lib/unistr/u16-to-u8.c: New file.
18139
18140         * modules/unistr/u16-to-u32: New file.
18141         * lib/unistr/u16-to-u32.c: New file.
18142
18143         * modules/unistr/u32-to-u8: New file.
18144         * lib/unistr/u32-to-u8.c: New file.
18145
18146         * modules/unistr/u32-to-u16: New file.
18147         * lib/unistr/u32-to-u16.c: New file.
18148
18149         * modules/unistr/u8-check: New file.
18150         * modules/unistr/u16-check: New file.
18151         * modules/unistr/u32-check: New file.
18152         * lib/unistr/u8-check.c: New file.
18153         * lib/unistr/u16-check.c: New file.
18154         * lib/unistr/u32-check.c: New file.
18155
18156         * modules/unistr/u8-chr: New file.
18157         * modules/unistr/u16-chr: New file.
18158         * modules/unistr/u32-chr: New file.
18159         * lib/unistr/u8-chr.c: New file.
18160         * lib/unistr/u16-chr.c: New file.
18161         * lib/unistr/u32-chr.c: New file.
18162
18163         * modules/unistr/u8-cmp: New file.
18164         * modules/unistr/u16-cmp: New file.
18165         * modules/unistr/u32-cmp: New file.
18166         * lib/unistr/u8-cmp.c: New file.
18167         * lib/unistr/u16-cmp.c: New file.
18168         * lib/unistr/u32-cmp.c: New file.
18169
18170         * modules/unistr/u8-cpy: New file.
18171         * modules/unistr/u16-cpy: New file.
18172         * modules/unistr/u32-cpy: New file.
18173         * lib/unistr/u8-cpy.c: New file.
18174         * lib/unistr/u16-cpy.c: New file.
18175         * lib/unistr/u32-cpy.c: New file.
18176         * lib/unistr/u-cpy.h: New file.
18177
18178         * modules/unistr/u8-cpy-alloc: New file.
18179         * modules/unistr/u16-cpy-alloc: New file.
18180         * modules/unistr/u32-cpy-alloc: New file.
18181         * lib/unistr/u8-cpy-alloc.c: New file.
18182         * lib/unistr/u16-cpy-alloc.c: New file.
18183         * lib/unistr/u32-cpy-alloc.c: New file.
18184         * lib/unistr/u-cpy-alloc.h: New file.
18185
18186         * modules/unistr/u8-endswith: New file.
18187         * modules/unistr/u16-endswith: New file.
18188         * modules/unistr/u32-endswith: New file.
18189         * lib/unistr/u8-endswith.c: New file.
18190         * lib/unistr/u16-endswith.c: New file.
18191         * lib/unistr/u32-endswith.c: New file.
18192         * lib/unistr/u-endswith.h: New file.
18193
18194         * modules/unistr/u8-mblen: New file.
18195         * modules/unistr/u16-mblen: New file.
18196         * modules/unistr/u32-mblen: New file.
18197         * lib/unistr/u8-mblen.c: New file.
18198         * lib/unistr/u16-mblen.c: New file.
18199         * lib/unistr/u32-mblen.c: New file.
18200
18201         * modules/unistr/u8-mbtouc: New file.
18202         * modules/unistr/u16-mbtouc: New file.
18203         * modules/unistr/u32-mbtouc: New file.
18204         * lib/unistr/u8-mbtouc.c: New file.
18205         * lib/unistr/u16-mbtouc.c: New file.
18206         * lib/unistr/u32-mbtouc.c: New file.
18207
18208         * modules/unistr/u8-mbtouc-safe: New file.
18209         * modules/unistr/u16-mbtouc-safe: New file.
18210         * modules/unistr/u32-mbtouc-safe: New file.
18211         * lib/unistr/u8-mbtouc-safe.c: New file.
18212         * lib/unistr/u16-mbtouc-safe.c: New file.
18213         * lib/unistr/u32-mbtouc-safe.c: New file.
18214
18215         * modules/unistr/u8-move: New file.
18216         * modules/unistr/u16-move: New file.
18217         * modules/unistr/u32-move: New file.
18218         * lib/unistr/u8-move.c: New file.
18219         * lib/unistr/u16-move.c: New file.
18220         * lib/unistr/u32-move.c: New file.
18221         * lib/unistr/u-move.h: New file.
18222
18223         * modules/unistr/u8-next: New file.
18224         * modules/unistr/u16-next: New file.
18225         * modules/unistr/u32-next: New file.
18226         * lib/unistr/u8-next.c: New file.
18227         * lib/unistr/u16-next.c: New file.
18228         * lib/unistr/u32-next.c: New file.
18229
18230         * modules/unistr/u8-prev: New file.
18231         * modules/unistr/u16-prev: New file.
18232         * modules/unistr/u32-prev: New file.
18233         * lib/unistr/u8-prev.c: New file.
18234         * lib/unistr/u16-prev.c: New file.
18235         * lib/unistr/u32-prev.c: New file.
18236
18237         * modules/unistr/u8-set: New file.
18238         * modules/unistr/u16-set: New file.
18239         * modules/unistr/u32-set: New file.
18240         * lib/unistr/u8-set.c: New file.
18241         * lib/unistr/u16-set.c: New file.
18242         * lib/unistr/u32-set.c: New file.
18243         * lib/unistr/u-set.h: New file.
18244
18245         * modules/unistr/u8-startswith: New file.
18246         * modules/unistr/u16-startswith: New file.
18247         * modules/unistr/u32-startswith: New file.
18248         * lib/unistr/u8-startswith.c: New file.
18249         * lib/unistr/u16-startswith.c: New file.
18250         * lib/unistr/u32-startswith.c: New file.
18251         * lib/unistr/u-startswith.h: New file.
18252
18253         * modules/unistr/u8-stpcpy: New file.
18254         * modules/unistr/u16-stpcpy: New file.
18255         * modules/unistr/u32-stpcpy: New file.
18256         * lib/unistr/u8-stpcpy.c: New file.
18257         * lib/unistr/u16-stpcpy.c: New file.
18258         * lib/unistr/u32-stpcpy.c: New file.
18259         * lib/unistr/u-stpcpy.h: New file.
18260
18261         * modules/unistr/u8-stpncpy: New file.
18262         * modules/unistr/u16-stpncpy: New file.
18263         * modules/unistr/u32-stpncpy: New file.
18264         * lib/unistr/u8-stpncpy.c: New file.
18265         * lib/unistr/u16-stpncpy.c: New file.
18266         * lib/unistr/u32-stpncpy.c: New file.
18267         * lib/unistr/u-stpncpy.h: New file.
18268
18269         * modules/unistr/u8-strcat: New file.
18270         * modules/unistr/u16-strcat: New file.
18271         * modules/unistr/u32-strcat: New file.
18272         * lib/unistr/u8-strcat.c: New file.
18273         * lib/unistr/u16-strcat.c: New file.
18274         * lib/unistr/u32-strcat.c: New file.
18275         * lib/unistr/u-strcat.h: New file.
18276
18277         * modules/unistr/u8-strchr: New file.
18278         * modules/unistr/u16-strchr: New file.
18279         * modules/unistr/u32-strchr: New file.
18280         * lib/unistr/u8-strchr.c: New file.
18281         * lib/unistr/u16-strchr.c: New file.
18282         * lib/unistr/u32-strchr.c: New file.
18283
18284         * modules/unistr/u8-strcmp: New file.
18285         * modules/unistr/u16-strcmp: New file.
18286         * modules/unistr/u32-strcmp: New file.
18287         * lib/unistr/u8-strcmp.c: New file.
18288         * lib/unistr/u16-strcmp.c: New file.
18289         * lib/unistr/u32-strcmp.c: New file.
18290
18291         * modules/unistr/u8-strcpy: New file.
18292         * modules/unistr/u16-strcpy: New file.
18293         * modules/unistr/u32-strcpy: New file.
18294         * lib/unistr/u8-strcpy.c: New file.
18295         * lib/unistr/u16-strcpy.c: New file.
18296         * lib/unistr/u32-strcpy.c: New file.
18297         * lib/unistr/u-strcpy.h: New file.
18298
18299         * modules/unistr/u8-strcspn: New file.
18300         * modules/unistr/u16-strcspn: New file.
18301         * modules/unistr/u32-strcspn: New file.
18302         * lib/unistr/u8-strcspn.c: New file.
18303         * lib/unistr/u16-strcspn.c: New file.
18304         * lib/unistr/u32-strcspn.c: New file.
18305         * lib/unistr/u-strcspn.h: New file.
18306
18307         * modules/unistr/u8-strdup: New file.
18308         * modules/unistr/u16-strdup: New file.
18309         * modules/unistr/u32-strdup: New file.
18310         * lib/unistr/u8-strdup.c: New file.
18311         * lib/unistr/u16-strdup.c: New file.
18312         * lib/unistr/u32-strdup.c: New file.
18313         * lib/unistr/u-strdup.h: New file.
18314
18315         * modules/unistr/u8-strlen: New file.
18316         * modules/unistr/u16-strlen: New file.
18317         * modules/unistr/u32-strlen: New file.
18318         * lib/unistr/u8-strlen.c: New file.
18319         * lib/unistr/u16-strlen.c: New file.
18320         * lib/unistr/u32-strlen.c: New file.
18321         * lib/unistr/u-strlen.h: New file.
18322
18323         * modules/unistr/u8-strmblen: New file.
18324         * modules/unistr/u16-strmblen: New file.
18325         * modules/unistr/u32-strmblen: New file.
18326         * lib/unistr/u8-strmblen.c: New file.
18327         * lib/unistr/u16-strmblen.c: New file.
18328         * lib/unistr/u32-strmblen.c: New file.
18329
18330         * modules/unistr/u8-strmbtouc: New file.
18331         * modules/unistr/u16-strmbtouc: New file.
18332         * modules/unistr/u32-strmbtouc: New file.
18333         * lib/unistr/u8-strmbtouc.c: New file.
18334         * lib/unistr/u16-strmbtouc.c: New file.
18335         * lib/unistr/u32-strmbtouc.c: New file.
18336
18337         * modules/unistr/u8-strncat: New file.
18338         * modules/unistr/u16-strncat: New file.
18339         * modules/unistr/u32-strncat: New file.
18340         * lib/unistr/u8-strncat.c: New file.
18341         * lib/unistr/u16-strncat.c: New file.
18342         * lib/unistr/u32-strncat.c: New file.
18343         * lib/unistr/u-strncat.h: New file.
18344
18345         * modules/unistr/u8-strncmp: New file.
18346         * modules/unistr/u16-strncmp: New file.
18347         * modules/unistr/u32-strncmp: New file.
18348         * lib/unistr/u8-strncmp.c: New file.
18349         * lib/unistr/u16-strncmp.c: New file.
18350         * lib/unistr/u32-strncmp.c: New file.
18351
18352         * modules/unistr/u8-strncpy: New file.
18353         * modules/unistr/u16-strncpy: New file.
18354         * modules/unistr/u32-strncpy: New file.
18355         * lib/unistr/u8-strncpy.c: New file.
18356         * lib/unistr/u16-strncpy.c: New file.
18357         * lib/unistr/u32-strncpy.c: New file.
18358         * lib/unistr/u-strncpy.h: New file.
18359
18360         * modules/unistr/u8-strnlen: New file.
18361         * modules/unistr/u16-strnlen: New file.
18362         * modules/unistr/u32-strnlen: New file.
18363         * lib/unistr/u8-strnlen.c: New file.
18364         * lib/unistr/u16-strnlen.c: New file.
18365         * lib/unistr/u32-strnlen.c: New file.
18366         * lib/unistr/u-strnlen.h: New file.
18367
18368         * modules/unistr/u8-strpbrk: New file.
18369         * modules/unistr/u16-strpbrk: New file.
18370         * modules/unistr/u32-strpbrk: New file.
18371         * lib/unistr/u8-strpbrk.c: New file.
18372         * lib/unistr/u16-strpbrk.c: New file.
18373         * lib/unistr/u32-strpbrk.c: New file.
18374         * lib/unistr/u-strpbrk.h: New file.
18375
18376         * modules/unistr/u8-strrchr: New file.
18377         * modules/unistr/u16-strrchr: New file.
18378         * modules/unistr/u32-strrchr: New file.
18379         * lib/unistr/u8-strrchr.c: New file.
18380         * lib/unistr/u16-strrchr.c: New file.
18381         * lib/unistr/u32-strrchr.c: New file.
18382
18383         * modules/unistr/u8-strspn: New file.
18384         * modules/unistr/u16-strspn: New file.
18385         * modules/unistr/u32-strspn: New file.
18386         * lib/unistr/u8-strspn.c: New file.
18387         * lib/unistr/u16-strspn.c: New file.
18388         * lib/unistr/u32-strspn.c: New file.
18389         * lib/unistr/u-strspn.h: New file.
18390
18391         * modules/unistr/u8-strstr: New file.
18392         * modules/unistr/u16-strstr: New file.
18393         * modules/unistr/u32-strstr: New file.
18394         * lib/unistr/u8-strstr.c: New file.
18395         * lib/unistr/u16-strstr.c: New file.
18396         * lib/unistr/u32-strstr.c: New file.
18397         * lib/unistr/u-strstr.h: New file.
18398
18399         * modules/unistr/u8-strtok: New file.
18400         * modules/unistr/u16-strtok: New file.
18401         * modules/unistr/u32-strtok: New file.
18402         * lib/unistr/u8-strtok.c: New file.
18403         * lib/unistr/u16-strtok.c: New file.
18404         * lib/unistr/u32-strtok.c: New file.
18405         * lib/unistr/u-strtok.h: New file.
18406
18407         * modules/unistr/u8-uctomb: New file.
18408         * modules/unistr/u16-uctomb: New file.
18409         * modules/unistr/u32-uctomb: New file.
18410         * lib/unistr/u8-uctomb.c: New file.
18411         * lib/unistr/u16-uctomb.c: New file.
18412         * lib/unistr/u32-uctomb.c: New file.
18413
18414         * MODULES.html.sh (Unicode string functions): Add the new modules.
18415
18416 2007-01-08  Bruno Haible  <bruno@clisp.org>
18417
18418         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
18419         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
18420         subdirectories.
18421
18422 2007-01-08  Karl Berry  <karl@gnu.org>
18423
18424         * doc/error.texi: mention that main() fns must set program_name
18425         when progname is used.
18426
18427 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
18428
18429         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
18430         WCTYPE_H is empty, for the benefit of builds from non-distclean
18431         directories.  Problem reported by Eric Blake in
18432         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
18433
18434 2007-01-08  Bruno Haible  <bruno@clisp.org>
18435
18436         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
18437         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
18438         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18439         PROVIDE_CANONICALIZE_FILENAME_MODE.
18440         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
18441
18442 2007-01-08  Bruno Haible  <bruno@clisp.org>
18443
18444         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
18445         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
18446         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
18447         * lib/fts.c: Likewise.
18448         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
18449
18450 2006-12-25  Bruno Haible  <bruno@clisp.org>
18451
18452         * modules/utf8-ucs4-safe: New file.
18453         * lib/utf8-ucs4-safe.h: New file.
18454         * lib/unistr/utf8-ucs4-safe.c: New file.
18455
18456         * modules/utf16-ucs4-safe: New file.
18457         * lib/utf16-ucs4-safe.h: New file.
18458         * lib/unistr/utf16-ucs4-safe.c: New file.
18459
18460         * MODULES.html.sh (Unicode string functions): Add the new modules.
18461
18462 2007-01-08  Bruno Haible  <bruno@clisp.org>
18463
18464         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
18465         (Depends-on): Add unitypes.
18466         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18467         (u8_mbtouc_aux): Move out to separate file.
18468         (u8_mbtouc): Use ucs4_t, uint8_t types.
18469         * lib/unistr/utf8-ucs4.c: New file.
18470
18471         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
18472         (Depends-on): Add unitypes.
18473         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18474         (u16_mbtouc_aux): Move out to separate file.
18475         (u16_mbtouc): Use ucs4_t, uint16_t types.
18476         * lib/unistr/utf16-ucs4.c: New file.
18477
18478         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
18479         (Depends-on): Add unitypes.
18480         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
18481         (u8_uctomb_aux): Move out to separate file.
18482         (u8_uctomb): Use ucs4_t, uint8_t types.
18483         * lib/unistr/ucs4-utf8.c: New file.
18484
18485         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
18486         (Depends-on): Add unitypes.
18487         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
18488         (u16_uctomb_aux): Move out to separate file.
18489         (u16_uctomb): Use ucs4_t, uint16_t types.
18490         * lib/unistr/ucs4-utf16.c: New file.
18491
18492 2006-12-25  Bruno Haible  <bruno@clisp.org>
18493
18494         * modules/unitypes: New file.
18495         * lib/unitypes.h: New file.
18496         * MODULES.html.sh (func_all_modules): New section "Unicode string
18497         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
18498         this section. Add unitypes.
18499
18500 2007-01-08  Bruno Haible  <bruno@clisp.org>
18501
18502         Avoid variable names that conflict with those from libtool.
18503         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
18504         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
18505         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
18506         library_names_spec to acl_library_names_spec, hardcode_* to
18507         acl_hardcode_*.
18508         Reported by Ralf Wildenhues.
18509
18510 2007-01-08  Bruno Haible  <bruno@clisp.org>
18511
18512         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
18513         definition.
18514         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
18515         definition.
18516         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
18517         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
18518         definition.
18519         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
18520         definition.
18521         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
18522         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
18523         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
18524         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
18525         definition.
18526         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
18527         definition.
18528         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
18529         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
18530         GC_USE_<algorithm>.
18531         * lib/gc-libgcrypt.c: Likewise.
18532         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
18533         * modules/gc-arctwo (configure.ac): Likewise.
18534         * modules/gc-des (configure.ac): Likewise.
18535         * modules/gc-hmac-md5 (configure.ac): Likewise.
18536         * modules/gc-hmac-sha1 (configure.ac): Likewise.
18537         * modules/gc-md2 (configure.ac): Likewise.
18538         * modules/gc-md4 (configure.ac): Likewise.
18539         * modules/gc-md5 (configure.ac): Likewise.
18540         * modules/gc-random (configure.ac): Likewise.
18541         * modules/gc-rijndael (configure.ac): Likewise.
18542         * modules/gc-sha1 (configure.ac): Likewise.
18543
18544 2007-01-08  Bruno Haible  <bruno@clisp.org>
18545
18546         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
18547         macro definition.
18548         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
18549         definition.
18550         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
18551         definition.
18552         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
18553         * modules/fcntl-safer (configure.ac): Likewise.
18554         * modules/fopen-safer (configure.ac): Likewise.
18555         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
18556         GNULIB_FWRITEERROR macro definition.
18557
18558 2007-01-08  Bruno Haible  <bruno@clisp.org>
18559
18560         * m4/gnulib-common.m4: New file.
18561         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
18562         (func_get_filelist): Add m4/gnulib-common.m4.
18563
18564 2007-01-08  Bruno Haible  <bruno@clisp.org>
18565
18566         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
18567         command.
18568
18569 2007-01-08  Jim Meyering  <jim@meyering.net>
18570
18571         Use a more robust test for a "can't happen" condition.
18572         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
18573         narrowed the st_size value.  Presuming the "can't happen" condition
18574         is true, that narrowing could conceivably convert an invalid st_size
18575         value into a valid one.  Instead, use a change based on Matthew
18576         Woehlke's original patch.
18577
18578         Slight readability improvement: use an assert-like macro
18579         in place of literal "abort ()" uses.
18580         * lib/fts.c (fts_assert): Define.
18581         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
18582         Use this macro instead of a bare 'abort'.
18583
18584 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18585
18586         Don't worry about using IRIX 5.3's wctype.h broken definitions;
18587         simply work around them.
18588         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
18589         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
18590         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
18591         declaring.
18592         Don't bother to define as macros, since the standard doesn't require it.
18593         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18594         longer worry about IRIX 5.3.
18595         (HAVE_WCTYPE_CTMP_BUG): Remove.
18596
18597 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18598
18599         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
18600         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
18601         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18602         Problems reported by Georg Schwarz for IRIX 5.3.
18603
18604         * gnulib-tool (autoconf_minversion): Take the maximum version number
18605         found, not the minimum.  Problem reported by James Youngman.
18606
18607 2007-01-03  Karl Berry  <karl@gnu.org>
18608
18609         * doc/error.texi: new file, explaining interaction with progname.
18610         * doc/gnulib.texi: include it.  Update copyright.
18611
18612 2007-01-03  Simon Josefsson  <simon@josefsson.org>
18613
18614         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
18615         AC_CANONICAL_HOST, to improve autobuild outputs.
18616
18617 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
18618             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18619
18620         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
18621         sockets, server sockets, and other file descriptors.  Count errors
18622         to compute the return value.  Reorder the code a bit to be easier
18623         to follow.  Don't set event bits that were not requested (except
18624         POLLERR and POLLHUP).
18625
18626 2007-01-01  Bruno Haible  <bruno@clisp.org>
18627
18628         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
18629
18630 2007-01-03  Jim Meyering  <jim@meyering.net>
18631
18632         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
18633
18634 2007-01-02  Bruno Haible  <bruno@clisp.org>
18635
18636         * modules/settime (Include): Require timespec.h.
18637         * modules/nanosleep (Include): Likewise.
18638
18639 2007-01-01  Bruno Haible  <bruno@clisp.org>
18640
18641         * gnulib-tool (func_emit_copyright_notice): Bump year.
18642         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
18643
18644 2007-01-01  Bruno Haible  <bruno@clisp.org>
18645
18646         Improve support for OpenBSD.
18647         * build-aux/config.rpath (libname_spec): Export.
18648         (library_names_spec): New variable. Export.
18649         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
18650         library_names_spec from the config.rpath output. Locate shared library
18651         through the name pattern in library_names_spec.
18652
18653 2007-01-01  Eric Blake  <ebb9@byu.net>
18654
18655         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
18656
18657 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18658
18659         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
18660         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
18661         assume the C locale, and avoid an "eval" that could cause trouble.
18662         Problem with SORT reported by Bob Proulx.
18663
18664         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
18665         Define.  Trivial patch from Henning Nielsen Lund, originally
18666         sent to bug-grep@gnu.org today.
18667
18668 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18669
18670         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
18671         struct stat.  Problem reported by Henning Nielsen Lund.
18672         * lib/acl.c: Include acl.h first, to check interface.  Don't
18673         bother to include sys/types.h and sys/stat.h again.
18674
18675 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18676
18677         Import the following change from libc; problem reported by
18678         Sven Verdoolaege.
18679
18680         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
18681
18682         [BZ #1373]
18683         * lib/argp.h: Remove __NTH for __argp_usage inline function.
18684
18685 2006-12-28  Jim Meyering  <jim@meyering.net>
18686
18687         * build-aux/announce-gen: Do not assume that the package
18688         builds any of tar.gz, tar.bz2, and .xdelta files.
18689         Suggestion from Simon Josefsson.
18690
18691 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18692
18693         * modules/announce-gen: New file.
18694
18695 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18696
18697         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18698         handles its gotchas now.
18699         * lib/mbswidth.c: Likewise.
18700         * lib/wcwidth.h: Likewise.
18701         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18702         and iswcntrl; the wctype module does this stuff now.
18703         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18705         * modules/mbchar (Depends-on): Add wctype.
18706         * modules/mbswidth (Depends-on): Likewise.
18707         * modules/wcwidth (Depends-on): Likewise.
18708
18709 2006-12-27  Eric Blake  <ebb9@byu.net>
18710
18711         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
18712         module uses more than what <wctype.h> is required to provide.
18713
18714 2006-12-26  Eric Blake  <ebb9@byu.net>
18715
18716         * gnulib-tool (sed_extract_prog): Avoid space-tab.
18717
18718 2006-12-26  Eric Blake  <ebb9@byu.net>
18719
18720         * modules/absolute-header: New module.
18721         * modules/fcntl (Depends-on): Depend on it.
18722         * modules/inttypes (Depends-on): Likewise.
18723         * modules/stdint (Depends-on): Likewise.
18724         * modules/sys_stat (Depends-on): Likewise.
18725         * modules/wctype (Depends-on): Likewise.
18726         * MODULES.html.sh (Support for building libraries and
18727         executables): Document it.
18728
18729 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18730
18731         * gnulib-tool (SED): Remove, undoing previous change.
18732         The problem was that it broke coreutils on Solaris, because
18733         "sed --posix" leaked into a makefile.
18734         (sed): New alias, if 'alias' and GNU sed.
18735
18736 2006-12-24  Jim Meyering  <jim@meyering.net>
18737
18738         Work around an fchownat bug in glibc-2.4:
18739         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
18740         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
18741         in spite of the -P option.
18742         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
18743         New macros.
18744         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
18745         * modules/openat (Files): Add lib/fchownat.c.
18746         * lib/openat.c (fchownat): Don't define here.  Move to...
18747         * lib/fchownat.c: ...this new file.
18748
18749 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18750
18751         Fix bug reported by Bruno Haible in
18752         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
18753         where quotearg.c didn't compile on Mac OS X 10.2 because it
18754         lacks <wchar.h> and wint_t.
18755         * lib/wctype_.h (__wctype_wint_t): New type.
18756         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
18757         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
18758         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
18759         Arg is now of type __wctype_wint_t, not wint_t.
18760         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
18761         substitute HAVE_WINT_T.
18762         * modules/wctype (Files): Add m4/wint_t.m4.
18763         (wctype.h): Substitute HAVE_WINT_T.
18764
18765 2006-12-23  Bruno Haible  <bruno@clisp.org>
18766
18767         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
18768
18769 2006-12-23  Bruno Haible  <bruno@clisp.org>
18770
18771         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
18772         S_ISLNK.
18773         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
18774         mingw.
18775
18776 2006-12-22  Bruno Haible  <bruno@clisp.org>
18777
18778         * lib/copy-file.c: Include acl.h.
18779         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
18780         Close the file descriptors only after being done with copy_acl.
18781         * modules/copy-file (Depends-on): Add acl.
18782
18783 2006-12-22  Bruno Haible  <bruno@clisp.org>
18784
18785         * gnulib-tool (SED): New variable.
18786         Use $SED instead of sed everywhere.
18787
18788 2006-12-22  Bruno Haible  <bruno@clisp.org>
18789
18790         * modules/no-c++: New file.
18791         * m4/no-c++.m4: New file.
18792         * MODULES.html.sh (Support for building libraries and executables):
18793         Add no-c++.
18794
18795 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18796
18797         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18798         Include <limits.h>, and use its INT_MAX to rewrite the
18799         j loop so that it does not overflow 'int'.  Problem reported by
18800         Ralf Wildenhues in
18801         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
18802         Play it safe by shifting left by 1 rather than multiplying by 2,
18803         as GCC is less likely to optimize this away when the value
18804         is signed (when it assumes overflow leads to undefined behavior).
18805         Also, don't assume time_t uses two's complement.
18806
18807 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18808
18809         * MODULES.html.sh: New module wctype.
18810         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
18811         * lib/fnmatch.c: Don't bother to include <wchar.h> before
18812         <wctype.h>, since the new wctype module should fix this.
18813         * lib/quotearg.c: Include <wctype.h> unconditionally, since
18814         the wctype module should arrange for it.
18815         * lib/regex_internal.h: Likewise.
18816         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
18817         since the wctype module should handle this now.
18818         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
18819         * modules/fnmatch (Depends-on): Add wctype.
18820         * modules/quotearg (Depends-on): Likewise.
18821         * modules/regex (Depends-on): Likewise.
18822
18823 2006-12-19  Bruno Haible  <bruno@clisp.org>
18824
18825         * lib/strdup.h [C++]: Wrap definitions in extern "C".
18826         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
18827
18828 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18829
18830         * modules/savewd (Depends-on): Fix dependency on fcntl.
18831
18832 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18833
18834         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
18835         conforms to C99, rather than relying on the user's environment
18836         setting of STDINT_H.
18837
18838 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18839         and Eric Blake  <ebb9@byu.net>
18840
18841         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
18842         This is more consistent with the other defines here.
18843         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
18844         Port to z/OS.  Problem reported by Paul Gilmartin.
18845         Change local vars to use gl_ prefix rather than ac_.
18846         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
18847         with other defines.
18848         * modules/double-slash-root: New module.
18849         * modules/dirname (Files): Remove m4/double-slash-root.m4.
18850         (Depends-on): Add double-slash-root.
18851         * MODULES.html.sh (File system functions): Mention new module.
18852
18853 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
18856         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
18857         This is for the benefit of gzip, which doesn't do i18n.
18858
18859 2006-12-12  Jim Meyering  <jim@meyering.net>
18860
18861         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
18862         Reported by Andreas Schwab <schwab@suse.de>.
18863
18864 2006-12-12  Bruno Haible  <bruno@clisp.org>
18865
18866         Merge these changes.
18867         2006-09-05  Bruno Haible  <bruno@clisp.org>
18868         * lib/iconvme.c (iconv_string): No need to save and restore errno when
18869         iconv_alloc succeeded.
18870         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
18871         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
18872         test for " && dest " at the end - dest is always != NULL there. Call
18873         iconv with 4xNULL arguments initially, to reset the state. Call iconv
18874         with 2xNULL arguments, also to flush the state storage. Handle the
18875         IRIX iconv behaviour. Realloc the final result, to throw away unused
18876         memory.
18877
18878 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18879
18880         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
18881         and fchmodat unconditionally, since glibc 2.4 has them.
18882         Problem reported by Arkadiusz Miskiewicz.
18883
18884 2006-12-10  Bruno Haible  <bruno@clisp.org>
18885
18886         * gnulib-tool (func_import): Show the include files only for those
18887         modules that are copied and specified.
18888         Reported by Karl Berry.
18889
18890 2006-12-08  Jim Meyering  <jim@meyering.net>
18891
18892         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
18893         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
18894
18895         * build-aux/announce-gen: Add two new options, both optional:
18896         --bootstrap-tools=TOOL_LIST
18897               a comma-separated list of tools, e.g.,
18898               autoconf,automake,bison,gnulib
18899         --gnulib-snapshot-date=DATE
18900               if gnulib is in the bootstrap tool list,
18901               then report this as the snapshot date.
18902               If not specified, use the current date/time.
18903               If you specify a date here, be sure it's UTC.
18904
18905 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18906
18907         * tests/test-argp-2.sh: Fix test to match actual output.
18908         (func_compare): Fix sed script to be portable.
18909
18910 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18911
18912         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
18913         workaround for this case.  It is not autoconfigured now; offhand
18914         it's hard to see how to autoconfigure it.
18915
18916 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
18917
18918         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
18919         a directory that is about to be chowned.  Such a directory's
18920         initial file permissions should permit the owner only and this
18921         should not be changed until after the chown, since the group and
18922         other bits would be incorrect if they granted permission before
18923         the chown.
18924
18925         Fix porting problem for iswctype reported by Georg Schwarz in:
18926         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
18927         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
18928         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
18929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
18930         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18931
18932 2006-12-03  Jim Meyering  <jim@meyering.net>
18933
18934         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
18935         p->fts_statp may not yet be defined.
18936         (fts_read): Instead, set it in the caller, once p->fts_statp is
18937         sure to be defined, and corresponds to a top-level directory.
18938         This bug made du -x fail.  Here's the coreutils test case:
18939         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
18940         Reported by Mike Frysinger.
18941
18942 2006-12-01  Jim Meyering  <jim@meyering.net>
18943
18944         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
18945         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
18946         Reported by Simon Josefsson.
18947
18948 2006-11-30  Jim Meyering  <jim@meyering.net>
18949
18950         * m4/warning.m4: Use the all-permissive copyright notice
18951         recommended by RMS (rather than LGPL).
18952         * m4/vararrays.m4: Likewise.
18953         * m4/flexmember.m4: Likewise.
18954
18955 2006-11-29  Bruno Haible  <bruno@clisp.org>
18956
18957         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18958         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
18959         using +=.
18960         Reported by Simon Josefsson <simon@josefsson.org>.
18961
18962 2006-11-28  James Youngman <jay@gnu.org>
18963
18964         * README: Advise users that they might find the bug-gnulib@gnu.org
18965         and autotools-announce@gnu.org mailing lists useful.
18966
18967 2006-11-28  Bruno Haible  <bruno@clisp.org>
18968
18969         * m4/ptrdiff_max.m4: Remove file.
18970
18971 2006-11-21  Bruno Haible  <bruno@clisp.org>
18972
18973         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
18974         _AC_COMPUTE_INT.
18975         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18976         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
18977         _AC_COMPUTE_INT.
18978         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18979         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
18980         _AC_COMPUTE_INT.
18981         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18982
18983 2006-11-28  Jim Meyering  <jim@meyering.net>
18984
18985         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
18986         warning from "gcc -Wshadow" about shadowing the builtin.
18987
18988 2006-11-27  Bruno Haible  <bruno@clisp.org>
18989
18990         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
18991         _AC_COMPUTE_INT.
18992         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18993
18994 2006-11-27  Bruno Haible  <bruno@clisp.org>
18995             Paul Eggert  <eggert@cs.ucla.edu>
18996
18997         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
18998
18999 2006-11-26  Bruno Haible  <bruno@clisp.org>
19000
19001         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19002         noinst_LTLIBRARIES.
19003
19004 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
19005             Bruno Haible  <bruno@clisp.org>
19006
19007         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
19008         if compiling with "gcc -ansi".
19009
19010 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
19011
19012         Fix some incompatibilities with gcc -ansi -pedantic.
19013         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
19014         if compiling pedantically with GCC, unless it's C99 or later.
19015         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
19016         it mishandles gcc -ansi -pedantic as well.
19017         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
19018         if gcc -pedantic.
19019         * lib/regexec.c (check_node_accept_bytes): Don't use auto
19020         initializers for struct if -pedantic, unless it's C99 or later.
19021
19022 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
19023
19024         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
19025         Don't close an fd more than once. Identical atimes indicate
19026         success, not failure.
19027
19028 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
19029
19030         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
19031
19032 2006-11-23  Jim Meyering  <jim@meyering.net>
19033
19034         * build-aux/announce-gen: New file.  From coreutils.
19035
19036 2006-11-22  Jim Meyering  <jim@meyering.net>
19037
19038         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
19039         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
19040         (fts_read): Use a temporary to narrow the overused st_size member
19041         before using it in a switch statement.  Reported by Matthew Woehlke.
19042
19043         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
19044         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19045
19046 2006-11-20  Bruno Haible  <bruno@clisp.org>
19047
19048         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
19049         changequote instead of pairs of brackets.
19050         Reported by Andreas Schwab <schwab@suse.de>.
19051
19052 2006-11-21  Jim Meyering  <jim@meyering.net>
19053
19054         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
19055         so as to remain compatible with older compilers.
19056         Patch from Michael Deutschmann.
19057
19058 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19059
19060         * MODULES.html.sh (File system functions): Add openat.
19061
19062         * lib/openat.h (rpl_fstatat): New macro, if
19063         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
19064         (fstatat): Define to rpl_fstatat under the same conditions,
19065         unless COMPILING_FSTATAT.
19066         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
19067         seems to have the bug.
19068         * lib/fstatat.c: New file.
19069         * modules/openat (Files): Add it.
19070
19071 2006-11-20  Bruno Haible  <bruno@clisp.org>
19072
19073         * Makefile: New file.
19074
19075 2006-11-20  Jim Meyering  <jim@meyering.net>
19076
19077         The beginnings of syntax-related checks for gnulib.
19078         * lib/Makefile: New file.
19079         * lib/t-idcache: New script.  Ensure that the two halves of
19080         idcache.c stay in sync.
19081
19082         * lib/idcache.c: Adjust comments in user- and group- portions to
19083         be more accurate, and to be consistent with one another.
19084
19085 2006-11-20  Jim Meyering  <jim@meyering.net>
19086
19087         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
19088         continue using the flexible array member (thus, this module performs
19089         half as many malloc calls), with the addition that...
19090         (getgroup, getuser): Consistently record a non-match via an empty
19091         "name" string, and map an empty string match to a NULL return value.
19092         * modules/idcache (Depends-on): Re-add flexmember.
19093
19094         * lib/idcache.c (getuser): Remove all uses of the register keyword.
19095         (getuidbyname, getgroup, getgidbyname): Likewise.
19096
19097         Use cleaner syntax: NULL rather than 0.
19098         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
19099
19100 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19101
19102         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
19103         It mishandled the case where the group was missing.
19104         Problem reported by Greg Schafer.
19105         * modules/idcache: Likewise.
19106
19107 2006-11-18  Jim Meyering  <jim@meyering.net>
19108
19109         * check-module (%exempt_header): Add exception for some
19110         conditionally-included headers.
19111
19112         * modules/i-ring (Depends-on): Add verify.
19113         (License): Change to LGPL.
19114
19115 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19116
19117         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
19118         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
19119         and inttostr.h.  Use snprintf rather than uinttostr, so that
19120         LGPLed code doesn't depend on GPLed.
19121
19122 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19123
19124         * modules/inline (License): Change from GPL to LGPL.
19125
19126 2006-11-17  Jim Meyering  <jim@meyering.net>
19127
19128         * modules/d-type (License): Switch to LGPL.
19129
19130 2006-11-15  Bruno Haible  <bruno@clisp.org>
19131
19132         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
19133
19134 2006-11-15  Eric Blake  <ebb9@byu.net>
19135
19136         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
19137         the module dependency.
19138
19139 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19140             Bruno Haible  <bruno@clisp.org>
19141
19142         * gnulib-tool (func_create_testdir): Add license consistency check.
19143
19144 2006-11-15  Eric Blake  <ebb9@byu.net>
19145
19146         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
19147         random "(cached)" in configure output.
19148
19149 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19150
19151         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
19152         test for conforming inttypes.h is both announced and cached.
19153
19154         * MODULES.html.sh (seen_modules, seen_files): New variables.
19155         (func_module): Rewrite to use a few less gnulib-tool and sed
19156         invocations.  Avoid a couple of quadratic algorithms for ...
19157         (missed_modules, missed_files): ... these, with ...
19158         (func_append, func_tmpdir): ... these new functions, from
19159         gnulib-tool.  Analogously, install traps for cleanup.
19160
19161         * tests/test-gc.c (main): Remove unused variables.
19162         * tests/test-read-file.c: Include stdlib.h, for 'free'.
19163
19164 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
19165
19166         * modules/inttostr (License): Change to LGPL.
19167
19168 2006-11-14  Eric Blake  <ebb9@byu.net>
19169
19170         * modules/tempname (License): Change to LGPL.
19171
19172 2006-11-14  Eric Blake  <ebb9@byu.net>
19173
19174         * doc/functions.texi (Function Portability): *printf functions on
19175         Cygwin now understand all POSIX size specifiers.
19176
19177 2006-11-14  Bruno Haible  <bruno@clisp.org>
19178
19179         * modules/c-ctype (License): Change to LGPL.
19180
19181 2006-11-12  Bruno Haible  <bruno@clisp.org>
19182
19183         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19184         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
19185         for GNOME libraries, for which the include files are installed in
19186         subdirectories of $prefix/include.
19187
19188 2006-11-12  Bruno Haible  <bruno@clisp.org>
19189
19190         * m4/lib-link.m4: Require at least autoconf-2.54.
19191         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
19192         name to underscores for the --with option.
19193
19194 2006-11-13  Bruno Haible  <bruno@clisp.org>
19195
19196         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
19197         the tests directory.
19198         Reported by Ralf Wildenhues.
19199
19200 2006-11-13  Bruno Haible  <bruno@clisp.org>
19201
19202         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
19203         (func_emit_initmacro_end): Undo the override here.
19204         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
19205         Works around the famous automake error in coreutils.
19206
19207 2006-11-13  Eric Blake  <ebb9@byu.net>
19208
19209         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
19210         element, not its node.
19211
19212 2006-11-12  Bruno Haible  <bruno@clisp.org>
19213
19214         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
19215         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
19216
19217 2006-11-12  Bruno Haible  <bruno@clisp.org>
19218
19219         * gnulib-tool: New option --local-symlink.
19220         (func_usage): Document it.
19221         (lsymbolic): New variable.
19222         (func_import, func_create_testdir): If --symlink was not specified,
19223         test whether --local-symlink was specified and the file comes from
19224         the local_gnulib_dir.
19225
19226 2006-11-12  Bruno Haible  <bruno@clisp.org>
19227
19228         * gnulib-tool (func_ln): New function.
19229         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
19230
19231 2006-11-12  Bruno Haible  <bruno@clisp.org>
19232
19233         Finish support for source files in subdirectories.
19234         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
19235         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
19236         AUTOMAKE_OPTIONS.
19237         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
19238
19239 2006-11-12  Bruno Haible  <bruno@clisp.org>
19240
19241         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19242         EXTRA_lib_SOURCES augmentation.
19243         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
19244
19245 2006-11-12  Jim Meyering  <jim@meyering.net>
19246
19247         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
19248         file descriptors.  This also averts a failure on systems with
19249         native openat support when a traversed directory lacks "x" access.
19250         * lib/fts_.h: Include "i-ring.h"
19251         (struct FTS) [fts_fd_ring]: New member.
19252         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
19253         (FCHDIR): Add parentheses.
19254         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
19255         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
19256         When descending, rather than simply closing the previous
19257         fts_cwd_fd value, push that file descriptor onto the ring.
19258         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
19259         (fts_open): Initialize the new fd_ring member.
19260         (fts_close): Clear the ring.
19261         (fts_safe_changedir): When possible, use our new fd_ring to skip
19262         the diropen and fstat and dev/ino comparison that would normally
19263         accompany a virtual `chdir ("..")'.
19264
19265         * modules/fts (Depends-on): Add i-ring.
19266         * modules/i-ring: New module.
19267         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
19268         * m4/i-ring.m4: New file.
19269
19270 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19271
19272         * gnulib-tool (func_create_testdir): Fix replacement of
19273         `build-aux' in configure.ac.  Run autotools in gltests
19274         subdirectory.
19275         (func_create_testdir, func_create_megatestdir, test): There is
19276         no need for '--force' in most autotool invocations in a new
19277         tree.  Actually fail the whole test if any of the tools, or the
19278         configure or make stages fail.
19279
19280         Sync from Automake.
19281         * build-aux/gnupload: Revert last change.  Add pointer to upload
19282         instructions of the GNU Maintenance Instructions.
19283         Suggestion by Karl Berry.
19284
19285 2006-11-10  Jim Meyering  <jim@meyering.net>
19286
19287         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19288
19289 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19290
19291         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19292         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19293         (bind_textdomain_codeset) [! ENABLE_NLS]:
19294         Evaluate all the arguments.  That way, callers get compatible behavior
19295         if the arguments have side effects.  Also, it avoids some GCC
19296         diagnostics in some cases; Joel E. Denny reported problems when Bison
19297         was configured with --enable-gcc-warnigs.
19298
19299 2006-11-10  Jim Meyering  <jim@meyering.net>
19300
19301         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19302         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19303         account.
19304
19305 2006-11-10  Jim Meyering  <jim@meyering.net>
19306
19307         * modules/inline: New file/module.
19308         * modules/xalloc (Files): Remove m4/inline.m4.
19309         (Depends-on): Add inline, instead.
19310         * modules/oset: Likewise.
19311         * modules/list: Likewise.
19312
19313 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19314
19315         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19316         Problem reported by Matthew Woehlke.
19317
19318 2006-11-09  Bruno Haible  <bruno@clisp.org>
19319
19320         * lib/tempname.c (gen_tempname): Remove variant that invokes
19321         __gen_tempname.
19322         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19323         __gen_tempname.
19324
19325 2006-11-08  Bruno Haible  <bruno@clisp.org>
19326
19327         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19328         to 'yes' instead of 'cross-compiling'.
19329
19330 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19331
19332         * lib/quotearg.h (quotearg_free): New decl.
19333         * lib/quotearg.c (quotearg_free): New function.
19334         (slot0, nslots, slotvec0, slotvec):
19335         Now file-scope so that quotearg_free can get at them.
19336
19337 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19338
19339         Sync from Automake.
19340         * build-aux/gnupload: Add missing 'gnu' to example URL.
19341         Report by Karl Berry.
19342
19343 2006-11-08  Bruno Haible  <bruno@clisp.org>
19344
19345         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19346         Suggested by Paul Eggert.
19347
19348 2006-11-08  Jim Meyering  <jim@meyering.net>
19349
19350         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19351         It's already included if !_LIBC.
19352         (fts_safe_changedir): Add a comment.
19353
19354 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19355
19356         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19357         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19358         Matthew Woehlke.
19359
19360         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19361         definitions up, to avoid colliding with change below.
19362         (static_inline) [HAVE_INLINE]: New macro.
19363         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19364         Provide extern decls when !HAVE_INLINE.  Do not define unless
19365         static_inline is defined, either by us or by xmalloc.c.  Use
19366         static_inline rather than static inline.
19367         (XCALLOC): Optimize sizeof(T) = 1 case.
19368         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19369
19370 2006-11-07  Bruno Haible  <bruno@clisp.org>
19371
19372         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19373         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19374         AC_C_INLINE.
19375         * modules/xalloc (Files): Add m4/inline.m4.
19376
19377 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19378
19379         * README: Fix typo.
19380         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
19381         (Miscellanous Notes): ...from this.
19382
19383 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19384
19385         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19386         Mention that offsetof should be used instead of sizeof.
19387         From Bruno Haible.
19388
19389 2006-11-07  Bruno Haible  <bruno@clisp.org>
19390
19391         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
19392
19393 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19394
19395         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19396         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
19397         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19398         (gl_tree_add_before, gl_tree_add_after):
19399         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19400         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19401         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19402         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19403         (gl_linked_add_after, gl_linked_add_at): Likewise.
19404         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19405         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19406         (gl_tree_add_before, gl_tree_add_after): Likewise.
19407         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19408         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19409         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19410
19411 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19412
19413         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19414
19415 2006-11-06  Bruno Haible  <bruno@clisp.org>
19416
19417         * m4/inline.m4: New file.
19418         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
19419         * modules/list (Files): Add m4/inline.m4.
19420         * modules/oset (Files): Likewise.
19421
19422 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19423
19424         * lib/idcache.c: Include <stddef.h>, for offsetof.
19425         (struct userid.name): Change from char * to a flexible array member.
19426         All uses changed.
19427         * modules/idcache (Depends-on): Add flexmember.
19428
19429         * MODULES.html.sh (Core language properties): New module flexmember.
19430         * modules/flexmember, m4/flexmember.m4: New files.
19431
19432         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
19433         inline functions that are identical with the old xnmalloc_inline,
19434         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
19435         that we can avoid some unnecessary integer multiplications and
19436         divisions in the common case where the element size is known at
19437         compile time.
19438         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
19439         needed.
19440         (xnboundedmalloc): Remove.
19441         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
19442         arguments, for consistency with rest of this header.
19443         (xcharalloc): Rewrite using XNMALLOC.
19444         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
19445         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
19446         versions have been moved to lib/xalloc.h and renamed to be the
19447         non-*_inline versions.
19448         (xmalloc, xrealloc): Implement without reference to the xnmalloc
19449         and xnrealloc functions, since those functions are now inline and
19450         now call us.
19451         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
19452         renaming described above.
19453         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
19454         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
19455         captures the dependency in AC_C_INLINE.
19456
19457         New module canonicalize-lgpl, proposed by Charles Wilson in
19458         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
19459         with a few small changes afterwards.
19460         * MODULES.html.sh (File system functions): New module
19461         canonicalize-lgpl.
19462         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
19463         and canonicalize_file_name.
19464         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
19465         * modules/canonicalize-lgpl: New files.
19466
19467 2006-11-05  Bruno Haible  <bruno@clisp.org>
19468
19469         * gnulib-tool (func_import, func_create_testdir): Create directories
19470         also for files in subdirectories of lib/.
19471
19472 2006-11-05  Bruno Haible  <bruno@clisp.org>
19473
19474         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
19475         ANSI C compliant.
19476
19477 2006-11-03  Bruno Haible  <bruno@clisp.org>
19478
19479         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19480         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
19481         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
19482         (xnboundedmalloc): New inline function.
19483         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
19484         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
19485         xmalloc.
19486         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
19487         xmalloc.
19488         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
19489         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
19490         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
19491         xmalloc.
19492         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19493         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
19494         xmalloc.
19495         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
19496         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19497         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
19498         xmalloc.
19499         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19500         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
19501         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19502         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
19503         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
19504         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
19505         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
19506
19507 2006-11-03  Bruno Haible  <bruno@clisp.org>
19508
19509         * lib/c-ctype.h [C++]: Define functions without name mangling.
19510         * lib/fwriteerror.h [C++]: Likewise.
19511         * lib/gcd.h [C++]: Likewise.
19512         * lib/linebreak.h [C++]: Likewise.
19513
19514 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19515
19516         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
19517         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
19518         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
19519         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19520         Check for functions and headers just once.
19521         Check for declaration of canonicalize_file_name.
19522         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
19523
19524 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19525
19526         * gnulib-tool (func_import): Fix typo in actioncmd.
19527
19528 2006-11-02  Bruno Haible  <bruno@clisp.org>
19529
19530         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
19531         newline sequence in the Makefile.am snippet as a space, like "make"
19532         does.
19533         Reported by Roger Persson <perrog@gmail.com>.
19534
19535 2006-11-01  Bruno Haible  <bruno@clisp.org>
19536
19537         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
19538         already declared in <string.h>.
19539         * lib/strcase.h (strncasecmp): Don't declare it if yes.
19540
19541 2006-11-01  Bruno Haible  <bruno@clisp.org>
19542
19543         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
19544         * lib/strcase.h: Include <string.h>.
19545         (strcasecmp): Define to rpl_strcasecmp here.
19546
19547 2006-11-01  Bruno Haible  <bruno@clisp.org>
19548
19549         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
19550
19551 2006-11-01  Eric Blake  <ebb9@byu.net>
19552
19553         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
19554
19555         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
19556
19557 2006-10-29  Bruno Haible  <bruno@clisp.org>
19558
19559         Make it compile in C++ mode.
19560         * lib/full-write.c (full_rw): Add a cast.
19561
19562 2006-11-01  Bruno Haible  <bruno@clisp.org>
19563
19564         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
19565         be POSIX compliant.
19566         Reported by Roger Persson <perrog@gmail.com>.
19567
19568 2006-11-01  Eric Blake  <ebb9@byu.net>
19569
19570         * lib/getopt_.h: Fix comments.
19571
19572 2006-10-31  Eric Blake  <ebb9@byu.net>
19573
19574         * modules/tmpdir (Depends-on): Add sys_stat.
19575         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
19576         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
19577         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
19578         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
19579         tempname.
19580
19581 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
19582
19583         Avoid some C++ diagnostics reported by Bruno Haible.
19584         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
19585         xmalloc.
19586         (quotearg_alloc): Use xcharalloc rather than xmalloc.
19587         (struct slotvec): Move to top level.
19588         (quotearg_n_options): Rewrite to avoid xmalloc.
19589         * lib/xalloc.h (xcharalloc): New function.
19590         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
19591         [defined __cplusplus]: Add function template that provides result
19592         type propagation.  This part of the change is from Bruno Haible.
19593
19594 2006-10-29  Bruno Haible  <bruno@clisp.org>
19595
19596         Make it compile in C++ mode.
19597         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
19598         * lib/strnlen1.c (strnlen1): Cast memchr result.
19599         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
19600         * lib/clean-temp.c (string_equals, string_hash): Add casts.
19601         (create_temp_dir): Rename local variable 'template'.
19602         (compile_csharp_using_sscli): Add cast.
19603         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
19604         * lib/findprog.c (find_in_path): Likewise.
19605         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
19606         * lib/wait-process.c (register_slave_subprocess): Likewise.
19607
19608 2006-10-22  Bruno Haible  <bruno@clisp.org>
19609
19610         * modules/tsearch: New file.
19611         * lib/tsearch.h: New file.
19612         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
19613         * m4/tsearch.m4: New file.
19614         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
19615
19616 2006-10-29  Eric Blake  <ebb9@byu.net>
19617
19618         * lib/arcfour.c: Assume config.h.
19619         * lib/arctwo.c: Likewise.
19620         * lib/base64.c: Likewise.
19621         * lib/check-version.c: Likewise.
19622         * lib/crc.c: Likewise.
19623         * lib/des.c: Likewise.
19624         * lib/gc-gnulib.c: Likewise.
19625         * lib/gc-libgcrypt.c: Likewise.
19626         * lib/gc-pbkdf2-sha1.c: Likewise.
19627         * lib/getaddrinfo.c: Likewise.
19628         * lib/getdelim.c: Likewise.
19629         * lib/getline.c: Likewise.
19630         * lib/hmac-md5.c: Likewise.
19631         * lib/hmac-sha1.c: Likewise.
19632         * lib/iconvme.c: Likewise.
19633         * lib/md2.c: Likewise.
19634         * lib/md4.c: Likewise.
19635         * lib/memxor.c: Likewise.
19636         * lib/read-file.c: Likewise.
19637         * lib/readline.c: Likewise.
19638         * lib/rijndael-alg-fst.c: Likewise.
19639         * lib/rijndael-api-fst.c: Likewise.
19640         * lib/xgetdomainname.c: Likewise.
19641
19642 2006-10-28  Eric Blake  <ebb9@byu.net>
19643
19644         * lib/xstrndup.c: Assume config.h.
19645
19646 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19647
19648         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
19649         stat-macros.h is now for our own macros, whereas stat_h is for
19650         macros in the <sys/stat.h> name space.
19651         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
19652         (STAT_MACROS_H): Remove.
19653         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
19654         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
19655         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
19656         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
19657         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
19658         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
19659         Move these macros to ...
19660         * lib/stat_.h: here.  Don't include stat-macros.h.
19661         * lib/canonicalize.c: Don't include stat-macros.h.
19662         * lib/chown.c: Likewise.
19663         * lib/euidaccess.c: Likewise.
19664         * lib/file-type.c: Likewise.
19665         * lib/filemode.c: Likewise.
19666         * lib/glob.c: Likewise.
19667         * lib/isapipe.c: Likewise.
19668         * lib/lchown.c: Likewise.
19669         * lib/lstat.c: Likewise.
19670         * lib/mkdir-p.c: Likewise.
19671         * lib/rmdir.c: Likewise.
19672         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
19673         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
19674         unless mkdir isn't declared, to speed up 'configure'.
19675         Always create sys/stat.h, since it's unlikely any real sys/stat.h
19676         would define all the S_* symbols.
19677         * modules/canonicalize (Depends-on):
19678         Depend on sys_stat, not stat-macros.
19679         * modules/chown: Likewise.
19680         * modules/euidaccess: Likewise.
19681         * modules/filemode: Likewise.
19682         * modules/file-type: Likewise.
19683         * modules/glob: Likewise.
19684         * modules/isapipe: Likewise.
19685         * modules/lchown: Likewise.
19686         * modules/lstat: Likewise.
19687         * modules/mkancesdirs: Likewise.
19688         * modules/rmdir: Likewise.
19689         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19690         * modules/modechange: Likewise.
19691         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19692         (configure.ac): Remove gl_STAT_MACROS.
19693         * modules/sys_stat (Depends-on): Remove stat-macros.
19694
19695 2006-10-27  Bruno Haible  <bruno@clisp.org>
19696
19697         * m4/signed.m4: Remove file.
19698         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19699         invocation.
19700         * modules/vasnprintf (Files): Remove m4/signed.m4.
19701
19702 2006-10-27  Bruno Haible  <bruno@clisp.org>
19703
19704         Update to GNU gettext 0.16.
19705         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
19706         m4/inttypes-h.m4, m4/signed.m4.
19707         * m4/gettext.m4: Update to GNU gettext 0.16.
19708         * m4/intl.m4: New file, from GNU gettext.
19709         * m4/intldir.m4: New file, from GNU gettext.
19710         * config/srclist.txt: Update
19711
19712 2006-10-27  Eric Blake  <ebb9@byu.net>
19713
19714         * MODULES.html.sh: Document tempname.
19715         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
19716         dependencies.
19717         (Files): Move lib/tempname.c...
19718         * modules/tempname: ...to this new module.
19719         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
19720         (gl_PREREQ_TEMPNAME): Move...
19721         * m4/tempname.m4: ...to this new file.
19722         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
19723         * modules/sys_stat (Depends-on): Add stat-macros.
19724         * lib/stat_.h (includes): Pick up stat macros.
19725         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
19726         if stat macros are broken.
19727         * lib/tempname.c (includes): No need to include "stat-macros.h".
19728         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
19729         (direxists, __path_search) [!_LIBC]: Don't compile these in
19730         gnulib; the tmpdir module covers that.
19731         * lib/tempname.h: New file.
19732
19733 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19734
19735         * COPYING: Explain how gnulib-tool converts licence headers.
19736         Almost all wording by Eric Blake.
19737
19738 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19739
19740         * lib/mbchar.h (is_basic_table): Make read-only.
19741         * lib/mbchar.c (is_basic_table): Likewise.
19742         Reported by John Darrington.
19743
19744 2006-10-25  Bruno Haible  <bruno@clisp.org>
19745
19746         * lib/progname.h (set_program_name): Undefine before defining.
19747
19748 2006-10-25  Bruno Haible  <bruno@clisp.org>
19749
19750         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
19751         false for non-gcc C++ compilers.
19752         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19753
19754 2006-10-24  Bruno Haible  <bruno@clisp.org>
19755
19756         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
19757         iconv implementations like Irix iconv.
19758
19759 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19760
19761         * modules/vararrays: New file.
19762         * m4/vararrays.m4: New file, taken from diffutils.
19763         * MODULES.html.sh: New module vararrays.
19764
19765 2006-10-24  Karl Berry  <karl@gnu.org>
19766
19767         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
19768         Don't call GNU Unix.
19769
19770 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19771
19772         * users.txt: Add Libtool.
19773
19774         Sync from Libtool:
19775
19776         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19777
19778         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
19779         to gnulib's policy of including config.h unconditionally.
19780
19781 2006-10-24  Bruno Haible  <bruno@clisp.org>
19782
19783         * modules/wcwidth (Files): Add m4/wint_t.m4.
19784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
19785         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
19786
19787 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19788
19789         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
19790         to pacify GCC with some -W flags enabled.  Problem reported by
19791         Bruno Haible.
19792
19793 2006-10-24  Jim Meyering  <jim@meyering.net>
19794
19795         * MODULES.html.sh: Remove uinttostr.  It's not a module.
19796         Reported by Karl Berry.
19797
19798 2006-10-23  Bruno Haible  <bruno@clisp.org>
19799
19800         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
19801
19802 2006-10-24  Bruno Haible  <bruno@clisp.org>
19803
19804         * lib/gl_list.h: Use C comment style, not C++ comment style.
19805
19806 2006-10-23  Eric Blake  <ebb9@byu.net>
19807
19808         * lib/getaddrinfo.c (includes): Add missing include.
19809
19810 2006-10-23  Bruno Haible  <bruno@clisp.org>
19811             Paul Eggert  <eggert@cs.ucla.edu>
19812
19813         Ability to rename obstack_free.
19814         * lib/obstack.h (__obstack_free): New macro. Declare instead of
19815         obstack_free.
19816         (obstack_free): Invoke the __obstack_free macro.
19817         * lib/obstack.c (obstack_free): Use __obstack_free macro.
19818
19819 2006-10-23  Bruno Haible  <bruno@clisp.org>
19820             Paul Eggert  <eggert@cs.ucla.edu>
19821
19822         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
19823         __argc, __argv from the declaration. (They are defined as macros on
19824         mingw.)
19825
19826 2006-10-22  Bruno Haible  <bruno@clisp.org>
19827
19828         * doc/gnulib-intro.texi: New file.
19829         * doc/gnulib.texi: Include it.
19830
19831 2006-10-21  Bruno Haible  <bruno@clisp.org>
19832
19833         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
19834         "Introduction", "Miscellanous Notes", "Particular Modules".
19835
19836 2006-10-21  Bruno Haible  <bruno@clisp.org>
19837
19838         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19839         Change mostlyclean-local rule to avoid sh syntax error from bash
19840         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
19841
19842 2006-10-23  Jim Meyering  <jim@meyering.net>
19843
19844         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
19845         in place of snprintf.
19846
19847         * modules/inttostr (Files): Add lib/uinttostr.c.
19848         * lib/uinttostr.c (inttostr): New file/function.
19849         * lib/inttostr.h (uinttostr): Declare.
19850         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
19851         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19852         Add uinttostr.
19853         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
19854
19855 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19856
19857         * lib/canonicalize.c (ELOOP): Define if not already defined.
19858         Problem reported by Bruno Haible in
19859         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
19860
19861 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19862
19863         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
19864         Problem reported by Perry Smith and Ville Laurikari.
19865
19866         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
19867         uses.
19868
19869 2006-10-19  Bruno Haible  <bruno@clisp.org>
19870
19871         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
19872         for mingw.
19873
19874 2006-10-19  Bruno Haible  <bruno@clisp.org>
19875
19876         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
19877         Needed for mingw.
19878
19879 2006-10-19  Bruno Haible  <bruno@clisp.org>
19880
19881         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
19882
19883 2006-10-19  Bruno Haible  <bruno@clisp.org>
19884
19885         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
19886         it.
19887
19888 2006-10-19  Bruno Haible  <bruno@clisp.org>
19889
19890         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
19891         invocation.
19892
19893 2006-10-19  Bruno Haible  <bruno@clisp.org>
19894
19895         * gnulib-tool (func_create_testdir): Don't include ftruncate and
19896         mountlist by default.
19897
19898 2006-10-16  Bruno Haible  <bruno@clisp.org>
19899
19900         * lib/c-strstr.c: Include c-strstr.h.
19901
19902 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19903
19904         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
19905         in a slash.
19906
19907 2006-10-18  Bruno Haible  <bruno@clisp.org>
19908
19909         * lib/lock.h [C++]: Wrap definitions in extern "C".
19910
19911 2006-10-18  Bruno Haible  <bruno@clisp.org>
19912
19913         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
19914         gl_LIBOBJS list.
19915
19916 2006-10-18  Bruno Haible  <bruno@clisp.org>
19917
19918         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
19919
19920 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
19921
19922         * lib/xstrtol.h: Include gettext.h.
19923         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
19924         Problem reported by Eric Blake.
19925         * modules/xstrtol (Depends-on): Add gettext-h.
19926
19927 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
19928
19929         * lib/strftime.c (advance): New macro.
19930         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
19931         incomplete type, so you can't add 0 to it.  Problem and patch
19932         reported by Eelco Dolstra for dietlibc.
19933
19934 2006-10-18  Jim Meyering  <jim@meyering.net>
19935
19936         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
19937         type for a local, and rename it: s/up/user_proc/.
19938
19939 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19940
19941         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
19942         READ_UTMP_USER_PROCESS.
19943         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
19944
19945 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19946
19947         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
19948         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
19949
19950 2006-10-17  Eric Blake  <ebb9@byu.net>
19951
19952         * lib/sigprocmask.c (sigprocmask): Fix typo.
19953
19954         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
19955
19956         * modules/clean-temp (Makefile.am): Don't add to make output...
19957         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
19958         config.h.
19959
19960 2006-10-17  Bruno Haible  <bruno@clisp.org>
19961
19962         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
19963         differently if DEFAULT_TEXT_DOMAIN is set.
19964
19965 2006-10-16  Bruno Haible  <bruno@clisp.org>
19966
19967         * lib/clean-temp.c: Include fwriteerror.h.
19968
19969 2006-10-16  Bruno Haible  <bruno@clisp.org>
19970
19971         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
19972
19973 2006-10-16  Bruno Haible  <bruno@clisp.org>
19974
19975         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
19976         * lib/sigprocmask.h: Include <sys/types.h>.
19977         (sigset_t): Use the system's definition if present.
19978
19979 2006-10-17  Eric Blake  <ebb9@byu.net>
19980
19981         * lib/xvasprintf.c (includes): Assume config.h.
19982         * lib/xasprintf.c (includes): Likewise.
19983
19984 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19985
19986         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
19987         at least as wide as intmax_t.
19988
19989 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
19990
19991         (Imported from Automake.)
19992         * build-aux/gnupload: Update to version 1.1 of directive file.
19993
19994 2006-10-16  Eric Blake  <ebb9@byu.net>
19995
19996         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
19997         match Automake 1.10a.
19998
19999 2006-10-14  Bruno Haible  <bruno@clisp.org>
20000
20001         * modules/sigprocmask: New file.
20002         * lib/sigprocmask.h: New file.
20003         * lib/sigprocmask.c: New file.
20004         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
20005         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
20006         request sigprocmask.o.
20007         (gl_PREREQ_SIGPROCMASK): New macro.
20008         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
20009         (Depends-on): Add sigprocmask.
20010         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
20011         gt_SIGNALBLOCKING. Test for 'raise' only once.
20012         * lib/fatal-signal.c: Include sigprocmask.h.
20013         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
20014         unblock_fatal_signals): Define always.
20015         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20016         sigprocmask.
20017
20018 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20019
20020         Sync from Automake.
20021         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
20022         which incorrectly sets the mode of an existing destination
20023         directory.  In some cases the unpatched install-sh could do the
20024         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
20025         system.  We hope this is rare in practice, but it's clearly worth
20026         fixing.  Problem reported by Alex Unleashed in
20027         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
20028         Also, don't bother to check for -m bugs unless we're using -m;
20029         suggested by Stepan Kasal.
20030
20031 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20032
20033         Sync from Automake.
20034         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
20035         `-c' flag, so they appear at the same position as in %FASTDEP%
20036         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
20037         which ignores unknown options only after the first non-option.
20038         Bug report against M4 by Nelson H. F. Beebe.
20039
20040 2006-10-13  Jim Meyering  <jim@meyering.net>
20041
20042         Fix a bug in yesterday's change.
20043         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
20044         p->fts_statp->st_dev would be used uninitialized.
20045         Ensures that we always call fts_stat on the very first entry.
20046         Miklos Szeredi reported that find -xdev stopped working.
20047
20048 2006-10-12  Bruno Haible  <bruno@clisp.org>
20049
20050         * gnulib-tool (func_get_automake_snippet): Append an automatically
20051         computed EXTRA_DIST augmentation.
20052         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
20053         * modules/alloca-opt (Makefile.am): Likewise.
20054         * modules/allocsa (Makefile.am): Likewise.
20055         * modules/arcfour (Makefile.am): Likewise.
20056         * modules/arctwo (Makefile.am): Likewise.
20057         * modules/argmatch (Makefile.am): Likewise.
20058         * modules/argz (Makefile.am): Likewise.
20059         * modules/atexit (Makefile.am): Likewise.
20060         * modules/backupfile (Makefile.am): Likewise.
20061         * modules/byteswap (Makefile.am): Likewise.
20062         * modules/c-strtod (Makefile.am): Likewise.
20063         * modules/c-strtold (Makefile.am): Likewise.
20064         * modules/calloc (Makefile.am): Likewise.
20065         * modules/canon-host (Makefile.am): Likewise.
20066         * modules/canonicalize (Makefile.am): Likewise.
20067         * modules/chdir-long (Makefile.am): Likewise.
20068         * modules/chdir-safer (Makefile.am): Likewise.
20069         * modules/check-version (Makefile.am): Likewise.
20070         * modules/chown (Makefile.am): Likewise.
20071         * modules/cloexec (Makefile.am): Likewise.
20072         * modules/close-stream (Makefile.am): Likewise.
20073         * modules/closeout (Makefile.am): Likewise.
20074         * modules/crc (Makefile.am): Likewise.
20075         * modules/csharpexec (Makefile.am): Likewise.
20076         * modules/cycle-check (Makefile.am): Likewise.
20077         * modules/des (Makefile.am): Likewise.
20078         * modules/dev-ino (Makefile.am): Likewise.
20079         * modules/dirfd (Makefile.am): Likewise.
20080         * modules/dirname (Makefile.am): Likewise.
20081         * modules/dup2 (Makefile.am): Likewise.
20082         * modules/eealloc (Makefile.am): Likewise.
20083         * modules/error (Makefile.am): Likewise.
20084         * modules/euidaccess (Makefile.am): Likewise.
20085         * modules/exclude (Makefile.am): Likewise.
20086         * modules/exitfail (Makefile.am): Likewise.
20087         * modules/fcntl-safer (Makefile.am): Likewise.
20088         * modules/fcntl (Makefile.am): Likewise.
20089         * modules/file-type (Makefile.am): Likewise.
20090         * modules/fileblocks (Makefile.am): Likewise.
20091         * modules/filemode (Makefile.am): Likewise.
20092         * modules/filenamecat (Makefile.am): Likewise.
20093         * modules/fnmatch (Makefile.am): Likewise.
20094         * modules/fopen-safer (Makefile.am): Likewise.
20095         * modules/fpending (Makefile.am): Likewise.
20096         * modules/fprintftime (Makefile.am): Likewise.
20097         * modules/free (Makefile.am): Likewise.
20098         * modules/fsusage (Makefile.am): Likewise.
20099         * modules/ftruncate (Makefile.am): Likewise.
20100         * modules/fts (Makefile.am): Likewise.
20101         * modules/gc-arcfour (Makefile.am): Likewise.
20102         * modules/gc-des (Makefile.am): Likewise.
20103         * modules/gc-hmac-md5 (Makefile.am): Likewise.
20104         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
20105         * modules/gc-md4 (Makefile.am): Likewise.
20106         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20107         * modules/gc-sha1 (Makefile.am): Likewise.
20108         * modules/gc (Makefile.am): Likewise.
20109         * modules/getaddrinfo (Makefile.am): Likewise.
20110         * modules/getcwd (Makefile.am): Likewise.
20111         * modules/getdelim (Makefile.am): Likewise.
20112         * modules/getdomainname (Makefile.am): Likewise.
20113         * modules/getgroups (Makefile.am): Likewise.
20114         * modules/gethostname (Makefile.am): Likewise.
20115         * modules/gethrxtime (Makefile.am): Likewise.
20116         * modules/getline (Makefile.am): Likewise.
20117         * modules/getloadavg (Makefile.am): Likewise.
20118         * modules/getlogin_r (Makefile.am): Likewise.
20119         * modules/getndelim2 (Makefile.am): Likewise.
20120         * modules/getopt (Makefile.am): Likewise.
20121         * modules/getpagesize (Makefile.am): Likewise.
20122         * modules/getpass-gnu (Makefile.am): Likewise.
20123         * modules/getpass (Makefile.am): Likewise.
20124         * modules/getsubopt (Makefile.am): Likewise.
20125         * modules/gettime (Makefile.am): Likewise.
20126         * modules/gettimeofday (Makefile.am): Likewise.
20127         * modules/getugroups (Makefile.am): Likewise.
20128         * modules/getusershell (Makefile.am): Likewise.
20129         * modules/glob (Makefile.am): Likewise.
20130         * modules/group-member (Makefile.am): Likewise.
20131         * modules/hard-locale (Makefile.am): Likewise.
20132         * modules/hash (Makefile.am): Likewise.
20133         * modules/hmac-md5 (Makefile.am): Likewise.
20134         * modules/hmac-sha1 (Makefile.am): Likewise.
20135         * modules/human (Makefile.am): Likewise.
20136         * modules/idcache (Makefile.am): Likewise.
20137         * modules/imaxabs (Makefile.am): Likewise.
20138         * modules/imaxdiv (Makefile.am): Likewise.
20139         * modules/inet_ntop (Makefile.am): Likewise.
20140         * modules/inet_pton (Makefile.am): Likewise.
20141         * modules/intprops (Makefile.am): Likewise.
20142         * modules/inttostr (Makefile.am): Likewise.
20143         * modules/inttypes (Makefile.am): Likewise.
20144         * modules/isapipe (Makefile.am): Likewise.
20145         * modules/javaversion (Makefile.am): Likewise.
20146         * modules/lchmod (Makefile.am): Likewise.
20147         * modules/lchown (Makefile.am): Likewise.
20148         * modules/localcharset (Makefile.am): Likewise.
20149         * modules/long-options (Makefile.am): Likewise.
20150         * modules/lstat (Makefile.am): Likewise.
20151         * modules/malloc (Makefile.am): Likewise.
20152         * modules/mathl (Makefile.am): Likewise.
20153         * modules/mbchar (Makefile.am): Likewise.
20154         * modules/md2 (Makefile.am): Likewise.
20155         * modules/md4 (Makefile.am): Likewise.
20156         * modules/md5 (Makefile.am): Likewise.
20157         * modules/memcasecmp (Makefile.am): Likewise.
20158         * modules/memchr (Makefile.am): Likewise.
20159         * modules/memcmp (Makefile.am): Likewise.
20160         * modules/memcoll (Makefile.am): Likewise.
20161         * modules/memcpy (Makefile.am): Likewise.
20162         * modules/memmem (Makefile.am): Likewise.
20163         * modules/memmove (Makefile.am): Likewise.
20164         * modules/mempcpy (Makefile.am): Likewise.
20165         * modules/memrchr (Makefile.am): Likewise.
20166         * modules/memset (Makefile.am): Likewise.
20167         * modules/memxor (Makefile.am): Likewise.
20168         * modules/mkancesdirs (Makefile.am): Likewise.
20169         * modules/mkdir-p (Makefile.am): Likewise.
20170         * modules/mkdir (Makefile.am): Likewise.
20171         * modules/mkdtemp (Makefile.am): Likewise.
20172         * modules/mkstemp (Makefile.am): Likewise.
20173         * modules/mktime (Makefile.am): Likewise.
20174         * modules/modechange (Makefile.am): Likewise.
20175         * modules/mountlist (Makefile.am): Likewise.
20176         * modules/nanosleep (Makefile.am): Likewise.
20177         * modules/obstack (Makefile.am): Likewise.
20178         * modules/openat (Makefile.am): Likewise.
20179         * modules/pagealign_alloc (Makefile.am): Likewise.
20180         * modules/pathmax (Makefile.am): Likewise.
20181         * modules/physmem (Makefile.am): Likewise.
20182         * modules/poll (Makefile.am): Likewise.
20183         * modules/posixtm (Makefile.am): Likewise.
20184         * modules/posixver (Makefile.am): Likewise.
20185         * modules/putenv (Makefile.am): Likewise.
20186         * modules/quote (Makefile.am): Likewise.
20187         * modules/quotearg (Makefile.am): Likewise.
20188         * modules/raise (Makefile.am): Likewise.
20189         * modules/read-file (Makefile.am): Likewise.
20190         * modules/readline (Makefile.am): Likewise.
20191         * modules/readlink (Makefile.am): Likewise.
20192         * modules/readtokens (Makefile.am): Likewise.
20193         * modules/readutmp (Makefile.am): Likewise.
20194         * modules/realloc (Makefile.am): Likewise.
20195         * modules/regex (Makefile.am): Likewise.
20196         * modules/rename-dest-slash (Makefile.am): Likewise.
20197         * modules/rename (Makefile.am): Likewise.
20198         * modules/rijndael (Makefile.am): Likewise.
20199         * modules/rmdir (Makefile.am): Likewise.
20200         * modules/rpmatch (Makefile.am): Likewise.
20201         * modules/safe-read (Makefile.am): Likewise.
20202         * modules/safe-write (Makefile.am): Likewise.
20203         * modules/same-inode (Makefile.am): Likewise.
20204         * modules/same (Makefile.am): Likewise.
20205         * modules/save-cwd (Makefile.am): Likewise.
20206         * modules/savedir (Makefile.am): Likewise.
20207         * modules/setenv (Makefile.am): Likewise.
20208         * modules/settime (Makefile.am): Likewise.
20209         * modules/sha1 (Makefile.am): Likewise.
20210         * modules/sig2str (Makefile.am): Likewise.
20211         * modules/snprintf (Makefile.am): Likewise.
20212         * modules/stat-macros (Makefile.am): Likewise.
20213         * modules/stat-time (Makefile.am): Likewise.
20214         * modules/stdbool (Makefile.am): Likewise.
20215         * modules/stdint (Makefile.am): Likewise.
20216         * modules/stdlib-safer (Makefile.am): Likewise.
20217         * modules/stpcpy (Makefile.am): Likewise.
20218         * modules/stpncpy (Makefile.am): Likewise.
20219         * modules/strcase (Makefile.am): Likewise.
20220         * modules/strcasestr (Makefile.am): Likewise.
20221         * modules/strchrnul (Makefile.am): Likewise.
20222         * modules/strcspn (Makefile.am): Likewise.
20223         * modules/strdup (Makefile.am): Likewise.
20224         * modules/strerror (Makefile.am): Likewise.
20225         * modules/strftime (Makefile.am): Likewise.
20226         * modules/strndup (Makefile.am): Likewise.
20227         * modules/strnlen (Makefile.am): Likewise.
20228         * modules/strpbrk (Makefile.am): Likewise.
20229         * modules/strsep (Makefile.am): Likewise.
20230         * modules/strstr (Makefile.am): Likewise.
20231         * modules/strtod (Makefile.am): Likewise.
20232         * modules/strtoimax (Makefile.am): Likewise.
20233         * modules/strtok_r (Makefile.am): Likewise.
20234         * modules/strtol (Makefile.am): Likewise.
20235         * modules/strtoll (Makefile.am): Likewise.
20236         * modules/strtoul (Makefile.am): Likewise.
20237         * modules/strtoull (Makefile.am): Likewise.
20238         * modules/strtoumax (Makefile.am): Likewise.
20239         * modules/strverscmp (Makefile.am): Likewise.
20240         * modules/sys_socket (Makefile.am): Likewise.
20241         * modules/sys_stat (Makefile.am): Likewise.
20242         * modules/sysexits (Makefile.am): Likewise.
20243         * modules/time_r (Makefile.am): Likewise.
20244         * modules/timegm (Makefile.am): Likewise.
20245         * modules/timespec (Makefile.am): Likewise.
20246         * modules/tmpfile-safer (Makefile.am): Likewise.
20247         * modules/trim (Makefile.am): Likewise.
20248         * modules/unistd-safer (Makefile.am): Likewise.
20249         * modules/unlinkdir (Makefile.am): Likewise.
20250         * modules/unlocked-io (Makefile.am): Likewise.
20251         * modules/userspec (Makefile.am): Likewise.
20252         * modules/utime (Makefile.am): Likewise.
20253         * modules/utimecmp (Makefile.am): Likewise.
20254         * modules/utimens (Makefile.am): Likewise.
20255         * modules/vasnprintf (Makefile.am): Likewise.
20256         * modules/vasprintf (Makefile.am): Likewise.
20257         * modules/vsnprintf (Makefile.am): Likewise.
20258         * modules/xalloc (Makefile.am): Likewise.
20259         * modules/xgetcwd (Makefile.am): Likewise.
20260         * modules/xnanosleep (Makefile.am): Likewise.
20261         * modules/xreadlink (Makefile.am): Likewise.
20262         * modules/xstrtod (Makefile.am): Likewise.
20263         * modules/xstrtol (Makefile.am): Likewise.
20264         * modules/xstrtold (Makefile.am): Likewise.
20265         * modules/yesno (Makefile.am): Likewise.
20266         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
20267
20268 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20269
20270         * modules/error (Makefile.am): Distribute files through
20271         EXTRA_DIST, not lib_SOURCES.
20272
20273 2006-10-12  Eric Blake  <ebb9@byu.net>
20274
20275         * modules/error (Makefile.am): Distribute files in /lib.
20276         * modules/obstack (Makefile.am): Likewise.
20277
20278 2006-10-12  Bruno Haible  <bruno@clisp.org>
20279
20280         * modules/acl (Makefile.am): Distribute all files in lib/ through
20281         EXTRA_DIST.
20282         * modules/arcfour (Makefile.am): Likewise.
20283         * modules/arctwo (Makefile.am): Likewise.
20284         * modules/argmatch (Makefile.am): Likewise.
20285         * modules/argz (Makefile.am): Likewise.
20286         * modules/atexit (Makefile.am): Likewise.
20287         * modules/backupfile (Makefile.am): Likewise.
20288         * modules/c-strtod (Makefile.am): Likewise.
20289         * modules/c-strtold (Makefile.am): Likewise.
20290         * modules/calloc (Makefile.am): Likewise.
20291         * modules/canon-host (Makefile.am): Likewise.
20292         * modules/canonicalize (Makefile.am): Likewise.
20293         * modules/chdir-long (Makefile.am): Likewise.
20294         * modules/chdir-safer (Makefile.am): Likewise.
20295         * modules/check-version (Makefile.am): Likewise.
20296         * modules/chown (Makefile.am): Likewise.
20297         * modules/cloexec (Makefile.am): Likewise.
20298         * modules/close-stream (Makefile.am): Likewise.
20299         * modules/closeout (Makefile.am): Likewise.
20300         * modules/crc (Makefile.am): Likewise.
20301         * modules/cycle-check (Makefile.am): Likewise.
20302         * modules/des (Makefile.am): Likewise.
20303         * modules/dirfd (Makefile.am): Likewise.
20304         * modules/dirname (Makefile.am): Likewise.
20305         * modules/dup2 (Makefile.am): Likewise.
20306         * modules/euidaccess (Makefile.am): Likewise.
20307         * modules/exclude (Makefile.am): Likewise.
20308         * modules/exitfail (Makefile.am): Likewise.
20309         * modules/fcntl-safer (Makefile.am): Likewise.
20310         * modules/file-type (Makefile.am): Likewise.
20311         * modules/fileblocks (Makefile.am): Likewise.
20312         * modules/filemode (Makefile.am): Likewise.
20313         * modules/filenamecat (Makefile.am): Likewise.
20314         * modules/fnmatch (Makefile.am): Likewise.
20315         * modules/fopen-safer (Makefile.am): Likewise.
20316         * modules/fpending (Makefile.am): Likewise.
20317         * modules/fprintftime (Makefile.am): Likewise.
20318         * modules/free (Makefile.am): Likewise.
20319         * modules/fsusage (Makefile.am): Likewise.
20320         * modules/ftruncate (Makefile.am): Likewise.
20321         * modules/fts (Makefile.am): Likewise.
20322         * modules/gc (Makefile.am): Likewise.
20323         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20324         * modules/getaddrinfo (Makefile.am): Likewise.
20325         * modules/getcwd (Makefile.am): Likewise.
20326         * modules/getdelim (Makefile.am): Likewise.
20327         * modules/getdomainname (Makefile.am): Likewise.
20328         * modules/getgroups (Makefile.am): Likewise.
20329         * modules/gethostname (Makefile.am): Likewise.
20330         * modules/gethrxtime (Makefile.am): Likewise.
20331         * modules/getline (Makefile.am): Likewise.
20332         * modules/getloadavg (Makefile.am): Likewise.
20333         * modules/getlogin_r (Makefile.am): Likewise.
20334         * modules/getopt (Makefile.am): Likewise.
20335         * modules/getpass (Makefile.am): Likewise.
20336         * modules/getpass-gnu (Makefile.am): Likewise.
20337         * modules/getsubopt (Makefile.am): Likewise.
20338         * modules/gettime (Makefile.am): Likewise.
20339         * modules/gettimeofday (Makefile.am): Likewise.
20340         * modules/getugroups (Makefile.am): Likewise.
20341         * modules/getusershell (Makefile.am): Likewise.
20342         * modules/glob (Makefile.am): Likewise.
20343         * modules/group-member (Makefile.am): Likewise.
20344         * modules/hard-locale (Makefile.am): Likewise.
20345         * modules/hash (Makefile.am): Likewise.
20346         * modules/hmac-md5 (Makefile.am): Likewise.
20347         * modules/hmac-sha1 (Makefile.am): Likewise.
20348         * modules/human (Makefile.am): Likewise.
20349         * modules/idcache (Makefile.am): Likewise.
20350         * modules/imaxabs (Makefile.am): Likewise.
20351         * modules/imaxdiv (Makefile.am): Likewise.
20352         * modules/inet_ntop (Makefile.am): Likewise.
20353         * modules/inet_pton (Makefile.am): Likewise.
20354         * modules/inttostr (Makefile.am): Likewise.
20355         * modules/isapipe (Makefile.am): Likewise.
20356         * modules/lchown (Makefile.am): Likewise.
20357         * modules/long-options (Makefile.am): Likewise.
20358         * modules/lstat (Makefile.am): Likewise.
20359         * modules/malloc (Makefile.am): Likewise.
20360         * modules/mathl (Makefile.am): Likewise.
20361         * modules/mbchar (Makefile.am): Likewise.
20362         * modules/md2 (Makefile.am): Likewise.
20363         * modules/md4 (Makefile.am): Likewise.
20364         * modules/md5 (Makefile.am): Likewise.
20365         * modules/memcasecmp (Makefile.am): Likewise.
20366         * modules/memchr (Makefile.am): Likewise.
20367         * modules/memcmp (Makefile.am): Likewise.
20368         * modules/memcoll (Makefile.am): Likewise.
20369         * modules/memcpy (Makefile.am): Likewise.
20370         * modules/memmem (Makefile.am): Likewise.
20371         * modules/memmove (Makefile.am): Likewise.
20372         * modules/mempcpy (Makefile.am): Likewise.
20373         * modules/memrchr (Makefile.am): Likewise.
20374         * modules/memset (Makefile.am): Likewise.
20375         * modules/memxor (Makefile.am): Likewise.
20376         * modules/mkancesdirs (Makefile.am): Likewise.
20377         * modules/mkdir (Makefile.am): Likewise.
20378         * modules/mkdir-p (Makefile.am): Likewise.
20379         * modules/mkdtemp (Makefile.am): Likewise.
20380         * modules/mkstemp (Makefile.am): Likewise.
20381         * modules/mktime (Makefile.am): Likewise.
20382         * modules/modechange (Makefile.am): Likewise.
20383         * modules/mountlist (Makefile.am): Likewise.
20384         * modules/nanosleep (Makefile.am): Likewise.
20385         * modules/openat (Makefile.am): Likewise.
20386         * modules/pagealign_alloc (Makefile.am): Likewise.
20387         * modules/physmem (Makefile.am): Likewise.
20388         * modules/poll (Makefile.am): Likewise.
20389         * modules/posixtm (Makefile.am): Likewise.
20390         * modules/posixver (Makefile.am): Likewise.
20391         * modules/putenv (Makefile.am): Likewise.
20392         * modules/quote (Makefile.am): Likewise.
20393         * modules/quotearg (Makefile.am): Likewise.
20394         * modules/raise (Makefile.am): Likewise.
20395         * modules/read-file (Makefile.am): Likewise.
20396         * modules/readline (Makefile.am): Likewise.
20397         * modules/readlink (Makefile.am): Likewise.
20398         * modules/readtokens (Makefile.am): Likewise.
20399         * modules/readutmp (Makefile.am): Likewise.
20400         * modules/realloc (Makefile.am): Likewise.
20401         * modules/regex (Makefile.am): Likewise.
20402         * modules/rename (Makefile.am): Likewise.
20403         * modules/rename-dest-slash (Makefile.am): Likewise.
20404         * modules/rijndael (Makefile.am): Likewise.
20405         * modules/rmdir (Makefile.am): Likewise.
20406         * modules/rpmatch (Makefile.am): Likewise.
20407         * modules/safe-read (Makefile.am): Likewise.
20408         * modules/safe-write (Makefile.am): Likewise.
20409         * modules/same (Makefile.am): Likewise.
20410         * modules/save-cwd (Makefile.am): Likewise.
20411         * modules/savedir (Makefile.am): Likewise.
20412         * modules/setenv (Makefile.am): Likewise.
20413         * modules/settime (Makefile.am): Likewise.
20414         * modules/sha1 (Makefile.am): Likewise.
20415         * modules/sig2str (Makefile.am): Likewise.
20416         * modules/snprintf (Makefile.am): Likewise.
20417         * modules/stdlib-safer (Makefile.am): Likewise.
20418         * modules/stpcpy (Makefile.am): Likewise.
20419         * modules/stpncpy (Makefile.am): Likewise.
20420         * modules/strcase (Makefile.am): Likewise.
20421         * modules/strcasestr (Makefile.am): Likewise.
20422         * modules/strchrnul (Makefile.am): Likewise.
20423         * modules/strcspn (Makefile.am): Likewise.
20424         * modules/strdup (Makefile.am): Likewise.
20425         * modules/strerror (Makefile.am): Likewise.
20426         * modules/strftime (Makefile.am): Likewise.
20427         * modules/strndup (Makefile.am): Likewise.
20428         * modules/strnlen (Makefile.am): Likewise.
20429         * modules/strpbrk (Makefile.am): Likewise.
20430         * modules/strsep (Makefile.am): Likewise.
20431         * modules/strstr (Makefile.am): Likewise.
20432         * modules/strtod (Makefile.am): Likewise.
20433         * modules/strtoimax (Makefile.am): Likewise.
20434         * modules/strtok_r (Makefile.am): Likewise.
20435         * modules/strtol (Makefile.am): Likewise.
20436         * modules/strtoll (Makefile.am): Likewise.
20437         * modules/strtoul (Makefile.am): Likewise.
20438         * modules/strtoull (Makefile.am): Likewise.
20439         * modules/strtoumax (Makefile.am): Likewise.
20440         * modules/strverscmp (Makefile.am): Likewise.
20441         * modules/time_r (Makefile.am): Likewise.
20442         * modules/timegm (Makefile.am): Likewise.
20443         * modules/tmpfile-safer (Makefile.am): Likewise.
20444         * modules/unistd-safer (Makefile.am): Likewise.
20445         * modules/unlinkdir (Makefile.am): Likewise.
20446         * modules/userspec (Makefile.am): Likewise.
20447         * modules/utime (Makefile.am): Likewise.
20448         * modules/utimecmp (Makefile.am): Likewise.
20449         * modules/utimens (Makefile.am): Likewise.
20450         * modules/vasnprintf (Makefile.am): Likewise.
20451         * modules/vasprintf (Makefile.am): Likewise.
20452         * modules/vsnprintf (Makefile.am): Likewise.
20453         * modules/xalloc (Makefile.am): Likewise.
20454         * modules/xgetcwd (Makefile.am): Likewise.
20455         * modules/xnanosleep (Makefile.am): Likewise.
20456         * modules/xreadlink (Makefile.am): Likewise.
20457         * modules/xstrtod (Makefile.am): Likewise.
20458         * modules/xstrtol (Makefile.am): Likewise.
20459         * modules/xstrtold (Makefile.am): Likewise.
20460         * modules/yesno (Makefile.am): Likewise.
20461
20462 2006-10-12  Jim Meyering  <jim@meyering.net>
20463
20464         * m4/getloadavg.m4: Revert the change below.
20465
20466         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
20467         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
20468         fail with a symlink, which is what coreutils' ./bootstrap now
20469         creates by default.
20470
20471 2006-10-12  Bruno Haible  <bruno@clisp.org>
20472
20473         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
20474         mingw.
20475         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
20476         MSVC and mingw explicitly.
20477
20478 2006-10-11  Simon Josefsson  <jas@extundo.com>
20479             Bruno Haible  <bruno@clisp.org>
20480
20481         Add support for multiple gnulib-tool invocations in the scope of a
20482         single configure.ac file.
20483         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
20484         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
20485         with the same contents as the _LIBADD variable.
20486         (func_emit_initmacro_start, func_emit_initmacro_end,
20487         func_emit_initmacro_done): New functions.
20488         (func_import, func_create_testdir): Invoke them. Allow the identifiers
20489         gl_LIBOBJS and gl_LTLIBOBJS.
20490
20491 2006-10-11  Bruno Haible  <bruno@clisp.org>
20492
20493         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
20494         (func_create_testdir): Don't create po/Makefile.am, don't invoke
20495         autoreconf. Instead, invoke autopoint explicitly but move back the
20496         *.m4 files from gnulib.
20497
20498 2006-10-11  Bruno Haible  <bruno@clisp.org>
20499
20500         * gnulib-tool (func_usage): Make module names after --create-testdir
20501         optional.
20502         (func_create_testdir): If no module was specified, use nearly all
20503         modules.
20504
20505 2006-10-12  Jim Meyering  <jim@meyering.net>
20506
20507         Big performance improvement for fts-based tools that use FTS_NOSTAT.
20508         Avoid spurious inode-mismatch problems on non-POSIX file systems.
20509         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
20510         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
20511         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
20512         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
20513         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
20514         (fts_set_stat_required): New function.
20515         (fts_open): Defer the calls to fts_stat, if possible or requested.
20516         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
20517         into fts_stat itself.
20518         (fts_read): Perform any required (deferred) fts_stat call.
20519         (fts_build): Likewise, for the directory we're about to open and read.
20520         In the readdir loop, carefully decide whether each entry will require
20521         an eventual call to fts_stat, using dirent.d_type info if available.
20522         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
20523         a command line argument into this function.  Update all callers.
20524         Map a return value of FTS_DOT to FTS_D for a command line argument.
20525         * modules/fts (Depends-on): Add d-type.  Alphabetize.
20526         Thanks to Miklos Szeredi for his tenacity and for the initial
20527         bug report about "find" failing on a FUSE-based file system.
20528
20529         * lib/fts.c (fts_open): Use consistent indentation.
20530
20531 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20532
20533         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
20534         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
20535         reported by Jim Meyering.  All uses of cache variables renamed
20536         to match Autoconf's.
20537         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
20538         the other one.
20539
20540         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20541         Fix misspelling in diagnostic.
20542
20543 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20544
20545         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
20546         defined.  Problem reported by Matthew Woehlke.
20547
20548         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
20549         Add support for Tandem NonStop R series.
20550         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
20551         Use new macro.
20552
20553         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
20554         (has_trailing_slash): Omit size arg; all callers changed.
20555         Omit 'inline', since it doesn't help performance and we'd
20556         need to configure it.
20557         Don't count //, ///, etc. as having a trailing slash.
20558         As a side effect, this removes a C99ism reported by Matthew Woehlke.
20559         (rpl_rename_dest_slash): On failure, use rename's errno rather
20560         than (in some cases) an incorrect or junk errno.
20561         Simplify code by removing need to compute length; this does
20562         cause it to make two passes instead of one over the file name,
20563         but it's worth it.
20564
20565         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
20566         change, since Autoconf's version may no longer be appropriate now
20567         that we are using CVS Autoconf's version.  Add support for Tandem.
20568
20569 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20570             Bruno Haible  <bruno@clisp.org>
20571
20572         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
20573         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
20574         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
20575         gl_AC_TYPE_LONG_LONG.
20576
20577         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
20578         instead of HAVE_LONG_LONG.
20579         * lib/printf-args.c (printf_fetchargs): Likewise.
20580         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20581         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20582         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
20583         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
20584         gl_AC_TYPE_LONG_LONG.
20585
20586 2006-10-11  Bruno Haible  <bruno@clisp.org>
20587
20588         * m4/longlong.m4: Add comments.
20589         * m4/ulonglong.m4: Likewise.
20590
20591 2006-10-10  Bruno Haible  <bruno@clisp.org>
20592
20593         Make it possible to #define stpcpy, strdup to aliases.
20594         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
20595         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
20596
20597 2006-10-10  Bruno Haible  <bruno@clisp.org>
20598
20599         Make it possible to #define gcd to an alias.
20600         * lib/gcd.c: Include config.h.
20601
20602 2006-10-10  Bruno Haible  <bruno@clisp.org>
20603
20604         Make it possible to #define c_isascii to an alias.
20605         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
20606         defined. Undefine the macros before defining them, to avoid gcc
20607         warnings.
20608         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
20609         define NO_C_CTYPE_MACROS early.
20610
20611 2006-10-10  Bruno Haible  <bruno@clisp.org>
20612
20613         Make it possible to #define set_program_name to an alias.
20614         * lib/progname.c: Don't undefine set_program_name; instead, undefine
20615         ENABLE_RELOCATABLE early.
20616
20617 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20618
20619         Port to Tandem NSK OSS, which has 64-bit signed int but at most
20620         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
20621         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
20622         More generally, don't assume that 64-bit signed int is available
20623         if unsigned int is, and vice versa.
20624         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
20625         unsigned symbols, not on their signed counterparts.
20626         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
20627         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
20628         (UINT64_C, UINTMAX_C):
20629         Likewise.
20630         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
20631         unsigned counterparts.
20632         (Have_long_long, Unsigned): New macros.
20633         (Int): Renamed from INT.
20634         (strtoimax): Use the new macros.
20635         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
20636         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
20637         * modules/inttypes (inttypes.h): Substitute
20638         HAVE_UNSIGNED_LONG_LONG_INT.
20639         * modules/stdint (stdint.h): Likewise.
20640         (Files): Add m4/ulonglong.m4.
20641
20642 2006-10-10  Bruno Haible  <bruno@clisp.org>
20643
20644         Fix a gcc -Wshadow warning.
20645         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
20646         to 'bucket'.
20647         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
20648         gl_linked_indexof_from_to): Likewise.
20649         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
20650         Likewise.
20651         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
20652         Likewise.
20653         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
20654         Reported by Eric Blake.
20655
20656 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
20657
20658         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
20659         for NetBSD.  Problem reported by Bruno Haible.
20660
20661 2006-10-09  Jim Meyering  <jim@meyering.net>
20662
20663         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
20664         Patch from Bruno Haible.
20665
20666 2006-10-09  Jim Meyering  <jim@meyering.net>
20667
20668         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
20669         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
20670         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
20671
20672 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20673
20674         Don't include <config.h> twice; this doesn't work in some cases,
20675         e.g., when config.h has "#define intmax_t long long int" and
20676         we include <config.h>, <inttypes.h>, <config.h> in that order.
20677         Problem reported by Matthew Woehlke in:
20678         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
20679         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
20680         * lib/fts-cycle.c: Don't include config.h.
20681         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
20682         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
20683         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
20684         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
20685         inttypes.h.
20686         * lib/xstrtoumax.c: Likewise.
20687         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
20688         __strtol and the like, so that this module is more like its siblings.
20689         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20690         Remove; no longer needed now that we assume gnulib inttypes.h.
20691
20692 2006-10-08  Bruno Haible  <bruno@clisp.org>
20693
20694         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20695         option.
20696
20697 2006-10-07  Jim Meyering  <jim@meyering.net>
20698
20699         * modules/inttypes (inttypes.h): Revert what seems to have been
20700         an inadvertent part of today's change: use "|", not "/" in the
20701         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20702
20703 2006-10-07  Bruno Haible  <bruno@clisp.org>
20704
20705         * modules/sublist: New file.
20706
20707 2006-10-07  Bruno Haible  <bruno@clisp.org>
20708
20709         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
20710         * modules/argz (argz.h): Likewise.
20711         * modules/arpa_inet (arpa/inet.h): Likewise.
20712         * modules/byteswap (byteswap.h): Likewise.
20713         * modules/configmake (configmake.h): Likewise.
20714         * modules/fcntl (fcntl.h): Likewise.
20715         * modules/fnmatch (fnmatch.h): Likewise.
20716         * modules/getopt (getopt.h): Likewise.
20717         * modules/glob (glob.h): Likewise.
20718         * modules/inttypes (inttypes.h): Likewise.
20719         * modules/netinet_in (netinet/in.h): Likewise.
20720         * modules/poll (poll.h): Likewise.
20721         * modules/stdbool (stdbool.h): Likewise.
20722         * modules/stdint (stdint.h): Likewise.
20723         * modules/sys_select (sys/select.h): Likewise.
20724         * modules/sys_socket (sys/socket.h): Likewise.
20725         * modules/sys_stat (sys/stat.h): Likewise.
20726         * modules/sysexits (sysexits.h): Likewise.
20727         * modules/unistd (unistd.h): Likewise.
20728         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20729         Add a "DO NOT EDIT" comment to the generated file.
20730         (func_import): Likewise for gnulib-comp.m4.
20731
20732 2006-10-07  Bruno Haible  <bruno@clisp.org>
20733
20734         * lib/gl_sublist.h: New file.
20735         * lib/gl_sublist.c: New file.
20736
20737 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20738
20739         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
20740         name (relative to the original working directory) and the file
20741         name component (relative to the temporary working directory).  All
20742         callers changed.
20743         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
20744         * lib/mkdir-p.c (make_dir_parents): Likewise.
20745         * lib/mkdir-p.h (make_dir_parents): Likewise.
20746
20747 2006-10-06  Eric Blake  <ebb9@byu.net>
20748
20749         Define several macros for use by the clean-temp module.
20750         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
20751         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
20752         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
20753
20754         * lib/clean-temp.h (close_stream_temp): New declaration.
20755         * lib/clean-temp.c (includes): Pull in headers according to what
20756         other modules are in use.
20757         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
20758
20759 2006-10-06  Bruno Haible  <bruno@clisp.org>
20760
20761         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
20762         instead of fopen, fwriteerror.
20763
20764 2006-10-06  Bruno Haible  <bruno@clisp.org>
20765
20766         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
20767         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
20768         int.
20769         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
20770         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
20771         Return an error indicator.
20772         Suggested by Eric Blake.
20773
20774 2006-10-06  Bruno Haible  <bruno@clisp.org>
20775
20776         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
20777         Reported by Eric Blake.
20778
20779 2006-10-06  Bruno Haible  <bruno@clisp.org>
20780
20781         * modules/closeout (Description): Mention stderr too.
20782
20783 2006-10-06  Bruno Haible  <bruno@clisp.org>
20784         and Paul Eggert  <eggert@cs.ucla.edu>
20785
20786         * lib/closeout.c (close_stdout): Also close stderr.
20787         * lib/closeout.h: Update comment.
20788
20789 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20790
20791         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
20792         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
20793         * lib/dirchownmod.c: Include lchown.h.
20794         * lib/lchown.c: Don't include files that lchown.h now includes.
20795         Don't declare chown, since lchown.h now does that.
20796         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
20797         (lchown): Define to rpl_chown if lchown is declared but
20798         does not exist.  Declare using a prototype if lchown is not
20799         declared.  Add a copyright notice.
20800         * lib/mkstemp.h: Include <unistd.h>.
20801         * lib/openat.c: Include lchown.h.
20802
20803         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
20804         we now test for that separately.
20805         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
20806         rather than O_NOFOLLOW, when testing whether it's possible to
20807         avoid a race condition reliably.
20808         * lib/savewd.c (savewd_chdir): Likewise.
20809
20810         Remove macros that are no longer needed now that stdint.h is
20811         reliable.
20812         * lib/fsusage.c (UINTMAX_MAX): Remove.
20813         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
20814         * lib/utimecmp.c (SIZE_MAX): Remove.
20815
20816         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
20817
20818         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
20819         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
20820         O_NOATIME works.
20821
20822 2006-10-05  Bruno Haible  <bruno@clisp.org>
20823
20824         * lib/gl_list.h (gl_sortedlist_search_from_to,
20825         gl_sortedlist_indexof_from_to): New declarations.
20826         (gl_list_implementation): New fields sortedlist_search_from_to,
20827         sortedlist_indexof_from_to.
20828         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
20829         inline functions.
20830         * lib/gl_list.c (gl_sortedlist_search_from_to,
20831         gl_sortedlist_indexof_from_to): New functions.
20832         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
20833         function.
20834         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
20835         (gl_array_sortedlist_search_from_to): New function.
20836         (gl_array_list_implementation): Update.
20837         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
20838         function.
20839         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
20840         (gl_carray_sortedlist_search_from_to): New function.
20841         (gl_carray_list_implementation): Update.
20842         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
20843         gl_linked_sortedlist_indexof_from_to): New functions.
20844         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20845         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20846         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
20847         gl_tree_sortedlist_indexof_from_to): New functions.
20848         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20849         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20850         Update.
20851         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20852         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
20853         Update.
20854
20855 2006-10-05  Bruno Haible  <bruno@clisp.org>
20856
20857         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
20858         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
20859         (struct gl_list_implementation): Add fields search_from_to,
20860         indexof_from_to. Remove fields search, indexof.
20861         (gl_list_search): Use the search_from_to method.
20862         (gl_list_search_from, gl_list_search_from_to): New functions.
20863         (gl_list_indexof): Use the indexof_from_to method.
20864         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20865         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
20866         (gl_list_search_from, gl_list_search_from_to): New functions.
20867         (gl_list_indexof): Use the indexof_from_to method.
20868         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20869         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
20870         gl_array_indexof. Add start_index, end_index arguments.
20871         (gl_array_search_from_to): Renamed from gl_array_search. Add
20872         start_index, end_index arguments.
20873         (gl_array_remove, gl_array_list_implementation): Update.
20874         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
20875         gl_carray_indexof. Add start_index, end_index arguments.
20876         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
20877         start_index, end_index arguments.
20878         (gl_carray_remove, gl_carray_list_implementation): Update.
20879         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
20880         gl_linked_search. Add start_index, end_index arguments.
20881         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
20882         start_index, end_index arguments.
20883         (gl_linked_remove): Update.
20884         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20885         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20886         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
20887         field to 'size_t'.
20888         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
20889         gl_tree_search. Add start_index, end_index arguments.
20890         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20891         start_index, end_index arguments.
20892         (gl_tree_remove): Update.
20893         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20894         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20895         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
20896         function.
20897         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
20898         gl_tree_search. Add start_index, end_index arguments.
20899         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20900         start_index, end_index arguments.
20901         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20902         Update.
20903         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20904
20905 2006-10-05  Bruno Haible  <bruno@clisp.org>
20906
20907         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
20908
20909         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
20910         fwriteerror_temp): New declarations.
20911         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
20912         (descriptors): New variable.
20913         (cleanup): First, close the descriptors.
20914         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
20915         fclose_temp, fwriteerror_temp): New functions.
20916
20917 2006-10-04  Jim Meyering  <jim@meyering.net>
20918
20919         * lib/fts.c (fts_open): Tiny comment change.
20920
20921 2006-10-04  Bruno Haible  <bruno@clisp.org>
20922
20923         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
20924         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
20925         gl_LOCK_BODY.
20926         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
20927         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
20928         gl_LOCK_EARLY_BODY.
20929         (gl_LOCK): Require gl_LOCK_BODY.
20930
20931 2006-10-04  Bruno Haible  <bruno@clisp.org>
20932
20933         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
20934         (gl_oset_search_atleast): New declaration.
20935         (struct gl_oset_implementation): Add field 'search_atleast'.
20936         (gl_oset_search_atleast): New inline function.
20937         * lib/gl_oset.c (gl_oset_search_atleast): New function.
20938         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
20939         (gl_array_oset_implementation): Update.
20940         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
20941         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
20942         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
20943
20944 2006-10-04  Bruno Haible  <bruno@clisp.org>
20945
20946         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
20947
20948 2006-10-03  Bruno Haible  <bruno@clisp.org>
20949
20950         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
20951         from gl_avltreehash_list_implementation.
20952
20953 2006-10-03  Bruno Haible  <bruno@clisp.org>
20954
20955         * lib/gl_oset.c (gl_oset_add): Fix return type.
20956
20957 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
20958
20959         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
20960
20961 2006-10-02  Eric Blake  <ebb9@byu.net>
20962
20963         * modules/strnlen (Depends-on): Add extensions.
20964
20965 2006-10-02  Eric Blake  <ebb9@byu.net>
20966
20967         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
20968         definition in 2.60+.
20969
20970 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
20971
20972         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
20973         checks.
20974
20975 2006-10-02  Bruno Haible  <bruno@clisp.org>
20976
20977         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
20978         to the AUTOMAKE_OPTIONS.
20979         Reported by Jim Meyering.
20980
20981 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
20982
20983         Work around bug in Solaris 10 /proc file system:
20984         /proc/self/fd/NNN/.. isn't the parent directory of
20985         the directory whose file descriptor is NNN.  This needs to
20986         be worked around at run time, not compile time, since a
20987         program might be built on Solaris 8, where things work, and
20988         run on Solaris 10.
20989         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
20990         to use the following interface instead:
20991         (OPENAT_BUFFER_SIZE): New macro.
20992         (openat_proc_name): New function.
20993         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
20994         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
20995         Likewise.
20996         * lib/openat-proc.c: New file.
20997         * modules/openat (Files): Add lib/openat-proc.c.
20998         (Depends-on): Add same-inode, stdbool.
20999         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
21000
21001 2006-09-29  Bruno Haible  <bruno@clisp.org>
21002
21003         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
21004         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
21005         argument. Set stdout_closed before testing for ferror, not after.
21006         (fwriteerror, fwriteerror_no_ebadf): New functions.
21007
21008 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21009
21010         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
21011
21012 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
21013
21014         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
21015         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
21016
21017 2006-09-28  Jim Meyering  <jim@meyering.net>
21018
21019         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
21020         Include <unistd.h>.
21021
21022 2006-09-28  Bruno Haible  <bruno@clisp.org>
21023
21024         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
21025         * modules/linkedhash-list (Depends-on): Likewise.
21026         * modules/rbtreehash-list (Depends-on): Likewise.
21027
21028 2006-09-28  Bruno Haible  <bruno@clisp.org>
21029
21030         * lib/strndup.h: Simplify the redefinition of strndup.
21031         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
21032         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
21033
21034 2006-09-28  Bruno Haible  <bruno@clisp.org>
21035
21036         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
21037         * lib/gl_linkedhash_list.c: Likewise.
21038         * lib/gl_rbtreehash_list.c: Likewise.
21039
21040 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21041
21042         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
21043         getaddrinfo.
21044
21045         * lib/__fpending.h: Don't include <stdio_ext.h> unless
21046         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
21047         it causes <stdio_ext.h> to cause a compile-time error.
21048         Problem reported by Nelson H. F. Beebe.
21049         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
21050         of HAVE_DECL___PENDING.
21051
21052         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
21053         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
21054         declaration.
21055
21056 2006-09-27  Jim Meyering  <jim@meyering.net>
21057
21058         This file could end up with a definition for a function
21059         named __strndup, rather than rpl_strndup on a system with
21060         incomplete weak_alias support.
21061         * lib/strndup.c (strndup): Rename from __strndup.
21062         Remove #defines that used to map __strndup to strndup.
21063         Don't use K&R prototypes.
21064         Remove LIBC-related code, since this file is not sync'd with glibc.
21065         * lib/strndup.h: Revamp, accordingly.
21066         * m4/strndup.m4: Modernize.
21067
21068 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21069
21070         * modules/savewd (Depends-on): Add 'raise'.
21071         * lib/savewd.c: Include <signal.h>, for 'raise'.
21072
21073 2006-09-26  Jim Meyering  <jim@meyering.net>
21074
21075         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
21076         when we detect Darwin 8.7.0's acl_get_file bug.
21077         Rearrange to perform the new (below) run-test while $LIBS
21078         contains any acl-related library.  Set USE_ACL at the end.
21079         (gl_ACL_GET_FILE): New function.
21080
21081 2006-09-26  Eric Blake  <ebb9@byu.net>
21082
21083         * lib/verror.c: Include <config.h> unconditionally.
21084
21085 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21086
21087         * modules/clock-time (Maintainer): Add self.
21088         * modules/getlogin_r (Depends-on): Add extensions.
21089
21090 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21091
21092         * modules/clock-time: New module.
21093         * modules/nanosleep (Depends-on): Add clock-time.
21094         * modules/gethrxtime (Depends-on): Likewise.
21095         * modules/gettime (Depends-on): Likewise.
21096         * modules/settime (Depends-on): Likewise.
21097
21098         * modules/fts-lgpl: Depend on openat.
21099         * modules/mkancesdirs: Depend on savewd.
21100         * modules/mkdir-p: Likewise.
21101
21102 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21103
21104         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
21105
21106         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
21107         `gl_have_arbitrary_file_name_length_limit' to
21108         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
21109         actually works between configure runs.
21110
21111 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21112             Bruno Haible  <bruno@clisp.org>
21113
21114         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
21115
21116 2006-09-25  Jim Meyering  <jim@meyering.net>
21117
21118         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
21119         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
21120
21121 2006-09-25  Eric Blake  <ebb9@byu.net>
21122
21123         * gnulib-tool (func_import, func_create_testdir): Fix typos in
21124         exec's in 2006-09-18 patch when shuffling fds.
21125
21126 2006-09-25  Bruno Haible  <bruno@clisp.org>
21127
21128         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
21129         Reported by Jim Meyering.
21130
21131 2006-09-24  Jim Meyering  <jim@meyering.net>
21132
21133         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
21134         compare a pointer against a literal "0".  That caused failures with
21135         at least HP-UX's hpcc.
21136
21137 2006-09-22  Simon Josefsson  <jas@extundo.com>
21138
21139         * modules/gc-sha1:
21140         * modules/gc-md4:
21141         * modules/gc-hmac-sha1:
21142         * modules/gc-hmac-md5:
21143         * modules/gc-des:
21144         * modules/gc-arcfour: Distribute more files.
21145
21146 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21147
21148         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
21149         (gl_linked_iterator_from_to): Initialize struct completely.
21150         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
21151         (gl_tree_iterator_from_to): Likewise
21152         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
21153         * lib/gl_array_list.c [lint] (gl_array_iterator)
21154         (gl_array_iterator_from_to): Likewise.
21155         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
21156         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
21157         (gl_carray_iterator_from_to): Likewise.
21158
21159         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
21160         * lib/md4.c (md4_process_block): Remove unused variable.
21161         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
21162         parentheses for clarity.
21163
21164 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21165
21166         * modules/bison-i18n (Depends-on): Add gettext.
21167
21168 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21169
21170         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
21171         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21172         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
21173         also add missing comma that caused broken test.
21174         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
21175         stdlib.h, for `abort'.
21176         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
21177         variables.
21178         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
21179         include unistd.h if present, for `rmdir'.
21180         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
21181         variables.
21182         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
21183         in the process include standard headers for prototypes.
21184         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
21185         gets declared on GNU/Linux.
21186         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
21187         unistd.h, for `rmdir'.
21188         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
21189
21190         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
21191         always true.
21192         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
21193
21194         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
21195
21196 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21197
21198         * gnulib-tool (func_version): Create output all at once.  This
21199         may help avoid triggering unnecessary SIGPIPEs, and at any
21200         rate it doesn't hurt.
21201
21202 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21203             Bruno Haible  <bruno@clisp.org>
21204
21205         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
21206         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21207         * m4/signed.m4 (bh_C_SIGNED): Likewise.
21208
21209         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
21210         (gl_FUNC_VASPRINTF): Invoke it.
21211
21212 2006-09-22  Bruno Haible  <bruno@clisp.org>
21213
21214         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
21215         getloadavg.c as first argument.
21216
21217 2006-09-22  Bruno Haible  <bruno@clisp.org>
21218
21219         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
21220         at the beginning of the gl_INIT macro.
21221         * modules/getloadavg (configure.ac): Pass $gl_source_base to
21222         gl_GETLOADAVG.
21223
21224 2006-09-22  Bruno Haible  <bruno@clisp.org>
21225
21226         * gnulib-tool (func_create_megatestdir): Don't include the config-h
21227         module.
21228         Suggested by Ralf Wildenhues.
21229
21230 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21231
21232         Import this patch from libc:
21233
21234         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
21235
21236         * lib/regex_internal.c (re_string_reconstruct): Handle
21237         offset < pstr->valid_raw_len && pstr->offsets_needed case.
21238         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
21239         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
21240         re_string_context_at.
21241
21242         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
21243         now requires it.
21244         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
21245         gl_REGEX now does it for us.
21246         (gl_REGEX): Add test taken from
21247         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
21248
21249         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
21250         Check that large offsets work.  Modernize Autoconf usages.
21251         Prefer "yes" to mean a good thing rather than a bad.
21252         Don't put "#define mkstemp" in config.h, as this might interfere
21253         with standard system headers that "#define mkstemp mkstemp64".
21254
21255         * modules/mkstemp (Depends-on): Add extensions, so that
21256         mkstemp is visible on some platforms.
21257         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
21258         (Include): Change to "mkstemp.h" from <stdlib.h>.
21259         (Files): Add mkstemp.h.
21260
21261         * lib/mkstemp.h: New file, since some standard headers
21262         #define mkstemp.
21263         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
21264         Include "mkstemp.h".
21265         Make the _LIBC code resemble glibc original more,
21266         e.g., use K&R style.
21267         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
21268         (mkstemp): Remove, since mkstemp.h does this for us.
21269         * lib/stdlib--.h: Include mkstemp.h.
21270
21271         Import this patch from libc:
21272
21273         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21274
21275         * lib/tempname.c (__gen_tempname): Change attempts_min
21276         into a macro.  Use preprocessor to decide how to initialize
21277         attempts [Coverity CID 67].
21278
21279 2006-09-20  Bruno Haible  <bruno@clisp.org>
21280
21281         * lib/mkdtemp.c: Import from libc.
21282         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21283                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21284                 attempts_min into a macro.  Use preprocessor to decide how to
21285                 initialize attempts [Coverity CID 67].
21286         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21287                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21288                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21289
21290 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21291
21292         * gnulib-tool (func_exit): New function, to allow to pass the
21293         exit status portably through the trap.  Use everywhere.
21294         (--help, --version): Signal a write error.
21295         (trap): catch SIGPIPE, for write errors.
21296         Exit at the end of the trap, with the correct exit status.
21297
21298 2006-09-19  Karl Berry  <karl@gnu.org>
21299
21300         * doc/gnulib.texi: note about the license texinfo files.
21301
21302 2006-09-19  Eric Blake  <ebb9@byu.net>
21303
21304         * gnulib-tool: Avoid space-tab.
21305
21306 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21307
21308         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21309         that prevented coreutils 6.1 from building.  Problem reported
21310         by Petter Reinholdtsen.
21311
21312 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21313
21314         * gnulib-tool (avoidlist): Fix typo that broke options like
21315         --avoid=lock that are used by coreutils bootstrap.
21316
21317 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21318
21319         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21320         more systematically.
21321
21322 2006-09-18  Jim Meyering  <jim@meyering.net>
21323
21324         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21325
21326 2006-09-18  Bruno Haible  <bruno@clisp.org>
21327
21328         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21329
21330 2006-09-18  Bruno Haible  <bruno@clisp.org>
21331
21332         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21333         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21334         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21335         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21336         * m4/gettext.m4: Require autoconf >= 2.52.
21337         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21338         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21339         of gl_cv_header_inttypes_h.
21340
21341 2006-09-18  Bruno Haible  <bruno@clisp.org>
21342
21343         * lib/javaversion.c: Include configmake.h.
21344
21345 2006-09-18  Bruno Haible  <bruno@clisp.org>
21346
21347         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21348         avoid that the while loops be executed in a subshell.
21349
21350 2006-09-18  Bruno Haible  <bruno@clisp.org>
21351
21352         * MODULES.html.sh (func_module): Break long lines.
21353         Suggested by Bruce Korb <bkorb@gnu.org>.
21354
21355 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21356
21357         Speed up by a factor of 1.12.
21358         * gnulib-tool (nl): New variable.
21359         (func_import): Rewrite include directive extraction to only read each
21360         directive once.
21361
21362 2006-09-17  Bruno Haible  <bruno@clisp.org>
21363
21364         * modules/javaversion (Makefile.am): Remove DEFS setting.
21365         (Depends-on): Add configmake, for PKGDATADIR definition.
21366
21367 2006-09-17  Bruno Haible  <bruno@clisp.org>
21368
21369         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21370
21371 2006-09-17  Bruno Haible  <bruno@clisp.org>
21372
21373         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21374         (func_modules_transitive_closure, func_modules_add_dummy,
21375         func_modules_to_filelist, func_import, func_create_testdir,
21376         func_create_megatestdir, ...): Use it wherever possible.
21377         Suggested by Ralf Wildenhues.
21378
21379 2006-09-16  Karl Berry  <karl@gnu.org>
21380
21381         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
21382         to avoid sectioning errors.
21383         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
21384         [ifinfo]: blank line after @center-ed titles.
21385         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
21386         Spell FSF address consistently with others.
21387         (These changes approved by rms.)
21388
21389 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21390
21391         Speed up by a factor of 1.61.
21392         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
21393         already checked module names again.
21394
21395 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21396
21397         Speed up by a factor of 1.13.
21398         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21399         for new_files, and the input to func_add_or_update.
21400
21401 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21402
21403         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21404         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21405
21406 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21407
21408         * modules/mkancesdirs (Depends-on): Add fcntl.
21409         * modules/savewd: New file.
21410         * MODULES.html.sh (File system functions): Add savewd.
21411
21412         * modules/configmake (Makefile.am): Add support for the
21413         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21414
21415 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21416
21417         * m4/savewd.m4: New file.
21418
21419 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21420
21421         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
21422         (dirchownmod): New arg FD.  All callers changed.
21423         Use FD rather than opening the directory ourself, as opening is
21424         now the caller's responsibility.
21425         * lib/dirchownmod.h: Likewise.
21426         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
21427         hosts that require <sys/types.h> before <sys/stat.h>.  Include
21428         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
21429         (test_dir): Remove.
21430         (mkancesdirs): Return length of prefix of FILE that has already
21431         been made, or -2 if there is a child doing the work.  Redo
21432         algorithm so that it is O(N) rather than O(N**2).  Optimize away
21433         ".", and treat ".." specially since it might stray back into
21434         already-created areas.  Use a subprocess if necessary.  New arg
21435         WD; all users changed.  MAKE_DIR function should now return 1
21436         if it creates a directory that is not readable.  Return -2 if
21437         a child process is spun off.
21438         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
21439         Adjust signature to match code.
21440         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
21441         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
21442         all users changed.
21443         * lib/savewd.c, lib/savewd.h: New files.
21444
21445 2006-09-15  Jim Meyering  <jim@meyering.net>
21446
21447         * modules/rename-dest-slash: New module.
21448         * MODULES.html.sh (posix_compat): Add it here.
21449
21450         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
21451
21452 2006-09-15  Jim Meyering  <jim@meyering.net>
21453
21454         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
21455         file.
21456
21457         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
21458
21459 2006-09-15  Jim Meyering  <jim@meyering.net>
21460
21461         * lib/rename-dest-slash.c (has_trailing_slash): Use
21462         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
21463         (rpl_rename_dest_slash): Perform the cheaper trailing slash
21464         test before testing whether SRC is a directory.
21465         Suggestions from Bruno Haible.
21466
21467         Avoid a warning about an unused variable.
21468         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
21469         into the #ifdef block where it's used.
21470
21471         * lib/rename-dest-slash.c: New file.
21472
21473 2006-09-14  Bruno Haible  <bruno@clisp.org>
21474
21475         * lib/allocsa.c: Include <config.h> unconditionally.
21476         * lib/asnprintf.c: Likewise.
21477         * lib/asprintf.c: Likewise.
21478         * lib/c-strcasecmp.c: Likewise.
21479         * lib/c-strcasestr.c: Likewise.
21480         * lib/c-strncasecmp.c: Likewise.
21481         * lib/c-strstr.c: Likewise.
21482         * lib/classpath.c: Likewise.
21483         * lib/clean-temp.c: Likewise.
21484         * lib/concatpath.c: Likewise.
21485         * lib/copy-file.c: Likewise.
21486         * lib/csharpcomp.c: Likewise.
21487         * lib/csharpexec.c: Likewise.
21488         * lib/execute.c: Likewise.
21489         * lib/fatal-signal.c: Likewise.
21490         * lib/findprog.c: Likewise.
21491         * lib/fwriteerror.c: Likewise.
21492         * lib/gl_array_list.c: Likewise.
21493         * lib/gl_array_oset.c: Likewise.
21494         * lib/gl_avltree_list.c: Likewise.
21495         * lib/gl_avltree_oset.c: Likewise.
21496         * lib/gl_avltreehash_list.c: Likewise.
21497         * lib/gl_carray_list.c: Likewise.
21498         * lib/gl_linked_list.c: Likewise.
21499         * lib/gl_linkedhash_list.c: Likewise.
21500         * lib/gl_list.c: Likewise.
21501         * lib/gl_oset.c: Likewise.
21502         * lib/gl_rbtree_list.c: Likewise.
21503         * lib/gl_rbtree_oset.c: Likewise.
21504         * lib/gl_rbtreehash_list.c: Likewise.
21505         * lib/imaxabs.c: Likewise.
21506         * lib/imaxdiv.c: Likewise.
21507         * lib/javacomp.c: Likewise.
21508         * lib/javaexec.c: Likewise.
21509         * lib/javaversion.c: Likewise.
21510         * lib/linebreak.c: Likewise.
21511         * lib/localcharset.c: Likewise.
21512         * lib/lock.c: Likewise.
21513         * lib/mbchar.c: Likewise.
21514         * lib/mbswidth.c: Likewise.
21515         * lib/mkdtemp.c: Likewise.
21516         * lib/pipe.c: Likewise.
21517         * lib/printf-args.c: Likewise.
21518         * lib/printf-parse.c: Likewise.
21519         * lib/progname.c: Likewise.
21520         * lib/progreloc.c: Likewise.
21521         * lib/readlink.c: Likewise.
21522         * lib/sh-quote.c: Likewise.
21523         * lib/stpcpy.c: Likewise.
21524         * lib/stpncpy.c: Likewise.
21525         * lib/strcasecmp.c: Likewise.
21526         * lib/strcasestr.c: Likewise.
21527         * lib/strcspn.c: Likewise.
21528         * lib/striconv.c: Likewise.
21529         * lib/strncasecmp.c: Likewise.
21530         * lib/strnlen1.c: Likewise.
21531         * lib/strstr.c: Likewise.
21532         * lib/strtok_r.c: Likewise.
21533         * lib/tls.c: Likewise.
21534         * lib/tmpdir.c: Likewise.
21535         * lib/unicodeio.c: Likewise.
21536         * lib/unsetenv.c: Likewise.
21537         * lib/vasnprintf.c: Likewise.
21538         * lib/vasprintf.c: Likewise.
21539         * lib/wait-process.c: Likewise.
21540         * lib/xallocsa.c: Likewise.
21541         * lib/xsetenv.c: Likewise.
21542         * lib/xstriconv.c: Likewise.
21543
21544 2006-09-13  Simon Josefsson  <jas@extundo.com>
21545
21546         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
21547         that internally, suggested by Ralf Wildenhues
21548         <Ralf.Wildenhues@gmx.de>.
21549
21550 2006-09-13  Simon Josefsson  <jas@extundo.com>
21551
21552         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
21553         @LIBOBJS@.
21554         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21555
21556 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21557
21558         * lib/_fpending.c: Include <config.h> unconditionally, since we no
21559         longer worry about uses that don't define HAVE_CONFIG_H.
21560         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
21561         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
21562         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
21563         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
21564         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
21565         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
21566         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
21567         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
21568         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
21569         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
21570         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
21571         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
21572         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
21573         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
21574         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
21575         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
21576         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
21577         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
21578         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
21579         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
21580         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
21581         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
21582         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
21583         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
21584         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
21585         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
21586         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
21587         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
21588         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
21589         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
21590         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
21591         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
21592         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
21593         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
21594         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
21595         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
21596         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
21597         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
21598         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
21599         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
21600         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
21601         Likewise.
21602
21603 2006-09-13  Eric Blake  <ebb9@byu.net>
21604
21605         * lib/getopt.c: Fix typo in last commit.
21606
21607 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21608
21609         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
21610         dgettext.
21611
21612 2006-09-12  Jim Meyering  <jim@meyering.net>
21613
21614         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
21615         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
21616         Reported by Nelson H. F. Beebe.
21617
21618 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21619
21620         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
21621         program_invocation_name and program_invocation_short_name are
21622         initialized.
21623         * lib/argp-namefrob.h: Move declarations of program_invocation_name
21624         and program_invocation_short_name to argp.h, so they are visible
21625         to user programs.
21626         * lib/argp.h: Likewise
21627
21628 2006-09-10  Bruno Haible  <bruno@clisp.org>
21629
21630         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21631         m4/inttypes_h.m4, m4/uintmax_t.m4.
21632
21633 2006-09-10  Bruno Haible  <bruno@clisp.org>
21634
21635         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
21636         gl_AC_TYPE_UINTMAX_T.
21637
21638 2006-09-10  Bruno Haible  <bruno@clisp.org>
21639
21640         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
21641
21642 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21643
21644         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
21645         convention.  Text proposed by Bruno Haible.
21646         (struct argp_option): Document the use of N_() wrappers.
21647
21648         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
21649         '\v', and translate the two parts separately, instead of feeding
21650         the whole string to gettext.  This allows to exclude
21651         '\v' from the strings visible to the translator by writing doc
21652         strings as N_("..") "\v" N_("..").
21653
21654 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
21655
21656         * config/srclist.txt: Undo latest change; the bug was fixed.
21657
21658 2006-09-09  Bruno Haible  <bruno@clisp.org>
21659
21660         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
21661         assignments if building a library without libtool.
21662         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
21663         in func_emit_lib_Makefile_am.
21664         (func_import): When building a static library libfoo.a, arrange to
21665         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
21666         (func_create_testdir): Likewise.
21667         * modules/gc (configure.ac, Makefile.am): If building statically,
21668         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
21669         * modules/iconvme (configure.ac, Makefile.am): Likewise.
21670         * modules/striconv (configure.ac, Makefile.am): Likewise.
21671         Based on a suggestion by Ralf Wildenhues.
21672
21673 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21674
21675         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21676         Check for unistd.h too, since Autoconf doesn't assume POSIX.
21677         Also:
21678
21679         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21680         Add year_2050_test to catch glibc bug 2821
21681         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21682
21683         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21684         Prefer #ifdef to #if.
21685
21686         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
21687         Return from 'main' instead of calling 'exit'.
21688
21689 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21690
21691         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21692         returned the maximum time_t value rather than (time_t) -1.
21693         Problem originally reported by William Bardwell
21694         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21695
21696         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21697         Moved to here ...
21698         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21699         ... from here.
21700
21701 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21702
21703         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
21704         2821 is fixed.
21705
21706 2006-09-08  Jim Meyering  <jim@meyering.net>
21707
21708         Don't make generated files read-only.  That would bother too many
21709         people.  However, do retain the ability to work when targets are
21710         read-only: remove the destination and temporary files before writing
21711         them (when generated via sed or echo), or by using the -f option for
21712         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
21713         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21714         * modules/byteswap, modules/configmake, modules/fcntl:
21715         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21716         * modules/localcharset, modules/netinet_in, modules/poll:
21717         * modules/stdbool, modules/stdint, modules/sys_select:
21718         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21719
21720 2006-09-08  Jim Meyering  <jim@meyering.net>
21721
21722         Avoid new build failure on FreeBSD 6.0.
21723         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
21724         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
21725         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
21726
21727 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21728
21729         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
21730
21731 2006-09-07  Jim Meyering  <jim@meyering.net>
21732
21733         Fix global typo in last change: use chmod u-w, not chmod u-x.
21734         Spotted by Paul Eggert and Bruce Korb.
21735         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21736         * modules/byteswap, modules/configmake, modules/fcntl:
21737         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21738         * modules/localcharset, modules/netinet_in, modules/poll:
21739         * modules/stdbool, modules/stdint, modules/sys_select:
21740         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21741
21742 2006-09-06  Jim Meyering  <jim@meyering.net>
21743
21744         Make generated files be read-only.
21745         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
21746         Ensure that each generated file is now read-only.
21747         * modules/argz: Likewise.
21748         * modules/arpa_inet: Likewise.
21749         * modules/byteswap: Likewise.
21750         * modules/configmake: Likewise.
21751         * modules/fcntl: Likewise.
21752         * modules/fnmatch: Likewise.
21753         * modules/getopt: Likewise.
21754         * modules/glob: Likewise.
21755         * modules/inttypes: Likewise.
21756         * modules/netinet_in: Likewise.
21757         * modules/poll: Likewise.
21758         * modules/stdbool: Likewise.
21759         * modules/stdint: Likewise.
21760         * modules/sys_select: Likewise.
21761         * modules/sys_socket: Likewise.
21762         * modules/sys_stat: Likewise.
21763         * modules/sysexits: Likewise.
21764         * modules/localcharset: Same as above, but continue using temporary
21765         file named "t-$@" (why different?) rather than the "$@-t" used
21766         everywhere else.
21767
21768         * modules/sysexits (Makefile.am): Replace literal occurrences
21769         of "sysexit.h" more readable, and more consistent, "$@".
21770
21771 2006-09-06  Bruno Haible  <bruno@clisp.org>
21772
21773         * modules/striconv: New file.
21774         * modules/xstriconv: New file.
21775         * MODULES.html.sh (Internationalization functions): Add striconv,
21776         xstriconv.
21777
21778 2006-09-06  Bruno Haible  <bruno@clisp.org>
21779
21780         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
21781         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
21782         not using libtool correctly.
21783
21784 2006-09-06  Bruno Haible  <bruno@clisp.org>
21785
21786         * lib/striconv.h: New file.
21787         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
21788         iconvstring.c.
21789         * lib/xstriconv.h: New file.
21790         * lib/xstriconv.c: New file.
21791
21792 2006-09-06  Bruno Haible  <bruno@clisp.org>
21793
21794         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21795         lib_..._LDFLAGS.
21796
21797 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21798
21799         * lib/argz_.h: Sync from Libtool.
21800
21801         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
21802                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21803
21804         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
21805
21806 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21807
21808         * modules/trim: New file.
21809
21810 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21811
21812         * lib/trim.h: New file.
21813         * lib/trim.c: New file.
21814
21815 2006-09-05  Bruno Haible  <bruno@clisp.org>
21816
21817         * MODULES.html.sh (String handling): Add trim.
21818
21819 2006-09-04  Karl Berry  <karl@gnu.org>
21820
21821         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
21822         until next release.
21823
21824 2006-09-03  Bruno Haible  <bruno@clisp.org>
21825
21826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
21827         correctly.
21828
21829 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21830
21831         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
21832         not gl_GETLOADAVG.  Omit unneeded semicolons.
21833         Problems reported by Ralf Wildenhues in
21834         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21835         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
21836         at the end, which is the usual gnulib style.
21837
21838         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
21839         of doing all the work ourselves.
21840         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
21841         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
21842
21843 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21844
21845         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
21846         Problem reported by Ralf Wildenhues in
21847         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21848
21849         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
21850         HAVE_STRUCT_STATFS_F_FSTYPENAME.
21851
21852 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21853
21854         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
21855         yesterday's patch by changing test -n to test -z.
21856
21857 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21858
21859         * modules/getloadavg (Files): Add m4/getloadavg.m4.
21860         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
21861         the former is now obsolescent.
21862
21863         * modules/chdir-long (Depends-on): Add fcntl.
21864
21865 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21866
21867         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
21868         obsolescent, and programs should use gnulib instead.
21869         * m4/getloadavg.m4: New file, with contents taken from Autoconf
21870         but with prefixes changed.
21871
21872 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21873
21874         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
21875         or stdbool.h, because they might not exist while configuring.
21876
21877         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
21878         Don't include unistd.h or limits.h; not needed, since chdir-long.h
21879         does that for us.
21880         (O_DIRECTORY): Remove.
21881
21882 2006-08-31  Eric Blake  <ebb9@byu.net>
21883
21884         * gnulib-tool: Don't let emacs change spaces to TAB.
21885
21886 2006-08-31  Bruno Haible  <bruno@clisp.org>
21887
21888         * gnulib-tool: When calling func_import more than once, do it in a
21889         subshell.
21890         Reported by Eric Blake <ebb9@byu.net>.
21891
21892 2006-08-31  Bruno Haible  <bruno@clisp.org>
21893
21894         * gnulib-tool (nl): Remove variable.
21895         (sed_transform_lib_file): Use more robust test for config-h module.
21896         (func_import): Fix typo in 2006-08-25 patch.
21897
21898 2006-08-31  Bruno Haible  <bruno@clisp.org>
21899
21900         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
21901         specified, augment Makefile.am variables instead of assigning them.
21902
21903 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21904
21905         Work around a bug in both the Linux and SunOS 64-bit kernels:
21906         nanosleep mishandles sleeps for longer than 2**31 seconds.
21907         Problem reported by Frank v Waveren in
21908         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
21910         Check for nanosleep bug.
21911         (LIB_NANOSLEEP): Append clock_gettime library if needed.
21912
21913 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21914
21915         Work around a bug in both the Linux and SunOS 64-bit kernels:
21916         nanosleep mishandles sleeps for longer than 2**31 seconds.
21917         Problem reported by Frank v Waveren in
21918         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21919         * lib/nanosleep.c (BILLION): New constant.
21920         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
21921         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
21922         implementation.
21923
21924 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21925
21926         * modules/nanosleep (Depends-on): Add gettime.
21927
21928 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21929         and Simon Josefsson  <jas@extundo.com>
21930         and Oskar Liljeblad  <oskar@osk.mine.nu>
21931
21932         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
21933         * gnulib-tool (func_import): New license type 'unmodifiable license
21934         text'.
21935         * modules/fdl: Use it.  Longer description.
21936         * module/gpl, module/lgpl: New files.
21937
21938 2006-08-30  Jim Meyering  <jim@meyering.net>
21939
21940         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
21941         shadowing the parameter.
21942
21943 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21944
21945         Sync from Libtool:
21946
21947         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21948
21949         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
21950         sharing with gnulib.  Report by Eric Blake.
21951
21952 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21953
21954         * modules/isapipe: New file.
21955         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
21956
21957 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21958
21959         * modules/configmake (Makefile.am): Add a comment, and omit
21960         the CONFIGMAKE_ prefix from generated macro names.  Suggested
21961         by Bruno Haible.
21962
21963 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21964
21965         * m4/isapipe.m4: New file.
21966
21967 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21968
21969         * lib/isapipe.c, lib/isapipe.h: New files.
21970
21971 2006-08-29  Jim Meyering  <jim@meyering.net>
21972
21973         * modules/configmake (Makefile.am): Make configmake.h depend on
21974         Makefile.  Otherwise, a stale configmake.h could hang around.
21975
21976 2006-08-29  Eric Blake  <ebb9@byu.net>
21977
21978         * lib/error.c (error_at_line, print_errno_message): Match libc, after
21979         resolution of upstream bug 3044.
21980
21981 2006-08-29  Bruno Haible  <bruno@clisp.org>
21982
21983         * modules/localcharset (Depends-on): Add configmake.
21984         (Makefile.am): Remove setting of LIBDIR through DEFS.
21985
21986 2006-08-29  Bruno Haible  <bruno@clisp.org>
21987
21988         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
21989         defined.
21990
21991 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21992
21993         * modules/fcntl: New file.
21994         * modules/chdir-safer (Depends-on): Add fcntl.
21995         * modules/fts: Likewise.
21996         * modules/mkdir-p: Likewise.
21997
21998         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
21999         This undoes the most recent change, since we're now addressing the
22000         problem in a different way.
22001
22002         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
22003         into output, since the output might be called Makefile.am even
22004         if $makefile_name is something different.
22005         (func_import): Use $makefile_am rather than
22006         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
22007         empty.
22008
22009         * modules/inttypes (Files): Add m4/inttypes-h.m4.
22010
22011 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22012
22013         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
22014         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
22015         recent change to stdint.m4, since we're now addressing the problem in a
22016         different way.
22017
22018 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22019
22020         * m4/fcntl_h.m4: New file.
22021
22022 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22023
22024         * lib/fcntl_.h: New file.
22025         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
22026         the fcntl module.
22027         * lib/dirchownmod.c: Likewise.
22028         * lib/fts.c: Likewise.
22029
22030         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
22031         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
22032         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
22033         just before including <inttypes.h>, to avoid circular inclusion.
22034
22035 2006-08-28  Jim Meyering  <jim@meyering.net>
22036
22037         * doc/visibility.texi: Actually read and correct the grammar of the
22038         sentence affected by yesterday's change.
22039
22040 2006-08-28  Eric Blake  <ebb9@byu.net>
22041
22042         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
22043         needs wrapper.
22044
22045 2006-08-28  Eric Blake  <ebb9@byu.net>
22046
22047         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
22048
22049 2006-08-28  Eric Blake  <ebb9@byu.net>
22050
22051         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
22052
22053 2006-08-28  Bruno Haible  <bruno@clisp.org>
22054
22055         * modules/c-strstr: New file, from GNU gettext.
22056         * MODULES.html.sh (String handling): Add c-strstr.
22057
22058 2006-08-28  Bruno Haible  <bruno@clisp.org>
22059
22060         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
22061         macros.
22062         Reported by Eric Blake.
22063
22064 2006-08-28  Bruno Haible  <bruno@clisp.org>
22065
22066         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
22067         (VASNPRINTF): Return a string of length > INT_MAX without failing.
22068         * lib/vasprintf.c: Include errno.h, limits.h.
22069         (EOVERFLOW): New fallback definition.
22070         (vasprintf): Test here whether the string length is > INT_MAX.
22071         * lib/vsnprintf.c: Include errno.h, limits.h.
22072         (EOVERFLOW): New fallback definition.
22073         (vsnprintf): Fix bug when generated string was too long for the buffer.
22074         Test here whether the string length is > INT_MAX.
22075
22076 2006-08-28  Bruno Haible  <bruno@clisp.org>
22077
22078         * lib/inttypes_.h (SCNX*): Remove definitions.
22079         Reported by Eric Blake.
22080
22081 2006-08-28  Bruno Haible  <bruno@clisp.org>
22082
22083         * lib/c-strstr.h: New file, from GNU gettext.
22084         * lib/c-strstr.c: New file, from GNU gettext.
22085
22086 2006-08-28  Bruno Haible  <bruno@clisp.org>
22087
22088         * gnulib-tool: Reorder some statements.
22089
22090 2006-08-28  Bruno Haible  <bruno@clisp.org>
22091
22092         * gnulib-tool: New option --makefile-name.
22093         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
22094         $makefile_name.
22095         (func_import): Write $makefile_name to the cache file, and read it from
22096         there unless explicitly specified. Use $makefile_name as file name
22097         instead of Makefile.am. Adjust the recommendations accordingly.
22098
22099 2006-08-28  Bruno Haible  <bruno@clisp.org>
22100
22101         * gnulib-tool (func_verify_module): Check against misapplying patch.
22102
22103 2006-08-28  Bruno Haible  <bruno@clisp.org>
22104
22105         * gnulib-tool (func_relativize, func_relconcat): New functions.
22106         Give an error if --local-dir is given with --update.
22107         Remove trailing slashes from $local_gnulib_dir.
22108         (func_import): Store the relativized $local_gnulib_dir in
22109         gnulib-cache.m4, and read it from there if not specified explicitly.
22110
22111 2006-08-28  Bruno Haible  <bruno@clisp.org>
22112
22113         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
22114         is the current directory. Respect also $local_gnulib_dir.
22115
22116 2006-08-28  Bruno Haible  <bruno@clisp.org>
22117             Simon Josefsson  <jas@extundo.com>
22118
22119         BeOS portability.
22120         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
22121
22122 2006-08-27  Jim Meyering  <jim@meyering.net>
22123
22124         * doc/visibility.texi: Remove duplicate word: "pointer".
22125
22126 2006-08-26  Bruno Haible  <bruno@clisp.org>
22127
22128         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
22129         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
22130         (Makefile.am): Create inttypes.h from inttypes_.h.
22131         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
22132
22133         * modules/imaxabs: New file.
22134
22135         * modules/imaxdiv: New file.
22136
22137 2006-08-26  Bruno Haible  <bruno@clisp.org>
22138
22139         * m4/inttypes.m4: New file.
22140         * m4/_inttypes_h.m4: Remove file.
22141         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
22142         PRI_MACROS_BROKEN.
22143         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
22144
22145         * m4/imaxabs.m4: New file.
22146
22147         * m4/imaxdiv.m4: New file.
22148
22149 2006-08-26  Bruno Haible  <bruno@clisp.org>
22150
22151         * lib/inttypes_.h: New file.
22152         * lib/inttypes.h: Remove file.
22153         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
22154
22155         * lib/imaxabs.c: New file.
22156
22157         * lib/imaxdiv.c: New file.
22158
22159 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22160
22161         New config-h module, so that "make" output needn't be cluttered
22162         by -DHAVE_CONFIG_H.
22163         * MODULES.html.sh (Support for building libraries and executables):
22164         Add config-h.
22165         * modules/config-h: New file.
22166         * gnulib-tool (nl, sed_transform_lib_file): New vars.
22167         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
22168         the config-h module is used.
22169
22170         New configmake module, so that "make" output needn't be cluttered
22171         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
22172         * MODULES.html.sh (Support for building libraries and executables):
22173         Add configmake.
22174         * modules/configmake: New file.
22175
22176 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22177
22178         * m4/config-h.m4: New file.
22179
22180 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22181
22182         * config/srclist.txt: Add elisp-comp.
22183
22184 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22185
22186         * MODULES.html.sh (Support for building libraries and executables):
22187         Add elisp-comp.
22188         * build-aux/elisp-comp: New file.
22189         * modules/elisp-comp: New file.
22190
22191 2006-08-24  Bruno Haible  <bruno@clisp.org>
22192
22193         * gnulib-tool (func_create_testdir): Use non-default values of
22194         sourcebase and m4base.
22195
22196 2006-08-24  Bruno Haible  <bruno@clisp.org>
22197
22198         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
22199         HTML structure.
22200
22201 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22202
22203         * modules/openat (Depends-on): Add lchown.
22204
22205 2006-08-23  Bruno Haible  <bruno@clisp.org>
22206
22207         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
22208         of gl_LOCK_EARLY instead of gl_LOCK.
22209
22210 2006-08-23  Bruno Haible  <bruno@clisp.org>
22211
22212         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
22213         on OSF/1 to no.
22214         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
22215
22216 2006-08-23  Bruno Haible  <bruno@clisp.org>
22217
22218         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
22219         as unusable.
22220
22221         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
22222         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
22223         (gl_LOCK): New macro.
22224
22225 2006-08-22  Simon Josefsson  <jas@extundo.com>
22226
22227         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
22228         to md5 module.
22229
22230 2006-08-22  Simon Josefsson  <jas@extundo.com>
22231
22232         * MODULES.html.sh: Add "Support for maintaining and release
22233         projects".
22234
22235         * build-aux/gnupload: New file, from coreutils.
22236
22237 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22238
22239         Avoid the need for AC_LIBSOURCES in m4 macros.
22240         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
22241         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
22242         * modules/check-version (EXTRA_DIST): Add check-version.h.
22243         * modules/crc (EXTRA_DIST): Add crc.h.
22244         * modules/des (EXTRA_DIST): Add des.h.
22245         * modules/gc (EXTRA_DIST): Add gc.h.
22246         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
22247         * modules/getline (EXTRA_DIST): Add getline.h.
22248         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
22249         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
22250         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
22251         * modules/md2 (EXTRA_DIST): Add md2.h.
22252         * modules/md4 (EXTRA_DIST): Add md4.h.
22253         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
22254         * modules/read-file (EXTRA_DIST): Add read-file.h.
22255         * modules/readline (EXTRA_DIST): Add readline.h.
22256         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
22257         rijndael-api-fst.h.
22258
22259 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22260
22261         * m4/rijndael.m4 (gl_ARCFOUR):
22262         * m4/arctwo.m4 (gl_ARCTWO):
22263         * m4/check-version.m4 (gl_CHECK_VERSION):
22264         * m4/crc.m4 (gl_CRC):
22265         * m4/des.m4 (gl_DES):
22266         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
22267         * m4/gc.m4 (gl_GC):
22268         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22269         * m4/getline.m4 (gl_FUNC_GETLINE):
22270         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
22271         * m4/hmac-md5.m4 (gl_HMAC_MD5):
22272         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
22273         * m4/md2.m4 (gl_MD2):
22274         * m4/md4.m4 (gl_MD4):
22275         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
22276         * m4/read-file.m4 (gl_FUNC_READ_FILE):
22277         * m4/readline.m4 (gl_FUNC_READLINE):
22278         * m4/rijndael.m4 (gl_RIJNDAEL):
22279         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22280         to get the necessary .h files and whatnot.
22281
22282 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22283
22284         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22285         gnulib rather than the other way around.
22286         * config/srclistvars.sh (COREUTILS): Remove.
22287
22288 2006-08-22  Jim Meyering  <jim@meyering.net>
22289
22290         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22291
22292         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22293
22294 2006-08-22  Eric Blake  <ebb9@byu.net>
22295
22296         * modules/regexprops-generic: New file.
22297         * MODULES.html.sh (Support for building documentation): List it.
22298
22299 2006-08-22  Eric Blake  <ebb9@byu.net>
22300
22301         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22302         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22303         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22304         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22305
22306 2006-08-22  Bruno Haible  <bruno@clisp.org>
22307
22308         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22309         and lib_LTLIBRARIES like the other lib_* variables.
22310
22311 2006-08-22  Bruno Haible  <bruno@clisp.org>
22312
22313         * build-aux/x-to-1.in: New file, from GNU gettext.
22314
22315 2006-08-22  Bruno Haible  <bruno@clisp.org>
22316
22317         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22318         <utmpx.h> exists.
22319
22320 2006-08-22  Bruno Haible  <bruno@clisp.org>
22321
22322         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22323         <utmpx.h> exists.
22324
22325 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22326
22327         BeOS portability.
22328         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22329         exist.
22330         Problem reported by Bruno Haible.
22331
22332 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22333
22334         Avoid the need for AC_LIBSOURCES in m4 macros.
22335         * modules/acl (EXTRA_DIST): Add acl.h.
22336         * modules/argmatch (Files): Add m4/argmatch.m4.
22337         (configure.ac): Add gl_ARGMATCH.
22338         (EXTRA_DIST): Renamed from lib_SOURCES, for
22339         consistency with the other modules.  Remove argmatch.c.
22340         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22341         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22342         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22343         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22344         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22345         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22346         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22347         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22348         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22349         * modules/closeout (EXTRA_DIST): Add closeout.h.
22350         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22351         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22352         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22353         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22354         dirname.h; remove basename.c and stripslash.c.
22355         * modules/exclude (EXTRA_DIST): Add exclude.h.
22356         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22357         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22358         * modules/file-type (EXTRA_DIST): Add file-type.h.
22359         * modules/filemode (EXTRA_DIST): Add filemode.h.
22360         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22361         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22362         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22363         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22364         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22365         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22366         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22367         * modules/getdate (EXTRA_DIST): Add getdate.c.
22368         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22369         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22370         * modules/getpass (EXTRA_DIST): Add getpass.h.
22371         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22372         * modules/group-member (EXTRA_DIST): Add group-member.h.
22373         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22374         * modules/hash (EXTRA_DIST): Add hash.h.
22375         * modules/human (EXTRA_DIST): Add human.h.
22376         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22377         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22378         * modules/lchown (EXTRA_DIST): Add lchown.h.
22379         * modules/long-options (EXTRA_DIST): Add long-options.h.
22380         * modules/lstat (EXTRA_DIST): Add lstat.h.
22381         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
22382         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
22383         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
22384         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
22385         * modules/memxor (EXTRA_DIST): Add memxor.h.
22386         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
22387         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
22388         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
22389         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
22390         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
22391         * modules/physmem (EXTRA_DIST): Add physmem.h.
22392         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
22393         * modules/posixver (EXTRA_DIST): Add posixver.h.
22394         * modules/quote (EXTRA_DIST): Add quote.h.
22395         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
22396         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
22397         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22398         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22399         regex_internal.h regexec.c.
22400         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22401         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22402         * modules/same (EXTRA_DIST): Add same.h.
22403         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22404         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22405         * modules/savedir (EXTRA_DIST): Add savedir.h.
22406         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22407         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22408         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22409         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22410         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22411         * modules/strdup (EXTRA_DIST): Add strdup.h.
22412         * modules/strftime (EXTRA_DIST): Add strftime.h.
22413         * modules/strndup (EXTRA_DIST): Add strndup.h.
22414         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22415         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22416         * modules/time_r (EXTRA_DIST): Add time_r.h.
22417         * modules/timespec (EXTRA_DIST): Add timespec.h.
22418         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22419         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
22420         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
22421         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
22422         * modules/userspec (EXTRA_DIST): Add userspec.h.
22423         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
22424         * modules/utimens (EXTRA_DIST): Add utimens.h.
22425         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
22426         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
22427         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
22428         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
22429         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
22430         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
22431         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
22432         * modules/yesno (EXTRA_DIST): Add yesno.h.
22433
22434 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22435
22436         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
22437
22438         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
22439         * m4/dev-ino.m4, same-inode.m4: Remove.
22440
22441         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
22442         * m4/acl.m4 (AC_FUNC_ACL):
22443         * m4/backupfile.m4 (gl_BACKUPFILE):
22444         * m4/c-strtod.m4 (gl_C99_STRTOLD):
22445         * m4/canon-host.m4 (gl_CANON_HOST):
22446         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22447         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
22448         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
22449         * m4/cloexec.m4 (gl_CLOEXEC):
22450         * m4/close-stream.m4 (gl_CLOSE_STREAM):
22451         * m4/closeout.m4 (gl_CLOSEOUT):
22452         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22453         * m4/dirname.m4 (gl_DIRNAME):
22454         * m4/exclude.m4 (gl_EXCLUDE):
22455         * m4/exitfail.m4 (gl_EXITFAIL):
22456         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
22457         * m4/file-type.m4 (gl_FILE_TYPE):
22458         * m4/filemode.m4 (gl_FILEMODE):
22459         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
22460         * m4/fpending.m4 (gl_FUNC_FPENDING):
22461         * m4/fprintftime.m4 (gl_FPRINTFTIME):
22462         * m4/fts.m4 (gl_FUNC_FTS):
22463         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22464         * m4/getdate.m4 (gl_GETDATE):
22465         * m4/gethrxtime.m4 (gl_GETHRXTIME):
22466         * m4/getpagesize.m4 (gl_GETPAGESIZE):
22467         * m4/getpass.m4 (gl_FUNC_GETPASS):
22468         * m4/gettime.m4 (gl_GETTIME):
22469         * m4/getugroups.m4 (gl_GETUGROUPS):
22470         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
22471         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
22472         * m4/hard-locale.m4 (gl_HARD_LOCALE):
22473         * m4/hash.m4 (gl_HASH):
22474         * m4/idcache.m4 (gl_IDCACHE):
22475         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
22476         * m4/lchown.m4 (gl_FUNC_LCHOWN):
22477         * m4/long-options.m4 (gl_LONG_OPTIONS):
22478         * m4/lstat.m4 (gl_FUNC_LSTAT):
22479         * m4/md5.m4 (gl_MD5):
22480         * m4/memcasecmp.m4 (gl_MEMCASECMP):
22481         * m4/memcoll.m4 (gl_MEMCOLL):
22482         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
22483         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
22484         * m4/memxor.m4 (gl_MEMXOR):
22485         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
22486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
22487         * m4/modechange.m4 (gl_MODECHANGE):
22488         * m4/mountlist.m4 (gl_MOUNTLIST):
22489         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22490         * m4/openat.m4 (gl_FUNC_OPENAT):
22491         * m4/pathmax.m4 (gl_PATHMAX):
22492         * m4/physmem.m4 (gl_PHYSMEM):
22493         * m4/posixtm.m4 (gl_POSIXTM):
22494         * m4/posixver.m4 (gl_POSIXVER):
22495         * m4/quote.m4 (gl_QUOTE):
22496         * m4/quotearg.m4 (gl_QUOTEARG):
22497         * m4/readtokens.m4 (gl_READTOKENS):
22498         * m4/readutmp.m4 (gl_READUTMP):
22499         * m4/regex.m4 (gl_REGEX):
22500         * m4/safe-read.m4 (gl_SAFE_READ):
22501         * m4/safe-write.m4 (gl_SAFE_WRITE):
22502         * m4/same.m4 (gl_SAME):
22503         * m4/save-cwd.m4 (gl_SAVE_CWD):
22504         * m4/savedir.m4 (gl_SAVEDIR):
22505         * m4/settime.m4 (gl_SETTIME):
22506         * m4/sha1.m4 (gl_SHA1):
22507         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
22508         * m4/stat-macros.m4 (gl_STAT_MACROS):
22509         * m4/stat-time.m4 (gl_STAT_TIME):
22510         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
22511         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
22512         * m4/strdup.m4 (gl_FUNC_STRDUP):
22513         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
22514         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22515         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
22516         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
22517         * m4/time_r.m4 (gl_TIME_R):
22518         * m4/timespec.m4 (gl_TIMESPEC):
22519         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
22520         * m4/unlinkdir.m4 (gl_UNLINKDIR):
22521         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
22522         * m4/userspec.m4 (gl_USERSPEC):
22523         * m4/utimecmp.m4 (gl_UTIMECMP):
22524         * m4/utimens.m4 (gl_UTIMENS):
22525         * m4/xalloc.m4 (gl_XALLOC):
22526         * m4/xgetcwd.m4 (gl_XGETCWD):
22527         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
22528         * m4/xreadlink.m4 (gl_XREADLINK):
22529         * m4/xstrtod.m4 (gl_XSTRTOD):
22530         * m4/yesno.m4 (gl_YESNO):
22531         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22532         to get the necessary .h files and whatnot.
22533
22534 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
22535             Bruno Haible  <bruno@clisp.org>
22536
22537         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
22538         /bin/sh understanding of '!' conditional negation.
22539
22540 2006-08-21  Jim Meyering  <jim@meyering.net>
22541
22542         * modules/openat (Depends-on): Really alphabetize.
22543
22544         * modules/acl (Depends-on): Add error and quote.
22545
22546         * check-module (find_included_lib_files): Add at-func.c to the
22547         ok-to-include-more-than-once white list.
22548
22549         * modules/openat (Depends-on): Add lstat.  Alphabetize.
22550
22551 2006-08-21  Bruno Haible  <bruno@clisp.org>
22552
22553         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22554         Emit a pkgdata_DATA variable only if some snippets add contents to it.
22555         Reported by Martin Lambers <marlam@marlam.de>.
22556
22557 2006-08-21  Bruno Haible  <bruno@clisp.org>
22558
22559         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
22560         specify an installation location, don't emit a noinst_LIBRARIES or
22561         noinst_LTLIBRARIES assignment.
22562
22563 2006-08-21  Bruno Haible  <bruno@clisp.org>
22564
22565         BeOS portability.
22566         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
22567         BeOS has mbrtowc() but no <wctype.h>.
22568
22569 2006-08-21  Bruno Haible  <bruno@clisp.org>
22570
22571         BeOS portability.
22572         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
22573         exist.
22574
22575 2006-08-21  Bruno Haible  <bruno@clisp.org>
22576
22577         BeOS portability.
22578         * lib/mbchar.h: Include <wctype.h> only if it exists.
22579
22580 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22581
22582         Remove files that are no longer needed by their respective modules.
22583         * m4/obstack.m4: Remove.
22584         * m4/strerror_r.m4: Remove.
22585         * m4/uint32_t.m4: Remove.
22586         * m4/uintptr_t.m4: Remove.
22587         * m4/ullong_max.m4: Remove.
22588         * m4/xstrtoimax.m4: Remove.
22589         * m4/xstrtoumax.m4: Remove.
22590
22591         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
22592         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
22593         dependencies now capture this.
22594
22595         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
22596         Do not use AC_LIBSOURCES, since gnulib modules now do this.
22597         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
22598         * m4/human.m4 (gl_HUMAN): Likewise.
22599         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
22600         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
22601
22602         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
22603
22604         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
22605         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
22606         stdint.
22607         * m4/human.m4 (gl_HUMAN): Likewise.
22608         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
22609         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
22610         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22611         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22612         * m4/xstrtol (gl_XSTRTOL): Likewise.
22613
22614         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
22615         AC_TYPE_LONG_LONG_INT.
22616         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22617         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
22618         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
22619         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22620
22621         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
22622         on stdbool.
22623
22624         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
22625         (gl_PREREQ_XSTRTOUL): Remove.
22626
22627         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
22628
22629         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
22630         mode.
22631
22632 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22633
22634         Add and change modules to make it easier for coreutils to use
22635         gnulib-tool.
22636         * modules/backupfile (Files): Remove m4/d-ino.m4.
22637         (Depends-on): Add d-ino.
22638         * modules/cycle-check (Depends-on): Add stdint.
22639         (lib_SOURCES): Add cycle-check.h.
22640         * modules/d-ino: New module.
22641         * modules/d-type: New module.
22642         * modules/error (Files): Remove m4/strerror_r.m4.
22643         * modules/filemode (Files): Add m4/st_dm_mode.m4.
22644         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22645         m4/inttypes_h.m4, m4/uintmax_t.m4.
22646         (Depends-on): Add stdint.
22647         (lib_SOURCES): Add fsusage.h.
22648         * modules/getcwd (Files): Remove d-ino.m4.
22649         (Depends-on): Add d-ino.
22650         * modules/getndelim2 (Depends-on): Add stdint.
22651         * modules/glob (Files): Remove m4/d-type.m4.
22652         (Depends-on): Add d-type.
22653         * modules/host-os: New module.
22654         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
22655         m4/inttypes_h.m4, m4/uintmax_t.m4.
22656         * Depends-on: Add stdint.
22657         (lib_SOURCES): Add human.h.
22658         * modules/inttostr (Files): Remove m4/intmax_t.m4,
22659         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
22660         m4/uintmax_t.m4, m4/ulonglong.m4.
22661         (Depends-on): Add stdint.
22662         (EXTRA_DIST): Add inttostr.h.
22663         * modules/lchmod: New module.
22664         * modules/link-follow: New module.
22665         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
22666         (Depends-on): Add lchmod.
22667         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
22668         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
22669         (Depends-on): Add stdint.
22670         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
22671         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
22672         (Depends-on): Add stdint.
22673         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
22674         * modules/perl: New module.
22675         * modules/regex (Depends-on): Add stdint.
22676         * modules/rmdir-errno: New module.
22677         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22678         m4/intmax_t.m4.
22679         (Depends-on): Add stdint.
22680         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22681         m4/uintmax_t.m4.
22682         (Depends-on): Add stdint.
22683         * modules/unlink-busy: New module.
22684         * modules/utimecmp (Depends-on): Add stdint.
22685         * modules/uptime: New module.
22686         * modules/winsz-ioctl: New module.
22687         * modules/winsz-termios: New module.
22688         * modules/xnanosleep (Depends-on): Add nanosleep.
22689         * modules/ullong_max: Remove.
22690         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22691         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22692         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22693         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22694         (Depends-on): Add inttypes.
22695         (lib_SOURCES): Add xstrtol.h.
22696         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22697         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22698         * MODULES.html.sh: Move 'assert' into the assert section.
22699         Move 'dummy' into the linking section.
22700         Remove ullong_max.
22701         Add section for compatibility checks for POSIX:2001 functions,
22702         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22703         winsz-ioctl, and winsz-termios into it.
22704         Add lchmod.
22705         Add top-level Misc section and put host-os, perl, and uptime
22706         into it.
22707
22708 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22709
22710         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
22711         now assume the stdint module.  Do not include inttypes.h.
22712         * lib/fsusage.h: Likewise.
22713         * lib/getndelim2.c: Likewise.
22714         * lib/human.h: Likewise.
22715         * lib/inttostr.h: Likewise.
22716         * lib/obstack.c: Likewise.
22717         * lib/regex_internal.h: Likewise.
22718         * lib/tempname.c: Likewise.
22719         * lib/utimecmp.c: Likewise.
22720         * lib/xstrtol.h: Likewise.
22721
22722         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
22723
22724         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
22725         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
22726         * lib/xtime.h: Likewise.
22727
22728 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22729
22730         * modules/openat (Files): Add lib/fchmodat.c.
22731         Fixes problem reported by Jay Youngman.
22732
22733 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22734
22735         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
22736         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
22737
22738 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22739             Bruno Haible  <bruno@clisp.org>
22740
22741         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
22742         and is a script that invokes bison. Tighten the code. Add comments.
22743
22744 2006-08-18  Jim Meyering  <jim@meyering.net>
22745
22746         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
22747         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
22748         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
22749         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
22750
22751 2006-08-18  Bruno Haible  <bruno@clisp.org>
22752
22753         * modules/bison-i18n: New file.
22754         * MODULES.html.sh (Internationalization functions): Add it.
22755
22756 2006-08-18  Bruno Haible  <bruno@clisp.org>
22757
22758         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
22759         sys/statvfs.h. When getmntinfo was found, check its declaration and
22760         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
22761
22762 2006-08-18  Bruno Haible  <bruno@clisp.org>
22763
22764         * m4/bison-i18n.m4: New file, from bison.
22765
22766 2006-08-18  Bruno Haible  <bruno@clisp.org>
22767
22768         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
22769         (ME_DUMMY): Treat "kernfs" as a dummy.
22770         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
22771
22772 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22773
22774         Update from coreutils.
22775
22776         2006-08-15  Jim Meyering  <jim@meyering.net>
22777
22778         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
22779
22780         2006-01-17  Jim Meyering  <jim@meyering.net>
22781
22782         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
22783
22784         2006-01-11  Jim Meyering  <jim@meyering.net>
22785
22786         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
22787         Check for the lchmod function.
22788
22789 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22790
22791         Update from coreutils.
22792
22793         * lib/__fpending.h: Add copyright notice.
22794         * lib/fprintftime.h: Likewise.
22795         * lib/savedir.c: Use (C) in copyright notice.
22796         * lib/savedir.h: Likewise.
22797
22798         2006-08-15  Jim Meyering  <jim@meyering.net>
22799
22800         * lib/at-func.c: New file, with the logic of all emulated at-functions.
22801         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
22802         in support of the EXPECTED_ERRNO macro.
22803         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
22804         definitions.  Instead, define the appropriate symbols and include
22805         "at-func.c".
22806         * lib/mkdirat.c (mkdirat): Likewise.
22807         * lib/fchmodat.c (fchmodat): Likewise.
22808         (ENOSYS): Remove definition.
22809         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
22810         it.  Don't include "unistd--.h" -- it wasn't ever used.
22811
22812         2006-01-17  Jim Meyering  <jim@meyering.net>
22813
22814         Rewrite fts.c not to change the current working directory,
22815         by using openat, fstatat, fdopendir, etc..
22816
22817         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
22818         (HAVE_OPENAT_SUPPORT): Define.
22819         [_LIBC] (fchdir): Don't undef or define; no longer used.
22820         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
22821         Now, this `function' always succeeds, and consumes its file descriptor
22822         parameter -- so callers must not close such FDs.  Update callers.
22823         (diropen_fd, opendirat, cwd_advance_fd): New functions.
22824         (diropen): Add parameter, SP.  Adjust all callers.
22825         Implement using diropen_fd, rather than open.
22826         (fts_open): Initialize new member, fts_cwd_fd.
22827         Remove fts_rft-setting code.
22828         (fts_close): Close fts_cwd_fd, if necessary.
22829         (__opendir2): Define in terms of opendir or opendirat,
22830         depending on whether the FST_NOCHDIR flag is set.
22831         (fts_build): Since fts_safe_changedir consumes its FD, and since
22832         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
22833         and close the dup'd file descriptor upon failure.
22834         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
22835         (fts_safe_changedir): Tweak semantics to reflect that this function
22836         now calls cwd_advance_fd and hence consumes its FD argument.
22837         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
22838         [struct FTS] (fts_rft): Remove now-unused member.
22839         [struct FTS] (fts_cycle.state): Improve comment.
22840
22841         * lib/openat.c (openat_needs_fchdir): New function.
22842         * lib/openat.h (openat_needs_fchdir): Declare it.
22843
22844 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22845
22846         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
22847         Problem and fix reported by Pádraig Brady in
22848         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
22849
22850 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22851
22852         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
22853
22854 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22855
22856         * lib/memcoll.c (memcoll): Optimize for the common case where the
22857         arguments are bytewise equal.
22858
22859 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22860
22861         * doc/regexprops-generic.texi: Add a copyright notice.
22862
22863 2006-08-15  Bruno Haible  <bruno@clisp.org>
22864
22865         * modules/tmpdir (License): Change to LGPL.
22866
22867 2006-08-15  Bruno Haible  <bruno@clisp.org>
22868
22869         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
22870         module.
22871
22872 2006-08-14  Simon Josefsson  <jas@extundo.com>
22873
22874         * config/srclist.txt: Add gnupload.
22875
22876 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22877
22878         Change copyright notice from LGPL 2 to GPL 2, since that's the
22879         standard form used in the gnulib repository.
22880         * tests/test-lock.c: Likewise.
22881         * tests/test-stdint.c: Likewise.
22882         * tests/test-tls.c: Likewise.
22883
22884         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
22885         prelude-manager.  User shorter URLs for GNU projects, without '?'.
22886         Add copyright notice.
22887
22888         * check-module: Add copyright notice.  Output a copyright
22889         notice if "--version" is specified.
22890         * modules/COPYING: New file.
22891         * tests/test-getaddrinfo.c: Add copyright notice.
22892         * tests/test-verify.c: Likewise.
22893
22894 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22895
22896         Change copyright notice from LGPL 2 to GPL 2, since that's the
22897         standard form used in the gnulib repository.
22898         * lib/lock.c: LGPL -> GPL.
22899         * lib/lock.h: Likewise.
22900         * lib/strnlen1.c: Likewise.
22901         * lib/strnlen1.h: Likewise.
22902         * lib/tls.c: Likewise.
22903         * lib/tls.h: Likewise.
22904         * lib/tmpdir.c: Likewise.
22905
22906         * lib/TODO: Remove; this belongs only in coreutils.
22907
22908 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22909
22910         Add copyright notices to long-enough files that lack them, since
22911         otherwise the files aren't clearly free.  Use the same notice that
22912         getdate.texi already uses.
22913         * doc/alloca-opt.texi: Add copyright notice.
22914         * doc/alloca.texi: Likewise.
22915         * doc/ctime.texi: Likewise.
22916         * doc/functions.texi: Likewise.
22917         * doc/gcd.texi: Likewise.
22918         * doc/gnulib-tool.texi: Likewise.
22919         * doc/inet_ntoa.texi: Likewise.
22920         * doc/visibility.texi: Likewise.
22921
22922         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
22923         * doc/quote.texi: Add copyright notice.
22924
22925         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
22926         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
22927         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
22928         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
22929         is now obsolete, and give a pointer to the Sun list.
22930         Add copyright notice.
22931
22932 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22933
22934         * config/srclistvars.sh: Add copyright notice.
22935
22936 2006-08-14  Eric Blake  <ebb9@byu.net>
22937
22938         Import the following change from libc:
22939
22940         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
22941
22942         Upstream bug 2997.
22943         * lib/misc/error.c: Add space between program name and message if file
22944         name is missing.
22945
22946 2006-08-12  Karl Berry  <karl@gnu.org>
22947
22948         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
22949         remove, these originate in gnulib now.
22950
22951 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22952
22953         * doc/Makefile (standards.info standards.html standards.dvi):
22954         Also depend on make-stds.texi.
22955
22956 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22957
22958         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
22959         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
22960
22961         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
22962         in wchar_t.  Problem reported by Eric Blake.
22963
22964         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
22965         LEN is smaller than SIZE.  Suggested by Bruno Haible.
22966         Also, help the compiler to keep LEN in a register.
22967
22968 2006-08-11  Eric Blake  <ebb9@byu.net>
22969
22970         * users.txt: Sort.  Add tar.
22971
22972 2006-08-11  Bruno Haible  <bruno@clisp.org>
22973
22974         * users.txt: New file.
22975
22976 2006-08-11  Bruno Haible  <bruno@clisp.org>
22977
22978         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
22979         before <wchar.h>. Needed for OSF/1 and BSD/OS.
22980
22981 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22982
22983         * modules/snprintf (Depends-on): Remove minmax.
22984         (Maintainer): Add self and Bruno.
22985
22986 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22987
22988         * lib/.cppi-disable: Add snprintf.h, socket_.h.
22989         * lib/snprintf.c: Include <errno.h> and <limits.h>.
22990         (EOVERFLOW): Define if the system does not.
22991         Do not include "minmax.h"; it wasn't used.
22992         (snprintf): Don't assume size_t promotes to an unsigned type.
22993         Fix bug when generated string was too long for the buffer: the
22994         buffer's contents are supposed to be the initial prefix of the
22995         output.  Don't assume vasnprintf returns EOVERFLOW if the size
22996         exceeds INT_MAX; do the check ourselves.
22997
22998         Import the following changes from libc:
22999
23000         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
23001
23002         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
23003         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
23004         set wc to the byte which couldn't be converted.
23005         (re_string_reconstruct): Don't clear valid_raw_len before calling
23006         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
23007         tip_context using re_string_context_at.
23008
23009         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
23010
23011         * lib/posix/regex.h: g++ still cannot handled [restrict].
23012
23013         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
23014
23015         * lib/posix/regex.h: Remove special handling for VMS.
23016
23017 2006-08-10  Jim Meyering  <jim@meyering.net>
23018
23019         * modules/same-inode: New module.
23020         * modules/dev-ino: New module.
23021         * modules/cycle-check: Depend on these modules, rather than simply
23022         including their .h files.
23023         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
23024         required via m4/cycle-check.m4.
23025         * modules/same: Depend on new same-inode module, rather than
23026         including same-inode.h.
23027         * modules/chdir-safer: New file.
23028
23029         * modules/chown (Depends-on): Add stat-macros.
23030
23031 2006-08-10  Jim Meyering  <jim@meyering.net>
23032
23033         * m4/cycle-check.m4: New file.
23034         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
23035         * m4/dev-ino.m4, m4/same-inode.m4: New files.
23036
23037 2006-08-10  Eric Blake  <ebb9@byu.net>
23038
23039         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
23040         in from original proposal.
23041
23042 2006-08-10  Eric Blake  <ebb9@byu.net>
23043         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23044
23045         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
23046         namespace.
23047
23048 2006-08-10  Bruno Haible  <bruno@clisp.org>
23049
23050         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
23051         as well.
23052
23053 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23054
23055         Sync from coreutils.
23056
23057         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
23058
23059         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
23060         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
23061
23062 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23063
23064         * modules/restrict: Remove; no longer needed now that we assume
23065         Autoconf 2.59 or later.
23066         * MODULES.html.sh: Remove 'restrict'.
23067         * modules/argp (Depends-on): Remove 'restrict'.
23068         * modules/base64 (Depends-on): Likewise.
23069         * modules/gc (Depends-on): Likewise.
23070         * modules/getaddrinfo (Depends-on): Likewise.
23071         * modules/glob (Depends-on): Likewise.
23072         * modules/inet_ntop (Depends-on): Likewise.
23073         * modules/inet_pton (Depends-on): Likewise.
23074         * modules/memxor (Depends-on): Likewise.
23075         * modules/regex (Depends-on): Likewise.
23076         * modules/strtok_r (Depends-on): Likewise.
23077         * modules/time_r (Depends-on): Likewise.
23078
23079 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23080
23081         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
23082         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
23083         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23084         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
23085         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23086         * m4/memxor.m4 (gl_MEMXOR): Likewise.
23087         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
23088         gl_C_RESTRICT replaced by AC_C_RESTRICT.
23089
23090         Merge from coreutils.
23091         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
23092         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
23093         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23094         * m4/time_r.m4 (gl_TIME_R): Likewise.
23095
23096 2006-08-09  Karl Berry  <karl@gnu.org>
23097
23098         * config/srclist.txt: no more gettext-tools, per Bruno.
23099
23100 2006-08-08  Eric Blake  <ebb9@byu.net>
23101
23102         * modules/verror: New module.
23103         * MODULES.html.sh: Document it.
23104
23105 2006-08-08  Eric Blake  <ebb9@byu.net>
23106
23107         * lib/verror.h, lib/verror.c: New files.
23108
23109 2006-08-08  Eric Blake  <ebb9@byu.net>
23110
23111         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
23112         verror_at_line output complies with GNU Coding Standards even when
23113         file is NULL.
23114
23115 2006-08-07  Bruno Haible  <bruno@clisp.org>
23116
23117         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
23118         versions of AIX.
23119         Reported by Ralf Wildenhues.
23120
23121 2006-08-07  Bruno Haible  <bruno@clisp.org>
23122
23123         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
23124         in an AC_DEFUN. Needed so that the autoconf snippets can use
23125         AC_REQUIRE.
23126
23127 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23128
23129         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23130         Initialize pkgdata_DATA.
23131         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
23132         overriding it.
23133
23134 2006-08-06  Eric Blake  <ebb9@byu.net>
23135
23136         * lib/error.h: Fold in some upstream changes from glibc.
23137         * lib/error.c: Likewise.
23138
23139 2006-08-04  Bruno Haible  <bruno@clisp.org>
23140
23141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23142         Make the mostlyclean-local rule depend on mostlyclean-generic.
23143         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
23144
23145 2006-07-31  Bruno Haible  <bruno@clisp.org>
23146
23147         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
23148         <stdlib.h>, <string.h>.
23149
23150 2006-07-30  Bruno Haible  <bruno@clisp.org>
23151
23152         * modules/readlink (License): Change to LGPL.
23153
23154 2006-07-30  Bruno Haible  <bruno@clisp.org>
23155
23156         * modules/javaversion (Makefile.am): Distribute javaversion.java and
23157         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
23158         set PKGDATADIR to point to it.
23159
23160 2006-07-30  Bruno Haible  <bruno@clisp.org>
23161
23162         * modules/csharpexec (configure.ac): Comment out macro invocation.
23163         * modules/javaexec (configure.ac): Likewise.
23164         * modules/javacomp-script (configure.ac): Likewise.
23165
23166         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
23167
23168 2006-07-30  Bruno Haible  <bruno@clisp.org>
23169
23170         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
23171         linked-list.
23172
23173 2006-07-30  Bruno Haible  <bruno@clisp.org>
23174
23175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
23176
23177 2006-07-30  Bruno Haible  <bruno@clisp.org>
23178
23179         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23180         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
23181         get removed.
23182
23183 2006-07-29  Bruno Haible  <bruno@clisp.org>
23184
23185         Make it possible for gnulib-tool to work with locally modified or
23186         augmented gnulib repositories.
23187         * gnulib-tool (func_usage): Document --local-dir option.
23188         (local_gnulib_dir): New variable.
23189         Handle --local-dir option.
23190         (func_lookup_file): New function.
23191         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
23192         (func_get_description, func_get_filelist, func_get_description,
23193         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
23194         func_get_automake_snippet, func_get_include_directive,
23195         func_get_license, func_get_maintainer): Use func_lookup_file.
23196         (func_import, func_create_testdir): Use func_lookup_file.
23197
23198 2006-07-29  Bruno Haible  <bruno@clisp.org>
23199
23200         * modules/setenv (Depends-on): Add unistd.
23201
23202 2006-07-29  Bruno Haible  <bruno@clisp.org>
23203
23204         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
23205
23206 2006-07-29  Bruno Haible  <bruno@clisp.org>
23207
23208         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
23209
23210 2006-07-29  Bruno Haible  <bruno@clisp.org>
23211
23212         * gnulib-tool (import, update): If there is no Makefile.am, look at
23213         aclocal.m4, instead of bailing out.
23214
23215 2006-07-29  Bruno Haible  <bruno@clisp.org>
23216
23217         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
23218         Categorize the options by when they are useful.
23219
23220 2006-07-29  Bruno Haible  <bruno@clisp.org>
23221
23222         * gnulib-tool (func_usage): Document option --no-libtool.
23223         Handle option --no-libtool.
23224         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
23225         for changed semantics of $libtool variable.
23226         (func_import): Likewise. If libtool is not used, show this through
23227         an option --no-libtool.
23228         (func_create_testdir): Update.
23229
23230 2006-07-29  Bruno Haible  <bruno@clisp.org>
23231
23232         * gnulib-tool (func_import): Extend error message about missing
23233         --doc-base.
23234
23235 2006-07-29  Bruno Haible  <bruno@clisp.org>
23236
23237         * gnulib-tool (func_import): Don't create the $docbase directory if
23238         there is no file to store there.
23239
23240 2006-07-29  Bruno Haible  <bruno@clisp.org>
23241
23242         * gnulib-tool (autoconf_minversion): If a --dir option is given and
23243         relevant, look for configure.ac there, not in the current directory.
23244         Also use a simple search for AC_PREREQ, not "autoconf --trace".
23245
23246 2006-07-29  Bruno Haible  <bruno@clisp.org>
23247
23248         * gnulib-tool (SORT): New variable.
23249         (func_usage): Undocument --assume-autoconf option.
23250         Remove --assume-autoconf option handling.
23251         (autoconf_minversion): Determine from the contents of configure.ac.
23252         (func_import): Remove autoconf_minversion handling.
23253         Suggested by Eric Blake.
23254
23255 2006-07-29  Bruno Haible  <bruno@clisp.org>
23256
23257         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
23258
23259 2006-07-29  Bruno Haible  <bruno@clisp.org>
23260
23261         * config/srclist.txt (*setenv.[ch]): Remove rules.
23262
23263 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23264
23265         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
23266
23267 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23268
23269         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
23270         arpa/inet.h.
23271
23272 2006-07-28  Simon Josefsson  <jas@extundo.com>
23273
23274         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
23275         * modules/inet_pton (Depends-on): Likewise.
23276
23277 2006-07-28  Simon Josefsson  <jas@extundo.com>
23278
23279         * m4/netinet_in_h.m4: New file.
23280
23281 2006-07-28  Simon Josefsson  <jas@extundo.com>
23282
23283         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23284         #include's.
23285
23286 2006-07-28  Simon Josefsson  <jas@extundo.com>
23287
23288         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23289         #include's.
23290
23291 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23292
23293         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23294         setgid on directories only if they set these bits.
23295         * lib/modechange.h: Remove obsolete comment about masks.
23296
23297 2006-07-28  Eric Blake  <ebb9@byu.net>
23298
23299         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23300         macro expansion.
23301
23302 2006-07-28  Bruno Haible  <bruno@clisp.org>
23303
23304         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23305
23306 2006-07-28  Bruno Haible  <bruno@clisp.org>
23307
23308         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23309
23310 2006-07-28  Bruno Haible  <bruno@clisp.org>
23311
23312         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23313         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23314         Define fallbacks.
23315         Avoids link error on FreeBSD 4.x.
23316         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23317
23318         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23319         encoding.
23320         * lib/mbswidth.c (iswcntrl): Likewise.
23321
23322 2006-07-27  Bruno Haible  <bruno@clisp.org>
23323
23324         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23325         test.
23326
23327 2006-07-27  Bruno Haible  <bruno@clisp.org>
23328
23329         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23330         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23331         defined.
23332
23333 2006-07-26  Eric Blake  <ebb9@byu.net>
23334
23335         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23336
23337 2006-07-26  Eric Blake  <ebb9@byu.net>
23338
23339         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23340         like mingw that lack mkstemp.
23341         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23342         avoid compilation warning on mingw.
23343
23344 2006-07-26  Bruno Haible  <bruno@clisp.org>
23345
23346         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23347         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23348         INT_FAST*_MIN, INTPTR_MIN.
23349
23350 2006-07-25  Bruno Haible  <bruno@clisp.org>
23351
23352         * modules/version-etc (Depends-on): Add stdarg.
23353
23354 2006-07-25  Bruno Haible  <bruno@clisp.org>
23355
23356         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23357         complex commands.
23358
23359 2006-07-25  Bruno Haible  <bruno@clisp.org>
23360
23361         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23362         defined in <stdarg.h> or config.h.
23363
23364 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23365
23366         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23367         (gl_STDIO_SAFER): Remove.
23368
23369 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23370
23371         * MODULES.html.sh (File stream based Input/Output):
23372         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23373         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23374         * modules/fopen-safer, modules/tmpfile-safer: New files.
23375         * modules/stdio-safer: Remove.
23376
23377 2006-07-24  Bruno Haible  <bruno@clisp.org>
23378
23379         * modules/tmpdir: New file.
23380         * MODULES.html.sh (File system functions): Add it.
23381
23382 2006-07-24  Bruno Haible  <bruno@clisp.org>
23383
23384         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
23385         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
23386
23387 2006-07-24  Bruno Haible  <bruno@clisp.org>
23388
23389         * modules/clean-temp: New file.
23390
23391 2006-07-24  Bruno Haible  <bruno@clisp.org>
23392
23393         * m4/tmpdir.m4: New file, from GNU gettext.
23394
23395 2006-07-24  Bruno Haible  <bruno@clisp.org>
23396
23397         * lib/tmpdir.h: New file, from GNU gettext.
23398         * lib/tmpdir.c: New file, from GNU gettext.
23399
23400 2006-07-24  Bruno Haible  <bruno@clisp.org>
23401
23402         * lib/clean-temp.h: New file, from GNU gettext.
23403         * lib/clean-temp.c: New file, from GNU gettext.
23404
23405 2006-07-23  Eric Blake  <ebb9@byu.net>
23406
23407         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23408         (Depends-on): Add binary-io.
23409
23410 2006-07-23  Eric Blake  <ebb9@byu.net>
23411
23412         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23413
23414 2006-07-23  Eric Blake  <ebb9@byu.net>
23415
23416         * lib/tmpfile-safer.c: New file.
23417         * lib/stdio-safer.h (fopen_safer): Add prototype.
23418         * lib/stdio--.h (tmpfile): Make safer.
23419
23420 2006-07-23  Bruno Haible  <bruno@clisp.org>
23421
23422         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
23423         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
23424         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
23425         gl_linked_remove_at): Use it.
23426
23427 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23428         and Simon Josefsson <jas@extundo.com>
23429
23430         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
23431
23432         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
23433
23434 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23435
23436         * modules/close-stream: New file.
23437         * modules/closeout (Description): Make it clear that it exits
23438         with a diagnostic on error.
23439         (Depends-on): Add close-stream.  Remove fpending, stdbool.
23440         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
23441
23442 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23443
23444         * m4/close-stream.m4: New file.
23445
23446 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23447
23448         * lib/close-stream.c, lib/close-stream.h: New files.
23449
23450 2006-07-22  Bruno Haible  <bruno@clisp.org>
23451
23452         Merge from GNU gettext 0.15.
23453
23454         2006-05-01  Bruno Haible  <bruno@clisp.org>
23455
23456                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
23457
23458         2006-07-22  Bruno Haible  <bruno@clisp.org>
23459
23460                 * modules/javaversion: New file.
23461                 * MODULES.html.sh (Java): Add javaversion.
23462
23463         2006-03-12  Bruno Haible  <bruno@clisp.org>
23464
23465                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
23466
23467         2005-12-04  Bruno Haible  <bruno@clisp.org>
23468
23469                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
23470                 (untested).
23471
23472         2006-06-21  Bruno Haible  <bruno@clisp.org>
23473
23474                 Avoid warnings from recent versions of mcs.
23475                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
23476                 -o, -L, -r any more. Use options documented since mcs-1.0
23477                 instead. Similarly for -g.
23478
23479         2005-12-04  Bruno Haible  <bruno@clisp.org>
23480
23481                 * build-aux/csharpcomp.sh.in: Suffix for resources is
23482                 .resources, not .resource.
23483
23484         2005-07-09  Bruno Haible  <bruno@clisp.org>
23485
23486                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
23487                 add a .dll suffix.
23488                 Reported by Mark Junker <mjscod@gmx.de>.
23489
23490         2006-07-22  Bruno Haible  <bruno@clisp.org>
23491
23492                 * modules/gettext: Upgrade to gettext-0.15.
23493                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
23494                 m4/visibility.m4.
23495                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
23496
23497 2006-07-22  Bruno Haible  <bruno@clisp.org>
23498
23499         Merge from GNU gettext 0.15.
23500
23501         2006-03-25  Bruno Haible  <bruno@clisp.org>
23502
23503                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
23504
23505         2006-07-21  Bruno Haible  <bruno@clisp.org>
23506
23507                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
23508                 "1.1".
23509
23510         2006-05-09  Bruno Haible  <bruno@clisp.org>
23511
23512                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
23513                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
23514                 for the conftestver execution.
23515
23516         2006-05-01  Bruno Haible  <bruno@clisp.org>
23517
23518                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
23519                 optional target-version argument. Verify that the compiler
23520                 groks source of the specified source-version, or add -source
23521                 option as necessary. Verify that the compiler produces
23522                 bytecode in the specified target-version, or add -target and
23523                 -source options as necessary. Make the result of the test
23524                 available as variable CONF_JAVAC. Also log error output in
23525                 config.log.
23526
23527         2006-03-11  Bruno Haible  <bruno@clisp.org>
23528
23529                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
23530
23531         2006-05-09  Bruno Haible  <bruno@clisp.org>
23532
23533                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
23534                 CLASSPATH_SEPARATOR to a semicolon.
23535
23536         2006-03-12  Bruno Haible  <bruno@clisp.org>
23537
23538                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
23539                 available as variable CONF_JAVA, for subsequent autoconf
23540                 tests. Also log error output in config.log.
23541
23542         2006-07-19  Bruno Haible  <bruno@clisp.org>
23543
23544                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
23545                 that getline works on glibc2 systems. Needed to avoid trouble
23546                 in relocatable.c.
23547                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
23548
23549         2005-12-04  Bruno Haible  <bruno@clisp.org>
23550
23551                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
23552                 launcher (untested).
23553
23554         2005-12-04  Bruno Haible  <bruno@clisp.org>
23555
23556                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
23557
23558         2006-07-22  Bruno Haible  <bruno@clisp.org>
23559
23560                 * gettext.m4: Update from GNU gettext-0.15.
23561                 * nls.m4: Likewise.
23562                 * po.m4: Likewise.
23563                 * inttypes-pri.m4: Likewise.
23564                 * inttypes-h.m4: Renamed from inttypes.m4.
23565                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
23566
23567 2006-07-22  Bruno Haible  <bruno@clisp.org>
23568
23569         Merge from GNU gettext 0.15.
23570
23571         2005-07-05  Bruno Haible  <bruno@clisp.org>
23572
23573                 * printf-args.c (printf_fetchargs): Work around broken
23574                 definition of wint_t on mingw.
23575
23576         2005-02-12  Bruno Haible  <bruno@clisp.org>
23577
23578                 * xallocsa.h: Add extern "C" for C++.
23579
23580         2006-05-17  Bruno Haible  <bruno@clisp.org>
23581
23582                 Cygwin portability.
23583                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
23584
23585         2006-04-30  Bruno Haible  <bruno@clisp.org>
23586
23587                 * progreloc.c: Include <mach-o/dyld.h> if available.
23588                 (find_executable): Use _NSGetExecutablePath when possible.
23589
23590         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23591
23592                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
23593                 function.
23594
23595         2005-12-29  Bruno Haible  <bruno@clisp.org>
23596
23597                 * progreloc.c (set_program_name_and_installdir): Fix
23598                 compilation error.
23599
23600         2005-12-04  Bruno Haible  <bruno@clisp.org>
23601
23602                 Cygwin portability.
23603                 * progreloc.c: Include <windows.h> also on Cygwin.
23604                 (find_executable): Add support for Cygwin.
23605                 (set_program_name_and_installdir): Handle also platforms with
23606                 nonempty EXEEXT.
23607
23608         2006-07-11  Bruno Haible  <bruno@clisp.org>
23609
23610                 * javacomp.c: Fix a comment.
23611                 Reported by Jim Meyering.
23612
23613         2006-04-30  Bruno Haible  <bruno@clisp.org>
23614
23615                 * javacomp.h (compile_java_class): Add source_version,
23616                 target_version arguments.
23617                 * javacomp.c: Rewritten to choose only a compiler that
23618                 respects the specified source_version and target_version.
23619
23620         2006-06-27  Bruno Haible  <bruno@clisp.org>
23621
23622                 Assume correct S_ISDIR macro.
23623                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
23624
23625         2006-07-22  Bruno Haible  <bruno@clisp.org>
23626
23627                 * javaversion.h: New file, from GNU gettext.
23628                 * javaversion.c: New file, from GNU gettext.
23629                 * javaversion.java: New file, from GNU gettext.
23630                 * javaversion.class: New file, from GNU gettext.
23631
23632         2006-05-17  Bruno Haible  <bruno@clisp.org>
23633
23634                 Cygwin portability.
23635                 * javaexec.c (execute_java_class): Test for jview program
23636                 also on Cygwin.
23637
23638         2006-04-09  Bruno Haible  <bruno@clisp.org>
23639
23640                 * fatal-signal.c: Don't include string.h.
23641                 (at_fatal_signal): Use a copying loop instead of memcpy.
23642
23643         2005-12-04  Bruno Haible  <bruno@clisp.org>
23644
23645                 * csharpexec.c: Add support for 'clix' launcher (untested).
23646                 (execute_csharp_using_sscli): New function.
23647                 (execute_csharp_program): Call it.
23648
23649         2006-06-21  Bruno Haible  <bruno@clisp.org>
23650
23651                 Avoid warnings from recent versions of mcs.
23652                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
23653                 -o, -L, -r any more. Use options documented since mcs-1.0
23654                 instead. Similarly for -g.
23655
23656         2005-07-09  Bruno Haible  <bruno@clisp.org>
23657
23658                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
23659                 add a .dll suffix.
23660                 Reported by Mark Junker <mjscod@gmx.de>.
23661
23662         2006-06-17  Bruno Haible  <bruno@clisp.org>
23663
23664                 * config.charset: Update for NetBSD 3.0.
23665
23666         2006-05-17  Bruno Haible  <bruno@clisp.org>
23667
23668                 Cygwin portability.
23669                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
23670
23671         2006-05-16  Bruno Haible  <bruno@clisp.org>
23672
23673                 * localcharset.c [CYGWIN]: Include <windows.h>.
23674                 (get_charset_aliases): For Cygwin, return the same CPxxx
23675                 aliases list as under WIN32.
23676                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
23677                 the environment variables. Fall back to GetACP().
23678
23679         2006-04-05  Bruno Haible  <bruno@clisp.org>
23680
23681                 * config.charset: Update Juan Manuel Guerrero's address.
23682
23683         2005-02-12  Bruno Haible  <bruno@clisp.org>
23684
23685                 * allocsa.h: Add extern "C" for C++.
23686
23687         2005-02-10  Bruno Haible  <bruno@clisp.org>
23688
23689                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23690                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23691
23692         2006-07-22  Bruno Haible  <bruno@clisp.org>
23693
23694                 * gettext.h: Update to GNU gettext-0.15.
23695
23696 2006-07-22  Bruno Haible  <bruno@clisp.org>
23697
23698         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23699         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23700         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23701
23702 2006-07-21  Eric Blake  <ebb9@byu.net>
23703
23704         * modules/stdlib-safer: New file.
23705         * MODULES.html.sh (File stream based Input/Output): Add
23706         stdlib-safer.
23707
23708 2006-07-21  Eric Blake  <ebb9@byu.net>
23709
23710         * lib/stdlib-safer.h: New file from coreutils, required by
23711         stdlib--.h.
23712
23713 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
23714
23715         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
23716
23717 2006-07-20  Bruno Haible  <bruno@clisp.org>
23718
23719         * gnulib-tool: Recognize new option --assume-autoconf.
23720         (autoconf_minversion): New variable.
23721         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
23722
23723 2006-07-20  Bruno Haible  <bruno@clisp.org>
23724
23725         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
23726
23727 2006-07-19  Derek R. Price  <derek@ximbiot.com>
23728
23729         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
23730         Reindent and repaginate.
23731
23732 2006-07-19  Derek Price  <derek@ximbiot.com>
23733
23734         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
23735         Correct grammar.
23736
23737 2006-07-17  Bruno Haible  <bruno@clisp.org>
23738
23739         * modules/list: New file.
23740         * modules/array-list: New file.
23741         * modules/carray-list, modules/carray-list-tests: New files.
23742         * modules/linked-list, modules/linked-list-tests: New files.
23743         * modules/avltree-list, modules/avltree-list-tests: New files.
23744         * modules/rbtree-list, modules/rbtree-list-tests: New files.
23745         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
23746         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
23747         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
23748         * modules/oset: New file.
23749         * modules/array-oset: New file.
23750         * modules/avltree-oset, modules/avltree-oset-tests: New files.
23751         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
23752         * tests/test-carray_list.c: New file.
23753         * tests/test-linked_list.c: New file.
23754         * tests/test-avltree_list.c: New file.
23755         * tests/test-rbtree_list.c: New file.
23756         * tests/test-linkedhash_list.c: New file.
23757         * tests/test-avltreehash_list.c: New file.
23758         * tests/test-rbtreehash_list.c: New file.
23759         * tests/test-avltree_oset.c: New file.
23760         * tests/test-rbtree_oset.c: New file.
23761         * MODULES.html.sh (Container data structures): New section.
23762
23763 2006-07-17  Bruno Haible  <bruno@clisp.org>
23764
23765         * m4/gl_list.m4: New file.
23766
23767 2006-07-17  Bruno Haible  <bruno@clisp.org>
23768
23769         * lib/gl_list.h: New file.
23770         * lib/gl_list.c: New file.
23771         * lib/gl_array_list.h: New file.
23772         * lib/gl_array_list.c: New file.
23773         * lib/gl_carray_list.h: New file.
23774         * lib/gl_carray_list.c: New file.
23775         * lib/gl_linked_list.h: New file.
23776         * lib/gl_linked_list.c: New file.
23777         * lib/gl_anylinked_list1.h: New file.
23778         * lib/gl_anylinked_list2.h: New file.
23779         * lib/gl_avltree_list.h: New file.
23780         * lib/gl_avltree_list.c: New file.
23781         * lib/gl_anyavltree_list1.h: New file.
23782         * lib/gl_anyavltree_list2.h: New file.
23783         * lib/gl_rbtree_list.h: New file.
23784         * lib/gl_rbtree_list.c: New file.
23785         * lib/gl_anyrbtree_list1.h: New file.
23786         * lib/gl_anyrbtree_list2.h: New file.
23787         * lib/gl_anytree_list1.h: New file.
23788         * lib/gl_anytree_list2.h: New file.
23789         * lib/gl_linkedhash_list.h: New file.
23790         * lib/gl_linkedhash_list.c: New file.
23791         * lib/gl_anyhash_list1.h: New file.
23792         * lib/gl_anyhash_list2.h: New file.
23793         * lib/gl_avltreehash_list.h: New file.
23794         * lib/gl_avltreehash_list.c: New file.
23795         * lib/gl_rbtreehash_list.h: New file.
23796         * lib/gl_rbtreehash_list.c: New file.
23797         * lib/gl_anytreehash_list1.h: New file.
23798         * lib/gl_anytreehash_list2.h: New file.
23799
23800         * lib/gl_oset.h: New file.
23801         * lib/gl_oset.c: New file.
23802         * lib/gl_array_oset.h: New file.
23803         * lib/gl_array_oset.c: New file.
23804         * lib/gl_avltree_oset.h: New file.
23805         * lib/gl_avltree_oset.c: New file.
23806         * lib/gl_rbtree_oset.h: New file.
23807         * lib/gl_rbtree_oset.c: New file.
23808         * lib/gl_anytree_oset.h: New file.
23809
23810 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23811
23812         * m4/mkancesdirs.m4: New file.
23813         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
23814         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
23815         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
23816         it.
23817
23818 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23819
23820         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
23821         * lib/mkancesdirs.h: New files.
23822         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
23823         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
23824         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
23825         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
23826         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
23827         callers changed.  Revamp internals significantly, by not
23828         attempting to create directories that are temporarily more
23829         permissive than the final results.  Do not attempt to use
23830         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
23831         This removes some race conditions, fixes some bugs, and simplifies
23832         things.  Use new dirchownmod function to do owner and mode changes.
23833         * lib/mkdir-p.h: Likewise.
23834         * lib/modechange.c (octal_to_mode): New function.
23835         (struct mode_change): New member mentioned.
23836         (make_node_op_equals): New arg mentioned.  All callers changed.
23837         (mode_compile): Keep track of which mode bits the user has explicitly
23838         mentioned.
23839         (mode_adjust): New arg DIR, so that we implement the X op correctly.
23840         New arg PMODE_BITS, to keep track of which mode bits the user
23841         mentioned; it treats S_ISUID and S_ISGID speciall.
23842         All callers changed.
23843         * lib/modechange.h: Likewise.
23844
23845 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23846
23847         * MODULES.html.sh: Add mkancestors.
23848         * modules/mkancesdirs: New module.
23849         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
23850         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
23851         The chdir-safer and afs files are now orphans; I'll remove them
23852         unless someone speaks up.
23853         Add lib/dirchownmod.c, lib/dirchownmod.h.
23854         (Depends-on): Remove alloca, chown, save-cwd, dirname.
23855         Add lchown, mkancesdirs.
23856         (Maintainer): Add self.
23857
23858 2006-07-15  Karl Berry  <karl@gnu.org>
23859
23860         * gnulib-tool: help message wording/arrangement.
23861
23862 2006-07-14  Simon Josefsson  <jas@extundo.com>
23863
23864         * doc/gnulib.texi (Libtool and Windows): New section.
23865
23866 2006-07-12  Simon Josefsson  <jas@extundo.com>
23867
23868         * modules/gendocs (License): Fix license, approved by Karl.
23869
23870 2006-07-12  Eric Blake  <ebb9@byu.net>
23871
23872         * MODULES.html.sh: Add gendocs.
23873
23874 2006-07-11  Eric Blake  <ebb9@byu.net>
23875
23876         * modules/fdl: New module, to install doc/fdl.texi.
23877         * MODULES.html.sh: Add new section for documentation modules.
23878         * gnulib-tool: Avoid space-tab.
23879         (--doc-base): New option, to manage files from doc.
23880
23881 2006-07-11  Eric Blake  <ebb9@byu.net>
23882
23883         * m4/absolute-header.m4: Fix comments to match recent change.
23884
23885 2006-07-11  Eric Blake  <ebb9@byu.net>
23886
23887         * gnulib-tool: List --doc-base before --tests-base.
23888
23889 2006-07-11  Derek R. Price  <derek@ximbiot.com>
23890
23891         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
23892
23893 2006-07-11  Bruno Haible  <bruno@clisp.org>
23894
23895         * README: Mention where to put documentation.
23896
23897 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23898
23899         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
23900
23901 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23902
23903         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
23904         to stdint.m4.
23905
23906 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23907
23908         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
23909         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
23910         "no/such/file/stdint.h" when there is no such file, so that
23911         the resulting C code can be parsed by dodgy compilers.
23912         Problems reported by Bob Proulx.
23913
23914 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23915
23916         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
23917         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23918         macros into the GNU _D_EXACT_NAMLEN.
23919         * lib/savedir.c:  Likewise.
23920         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
23921
23922 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23923         and Paul Eggert  <eggert@cs.ucla.edu>
23924
23925         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
23926         * m4/savedir.m4:
23927         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23928         macros into the GNU _D_EXACT_NAMLEN.
23929
23930 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23931
23932         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
23933         around the absolute name, to work around a problem with the HP-UX
23934         11.23 native C compiler, reported by Bob Proulx.
23935
23936 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23937
23938         * doc/maintain.texi, make-stds.texi: Sync from
23939         <http://savannah.gnu.org/projects/gnustandards>.
23940
23941 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23942
23943         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
23944
23945 2006-07-09  Jim Meyering  <jim@meyering.net>
23946
23947         * m4/glob.m4: Remove a doubled word in a comment.
23948
23949 2006-07-09  Jim Meyering  <jim@meyering.net>
23950
23951         * lib/argp-pv.c: Remove a doubled word in a comment.
23952         * lib/check-version.c (check_version): Likewise.
23953         * lib/javacomp.c (compile_java_class): Likewise.
23954
23955 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23956
23957         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
23958         for the benefit of people using Autoconf 2.60.  If you want to
23959         support older Autoconf versions you can copy m4/onceonly_2_57.m4
23960         (or m4/onceonly.m4, if pre-2.57) manually.
23961
23962 2006-07-08  Jim Meyering  <jim@meyering.net>
23963
23964         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
23965         comment.
23966         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
23967         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
23968         comment.
23969
23970 2006-07-08  Jim Meyering  <jim@meyering.net>
23971
23972         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
23973
23974 2006-07-07  Simon Josefsson  <jas@extundo.com>
23975
23976         * tests/test-crc.c: Change expected crc value, the test vector
23977         were probably computed using the old broken crc.c?
23978
23979 2006-07-06  Simon Josefsson  <jas@extundo.com>
23980
23981         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
23982         now the canonical place for the M4 file).
23983
23984         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
23985         from the sys_socket dependency now.
23986
23987         * modules/inet_pton (Files): Ditto.
23988
23989         * modules/inet_ntop (Files): Ditto.
23990
23991 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23992
23993         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
23994         not gl_PREREQ_GETUSERSHELL.
23995
23996 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23997
23998         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
23999         with only one argument, for Autoconf 2.60.
24000         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
24001         expand to nothing, so add a shell command to avoid syntax error.
24002         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24003
24004 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24005
24006         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
24007
24008 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24009
24010         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
24011         no longer needed.  Check for isblank decl.
24012         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
24013         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
24014         of existence.
24015
24016 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24017
24018         * lib/getloadavg.c: Use __VMS, not VMS.
24019         * lib/getopt.c: Likewise.
24020         * lib/getpagesize.h: Likewise.
24021         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
24022         and probably does not work.
24023
24024 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24025
24026         * lib/.cppi-disable: Add wcwidth.
24027         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
24028         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
24029         (ISGRAPH): Remove.  All uses changed to isgraph.
24030         (FOLD) [!defined _LIBC]: Remove special case.
24031         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
24032         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
24033         HAVE_ISBLANK.
24034         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
24035         case.
24036
24037 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24038
24039         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
24040         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
24041         brackets.  Other minor changes to suppress some compiler
24042         warnings.
24043
24044 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24045         and Paul Eggert  <eggert@cs.ucla.edu>
24046
24047         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
24048         of invoking obsolescent AC_HEADER_DIRENT macro.
24049         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24050         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
24051         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24052         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24053         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
24054         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24055         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
24056         * m4/readdir.m4: Remove; no longer needed.
24057
24058 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24059         and Paul Eggert  <eggert@cs.ucla.edu>
24060
24061         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
24062         Don't worry about this obsolete case any more.
24063         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
24064         directories.
24065         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
24066         worry about this obsolete case any more.
24067         * lib/fts.c: Likewise.
24068         * lib/getcwd.c: Likewise.
24069         * lib/glob.h: Likewise.
24070         * lib/savedir.c: Likewise.
24071
24072 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24073
24074         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
24075         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
24076         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
24077         needed.
24078         All uses removed.
24079         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24080         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24081         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
24082         needed.
24083         * m4/getdate.m4 (gl_GETDATE): Likewise.
24084         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24085         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24086         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24087         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24088         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24089         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24090         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
24091         needed.
24092
24093 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24094
24095         * lib/memcasecmp.c: Include <limits.h>.
24096         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
24097         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
24098         Don't assume isdigit succeeds only on '0' through '9'.
24099
24100 2006-07-05  Eric Blake  <ebb9@byu.net>
24101
24102         * modules/getaddrinfo (Depends-on): Add snprintf.
24103
24104 2006-07-05  Eric Blake  <ebb9@byu.net>
24105
24106         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
24107         to avoid 'header present but could not be compiled' on cygwin.
24108
24109 2006-07-05  Eric Blake  <ebb9@byu.net>
24110
24111         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
24112         missing from netdb.h.
24113         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
24114
24115 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24116
24117         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
24118         no longer needed.
24119         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
24120         * m4/getdate.m4 (gl_GETDATE): Likewise.
24121         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24122         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24123         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24124         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24125         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24126
24127 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24128
24129         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
24130         All uses of is_space replaced by isspace.
24131         * lib/exit.h: Don't talk about STDC_HEADERS.
24132         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
24133         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
24134         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
24135         replaced by isprint etc.
24136         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
24137         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24138         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
24139         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
24140         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
24141         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24142
24143 2006-07-05  Bruno Haible  <bruno@clisp.org>
24144
24145         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
24146         the function exists, before testing against AIX.
24147         Reported by Martin Lambers <marlam@marlam.de>.
24148
24149 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24150
24151         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
24152         From Mark D. Baushke.
24153
24154 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24155
24156         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
24157         to the absolute name, not just one, to bypass Sun C 5.8's
24158         "warning: #include of /usr/include/... may be non-portable".
24159
24160 2006-07-04  Eric Blake  <ebb9@byu.net>
24161
24162         * modules/dirname-tests: New test module.
24163         * tests/test-dirname.c: New file, replacing dirname.c
24164         TEST_DIRNAME section that was recently deleted.
24165
24166 2006-07-04  Bruno Haible  <bruno@clisp.org>
24167
24168         Assume ANSI C header files and <ctype.h> functions.
24169         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
24170         (mbsnwidth): Use isprint, iscntrl instead.
24171
24172 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24173
24174         Merge from coreutils.
24175         * MODULES.html.sh: Add xstrtold.
24176         * modules/xstrtold: New file.
24177         * modules/cycle-check (Files): Add lib/same-inode.h.
24178         * modules/dirname (Files): Add m4/double-slash-root.m4.
24179         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
24180         * modules/mkdir-p (Files): Add lib/same-inode.h.
24181         * modules/same (Files): Add lib/same-inode.h.
24182
24183 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24184
24185         * m4/absolute-header.m4: Renamed from full-header-path.m4.
24186         This is to keep the terminology clean; POSIX talks about
24187         "absolute pathnames", not "full pathnames", but the GNU
24188         Coding Standards say to use "path" for something else;
24189         so use "absolute" to keep both sides happy.
24190         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
24191         Set gl_absolute_header, not gl_full_header_path.
24192         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
24193         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
24194         All uses changed.
24195
24196         Merge from coreutils.
24197
24198         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24199
24200         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
24201         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
24202         want to require the building of c-strtod.o.
24203         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
24204         needs -lm directly.
24205         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
24206
24207         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24208
24209         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
24210         --as-needed option if available.  Problem reported by Albert Chin in
24211         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
24212         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
24213         cc merely issues a bunch of annoying warnings for --as-needed
24214         (this problem was reported by Bob Proulx).  Also, try linking with
24215         -lm to detect a bug in binutils 2.16 (this problem was reported
24216         by Ralf Wildenhues).
24217
24218         2006-06-18  Jim Meyering  <jim@meyering.net>
24219
24220         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
24221         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
24222         macro.
24223         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
24224         also check for glibc-2.4's abort-inducing bug.
24225
24226         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
24227         Low-probability clean-up should be to use rmdir to get rid of
24228         the just-created directory, not unlink.
24229
24230         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
24231         configure fail, and request a bug report to inform us about it.
24232         Add a comment that, barring reports to the contrary, in 2007 we'll
24233         assume ftruncate is universally available.
24234
24235         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24236
24237         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
24238
24239         2006-03-12  Jim Meyering  <jim@meyering.net>
24240
24241         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
24242         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
24243         * m4/same.m4 (gl_SAME): Likewise.
24244         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
24245
24246         2006-03-11  Eric Blake  <ebb9@byu.net>
24247
24248         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
24249         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
24250         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
24251         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
24252
24253 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24254
24255         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
24256         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
24257         reported by Mark D. Baushke, one in
24258         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
24259
24260         Merge from coreutils.
24261
24262         * lib/.cppi-disable: Add stdint_.h.
24263         * lib/.cvsignore: Add stdint.h.
24264
24265         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24266
24267         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
24268         both double and long double versions.
24269         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
24270         * lib/xstrtold.c: New file.
24271         * lib/xstrtod.h (xstrtold): New decl.
24272
24273         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24274
24275         * lib/filemode.c (setst): Remove.
24276         (strmode): Rewrite to avoid setst.  This makes the code shorter,
24277         (arguably) clearer, and the generated code is a bit smaller on my
24278         Debian GNU/Linux stable x86 host.
24279
24280         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24281
24282         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24283         Assume that filemode.h includes sys/types.h and sys/stat.h.
24284         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24285         (ftypelet): Reorder to put common cases first, for efficiency.
24286         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24287         to do 'M'.
24288         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24289         of 10, for compatibility with FreeBSD.  All callers changed.
24290         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24291         types that can't be deduced solely from st_mode.  First arg is now a
24292         const pointer.
24293         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24294         (strmode): Renamed from mode_string.
24295         (filemodestring): New decl.
24296         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24297         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24298         needed.
24299         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24300
24301         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24302
24303         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24304         fsusage.h now does that.  Include fsusage.h first, to test interface.
24305         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24306         at most one method (the old code could have generated decls that
24307         didn't conform to C89, not that this was ever exercised).
24308         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24309
24310         2006-03-19  Jim Meyering  <jim@meyering.net>
24311
24312         Work even in a chroot where d_ino values for entries in "/"
24313         don't match the stat.st_ino values for the same names.
24314         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24315         number, iterate through all entries again, using lstat instead.
24316         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24317         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24318
24319         * lib/getcwd.c (__getcwd): Clarify a comment.
24320         Use memcpy in place of a call to strcpy.
24321
24322         2006-03-12  Jim Meyering  <jim@meyering.net>
24323
24324         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24325         matches that of the current directory (which we're about to chdir ".."
24326         out of), then save the dev-ino of the parent, instead.
24327
24328         * lib/same-inode.h (SAME_INODE): New file/macro.
24329         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24330         Include "same-inode.h", instead.
24331         * lib/same.c: Likewise.
24332         * lib/cycle-check.h: Include "same-inode.h".
24333         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24334         * lib/cycle-check.c (SAME_INODE): Remove definition.
24335         * lib/root-dev-ino.h: Include "same-inode.h".
24336
24337         2006-03-11  Eric Blake  <ebb9@byu.net>
24338
24339         * lib/same.c (same_name): s/base_name/last_component/
24340         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24341         * lib/filenamecat.c (file_name_concat): Likewise.
24342
24343         2006-03-11  Eric Blake  <ebb9@byu.net>,
24344                     Paul Eggert  <eggert@cs.ucla.edu>
24345
24346         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24347         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24348         drive prefix.
24349         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24350         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24351         (last_component): New method.
24352         * lib/dirname.c (dir_len): Determine when drive letters need a
24353         subsequent slash.  Preserve // when it is special.
24354         (dir_name): Don't append dot when drive letter is absolute.
24355         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24356         * lib/basename.c (base_name): New semantics - malloc the result.
24357         Preserve // when it is special.  Preserve relative files that look
24358         like drive letters.
24359         (base_len): Preserve // when it is special.
24360         (last_component): New method, similar to old base_name semantics.
24361         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24362         base_name.  Strip redundant slashes from ///.
24363
24364 2006-07-03  Jim Meyering  <jim@meyering.net>
24365
24366         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24367         macro is used before the first cycle_check call.
24368
24369 2006-07-03  Eric Blake  <ebb9@byu.net>
24370
24371         * modules/dirname (Depends-on): Add xstrndup.
24372
24373 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24374
24375         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24376         test cases, so that config.log is a bit easier to follow.
24377
24378 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24379
24380         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
24381         both are 64 bits, since this seems to be the tradition, and this
24382         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
24383         we ever run into a host that prefers long long to long in this
24384         case, we'll need another configure-time test.  Problem reported by
24385         Jim Meyering.
24386
24387 2006-07-02  Eric Blake  <ebb9@byu.net>
24388
24389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
24390
24391 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24392
24393         * modules/inttypes (Depends-on): No longer depends on stdint.
24394         * modules/stdint (Description): Say more about assumptions.
24395         Say that the fast types might differ.  Say macros are used.
24396         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
24397         (Makefile.am): Revise list of substituted symbols to match
24398         new stdint.m4.
24399         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24400         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24401         * tests/test-stdint.c (verify_same_types)
24402         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24403         the code conforms to C99/C89.
24404         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24405         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24406
24407 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24408
24409         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24410         but fix a bug, by requiring at least 64 bits.
24411         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24412         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24413         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24414         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24415
24416         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
24417         changes.  Make 2.59 a prerequisite.  Check and substitute for
24418         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
24419         inttypes.h.  Do not use special include files; just use the
24420         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
24421         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
24422         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
24423         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
24424         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
24425         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
24426         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
24427         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
24428         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
24429         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
24430         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
24431         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
24432         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
24433         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
24434         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
24435         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
24436         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
24437         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
24438         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
24439         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
24440         WINT_MAX.  Check for C99 conformance more strictly, by detecting
24441         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
24442         not check for things that C99 does not require, e.g., int8_t.  If
24443         a test isn't needed unless <stdint.h> isn't working, and is
24444         unlikely to be needed for any other reason, then don't do it
24445         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
24446         size_t, since we assume C89 freestanding at least.  Do not check
24447         for sig_atomic_t, wchar_t, or wint_t, since the code now does
24448         the right thing even if the types are not defined.  Instead use:
24449         (gl_STDINT_TYPE_PROPERTIES): New macro.
24450         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
24451         testing whether <sys/types.h> clashes, as Autoconf does this for
24452         us now.  All uses removed.
24453         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
24454         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
24455         (gl_CHECK_TYPE_SAME):
24456         Remove; no longer needed.
24457         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
24458         exists, since we'll return 0 anyway in that case.
24459         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
24460
24461 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24462
24463         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
24464         possible collision with system files.
24465         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
24466         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
24467         WCHAR_MIN and WCHAR_MAX in this case.
24468         (<stddef.h>): Do not include; no longer needed.
24469         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
24470         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
24471         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
24472         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
24473         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
24474         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
24475         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
24476         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
24477         !defined(__c99))]: Include in this case too, since it's harmless
24478         now.
24479         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
24480         dangerous to do so.
24481         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
24482         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
24483         (_STDINT_MIN, _STDINT_MAX): New macros.
24484         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
24485         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
24486         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
24487         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
24488         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
24489         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
24490         macros, not typedefs; this simplifies things quite a bit.
24491         Use long int for all types narrower than int64_t.
24492         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
24493         Define in terms of long long int or int64_t or long int,
24494         not int64_t or int32_t.  This saves some compile-time testing.
24495         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
24496         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
24497         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
24498         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
24499         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
24500         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
24501         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
24502         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
24503         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
24504         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
24505         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24506         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24507         undef any previous version and define our own version, for
24508         simplicity and consistency with the new macros for types.
24509         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24510         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24511         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
24512         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
24513         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
24514         @WINT_T_SUFFIX@ to keep things simple here.
24515         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
24516         Simplify by assuming typical 8/16/32/64 host, since we're
24517         already doing that elsewhere anyway.
24518         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
24519         and assume long long int is 64 bits if available.  This
24520         speeds up 'configure'.
24521
24522 2006-07-01  Eric Blake  <ebb9@byu.net>
24523
24524         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
24525         Reported by Andreas Buening.
24526
24527 2006-07-01  Eric Blake  <ebb9@byu.net>
24528
24529         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
24530
24531 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24532
24533         * lib/getaddrinfo.c: fixed typo
24534
24535 2006-06-29  Jim Meyering  <jim@meyering.net>
24536
24537         * modules/strftime (Maintainer): Add my name, since with the
24538         FPRINTFTIME changes strftime.c has forked from glibc.
24539
24540 2006-06-29  Eric Blake  <ebb9@byu.net>
24541
24542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
24543
24544 2006-06-29  Eric Blake  <ebb9@byu.net>
24545
24546         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
24547
24548 2006-06-29  Eric Blake  <ebb9@byu.net>
24549
24550         * lib/stat_.h: New file.
24551
24552 2006-06-29  Eric Blake  <ebb9@byu.net>
24553
24554         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
24555         unused static function.
24556
24557 2006-06-29  Eric Blake  <ebb9@byu.net>
24558
24559         * doc/functions.texi (Function Portability): Document missing lstat
24560         on mingw.
24561
24562 2006-06-29  Eric Blake  <ebb9@byu.net>
24563
24564         * MODULES.html.sh: Add sys_stat.
24565         * modules/sys_stat: New module.
24566         * modules/mkstemp (Depends-on): Add sys_stat.
24567
24568 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24569
24570         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
24571
24572 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24573
24574         * m4/c-bs-a.m4: Removed.
24575
24576 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24577
24578         * lib/strftime.c: Assume strftime() exists.
24579
24580 2006-06-29  Derek Price  <derek@ximbiot.com>
24581
24582         * modules/c-bs-a: Removed - \a is C89.
24583         * MODULES.html.sh: Remove c-bs-a.
24584
24585 2006-06-29  Bruno Haible  <bruno@clisp.org>
24586
24587         * modules/wcwidth (License): Change to LGPL.
24588
24589 2006-06-28  Simon Josefsson  <jas@extundo.com>
24590
24591         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
24592         on _WIN32.
24593
24594         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
24595         getnameinfo.
24596
24597 2006-06-28  Simon Josefsson  <jas@extundo.com>
24598
24599         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
24600
24601 2006-06-28  Simon Josefsson  <jas@extundo.com>
24602
24603         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
24604         functions there.  It will succeed on Windows XP, but on Windows
24605         2000 and (presumably) earlier, it will fail, and use the internal
24606         re-implementation.
24607         (use_win32_p): New function.
24608         (getaddrinfo): Use strtoul on servname, to support numeric ports.
24609         Support AI_NUMERICSERV to disable getservbyname.
24610         (getnameinfo): New function, only supports
24611         NI_NUMERICHOST|NI_NUMERICSERV for now.
24612
24613         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
24614         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
24615         getnameinfo.
24616
24617 2006-06-28  Eric Blake  <ebb9@byu.net>
24618
24619         * modules/wcwidth: New file.
24620         * modules/mbchar (Depends-on): Add wcwidth.
24621         * modules/mbswidth (Depends-on): Add wcwidth.
24622         * MODULES.html.sh: Add wcwidth.
24623
24624 2006-06-28  Eric Blake  <ebb9@byu.net>
24625
24626         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
24627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
24628
24629 2006-06-28  Eric Blake  <ebb9@byu.net>
24630
24631         * lib/xvasprintf.h: Fix comments.
24632
24633 2006-06-28  Eric Blake  <ebb9@byu.net>
24634
24635         * lib/mbchar.h (wcwidth): Include wcwidth.h.
24636         * lib/mbswidth.c (wcwidth): Move from here...
24637         * lib/wcwidth.h: ...to this new file.
24638
24639 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24640
24641         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
24642
24643         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
24644         it's obsolete.
24645         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
24646
24647 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24648
24649         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
24650         Autoconf 2.60 says this stuff was obsolete.
24651
24652 2006-06-28  Bruno Haible  <bruno@clisp.org>
24653
24654         * modules/wcwidth (Files): Add m4/wchar_t.m4.
24655
24656 2006-06-28  Bruno Haible  <bruno@clisp.org>
24657
24658         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
24659         gt_TYPE_WCHAR_T.
24660
24661 2006-06-28  Bruno Haible  <bruno@clisp.org>
24662
24663         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
24664         declaration for wcwidth.
24665         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
24666
24667 2006-06-28  Bruno Haible  <bruno@clisp.org>
24668
24669         * lib/mkdtemp.c [MINGW]: Include <io.h>.
24670         (mkdir): Define using _mkdir.
24671
24672 2006-06-28  Bruno Haible  <bruno@clisp.org>
24673
24674         * lib/getaddrinfo.h: Fix POSIX URL.
24675         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
24676         _WIN32.
24677         (use_win32_p): Make static.
24678         (getaddrinfo): Reject service name if it is empty or does not consist
24679         solely of decimal digits, or if its value is > 65535.
24680         (getnameinfo): Remove useless casts.
24681
24682 2006-06-27  Simon Josefsson  <jas@extundo.com>
24683
24684         * modules/sys_select: New file, suggested by Bruno Haible, Paul
24685         Eggert and Martin Lambers.
24686
24687 2006-06-27  Simon Josefsson  <jas@extundo.com>
24688
24689         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24690         Eggert and Martin Lambers.
24691
24692 2006-06-27  Bruno Haible  <bruno@clisp.org>
24693
24694         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24695         result to 0, not to empty.
24696         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24697
24698 2006-06-27  Bruno Haible  <bruno@clisp.org>
24699
24700         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24701
24702 2006-06-26  Simon Josefsson  <jas@extundo.com>
24703
24704         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
24705         present.
24706
24707 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
24708
24709         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
24710         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
24711         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
24712
24713 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
24714
24715         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
24716
24717 2006-06-26  Bruno Haible  <bruno@clisp.org>
24718
24719         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
24720
24721 2006-06-26  Bruno Haible  <bruno@clisp.org>
24722
24723         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
24724
24725 2006-06-26  Bruno Haible  <bruno@clisp.org>
24726
24727         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
24728         SGI C compiler in pre-C99 mode.
24729         Suggested by Mark D. Baushke and Larry Jones.
24730
24731 2006-06-26  Bruno Haible  <bruno@clisp.org>
24732
24733         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
24734         WCHAR_MAX.
24735         Reported by Mark D. Baushke and Larry Jones.
24736
24737 2006-06-26  Bruno Haible  <bruno@clisp.org>
24738
24739         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
24740         in pre-C99 mode.
24741         Suggested by Mark D. Baushke and Larry Jones.
24742
24743 2006-06-23  Simon Josefsson  <jas@extundo.com>
24744             Bruno Haible  <bruno@clisp.org>
24745
24746         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
24747         Emit mostlyclean-local rule.
24748         (func_emit_tests_Makefile_am): Likewise.
24749         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
24750
24751 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
24752
24753         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
24754
24755 2006-06-23  Bruno Haible  <bruno@clisp.org>
24756
24757         * tests/test-stdint.c: Update to match ISO C 99 Technical
24758         Corrigendum 1.
24759
24760 2006-06-23  Bruno Haible  <bruno@clisp.org>
24761
24762         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
24763
24764 2006-06-23  Bruno Haible  <bruno@clisp.org>
24765
24766         * lib/stdint_.h: Treat IRIX like OpenBSD.
24767
24768 2006-06-23  Bruno Haible  <bruno@clisp.org>
24769
24770         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
24771         ISO C 99 Technical Corrigendum 1.
24772
24773 2006-06-22  Simon Josefsson  <jas@extundo.com>
24774
24775         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
24776         MinGW.
24777
24778 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24779
24780         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
24781         needed.  Some compiler complained about some of them.  Problem reported
24782         by Larry Jones in
24783         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
24784
24785 2006-06-21  Simon Josefsson  <jas@extundo.com>
24786
24787         * tests/test-getaddrinfo.c: New file.
24788
24789         * modules/getaddrinfo-tests: New file.
24790
24791         * MODULES.html.sh: Add inet_pton.
24792
24793         * modules/inet_pton: New file.
24794
24795 2006-06-21  Simon Josefsson  <jas@extundo.com>
24796
24797         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
24798         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
24799         of using the (limited) gnulib implementation on Windows XP.
24800
24801         * m4/inet_pton.m4: New file.
24802
24803 2006-06-21  Simon Josefsson  <jas@extundo.com>
24804
24805         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
24806         variable.
24807
24808         * lib/socket_.h: Don't define WINVER.
24809
24810         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
24811         slightly modified to work in gnulib.
24812
24813 2006-06-21  Simon Josefsson  <jas@extundo.com>
24814
24815         * doc/gnulib.texi (Windows sockets): Add.
24816
24817 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24818
24819         * lib/read-file.c (fread_file): Start with buffer allocation of
24820         0 bytes rather than 1 byte; this simplifies the code.
24821         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
24822         code to free buffer and save/restore errno.
24823         (internal_read_file): Remove unused local.
24824
24825 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24826
24827         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
24828         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
24829         Problem reported by Denis Excoffier in
24830         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
24831
24832 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24833
24834         * modules/sys_socket, modules/socklen: Include sys/types since
24835         FreeBSD 4.x's sys/socket.h needs it.
24836
24837 2006-06-19  Simon Josefsson  <jas@extundo.com>
24838
24839         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
24840
24841 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24842
24843         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
24844
24845 2006-06-19  Bruno Haible  <bruno@clisp.org>
24846
24847         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
24848         and FULL_PATH_INTTYPES_H in angle brackets.
24849         Reported by Mark D. Baushke <mdb@gnu.org>.
24850
24851 2006-06-17  Eric Blake  <ebb9@byu.net>
24852
24853         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
24854         errno.
24855
24856 2006-06-17  Bruno Haible  <bruno@clisp.org>
24857
24858         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
24859         <sys/inttypes.h>.
24860
24861 2006-06-17  Bruno Haible  <bruno@clisp.org>
24862
24863         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
24864         whether errno is declared. Assume <errno.h> declares errno.
24865
24866 2006-06-17  Bruno Haible  <bruno@clisp.org>
24867
24868         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
24869
24870 2006-06-17  Bruno Haible  <bruno@clisp.org>
24871
24872         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
24873         problem on Solaris 2.5.1.
24874
24875 2006-06-16  Eric Blake  <ebb9@byu.net>
24876
24877         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
24878         * lib/unicodeio.c [!defined errno]: Likewise.
24879         * lib/strtol.c [!defined errno]: Likewise.
24880         * lib/strtod.c [!defined errno]: Likewise.
24881
24882 2006-06-15  Eric Blake  <ebb9@byu.net>
24883
24884         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
24885
24886 2006-06-15  Eric Blake  <ebb9@byu.net>
24887
24888         * config/srclist.txt (ssize_t.m4): Lose sync.
24889
24890 2006-06-15  Bruno Haible  <bruno@clisp.org>
24891
24892         * modules/stdint (Files): Include m4/full-header-path.m4,
24893         m4/size_max.m4, m4/wchar_t.m4.
24894         (Makefile.am): Many more substitutions.
24895         * modules/stdint-tests: New file.
24896         * tests/test-stdint.c: New file.
24897
24898 2006-06-15  Bruno Haible  <bruno@clisp.org>
24899
24900         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
24901         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
24902         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
24903         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
24904         gl_CHECK_TYPE_SAME): New macros.
24905
24906 2006-06-15  Bruno Haible  <bruno@clisp.org>
24907
24908         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
24909
24910 2006-06-15  Bruno Haible  <bruno@clisp.org>
24911
24912         * lib/stdint_.h: Rewritten to be fully auto-configured.
24913         Fixes bug on HP-UX/IA64.
24914
24915 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
24916
24917         * lib/getdate.y (__attribute__): Don't define if already defined.
24918         Problem reported by Larry Jones.
24919         * lib/utimens.c (__attribute__): Likewise.
24920
24921 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
24922
24923         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
24924         reported by Andreas Schwab.
24925
24926 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24927             Bruno Haible  <bruno@clisp.org>
24928
24929         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
24930         check for the declaration of strnlen and a run test that exposes the
24931         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
24932         rpl_strndup.
24933
24934 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24935             Bruno Haible  <bruno@clisp.org>
24936
24937         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
24938
24939 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24940
24941         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
24942         compile test, for Tru64 4.0D.
24943
24944 2006-05-28  Karl Berry  <karl@gnu.org>
24945
24946         * config/srclist.txt (printf-args.c): lose sync.
24947
24948 2006-05-26  Martin Lambers  <marlam@marlam.de>
24949
24950         * lib/getpass.c: Updates the test for the native W32 API, and adds
24951         missing includes, thus fixing compilation warnings.
24952
24953 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24954
24955         * lib/exclude.c (exclude_fnmatch): New function.
24956         (excluded_file_name): Call exclude_fnmatch.
24957         * lib/exclude.h (excluded_file_name): New prototype
24958
24959 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
24960
24961         * lib/tempname.c (small_open, large_open): New macros.
24962         (__open, __open64) [!_LIBC]: Remove.
24963         (__gen_tempname): Use small_open and large_open instead of __open
24964         and __open64.  This fixes a portability bug on HP-UX 11.11i
24965         reported by Simon Wing-Tang in
24966         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
24967
24968 2006-05-24  Bruno Haible  <bruno@clisp.org>
24969
24970         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
24971         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
24972         Reported by Thorsten Maerz <torte@netztorte.de> via
24973         Aaron Stone <aaron@serendipity.cx>.
24974
24975 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24976
24977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
24978         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
24979         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
24980         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
24981         not really conditional on the cache.
24982         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
24983
24984 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24985
24986         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
24987         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
24988         (my_usleep): Don't mishandle maximum value.
24989
24990 2006-05-19  Jim Meyering  <jim@meyering.net>
24991
24992         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
24993
24994 2006-05-17  Bruno Haible  <bruno@clisp.org>
24995
24996         Cygwin portability.
24997         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
24998
24999 2006-05-17  Bruno Haible  <bruno@clisp.org>
25000
25001         * lib/stdint_.h: Fix recognition of Cygwin.
25002
25003 2006-05-15  Bruno Haible  <bruno@clisp.org>
25004
25005         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
25006         on libtool patch by Ralf Wildenhues.
25007
25008 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25009
25010         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
25011         test for C99 conformance; (bool) 0.5 is an integer constant
25012         expression, but (bool) -0.5 is not.  Problem reported by Fedor
25013         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
25014
25015 2006-05-11  Simon Josefsson  <jas@extundo.com>
25016
25017         * m4/xvasprintf.m4: Fix obvious typo.
25018
25019 2006-05-11  Jim Meyering  <jim@meyering.net>
25020
25021         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
25022         James Lemley.
25023
25024 2006-05-10  Simon Josefsson  <jas@extundo.com>
25025
25026         * lib/md4.c: Typo fix, update copyright years.
25027         (K1, K2): Don't use L because it turn computations into 64-bit on
25028         64-bit platforms.
25029
25030 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25031
25032         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
25033         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
25034         unwanted sign propagation, e.g., on hosts with 64-bit int.
25035         There still are some problems with reeelly weird theoretical hosts
25036         (e.g., 33-bit int) but it's not worth worrying about now.
25037         * lib/sha1.c (rol): Likewise.
25038         (K1, K2, K3, K4): Remove unnecessary L suffix.
25039
25040 2006-05-10  Bruno Haible  <bruno@clisp.org>
25041
25042         * lib/des.c: Cast to avoid warnings.
25043
25044 2006-05-09  Bruno Haible  <bruno@clisp.org>
25045
25046         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
25047         (Depends-on): Depend also on xsize, stdarg.
25048         (configure.ac): Add gl_XVASPRINTF.
25049
25050 2006-05-09  Bruno Haible  <bruno@clisp.org>
25051
25052         * m4/xvasprintf.m4: New file.
25053
25054 2006-05-09  Bruno Haible  <bruno@clisp.org>
25055
25056         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
25057         (EOVERFLOW): Define fallback value.
25058         (xstrcat): New function.
25059         (xvasprintf): Recognize the special case of a string concatenation.
25060
25061 2006-05-08  Eric Blake  <ebb9@byu.net>
25062
25063         * gnulib-tool (func_version): Base copyright year on CVS date.
25064         (func_emit_copyright_notice): New function.
25065         (func_emit_lib_Makefile_am): Use it.
25066         (func_emit_tests_Makefile_am): Likewise.
25067         (func_import): Likewise.
25068
25069 2006-05-08  Bruno Haible  <bruno@clisp.org>
25070
25071         * modules/stdarg: New file.
25072         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
25073
25074 2006-05-08  Bruno Haible  <bruno@clisp.org>
25075
25076         * m4/stdarg.m4: New file, from GNU gettext.
25077
25078 2006-05-08  Bruno Haible  <bruno@clisp.org>
25079
25080         * config/srclist.txt (build-aux/config.rpath): different from latest
25081         release.
25082
25083 2006-05-08  Bruno Haible  <bruno@clisp.org>
25084
25085         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
25086
25087 2006-05-05  Jim Meyering  <jim@meyering.net>
25088
25089         * m4/warning.m4: New file, derived from bison's file by the same name.
25090
25091 2006-05-03  Bruno Haible  <bruno@clisp.org>
25092
25093         * lib/stdint_.h: Shorter URL.
25094         * lib/inttypes.h: Likewise.
25095
25096 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25097
25098         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
25099
25100 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25101
25102         * lib/verify.h: Document the internals better.  Most of this change
25103         was written by Bruno Haible.
25104
25105 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25106
25107         * doc/verify.texi: New file, partly based on a proposal by
25108         Bruno Haible.
25109
25110 2006-05-02  Bruno Haible  <bruno@clisp.org>
25111
25112         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
25113         test from here...
25114         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
25115
25116 2006-04-29  Bruno Haible  <bruno@clisp.org>
25117
25118         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
25119         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
25120
25121 2006-04-29  Bruno Haible  <bruno@clisp.org>
25122
25123         * gnulib-tool: Make --update option actually work.
25124
25125 2006-04-29  Bruno Haible  <bruno@clisp.org>
25126
25127         * doc/gcd.texi: New file.
25128         * doc/gnulib.texi: Include it.
25129
25130 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25131
25132         * lib/getdate.y (get_date): When adding relative date, start with the
25133         initial time, not with the result of the first mktime call.
25134
25135 2006-04-25  Bruno Haible  <bruno@clisp.org>
25136
25137         * gnulib-tool (func_import): Output the include directives in three
25138         blocks, sorted separately.
25139         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25140
25141 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25142
25143         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
25144         to define main with arguments, for C++.  Reported by Eric Blake.
25145         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
25146         Prefer 'int main ()' to 'int main (void)', for C++.
25147         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
25149         for 'main', for C99 and C++.
25150
25151 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25152
25153         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
25154         Don't assume that exit status -1 is valid.
25155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25156         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25157         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25158         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
25159         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
25160         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
25161         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
25162         functions can be used without declaring them, or that you can
25163         exit with status -1.
25164         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25165
25166 2006-04-24  Karl Berry  <karl@gnu.org>
25167
25168         * config/srclist.txt (longdouble.m4): sync lost.
25169
25170 2006-04-24  Eric Blake  <ebb9@byu.net>
25171
25172         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
25173
25174 2006-04-24  Bruno Haible  <bruno@clisp.org>
25175
25176         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
25177         poll() implementation in AIX.
25178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25179
25180 2006-04-24  Bruno Haible  <bruno@clisp.org>
25181
25182         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
25183         assigned exactly once.
25184
25185 2006-04-23  Claudio Fontana  <claudio@gnu.org>
25186             Bruno Haible  <bruno@clisp.org>
25187
25188         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
25189         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
25190         for AM_CPPFLAGS.
25191
25192 2006-04-23  Bruno Haible  <bruno@clisp.org>
25193
25194         * modules/copy-file: Depend on unistd.
25195         * modules/execute: Likewise.
25196         * modules/fatal-signal: Likewise.
25197         * modules/findprog: Likewise.
25198         * modules/mkdtemp : Likewise.
25199         * modules/pipe: Likewise.
25200         * modules/wait-process: Likewise.
25201
25202 2006-04-23  Bruno Haible  <bruno@clisp.org>
25203
25204         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
25205         condition was already detected.
25206         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25207
25208 2006-04-23  Bruno Haible  <bruno@clisp.org>
25209
25210         * lib/copy-file.c: Include <unistd.h> unconditionally.
25211         * lib/execute.c: Likewise.
25212         * lib/fatal-signal.c: Likewise.
25213         * lib/findprog.c: Likewise.
25214         * lib/mkdtemp.c: Likewise.
25215         * lib/pipe.h: Likewise.
25216         * lib/pipe.c: Likewise.
25217         * lib/wait-process.h: Likewise.
25218
25219 2006-04-23  Bruno Haible  <bruno@clisp.org>
25220
25221         * gnulib-tool (func_usage): Fix --import description. Document
25222         --update.
25223         (func_import): Create temporary file in a temporary directory, if
25224         --dry-run is specified. Silence errors from 'grep' when there are no
25225         m4 files in $m4dir.
25226         (func_create_testdir): Silence errors from 'grep' when there are no
25227         m4 files in $m4dir.
25228         Reported by Karl Berry <karl@freefriends.org>.
25229
25230 2006-04-20  Bruno Haible  <bruno@clisp.org>
25231
25232         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
25233         one argument, so that the code will be portable to Autoconf 2.60.
25234         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
25235         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25236         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
25237
25238 2006-04-19  Derek Price  <derek@ximbiot.com>
25239             Eric Blake  <ebb9@byu.net>
25240
25241         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
25242         rather than "/full/path.h".  Update comment to match.  Shorten &
25243         generalize m4_translit call via AS_TR_CPP.
25244
25245 2006-04-19  Derek Price  <derek@ximbiot.com>
25246             Eric Blake  <ebb9@byu.net>
25247
25248         * lib/inttypes.h: Correct grammar in comment.
25249
25250 2006-04-18  Derek Price  <derek@ximbiot.com>
25251             Paul Eggert  <eggert@cs.ucla.edu>
25252
25253         * modules/inttypes: New file.
25254         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
25255
25256 2006-04-18  Derek Price  <derek@ximbiot.com>
25257             Paul Eggert  <eggert@cs.ucla.edu>
25258
25259         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
25260         New files.
25261
25262 2006-04-18  Derek Price  <derek@ximbiot.com>
25263             Paul Eggert  <eggert@cs.ucla.edu>
25264
25265         * lib/inttypes.h: New file.
25266         * lib/strtoimax.c: Assume <inttypes.h>.
25267
25268 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
25269
25270         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
25271         isn't mounted.  Problem reported by Kir Kolyshkin.
25272
25273 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25274
25275         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
25276         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
25277         Derek R. Price.
25278         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25279         implementation.
25280
25281 2006-04-12  Eric Blake  <ebb9@byu.net>
25282
25283         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25284         is now done automatically by the corresponding Autoconf macro.
25285
25286 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25287
25288         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25289         time_r.h.
25290
25291 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25292
25293         Merge regex changes from libc, removing some of our
25294         POSIX-conformance changes that were rejected and redoing them in a
25295         less-intrusive way.
25296
25297         * lib/regcomp.c (re_compile_internal, init_dfa):
25298         Length arg is now size_t, not Idx.  All uses changed.
25299         (peek_token): Forward decl now says internal_function.
25300         (__re_error_msgid, __re_error_msgid_idx):
25301         Now static rather than extern with attribute_hidden.
25302         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25303         For some reason libc prefers K&R style defns for external functions.
25304         (regerror) [!defined _LIBC]: Likewise.
25305         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25306         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25307         (build_range_exp, build_collating_symbol):
25308         Use K&R-style defn.
25309         (re_compile_fastmap): Use '\0' to memset, not 0.
25310         (utf8_sb_map): Make the calculations more obvious.
25311         (init_dfa, parse_bracket_exp, build_charclass_op):
25312         Call calloc and cast result, as glibc does.
25313         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25314         (build_range_exp, build_collating_symbol):
25315         Now internal functions.
25316
25317         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25318
25319         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25320         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25321         Don't depend on VMS; depend on __VMS instead, for POSIX
25322         namespace cleanness.
25323         (regoff_t): Define to ssize_t, not long int.
25324
25325         Remove the REG_ macros named below.  Instead, make the old names
25326         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25327         __USE_GNU_REGEX.
25328         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25329         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25330         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25331         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25332         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25333         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25334         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25335         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25336         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25337         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25338         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25339         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25340         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25341         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25342         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25343         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25344         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25345         (REG_NREGS):
25346         Remove.  All uses replaced by the old RE_* names.
25347         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25348         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25349         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25350         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25351         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25352         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25353         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25354         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25355         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25356         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25357         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25358         Don't bother having these macros be independent of each others'
25359         values, since they no longer exist in the POSIX name space.
25360
25361         Rename the following member names back to their old names,
25362         unless !__USE_GNU_REGEX.  All uses changed back.
25363         (buffer): Renamed from re_buffer.
25364         (allocated): Renamed from re_allocated.
25365         (used): Renamed from re_used.
25366         (syntax): Renamed from re_syntax.
25367         (fastmap): Renamed from re_fastmap.
25368         (translate): Renamed from re_translate.
25369         (can_be_null): Renamed from re_can_be_null.
25370         (regs_allocated): Renamed from re_regs_allocated.
25371         (fastmap_accurate): Renamed from re_fastmap_accurate.
25372         (no_sub): Renamed from re_no_sub.
25373         (not_bol): Renamed from re_not_bol.
25374         (not_eol): Renamed from re_not_eol.
25375         (newline_anchor): Renamed from re_newline_anchor.
25376         (num_regs): Renamed from rm_num_regs.
25377         (start): Renamed from rm_start.
25378         (end): Renamed from rm_end.
25379
25380         (free_state): Move up a bit.
25381
25382         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
25383         #define to be empty.
25384         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
25385         when that is what is intended.
25386         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
25387         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
25388         (MAX): New macro.
25389         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
25390         All uses changed back to re_malloc, etc.  It's now the caller's
25391         responsibility to check for overflow; all callers changed.
25392         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
25393         (re_x2nrealloc): Remove.
25394         (free_state): Remove decl.
25395
25396         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
25397         (re_set_registers, re_exec):
25398         Use K&R-style defn.
25399
25400         2006-01-31  Roland McGrath  <roland@redhat.com>
25401
25402         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25403         Reported by Mike Frysinger <vapier@gentoo.org>.
25404
25405         2006-01-15  Andreas Jaeger  <aj@suse.de>
25406
25407         [BZ #1950]
25408         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25409         build_wcs_upper_buffer change.
25410         (build_wcs_upper_buffer): Change return type.
25411
25412         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25413
25414         * lib/regex_internal.h: Include <stdint.h> if available.
25415
25416         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
25417
25418         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
25419
25420         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25421
25422         * lib/regcomp.c: Adjust for changed secondary hash function.
25423
25424         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
25425
25426         * lib/regex.h: Pretty printing.
25427         Clean up namespace a bit.
25428
25429         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
25430
25431         * lib/regexec.c (update_cur_sifted_state, check_arrival,
25432         check_arrival_add_next_nodes): Avoid using uninitialized variable.
25433
25434         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25435                     Ulrich Drepper  <drepper@redhat.com>
25436
25437         [BZ #1302]
25438         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
25439         changed.
25440         (bitset_word_t): Renamed from bitset_word.  All uses changed.
25441
25442         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
25443
25444         [BZ #281]
25445         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
25446         * lib/regcomp.c: Remove unnecessary uses of
25447         unsigned RE_TRANSLATE_TYPE.
25448         * lib/regex_internal.h: Likewise.
25449         * lib/regex_internal.c: Likewise.
25450         * lib/regexec.c: Likewise.
25451         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
25452
25453         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
25454
25455         * lib/regexec.c (find_recover_state): Remove unnecessary
25456         initialization.
25457         (transit_state_bkref): Make DFA a const pointer.
25458         (get_subexp): Likewise.
25459         (check_arrival): Likewise.
25460         (update_cur_sifted_state): Likewise.
25461         (re_search_internal): Likewise.
25462         (prune_impossible_nodes): Likewise.
25463         (acquire_init_state_context): Likewise.
25464         (proceed_next_node): Likewise.
25465         (set_regs): Likewise.
25466         (free_fail_stack_return): Likewise.
25467         (check_arrival_expand_ecl): Mark DFA parameter as const.
25468         (check_arrival_expand_ecl_sub): Likewise.
25469         (check_subexp_limits): Likewise.
25470         (sub_epsilon_src_nodes):  Likewise.
25471         (add_epsilon_src_nodes):  Likewise.
25472         (merge_state_array): Likewise.
25473         (update_regs): Likewise.
25474         (build_trtable): Likewise.
25475         (sift_states_backward): Mark MCTX parameter as const.
25476         (build_sifted_states): Likewise.
25477         (update_cur_sifted_state): Likewise.
25478         (sift_states_mkref): Likewise.
25479         (check_arrival_expand_ecl): Mark eclosure as const.
25480         (check_dst_limits_calc_pos_1): Likewise.
25481         * lib/regex_internal.h (re_match_context_t): Make dfa a const
25482         pointer.
25483
25484         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
25485
25486         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
25487         (transit_state_sb): Likewise.
25488         (transit_state_mb): Likewise.
25489         (sift_states_iter_mb): Likewise.
25490         (check_arrival_add_next_nodes): Likewise.
25491         (check_node_accept_bytes): Change first parameter to pointer-to-const.
25492         [_LIBC] (re_search_2_stub): Use mempcpy.
25493
25494         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
25495         mbrtowc for very simple UTF-8 case.
25496
25497         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
25498         a pointer-to-const.
25499         (re_acquire_state_context): Likewise.
25500         * lib/regex_internal.h: Adjust prototypes.
25501
25502         * lib/regex.c: Prevent using C++ compilers.
25503
25504         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
25505         (re_acquire_state_context): Likewise.
25506
25507 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25508
25509         * modules/regex (Depends-on): Add ssize_t.
25510
25511 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25512
25513         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
25514         translation table.
25515
25516 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25517
25518         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
25519
25520 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
25521             Bruno Haible  <bruno@clisp.org>
25522
25523         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
25524         <sys/types.h> and <inttypes.h>.
25525
25526 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25527
25528         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
25529         `__error_t_defined', so argp.h will not typedef the former.
25530
25531 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25532
25533         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
25534         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
25535         glibc names.  Even if glibc is changed to conform to POSIX, the
25536         traditional names will be available anyway, since regex depends on
25537         the extensions module.  Also, fix a longstanding typo in the
25538         implementation of Spencer ERE test #75 from grep 2.3.  Problems
25539         reported by Emanuele Giaquinta.  Also, change sense of cached
25540         variable, so that the message makes sense.
25541
25542 2006-03-24  Simon Josefsson  <jas@extundo.com>
25543
25544         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
25545         including some doc fixes.
25546         (base64_encode_alloc): Fix +1 bug on allocation failures.
25547
25548 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25549
25550         * lib/base64.c (base64_encode): Do not read past end of array with
25551         unsanitized input on systems with CHAR_BIT > 8.
25552
25553 2006-03-24  Eric Blake  <ebb9@byu.net>
25554
25555         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
25556
25557 2006-03-22  Karl Berry  <karl@gnu.org>
25558
25559         * config/srclist.txt (*setenv.[ch]): get from coreutils.
25560         * config/srclistvars.sh (COREUTILS): new var.
25561
25562 2006-03-17  Jim Meyering  <jim@meyering.net>
25563
25564         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
25565         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
25566
25567 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25568
25569         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
25570         no longer needs it.  Instead, check that regoff_t is as least
25571         as wide as ptrdiff_t.
25572
25573         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
25574         so that our regex.h stays compatible with the installed regex.
25575         This is helpful for installers who configure --without-included-regex.
25576         Problem reported by Emanuele Giaquinta.
25577
25578 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25579
25580         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
25581         Typedef to long int, not to off_, as POSIX will likely change
25582         in that direction.
25583
25584 2006-03-15  Eric Blake  <ebb9@byu.net>
25585
25586         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
25587
25588 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25589
25590         * lib/argp-help.c (validate_uparams): Fix typo
25591         * lib/argp-parse.c (argp_default_options): Consistently begin help
25592         messages with a lowercase letter.
25593
25594 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25595
25596         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
25597         overrun buffers and shouldn't be used (much as gets shouldn't be
25598         used).
25599         * lib/time_r.c (asctime_r, ctime_r): Likewise.
25600
25601 2006-03-08  Simon Josefsson  <jas@extundo.com>
25602
25603         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
25604         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25605
25606 2006-03-08  Simon Josefsson  <jas@extundo.com>
25607
25608         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
25609         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25610
25611 2006-03-08  Simon Josefsson  <jas@extundo.com>
25612
25613         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
25614         signal that configure disabled the device.
25615
25616 2006-03-08  Simon Josefsson  <jas@extundo.com>
25617
25618         * build-aux/maint.mk: Fix refresh-po, to handle no translated
25619         languages.
25620
25621 2006-03-07  Simon Josefsson  <jas@extundo.com>
25622
25623         * modules/getopt (Depends-on): Add unistd.
25624
25625         * modules/unistd: New file.
25626
25627 2006-03-07  Simon Josefsson  <jas@extundo.com>
25628
25629         * modules/gc-random: New file.
25630
25631 2006-03-07  Simon Josefsson  <jas@extundo.com>
25632
25633         * m4/unistd_h.m4: New file.
25634
25635 2006-03-07  Simon Josefsson  <jas@extundo.com>
25636
25637         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
25638         test to be side-effect free by storing the result in the cache
25639         variable gl_cv_lib_readline, and moving the assignment of
25640         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
25641         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25642
25643 2006-03-07  Simon Josefsson  <jas@extundo.com>
25644
25645         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
25646         error on missing devices (the functions will return an error).
25647
25648         * m4/gc.m4: Move random stuff to gc-random.m4
25649
25650 2006-03-07  Simon Josefsson  <jas@extundo.com>
25651
25652         * lib/unistd_.h: New file.
25653
25654 2006-03-07  Simon Josefsson  <jas@extundo.com>
25655
25656         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
25657
25658 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25659
25660         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
25661         Problem reported by Juan Manuel Guerrero.
25662
25663 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25664
25665         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
25666         the unistd module.
25667         * lib/getlogin_r.c: Likewise.
25668         * lib/getlogin_r.h: Likewise.
25669         * lib/glob.c: Likewise.
25670         * lib/pagealign_alloc.c: Likewise.
25671         * lib/unistd_.h: Remove; no longer needed.
25672
25673 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25674
25675         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25676         Add unistd.
25677         * modules/c-stack (Depends-on): Add unistd.
25678         * modules/getlogin_r: Likewise.
25679         * modules/glob: Likewise.
25680         * modules/pagealign_alloc: Likewise.
25681         * modules/unistd (Files): Remove lib/unistd_.h.
25682         (EXTRA_DIST): Remove.
25683         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
25684         need unistd_.h.
25685         (MOSTLYCLEANFILES): Remove unistd.h-t.
25686
25687 2006-03-03  Simon Josefsson  <jas@extundo.com>
25688
25689         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25690
25691 2006-03-03  Simon Josefsson  <jas@extundo.com>
25692
25693         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25694         libidn and bison.
25695
25696 2006-03-03  Simon Josefsson  <jas@extundo.com>
25697
25698         * build-aux/maint.mk: Add indent target.
25699
25700 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25701
25702         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25703         our replacement poll.h in any case, to avoid a differing
25704         declaration from a system header.  Seen on AIX.
25705
25706 2006-03-01  Simon Josefsson  <jas@extundo.com>
25707
25708         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
25709         <kasal@ucw.cz>.
25710
25711 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25712
25713         * modules/gettime (Depends-on): Add extensions module.
25714         * modules/nanosleep (Depends-on): Likewise.
25715         * modules/settime (Depends-on): Likewise.
25716
25717 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25718
25719         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
25720         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
25721         pedantically.
25722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25723         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
25724
25725         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
25726         not "==".  Reported by Ralf Wildenhues.
25727
25728 2006-03-01  Karl Berry  <karl@gnu.org>
25729
25730         * doc/Copyright/request-*: new files, synced from gnuorg.
25731
25732 2006-03-01  Karl Berry  <karl@gnu.org>
25733
25734         * config/srclist.txt (Copyright/*): new entries.
25735
25736 2006-02-28  Simon Josefsson  <jas@extundo.com>
25737
25738         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
25739
25740 2006-02-27  Simon Josefsson  <jas@extundo.com>
25741
25742         * lib/base64.h: Indent #define's.  From Jim Meyering
25743         <jim@meyering.net>.
25744
25745 2006-02-27  Jim Meyering  <jim@meyering.net>
25746
25747         Revert the change of 2006-02-24, so these files can continue
25748         to be sync'd from gettext.
25749         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
25750         of `config.h'.
25751
25752 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25753
25754         * modules/intprops: New file.
25755         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25756         Add intprops.
25757         * modules/getloadavg (Files): Remove lib/intprops.h.
25758         (Depends-on): Add intprops.
25759         * modules/human: Likewise.
25760         * modules/inttostr: Likewise.
25761         * modules/openat: Likewise.
25762         * modules/sig2str: Likewise.
25763         * modules/userspec: Likewise.
25764         * modules/utimecmp: Likewise.
25765         * modules/xnanosleep: Likewise.
25766         * modules/xstrtol: Likewise.
25767
25768 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
25769
25770         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
25771         * modules/lock-tests (TESTS): Use $(EXEEXT).
25772         * modules/tls-tests: Likewise.
25773         * modules/argp-tests: Likewise.
25774         (check_PROGRAMS): New var, replacing...
25775         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
25776
25777 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25778
25779         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
25780         `config.h'.
25781
25782 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25783
25784         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
25785
25786 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25787
25788         Sync from coreutils.
25789         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
25790         gl_CHDIR_SAFER.
25791
25792 2006-02-22  Jim Meyering  <jim@meyering.net>
25793
25794         Sync from coreutils.
25795         * m4/chdir-safer.m4: New file.
25796
25797 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25798
25799         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
25800         AT_FDCWD exceeds INT_MAX.
25801         * lib/openat.h (AT_FDCWD): Likewise.
25802
25803 2006-02-17  Eric Blake  <address@hidden>
25804
25805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
25806
25807 2006-02-16  Simon Josefsson  <jas@extundo.com>
25808
25809         * modules/getaddrinfo (Depends-on): Add sys_socket.
25810
25811 2006-02-15  Simon Josefsson  <jas@extundo.com>
25812
25813         * build-aux/maint.mk: Add dsyntax-check rule.
25814
25815 2006-02-15  Eric Blake  <ebb9@byu.net>
25816
25817         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
25818         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
25819         'present but cannot compile' warnings on cygwin.
25820         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
25821         use ws2tcpip.h if sys/socket.h works.
25822         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
25823         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
25824
25825 2006-02-14  Simon Josefsson  <jas@extundo.com>
25826
25827         * modules/maintainer-makefile (Files): Rename.
25828
25829         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
25830         and (the local) Makefile.cfg to maint-cfg.mk.
25831
25832         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
25833         to the latter.
25834
25835         * modules/maintainer-makefile: New module.
25836
25837         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
25838         severaly stripped to make it possible to build it up from scratch
25839         with reliable tests.
25840
25841         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
25842         fixes to permit overriding the default actions when configure and
25843         makefile are not available.
25844
25845 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25846
25847         Sync from coreutils.
25848         * modules/lstat (Depends-on): Don't depend on xalloc.
25849         (License): Change from GPL to LGPL, since this is now simply a
25850         replacement for a libc function.
25851
25852 2006-02-14  Jim Meyering  <jim@meyering.net>
25853
25854         Sync from coreutils.
25855
25856         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
25857         failure on deficient systems, and simplify gnulib lgpl dependencies.
25858         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
25859         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
25860
25861         * lib/xalloc-die.c: Remove unused definition of N_.
25862
25863 2006-02-14  Jim Meyering  <jim@meyering.net>
25864
25865         Sync from coreutils.
25866         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
25867         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
25868         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
25869         double-quote uses of that variable, to accommodate the rare case in
25870         which getmntent is available in none of the libraries checked.  This
25871         happens at least on FreeBSD 5.0.
25872
25873 2006-02-13  Simon Josefsson  <jas@extundo.com>
25874
25875         * gnulib-tool (Usage): Fix --import, from
25876         karl@freefriends.org (Karl Berry).
25877
25878 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25879
25880         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
25881
25882 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
25883
25884         * lib/argp-namefrob.h: Restore changes accidentally lost during the
25885         "autoupdate" on 2005-12-12.
25886
25887 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25888
25889         * modules/closeout (Depends-on): Remove atexit.
25890
25891 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25892
25893         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
25894         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
25895
25896 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25897
25898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
25899         __EXTENSIONS__ if this causes compilation to fail.  Problem
25900         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
25901         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
25902
25903 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25904
25905         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
25906         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
25907         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
25908         All uses changed.
25909
25910 2006-01-26  Simon Josefsson  <jas@extundo.com>
25911
25912         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
25913         prototype is visible on mingw32.
25914
25915         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
25916         for mingw32.
25917
25918         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
25919         mingw32).
25920
25921 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25922
25923         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
25924         attempt to open for write; this always fails, at least on POSIX
25925         hosts.  This reinstates the 2006-01-09 change, which was
25926         inadvertently removed.
25927
25928 2006-01-26  Bruno Haible  <bruno@clisp.org>
25929
25930         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
25931         Reported by Paul Eggert.
25932
25933 2006-01-26  Bruno Haible  <bruno@clisp.org>
25934             Paul Eggert  <eggert@cs.ucla.edu>
25935
25936         * lib/stdbool_.h (_Bool)
25937         [(! (defined __cplusplus || defined __BEOS__)
25938           && !defined __GNUC__
25939           && !(defined __HP_cc || defined __xlc__
25940                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
25941                || defined __sgi))]:
25942         #define to signed char in these cases too; this simplifies
25943         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
25944         etc., separately) and makes it more conservative.
25945
25946 2006-01-25  Simon Josefsson  <jas@extundo.com>
25947
25948         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
25949         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
25950         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
25951
25952 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25953
25954         * lib/argp-namefrob.h: Bugfix. Remove stray #
25955
25956 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25957
25958         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
25959         so that we test the test.
25960         Check for yet another HP-UX cc bug involving *bool |= bool.
25961
25962 2006-01-25  Karl Berry  <karl@gnu.org>
25963
25964         * config/srclist.txt (vasnprintf.c): sync lost.
25965
25966 2006-01-25  Jim Meyering  <jim@meyering.net>
25967
25968         Sync from the stable (b5) branch of coreutils:
25969
25970         * lib/fts.c (fts_children): Don't let close() clobber errno from
25971         failed fchdir().
25972
25973         * lib/fts.c (fts_stat): When following a symlink-to-directory,
25974         don't necessarily interpret stat-fails+lstat-succeeds as indicating
25975         a dangling symlink.  That can also happen at least for ELOOP.
25976         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
25977         FYI, this bug predates the inclusion of fts.c in coreutils.
25978
25979         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
25980         in their own block, so pre-c99 compilers don't object.
25981
25982         Avoid the double-free (first in fts_read, second in fts_close) that
25983         would occur when an `active' directory is made inaccessible (e.g.,
25984         via chmod a-x) during a traversal.
25985         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25986         before returning.  Reproduce this failure by
25987         mkdir -p a/b; cd a; chmod a-x . b
25988         Reported by Stavros Passas.
25989
25990 2006-01-25  Jim Meyering  <jim@meyering.net>
25991
25992         * lib/fileblocks.c: Remove more useless parentheses.
25993         * lib/readutmp.h: Likewise.
25994
25995 2006-01-25  Bruno Haible  <bruno@clisp.org>
25996
25997         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
25998         warnings.
25999         Reported by Paul Eggert.
26000
26001 2006-01-25  Bruno Haible  <bruno@clisp.org>
26002
26003         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
26004         rid of a trap command. For Solaris sh.
26005         Reported by Mark D. Baushke <mdb@gnu.org>.
26006
26007 2006-01-24  Simon Josefsson  <jas@extundo.com>
26008
26009         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
26010         Bruno.
26011
26012 2006-01-24  Karl Berry  <karl@gnu.org>
26013
26014         * config/srclist.txt (argp-namefrob.h): sync lost.
26015
26016 2006-01-24  Jim Meyering  <jim@meyering.net>
26017
26018         * modules/openat (Files): Add lib/intprops.h.
26019         From Mark D. Baushke.
26020
26021 2006-01-24  Jim Meyering  <jim@meyering.net>
26022
26023         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
26024         Reported by Mark D. Baushke.
26025
26026 2006-01-24  Jim Meyering  <jim@meyering.net>
26027
26028         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
26029
26030 2006-01-24  Bruno Haible  <bruno@clisp.org>
26031
26032         * modules/strnlen (Maintainer): Change from glibc to all.
26033
26034 2006-01-24  Bruno Haible  <bruno@clisp.org>
26035
26036         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
26037         Patch by Paul Eggert.
26038
26039 2006-01-24  Bruno Haible  <bruno@clisp.org>
26040
26041         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
26042         already has it.
26043         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
26044         2005-11-26.
26045
26046         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
26047         'signed char' to avoid problems with the built-in _Bool type.
26048         Reported by Paul Eggert on 2005-11-26.
26049
26050 2006-01-24  Bruno Haible  <bruno@clisp.org>
26051
26052         * gnulib-tool (func_import): Avoid constructing complicated sed
26053         expressions inside backquote.
26054         Report and solution by Mark D. Baushke <mdb@gnu.org>.
26055
26056 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
26057
26058         These changes imported from libc.
26059         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
26060         test and two separate function calls.
26061         * lib/strndup.c (__strndup): Add libc_hidden_def.
26062
26063 2006-01-23  Simon Josefsson  <jas@extundo.com>
26064
26065         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
26066         Remove the test_*_SOURCES variable: automake infers it by default.
26067         * modules/tls-tests: Likewise.
26068
26069 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26070
26071         Work around porting bugs reported by Dieter in
26072         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
26073         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
26074         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
26075         Include "getopt.h" first, to check interface.
26076         (getenv): Declare only if defined HAVE_DECL_GETENV &&
26077         !HAVE_DECL_GETENV.
26078         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
26079         (__strndup): Revert to K&R-style function dfns, the glibc style.
26080         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
26081         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
26082         Include strnlen.h first, to get prototype properly.
26083         (strnlen): Renamed from __strnlen.
26084         Remove weak alias.
26085
26086 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26087
26088         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
26089
26090 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26091
26092         * config/srclist.txt: Adjust to reflect glibc reorganization.
26093         This affects only comments.
26094
26095 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26096
26097          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
26098          Reported by Bruce Korb <bkorb@gnu.org>.
26099
26100 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
26101
26102         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
26103         to pacify gcc -Wswitch-default.
26104
26105 2006-01-22  Bruno Haible  <bruno@clisp.org>
26106
26107         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
26108         temporary buffer for sprintf, take into account the precision also
26109         for 'd', 'i', 'u', 'o', 'x', 'X'.
26110
26111 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26112
26113         * modules/argp-tests: New module
26114         * tests/test-argp.c: New file
26115         * tests/test-argp-2.sh: New file
26116
26117 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26118
26119         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
26120         (__argp_base_name): Removed
26121         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
26122         typo.
26123         (__argp_base_name): Provide macro definition or extern declaration
26124         depending on the configuration
26125
26126 2006-01-20  Simon Josefsson  <jas@extundo.com>
26127
26128         * modules/inet_ntop (Depends-on): Depend on sys_socket.
26129
26130 2006-01-20  Simon Josefsson  <jas@extundo.com>
26131
26132         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
26133
26134 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26135
26136         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
26137         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
26138         Suggested by Bruno Haible.
26139
26140 2006-01-20  Karl Berry  <karl@gnu.org>
26141
26142         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
26143         until changes propagate, I guess.
26144
26145 2006-01-19  Simon Josefsson  <jas@extundo.com>
26146
26147         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
26148
26149 2006-01-19  Simon Josefsson  <jas@extundo.com>
26150
26151         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
26152
26153 2006-01-19  Simon Josefsson  <jas@extundo.com>
26154
26155         * gnulib-tool: Set check_PROGRAMS.
26156
26157         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26158         modules/des-tests, modules/gc-arcfour-tests,
26159         modules/gc-arctwo-tests, modules/gc-des-tests,
26160         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26161         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26162         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26163         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26164         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26165         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
26166         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
26167         test_*_SOURCES.
26168
26169 2006-01-18  Simon Josefsson  <jas@extundo.com>
26170
26171         * modules/socklen (Depends-on): Depend on sys_socket.
26172
26173 2006-01-18  Simon Josefsson  <jas@extundo.com>
26174
26175         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26176         modules/des-tests, modules/gc-arcfour-tests,
26177         modules/gc-arctwo-tests, modules/gc-des-tests,
26178         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26179         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26180         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26181         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26182         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26183         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
26184         $(EXEEXT) to automake TESTS variable, for mingw32.
26185
26186 2006-01-17  Simon Josefsson  <jas@extundo.com>
26187
26188         * modules/socklen (Include): Need sys/socket.h.
26189
26190 2006-01-17  Bruno Haible  <bruno@clisp.org>
26191
26192         * modules/ssize_t (Include): Add <sys/types.h>.
26193
26194 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26195
26196         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
26197         it's not portable and it doesn't work with cross-compiles.
26198         Problem reported by Bruno Haible.  Fix missing-$ typo in
26199         'test "gl_cv_ignore_unused_libraries" ...' that prevented
26200         -zignore from being used with Sun's C compiler.
26201
26202 2006-01-12  Simon Josefsson  <jas@extundo.com>
26203
26204         * lib/base64.c: Fix warning, reported by Bruno Haible
26205         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
26206
26207 2006-01-12  Bruno Haible  <bruno@clisp.org>
26208
26209         * modules/ldd: New file.
26210         * build-aux/ldd.sh.in: New file.
26211         * MODULES.html.sh (Support for building libraries and executables): Add
26212         ldd.
26213
26214 2006-01-12  Bruno Haible  <bruno@clisp.org>
26215
26216         * m4/ldd.m4: New file.
26217
26218 2006-01-12  Bruno Haible  <bruno@clisp.org>
26219
26220         * gnulib-tool (func_import, func_create_testdir): Don't go into an
26221         endless loop while replacing $auxdir with build-aux.
26222
26223 2006-01-11  Simon Josefsson  <jas@extundo.com>
26224
26225         * lib/stdint_.h (SIZE_MAX): Add missing (.
26226
26227 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26228
26229         Sync from coreutils.
26230         * lib/md5.c: Fix commentary typos.
26231         (alignof, UNALIGNED_P): No need for a GCC-specific version.
26232         * lib/md5.h (__attribute__): Remove; unused.
26233         * lib/sha1.c: Fix commentary to match md5 better.
26234         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
26235         so that we don't need to worry about alignment.  All uses changed.
26236         This merges the 2005-10-28 md5 change into sha1.
26237
26238 2006-01-11  Jim Meyering  <jim@meyering.net>
26239
26240         Sync from coreutils.
26241         * lib/md5.c (OP): Fix spacing.
26242
26243 2006-01-11  Bruno Haible  <bruno@clisp.org>
26244
26245         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26246         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
26247         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
26248
26249 2006-01-11  Bruno Haible  <bruno@clisp.org>
26250
26251         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26252         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
26253         the "early" section as well.
26254
26255 2006-01-11  Bruno Haible  <bruno@clisp.org>
26256
26257         Avoid "ar: no archive members specified" error on MacOS X.
26258         * gnulib-tool (func_modules_add_dummy): New function.
26259         (func_import, func_create_testdir): Invoke it.
26260
26261 2006-01-11  Bruno Haible  <bruno@clisp.org>
26262
26263         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
26264         with $auxdir in AC_CONFIG_FILES statements.
26265
26266 2006-01-11  Bruno Haible  <bruno@clisp.org>
26267
26268         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26269         Initialize also noinst_HEADERS to empty.
26270
26271 2006-01-11  Bruno Haible  <bruno@clisp.org>
26272
26273         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
26274         variables.
26275         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
26276         autoreconf.
26277
26278 2006-01-11  Bruno Haible  <bruno@clisp.org>
26279
26280         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26281         overridable by the user.
26282         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26283
26284 2006-01-10  Simon Josefsson  <jas@extundo.com>
26285
26286         * modules/sys_socket: New file.
26287
26288 2006-01-10  Simon Josefsson  <jas@extundo.com>
26289
26290         * m4/sys_socket_h.m4: New file.
26291
26292 2006-01-10  Simon Josefsson  <jas@extundo.com>
26293
26294         * lib/socket_.h: New file.
26295
26296 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26297
26298         * modules/readutmp (Maintainer): Add myself.
26299
26300 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26301
26302         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26303         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26304         People who are still concerned with buggy memcmp implementations
26305         can invoke gl_FUNC_MEMCMP themselves.
26306
26307 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26308
26309         * lib/regex_internal.h (BITSET_WORD_BITS):
26310         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26311         preprocessor mishandles large unsigned values as if they were signed.
26312         Problem reported by Claudio Fontana in
26313         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26314
26315 2006-01-10  Jim Meyering  <jim@meyering.net>
26316
26317         Avoid the double-free (first in fts_read, second in fts_close) that
26318         would occur when an `active' directory is made inaccessible (e.g.,
26319         via chmod a-x) during a traversal.
26320         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26321         before returning.  Reproduce this failure by
26322         mkdir -p a/b; cd a; chmod a-x . b
26323         Reported by Stavros Passas.
26324
26325         Sync from coreutils.
26326         * lib/sha1.c: Tweak grammar in a comment.
26327
26328 2006-01-10  Jim Meyering  <jim@meyering.net>
26329
26330         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26331         Patch by Joerg Sonnenberger.
26332
26333 2006-01-10  Bruno Haible  <bruno@clisp.org>
26334
26335         * modules/readutmp: Depend on module free.
26336         * modules/strtok_r: Depend on module restrict.
26337
26338 2006-01-10  Bruno Haible  <bruno@clisp.org>
26339
26340         * modules/gettext (configure.ac): Add an invocation of
26341         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26342
26343 2006-01-10  Bruno Haible  <bruno@clisp.org>
26344
26345         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26346         Reported by Werner Lemberg <wl@gnu.org>.
26347
26348 2006-01-10  Bruno Haible  <bruno@clisp.org>
26349
26350         * lib/localcharset.c: Update from GNU gettext.
26351
26352 2006-01-10  Bruno Haible  <bruno@clisp.org>
26353
26354         * lib/argp.h (__const): Remove macro. Use const instead.
26355         * lib/argp-fmtstream.h (__const): Likewise.
26356         * lib/glob_.h (__const): Remove macro.
26357         * lib/glob-libc.h: Use const instead of __const.
26358
26359 2006-01-10  Bruno Haible  <bruno@clisp.org>
26360
26361         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26362         variable.
26363         Needed to avoid an automake error regarding the 'gettext' module.
26364
26365 2006-01-09  Simon Josefsson  <jas@extundo.com>
26366
26367         * modules/inet_ntop (Depends-on): Add restrict.
26368
26369 2006-01-09  Simon Josefsson  <jas@extundo.com>
26370
26371         * modules/gc-rijndael-tests (License): Put under LGPL.
26372
26373         * modules/gc-des-tests (License): Likewise.
26374
26375         * modules/gc-arcfour-tests (License): Likewise.
26376
26377         * modules/gc-arctwo-tests (License): Likewise.
26378
26379         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
26380
26381         * modules/gc-hmac-sha1-tests (Files): Likewise.
26382
26383         * modules/gc-hmac-md5-tests (License): Likewise.
26384
26385         * modules/gc-sha1-tests (License): Likewise.
26386
26387         * modules/gc-md5-tests (License): Likewise.
26388
26389         * modules/gc-md4-tests (License): Likewise.
26390
26391         * modules/gc-md2-tests (License): Likewise.
26392
26393         * modules/gc-tests (License): Likewise.
26394
26395         * modules/des-tests (License): Likewise.
26396
26397         * modules/md4-tests (License): Likewise.
26398
26399         * modules/md2-tests (License): Likewise.
26400
26401 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26402
26403         Sync from coreutils:
26404
26405         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26406         * modules/lib-ignore: New file.
26407         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26408         chdir-safer.m4, lchmod.m4.
26409         * modules/openat: Add mkdirat.c, openat-priv.h.
26410
26411 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26412
26413         Sync from coreutils.
26414         * m4/lib-ignore.m4: New file.
26415         * m4/lchmod.m4: New file.
26416
26417 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26418
26419         Sync from coreutils.
26420         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
26421         for write access: POSIX says that must fail.
26422         * lib/fts.c (diropen): Likewise.
26423         * lib/save-cwd.c (save_cwd): Likewise.
26424         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
26425         well, for minor improvements on hosts that lack O_DIRECTORY.
26426         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
26427         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
26428         Fall back on chown if open failed with EACCES.
26429
26430         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
26431         Report an error at compile-time if only a 1-second nominal clock
26432         resolution is found.
26433
26434         * lib/lchmod.h: New file.
26435         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
26436         (make_dir_parents): Use lchown rather than chown, and
26437         lchmod rather than chmod.
26438
26439         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
26440         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
26441         "proc" reported by n0dalus.
26442
26443         * lib/mountlist.c: Include <limits.h>.
26444         (dev_from_mount_options)
26445         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
26446         New function.  It no longer assumes "dev=" has the System V meaning
26447         on Linux (since it doesn't).  It also parses "dev=" more carefully.
26448         (read_file_system_list)
26449         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
26450         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
26451         dev= in that case.
26452
26453         * lib/posixtm.h (PDS_PRE_2000): New macro.
26454         * lib/posixtm.c (year): Arg is now syntax_bits rather than
26455         allow_century.  All usages changed.  Reject dates outside the range
26456         1969-1999 if PDS_PRE_2000 is used.
26457
26458 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26459
26460         Sync from coreutils.
26461         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
26462         (Time of day items): Mention the possibility of leap seconds.
26463         Problem reported by Dr. David Alan Gilbert.
26464
26465 2006-01-09  Jim Meyering  <jim@meyering.net>
26466
26467         Sync from coreutils.
26468
26469         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
26470
26471         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
26472
26473         * lib/modechange.c (mode_compile): Reject an invalid mode string
26474         that starts with an octal digit.  From Andreas Gruenbacher.
26475
26476         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
26477         and dup to open_safer and dup_safer, respectively.
26478         (openat_permissive): Fix typo in comment.
26479
26480         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
26481         "gettext.h"; either no longer needed or are guaranteed by openat.h.
26482         (_): Remove; no longer needed.
26483         (openat): Renamed from rpl_openat; no need for rpl_openat
26484         since openat.h renames openat for us.
26485         Replace most of the body with a call to openat_permissive,
26486         to avoid duplicate code.
26487         Port to (probably hypothetical) environments were mode_t is
26488         wider than int.
26489         (openat_permissive): Require mode arg, so that we can check
26490         types better.  Put it just after flags.  Change cwd failure
26491         indicator from pointer-to-bool to pointer-to-errno-value.
26492         All callers changed.
26493         Invoke openat_save_fail and/or openat_restore_fail if
26494         cwd_errno is null, so that openat can call us.
26495         (openat_permissive, fdopendir, fstatat, unlinkat):
26496         Simplify errno handling to avoid some duplicate code,
26497         as it's OK to set errno on success.
26498         * lib/openat.h: Revamp code so that function macros depend on
26499         __OPENAT_PREFIX only, not also on AT_FDCWD.
26500         (openat_ro): Remove.  Caller changed to use openat_permissive.
26501         (openat_permissive): Now a macro, if not a function.
26502         (openat_restore_fail, openat_save_fail): Now always functions,
26503         since mkdirat needs them even if __OPENAT_PREFIX is defined.
26504
26505         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
26506         and openat.c.
26507         * lib/mkdirat.c: Include openat-priv.h.
26508         Remove definitions of macros defined therein.
26509         * lib/openat.c: Likewise.
26510
26511         * lib/mkdirat.c (mkdirat): New file and function.
26512         * lib/openat.h (mkdirat): Declare.
26513
26514         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
26515
26516         * lib/openat.h (openat_permissive): Declare.
26517         (openat_ro): Define.
26518
26519         * lib/openat.c (EXPECTED_ERRNO): New macro.
26520         (openat_permissive): New function -- used in remove.c rewrite.
26521         (all functions): Set errno just before returning, only if there
26522         was an actual failure.
26523         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
26524
26525         Emulate openat-family functions using Linux's procfs, if possible.
26526         Idea and some code based on Ulrich Drepper's glibc changes.
26527
26528         * lib/openat.c: (BUILD_PROC_NAME): New macro.
26529         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
26530         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
26531         before falling back on save_cwd and restore_cwd.
26532         (fdopendir, fstatat, unlinkat): Likewise.
26533
26534         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
26535         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
26536
26537         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
26538         as second argument to va_arg.  Otherwise, some versions of gcc
26539         warn that `if this code is reached, the program will abort'.
26540
26541 2006-01-09  Jim Meyering  <jim@meyering.net>
26542
26543         Sync from coreutils.
26544         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
26545         Require openat-priv.h.
26546
26547 2006-01-09  Bruno Haible  <bruno@clisp.org>
26548
26549         * modules/strnlen (Include): Use strnlen.h.
26550
26551 2006-01-09  Bruno Haible  <bruno@clisp.org>
26552
26553         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
26554
26555 2006-01-09  Bruno Haible  <bruno@clisp.org>
26556
26557         * lib/sysexit_.h (EX_OK): New macro.
26558         Suggested by Martin Lambers <marlam@marlam.de>.
26559
26560 2006-01-09  Bruno Haible  <bruno@clisp.org>
26561
26562         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
26563         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
26564
26565 2006-01-09  Bruno Haible  <bruno@clisp.org>
26566
26567         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
26568         numbers.
26569
26570 2006-01-09  Bruno Haible  <bruno@clisp.org>
26571
26572         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
26573         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
26574         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
26575         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
26576
26577 2006-01-09  Bruno Haible  <bruno@clisp.org>
26578
26579         * build-aux/javacomp.sh.in: New file, moved from lib/.
26580         * modules/javacomp-script (Files): Update.
26581         (configure.ac): Add AC_CONFIG_FILES invocation.
26582         (EXTRA_DIST): Remove variable.
26583
26584         * build-aux/javaexec.sh.in: New file, moved from lib/.
26585         * modules/javaexec (Files): Update.
26586         (configure.ac): Add AC_CONFIG_FILES invocation.
26587         (EXTRA_DIST): Remove javaexec.sh.in.
26588
26589         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
26590         * modules/csharpcomp-script (Files): Update.
26591         (configure.ac): Add AC_CONFIG_FILES invocation.
26592         (EXTRA_DIST): Remove variable.
26593
26594         * build-aux/csharpexec.sh.in: New file, moved from lib/.
26595         * modules/csharpexec (Files): Update.
26596         (configure.ac): Add AC_CONFIG_FILES invocation.
26597         (EXTRA_DIST): Remove csharpexec.sh.in.
26598
26599 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26600
26601         Sync from coreutils.
26602
26603         Add POSIX ACL support
26604         * lib/acl.h (copy_acl, set_acl): Add declarations.
26605         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
26606         systems other than Linux.
26607         (chmod_or_fchmod): New function: use fchmod when possible,
26608         and chmod otherwise.
26609         (file_has_acl): Add a POSIX ACL implementation, with a
26610         Linux-specific subcase.
26611         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
26612         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
26613         acls are unsupported.
26614         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
26615         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
26616         are unsupported.
26617
26618 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26619
26620         Sync from coreutils.
26621         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
26622
26623 2006-01-07  Bruno Haible  <bruno@clisp.org>
26624
26625         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
26626         gl_EARLY.
26627
26628 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26629
26630         * lib/strftime.c (tzname): Don't declare if it is already #defined.
26631         Problem reported for Mingw by Mark Junker.
26632
26633 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26634
26635         * README: Gnulib normally doesn't generate a tarball.
26636
26637 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26638
26639         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
26640         long int, not int, for nanosecond counts, so that people who are
26641         used to POSIX struct timespec won't be surprised.  Reported by Jim
26642         Meyering.
26643
26644 2005-12-28  Bruno Haible  <bruno@clisp.org>
26645
26646         * build-aux/config.rpath: Update from GNU gettext.
26647
26648 2005-12-16  Jim Meyering  <jim@meyering.net>
26649
26650         * modules/fprintftime: New module.
26651         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
26652
26653 2005-12-16  Jim Meyering  <jim@meyering.net>
26654
26655         * m4/fprintftime.m4: New file.
26656
26657 2005-12-16  Jim Meyering  <jim@meyering.net>
26658
26659         * lib/fprintftime.c, lib/fprintftime.h: New files.
26660
26661 2005-12-15  Simon Josefsson  <jas@extundo.com>
26662
26663         * modules/socklen (configure.ac): Fix M4 macro name, to align with
26664         new m4/socklen.m4.
26665
26666 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26667
26668         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
26669         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
26670
26671 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26672
26673         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
26674         * lib/argp-help.c (fill_in_uparams): Check if the constructed
26675         struct uparams is valid. Fall back to the default values if it is
26676         not.
26677
26678 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26679
26680         * modules/argp (Files): Add argp-pin.c
26681         (Depends-on): dirname
26682         (lib_SOURCES): Add argp-pin.c
26683
26684 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26685
26686         * m4/argp.m4:  Check if program_invocation_name and
26687         program_invocation_short_name are declared and define appropriate
26688         macros if they are not.
26689
26690 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26691
26692         * lib/argp-help.c (__argp_base_name): New function
26693         (__argp_short_program_name): Rewrite using __argp_base_name
26694         * lib/argp-namefrob.h: Define program_invocation_name and
26695         program_invocation_short_name if requested
26696         (__argp_base_name): Add prototype
26697         * lib/argp-parse.c (argp_def): Use gettext wrappers
26698         (argp_default_parser): Use __argp_base_name
26699         * lib/argp-pin.c: New file. Defines program_invocation_name and
26700         program_invocation_short_name on systems that lack them.
26701
26702 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26703
26704         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
26705         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26706         porting problem reported by Georg Schwarz in
26707         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26708
26709 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26710
26711         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
26712         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26713         porting problem reported by Georg Schwarz in
26714         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26715
26716 2005-12-05  Bruno Haible  <bruno@clisp.org>
26717
26718         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
26719         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
26720         Reported by Mark Junker <mjscod@gmx.de>.
26721
26722 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26723
26724         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
26725         Use implementation from Albert Chin, with some
26726         comments/corrections by Stepan Kasal and myself.
26727
26728 2005-12-02  Bruno Haible  <bruno@clisp.org>
26729
26730         * gnulib-tool (func_import): Accept GPLed build tool modules when
26731         --lgpl is given.
26732         * modules/csharpcomp-script: New file.
26733         * modules/csharpcomp: Depend on it.
26734         * modules/javacomp-script: New file.
26735         * modules/javacomp: Depend on it.
26736         Suggested by Simon Josefsson.
26737
26738 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26739
26740         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
26741         statement, to work around an HP-UX 10.20 compiler bug reported by
26742         Peter O'Gorman.
26743
26744 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26745
26746         * modules/savedir (Depends-on): Add openat.
26747
26748 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26749
26750         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
26751         (uintmax_t) [defined uintmax_t]: Do not declare.
26752         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
26753         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
26754         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
26755         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
26756         sake of portability to weird hosts that C allows (though we don't
26757         know of any practical examples).
26758
26759         * lib/savedir.h (fdsavedir): New decl.
26760         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
26761         contains most of the former guts of savedir.
26762         (savedir): Use savedirstream.
26763         Include "openat.h".
26764
26765 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26766
26767         * modules/obstack (Files): Add m4/ulonglong.m4.
26768         Problem reported by Davide Angelocola.
26769
26770 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26771
26772         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
26773         coreutils no longer futzes with rounding modes.
26774
26775 2005-11-14  Jim Meyering  <jim@meyering.net>
26776
26777         * lib/mkstemp-safer.c: Include <config.h>, required for possible
26778         replacement of mkstemp.
26779
26780 2005-11-10  Simon Josefsson  <jas@extundo.com>
26781
26782         * lib/readline.c: Remove EOL.
26783
26784 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26785
26786         * modules/gethrxtime (Depends-on): Add gettime.
26787
26788 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26789
26790         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
26791         or gettimeofday; no longer needed.
26792
26793 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26794
26795         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
26796         time business.
26797         (gethrxtime) [! (HAVE_NANOUPTIME
26798         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
26799         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
26800         our own approximation.
26801
26802 2005-11-08  Eric Blake  <ebb9@byu.net>
26803
26804         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26805
26806 2005-11-08  Eric Blake  <ebb9@byu.net>
26807
26808         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26809
26810 2005-11-04  Bruno Haible  <bruno@clisp.org>
26811
26812         * gnulib-tool: Implement --update mode.
26813
26814 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26815
26816         Fix porting problem reported by Theodoros V. Kalamatianos.
26817         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
26818         Don't assume that futimes failing means we must fail.
26819
26820 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26821
26822         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
26823         variables to suggest the intended function of the PATH_MAX check.
26824
26825 2005-10-30  Kean Johnston  <jkj@sco.com>
26826
26827         Trivial changes to support SCO systems.
26828         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
26829         as PATH_MAX.
26830         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
26831         where __ptr is null when no I/O is pending.
26832
26833 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26834
26835         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
26836         leave errno alone.  Problem reported by Dmitry V. Levin.
26837
26838 2005-10-28  Simon Josefsson  <jas@extundo.com>
26839
26840         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
26841         Test more.
26842
26843         * tests/test-gc-md2.c, tests/test-md2.c: New files.
26844
26845         * modules/md2, modules/md2-tests: New files.
26846
26847 2005-10-28  Simon Josefsson  <jas@extundo.com>
26848
26849         * m4/inet_ntop.m4: More tests.
26850
26851         * m4/gc-md2.m4, md2.m4: New file.
26852
26853 2005-10-28  Simon Josefsson  <jas@extundo.com>
26854
26855         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
26856         "restrict" keywords, as per POSIX.  Protect the function
26857         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
26858         Don't use K&R prototypes.  Check the sprintf return values.
26859         Re-define EAFNOSUPPORT if not present.  Indent.
26860
26861         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
26862         suggested by Bruno Haible <bruno@clisp.org>.
26863
26864         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
26865
26866         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
26867
26868         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
26869         libgcrypt).
26870
26871         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
26872
26873         * lib/md2.h, lib/md2.c: New files.
26874
26875 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
26876
26877         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
26878         errno alone.  Problem reported by Frederic Jolliton.
26879
26880 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26881
26882         * modules/verify (License): Change from GPL to LGPL.  This is a
26883         tiny module and there are apparently near-equivalents that are
26884         under the BSD license.
26885
26886 2005-10-24  Simon Josefsson  <jas@extundo.com>
26887
26888         * modules/sha1: Relicense to LGPL.
26889
26890 2005-10-24  Simon Josefsson  <jas@extundo.com>
26891
26892         * lib/md4.h: Shrink buffer size, now that we changed the type.
26893
26894 2005-10-23  Simon Josefsson  <jas@extundo.com>
26895
26896         * gnulib-tool (func_import): Fix --tests-base.
26897
26898 2005-10-22  Simon Josefsson  <jas@extundo.com>
26899
26900         * modules/arcfour (Depends-on): Need stdint.
26901
26902 2005-10-22  Simon Josefsson  <jas@extundo.com>
26903
26904         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
26905         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
26906
26907 2005-10-22  Simon Josefsson  <jas@extundo.com>
26908
26909         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
26910         suggested by Bruno Haible <bruno@clisp.org>.
26911
26912 2005-10-22  Simon Josefsson  <jas@extundo.com>
26913
26914         * lib/crc.h: Include stddef.h, for size_t.
26915
26916 2005-10-22  Simon Josefsson  <jas@extundo.com>
26917
26918         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
26919         arcfour_context struct (simplify test vector testing in GNU
26920         Shishi).
26921
26922 2005-10-21  Simon Josefsson  <jas@extundo.com>
26923
26924         * modules/des, modules/des-tests: New files.
26925
26926         * modules/gc-des, modules/gc-des-tests: New files.
26927
26928         * tests/test-des.c, tests/test-gc-des.c: New file.
26929
26930 2005-10-21  Simon Josefsson  <jas@extundo.com>
26931
26932         * modules/arctwo, modules/arctwo-tests: New files.
26933
26934         * tests/test-arctwo.c: New file.
26935
26936         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
26937
26938         * tests/test-gc-arctwo.c: New file.
26939
26940 2005-10-21  Simon Josefsson  <jas@extundo.com>
26941
26942         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
26943         Bruno Haible <bruno@clisp.org>.
26944
26945         * m4/gc-des.m4: New file.
26946
26947 2005-10-21  Simon Josefsson  <jas@extundo.com>
26948
26949         * m4/arctwo.m4: New file.
26950
26951         * m4/gc-arctwo.m4: New file.
26952
26953 2005-10-21  Simon Josefsson  <jas@extundo.com>
26954
26955         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
26956         block.
26957
26958 2005-10-21  Simon Josefsson  <jas@extundo.com>
26959
26960         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
26961         <bruno@clisp.org>.
26962
26963         * lib/hmac-sha1.c (hmac_sha1): Likewise.
26964
26965         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
26966         Bruno Haible <bruno@clisp.org>.
26967
26968         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
26969         <bruno@clisp.org>.
26970
26971 2005-10-21  Simon Josefsson  <jas@extundo.com>
26972
26973         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
26974
26975 2005-10-21  Simon Josefsson  <jas@extundo.com>
26976
26977         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
26978
26979 2005-10-21  Simon Josefsson  <jas@extundo.com>
26980
26981         * lib/des.h, lib/des.c: New files.
26982
26983         * lib/gc-gnulib.c: Support DES.c
26984
26985 2005-10-21  Simon Josefsson  <jas@extundo.com>
26986
26987         * lib/arctwo.h, lib/arctwo.c: New files.
26988
26989         * lib/gc-gnulib.c: Support ARCTWO.
26990
26991 2005-10-21  Simon Josefsson  <jas@extundo.com>
26992
26993         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
26994         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26995
26996 2005-10-21  Simon Josefsson  <jas@extundo.com>
26997
26998         * gnulib-tool (func_import, func_create_testdir): Define automake
26999         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
27000         Makefile.am snippet),
27001         suggested by Bruno Haible <bruno@clisp.org>.
27002
27003         * modules/gc (Makefile.am): Use it.
27004
27005 2005-10-21  Bruno Haible  <bruno@clisp.org>
27006
27007         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
27008         patch.
27009
27010 2005-10-19  Simon Josefsson  <jas@extundo.com>
27011
27012         * tests/test-gc-rijndael.c: New file.
27013
27014         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
27015
27016 2005-10-19  Simon Josefsson  <jas@extundo.com>
27017
27018         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
27019         interface too.
27020
27021 2005-10-19  Simon Josefsson  <jas@extundo.com>
27022
27023         * tests/test-gc-arcfour.c: New file.
27024
27025         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
27026
27027 2005-10-19  Simon Josefsson  <jas@extundo.com>
27028
27029         * modules/gc-md4, modules/gc-md4-tests: New file.
27030
27031         * tests/test-gc-md4.c: New file.
27032
27033 2005-10-19  Simon Josefsson  <jas@extundo.com>
27034
27035         * m4/gc-md4.m4: New file.
27036
27037 2005-10-19  Simon Josefsson  <jas@extundo.com>
27038
27039         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
27040         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
27041         <kasal@ucw.cz>.
27042
27043 2005-10-19  Simon Josefsson  <jas@extundo.com>
27044
27045         * m4/gc-arcfour.m4: New file.
27046
27047         * m4/gc-rijndael.m4: New file.
27048
27049 2005-10-19  Simon Josefsson  <jas@extundo.com>
27050
27051         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
27052
27053 2005-10-19  Simon Josefsson  <jas@extundo.com>
27054
27055         * lib/gc-gnulib.c: Support ARCFOUR.
27056
27057 2005-10-19  Simon Josefsson  <jas@extundo.com>
27058
27059         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
27060         support.
27061
27062         * lib/gc.h: Add ECB enum type.
27063
27064         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
27065
27066 2005-10-18  Simon Josefsson  <jas@extundo.com>
27067
27068         * tests/test-md5.c: New file.
27069
27070         * modules/md5-tests: New file.
27071
27072 2005-10-18  Simon Josefsson  <jas@extundo.com>
27073
27074         * tests/test-md4.c: New file.
27075
27076         * modules/md4, modules/md4-tests: New files.
27077
27078 2005-10-18  Simon Josefsson  <jas@extundo.com>
27079
27080         * m4/md4.m4: New file.
27081
27082 2005-10-18  Simon Josefsson  <jas@extundo.com>
27083
27084         * lib/md4.h, lib/md4.c: New files, based on md5.?.
27085
27086 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
27087
27088         * gnulib-tool (func_create_testdir): Omit the second check whether
27089         BUILT_SOURCES in nonempty.
27090
27091 2005-10-17  Simon Josefsson  <jas@extundo.com>
27092
27093         * tests/test-rijndael.c: New file.
27094
27095 2005-10-17  Simon Josefsson  <jas@extundo.com>
27096
27097         * modules/sha1: Depend on stdint instead of md5.
27098
27099         * modules/md5: Depend on stdint, remove uint32_t.
27100
27101 2005-10-17  Simon Josefsson  <jas@extundo.com>
27102
27103         * modules/gc-sha1-tests: New file.
27104
27105         * tests/test-gc-sha1.c: New file.
27106
27107 2005-10-17  Simon Josefsson  <jas@extundo.com>
27108
27109         * m4/md5.m4: Remove call to uint32_t.m4.
27110
27111 2005-10-17  Simon Josefsson  <jas@extundo.com>
27112
27113         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
27114
27115         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
27116         md5.h.
27117
27118         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
27119
27120         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
27121
27122 2005-10-17  Simon Josefsson  <jas@extundo.com>
27123
27124         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
27125
27126 2005-10-17  Simon Josefsson  <jas@extundo.com>
27127
27128         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
27129
27130 2005-10-17  Simon Josefsson  <jas@extundo.com>
27131
27132         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
27133
27134         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
27135
27136 2005-10-17  Bruno Haible  <bruno@clisp.org>
27137
27138         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
27139         that it can also be used in a test.
27140
27141 2005-10-16  Bruno Haible  <bruno@clisp.org>
27142
27143         * gnulib-tool (func_emit_tests_Makefile_am): Also define
27144         TESTS_ENVIRONMENT, so that individual tests can augment it.
27145
27146         * gnulib-tool (func_create_testdir): Use an intermediate target for
27147         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
27148         macros, like $(ALLOCA_H), which cannot be passed through the command
27149         line.
27150
27151 2005-10-15  Simon Josefsson  <jas@extundo.com>
27152
27153         * modules/rijndael-tests: New file.
27154
27155         * modules/rijndael: New file.
27156
27157 2005-10-15  Simon Josefsson  <jas@extundo.com>
27158
27159         * m4/rijndael.m4: New file.
27160
27161 2005-10-15  Simon Josefsson  <jas@extundo.com>
27162
27163         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
27164
27165         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
27166
27167 2005-10-14  Simon Josefsson  <jas@extundo.com>
27168
27169         * tests/test-arcfour.c: New file.
27170
27171         * modules/arcfour, modules/arcfour-tests: New files.
27172
27173 2005-10-14  Simon Josefsson  <jas@extundo.com>
27174
27175         * m4/arcfour.m4: New file.
27176
27177 2005-10-14  Simon Josefsson  <jas@extundo.com>
27178
27179         * lib/arcfour.h, lib/arcfour.c: New files.
27180
27181 2005-10-14  Roland McGrath  <roland@redhat.com>
27182
27183         Import from libc.  [BZ #1331]
27184         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
27185         macro argument.
27186         Reported by Matej Vela <vela@debian.org>.
27187
27188 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27189
27190         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
27191         include <wchar.h>; no longer needed.
27192
27193 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27194
27195         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
27196
27197 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
27198         and  Ulrich Drepper  <drepper@redhat.com>
27199
27200         Import from libc.
27201         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
27202         instead of inline stream orientation test and two separate
27203         function calls.  Pay no attention to USE_IN_LIBIO.
27204
27205 2005-10-13  Simon Josefsson  <jas@extundo.com>
27206
27207         * modules/gc-hmac-md5-tests: New file.
27208
27209         * tests/test-gc-hmac-sha1.c: New file.
27210
27211         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
27212
27213         * modules/gc-hmac-md5-tests: New file.
27214
27215         * tests/test-gc-md5.c: New file.
27216
27217         * modules/gc-md5-tests: New file.
27218
27219 2005-10-13  Simon Josefsson  <jas@extundo.com>
27220
27221         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
27222         Move memory allocation outside of loop.
27223
27224 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27225
27226         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
27227         intermediate directory is in a read-only file system.  Problem
27228         reported by Eric Blake.
27229
27230 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
27231
27232         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
27233
27234 2005-10-12  Simon Josefsson  <jas@extundo.com>
27235
27236         * tests/test-hmac-sha1.c: New file.
27237
27238         * modules/hmac-sha1-tests: New file.
27239
27240         * modules/hmac-sha1: New file.
27241
27242 2005-10-12  Simon Josefsson  <jas@extundo.com>
27243
27244         * modules/gc-sha1: New file.
27245
27246 2005-10-12  Simon Josefsson  <jas@extundo.com>
27247
27248         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
27249
27250         * tests/test-gc-pbkdf2-sha1.c: New file.
27251
27252 2005-10-12  Simon Josefsson  <jas@extundo.com>
27253
27254         * modules/gc-md5, modules/gc-hmac-md5: New files.
27255
27256         * modules/gc (Files): Remove md5, memxor and hmac files.
27257
27258 2005-10-12  Simon Josefsson  <jas@extundo.com>
27259
27260         * m4/gc-pbkdf2-sha1.m4: New file.
27261
27262         * m4/gc-hmac-sha1.m4: New file.
27263
27264         * m4/gc-sha1: New file.
27265
27266         * m4/hmac-sha1.m4: New file.
27267
27268 2005-10-12  Simon Josefsson  <jas@extundo.com>
27269
27270         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
27271
27272         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
27273
27274 2005-10-12  Simon Josefsson  <jas@extundo.com>
27275
27276         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
27277         suggested by Bruno Haible <bruno@clisp.org>.
27278
27279 2005-10-12  Simon Josefsson  <jas@extundo.com>
27280
27281         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27282
27283 2005-10-12  Simon Josefsson  <jas@extundo.com>
27284
27285         * lib/gc-pbkdf2-sha1.c: New file.
27286
27287         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27288
27289 2005-10-12  Simon Josefsson  <jas@extundo.com>
27290
27291         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27292
27293         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27294
27295 2005-10-12  Simon Josefsson  <jas@extundo.com>
27296
27297         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27298         GC_USE_HMAC_MD5, respectively.
27299
27300         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27301         (gc_md5): Fix typo.
27302
27303         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27304
27305         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27306
27307         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27308
27309 2005-10-12  Bruno Haible  <bruno@clisp.org>
27310
27311         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27312         Reported by Stepan Kasal <kasal@ucw.cz>.
27313
27314 2005-10-11  Simon Josefsson  <jas@extundo.com>
27315
27316         * tests/test-crc.c: New file.
27317
27318         * modules/crc, modules/crc-tests: New files.
27319
27320 2005-10-11  Simon Josefsson  <jas@extundo.com>
27321
27322         * m4/crc.m4: New file.
27323
27324 2005-10-11  Simon Josefsson  <jas@extundo.com>
27325
27326         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27327
27328         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27329
27330         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27331
27332 2005-10-11  Simon Josefsson  <jas@extundo.com>
27333
27334         * lib/crc.h, lib/crc.c: New files.
27335
27336         * lib/gc.h (gc_hash_buffer): Add doc.
27337
27338 2005-10-11  Bruno Haible  <bruno@clisp.org>
27339
27340         * modules/c-strcasestr: New file.
27341         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27342
27343 2005-10-11  Bruno Haible  <bruno@clisp.org>
27344
27345         * modules/c-strcase: New file.
27346         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27347
27348 2005-10-11  Bruno Haible  <bruno@clisp.org>
27349
27350         * lib/strcasecmp.c: Include limits.h.
27351         (strcasecmp): Avoid integer overflow on exotic platforms.
27352         * lib/strncasecmp.c: Include limits.h.
27353         (strncasecmp): Avoid integer overflow on exotic platforms.
27354         Reported by Paul Eggert.
27355
27356 2005-10-11  Bruno Haible  <bruno@clisp.org>
27357
27358         * lib/c-strcasestr.h: New file, from GNU gettext.
27359         * lib/c-strcasestr.c: New file, from GNU gettext.
27360
27361 2005-10-11  Bruno Haible  <bruno@clisp.org>
27362
27363         * lib/c-strcase.h: New file, from GNU gettext.
27364         * lib/c-strcasecmp.c: New file, from GNU gettext.
27365         * lib/c-strncasecmp.c: New file, from GNU gettext.
27366
27367 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27368
27369         * modules/mempcpy (License): GPL -> LGPL.
27370         * modules/strchrnul (License): Likewise.
27371         * modules/sysexits (License): Likewise.
27372
27373 2005-10-08  Simon Josefsson  <jas@extundo.com>
27374
27375         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27376
27377 2005-10-07  Simon Josefsson  <jas@extundo.com>
27378
27379         * m4/memxor.m4: Remove gl_C_RESTRICT call.
27380
27381 2005-10-06  Simon Josefsson  <jas@extundo.com>
27382
27383         * tests/test-hmac-md5.c: New file.
27384
27385         * modules/hmac-md5-tests: New file.
27386
27387         * modules/hmac-md5: New file.
27388
27389 2005-10-06  Simon Josefsson  <jas@extundo.com>
27390
27391         * m4/hmac-md5.m4: New file.
27392
27393         * m4/memxor.m4: Require gl_C_RESTRICT.
27394
27395 2005-10-06  Simon Josefsson  <jas@extundo.com>
27396
27397         * lib/memxor.c (memxor): Avoid casts and warnings.
27398
27399 2005-10-06  Simon Josefsson  <jas@extundo.com>
27400
27401         * lib/hmac-md5.c: New file.
27402
27403         * lib/hmac.h: New file.
27404
27405 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27406
27407         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27408         promotes to int, not unsigned int, to catch the AIX 5.3
27409         compiler bug.
27410
27411 2005-10-05  Simon Josefsson  <jas@extundo.com>
27412
27413         * modules/memxor: New file.
27414
27415         * modules/iconv (Files): Move config.rpath to havelib, it is used
27416         there.
27417
27418         * modules/havelib (Files): Add config.rpath.
27419
27420 2005-10-05  Simon Josefsson  <jas@extundo.com>
27421
27422         * m4/memxor.m4: New file.
27423
27424 2005-10-05  Simon Josefsson  <jas@extundo.com>
27425
27426         * lib/memxor.c (memxor): Fix compiler error.
27427
27428         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
27429         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
27430
27431         * lib/memxor.h, lib/memxor.c: New files.
27432
27433         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
27434         we assume all systems have it, suggested by Jim Meyering
27435         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
27436         any systems lack sys/socket.h; mingw32 is known to lack it, but we
27437         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
27438         same reasons.
27439
27440 2005-10-05  Simon Josefsson  <jas@extundo.com>
27441
27442         * config/srclist.txt: Add glibc bug 1423 for md5.h.
27443
27444 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27445
27446         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
27447         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
27448         needed, since the source code now assumes these .h files.
27449
27450 2005-10-05  Derek Price  <derek@ximbiot.com>
27451
27452         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
27453
27454 2005-10-05  Bruno Haible  <bruno@clisp.org>
27455
27456         * modules/stdint (License): Change to LGPL.
27457
27458 2005-10-04  Simon Josefsson  <jas@extundo.com>
27459
27460         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
27461         D. Baushke" <mdb@gnu.org>.
27462
27463 2005-10-04  Bruno Haible  <bruno@clisp.org>
27464
27465         * lib/verify.h (verify_true): Provide alternative definition for C++.
27466
27467 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27468
27469         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
27470         (SSIZE_MAX): New macro, if not already defined.
27471         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
27472         than 2 GiB.
27473
27474 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27475
27476         Sync from coreutils.
27477         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
27478         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
27479         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
27480         ULLONG_MAX doesn't work with 2.7.2.1.
27481
27482 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27483
27484         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
27485         From Ben Pfaff.
27486
27487         * modules/exclude (Depends-on): Depend on verify.
27488         * modules/strtoimax (Depends-on): Likewise.
27489         * modules/utimecmp (Depends-on): Likewise.
27490
27491 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27492
27493         * lib/exclude.c: Include verify.h.
27494         (verify): Remove.  All callers changed to use verify.h's version.
27495         * lib/strtoimax.c: Likewise.
27496         * lib/utimecmp.c: Likewis.e
27497
27498         Sync from coreutils.
27499         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
27500         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
27501         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
27502         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
27503         bother returning ENOSYS if settimeofday or stime fails; just let
27504         them return whatever errno they want to return.
27505         * lib/utimens.c: Include unistd.h, for dup2.
27506         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
27507         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
27508
27509 2005-10-02  Jim Meyering  <jim@meyering.net>
27510
27511         Sync from coreutils.
27512         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
27513         from glibc-2.2.5 that fails for read-only files.
27514
27515 2005-10-02  Jim Meyering  <jim@meyering.net>
27516
27517         Sync from coreutils.
27518         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
27519         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
27520         `#if HAVE_CONFIG_H'.
27521         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
27522         Remove AT_FDCWD test.
27523         Do not consume the fd unless successful.
27524         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
27525         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
27526         block, so that we don't even try to compile it if settimeofday is
27527         available.  This works around a compilation failure on OSF1 V5.1,
27528         due to stime requiring a `long int*' while tv_sec is `int'.
27529
27530 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
27531
27532         Sync from coreutils.
27533         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
27534         against `yes', rather than just testing for nonempty.
27535
27536 2005-10-01  Simon Josefsson  <jas@extundo.com>
27537
27538         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
27539         and Darwin.
27540
27541         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
27542         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
27543         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
27544         freeaddrinfo and gai_strerror are declared by the POSIX headers.
27545         Check if struct addrinfo is declared.
27546
27547 2005-10-01  Simon Josefsson  <jas@extundo.com>
27548
27549         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
27550         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
27551         AI_* and EAI_* definitions.  Protect function declarations.
27552
27553 2005-10-01  Jim Meyering  <jim@meyering.net>
27554
27555         Sync from coreutils.
27556
27557         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
27558         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
27559         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
27560         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27561         in the inet and nsl libraries.  Required on Solaris 5.7.
27562
27563 2005-10-01  Jim Meyering  <jim@meyering.net>
27564
27565         Sync from coreutils.
27566         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27567         in the inet and nsl libraries.  Required on Solaris 5.7.
27568
27569 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
27570
27571         * lib/getdelim.c (getdelim): Remove unused variables.
27572
27573 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
27574
27575         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
27576         so that the code works even with ancient cpp.  Portability problem
27577         with GCC 2.7.2.1 reported by Thomas M.Ott.
27578
27579 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
27580
27581         * modules/regex (Depends-on): Add strcase.
27582
27583         * modules/gethostname (Licence): Change from GPL to LGPL, since
27584         gethostname.c is a trivial implementation of a standard library
27585         function.
27586         * modules/poll (License): Change from GPL to LGPL, since it's
27587         derived from LGPL code.
27588
27589 2005-09-27  Jim Meyering  <jim@meyering.net>
27590
27591         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
27592         HAVE_CONFIG_H.
27593
27594         * lib/intprops.h (signed_type_or_expr__): Define.
27595         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
27596         for unsigned types.
27597
27598 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27599
27600         * lib/verify.h (verify_expr): Remove, replacing with:
27601         (verify_true): New macro that returns true instead of void.
27602         (verify_type__): Remove.
27603         (verify): Use verify_true rather than verify_type__.
27604
27605 2005-09-26  Bruno Haible  <bruno@clisp.org>
27606
27607         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
27608         is necessary.
27609         (lib_SOURCES): Remove mbchar.c.
27610         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
27611         (Files): Add m4/mbrtowc.m4.
27612         * modules/mbiter: Likewise.
27613         * modules/mbuiter: Likewise.
27614
27615 2005-09-26  Bruno Haible  <bruno@clisp.org>
27616
27617         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
27618         compile mbchar.c if they are not both present.
27619         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
27620         * m4/mbiter.m4 (gl_MBITER): Likewise.
27621         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
27622         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
27623         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
27624
27625 2005-09-25  Jim Meyering  <jim@meyering.net>
27626
27627         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
27628         also uses socklen_t.
27629
27630 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27631
27632         * lib/utimens.c (ENOSYS): Define if not already defined.
27633         (futimens): Support having a null PATH if the file descriptor
27634         is nonnegative.
27635
27636         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
27637         Remove.
27638         (__attribute): Define to empty unless GCC 3.1 or later.
27639         This works around a core dump on OpenBSD 3.4, which has GCC
27640         2.95.3, which dumps core when given __attribute__(()).  It also
27641         simplifies other tests, since we really don't want to bother with
27642         worrying about which ancient version of GCC supported what.
27643         Original problem reported by Yoann Vandoorselaere, with part of
27644         the fix suggested by Derek Price.
27645
27646 2005-09-24  Jim Meyering  <jim@meyering.net>
27647
27648         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
27649         so we can once again use a positive bitfield width of 1 -- now we
27650         don't have to explain why we were using a bitfield width of 2.
27651
27652 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27653
27654         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
27655         and similarly for the other external symbols.  Problem reported
27656         by James Gallager.
27657
27658         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
27659         bug reported by Jim Meyering.
27660
27661         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
27662         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
27663         not needed, since socklen is a prerequisite module.
27664
27665 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27666
27667         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
27668         Problem reported by Eric Blake.
27669         (getaddrinfo): Initialize se so that it's not garbage.
27670         Redo internal storage allocation so that it doesn't make unportable
27671         assumptions about alignment.
27672         Fix a memory leak.
27673
27674         * lib/utimens.c (futimens): Use futimesat if available.
27675         Prefer it to futimes since it doesn't have the futimes bug.
27676
27677         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
27678         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
27679         Instead, declare a function that returns a pointer to an array,
27680         and use verify_type__ to declare the size of the array.
27681         Problem and germ of a solution reported by Bruno Haible.
27682         (verify_type__): Use 2, not 1, for bitfield size, to avoid
27683         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
27684
27685 2005-09-23  Jim Meyering  <jim@meyering.net>
27686
27687         Sync from coreutils.
27688         Correct build failure (socklen_t not defined) on at least
27689         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27690         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27691
27692 2005-09-23  Jim Meyering  <jim@meyering.net>
27693
27694         * modules/getaddrinfo (Depends-on): Add socklen.
27695
27696 2005-09-23  Bruno Haible  <bruno@clisp.org>
27697
27698         * tests/test-verify.c: New file.
27699
27700 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27701
27702         Sync from coreutils.
27703
27704         * modules/argmatch (Depends-on): Add verify.
27705         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
27706         unistd-safer.
27707         * modules/save-cwd (Depends-on): Likewise.
27708
27709         * modules/openat (Files): Add lib/openat-die.c.
27710         (Depends-on): Remove error, exitfail.
27711         Add dirname.
27712
27713         * modules/verify: New file.
27714         * MODULES.html.sh (Diagnostics <assert.h>): New section,
27715         with "verify" module.
27716
27717 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27718
27719         Sync from coreutils.
27720
27721         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
27722         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
27723         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
27724         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
27725         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
27726         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
27727         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
27728         Don't bother checking for string.h, stdlib.h, unistd.h.
27729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
27730         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
27731         module's job.
27732         * m4/jm-macros.m4 (gl_MACROS): Likewise.
27733         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
27734
27735         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
27736         (gl_GETDATE): Use it.
27737
27738         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
27739
27740 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27741
27742         Sync from coreutils.
27743
27744         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
27745         stat-time.h.
27746         * lib/argmatch.h: Include verify.h
27747         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
27748         (ARGMATCH_ASSERT): Remove; unused.
27749         * lib/canonicalize.c: Assume STDC_HEADERS.
27750         * lib/exclude.c: Include "strcase.h".
27751         * lib/regex_internal.h [!defined _LIBC]: Likewise.
27752         * lib/getusershell.c: Include stdio--.h rather than stdio.h
27753         and stdio-safer.h.
27754         (getusershell): Call fopen, not fopen_safer.
27755         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
27756         Do not include unistd-safer.h.
27757         (save_cwd): Don't call fd_safer; no longer needed
27758         now that we include fcntl--.h.
27759
27760         * lib/getdate.y (relative_time): New type.
27761         (RELATIVE_TIME_0): New constant.
27762         (parser_control): Use relative_time instead of doing it ourselves.
27763         (%union): Add new relative_time rel member.
27764         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
27765         Now typeless.
27766         (relunit, relunit_snumber): Now of type rel.
27767         (zone, rel, relunit, get_date): Adjust to above changes.
27768
27769         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
27770         Do not include unistd-safer.h.
27771         (getloadavg): Don't call fd_safer; no longer needed
27772         now that we include fcntl--.h.
27773
27774         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
27775         (make_dir_parents): Treat ENOSYS like EEXIST.
27776
27777         Improve quality of diagnostics on restore_cwd failure.
27778         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
27779         (make_dir_parents): Last arg is now int * (for errno), not bool *.
27780         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
27781         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
27782         each time through the loop.  Do not diagnose restore_cwd failure;
27783         that is the caller's job (and perhaps the caller does not care).
27784
27785         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
27786         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
27787         If the file already exists but is not a directory, don't bother
27788         to try to make its parents.
27789         Close potential file descriptor leak if we can't chdir("/") (!).
27790         Don't always return true if chdir($PWD) fails; return true only
27791         if the requested action was done successfully (except for the
27792         chdir($PWD)).
27793         Don't log final directory unless we actually made it.
27794         Refactor to avoid duplicate code to fix up permissions.
27795         Don't attempt to fix up parent permissions if chdir($PWD) fails.
27796
27797         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
27798         to make it a bit faster and (I hope) clearer.
27799         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
27800         Fix bug in formats like %2N.
27801
27802         * lib/verify.h: New file.
27803
27804 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27805
27806         Sync from coreutils.
27807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
27808
27809 2005-09-22  Jim Meyering  <jim@meyering.net>
27810
27811         Sync from coreutils.
27812
27813         * m4/lstat.m4 (gl_FUNC_LSTAT):
27814         Use AC_LIBSOURCES to require lstat.c and lstat.h.
27815         Remove obsolete comment.
27816         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
27817         * m4/xstrtod.m4: Likewise.
27818
27819         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
27820
27821 2005-09-22  Jim Meyering  <jim@meyering.net>
27822
27823         Sync from coreutils.
27824
27825         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
27826
27827         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
27828         the .tm_year member, since otherwise gcc-4.0 would now warn about
27829         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
27830
27831         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
27832         order to avoid an unsuppressible warning from gcc on 64-bit systems.
27833
27834         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
27835         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
27836         when run in a time zone for which daylight savings time is in effect
27837         for the starting date.
27838
27839         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
27840         stop us from restricting permissions of just-created absolute-named
27841         directories.
27842         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
27843         to restore initial working directory.
27844         * lib/mkdir-p.c (make_dir_parents): New parameter:
27845         different_working_dir, to tell caller if/when we change the working
27846         directory and are unable to return to the initial one.
27847         * lib/mkdir-p.h (make_dir_parents): Update prototype.
27848         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
27849         `return false'.  This fixes a bug introduced on 2004-07-30.
27850
27851         * lib/openat.c (fdopendir): Be sure to close the supplied
27852         file descriptor before returning.  This makes our replacement
27853         implementation a little closer to Solaris's, where fdopendir
27854         ties the file descriptor to the returned DIR* pointer.
27855         * lib/openat.c (unlinkat): New function.
27856         * lib/openat.h (unlinkat): Add prototype.
27857         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
27858         (openat_restore_fail): Rename from openat_restore_die.
27859         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
27860
27861         Provide an alternative to exiting immediately upon save_cwd or
27862         restore_cwd failure.  Now, an application can arrange e.g.,
27863         to perform a longjump in that case.
27864         * lib/openat.c: Include dirname.h.
27865         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
27866         (rpl_openat, fdopendir, fstatat): Call openat_save_die
27867         and openat_restore_die rather than calling error directly.
27868         Don't include "error.h" or "exitfail.h"; they're no longer needed.
27869
27870         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
27871         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
27872         define.
27873
27874         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
27875         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
27876                             int utc, int nanoseconds);
27877         Background:
27878         date should not have to allocate a megabyte of virtual memory to
27879         handle a format argument like +%1048575T.  When implemented with
27880         strftime, it must allocate such a buffer, use strftime to fill it
27881         in, print it, then free it.
27882         With fprintftime, it simply prints everything and exits.
27883         With no need for memory allocation, that's one fewer way to fail.
27884         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
27885         optional field width, not before, so we accept %9:z, not %:9z.
27886         (my_strftime): Be sure to use L_('x') for literals.
27887
27888         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
27889         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
27890         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
27891         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
27892         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
27893         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
27894         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
27895         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
27896         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
27897         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
27898         * lib/xgethostname.c, lib/xreadlink.c:
27899         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
27900
27901         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
27902         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
27903         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
27904         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27905         and don't include <sys/file.h>).
27906
27907 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
27908
27909         Sync from coreutils.
27910
27911         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
27912         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
27913         [!LDAV_DONE]: Avoid unused variable warning.
27914
27915 2005-09-21  Bruno Haible  <bruno@clisp.org>
27916
27917         * lib/unicodeio.h (unicode_to_mb): New declaration.
27918
27919 2005-09-20  Derek Price  <derek@ximbiot.com>
27920
27921         * lib/getaddrinfo.c: Don't include <netdb.h> included from
27922         getaddrinfo.h.
27923
27924 2005-09-20  Bruno Haible  <bruno@clisp.org>
27925
27926         * gnulib-tool: Remove trailing slashes from the values specified for
27927         --source-base, --m4-base, --tests-base, --aux-dir.
27928         Suggested by Simon Josefsson <jas@extundo.com>.
27929
27930 2005-09-20  Bruno Haible  <bruno@clisp.org>
27931
27932         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
27933         func_modules_to_filelist, func_import, func_create_testdir): Make all
27934         sorting results locale-independent, so that gnulib-cache.m4 doesn't
27935         change when gnulib-tool is invoked in a different locale.
27936
27937 2005-09-19  Simon Josefsson  <jas@extundo.com>
27938
27939         * m4/socklen.m4: Fix typo.
27940
27941 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27942
27943         Use a consistent style for including <config.h>.
27944         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
27945         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
27946         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
27947         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
27948         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
27949         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
27950         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
27951         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
27952         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
27953         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
27954         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
27955         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
27956         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
27957         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
27958         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
27959         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
27960         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
27961         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
27962         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
27963         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
27964         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
27965         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
27966         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
27967         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
27968         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
27969         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
27970         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
27971         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
27972         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
27973         lib/xstrtoumax.c, lib/yesno.c:
27974         Standardize inclusion of config.h.
27975         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
27976         lib/inttostr.h:  Removed inclusion of config.h from header files.
27977         * lib/inttostr.c:  Adjusted in-tree users.
27978         * lib/timespec.h: Remove superfluous warning to include config.h.
27979         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
27980         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
27981         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
27982         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
27983         config.h with HAVE_CONFIG_H.
27984
27985 2005-09-19  Jim Meyering  <jim@meyering.net>
27986
27987         * modules/pathmax (License): Change to LGPL.
27988
27989 2005-09-19  Derek Price  <derek@ximbiot.com>
27990
27991         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
27992
27993 2005-09-19  Bruno Haible  <bruno@clisp.org>
27994
27995         * gnulib-tool (import): Provide default for --tests-base.
27996
27997 2005-09-19  Bruno Haible  <bruno@clisp.org>
27998
27999         * doc/quote.texi: New file, extracted from gnulib.texi.
28000         * doc/ctime.texi: New file, extracted from gnulib.texi.
28001         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
28002         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
28003         * doc/gnulib.texi: Include them.
28004
28005 2005-09-18  Bruno Haible  <bruno@clisp.org>
28006
28007         Portability fix.
28008         * gnulib-tool (func_readlink): New function.
28009         (func_ln_if_changed): Use it.
28010
28011 2005-09-18  Bruno Haible  <bruno@clisp.org>
28012
28013         * gnulib-tool: Support --with-tests also with --import.
28014         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
28015         (func_import): Use variables $testsbase and $inctests. Emit a
28016         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
28017         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
28018         SUBDIRS += $testsdir.
28019         (func_create_testdir): Update.
28020
28021 2005-09-18  Bruno Haible  <bruno@clisp.org>
28022
28023         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
28024         instead of $dry_run.
28025         (func_cp_if_changed, func_mv_if_changed): Remove functions.
28026         (func_ln_if_changed): Don't handle dry-run here.
28027         (func_import): In dry-run mode, detect more precisely which actions
28028         would be performed, and don't use "...ing" verbs.
28029
28030 2005-09-18  Bruno Haible  <bruno@clisp.org>
28031
28032         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
28033         (func_import): Use join on two temporary files instead of three nested
28034         loops, in order to determine which files are new or old.
28035
28036 2005-09-18  Bruno Haible  <bruno@clisp.org>
28037
28038         * gnulib-tool (func_import): Comment out code that spits out the
28039         new files with --dry-run.
28040
28041 2005-09-18  Bruno Haible  <bruno@clisp.org>
28042
28043         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
28044
28045 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28046
28047         * lib/stat-time.h: New file.
28048         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
28049         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
28050         in a different way.
28051         (timespec_cmp): New function.
28052         * lib/utimecmp.c: Include stat-time.h.
28053         (SYSCALL_RESOLUTION): Depend on whether various struct stat
28054         members exist, not on the obsolescent ST_MTIM_NSEC.
28055         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
28056
28057 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28058
28059         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
28060
28061 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28062
28063         * MODULES.html.sh (File system functions): Add stat-time.
28064         * modules/stat-time: New file.
28065         * modules/timespec (Files): Remove m4/st_mtim.m4; this
28066         is now done in a different way, by the stat-time module.
28067         * modules/utimecmp (Depends-on): Add stat-time.
28068
28069 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28070
28071         * m4/st_mtim.m4: Remove.  Superseded by...
28072         * m4/stat-time.m4: New file.
28073         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
28074         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
28075
28076 2005-09-15  Derek Price  <derek@ximbiot.com>
28077
28078         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
28079
28080 2005-09-15  Derek Price  <derek@ximbiot.com>
28081
28082         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
28083         * lib/regex_internal.c: Ditto, using this...
28084         (__GNUC_PREREQ): ...new macro.
28085         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
28086         using...
28087         (__GNUC_PREREQ): ...this new macro.
28088
28089         * lib/strstr.h: Include string.h. Define strstr as a macro here.
28090
28091 2005-09-15  Derek Price  <derek@ximbiot.com>
28092             Paul Eggert  <eggert@cs.ucla.edu>
28093
28094         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
28095         changes, consolidating in...
28096         * lib/regex_internal.h: ...this file.
28097
28098 2005-09-13  Jim Meyering  <jim@meyering.net>
28099
28100         * lib/canon-host.c: Filter through gnu indent and reword comments
28101         slightly.
28102         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
28103
28104 2005-09-13  Derek Price  <derek@ximbiot.com>
28105
28106         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
28107         failure.
28108         Reported by Jim Meyering  <jim@meyering.net>.
28109
28110 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28111
28112         * lib/base64.c: Typo.
28113         (base64_encode): Put b64str in initialized data section.
28114
28115 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28116
28117         Merge glibc and coreutils changes into gnulib, plus a few
28118         extra fixes.
28119         * lib/md5.c: Use #error rather than a string.
28120         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
28121         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
28122         (__attribute__): Define to empty for non recent-GCC.
28123         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
28124         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
28125         Renamed from their non-__ counterparts, with new macros replacing
28126         them if not _LIBC.  Add __THROW attribute.
28127         (rol): Remove.
28128         (struct md5_ctx): Align buffer if using GCC.
28129         * lib/sha1.h (struct sha1_ctx): Likewise.
28130         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
28131         The old name was backwards.
28132         (NOTSWAP): Remove; not used.
28133         (rol): New macro, moved here from md5.h.
28134         (sha1_process_block): Remove a FIXME that doesn't make sense.
28135
28136 2005-09-12  Derek Price  <derek@ximbiot.com>
28137
28138         Return usable errors from canon-host.
28139         * lib/canon-host.h: New file.
28140         * lib/canon-host.c (canon_host): Wrap...
28141         (canon_host_r): ...this new function, which now relies exclusively on
28142         getaddrinfo.
28143         (ch_strerror): New function.
28144         (last_cherror): New global.
28145         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
28146         interface.
28147         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
28148         void *.
28149         (freeaddrinfo): Free ai->ai_canonname when set.
28150
28151 2005-09-12  Derek Price  <derek@ximbiot.com>
28152
28153         Make canon-host require getaddrinfo.
28154         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
28155         AC_LIBSOURCE canon-host.h.  Call...
28156         (gl_PREREQ_CANON_HOST): ...this new function, which requires
28157         gl_GETADDRINFO.
28158         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
28159
28160 2005-09-12  Derek Price  <derek@ximbiot.com>
28161
28162         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
28163         LGPL.
28164         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
28165
28166 2005-09-12  Derek Price  <derek@ximbiot.com>
28167
28168         * lib/gai_strerror.c: Include config.h when available.  Include
28169         getaddrinfo.h before other headers to test interface.
28170         Reported by Larry Jones <lawrence.jones@ugs.com>.
28171
28172 2005-09-12  Derek Price  <derek@ximbiot.com>
28173             Paul Eggert  <eggert@cs.ucla.edu>
28174
28175         * modules/glob (Files): Add glob-libc.h.
28176
28177 2005-09-12  Derek Price  <derek@ximbiot.com>
28178             Paul Eggert  <eggert@cs.ucla.edu>
28179
28180         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
28181         glob_.h, glob-libc.h.
28182         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
28183
28184 2005-09-12  Derek Price  <derek@ximbiot.com>
28185             Paul Eggert  <eggert@cs.ucla.edu>
28186
28187         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
28188         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
28189         protecting things that should be done only in gnulib contexts.
28190         * lib/glob_.h: New file, containing only the glob things needed for
28191         gnulib.
28192         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
28193         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
28194         (glob, globfree, glob_pattern_p): Now defined simply in terms of
28195         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
28196         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
28197         and to respect the namespace rules better.
28198
28199 2005-09-08  Simon Josefsson  <jas@extundo.com>
28200
28201         * modules/socklen: New file.
28202
28203 2005-09-08  Simon Josefsson  <jas@extundo.com>
28204
28205         * m4/socklen.m4: New file.
28206
28207 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28208
28209         * modules/utimens (Files): Add m4/utimbuf.m4, since
28210         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
28211         Reported by Sergey Poznyakoff.
28212
28213 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28214
28215         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
28216         definitions, since that's the preferred style in glibc.
28217         Fix a minor spacing issue, and update copyright notice to match
28218         glibc's.
28219
28220 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28221
28222         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
28223
28224 2005-09-06  Simon Josefsson  <jas@extundo.com>
28225
28226         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
28227         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
28228
28229 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28230
28231         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
28232         warning.
28233
28234 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28235
28236         * config/srclist.txt: Add glibc bug 1302.
28237
28238 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28239
28240         Change bitset word type from unsigned int to unsigned long int,
28241         as this has better performance on typical 64-bit hosts.
28242         Port bitset code to hosts with unusual word sizes.
28243         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
28244         (build_collating_symbol):
28245         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
28246         argument is a bitset.  This is merely a style issue, but it makes
28247         it clearer that an entire array is expected.
28248         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
28249         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
28250         Port to the case where bitset_word is not the same as unsigned int.
28251         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28252         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
28253         Likewise.
28254         * lib/regexec.c (check_dst_limits_calc_pos_1,
28255         check_subexp_matching_top):
28256         (build_trtable, group_nodes_into_DFAstates):
28257         Likewise.
28258         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
28259         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
28260         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
28261         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
28262         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
28263         * lib/regcomp.c (optimize_subexps, lower_subexp):
28264         Work even if bitset_word has holes in its bitwise representation.
28265         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
28266         * lib/regexec.c (check_dst_limits_calc_pos_1,
28267         check_subexp_matching_top):
28268         Likewise.
28269         * lib/regex_internal.c (re_string_reconstruct):
28270         Don't assume UCHAR_MAX == 255.
28271         * lib/regex_internal.h (bitset_set_all): Likewise.
28272         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
28273         All uses changed.
28274         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
28275         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
28276         All uses changed.
28277         (BITSET_WORD_MAX): New macro.
28278         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28279         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28280         (bitset_empty, bitset_copy):
28281         Prefer sizeof (bitset) to multiplying it out ourselves.
28282         (bitset_not_merge): Remove; unused.
28283         (bitset_contain): Return bool, not unsigned int with one bit on.
28284         All callers changed.
28285         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28286         alignment than re_node_set; do this by defining a new internal
28287         type struct dests_alloc and using it to allocate memory.
28288
28289 2005-09-05  Bruno Haible  <bruno@clisp.org>
28290
28291         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28292         links.
28293
28294 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28295
28296         * modules/size_max (Makefile.am): Add size_max.h
28297
28298 2005-09-04  Derek Price  <derek@ximbiot.com>
28299
28300         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28301
28302 2005-09-03  Simon Josefsson  <jas@extundo.com>
28303
28304         * gnulib-tool: Fix typo.
28305
28306 2005-09-03  Simon Josefsson  <jas@extundo.com>
28307
28308         * config/srclist.txt: Add glibc bug 1293.
28309
28310 2005-09-03  Derek Price  <derek@ximbiot.com>
28311
28312         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28313         From Larry Jones <lawrence.jones@ugs.com>.
28314
28315 2005-09-02  Simon Josefsson  <jas@extundo.com>
28316
28317         * modules/socklen: New file.
28318
28319 2005-09-02  Simon Josefsson  <jas@extundo.com>
28320
28321         * modules/havelib: New module.
28322
28323         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28324         Use havelib.
28325
28326 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28327
28328         Check for arithmetic overflow when calculating sizes, to prevent
28329         some buffer-overflow issues.  These patches are conservative, in the
28330         sense that when I couldn't determine whether an overflow was possible,
28331         I inserted a run-time check.
28332         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28333         macros.
28334         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28335         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28336         (re_xnrealloc, re_x2nrealloc): New inline functions.
28337         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28338         parse_bracket_exp):
28339         (build_equiv_class, build_charclass): Check for arithmetic overflow
28340         in size expression calculations.
28341         * lib/regex_internal.c (re_string_realloc_buffers):
28342         (build_wcs_upper_buffer, re_node_set_add_intersect):
28343         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28344         (re_dfa_add_node, register_state): Likewise.
28345         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28346         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28347         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28348         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28349
28350 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28351
28352         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28353         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28354
28355 2005-09-02  Bruno Haible  <bruno@clisp.org>
28356
28357         Support for lib vs. lib64 distinction on biarch platforms.
28358         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28359         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28360         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28361
28362 2005-09-02  Bruno Haible  <bruno@clisp.org>
28363
28364         * gnulib-tool (import): In the other first-use case, provide defaults
28365         as well.
28366
28367 2005-09-02  Bruno Haible  <bruno@clisp.org>
28368
28369         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28370         patches not yet found in the latest gettext release.
28371
28372 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28373
28374         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28375         to avoid a collision with bits/local_lim.h in glibc.
28376         All uses changed.  Problem reported by Dmitry V. Levin in
28377         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28378
28379         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
28380         bugs in int versus size_t comparisons.
28381         (re_string_context_at): Fix bug where the code assumed that
28382         Idx is signed.
28383
28384         Use bool where appropriate.
28385         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
28386         All callers changed.
28387         (calc_eclosure_iter): Likewise, for ROOT arg.
28388         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
28389         (build_charclass_op): Likewise, for NON_MATCH arg.
28390         * lib/regex_internal.c (re_string_allocate, re_string_construct):
28391         (re_string_construct_common): Likewise, for ICASE arg.
28392         * lib/regexec.c (re_search_2_stub, re_search_stub):
28393         Likewise, for RET_LEN arg.
28394         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
28395         (set_regs): Likewise, for FL_BACKTRACK arg.
28396         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
28397         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28398         (calc_eclosure_iter, parse_bracket_exp):
28399         Use bool for internal variables that are booleans.
28400         * lib/regexec.c (re_search_internal, check_matching,
28401         proceed_next_node):
28402         (set_regs, build_sifted_states, sift_states_bkref):
28403         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28404         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28405         (find_collation_sequence_value):
28406         Likewise.
28407         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28408         (re_node_set_compare):
28409         Return bool, not int. All callers changed.
28410         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28411         (build_trtable, check_node_accept): Likewise.
28412         * lib/regex_internal.h: Include stdbool.h.
28413
28414         Fix bugs uncovered when converting to bool.
28415         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28416         failure instead of charging ahead blindly.
28417         * lib/regex_internal.c (register_state): Likewise.
28418         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
28419         for freeing internal storage.
28420         (group_nodes_into_DFA_states): Use unsigned int, not int, for
28421         bitset pieces used as boolean, to avoid undefined behavior
28422         on hosts that do int overflow checking.
28423
28424 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28425
28426         * config/srclist.txt: Add glibc bugs 1285-1287.
28427
28428 2005-09-01  Jim Meyering  <jim@meyering.net>
28429
28430         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
28431         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
28432         Require gl_STAT_MACROS, too.
28433
28434 2005-09-01  Bruno Haible  <bruno@clisp.org>
28435
28436         * gnulib-tool (import): In the first-use case, provide defaults.
28437
28438 2005-09-01  Bruno Haible  <bruno@clisp.org>
28439
28440         * gnulib-tool (func_import): Remove the .tmp files.
28441
28442 2005-09-01  Bruno Haible  <bruno@clisp.org>
28443
28444         * gnulib-tool (func_import): Fix handling of symbolic links.
28445
28446 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28447
28448         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
28449         old glibc regex code mishandles strings longer than 2**31 bytes.
28450         This patch fixes this when the regex code is used in gnulib
28451         (i.e., outside glibc).
28452
28453         This patch should not affect the use of the regex code inside
28454         glibc.  No doubt this problem also needs to be handled for glibc
28455         as well, but the result will be an incompatible change to the
28456         glibc ABI, and the old ABI will have to be supported too.  That
28457         can be the the subject for another patch.
28458
28459         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
28460         governing whether the rest of this patch is active.  By default,
28461         the macro is disabled and the patch has no effect.
28462         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
28463         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
28464         (struct re_pattern_buffer, re_search, re_search_2, re_match):
28465         (re_match_2, re_set_registers): Use the new types.
28466         * lib/regex_internal.h (Idx, re_hashval_t): New types.
28467         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
28468         New macros.
28469         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
28470         (re_string_context_at, bin_tree_t, re_dfastate_t):
28471         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
28472         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
28473         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
28474         (re_string_char_size_at, re_string_wchar_at):
28475         (re_string_elem_size_at):
28476         Use the new types and macros to port to 64-bit hosts.
28477         Use unsigned types for internal values, so that the code
28478         mostly works even for arrays larger than SSIZE_MAX.
28479         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
28480         (search_duplicated_node, calc_eclosure_iter, fetch_number):
28481         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28482         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
28483         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
28484         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
28485         (calc_inveclosure, parse_dup_op, build_range_exp):
28486         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
28487         (fetch_number, create_token_tree, mark_opt_subexp):
28488         Likewise.
28489         * lib/regex_internal.c (re_string_construct_common,
28490         create_ci_newstate):
28491         (create_cd_newstate, re_string_allocate, re_string_construct):
28492         (re_string_realloc_buffers, build_wcs_upper_buffer):
28493         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28494         (re_string_reconstruct, re_string_peek_byte_case):
28495         (re_string_fetch_byte_case, re_string_context_at):
28496         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28497         (re_node_set_init_copy, re_node_set_add_intersect):
28498         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28499         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28500         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28501         (re_acquire_state, re_acquire_state_context, register_state):
28502         Likewise.
28503         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
28504         search_cur_bkref_entry):
28505         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
28506         (re_search_internal, re_search_2_stub, re_search_stub)
28507         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
28508         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
28509         (update_cur_sifted_state, check_dst_limits):
28510         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28511         (check_subexp_limits, sift_states_bkref, merge_state_array):
28512         (check_subexp_matching_top, get_subexp, get_subexp_sub):
28513         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
28514         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28515         (expand_bkref_cache, check_node_accept_bytes):
28516         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
28517         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
28518         (acquire_init_state_context, check_halt_node_context):
28519         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
28520         (sift_states_backward, clean_state_log_if_needed):
28521         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
28522         (find_recover_state, transit_state_sb, transit_state_mb):
28523         (transit_state_bkref, build_trtable, match_ctx_clean):
28524         Likewise.
28525         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
28526         to work around an assumption that REG_MISSING is negative.
28527
28528         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
28529         (seek_collating_symbol_entry) [defined _LIBC]:
28530         (lookup_collation_sequence_value) [defined _LIBC]:
28531         (build_range_exp, build_collating_symbol) [defined _LIBC]:
28532         Use prototypes rather than old-style function definitions.
28533         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
28534         (transit_state_sb) [0]:
28535         (find_collation_sequence_value) [defined _LIBC]: Likewise.
28536
28537         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
28538         rm_eo.
28539
28540         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
28541         (optimize_subexps, lower_subexp):
28542         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
28543         since the signed shift might overflow.  Use 1u<<31 instead.
28544         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28545         Likewise.
28546         * lib/regexec.c (check_dst_limits_calc_pos_1,
28547         check_subexp_matching_top): Likewise.
28548
28549         * lib/regcomp.c (optimize_subexps, lower_subexp):
28550         Use CHAR_BIT rather than 8, for clarity.
28551         * lib/regexec.c (check_dst_limits_calc_pos_1):
28552         (check_subexp_matching_top): Likewise.
28553         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
28554         have to worry about portability issues when shifting it left.
28555         Remove no-longer-needed test for table_size > 0.
28556         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
28557         in a word, as the resulting behavior is undefined.
28558         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
28559         in one case, a <= should have been an <, and in another case the
28560         whole test was missing.
28561         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
28562         the standard name CHAR_BIT.
28563         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
28564         this is not true on one's complement and signed-magnitude hosts.
28565
28566         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
28567         next_last_offset.
28568         (struct re_dfa_t): Remove unused member states_alloc.
28569         * lib/regcomp.c (init_dfa): Don't initialize unused members.
28570
28571 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28572
28573         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
28574         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
28575         and large-file glibc and in 32-bit large-file Solaris.
28576
28577 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28578
28579         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
28580         lengths fit in regoff_t; this isn't true if regoff_t is the same
28581         width as size_t.
28582         * lib/regex.c (re_search_internal): 5th arg is LAST_START
28583         (= START + RANGE) instead of RANGE.  This avoids overflow
28584         problems when regoff_t is the same width as size_t.
28585         All callers changed.
28586         (re_search_2_stub): Check for overflow when adding the
28587         sizes of the two strings.
28588         (re_search_stub): Check for overflow when adding START
28589         to RANGE; if it occurs, substitute the extreme value.
28590
28591 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28592
28593         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
28594
28595 2005-08-31  Jim Meyering  <jim@meyering.net>
28596
28597         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
28598         a pointer-to-const.
28599         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
28600         (register_state): Likewise.
28601         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
28602         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28603         (group_nodes_into_DFAstates): Likewise.
28604
28605 2005-08-31  Jim Meyering  <jim@meyering.net>
28606
28607         * check-module: Add a FIXME comment.
28608
28609 2005-08-31  Eric Blake  <ebb9@byu.net>
28610
28611         * modules/unistd-safer (Files): Add unistd--.h.
28612         * modules/stdio-safer (Files): Add stdio--.h.
28613
28614 2005-08-31  Derek Price  <derek@ximbiot.com>
28615
28616         * lib/getdelim.c (getdelim): Return EOF on EOF.
28617         Reported by Larry Jones <lawrence.jones@ugs.com>.
28618
28619 2005-08-31  Bruno Haible  <bruno@clisp.org>
28620
28621         Avoid unnecessary diffs in the generated lib/Makefile.am.
28622         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
28623         the generated files.
28624         (func_import): Don't set cmd.
28625
28626 2005-08-31  Bruno Haible  <bruno@clisp.org>
28627
28628         * lib/strstr.c: Include <stddef.h>, for NULL.
28629         * lib/strcasestr.c: Likewise.
28630         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28631
28632 2005-08-31  Bruno Haible  <bruno@clisp.org>
28633
28634         * gnulib-tool: New option --macro-prefix.
28635         (func_import): Use macro_prefix.
28636         (import): Handle option --macro-prefix.
28637
28638 2005-08-31  Bruno Haible  <bruno@clisp.org>
28639
28640         * gnulib-tool (import): Rename most ac_* variables to cached_*.
28641         Also use new variables cached_lgpl, cached_libtool.
28642
28643 2005-08-31  Bruno Haible  <bruno@clisp.org>
28644
28645         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
28646         always instantiating them.
28647
28648 2005-08-31  Bruno Haible  <bruno@clisp.org>
28649
28650         * gnulib-tool (func_import): Read the previous cached settings
28651         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
28652         earlier added by gnulib but are now dropped. Warn when a gnulib file
28653         overwrites a non-gnulib file.
28654
28655 2005-08-31  Bruno Haible  <bruno@clisp.org>
28656
28657         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
28658         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
28659         projects that don't keep autogenerated files in CVS. Put into
28660         actioncmd only the specified modules, not the transitive closure.
28661
28662 2005-08-31  Bruno Haible  <bruno@clisp.org>
28663
28664         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
28665         Create directories that shall be filled.
28666         (import): Don't look for gl_* macros in configure.ac. Recurse across
28667         all directories containing a gnulib-cache.m4 files, if meaningful.
28668
28669 2005-08-31  Bruno Haible  <bruno@clisp.org>
28670
28671         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
28672         (import): Set seen_libtool when we see gl_LIBTOOL.
28673
28674 2005-08-31  Bruno Haible  <bruno@clisp.org>
28675
28676         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
28677         declaration macro definitions from generated gnulib.m4.
28678
28679 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
28680
28681         * lib/iconvme.h: Add prototype for iconv_alloc.
28682
28683 2005-08-29  Simon Josefsson  <jas@extundo.com>
28684
28685         * lib/iconvme.c: Fix errno.
28686
28687 2005-08-29  Bruno Haible  <bruno@clisp.org>
28688
28689         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28690         that it works when the directory contains spaces.
28691
28692 2005-08-29  Bruno Haible  <bruno@clisp.org>
28693
28694         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28695
28696 2005-08-29  Bruno Haible  <bruno@clisp.org>
28697
28698         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28699         Emit more advice.
28700
28701 2005-08-29  Bruno Haible  <bruno@clisp.org>
28702         and Stepan Kasal  <kasal@ucw.cz>
28703
28704         * check-module: If more parameters are given, check each of them
28705         separately; add more exceptions, as noted by Jim Meyering.
28706         (check_module): New procedure.
28707         (%exempt_header): Now contains all exceptions.
28708
28709 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
28710
28711         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
28712
28713 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28714
28715         * lib/iconvme.c: Split iconv_string into iconv_alloc.
28716
28717 2005-08-28  Bruno Haible  <bruno@clisp.org>
28718
28719         * m4/gnulib-tool.m4: New file.
28720
28721 2005-08-27  Jim Meyering  <jim@meyering.net>
28722
28723         * modules/unistd-safer (Files): Add pipe-safer.c.
28724         * modules/fcntl-safer (Files): Add creat-safer.c.
28725
28726 2005-08-27  Jim Meyering  <jim@meyering.net>
28727
28728         * m4/stdlib-safer.m4: New file.  From coreutils.
28729         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
28730         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
28731         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
28732         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
28733         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
28734
28735 2005-08-27  Jim Meyering  <jim@meyering.net>
28736
28737         * lib/fopen-safer.c: Merge minor changes from coreutils.
28738         * lib/dup-safer.c: Likewise.
28739         * lib/fd-safer.c: Likewise.
28740
28741         Merge from coreutils.
28742         * lib/stdio--.h: New file.
28743         * lib/stdlib--.h: New file.
28744         * lib/mkstemp-safer.c: New file.
28745
28746         GNU tar needs these.
28747         * lib/pipe-safer.c: New file.
28748         * lib/creat-safer.c: New file.
28749         * lib/fcntl--.h (creat): Define to creat_safer.
28750         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
28751         * lib/unistd--.h (pipe): Define to pipe_safer.
28752         * lib/unistd-safer.h: Declare pipe_safer.
28753
28754 2005-08-26  Simon Josefsson  <jas@extundo.com>
28755
28756         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
28757         Haible <bruno@clisp.org>.
28758
28759 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
28760
28761         * lib/regex_internal.h: Remove all references to
28762         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
28763         or better.
28764         (bitset_not, bitset_merge, bitset_not_merge):
28765         (bitset_mask, re_string_allocate, re_string_construct):
28766         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
28767         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
28768         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
28769         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
28770         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28771         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28772         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
28773         (re_acquire_state_context):
28774         Remove unnecessary forward decls.
28775         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
28776         Put __attribute at function definition,
28777         now that the function decl has been removed.
28778         * lib/regex_internal.c (re_string_peek_byte_case):
28779         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
28780         Likewise.
28781
28782 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
28783
28784         * m4/regex.m4: Add AC_PREREQ(2.50).
28785         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
28786
28787 2005-08-25  Simon Josefsson  <jas@extundo.com>
28788
28789         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
28790         __fsetlocking.
28791
28792 2005-08-25  Simon Josefsson  <jas@extundo.com>
28793
28794         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
28795         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
28796         GLIBC specific code.
28797
28798 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28799
28800         Make regex safe for g++.  This fixes one real bug (an "err"
28801         that should have been "*err").  g++ problem reported by
28802         Sam Steingold.
28803         * lib/regex_internal.h (re_calloc): New macro, consistent with
28804         re_malloc etc.  All callers of calloc changed to use re_calloc.
28805         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
28806         not int.  All callers changed.
28807         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
28808         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
28809         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
28810         (find_recover_state): Change "err" to "*err"; this fixes what
28811         appears to be a real bug.
28812         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
28813         versus int.
28814
28815 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28816
28817         * modules/regex (Depends-on): Add malloc, since the code
28818         assumes that !malloc(0) means failure.
28819
28820 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28821
28822         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
28823
28824         alloca modernization/simplification for regex.
28825         * lib/regex.c: Remove portability cruft for alloca.  This no longer
28826         needs to be at the start of the file, and can be moved into
28827         regex_internal.h and simplified.
28828         * lib/regex_internal.h: Include <alloca.h>.
28829         (__libc_use_alloca) [!defined _LIBC]: New macro.
28830         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
28831         now works outside glibc.
28832
28833 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28834
28835         * config/srclist.txt: Add glibc bugs 1241, 1245.
28836
28837 2005-08-25  Jim Meyering  <jim@meyering.net>
28838
28839         * lib/open-safer.c: Include <config.h>.
28840         Otherwise, we'd lose LARGEFILE support in any file using
28841         e.g. "fcntl--.h"
28842
28843 2005-08-25  Bruno Haible  <bruno@clisp.org>
28844
28845         * m4/minmax.m4: Require autoconf 2.52.
28846         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
28847         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
28848         alternatives of translit over the alphabet.
28849         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
28850
28851 2005-08-24  Simon Josefsson  <jas@extundo.com>
28852
28853         * tests/test-getpass.c: New file.
28854
28855 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28856
28857         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
28858         for GNU regex features.
28859
28860 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28861
28862         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
28863         * lib/regex.h (regerror): Likewise.
28864
28865         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
28866         requires this.  (The code never needed it.)
28867
28868         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
28869         All uses of recently-renamed identifiers changed to use the new,
28870         POSIX-compliant names.  The code will build and run just fine
28871         without these changes, but it's better to eat our own dog food
28872         and use the standard-conforming names.
28873
28874         * lib/regex.h: Fix a multitude of POSIX name space violations.
28875         These changes have an effect only for programs that define
28876         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
28877         do not change anything for programs compiled in the normal way.
28878         Also, there is no effect on the ABI.
28879
28880         (_REGEX_SOURCE): New macro.
28881         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
28882         defined and _GNU_SOURCE is not; this fixes a name space violation.
28883
28884         Rename the following macros to obey POSIX requirements.
28885         The old names are still visible as macros if _REGEX_SOURCE is defined.
28886         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
28887         RE_BACKSLASH_ESCAPE_IN_LISTS.
28888         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
28889         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
28890         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
28891         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
28892         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
28893         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
28894         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
28895         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
28896         (REG_INTERVALS): renamed from RE_INTERVALS.
28897         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
28898         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
28899         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
28900         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
28901         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
28902         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
28903         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
28904         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
28905         RE_UNMATCHED_RIGHT_PAREN_ORD.
28906         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
28907         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
28908         (REG_DEBUG): renamed from RE_DEBUG.
28909         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
28910         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
28911         unusual, since we can't clash with the POSIX REG_ICASE.
28912         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
28913         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
28914         (REG_NO_SUB): renamed from RE_NO_SUB.
28915         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
28916         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
28917         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
28918         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
28919         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
28920         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
28921         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
28922         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
28923         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
28924         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
28925         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
28926         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
28927         RE_SYNTAX_POSIX_MINIMAL_BASIC.
28928         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
28929         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
28930         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
28931         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
28932         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
28933         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
28934         (REG_FIXED): Renamed from REGS_FIXED.
28935         (REG_NREGS): Renamed from RE_NREGS.
28936
28937         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
28938         of other REG_* macros, since POSIX says the user is allowed to
28939         #undef these macros selectively.
28940
28941         (reg_errcode_t): Update comment stating what other tables need
28942         to be consistent.
28943
28944         Rename the following enum values to obey POSIX requirements.
28945         The old names are still visible as macros.
28946         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
28947         is not defined, since GNU is supposed to be a superset of POSIX as
28948         much as possible, and since we want reg_errcode_t to be a signed
28949         type for implementation consistency.
28950         (_REG_NOERROR): Renamed from REG_NOERROR.
28951         (_REG_NOMATCH): Renamed from REG_NOMATCH.
28952         (_REG_BADPAT): Renamed from REG_BADPAT.
28953         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
28954         (_REG_ECTYPE): Renamed from REG_ECTYPE.
28955         (_REG_EESCAPE): Renamed from REG_EESCAPE.
28956         (_REG_ESUBREG): Renamed from REG_ESUBREG.
28957         (_REG_EBRACK): Renamed from REG_EBRACK.
28958         (_REG_EPAREN): Renamed from REG_EPAREN.
28959         (_REG_EBRACE): Renamed from REG_EBRACE.
28960         (_REG_BADBR): Renamed from REG_BADBR.
28961         (_REG_ERANGE): Renamed from REG_ERANGE.
28962         (_REG_ESPACE): Renamed from REG_ESPACE.
28963         (_REG_BADRPT): Renamed from REG_BADRPT.
28964         (_REG_EEND): Renamed from REG_EEND.
28965         (_REG_ESIZE): Renamed from REG_ESIZE.
28966         (_REG_ERPAREN): Renamed from REG_ERPAREN.
28967         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
28968         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
28969         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
28970         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
28971
28972         (_REG_RE_NAME, _REG_RM_NAME): New macros.
28973         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
28974         changed.  But support the old name if the new one is not defined
28975         and if _REGEX_SOURCE.
28976
28977         Change the following member names in struct re_pattern_buffer.
28978         The old names are still supported if !_REGEX_SOURCE.
28979         The new names are always supported, regardless of _REGEX_SOURCE.
28980         (re_buffer): Renamed from buffer.
28981         (re_allocated): Renamed from allocated.
28982         (re_used): Renamed from used.
28983         (re_syntax): Renamed from syntax.
28984         (re_fastmap): Renamed from fastmap.
28985         (re_translate): Renamed from translate.
28986         (re_can_be_null): Renamed from can_be_null.
28987         (re_regs_allocated): Renamed from regs_allocated.
28988         (re_fastmap_accurate): Renamed from fastmap_accurate.
28989         (re_no_sub): Renamed from no_sub.
28990         (re_not_bol): Renamed from not_bol.
28991         (re_not_eol): Renamed from not_eol.
28992         (re_newline_anchor): Renamed from newline_anchor.
28993
28994         Change the following member names in struct re_registers.
28995         The old names are still supported if !_REGEX_SOURCE.
28996         The new names are always supported, regardless of _REGEX_SOURCE.
28997         (rm_num_regs): Renamed from num_regs.
28998         (rm_start): Renamed from start.
28999         (rm_end): Renamed from end.
29000
29001         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
29002         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
29003         Prepend __ to parameter names.
29004
29005         Undo yesterday's changes.
29006
29007 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29008
29009         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
29010         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
29011         lib/regex.c.
29012
29013 2005-08-24  Jim Meyering  <jim@meyering.net>
29014
29015         Sync from coreutils.
29016         * m4/fcntl-safer.m4: New file.
29017
29018         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
29019         and object files for this module.
29020
29021 2005-08-24  Jim Meyering  <jim@meyering.net>
29022
29023         Sync from coreutils.
29024         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
29025
29026 2005-08-24  Jim Meyering  <jim@meyering.net>
29027
29028         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
29029         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
29030
29031 2005-08-24  Jim Meyering  <jim@meyering.net>
29032
29033         * modules/fcntl-safer: New module.
29034         * modules/fts (Depends-on): Add fcntl-safer.
29035         * MODULES.html.sh (File descriptor based Input/Output):
29036         Add fcntl-safer.
29037
29038 2005-08-24  Bruno Haible  <bruno@clisp.org>
29039
29040         Support for unit test modules.
29041         * modules/README: Mention tests modules.
29042         * modules/TEMPLATE-TESTS: New file.
29043         * gnulib-tool: New options --extract-tests-module, --with-tests and
29044         --tests-base (unused for the moment).
29045         (testsbase, inctests): New variables.
29046         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
29047         (func_verify_module): Exclude TEMPLATE-TESTS.
29048         (func_verify_nontests_module, func_verify_tests_module): New functions.
29049         (func_get_dependencies): Add implicit dependency for tests modules.
29050         (func_get_tests_module): New function.
29051         (func_modules_transitive_closure): When --with-tests was specified,
29052         include the unit tests as well, unless explicitly avoided.
29053         (func_emit_lib_Makefile_am): Ignore the tests modules here.
29054         (func_emit_tests_Makefile_am): New function.
29055         (func_create_testdir): When --with-tests was specified, emit a
29056         tests/ directory.
29057         * MODULES.html.sh (Future developments): Update.
29058
29059 2005-08-24  Bruno Haible  <bruno@clisp.org>
29060
29061         * modules/tls-tests: New file.
29062         * tests/test-tls.c: New file, from GNU gettext.
29063
29064 2005-08-24  Bruno Haible  <bruno@clisp.org>
29065
29066         * modules/lock-tests: New file.
29067         * tests/test-lock.c: New file, from GNU gettext.
29068
29069 2005-08-24  Bruno Haible  <bruno@clisp.org>
29070
29071         * lib/lock.h: Add multiple inclusion guard.
29072         * lib/tls.h: Add multiple inclusion guard.
29073
29074 2005-08-24  Bruno Haible  <bruno@clisp.org>
29075
29076         * gnulib-tool: Add support for the --aux-dir option to
29077         --create-testdir, --create-megatestdir, --test, --megatest.
29078         (func_create_testdir, func_create_megatestdir): Optionally emit a
29079         AC_CONFIG_AUX_DIR directive.
29080         (create-testdir, create-megatestdir, test, megatest): Provide a
29081         default value for $auxdir.
29082
29083 2005-08-24  Bruno Haible  <bruno@clisp.org>
29084
29085         * gnulib-tool (import): Use compound statement instead of subshell
29086         where possible.
29087
29088 2005-08-24  Bruno Haible  <bruno@clisp.org>
29089
29090         * gnulib-tool (import): Change --aux-dir default to "build-aux".
29091
29092 2005-08-24  Bruno Haible  <bruno@clisp.org>
29093
29094         * gnulib-tool (func_version): Update.
29095
29096 2005-08-24  Bruno Haible  <bruno@clisp.org>
29097
29098         * gnulib-tool (func_import, func_create_testdir,
29099         func_create_megatestdir): Quote all autoconf macro arguments.
29100
29101 2005-08-24  Bruno Haible  <bruno@clisp.org>
29102
29103         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
29104         option --force, because --force causes the aclocal.m4 of each
29105         subdirectory to be newer than the corresponding config.h.in.
29106
29107 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29108
29109         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
29110         All contents moved to gl_REGEX.
29111         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
29112         assume that it does.
29113
29114 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29115
29116         * lib/regex.h (REG_NOSYS)
29117         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
29118         Define, since POSIX requires it as of 2001.
29119         (_REG_ENOSYS)
29120         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
29121         New private symbol, used to keep the enum signed in all cases.
29122         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
29123         Youngman in
29124         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
29125
29126         * lib/regex_internal.c (re_string_skip_chars, register_state):
29127         (calc_state_hash):
29128         Remove forward decls; no longer needed now that we use prototypes.
29129         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
29130         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
29131         (clean_state_log_if_needed): Likewise.
29132
29133 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29134
29135         * config/srclist.txt: Add glibc bugs 1231-1233.
29136
29137 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29138
29139         Fix problems reported by Sam Steingold in
29140         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
29141         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
29142         assumed that reg_errcode_t is a signed type, which is not
29143         necessarily true if _XOPEN_SOURCE is not defined.
29144         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
29145         since some compilers warn about it otherwise.
29146
29147 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29148
29149         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
29150         (init_word_char, create_initial_state, duplicate_node_closure):
29151         (fetch_token, peek_token_bracket, build_range_exp):
29152         (build_collating_symbol): Remove forward decls; no longer needed
29153         now that we use prototypes.
29154
29155         * lib/regcomp.c:
29156         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
29157         (re_compile_fastmap_iter, regcomp, regerror, regfree):
29158         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
29159         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
29160         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
29161         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
29162         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
29163         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
29164         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
29165         (build_range_exp, build_collating_symbol, parse_bracket_exp):
29166         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
29167         (build_charclass, build_charclass_op, fetch_number, create_tree):
29168         (create_token_tree, mark_opt_subexp, duplicate_tree):
29169         Use prototypes rather than old-style definitions.
29170
29171         * lib/regex_internal.c:
29172         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
29173         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
29174         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29175         (re_string_reconstruct, re_string_peek_byte_case):
29176         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
29177         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29178         (re_node_set_init_copy, re_node_set_add_intersect):
29179         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29180         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29181         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29182         (re_acquire_state, re_acquire_state_context, register_state):
29183         (create_ci_newstate, create_cd_newstate, free_state):
29184         Likewise.
29185         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
29186         re_search_2):
29187         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
29188         (re_search_internal, prune_impossible_nodes):
29189         (acquire_init_state_context, check_matching, static):
29190         (check_halt_node_context, check_halt_state_context, proceed_next_node):
29191         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
29192         (update_regs, sift_states_backward, build_sifted_states):
29193         (clean_state_log_if_needed, merge_state_array):
29194         (update_cur_sifted_state, add_epsilon_src_nodes):
29195         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
29196         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
29197         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
29198         (find_recover_state, check_subexp_matching_top, transit_state_mb):
29199         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
29200         (check_arrival, check_arrival_add_next_nodes):
29201         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29202         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29203         (check_node_accept_bytes, check_node_accept, extend_buffers):
29204         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
29205         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
29206         (sift_ctx_init):
29207         Likewise.
29208
29209         * lib/regex_internal.h:
29210         (re_string_allocate, re_string_construct, re_string_reconstruct):
29211         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
29212         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
29213         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
29214         (re_string_context_at, re_string_peek_byte_case):
29215         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
29216         is defined, since we now use prototypes always.
29217
29218         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
29219         C89 or better.  All uses removed.
29220
29221 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29222
29223         * config/srclist.txt: Add glibc bugs 1220-1227.
29224
29225 2005-08-20  Jim Meyering  <jim@meyering.net>
29226
29227         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
29228         of unused local, dfa.
29229
29230 2005-08-20  Bruno Haible  <bruno@clisp.org>
29231
29232         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
29233
29234 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29235
29236         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
29237         (re_node_set_insert_last, re_dfa_add_node):
29238         Rename local variables to avoid GCC shadowing warnings.
29239
29240 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29241
29242         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
29243         [defined lint]: Suppress bogus uninitialized-variable warnings.
29244
29245         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
29246         and let the caller return REG_ESPACE if out of space.  This
29247         removes an uninitialied-variable warning with GCC 4.0.1, and also
29248         avoids taking the address of a local variable.  All callers
29249         changed.
29250
29251 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29252
29253         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
29254         $LIBCSRC/posix/regexec.c.
29255         Add glibc bug 1217 for regcomp.c.
29256
29257 2005-08-19  Jim Meyering  <jim@meyering.net>
29258
29259         * lib/regexec.c (proceed_next_node): Redo local variables to
29260         avoid GCC shadowing warnings.
29261
29262 2005-08-18  Bruno Haible  <bruno@clisp.org>
29263
29264         * lib/strstr.c (strstr): Fix return value in multibyte case.
29265         * lib/strcasestr.c (strcasestr): Likewise.
29266
29267 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29268
29269         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
29270
29271 2005-08-17  Jim Meyering  <jim@meyering.net>
29272
29273         Make the %s format (seconds since the epoch) work for a negative
29274         number and when used with a zero-padded field width, e.g. %015s.
29275
29276         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
29277         label so that it precedes the code to set `digits'.  Otherwise,
29278         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29279         print `00-22'.  Now, it prints `-0022', as it should.
29280
29281 2005-08-17  Bruno Haible  <bruno@clisp.org>
29282
29283         * modules/strstr (Files): Add m4/mbrtowc.m4.
29284         (Depends-on): Add mbuiter.
29285
29286 2005-08-17  Bruno Haible  <bruno@clisp.org>
29287
29288         * modules/strcasestr: New file.
29289         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29290         strcasestr.
29291
29292 2005-08-17  Bruno Haible  <bruno@clisp.org>
29293
29294         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29295
29296 2005-08-17  Bruno Haible  <bruno@clisp.org>
29297
29298         * modules/mbuiter: New file.
29299         * MODULES.html.sh (Extended multibyte and wide character utilities):
29300         Add mbuiter.
29301
29302 2005-08-17  Bruno Haible  <bruno@clisp.org>
29303
29304         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29305         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29306
29307 2005-08-17  Bruno Haible  <bruno@clisp.org>
29308
29309         * m4/strcasestr.m4: New file.
29310
29311 2005-08-17  Bruno Haible  <bruno@clisp.org>
29312
29313         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29314         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29315
29316 2005-08-17  Bruno Haible  <bruno@clisp.org>
29317
29318         * lib/strcasestr.h: New file.
29319         * lib/strcasestr.c: New file.
29320
29321 2005-08-17  Bruno Haible  <bruno@clisp.org>
29322
29323         * lib/strcasecmp.c: Use mbuiter.h.
29324
29325 2005-08-17  Bruno Haible  <bruno@clisp.org>
29326
29327         * lib/mbuiter.h: New file.
29328
29329 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29330
29331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29332         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29333         and gl_GETOPT are both invoked via different paths (as happens
29334         with GNU tar CVS because it uses both argp and getopt), the former
29335         wins.
29336
29337 2005-08-16  Bruno Haible  <bruno@clisp.org>
29338
29339         * modules/tls: New file.
29340         * MODULES.html.sh (Multithreading): Add tls.
29341
29342 2005-08-16  Bruno Haible  <bruno@clisp.org>
29343
29344         * modules/strnlen1: New file.
29345         * MODULES.html.sh (String handling): Add strnlen1.
29346
29347 2005-08-16  Bruno Haible  <bruno@clisp.org>
29348
29349         * modules/strcase (Files): Add m4/mbrtowc.m4.
29350         (Depends-on): Add strnlen1, mbchar.
29351
29352 2005-08-16  Bruno Haible  <bruno@clisp.org>
29353
29354         * modules/mbiter: New file.
29355         * MODULES.html.sh (Extended multibyte and wide character utilities):
29356         Add mbiter.
29357
29358 2005-08-16  Bruno Haible  <bruno@clisp.org>
29359
29360         * modules/mbfile: New file.
29361         * MODULES.html.sh (Extended multibyte and wide character utilities):
29362         Add mbfile.
29363
29364 2005-08-16  Bruno Haible  <bruno@clisp.org>
29365
29366         * modules/mbchar: New file.
29367         * MODULES.html.sh (Extended multibyte and wide character utilities):
29368         New section.
29369
29370 2005-08-16  Bruno Haible  <bruno@clisp.org>
29371
29372         * m4/tls.m4: New file, from GNU gettext.
29373
29374 2005-08-16  Bruno Haible  <bruno@clisp.org>
29375
29376         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29377         always.
29378         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
29379
29380 2005-08-16  Bruno Haible  <bruno@clisp.org>
29381
29382         * m4/mbiter.m4: New file.
29383
29384 2005-08-16  Bruno Haible  <bruno@clisp.org>
29385
29386         * m4/mbfile.m4: New file.
29387
29388 2005-08-16  Bruno Haible  <bruno@clisp.org>
29389
29390         * m4/mbchar.m4: New file.
29391
29392 2005-08-16  Bruno Haible  <bruno@clisp.org>
29393
29394         * lib/tls.h: New file, from GNU gettext.
29395         * lib/tls.c: New file, from GNU gettext.
29396
29397 2005-08-16  Bruno Haible  <bruno@clisp.org>
29398
29399         * lib/strnlen1.h: New file.
29400         * lib/strnlen1.c: New file.
29401
29402 2005-08-16  Bruno Haible  <bruno@clisp.org>
29403
29404         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29405         (mbi_init): Update.
29406         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29407         NUL byte, not after it.
29408
29409 2005-08-16  Bruno Haible  <bruno@clisp.org>
29410
29411         * lib/strcase.h (strcasecmp): Add note in comments.
29412         * lib/strncasecmp.c: Use code from strcasecmp.c.
29413         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29414         (strcasecmp): Work correctly in multibyte locales.
29415
29416 2005-08-16  Bruno Haible  <bruno@clisp.org>
29417
29418         * lib/mbiter.h: New file.
29419
29420 2005-08-16  Bruno Haible  <bruno@clisp.org>
29421
29422         * lib/mbfile.h: New file.
29423
29424 2005-08-16  Bruno Haible  <bruno@clisp.org>
29425
29426         * lib/mbchar.h: New file.
29427         * lib/mbchar.c: New file.
29428
29429 2005-08-16  Bruno Haible  <bruno@clisp.org>
29430
29431         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
29432         the valid ones. Makes the comparison operations transitive:
29433         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
29434         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
29435
29436 2005-08-15  Simon Josefsson  <jas@extundo.com>
29437
29438         * modules/ssize_t (License): Change to 'unlimited'.
29439
29440         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
29441
29442 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29443
29444         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
29445         Add comments for each pending glibc patch.
29446
29447 2005-08-15  Bruno Haible  <bruno@clisp.org>
29448
29449         * lib/regex.h (__restrict_arr): Don't define to __restrict if
29450         __cplusplus is defined.
29451
29452 2005-08-14  Jim Meyering  <jim@meyering.net>
29453
29454         Sync from coreutils.
29455
29456         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
29457         Use the hash-table-based cycle-detection code not just when
29458         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
29459         Reported by James Youngman in
29460         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
29461         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
29462         FTS_TIGHT_CYCLE_CHECK.
29463         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
29464         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
29465         once again.
29466         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
29467         * lib/fts.c (fd_safer): Remove decl.
29468         Include fcntl--.h rather than unistd-safer.h
29469         (fts_safe_changedir): Don't call fd_safer; no longer needed
29470         now that we include fcntl--.h.
29471
29472 2005-08-12  Simon Josefsson  <jas@extundo.com>
29473
29474         * modules/getndelim2: Use ssize_t module.
29475         * modules/getnline: Likewise.
29476         * modules/safe-read: Likewise.
29477         * modules/xreadlink: Likewise.
29478
29479         * modules/ssize_t: New file.
29480
29481 2005-08-12  Simon Josefsson  <jas@extundo.com>
29482
29483         * m4/readline.m4: Look for termcap, curses or ncurses if required.
29484
29485 2005-08-12  Simon Josefsson  <jas@extundo.com>
29486
29487         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29488         ssize_t.
29489
29490 2005-08-12  Simon Josefsson  <jas@extundo.com>
29491
29492         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
29493         readline, getdelim and check_version.
29494         (Support for systems lacking ISO C 99: Sizes of integer types):
29495         Add size_max.
29496
29497 2005-08-12  Bruno Haible  <bruno@clisp.org>
29498
29499         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
29500
29501 2005-08-11  Simon Josefsson  <jas@extundo.com>
29502
29503         * modules/readline: New file.
29504
29505         * modules/strnlen (Files): Add strnlen.h.
29506
29507 2005-08-11  Simon Josefsson  <jas@extundo.com>
29508
29509         * m4/readline.m4: New file.
29510
29511 2005-08-11  Simon Josefsson  <jas@extundo.com>
29512
29513         * lib/readline.h, readline.c: New file.
29514
29515 2005-08-11  Simon Josefsson  <jas@extundo.com>
29516
29517         * doc/gnulib.texi (Initial import, Finishing touches): Mention
29518         gl_AVOID.
29519
29520 2005-08-11  Bruno Haible  <bruno@clisp.org>
29521
29522         * lib/strnlen.h (strnlen): Change parameter name to match comment.
29523
29524 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
29525
29526         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
29527
29528 2005-08-10  Simon Josefsson  <jas@extundo.com>
29529
29530         * tests/test-iconvme.c: New file.
29531
29532 2005-08-10  Simon Josefsson  <jas@extundo.com>
29533
29534         * m4/strnlen.m4: New file.
29535
29536         * m4/strndup.m4: Don't check for strnlen declaration, done in
29537         strnlen.m4.
29538
29539 2005-08-10  Simon Josefsson  <jas@extundo.com>
29540
29541         * lib/strndup.c: Use strnlen.h.
29542
29543         * lib/strnlen.h: New file.
29544
29545 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29546
29547         * README: Typos.
29548
29549 2005-08-02  Simon Josefsson  <jas@extundo.com>
29550
29551         * modules/readline: New file.
29552
29553 2005-08-02  Simon Josefsson  <jas@extundo.com>
29554
29555         * modules/getdelim: New file.
29556
29557         * modules/getline: Rewrite, don't use getndelim2.
29558
29559 2005-08-02  Simon Josefsson  <jas@extundo.com>
29560
29561         * m4/getline.m4: Separate out getdelim stuff into separate module.
29562
29563         * m4/getdelim.m4: New file.
29564
29565 2005-08-02  Simon Josefsson  <jas@extundo.com>
29566
29567         * lib/getline.h, getline.c: Rewrite.
29568
29569         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
29570
29571 2005-07-31  Bruno Haible  <bruno@clisp.org>
29572
29573         * lib/lock.h (gl_lock_initializer): New macro.
29574         (gl_lock_define_initialized): Use it.
29575         (gl_rwlock_initializer): New macro.
29576         (gl_rwlock_define_initialized): Use it.
29577         (gl_recursive_lock_initializer): New macro.
29578         (gl_recursive_lock_define_initialized): Use it.
29579
29580 2005-07-30  Karl Berry  <karl@gnu.org>
29581
29582         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
29583         Report from Ben Pfaff, regarding getopt.
29584
29585 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
29586
29587         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
29588         normal way.
29589         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
29590         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
29591         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
29592         (gl_GETOPT): Use the new macros.  Most of the implementation
29593         is moved to the new macros.  This is for programs like Emacs
29594         that don't want all the functionality of gl_GETOPT.
29595
29596 2005-07-26  Bruno Haible  <bruno@clisp.org>
29597
29598         * m4/lock.m4: Update from GNU gettext.
29599
29600 2005-07-26  Bruno Haible  <bruno@clisp.org>
29601
29602         * lib/lock.h: Update from GNU gettext.
29603         * lib/lock.c: Update from GNU gettext.
29604
29605 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29606
29607         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
29608         obsolescent AC_TRY_RUN.  Include the default includes files, for
29609         'exit'.
29610
29611 2005-07-24  Bruno Haible  <bruno@clisp.org>
29612
29613         * modules/visibility: New file.
29614         * MODULES.html.sh (Misc): Add visibility.
29615
29616 2005-07-24  Bruno Haible  <bruno@clisp.org>
29617
29618         * m4/visibility.m4: New file.
29619
29620 2005-07-24  Bruno Haible  <bruno@clisp.org>
29621
29622         * doc/visibility.texi: New file.
29623
29624 2005-07-22  Bruno Haible  <bruno@clisp.org>
29625
29626         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
29627         $(ALLOCA_H), redundant through BUILT_SOURCES.
29628         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
29629         redundant through BUILT_SOURCES.
29630         * modules/byteswap (Makefile.am): Remove explicit dependency on
29631         $(BYTESWAP_H), redundant through BUILT_SOURCES.
29632         * modules/fnmatch (Makefile.am): Remove explicit dependency on
29633         $(FNMATCH_H), redundant through BUILT_SOURCES.
29634         * modules/getopt (Makefile.am): Remove explicit dependency on
29635         $(GETOPT_H), redundant through BUILT_SOURCES.
29636         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
29637         redundant through BUILT_SOURCES.
29638         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
29639         redundant through BUILT_SOURCES.
29640         * modules/stdbool (Makefile.am): Remove explicit dependency on
29641         $(STDBOOL_H), redundant through BUILT_SOURCES.
29642         * modules/stdint (Makefile.am): Remove explicit dependency on
29643         $(STDINT_H), redundant through BUILT_SOURCES.
29644         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
29645         Remove explicit dependency on $(SYSEXITS_H).
29646         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
29647
29648 2005-07-18  Simon Josefsson  <jas@extundo.com>
29649
29650         * lib/check-version.c (check_version): Accept identical versions too.
29651
29652 2005-07-18  Bruno Haible  <bruno@clisp.org>
29653
29654         * modules/lock: New file.
29655         * MODULES.html.sh (Multithreading): New section.
29656
29657 2005-07-18  Bruno Haible  <bruno@clisp.org>
29658
29659         * m4/lock.m4: New file, from GNU gettext.
29660
29661 2005-07-18  Bruno Haible  <bruno@clisp.org>
29662
29663         * lib/lock.h: New file, from GNU gettext.
29664         * lib/lock.c: New file, from GNU gettext.
29665
29666 2005-07-18  Bruno Haible  <bruno@clisp.org>
29667
29668         * lib/lock.h (gl_once_t): New type.
29669         (gl_once_define, gl_once): New macros.
29670         * lib/lock.c (fresh_once): New variable.
29671         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
29672         functions.
29673
29674 2005-07-16  Simon Josefsson  <jas@extundo.com>
29675
29676         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
29677         workaround, suggested by Bruno.
29678
29679 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29680
29681         * modules/xalloc (Depends-on): Add xalloc-die.
29682         * modules/xvasprintf (Depends-on): Add xalloc-die.
29683
29684 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29685
29686         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
29687         with a minor change.
29688
29689 2005-07-15  Bruno Haible  <bruno@clisp.org>
29690
29691         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29692         When using lib/poll.c, define poll as rpl_poll.
29693
29694 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29695
29696         * modules/argp (Depends-on): Remove unlocked-io.
29697
29698 2005-07-14  Derek Price  <derek@ximbiot.com>
29699
29700         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29701         for glob symlink bug.
29702
29703 2005-07-14  Bruno Haible  <bruno@clisp.org>
29704
29705         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
29706         Instead, test for *_unlocked function declarations directly.
29707
29708 2005-07-11  Simon Josefsson  <jas@extundo.com>
29709
29710         * modules/size_max: New file.
29711
29712         * modules/xsize: Depend on size_max module for size_max.m4.
29713
29714 2005-07-11  Simon Josefsson  <jas@extundo.com>
29715
29716         * lib/size_max.h: New file.
29717
29718 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29719
29720         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
29721         copyright symbol and the year.
29722         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
29723         (version_etc_va): Use parameterized copyright notice.
29724         Reword to conform to the current GNU coding standards.
29725
29726 2005-07-11  Karl Berry  <karl@gnu.org>
29727
29728         * doc/gnulib.texi (Quoting): new node.
29729         (Initial import): more info, from Patrice.
29730
29731 2005-07-11  Bruno Haible  <bruno@clisp.org>
29732
29733         * gnulib-tool (func_usage): Document option --avoid.
29734         (Command line options): Handle --avoid.
29735         (func_acceptable): New function.
29736         (func_modules_transitive_closure): Use it.
29737
29738 2005-07-11  Bruno Haible  <bruno@clisp.org>
29739
29740         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
29741         Reported by Jim Meyering.
29742
29743 2005-07-10  Bruno Haible  <bruno@clisp.org>
29744
29745         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
29746         Needed when size_t is smaller than 'unsigned int'.
29747         Reported by Paul Eggert.
29748
29749 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29750
29751         * modules/argp (Depends-on): Add unlocked-io
29752
29753 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29754
29755         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
29756         block of defines.
29757
29758 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29759
29760         * config/srclist.txt: Comment out regcomp.c, since we have a porting
29761         fix now.
29762
29763 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
29764         and Paul Eggert  <eggert@cs.ucla.edu>
29765
29766         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
29767         in wint_t, not wchar_t.  Remove now-unnecessary cast.
29768
29769 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29770
29771         * modules/regex (Files): Add lib/regex_internal.c,
29772         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
29773         (Depends-on): Add extensions.
29774         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
29775
29776 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29777
29778         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
29779         pathconf.
29780         * m4/same.m4 (gl_SAME): Likewise.
29781         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
29782
29783         * m4/regex.m4: Adjust to new libc regex implementation.
29784         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
29785         all the .c and .h parts of (the new) regex.
29786         Quote the m4 stuff better.
29787         Check for RE_ICASE bug of old gnulib.
29788         Check for REG_STARTEND of recent libc.
29789         Rename local variables from jm_* to gl_*.
29790         Quote operand of "test -f".
29791         Say "recent enough" version of libc, not "version 2".
29792         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
29793         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
29794         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
29795         Remove check for btowc, isascii.
29796         Require AM_LANGINFO_CODESET.
29797
29798 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29799
29800         * lib/regex.c, regex.h: Sync from libc.
29801         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
29802         * lib/regexec.c:
29803         New files, synced from libc, except that regex_internal.h
29804         currently has a small porting fix.
29805
29806 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29807
29808         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
29809         regex_internal.c, regexec.c.
29810         Add regex_internal.h too, but as a comment, since the libc version
29811         is currently broken in gnulib mode.
29812
29813 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29814
29815         Support programs like Emacs that use gnulib but not gettext.
29816         * MODULES.html.sh (Internationalization functions): Add gettext-h.
29817         * modules/gettext-h: New file.
29818         * modules/gettext (Files): Remove lib/gettext.h.
29819         (Depends-on): Add gettext-h.
29820         (Makefile.am): Remove lib_SOURCES.
29821         * modules/argmatch, modules/c-stack, modules/closeout:
29822         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
29823         * modules/execute, modules/file-type, modules/getaddrinfo:
29824         * modules/getopt, modules/human, modules/javacomp:
29825         * modules/javaexec, modules/mkdir-p, modules/obstack:
29826         * modules/openat, modules/pagealign_alloc, modules/pipe:
29827         * modules/quotearg, modules/regex, modules/rpmatch:
29828         * modules/unicodeio, modules/userspec, modules/version-etc:
29829         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
29830         * modules/xsetenv:
29831         Depend on gettext-h, not gettext.
29832
29833 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29834
29835         * gnulib-tool (func_import): Add support for 'public domain' license.
29836         * modules/alloca, modules/atexit, modules/memmove:
29837         Now public domain, not GPL.
29838         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
29839         * modules/realloc, modules/strerror, modules/strtod:
29840         Now LGPL, not GPL.
29841
29842 2005-07-05  Bruno Haible  <bruno@clisp.org>
29843
29844         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
29845         autoconf CVS. Needed for mingw.
29846
29847 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29848
29849         Remove the dependency of the strftime module on the tzset module.
29850         * modules/strftime (Depends-on): Remove dependency on tzset.
29851
29852 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29853
29854         Remove the dependency of the strftime module on the tzset module.
29855         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
29856         gl_FUNC_TZSET_CLOBBER.
29857
29858 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29859
29860         Remove the dependency of the strftime module on the tzset module.
29861         * lib/strftime.c (my_strftime)
29862         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
29863         Copy the input structure, to work around some of the bug with
29864         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
29865         Solaris releases, you should also use the tzset module, but we won't
29866         require it as a dependency any more since we don't want LGPLed code
29867         to depend on GPLed code.
29868
29869 2005-07-02  Jim Meyering  <jim@meyering.net>
29870
29871         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
29872         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
29873         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
29874         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
29875
29876 2005-07-02  Jim Meyering  <jim@meyering.net>
29877
29878         * lib/backupfile.c (backup_args): Change a `0' to NULL.
29879
29880 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
29881
29882         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
29883         declares only 'struct timespec;' (!).
29884
29885 2005-07-01  Jim Meyering  <jim@meyering.net>
29886
29887         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
29888         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
29889         * lib/save-cwd.c, tempname.c:
29890         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29891         and don't include <sys/file.h>).
29892
29893 2005-06-29  Jim Meyering  <jim@meyering.net>
29894
29895         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
29896         type name.  Use the variable name instead.
29897         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
29898         Likewise.
29899
29900 2005-06-28  Simon Josefsson  <jas@extundo.com>
29901
29902         * modules/check-version (Files): Add check-version.m4.
29903
29904 2005-06-28  Simon Josefsson  <jas@extundo.com>
29905
29906         * m4/check-version.m4: New file, suggested by Jim Meyering
29907         <jim@meyering.net>.
29908
29909 2005-06-28  Simon Josefsson  <jas@extundo.com>
29910
29911         * lib/check-version.h, lib/check-version.c: New files.
29912
29913 2005-06-28  Simon Josefsson  <jas@extundo.com>
29914
29915         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
29916         collision with global variable.  Better indentation.  Don't
29917         increment buffer pointer beyond buffer end.  Based on comments
29918         from Paul Eggert <eggert@cs.ucla.edu>.
29919
29920         * lib/base64.h: Indent.
29921
29922 2005-06-28  Simon Josefsson  <jas@extundo.com>
29923
29924         * doc/gnulib.texi (Library version handling): New section.
29925
29926 2005-06-28  Jim Meyering  <jim@meyering.net>
29927
29928         * check-module (find_included_lib_files): Hard-code another
29929         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
29930         but modules/fts-lgpl (correctly) does not list those files.
29931
29932         * modules/canonicalize (Files): Add lib/pathmax.h.
29933
29934 2005-06-25  Simon Josefsson  <jas@extundo.com>
29935
29936         * modules/check-version: New file.
29937
29938 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
29939
29940         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
29941         initializer of struct addrinfo, as an indication that we don't
29942         care how many members the structure has.
29943
29944 2005-06-24  Derek Price  <derek@ximbiot.com>
29945         and Bruno Haible  <bruno@clisp.org>
29946
29947         Remove stat module & update lstat.
29948         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
29949         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29950         * m4/stat.m4: Remove this file.
29951
29952 2005-06-24  Derek Price  <derek@ximbiot.com>
29953         and Bruno Haible  <bruno@clisp.org>
29954
29955         Remove stat module & update lstat.
29956         * lib/stat.c: Remove this file...
29957         (slash_aware_lstat): ...moving this content and its support...
29958         * lib/lstat.c (rpl_lstat): ...into here.
29959         * lib/lstat.h: New file.
29960
29961 2005-06-24  Derek Price  <derek@ximbiot.com>
29962         and Bruno Haible  <bruno@clisp.org>
29963
29964         Remove stat module & update lstat.
29965         * config/srclist.txt (libc sources): Remove stat.
29966
29967 2005-06-24  Derek Price  <derek@ximbiot.com>
29968         and Bruno Haible  <bruno@clisp.org>
29969
29970         Remove stat module & update lstat.
29971         * MODULES.html.sh (stat): Remove.
29972         * MODULES.html: Regenerated.
29973         * modules/lstat (Description): Correct function name.
29974         (Files): Add "lstat.h".
29975         (Depends-on): Remove stat, add xalloc, stat-macros.
29976         * modules/stat: Remove this file.
29977         (Include): Add "lstat.h", remove <sys/stat.h>.
29978
29979 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29980
29981         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
29982         (ranged_convert): Don't save conversion in a temporary struct.
29983         This causes a warning with GCC 4.0.0, and anyway in the typical
29984         case it's not worth the extra 100 bytes or so of code.
29985         (ranged_convert, __mktime_internal): When calling a function via a
29986         pointer P, use P () rather than (*P) (), as we now assume C89 or
29987         better.
29988
29989 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29990
29991         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
29992         "who -r" failed to give output.  Problem reported by Tim Waugh.
29993
29994         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
29995         (xcalloc): Use it to avoid needless tests.
29996         Problem reported by Jim Meyering.
29997
29998 2005-06-20  Derek Price  <derek@ximbiot.com>
29999
30000         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
30001         unnecessary for Autoconfs > 2.59c.
30002
30003 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30004
30005         * lib/argp.h (__option_is_short): Check upper limit of
30006         __key. Isprint() requires its argument to have the value
30007         of an unsigned char or EOF.
30008
30009 2005-06-16  Jim Meyering  <jim@meyering.net>
30010
30011         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
30012         when either N or S is zero.
30013
30014 2005-06-16  Derek Price  <derek@ximbiot.com>
30015
30016         * m4/bison.m4: Declare YACC & YFLAGS precious.
30017
30018 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
30019
30020         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
30021         multibyte string or pattern, fall back on unibyte matching.
30022         Problem reported by James Youngman.
30023
30024 2005-06-08  Bruno Haible  <bruno@clisp.org>
30025
30026         * modules/csharpcomp: New file.
30027         * MODULES.html.sh (C#): Add csharpcomp.
30028
30029 2005-06-08  Bruno Haible  <bruno@clisp.org>
30030
30031         * m4/csharpcomp.m4: New file, from GNU gettext.
30032
30033 2005-06-08  Bruno Haible  <bruno@clisp.org>
30034
30035         * lib/csharpcomp.h: New file, from GNU gettext.
30036         * lib/csharpcomp.c: New file, from GNU gettext.
30037         * lib/csharpcomp.sh.in: New file, from GNU gettext.
30038
30039 2005-06-08  Bruno Haible  <bruno@clisp.org>
30040
30041         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
30042         warning on mingw.
30043
30044 2005-06-07  Derek Price  <derek@ximbiot.com>
30045
30046         Sync from CVS.
30047         * lib/glob_.h: Indent nested #ifdef.
30048
30049 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30050
30051         Sync from coreutils.
30052         Use "file name" when talking about file names, instead of "filename"
30053         or "path", as per the GNU coding standards.
30054         * lib/mkdir-p.c: Renamed from makepath.c.
30055         (make_dir_parents): Renamed from make_path.  All callers changed.
30056         * lib/mkdir-p.h: Likewise.  All includers changed.
30057         * lib/filenamecat.c: Renamed from path-concat.c.
30058         (file_name_concat): Renamed from path_concat.  All callers changed.
30059         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
30060         * lib/filenamecat.h: Likewise.  All includers changed.
30061         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
30062         in comments or local variable names.
30063         * lib/basename.c: Likewise.
30064         * lib/canonicalize.c, canonicalize.h: Likewise.
30065         * lib/dirname.c, dirname.h: Likewise.
30066         * lib/euidaccess.c: Likewise.
30067         * lib/exclude.c: Likewise
30068         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
30069         * lib/fsusage.c, fsuage.h: Likewise.
30070         * lib/fts.c, fts_.h: Likewise.
30071         * lib/getcwd.c: Likewise.
30072         * lib/getloadavg.c: Likewise.
30073         * lib/mkstemp.c: Likewise.
30074         * lib/mountlist.c, mountlist.h: Likewise.
30075         * lib/openat.c, openat.h: Likewise.
30076         * lib/readlink-stub.c: Likewise.
30077         * lib/readutmp.c, readutmp.h: Likewise.
30078         * lib/rename.c: Likewise.
30079         * lib/rmdir.c: Likewise.
30080         * lib/same.c: Likewise.
30081         * lib/savedir.c: Likewise.
30082         * lib/stripslash.c: Likewise.
30083         * lib/tempname.c: Likewise.
30084         * lib/xreadlink.c: Likewise.
30085         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
30086         All uses changed.
30087         * lib/exclude.h: Likewise.
30088
30089         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
30090         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30091         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
30092         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30093         * lib/pathmax.h: Include <limits.h> unconditionally, since other
30094         files have been getting away with it for years (MORE/BSD 4.3
30095         is extinct now).
30096         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
30097         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30098
30099         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
30100         Define to 256, not 255, as per modern POSIX.
30101
30102 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30103
30104         Sync from coreutils.
30105         Use "file name" when talking about file names, instead of "filename"
30106         or "path", as per the GNU coding standards.
30107         * MODULES.html.sh: mkdir-p renamed from makepath.
30108         filenamecat renamed from path-concat.
30109         * modules/filenamecat: Renamed from modules/path-concat.
30110         (Files): filenamecat.h and filenamecat.c renamed from
30111         path-concat.h and path-concat.c.
30112         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
30113         (Include): filenamecat.h, not path-concat.h.
30114         * modules/mkdir-p: Renamed from modules/makepath.
30115         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
30116         makepath.c.
30117         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
30118         (Include): mkdir-p.h, not makepath.h.
30119
30120 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30121
30122         Sync from coreutils.
30123         * m4/mkdir-p.m4: Renamed from makepath.m4.
30124         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
30125         Rename files from makepath.c to mkdir-p.c, and from
30126         makepath.h to mkdir-p.h.
30127         * m4/filenamecat.m4: Renamed from path-concat.m4.
30128         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
30129         Rename files from path-concat.c to filenamecat.c,
30130         and from path-concat.h to filenamecat.h.
30131         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
30132         "file name" in local variables or comments.
30133         * m4/rename.m4: Likewise.
30134
30135 2005-06-01  Bruno Haible  <bruno@clisp.org>
30136
30137         * modules/csharpexec: New file.
30138         * MODULES.html.sh (C#): New section.
30139
30140 2005-06-01  Bruno Haible  <bruno@clisp.org>
30141
30142         * m4/csharp.m4: New file, from GNU gettext.
30143         * m4/csharpexec.m4: New file, from GNU gettext.
30144
30145 2005-06-01  Bruno Haible  <bruno@clisp.org>
30146
30147         * lib/csharpexec.h: New file, from GNU gettext.
30148         * lib/csharpexec.c: New file, from GNU gettext.
30149         * lib/csharpexec.sh.in: New file, from GNU gettext.
30150
30151 2005-05-31  Derek Price  <derek@ximbiot.com>
30152             Paul Eggert  <eggert@cs.ucla.edu>
30153
30154         Sync from cvs.
30155         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30156
30157 2005-05-31  Derek Price  <derek@ximbiot.com>
30158             Paul Eggert  <eggert@cs.ucla.edu>
30159
30160         Sync from cvs.
30161         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30162
30163 2005-05-29  Derek Price  <derek@ximbiot.com>
30164
30165         * config/srclist.txt (glob_.h, glob.c): Add these files.
30166
30167 2005-05-29  Derek Price  <derek@ximbiot.com>
30168
30169         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
30170         * modules/glob: New file.
30171         * modules/getlogin_r: Add link to POSIX spec in description.
30172
30173 2005-05-29  Derek Price  <derek@ximbiot.com>
30174             Paul Eggert  <eggert@cs.ucla.edu>
30175
30176         * m4/glob.m4: New file.
30177
30178 2005-05-29  Derek Price  <derek@ximbiot.com>
30179             Paul Eggert  <eggert@cs.ucla.edu>
30180
30181         * lib/glob_.h, lib/glob.c: New files.
30182
30183 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30184
30185         * modules/fts (Files): Remove m4/inttypes-pri.m4.
30186         * modules/fts-lgpl (Depends-on): Remove gettext.
30187
30188 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30189
30190         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
30191         and don't require gt_INTTYPES_PRI.
30192
30193 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30194
30195         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
30196
30197         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
30198         the configuration hassle isn't worth it.
30199         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
30200         (LONGEST_MODIFIER, PRIuMAX): Remove.
30201
30202 2005-05-27  Bruno Haible  <bruno@clisp.org>
30203
30204         * lib/getlogin_r.h: Remove second include of <stddef.h>.
30205
30206 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30207
30208         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
30209         _POSIX_PTHREAD_SEMANTICS for Solaris.
30210
30211 2005-05-25  Derek Price  <derek@ximbiot.com>
30212
30213         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
30214
30215 2005-05-25  Derek Price  <derek@ximbiot.com>
30216             Paul Eggert  <eggert@cs.ucla.edu>
30217
30218         * modules/getlogin_r, m4/getlogin_r.m4: New files.
30219         * lib/getlogin_r.c, getlogin_r.h: New files.
30220
30221 2005-05-25  Bruno Haible  <bruno@clisp.org>
30222             Derek Price  <derek@ximbiot.com>
30223
30224         * lib/getlogin_r.h: Simplify API documentation.
30225
30226 2005-05-23  Derek Price  <derek@ximbiot.com>
30227
30228         * modules/minmax (Files): Add m4/minmax.m4.
30229         (configure.ac): Add gl_MINMAX.
30230
30231 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30232
30233         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
30234         so that unistd-safer.h (GPL'ed code) need not be included.
30235
30236 2005-05-22  Bruno Haible  <bruno@clisp.org>
30237
30238         * m4/minmax.m4: New file.
30239         Based on a patch by Derek Price <derek@ximbiot.com>.
30240
30241 2005-05-22  Bruno Haible  <bruno@clisp.org>
30242
30243         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
30244         (INT64_MIN): Fix definition.
30245         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30246
30247         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
30248         NEED_SIGNED_INT_TYPES.
30249
30250         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
30251         HAVE_SYSTEM_INTTYPES.
30252
30253 2005-05-22  Bruno Haible  <bruno@clisp.org>
30254
30255         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
30256         Also include <sys/param.h> if it defines MIN, MAX.
30257         Based on a patch by Derek Price <derek@ximbiot.com>.
30258
30259 2005-05-21  Jim Meyering  <jim@meyering.net>
30260
30261         * modules/fts (Files): Add m4/inttypes-pri.m4.
30262         (Depends-on): Add lstat and remove gettext.  Alphabetize.
30263
30264 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30265
30266         New fts module.
30267         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
30268         (setup_dir, free_dir): New functions.
30269         (enter_dir, leave_dir): Define trivial
30270         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
30271         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
30272         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
30273         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
30274         Move to fts-cycle.c.
30275         (fts_open): Use setup_dir.
30276         (fts_close): Use free_dir.
30277         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
30278         This adds a label and some gotos, but the alternatives were messier.
30279         Check for memory allocation failure when entering a dir.
30280         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30281         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30282         (FTS): New member fts_cycle, that is a union that contains the
30283         old active_dir_ht and cycle_state.  All uses changed to mention
30284         fts_cycle.ht and fts_cycle.state.
30285         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30286         fts.c, with the following changes:
30287         (setup_dir, free_dir): New functions.
30288         (enter_dir): Now returns bool.  Return true if successful, false
30289         if memory exhausted.  All callers changed.
30290         Do not bother partly cleaning up on
30291         memory allocation failure; that is free_dir's job.
30292         However, free ad if hash_insert fails, to avoid memory leak.
30293         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30294         fts->fts_options to see which union member to use.
30295
30296 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30297
30298         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30299         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30300
30301 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30302
30303         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30304
30305 2005-05-20  Jim Meyering  <jim@meyering.net>
30306
30307         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30308         Now a macro, to pacify GCC.
30309
30310 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30311
30312         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30313         of -1.
30314
30315 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30316
30317         * lib/chown.c (rpl_chown): Return -1 on failure.
30318
30319 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30320
30321         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30322         Don't check for stddef.h.
30323         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30324         don't use its results.
30325         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30326         since we include them unconditionally.  Don't require
30327         AM_STDBOOL_H, since stdbool is a prerequisite.
30328         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30329         since we assume C89 or better.
30330         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30331         as we don't use their results.
30332         Don't check for fchdir, memmove, memset, strrchr, as we use
30333         them unconditionally.
30334         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30335         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30336
30337 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30338
30339         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30340         Include <stddef.h> unconditionally, since we assume C89 now.
30341         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30342         * lib/fts.c: Include fts_.h first, to check interface.
30343         Do not include intprops.h; no longer needed.
30344         Include cycle-check.h and hash.h, since fts_.h no longer does.
30345         Remove unnecessary casts of closedir to void.
30346         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30347         decide whether to decrement nlinks.
30348         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30349         (FTS): Use struct hash_table * instead of Hash_table, so that
30350         we no longer need to include hash.h here.
30351
30352 2005-05-18  Jim Meyering  <jim@meyering.net>
30353
30354         * modules/dirfd (License): Change to LGPL.  Most of the code
30355         is already in the public domain.
30356
30357 2005-05-18  Jim Meyering  <jim@meyering.net>
30358
30359         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30360         Reported by Yoann Vandoorselaere.
30361
30362 2005-05-17  Jim Meyering  <jim@meyering.net>
30363
30364         * m4/fts.m4: New file, from coreutils.
30365
30366 2005-05-17  Jim Meyering  <jim@meyering.net>
30367
30368         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30369
30370 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30371
30372         Sync from coreutils.
30373         * m4/unlinkdir.m4: New file.
30374
30375 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30376
30377         Sync from coreutils.
30378         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
30379         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
30380         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
30381         White space changes only.
30382         * lib/makepath.c (make_path): Port to hosts where leading "//" is
30383         special.
30384         * lib/yesno.c: Include getline.h, not ctype.h.
30385         (yesno): Don't remove leading white space; POSIX doesn't allow it.
30386         Use getline to remove arbitrary restriction on response length.
30387
30388 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30389
30390         * config/srclist-update: Spell out "Street" in FSF postal
30391         mail address; this is the style the FSF seems to prefer.
30392
30393         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
30394         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
30395         this updates FSF postal mail address.
30396
30397         Sync from coreutils.
30398         * modules/unlinkdir: New file.
30399         * modules/yesno (Depends-on): Add getline.
30400         * MODULES.html.sh (File system functions): Add unlinkdir.
30401
30402 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30403
30404         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30405         lib/strsep.h:
30406         Change the initial comment to refer to GPL, not LGPL.
30407         gnulib-tool will change it to LGPL as needed.
30408
30409         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30410         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30411         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30412         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30413         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30414         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30415         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30416         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
30417         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
30418         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
30419         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
30420         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
30421         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
30422         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
30423         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
30424         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
30425         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
30426         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
30427         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
30428         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
30429         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
30430         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
30431         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
30432         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
30433         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
30434         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
30435         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
30436         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
30437         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
30438         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
30439         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
30440         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
30441         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
30442         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
30443         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
30444         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
30445         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
30446         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
30447         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
30448         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
30449         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
30450         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
30451         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
30452         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
30453         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
30454         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
30455         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
30456         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
30457         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
30458         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
30459         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30460         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
30461         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
30462         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
30463         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
30464         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
30465         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
30466         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
30467         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
30468         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
30469         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
30470         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
30471         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
30472         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
30473         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
30474         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
30475         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
30476         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
30477         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
30478         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
30479         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
30480         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
30481         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
30482         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
30483         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
30484         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
30485         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
30486         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
30487         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
30488         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
30489         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
30490         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
30491         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
30492         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
30493         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
30494         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
30495         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
30496         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
30497         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
30498         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
30499         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
30500         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
30501         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
30502         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
30503         lib/yesno.c, lib/yesno.h:
30504         Update FSF postal mail address.
30505
30506 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30507
30508         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
30509         tests/test-memmem.c, tests/test-stpncpy.c:
30510         Update FSF postal mail address.
30511
30512 2005-05-13  Bruno Haible  <bruno@clisp.org>
30513
30514         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
30515         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
30516         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
30517         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
30518         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
30519         Add support for 64-bit integers in the MSVC compiler.
30520
30521 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30522
30523         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
30524
30525 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
30526
30527         * gnulib-tool (func_import): Sort and uniquify recommended includes.
30528
30529 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30530
30531         * doc/getdate.texi (General date syntax): Don't say that date
30532         date --iso-8601=ns generates acceptable dates; it doesn't yet.
30533         Problem reported by Nic Ferrier.
30534
30535 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30536
30537         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
30538         specified in ai_socktype. Fix invalid ai_protocol
30539         check. ai_protocol is usually set to 0 or depending on
30540         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
30541         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
30542         ai_socktype / ai_protocol in the returned addrinfo structure.
30543
30544 2005-05-10  Simon Josefsson  <jas@extundo.com>
30545
30546         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
30547         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30548
30549 2005-05-10  Karl Berry  <karl@gnu.org>
30550
30551         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
30552         (from http://www.gnu.org/licenses).
30553         * doc/COPYING.LIB: also rename to COPYING.LESSER.
30554         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
30555         fdl.texi suffices.
30556
30557 2005-05-10  Karl Berry  <karl@gnu.org>
30558
30559         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
30560         (COPYING.DOC): remove.
30561
30562         * config/srclist-update: new FSF address.
30563
30564 2005-05-10  Derek Price  <derek@ximbiot.com>
30565
30566         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
30567         possible.
30568
30569 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30570             Bruno Haible  <bruno@clisp.org>
30571
30572         * modules/inet_ntop: New file.
30573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30574         inet_ntop.
30575
30576 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30577             Bruno Haible  <bruno@clisp.org>
30578
30579         * m4/inet_ntop.m4: New file.
30580
30581 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30582             Bruno Haible  <bruno@clisp.org>
30583
30584         * lib/inet_ntop.h: New file.
30585         * lib/inet_ntop.c: New file, from glibc with modifications.
30586
30587 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
30588
30589         * modules/time_r (License): Change to LGPL.
30590         * modules/extensions (License): Change to LGPL.  Actually,
30591         the license is more permissive than that, but currently gnulib-tool
30592         doesn't know how to handle more-permissive licenses.
30593
30594         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
30595         Problem reported by Dave Love.
30596
30597 2005-05-08  Jim Meyering  <jim@meyering.net>
30598
30599         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
30600         blank.
30601
30602 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30603
30604         * modules/argmatch (Depends-on): Add stdbool.
30605         * modules/backupfile (Depends-on): Likewise.
30606         * modules/chdir-long (Depends-on): Likewise.
30607         * modules/closeout (Depends-on): Likewise.
30608         * modules/cycle-check (Depends-on): Likewise.
30609         * modules/dirname (Depends-on): Likewise.
30610         * modules/fnmatch (Depends-on): Likewise.
30611         * modules/fsusage (Depends-on): Likewise.
30612         * modules/fwriteerror (Depends-on): Likewise.
30613         * modules/getcwd (Depends-on): Likewise.
30614         * modules/getloadavg (Depends-on): Likewise.
30615         * modules/hard-locale (Depends-on): Likewise.
30616         * modules/makepath (Depends-on): Likewise.
30617         * modules/mountlist (Depends-on): Likewise.
30618         * modules/nanosleep (Depends-on): Likewise.
30619         * modules/posixtm (Depends-on): Likewise.
30620         * modules/quotearg (Depends-on): Likewise.
30621         * modules/readtokens (Depends-on): Likewise.
30622         * modules/readtokens0 (Depends-on): Likewise.
30623         * modules/readutmp (Depends-on): Likewise.
30624         * modules/save-cwd (Depends-on): Likewise.
30625         * modules/strftime (Depends-on): Likewise.
30626         * modules/userspec (Depends-on): Likewise.
30627         * modules/utimecmp (Depends-on): Likewise.
30628         * modules/xgetcwd (Depends-on): Likewise.
30629         * modules/xnanosleep (Depends-on): Likewise.
30630         * modules/xstrtod (Depends-on): Likewise.
30631         * modules/yesno (Depends-on): Likewise.
30632
30633 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30634
30635         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
30636         needless checks.
30637
30638 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30639
30640         Merge from coreutils.  Among other things,
30641         add bulletproofing for cases where stdin, stdout, or stderr are closed.
30642         * lib/fd-safer.c: New file.
30643         * lib/fcntl-safer.h, open-safer.c: Remove.
30644         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
30645         * lib/dup-safer.c: Include unistd-safer.h first.
30646         Don't include errno.h.
30647         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
30648         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
30649         * lib/file-type.c: Rely on file-type.h change.
30650         * lib/getloadavg.c: Include unistd-safer.h.
30651         (getloadavg): Use safer open.
30652         * lib/getusershell.c: Include "stdio-safer.h".
30653         (getusershell): Use safer fopen.
30654         * lib/long-options.c (long_options): Use NULL rather than 0.
30655         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
30656         'free'.
30657         * lib/modechange.c: Likewise.
30658         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
30659         (MODE_DONE): New constant.
30660         (struct mode_change): Remove 'next' member.
30661         (make_node_op_equals): New function; like the old one of the
30662         same name, except it allocates an array.
30663         (mode_compile, mode_create_from_ref): Use it.
30664         (mode_compile): Allocate result as an array, not a linked list.
30665         Parse octal string ourself, so that we catch mistakes like "+0".
30666         (mode_adjust): Arg is an array, not a linked list.
30667         * lib/modechange.c: Include stat-macros.h, xalloc.h.
30668         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
30669         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
30670         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
30671         Remove.  This is now stat-macros.h's job.
30672         (talloc): Remove.  All callers replaced by xalloc, so that
30673         our invokers don't have to worry about reporting memory failures.
30674         (make_node_op_equals): Remove.
30675         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30676         New constants.
30677         (struct mode_change): Moved here from modechange.h.
30678         (mode_append_entry): Remove.
30679         (mode_compile): Remove MASKED_OPS arg, since it encouraged
30680         apps to have incorrect behavior.  Use simpler algorithm for head
30681         and tail.  Don't futz with umask; that's now the job of mode_adjust.
30682         Detect more invalid usages rather than having somewhat-random behavior.
30683         Don't insert an "a=" action, as that leads to incorrect behavior.
30684         (mode_compile, mode_create_from_ref): Return NULL on error instead
30685         of an enum, since now there's only one way to have an error.  All
30686         callers changed.
30687         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
30688         at the correct time.  Simplify calculation of "+u" and its ilk.
30689         Don't mishandle "+X".
30690         (mode_free): Remove "register" and localize decls.
30691         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30692         (struct mode_change): Move to modechange.c; callers don't
30693         need to see this stuff.
30694         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30695         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30696         (mode_change, mode_adjust): Reflect the new signatures noted above.
30697         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30698         that might redefine system include files.
30699         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30700         (my_usleep): Use NULL rather than (void *) 0.
30701         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30702         Use siginterrupt to specify that system calls should be interrupted.
30703         (rpl_nanosleep): Move initialization of suspended closer to call of
30704         my_usleep.
30705         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
30706         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
30707         (desirable_utmp_entry): New function.
30708         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
30709         using x2nrealloc, to simplify logic.
30710         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
30711         size calculation.  Do not assume utmp file is a regular file.
30712         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
30713         (READ_UTMP_CHECK_PIDS): New constant.
30714         * lib/save-cwd.c: Include unistd-safer.h.
30715         (save_cwd): Use fd_safer.
30716         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
30717         [!_LIBC] Include "stat-macros.h" instead.
30718         * lib/unistd-safer.h (fd_safer): New decl.
30719
30720 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30721
30722         * modules/getloadavg (Depends-on): Add unistd-safer.
30723         * modules/getusershell (Depends-on): Add stdio-safer.
30724         * modules/lstat (Depends-on): Remove xalloc.
30725         * modules/mkstemp (Depends-on): Add stat-macros.
30726         * modules/modechange (Depends-on): Remove xstrtol.
30727         Add stat-macros, xalloc.
30728         * modules/save-cwd (Depends-on): Add unistd-safer.
30729         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
30730         * modules/unistd-safer (Files): Add lib/fd-safer.c
30731         (Makefile.am): Remove lib_SOURCES.
30732
30733         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
30734         Remove fcntl-safer; unistd-safer supersedes it.
30735
30736 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30737
30738         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
30739         AC_HEADER_STAT.
30740         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
30741         (gl_PREREQ_CHOWN): Remove.
30742         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
30743         it.  Don't require AC_HEADER_STAT.
30744         (gl_PREREQ_LSTAT): Remove.
30745         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
30746         Don't require AC_HEADER_STAT.
30747         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
30748         (gl_PREREQ_RMDIR): Remove.
30749         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
30750         mention stat-macros.h or AC_HEADER_STAT, since we'll make
30751         the stat-macros module a prerequisite.
30752         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
30753         * m4/filemode.m4 (gl_FILEMODE): Likewise.
30754         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
30755         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
30756         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
30757         variable names.
30758         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
30759         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
30760         variable prefixes.
30761         * m4/fcntl-safer.m4: Remove.
30762         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
30763         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
30764         Invoke gl_PREREQ_FD_SAFER.
30765         (gl_PREREQ_FD_SAFER): New macro.
30766         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
30767         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
30768         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
30769         Remove duplicate call to AC_LIBOBJ(readutmp).
30770         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
30771
30772         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
30773         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
30774
30775 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30776
30777         * MODULES.html.sh (Misc): Add byteswap.
30778
30779 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30780
30781         * modules/getcwd (Depends-on): Add extensions.
30782         * modules/openat (Depends-on): Likewise.
30783
30784 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30785
30786         * modules/byteswap: New file.
30787
30788 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30789
30790         * m4/byteswap.m4: New file.
30791
30792 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30793
30794         * lib/byteswap_.h: New file.
30795
30796 2005-04-25  Karl Berry  <karl@gnu.org>
30797
30798         * m4/gettext.m4: Update from GNU gettext 0.14.4.
30799
30800 2005-04-25  Albert Chin  <china@thewrittenword.com>
30801
30802         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
30803         Toolkit C bug.
30804
30805 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
30806
30807         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
30808         (func_ln_if_changed) Remove forcibly for no error message
30809         in case file does not exist.
30810
30811 2005-04-19  Simon Josefsson  <jas@extundo.com>
30812
30813         * gnulib-tool (Options): Make --symlink mean --symbolic.
30814
30815 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
30816
30817         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
30818
30819 2005-04-16  Simon Josefsson  <jas@extundo.com>
30820
30821         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
30822
30823 2005-04-15  Simon Josefsson  <jas@extundo.com>
30824
30825         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
30826
30827 2005-04-15  Simon Josefsson  <jas@extundo.com>
30828
30829         * gnulib-tool: Rename --symlink to --symbolic.
30830
30831 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
30832
30833         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
30834         symbolic links to files instead of copying/moving.  Add --aux-dir,
30835         specifying directory relative --dir where auxiliary build tools
30836         are placed.
30837
30838 2005-04-14  Bruno Haible  <bruno@clisp.org>
30839
30840         * modules/allocsa (License): Change to LGPL.
30841         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30842
30843 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
30844
30845         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
30846         that "UTC +1 second" continues to work.  Problem reported
30847         by Dmitry V. Levin.
30848         (relunit_snumber): New rule.
30849         (relunit): Use it.
30850
30851 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30852
30853         * lib/getdate.y (universal_time_zone_table): New constant.
30854         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
30855         universal_time_zone_table.
30856         (lookup_zone): Prefer universal_time_zone_table to
30857         local_time_zone_table, so that "GMT" time stamps are allowed in
30858         London during the summer.  Problem reported by Ian Abbott.
30859
30860 2005-04-12  Jim Meyering  <jim@meyering.net>
30861
30862         * lib/human.c (humblock): Set *options even when returning due to
30863         xstrtoumax conversion failure.  Thanks to a used-uninitialized
30864         warning from gcc-4.
30865
30866 2005-04-09  Jim Meyering  <jim@meyering.net>
30867
30868         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
30869         -Wuninitialized: initialize tm0.tm_year.
30870
30871 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
30872
30873         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
30874         count, since there's no maximum.  All uses changed.
30875         Add member dsts_seen.
30876         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
30877         not being INT_MAX.
30878         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
30879         Use pc_rels_seen to decide whther a date is absolute.
30880
30881         * lib/getdate.y (number): Don't overwrite year.
30882         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
30883         check.
30884
30885 2005-04-02  Simon Josefsson  <jas@extundo.com>
30886
30887         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
30888         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
30889
30890 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
30891
30892         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
30893         where no absolute path name can be longer than PATH_MAX.
30894
30895 2005-03-27  Jim Meyering  <jim@meyering.net>
30896
30897         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
30898
30899 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
30900
30901         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
30902         "one's complement" -> "ones' complement" in comment, as per Knuth.
30903         "value of type" -> "type or expression" in comment.
30904         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
30905
30906 2005-03-26  Jim Meyering  <jim@meyering.net>
30907
30908         Comment nits.
30909         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
30910         Correct typos: s/or/of/.
30911
30912 2005-03-26  Jim Meyering  <jim@meyering.net>
30913
30914         * modules/check-include-files: Move to ../ and rename to...
30915         * check-module: ...this.
30916
30917 2005-03-25  Jim Meyering  <jim@meyering.net>
30918
30919         * modules/xvasprintf (Files): Add xalloc.h.
30920
30921 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
30922
30923         * modules/gettext (Files): config/config.rpath ->
30924         build-aux/config.rpath
30925         * modules/iconv (Files): Likewise.
30926         Problem reported by Oskar Liljeblad.
30927
30928 2005-03-23  Jim Meyering  <jim@meyering.net>
30929
30930         * modules/check-include-files: New script to check for
30931         missing dependencies, multiple includes, etc.
30932
30933         * modules/c-strtold (Depends-on): Add xalloc.
30934         * modules/c-strtod (Depends-on): Add xalloc.
30935         * modules/hash (Depends-on): Add xalloc.
30936         (Files): Remove lib/xalloc.h.
30937
30938         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
30939         * modules/userspec (Files): Add lib/inttostr.h.
30940
30941 2005-03-23  Jim Meyering  <jim@meyering.net>
30942
30943         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
30944
30945 2005-03-22  Jim Meyering  <jim@meyering.net>
30946
30947         * modules/stat-macros: New module.
30948         * modules/canonicalize, modules/euidaccess, modules/file-type,
30949         * modules/filemode, modules/lchown, modules/makepath,
30950         * modules/rmdir, modules/stat: Depend on new stat-macros module
30951         rather than listing lib/stat-macros.h manually.
30952         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
30953
30954 2005-03-22  Jim Meyering  <jim@meyering.net>
30955
30956         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
30957
30958 2005-03-22  Bruno Haible  <bruno@clisp.org>
30959
30960         * config/srclist.txt: Replace target directory 'config' with
30961         'build-aux'.
30962         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
30963         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
30964         ../build-aux/.
30965
30966 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
30967
30968         * modules/chdir-long (Depends-on): Add mempcpy.
30969
30970         * modules/acl, modules/backupfile, modules/c-strtod,
30971         modules/c-strtold, modules/canon-host, modules/canonicalize,
30972         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
30973         modules/exclude, modules/exitfail, modules/file-type,
30974         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
30975         modules/getdate, modules/getline, modules/getpagesize,
30976         modules/getpass, modules/getugroups, modules/group-member,
30977         modules/hard-locale, modules/hash, modules/human, modules/idcache,
30978         modules/inttostr, modules/long-options, modules/makepath,
30979         modules/md5, modules/memcasecmp, modules/memcoll,
30980         modules/modechange, modules/mountlist, modules/path-concat,
30981         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
30982         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
30983         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
30984         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
30985         modules/strftime, modules/strndup, modules/strverscmp,
30986         modules/timespec, modules/unlocked-io, modules/userspec,
30987         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
30988         modules/yesno:
30989         Remove lib_SOURCES line from Makefile.am section, as this is now
30990         done automatically by the corresponding Autoconf macro.
30991
30992 2005-03-21  Jim Meyering  <jim@meyering.net>
30993
30994         Changes imported from coreutils.
30995
30996         * lib/cycle-check.c: Don't include xalloc.h.
30997
30998         * lib/path-concat.c: Don't include assert.h.
30999         (path_concat): Remove assertion that would have triggered
31000         for ABASE starting with more than one slash.
31001         Reported by Andreas Schwab.
31002
31003         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
31004         properly when ABASE is an absolute file name.
31005         Correct the description of this function.
31006         Include <assert.h>.
31007         Add an assertion and a test driver.
31008         This fixes a bug introduced on 2004-07-02.
31009         Andreas Schwab reported the resulting failure of cp --parents:
31010         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
31011
31012 2005-03-21  Jim Meyering  <jim@meyering.net>
31013
31014         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
31015         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
31016
31017 2005-03-21  Jim Meyering  <jim@meyering.net>
31018         and  Paul Eggert  <eggert@cs.ucla.edu>
31019
31020         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
31021         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
31022         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
31023         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
31024         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
31025         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
31026         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
31027         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
31028         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
31029         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
31030         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
31031         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
31032         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
31033         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
31034         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
31035         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
31036         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
31037         for these modules.
31038
31039 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31040
31041         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
31042         (which shouldn't happen), generate nothing instead of returning 0
31043         immediately, so that nstrftime (NULL, ...) doesn't return 0.
31044
31045 2005-03-16  Bruno Haible  <bruno@clisp.org>
31046
31047         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
31048         HAVE_LONGLONG_64BIT.
31049
31050 2005-03-16  Bruno Haible  <bruno@clisp.org>
31051
31052         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
31053         HAVE_LONGLONG_64BIT.
31054
31055 2005-03-16  Bruno Haible  <bruno@clisp.org>
31056
31057         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
31058         HAVE_LONGLONG_64BIT.
31059
31060 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31061
31062         * lib/strftime.c (my_strftime): Prepend space to format so that we can
31063         reliably distinguish strftime failure from empty output on POSIX
31064         hosts.
31065
31066 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31067
31068         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
31069         (iconv_string): Don't guess a size-zero buffer, as that might cause
31070         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
31071         result would be 'too large', where 'too large' is (heuristically)
31072         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
31073         overflow concerns.  This will prevent some unwanted malloc failures
31074         when the inputs are very large.
31075
31076 2005-03-15  Karl Berry  <karl@gnu.org>
31077
31078         * config/srclist.txt (config.rpath): from gettext.
31079         * config/config.rpath: update.
31080
31081 2005-03-15  Bruno Haible  <bruno@clisp.org>
31082
31083         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
31084         to 'negate'.
31085
31086         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
31087         variable.
31088
31089         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
31090         results.
31091
31092 2005-03-14  Simon Josefsson  <jas@extundo.com>
31093
31094         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
31095         <fx@gnu.org>.
31096
31097 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
31098
31099         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
31100         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
31101         intprops.h.
31102         * lib/strtol.c: Likewise.
31103
31104 2005-03-14  Jim Meyering  <jim@meyering.net>
31105
31106         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
31107         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
31108         to be nonzero so that we (and caller) can detect the difference
31109         between a valid zero-length expansion and an error return, even
31110         when the underlying strftime fails before writing anything into
31111         that location.
31112
31113 2005-03-14  Bruno Haible  <bruno@clisp.org>
31114
31115         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
31116         Update from GNU gettext 0.14.3.
31117
31118 2005-03-10  Jim Meyering  <jim@meyering.net>
31119
31120         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
31121
31122 2005-03-10  Jim Meyering  <jim@meyering.net>
31123
31124         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
31125         so that this module works on systems without fchdir.
31126
31127 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
31128
31129         Factor int-properties macros into a single file, except for
31130         glibc-related files.
31131         * lib/intprops.h: New file.
31132         * lib/getloadavg.c: Include it instead of limits.h.
31133         (INT_STRLEN_BOUND): Remove.
31134         * lib/human.c: Include intprops.h.
31135         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
31136         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
31137         302/1000.
31138         * lib/inttostr.h: Include intprops.h instead of limits.h.
31139         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
31140         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
31141         for consistency with intprops.h.
31142         (time_t_is_integer, twos_complement_arithmetic): Use them.
31143         * lib/sig2str.h: Include <signal.h>, intprops.h.
31144         (INT_STRLEN_BOUND): Remove.
31145         * lib/strftime.c (TYPE_SIGNED): Remove.
31146         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
31147         * lib/strtol.c: Adjust comments to match intprops.h.
31148         * lib/userspec.c: Include intprops.h.
31149         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
31150         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
31151         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
31152         instead of rolling our own expressions.
31153         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
31154
31155         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
31156         instead of int.
31157         (my_strftime): Do not mishandle years close to INT_MAX, by doing
31158         the right thing even if adding 1900 would overflow.  Similarly
31159         for tm_mon + 1 and tm_yday + 1.
31160         Make %Y always equivalent to %C%y, and similarly for %G and %g.
31161         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
31162         (DO_SIGNED_NUMBER): New macro.
31163         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
31164
31165 2005-03-07  Bruno Haible  <bruno@clisp.org>
31166
31167         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
31168
31169 2005-03-07  Bruno Haible  <bruno@clisp.org>
31170
31171         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
31172
31173 2005-03-04  Derek R. Price  <derek@ximbiot.com>
31174
31175         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
31176         (func_import): Only replace files via --import when they have actually
31177         changed.
31178
31179 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31180
31181         * m4/mmap-anon.m4: New file.
31182         * m4/pagealign_alloc.m4: New file.
31183
31184 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31185             Bruno Haible  <bruno@clisp.org>
31186
31187         * modules/pagealign_alloc: New file.
31188         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
31189
31190 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31191             Bruno Haible  <bruno@clisp.org>
31192
31193         * lib/pagealign_alloc.h: New file.
31194         * lib/pagealign_alloc.c: New file.
31195
31196 2005-03-03  Bruno Haible  <bruno@clisp.org>
31197
31198         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
31199         Use an all-permissive copyright notice, recommended by RMS.
31200
31201 2005-03-02  Bruno Haible  <bruno@clisp.org>
31202
31203         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
31204         of AIX, the replacement has to be done only after <string.h> is
31205         included, therefore not in config.h. stpncpy.h does the replacement,
31206         and stpncpy.c uses it.
31207
31208 2005-03-02  Bruno Haible  <bruno@clisp.org>
31209
31210         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
31211         stpncpy.c uses it.
31212
31213 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31214
31215         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
31216         The workaround isn't strictly needed for POSIX conformance, and
31217         it's too much of a pain to configure and maintain.  We'll ask
31218         people to fix their kernels instead.
31219         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
31220         (NANOSLEEP_BUG_WORKAROUND): Remove.
31221         (xnanosleep): Remove the workaround.
31222
31223 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31224
31225         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
31226         Reported by Derek Price.
31227         (Include): Add "timespec.h".
31228
31229         * modules/xnanosleep (Depends-on): Remove gethrxtime.
31230
31231 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31232
31233         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
31234         to detect nanosleep bug.
31235
31236 2005-03-01  Bruno Haible  <bruno@clisp.org>
31237
31238         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
31239
31240 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31241
31242         * modules/gethrxtime: New file.
31243         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
31244         (Depends-on): Add gethrxtime.
31245         (configure.ac): Add gl_XNANOSLEEP.
31246         (Makefile.am): Remove lib_SOURCES line.
31247
31248 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31249
31250         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
31251         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
31252
31253 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31254
31255         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
31256         * lib/timespec.h (gettime): Return void, since it always
31257         succeeds now.  All uses changed.
31258         * lib/gettime.c (gettime) Likewise.
31259         [HAVE_NANOTIME]: Prefer nanotime.
31260         Assume gettimeofday succeeds, as POSIX requires.
31261         Assime time () succeeds, since other code already does.
31262         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
31263         (timespec_subtract): Remove.
31264         (NANOSLEEP_BUG_WORKAROUND): New constant.
31265         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
31266         things considerably.  Use it only on GNU/Linux hosts, since the
31267         workaround shouldn't be needed elsewhere.
31268
31269 2005-02-24  Bruno Haible  <bruno@clisp.org>
31270
31271         * modules/gettext (Files): Add m4/glibc2.m4.
31272
31273 2005-02-24  Bruno Haible  <bruno@clisp.org>
31274
31275         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
31276         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
31277         * m4/progtest.m4:
31278         Update from GNU gettext 0.14.2.
31279         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31280
31281 2005-02-24  Bruno Haible  <bruno@clisp.org>
31282
31283         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31284         * lib/config.charset: Update from GNU gettext 0.14.2.
31285
31286 2005-02-24  Bruno Haible  <bruno@clisp.org>
31287
31288         * lib/gettext.h: Update from GNU gettext 0.14.2.
31289
31290 2005-02-23  Simon Josefsson  <jas@extundo.com>
31291
31292         * m4/iconvme.m4: New file.
31293
31294 2005-02-23  Jim Meyering  <jim@meyering.net>
31295
31296         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31297         change.
31298         Thanks to Bruno Haible for catching it.
31299
31300 2005-02-22  Simon Josefsson  <jas@extundo.com>
31301
31302         * modules/iconvme: New file.
31303
31304         * MODULES.html.sh: Add iconvme.
31305
31306 2005-02-22  Simon Josefsson  <jas@extundo.com>
31307
31308         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31309
31310 2005-02-22  Simon Josefsson  <jas@extundo.com>
31311
31312         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31313
31314 2005-02-22  Jim Meyering  <jim@meyering.net>
31315
31316         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31317         s/ifndef/ifdef/.
31318
31319 2005-02-20  Neil Conway  <neilc@samurai.com>
31320
31321         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31322         returned by OSX/Darwin if the specified buffer is not large
31323         enough for the hostname.
31324
31325 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31326
31327         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31328         pass it to _help, otherwise the latter coredumps trying to
31329         dereference state.root_argp.
31330
31331 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31332
31333         * modules/chdir-long (Depends-on): Add memrchr.
31334         * modules/memrchr (Files): Add lib/memrchr.h.
31335         (Include): "memrchr.h".
31336
31337 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31338
31339         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31340
31341 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31342
31343         * lib/memrchr.h: New file.
31344         * lib/chdir-long.c: Include it.
31345         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31346         Don't bother including stddef.h.
31347
31348 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31349
31350         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31351         inclusion.
31352         Include <sys/types.h>, for dev_t.
31353         (ME_DUMMY, ME_REMOTE): Move from here....
31354         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31355         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31356         Dmitry V. Levin.
31357         Include mountlist.h first, to test the interface.
31358
31359 2005-01-29  Bruno Haible  <bruno@clisp.org>
31360
31361         * lib/progname.c (program_name): Initialize.
31362         Needed when linking statically on MacOS X.
31363
31364 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31365
31366         Sync from coreutils.
31367         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31368         (Depends-on): Add c-strtod.
31369         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31370
31371 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31372
31373         Sync from coreutils.
31374         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31375
31376         Remove files that are specific to coreutils.
31377         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31378
31379 2005-01-28  Bruno Haible  <bruno@clisp.org>
31380
31381         * modules/javacomp: New file.
31382         * MODULES.html.sh (Java): Add javacomp.
31383
31384 2005-01-28  Bruno Haible  <bruno@clisp.org>
31385
31386         * m4/javacomp.m4: New file, from GNU gettext.
31387
31388 2005-01-28  Bruno Haible  <bruno@clisp.org>
31389
31390         * lib/javacomp.sh.in: New file, from GNU gettext.
31391         * lib/javacomp.h: New file, from GNU gettext.
31392         * lib/javacomp.c: New file, from GNU gettext.
31393
31394 2005-01-26  Simon Josefsson  <jas@extundo.com>
31395
31396         * lib/gai_strerror.c: Use GPL in header.
31397
31398 2005-01-26  Bruno Haible  <bruno@clisp.org>
31399
31400         * modules/javaexec: New file.
31401         * MODULES.html.sh (Java): Add javaexec.
31402
31403 2005-01-26  Bruno Haible  <bruno@clisp.org>
31404
31405         * m4/javaexec.m4: New file, from GNU gettext.
31406
31407 2005-01-26  Bruno Haible  <bruno@clisp.org>
31408
31409         * lib/javaexec.sh.in: New file, from GNU gettext.
31410         * lib/javaexec.h: New file, from GNU gettext.
31411         * lib/javaexec.c: New file, from GNU gettext.
31412
31413 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31414
31415         * modules/lchown (Depends-on): Remove lchown.h
31416
31417 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31418
31419         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
31420         must be defined if the header file was not found, in order
31421         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
31422
31423 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31424
31425         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
31426         initializers for struct pentry_state.
31427         (__argp_error): Check return value of __asprintf
31428         (__argp_failure): Translate error message
31429
31430         * lib/argp-parse.c: Removed braces around the expansion of N_()
31431
31432 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31433
31434         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
31435         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
31436         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
31437         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
31438         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
31439         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
31440         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
31441         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
31442         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
31443         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
31444         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
31445         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
31446         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
31447         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
31448         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
31449         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
31450         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
31451         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
31452         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
31453         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
31454         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
31455         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
31456         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
31457         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
31458         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
31459         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
31460         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
31461         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
31462         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
31463         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
31464         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
31465         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
31466         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
31467         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
31468         xstrtol.m4, xstrtoumax.m4, yesno.m4:
31469         Use an all-permissive copyright notice, recommended by RMS.
31470
31471 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31472
31473         * modules/chdir-long (Depends-on): Remove mempcpy.
31474
31475 2005-01-21  Jim Meyering  <jim@meyering.net>
31476
31477         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
31478         same value as for Solaris 9.
31479
31480         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
31481         component length.  This included changing the parameter to be
31482         of type `char *' rather than `char const *'.
31483         * lib/chdir-long.h (chdir_long): Update prototype.
31484
31485         * lib/openat.c (fdopendir, fstatat): New functions.
31486         * lib/openat.h: Include headers required for use of DIR and struct
31487         stat.
31488         [AT_SYMLINK_NOFOLLOW]: Define.
31489         (fdopendir, fstatat): Add prototypes.
31490
31491 2005-01-21  Bruno Haible  <bruno@clisp.org>
31492
31493         * modules/classpath: New file.
31494         * MODULES.html.sh (Java): Add classpath.
31495
31496 2005-01-21  Bruno Haible  <bruno@clisp.org>
31497
31498         * lib/classpath.h: New file, from GNU gettext.
31499         * lib/classpath.c: New file, from GNU gettext.
31500
31501 2005-01-20  Simon Josefsson  <jas@extundo.com>
31502
31503         * modules/version-etc-fsf: New file.
31504
31505 2005-01-20  Simon Josefsson  <jas@extundo.com>
31506
31507         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
31508         * lib/version-etc.c: Remove version_etc_copyright.
31509         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
31510         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
31511
31512 2005-01-20  Simon Josefsson  <jas@extundo.com>
31513
31514         * lib/base64.h (isbase64): Add.
31515
31516         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
31517         using a unsigned prototype, don't inline.
31518         (base64_decode): Use it.
31519
31520 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31521
31522         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
31523         it.
31524
31525 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31526
31527         * lib/save-cwd.c (save_cwd): Remove code to support the case
31528         where fchdir is missing or flaky.
31529
31530 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31531
31532         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
31533
31534 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
31535
31536         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
31537         AC_LIBSOURCES now does this.
31538         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
31539         with new ullong_max module.
31540
31541 2005-01-19  Bruno Haible  <bruno@clisp.org>
31542
31543         * modules/sh-quote: New file.
31544         * MODULES.html.sh (Executing programs): Add sh-quote.
31545
31546 2005-01-19  Bruno Haible  <bruno@clisp.org>
31547
31548         * lib/sh-quote.h: New file, from GNU gettext.
31549         * lib/sh-quote.c: New file, from GNU gettext.
31550
31551 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31552
31553         Merge from coreutils.
31554         * m4/ullong_max.m4: New file.
31555         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
31556         (gl_MACROS): Assume localeconv exists.
31557
31558 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31559
31560         Merge changes from coreutils, as described below in several
31561         changelogs dated today.
31562
31563         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
31564         (O_DIRECTORY): Remove; not needed here, since "." must be
31565         a directory.  All uses removed.
31566         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
31567         universal on Suns, and we also need to test for IRIX.
31568         Revamp code to use 'if' rather than '#if'.
31569         Avoid unnecessary comparison of cwd->desc to 0.
31570
31571         * lib/utimens.c (futimens): Robustify the previous patch, by checking
31572         for known valid error numbers rather than observed invalid ones.
31573
31574 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31575
31576         * modules/ullong_max: New file.
31577
31578         * modules/chdir-long, modules/openat: New files.
31579         * modules/save-cwd (Depends-on): Depend on chdir-long.
31580         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
31581
31582 2005-01-18  Jim Meyering  <jim@meyering.net>
31583
31584         Merge from coreutils.
31585         * m4/chdir-long.m4, m4/openat.m4: New files.
31586         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
31587         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
31588         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
31589         is sane and DOES follow symlinks.  Besides, testing 20 different
31590         systems found no broken chown implementations.
31591         Prompted by a change in rsync's copy of this macro.
31592         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
31593
31594         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
31595
31596         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
31597         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
31598         NULL-means-set-to-current-time semantics.
31599         Remove temporary file immediately, rather than waiting
31600         for configure's at-exit trap code to do it.
31601
31602 2005-01-18  Jim Meyering  <jim@meyering.net>
31603
31604         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31605
31606         * lib/utimens.c (futimens): Account for the fact that futimes
31607         can also fail with errno == ENOSYS or errno == ENOENT.
31608         Patch from Dmitry V. Levin.
31609
31610         Change the name of the robust chdir function from chdir to chdir_long.
31611         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
31612         (restore_cwd): Use chdir_long, not chdir.
31613         * lib/chdir-long.c: Renamed from chdir.c.
31614         * lib/chdir-long.h: Renamed from chdir.h.
31615         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
31616         Hurd.
31617
31618 2005-01-18  Bruno Haible  <bruno@clisp.org>
31619
31620         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
31621         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
31622         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
31623         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
31624         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
31625         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
31626         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
31627         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
31628         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
31629         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
31630         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
31631         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
31632         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
31633         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
31634         Use an all-permissive copyright notice, recommended by RMS.
31635
31636 2005-01-18  Bob Proulx  <bob@proulx.com>
31637
31638         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
31639         simplify offsetof() macro construct to avoid compile failure with
31640         native HP-UX 11.0 ANSI C compiler.
31641
31642 2005-01-17  Bruno Haible  <bruno@clisp.org>
31643
31644         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
31645         redundant because stpncpy.m4 takes care of it.
31646
31647 2005-01-17  Bruno Haible  <bruno@clisp.org>
31648
31649         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
31650
31651 2005-01-17  Bruno Haible  <bruno@clisp.org>
31652
31653         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
31654         used.
31655
31656 2005-01-17  Bruno Haible  <bruno@clisp.org>
31657
31658         * lib/fwriteerror.h (fwriteerror): Change specification to include
31659         fclose.
31660         * lib/fwriteerror.c: Include <stdbool.h>.
31661         (fwriteerror): At the end, close the file stream. Record whether
31662         stdout was already closed.
31663
31664 2005-01-17  Bruno Haible  <bruno@clisp.org>
31665
31666         * lib/execute.c (environ): Declare if needed.
31667         * lib/pipe.c (environ): Likewise.
31668         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
31669
31670 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31671
31672         * modules/argp: Depend on vsnprintf
31673
31674 2005-01-10  Jim Meyering  <jim@meyering.net>
31675
31676         * modules/closeout (Depends-on): Add atexit.
31677
31678 2005-01-06  Bruno Haible  <bruno@clisp.org>
31679
31680         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
31681
31682 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31683
31684         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
31685         definitions to be after all include files, to avoid collisions.
31686         Problem reported by Bob Proulx.
31687
31688 2005-01-04  Jim Meyering  <jim@meyering.net>
31689
31690         Changes imported from coreutils.
31691         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31692         as the mkstemp template, use a temporary directory and an
31693         8.3-friendly template to avoid trouble on systems like DJGPP.
31694         Reported by Juan M. Guerrero via Stepan Kasal.
31695         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31696         close. Remove the temporary directory right away, rather than waiting
31697         for configure's at-exit trap code to do it.
31698         Suggestion from Stepan Kasal.
31699
31700 2005-01-01  Simon Josefsson  <jas@extundo.com>
31701
31702         * gnulib-tool: Print #include directives when --import'ing.
31703
31704 2004-12-28  Simon Josefsson  <jas@extundo.com>
31705
31706         * tests/test-base64.c: Include required header files.  Remove
31707         unused variables.
31708
31709 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31710
31711         * modules/error (Depends-on): Remove gettext.
31712
31713 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31714
31715         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
31716         not needed.  This removes a dependency on the gettext module.
31717         [defined _LIBC]: Do not include <libintl.h>; not needed.
31718
31719 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31720
31721         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
31722         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
31723
31724 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31725
31726         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
31727         HAVE_DECL_STRTOLD.
31728
31729 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31730
31731         * modules/getdate (Depends-on): Remove alloca-opt.
31732
31733 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31734
31735         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
31736
31737 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31738
31739         * lib/argp-parse.c: Include <stddef.h>.
31740         (alignof, alignto): New macros.
31741         (parser_init): Don't assume that void * is aligned sufficiently
31742         for struct option.
31743
31744         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
31745         need to extend the stack.
31746         (YYINITDEPTH): New macro, so that the initial stack isn't overly
31747         large.
31748
31749 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31750
31751         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
31752
31753 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31754
31755         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
31756         (2004-10-24) change.  Apparently this was a false alarm.
31757
31758         * modules/getdate: Depend on alloca-opt, not alloca.
31759
31760 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31761
31762         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
31763         Remove now-obsolete comment about AIX.
31764         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
31765         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
31766         (YYMAXDEPTH): New macro.
31767
31768 2004-12-18  Simon Josefsson  <jas@extundo.com>
31769
31770         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
31771
31772 2004-12-18  Bruno Haible  <bruno@clisp.org>
31773
31774         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
31775
31776 2004-12-18  Bruno Haible  <bruno@clisp.org>
31777
31778         * lib/fatal-signal.c (fatal_signals): Make non-const.
31779         (init_fatal_signals): New function.
31780         (uninstall_handlers, install_handlers): Ignore signals that were set to
31781         SIG_IGN.
31782         (at_fatal_signal): Call init_fatal_signals.
31783         (init_fatal_signal_set): Likewise. Ignore signals that were set to
31784         SIG_IGN.
31785         Reported by Paul Eggert.
31786
31787 2004-12-18  Bruno Haible  <bruno@clisp.org>
31788
31789         * doc/alloca.texi: New file.
31790         * doc/alloca-opt.texi: New file.
31791
31792 2004-12-17  Jim Meyering  <jim@meyering.net>
31793
31794         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
31795         Otherwise, install-sh could exit with improper exit status when
31796         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
31797
31798 2004-12-16  Simon Josefsson  <jas@extundo.com>
31799
31800         * tests/test-base64.c: Add license.
31801
31802 2004-12-15  Stepan Kasal  <address@hidden>
31803
31804         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
31805
31806 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31807
31808         * modules/getcwd (Files): Add m4/d-ino.m4.
31809         Suggested by Mark D. Baushke.
31810
31811 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31812
31813         * lib/getdate.y (textint): New member "negative".
31814         (time_zone_hhmm): New function.
31815         Expect 14 shift-reduce conflicts, not 13.
31816         (o_colon_minutes): New rule.
31817         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
31818         (yylex): Set the "negative" member of signed numbers.
31819
31820 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31821
31822         * doc/getdate.texi (Time of day items, Time zone items):
31823         Describe new formats +00:00, UTC+00:00.
31824
31825 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31826
31827         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
31828         spurious "-l"s.  Problem reported by Stepan Kasal.
31829
31830 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
31831
31832         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
31833         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
31834
31835 2004-12-04  Simon Josefsson  <jas@extundo.com>
31836
31837         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
31838         Vandoorselaere <yoann@prelude-ids.org>.
31839
31840 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31841
31842         Changes imported from coreutils.
31843         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
31844         exist.
31845         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
31846
31847 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31848
31849         Changes imported from coreutils.
31850         * lib/hard-locale.c: Assume <locale.h> exists.
31851         Include "strdup.h".
31852         (GLIBC_VERSION): New macro.
31853         (hard_locale): Assume setlocale exists.
31854         Rewrite to avoid #ifdef.
31855         Use strdup rather than malloc + strcpy.
31856         * lib/human.c: Assume <locale.h> exists.
31857         (human_readable): Assume localeconv exists.
31858
31859 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31860
31861         * modules/hard-locale (Depends-on): Add strdup.
31862
31863 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
31864
31865         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
31866         convert T2, not T.  (Imported from libc.)
31867
31868 2004-11-30  Simon Josefsson  <jas@extundo.com>
31869
31870         * modules/restrict (License): Change to LGPL.
31871
31872 2004-11-30  Simon Josefsson  <jas@extundo.com>
31873
31874         * m4/restrict.m4: Add copyright and copying conditions.
31875
31876 2004-11-30  Simon Josefsson  <jas@extundo.com>
31877
31878         * m4/base64.m4: New file.
31879
31880 2004-11-30  Simon Josefsson  <jas@extundo.com>
31881
31882         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
31883         base64.
31884
31885         * tests/test-base64.c: New file.
31886
31887         * modules/base64: New file.
31888
31889 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31890
31891         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31892         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
31893
31894         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
31895
31896 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31897
31898         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
31899         (__getcwd.c): Don't restore errno; glibc doesn't.
31900         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
31901         first, falling back to our code only if its results look suspicious.
31902         Ensure that the resulting buffer is only as large as necessary.
31903
31904         * lib/readutmp.c: Include readutmp.h first.
31905         Include <errno.h>, since readutmp.h no longer does that.
31906         * lib/readutmp.h: Don't include <errno.h>,
31907         <sys/param.h>, <time.h>; not needed to establish interface.
31908         (errno): Remove decl.
31909         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
31910         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
31911         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
31912
31913 2004-11-28  Simon Josefsson  <jas@extundo.com>
31914
31915         * lib/base64.h, base64.c: New file.
31916
31917 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31918
31919         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
31920
31921 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
31922
31923         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
31924         (Depends-on): Remove pathmax, same.  Add mempcpy.
31925         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
31926         (Makefile.am): Append getcwd.h to lib_SOURCES.
31927         (Include): Add getcwd.h.
31928         (Maintainer): Change from Jim Meyering to "all, glibc",
31929         since getdate now uses intended-for-glibc code.
31930         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
31931         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
31932
31933 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31934
31935         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
31936         HP's ANSI C compiler.
31937         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
31938         Declaring int functions causes warnings on some modern systems and
31939         shouldn't be needed to compile on ancient ones.
31940         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
31941         defined.
31942
31943         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
31944         with the following changes.
31945         (__set_errno): Parenthesize properly.
31946         Include <stdbool.h>.
31947         (MIN, MAX, MATCHING_INO): New macros.
31948         (__getcwd): Define with prototype, not K&R form.
31949         Use heuristics to allocate default buffer on stack if possible.
31950         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
31951         behavior, and to avoid the PATH_MAX limit when computing
31952         ../../../../...
31953         Use MATCHING_INO to compare inode number to file.
31954         Check for arithmetic overflow in size calculations.
31955         Fix bug in reallocation of dot array that caused getcwd to fail
31956         on directories nested deeper than 75.
31957         Be more careful about saving errno on error.
31958         Do not use realloc; use only free+malloc, as this is a bit
31959         more flexible and avoids a needless copy operation.
31960         Do not inspect st_dev and st_ino for symbolic links; POSIX
31961         doesn't specify the latter.
31962         Check for closedir errors.
31963         Avoid needless casts.
31964         Use "#ifdef weak_alias" around weak_alias, to be like other
31965         glibc code.
31966         The following changes to getcwd.c have effect only when used in
31967         gnulib; they have no effect inside glibc proper.
31968         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
31969         as alloca isn't used.
31970         (alloca, __alloca): Likewise.
31971         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
31972         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31973         unconditionally, as gnulib assumes C89 or better.
31974         Do not include <sys/param.h>.
31975         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
31976         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
31977         better.
31978         (NULL) [!defined NULL]: Remove; we assume C89 or better.
31979         Include <dirent.h> in a way that is compatible with modern Autoconf.
31980         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
31981         New macros, if not already defined.
31982         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
31983         Use "_LIBC", not "defined _LIBC", for consistency.
31984         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
31985         a mempcpy module.
31986         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
31987         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
31988         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
31989         credit only to Jim Meyering and adjust the copyright dates.
31990         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
31991         <stdlib.h>, <unistd.h>, "pathmax.h".
31992         Instead, include "xgetcwd.h" (first) and "getcwd.h".
31993         (INITIAL_BUFFER_SIZE): Remove.
31994         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
31995
31996 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31997
31998         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
31999         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
32000         Use the _ONCE methods, for efficiency.
32001         Check for fcntl.h.  In test program, include <errno.h>
32002         and <fcntl.h> if available.  Remove old K&R cruft from
32003         test program.  Check for common errors in GNU/Linux,
32004         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
32005         don't do AC_LIBOBJ, as that's getcwd.m4's job.
32006         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
32007         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
32008         name accordingly.
32009         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
32010         accommodate new getcwd.c.
32011         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
32012         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
32013         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
32014         that's all we need now.
32015
32016 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32017
32018         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
32019         argp-parse.c depends on getopt internals, that means we should
32020         always use our getopt, to be on the safe side.
32021         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
32022         order not to spoil the result of an eventual previous invocation
32023         of gl_GETOPT_SUBSTITUTE.
32024
32025 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32026
32027         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
32028         redefinition warnings. To avoid them, include the defines
32029         in `#if !defined __need_getopt ... #endif'. The only place
32030         where __getopt_argv_const is used is in definitions
32031         of getopt_long and getopt_long_only below, which are as well
32032         protected by `#ifndef __need_getopt'.
32033         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
32034         __need_getopt after including <stdio.h> and <unistd.h> These
32035         headers might have defined it.
32036
32037 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32038
32039         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
32040
32041 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32042
32043         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
32044         (futimens): New function, which uses futimes if available.
32045         (futimens, utimens): Support timespec==NULL, with same semantics
32046         as utime and utimens.
32047         * lib/utimens.h (futimens): New decl.
32048
32049 2004-11-23  Jim Meyering  <jim@meyering.net>
32050
32051         * lib/getopt_.h: Remove trailing blanks.
32052
32053 2004-11-23  Jim Meyering  <jim@meyering.net>
32054
32055         * lib/__fpending.c: Add comment.
32056
32057 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
32058
32059         * modules/canonicalize (Depends-on): Add xreadlink.
32060         Problem reported by James Youngman.
32061
32062 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32063
32064         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
32065         New macros.
32066         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
32067         optopt): Use them instead of invoking ## directly; otherwise, the
32068         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
32069
32070 2004-11-19  Bruno Haible  <bruno@clisp.org>
32071
32072         * lib/strtok_r.c: Move comments from here...
32073         * lib/strtok_r.h: ... to here.
32074
32075 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32076
32077         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
32078         implementations that mishandle size_t overflow.
32079
32080 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32081
32082         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
32083         might fail.  Problem reported by Yoann Vandoorselaere.
32084         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
32085         implementations that mishandle size_t overflow.
32086
32087 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32088
32089         * modules/canon-host (Depends-on): Add strdup.
32090
32091 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32092
32093         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
32094
32095 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32096
32097         * lib/canon-host.c: Include "strdup.h".
32098         (canon_host): Use getaddrinfo if available, so that IPv6 works.
32099         Use strdup instead of malloc/strcpy to duplicate strings.
32100
32101         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
32102         (human_space_before_unit): New constant.
32103         * lib/human.c (human_readable): Support it.
32104
32105         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
32106         (xgetcwd): Set errno correctly when failing.
32107         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
32108         the failure is actually due to a PATH_MAX problem.
32109
32110         Further getopt changes to make it more likely that glibc will
32111         buy the changes back.
32112         * lib/getopt.c (POSIXLY_CORRECT): New constant.
32113         (getopt): Use it, so to preserve glibc semantic
32114         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
32115         when compiling for libc.
32116         * lib/getopt_.h (__getopt_argv_const): Bring it back.
32117         (getopt_long, getopt_long_only): Use it.
32118
32119         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32120         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
32121         (getopt): Argv is now char * const *, as per standard.
32122         (_getopt_internal_r, _getopt_internal): Argv is now char **,
32123         not char *__getopt_argv_const *.
32124         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32125         _getopt_long_only_r): Likewise.
32126         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
32127         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32128         _getopt_long_r, _getopt_long_only_r): Likewise.
32129         * lib/getopt_.h (__getopt_argv_const): Remove.
32130         (getopt): Argv is now char * const *, as per standard.
32131
32132         * lib/getdate.y (tORDINAL): New token.
32133         (day, relunit): Allow it for relative times.
32134         (relative_time_table): Use tORDINAL for ordinals.
32135
32136 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32137
32138         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
32139         Document that "second" isn't allowed as an ordinal number.
32140
32141 2004-11-16  Jim Meyering  <jim@meyering.net>
32142
32143         * modules/closeout (Depends-on): Add fpending.
32144
32145 2004-11-15  Jim Meyering  <jim@meyering.net>
32146
32147         * lib/closeout.c: Include "__fpending.h" once again.
32148         Include <stdbool.h>.
32149         (close_stdout): Don't fail just because stdout was closed initially,
32150         since some programs don't write to stdout in the normal course of
32151         operation (other than --version and --help), and we don't want this
32152         function to make e.g. `touch file >&-' fail.
32153         But do fail if it was closed and someone has tried to write to it.
32154         E.g., `printf foo >&-' must fail.
32155
32156 2004-11-13  Jim Meyering  <jim@meyering.net>
32157
32158         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
32159
32160 2004-11-12  Simon Josefsson  <jas@extundo.com>
32161
32162         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
32163         small doc fix is still pending.
32164
32165 2004-11-11  Simon Josefsson  <jas@extundo.com>
32166
32167         * modules/strtok_r: New file.
32168
32169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32170         strtok_r.
32171
32172 2004-11-11  Simon Josefsson  <jas@extundo.com>
32173
32174         * m4/strtok_r.m4: New file.
32175
32176         * m4/getopt.m4: Replace opterr.
32177
32178 2004-11-11  Simon Josefsson  <jas@extundo.com>
32179
32180         * lib/strtok_r.h, strtok_r.c: New file.
32181
32182 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32183
32184         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
32185         of replacing opterr, getopt, etc.  This should handle the
32186         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
32187
32188 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32189
32190         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
32191         we can stop lying to compilers about the constness of argv when we
32192         are compiled outside glibc.
32193         (getopt, getopt_long, getopt_long_only): Use it.
32194         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32195         _getopt_internal, getopt): Likewise.
32196         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32197         _getopt_long_only_r): Likewise.
32198         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32199         _getopt_long_r, _getopt_long_only_r): Likewise.
32200
32201         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
32202         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
32203         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
32204         the other external symbols.
32205         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
32206         declaration, since the above renaming now works around collisions.
32207
32208 2004-11-11  Jim Meyering  <jim@meyering.net>
32209
32210         * lib/linebreak.c: Remove trailing blanks.
32211         * lib/alloca_.h: Likewise.
32212         * lib/acosl.c: Likewise.
32213         * lib/euidaccess.c: Likewise.
32214         * lib/allocsa.h: Likewise.
32215
32216 2004-11-10  Simon Josefsson  <jas@extundo.com>
32217
32218         * m4/getaddrinfo.m4: New file.
32219
32220 2004-11-10  Simon Josefsson  <jas@extundo.com>
32221
32222         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
32223
32224 2004-11-10  Simon Josefsson  <jas@extundo.com>
32225
32226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32227         getaddrinfo.
32228
32229         * modules/getaddrinfo: New file.
32230
32231 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32232
32233         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
32234
32235 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32236
32237         * lib/mktime.c (SHR): New macro, which is a portable
32238         substitute for >> that should work even on Crays.
32239         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
32240         Problem reported by Mark D. Baushke in
32241         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
32242         * lib/getdate.y (SHR): Likewise.
32243         (tm_diff): Use it.
32244         * lib/strftime.c (SHR): Likewise.
32245         (tm_diff): Use it.
32246         * lib/quotearg.c (struct quoting_options): Use unsigned int for
32247         quote_these_too, so that right shifts are well defined.  All uses
32248         changed.
32249
32250 2004-11-10  Jim Meyering  <jim@meyering.net>
32251
32252         Ensure that no close failure goes unreported.
32253         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
32254         return early when it seems there's nothing to flush.
32255         Don't include __fpending.h.
32256
32257 2004-11-10  Jim Meyering  <jim@meyering.net>
32258
32259         * modules/closeout (Depends-on): Remove fpending.
32260
32261 2004-11-10  Jim Meyering  <jim@meyering.net>
32262
32263         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
32264
32265 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32266
32267         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
32268         gl_FUNC_STRFTIME.
32269         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
32270         and AC_REQUIRE when possible, to avoid duplicate checks.
32271         Check for <wchar.h>.
32272
32273 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32274
32275         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
32276
32277 2004-11-09  Bruno Haible  <bruno@clisp.org>
32278
32279         * m4/sockpfaf.m4: New file.
32280
32281 2004-11-05  Bruno Haible  <bruno@clisp.org>
32282
32283         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32284         Reported by Mark D. Baushke <mdb@cvshome.org>.
32285
32286 2004-11-04  Bruno Haible  <bruno@clisp.org>
32287
32288         2004-09-11  Bruno Haible  <bruno@clisp.org>
32289                 * allocsa.valgrind: New file.
32290         2004-02-06  Bruno Haible  <bruno@clisp.org>
32291                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32292                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32293                 Reported by Christopher Seip <chris.seip@hp.com>.
32294
32295 2004-11-04  Bruno Haible  <bruno@clisp.org>
32296
32297         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32298         (Makefile.am): Distribute it.
32299
32300 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32301
32302         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32303         with errno == ERANGE if the buffer is too small.
32304         Problem reported by Mark D. Baushke.
32305
32306 2004-11-03  Albert Chin  <china@thewrittenword.com>
32307             Paul Eggert  <eggert@cs.ucla.edu>
32308
32309         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32310         equivalent, substitute $ac_type for equivalent type rather than
32311         blindly using uint32_t *always* which won't work if uint32_t is not
32312         available.  Define _UINT32_T to work around typedef of uint32_t if
32313         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32314         2.5.1.
32315
32316 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32317
32318         * m4/jm-macros.m4: Sync from coreutils.
32319         (gl_MACROS): Check for mbrlen, for pathchk.
32320         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32321
32322 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32323
32324         * lib/xreadlink.c (MAXSIZE): New macro.
32325         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32326         size does not exceed MAXSIZE.  Avoid cast.
32327         As suggested by Mark D. Baushke in
32328         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32329         if readlink fails with buffer size just under MAXSIZE, try again
32330         with MAXSIZE.
32331
32332 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32333
32334         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32335
32336 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32337         and  Paul Eggert  <eggert@cs.ucla.edu>
32338
32339         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32340         (get_date): Overparenthesize to avoid GCC warning.
32341
32342 2004-11-02  Bruno Haible  <bruno@clisp.org>
32343
32344         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32345         returns void.
32346
32347 2004-11-02  Bruno Haible  <bruno@clisp.org>
32348
32349         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32350         function returns void.
32351
32352 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32353
32354         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32355         fflush_unlocked, flockfile, funlockfile, funlockfile,
32356         fputs_unlocked, putc_unlocked.
32357
32358 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32359
32360         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32361         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32362         already declared.
32363
32364 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32365
32366         * modules/getdate (Files): Add doc/getdate.texi.
32367         (Depends-on): Add setenv, xalloc.
32368
32369 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32370
32371         * lib/getdate.y: Add support for TZ="foo" within a date string.
32372         Fix some bugs near time_t boundaries.  Reject dates with
32373         out-of-range components, e.g., "Sept 31".
32374         Include <stdlib.h>, "setenv.h", "xalloc.h".
32375         (ISDIGIT_LOCALE): Remove; unused.
32376         Note that the TZ and time functions used here are not reentrant.
32377         (mktime_ok, get_tz): New functions.
32378         (TZBUFSIZE): New constant.
32379         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
32380         This requires that we sometimes generate our own TZ="XXX..." setting.
32381
32382 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32383
32384         * doc/getdate.texi: New file, from coreutils with modifications for
32385         the new TZ parsing.
32386
32387 2004-10-27  Derek R. Price  <derek@ximbiot.com>
32388
32389         * lib/mktime.c (not_equal_tm): Remove redundant check.
32390
32391 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32392
32393         * modules/regex (lib_SOURCES): Add regex.c.
32394         Reported by James Youngman in
32395         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
32396
32397 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32398
32399         * lib/getdate.y: Use Bison 1.875 features, and some minor
32400         code cleanups.  This change does not affect semantics.
32401         Don't include <stdlib.h>; no longer needed.
32402         Don't include unlocked-io.h; only the "#if TEST" code uses
32403         stdio, and performance isn't crucial there.
32404         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32405         Bison 1.875 features as described below.
32406         All uses of "PC." replaced by "pc->".
32407         (YYSTYPE): Add a forward declaration.
32408         (yylex, yyerror): Use full prototypes in forward decls.
32409         Use "%pure-parser" rather than obsolescent "%pure_parser".
32410         Use %parse-param and %lex-param instead of obsolescent
32411         YYPARSE_PARAM and YYLEX_PARAM.
32412         (meridian_table, month_and_day_table, time_units_table,
32413         relative_time_table, time_zone_table, military_table,
32414         lookup_zone, lookup_word, get_date):
32415         Use NULL instead of 0 where appropriate.
32416         (to_hour): Avoid abort (), to avoid a dependency on
32417         stdlib.h.
32418         (yyerror, yylex): Now accepts parser_control * arg.
32419         (main) [TEST]: Use '\0' rather than 0 for char.
32420
32421 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32422
32423         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
32424
32425 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32426
32427         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
32428         It's now the caller's responsibility to handle the case where
32429         !HAVE_GETPAGESIZE && !defined getpagesize.
32430
32431         * lib/mktime.c (leapyear): Arg is long int, not int.
32432
32433 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32434
32435         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
32436
32437 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32438
32439         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
32440         missing.  Problem reported by James Youngman.
32441
32442 2004-10-16  Simon Josefsson  <jas@extundo.com>
32443
32444         * gnulib-tool: Fix comments.  Fix parse problem.
32445         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
32446
32447 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32448
32449         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
32450         implementation of getopt_long.  Problem reported by Alexander Taler in:
32451         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
32452
32453 2004-10-15  Bruno Haible  <bruno@clisp.org>
32454
32455         * gnulib-tool: Untabify. Initialize supplied_libname.
32456         (func_usage): More homogenous output.
32457         (func_modules_transitive_closure, func_modules_to_filelist,
32458         func_emit_lib_Makefile_am): New functions.
32459         (func_import): New function, extracted from big case statement. Use
32460         func_get_license, func_modules_transitive_closure,
32461         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
32462         opt_lgpl. Don't use test -a, as it's not portable.
32463         (func_create_testdir): Use func_modules_transitive_closure,
32464         func_modules_to_filelist, func_emit_lib_Makefile_am.
32465
32466 2004-10-15  Bruno Haible  <bruno@clisp.org>
32467
32468         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
32469
32470 2004-10-15  Bruno Haible  <bruno@clisp.org>
32471
32472         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
32473         the portions belonging to each module.
32474         Suggested by Derek Robert Price <derek@ximbiot.com>.
32475
32476 2004-10-12  Simon Josefsson  <jas@extundo.com>
32477
32478         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32479         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
32480         to real functions.
32481
32482 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32483
32484         * modules/vsnprintf: New file.
32485
32486 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32487
32488         * m4/vsnprintf.m4: New file.
32489
32490 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32491
32492         * lib/vsnprintf.h: New file.
32493         * lib/vsnprintf.c: New file.
32494
32495 2004-10-11  Bruno Haible  <bruno@clisp.org>
32496
32497         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
32498         vsnprintf.
32499
32500 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32501
32502         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
32503
32504 2004-10-07  Bruno Haible  <bruno@clisp.org>
32505
32506         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
32507         fits into the provided buffer.
32508
32509 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32510
32511         * lib/diacrit.c, diacrit.h: Add GPL notice.
32512
32513         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
32514         notice.
32515         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
32516         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
32517         This avoids a potential constant-folding bug.
32518
32519 2004-10-05  Bruno Haible  <bruno@clisp.org>
32520
32521         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
32522         for the declaration of strsep.
32523
32524 2004-10-05  Bruno Haible  <bruno@clisp.org>
32525
32526         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
32527
32528 2004-10-04  Simon Josefsson  <jas@extundo.com>
32529
32530         * modules/memmem: New file.
32531         * tests/test-memmem.c: New file.
32532         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
32533
32534 2004-10-04  Simon Josefsson  <jas@extundo.com>
32535
32536         * m4/memmem.m4: New file.
32537
32538 2004-10-04  Simon Josefsson  <jas@extundo.com>
32539
32540         * lib/memmem.h: New file.
32541         * lib/memmem.c: New file, taken from glibc.
32542
32543 2004-10-04  Simon Josefsson  <jas@extundo.com>
32544
32545         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
32546         '#ifdef USE_UNLOCKED_IO'.
32547
32548 2004-10-04  Simon Josefsson  <jas@extundo.com>
32549
32550         * config/srclist.txt: Add memmem from glibc.
32551
32552 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32553
32554         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
32555
32556         * modules/argmatch, modules/argp, modules/closeout, modules/error,
32557         modules/exclude, modules/getdate, modules/getline,
32558         modules/getndelim2, modules/getpass, modules/getpass-gnu,
32559         modules/getusershell, modules/linebuffer, modules/md5,
32560         modules/mountlist, modules/posixtm, modules/readtokens,
32561         modules/readutmp, modules/regex, modules/sha1,
32562         modules/version-etc, modules/yesno:
32563         Remove dependency on unlocked-io.
32564
32565 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32566
32567         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
32568
32569         * m4/unlocked-io.m4: Add copyright notice.
32570         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
32571
32572 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32573
32574         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
32575         * lib/xmalloc.c (xmemdup): Likewise.
32576         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
32577         XFREE): Remove these long-obsolescent macros.
32578         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
32579         * lib/xstrdup.c: Remove.
32580
32581         * lib/regex.c (re_comp): Cast gettext return value to char *,
32582         Problem reported by Martin Neitzel via Mark D. Baushke.
32583
32584 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32585
32586         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
32587         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
32588         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
32589         regex.c, sha1.c, version-etc.c, yesno.c:
32590         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
32591         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
32592         the includer's responsibility.
32593
32594         Sync from coreutils.
32595
32596         * lib/modechange.c (mode_compile): Don't decrement a pointer that
32597         points to the start of a string, as the C Standard says the
32598         resulting behavior is undefined.
32599
32600         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
32601         simple -> simple_backups, numbered_existing ->
32602         numbered_existing_backups, numbered -> numbered_backups
32603         to avoid shadowing problems.  All uses changed.
32604         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
32605         * lib/backupfile.c (check_extension, numbered_backup):
32606         Rename locals to avoid shadowing 'basename'.
32607         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
32608         once.
32609
32610         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
32611         * lib/.cvsignore: Add getopt.h.
32612
32613 2004-10-04  Bruno Haible  <bruno@clisp.org>
32614
32615         * modules/README: New file.
32616         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
32617         not a module.
32618
32619 2004-10-02  Jim Meyering  <jim@meyering.net>
32620
32621         * lib/dirfd.h, getpagesize.h: Add copyright notice.
32622
32623 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32624
32625         * modules/strsep: New file.
32626
32627 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32628
32629         * m4/strsep.m4: New file.
32630
32631 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32632
32633         * lib/strsep.h: New file.
32634         * lib/strsep.c: New file.
32635
32636 2004-10-01  Simon Josefsson  <jas@extundo.com>
32637
32638         * lib/snprintf.c (snprintf): Handle size==0.
32639
32640 2004-10-01  Simon Josefsson  <jas@extundo.com>
32641             Bruno Haible  <bruno@clisp.org>
32642
32643         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
32644         (snprintf): Declare 'args'.
32645
32646 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
32647
32648         * lib/snprintf.c: Remove comments as to why each header is needed.
32649
32650 2004-10-01  Bruno Haible  <bruno@clisp.org>
32651
32652         * MODULES.html.sh: Add strsep.
32653
32654 2004-09-30  Simon Josefsson  <jas@extundo.com>
32655
32656         * modules/snprintf: New file.
32657
32658 2004-09-30  Simon Josefsson  <jas@extundo.com>
32659
32660         * m4/snprintf.m4: New file.
32661
32662 2004-09-30  Simon Josefsson  <jas@extundo.com>
32663
32664         * lib/snprintf.h, lib/snprintf.c: New files.
32665
32666 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32667
32668         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
32669         (hol_entry_help): Never translate an empty string.
32670         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
32671         * lib/argp.h (OPTION_NO_TRANS): New option.
32672
32673 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32674
32675         * modules/argp (Maintainer): Replace Simon Josefsson
32676         by Sergey Poznyakoff.
32677
32678 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32679
32680         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
32681         changes merged back into glibc.
32682
32683 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32684
32685         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
32686
32687 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
32688
32689         * lib/xvasprintf.c: Include xalloc.h.
32690         (xvasprintf): Use xalloc_die, not xmalloc_die.
32691
32692 2004-09-29  Bruno Haible  <bruno@clisp.org>
32693
32694         * modules/alloca-opt: New file, derived from modules/alloca.
32695         * modules/allocsa: Depend on alloca-opt instead of alloca.
32696         * modules/setenv: Likewise.
32697         * modules/vasnprintf: Likewise.
32698         * MODULES.html.sh: Add alloca-opt.
32699
32700 2004-09-28  Simon Josefsson  <jas@extundo.com>
32701
32702         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32703         LGPL, and to replace license template from GPL to LGPL.
32704
32705 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32706
32707         * modules/dummy: Change license to LGPL.
32708
32709 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32710
32711         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
32712
32713 2004-09-24  Simon Josefsson  <jas@extundo.com>
32714
32715         * modules/minmax (License): Change from GPL to LGPL.
32716
32717 2004-09-23  Simon Josefsson  <jas@extundo.com>
32718
32719         * gnulib-tool (--import): Typo.
32720
32721 2004-09-23  Simon Josefsson  <jas@extundo.com>
32722
32723         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
32724
32725 2004-09-22  Bruno Haible  <bruno@clisp.org>
32726
32727         * modules/*: Add 'License' field.
32728         * gnulib-tool: Accept --extract-license option.
32729         (func_get_license): New function.
32730
32731 2004-09-21  Bruno Haible  <bruno@clisp.org>
32732
32733         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
32734         Reported by Simon Josefsson.
32735
32736 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32737
32738         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
32739         gl_AC_TYPE_LONG_LONG.
32740
32741 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32742
32743         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
32744
32745 2004-09-18  Simon Josefsson  <jas@extundo.com>
32746         and  Paul Eggert  <eggert@cs.ucla.edu>
32747
32748         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
32749         calls with autoreconf.  Define GL_LIB.
32750
32751 2004-09-14  Karl Berry  <karl@gnu.org>
32752
32753         * config/srclist.txt: unsync setenv.c, sigh.
32754
32755 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32756
32757         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
32758         Problem reported by Bruno Haible in:
32759         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
32760
32761 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32762
32763         * config/srclist.txt: Comment out argp-pvh.c.
32764
32765 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
32766
32767         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
32768         in case some system header has #define'd it.  Problem reported by
32769         Soeren D. Schulze in
32770         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
32771
32772 2004-09-09  Karl Berry  <karl@gnu.org>
32773
32774         * regex.[ch]: delete from the root.  These were supposed to be
32775                 synced with emacs cvs, but this has not happened for about
32776                 a year, and anyway nothing else uses emacs regex.[ch].
32777                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
32778                 lib/regex[.ch] is untouched.
32779
32780 2004-09-09  Bruno Haible  <bruno@clisp.org>
32781
32782         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
32783
32784 2004-09-09  Bruno Haible  <bruno@clisp.org>
32785
32786         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
32787         modifications.
32788         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
32789
32790 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32791
32792         * modules/xvasprintf: New file.
32793         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
32794
32795 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32796
32797         * lib/xvasprintf.h: New file.
32798         * lib/xvasprintf.c: New file.
32799         * lib/xasprintf.c: New file.
32800
32801 2004-09-08  Bruno Haible  <bruno@clisp.org>
32802
32803         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
32804
32805 2004-09-08  Bruno Haible  <bruno@clisp.org>
32806
32807         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
32808         length is > INT_MAX.
32809         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
32810         more.
32811
32812 2004-09-08  Bruno Haible  <bruno@clisp.org>
32813
32814         * lib/stdint_.h: New file, taken from GNU clisp.
32815
32816 2004-09-08  Bruno Haible  <bruno@clisp.org>
32817             Oskar Liljeblad  <oskar@osk.mine.nu>
32818
32819         * modules/stdint: New file.
32820         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
32821
32822 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32823
32824         Import from coreutils.
32825         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
32826         strings on unbounded length.  alloca's performance benefits aren't
32827         that important here.
32828         (V_STRDUP): Remove.
32829         (parse_with_separator): New function, with most of the internals
32830         of the old parse_user_spec.  Allow user to omit both user and group,
32831         for compatibility with FreeBSD.
32832         Clone only the user name, not the entire spec.
32833         Do not set *uid, *gid unless entirely successful.
32834         Avoid memory leak in some failing cases.
32835         Fix regression for USER.GROUP reported by Dmitry V. Levin in
32836         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
32837         (parse_user_spec): Rewrite to use parse_with_separator.
32838
32839 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32840
32841         * modules/userspec: Don't depend on alloca.
32842
32843 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32844
32845         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
32846
32847 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32848
32849         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
32850         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
32851         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
32852
32853 2004-08-16  Simon Josefsson  <jas@extundo.com>
32854
32855         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
32856         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
32857         Add --dry-run for --import.
32858         Let user provided command line parameters override configure.ac
32859         settings.
32860
32861 2004-08-12  Simon Josefsson  <jas@extundo.com>
32862
32863         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
32864         as discussed with Paul Eggert in threads rooted at
32865         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
32866         and
32867         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
32868         Before, the test was empty, and relied on ELIDE_CODE in source
32869         code.)
32870         (gl_PREREQ_GETOPT): New macro.
32871         (gl_GETOPT): Use them.
32872
32873 2004-08-12  Simon Josefsson  <jas@extundo.com>
32874
32875         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
32876         * lib/getopt_.h: Renamed from getopt.h.
32877
32878 2004-08-12  Simon Josefsson  <jas@extundo.com>
32879
32880         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
32881         Change default library name from libfoo to libgnu.
32882         Now, if you have a configure.ac that says:
32883                 gl_SOURCE_BASE(gl)
32884                 gl_M4_BASE(gl/m4)
32885                 gl_MODULES(error getopt etcetera)
32886                 gl_INIT
32887         you can import all you need by running:
32888                 ../gnulib/gnulib-tool --import
32889
32890         * modules/getopt (Files): Rename getopt.h to getopt_.h.
32891         (Makefile.am): Rewrite, use logic from argz.
32892         (Include): Use <getopt.h> instead of "getopt.h".
32893
32894 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32895
32896         * modules/argp (Files): Add m4/unlocked-io.m4.
32897         (Depends-on): Add extensions.
32898
32899 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32900
32901         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
32902         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
32903         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
32904         Check for program_invocation_name, program_invocation_short_name,
32905         flockfile, funlockfile, features.h, _getopt_long_only_r.
32906
32907 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32908
32909         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
32910         its complicated substitute.
32911         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
32912         and program_invocation_name.
32913         (__argp_basename) [!_LIBC]: Remove; the only use was
32914         replaced by its body.
32915         (__argp_short_program_name): Change condition from
32916         !defined __argp_short_program_name to
32917         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
32918         to match argp-namefrob.h.
32919         (__argp_failure): Don't assume strerror_r returns char *.
32920         * lib/argp-parse.c (N_): Define unconditionally.
32921         (argp_default_options): Fill out initializers with 0 to avoid
32922         gcc warnings.
32923
32924 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32925
32926         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
32927         getopt1.c.
32928
32929 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32930
32931         Merge from coreutils.
32932
32933         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
32934
32935         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
32936         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
32937
32938 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32939
32940         Merge from coreutils.
32941
32942         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
32943         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
32944         for Reliant Unix 5.43.
32945
32946         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
32947         (union fooround): Use uintmax_t, not long int.
32948         The rest is a merge from libc:
32949         [defined _LIBC]: Include <shlib-compat.h>.
32950         (_obstack) [defined _LIBC]: Remove after 2.3.4.
32951
32952         * lib/settime.c (settime): Recode to avoid warning with
32953         Sun Forte C 6U2.
32954
32955         * lib/strverscmp.c: Convert to UTF-8.
32956
32957 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32958
32959         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
32960         m4/uintmax_t.m4.
32961
32962 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32963
32964         * modules/xalloc-die: New file.
32965         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
32966
32967         * modules/md5 (Files): Add m4/uint32_t.m4.
32968         * modules/sha1: Renamed from modules/sha.
32969         (Files):
32970         Rename lib/sha.h to lib/sha1.h.
32971         Rename lib/sha.c to lib/sha1.c.
32972         Rename m4/sha.m4 to m4/sha1.m4.
32973         (lib_SOURCES): Likewise.
32974         (configure.ac): Rename gl_SHA to gl_SHA1.
32975         (Include): sha.h -> sha1.h.
32976
32977 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32978
32979         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
32980         * m4/sha1.m4: Renamed from sha.m4.
32981         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
32982
32983 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32984
32985         * lib/obstack.h (obstack_empty_p):
32986         Don't assume that chunk->contents is suitably aligned.
32987         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
32988         Likewise. Problem reported by Benno in
32989         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
32990
32991         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
32992         readable.  This could be improved further but it'd take some work.
32993
32994 2004-08-08  Simon Josefsson  <jas@extundo.com>
32995
32996         * modules/xgethostname (Depends-on): Remove exit and error (not
32997         used).
32998
32999         * modules/getpass-gnu: Add getpass.h.
33000         (Depends-on): Add stdbool.
33001         * modules/getpass: Add getpass.h.
33002
33003 2004-08-08  Simon Josefsson  <jas@extundo.com>
33004
33005         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
33006         Check getpass declaration.
33007
33008 2004-08-08  Simon Josefsson  <jas@extundo.com>
33009
33010         * lib/xgethostname.c: Don't include error.h (not used).
33011
33012         * lib/getpass.h: Add.
33013         * lib/getpass.c: Include getpass.h first.
33014
33015 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33016
33017         * lib/xalloc-die.c: New file.
33018         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
33019         All uses removed.
33020         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
33021         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
33022         xalloc-die.c.
33023         (_, N_, xalloc_die): Move to xalloc-die.c.
33024         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
33025         so that we needn't mess with xalloc_msg_memory_exhausted.
33026
33027         * lib/sha1.h: Renamed from sha.h.
33028         (SHA1_H): Renamed from _SHA_H.
33029         (sha1_ctx): Renamed from sha_ctx.
33030         (sha1_init_ctx): Renamed from sha_init_ctx.
33031         (sha1_process_block): Renamed from sha_process_block.
33032         (sha1_process_bytes): Renamed from sha_process_bytes.
33033         (sha1_finish_ctx): Renamed from sha_finish_ctx.
33034         (sha1_read_ctx): Renamed from sha_read_ctx.
33035         (sha1_stream): Renamed from sha_stream.
33036         (sha1_buffer): Renamed from sha_buffer.
33037         * lib/sha1.c: Likewise; renamed from sha.c.
33038         Do not include <sys/types.h>.
33039         Include <stddef.h> rather than <stdlib.h>.
33040
33041 2004-08-08  Bruno Haible  <bruno@clisp.org>
33042
33043         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
33044         FILESYSTEM_PREFIX_LEN.
33045         * lib/progreloc.c: Likewise.
33046         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
33047
33048 2004-08-06  Simon Josefsson  <jas@extundo.com>
33049
33050         * modules/progname (Depends-on): Don't depend on stdbool.
33051
33052 2004-08-06  Simon Josefsson  <jas@extundo.com>
33053
33054         * modules/getsubopt: New file.
33055         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33056         getsubopt.
33057
33058 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33059
33060         More merge from coreutils.
33061
33062         * m4/utimens.m4, m4/utimecmp.m4: New files.
33063         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
33064         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
33065         prereq.m4, sha.m4: Import changes from coreutils.
33066
33067 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33068
33069         More merge from coreutils.
33070         * modules/raise, modules/readtokens0, modules/utimens:
33071         * modules/utimecmp, module/xnanosleep: New files.
33072         * modules/strftime: Add lib/strftime.h.
33073         Change include from <time.h> to "strftime.h".
33074         * modules/yesno: Add lib/yesno.h.
33075         * modules/backupfile: Remove lib/addext.c.
33076         * modules/euidaccess: Add stat-macros.h.
33077         * modules/canonicalize, modules/euidaccess,
33078         modules/filemode, modules/lchown, modules/makepath,
33079         modules/rmdir, modules/stat: Likewise.
33080
33081 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33082
33083         Merge from tar.
33084         * lib/argp-help.c (make_hol, hol_append): Don't assume that
33085         SIZE_MAX is a valid preprocessor constant.
33086         (__argp_basename): Change from "#ifndef _LIBC"
33087         to "#ifndef __argp_short_program_name", so that
33088         we don't compile these functions for tar.
33089
33090         More merges from coreutils.
33091         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
33092         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
33093         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
33094         * lib/addext.c: Remove; no longer needed.
33095         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
33096         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
33097         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
33098         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
33099         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
33100         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
33101         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
33102         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
33103         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
33104         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33105         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
33106         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
33107         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
33108         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
33109         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
33110         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
33111         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
33112         Import changes from coreutils.
33113
33114 2004-08-05  Simon Josefsson  <jas@extundo.com>
33115
33116         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
33117
33118 2004-08-05  Simon Josefsson  <jas@extundo.com>
33119
33120         * m4/getsubopt.m4: New file.
33121
33122 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33123
33124         Merge from coreutils.
33125
33126         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
33127         * m4/getcwd-path-max.m4: New files.
33128
33129         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
33130         FILESYSTEM_PREFIX_LEN ->
33131         FILE_SYSTEM_PREFIX_LEN.
33132         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
33133         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
33134         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
33135         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
33136
33137         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
33138         prerequisite modules now handle the DOS stuff.
33139         Don't check for unistd.h.
33140
33141 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33142
33143         Merge from coreutils.
33144
33145         * lib/.gdb-history: Remove; this doesn't belong here.
33146
33147         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
33148         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
33149         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
33150         * lib/getcwd.c: New files.
33151
33152         * lib/dirname.h: Include <stdbool.h>.
33153         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
33154         for consistency with POSIX terminology.  All uses changed.
33155         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
33156         (strip_trailing_slashes): Use bool for booleans.
33157         * lib/stripslash.c (strip_trailing_slashes): Likewise.
33158
33159         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
33160         sometimes returns a positive errno value even when it succeeds.
33161         (print_errno_message) [!LIBC]: Fall back on strerror if
33162         __strerror_r fails.
33163
33164         * lib/path-concat.c (mempcpy): Don't define if a system header defines
33165         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
33166         (longest_relative_suffix): New function.
33167         (path_concat): Use it.  Assume first argument is not NULL.
33168         Port to DOS.  Omit redundant separators.
33169         Report an error instead of returning NULL.
33170         Use mempcpy instead of memcpy.
33171         (xpath_concat): Remove: not declared or used.
33172
33173         * lib/same.h: Include <stdbool.h>
33174         (same_name): Return bool, not int.
33175         * lib/same.c (same_name): Likewise.
33176         (errno): Don't declare; we assume C89 or better now.
33177
33178         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
33179         if not already defined.
33180
33181         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
33182         * lib/dup-safer.c (errno): Likewise.
33183
33184 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33185
33186         Merge from coreutils.
33187         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
33188         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
33189         * modules/path-concat: Don't depend on strdup.
33190
33191 2004-08-03  Simon Josefsson  <jas@extundo.com>
33192
33193         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
33194         * lib/progname.h: Don't include stdbool.h.
33195
33196 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33197
33198         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
33199         * MODULES.html.sh (func_all_modules): Remove fatal.
33200
33201 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33202
33203         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
33204
33205 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33206
33207         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
33208         working.
33209
33210 2004-08-02  Simon Josefsson  <jas@extundo.com>
33211
33212         * lib/getsubopt.h: New file, with comments from Bruno Haible.
33213         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
33214         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
33215
33216 2004-08-01  Simon Josefsson  <jas@extundo.com>
33217
33218         * lib/xgetdomainname.c: Include stdlib.h, for free().
33219
33220 2004-07-19  Bruno Haible  <bruno@clisp.org>
33221
33222         * MODULES.html.sh (func_all_modules): Add dummy.
33223
33224 2004-07-16  Simon Josefsson  <jas@extundo.com>
33225
33226         * modules/dummy: New file.
33227
33228 2004-07-16  Simon Josefsson  <jas@extundo.com>
33229
33230         * lib/dummy.c: New file.
33231
33232 2004-07-16  Bruno Haible  <bruno@clisp.org>
33233
33234         * lib/backupfile.h: Add extern "C" for C++.
33235         * lib/closeout.h: Likewise.
33236         * lib/copy-file.h: Likewise.
33237         * lib/findprog.h: Likewise.
33238         * lib/full-write.h: Likewise.
33239         * lib/pathname.h: Likewise.
33240         * lib/progname.h: Likewise.
33241         * lib/stpcpy.h: Likewise.
33242         * lib/stpncpy.h: Likewise.
33243         * lib/strcase.h: Likewise.
33244         * lib/strstr.h: Likewise.
33245         * lib/xalloc.h: Likewise.
33246
33247         * lib/mbswidth.h: Add extern "C" for C++.
33248         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
33249
33250 2004-07-13  Robert Millan  <robertmh@gnu.org>
33251
33252         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
33253
33254 2004-07-09  Simon Josefsson  <jas@extundo.com>
33255
33256         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
33257         failed without this.)
33258
33259 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33260
33261         * modules/chown (Files): Add lib/fchown-stub.c, since
33262         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
33263
33264 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33265
33266         * lib/fchown-stub.c: New file.
33267
33268 2004-06-24  Jim Meyering  <jim@meyering.net>
33269
33270         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
33271
33272 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33273
33274         * modules/argz: Omit "#include".
33275
33276         * MODULES.html.sh (func_all_modules): Add calloc, to match
33277         2004-06-01 addition of calloc module.
33278
33279 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33280
33281         * m4/argz.m4: New file, which is autoupdated from libtool.
33282
33283 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33284
33285         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33286         libtool.
33287
33288 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33289
33290         * config/srclist-update: Don't insist on "USA." before the
33291         close-comment, as libtool omits the period and puts the */ on a
33292         separate line.
33293         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33294         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33295
33296 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33297
33298         * modules/argz: New file.
33299         * MODULES.html.sh (func_all_modules): Add argz.
33300
33301 2004-06-12  Jim Meyering  <jim@meyering.net>
33302         and  Paul Eggert  <eggert@cs.ucla.edu>
33303
33304         * modules/hash (Files): Add lib/xalloc.h.
33305         * modules/pipe (Depends-on): Add wait-process.
33306         * modules/stat (Depends-on): Add xalloc.
33307         * modules/userspec (Files): Add lib/userspec.h.
33308         * modules/xstrto
33309
33310         Upgrade from gettext-0.13.
33311         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33312         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33313         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33314
33315 2004-06-10  Jim Meyering  <jim@meyering.net>
33316
33317         * lib/calloc.c: New file.
33318
33319 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33320
33321         * lib/getdate.y (yylex): Allow space between sign and number.
33322         Problem reported by Dan Jacobson.
33323
33324 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33325
33326         Merge from coreutils CVS.
33327
33328         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33329         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33330         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33331         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33332         xstrtol.m4: Fix copyright date and/or serial number.
33333
33334         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33335         See if we need an fchown replacement.
33336         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33337         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33338         and use the replacement function if we detect either defect.
33339
33340         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33341         gl_UTIMECMP.
33342
33343 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33344         and  Jim Meyering  <jim@meyering.net>
33345
33346         Merge from coreutils CVS.
33347
33348         * lib/stat-macros.h: New file, with contents from file-type.h
33349         and coreutils' system.h.
33350         * lib/file-type.c: Include "stat-macros.h".
33351         * lib/file-type.h (file_type): Move all macro definitions to new file,
33352         stat-macros.h.
33353
33354         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33355         Wrap old code with this conditional.
33356         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33357         function that does not dereference symlinks.
33358         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33359
33360         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33361         dependency problems.
33362         (xreadlink): Accept new arg SIZE, for efficiency.
33363         All decls and uses changed.
33364         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33365
33366         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33367         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33368
33369         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33370         sysexits.h.
33371
33372 2004-06-01  Jim Meyering  <jim@meyering.net>
33373
33374         * m4/calloc.m4: New file.
33375
33376 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33377
33378         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
33379         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
33380         Also, fix a typo in a diagnostic.
33381
33382 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33383
33384         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
33385         or AC_FUNC_REALLOC.
33386
33387 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33388
33389         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
33390         macros to be defined.
33391         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
33392         the allocator returns NULL because the requested size is zero.
33393
33394 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33395
33396         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
33397         var.  Add comment explaining why libc still defines it.  This
33398         merges the following patch from glibc:
33399         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33400
33401 2004-05-20  Andreas Schwab  <schwab@suse.de>
33402
33403         * m4/free.m4: Replace free if it not known to work, not the other
33404         way round.
33405
33406 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33407
33408         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33409         present in glibc since revision 1.1 of this file.
33410         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33411         obstack_alignment_mask, obstack_alloc, obstack_base,
33412         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33413         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33414         obstack_grow0, obstack_init, obstack_int_grow,
33415         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33416         obstack_next_free, obstack_object_size, obstack_ptr_grow,
33417         obstack_ptr_grow_fast, obstack_room): Remove declarations of
33418         nonexistent functions.
33419
33420 2004-05-18  Karl Berry  <karl@gnu.org>
33421
33422         * config/srclist.txt: break link for vasnprintf.c.
33423
33424 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33425
33426         Port obstack to the AS/400, where pointers are 16 bytes wide and
33427         you cannot cast an integer to a valid pointer.  This patch is
33428         currently waiting to be integrated into glibc; see
33429         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
33430
33431         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
33432         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
33433         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
33434         (struct obstack): temp member is now a union of a pointer and
33435         an integer, instead of an integer.  All integer uses changed.
33436         This does not affect the physical layout of struct obstack,
33437         except on hosts (like the AS/400) where the size or alignment of
33438         void * is greater than that of ptrdiff_t.
33439         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
33440         __STDC__)]: Store temporary in pointer member of union, not
33441         integer member.
33442         * lib/obstack.c: Include <stddef.h>, for offsetof.
33443         (struct fooalign): Remove; it doesn't need a name.
33444         (union fooround): Change double to long double, and add void *.
33445         (DEFAULT_ALIGNMENT): Use offsetof to compute.
33446         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
33447         not a macro.  Hence the values are always int; so remove all
33448         casts-to-int in uses.
33449
33450 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33451
33452         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
33453         we can get this patch merged into glibc.
33454
33455 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33456             Paul Eggert  <eggert@cs.ucla.edu>
33457
33458         * m4/argp: Depend on alloca.
33459
33460 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33461             Paul Eggert  <eggert@cs.ucla.edu>
33462
33463         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
33464         freecoding.
33465
33466 2004-05-17  Bruno Haible  <bruno@clisp.org>
33467
33468         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
33469         precision that consists of a '.' followed by an empty digit string.
33470         Patch by Tor Lillqvist <tml@iki.fi>.
33471
33472 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33473
33474         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
33475         for backward compatibility with older code.  We need our own
33476         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
33477         it under some other name, and our alloca.h will define it.
33478
33479 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33480             Derek Price  <derek@ximbiot.com>
33481
33482         * lib/alloca.c: Include <alloca.h>, to get our interface.
33483         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
33484         include <alloca.h> first.  Use C89 prototype for alloca; this
33485         requires including <stddef.h> for size_t.  Use extern "C" if C++.
33486         Use #elif for simplicity, since we can assume C89 now.
33487         Don't try to source the system alloca.h since it will not be found
33488         and to prevent recursively including its replacement.
33489         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
33490         * lib/regex.c: Likewise.
33491
33492 2004-05-16  Derek Price  <derek@ximbiot.com>
33493             Paul Eggert  <eggert@cs.ucla.edu>
33494
33495         getline cleanup.  This changes the getndelim2 API: both order of
33496         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
33497         no delimiter).
33498
33499         * lib/getline.c: Don't include stddef.h or stdio.h, since our
33500         interface does that.
33501         (getline): Always use getdelim, so that we don't have two
33502         copies of this code.
33503         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
33504         if available.
33505         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
33506         (GETNDELIM2_MAXIMUM): New macro.
33507         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
33508         instead of the old practice of delim2==0.  All callers changed.
33509         Return -1 on overflow, instead of returning junk.
33510         Do not set *linesize unless allocation succeeds.
33511         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
33512         that we include sys/types.h.
33513         * lib/getnline.h: Likewise.
33514         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
33515         (getndelim2): Reorder arguments.
33516         * lib/getnline.c (getnline, getndelim):
33517         Don't discard the NMAX argument.
33518         (getnline): Invoke getndelim, to avoid code duplication.
33519         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
33520         of (size_t) -1 by callers of the getnline family.
33521
33522 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33523
33524         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
33525         Check for gettimeofday.
33526         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
33527         Check for settimeofday, stime.
33528
33529 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33530
33531         * lib/nanosleep.c (suspended): Change its type from int to
33532         sig_atomic_t volatile.
33533         (first_call): Make it private to rpl_nanosleep, and have it
33534         be zero initially as that's a bit faster.
33535         (my_usleep): Round up fractional times instead of truncating them,
33536         as this is the usual meaning for 'sleep'.
33537
33538         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
33539         doesn't work.
33540         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
33541         (ENOSYS): Define if not defined.
33542         (settime): Fall back on stime if it exists and settimeofday fails.
33543         But don't bother with fallbacks if a method fails with errno == EPERM.
33544
33545 2004-05-11  Jim Meyering  <jim@meyering.net>
33546
33547         Prior to this change, the save_cwd caller required read access to the
33548         current directory on most systems (ones with the fchdir function).
33549
33550         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
33551         fails, try write-only, and finally, resort to using xgetcwd.
33552
33553 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33554
33555         * lib/obstack.c, obstack.h: Import changes from libc.
33556
33557 2004-04-28  Bruno Haible  <bruno@clisp.org>
33558
33559         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
33560         also implicitly appends .exe to executables.
33561         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
33562         accepts Windows pathnames.
33563         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33564         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33565         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33566         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33567         Reported by Derek Robert Price <derek@ximbiot.com>.
33568
33569 2004-04-21  Karl Berry  <karl@gnu.org>
33570
33571         * config/srclist.txt (localcharset.c): break sync.
33572
33573 2004-04-20  Paul Eggert  <eggert@twinsun.com>
33574
33575         * m4/host-os.m4: Add a copyright notice.
33576
33577 2004-04-20  Jim Meyering  <jim@meyering.net>
33578
33579         Change UTILS_ to gl_ in AC_DEFINE'd names.
33580         Change utils_- and jm_-prefixed variables, too.
33581         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
33582         UTILS_FUNC_MKDIR_TRAILING_SLASH.
33583         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
33584
33585         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
33586         Don't emit trailing blanks.
33587         Also rename jm_-prefixed variables to have gl_ prefix.
33588
33589         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
33590         Also rename jm_-prefixed variables to have gl_ prefix.
33591
33592         * m4/jm-macros.m4: Reflect the renamings.
33593         * m4/prereq.m4: Likewise.
33594
33595 2004-04-20  Jim Meyering  <jim@meyering.net>
33596
33597         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
33598         memory.
33599
33600 2004-04-20  Jim Meyering  <jim@meyering.net>
33601             Bruno Haible  <bruno@clisp.org>
33602
33603         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
33604         memory when realloc fails.
33605
33606 2004-04-19  Jim Meyering  <jim@meyering.net>
33607
33608         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
33609         now that readutmp.c may call `free (0)'.
33610
33611 2004-04-19  Bruno Haible  <bruno@clisp.org>
33612
33613         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
33614         * m4/inttypes_h.m4: Likewise.
33615         * m4/stdint_h.m4: Likewise.
33616         * m4/intmax_t.m4: Likewise.
33617         * m4/uintmax_t.m4: Likewise.
33618
33619 2004-04-18  Jim Meyering  <jim@meyering.net>
33620
33621         * m4/prereq.m4: Don't forbid jm_ prefix.
33622
33623         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
33624         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
33625         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
33626         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
33627         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
33628         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
33629         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
33630         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
33631         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
33632         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
33633         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
33634         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
33635         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
33636         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
33637         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
33638         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
33639         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
33640         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
33641         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
33642
33643 2004-04-18  Jim Meyering  <jim@meyering.net>
33644
33645         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
33646         failure, don't leak memory and do call END_UTMP_ENT.
33647
33648 2004-04-16  Jim Meyering  <jim@meyering.net>
33649
33650         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
33651         coreutils' stat program.
33652         (gl_PREREQ): Don't require jm_PREREQ_STAT.
33653
33654 2004-04-11  Paul Eggert  <eggert@twinsun.com>
33655
33656         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
33657         C89.
33658         (CHAR_BIT): Remove, since we assume C89.
33659         Include <stdint.h> if available, as per current Autoconf CVS advice.
33660
33661 2004-03-31  Jim Meyering  <jim@meyering.net>
33662
33663         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
33664         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
33665         * m4/xalloc.m4: Likewise.
33666
33667 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33668
33669         Merge from coreutils.
33670
33671         * m4/inttostr.m4: New file.
33672         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
33673         Require AM_STDBOOL_H and gl_TIMESPEC instead.
33674         Require gl_CLOCK_TIME.
33675         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
33676
33677 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33678
33679         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
33680         not bool, to be more consistent with Unix conventions.
33681         Suggested by Bruno Haible.
33682
33683         Merge from coreutils.
33684
33685         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
33686         * lib/umaxtostr.c: New files.
33687
33688         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
33689         the usual <time.h> dance.
33690         (get_date): Change signature to support fractional time stamps.
33691         All callers changed.
33692         * lib/getdate.y: Include "getdate.h" first, as we can now
33693         assume C89 and don't need to worry about 'const'.
33694         Similarly, include "unlocked-io.h" near start, not in middle.
33695         Include <limits.h>.
33696         (textint.value): Use long int rather than int.
33697         (textint.digits): Use size_t rather than int.
33698         (BILLION, LOG10_BILLION): New constants.
33699         (parser_control): New member rel_ns.  Members day_ordinal,
33700         time_zone, month, day, hour, minutes, rel_year, rel_month,
33701         rel_day, rel_hour, rel_minutes, rel_seconds
33702         are now long int, not int.  Member seconds is now struct timespec,
33703         not int.  New member timespec_seen.  Members dates_seen, days_seen,
33704         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
33705         not int.
33706         (%union.intval): Now long int, not int.
33707         New member timespec.
33708         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
33709         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
33710         (spec): Now is a timespec or an item list.
33711         (timespec, items): New nonterminals.
33712         (time, rel, relunit, number, get_date):
33713         Add support for fractional seconds.
33714         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
33715         (gmtime, localtime, mktime): Remove decls; not needed with C89.
33716         (to_hour): First arg is now long int, not int.
33717         (to_year): Returns long int, not int.
33718         Don't treat year -70 like 70.
33719         (tm_diff): Returns long int, not int.
33720         (lookup_word): Use bool instead of int when appropriate.
33721         (yylex): Use size_t for count, not int.
33722         Detect overflow when parsing large integer constants.
33723         Add support for fractions.
33724         (get_date): Make pointers 'const' if possible.
33725         Use more-portable code to detect integer overflow.
33726         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
33727         Don't use ctime; it's not reliable if the year has >4 digits.
33728
33729         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
33730         This is for compatibility with BSD.
33731
33732         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
33733         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
33734         From coreutils' system.h.
33735
33736         * lib/userspec.c: Don't include "posixver.h".
33737         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
33738         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
33739         compatible extension.  Simplify code by removing a boolean int
33740         that was always nonzero if a string was nonnull.
33741
33742 2004-03-30  Jim Meyering  <jim@meyering.net>
33743
33744         Merge from coreutils.
33745
33746         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
33747         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
33748         on some systems one must include <grp.h> before it.
33749         Reported by Christian Krackowizer.
33750
33751 2004-03-30  Jim Meyering  <jim@meyering.net>
33752
33753         Merge from coreutils.
33754
33755         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
33756
33757         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
33758         an empty input stream.
33759
33760         * lib/readtokens.c: Include <stdbool.h>.
33761         (readtoken): Use `size_t' rather than int/long.
33762         All callers adjusted.
33763         Use `bool' rather than `int' where appropriate.
33764         Use memset rather than an explicit loop.
33765         Use x2nrealloc rather than xrealloc.
33766         Allow the use of `\0' as a delimiter.
33767         (readtokens): Likewise.
33768         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
33769
33770 2004-03-30  Jim Meyering  <jim@meyering.net>
33771
33772         * m4/realloc.m4: Remove file, since now it does no more than
33773         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
33774         the `configure.ac' section of module/realloc.
33775         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
33776
33777 2004-03-30  Bruno Haible  <bruno@clisp.org>
33778
33779         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
33780         nonnull.
33781
33782 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33783
33784         Merge changes to getloadavg.c from coreutils and Emacs.
33785
33786         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
33787         Define to an expression, not to the empty string.
33788         Include cloexec.h and xalloc.h.
33789         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
33790         Use set_cloexec_flag rather than rolling our own.
33791         * lib/cloexec.c, lib/cloexec.h: New files.
33792
33793 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33794
33795         * m4/cloexec.m4: New file.
33796
33797 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33798
33799         * lib/getopt.h: Sync with libc CVS.
33800
33801 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33802             Bruno Haible  <bruno@clisp.org>
33803
33804         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
33805         mbswidth.
33806
33807 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33808             Bruno Haible  <bruno@clisp.org>
33809
33810         * lib/mbswidth.h: Include <wchar.h> only if
33811         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
33812         <wchar.h>.
33813         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
33814
33815 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33816
33817         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
33818         Sync with libc CVS.
33819         * lib/getopt_int.h: New file, also synced from libc.
33820
33821 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33822
33823         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
33824         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
33825         Bring back getopt.c, getopt.h, getopt1.c.
33826
33827 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33828
33829         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
33830         All uses changed.  Check for sa_sigaction member; this fixes
33831         a bug first reported by Jason Andrade in
33832         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33833
33834 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33835
33836         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
33837         '#if' expressions.  Unlike the code it replaces, it does not
33838         depend on (defined _SC_PAGESIZE).  However, it does depend on
33839         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
33840         first reported by Jason Andrade in
33841         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33842
33843 2004-02-25  Simon Josefsson  <jas@extundo.com>
33844
33845         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
33846
33847 2004-02-25  Simon Josefsson  <jas@extundo.com>
33848
33849         * lib/strdup.h: New file.
33850         * lib/strdup.c: Include it.
33851         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
33852         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
33853
33854 2004-02-23  Karl Berry  <karl@gnu.org>
33855
33856         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
33857         (from fencepost.gnu.org:/gd/gnuorg).
33858
33859 2004-02-23  Karl Berry  <karl@gnu.org>
33860
33861         * config/srclistvars.sh (GNUORG) [karl]: redefine.
33862         * config/srclist.txt: add maintain/standards documents.
33863
33864 2004-02-18  Bruno Haible  <bruno@clisp.org>
33865
33866         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
33867         Reported by Derek Robert Price <derek@ximbiot.com>.
33868
33869 2004-02-16  Karl Berry  <karl@gnu.org>
33870
33871         * config/mkinstalldirs, install-sh: update from automake.
33872
33873 2004-02-06  Karl Berry  <karl@gnu.org>
33874
33875         * m4/po.m4: update from gettext 0.14.1.
33876
33877 2004-02-06  Karl Berry  <karl@gnu.org>
33878
33879         * lib/config.charset: update from gettext 0.14.1.
33880
33881 2004-02-05  Paul Eggert  <eggert@twinsun.com>
33882
33883         Add comments and code, prompted by suggestions from Bruno Haible
33884         for sh-quote.
33885         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
33886         describing the enum quoting_style values.
33887         * lib/quotearg.c (quotearg_alloc): New function.
33888         (quotearg_buffer_restyled): Treat lone { and } as special.
33889         Treat = as special.  Work around bug with older shells
33890         that "see" a '\' that is really the 2nd byte of a multibyte char.
33891         Quote empty string with shell_quoting_style.
33892
33893 2004-02-03  Bruno Haible  <bruno@clisp.org>
33894
33895         * m4/pipe.m4: New file, from GNU gettext.
33896
33897 2004-02-03  Bruno Haible  <bruno@clisp.org>
33898
33899         * lib/pipe.h: New file, from GNU gettext.
33900         * lib/pipe.c: New file, from GNU gettext.
33901
33902 2004-01-27  Bruno Haible  <bruno@clisp.org>
33903
33904         * m4/execute.m4: New file, from GNU gettext.
33905
33906 2004-01-27  Bruno Haible  <bruno@clisp.org>
33907
33908         * lib/execute.h: New file, from GNU gettext.
33909         * lib/execute.c: New file, from GNU gettext.
33910         * lib/w32spawn.h: New file, from GNU gettext.
33911
33912 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33913
33914         Merge from diffutils.
33915
33916         * lib/file-type.c (file_type): Add typed memory objects.
33917         * lib/file-type.h (S_TYPEISTMO): New macro.
33918
33919         * lib/c-stack.h (c_stack_action): Remove argv argument.
33920         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
33921         (die): Don't calculate message unless segv_action returns.
33922         (get_stack_location, min_address_from_argv, max_address_from_argv,
33923         volatile stack_base, volatile_stack_size): Remove.
33924         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
33925         that every segmentation violation is a stack overflow.  (Ouch!)
33926         See Debian bug 136249 (still outstanding) for more info about why
33927         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
33928
33929 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33930
33931         Exit-status fix from coreutils.
33932
33933         Use exit_failure consistently in place of EXIT_FAILURE,
33934         so that program exit statuses are consistent on failure.
33935
33936         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
33937         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
33938         * lib/argmatch.h: Comment fix to match the above.
33939         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
33940         Now a macro referring to exit_failure, instead of a separate
33941         variable.  Include "exitfail.h" to get it.
33942         * lib/xstrtol.h: Include "exitfail.h".
33943         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
33944
33945         * lib/long-options.c (parse_long_options): Use prototype
33946         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
33947         for clarity.
33948
33949 2004-01-21  Jim Meyering  <jim@meyering.net>
33950
33951         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
33952         so as not to conflict with a different-sized __mktime_internal
33953         function in GNU libc.
33954         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
33955         Problem building statically-linked `ls' reported by Michael Brunnbauer.
33956
33957 2004-01-20  Karl Berry  <karl@gnu.org>
33958
33959         * config/config.guess: update from config.
33960
33961         * config/srclistvars.sh: GNUWWWLICENSES for karl.
33962
33963 2004-01-20  Bruno Haible  <bruno@clisp.org>
33964
33965         Safer stack allocation.
33966         * lib/setenv.c: Include allocsa.h.
33967         (alloca): Remove fallback definition.
33968         (freea): Remove macro.
33969         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
33970         instead of freea.
33971
33972 2004-01-20  Bruno Haible  <bruno@clisp.org>
33973
33974         * m4/eealloc.m4: New file, from GNU gettext.
33975
33976 2004-01-20  Bruno Haible  <bruno@clisp.org>
33977
33978         * m4/allocsa.m4: New file, from GNU gettext.
33979
33980 2004-01-20  Bruno Haible  <bruno@clisp.org>
33981
33982         * lib/xallocsa.h: New file, from GNU gettext.
33983         * lib/xallocsa.c: New file, from GNU gettext.
33984
33985 2004-01-20  Bruno Haible  <bruno@clisp.org>
33986
33987         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
33988
33989 2004-01-20  Bruno Haible  <bruno@clisp.org>
33990
33991         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
33992         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
33993         specially.
33994
33995 2004-01-20  Bruno Haible  <bruno@clisp.org>
33996
33997         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
33998         patch.
33999
34000 2004-01-20  Bruno Haible  <bruno@clisp.org>
34001
34002         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
34003
34004 2004-01-20  Bruno Haible  <bruno@clisp.org>
34005
34006         * lib/eealloc.h: New file.
34007
34008 2004-01-20  Bruno Haible  <bruno@clisp.org>
34009
34010         * lib/binary-io.h: Avoid warnings on Cygwin.
34011
34012 2004-01-20  Bruno Haible  <bruno@clisp.org>
34013
34014         * lib/allocsa.h: New file, from GNU gettext.
34015         * lib/allocsa.c: New file, from GNU gettext.
34016
34017 2004-01-18  Karl Berry  <karl@gnu.org>
34018
34019         * doc/gpl.texi, doc/lgpl.texi: new files.
34020
34021 2004-01-18  Karl Berry  <karl@gnu.org>
34022
34023         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
34024         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
34025
34026 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34027
34028         Merge from coreutils.
34029
34030         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
34031         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
34032         (gl_DEFAULT_POSIX2_VERSION): Move
34033         the documentation from 'configure' into 'config.hin',
34034         so that 'configure --help' isn't burdened by it and
34035         we don't have to worry about its formatting there.
34036         Reword the documentation so that it's more succinct
34037         and can be run together into a single paragraph.
34038         * m4/same.m4 (gl_SAME): Check for pathconf.
34039
34040 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34041
34042         Merge from coreutils.
34043
34044         * lib/posixver.c: Include posixver.h.
34045
34046         * lib/same.c: Include <stdbool.h>, <limits.h>.
34047         (_POSIX_NAME_MAX): Define if not defined.
34048         (MIN): New macro.
34049         (same_name): If file names are silently truncated, report
34050         that the file names are the same if they are the same after
34051         the silent truncation.
34052
34053         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
34054         conversion function.
34055         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
34056         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
34057         longer needed.
34058
34059 2004-01-15  Jim Meyering  <jim@meyering.net>
34060
34061         Merge from coreutils.
34062
34063         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
34064         if no library is required.
34065         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
34066         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
34067         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
34068         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
34069         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
34070         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
34071         value, $ac_cv_search_crypt, if it's "none required".
34072         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
34073         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
34074         not gl_FUNC_GETLOADAVG.
34075         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
34076         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
34077
34078 2004-01-15  Jim Meyering  <jim@meyering.net>
34079
34080         Merge from coreutils.
34081
34082         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
34083         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
34084         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
34085
34086         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
34087         optional configure-time default.
34088
34089         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34090
34091         * lib/xreadlink.c (xreadlink): Correct outdated comment.
34092
34093 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
34094
34095         Merge from coreutils.
34096
34097         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
34098         value, $ac_cv_search_nanosleep, if it's "none required".
34099
34100 2004-01-14  Paul Eggert  <eggert@twinsun.com>
34101
34102         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
34103         with like-named macro in fnmatch.c.
34104         (EXT): Use an internal constant instead.
34105
34106         Merge fnmatch patches from glibc.
34107         * lib/fnmatch.c (mbsinit): Remove define.
34108         Add libc_hidden_ver (__fnmatch, fnmatch).
34109         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
34110         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
34111
34112 2004-01-14  Karl Berry  <karl@gnu.org>
34113
34114         * config/install-sh: update from automake.
34115
34116 2004-01-13  Karl Berry  <karl@gnu.org>
34117
34118         * config/install-sh: update from automake.
34119
34120 2004-01-09  Karl Berry  <karl@gnu.org>
34121
34122         * config/install-sh: update from automake.
34123
34124 2004-01-05  Karl Berry  <karl@gnu.org>
34125
34126         * config/config.{sub,guess}: update from config.
34127
34128 2003-12-31  Karl Berry  <karl@gnu.org>
34129
34130         * config/depcomp: update from automake.
34131
34132 2003-12-14  Karl Berry  <karl@gnu.org>
34133
34134         * lib/config.charset: update from gettext-runtime.
34135
34136 2003-12-03  Paul Eggert  <eggert@twinsun.com>
34137
34138         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
34139         Bug reported by Alfred M. Szmidt.
34140
34141 2003-12-03  Bruno Haible  <bruno@clisp.org>
34142
34143         * m4/gettext.m4: Upgrade from gettext-0.13.
34144         * m4/po.m4: Upgrade from gettext-0.13.
34145         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
34146         * m4/intmax.m4: New file, from gettext-0.13.
34147         * m4/printf-posix.m4: New file, from gettext-0.13.
34148
34149 2003-11-29  Karl Berry  <karl@gnu.org>
34150
34151         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
34152
34153 2003-11-25  Paul Eggert  <eggert@twinsun.com>
34154             Bruno Haible  <bruno@clisp.org>
34155
34156         * lib/printf-parse.h: Don't include sys/types.h.
34157         (ARG_NONE): New macro.
34158         (char_directive): Change type of *arg_index fields to size_t.
34159         * lib/printf-parse.c: Don't include sys/types.h.
34160         (SSIZE_MAX): Remove macro.
34161         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
34162         Remove unnecessary overflow check.
34163         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
34164         fields.
34165
34166 2003-11-25  Bruno Haible  <bruno@clisp.org>
34167
34168         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
34169
34170 2003-11-25  Bruno Haible  <bruno@clisp.org>
34171
34172         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
34173         gt_TYPE_SSIZE_T.
34174
34175 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34176
34177         * modules/alloca: Remove dependency on xalloc.
34178
34179 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34180
34181         * lib/alloca.c: Remove dependency on xalloc module.
34182         (xalloc_die): Remove.
34183         (memory_full) [!defined emacs]: New macro.
34184         [!defined emacs]: Don't include xalloc.h.
34185         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
34186         address arithmetic overflows.  Change datatypes a bit to avoid
34187         unnecessary casts.
34188
34189 2003-11-22  Jim Meyering  <jim@meyering.net>
34190
34191         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
34192         s/size/size_t/.
34193
34194 2003-11-21  Karl Berry  <karl@gnu.org>
34195
34196         * config/config.{sub,guess}: update from config.
34197
34198 2003-11-18  Karl Berry  <karl@gnu.org>
34199
34200         * config/config.{sub,guess}: update from config.
34201
34202         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
34203
34204 2003-11-17  Paul Eggert  <eggert@twinsun.com>
34205
34206         * README: Mention that S+T cannot overflow if S is the size of
34207         an existing object and T is sufficiently small.
34208
34209 2003-11-17  Jim Meyering  <jim@meyering.net>
34210
34211         On systems without utime and without a utimes function capable of
34212         dealing with a NULL struct utimbuf* argument, this utime replacement
34213         could -- in unusual circumstances -- leak a file descriptor.
34214         * lib/utime.c: Include <unistd.h> and <errno.h>.
34215         (utime_null): Be sure to close `fd' and to preserve errno.
34216         Reported by Geoff Collyer via Arnold Robbins.
34217
34218 2003-11-17  Bruno Haible  <bruno@clisp.org>
34219
34220         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
34221         (Depends-on): Add xsize.
34222
34223 2003-11-17  Bruno Haible  <bruno@clisp.org>
34224
34225         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
34226
34227 2003-11-17  Bruno Haible  <bruno@clisp.org>
34228
34229         * lib/vasnprintf.c (alloca): Remove fallback definition.
34230         (freea): Remove definition.
34231         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
34232         Reported by Paul Eggert.
34233
34234 2003-11-16  Paul Eggert  <eggert@twinsun.com>
34235             Bruno Haible  <bruno@clisp.org>
34236
34237         Protect against address arithmetic overflow.
34238         * lib/printf-args.h: Include stddef.h.
34239         (arguments): Change type of field 'count' to size_t.
34240         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
34241         'unsigned int' where appropriate.
34242         * lib/printf-parse.h: Include sys/types.h.
34243         (char_directive): Change type of *arg_index fields to ssize_t.
34244         (char_directives): Change type of fields 'count', max_*_length to
34245         size_t.
34246         * lib/printf-parse.c: Include sys/types.h and xsize.h.
34247         (SSIZE_MAX): Define fallback value.
34248         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
34249         instead of 'int' where appropriate. Check a_allocated, d_allocated
34250         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
34251         * lib/vasnprintf.c: Include xsize.h.
34252         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
34253         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
34254         overflow. Avoid wraparound when converting a width or precision from
34255         decimal to binary.
34256
34257 2003-11-16  Bruno Haible  <bruno@clisp.org>
34258
34259         Update from GNU gettext.
34260         * lib/printf-parse.c: Generalize to it can be compiled for wide
34261         strings.
34262         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
34263         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
34264         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
34265         SNPRINTF): New macros.
34266         Don't include <alloca.h> if the file is used inside libintl.
34267         (local_wcslen): New function, for Solaris 2.5.1.
34268         (VASNPRINTF): Use it instead of wcslen.
34269
34270 2003-11-16  Bruno Haible  <bruno@clisp.org>
34271
34272         * lib/xsize.h (xmax): New function.
34273         (xsum, xsum3, xsum4): Declare as "pure" functions.
34274
34275 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34276
34277         * modules/xalloc (Files): Undo latest change, since xalloc.h
34278         no longer needs SIZE_MAX or PTRDIFF_MAX.
34279
34280 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34281
34282         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34283         gl_PTRDIFF_MAX.
34284
34285 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34286
34287         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34288         "return", to pacify some unknown compiler.  Problem reported
34289         by Joerg Schilling.
34290
34291 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34292
34293         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34294         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34295         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34296         heuristic is just as accurate as far as we know, and it removes a
34297         dependency on size_max.m4 and ptrdiff_max.m4.
34298
34299 2003-11-11  Bruno Haible  <bruno@clisp.org>
34300
34301         * modules/xsize (Files): Add m4/size_max.m4.
34302         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34303
34304 2003-11-11  Bruno Haible  <bruno@clisp.org>
34305
34306         * m4/size_max.m4: New file.
34307         * m4/ptrdiff_max.m4: New file.
34308         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34309         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34310         (gl_XALLOC): Invoke it.
34311
34312 2003-11-11  Bruno Haible  <bruno@clisp.org>
34313
34314         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34315         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34316         defined.
34317
34318 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34319
34320         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34321         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34322         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34323         From Bruno Haible.
34324         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34325         not (size_t) -1, since it's defined here.
34326
34327 2003-11-09  Karl Berry  <karl@gnu.org>
34328
34329         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34330
34331 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34332
34333         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34334         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34335         Reject sizes of exactly SIZE_MAX bytes.
34336         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34337         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34338
34339 2003-11-05  Bruno Haible  <bruno@clisp.org>
34340
34341         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34342         SIZE_MAX defined in <limits.h> on Solaris.
34343
34344 2003-11-04  Jim Meyering  <jim@meyering.net>
34345
34346         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34347         variable names, rather than @VAR@.
34348         * modules/poll: Likewise.
34349
34350 2003-11-04  Bruno Haible  <bruno@clisp.org>
34351
34352         * modules/xsize: New file.
34353         * modules/linebreak: Depend on xsize.
34354         * MODULES.html.sh (func_all_modules): Add xsize.
34355
34356 2003-11-04  Bruno Haible  <bruno@clisp.org>
34357
34358         * m4/xsize.m4: New file.
34359
34360 2003-11-04  Bruno Haible  <bruno@clisp.org>
34361
34362         * lib/xsize.h: New file.
34363         * lib/linebreak.c: Include xsize.h.
34364         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34365         argument for overflow.
34366         Suggested by Paul Eggert.
34367
34368 2003-11-03  Karl Berry  <karl@gnu.org>
34369
34370         * config/config.{guess,sub}: update from config.
34371
34372 2003-11-03  Jim Meyering  <jim@meyering.net>
34373
34374         * modules/userspec (lib_SOURCES): Add userspec.h.
34375         (Include): Add "userspec.h".
34376         Improve description.
34377
34378 2003-11-03  Jim Meyering  <jim@meyering.net>
34379
34380         * lib/userspec.c: Include "userspec.h".
34381         * lib/userspec.h: New file.
34382
34383 2003-11-03  Bruno Haible  <bruno@clisp.org>
34384
34385         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
34386
34387 2003-11-03  Bruno Haible  <bruno@clisp.org>
34388
34389         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
34390         available, to avoid (extremely rare) race condition.
34391         Suggested by Paul Eggert.
34392
34393 2003-11-02  Karl Berry  <karl@gnu.org>
34394
34395         * config/srclist.txt (vasprintf.c): sync broken, sigh.
34396
34397 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34398
34399         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34400         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34401         (read_filesystem_list): Set and use me_type_malloced.
34402         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34403         whatever the type happens to be), for brevity and consistency.
34404         Check for size calculation overflow on Alphas running OSF/1.
34405
34406 2003-10-31  Jim Meyering  <jim@meyering.net>
34407
34408         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34409
34410         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34411
34412 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34413             Bruno Haible  <bruno@clisp.org>
34414
34415         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34416         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
34417
34418 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34419
34420         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
34421         netbsd*-gnu*.  Suggested by Robert Millan.
34422
34423 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34424
34425         * modules/group-member: Depend on stdbool.
34426
34427 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34428
34429         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
34430
34431 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34432
34433         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
34434         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
34435         after the 'gnu' in these cases.  This fixes some bugs in the
34436         previous change, and is based on suggestions by Robert Millan.
34437
34438 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34439
34440         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
34441         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
34442         no longer needed.
34443         * lib/quotearg.c (quotearg_n_options): Use it.
34444         * lib/group-member.c: Include <stdbool.h>.
34445         (free_group_info): Arg is now const *; don't free arg.
34446         (get_group_info): Now returns bool and accepts struct group_info *,
34447         rather than returning a malloc'ed struct group_info *.
34448         All uses changed.  Check for overflow in internal size calculation.
34449
34450         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
34451         rather than xmalloc/xrealloc.
34452         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
34453         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
34454         conformance bug: the old code used a pointer after freeing the
34455         storage that it addressed.
34456         * lib/hash.c (hash_initialize): Simplify the code by using
34457         xalloc_oversized rather than doing it by hand.
34458         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
34459         the buffer preserved.  Use free and xmalloc instead.
34460         * lib/quotearg.c (quotearg_n_options): Likewise.
34461         Use a simpler test for size overflow.  Don't use xalloc_oversized
34462         because unsigned int might be wider than size_t (!); this suggests
34463         that we should switch from unsigned int to size_t for slot numbers.
34464
34465 2003-10-28  Paul Eggert  <eggert@twinsun.com>
34466
34467         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
34468         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
34469         NetBSD kernels.  Requested by Richard Stallman.
34470
34471 2003-10-27  Paul Eggert  <eggert@twinsun.com>
34472
34473         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
34474         to allocate the returned structure.  Do not allocate a subarray,
34475         as x2nrealloc will do that.
34476         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
34477         instead of xnrealloc.
34478         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
34479
34480 2003-10-27  Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/stdbool_.h: Better support for BeOS.
34483
34484 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34485
34486         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
34487         now uses inline.
34488
34489 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34490
34491         * lib/xalloc.h (xalloc_oversized): New static inline function, for
34492         callers that want to do their own size-overflow checking.  Include
34493         <stdbool.h>, since xalloc_oversized returns bool.
34494         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
34495         to use xalloc_oversized.
34496
34497         Add two functions x2realloc, x2nrealloc, for programs that grow
34498         arrays dynamically by doubling their sizes.
34499         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
34500         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
34501         New functions.
34502
34503         Port to C99 semantics for 'inline' of external functions.
34504         Bug reported by Bruno Haible.
34505         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
34506         with the old contents of xnmalloc.
34507         (xnmalloc, xmalloc): Use it.
34508         (xnrealloc_inline): New static inline function,
34509         with the old contents of xnrealloc.
34510         (xnrealloc, xrealloc): Use it.
34511
34512         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
34513         that.
34514
34515 2003-10-26  Karl Berry  <karl@gnu.org>
34516
34517         * config/srclist.txt (COPYING.DOC): no longer available from
34518         /gd/gnuorg; don't know where the ultimate source is.
34519
34520 2003-10-25  Paul Eggert  <eggert@twinsun.com>
34521
34522         Fix several address-calculation bugs in the hash modules,
34523         plus some minor code cleanup.
34524
34525         * lib/hash.h: Include <stdbool.h>, for bool.
34526         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
34527         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
34528         hash_get_n_entries, hash_get_max_bucket_length,
34529         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
34530         hash_rehash): Use size_t rather than unsigned.
34531         * lib/hash.c (struct hash_table, hash_get_n_buckets,
34532         hash_get_n_buckets_used, hash_get_n_entries,
34533         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
34534         hash_get_entries, hash_do_for_each, hash_string, is_prime,
34535         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
34536         Likewise.
34537         (SIZE_MAX): Define if not defined.
34538         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
34539         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
34540         hash_print):
34541         Use const * when possible.
34542         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
34543         (check_tuning): Fix bug: if tuning parameters were very close to
34544         0 or 1, rounding errors could have caused subscript violations.
34545         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
34546         (hash_initialize): Add 'fail:' label
34547         to free table and return NULL, and use it to simplify code.
34548         Use calloc rather than clearing the storage ourself.
34549         (hash_initialize, hash_rehash): Check for arithmetic overflow in
34550         buffer size calculations.
34551         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
34552         Include <stddef.h>, for size_t.
34553         * lib/hash-pjw.c (hash_pjw): Likewise.
34554         Switch to method described by Bruno Haible.
34555         Include <limits.h>, for CHAR_BIT.
34556         (SIZE_BITS): New macro.
34557
34558 2003-10-23  Paul Eggert  <eggert@twinsun.com>
34559
34560         * m4/getline.m4 (AM_FUNC_GETLINE):
34561         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
34562         hosts.  Problem reported by Derek Robert Price in
34563         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
34564         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
34565         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
34566
34567 2003-10-21  Paul Eggert  <eggert@twinsun.com>
34568
34569         * lib/getndelim2.c (getndelim2): When size calculation overflows,
34570         ceiling the allocation at NMAX bytes rather than silently
34571         discarding input bytes before NMAX is reached.  This makes
34572         a difference only if NMAX exceeds SIZE_MAX / 2.
34573
34574         * lib/obstack.c: Merge from glibc.
34575         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
34576         Add libc_hidden_def (_obstack_newchunk).
34577         (_obstack_free) [! defined _LIBC]: Remove.
34578         [defined _LIBC]: Make a strong alias from obstack_free, rather than
34579         a clone of the function body.
34580         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
34581         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
34582
34583         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
34584         glibc.
34585         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
34586         arg to memcpy.
34587
34588         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
34589         (obstack_ptr_grow_fast, obstack_int_grow_fast):
34590         Don't use lvalue casts, as GCC plans to remove support for them
34591         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
34592         was also present in the non-GCC version, indicating that this
34593         code had always been buggy and had never been widely used.
34594         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
34595         Use the fast variant of each macro, rather than copying the
34596         definiens of the fast variant; that way, we'll be more likely to
34597         catch future bugs in the fast variants.
34598
34599 2003-10-20  Bruno Haible  <bruno@clisp.org>
34600
34601         * modules/wait-process: New file.
34602         * MODULES.html.sh (func_all_modules): Add wait-process.
34603
34604 2003-10-20  Bruno Haible  <bruno@clisp.org>
34605
34606         * m4/wait-process.m4: New file.
34607
34608 2003-10-20  Bruno Haible  <bruno@clisp.org>
34609
34610         * lib/wait-process.h: New file, from GNU gettext.
34611         * lib/wait-process.c: New file, from GNU gettext.
34612
34613 2003-10-19  Jim Meyering  <jim@meyering.net>
34614
34615         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
34616         HPUX 10.20.
34617
34618 2003-10-18  Karl Berry  <karl@gnu.org>
34619
34620         * config/config.guess: update from config.
34621
34622 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34623
34624         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
34625         (getgroups): First arg is int, not size_t.
34626         Don't let 'free' mangle errno.
34627
34628 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34629
34630         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
34631
34632 2003-10-16  Karl Berry  <karl@gnu.org>
34633
34634         * config/config.{guess,sub}: update from config.
34635
34636 2003-10-16  Jim Meyering  <jim@meyering.net>
34637
34638         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
34639         memcpy.
34640
34641 2003-10-15  Paul Eggert  <eggert@twinsun.com>
34642
34643         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
34644         (SIZE_MAX): Remove.
34645         (new_exclude, add_exclude_file): Initial size no longer needs to
34646         be a power of 2.
34647         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
34648         our own address arithmetic overflow checking.
34649
34650         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
34651         (fnmatch): Do not alloca more than 2000 wide characters;
34652         instead, use malloc for large buffers.
34653         Check for address arithmetic overflow, and return -1
34654         with errno set to ENOMEM in that case.
34655         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
34656         (NEW_PATTERN): Do not alloca more than 8000 bytes;
34657         instead, return -1.  Check for address arithmetic overflow.
34658
34659 2003-10-14  Paul Eggert  <eggert@twinsun.com>
34660
34661         Handle invalid suffixes and overflow independently, so that
34662         callers can treat them independently as needed.  Fix some bugs in
34663         suffix handling, e.g., "100k@" was not diagnosed as an invalid
34664         suffix for a human-readable blocksize.  The major caller-visible
34665         change is the addition of a new
34666         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
34667         that both overflow and suffix chars were found.
34668
34669         * lib/human.c (humblock): Don't check separately for invalid suffix
34670         char; that is xstrtoumax's job (now that its bug is fixed).
34671         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
34672         INTMAX_MAX]: New macros.
34673         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
34674         TYPE_MAXIMUM): New macros.
34675         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
34676         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
34677         if overflow occurs, as it's what __strtol does and it's more useful
34678         in practice.
34679         (__xstrtol): If __strtol reports some error other than ERANGE,
34680         reflect it to the caller as LONGINT_INVALID.  If it reports
34681         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
34682         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
34683         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
34684         value.
34685         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
34686         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
34687         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
34688         [defined UINTMAX_MAX]: New macros.
34689
34690 2003-10-14  Bruno Haible  <bruno@clisp.org>
34691
34692         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34693
34694 2003-10-14  Bruno Haible  <bruno@clisp.org>
34695
34696         * m4/sig_atomic_t: New file, from GNU gettext.
34697         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34698
34699 2003-10-14  Bruno Haible  <bruno@clisp.org>
34700
34701         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34702         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34703         Also use volatile where needed.
34704
34705 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34706
34707         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
34708         Change maintainer from Bruno Haible to 'all'.
34709
34710 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34711
34712         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
34713
34714 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34715
34716         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
34717         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
34718         and define in terms of the other primitives.
34719         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
34720         (SIZE_MAX): Define if not already defined.
34721         (array_size_overflow): New function.
34722         (xalloc_die): Abort instead of exiting if 'error' returns.
34723         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
34724         (xmalloc, xrealloc): Use them.
34725         (xcalloc): Check for address arithmetic overflow.
34726         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
34727         a bit faster than strcpy.
34728
34729 2003-10-10  Simon Josefsson  <jas@extundo.com>
34730
34731         * modules/argp (Depends-on): Add restrict and strcase.
34732
34733 2003-10-10  Simon Josefsson  <jas@extundo.com>
34734
34735         * m4/argp.m4: Add AC_C_INLINE.
34736
34737 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34738
34739         Merge getpass from libc, plus a few fixes.
34740
34741         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
34742         Include <stdbool.h>.
34743         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
34744         __fsetlocking to empty.
34745         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
34746         do include <bits/libc-lock.h>.
34747         Do not include <fcntl.h>; not needed.
34748         [_LIBC]: Include <wchar.h>.
34749         (NOTCANCEL_MODE): New macro.
34750         (flockfile, funlockfile) [_LIBC]: New macros.
34751         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
34752         [!_LIBC]: New macros.
34753         (call_fclose): New function.
34754         (getpass): Use it.  Save tty stream separately; this simplifies the
34755         code and makes it more reliable if stdin happens to equal stdout.
34756         Invoke __fsetlocking on tty.
34757         Handle thread cancellation if needed.
34758         Namespace cleanup (use __tcgetattr, __getline).
34759         Use bool for Booleans.
34760         [USE_IN_LIBIO]: Handle wide streams.
34761         [!_LIBC]: Unconditionally do the fseek, since we don't know what
34762         stream might go where.
34763
34764         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
34765         doesn't have to include <stdio.h> before us.
34766         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
34767         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
34768         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
34769         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
34770         if not declared, so that we can use getpass.c code from libc without
34771         rewriting it.
34772         (flockfile, ftrylockfile, funlockfile): New macros.
34773
34774 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34775
34776         * modules/getpass: Depend on stdbool.
34777
34778 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34779
34780         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
34781
34782 2003-10-07  Karl Berry  <karl@gnu.org>
34783
34784         * config/config.{guess,sub}: update from config.
34785
34786 2003-10-06  Jim Meyering  <jim@meyering.net>
34787             Bruno Haible  <bruno@clisp.org>
34788
34789         This lets translators provide better translations for the
34790         "Written by ..." part of --version output.
34791         * lib/version-etc.h: Include stdarg.h.
34792         (version_etc_copyright): Declare as readonly.
34793         (version_etc): Make this function variadic with a NULL-terminated list
34794         of author name strings.
34795         (version_etc_va): New declaration.
34796         * lib/version-etc.c: Include stdarg.h, stdlib.h.
34797         (version_etc_copyright): Declare as readonly.
34798         (version_etc_va): New function. Provide a different translatable string
34799         for each possible number of authors < 10. Abbreviate when there are 10
34800         authors or more.
34801         (version_etc): Make this function variadic. Call version_etc_va.
34802         Suggestion from Gary V. Vaughan.
34803
34804         * lib/long-options.h (parse_long_options): Change prototype: the
34805         authors string is moved to the end and becomes variadic.
34806         * lib/long-options.c: Include stdarg.h.
34807         (parse_long_options): Make this function variadic, too.
34808         Call version_etc_va, not version_etc.
34809
34810 2003-10-06  Bruno Haible  <bruno@clisp.org>
34811
34812         * modules/version-etc-2: Remove file.
34813         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
34814
34815 2003-10-06  Bruno Haible  <bruno@clisp.org>
34816
34817         * modules/fatal-signal: New file.
34818         * MODULES.html.sh (func_all_modules): Add fatal-signal.
34819
34820 2003-10-06  Bruno Haible  <bruno@clisp.org>
34821
34822         * m4/fatal-signal.m4: New file.
34823         * m4/signalblocking.m4: New file, from GNU gettext.
34824
34825 2003-10-06  Bruno Haible  <bruno@clisp.org>
34826
34827         * lib/version-etc-2.h: Remove file.
34828         * lib/version-etc-2.c: Remove file.
34829
34830 2003-10-06  Bruno Haible  <bruno@clisp.org>
34831
34832         * lib/fatal-signal.h: New file, from GNU gettext.
34833         * lib/fatal-signal.c: New file, from GNU gettext.
34834
34835 2003-10-05  Paul Eggert  <eggert@twinsun.com>
34836
34837         * README: Rework advice for preventing empty .o files.
34838         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
34839         not <sys/types.h>.
34840
34841 2003-10-04  Karl Berry  <karl@gnu.org>
34842
34843         * lib/argp*: update from libc.
34844
34845 2003-10-04  Karl Berry  <karl@gnu.org>
34846
34847         * config/config.{guess,sub}: update from config.
34848
34849 2003-10-02  Bruno Haible  <bruno@clisp.org>
34850
34851         * modules/lchown (Include): Add lchown.h.
34852         * modules/time_r (Include): Use "..." syntax.
34853         * modules/xgetdomainname (Include): Add xgetdomainname.h.
34854
34855 2003-10-01  Simon Josefsson  <jas@extundo.com>
34856
34857         * MODULES.html.sh (func_all_modules): Move gethostname from section
34858         'based on' to section 'lacking' POSIX:2001.
34859
34860 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
34861
34862         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
34863         to output mode on the same stream.
34864
34865 2003-09-29  Paul Eggert  <eggert@twinsun.com>
34866
34867         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
34868         Fix arg typo in previous patch.
34869
34870 2003-09-28  Jim Meyering  <jim@meyering.net>
34871
34872         * lib/error.c: Correct cpp indentation.
34873
34874 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34875
34876         * modules/free: New file.
34877
34878 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34879
34880         * m4/free.m4: New file.
34881
34882 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34883
34884         * lib/minmax.h (MIN, MAX)
34885         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
34886         Omit the special code that used __typeof__, since we worry that
34887         it could be more trouble than it's worth.  See:
34888         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
34889         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
34890
34891         * lib/free.c: New file.
34892
34893 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
34894
34895         Trivial fixes to Makefile.am parts of module listings.
34896         * modules/strstr: Append strstr.h to lib_SOURCES.
34897         * modules/strcase: Likewise, for strcase.h.
34898
34899 2003-09-27  Karl Berry  <karl@gnu.org>
34900
34901         * config/mkinstalldirs: update from automake.
34902
34903 2003-09-26  Paul Eggert  <eggert@twinsun.com>
34904
34905         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
34906         (error_tail): Do not loop, reallocating temporary buffer, since
34907         the output cannot contain more wide characters than the input
34908         contains bytes, the size must be big enough already.  This avoids
34909         one potential size overflow calculation.  Check for size overflow
34910         when calculating temporary buffer size.  Free temporary buffer
34911         when done, if it was allocated with malloc; this plugs a memory
34912         leak.  Remove casts from void * to pointers, that are no longer
34913         needed now that we're assuming C89 or better.
34914
34915         Merge error changes from glibc.
34916
34917         * lib/error.c, error.h: Update copyright notice header to match glibc.
34918         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
34919         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
34920         Disable cancellation while printing error.
34921         * lib/error.h: Prepend __ to parameter names.
34922
34923 2003-09-26  Jim Meyering  <jim@meyering.net>
34924
34925         * lib/error.c (error_tail): Move some declarations
34926         into inner scope where the local variables are used.
34927
34928 2003-09-26  Bruno Haible  <bruno@clisp.org>
34929
34930         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
34931         stpncpy().
34932         Don't define stpncpy through config.h; it's now done through stpncpy.h.
34933
34934 2003-09-26  Bruno Haible  <bruno@clisp.org>
34935
34936         * lib/stpncpy.h (gnu_stpncpy): New declaration.
34937         (stpncpy): Define as alias for gnu_stpncpy.
34938         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
34939
34940 2003-09-25  Simon Josefsson  <jas@extundo.com>
34941
34942         * lib/xgetdomainname.h: New file.
34943         * lib/xgetdomainname.c: New file.
34944
34945 2003-09-25  Simon Josefsson  <jas@extundo.com>
34946             Bruno Haible  <bruno@clisp.org>
34947
34948         * modules/getdomainname: New file.
34949         * modules/xgetdomainname: New file.
34950         * MODULES.html.sh (func_all_modules): Add getdomainname,
34951         xgetdomainname.
34952
34953 2003-09-25  Simon Josefsson  <jas@extundo.com>
34954             Bruno Haible  <bruno@clisp.org>
34955
34956         * m4/getdomainname.m4: New file.
34957
34958 2003-09-25  Simon Josefsson  <jas@extundo.com>
34959             Bruno Haible  <bruno@clisp.org>
34960
34961         * lib/getdomainname.h: New file.
34962         * lib/getdomainname.c: New file.
34963
34964 2003-09-25  Karl Berry  <karl@gnu.org>
34965
34966         * lib/argp-fmtstream.c, argp-help.c: update from libc.
34967
34968 2003-09-25  Karl Berry  <karl@gnu.org>
34969
34970         * config/install-sh: update from automake.
34971
34972 2003-09-25  Bruno Haible  <bruno@clisp.org>
34973
34974         * modules/version-etc-2: New file, from modules/version-etc with
34975         modifications.
34976         * MODULES.html.sh (func_all_modules): Add version-etc-2.
34977
34978 2003-09-25  Bruno Haible  <bruno@clisp.org>
34979
34980         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
34981         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
34982
34983 2003-09-24  Simon Josefsson  <jas@extundo.com>
34984
34985         * modules/xgethostname: Add xgethostname.h.
34986
34987 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34988
34989         * lib/linebuffer.c (freebuffer): Don't free the argument, just
34990         the buffer associated with the argument.  Bug reported by
34991         Simon Josefsson.
34992
34993 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34994
34995         * README: Document assumptions that 'int' is at least 32 bits
34996         wide, that integer arithmetic is 2's complement without overflow,
34997         that there are no holes in integer values, that adding sizes of
34998         two nonoverlapping objects can't overflow, and that all-bits-zero
34999         yields scalar zero.  Fix spelling and capitalization typos.
35000
35001 2003-09-19  Karl Berry  <karl@gnu.org>
35002
35003         * lib/argp.h: update from libc.
35004
35005 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35006
35007         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
35008         to avoid spurious warnings like "AC_RUN_IFELSE was called before
35009         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
35010
35011 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35012
35013         * gnulib-tool: Use "test -h", not "test -L", for portability
35014         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
35015         (tags_regexp): Remove, since \| doesn't conform to POSIX.
35016         (sed_extract_prog): Issue s commands one-by-one, rather than
35017         using \| in one s command.
35018
35019 2003-09-16  Paul Eggert  <eggert@twinsun.com>
35020
35021         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
35022         input error, instead of returning NULL the next time we are called
35023         (and therefore losing track of errno).
35024
35025 2003-09-16  Bruno Haible  <bruno@clisp.org>
35026
35027         * gnulib-tool (func_create_testdir): Warn about duplicated
35028         dependencies.
35029
35030 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35031
35032         * modules/argmatch, modules/fatal, modules/obstack,
35033         modules/xalloc, modules/xgethostname: Sort dependencies by
35034         importance, not alphabetically.
35035
35036 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35037
35038         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
35039         fails, so that the caller gets the proper errno.
35040
35041         * lib/readutmp.c (read_utmp): Likewise.
35042         Check for fstat error.  Close stream and free storage
35043         when failing.
35044
35045 2003-09-14  Karl Berry  <karl@gnu.org>
35046
35047         * config/srclist.txt (strdup.c): disable for c89 changes.
35048
35049 2003-09-14  Jim Meyering  <jim@meyering.net>
35050
35051         * lib/getloadavg.c: Correct cpp indentation.
35052         * lib/strdup.c: Likewise.
35053         * lib/vasnprintf.c: Likewise.
35054
35055 2003-09-14  Bruno Haible  <bruno@clisp.org>
35056
35057         * modules/fwriteerror: New file.
35058         * MODULES.html.sh (func_all_modules): Add fwriteerror.
35059
35060 2003-09-14  Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/fwriteerror.h: New file.
35063         * lib/fwriteerror.c: New file.
35064
35065 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35066
35067         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
35068         modules/xgethostname, modules/xalloc: Depend on exit.
35069
35070 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35071
35072         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
35073
35074         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
35075         and AC_MINIX, too, so that their extensions are available.
35076
35077         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
35078         This macro has been superseded by gl_BACKUPFILE.
35079
35080         More patches to assume C89 or better.
35081
35082         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
35083
35084         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
35085         unconditionally.
35086         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
35087         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
35088         Include <string.h>, <stdlib.h> unconditionally.
35089         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
35090         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
35091         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
35092         headers or for string.h.
35093         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
35094         or strtoul.
35095
35096         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
35097         headers.
35098         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
35099         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35100         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
35101         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
35102         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35103         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
35104         memcpy, memset.
35105         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
35106         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
35107         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
35108         strtol.
35109         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
35110         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
35111         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
35112         strtoul.
35113
35114 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35115
35116         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
35117         * lib/obstack.c [!defined _LIBC]: Likewise.
35118         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
35119         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
35120         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
35121
35122         More changes to assume C89 or better.
35123
35124         * lib/error.c (error_tail): Assume vprintf.
35125
35126         * lib/argmatch.c (getenv): Remove decl.
35127         * lib/progreloc.c (get_full_program_name): Define via prototype.
35128         * lib/setenv.c (clearenv): Likewise.
35129         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
35130         needed.
35131         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
35132         (malloc, memcpy): Remove decls.
35133         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
35134         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
35135         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35136         (memcpy): Remove macro.
35137         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
35138         (__P): Remove.  All uses removed.
35139         (PTR): Remove.  All uses changed to void *.
35140         (CHAR_BIT, NULL): Remove.
35141         (spaces, zeros, memset_space, memset_zero)
35142         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
35143         Remove.
35144         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
35145         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
35146         Define with prototype.
35147         Remove now-unnecessary prototype decl.
35148         (extra_args_spec): Assume ANSI C.  All uses changed.
35149         (extra_args_spec_iso): Remove.
35150         (my_strftime, emacs_strftimeu): Define via prototype.
35151         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
35152         unconditionally.
35153         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
35154         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
35155         (strtoul, strtol): Remove decls.
35156         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
35157         LONG_MAX): Remove.
35158         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35159         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
35160         (LOCALE_PARAM_PROTO): New macro.
35161         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
35162         (INTERNAL (strtol), strtol): Define with a prototype.
35163         (PARAMS): Remove.  All uses removed.
35164         * lib/tempname.c: Include <string.h> unconditionally.
35165         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
35166         * lib/xgethostname.c (main): Define with a prototype.
35167         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
35168         Include <stdlib.h> unconditionally.
35169         (calloc, malloc, realloc, free): Remove decls.
35170         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
35171         Include <stdlib.h> unconditionally.  Sort include file names.
35172         (strtod): Remove.
35173         (xstrtod): Define with a prototype.
35174         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
35175         (strtol, strtoul): Remove decls.
35176
35177 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35178
35179         More patches to assume C89 or better.
35180         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
35181         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
35182         string.h, memchr, STDC_HEADERS.
35183
35184 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35185
35186         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
35187         Include <stdlib.h>, <string.h> unconditionally.
35188         Remove now-unnecessary cast to char *.
35189         * lib/strnlen.c: Include <string.h> unconditionally.
35190         * lib/yesno.c (yesno): Define with a prototype.
35191
35192 2003-09-11  Bruno Haible  <bruno@clisp.org>
35193
35194         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
35195
35196 2003-09-10  Jim Meyering  <jim@meyering.net>
35197
35198         * lib/error.c: Correct indentation of cpp directives.
35199
35200 2003-09-10  Bruno Haible  <bruno@clisp.org>
35201
35202         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
35203         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
35204         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
35205         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
35206         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
35207         <stdlib.h> and <string.h> checks.
35208         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
35209         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
35210
35211 2003-09-10  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/strcspn.c: Include <string.h> unconditionally.
35214         * lib/strpbrk.c: Include <string.h> unconditionally.
35215         * lib/strstr.c: Include <string.h> unconditionally.
35216         * lib/unicodeio.c: Include <string.h> unconditionally.
35217         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
35218         * lib/unsetenv.c: Likewise.
35219         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
35220         * lib/yesno.c: Include <stdlib.h> unconditionally.
35221         (rpmatch): Add prototype.
35222
35223 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35224
35225         More patches to assume C89 or better.
35226         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
35227         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
35228         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
35229         or for string.h.
35230         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
35231         stdlib.h.
35232         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
35233         C headers.
35234         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
35235         string.h.
35236         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
35237         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
35238         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
35239         or for string.h.
35240         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
35241         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
35242         C headers.
35243         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
35244         memcpy.
35245         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
35246         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
35247         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
35248         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
35249         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
35250         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
35251         string.h, free.
35252         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
35253         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
35254         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
35255         C headers, or for string.h.
35256         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
35257         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
35258         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
35259         headers, memory.h, stdlib.h, string.h, strings.h.
35260         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
35261         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
35262         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
35263         strchr.
35264         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
35265         headers, memory.h, string.h.
35266         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
35267         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
35268         free.
35269         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
35270         headers.
35271         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
35272         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
35273         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
35274         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
35275         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
35276
35277 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35278
35279         More K&R removal.
35280
35281         * lib/acosl.c (main): Use a prototype.
35282         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35283         tanl.c: Likewise.
35284
35285         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35286
35287         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35288         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35289         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35290         with a prototype.
35291         * lib/getopt.c (const): Remove macro.
35292         Include <string.h> unconditionally.
35293         (my_index): Remove; all uses changed to strchr.
35294         (strlen): Remove decl.
35295         (exchange): Remove forward decl; no longer needed.
35296         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35297         Define with prototype.
35298         * lib/getopt1.c (const): Remove macro.
35299         (getopt_long, getopt_long_only, main): Define with prototype.
35300
35301         * lib/getugroups.c: Include <string.h> unconditionally.
35302
35303         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35304         (getusershell, setusershell, endusershell, readname, main):
35305         Define with prototypes.
35306
35307         * lib/group-member.c: Include group-member.h first.
35308         Include <stdlib.h> unconditionally.
35309
35310         * lib/hard-locale.c: Include hard-locale.h first.
35311         Include <stdlib.h>, <string.h> unconditionally.
35312
35313         * lib/hash.c (free, malloc): Remove decls.
35314         Include <stdlib.h> unconditionally.
35315
35316         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35317         (getenv): Do not declare.
35318
35319         * lib/idcache.c: Include <string.h> unconditionally.
35320
35321         * lib/long-options.c: Include long-options.h first, to test interface.
35322         Include <stdlib.h> unconditionally.
35323
35324         * lib/makepath.c: Include makepath.h first, to test interface.
35325         Include <stdlib.h> and <string.h> unconditionally.
35326
35327         * lib/linebuffer.c: Include <stdlib.h>.
35328         (free): Remove decl.
35329
35330         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35331         stddef.h. rpl_malloc returns void *, not char *.
35332         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35333         prototype.
35334
35335         * lib/md5.h: Include <limits.h> unconditionally.
35336         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35337         (__P): Remove; all uses removed.
35338         * lib/md5.c: Include "md5.h" first.
35339         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35340         md5_buffer, md5_process_bytes, md5_process_block):
35341         Define with prototypes.
35342         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35343         * lib/sha.c: Include "sha.h" first.
35344         Include <stdlib.h>, <string.h> unconditionally.
35345
35346         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35347         * lib/memcmp.c (__ptr_t): Likewise.
35348         * lib/memrchr.c (__ptr_t): Likewise.
35349         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35350         Include <string.h> unconditionally.
35351         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35352         * lib/memchr.c: Include <stdlib.h> unconditionally.
35353         * lib/memchr.c (LONG_MAX): Remove.
35354         * lib/memrchr.c (LONG_MAX): Likewise.
35355         * lib/memchr.c (__memchr): Define via a prototype.
35356         * lib/memrchr.c (__memrchr): Likewise.
35357         * lib/memcmp.c (__P): Remove, and remove all uses.
35358         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35359         Remove forward decls; no longer needed.
35360         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35361         Use types required by C89 in prototype.
35362
35363         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35364         * lib/savedir.c: Likewise.
35365         * lib/mkdir.c (free): Remove decl.
35366         * lib/rmdir.c (rmdir): Define with a prototype.
35367         * lib/savedir.c: Include savedir.h first, to test interface.
35368
35369         * lib/mktime.c (STDC_HEADERS): Remove.
35370         Include <stdlib.h>, <string.h> unconditionally.
35371
35372         * lib/modechange.c: Include <stdlib.h> unconditionally.
35373         (malloc): Remove decl.
35374
35375         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35376         (free): Remove decl.
35377
35378         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
35379         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
35380         (This type really should be intptr_t, but that's a C99ism.)
35381         (_obstack_memcpy): Remove: all uses changed to memcpy.
35382         Include <string.h> unconditionally.
35383         (struct obstack): Assume __STDC__ for types of members
35384         chunkfun, freefun, extra_arg.
35385         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
35386         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
35387         obstack_begin, obstack_specify_allocation,
35388         obstack_specify_allocation_with_arg, obstack_chunkfun,
35389         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
35390         Remove unprototyped decls and the macros that use them.
35391         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
35392         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
35393         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
35394         (defined __STDC__ && __STDC__)]:
35395         Remove nonprototyped code.
35396         Include <stdlib.h> unconditionally.
35397         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35398         _obstack_allocated_p, _obstack_free, obstack_free,
35399         _obstack_memory_used, print_and_abort):
35400         Define using prototypes.
35401         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35402         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35403         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35404         obstack_next_free, obstack_object_size, obstack_room) [0]:
35405         Remove unused, unprototyped code.
35406
35407         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35408
35409         * lib/physmem.c (physmem_total, physmem_available, main): Define
35410         with prototypes.
35411
35412         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35413         (main): Define with a prototype.
35414
35415         * lib/posixver.c (getenv): Remove decl.
35416
35417         * lib/putenv.c (malloc): Returns void *, not char *.
35418         Include <string.h> unconditionally.
35419         (strchr, memcpy, NULL): Do not define.
35420
35421         * lib/readtokens.c: Include readtokens.h first, to test interface.
35422         Include <stdlib.h>, <string.h> unconditionally.
35423         (init_tokenbuffer): Define with a prototype.
35424
35425         * lib/regex.c (PARAMS): Remove.  All uses removed.
35426         All uses of _RE_ARGS removed, too.
35427         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35428         unconditionally.
35429         (bzero): Assume memset exists.
35430         (memcmp, memcpy, NULL): Remove.
35431         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
35432         char, or assignments to local vars of type signed char.
35433         (init_syntax_once, PREFIX(extract_number_and_incr),
35434         PREFIX(print_partial_compiled_pattern),
35435         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
35436         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
35437         PREFIX(regex_grow_registers), PREFIX(regex_compile),
35438         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
35439         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
35440         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
35441         wcs_compile_range, byte_compile_range, truncate_wchar,
35442         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
35443         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
35444         count_mbs_length, wcs_re_match_2_internal,
35445         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
35446         PREFIX(alt_match_null_string_p),
35447         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
35448         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
35449         regfree, PREFIX(extract_number)): Define with prototype.  Remove
35450         now-unnecessary declaration, if any.
35451         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
35452         regcomp, regexec):
35453         Remove now-unnecessary casts among pointer types.
35454         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
35455
35456         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
35457         (free): Remove decl.
35458
35459         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
35460
35461         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
35462         (free): Remove decl.
35463
35464         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
35465         * lib/xgetcwd.c: Likewise.
35466
35467         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
35468         (free): Remove decl.
35469
35470         * lib/strchrnul.c (strchrnul): Define with a prototype.
35471         Fix bug: c_in was not converted to char before searching.
35472
35473         The following changes are not K&R related:
35474
35475         * lib/group-member.h: Include <sys/types.h>, so that this file is
35476         self-contained.
35477         * lib/makepath.h: Likewise.
35478
35479         * lib/getusershell.c (readname, default_index, line_size, readname):
35480         Use size_t, not int, for sizes.
35481         (readname): If the size overflows, report an error instead of
35482         looping forever.
35483
35484 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35485
35486         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
35487         libc.
35488
35489 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35490
35491         * README: New section: portability guidelines.
35492
35493 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35494
35495         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
35496         C89 spec.
35497
35498 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35499
35500         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
35501
35502 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35503
35504         Assume C89 or better; remove K&R cruft.
35505         A few of these changes were first proposed by Derek Robert Price
35506         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
35507
35508         * lib/addext.c: Include <string.h> unconditionally.
35509         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
35510         Don't declare getenv or malloc.
35511
35512         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
35513         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
35514         (NULL): Remove.
35515         (find_stack_direction, alloca): Use prototypes.
35516
35517         * lib/atexit.c (atexit): Define using a prototype.
35518
35519         * lib/basename.c, dirname.c, stripslash.c:
35520         Include <string.h> unconditionally.
35521
35522         * lib/bcopy.c: Include <stddef.h>.
35523         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
35524
35525         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
35526
35527         * lib/error.h (error, error_at_line, error_print_progname)
35528         [! (defined (__STDC__) && __STDC__)]: Remove decls.
35529         * lib/error.c: Include error.h first, to check interface.
35530         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35531         (VA_START): Remove; all uses changeed to va_start.
35532         (exit, strerror): Remove decls.
35533         (error_print_progname): Prototype uncondionally.
35534         Don't include <errno.h>; no longer needed.
35535         (private_strerror): Remove.
35536         (error_tail): Always define.
35537         (error, error_at_line): Assume C89 or better; always use prototypes.
35538         * lib/fatal.c: Include "fatal.h" first, to test interface.
35539         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35540         (VA_START): Remove; all uses changed to va_start.
35541         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
35542         this case.
35543         (exit): Remove decl.
35544         (fatal): Prototype unconditionally.  Assume va_start works.
35545         Abort at end, to pacify gcc.
35546
35547         * lib/euidaccess.c (main): Define with a prototype.
35548
35549         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
35550
35551         * lib/exitfail.c: Include <stdlib.h> unconditionally.
35552
35553         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
35554         prototypes.
35555         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
35556         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
35557         (getenv): Remove decl.
35558         (fnmatch): Define using a prototype.
35559         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
35560         (FCT): Define using a prototype.
35561
35562         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
35563
35564         * lib/gethostname.c: Include <stddef.h>.
35565         (gethostname): Define with prototype.  Length is size_t, not int.
35566
35567 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35568
35569         Assume C89 or better; remove K&R cruft.
35570         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
35571         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
35572         string.h, getenv, malloc.
35573         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
35574         headers.
35575         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
35576         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
35577         do not check for strerror.
35578         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
35579         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
35580         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
35581         do not check for doprnt or vprintf.
35582         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
35583         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
35584
35585 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35586
35587         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
35588         getversion.c should have been removed then, but was accidentally
35589         preserved.
35590
35591         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
35592         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
35593
35594 2003-09-08  Karl Berry  <karl@gnu.org>
35595
35596         * config/config.sub, config.guess, srclistvars.sh: update from savannah
35597                 config, forget about prep.
35598
35599         * config/depcomp, missing: update from automake.
35600
35601 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35602
35603         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
35604         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35605
35606 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35607
35608         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
35609         copy_tm_result.  Bug reported by Simon Josefsson in
35610         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35611
35612 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35613
35614         * m4/time_r.m4: New file.
35615         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
35616         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
35617         is. Check for timegm declaration.
35618         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
35619         Do not check for gmtime_r.
35620         Replace mktime if __mktime_internal does not exist and if mktime
35621         hasn't been replaced already.
35622
35623 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35624
35625         * lib/time_r.c, lib/time_r.h: New files.
35626
35627         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
35628         __localtime_r.
35629         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
35630         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
35631
35632         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
35633         __gmtime_r.
35634         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
35635         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
35636         Include <time_r.h>.
35637
35638         * lib/timegm.c: Switch to glibc implementation, with the following
35639         changes:
35640         [defined HAVE_CONFIG_H]: Include <config.h>.
35641         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
35642         (__mktime_internal) [!defined _LIBC]: New decl.
35643         (__gmtime_r) [!defined _LIBC]: New macro and function.
35644         (timegm): Use a prototype, since gnulib assumes C89.
35645         Do not bother declaring tmp to be const, as it's not really usefu.
35646         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
35647         (timegm): Declare only if HAVE_DECL_TIMEGM.
35648
35649 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35650
35651         * MODULES.html.sh (func_all_modules): Add time_r.
35652         * modules/time_r: New file.
35653         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
35654         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
35655
35656 2003-09-03  Paul Eggert  <eggert@twinsun.com>
35657
35658         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
35659         Bug reported by Lute Kamstra in
35660         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
35661
35662         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
35663         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
35664         course with correspondingly smaller numbers for tomorrow and
35665         yesterday.  From Tadayoshi Funaba.  Originally installed into
35666         sh-utils on 1999-08-07, but the patch got lost (I guess during the
35667         coreutils merge?).
35668
35669 2003-08-31  Simon Josefsson  <jas@extundo.com>
35670
35671         * modules/timegm: New file.
35672         * MODULES.html.sh (func_all_modules): Add timegm.
35673
35674 2003-08-31  Simon Josefsson  <jas@extundo.com>
35675
35676         * m4/timegm.m4: New file.
35677
35678 2003-08-31  Simon Josefsson  <jas@extundo.com>
35679
35680         * lib/timegm.h: New file.
35681         * lib/timegm.c: New file.  Based on
35682         wget-1.8.2/src/http.c:mktime_from_utc.
35683
35684 2003-08-31  Karl Berry  <karl@gnu.org>
35685
35686         * lib/argp.h: update from libc.
35687
35688 2003-08-28  Bruno Haible  <bruno@clisp.org>
35689
35690         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35691         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35692         followed by '#define fnmatch fnmatch_posix' gives an error.
35693
35694 2003-08-28  Bruno Haible  <bruno@clisp.org>
35695
35696         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35697         warning on QNX, which defines O_BINARY to 000000.
35698
35699 2003-08-27  Jim Meyering  <jim@meyering.net>
35700
35701         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35702         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35703         would fail after 32.  Reported by Danny Levinson.  Details here:
35704         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
35705
35706 2003-08-24  Bruno Haible  <bruno@clisp.org>
35707
35708         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
35709         MSVC7 <stdio.h> is included later.
35710
35711 2003-08-22  Simon Josefsson  <jas@extundo.com>
35712
35713         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
35714
35715 2003-08-20  Karl Berry  <karl@gnu.org>
35716
35717         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
35718
35719 2003-08-20  Bruno Haible  <bruno@clisp.org>
35720
35721         * modules/progname: New file.
35722         * MODULES.html.sh (func_all_modules): Add progname.
35723
35724 2003-08-20  Bruno Haible  <bruno@clisp.org>
35725
35726         * lib/progname.h: New file, from GNU gettext.
35727         * lib/progname.c: New file, from GNU gettext.
35728         * lib/progreloc.c: New file, from GNU gettext.
35729
35730 2003-08-19  Jim Meyering  <jim@meyering.net>
35731
35732         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
35733         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
35734
35735 2003-08-19  Bruno Haible  <bruno@clisp.org>
35736
35737         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
35738         more.
35739
35740 2003-08-19  Bruno Haible  <bruno@clisp.org>
35741
35742         * lib/xstrdup.c: Assume <string.h> exists.
35743
35744 2003-08-18  Paul Eggert  <eggert@twinsun.com>
35745
35746         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
35747         in makefile rules.
35748
35749 2003-08-18  Jim Meyering  <jim@meyering.net>
35750
35751         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
35752         * m4/lib-ld.m4: Likewise.
35753
35754 2003-08-18  Jim Meyering  <jim@meyering.net>
35755
35756         * lib/setenv.h: Indent nested cpp directive.
35757         * lib/vasnprintf.c: Remove trailing blanks.
35758
35759 2003-08-17  Simon Josefsson  <jas@extundo.com>
35760
35761         * modules/xstrndup: New file.
35762         * MODULES.html.sh (func_all_modules): Add xstrndup.
35763
35764 2003-08-17  Simon Josefsson  <jas@extundo.com>
35765
35766         * modules/argp: Fix autoconf macro name. Add more dependencies.
35767
35768 2003-08-17  Simon Josefsson  <jas@extundo.com>
35769
35770         * m4/xstrndup.m4: New file.
35771
35772 2003-08-17  Simon Josefsson  <jas@extundo.com>
35773
35774         * m4/argp.m4: New file.
35775
35776 2003-08-17  Simon Josefsson  <jas@extundo.com>
35777             Bruno Haible  <bruno@clisp.org>
35778
35779         * lib/xstrndup.h: New file.
35780         * lib/xstrndup.c: New file.
35781
35782 2003-08-17  Bruno Haible  <bruno@clisp.org>
35783
35784         * modules/strndup (Files, Include): Add lib/strndup.h.
35785
35786 2003-08-17  Bruno Haible  <bruno@clisp.org>
35787
35788         * modules/euidaccess (Files): Add lib/euidaccess.h.
35789
35790 2003-08-17  Bruno Haible  <bruno@clisp.org>
35791
35792         * lib/strndup.h: New file.
35793
35794 2003-08-17  Bruno Haible  <bruno@clisp.org>
35795
35796         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
35797         like AC_GNU_SOURCE.
35798         * modules/extensions (configure.ac): Comment out the invocation of
35799         gl_USE_SYSTEM_EXTENSIONS.
35800
35801 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35802
35803         Merges from coreutils, etc.
35804         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
35805         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
35806         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
35807         fixing a typo.
35808         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
35809         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
35810
35811 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35812
35813         Document merge from coreutils.
35814         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
35815         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
35816         * modules/utime: Add m4/utimes-null.m4.
35817
35818 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35819
35820         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
35821         space, undoing this 2003-08-12 change:
35822         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35823
35824 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35825
35826         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
35827         strtoul.c from libc, undoing this 2003-08-12 change:
35828         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35829
35830 2003-08-16  Jim Meyering  <jim@meyering.net>
35831
35832         Merges from coreutils.
35833         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
35834         prefix.  Adjust cache variables similarly.  Create 500 rather than
35835         just 300 files, to exercise bug on Darwin6.5, too.
35836         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
35837         $missing_dir.
35838         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
35839         AM_SYS_POSIX_TERMIOS.
35840         Reported by mkc@mathdogs.com.
35841         Also change use of $am_cv_sys_posix_termios
35842         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
35843         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
35844         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
35845         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
35846         in /proc/mounts until it finds one with matching device number.  This
35847         is unnecessary when the FILE argument *is* a mount point.  No stat call
35848         is necessary in that case.  So, disable the statvfs-testing code on
35849         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
35850         as RedHat bug# 84846.
35851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35852         to 1MB, so as not to render systems with no stack size limit (e.g.,
35853         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35854         Include <unistd.h>.  On some systems,
35855         it is required for the definition of _SC_PAGESIZE.
35856
35857 2003-08-16  Jim Meyering  <jim@meyering.net>
35858
35859         Merge from coreutils.
35860         * lib/xstrtoimax.c: #else #if -> #elif.
35861         * lib/xstrtoumax.c: Likewise.
35862
35863 2003-08-16  Jim Meyering  <jim@meyering.net>
35864
35865         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
35866         * m4/utimes.m4: Removed.
35867         * m4/utimes-null.m4: Renamed from utimes.m4.
35868
35869         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35870         to 1MB, so as not to render systems with no stack size limit (e.g.,
35871         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35872         Include <unistd.h>.  On some systems,
35873         it is required for the definition of _SC_PAGESIZE.
35874
35875 2003-08-16  Jim Meyering  <jim@meyering.net>
35876         and Paul Eggert  <eggert@cs.ucla.edu>
35877
35878         Merges from coreutils, etc.
35879
35880         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
35881         using the latest version from cvs.  This avoids problems with #line
35882         directives using a vendor (Sun) compiler.
35883         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
35884         Don't set GETGROUPS_LIB here; now it's
35885         done via getgroups.m4's wrapper function.
35886         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
35887         rather than just in sh-util/configure.in, so that the
35888         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
35889         same.
35890         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
35891         AC_FUNC_GETLOADAVG where to find getloadavg.c.
35892         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
35893         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
35894         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
35895         Remove code that is now done by the newly-required macros.
35896         Append $(EXEEXT) to DF_PROG.
35897         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
35898         Do not invoke or require the following here,
35899         since prereq.m4 or some gnulib .m4 now does this for us:
35900         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
35901         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
35902         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
35903         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
35904         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
35905         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
35906         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
35907         AC_FUNC_OBSTACK.
35908         Do not replace the following functions, as this is now the job
35909         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
35910         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
35911         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
35912         atexit getpass, strdup, getpagesize.
35913         Replace 'raise'.
35914         Do not check for the following functions, as this is now the job
35915         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
35916         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
35917         setregid.
35918         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
35919         Check for sys/sysctl.h.
35920         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
35921         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
35922         of checking for ssize_t ourselves.
35923
35924         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
35925         Require every macro that gnulib/modules/* suggests for us.
35926         (jm_PREREQ_ADDEXT): New macro.
35927         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
35928         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
35929
35930         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
35931         (gl_PHYSMEM): Use it.
35932         Also check for `table' function.
35933         Check for new headers and functions.
35934         Add check for sys/sysmp.h.
35935         With suggestions from Kaveh Ghazi.
35936         Ignore headers that are present but cannot be compiled.  This
35937         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
35938         C 5.4.
35939
35940 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35941
35942         Document merge from coreutils.
35943         * modules/userspec: Depend on posixver.
35944         * modules/strftime: Depend on tzset.
35945
35946 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35947
35948         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
35949         rather than tab, after '#' in shell-script copyright notices.
35950         Suggested by Bruno Haible.
35951
35952 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35953
35954         * config/srclist-update: Use three spaces, rather than tab, after '#'
35955         in shell-script copyright notices.  Suggested by Bruno Haible.
35956         Remove unnecessary parenthesization in regular expression.
35957
35958 2003-08-15  Jim Meyering  <jim@meyering.net>
35959
35960         Merge from coreutils.
35961         * lib/xgethostname.c: Include <stdlib.h>.
35962         (xghostname): Don't exit for anything other than memory-related
35963         failure; just return NULL.
35964         * lib/userspec.c: Include "posixver.h".
35965         (parse_user_spec): Accept `.' as a separator only
35966         in pre-POSIX-200112 mode.
35967         * lib/strtoimax.c: Use #elif rather than #else #if.
35968         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
35969         Remove function, now that we can rely on a working tzset function.
35970         [!_LIBC]: Ensure that the required autoconf test has been run.
35971         [!defined _NL_CURRENT && HAVE_STRFTIME]:
35972         Use underlying_strftime for %r.
35973         * lib/sha.c: Merge in some clean-up and optimization changes from
35974         glibc.
35975         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
35976         Ensure that it is a multiple of 64.
35977         Rearrange loop exit tests so as to avoid performing an
35978         additional fread after encountering an error or EOF.
35979         * lib/realloc.c: Update copyright date.
35980
35981 2003-08-15  Jim Meyering  <jim@meyering.net>
35982         and Paul Eggert  <eggert@twinsun.com>
35983
35984         Merge from coreutils.
35985         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
35986         member but strut utmpx does not.  Needed for AIX 4.3.3.
35987         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
35988
35989 2003-08-15  Jim Meyering  <jim@meyering.net>
35990         and Paul Eggert  <eggert@cs.ucla.edu>
35991
35992         Merges from coreutils, etc.
35993         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
35994         Require gl_FUNC_TZSET_CLOBBER.
35995         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
35996         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
35997         members.
35998
35999 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36000
36001         Help the merge from coreutils.
36002         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
36003         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
36004         * m4/tzset.m4: Use it too.
36005
36006 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36007
36008         * modules/tzset: New file.
36009
36010 2003-08-14  Jim Meyering  <jim@meyering.net>
36011
36012         Merges from coreutils.
36013         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
36014         variable names, rather than @FNMATCH_H@.
36015         * modules/alloca: Likewise for $(ALLOCA_H).
36016
36017         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
36018         the three copies of the literal target, `fnmatch.h'.
36019         * modules/alloca (alloca.h): Likewise.
36020
36021 2003-08-14  Jim Meyering  <jim@meyering.net>
36022
36023         Merge from coreutils.
36024         * m4/tzset.m4: New file.
36025         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
36026         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
36027         otherwise, AIX 5.1 systems would end up using the latter.
36028         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
36029         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
36030         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
36031         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
36032
36033 2003-08-14  Jim Meyering  <jim@meyering.net>
36034
36035         Merge from coreutils.
36036         * lib/obstack.h: Whitespace changes.
36037         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
36038         and xcalloc return values.
36039         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
36040         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
36041         hang on OSF/1 5.1 for DIR on both local and remote file systems.
36042         Reported by (and fix confirmed by) Nelson H. F. Beebe.
36043         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36044         error from mntctl.
36045         Use mntctl's return value to drive the entry-processing loop, since
36046         we can't rely on the value of the vmt_length member in the last
36047         entry.  On some systems doing so could result in exhausting
36048         virtual memory.  Based in part on a patch from Mike Jetzer.
36049
36050 2003-08-14  Jim Meyering  <jim@meyering.net>
36051         and Paul Eggert  <eggert@twinsun.com>
36052
36053         Merges from coreutils, plus other fixes.
36054         * lib/physmem.c: Merge in portability changes from gcc/libiberty
36055         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
36056         for credits and details.  Thanks to Kaveh Ghazi for helping
36057         to keep these files in sync.
36058         (ARRAY_SIZE): Define it.
36059         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
36060         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
36061         (memcasecmp): Don't assume size_t fits in unsigned int.
36062         Remove casts and duplicate code.
36063         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
36064         (memcpy): Remove definition.
36065         Merge in some clean-up and optimization changes from glibc.
36066         [BLOCKSIZE]: Move definition to top of file.
36067         Ensure that it is a multiple of 64.
36068         Rearrange loop exit tests so as to avoid performing an
36069         additional fread after encountering an error or EOF.
36070         * lib/md5.h (md5_uintptr): Define.
36071         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
36072         return to the initial working directory.  Preserve errno
36073         for caller.
36074         * lib/idcache.c: Include "xalloc.h".
36075         (xmalloc, xrealloc): Remove decls.
36076         (getuser): Remove casts no longer required in C89.
36077         * lib/human.c: Include stdio.h, for sprintf.
36078         * lib/group-member.c: Include "xalloc.h".
36079         (xmalloc, xrealloc): Remove decls.
36080         (get_group_info): Remove casts no longer required in C89.
36081         * lib/getusershell.c (readname): Remove casts no longer required in
36082         C89.
36083         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
36084         * lib/getline.c: Whitespace fix, from coreutils.
36085
36086 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36087
36088         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
36089         Check for isascii.
36090
36091         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36092         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36093         Undo previous (whitespace-only) change.
36094
36095 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36096
36097         * lib/exclude.c: Include <ctype.h>
36098         (IN_CTYPE_DOMAIN): New macro.
36099         (is_space): New fn.
36100         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
36101         and empty lines.
36102
36103         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36104         Undo previous (whitespace-only) change.
36105
36106 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36107
36108         * config/srclist-update: Change update back to the old behavior,
36109         leaving whitespace alone.  Use one 'sed' command rather than a
36110         pipeline.
36111         (fixlicense): Now a variable, not a function.
36112         (remove_trailing_blanks): Remove.
36113         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
36114         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36115         Undo previous (whitespace-only) change.
36116
36117 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36118
36119         Merge from coreutils.
36120         * modules/euidaccess: Add lib_SOURCES, include for new
36121         file euidaccess.h
36122
36123 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36124
36125         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36126         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36127         Normalize leading white space and remove trailing white space.
36128
36129         Merge from coreutils
36130         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
36131
36132         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
36133         0.12.1.  These files are now being upgraded automatically by
36134         ../config/srclist-update.
36135
36136 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36137
36138         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36139         Normalize leading white space and remove trailing white space.
36140         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
36141         notice, as per ../config/srclist-update.
36142
36143         Merge from coreutils.
36144         * lib/euidaccess.h: New file.
36145         * lib/euidaccess.c: Include it.
36146         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
36147         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
36148         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
36149
36150 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36151
36152         * config/srclist-update: Add copyright notice.
36153         (remove_id_lines, remove_trailing_blanks): New constants.
36154         (fixfile): Use them to normalize spacing a bit in copied files.
36155         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36156         Normalize leading white space and remove trailing white space.
36157
36158         * config/texinfo.tex: Sync with texinfo.
36159
36160         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
36161         strtoul.c from libc, to merge coreutils whitespace changes.
36162
36163         * config/srclist.txt: Get the following m4 files from gettext:
36164         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
36165         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
36166         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
36167         wint_t.m4.
36168
36169 2003-08-12  Karl Berry  <karl@gnu.org>
36170
36171         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
36172         been made.
36173
36174 2003-08-11  Paul Eggert  <eggert@twinsun.com>
36175
36176         * modules/gnu-source, m4/gnu-source.m4:
36177         Remove; we're assuming Autoconf 2.54 or later now.
36178         Suggested by Bruno Haible.
36179         * MODULES.html.sh (func_all_modules): Remove gnu-source.
36180
36181 2003-08-11  Bruno Haible  <bruno@clisp.org>
36182
36183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
36184
36185 2003-08-11  Bruno Haible  <bruno@clisp.org>
36186
36187         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
36188         (vasnprintf): Use it instead of wcslen.
36189
36190 2003-08-11  Bruno Haible  <bruno@clisp.org>
36191
36192         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
36193         value to ensure that _Bool promotes to int. Use #define for _Bool when
36194         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
36195
36196 2003-08-10  Karl Berry  <karl@gnu.org>
36197
36198         * lib/regex.h: update from libc (whitespace fix).
36199
36200 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36201
36202         Merge some files from coreutils.  These changes were
36203         originally made by Jim Meyering.
36204         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
36205         many older Unixes require this.
36206         * lib/alloca.c (alloca): Remove cast to argument of free;
36207         no longer needed in C89.
36208         * lib/alloca_.h, regex.h: Fix white space to match
36209         what GNU indent does.
36210
36211 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36212
36213         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
36214         apparently Emacs's Unicode mode got confused before my 2003-08-05
36215         checkin.
36216
36217 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36218
36219         * m4/extensions.m4: New file.
36220         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
36221         Require gl_USE_SYSTEM_EXTENSIONS.
36222         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
36223         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
36224
36225 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36226
36227         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
36228         * modules/extensions, modules/gnu-source: New files.
36229         * modules/timespec, modules/unlocked-io: Depend on extensions.
36230
36231 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36232
36233         * modules/restrict: New file.
36234         * MODULES.html.sh (func_all_modules): Add restrict.
36235         * modules/regex: Depend on restrict.
36236
36237 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36238
36239         * m4/restrict.m4: New file.
36240         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
36241
36242 2003-08-07  Bruno Haible  <bruno@clisp.org>
36243
36244         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
36245         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
36246
36247 2003-08-07  Bruno Haible  <bruno@clisp.org>
36248
36249         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
36250         makes the module 'getndelim2' compatible with the module 'getline'.
36251
36252 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36253
36254         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
36255         byte with "\201" to avoid glitches when editing that source file
36256         with multi-gnome-terminal.
36257
36258 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36259
36260         * lib/bumpalloc.h: Remove.
36261
36262 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36263
36264         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
36265         * modules/bumpalloc: Remove.
36266
36267 2003-08-04  Paul Eggert  <eggert@twinsun.com>
36268
36269         * lib/getloadavg.c: Change copyright notice and spacing to conform to
36270         GNU coding style.
36271
36272         Merge from coreutils.
36273         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
36274         1. From glibc.
36275         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
36276         from Karl Berry, implemented by Jim Meyering.
36277         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
36278         from Dmitry V. Levin.
36279         Remove anachronistic cast of xrealloc.
36280         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36281         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36282         type. Otherwise, it wouldn't compile with at least /bin/cc on
36283         ymp-cray-unicos9.0.2.X.
36284         Combine two mostly-identical uses of alloca into one.
36285         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36286
36287 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36288
36289         [From Emacs.]
36290
36291         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36292         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36293         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36294         obsolete NLIST_NAME_UNION.
36295         [__GNU__]: Undef BSD and FSCALE.
36296         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36297
36298 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36299
36300         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36301         an enum type, so that it's guaranteed to promote to int.  See:
36302         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36303
36304 2003-08-03  Karl Berry  <karl@gnu.org>
36305
36306         * config/depcomp: update from automake.
36307
36308 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36309
36310         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36311         (strerror): Don't assume that a printable int fits in 14 bytes.
36312
36313 2003-07-31  Bruno Haible  <bruno@clisp.org>
36314
36315         * modules/getpass-gnu: New file.
36316         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36317
36318 2003-07-31  Bruno Haible  <bruno@clisp.org>
36319
36320         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36321
36322 2003-07-24  Karl Berry  <karl@gnu.org>
36323
36324         * config/missing: update from automake.
36325
36326 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36327             Bruno Haible  <bruno@clisp.org>
36328
36329         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36330         * lib/getline.c (getline, getdelim): Likewise.
36331         Remove _GNU_SOURCE define; now it's defined in config.h through
36332         m4/getline.m4.
36333
36334 2003-07-23  Karl Berry  <karl@gnu.org>
36335
36336         * config/config.sub: update from prep.
36337
36338 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36339
36340         * modules/xalloc (Depends-on): Add exitfail.
36341         * modules/xmemcoll: Likewise.
36342
36343 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36344
36345         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36346         over-parenthesization in macros.
36347
36348         Sync with coreutils.
36349
36350         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36351         required by C99.
36352
36353         Use `exit_failure' for xalloc and xmemcoll instead of their own
36354         private exit-failure variables.
36355         * lib/xalloc.h (xalloc_exit_failure): Remove.
36356         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36357         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36358         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36359         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36360         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36361
36362 2003-07-20  Jim Meyering  <jim@meyering.net>
36363
36364         * modules/closeout (Depends-on): Add exitfail.
36365         Suggestion from Bruno Haible.
36366
36367 2003-07-19  Karl Berry  <karl@gnu.org>
36368
36369         * config/config.sub: update from prep.
36370
36371 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36372
36373         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36374         Remove.
36375         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36376         to test that it can stand by itself.  Include "exitfail.h".
36377         Clients should set exit_failure instead.
36378         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
36379
36380 2003-07-18  Bruno Haible  <bruno@clisp.org>
36381
36382         * modules/getndelim2: New file.
36383         * modules/getline: Share files with module getndelim2.
36384         * modules/getnline: Depend on getndelim2 instead of sharing files with
36385         it. Add getnline.c to lib_SOURCES.
36386         * MODULES.html.sh (func_all_modules): Add getndelim2.
36387
36388 2003-07-18  Bruno Haible  <bruno@clisp.org>
36389
36390         * m4/getndelim2.m4: New file.
36391         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
36392         invoke gl_PREREQ_GETNDELIM2.
36393         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
36394         gl_PREREQ_GETNDELIM2.
36395         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
36396         gl_GETNDELIM2.
36397
36398 2003-07-18  Bruno Haible  <bruno@clisp.org>
36399
36400         * lib/getndelim2.h: New file.
36401         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36402         getndelim2.h.
36403         (getndelim2): Make non-static. Change return type to ssize_t.
36404         * lib/getline.h: Change argument names.
36405         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36406         * lib/getnline.c: Include getndelim2.h.
36407
36408 2003-07-18  Andreas Schwab  <schwab@suse.de>
36409
36410         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36411
36412 2003-07-17  Karl Berry  <karl@gnu.org>
36413
36414         * config/config.sub: update from prep.
36415
36416 2003-07-17  Bruno Haible  <bruno@clisp.org>
36417
36418         * modules/getnline: New file.
36419         * modules/getline: Add lib/getndelim2.c to source file list.
36420         * MODULES.html.sh (func_all_modules): Add getnline.
36421
36422 2003-07-17  Bruno Haible  <bruno@clisp.org>
36423
36424         * m4/getnline.m4: New file.
36425
36426 2003-07-17  Bruno Haible  <bruno@clisp.org>
36427
36428         * m4/Makefile.am.in: Remove file.
36429         * m4/Makefile.am: Remove file.
36430         * m4/Makefile.in: Remove file.
36431
36432 2003-07-17  Bruno Haible  <bruno@clisp.org>
36433
36434         * lib/getnline.h: New file.
36435         * lib/getnline.c: New file.
36436         * lib/getndelim2.c: New file, extracted from getline.c.
36437         (getndelim2): Renamed from getdelim2, with added nmax argument.
36438         * lib/getline.c: Include getndelim2.c.
36439         (getdelim2): Moved out to getndelim2.c.
36440         (getline, getdelim): Update.
36441
36442 2003-07-17  Bruno Haible  <bruno@clisp.org>
36443
36444         * lib/Makefile.am: Remove file.
36445         * lib/Makefile.in: Remove file.
36446
36447 2003-07-17  Bruno Haible  <bruno@clisp.org>
36448
36449         * configure.in: Remove file.
36450         * Makefile.in: Remove file.
36451
36452 2003-07-17  Bruno Haible  <bruno@clisp.org>
36453
36454         * MODULES.html.sh: Put the </BODY> right before </HTML>.
36455
36456 2003-07-16  Karl Berry  <karl@gnu.org>
36457
36458         * config/srclist-update: was running fixlicense twice, which caused
36459                 texinfo.tex to be nullified for some reason.  Simplify,
36460                 $gplsrc is no longer needed as far as I can see?
36461
36462 2003-07-16  Jim Meyering  <jim@meyering.net>
36463
36464         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
36465
36466 2003-07-15  Paul Eggert  <eggert@twinsun.com>
36467
36468         * config/srclist.txt: Get the following files from gettext-runtime/intl
36469         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
36470         ref-del.sin.  From Bruno Haible.
36471         * config/srclist-update (fixfile): Change grep pattern again, since the
36472         previous fix didn't work (there was another trailing $).  Use
36473         '[$]' to escape the $s.
36474
36475 2003-07-15  Karl Berry  <karl@gnu.org>
36476
36477         * lib/vasnprintf.c: update from gettext.
36478
36479 2003-07-15  Karl Berry  <karl@gnu.org>
36480
36481         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
36482         gets expanded when surrounded by '$'.
36483
36484 2003-07-15  Jim Meyering  <jim@meyering.net>
36485
36486         * modules/save-cwd: Don't depend on error.  From Derek Price.
36487
36488 2003-07-15  Jim Meyering  <jim@meyering.net>
36489
36490         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
36491
36492 2003-07-14  Simon Josefsson  <jas@extundo.com>
36493
36494         * modules/mempcpy: New file.
36495         * MODULES.html.sh (func_all_modules): Add mempcpy.
36496
36497 2003-07-14  Simon Josefsson  <jas@extundo.com>
36498
36499         * m4/mempcpy.m4: New file.
36500
36501 2003-07-14  Simon Josefsson  <jas@extundo.com>
36502
36503         * lib/mempcpy.h: New file.
36504         * lib/mempcpy.c: New file.
36505
36506 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36507
36508         * modules/getdate, modules/posixtm: Depend on mktime.
36509
36510 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36511
36512         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
36513         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
36514         unicodeio.c, unicodeio.h, unlocked-io.h:
36515         Switch from LGPL to GPL.
36516
36517 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36518
36519         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
36520         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
36521         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
36522         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
36523         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
36524         updated automatically by ../config/srclist-update.  This changes
36525         their license from LPGL to GPL.
36526
36527 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36528
36529         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
36530         assumed to refer to the root of the most recent stable gettext version.
36531         * config/srclistvars.sh: Add defaults for eggert.
36532         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
36533         Match "This program" as well as "The program".  This is needed
36534         for gettext.
36535
36536 2003-07-14  Jim Meyering  <jim@meyering.net>
36537
36538         Don't emit diagnostics.  Let callers do that.
36539         * lib/save-cwd.c: Don't include "error.h".
36540         (save_cwd): Don't call error.  Ensure that errno is valid
36541         when returning nonzero.
36542
36543         * lib/save-cwd.h (restore_cwd): Update prototype.
36544         * lib/save-cwd.c (restore_cwd): Remove two parameters.
36545         Simplify.  Don't call error upon failure.  Let callers do that.
36546         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
36547         when auditing is enabled.  But don't bother updating the #if.
36548
36549 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
36550
36551         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
36552         it breaks C++ compilation.
36553         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
36554
36555 2003-07-10  Simon Josefsson  <jas@extundo.com>
36556
36557         * modules/strchrnul (Makefile.am): Add strchrnul.h.
36558
36559 2003-07-10  Jim Meyering  <jim@meyering.net>
36560
36561         * m4/clock_time.m4: Remove trailing blank.
36562         * m4/intmax_t.m4: Likewise.
36563
36564 2003-07-10  Jim Meyering  <jim@meyering.net>
36565
36566         * lib/vasnprintf.c: Remove trailing blanks.
36567         Make cpp indentation consistent.
36568
36569 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36570
36571         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
36572         posixver.c, strftime.c, strnlen.c, strverscmp.c:
36573         Switch from LGPL to GPL.
36574
36575 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36576
36577         * config/srclist.txt: Sort sublists.  Add
36578         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
36579         that differ from gnulib for one reason or another; we'd like this list
36580         to be smaller but for now let's document what we have.
36581
36582 2003-07-08  Paul Eggert  <eggert@twinsun.com>
36583
36584         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
36585         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
36586         and sweeter "eval x=$x".
36587         * config/srclist.txt: Get lib/argp* from glibc.
36588
36589 2003-07-07  Paul Eggert  <eggert@twinsun.com>
36590
36591         * lib/mktime.c: Fix some boundary cases and remove need for floating
36592         point.
36593
36594         Issue a compile-time diagnostic if time_t is floating point, or if
36595         two's complement arithmetic is not in effect, or if arithmetic
36596         right shift does not propagate the sign.  These assumptions were
36597         all in the original code but they weren't checked.
36598
36599         (TIME_T_MIDPOINT, verify): New macros.
36600         (__isleap): Remove; it has integer overflow problems.
36601         (leapyear): New function, without those problems.
36602         (ydhms_tm_diff): Remove; splitting into two parts.
36603         (ydhms_diff): New function, containing the arithmetic part of
36604         the old ydhms_tm_diff function.  Issue a compile-time
36605         diagnostic if we are not using C99 integer division.
36606         Avoid casts when possible.
36607         (guess_time_tm): New function, containing the checking part of
36608         the old ydhms_tm_diff function.  Return the new value, rather than
36609         the difference between it and the old.  Accept a new argument T
36610         so that *T specifies the old value.  Check for overflow in the result.
36611
36612         (__mktime_internal): Use a time_t offset, not a long int offset.
36613         This undoes the 2003-06-04 change, which is no longer needed now
36614         that we have better overflow checking.
36615         (localtime_offset): Likewise.
36616
36617         (__mktime_internal): Avoid harmful overflow on hosts where time_t
36618         and long are 64-bit but int is only 32-bit.
36619         (ydhms_diff): Use long int to store year1 and yday1.
36620         Issue a compile-time diagnostic if long int is not wide enough.
36621
36622         (__mktime_internal): Use long int to store adjusted year and yday.
36623         Use plain C rather than preprocessor commands, if that doesn't
36624         affect efficiency.
36625         Check for overflow (and try to repair) after each probe
36626         rather than checking only at the very end.  This avoids some bugs
36627         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
36628         does not equal GMT offset at maximum time).
36629         Use integer to check for overflow rather than floating point; this
36630         is more portable to non-IEEE hosts, and is a tad faster.
36631         When we detect that we are oscillating between two values,
36632         don't check whether tm_isdst has the requested value, since
36633         we already know the answer.  When tm_isdst has the wrong value,
36634         use a different heuristic to find the right one, based on the
36635         extreme values actually observed in practice in tz2003a,
36636         rather than the (overly optimistic) "previous 3 calendar quarters".
36637
36638         (not_equal_tm, print_tm, check_result): Use "const T" rather than
36639         "T const" to accommodate glibc style.
36640         (check_result): Use less-confusing report format.  "long" -> "long int.
36641         (main): Likewise.
36642         Don't loop if the iteration overflows time_t.
36643         Allow a negative step in the iteration.
36644
36645 2003-07-06  Karl Berry  <karl@gnu.org>
36646
36647         * config/depcomp: update from automake.
36648         * config/config.sub: update from prep.
36649
36650 2003-07-03  Karl Berry  <karl@gnu.org>
36651
36652         * config/config.guess: update from prep.
36653
36654 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36655
36656         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
36657         xreadlink.c now includes it unconditionally.
36658
36659 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36660
36661         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
36662         having it depend on HAVE_SYS_TYPES_H.
36663
36664 2003-07-01  Bruno Haible  <bruno@clisp.org>
36665
36666         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
36667         <sys/types.h> should be sufficient.
36668         Reported by Paul Eggert.
36669
36670 2003-06-26  Karl Berry  <karl@gnu.org>
36671
36672         * config/depcomp: update from automake.
36673
36674 2003-06-26  Bruno Haible  <bruno@clisp.org>
36675
36676         * modules/human: Depend on module stdbool.
36677
36678 2003-06-25  Bruno Haible  <bruno@clisp.org>
36679
36680         * modules/readlink: New file.
36681         * modules/xreadlink: Depend on it.
36682         * MODULES.html.sh (func_all_modules): Add readlink.
36683
36684 2003-06-25  Bruno Haible  <bruno@clisp.org>
36685
36686         * m4/readlink.m4: New file.
36687
36688 2003-06-25  Bruno Haible  <bruno@clisp.org>
36689
36690         * lib/readlink.c: New file.
36691
36692 2003-06-22  Karl Berry  <karl@gnu.org>
36693
36694         * config/srclist.txt: update mkinstalldirs from automake.
36695         * config/mkinstalldirs: update.
36696
36697 2003-06-22  Bruno Haible  <bruno@clisp.org>
36698
36699         Portability to mingw32.
36700         * m4/ssize_t.m4: New file, from GNU gettext.
36701         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36702         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36703
36704 2003-06-22  Bruno Haible  <bruno@clisp.org>
36705
36706         * modules/safe-read: Add m4/ssize_t.m4.
36707         * modules/xreadlink: Add m4/ssize_t.m4.
36708
36709 2003-06-20  Bruno Haible  <bruno@clisp.org>
36710
36711         Assume C89, so PARAMS isn't needed.
36712         * lib/unicodeio.h (PARAMS): Remove.
36713         * lib/unicodeio.c: Don't use PARAMS.
36714
36715 2003-06-18  Karl Berry  <karl@gnu.org>
36716
36717         * config/config.{guess,sub}: update from prep.
36718
36719 2003-06-18  Jim Meyering  <jim@meyering.net>
36720
36721         Merge changes from coreutils.
36722         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
36723         Remove explicit declarations of xmalloc and realloc.
36724         Include xalloc.h.
36725         (read_utmp): Remove anachronistic cast of xmalloc.
36726
36727 2003-06-17  Paul Eggert  <eggert@twinsun.com>
36728
36729         Assume C89, so PARAMS isn't needed.
36730         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
36731         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
36732         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
36733         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
36734         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
36735         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
36736         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
36737         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
36738         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
36739         lib/xstrtod.h, lib/xstrtol.h: Likewise.
36740         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
36741         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
36742         no longer needed. Anyway, config.h should always be included before any
36743         other file.
36744
36745 2003-06-11  Simon Josefsson  <jas@extundo.com>
36746
36747         * modules/sysexits: New file.
36748         * MODULES.html.sh (func_all_modules): Add sysexits.
36749
36750 2003-06-11  Simon Josefsson  <jas@extundo.com>
36751
36752         * lib/sysexit_.h: New file.
36753
36754 2003-06-11  Derek Price  <derek@ximbiot.com>
36755
36756         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
36757         necessary.
36758
36759 2003-06-11  Bruno Haible  <bruno@clisp.org>
36760
36761         * m4/sysexits.m4: New file.
36762
36763 2003-06-10  Simon Josefsson  <jas@extundo.com>
36764
36765         * lib/argp.h: New file, from glibc.
36766         * lib/argp-ba.c: New file, from glibc.
36767         * lib/argp-eexst.c: New file, from glibc.
36768         * lib/argp-fmtstream.c: New file, from glibc.
36769         * lib/argp-fmtstream.h: New file, from glibc.
36770         * lib/argp-fs-xinl.c: New file, from glibc.
36771         * lib/argp-help.c: New file, from glibc.
36772         * lib/argp-namefrob.h: New file, from glibc.
36773         * lib/argp-parse.c: New file, from glibc.
36774         * lib/argp-pv.c: New file, from glibc.
36775         * lib/argp-pvh.c: New file, from glibc.
36776         * lib/argp-xinl.c: New file, from glibc.
36777
36778 2003-06-10  Simon Josefsson  <jas@extundo.com>
36779
36780         * modules/strchrnul: New file.
36781
36782 2003-06-10  Simon Josefsson  <jas@extundo.com>
36783
36784         * modules/argp: New file.
36785
36786 2003-06-10  Simon Josefsson  <jas@extundo.com>
36787
36788         * m4/strchrnul.m4: New file.
36789
36790 2003-06-10  Simon Josefsson  <jas@extundo.com>
36791
36792         * lib/strchrnul.h: New file.
36793         * lib/strchrnul.c: New file.
36794
36795 2003-06-10  Bruno Haible  <bruno@clisp.org>
36796
36797         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
36798
36799 2003-06-07  Karl Berry  <karl@gnu.org>
36800
36801         * config/config.{guess,sub}: update from prep.
36802
36803 2003-06-07  Jim Meyering  <jim@meyering.net>
36804
36805         * modules/strtod: Use $(...) notation, not @...@ for
36806         AC_REPLACE'd variables.
36807         * modules/localcharset: Likewise.
36808
36809 2003-06-07  Jim Meyering  <jim@meyering.net>
36810
36811         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
36812         in place of my name in the copyright comment.
36813         Remove definition and uses of __P.
36814
36815         From coreutils.
36816         * lib/stat.c: Don't declare xmalloc explicitly.
36817         Instead, include "xalloc.h".
36818         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
36819         xrealloc, and xcalloc return values.
36820         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
36821         Improve comment.
36822         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
36823
36824 2003-06-07  Bruno Haible  <bruno@clisp.org>
36825
36826         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
36827         avoid AC_CONFIG_LINKS.
36828         * modules/fnmatch (Makefile.am): Use explicit creation rule for
36829         fnmatch.h, to avoid AC_CONFIG_LINKS.
36830         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
36831
36832 2003-06-07  Bruno Haible  <bruno@clisp.org>
36833
36834         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
36835         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
36836         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36837         directory.
36838         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
36839         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36840         directory.
36841
36842 2003-06-06  Jim Meyering  <jim@meyering.net>
36843
36844         Merge from coreutils.
36845         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
36846         Consolidate declarations and initializations of *_base* locals.
36847
36848         Merge from coreutils.
36849         This avoids a core dump on systems without GNU putenv,
36850         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
36851         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
36852         (unsetenv): New static function, from GNU libc.
36853         (rpl_putenv): Use it.
36854
36855         * lib/modechange.c: Remove trailing blanks.
36856
36857         Merge from coreutils.
36858         * lib/fsusage.c: Remove declaration of statfs.
36859         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
36860
36861         * lib/posixtm.c: Include <stdbool.h> unconditionally.
36862
36863 2003-06-06  Jim Meyering  <jim@meyering.net>
36864
36865         * lib/stdbool_.h: Renamed from stdbool.h.in.
36866
36867 2003-06-06  Jim Meyering  <jim@meyering.net>
36868             Bruno Haible  <bruno@clisp.org>
36869
36870         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
36871         Adjust Makefile.am snippet not to redirect directly to target.
36872         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
36873
36874 2003-06-05  Paul Eggert  <eggert@twinsun.com>
36875
36876         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
36877         mismatch, look in future quarters as well as past.  This fixes a
36878         bug when processing fall-backwards gaps immediately after a long
36879         period of daylight-saving time.
36880
36881         * lib/mktime.c: Assume freestanding C89 or better.
36882         (HAVE_LIMITS_H): Remove.  Assume it's 1.
36883         (__P): Remove; not used.
36884         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
36885         (mktime, not_equal_tm, print_tm, check_result,
36886         main): Use prototypes.  Use const * where appropriate.
36887         (main): Fix typo in testing code that uncovered by above changes.
36888         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
36889
36890 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36891
36892         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
36893         locale.h, localeconv.  This merges changes from coreutils.
36894
36895         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
36896         It can be removed after the next Autoconf is released.
36897         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
36898         needed.
36899
36900 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36901
36902         * lib/mktime.c: Fix Debian bug 177940
36903         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
36904         (localtime_offset): Now long int, not time_t, because we want it
36905         to be guaranteed to be signed.  All uses changed.
36906         (__mktime_internal): If overflow would occur when adding offset,
36907         don't add it.
36908
36909         Merge 'human' changes from coreutils.  Rewrite to support
36910         locale-specific notations like thousands separators.
36911         * lib/human.c: Simplify authorship notice.
36912         Include human.h immediately after config.h.
36913         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
36914         <limits.h>: Do not include, since human.h does.
36915         (SIZE_MAX, UINTMAX_MAX): New macros.
36916         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
36917         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
36918         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
36919         (power_letter): Renamed from suffixes.
36920         (generate_suffix_backwards): Remove.
36921         (adjust_value): Now takes int style (because of human.h changes)
36922         and long double value (for greater precision on some platforms).
36923         (group_number): New function.
36924         (human_readable): Use it.  Use integer options, not enum.
36925         Put the options before the sizes in the arg list.
36926         Support all the new options.
36927         The old human_readable function has been removed;
36928         use inttostr.h instead.
36929         (human_readable, default_block_size, humblock):
36930         Use uintmax_t, not int, for block sizes.
36931         (human_readable_inexact, block_size_types): Remove.
36932         (block_size_opts): New constant.
36933         (human_options): Renamed from human_block_size, with new signature
36934         that allows block sizes up to UINTMAX_MAX.  All callers changed.
36935         * lib/human.h: Add copyright and authorship notice.
36936         Include <limits.h> and <stdbool.h> unconditionally.
36937         (PARAMS): Remove.  All uses removed.
36938         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
36939         (enum human_inexact_style): Remove tag; now a nameless enum.
36940         (human_floor, human_ceiling, human_round_to_even): Now have
36941         values 2, 0, 1 rather than -1, 1, 0.
36942         (human_group_digits, human_suppress_point_zero, human_autoscale,
36943         human_base_1024, human_SI, human_B): New constants.
36944         (human_readable_inexact, human_block_size): Remove.
36945         (human_readable): Size args are now uintmax_t, not int.
36946         (human_options): New decl.
36947
36948         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
36949         unnecessary now that we assume C89 or better.  This change
36950         imported from coreutils.
36951
36952         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36953         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
36954         in the 2003-05-30 sync from glibc.
36955
36956         .h files should stand alone, but we shouldn't include <sys/types.h>
36957         if we can get away with just <stddef.h>.
36958
36959         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
36960         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
36961         rather than <sys/types.h>, as we merely need size_t.
36962         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
36963         to get size_t.
36964         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
36965         Include <stdio.h>, to get FILE.
36966         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
36967         memcasecmp.h has included <stddef.h> and all we need is size_t.
36968         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
36969         our interface, instead of including <sys/types.h>
36970
36971 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36972
36973         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
36974         now, as glibc mktime is buggy on non-glibc systems.
36975
36976 2003-06-03  Karl Berry  <karl@gnu.org>
36977
36978         * config/config.sub: update from prep.
36979
36980 2003-06-02  Paul Eggert  <eggert@twinsun.com>
36981
36982         [from coreutils]
36983         Fix some minor time-related bugs with POSIX time arguments.
36984         Some valid time stamps were being rejected (notably -1, and
36985         time stamps before 1900 on 64-bit hosts).  And some invalid
36986         time stamps were being accepted, e.g. September 31.
36987
36988         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
36989         that we can return (time_t) -1 successfully.
36990         * lib/posixtm.c: Likewise.
36991         [HAVE_STDBOOL_H]: Include <stdbool.h>.
36992         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
36993         (t): Remove static var.
36994         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
36995         of static var.  All uses changed.
36996         (year): Do not reject years before 1900; they can occur with
36997         64-bit time_t.
36998         (posix_time_parse): Do not check for out-of-range components;
36999         that is now the caller's responsibility, since our checks were
37000         only approximations.
37001         (posixtime): Use mktime to check for out-of-range components,
37002         since it knows them exactly.
37003         If mktime returns (time_t) -1, check whether an error actually occurred
37004         by invoking localtime on -1.
37005         (main) [TEST_POSIXTIME]: Check for input data errors, and report
37006         posixtime failures better.
37007         Improve the test data (in comments only).
37008
37009 2003-06-02  Karl Berry  <karl@gnu.org>
37010
37011         * config/mkinstalldirs (version): new variable.
37012         (--version): new option.
37013         (usage): improve message.
37014
37015 2003-05-30  Karl Berry  <karl@gnu.org>
37016
37017         * lib/mktime.c: update from libc.
37018
37019 2003-05-30  Bruno Haible  <bruno@clisp.org>
37020
37021         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
37022         * config/config.rpath: Upgrade to gettext-0.12.1.
37023
37024 2003-05-30  Bruno Haible  <bruno@clisp.org>
37025
37026         * m4/gettext.m4: Upgrade to gettext-0.12.1.
37027         * m4/nls.m4: New file, from gettext-0.12.1.
37028         * m4/po.m4: New file, from gettext-0.12.1.
37029         * m4/progtest.m4: Upgrade to gettext-0.12.1.
37030
37031 2003-05-30  Bruno Haible  <bruno@clisp.org>
37032
37033         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
37034         * lib/localcharset.h: Likewise.
37035         * lib/localcharset.c: Likewise.
37036
37037 2003-05-29  Karl Berry  <karl@gnu.org>
37038
37039         * config/config.rpath: update from gettext.
37040
37041 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37042
37043         Assume the headers required for C89 freestanding compilers.
37044         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
37045         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
37046         * m4/human.m4 (gl_HUMAN): Likewise.
37047         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
37048         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
37049         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37050         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
37051         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37052         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
37053
37054 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37055
37056         Assume the headers required for C89 freestanding compilers.
37057         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
37058         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
37059         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
37060         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
37061         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
37062         define, since <limits.h> is guaranteed to do that.
37063         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
37064         * lib/exclude.c: Include <stdbool.h> unconditionally.
37065         * lib/tempname.c: Include <stddef.h> unconditionally.
37066         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
37067         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
37068         <stddef.h> does that.
37069         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
37070         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
37071         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
37072         needed.
37073         * lib/xstrtol.c: Likewise.
37074         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
37075         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
37076
37077         * lib/addext.c (addext): Use assignment rather than cast, to avoid
37078         warnings on some platforms.
37079
37080         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37081         arbitrarily.
37082
37083 2003-05-26  Jim Meyering  <jim@meyering.net>
37084
37085         Merge in a change from coreutils:
37086         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
37087         that is guaranteed to be `no'.  Use `no_such_member' to indicate
37088         that condition, rather than `-1' which is slightly misleading.
37089         Change the name of the cache variable to have the gl_ prefix.
37090         Prompted by a patch from Richard Dawe for DJGPP.
37091
37092 2003-05-24  Karl Berry  <karl@gnu.org>
37093
37094         * config/config.guess: update from prep.
37095
37096 2003-05-22  Karl Berry  <karl@gnu.org>
37097
37098         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
37099
37100 2003-05-20  Karl Berry  <karl@gnu.org>
37101
37102         * config/config.guess: update from prep.
37103
37104 2003-05-18  Karl Berry  <karl@gnu.org>
37105
37106         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
37107         might actually be set by the user.
37108
37109         * config/depcomp, install-sh, mdate-sh: update from automake.
37110
37111 2003-05-17  Bruno Haible  <bruno@clisp.org>
37112
37113         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
37114         invalid expansion for AC_EGREP_CPP.
37115         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
37116         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37117         Suggested by Akim Demaille <akim@epita.fr> in
37118         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
37119
37120 2003-05-12  Jim Meyering  <jim@meyering.net>
37121
37122         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
37123         the space-padded-by-default conversion specifiers, %e, %k, %l.
37124
37125 2003-05-12  Bruno Haible  <bruno@clisp.org>
37126
37127         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
37128         the string is longer than 4 KB.
37129
37130 2003-05-11  Karl Berry  <karl@gnu.org>
37131
37132         * config/config.{guess,sub}: update from prep.
37133
37134 2003-05-09  Bruno Haible  <bruno@clisp.org>
37135
37136         * modules/error: Add m4/strerror_r.m4 to file list.
37137
37138 2003-05-03  Bruno Haible  <bruno@clisp.org>
37139
37140         Upgrade to Unicode-4.0.
37141         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
37142         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
37143         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
37144         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
37145         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
37146         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
37147         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
37148         Change width of U+E0100..U+E01EF from 1 to 0.
37149
37150 2003-04-25  Jim Meyering  <jim@meyering.net>
37151
37152         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
37153         of type size_t, not int.
37154
37155 2003-04-25  Bruno Haible  <bruno@clisp.org>
37156
37157         * lib/copy-file.c: Include <stddef.h>, for size_t.
37158
37159 2003-04-21  Paul Eggert  <eggert@twinsun.com>
37160
37161         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
37162         code which expansion is under static control.  Patch imported from
37163         Akim Demaille's patch to Bison; see
37164         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
37165
37166 2003-04-14  Bruno Haible  <bruno@clisp.org>
37167
37168         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
37169
37170 2003-04-11  Jim Meyering  <jim@meyering.net>
37171
37172         Merge changes from Coreutils.
37173
37174         2003-03-22  Jim Meyering  <jim@meyering.net>
37175
37176         * lib/strftime.c (widen): Cast alloca return value to proper type.
37177
37178         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
37179
37180         From GNU libc.
37181         * lib/strftime.c (my_strftime): Handle very large width
37182         specifications for numeric values correctly.  Improve checks for
37183         overflow.
37184
37185         2003-01-19  Jim Meyering  <jim@meyering.net>
37186
37187         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
37188         definitions.
37189         (nl_get_alt_digit) [! defined my_strftime]: Define.
37190         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
37191         _nl_get_alt_digit and _nl_get_walt_digit.
37192
37193         * lib/strftime.c (my_strftime): Merge in locale-related changes from
37194         libc. These changes have no effect outside of _LIBC.
37195
37196 2003-04-10  Bruno Haible  <bruno@clisp.org>
37197
37198         * modules/findprog: New file.
37199         * MODULES.html.sh (func_all_modules): Add it.
37200
37201 2003-04-10  Bruno Haible  <bruno@clisp.org>
37202
37203         * m4/findprog.m4: New file.
37204         * m4/eaccess.m4: New file.
37205
37206 2003-04-10  Bruno Haible  <bruno@clisp.org>
37207
37208         * lib/findprog.h: New file, from GNU gettext.
37209         * lib/findprog.c: New file, from GNU gettext.
37210
37211 2003-04-05  Jim Meyering  <jim@meyering.net>
37212
37213         Merge changes from Coreutils.
37214
37215         * lib/exclude.h (PARAMS): Remove definition and uses.
37216         * lib/exclude.c: Remove uses of `PARAMS'.
37217
37218         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
37219         Add test-cases for DOS filenames. Declare program_name.
37220         (main): Set up program_name.  Patch by Rich Dawe.
37221
37222         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37223         error from mntctl.
37224         Use mntctl's return value to drive the entry-processing loop, since
37225         we can't rely on the value of the vmt_length member in the last
37226         entry.  On some systems doing so could result in exhausting
37227         virtual memory.  Based in part on a patch from Mike Jetzer.
37228
37229 2003-04-04  Bruno Haible  <bruno@clisp.org>
37230
37231         * modules/linebreak: New file.
37232         * MODULES.html.sh (func_all_modules): Add it.
37233
37234 2003-04-04  Bruno Haible  <bruno@clisp.org>
37235
37236         * m4/linebreak.m4: New file.
37237
37238 2003-04-04  Bruno Haible  <bruno@clisp.org>
37239
37240         * lib/linebreak.h: New file, from GNU gettext.
37241         * lib/linebreak.c: New file, from GNU gettext with slight
37242         modifications.
37243         * lib/lbrkprop.h: New file, from GNU gettext.
37244
37245 2003-04-03  Bruno Haible  <bruno@clisp.org>
37246
37247         * modules/utf8-ucs4: New file.
37248         * modules/utf16-ucs4: New file.
37249         * modules/ucs4-utf8: New file.
37250         * modules/ucs4-utf16: New file.
37251         * MODULES.html.sh (func_all_modules): Add them.
37252
37253 2003-04-03  Bruno Haible  <bruno@clisp.org>
37254
37255         * m4/utf-ucs4.m4: New file.
37256         * m4/ucs4-utf.m4: New file.
37257
37258 2003-04-03  Bruno Haible  <bruno@clisp.org>
37259
37260         * lib/utf8-ucs4.h: New file, from GNU gettext.
37261         * lib/utf16-ucs4.h: New file, from GNU gettext.
37262         * lib/ucs4-utf8.h: New file, from GNU gettext.
37263         * lib/ucs4-utf16.h: New file, from GNU gettext.
37264
37265 2003-04-02  Bruno Haible  <bruno@clisp.org>
37266
37267         * modules/binary-io: New file.
37268         * MODULES.html.sh (func_all_modules): Add it.
37269
37270 2003-04-02  Bruno Haible  <bruno@clisp.org>
37271
37272         * lib/binary-io.h: New file, from GNU gettext.
37273
37274 2003-04-01  Bruno Haible  <bruno@clisp.org>
37275
37276         * modules/pathname: New file.
37277         * MODULES.html.sh (func_all_modules): Add it.
37278
37279 2003-04-01  Bruno Haible  <bruno@clisp.org>
37280
37281         * lib/pathname.h: New file, from GNU gettext.
37282         * lib/concatpath.c: New file, from GNU gettext.
37283
37284 2003-03-30  Bruno Haible  <bruno@clisp.org>
37285
37286         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37287
37288 2003-03-30  Bruno Haible  <bruno@clisp.org>
37289
37290         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37291         function chown() doesn't exist.
37292
37293 2003-03-28  Bruno Haible  <bruno@clisp.org>
37294
37295         * modules/copy-file: New file.
37296         * MODULES.html.sh (func_all_modules): Add it.
37297
37298 2003-03-28  Bruno Haible  <bruno@clisp.org>
37299
37300         * m4/copy-file.m4: New file.
37301
37302 2003-03-28  Bruno Haible  <bruno@clisp.org>
37303
37304         * lib/copy-file.h: New file, from GNU gettext.
37305         * lib/copy-file.c: New file, from GNU gettext.
37306
37307 2003-03-18  Jim Meyering  <jim@meyering.net>
37308
37309         * lib/quote.c (quote_n): Fix typo in comment.
37310
37311 2003-03-18  Bruno Haible  <bruno@clisp.org>
37312
37313         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37314         checking.
37315         * m4/onceonly_2_57.m4: Likewise.
37316
37317 2003-03-17  Bruno Haible  <bruno@clisp.org>
37318
37319         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37320         (m4_quote): Remove macro.
37321         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37322
37323 2003-03-14  Jim Meyering  <jim@meyering.net>
37324
37325         Merge changes from Coreutils.
37326         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37327         to be const, in order to avoid warnings.
37328         (obstack_room): Likewise.
37329         (obstack_empty_p): Likewise.
37330
37331 2003-03-14  Bruno Haible  <bruno@clisp.org>
37332
37333         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37334         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37335
37336 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37337
37338         Merge changes from Bison.
37339         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37340         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37341         when compiling Bison 1.875's `bitset bset = obstack_alloc
37342         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37343         * lib/hash.c: Include <stdbool.h> unconditionally.
37344
37345 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37346
37347         * m4/onceonly.m4 (m4_quote): New macro.
37348         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37349         Quote AC_FOREACH variable-expansions properly.
37350
37351 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37352
37353         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37354
37355 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37356
37357         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37358         Reported by Bruce Becker; see:
37359         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37360
37361 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37362             Bruno Haible  <bruno@clisp.org>
37363
37364         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37365         Reported by John Hughes, see
37366         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37367
37368 2003-02-20  Bruno Haible  <bruno@clisp.org>
37369
37370         * MODULES.html.sh (func_all_modules): Add poll.
37371
37372 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37373
37374         * modules/poll: New file.
37375
37376 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37377
37378         * lib/poll_.h: New file.
37379         * lib/poll.c: New file.
37380
37381 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37382
37383         * m4/poll.m4: New file.
37384
37385 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37386
37387         * modules/mathl: New file.
37388
37389 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37390
37391         * lib/mathl.h: New file.
37392         * lib/acosl.c: New file.
37393         * lib/asinl.c: New file.
37394         * lib/atanl.c: New file.
37395         * lib/ceill.c: New file.
37396         * lib/cosl.c: New file.
37397         * lib/expl.c: New file.
37398         * lib/floorl.c: New file.
37399         * lib/frexpl.c: New file.
37400         * lib/ldexpl.c: New file.
37401         * lib/logl.c: New file.
37402         * lib/sincosl.c: New file.
37403         * lib/sinl.c: New file.
37404         * lib/sqrtl.c: New file.
37405         * lib/tanl.c: New file.
37406         * lib/trigl.c: New file.
37407         * lib/trigl.h: New file.
37408
37409 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37410
37411         * m4/mathl.m4: New file.
37412
37413 2003-02-18  Bruno Haible  <bruno@clisp.org>
37414
37415         * MODULES.html.sh (func_all_modules): Add mathl.
37416
37417 2003-02-17  Bruno Haible  <bruno@clisp.org>
37418
37419         * modules/mkdtemp: New module.
37420         * MODULES.html.sh (func_all_modules): Add it.
37421
37422 2003-02-17  Bruno Haible  <bruno@clisp.org>
37423
37424         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
37425
37426 2003-02-17  Bruno Haible  <bruno@clisp.org>
37427
37428         * lib/mkdtemp.h: New file, from GNU gettext.
37429         * lib/mkdtemp.c: New file, from GNU gettext.
37430
37431 2003-02-02  Jim Meyering  <jim@meyering.net>
37432
37433         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
37434         e.g. glibc-2.2.93.
37435
37436 2003-01-31  Bruno Haible  <bruno@clisp.org>
37437
37438         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
37439         'rpl_rename'.
37440         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
37441         'rpl_strnlen'.
37442         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
37443         'rpl_strtod'.
37444         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
37445         'rpl_utime'.
37446
37447 2003-01-31  Bruno Haible  <bruno@clisp.org>
37448
37449         * lib/rename.c: #undef rename before defining rpl_rename.
37450         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
37451
37452 2003-01-30  Bruno Haible  <bruno@clisp.org>
37453
37454         * modules/vasnprintf, modules/vasprintf: New modules.
37455         * MODULES.html.sh (func_all_modules): Add them.
37456
37457 2003-01-30  Bruno Haible  <bruno@clisp.org>
37458
37459         * m4/signed.m4: New file, from GNU gettext.
37460         * m4/longdouble.m4: New file, from GNU gettext.
37461         * m4/wchar_t.m4: New file, from GNU gettext.
37462         * m4/wint_t.m4: New file, from GNU gettext.
37463         * m4/vasnprintf.m4: New file.
37464         * m4/vasprintf.m4: New file.
37465
37466 2003-01-30  Bruno Haible  <bruno@clisp.org>
37467
37468         * lib/printf-args.h: New file, from GNU gettext.
37469         * lib/printf-args.c: New file, from GNU gettext.
37470         * lib/printf-parse.h: New file, from GNU gettext.
37471         * lib/printf-parse.c: New file, from GNU gettext.
37472         * lib/vasnprintf.h: New file, from GNU gettext.
37473         * lib/vasnprintf.c: New file, from GNU gettext.
37474         * lib/asnprintf.c: New file, from GNU gettext.
37475         * lib/vasprintf.h: New file, from GNU gettext with modifications.
37476         * lib/vasprintf.c: New file, from GNU gettext.
37477         * lib/asprintf.c: New file, from GNU gettext.
37478
37479 2003-01-29  Bruno Haible  <bruno@clisp.org>
37480
37481         * modules/stpncpy: New module.
37482         * MODULES.html.sh (func_all_modules): Add it.
37483
37484 2003-01-29  Bruno Haible  <bruno@clisp.org>
37485
37486         * m4/stpncpy.m4: New file.
37487
37488 2003-01-29  Bruno Haible  <bruno@clisp.org>
37489
37490         * lib/stpncpy.h: New file, from GNU gettext with modifications.
37491         * lib/stpncpy.c: New file, from GNU gettext with modifications.
37492
37493 2003-01-28  Bruno Haible  <bruno@clisp.org>
37494
37495         * modules/c-ctype: New module.
37496         * MODULES.html.sh (func_all_modules): Add it.
37497
37498 2003-01-28  Bruno Haible  <bruno@clisp.org>
37499
37500         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
37501         Paul Eggert.
37502         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
37503         Paul Eggert.
37504
37505 2003-01-27  Bruno Haible  <bruno@clisp.org>
37506
37507         * modules/xsetenv: New module.
37508         * MODULES.html.sh (func_all_modules): Add it.
37509
37510 2003-01-27  Bruno Haible  <bruno@clisp.org>
37511
37512         * lib/xsetenv.h: New file, from GNU gettext.
37513         * lib/xsetenv.c: New file, from GNU gettext.
37514
37515 2003-01-23  Jim Meyering  <jim@meyering.net>
37516
37517         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
37518         from working on systems without dirfd (at least Irix and OSF1/Tru64).
37519
37520 2003-01-23  Bruno Haible  <bruno@clisp.org>
37521
37522         * modules/minmax: New module.
37523         * MODULES.html.sh (func_all_modules): Add it.
37524
37525 2003-01-23  Bruno Haible  <bruno@clisp.org>
37526
37527         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
37528         Eggert.
37529
37530 2003-01-22  Bruno Haible  <bruno@clisp.org>
37531
37532         * modules/exit: New module.
37533         * MODULES.html.sh (func_all_modules): Add it.
37534
37535 2003-01-22  Bruno Haible  <bruno@clisp.org>
37536
37537         * lib/exit.h: New file, from GNU gettext.
37538
37539 2003-01-19  Bruno Haible  <bruno@clisp.org>
37540
37541         * gnulib-tool: Recognize option --extract-maintainer.
37542         (func_get_maintainer): New function.
37543         * modules/*: Add Maintainer entry.
37544
37545 2003-01-16  Jim Meyering  <jim@meyering.net>
37546
37547         * m4/regex.m4: The `regex' struct is both input and output.
37548         Initialize it before each use.  Patch by Tim Waugh.
37549
37550 2003-01-16  Bruno Haible  <bruno@clisp.org>
37551
37552         * MODULES.html.sh: Add a table of contents. Add the module name as
37553         leftmost column. Add hyperlinks.
37554
37555 2003-01-15  Bruno Haible  <bruno@clisp.org>
37556
37557         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
37558
37559 2003-01-15  Bruno Haible  <bruno@clisp.org>
37560
37561         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
37562         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
37563         suffix.
37564
37565 2003-01-15  Bruno Haible  <bruno@clisp.org>
37566
37567         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
37568
37569 2003-01-15  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
37572         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
37573
37574 2003-01-14  Jim Meyering  <jim@meyering.net>
37575
37576         * lib/same.c (same_name): Tweak a comment.
37577
37578 2003-01-14  Bruno Haible  <bruno@clisp.org>
37579
37580         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
37581         when a string comparison is sufficient.
37582
37583 2003-01-14  Bruno Haible  <bruno@clisp.org>
37584
37585         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
37586         'unsigned int'.
37587
37588 2003-01-14  Bruno Haible  <bruno@clisp.org>
37589
37590         * lib/hash-pjw.c: Add comment about low quality of this function.
37591
37592 2003-01-13  Bruno Haible  <bruno@clisp.org>
37593
37594         * modules/stpcpy: Distribute lib/stpcpy.h.
37595         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
37596
37597 2003-01-13  Bruno Haible  <bruno@clisp.org>
37598
37599         * modules/*: Add a description.
37600         * modules/strpbrk: Fix Makefile.am snippet.
37601         * modules/strtoimax: Fix dependencies.
37602         * modules/strtoumax: Likewise.
37603
37604 2003-01-13  Bruno Haible  <bruno@clisp.org>
37605
37606         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
37607         * modules/alloca (Makefile.am): All object files depend on alloca.h.
37608         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
37609
37610 2003-01-13  Bruno Haible  <bruno@clisp.org>
37611
37612         * gnulib-tool (func_create_testdir): Store config/* files in the main
37613         directory.
37614         * config.rpath: Move to ...
37615         * config/config.rpath: ... here.
37616         * modules/gettext: Contains config/config.rpath, not config.rpath.
37617         * modules/iconv: Likewise.
37618
37619 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37620
37621         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37622         to avoid collisions with libcurses and libreadline.
37623
37624         * m4/getstr.m4: Remove.
37625         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
37626
37627 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37628
37629         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37630         to avoid collisions with libcurses and libreadline.
37631
37632         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
37633         * lib/getstr.h, getstr.c: Remove.
37634         * lib/getline.c: Include "getline.h", to check interface.
37635         Move body of old getstr.c here: this defines MIN_CHUNK and
37636         declares getdelim2, which is renamed from getstr.
37637         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
37638
37639         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
37640         All uses changed.
37641         * lib/linebuffer.h: Likewise.
37642         (readline): Remove backward-compatibility macro.
37643
37644 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37645
37646         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37647         to avoid collisions with libcurses and libreadline.
37648         * getstr: Remove.
37649         * MODULES.html.sh: Remove getstr.
37650         * modules/getline: Depend on unlocked-io, not getstr.
37651
37652 2003-01-12  Jim Meyering  <jim@meyering.net>
37653
37654         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
37655
37656 2003-01-10  Bruno Haible  <bruno@clisp.org>
37657
37658         * modules/alloca: Change Makefile.am requirements. Simplify Include
37659         requirements. Add lib/alloca_.h to file list.
37660
37661 2003-01-10  Bruno Haible  <bruno@clisp.org>
37662
37663         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
37664
37665 2003-01-10  Bruno Haible  <bruno@clisp.org>
37666
37667         * lib/alloca_.h: New file.
37668         * lib/getdate.y: Unconditionally include alloca.h.
37669         * lib/makepath.c: Likewise.
37670         * lib/setenv.c: Likewise.
37671         * lib/userspec.c: Likewise.
37672
37673 2003-01-09  Karl Berry  <karl@gnu.org>
37674
37675         * MODULES.html.sh: include `dirname $0` in PATH, to find
37676         gnulib-tool.
37677
37678 2003-01-09  Bruno Haible  <bruno@clisp.org>
37679
37680         * modules/stdbool: Change configure.ac, Makefile.am requirements.
37681         Simplify Include requirements. Add lib/stdbool.h.in to file list.
37682
37683 2003-01-09  Bruno Haible  <bruno@clisp.org>
37684
37685         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
37686
37687 2003-01-09  Bruno Haible  <bruno@clisp.org>
37688
37689         * lib/stdbool.h.in: New file.
37690
37691 2003-01-09  Bruno Haible  <bruno@clisp.org>
37692
37693         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37694         * MODULES.html.sh: Likewise.
37695
37696 2003-01-08  Jim Meyering  <jim@meyering.net>
37697
37698         * lib/full-write.c: Undefine and define-away `const' after inclusion
37699         of errno.h, not before.  Suggestion from Bruno Haible.
37700
37701 2003-01-08  Bruno Haible  <bruno@clisp.org>
37702
37703         * modules/full-read: Depend on full-write.
37704
37705 2003-01-08  Bruno Haible  <bruno@clisp.org>
37706
37707         * lib/safe-read.c: Include specification header first, to ensure its
37708         selfcontainedness.
37709         * lib/full-write.c: Likewise.
37710
37711 2003-01-07  Jim Meyering  <jim@meyering.net>
37712
37713         * lib/full-write.c: Rework so that it may serve to define full_read,
37714         too.
37715         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
37716
37717 2003-01-07  Bruno Haible  <bruno@clisp.org>
37718
37719         * lib/strtoimax.c: Include <stdint.h> as an alternative to
37720         <inttypes.h>.
37721         * lib/xstrtol.h: Likewise.
37722         * lib/xstrtoimax.c: Likewise.
37723         * lib/xstrtoumax.c: Likewise.
37724         * lib/human.h: Likewise.
37725
37726         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
37727         on systems that have <inttypes.h> but not <stdint.h>.
37728
37729 2003-01-07  Bruno Haible  <bruno@clisp.org>
37730
37731         * MODULES.html.sh: Add copyright notice.
37732         (missed_files): Omit CVS directory entries.
37733         (func_module): Make it work with sed-3.02.
37734         * MODULES.txt: Remove file.
37735
37736 2003-01-06  Jim Meyering  <jim@meyering.net>
37737
37738         * lib/version-etc.c: Update year in translatable copyright string.
37739
37740 2003-01-03  Karl Berry  <karl@gnu.org>
37741
37742         * config/config.{guess,sub}: update from prep.
37743
37744 2003-01-02  Karl Berry  <karl@gnu.org>
37745
37746         * doc/COPYING.DOC: belatedly updated to 1.2.
37747
37748 2003-01-01  Karl Berry  <karl@gnu.org>
37749
37750         * gnulib-tool (func_verify_module): report module name $module in
37751         error message, not $1.
37752         * gnulib-tool (create-testdir): don't complain if destdir couldn't
37753         be created, only if it doesn't exist.
37754         * gnulib-tool (last_checkin_date): don't expand the $Date here.
37755
37756 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37757
37758         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
37759
37760 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37761
37762         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
37763         memcmp if strcoll doesn't work.
37764
37765 2002-12-31  Bruno Haible  <bruno@clisp.org>
37766
37767         * lib/utime.c (utime_null): No need to call ftruncate if the file was
37768         nonempty.
37769
37770 2002-12-31  Bruno Haible  <bruno@clisp.org>
37771
37772         * lib/memcoll.c (STRCOLL): New macro.
37773         (memcoll): Use it.
37774
37775 2002-12-31  Bruno Haible  <bruno@clisp.org>
37776
37777         * lib/localcharset.h: New file.
37778         * lib/localcharset.c: Include it.
37779         * lib/unicodeio.c: Likewise.
37780
37781 2002-12-31  Bruno Haible  <bruno@clisp.org>
37782
37783         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
37784         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
37785
37786 2002-12-31  Bruno Haible  <bruno@clisp.org>
37787
37788         * lib/getline.h: Include <stddef.h>, for size_t.
37789
37790         * lib/unicodeio.h: Include <stddef.h>, for size_t.
37791         * lib/unicodeio.c: Don't include <stddef.h>.
37792
37793 2002-12-31  Bruno Haible  <bruno@clisp.org>
37794
37795         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
37796         HAVE_TM_ZONE.
37797
37798 2002-12-24  Karl Berry  <karl@gnu.org>
37799
37800         * config/config.guess: update from prep.
37801
37802 2002-12-24  Bruno Haible  <bruno@clisp.org>
37803
37804         General infrasructure.
37805         * m4/README: Rewritten.
37806         * m4/onceonly.m4: New file.
37807         * m4/onceonly_2_57.m4: New file.
37808
37809         Module atexit.
37810         * m4/atexit.m4: New file.
37811
37812         Module strtod.
37813         * m4/strtod.m4: New file.
37814
37815         Module strtol.
37816         * m4/strtol.m4: New file.
37817
37818         Module strtoul.
37819         * m4/strtoul.m4: New file.
37820
37821         Module memchr.
37822         * m4/memchr.m4: New file.
37823
37824         Module memcmp.
37825         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
37826         (jm_FUNC_MEMCMP): Invoke it.
37827
37828         Module memcpy.
37829         * m4/memcpy.m4: New file.
37830
37831         Module memmove.
37832         * m4/memmove.m4: New file.
37833
37834         Module memset.
37835         * m4/memset.m4: New file.
37836
37837         Module strcspn.
37838         * m4/strcspn.m4: New file.
37839
37840         Module strpbrk.
37841         * m4/strpbrk.m4: New file.
37842
37843         Module strstr.
37844         * m4/strstr.m4: New file.
37845
37846         Module strerror.
37847         * m4/strerror.m4: New file.
37848
37849         Module mktime.
37850         * m4/mktime.m4: Renamed from jm-mktime.m4.
37851         (gl_PREREQ_MKTIME): New macro.
37852         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
37853
37854         Module malloc.
37855         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
37856         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
37857         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
37858
37859         Module realloc.
37860         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
37861         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
37862         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
37863
37864         Module strftime.
37865         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
37866         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
37867         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
37868         gl_TM_GMTOFF.
37869         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
37870
37871         Module xalloc.
37872         * m4/xalloc.m4: New file.
37873
37874         Module alloca.
37875         * m4/alloca.m4: New file.
37876
37877         Module putenv.
37878         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
37879         (jm_FUNC_PUTENV): Invoke it.
37880
37881         Module setenv.
37882         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
37883         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
37884         when invoked twice.
37885         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
37886         gt_FUNC_SETENV.
37887
37888         Module memrchr.
37889         * m4/memrchr.m4: New file.
37890
37891         Module stpcpy.
37892         * m4/stpcpy.m4: New file.
37893
37894         Module strcase.
37895         * m4/strcase.m4: New file.
37896
37897         Module strdup.
37898         * m4/strdup.m4: New file.
37899
37900         Module strnlen.
37901         * m4/strnlen.m4: New file.
37902
37903         Module strndup.
37904         * m4/strndup.m4: New file.
37905
37906         Module xstrtod.
37907         * m4/xstrtod.m4: New file.
37908
37909         Module xstrtol.
37910         * m4/xstrtol.m4: New file.
37911
37912         Module getdate.
37913         * m4/getdate.m4: New file.
37914
37915         Module unlocked-io.
37916         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
37917         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
37918         * m4/jm-glibc-io.m4n: Remove file.
37919
37920         Module long-options.
37921         * m4/long-options.m4: New file.
37922
37923         Module md5.
37924         * m4/md5.m4: New file.
37925
37926         Module sha.
37927         * m4/sha.m4: New file.
37928
37929         Module getstr.
37930         * m4/getstr.m4: New file.
37931
37932         Module getline.
37933         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
37934         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
37935         <sys/types.h>, for size_t. Use the function name gnu_getline, not
37936         simply getline. Infoke gl_PREREQ_GETLINE.
37937
37938         Module obstack.
37939         * m4/obstack.m4: New file.
37940
37941         Module hash.
37942         * m4/hash.m4: New file.
37943
37944         Module readtokens.
37945         * m4/readtokens.m4: New file.
37946
37947         Module strverscmp.
37948         * m4/strverscmp.m4: New file.
37949
37950         Module stdbool.
37951         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
37952         OSF/1.
37953
37954         Module strtoll.
37955         * m4/strtoll.m4: New file.
37956
37957         Module strtoull.
37958         * m4/strtoull.m4: New file.
37959
37960         Module strtoimax.
37961         * m4/strtoimax.m4: New file.
37962
37963         Module strtoumax.
37964         * m4/strtoumax.m4: New file.
37965
37966         Module xstrtoimax.
37967         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
37968         jm_AC_PREREQ_XSTRTOIMAX.
37969         Moved the strtol prerequisites to strtol.m4.
37970         Moved the strtoll prerequisites to strtoll.m4.
37971         Moved the strtoimax prerequisites to strtoimax.m4.
37972
37973         Module xstrtoumax.
37974         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
37975         jm_AC_PREREQ_XSTRTOUMAX.
37976         Moved the strtoul prerequisites to strtoul.m4.
37977         Moved the strtoull prerequisites to strtoull.m4.
37978         Moved the strtoumax prerequisites to strtoumax.m4.
37979
37980         Module chown.
37981         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
37982         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
37983
37984         Module dup2.
37985         * m4/dup2.m4: New file.
37986
37987         Module ftruncate.
37988         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
37989         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
37990
37991         Module getgroups.
37992         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
37993         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
37994
37995         Module gettimeofday.
37996         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
37997         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
37998         gl_PREREQ_GETTIMEOFDAY.
37999
38000         Module mkdir.
38001         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
38002         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
38003
38004         Module mkstemp.
38005         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
38006         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
38007         jm_AC_TYPE_UINTMAX_T.
38008         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
38009
38010         Module stat.
38011         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
38012         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
38013
38014         Module lstat.
38015         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
38016         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
38017
38018         Module timespec.
38019         * m4/timespec.m4 (gl_TIMESPEC): New macro.
38020         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
38021         * m4/st_mtim.m4: Indentation.
38022
38023         Module nanosleep.
38024         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
38025         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
38026         gl_PREREQ_NANOSLEEP.
38027
38028         Module regex.
38029         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
38030         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
38031         (gl_REGEX): New macro.
38032
38033         Module rename.
38034         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
38035         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
38036
38037         Module rmdir.
38038         * m4/rmdir.m4: New file.
38039
38040         Module utime.
38041         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
38042         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
38043         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
38044
38045         Module dirname.
38046         * m4/dirname.m4: New file.
38047
38048         Module getopt.
38049         * m4/getopt.m4: New file.
38050
38051         Module unistd-safer.
38052         * m4/unistd-safer.m4: New file.
38053
38054         Module fnmatch.
38055         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
38056         declaration.
38057         (gl_PREREQ_FNMATCH_EXTRA): New macro.
38058         (gl_FUNC_FNMATCH_POSIX): New macro.
38059         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
38060         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
38061         simply fnmatch.
38062
38063         Module exclude.
38064         * m4/exclude.m4: New file.
38065
38066         Module human.
38067         * m4/human.m4: New file.
38068
38069         Module acl.
38070         * m4/acl.m4: Nop.
38071
38072         Module backupfile.
38073         * m4/backupfile.m4: New file.
38074         * m4/d-ino.m4: Indentation.
38075
38076         Module fsusage.
38077         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
38078         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
38079         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
38080
38081         Module dirfd.
38082         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
38083         requirements.
38084
38085         Module euidaccess.
38086         * m4/euidaccess.m4: New file.
38087
38088         Module file-type.
38089         * m4/file-type.m4: New file.
38090
38091         Module fileblocks.
38092         * m4/fileblocks.m4: New file.
38093
38094         Module filemode.
38095         * m4/filemode.m4: New file.
38096
38097         Module isdir.
38098         * m4/isdir.m4: New file.
38099
38100         Module lchown.
38101         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
38102         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
38103
38104         Module makepath.
38105         * m4/makepath.m4: New file.
38106
38107         Module modechange.
38108         * m4/modechange.m4: New file.
38109
38110         Module mountlist.
38111         * m4/mountlist.m4: New file.
38112         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
38113         Indentation.
38114
38115         Module path-concat.
38116         * m4/path-concat.m4: New file.
38117
38118         Module pathmax.
38119         * m4/pathmax.m4: New file.
38120
38121         Module same.
38122         * m4/same.m4: New file.
38123
38124         Module save-cwd.
38125         * m4/save-cwd.m4: New file.
38126
38127         Module savedir.
38128         * m4/savedir.m4: New file.
38129
38130         Module xgetcwd.
38131         * m4/xgetcwd.m4: New file.
38132         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
38133
38134         Module xreadlink.
38135         * m4/xreadlink.m4: New file.
38136
38137         Module safe-read.
38138         * m4/safe-read.m4: New file.
38139
38140         Module safe-write.
38141         * m4/safe-write.m4: New file.
38142
38143         Module closeout.
38144         * m4/closeout.m4: New file.
38145
38146         Module stdio-safer.
38147         * m4/stdio-safer.m4: New file.
38148
38149         Module getpass.
38150         * m4/getpass.m4: New file.
38151
38152         Module getugroups.
38153         * m4/getugroups.m4: New file.
38154
38155         Module group-member.
38156         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
38157         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
38158
38159         Module idcache.
38160         * m4/idcache.m4: New file.
38161
38162         Module userspec.
38163         * m4/userspec.m4: New file.
38164
38165         Module gettime.
38166         * m4/clock_time.m4: New file.
38167         * m4/gettime.m4: New file.
38168
38169         Module settime.
38170         * m4/settime.m4: New file.
38171
38172         Module posixtm.
38173         * m4/posixtm.m4: New file.
38174
38175         Module gethostname.
38176         * m4/gethostname.m4: New file.
38177
38178         Module canon-host.
38179         * m4/canon-host.m4: New file.
38180
38181         Module gettext.
38182         * m4/codeset.m4: New file, from gettext-0.11.5.
38183         * m4/gettext.m4: New file, from gettext-0.11.5.
38184         * m4/glibc21.m4: New file, from gettext-0.11.5.
38185         * m4/iconv.m4: New file, from gettext-0.11.5.
38186         * m4/intdiv0.m4: New file, from gettext-0.11.5.
38187         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
38188         * m4/inttypes.m4: New file, from gettext-0.11.5.
38189         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
38190         * m4/isc-posix.m4: New file, from gettext-0.11.5.
38191         * m4/lcmessage.m4: New file, from gettext-0.11.5.
38192         * m4/lib-ld.m4: New file, from gettext-0.11.5.
38193         * m4/lib-link.m4: New file, from gettext-0.11.5.
38194         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
38195         * m4/progtest.m4: New file, from gettext-0.11.5.
38196         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
38197         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
38198         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
38199
38200         Module localcharset.
38201         * m4/localcharset.m4: New file.
38202
38203         Module hard-locale.
38204         * m4/hard-locale.m4: New file.
38205
38206         Module mbswidth.
38207         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
38208         onceonly macros.
38209         * m4/mbrtowc.m4: Add comment.
38210
38211         Module memcasecmp.
38212         * m4/memcasecmp.m4: New file.
38213
38214         Module memcoll.
38215         * m4/memcoll.m4: New file.
38216
38217         Module unicodeio.
38218         * m4/unicodeio.m4: New file.
38219
38220         Module rpmatch.
38221         * m4/rpmatch.m4: New file.
38222
38223         Module yesno.
38224         * m4/yesno.m4: New file.
38225
38226         Module exitfail.
38227         * m4/exitfail.m4: New file.
38228
38229         Module c-stack.
38230         * m4/c-stack.m4 (gl_C_STACK): New macro.
38231         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
38232
38233         Module error.
38234         * m4/error.m4 (gl_ERROR): New macro.
38235         (jm_PREREQ_ERROR): Use onceonly macros.
38236
38237         Module fatal.
38238         * m4/fatal.m4: New file.
38239
38240         Module getloadavg.
38241         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
38242         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
38243
38244         Module getpagesize.
38245         * m4/getpagesize.m4: New file.
38246
38247         Module getusershell.
38248         * m4/getusershell.m4: New file.
38249
38250         Module physmem.
38251         * m4/physmem.m4: New file.
38252
38253         Module posixver.
38254         * m4/posixver.m4: New file.
38255
38256         Module quotearg.
38257         * m4/quotearg.m4: New file.
38258
38259         Module quote.
38260         * m4/quote.m4: New file.
38261
38262         Module readutmp.
38263         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
38264
38265         Module sig2str.
38266         * m4/sig2str.m4: New file.
38267
38268         Other.
38269         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
38270         ulonglong.m4.
38271         * m4/intmax_t.m4: New file.
38272         * m4/d-type.m4: Indentation.
38273         * m4/jm-macros.m4: Update.
38274         * m4/prereq.m4 (jm_PREREQ): Update.
38275         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
38276         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
38277         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
38278         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38279         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38280         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38281         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38282         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38283         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38284         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38285         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38286         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38287         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38288         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38289         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38290         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38291         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38292         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38293         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38294
38295 2002-12-24  Bruno Haible  <bruno@clisp.org>
38296
38297         * MODULES.txt: Update according to m4/ changes.
38298
38299         Module gettext.
38300         * config.rpath: New file, from gettext-0.11.5.
38301
38302         * modules/*: New module descriptions.
38303         * gnulib-tool: New file.
38304         * MODULES.html.sh: New file.
38305
38306 2002-12-21  Karl Berry  <karl@gnu.org>
38307
38308         * doc/fdl.texi: update to version 1.2.
38309
38310 2002-12-19  Karl Berry  <karl@gnu.org>
38311
38312         * config/config.guess: update from prep.
38313
38314 2002-12-18  Bruno Haible  <bruno@clisp.org>
38315
38316         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38317         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38318
38319 2002-12-17  Bruno Haible  <bruno@clisp.org>
38320
38321         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38322         stdlib.h, string.h.
38323
38324 2002-12-17  Bruno Haible  <bruno@clisp.org>
38325
38326         * lib/canon-host.c (strdup): Remove unused declaration.
38327
38328         * lib/fsusage.c: Include full_read.h.
38329         (get_fs_usage): Use full_read instead of safe_read.
38330
38331         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38332
38333 2002-12-12  Karl Berry  <karl@gnu.org>
38334
38335         * config/config.guess: update from prep.
38336
38337 2002-12-11  Bruno Haible  <bruno@clisp.org>
38338
38339         * m4/setenv.m4: New file, from gettext-0.11.5.
38340
38341 2002-12-11  Bruno Haible  <bruno@clisp.org>
38342
38343         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38344         not unsetenv().
38345         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38346         modifications:
38347
38348         2002-12-11  Bruno Haible  <bruno@clisp.org>
38349
38350                 * setenv.c (alloca): Fall back to malloc.
38351                 (freea): New macro.
38352                 (setenv): Use freea() to free memory allocated with alloca().
38353
38354         2002-11-13  Bruno Haible  <bruno@clisp.org>
38355
38356                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38357                 function declarations.
38358                 * unsetenv.c (unsetenv): Likewise.
38359
38360         2002-03-04  Bruno Haible  <bruno@clisp.org>
38361
38362                 Portability to AIX 4.3.3.
38363                 * unsetenv.c: New file, extracted from setenv.c.
38364                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38365
38366         2001-12-20  Bruno Haible  <bruno@clisp.org>
38367
38368                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38369                 use malloc instead. For SunOS 4.
38370
38371         2001-12-11  Bruno Haible  <bruno@clisp.org>
38372
38373                 * setenv.c: Declare alloca.
38374                 (compar_fn_t): New typedef.
38375                 (KNOWN_VALUE, STORE_VALUE): Use it.
38376
38377         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38378         setenv.h.
38379
38380 2002-12-10  Paul Eggert  <eggert@twinsun.com>
38381
38382         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
38383         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
38384         Choose values that are less likely to collide with system fnmatch
38385         options.
38386         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
38387         defined (e.g., a pure POSIX system).
38388         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
38389         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
38390
38391 2002-12-06  Paul Eggert  <eggert@twinsun.com>
38392
38393         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
38394         a pain in practice to deal with generated m4 files.  This change
38395         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
38396
38397         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38398         and jm-glibc-io.m4, as they are no longer a special case.
38399         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38400         kludge and the auto-generation stuff.  Check only whether the
38401         functions are declared, not whether they exist, since older hosts
38402         that don't declare the functions can't use the optimization anyway.
38403
38404 2002-12-06  Jim Meyering  <jim@meyering.net>
38405
38406         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38407
38408         Merge in changes from libc's misc/error.c, in preparation
38409         for the merge of gnulib's changes back into libc.
38410
38411         * lib/error.c (_): Define only if not already defined.
38412         Move definition to follow all #include directives.
38413         Include unlocked-io.h only if !_LIBC.
38414         [_LIBC]: Include <libio/libioP.h>.
38415         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38416         (fflush): Tweak definition to use INTUSE.
38417         (putc): Define.
38418
38419 2002-12-05  Paul Eggert  <eggert@twinsun.com>
38420
38421         * lib/alloca.c [defined emacs]: Include "lisp.h".
38422         (xalloc_die) [defined emacs]: New macro.
38423         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
38424         [! defined emacs]: Include <xalloc.h>.
38425         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
38426         (pointer): Typedef to POINTER_TYPE *.
38427         (malloc): Remove decl; we now always use xmalloc.
38428         (alloca): Use old-style definition, since Emacs needs this.
38429         Check for arithmetic overflow when computing combined size.
38430
38431 2002-12-04  Paul Eggert  <eggert@twinsun.com>
38432
38433         Do not generate unlocked-io.h automatically, since it's easier to
38434         maintain it by hand.
38435
38436         * lib/unlocked-io.h: New file, from GNU diffutils,
38437         but with proper copyright notice and attribution.
38438         * lib/gen-uio: Remove.
38439         * lib/Makefile.am: Add copyright notice.
38440         (libfetish_a_SOURCES): Add unlocked-io.h.
38441         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
38442         (DISTCLEANFILES, io_functions): Remove macros.
38443         (EXTRA_DIST): Remove gen_uio.
38444         (unlocked-io.h): Remove rule.
38445
38446 2002-12-04  Jim Meyering  <jim@meyering.net>
38447
38448         Reflect the fact that stat.c and lstat.c are no longer generated.
38449         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
38450         (DISTCLEANFILES): Likewise.
38451         (EXTRA_DIST): Likewise.
38452         (all_local): Don't depend on stat.c or lstat.c.
38453         (stat.c, lstat.c): Remove rules.
38454         (EXTRA_DIST): Remove xstat.in.
38455
38456         * lib/xstat.in: Remove file.  Contents moved into stat.c.
38457         * lib/stat.c: New file.  Contents mostly from xstat.in.
38458         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
38459         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
38460
38461         * lib/safe-read.c: Rework so that it may serve to define safe_write,
38462         too.
38463         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
38464
38465 2002-12-03  Jim Meyering  <jim@meyering.net>
38466
38467         * lib/safe-read.c, safe-write.c: Change variable names and comments,
38468         but not semantics, to minimize the differences between these two files.
38469         (safe_read): Change comment to mention SAFE_READ_ERROR.
38470
38471         * lib/safe-read.c (IS_EINTR): Define.
38472         (safe_read): Use IS_EINTR in place of in-function cpp directives.
38473
38474 2002-12-02  Jim Meyering  <jim@meyering.net>
38475
38476         * lib/safe-read.c (EINTR): Define.
38477         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38478         (INT_MAX): Provide fallback.
38479         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
38480
38481         * lib/safe-read.h (SAFE_READ_ERROR): Define.
38482
38483 2002-12-02  Bruno Haible  <bruno@clisp.org>
38484
38485         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
38486         Define, taken from safe-read.c.
38487         (INT_MAX): Provide fallback.
38488         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
38489         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
38490
38491         * lib/safe-read.c (EINTR): Remove definition.
38492         (safe_read): Don't use EINTR if it is absent.
38493
38494 2002-12-01  Jim Meyering  <jim@meyering.net>
38495
38496         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
38497         zero.
38498         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
38499
38500 2002-11-27  Paul Eggert  <eggert@twinsun.com>
38501
38502         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
38503         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
38504         with `if (! (value < limit)) abort ();', for readability.
38505
38506 2002-11-26  Karl Berry  <karl@gnu.org>
38507
38508         * lib/strdup.c: copy from libc again, with jim's ok.
38509         * lib/.cppi-disable: re-add strdup.c
38510
38511 2002-11-25  Karl Berry  <karl@gnu.org>
38512
38513         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
38514         instead of "strtol.c".
38515
38516 2002-11-25  Karl Berry  <karl@gnu.org>
38517
38518         * config/install-sh: update from automake for variable quoting, $0 in
38519         error msgs, etc.
38520
38521         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
38522         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
38523         entry.
38524
38525 2002-11-25  Jim Meyering  <jim@meyering.net>
38526
38527         * lib/mktime.c: Sync from libc, now that it has the latest fix.
38528
38529 2002-11-24  Karl Berry  <karl@gnu.org>
38530
38531         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
38532         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
38533
38534 2002-11-24  Jim Meyering  <jim@meyering.net>
38535
38536         Update from coreutils:
38537
38538         * lib/mktime.c: Merge in changes from libc.
38539
38540         Avoid a link-time failure on some Linux systems.
38541         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
38542         (otherwise).
38543         (__mon_yday): Declare with the STATIC attribute.
38544         (__mktime_internal): Likewise.
38545         Based on a report from Greg Schafer.
38546
38547 2002-11-23  Jim Meyering  <jim@meyering.net>
38548
38549         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
38550         Use `unsigned', not `int', as type of index.
38551
38552         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
38553
38554         * lib/fsusage.c: Remove unneeded parentheses around operands of
38555         `defined'.
38556
38557 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38558
38559         * lib/quotearg.h: Allow multiple inclusion by surrounding with
38560         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
38561         so that we can be included first.
38562         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
38563         * lib/quotearg.c: Include quotearg.h immediately after config.h.
38564         No need to include stddef.h or sys/types.h any more.
38565         Surround local include files with "", not "<>".
38566         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
38567         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
38568         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
38569         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
38570         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
38571         (ISPRINT): Remove; no longer needed now that we assume C89.
38572
38573         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
38574         Preserve errno.
38575
38576         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
38577         quotearg_char): Use SIZE_MAX rather than
38578         (size_t) -1 when we are talking about "infinity".
38579
38580         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
38581
38582 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38583
38584         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
38585         hint that one should use `if (! x) abort ();' rather than `assert
38586         (x);', and anyway it's one less thing to worry about configuring.
38587         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
38588         hash_rehash, hash_insert): Use abort rather than assert.
38589
38590 2002-11-22  Bruno Haible  <bruno@clisp.org>
38591
38592         * lib/safe-read.h: Assume C89. Add comments.
38593         (safe_read): Change return type to size_t.
38594         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
38595         byte counts > SSIZE_MAX correctly.
38596         * lib/safe-write.h: New file.
38597         * lib/safe-write.c: New file.
38598         * lib/full-read.h: New file.
38599         * lib/full-read.c: New file.
38600         * lib/full-write.h: Assume C89. Add comments.
38601         * lib/full-write.c: Include safe-write.h.
38602         (full_write): Rewritten to use safe_write.
38603         Suggested by Jim Meyering and Paul Eggert.
38604
38605 2002-11-21  Jim Meyering  <jim@meyering.net>
38606
38607         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
38608
38609         Merge in changes from the coreutils.
38610
38611         2002-09-25  Paul Eggert  <eggert@twinsun.com>
38612         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
38613         <stdint.h>.
38614         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
38615         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
38616         int.  Work more efficiently if X is the same width as uintmax_t.
38617         Do not compare X to -1, to avoid bogus compiler warning.
38618         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
38619         Don't assume that f_frsize and f_bsize are the same type.
38620
38621         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
38622         warning on FreeBSD.
38623
38624         * lib/makepath.c (make_path): Restore umask *before* creating the final
38625         component.
38626         (make_path): Minor reformatting.
38627
38628         * lib/xmalloc.c: Adjust to work with new autoconf macros,
38629         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
38630         HAVE_MALLOC/HAVE_REALLOC.
38631
38632         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
38633         dummy ones.  At least on GNU/Linux systems, `auto' means something
38634         else.
38635         From Michael Stone.
38636
38637 2002-11-21  Bruno Haible  <bruno@clisp.org>
38638
38639         Remove case insensitive option matching.
38640         * lib/argmatch.h (argcasematch): Remove declaration.
38641         (ARGCASEMATCH): Remove macro.
38642         (__xargmatch_internal): Remove case_sensitive argument.
38643         (XARGMATCH): Update.
38644         (XARGCASEMATCH): Remove macro.
38645         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
38646         case_sensitive argument.
38647         (argcasematch): Remove function.
38648         (__xargmatch_internal): Remove case_sensitive argument.
38649         (main): Use XARGMATCH instead of XARGCASEMATCH.
38650
38651         * lib/xmalloc.c: Change compile-time error message. Add comment about
38652         required autoconf version.
38653
38654 2002-11-20  Paul Eggert  <eggert@twinsun.com>
38655
38656         Merge argmatch cleanups from Bison.  Assume C89.
38657
38658         * lib/argmatch.c: Include config.h here, not in argmatch.h.
38659         Include stdlib.h, for EXIT_FAILURE.
38660         Always include <string.h>, since we assume C89.
38661         (EXIT_FAILURE): Remove pre-C89 bug workaround.
38662         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
38663         Include <stddef.h> instead, since it's all we need for size_t.
38664         (PARAMS): Remove.  All uses removed.
38665         (ARRAY_CARDINALITY): Do not bother to #undef.
38666         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
38667         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38668         Remove unnecessary parentheses.
38669         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38670         Insert necessary parentheses.
38671         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
38672         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
38673
38674 2002-11-19  Bruno Haible  <bruno@clisp.org>
38675
38676         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
38677         * lib/mbswidth.h: Include <stddef.h>, for size_t.
38678
38679         * lib/mbswidth.h (PARAMS): Remove macro.
38680         (mbswidth, mbsnwidth): Use ANSI C function declarations.
38681         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
38682
38683         * lib/gcd.h (PARAMS): Remove macro.
38684         (gcd): Use ANSI C function declarations.
38685         * lib/gcd.c (gcd): Likewise.
38686
38687 2002-11-15  Bruno Haible  <bruno@clisp.org>
38688
38689         * lib/strcspn.c: Include <stddef.h>.
38690         (strcspn): Use ANSI C function declaration. Change return type to
38691         size_t. Use NULL.
38692         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38693         (strpbrk): Use NULL.
38694         * lib/strpbrk.h (PARAMS): Remove macro.
38695         (strpbrk): Use ANSI C function declaration.
38696         * lib/strstr.c: Don't include <sys/types.h>.
38697         * lib/strstr.h (PARAMS): Remove macro.
38698         (strstr): Use ANSI C function declarations.
38699
38700 2002-11-14  Karl Berry  <karl@gnu.org>
38701
38702         * config/mkinstalldirs: `do' on separate line, instead of
38703         `for var; do'.
38704
38705 2002-11-06  Bruno Haible  <bruno@clisp.org>
38706
38707         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
38708         * lib/gcd.c (gcd): Likewise.
38709
38710 2002-11-05  Bruno Haible  <bruno@clisp.org>
38711
38712         * lib/gcd.h: New file, from gettext-0.11.5.
38713         * lib/gcd.c: New file, from gettext-0.11.5.
38714
38715 2002-11-05  Bruno Haible  <bruno@clisp.org>
38716
38717         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38718         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38719         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38720         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38721
38722         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
38723         <libintl.h>.
38724         * lib/makepath.c: Include gettext.h instead of <locale.h> and
38725         <libintl.h>.
38726
38727         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
38728         * lib/human.c: Include gettext.h instead of <libintl.h>.
38729         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
38730         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
38731         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
38732         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
38733         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
38734         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
38735         (textdomain): Remove definition.
38736         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
38737
38738         * lib/long-options.c: Remove include of <libintl.h> and definition of
38739         _.
38740         * lib/same.c: Remove include of <libintl.h> and definition of _.
38741
38742 2002-11-04  Owen Taylor  <otaylor@redhat.com>
38743
38744         * lib/config.charset: A few additions for Solaris.
38745
38746 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38747
38748         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
38749         * lib/localcharset.c (locale_charset): Declare as extern "C".
38750
38751 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38752
38753         * lib/config.charset: msdos in uk_UA uses CP1125.
38754
38755 2002-11-04  Bruno Haible  <bruno@clisp.org>
38756
38757         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
38758         * lib/strcase.h: New file, from GNU gettext-0.11.5.
38759         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
38760         * lib/strstr.h: New file, from GNU gettext-0.11.5.
38761         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
38762
38763 2002-11-04  Bruno Haible  <bruno@clisp.org>
38764
38765         * lib/localcharset.c (locale_charset): Don't return an empty string.
38766
38767 2002-11-04  Bruno Haible  <bruno@clisp.org>
38768
38769         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
38770         aliases.
38771
38772 2002-11-04  Bruno Haible  <bruno@clisp.org>
38773
38774         * lib/config.charset: Update for newest glibc. Add canonical names
38775         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
38776
38777 2002-11-04  Bruno Haible  <bruno@clisp.org>
38778
38779         * lib/config.charset: Add support for NetBSD.
38780
38781 2002-11-04  Bruno Haible  <bruno@clisp.org>
38782
38783         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
38784
38785 2002-11-01  Bruno Haible  <bruno@clisp.org>
38786
38787         * configure.in: Add AC_CONFIG_AUX_DIR call.
38788         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
38789         test/Makefile.
38790         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
38791
38792 2002-09-28  Karl Berry  <karl@gnu.org>
38793
38794         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
38795         installed automake until the next release, since changes have been
38796         made.
38797
38798 2002-09-25  Karl Berry  <karl@gnu.org>
38799
38800         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
38801         * lib/getopt*: copy from libc/posix.
38802         * lib/gettext.h: copy from gettext.
38803         * lib/.cppi-disable: add strdup.c, gettext.h.
38804
38805 2002-09-25  Karl Berry  <karl@gnu.org>
38806
38807         * config/srclist.txt: enable gettext.h check.
38808         * config/config.{guess,sub}: update from prep.
38809         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
38810                 from automake 1.6.3.
38811         See srclist*.
38812
38813 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
38814
38815         * regex.c (PATFETCH): Remove the translating fetch.
38816         (PATFETCH_RAW): Rename to PATFETCH.
38817         (set_image_of_range): New fun.
38818         (SET_RANGE_TABLE_WORK_AREA): Use it.
38819         (regex_compile): Don't translate the pattern chars so eagerly.
38820         Only do it when inserting an `exactn' bytecode or when handling
38821         a char-range.
38822         (mutually_exclusive_p): Avoid empty statement.
38823
38824 2002-07-06  Jim Meyering  <meyering@lucent.com>
38825
38826         * m4/README: Don't mention Makefile.am.in.
38827         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
38828
38829 2002-07-01  Jim Meyering  <meyering@lucent.com>
38830
38831         * lib/c-stack.c: Include sys/time.h.
38832         From Volker Borchert.
38833
38834 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38835
38836         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
38837
38838 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38839
38840         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
38841         New macro.  Use it uniformly instead of
38842         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
38843         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
38844         reported by Vin Shelton.
38845
38846 2002-06-22  Paul Eggert  <eggert@twinsun.com>
38847
38848         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
38849         Do not assume SA_SIGINFO behavior.
38850         Bug reported by Jim Meyering on NetBSD 1.5.2.
38851
38852 2002-06-22  Jim Meyering  <meyering@lucent.com>
38853
38854         * m4/c-stack.m4: New file, from diffutils-2.8.2.
38855         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
38856
38857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
38858         now that configure.ac uses AC_GNU_SOURCE.
38859         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
38860         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
38861
38862         Update to latest tools.  Suggestions from Paul Eggert.
38863         * m4/stdbool.m4: New file, from diffutils-2.8.2.
38864         * m4/gnu-source.m4: Update from diffutils-2.8.2.
38865         * m4/fnmatch.m4: Likewise.
38866         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
38867         to AC_HEADER_STDBOOL
38868
38869 2002-06-22  Jim Meyering  <meyering@lucent.com>
38870
38871         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
38872         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
38873
38874 2002-06-22  Jim Meyering  <meyering@lucent.com>
38875
38876         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
38877
38878         * lib/exitfail.c, exitfail.h: Likewise.
38879         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
38880
38881         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
38882         of fnmatch.h.
38883         (EXTRA_DIST): Add fnmatch_loop.c.
38884         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
38885
38886         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
38887         * lib/fnmatch.c: Update from diffutils-2.8.2.
38888         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
38889         * lib/fnmatch.h: Remove file.
38890
38891 2002-06-21  Jim Meyering  <meyering@lucent.com>
38892
38893         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
38894         * m4/mbrtowc.m4: Likewise.
38895
38896         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
38897         * m4/mbswidth.m4: Reflect name change:
38898         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
38899         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38900
38901         * m4/lib-link.m4: Update from gettext-0.11.2.
38902         * m4/gettext.m4: Likewise.
38903
38904         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
38905         From Alfred M. Szmidt.
38906
38907 2002-06-18  Paul Eggert  <eggert@twinsun.com>
38908
38909         * lib/file-type.h: Report an error if neither S_ISREG nor
38910         S_IFREG is defined, instead of using a test specific to glibc
38911         2.2.  This should be safe, since POSIX requires S_ISREG and
38912         Unix Version 7 had S_IFREG.  We don't need to check for
38913         <sys/types.h> since we don't use any symbols that it defines.
38914
38915 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
38916
38917         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
38918         $@-t, so that each temporary file name is unique and valid in the first
38919         8 characters, for operation under DOS.
38920
38921 2002-06-15  Paul Eggert  <eggert@twinsun.com>
38922
38923         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
38924
38925 2002-06-15  Jim Meyering  <meyering@lucent.com>
38926
38927         Work even with DJGPP 2.03, which lacks support for symlinks.
38928         From Richard Dawe.
38929         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
38930         is defined.
38931         * lib/lchown.c (S_ISLNK): Likewise.
38932
38933 2002-06-15  Jim Meyering  <meyering@lucent.com>
38934
38935         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
38936         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
38937         have been included before this file.
38938
38939 2002-06-14  Jim Meyering  <meyering@lucent.com>
38940
38941         * lib/file-type.h: Use the version from diffutils-2.8.2.
38942         * lib/file-type.c: Likewise.
38943
38944 2002-06-07  Jim Meyering  <meyering@lucent.com>
38945
38946         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
38947         They're needed at least for NetBSD 1.5.2.
38948         ($statxfs_includes): Include those same headers.
38949         ($statxfs_includes): Include sys/vfs.h if available.
38950         ($statxfs_includes): Likewise for sys/statvfs.h.
38951         Check for the following members in both structs statfs and statvfs:
38952         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
38953
38954 2002-06-01  Jim Meyering  <meyering@lucent.com>
38955
38956         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
38957         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
38958
38959 2002-05-28  Jim Meyering  <meyering@lucent.com>
38960
38961         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
38962         Reported by Volker Borchert.
38963
38964 2002-05-27  Jim Meyering  <meyering@lucent.com>
38965
38966         Fix a problem seen only on nonconforming systems whereby ls.c's
38967         use of localtime, and then of gettimeofday would cause trouble:
38968         the localtime call used to initialize rpl_gettimeofday's save
38969         mechanism would clobber ls's current local time information so
38970         that in any long listing the first file would always be listed
38971         with date 1970-01-01.  Analysis by Volker Borchert.
38972
38973         * lib/gettimeofday.c (localtime): Undefine.
38974         (rpl_localtime): New function.
38975
38976 2002-05-27  Jim Meyering  <meyering@lucent.com>
38977
38978         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
38979         localtime.
38980
38981         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
38982         use the replacement function; it wouldn't resolve at link time.
38983         Reported by Volker Borchert.
38984
38985 2002-05-22  Jim Meyering  <meyering@lucent.com>
38986
38987         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
38988         file-type.h.
38989         * lib/file-type.h: New file.
38990         * lib/file-type.c (file_type): New file/function.  Extracted from
38991         diffutils.
38992
38993 2002-04-30  Jim Meyering  <meyering@lucent.com>
38994
38995         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
38996
38997 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38998
38999         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
39000
39001 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39002
39003         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
39004         Do not check for alloca.h (no longer used) or stdbool.h (was never
39005         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
39006
39007 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39008
39009         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
39010
39011 2002-04-29  Jim Meyering  <meyering@lucent.com>
39012
39013         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
39014         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
39015         Use AC_FUNC_STRNLEN here instead.
39016
39017         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
39018         With autoconf-2.53a, it's part of AC_PROG_CC.
39019
39020 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39021
39022         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
39023         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
39024
39025 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39026
39027         * lib/sig2str.h, lib/sig2str.c: New files.
39028         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
39029
39030 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39031
39032         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
39033         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
39034         of 127, since 64 is the largest conceivable number for ancient
39035         nonstandard hosts.
39036         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
39037
39038 2002-04-28  Jim Meyering  <meyering@lucent.com>
39039
39040         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
39041
39042 2002-04-24  Jim Meyering  <meyering@lucent.com>
39043
39044         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
39045         (jm_PREREQ): Use it.
39046
39047         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
39048         mach/mach.h fcntl.h.
39049         Check for this function: setlocale.
39050
39051 2002-04-24  Jim Meyering  <meyering@lucent.com>
39052
39053         * lib/gettext.h: New file, from Gettext.
39054         * lib/Makefile.am (INCLUDES): Remove -I../intl.
39055         (libfetish_a_SOURCES): Add gettext.h.
39056
39057 2002-04-16  Jim Meyering  <meyering@lucent.com>
39058
39059         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
39060         ut_pid, ut_id, ut_exit.
39061
39062 2002-04-16  Jim Meyering  <meyering@lucent.com>
39063
39064         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
39065         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
39066         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
39067
39068 2002-04-12  Jim Meyering  <meyering@lucent.com>
39069
39070         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
39071         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
39072         existence of the getmntinfo function.  Needed for Darwin 5.3.
39073
39074         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
39075         This is necessary at least on Darwin 5.3.
39076
39077         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
39078         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
39079         strnlen.o in the library, and that makes some versions of ranlib
39080         object.
39081
39082 2002-04-12  Jim Meyering  <meyering@lucent.com>
39083
39084         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
39085
39086 2002-04-09  Jim Meyering  <meyering@lucent.com>
39087
39088         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
39089         to be more precise.  Rather than saying we're checking whether the
39090         function `works', say what we're testing.
39091         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
39092         Reported by Bruno Haible.
39093
39094 2002-03-10  Jim Meyering  <meyering@lucent.com>
39095
39096         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
39097         Suggestion from Santiago Vila.
39098
39099 2002-03-08  Jim Meyering  <meyering@lucent.com>
39100
39101         * lib/rename.c: Mention that this wrapper is needed also on
39102         mips-dec-ultrix4.4 systems.
39103
39104 2002-03-02  Jim Meyering  <meyering@lucent.com>
39105
39106         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
39107         not HAVE_CLOCK_SETTIME.
39108
39109 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39110
39111         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
39112         Check for clock_settime.
39113
39114 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39115
39116         * lib/nanosleep.h: Rename to....
39117         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
39118
39119         * lib/gettime.c: New file.
39120         * lib/settime.c: New file.
39121         * lib/stime.c: Remove.
39122
39123         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
39124         timespec.h.  Remove nanosleep.h.
39125
39126 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39127
39128         * m4/acl.m4: New file.
39129         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
39130         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
39131
39132 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39133
39134         * lib/acl.c, lib/acl.h: New files.
39135         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
39136
39137 2002-02-24  Jim Meyering  <meyering@lucent.com>
39138
39139         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
39140         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
39141         cause trouble.  Reported by Nelson Beebe.
39142
39143 2002-02-23  Paul Eggert  <eggert@twinsun.com>
39144
39145         * lib/path-concat.c (xpath_concat): Reorder code to pacify
39146         compilers that don't know that xalloc_die never returns.
39147
39148 2002-02-20  Jim Meyering  <meyering@lucent.com>
39149
39150         * lib/getdate.c: Regenerate using bison-1.33.
39151
39152 2002-02-17  Jim Meyering  <meyering@lucent.com>
39153
39154         * config/config.guess (main): Don't use `head -1'; it's no longer
39155         portable. Use `sed 1q' instead.
39156
39157 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
39158
39159         * m4/codeset.m4: Upgrade to gettext-0.11.
39160         * m4/gettext.m4: Upgrade to gettext-0.11.
39161         * m4/glibc21.m4: Upgrade to gettext-0.11.
39162         * m4/iconv.m4: Upgrade to gettext-0.11.
39163         * m4/isc-posix.m4: Upgrade to gettext-0.11.
39164         * m4/lcmessage.m4: Upgrade to gettext-0.11.
39165         * m4/lib-ld.m4: New file, from gettext-0.11.
39166         * m4/lib-link.m4: New file, from gettext-0.11.
39167         * m4/lib-prefix.m4: New file, from gettext-0.11.
39168         * m4/progtest.m4: Upgrade to gettext-0.11.
39169
39170 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39171
39172         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
39173         (jm_PREREQ): Use it.
39174
39175 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39176
39177         * lib/posixver.c, lib/posixver.h: New files.
39178         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39179
39180 2002-02-02  Paul Eggert  <eggert@twinsun.com>
39181             Bruno Haible  <bruno@clisp.org>
39182
39183         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
39184         (fwrite_success_callback): New declaration.
39185         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
39186         print_unicode_char. Call failure callback instead of error.
39187         (fwrite_success_callback): New function.
39188         (exit_failure_callback): New function.
39189         (fallback_failure_callback): New function.
39190         (print_unicode_char): Call unicode_to_mb.
39191
39192 2002-01-26  Jim Meyering  <meyering@lucent.com>
39193
39194         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
39195         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
39196
39197 2002-01-26  Jim Meyering  <meyering@lucent.com>
39198
39199         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
39200
39201 2002-01-22  Paul Eggert  <eggert@twinsun.com>
39202
39203         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
39204
39205 2002-01-22  Jim Meyering  <meyering@lucent.com>
39206
39207         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
39208         Otherwise, some versions of automake would omit the rule that makes
39209         Makefile from Makefile.in.
39210
39211 2002-01-21  Paul Eggert  <eggert@twinsun.com>
39212
39213         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
39214         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39215         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
39216         (memcoll): Set errno to zero if there is no error.
39217
39218         * lib/quotearg.c (quotearg_buffer_restyled):
39219         Fix bug with quoting buffers containing NUL when backslashing escapes.
39220         This bug was exposed by the other changes in this patch.
39221         (quotearg_n_options): New arg ARGSIZE.
39222         All callers changed.
39223         (quoting_options_from_style): New function.
39224         (quotearg_n_style): Use it.
39225         (quotearg_n_style_mem): New function.
39226
39227         * lib/quotearg.h (quotearg_n_style_mem): New function.
39228
39229 2002-01-19  Jim Meyering  <meyering@lucent.com>
39230
39231         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
39232         Remove useless quotes: DF_PROG="df".
39233         * m4/strnlen.m4: New file.
39234
39235 2002-01-16  Paul Eggert  <eggert@twinsun.com>
39236
39237         * lib/backupfile.c (ISDIGIT): Comment fix.
39238         * lib/getdate.y (ISDIGIT): Likewise.
39239         * lib/posixtm.c (ISDIGIT, year): Likewise.
39240         * lib/strverscmp.c (ISDIGIT): Likewise.
39241         * lib/userspec.c (ISDIGIT): Likewise.
39242
39243 2002-01-16  Jim Meyering  <meyering@lucent.com>
39244
39245         * lib/getdate.y: Add three semicolons, each just before a closing
39246         brace. Bison (as of version 1.31) no longer papers over that mistake.
39247
39248 2002-01-05  Jim Meyering  <meyering@lucent.com>
39249
39250         * lib/version-etc.c (version_etc_copyright): Update copyright year.
39251
39252 2001-12-19  Paul Eggert  <eggert@twinsun.com>
39253
39254         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
39255         not silently exit merely because the output buffer happens to
39256         have nothing pending.
39257
39258 2001-12-18  Paul Eggert  <eggert@twinsun.com>
39259
39260         See the big note in ../ChangeLog.
39261         * lib/human.c (suffixes): Prefer K to k for 1024.
39262         (generate_suffix_backwards): New function.
39263         (human_readable_inexact): Use it.
39264         * lib/xstrtol.c (__xstrtol): If there is no number but there
39265         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
39266         Accept 'K' as well as 'k'.
39267
39268 2001-12-15  Jim Meyering  <meyering@lucent.com>
39269
39270         * lib/regex.h (__restrict_arr): Update from libc.
39271
39272         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
39273         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
39274         (STREQ): Define.
39275
39276 2001-12-14  Jim Meyering  <meyering@lucent.com>
39277
39278         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39279         Suggestion from Bruno Haible.
39280
39281 2001-12-10  Jim Meyering  <meyering@lucent.com>
39282
39283         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39284         xrealloc, Instead, include "xalloc.h".
39285         (initbuffer): Don't cast xmalloc return value to char*.
39286         (readline): Reword comment.
39287         Don't cast xrealloc return value to char*
39288         Return NULL, not 0.
39289
39290 2001-12-09  Jim Meyering  <meyering@lucent.com>
39291
39292         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39293         about `signed and unsigned type in conditional expression'.
39294         * lib/posixtm.c (posix_time_parse): Likewise.
39295
39296         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39297
39298         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39299         to avoid a pedantic warning.
39300
39301         * lib/getstr.c: Don't include assert.h.
39302         (getstr): Remove warning-evoking assertions.
39303         Return -1 if offset parameter is out of bounds.
39304         Change the type of a local from int to size_t.
39305
39306         * lib/strftime.c (my_strftime_localtime_r): Include this function
39307         definition in the `#if ! HAVE_TM_GMTOFF' block.
39308
39309         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39310         Include xalloc.h instead.
39311
39312 2001-12-02  Jim Meyering  <meyering@lucent.com>
39313
39314         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39315         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39316         included.
39317
39318         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39319         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39320
39321 2001-11-30  Akim Demaille  <akim@epita.fr>
39322
39323         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39324         before being defined.
39325
39326 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39327
39328         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39329         First arg is int, not unsigned.
39330         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39331         (SIZE_MAX, UINT_MAX): New macros.
39332         (quotearg_n_options): Abort if N is negative.
39333         Avoid overflow check on hosts where size_t is 64 bits and int
39334         is 32 bits, as overflow is impossible there.
39335         Fix off-by-one typo that caused unnecessary reallocation.
39336
39337 2001-11-27  Jim Meyering  <meyering@lucent.com>
39338
39339         * lib/tempname.c: Merge with version from libc.
39340         * lib/regex.c: Likewise.
39341
39342         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39343         systems for which STDC_HEADERS is 0, it was not included, resulting in
39344         a warning about an integer-to-pointer conversion problem with getenv.
39345         Reported by Volker Borchert.
39346
39347 2001-11-26  Jim Meyering  <meyering@lucent.com>
39348
39349         * lib/gtod.h: Remove file.
39350         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39351         * lib/gettimeofday.c: Don't include gtod.h.
39352         (GTOD_init): Remove function.
39353         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39354         Suggestion from Volker Borchert.
39355
39356 2001-11-23  Jim Meyering  <meyering@lucent.com>
39357
39358         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39359         it.
39360         * lib/hash.c (struct hash_table): Define it here instead.
39361
39362 2001-11-22  Jim Meyering  <meyering@lucent.com>
39363
39364         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39365
39366 2001-11-20  Jim Meyering  <meyering@lucent.com>
39367
39368         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39369         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39370
39371 2001-11-19  Jim Meyering  <meyering@lucent.com>
39372
39373         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39374         directory.  Use "conftestXXXXXX" as the template.
39375         Suggestion from Paul Eggert.
39376
39377         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39378         immediately, so the test doesn't mistakenly hit the max-open-files
39379         limit.
39380
39381 2001-11-18  Paul Eggert  <eggert@twinsun.com>
39382
39383         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
39384         (TEMPORARIES): New macro.
39385         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
39386         removes an artificial limitation (e.g. HP-UX 10.20, where
39387         TMP_MAX is 17576).
39388
39389 2001-11-18  Jim Meyering  <meyering@lucent.com>
39390
39391         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
39392
39393 2001-11-18  Jim Meyering  <meyering@lucent.com>
39394
39395         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
39396         on SunOS 4.
39397
39398         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39399         files will be created before anything else.
39400
39401 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39402
39403         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39404         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39405
39406 2001-11-17  Jim Meyering  <meyering@lucent.com>
39407
39408         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39409         Prompted by a report from Bob Proulx.
39410
39411         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39412         Instead, require UTILS_FUNC_MKSTEMP.
39413
39414 2001-11-17  Jim Meyering  <meyering@lucent.com>
39415
39416         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
39417         Now, that's done as part of AC_FUNC_STRTOD.
39418
39419 2001-11-17  Jim Meyering  <meyering@lucent.com>
39420
39421         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
39422         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
39423         rather than group writable.  Patch by Juan F. Codagnone.
39424
39425         * lib/readtokens.c: Remove explicit declarations of xmalloc and
39426         xrealloc, Instead, include "xalloc.h".
39427
39428         * lib/mountlist.c: Include unlocked-io.h after all system headers.
39429         Remove explicit declarations of xmalloc, xrealloc,
39430         and xstrdup.  Instead, include "xalloc.h".
39431
39432         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
39433         unlocked-io.h.
39434         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
39435         Likewise.
39436         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
39437
39438         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
39439         Reported by Padraig Brady.
39440
39441         * lib/mkstemp.c: #undef mkstemp.
39442         Include config.h.
39443         (rpl_mkstemp): Rename from mkstemp.
39444         Protoize.
39445
39446 2001-11-16  Jim Meyering  <meyering@lucent.com>
39447
39448         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
39449         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
39450         determine the amount of total physical memory, use pstat_getstatic.
39451         HPUX-11 doesn't define _SC_PHYS_PAGES.
39452         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
39453         If sysconf couldn't be used to determine the amount of available
39454         physical memory, use both pstat_getstatic and pstat_getdynamic.
39455         Based on a patch from Bob Proulx.
39456
39457 2001-11-10  Jim Meyering  <meyering@lucent.com>
39458
39459         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
39460         (jm_PREREQ): Use it.
39461
39462 2001-11-09  Jim Meyering  <meyering@lucent.com>
39463
39464         * m4/jm-macros.m4: Require autoconf-2.52f.
39465         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
39466         Use these AC_-prefixed names, not the AM_-prefixed ones.
39467
39468         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
39469
39470 2001-11-05  Jim Meyering  <meyering@lucent.com>
39471
39472         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
39473
39474 2001-11-04  Jim Meyering  <meyering@lucent.com>
39475
39476         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
39477         $DEFS.
39478
39479 2001-11-03  Jim Meyering  <meyering@lucent.com>
39480
39481         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
39482         of AC_DEFUN.
39483
39484         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
39485         know the name of the variable in the macro definition.
39486
39487 2001-11-03  Jim Meyering  <meyering@lucent.com>
39488
39489         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
39490         in argmatch_to_argument call.
39491
39492         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
39493         argument.
39494
39495         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
39496         e.g., a fault due to an attempt to free a NULL pointer.
39497
39498 2001-11-01  Jim Meyering  <meyering@lucent.com>
39499
39500         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
39501         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
39502
39503 2001-11-01  Jim Meyering  <meyering@lucent.com>
39504
39505         * lib/dirfd.c, lib/dirfd.h: New files.
39506         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
39507
39508         * lib/hash.c (hash_print) [TESTING]: Clean up.
39509
39510 2001-10-22  Paul Eggert  <eggert@twinsun.com>
39511
39512         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
39513         to avoid a warning if -Wall.
39514
39515 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
39516
39517         * README: New file
39518         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
39519         (per RMS's instructions, this is now the canonical source)
39520         * lgpl/, gpl/: New directories.
39521
39522 2001-10-21  Paul Eggert  <eggert@twinsun.com>
39523
39524         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
39525
39526 2001-10-21  Jim Meyering  <meyering@lucent.com>
39527
39528         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
39529         this code would end up calling gettext even in packages built
39530         with --disable-nls.
39531         * lib/getopt.c (_): Likewise.
39532         * lib/regex.c (_): Likewise.
39533
39534 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39535
39536         * m4/error.m4 (jm_PREREQ_ERROR):
39537         Do not invoke AC_CHECK_FUNCS with strerror_r, as
39538         AC_FUNC_STRERROR_R does that.
39539         Check for strerror declaration.
39540
39541         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
39542         are supposed to have them these days.
39543         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
39544         Merge changes from latest Autoconf CVS.
39545         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
39546         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
39547         POSIX decided to standardize on the int flavor of strerror_r.
39548
39549 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39550
39551         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
39552         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
39553         Use strerror_r that is only a macro, even if it is not a function.
39554         (strerror): Check for HAVE_DECL_STRERROR before declaring.
39555         (private_strerror): Use prototypes, not old-style function definition.
39556         (print_errno_message): New function.
39557         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
39558         char*-flavored one.
39559         (error_tail, error, error_at_line): Use it.
39560
39561 2001-10-11  Jim Meyering  <meyering@lucent.com>
39562
39563         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
39564         and quote_n (1, ... to avoid clobbering a buffer.
39565
39566 2001-10-05  Jim Meyering  <meyering@lucent.com>
39567
39568         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
39569         hash-pjw.h.
39570         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
39571         * lib/hash-pjw.h: New file.
39572
39573 2001-09-30  Jim Meyering  <meyering@lucent.com>
39574
39575         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
39576         `struct fsstat' has the `f_fstypename' member.
39577         Use that to define FS_TYPE, which is now used to make
39578         the getfsstat link test tighter.
39579
39580 2001-09-30  Jim Meyering  <meyering@lucent.com>
39581
39582         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
39583         Include <sys/ucred.h>, for Apple Darwin.
39584         Include sys/mount.h and sys/fs_types.h only if available.
39585         (FS_TYPE): Define.
39586         (read_filesystem_list): Use FS_TYPE.
39587
39588 2001-09-29  Paul Eggert  <eggert@twinsun.com>
39589
39590         * lib/exclude.c (excluded_filename): 0 -> false, since it's
39591         a boolean context.
39592
39593 2001-09-29  Jim Meyering  <meyering@lucent.com>
39594
39595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39596         [one-argument getmntent function]): Include stdio.h before mntent.h.
39597         SunOS 4.1.x needs it for the declaration of `FILE'.
39598         Patch by Volker Borchert.
39599
39600         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39601         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
39602         sys/fs_types.h, and make the link-test for getfsstat guard #include
39603         directives with appropriate #if HAVE_*_H tests so that we can
39604         detect getfsstat on Apple Darwin1.3.7 systems.
39605         Reported by Nelson Beebe.
39606         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
39607
39608 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39609
39610         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39611         #defines strtoimax.  Also treat the other strto* functions
39612         like strtoimax.
39613
39614         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39615         Check for strtoul and strtoumax,
39616         as those declarations are made even in the signed case.
39617         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
39618         Likewise, for strtol and strtoimax.
39619
39620 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39621
39622         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39623         #defines strtoimax.  Also treat the other strto* functions
39624         like strtoimax.
39625
39626         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
39627         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
39628         (strtoimax, strtoumax): Do not declare if already defined as a macro.
39629
39630 2001-09-26  Jim Meyering  <meyering@lucent.com>
39631
39632         Most macros in unlocked-io.h had the wrong number of arguments.
39633         * lib/gen-uio: New script.
39634         (USE_UNLOCKED_IO): Define to 1 if not already defined.
39635         * lib/unlocked-io.hin: Remove file.
39636         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
39637         rather than trying to embed it here.
39638         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
39639         Reported by Padraig Brady.
39640
39641 2001-09-25  Volker Borchert  <bt@teknon.de>
39642
39643         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
39644         `result'.
39645
39646 2001-09-24  Jim Meyering  <meyering@lucent.com>
39647
39648         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
39649
39650 2001-09-23  Jim Meyering  <meyering@lucent.com>
39651
39652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
39653         instead of the mere test for existence of mntent.h.  The latter
39654         would get a false-positive on AIX 3.4 systems.
39655         In the outer getmntent if-block, don't die if neither of the getmntent
39656         tests succeeds.  Instead, just fall through and continue with the
39657         remaining tests.
39658
39659 2001-09-23  Jim Meyering  <meyering@lucent.com>
39660
39661         * lib/mountlist.c: Remove useless parentheses in #if directives.
39662         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
39663         the deprecated MOUNTED symbol is no longer defined in mntent.h.
39664
39665 2001-09-22  Jim Meyering  <meyering@lucent.com>
39666
39667         * m4/gettext.m4: New file.  From gettext.
39668         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
39669         * m4/progtest.m4: Likewise
39670         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
39671         * m4/glibc21.m4: Likewise.
39672
39673         * m4/libintl.m4: Remove.  No longer used.
39674
39675 2001-09-22  Jim Meyering  <meyering@lucent.com>
39676
39677         * lib/localcharset.c: Update from latest gettext.
39678         * lib/config.charset: Likewise.
39679
39680 2001-09-20  Jim Meyering  <meyering@lucent.com>
39681
39682         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
39683         strtoimax.
39684         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
39685         strtoumax.
39686
39687 2001-09-20  Jim Meyering  <meyering@lucent.com>
39688
39689         * lib/xstrtol.c (strtoimax): Guard declaration with
39690         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39691         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39692         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39693         (strtoumax): Likewise, for completeness (it wasn't necessary).
39694
39695 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39696
39697         * lib/strtoimax.c (HAVE_LONG_LONG):
39698         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39699         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39700         to work around bug in IBM C compiler.
39701
39702 2001-09-17  Jim Meyering  <meyering@lucent.com>
39703
39704         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
39705         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
39706         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
39707         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
39708         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
39709         whenever the right hand side need not be expanded by the shell.
39710
39711 2001-09-16  Paul Eggert  <eggert@twinsun.com>
39712
39713         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
39714         library.  It's not correct, as some older glibcs are buggy.
39715         fnmatch wasn't fixed until glibc 2.2.
39716
39717         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
39718         special shell magic here.
39719
39720 2001-09-16  Jim Meyering  <meyering@lucent.com>
39721
39722         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
39723         * m4/jm-macros.m4: Require it.
39724
39725 2001-09-16  Jim Meyering  <meyering@lucent.com>
39726
39727         * lib/mkdir.c: New file.
39728
39729 2001-09-15  Jim Meyering  <meyering@lucent.com>
39730
39731         * m4/jm-macros.m4: Check for help2man.
39732
39733 2001-09-11  Jim Meyering  <meyering@lucent.com>
39734
39735         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
39736         The body, by Paul Eggert, was moved here from configure.in.
39737         * m4/jm-macros.m4: Require UTILS_HOST_OS.
39738
39739 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39740
39741         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
39742         (jm_PREREQ): Use it.
39743
39744 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39745
39746         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
39747         Use ssize_t, not int, to store result of readlink.
39748         Check for ssize_t overflow as well as size_t overflow,
39749         as POSIX says the result of readlink is implementation-defined
39750         when ssize_t overflows.
39751         Remove unnecessary cast to char*.
39752         Use free+malloc instead of realloc, as the storage doesn't need
39753         to be preserved and it's clearer and can be more efficient that way.
39754         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
39755         * lib/xreadlink.h (xreadlink): Update prototype.
39756
39757 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39758
39759         * lib/xgetcwd.c: Revert some of the previous change; intead,
39760         fix the HAVE_GETCWD_NULL code to behave more like the
39761         !HAVE_GETCWD_NULL code used to.
39762
39763         Include "xalloc.h".
39764         (xgetcwd): Do not return NULL when memory is exhausted; instead,
39765         invoke xalloc_die.
39766
39767 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39768
39769         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
39770         sys/param.h, as pathmax.h includes them.
39771
39772 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39773
39774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
39775         (jm_PREREQ_XGETCWD): New macro.
39776
39777         * m4/getcwd.m4: New file.
39778
39779 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39780
39781         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
39782         like the HAVE_GETCWD_NULL code.
39783         Include pathmax.h if not HAVE_GETCWD.
39784         Do not include xalloc.h.
39785         (INITIAL_BUFFER_SIZE): New symbol.
39786         Do not use xmalloc / xrealloc, since the caller is responsible for
39787         handling errors.  Preserve errno around `free' during failure.
39788         Do not overrun buffer when using getwd.
39789
39790 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39791
39792         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
39793         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
39794         getcwd (NULL, 0).
39795
39796 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39797
39798         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
39799         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
39800         spotted by Jim Meyering.
39801
39802 2001-09-03  Jim Meyering  <meyering@lucent.com>
39803
39804         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
39805         failure.
39806
39807 2001-09-02  Jim Meyering  <meyering@lucent.com>
39808
39809         * lib/error.c: Update from GNU libc.
39810
39811 2001-09-01  Jim Meyering  <meyering@lucent.com>
39812
39813         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
39814         Used by df.
39815
39816 2001-09-01  Jim Meyering  <meyering@lucent.com>
39817
39818         * lib/xreadlink.c: New file.
39819         * lib/xreadlink.h: New file.
39820         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
39821         xreadlink.h.
39822
39823         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
39824         doesn't conflict with sparc Solaris 7's definition in
39825         /usr/include/sys/int_types.h.
39826
39827         * lib/exclude.c: Use `""', not `<>' to #include non-system header
39828         files.
39829         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
39830         and strncasecmp as r-values.  Unixware didn't have declarations.
39831
39832 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39833
39834         * lib/xstrtol.h: Add copyright notice.
39835         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
39836         LONGINT_INVALID_SUFFIX_CHAR.
39837
39838 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39839
39840         * lib/xstrtol.c (strtoimax): New decl.
39841
39842 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39843
39844         * lib/xgetcwd.c: Don't include pathmax.h.
39845         Include stdlib.h and unistd.h if available.
39846         Include xalloc.h.
39847         (xmalloc, xstrdup, free): Remove decls.
39848         (xgetcwd): Don't assume sizes fit in unsigned.
39849         Check for overflow when computing sizes.
39850         Simplify reallocation code.
39851
39852 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39853
39854         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
39855         a directory's st_size can have an arbitrary value, so the old
39856         usage could waste an arbitrary amount of memory.  All uses
39857         changed.
39858         * lib/savedir.h: Update prototype.
39859
39860 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39861
39862         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
39863
39864         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
39865         old strtoimax.c.
39866
39867         Also, make the following further changes to make this file's
39868         configuration more similar to that of strtol.c:
39869         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
39870         (strtoumax, uintmax_t, strtoull, strtol): Remove.
39871         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
39872         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
39873         changed to signed values.
39874
39875         And make the following changes as well:
39876         Fix copyright notice, as 1999 was missing.
39877         (verify): New macro.
39878         (strtoimax): Check sizes at compile-time, not run-time.
39879         Prefer strtol to strtoll if both work.
39880         (main): Remove; it was not that useful and was a pain to maintain.
39881
39882         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
39883
39884 2001-08-31  Jim Meyering  <meyering@lucent.com>
39885
39886         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
39887         Use an initial, malloc'd, buffer of length 128 rather than
39888         a statically allocated one of length 1024.
39889
39890 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39891
39892         Simplify code, partly by assuming autoconf 2.52 semantics.
39893
39894         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
39895
39896         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
39897         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
39898         All uses removed.
39899         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
39900         Move AC_REQUIRE to next-to-top level, to avoid confusion.
39901         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
39902         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
39903         jm_AC_HEADER_INTTYPES_H.
39904         * m4/jm-macros.m4 (jm_MACROS): Likewise.
39905
39906         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
39907
39908         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39909         Quote first arg of AC_DEFUN.
39910         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
39911         since they are needed to parse the include file even if we need
39912         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
39913         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
39914         but with opposite signedness.
39915
39916 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39917
39918         Merge 'exclude' changes from tar 1.13.22.
39919         This fixes one or two unlikely storage allocation overflow bugs,
39920         but doesn't change user-visible behavior otherwise.
39921
39922 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39923
39924         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
39925         (jm_PREREQ_EXCLUDE): New macro.
39926
39927 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39928
39929         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
39930         tm to be declared.
39931
39932 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39933
39934         * lib/hash.c: Remove '2001' from copyright notice.
39935
39936 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39937
39938         * lib/full-write.h: New file.
39939         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
39940         * lib/full-write.c: Correct credits, as cccp.c no longer
39941         exists and anyway it was so heavily changed from the old cccp
39942         code as to be unrecognizable.  Include full-write.h.
39943         (full_write) Return size_t, with short writes meaning failure.
39944         All callers changed.  This fixes a bug with large buffers
39945         on 64-bit hosts.
39946         * lib/utime.c: Include full-write.h.
39947
39948 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39949
39950         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
39951         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
39952         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
39953         Include if available.
39954         (<xalloc.h>): Include
39955         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
39956         (verify): New macro.  Use it to verify that EXCLUDE macros do not
39957         collide with FNM macros.
39958         (struct patopts): New struct.
39959         (struct exclude): Use it, as exclude patterns now come with options.
39960         (new_exclude): Support above changes.
39961         (new_exclude, add_exclude_file):
39962         Initial size must now be a power of two to simplify overflow checking.
39963         (free_exclude, fnmatch_no_wildcards): New function.
39964         (excluded_filename): No longer requires options arg, as the options
39965         are determined by add_exclude.  Now returns bool, not int.
39966         (excluded_filename, add_exclude):
39967         Add support for the fancy new exclusion options.
39968         (add_exclude, add_exclude_file): Now takes int options arg.
39969         Check for arithmetic overflow when computing sizes.
39970         (add_exclude_file): xrealloc might modify errno, so don't
39971         realloc until after errno might be used.
39972
39973         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
39974         New macros.
39975         (free_exclude): New decl.
39976         (add_exclude, add_exclude_file): Now takes int options arg.
39977         (excluded_filename): No longer requires options arg, as the options
39978         are determined by add_exclude.  Now returns bool, not int.
39979
39980 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39981
39982         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
39983
39984 2001-08-27  Jim Meyering  <meyering@lucent.com>
39985
39986         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
39987
39988         * lib/version-etc.c (N_): Remove definition.
39989         Revert most of last change.
39990         Instead, simply don't mark the `Copyright...' string for translation.
39991         Based on advice from Paul Eggert.
39992
39993         * lib/strtoxmax.c: Tweak comment.
39994
39995 2001-08-26  Jim Meyering  <meyering@lucent.com>
39996
39997         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
39998
39999         * m4/xstrtoimax.m4: New file.
40000         * m4/xstrtoumax.m4: Add comments explaining why we
40001         AC_REPLACE_FUNCS(strtol).
40002
40003 2001-08-26  Jim Meyering  <meyering@lucent.com>
40004
40005         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
40006         of copyright with `%s' so translators don't get an untranslated
40007         message in 2002.
40008         (COPYRIGHT_YEAR): Define.
40009         (version_etc): Use fprintf rather than fputs.
40010         Suggestion from Ulrich Drepper.
40011
40012         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
40013
40014         * lib/strtoll.c: New file, from GNU libc.
40015         * lib/xstrtoimax.c: New file.
40016
40017         * lib/xstrtol.h: Add xstrtoimax.
40018         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
40019         * lib/strtoimax.c: New file.  Likewise, but first define
40020         STRTOUXMAX_SIGNED.
40021
40022         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
40023         ...
40024         * lib/strtoxmax.c: ... then renamed to this.
40025
40026 2001-08-18  Paul Eggert  <eggert@twinsun.com>
40027
40028         * m4/inttypes.m4: Add AC_PREREQ(2.13).
40029         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
40030         (jm_AC_TYPE_INTMAX_T): New macro.
40031         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
40032
40033         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
40034
40035         * m4/longlong.m4: Renamed from ulonglong.m4.
40036         * m4/inttypes.m4: Renamed from inttypes_h.m4.
40037         * m4/uintmax_t.m4: Removed.
40038
40039 2001-08-13  Paul Eggert  <eggert@twinsun.com>
40040
40041         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
40042         Port to Solaris 8, where 'sed' requires a space after the 'r'
40043         command, and where sh dislikes "$/".  Clean up the spacing a bit.
40044         Redirect output to $tmp just once.
40045
40046 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
40047
40048         * lib/addext.c (<errno.h>): Include.
40049         (errno): Declare if not defined.
40050         (addext): Work correctly when pathconf returns -1 and leaves
40051         errno alone because there is no limit.  Also, work even if
40052         pathconf returns a value greater than SIZE_MAX.
40053
40054 2001-08-12  Jim Meyering  <meyering@lucent.com>
40055
40056         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
40057         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
40058         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
40059         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
40060         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
40061         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
40062         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
40063         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
40064         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
40065         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
40066         utime.m4, utimes.m4, xstrtoumax.m4:
40067         Quote the first argument in each use of AC_DEFUN.
40068
40069 2001-08-12  Jim Meyering  <meyering@lucent.com>
40070
40071         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
40072         Simply `return getcwd (NULL, 0);'.
40073         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
40074         Use 1300 as initial value for length, not PATH_MAX.
40075
40076         * lib/pathmax.h: Clean up cpp syntax.
40077
40078 2001-08-12  Jim Meyering  <meyering@lucent.com>
40079
40080         * lib/gettimeofday.c: New file.
40081         * lib/gtod.h: New file.
40082         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
40083
40084 2001-08-05  Jim Meyering  <meyering@lucent.com>
40085
40086         * m4/jm-macros.m4: Require autoconf-2.52.
40087
40088 2001-08-04  Jim Meyering  <meyering@lucent.com>
40089
40090         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
40091         stmt, to get in sync with glibc.
40092
40093 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40094
40095         The following changes are from gettext 0.10.39 as maintained by
40096         Bruno Haible.
40097
40098         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
40099         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
40100         with inverted sense.  All uses changed.
40101
40102         * lib/mbswidth.c: Don't include <limits.h>.
40103         Include <stdlib.h> and <string.h> unconditionally.
40104         (iswcntrl, mbsinit, ISCNTRL): New macros.
40105         (mbsnwidth): Use K&R style function declarations.
40106         Don't bother checking for MB_LEN_MAX == 1, since the compiler
40107         can optimize it when MB_CUR_MAX == 1.
40108         The width of control characters is zero, not 1.
40109
40110 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40111
40112         The following changes are from gettext 0.10.39 as maintained by
40113         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
40114
40115         * m4/codeset.m4: Upgrade to serial AM1.
40116         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
40117         all uses changed.  Quote first arg of AC_DEFUN.
40118         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
40119
40120         * m4/iconv.m4: Upgrade to serial AM2.
40121         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
40122         Add --with-libconv-prefix.
40123         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
40124         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
40125         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
40126         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
40127         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
40128
40129         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
40130         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
40131         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
40132         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
40133         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
40134         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
40135         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40136         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
40137         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
40138
40139         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
40140         string.h any more.
40141
40142         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
40143         not the default value.
40144
40145         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
40146         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
40147         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
40148         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
40149         Also check for iswcntrl, used for wcwidth fallback.
40150         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
40151         to Autoconf 2.13.
40152
40153 2001-08-03  Jim Meyering  <meyering@lucent.com>
40154
40155         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
40156         as it was in the original.  Reported by Paul Eggert.
40157
40158 2001-07-16  Jim Meyering  <meyering@lucent.com>
40159
40160         * m4/gettimeofday.m4: New file.
40161         Prompted by a report from Bernhard Baehr.
40162
40163 2001-07-15  Jim Meyering  <meyering@lucent.com>
40164
40165         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
40166         stuff. Now it's in ../Makefile.cfg.
40167
40168 2001-07-15  Jim Meyering  <meyering@lucent.com>
40169
40170         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
40171         (BUILT_SOURCES): Add unlocked-io.h.
40172         (io_functions): Define.
40173         (unlocked-io.h): New rule.
40174         (DISTCLEANFILES): Add unlocked-io.h.
40175         (all-local): Depend on unlocked-io.h, to ensure it is created.
40176
40177         * lib/unlocked-io.hin: New file
40178
40179         * lib/regex.c: Update from glibc.
40180
40181 2001-07-05  Jim Meyering  <meyering@lucent.com>
40182
40183         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
40184         recommendation.
40185         (libfetish_a_SOURCES): Put all .h files here instead.
40186         Remove a thus-exposed (better checks in automake) duplicate and
40187         two unnecessary .h files.
40188
40189 2001-07-04  Jim Meyering  <meyering@lucent.com>
40190
40191         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
40192         that generates jm-glibc-io.m4 so that it doesn't trigger any make
40193         distcheck failure.
40194
40195 2001-07-02  Jim Meyering  <meyering@lucent.com>
40196
40197         The following changes were prompted by suggestions from Bruno Haible.
40198
40199         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
40200         is now generated.
40201         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
40202         definition of EXTRA_DIST.
40203         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
40204         ensure that the generated file is created/updated whenever the list
40205         of $(unlocked_functions) is changed.
40206         (jm-glibc-io.m4): New rule.
40207         (unlocked-io.h): New rule -- currently unused.
40208
40209 2001-06-24  Jim Meyering  <meyering@lucent.com>
40210
40211         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
40212         unmatched right bracket, rather than kludging it with an extra,
40213         falsely-matching quote in a comment.  Patch by Akim Demaille.
40214
40215 2001-06-11  Jim Meyering  <meyering@lucent.com>
40216
40217         * lib/regex.c: Update from GNU libc.
40218
40219 2001-05-27  Jim Meyering  <meyering@lucent.com>
40220
40221         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
40222         Check for ut_type in struct utmp.
40223
40224 2001-05-27  Jim Meyering  <meyering@lucent.com>
40225
40226         * lib/readutmp.h (UT_TYPE): Define.
40227
40228 2001-05-24  Jim Meyering  <meyering@lucent.com>
40229
40230         * lib/argmatch.c: Include "quote.h".
40231         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
40232         quote function.  Reported by Göran Uddeborg.
40233
40234 2001-05-22  Jim Meyering  <meyering@lucent.com>
40235
40236         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
40237         now that we use the package-supplied version unconditionally.
40238         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
40239
40240 2001-05-21  Jim Meyering  <meyering@lucent.com>
40241
40242         * m4/regex.m4: Change a couple backticks to single quotes to avoid
40243         shell syntax errors.
40244
40245 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40246
40247         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
40248
40249 2001-05-20  Paul Eggert  <eggert@twinsun.com>
40250
40251         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
40252         Don't bother to check library strftime, since
40253         we'll be using our own my_strftime function anyway.
40254         Define my_strftime instead of strftime.
40255
40256 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
40257
40258         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
40259         which is not yet declared.
40260
40261 2001-05-15  Jim Meyering  <meyering@lucent.com>
40262
40263         * m4/regex.m4: Use proper quoting so brackets appear in the test
40264         program.
40265         Reported by, and with help from, Bruno Haible.
40266
40267 2001-05-13  Jim Meyering  <meyering@lucent.com>
40268
40269         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
40270         undefined.
40271
40272 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40273
40274         dirname code cleanup.  base_name now behaves more compatibly
40275         with POSIX basename when given file names that have trailing
40276         slashes, and similarly for dir_name.  Add new primitives
40277         base_len and dir_len.  Put the directory-name-related decls
40278         into dirname.h.
40279
40280         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40281         * lib/backupfile.c (base_name): Likewise.
40282         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40283         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40284         * lib/makepath.c (strip_trailing_slashes): Likewise.
40285         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40286         ISSLASH): Likewise.
40287         * lib/rename.c (strip_trailing_slashes): Likewise.
40288         * lib/same.c (base_name): Likewise.
40289         * lib/stripslash.c (ISSLASH): Likewise.
40290
40291         * lib/addext.c: Include <dirname.h> after size_t is defined.
40292         * lib/backupfile.c: Likewise.
40293
40294         * lib/addext.c (addext): Use base_len to trim redundant
40295         trailing slashes instead of doing it ourselves.
40296         But do not trim the last slash if it is not redundant.
40297
40298         * lib/backupfile.c (find_backup_file_name,
40299         max_backup_version): Use base_len instead of rolling it ourselves.
40300         Handle the case of "" and (on DOS) "C:" correctly.
40301
40302         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40303         needed. Include <string.h>, <dirname.h>.
40304         (base_name): Allow file names ending in slashes, other than names
40305         that are all slashes.  In this case, return the basename followed
40306         by the slashes.  This is more general, and can be used in places
40307         where the original base_name purposely had an assertion failure.
40308         (base_len): New function.
40309
40310         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40311         Do not include <assert.h>; no longer needed.
40312         Include xalloc.h.
40313         (memrchr): Remove decl.
40314         (dir_name_r): Remove.
40315         (dir_len): Renamed from dirlen.  All callers changed.
40316         Rewrite in terms of base_name, for simplicity and consistency.
40317         (dir_name): Never return NULL.  All callers changed.
40318         Do not include <stdlib.h> in test program; no longer needed.
40319         return 0; is fine for test program.
40320
40321         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40322         New macros.
40323         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40324
40325         * lib/path-concat.c (path_concat): Use base_len to compute
40326         base length, not strlen; this means we cannot rely on memcpy
40327         to null-terminate.
40328
40329         * lib/same.c (STREQ): Remove.
40330         (same_name): Handle the case where the basename ends in trailing '/'.
40331
40332         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40333         a slash was stripped.  Do not strip the last slash after a
40334         file system prefix.
40335
40336 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40337
40338         * lib/Makefile.am (libfetish_a_SOURCES):
40339         Add strftime.c, since we now compile it on all hosts.
40340
40341         * lib/strftime.c (my_strftime):
40342         Define to nstrftime if emacs, but only if my_strftime is not defined.
40343         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40344         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40345         Add one more extra argument: a nanoseconds value.
40346         All uses changed.
40347         (ns): New macro.
40348         (my_strftime function): Add %N format.
40349         (emacs_strftimeu): Renamed from emacs_strftime,
40350         with extra ut argument.
40351
40352 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40353
40354         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40355
40356 2001-04-21  Jim Meyering  <meyering@lucent.com>
40357
40358         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40359         doesn't interfere.
40360
40361 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40362
40363         * m4/ftruncate.m4: Check for chsize.
40364         Link with ftruncate.o unconditionally if ftruncate is missing.
40365         This was required when cross-compiling to i586-mingw32msvc.
40366
40367 2001-04-08  Jim Meyering  <meyering@lucent.com>
40368
40369         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40370         recomputed; that's necessary when the offset spans a DST transition.
40371         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40372
40373 2001-04-02  Jim Meyering  <meyering@lucent.com>
40374
40375         * lib/regex.h, regex.c: Update from GNU libc.
40376
40377 2001-03-24  Jim Meyering  <meyering@lucent.com>
40378
40379         * m4/jm-macros.m4: Require autoconf-2.49d.
40380
40381 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
40382
40383         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
40384
40385 2001-03-19  Paul Eggert  <eggert@twinsun.com>
40386
40387         * lib/version-etc.c (version_etc_copyright): Update to 2001.
40388
40389 2001-03-17  Jim Meyering  <meyering@lucent.com>
40390
40391         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
40392         now that the version in autoconf is equivalent.
40393         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
40394
40395         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
40396         Suggestion from Akim Demaille.
40397
40398         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40399         (jm_PREREQ_TEMPNAME): New function.
40400
40401 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40402
40403         * lib/tempname.c (uint64_t): Define to uintmax_t if
40404         not defined, and if UINT64_MAX is not defined.
40405         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40406         Reported by John David Anglin.
40407
40408 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40409
40410         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40411         resolve alias if codeset is empty.
40412         * lib/config.charset (BeOS): Use wildcard syntax.
40413
40414 2001-03-13  Jim Meyering  <meyering@lucent.com>
40415
40416         * lib/path-concat.c (path_concat)
40417         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
40418         concatenating e.g., `C:' and `foo'.
40419         From Bruno Haible.
40420
40421 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40422
40423         * lib/localcharset.c (locale_charset): Don't use
40424         setlocale(LC_CTYPE,NULL). Don't return NULL.
40425         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
40426
40427 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40428
40429         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
40430         support for DOS/DJGPP.
40431
40432 2001-03-01  Paul Eggert  <eggert@twinsun.com>
40433
40434         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
40435         lacks mkstemp.  Compile our own tempname.c if we compile our own
40436         mkstemp.c, as mkstemp relies on tempname.
40437
40438 2001-03-01  Jim Meyering  <meyering@lucent.com>
40439
40440         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
40441         AH_VERBATIM really does output its argument verbatim.
40442
40443 2001-02-28  Paul Eggert  <eggert@twinsun.com>
40444
40445         * lib/Makefile.am (libfetish_a_SOURCES):
40446         Add dup-safer.c, fopen-safer.c.
40447         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
40448
40449         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
40450         * lib/unistd-safer.h: New files.
40451
40452 2001-02-25  Paul Eggert  <eggert@twinsun.com>
40453
40454         The mkstemp replacement is taken from glibc 2.2.2, with some
40455         portability fixes for use outside glibc, as follows:
40456
40457         * lib/tempname.c (struct_stat64): New macro.
40458         (direxists, __gen_tempname): Use it.
40459         This avoids a portability problem with Solaris 8.
40460
40461         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
40462         (<stddef.h>, <stdint.h>, <string.h>):
40463         Include only if STDC_HEADERS || _LIBC.
40464         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
40465         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
40466         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
40467         (__set_errno): Define this macro if <errno.h> doesn't.
40468         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
40469         Define these macros if <stdio.h> doesn't.
40470         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
40471         Define these macros if <sys/stat.h>
40472         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
40473         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
40474         __xstat64): Define if not _LIBC.
40475         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
40476         (__gen_tempname): Invoke gettimeofday only if
40477         HAVE_GETTIMEOFDAY || _LIBC;
40478         otherwise, fall back on plain "time".
40479         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
40480
40481         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
40482
40483         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
40484
40485 2001-02-18  Paul Eggert  <eggert@twinsun.com>
40486
40487         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
40488
40489 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40490
40491         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
40492         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
40493         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
40494         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40495
40496 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40497
40498         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
40499         Remove workaround macros for hosts that have mbrtowc but not
40500         mbstate_t, as we now insist on proper declarations for both
40501         before using mbrtowc.
40502
40503 2001-02-17  Jim Meyering  <meyering@lucent.com>
40504
40505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
40506         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
40507         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
40508         UnixWare 7.1.1.
40509
40510         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
40511         rather than AC_CACHE_VAL.
40512
40513 2001-02-17  Jim Meyering  <meyering@lucent.com>
40514
40515         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
40516         around included file name.
40517
40518         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
40519
40520         * lib/strftime.c: Update from GNU libc (the only changes were to
40521         comments).
40522
40523 2001-02-17  Jim Meyering  <meyering@lucent.com>
40524
40525         * lib/regex.c: Update from libc.
40526
40527 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
40528
40529         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
40530         clash.
40531
40532 2001-02-16  Paul Eggert  <eggert@twinsun.com>
40533
40534         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
40535         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
40536         Reported by Mark Hounschell via Paul Eggert.
40537
40538 2001-02-07  Jim Meyering  <meyering@lucent.com>
40539
40540         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
40541
40542 2001-02-05  Jim Meyering  <meyering@lucent.com>
40543
40544         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
40545         it includes the patch required for `large file' support with at least
40546         HP-UX's 10.20 /bin/cc.
40547
40548 2001-02-03  Jim Meyering  <meyering@lucent.com>
40549
40550         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
40551         AS_IF, now that it works once again (mysteriously).
40552         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40553
40554 2001-01-30  Jim Meyering  <meyering@lucent.com>
40555
40556         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
40557         * m4/chown.m4: Rename conftestchown to conftest.chown.
40558         * m4/rename.m4: s/conftestdir/conftest.d1/ and
40559         s/conftestdir2/conftest.d2/.
40560         * m4/utimes.m4: s/conftestdata/conftest.data/
40561         Inspired by Pavel Roskin's change in autoconf.
40562
40563 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
40564
40565         * lib/config.charset: Update for FreeBSD 4.2.
40566
40567 2001-01-27  Jim Meyering  <meyering@lucent.com>
40568
40569         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
40570         a use of AS_IF.
40571         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40572
40573 2001-01-26  Jim Meyering  <meyering@lucent.com>
40574
40575         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
40576         quotearg.c includes it.
40577
40578 2001-01-26  Jim Meyering  <meyering@lucent.com>
40579
40580         * lib/quotearg.c: Include stddef.h.
40581         * lib/quote.c: Include stddef.h.
40582         Reported by Axel Kittenberger.
40583
40584         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
40585         line in double quotes so that it evokes a better diagnostic.
40586         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
40587         Reported by Axel Kittenberger.
40588
40589 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
40590
40591         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
40592         as if it was a `charset'.
40593
40594 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40595
40596         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
40597         has const.
40598
40599 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40600
40601         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
40602         to avoid a warning.  Add back 'const' to inptr.
40603
40604 2001-01-20  Jim Meyering  <meyering@lucent.com>
40605
40606         Be sure that headers are checked before used in code compiled
40607         for the type checks.
40608         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
40609         In place of that, invoke jm_CHECK_ALL_TYPES.
40610         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
40611         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
40612         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
40613         The check for ssize_t was mistakenly run before the test for unistd.h.
40614
40615         The configure-time check for stdbool.h was missing.
40616         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
40617         (jm_PREREQ_HASH): New function.
40618
40619 2001-01-17  Jim Meyering  <meyering@lucent.com>
40620
40621         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
40622         for autoconf-2.49c.
40623         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
40624
40625 2001-01-16  Jim Meyering  <meyering@lucent.com>
40626
40627         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
40628         From Bruno Haible.
40629
40630 2001-01-14  Jim Meyering  <meyering@lucent.com>
40631
40632         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
40633         foo and bar.  Create conftestdir/ in the script, not in the C code.
40634         Remove directories in the script, not in the C code.
40635         Remove conftestdir{,2} before trying to create the directory.
40636         Make the entire configure script fail if the mkdir fails.
40637
40638 2001-01-14  Jim Meyering  <meyering@lucent.com>
40639
40640         * lib/rename.c: New file.  From Volker Borchert.
40641         Include stdlib.h, string.h or strings.h, and xalloc.h.
40642         Use strip_trailing_slashes rather than open-coding it.
40643
40644 2001-01-03  Paul Eggert  <eggert@twinsun.com>
40645
40646         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
40647
40648 2001-01-03  Jim Meyering  <meyering@lucent.com>
40649
40650         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
40651         of local `inptr' to avoid warning with some system declarations of
40652         iconv.
40653
40654 2001-01-02  Volker Borchert  <bt@teknon.de>
40655
40656         * m4/rename.m4: New file.
40657         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
40658
40659 2001-01-01  Jim Meyering  <meyering@lucent.com>
40660
40661         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
40662         even on systems with utmpx.h.  It's necessary for the declaration of
40663         utmp's ut_user member.  Reported by Andreas Jaeger.
40664
40665         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
40666         available. They are required for the declarations of getgrgid and
40667         getpwuid resp.
40668         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
40669         Reported by Andreas Jaeger.
40670
40671 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
40672
40673         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
40674         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
40675         so `make install' also works in VPATH builds.
40676
40677 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
40678
40679         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
40680         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
40681         can be used in subdirectories.
40682
40683 2000-12-29  Paul Eggert  <eggert@twinsun.com>
40684
40685         * lib/modechange.c: Do not assume that mode_t uses the
40686         traditional octal encoding.  E.g. "chmod 1 FOO" should set
40687         the other-execute bit of FOO even if S_IXOTH != 1.
40688
40689         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40690         WOTH, XOTH, ALLM): New macros.
40691         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40692          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40693         Use them.
40694         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40695         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40696         (mode_compile):
40697         No need to use uintmax_t; unsigned long is long enough.
40698         Don't bother to get suffix since we don't use it.
40699
40700 2000-12-26  Jim Meyering  <meyering@lucent.com>
40701
40702         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40703         better with autoheader.
40704
40705 2000-12-24  Jim Meyering  <meyering@lucent.com>
40706
40707         * lib/hash.c (is_prime): Return explicit boolean values.
40708         (hash_get_first): Return NULL to appease Irix5.6's 89.
40709         Reported by Nelson Beebe.
40710
40711 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
40712
40713         * lib/localcharset.c (locale_charset): Add support for Win32.
40714
40715 2000-12-18  Paul Eggert  <eggert@twinsun.com>
40716
40717         * lib/physmem.h, lib/physmem.c: New files.
40718
40719         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
40720         (noinst_HEADERS): Add physmem.h.
40721
40722         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
40723         't' for compatibility with Solaris 8 sort.
40724
40725 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
40726
40727         * lib/config.charset: Add support for BeOS.
40728
40729 2000-12-17  Jim Meyering  <meyering@lucent.com>
40730
40731         * m4/dos.m4 (jm_AC_DOS): New file and macro.
40732         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
40733
40734 2000-12-16  Jim Meyering  <meyering@lucent.com>
40735
40736         This bug had a serious impact on chown: `chown N:M FILE' (for integer
40737         N and M) would have treated it like `chown N:N FILE'.
40738
40739         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
40740
40741 2000-12-16  Jim Meyering  <meyering@lucent.com>
40742
40743         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
40744         SHELLS_FILE to a file name that's useful on djgpp systems.
40745         Include stdlib.h.
40746         (ADDITIONAL_DEFAULT_SHELLS): Define.
40747         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
40748         Based mostly on a patch from Prashant TR.
40749
40750 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
40751
40752         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
40753         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
40754         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
40755
40756 2000-12-08  Andreas Schwab  <schwab@suse.de>
40757
40758         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
40759         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
40760
40761 2000-12-07  Jim Meyering  <meyering@lucent.com>
40762
40763         * lib/stripslash.c (ISSLASH): Define.
40764         (strip_trailing_slashes): Use ISSLASH rather than comparing against
40765         `/'.
40766         From Prashant TR.
40767
40768         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
40769         (dir_name_r): Declare this function as static.
40770         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
40771         manifest itself on a name containing a mix of slashes and
40772         backslashes.
40773         Make this function work with names starting with a DOS-style
40774         drive letter and colon prefix.
40775         (dir_name): Append `.' if necessary.
40776         Based mostly on patches from Prashant TR and Eli Zaretskii.
40777
40778         * lib/dirname.h (dir_name_r): Remove prototype.
40779
40780 2000-12-06  Paul Eggert  <eggert@twinsun.com>
40781
40782         * m4/off_t-format.m4: Remove this file.
40783         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
40784
40785 2000-12-06  Jim Meyering  <meyering@lucent.com>
40786
40787         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
40788         replacement strtoull, we may well need the replacement strtoul, too.
40789         Check for declarations of strtoul and strtoull.
40790         Check for strtol.  Mainly as a cue to cause automake to include
40791         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
40792         Check for limits.h -- strtol.c needs it.
40793
40794 2000-12-05  Jim Meyering  <meyering@lucent.com>
40795
40796         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
40797
40798 2000-12-04  Jim Meyering  <meyering@lucent.com>
40799
40800         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
40801         Also include memory.h, stdlib.h, unistd.h if appropriate.
40802         Reported by Andreas Jaeger (conflicting declaration of malloc).
40803
40804 2000-12-02  Jim Meyering  <meyering@lucent.com>
40805
40806         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
40807         * m4/jm-macros.m4 (jm_MACROS): require it.
40808
40809 2000-12-02  Jim Meyering  <meyering@lucent.com>
40810
40811         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
40812
40813 2000-12-01  Paul Eggert  <eggert@twinsun.com>
40814
40815         * lib/memrchr.c: Include <config.h> before any system include file.
40816
40817 2000-11-30  Jim Meyering  <meyering@lucent.com>
40818
40819         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
40820
40821 2000-11-30  Jim Meyering  <meyering@lucent.com>
40822
40823         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
40824
40825 2000-11-29  Paul Eggert  <eggert@twinsun.com>
40826
40827         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
40828
40829 2000-11-26  Jim Meyering  <meyering@lucent.com>
40830
40831         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
40832
40833 2000-11-22  Paul Eggert  <eggert@twinsun.com>
40834
40835         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
40836         size of (size_t) -1; it's not portable.
40837
40838 2000-11-17  Jim Meyering  <meyering@lucent.com>
40839
40840         * lib/strstr.c: Update from GNU libc.
40841
40842 2000-11-17  Akim Demaille  <akim@epita.fr>
40843
40844         * lib/obstack.h: Formatting changes.
40845         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
40846         prevent type checking.
40847         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
40848         cast the value to (void *): assigning a `foo *' to a `void *'
40849         variable is valid.
40850         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
40851
40852 2000-11-16  Jim Meyering  <meyering@lucent.com>
40853
40854         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
40855
40856 2000-11-11  Jim Meyering  <meyering@lucent.com>
40857
40858         * lib/error.c: Add a couple #includes, merging from GNU libc version.
40859
40860 2000-11-10  Jim Meyering  <meyering@lucent.com>
40861
40862         * lib/obstack.h: Update from GNU libc.
40863         * lib/obstack.c: Likewise.
40864
40865 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
40866
40867         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
40868
40869 2000-11-06  Paul Eggert  <eggert@twinsun.com>
40870
40871         * lib/getusershell.c (setusershell): Use rewind rather than
40872         fseek/fseeko, to avoid configuration hassles with fseeko.
40873         Don't bother opening SHELLS_FILE if shellstream is NULL;
40874         it's not necessary.
40875
40876 2000-11-05  Jim Meyering  <meyering@lucent.com>
40877
40878         * lib/makepath.h (make_dir): Declare.
40879         * lib/makepath.c (make_dir): Remove `static' attribute.
40880         Tweak a comment.
40881
40882 2000-11-04  Jim Meyering  <meyering@lucent.com>
40883
40884         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
40885
40886 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
40887
40888         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
40889         last one in a bucket, advance to the next bucket.
40890
40891 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
40892
40893         * lib/fnmatch.c: Do not comment out all the code if we are using
40894         the GNU C library, because in some cases we are replacing buggy
40895         code in the GNU C library itself.
40896
40897 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
40898
40899         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
40900         (regex_compile): Catch bogus \(\1\).
40901
40902 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40903
40904         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
40905         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
40906         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
40907
40908 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40909
40910         * lib/error.h, getline.h, modechange.h:
40911         Remove "2000" from Copyright line, as the file hasn't been
40912         changed this year other than in the copyright notice.
40913
40914         * lib/xalloc.h: Add "2000" to Copyright line, as this file
40915         was changed this year.
40916
40917 2000-10-29  Jim Meyering  <meyering@lucent.com>
40918
40919         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
40920         renaming.
40921         * m4/ls-mntd-fs.m4: Likewise
40922
40923 2000-10-29  Jim Meyering  <meyering@lucent.com>
40924
40925         * lib/xstat.in: Fix grammar in comment.
40926
40927 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
40928
40929         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
40930         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
40931         doesn't define __restrict_arr.
40932
40933 2000-10-28  Jim Meyering  <meyering@lucent.com>
40934
40935         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
40936         (jm_PREREQ_MEMCHR): New function.
40937
40938 2000-10-28  Jim Meyering  <meyering@lucent.com>
40939
40940         * lib/memchr.c: Update from libc.
40941         Adjust for portability:
40942         [HAVE_STDLIB_H]: Include stdlib.h.
40943         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
40944         Undef __memchr, too.
40945         [!weak_alias]: Define __memchr to memchr.
40946
40947         * lib/regex.c: Update from libc.
40948         * lib/regex.h: Likewise.
40949         * lib/getopt1.c: Likewise.
40950         * lib/memcmp.c: Likewise.
40951
40952         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
40953         Avoid using fseek, when possible -- it's broken by design.
40954         Patch by Ulrich Drepper.
40955
40956 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
40957
40958         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
40959         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
40960         Giving in to popular pressure to shut up the compiler with casts.
40961
40962 2000-10-26  Jim Meyering  <meyering@lucent.com>
40963
40964         * lib/strftime.c: Update from libc.
40965
40966 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
40967
40968         * regex.c: More `unsigned char' -> `re_char' changes.
40969         Also change several `int' into `re_wchar_t'.
40970         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
40971         (PUSH_FAILURE_POINTER): Don't cast any more.
40972         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
40973         We want GCC to complain, since this piece of code makes
40974         re_match non-reentrant, which *should* be fixed.
40975         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
40976         (EXTEND_BUFFER): Use RETALLOC.
40977         (SET_LIST_BIT): Don't cast.
40978         (re_wchar_t): New type.
40979         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
40980         that those two functions will always properly return.
40981         (IMMEDIATE_QUIT_CHECK): Cast to void.
40982         (analyse_first): Use recursion rather than an explicit stack.
40983         (re_compile_fastmap): Can't fail anymore.
40984         (re_search_2): Don't check re_compile_fastmap for failure.
40985         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
40986         Now also sets the new value (passed in a new argument).
40987         (re_match_2_internal): Use it.
40988         Also, use a new var `reg' of type size_t when looping through regs
40989         rather than reuse the inappropriate `mcnt'.
40990
40991 2000-10-25  Jim Meyering  <meyering@lucent.com>
40992
40993         * lib/obstack.c: Update from libc.
40994
40995 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
40996
40997         * regex.c (regex_compile): Change the way of handling a range from
40998         a char less than 256 to a char not less than 256.
40999
41000 2000-10-24  Andrew Innes  <andrewi@gnu.org>
41001
41002         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
41003         NT-Emacs only.
41004         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
41005         so that re_search functions only quit when callers expect them to.
41006
41007 2000-10-23  Jim Meyering  <meyering@lucent.com>
41008
41009         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
41010         wrong.  That set_locale call must not have any side effects.
41011         From Paul Eggert.
41012
41013 2000-10-22  Jim Meyering  <meyering@lucent.com>
41014
41015         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
41016         [CYCLIC]: Remove now-unused definition.
41017
41018         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
41019         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
41020         Suggestion from Ulrich Drepper.
41021
41022 2000-10-21  Jim Meyering  <meyering@lucent.com>
41023
41024         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
41025         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
41026         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
41027
41028 2000-10-21  Jim Meyering  <meyering@lucent.com>
41029
41030         * lib/dirname.c (memrchr): Declare if necessary.
41031         (dir_name): Remove the restriction that there be no
41032         trailing slashes.  Now, this code skips past them, effectively
41033         ignoring them.
41034         [TEST_DIRNAME] (main): New unit tests.
41035
41036         * lib/memrchr.c: New file from GNU libc.
41037         Undef __memrchr, too.
41038         [!weak_alias]: Define __memrchr to memrchr.
41039         Guard weak_alias use with `#ifdef weak_alias'.
41040
41041 2000-10-21  Jim Meyering  <meyering@lucent.com>
41042
41043         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
41044         (dir_name): Use dir_name_r.
41045         * lib/dirname.h (dir_name_r): Declare it.
41046
41047 2000-10-17  Jim Meyering  <meyering@lucent.com>
41048
41049         * lib/quote.h (PARAMS): Define and use.
41050         Reported by Akim Demaille.
41051
41052         * lib/getopt.c: Update from libc.
41053
41054 2000-10-16  Jim Meyering  <meyering@lucent.com>
41055
41056         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
41057         setlocale.
41058         From Jan Fedak.
41059
41060 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
41061
41062         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
41063
41064 2000-09-25  Jim Meyering  <meyering@lucent.com>
41065
41066         * lib/md5.h (rol): Define (from GnuPG).
41067
41068         * lib/sha.c: Give credit (GnuPG) where due.
41069         (M): Use rol rather than open-coding it.
41070         Add a FIXME comment.
41071
41072 2000-09-21  Jim Meyering  <meyering@lucent.com>
41073
41074         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
41075         Reported by Michael Stone.
41076
41077 2000-09-20  Jim Meyering  <meyering@lucent.com>
41078
41079         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
41080         (noinst_HEADERS): Add sha.h.
41081         Based on code from Scott G. Miller and from GnuPG.
41082
41083 2000-09-18  Jim Meyering  <meyering@lucent.com>
41084
41085         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
41086         LIBS. Otherwise, everyone ends up linking with -lelf for some
41087         configurations.
41088         Reported by Mike Stone.
41089
41090 2000-09-15  Jim Meyering  <meyering@lucent.com>
41091
41092         * lib/regex.c: Update from libc.
41093
41094 2000-09-10  Jim Meyering  <meyering@lucent.com>
41095
41096         * lib/getopt.c (_getopt_internal): Update from glibc.
41097
41098 2000-09-09  Jim Meyering  <meyering@lucent.com>
41099
41100         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
41101         think it should be used as a general replacement for isascii.
41102         * lib/fnmatch.c: Likewise.
41103         * lib/mbswidth.c: Likewise
41104         * lib/regex.c: Likewise.
41105
41106         Don't use atoi.
41107         * lib/userspec.c: Include sys/param.h and limits.h.
41108         Include xstrtol.h.
41109         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41110         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
41111         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
41112         UID, GID.  Check range.
41113
41114 2000-09-06  Jim Meyering  <meyering@lucent.com>
41115
41116         * lib/getopt.c (_getopt_internal): Update from glibc.
41117
41118 2000-08-30  Jim Meyering  <meyering@lucent.com>
41119
41120         * lib/strftime.c: Merge in changes from GNU libc.
41121
41122 2000-08-26  Jim Meyering  <meyering@lucent.com>
41123
41124         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
41125         * m4/fpending.m4: New file.
41126
41127 2000-08-26  Jim Meyering  <meyering@lucent.com>
41128
41129         * lib/closeout.c: Include "__fpending.h".
41130         (close_stdout_status): Return right away if there's nothing to flush.
41131
41132         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
41133         * lib/__fpending.c: New file.
41134         * lib/__fpending.h: New file.
41135
41136 2000-08-20  Jim Meyering  <meyering@lucent.com>
41137
41138         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
41139         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
41140         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
41141
41142 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
41143
41144         Improve fileutils installation on systems where running
41145         programs (like install) can't be unlinked.
41146         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
41147         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
41148
41149 2000-08-07  Paul Eggert  <eggert@twinsun.com>
41150
41151         Standardize on "memory exhausted" instead of "Memory exhausted"
41152         or "virtual memory exhausted".
41153         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
41154         "virtual memory exhausted".
41155         * lib/same.c (same_name): Invoke xalloc_die instead of printing
41156         our own message.
41157         * lib/userspec.c (parse_user_spec): Likewise.
41158         * lib/bumpalloc.h: comment fix
41159         * lib/same.c, userspec.c: Include xalloc.h.
41160
41161         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
41162         not char *const and pointing to a constant array.
41163         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
41164         (xrealloc): Comment fix.
41165
41166         * lib/userspec.c (parse_user_spec):
41167         Don't translate a message until just before returning,
41168         to avoid unnecessary translation.
41169
41170 2000-08-07  Jim Meyering  <meyering@lucent.com>
41171
41172         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
41173         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
41174         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
41175         getgroups.c, gethostname.c, getopt.h, group-member.c,
41176         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
41177         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
41178         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
41179         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
41180         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
41181         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
41182         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
41183         yesno.c: Back out Copyright date changes for each file with no change
41184         this year.  This eases coordination with other programs using the same
41185         source code modules.  From Paul Eggert.
41186
41187 2000-08-06  Paul Eggert  <eggert@twinsun.com>
41188
41189         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
41190         not char, for compatibility with glibc 2.1.3 strftime.c.
41191
41192 2000-08-03  Greg McGary  <greg@mcgary.org>
41193
41194         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
41195         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
41196         (EXTEND_BUFFER): Use them.
41197
41198 2000-08-01  Jim Meyering  <meyering@lucent.com>
41199
41200         * lib/dirname.c (ISSLASH): Define.
41201         (BACKSLASH_IS_PATH_SEPARATOR): Define.
41202         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
41203         both `\' and `/' may be use as path separators.
41204         Based on a patch from Prashant TR.
41205
41206 2000-07-31  Paul Eggert  <eggert@twinsun.com>
41207
41208         * lib/quotearg.c (quotearg_n_options): Don't make the initial
41209         slot vector a constant, since it might get modified.
41210
41211 2000-07-31  Jim Meyering  <meyering@lucent.com>
41212
41213         * lib/xmalloc.c: Use `virtual memory exhausted', not
41214         `Memory exhausted'.
41215         * lib/obstack.c (print_and_abort): Likewise.
41216
41217 2000-07-30  Paul Eggert  <eggert@twinsun.com>
41218
41219         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
41220         buffer, so that the caller can always quote one small
41221         component of a "memory exhausted" message in slot 0.
41222         From a suggestion by Jim Meyering.
41223
41224 2000-07-30  Jim Meyering  <meyering@lucent.com>
41225
41226         * lib/makepath.c (make_path): Quote the other instance, too.
41227
41228         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
41229         (STATIC_BUF_SIZE): Define.
41230         (quotearg_n_options): Use only statically allocated storage when
41231         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
41232         than STATIC_BUF_SIZE.
41233
41234 2000-07-29  Jim Meyering  <meyering@lucent.com>
41235
41236         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
41237         * lib/dirname.c (dir_name): Likewise.
41238
41239         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
41240         `/'.
41241
41242         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
41243         (dir_name): Assert that there are no trailing slashes.
41244
41245 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
41246
41247         * lib/mbswidth.h (mbswidth): Add a flags argument.
41248         (mbswidth): New declaration.
41249         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
41250         * lib/mbswidth.c (mbswidth): Add a flags argument.
41251         (mbsnwidth): New function.
41252
41253 2000-07-24  Jim Meyering  <meyering@lucent.com>
41254
41255         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
41256
41257 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41258
41259         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
41260
41261 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41262
41263         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
41264         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
41265         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
41266         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
41267         invoke multibyte primitives.
41268
41269 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41270
41271         * lib/quotearg.c:
41272         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
41273         so that mbstate_t is always defined.
41274
41275         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
41276         be 1 in at least one GCC installation, and this configuration
41277         error is likely to be common.  Ignoring MB_LEN_MAX hurts
41278         performance on hosts that have mbrtowc but have only unibyte
41279         locales, but I assume these hosts are rare.
41280
41281 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41282
41283         * lib/mbswidth.c (_XOPEN_SOURCE):
41284         Don't define; this causes problems on Solaris 7.
41285         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41286
41287 2000-07-23  Jim Meyering  <meyering@lucent.com>
41288
41289         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41290         too: getgrgid, getpwuid, getuid.
41291
41292 2000-07-23  Jim Meyering  <meyering@lucent.com>
41293
41294         * lib/basename.c (base_name): Add an assertion.
41295
41296 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41297
41298         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41299         shadow its mbsinit function.
41300
41301 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41302
41303         * lib/mbswidth.h: New file.
41304         * lib/mbswidth.c: New file.
41305         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41306         (noinst_HEADERS): Add mbswidth.h.
41307
41308 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41309
41310         * lib/config.charset: Add support for FreeBSD. Improve support for
41311         HP-UX and IRIX 6.
41312
41313 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41314
41315         * m4/mbswidth.m4: New file.
41316         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41317
41318 2000-07-15  Jim Meyering  <meyering@lucent.com>
41319
41320         * lib/makepath.c: Include quote.h.
41321         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41322         corresponding argument in a `quote (...)' call.
41323         Give better diagnostics.
41324
41325         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41326         (noinst_HEADERS): Add quote.h.
41327
41328         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41329         from tar's src/misc.c.
41330         * lib/quote.h: New file.  Prototypes for same.
41331
41332 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41333
41334         From a suggestion by Bruno Haible.
41335         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41336         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41337         to decide whether to define the BeOS workaround macro;
41338         this adjusts to the change to AC_MBSTATE_T.
41339
41340 2000-07-14  Jim Meyering  <meyering@lucent.com>
41341
41342         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41343         jm_AC_TYPE_UINTMAX_T.
41344
41345 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41346
41347         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41348
41349         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41350         quotearg_buffer_restyled): Add support for
41351         clocale_quoting_style.  Undo previous change to
41352         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41353         and "{RIGHT QUOTATION MARK}" msgids.
41354
41355 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41356
41357         From a suggestion by Bruno Haible.
41358         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41359         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41360         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41361         and mbstate_t, to a single-part test that simply defines mbstate_t.
41362         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41363         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41364
41365 2000-07-10  Jim Meyering  <meyering@lucent.com>
41366
41367         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41368
41369         * m4/gnu-source.m4: Output to confdefs.h directly.
41370         Suggestion from Akim Demaille.
41371
41372 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41373
41374         The old behavior of quoting `like this' doesn't look good with
41375         newer, ISO-style fonts.  See:
41376         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41377
41378         Instead, quote "like this" by default.  Let the translator
41379         tailor the locale-specific quoting behavior by providing
41380         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
41381
41382         * lib/quotearg.c (N_): New macro.
41383         (gettext_default): New function.
41384         (quotearg_buffer_restyled): Use
41385         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
41386         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
41387
41388 2000-07-09  Jim Meyering  <meyering@lucent.com>
41389
41390         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
41391         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
41392
41393         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
41394         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
41395
41396 2000-07-09  Jim Meyering  <meyering@lucent.com>
41397
41398         * lib/Most files: Update copyright dates to include 2000.
41399
41400 2000-07-08  Jim Meyering  <meyering@lucent.com>
41401
41402         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41403         if not defined.
41404         (xgethostname): Remove now-unnecessary #ifdef.
41405         Move declaration of `err' into loop where it's used.
41406
41407 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41408         and Bruno Haible  <haible@clisp.cons.org>
41409
41410         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41411         only if the test for an object-type mbstate_t fails.  This
41412         prevents us from mistakenly reporting that mbstate_t is a
41413         system object type after we "#define mbstate_t int" to work
41414         around its lack.
41415
41416 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41417         and Bruno Haible  <haible@clisp.cons.org>
41418
41419         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
41420
41421 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41422
41423         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
41424         to strerror_r.
41425         Include <ctype.h> for use of isalpha.
41426
41427 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41428
41429         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
41430         by allocating a larger buffer. Test the gethostname return value for
41431         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
41432         returns an error and ENAMETOOLONG isn't defined.
41433
41434 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41435
41436         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
41437         dimension.
41438
41439 2000-07-04  Jim Meyering  <meyering@lucent.com>
41440
41441         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
41442         of the deprecated AC_CHECKING.
41443
41444 2000-07-04  Jim Meyering  <meyering@lucent.com>
41445
41446         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
41447         Reported by Bruno Haible.
41448
41449 2000-07-04  Jim Meyering  <meyering@lucent.com>
41450
41451         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
41452         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
41453         lacks mbrtowc.
41454
41455 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41456
41457         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
41458         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
41459
41460 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41461         and Bruno Haible  <haible@clisp.cons.org>
41462
41463         * lib/quotearg.c (mbrtowc):
41464         Assign to *pwc, and return 1 only if result is nonzero.
41465         (iswprint): Use ISPRINT when substituting our own mbrtowc.
41466
41467 2000-07-03  Jim Meyering  <meyering@lucent.com>
41468
41469         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
41470
41471 2000-07-03  Jim Meyering  <meyering@lucent.com>
41472
41473         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
41474         This is necessary to get a definition of e.g., UTMP_FILE on
41475         HP-UX 10.20.
41476         From Bob Proulx.
41477
41478 2000-07-02  Jim Meyering  <meyering@lucent.com>
41479
41480         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
41481
41482         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
41483         AC_LIBOBJ(function_name).
41484         * m4/chown.m4: Likewise.
41485         * m4/fnmatch.m4: Likewise.
41486         * m4/ftruncate.m4: Likewise.
41487         * m4/getgroups.m4: Likewise.
41488         * m4/getline.m4: Likewise.
41489         * m4/group-member.m4: Likewise.
41490         * m4/jm-macros.m4: Likewise.
41491         * m4/lstat.m4: Likewise.
41492         * m4/malloc.m4: Likewise.
41493         * m4/memcmp.m4: Likewise.
41494         * m4/nanosleep.m4: Likewise.
41495         * m4/putenv.m4: Likewise.
41496         * m4/realloc.m4: Likewise.
41497         * m4/regex.m4: Likewise.
41498         * m4/stat.m4: Likewise.
41499         * m4/strftime.m4: Likewise.
41500
41501 2000-07-02  Jim Meyering  <meyering@lucent.com>
41502
41503         * lib/quotearg.c (mbstate_t): Don't define here.
41504
41505 2000-07-02  Jim Meyering  <meyering@lucent.com>
41506
41507         * lib/nanosleep.c (SIGCONT): Define if not already defined.
41508
41509 2000-07-01  Jim Meyering  <meyering@lucent.com>
41510
41511         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
41512
41513 2000-07-01  Jim Meyering  <meyering@lucent.com>
41514
41515         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
41516         problem.
41517
41518 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41519
41520         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
41521         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
41522
41523 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41524
41525         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
41526         per change in ../m4/ls-mntd-fs.m4.
41527         (read_filesystem_list): Ignore symbolic links.
41528
41529 2000-06-29  Jim Meyering  <meyering@lucent.com>
41530
41531         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
41532         for declaration of strcmp.
41533
41534         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
41535
41536         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
41537         Avoid warning by casting result to `char *' to remove `const'.
41538
41539 2000-06-28  Jim Meyering  <meyering@lucent.com>
41540
41541         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
41542         included by quotearg.c, for which we perform this test.  From
41543         Bruno Haible.
41544
41545 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41546
41547         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
41548         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
41549         <utmpx.h> exists, put readutmp.o into LIBOBJS.
41550
41551 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41552
41553         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
41554
41555 2000-06-26  Paul Eggert  <eggert@twinsun.com>
41556
41557         savedir now sets errno on failure and invokes xmalloc to get memory.
41558         Fix a couple of other minor bugs while we're at it.
41559
41560         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
41561         (NAMLEN): Remove macro.
41562         (malloc, realloc): Remove decls.
41563         (stpcpy): Likewise.
41564         ("xalloc.h"): Include.
41565         (NAME_SIZE_DEFAULT): New macro.
41566         (savedir): Use xmalloc / xrealloc to allocate memory.
41567         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
41568         Skip "" directory entries.
41569         Use strlen to calculate directory entry length, since the old method
41570         is rarely used these days and isn't worth supporting.
41571         Don't use a pointer after freeing it.
41572         Check for integer overflow when calculating allocation size.
41573         Use memcpy to copy entries, instead of stpcpy.
41574         Set errno properly when returning NULL.
41575         Check for readdir error.
41576
41577 2000-06-26  Jim Meyering  <meyering@lucent.com>
41578
41579         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
41580
41581 2000-06-25  Jim Meyering  <meyering@lucent.com>
41582
41583         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
41584         Linux header bug when _XOPEN_SOURCE is defined to 500.
41585
41586 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41587
41588         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
41589         deficiency.
41590
41591 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41592
41593         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
41594         Include xalloc.h.
41595         Don't include <stdlib.h>.  Don't declare malloc, realloc.
41596
41597 2000-06-24  Jim Meyering  <meyering@lucent.com>
41598
41599         * m4/strerror_r.m4: Revive this file -- to try out an experimental
41600         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
41601         for which strerror does return char*, but which lacks a conveniently
41602         accessible declaration of the function.  If the compile-test says
41603         strerror_r doesn't work, then resort to a `run'-test that works on
41604         BeOS and segfaults on DEC Unix.
41605
41606 2000-06-24  Jim Meyering  <meyering@lucent.com>
41607
41608         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
41609
41610 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41611
41612         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
41613         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
41614
41615 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41616
41617         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
41618         (mbrtowc, mbstate_t): Define substitutes if
41619         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
41620         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
41621         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
41622
41623 2000-06-23  Jim Meyering  <meyering@lucent.com>
41624
41625         * m4/afs.m4: Add missing AC_MSG_RESULT.
41626         Reported by Bruno Haible.
41627
41628         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
41629         Suggestion from Bruno Haible.
41630
41631 2000-06-23  Jim Meyering  <meyering@lucent.com>
41632
41633         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
41634
41635 2000-06-21  Jim Meyering  <meyering@lucent.com>
41636
41637         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
41638
41639 2000-06-21  Jim Meyering  <meyering@lucent.com>
41640
41641         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
41642         (noinst_HEADERS): Add getstr.h.
41643
41644         * lib/getline.c (getstr): Move into a separate file.
41645         * lib/getstr.c (getstr): New file, extracted from getline.c, with
41646         the following changes: new parameter, delim2; both delim[12]
41647         parameters have type `int', not `char'.  The latter would lose
41648         with 8-bit delimiters.
41649         * lib/getstr.h: New file.
41650
41651 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41652
41653         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
41654         than 1024, return a memory chunk of least possible size, instead
41655         of size PATH_MAX + 2. In the loop, increment the size proportionally.
41656         Use free/xmalloc instead of xrealloc to avoid copying for very long
41657         paths.
41658
41659 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41660
41661         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
41662         the empty string.
41663
41664 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41665
41666         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
41667         address, not strdup.  Include <stdlib.h> and don't declare free().
41668
41669 2000-06-19  Jim Meyering  <meyering@lucent.com>
41670
41671         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
41672
41673 2000-06-18  Jim Meyering  <meyering@lucent.com>
41674
41675         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
41676
41677         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
41678         `checking whether...' message to be consistent with that of the
41679         lstat test.
41680
41681 2000-06-18  Jim Meyering  <meyering@lucent.com>
41682
41683         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
41684         Besides, these days every porting target provides a mkdir function.
41685
41686         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
41687         needed. (this snippet comes from src/system.h).
41688
41689 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41690
41691         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41692
41693 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41694
41695         * lib/human.c (adjust_value): New function.
41696         (human_readable_inexact): Apply rounding style even when
41697         printing approximate values.
41698
41699 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41700
41701         * lib/human.c (human_readable_inexact): Allow an input block
41702         size that is not a multiple of the output block size, and vice versa.
41703         Reported by Piergiorgio Sartor.
41704
41705 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41706
41707         * lib/getdate.y (get_date): Apply relative times after time
41708         zone indicator, not before.  Reported by Todd A. Jacobs.
41709
41710 2000-06-13  Jim Meyering  <meyering@lucent.com>
41711
41712         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
41713
41714         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
41715
41716 2000-06-12  Paul Eggert  <eggert@twinsun.com>
41717
41718         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
41719
41720 2000-06-12  Jim Meyering  <meyering@lucent.com>
41721
41722         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
41723         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
41724         optional argument.
41725         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
41726         the optional argument, `lib'.
41727
41728 2000-06-08  Jim Meyering  <meyering@lucent.com>
41729
41730         * m4/largefile.m4: Remove file (now that it's part of autoconf).
41731
41732 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41733
41734         Rewrite largefile configuration so that we don't need to run
41735         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
41736         AC_CANONICAL_HOST in configure.in -- jmm]
41737
41738         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
41739         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
41740         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
41741         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
41742         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
41743         All uses changed.
41744         Instead of inspecting the output of getconf, try to compile the
41745         test program without and with the macro definition.
41746         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
41747         for getconf.  Instead, check for the needed flags by compiling
41748         test programs.
41749
41750 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41751
41752         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
41753
41754 2000-06-04  Jim Meyering  <meyering@lucent.com>
41755
41756         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
41757         SunOS 4.1.4 for which gid_t is an unsigned type.
41758
41759 2000-06-03  Jim Meyering  <meyering@lucent.com>
41760
41761         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
41762         now that autoconf requires that.
41763
41764         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
41765         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
41766         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
41767
41768 2000-06-03  Jim Meyering  <meyering@lucent.com>
41769
41770         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
41771
41772 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41773
41774         * m4/glibc21.m4: New file.
41775         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
41776
41777 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41778
41779         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
41780         newer, don't install charset.alias.
41781         * lib/config.charset: Change the Linux/glibc rules so they become empty
41782         on glibc-2.1 or newer.
41783
41784 2000-06-02  Jim Meyering  <meyering@lucent.com>
41785
41786         * lib/mountlist.c: Back out last change.  Instead, do this...
41787         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
41788         me_dummy member using the same `ignore'-testing code.
41789         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
41790         fs_type strings.
41791         From Mark D. Roth.
41792
41793 2000-05-29  Jim Meyering  <meyering@lucent.com>
41794
41795         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
41796         mounts with the `ignore' attribute.  Based on a patch from
41797         Mark D. Roth.
41798
41799 2000-05-28  Jim Meyering  <meyering@lucent.com>
41800
41801         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
41802         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41803         * m4/stat.m4: Likewise.
41804         * m4/lstat.m4: Likewise.
41805         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
41806
41807         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
41808         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
41809
41810 2000-05-26  Jim Meyering  <meyering@lucent.com>
41811
41812         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
41813
41814 2000-05-24  Jim Meyering  <meyering@lucent.com>
41815
41816         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
41817         autoconf requires that.
41818         * m4/lib-check.m4: Likewise.
41819         * m4/jm-macros.m4: Likewise.
41820         * m4/strftime.m4: Likewise.
41821
41822         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
41823         AC_CHECK_DECLS, now that autoconf requires that.
41824
41825 2000-05-22  Jim Meyering  <meyering@lucent.com>
41826
41827         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41828         * m4/lstat.m4: Likewise.
41829
41830 2000-05-22  Jim Meyering  <meyering@lucent.com>
41831
41832         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
41833
41834 2000-05-20  Jim Meyering  <meyering@lucent.com>
41835
41836         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
41837         (jm_PREREQ): Use it.
41838
41839 2000-05-18  Jim Meyering  <meyering@lucent.com>
41840
41841         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
41842         back, too, since it may have been modified by allocate_entry.
41843         (hash_delete): Rewrite to use neither the assignment operator
41844         nor the comma operator in an if-expression.
41845
41846 2000-05-15  Paul Eggert  <eggert@twinsun.com>
41847
41848         * lib/closeout.c:
41849         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
41850         Remove; no longer needed.
41851         "quotearg.h": Add include.
41852         (file_name): Do not bother to explicitly initialize to NULL; it's less
41853         efficient on some hosts.
41854         (close_stdout_status): Remove test as to whether stdout was already
41855         closed; it breaks for the case "echo x | sort >&-".
41856         Quote file name colons.
41857         Do not assume that _("write error") lacks format strings.
41858
41859 2000-05-15  Jim Meyering  <meyering@lucent.com>
41860
41861         * lib/version-etc.c (version_etc_copyright): Update the copyright
41862         string used in all --version output.
41863
41864 2000-05-14  Jim Meyering  <meyering@lucent.com>
41865
41866         * lib/closeout.c (close_stdout_set_file_name): New function.
41867         (close_stdout_status): Use new file-scoped global.
41868         Return right away if fstat says the stdout file descriptor is invalid.
41869         * lib/closeout.h (close_stdout_set_file_name): Declare.
41870
41871 2000-05-10  Jim Meyering  <meyering@lucent.com>
41872
41873         * lib/closeout.c [default_exit_status]: New file-scoped variable.
41874         (close_stdout_set_status): New function.
41875         * lib/closeout.h (close_stdout_set_status): Declare.
41876
41877 2000-05-09  Jim Meyering  <meyering@lucent.com>
41878
41879         * m4/gettext.m4: Rename this...
41880         * m4/libintl.m4: ...to this.
41881
41882 2000-05-08  Jim Meyering  <meyering@lucent.com>
41883
41884         * lib/long-options.c: Don't include closeout.h.
41885         (parse_long_options): Don't call close_stdout for --version.
41886
41887 2000-05-06  Paul Eggert  <eggert@twinsun.com>
41888
41889         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
41890         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
41891         2.1.3 bug.  This avoids a clash when files like regex.c define
41892         _GNU_SOURCE.
41893
41894 2000-05-06  Jim Meyering  <meyering@lucent.com>
41895
41896         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
41897         (AC_REPLACE_FUNCS): Add strnlen.
41898
41899         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
41900         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
41901
41902         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
41903         AC_SEARCH_LIBS call for nanosleep.
41904         (LIB_NANOSLEEP): Set and AC_SUBST.
41905
41906 2000-05-06  Jim Meyering  <meyering@lucent.com>
41907
41908         * lib/strnlen.c: Undefine __strnlen and strnlen.
41909         [!weak_alias]: Define __strnlen to strnlen.
41910
41911         * lib/atexit.c: New file, from libiberty.
41912
41913 2000-05-06  Jim Meyering  <meyering@lucent.com>
41914
41915         * lib/closeout.c (close_stdout_status): Also check for errors on the
41916         stderr stream.
41917
41918 2000-05-05  Jim Meyering  <meyering@lucent.com>
41919
41920         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
41921         AC_SEARCH_LIBS call for clock_gettime.
41922         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
41923
41924         * m4/search-libs.m4: Update from autoconf.
41925
41926         su doesn't work on Solaris 2.6.
41927         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
41928         <shadow.h>.  Reported by Dragos Harabor.
41929
41930 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
41931
41932         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
41933         memcpy instead of xmalloc, xrealloc, path_concat.
41934         (locale_charset): Treat empty environment variables as absent.
41935         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
41936
41937 2000-05-04  Jim Meyering  <meyering@lucent.com>
41938
41939         * lib/getopt.c: Update from glibc.
41940         * lib/obstack.c: Likewise.
41941         * lib/obstack.h: Likewise.
41942         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
41943         file
41944
41945         * lib/regex.h: Likewise.
41946         * lib/strndup.c: Likewise.
41947         * lib/strnlen.c: New file, from glibc.
41948
41949 2000-05-03  Jim Meyering  <meyering@lucent.com>
41950
41951         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
41952
41953 2000-05-02  Paul Eggert  <eggert@twinsun.com>
41954
41955         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
41956         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
41957         compile-time test, rather than inspecting host and OS, to
41958         decide whether to define _LARGEFILE_SOURCE.
41959
41960 2000-05-01  Jim Meyering  <meyering@lucent.com>
41961
41962         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
41963
41964         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
41965         Based on a patch from Bruno Haible.
41966
41967 2000-05-01  Jim Meyering  <meyering@lucent.com>
41968
41969         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
41970
41971 2000-04-29  Jim Meyering  <meyering@lucent.com>
41972
41973         * lib/path-concat.c: Declare strdup only if it's not defined.
41974         * lib/canon-host.c: Likewise.
41975
41976 2000-04-28  Jim Meyering  <meyering@lucent.com>
41977
41978         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
41979         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
41980         is included first, then limits.h is included by locale.h by libintl.h.
41981         From John David Anglin.
41982
41983 2000-04-25  Jim Meyering  <meyering@lucent.com>
41984
41985         * lib/makepath.c (S_IRWXUGO): Define.
41986         (make_path): Always perform explicit chmod if MODE specifies any
41987         of the `special' permission bits.  Prompted by a bug report against
41988         install from Mate Wierdl and Joost van Baal.
41989
41990 2000-04-18  Jim Meyering  <meyering@lucent.com>
41991
41992         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
41993         (jm_PREREQ): Use it.
41994
41995 2000-04-18  Jim Meyering  <meyering@lucent.com>
41996
41997         * lib/README: New file.
41998
41999         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
42000         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
42001
42002 2000-04-17  Jim Meyering  <meyering@lucent.com>
42003
42004         Get it right :-)
42005         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
42006         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
42007         Suggestion from Akim Demaille.
42008
42009 2000-04-17  Jim Meyering  <meyering@lucent.com>
42010
42011         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
42012         the definition of it to rpl_strftime also defined-away the system's
42013         declaration.
42014
42015 2000-04-15  Jim Meyering  <meyering@lucent.com>
42016
42017         Use `C' to denote so-called `contiguous' files, the same way
42018         that tar does.
42019         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
42020         (ftypelet): Use S_ISCTG.
42021         From Michael Deutschmann.
42022
42023 2000-04-14  Jim Meyering  <meyering@lucent.com>
42024
42025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
42026         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
42027         clobbered.
42028
42029 2000-04-14  Jim Meyering  <meyering@lucent.com>
42030
42031         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
42032
42033 2000-04-13  Jim Meyering  <meyering@lucent.com>
42034
42035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
42036         AH_VERBATIM to insert required #ifndef into config.h.in.
42037         Suggestion from Akim Demaille.
42038
42039 2000-04-12  Jim Meyering  <meyering@lucent.com>
42040
42041         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
42042         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
42043         Christian Krackowizer.
42044
42045         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
42046         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
42047         (AC_SYS_LARGEFILE): Require.
42048         (AM_C_PROTOTYPES): Require.
42049
42050 2000-04-08  Jim Meyering  <meyering@lucent.com>
42051
42052         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
42053         names don't conflict.  Reported by Eli Zaretskii.
42054
42055 2000-04-07  Jim Meyering  <meyering@lucent.com>
42056
42057         * lib/putenv.c: Move inclusion of errno.h so it follows that of
42058         sys/types.h, to work around system header problems on AIX 3.2.5.
42059         From Bruno Haible.
42060
42061 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
42062
42063         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
42064         bug.  Deal with the different error behavior of Irix iconv.
42065
42066 2000-04-05  Paul Eggert  <eggert@twinsun.com>
42067
42068         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
42069         IRIX if the installer said otherwise.
42070
42071 2000-04-05  Jim Meyering  <meyering@lucent.com>
42072
42073         Portability tweaks required for ultrix4.3.
42074         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
42075         (jm_CHECK_DECLS): Add getutent to the list of functions.
42076         (_jm_DECL_HEADERS): Add utmpx.h.
42077         From John David Anglin.
42078
42079         * m4/strftime.m4: Back out the 2000-04-02 change.
42080         Instead of that change, simply undefine putenv in the test program.
42081
42082 2000-04-05  Jim Meyering  <meyering@lucent.com>
42083
42084         Portability tweaks required for ultrix4.3.
42085         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
42086         getutent.
42087         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
42088         * lib/canon-host.c: Declare strdup.
42089         * lib/path-concat.c: Likewise.
42090         From John David Anglin.
42091
42092 2000-04-04  Jim Meyering  <meyering@lucent.com>
42093
42094         Be more DOS 8.3-friendly.
42095         * lib/ref-add.sin: Renamed from ref-add.sed.in.
42096         * lib/ref-del.sin: Renamed from ref-del.sed.in.
42097         * lib/Makefile.am: Reflect renaming.
42098         Reported by Eli Zaretskii.
42099
42100         Use a temporary file name that won't clash with `charset.alias'
42101         in the DOS 8.3 name space.
42102         * lib/Makefile.am (charset_tmp): Define.
42103         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
42104         (uninstall-local): Likewise.
42105         Reported by Eli Zaretskii.
42106
42107 2000-04-03  Jim Meyering  <meyering@lucent.com>
42108
42109         * m4/gettext.m4: Fix typo in comment.
42110
42111         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
42112         textutils/configure.in).  Suggestion from Paul Eggert.
42113         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
42114
42115 2000-04-02  Paul Eggert  <eggert@twinsun.com>
42116
42117         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
42118         variable in the shell rather than using putenv, which isn't
42119         portable.  This avoids the configure-time inter-test dependency
42120         on the potentially-renamed putenv function.
42121
42122 2000-03-30  Paul Eggert  <eggert@twinsun.com>
42123
42124         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
42125         before checking struct stat.st_blksize, so that
42126         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
42127
42128 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42129
42130         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
42131         since strftime.c uses HAVE_STRFTIME to decide whether to use
42132         the underlying strftime.
42133
42134 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42135
42136         * lib/time/strftime.c (my_strftime): Make sure we call the system
42137         strftime, not ourselves, when invoking the underlying strftime.
42138
42139 2000-03-24  Jim Meyering  <meyering@lucent.com>
42140
42141         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
42142         (charset_alias): Define.
42143         (install-exec-local): Factor out common code.
42144         (uninstall-local): Split lines longer than 80.
42145         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
42146         (SUFFIXES): Define.
42147         (.sed.in.sed): New rule.  Don't redirect directly to $@.
42148         (CLEANFILES): Add ref-add.sed and ref-del.sed.
42149
42150 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
42151
42152         * lib/config.charset: Output a line containing "Packages using this
42153         file".
42154         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
42155         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
42156         ref-del.sed): New rules.
42157
42158 2000-03-17  Jim Meyering  <meyering@lucent.com>
42159
42160         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
42161         Otherwise, include <strings.h>
42162
42163 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
42164
42165         * lib/unicodeio.c (utf8_wctomb): New function.
42166         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
42167         format instead of in UCS-4 with platform dependent endianness.
42168
42169 2000-03-10  Jim Meyering  <meyering@lucent.com>
42170
42171         * m4/lib-check.m4: Look for getspnam in -lgen, too.
42172         From Marco Franzen.
42173
42174 2000-03-07  Paul Eggert  <eggert@twinsun.com>
42175
42176         * lib/savedir.c (savedir): Work even if directory size is
42177         negative; this can happen with some screwy NFS configurations.
42178
42179 2000-03-06  Jim Meyering  <meyering@lucent.com>
42180
42181         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
42182         if it's NULL (because we ran out of memory).  From Bruno Haible.
42183
42184 2000-03-05  Jim Meyering  <meyering@lucent.com>
42185
42186         * lib/localcharset.c ("path-concat.h"): Include.
42187         (get_charset_aliases): Use path_concat instead of ANSI string
42188         concatenation.
42189
42190         * lib/unicodeio.h (PARAMS): Define.
42191         Use it to guard prototype.
42192
42193 2000-03-04  Jim Meyering  <meyering@lucent.com>
42194
42195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
42196         for lib/localcharset.c.
42197
42198 2000-03-04  Jim Meyering  <meyering@lucent.com>
42199
42200         * lib/Makefile.am (install-exec-local): Create $(libdir) before
42201         installing into it.
42202         (uninstall-local): Uncomment this rule so `make distcheck' works
42203         once again.
42204
42205         * lib/unicodeio.c (<errno.h>): Include it.
42206         (errno): Declare if not defined.
42207
42208         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
42209
42210         * lib/config.charset: New version, incorporating remarks from a linux
42211         i18n mailing list.  From Bruno Haible.
42212
42213 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
42214
42215         * m4/codeset.m4: New file.
42216         * m4/iconv.m4: New file.
42217         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
42218
42219 2000-03-03  Jim Meyering  <meyering@lucent.com>
42220
42221         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
42222
42223 2000-03-02  Jim Meyering  <meyering@lucent.com>
42224
42225         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
42226         the messages come out on separate lines.
42227
42228         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
42229         rather than jm_CHECK_DECLARATIONS.
42230         * m4/decl.m4: Remove now-unused file.
42231
42232         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
42233         geteuid.
42234
42235 2000-03-02  Jim Meyering  <meyering@lucent.com>
42236
42237         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
42238
42239 2000-03-01  Jim Meyering  <meyering@lucent.com>
42240
42241         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
42242         * lib/unicodeio.c: Likewise.
42243
42244 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
42245
42246         * lib/config.charset: New file.
42247         * lib/localcharset.c: New file.
42248         * lib/unicodeio.h, lib/unicodeio.c: New files.
42249         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
42250         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
42251         (noinst_HEADERS): Add unicodeio.h.
42252         (all-local, install-exec-local, charset.alias): New targets.
42253
42254 2000-02-28  Paul Eggert  <eggert@twinsun.com>
42255
42256         * lib/quotearg.c (ALERT_CHAR): New macro.
42257         (quotearg_buffer_restyled): Use it.
42258
42259 2000-02-27  Jim Meyering  <meyering@lucent.com>
42260
42261         * m4/check-decl.m4: Add getenv to the list.
42262
42263 2000-02-27  Jim Meyering  <meyering@lucent.com>
42264
42265         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
42266         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
42267
42268         * lib/backupfile.c: Guard inclusion of stdlib.h with
42269         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
42270         Declare malloc if needed.
42271
42272         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
42273         `#ifndef HAVE_DECL..'
42274         now that autoconf always defines the HAVE_DECL_ symbols.
42275         * lib/human.c: Likewise.
42276         * lib/same.c: Likewise.
42277         * lib/strtoumax.c: Likewise.
42278
42279         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42280         declaration check was not run.
42281         * lib/hash.c: Likewise.
42282         * lib/human.c: Likewise.
42283         * lib/same.c: Likewise.
42284         * lib/strtoumax.c: Likewise.
42285
42286         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42287         `.', then first look up the entire `.'-containing string as a login
42288         name.
42289
42290 2000-02-23  Jim Meyering  <meyering@lucent.com>
42291
42292         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42293         in place of my hack.
42294
42295 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42296
42297         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42298         (textint): New typedef.
42299         (parser_control): Member year changed from int to textint.
42300         All uses changed.
42301         (YYSTYPE): Removed; replaced by %union with int and textint members.
42302         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42303         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42304         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42305         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42306         (date, number, to_year): Use width of number in digits, not its value,
42307         to determine whether it's a 2-digit year, or a 2-digit time.
42308         (yylex): Store number of digits of numeric tokens.
42309         Reported by John Kendall.
42310
42311         (parser_control): Changed from struct parser_control to typedef (for
42312         consistency).  All uses changed.
42313
42314         (tID): Removed; not used.
42315         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42316
42317 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42318
42319         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42320         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42321
42322 2000-02-12  Jim Meyering  <meyering@lucent.com>
42323
42324         * lib/userspec.c (ISDIGIT): Define it.
42325         (isdigit): Remove definition.
42326         (is_number): Use ISDIGIT, not isdigit.
42327         <libintl.h>: Include.
42328         (_ and N_): Define.
42329         (parse_user_spec): Mark translatable strings.
42330
42331 2000-02-10  Jim Meyering  <meyering@lucent.com>
42332
42333         With these changes, nanosleep.[ch] are finally enough like the other
42334         lib/* replacement files to compile on a few more losing systems.
42335
42336         * lib/nanosleep.h: Don't include config.h.
42337         Remove prototype from declaration of nanosleep.
42338         (PARAMS): Remove now-unneeded definition.
42339         * lib/nanosleep.c: #undef nanosleep.
42340         (rpl_nanosleep): Rename from nanosleep.
42341
42342 2000-02-10  Jim Meyering  <meyering@lucent.com>
42343
42344         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42345         gnu_nanosleep to rpl_nanosleep.
42346
42347 2000-02-09  Jim Meyering  <meyering@lucent.com>
42348
42349         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42350         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42351
42352 2000-02-08  Akim Demaille  <akim@epita.fr>
42353
42354         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42355         `[' and `]' and remove uses of `changequote'.
42356         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42357         (AC_SYS_LARGEFILE): Likewise.
42358         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42359         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42360         of changequote.
42361         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42362         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42363         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42364         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42365
42366 2000-02-05  Jim Meyering  <meyering@lucent.com>
42367
42368         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42369         Remove explicit use of AC_HEADER_TIME.  It is required by
42370         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42371         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42372         in autoconf whereby the expansion of the latter ended up preceding
42373         the expansion of its prerequisite, AC_HEADER_TIME.
42374         Reported by Volker Borchert.
42375
42376 2000-02-03  Jim Meyering  <meyering@lucent.com>
42377
42378         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
42379
42380 2000-02-03  Jim Meyering  <meyering@lucent.com>
42381
42382         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
42383         rather than with `#if HAVE_UTMPNAME'.
42384
42385 2000-02-02  Jim Meyering  <meyering@lucent.com>
42386
42387         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
42388         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
42389         Reported by Eli Zaretskii.
42390
42391 2000-02-01  Jim Meyering  <meyering@lucent.com>
42392
42393         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
42394
42395 2000-01-31  Jim Meyering  <meyering@lucent.com>
42396
42397         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42398         functions.  Add the time.h and sys/time.h headers along with the
42399         AC_REQUIRE'ment of AC_HEADER_TIME.
42400
42401 2000-01-31  Jim Meyering  <meyering@lucent.com>
42402
42403         * lib/nanosleep.h (nanosleep): Guard declaration with
42404         `#if ! HAVE_DECL_NANOSLEEP'.
42405         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42406         the declaration in that vendor's sys/timers.h.
42407         Reported by Christian Krackowizer.
42408
42409         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42410         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42411         (ISPRINT): Likewise.
42412         Reported by Tom Tromey.
42413
42414 2000-01-30  Jim Meyering  <meyering@lucent.com>
42415
42416         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
42417
42418         * m4/prereq.m4 (utmp_includes): Define.
42419         Check for ut_user and ut_name members in both struct utmpx
42420         and struct utmp.
42421
42422 2000-01-30  Jim Meyering  <meyering@lucent.com>
42423
42424         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
42425         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
42426         header files where only utmpx.ut_user is declared.
42427
42428         * lib/readutmp.h (UT_USER): Define.
42429
42430 2000-01-29  Jim Meyering  <meyering@lucent.com>
42431
42432         * m4/lib-check.m4: New file containing library-related checks from
42433         fileutils and sh-utils (textutils had none).
42434
42435 2000-01-28  Jim Meyering  <meyering@lucent.com>
42436
42437         * m4/perl.m4: Change format of warning message to look more like that
42438         from the missing script.  Suggestion from François Pinard.
42439
42440 2000-01-25  Jim Meyering  <meyering@lucent.com>
42441
42442         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
42443         well as time.h in the compile check.
42444         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
42445         Fix typo in cross-compiling case: s/yes/no/.
42446
42447 2000-01-23  Jim Meyering  <meyering@lucent.com>
42448
42449         * m4/jm-macros.m4: Move df-related tests here from
42450         fileutils/configure.in
42451
42452         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
42453         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
42454
42455         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
42456         s/space/ac_fsusage_space/.
42457         (jm_FILE_SYSTEM_USAGE): Take two parameters.
42458
42459         * m4/ftruncate.m4: New file (derived from part of
42460         fileutils/configure.in).
42461         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
42462         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
42463
42464         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
42465         AC_SUBST these here, rather than just in sh-util/configure.in, so
42466         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
42467         all the same.
42468         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
42469         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
42470         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
42471         (AC_SUBST(POW_LIBM)): Likewise.
42472         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
42473
42474 2000-01-23  Jim Meyering  <meyering@lucent.com>
42475
42476         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
42477         obstack.c.
42478
42479 2000-01-22  Jim Meyering  <meyering@lucent.com>
42480
42481         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
42482
42483         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
42484
42485         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
42486         configure.in
42487         (AC_CHECK_HEADERS): Likewise for sh-utils.
42488         (AC_CHECK_HEADERS): Likewise for textutils.
42489         Merge the three lists of headers.
42490
42491         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
42492         from fileutils' configure.in.
42493
42494         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
42495         code. Moved tests into their own function (_jm_DECL_HEADERS) in
42496         check-decl.m4.
42497
42498         * m4/check-decl.m4: Use #if rather than #ifdef.
42499         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
42500         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
42501         (_jm_DECL_HEADERS): Define new function.
42502         (jm_CHECK_DECLARATIONS): Require it.
42503
42504 2000-01-22  Jim Meyering  <meyering@lucent.com>
42505
42506         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
42507         [! HAVE_DECL_STRTOULL]: Declare strtoull.
42508         Required for some AIX systems.  Reported by Christian Krackowizer.
42509         [TESTING] (main): New function.
42510
42511         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
42512         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
42513         letters.
42514
42515         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
42516         iswprint.
42517
42518         * lib/strverscmp.c (ISDIGIT): Define.
42519         (strverscmp): Use ISDIGIT, not isdigit.
42520
42521 2000-01-19  Jim Meyering  <meyering@lucent.com>
42522
42523         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
42524         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
42525         defines `struct timespec' in <sys/time.h>
42526
42527         * m4/c-bs-a.m4: Remove uses of changequote altogether.
42528         Thanks to Akim for explaining.
42529
42530 2000-01-17  Paul Eggert  <eggert@twinsun.com>
42531
42532         * lib/nanosleep.c (nanosleep):
42533         Don't use SA_INTERRUPT to decide whether to call sigaction, as
42534         POSIX.1 doesn't require SA_INTERRUPT and some systems
42535         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
42536         it's been part of POSIX.1 since day 1 (in 1988).
42537
42538 2000-01-17  Jim Meyering  <meyering@lucent.com>
42539
42540         * lib/interlock: Remove unused file.  Reported by François Pinard.
42541
42542 2000-01-16  Paul Eggert  <eggert@twinsun.com>
42543
42544         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
42545         alert, backslash, formfeed, and vertical tab unnecessarily in
42546         shell quoting style.
42547
42548 2000-01-16  Jim Meyering  <meyering@lucent.com>
42549
42550         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
42551         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
42552         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
42553         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
42554
42555 2000-01-16  Jim Meyering  <meyering@lucent.com>
42556
42557         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
42558         because the latter didn't work.
42559
42560 2000-01-15  Jim Meyering  <meyering@lucent.com>
42561
42562         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
42563         (AC_REPLACE_FUNCS): Add memcpy and memset.
42564         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
42565         Add strpbrk.
42566         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
42567
42568 2000-01-12  Jim Meyering  <meyering@lucent.com>
42569
42570         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
42571         (jm_PREREQ): Use it.
42572         (jm_PREREQ_READUTMP): New macro.
42573         (jm_PREREQ): Use it.
42574
42575 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42576
42577         Quote multibyte characters correctly.
42578         * m4/c-bs-a.m4: New file.
42579         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
42580         (jm_PREREQ): Use it.
42581
42582 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42583
42584         * m4/uintmax_t.m4: Port to autoconf 2.13.
42585
42586 2000-01-08  Jim Meyering  <meyering@ascend.com>
42587
42588         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
42589         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
42590
42591 2000-01-04  Jim Meyering  <meyering@ascend.com>
42592
42593         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
42594         jm_STRUCT_DIRENT_D_TYPE.
42595         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
42596         jm_STRUCT_DIRENT_D_INO.
42597         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
42598         jm_STRUCT_UTIMBUF.
42599         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
42600         renamings.
42601         * m4/utime.m4: Likewise.
42602
42603         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
42604         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
42605
42606 2000-01-03  Paul Eggert  <eggert@twinsun.com>
42607
42608         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
42609         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
42610
42611 2000-01-02  Jim Meyering  <meyering@ascend.com>
42612
42613         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
42614         remember if this is necessary.
42615
42616 1999-12-26  Jim Meyering  <meyering@ascend.com>
42617
42618         * m4/jm-macros.m4: Use it here.
42619         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
42620
42621 1999-12-23  Jim Meyering  <meyering@ascend.com>
42622
42623         * m4/jm-macros.m4: Check for clock_gettime (moved from
42624         fileutils/configure.in)
42625         Check for gettimeofday.
42626
42627 1999-12-20  Jim Meyering  <meyering@ascend.com>
42628
42629         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
42630         autoconf-2.14a-1999-12-20.
42631
42632 1999-12-19  Jim Meyering  <meyering@ascend.com>
42633
42634         * m4/lstat-slash.m4: New file.
42635         * m4/jm-macros.m4: Use the new macro:
42636         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42637
42638 1999-12-07  Jim Meyering  <meyering@ascend.com>
42639
42640         * m4/perl.m4: Require that File::Compare be available, too.
42641         Too many systems seem to lack it.
42642
42643         * m4/strftime.m4: Add checks for most of the cpp macros tested in
42644         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
42645
42646 1999-11-18  Paul Eggert  <eggert@twinsun.com>
42647
42648         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
42649         problem with the QNX 4.25 shell, which doesn't propagate exit
42650         status of failed commands inside shell assignments.
42651
42652 1999-11-17  Jim Meyering  <meyering@ascend.com>
42653
42654         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
42655
42656 1999-11-07  Jim Meyering  <meyering@ascend.com>
42657
42658         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
42659
42660 1999-11-06  Jim Meyering  <meyering@ascend.com>
42661
42662         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
42663         * m4/jm-macros.m4 (jm_MACROS): Use it here.
42664
42665 1999-11-05  Jim Meyering  <meyering@ascend.com>
42666
42667         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
42668         configure.in of textutils, fileutils, and sh-utils into this one
42669         (shared between those packages) file.
42670         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
42671         AC_STRUCT_ST_BLKSIZE.
42672
42673 1999-11-03  Jim Meyering  <meyering@ascend.com>
42674
42675         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
42676         of AC_CHECK_TYPE checks includes unistd.h.
42677         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
42678         Suggestion from Akim Demaille.
42679
42680 1999-10-30  Jim Meyering  <meyering@ascend.com>
42681
42682         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
42683         m4-quoted string.
42684         * m4/ls-mntd-fs.m4: Likewise.
42685         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
42686         * m4/jm-winsz1.m4: Likewise.
42687
42688         * m4/const.m4: Remove file, since the fix made it into the experimental
42689         version of autoconf.
42690         * m4/mktime.m4: Likewise.
42691
42692         * m4/check-type.m4: Remove file, now that the latest version of
42693         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42694
42695         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42696         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42697         AC_CHECK_TYPE.
42698
42699 1999-10-04  Jim Meyering  <meyering@ascend.com>
42700
42701         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42702
42703 1999-09-22  Paul Eggert  <eggert@twinsun.com>
42704
42705         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
42706         2.95.1 bug with HP-UX 10.20.
42707
42708 1999-09-17  Jim Meyering  <meyering@ascend.com>
42709
42710         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
42711         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
42712         due to missing strdup (against sh-utils-2.0).
42713
42714 1999-08-29  Jim Meyering  <meyering@ascend.com>
42715
42716         * m4/jm-macros.m4: Require jm_BISON.
42717         * m4/bison.m4: New file.
42718
42719 1999-08-17  Paul Eggert  <eggert@twinsun.com>
42720
42721         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
42722         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
42723
42724 1999-08-05  Jim Meyering  <meyering@ascend.com>
42725
42726         * m4/getline.m4: Rename test file from conftestdata to conftest.data
42727         to avoid conflicts with `conftest' on 8+3 filesystems.
42728         Suggestion from Eli Zaretskii.
42729
42730 1999-08-04  Jim Meyering  <meyering@ascend.com>
42731
42732         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
42733         fileutils and sh-utils (textutils's getline test was inadequate).
42734         (AM_FUNC_GETLINE): Run this test.
42735         (AC_CHECK_FUNCS): Check for getdelim.
42736         Reported by Bob Proulx.
42737
42738 1999-08-02  Jim Meyering  <meyering@ascend.com>
42739
42740         * m4/jm-macros.m4: Add a comment.
42741
42742 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42743
42744         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
42745         <inttypes.h> defines strtoumax as a macro (and not as a
42746         function).
42747
42748 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42749
42750         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
42751         that we can shift, multiply and divide unsigned long long
42752         values; Ultrix cc can't do it.
42753
42754 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42755
42756         * m4/mktime.m4: New file, which is a preview of what should appear
42757         in the next public autoconf release.
42758
42759 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42760
42761         * m4/lfs.m4: Remove this file.
42762         * m4/largefile.m4: New file.  It contains the old contents of
42763         lfs.m4, except that all names with prefix AC_LFS have been
42764         changed to use the prefix AC_SYS_LARGEFILE instead, to be
42765         compatible with future autoconf versions.  Also, some minor m4
42766         quoting problems have been fixed.
42767
42768 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42769
42770         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
42771         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
42772         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
42773         and simplify the shell code.
42774
42775 1999-08-01  Jim Meyering  <meyering@ascend.com>
42776
42777         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
42778         m4.
42779
42780 1999-07-20  Jim Meyering  <meyering@ascend.com>
42781
42782         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
42783
42784 1999-07-15  Jim Meyering  <meyering@ascend.com>
42785
42786         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
42787
42788 1999-05-22  Jim Meyering  <meyering@ascend.com>
42789
42790         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
42791
42792 1999-05-20  Jim Meyering  <meyering@ascend.com>
42793
42794         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
42795         Add a colon after each `then' in case $4 is empty.
42796
42797 1999-05-16  Jim Meyering  <meyering@ascend.com>
42798
42799         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
42800
42801 1999-05-10  Jim Meyering  <meyering@ascend.com>
42802
42803         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
42804
42805         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
42806         AC_FUNC_MKTIME.
42807
42808 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
42809
42810         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
42811
42812 1999-05-04  Paul Eggert  <eggert@twinsun.com>
42813
42814         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
42815         not CPPFLAGS, so that linking works correctly in IRIX.
42816
42817 1999-04-30  Paul Eggert  <eggert@twinsun.com>
42818
42819         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
42820
42821 1999-04-20  Paul Eggert  <eggert@twinsun.com>
42822
42823         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
42824         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
42825         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
42826         jm_AC_TYPE_UNSIGNED_LONG_LONG.
42827         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
42828
42829         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
42830
42831 1999-04-20  Jim Meyering  <meyering@ascend.com>
42832
42833         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
42834         AC_REPLACE xstroull if necessary.  From Paul Eggert.
42835         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
42836
42837 1999-04-18  Jim Meyering  <meyering@ascend.com>
42838
42839         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
42840         * m4/jm-macros.m4: Use it.
42841
42842 1999-04-06  Jim Meyering  <meyering@ascend.com>
42843
42844         * m4/strftime.m4: Remove test for %f.
42845
42846 1999-03-29  Jim Meyering  <meyering@ascend.com>
42847
42848         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
42849         superset of the AC_TYPE_* checks in the textutils, fileutils,
42850         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
42851         AC_TYPE_PID_T.
42852
42853 1999-03-28  Jim Meyering  <meyering@ascend.com>
42854
42855         * m4/jm-macros.m4: Define GNU_PACKAGE here.
42856         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
42857         replaced e.g., in the *.sh files of the sh-utils.
42858
42859 1999-03-20  Jim Meyering  <meyering@ascend.com>
42860
42861         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
42862         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
42863         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
42864
42865 1999-03-19  Jim Meyering  <meyering@ascend.com>
42866
42867         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
42868
42869 1999-03-12  Jim Meyering  <meyering@ascend.com>
42870
42871         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
42872
42873 1999-03-07  Jim Meyering  <meyering@ascend.com>
42874
42875         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
42876         declared.
42877
42878 1999-02-17  Jim Meyering  <meyering@ascend.com>
42879
42880         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
42881         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
42882
42883 1999-02-07  Jim Meyering  <meyering@ascend.com>
42884
42885         * m4/group-member.m4: New file -- extracted from sh-utils'
42886         configure.in.
42887
42888         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
42889         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
42890
42891 1999-02-06  Jim Meyering  <meyering@ascend.com>
42892
42893         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
42894         * m4/fnmatch.m4: Likewise.
42895         * m4/getgroups.m4: Likewise.
42896         * m4/lstat.m4: Likewise.
42897         * m4/malloc.m4: Likewise.
42898         * m4/putenv.m4: Likewise.
42899         * m4/realloc.m4: Likewise.
42900         * m4/regex.m4: Likewise.
42901         * m4/stat.m4: Likewise.
42902         * m4/strftime.m4: Likewise.
42903         Suggestion from Alain Magloire.
42904
42905         * m4/chown.m4: Use `.$ac_objext', not `.o'.
42906         * m4/fnmatch.m4: Likewise.
42907         * m4/getgroups.m4: Likewise.
42908         * m4/getline.m4: Likewise.
42909         * m4/lstat.m4: Likewise.
42910         * m4/malloc.m4: Likewise.
42911         * m4/memcmp.m4: Likewise.
42912         * m4/putenv.m4: Likewise.
42913         * m4/realloc.m4: Likewise.
42914         * m4/regex.m4: Likewise.
42915         * m4/stat.m4: Likewise.
42916         * m4/strftime.m4: Likewise.
42917         Suggestion from Alain Magloire.
42918
42919         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
42920         an argument.
42921
42922         * m4/regex.m4: Add a run-time Test for proper operation of
42923         re_compile_pattern.
42924
42925 1999-01-31  Jim Meyering  <meyering@ascend.com>
42926
42927         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
42928
42929 1999-01-30  Jim Meyering  <meyering@ascend.com>
42930
42931         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
42932
42933         * m4/jm-mktime.m4: Make this a wrapper around the official
42934         AM_FUNC_MKTIME rather than my private copy, now that the official one
42935         is up to date.
42936         * m4/mktime.m4: Remove file.
42937
42938         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
42939         * m4/uptime.m4: Likewise.
42940         * m4/uintmax_t.m4: Likewise.
42941
42942 1999-01-28  Jim Meyering  <meyering@ascend.com>
42943
42944         * m4/jm-macros.m4: Use jm_AFS.
42945         * m4/afs.m4: New file (from fileutils' configure.in).
42946
42947         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
42948         * m4/chown.m4: Likewise.
42949         * m4/d-ino.m4: Likewise.
42950         * m4/d-type.m4: Likewise.
42951         * m4/fnmatch.m4: Likewise.
42952         * m4/getgroups.m4: Likewise.
42953         * m4/gettext.m4: Likewise.
42954         * m4/jm-mktime.m4: Likewise.
42955         * m4/jm-winsz2.m4: Likewise.
42956         * m4/lcmessage.m4: Likewise.
42957         * m4/ls-mntd-fs.m4: Likewise.
42958         * m4/malloc.m4: Likewise.
42959         * m4/memcmp.m4: Likewise.
42960         * m4/putenv.m4: Likewise.
42961         * m4/realloc.m4: Likewise.
42962         * m4/st_mtim.m4: Likewise.
42963         * m4/strftime.m4: Likewise.
42964
42965 1999-01-16  Jim Meyering  <meyering@ascend.com>
42966
42967         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
42968         (ARGMATCH_DIE_DECL): Define.
42969
42970 1999-01-12  Jim Meyering  <meyering@ascend.com>
42971
42972         * m4/Makefile.am.in: Rewrite to avoid using fmt.
42973         Reported by Lars Hecking.
42974
42975 1999-01-10  Jim Meyering  <meyering@ascend.com>
42976
42977         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
42978         gross kludge.
42979         * m4/inttypes_h.m4: Likewise.
42980         * m4/lstat.m4: Likewise.
42981         * m4/malloc.m4: Likewise.
42982         * m4/readdir.m4: Likewise.
42983         * m4/realloc.m4: Likewise.
42984         * m4/st_dm_mode.m4: Likewise.
42985         * m4/stat.m4: Likewise.
42986         * m4/utimbuf.m4: Likewise.
42987         * m4/utimes.m4: Likewise.
42988
42989         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
42990         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
42991         comments in config.h.in are meaningful.
42992
42993         * m4/jm-macros.m4: Require autoconf-2.13 here.
42994
42995         * m4/regex.m4: By default, don't use the included regex.c on systems
42996         with glibc 2.  Suggestion from Uli Drepper.
42997
42998 1999-01-02  Jim Meyering  <meyering@ascend.com>
42999
43000         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
43001
43002 1998-12-18  Jim Meyering  <meyering@ascend.com>
43003
43004         * m4/Makefile.am.in (Makefile.am): Simplify rule.
43005         Based on a suggestion from Lars Hecking.
43006
43007 1998-11-16  Paul Eggert  <eggert@twinsun.com>
43008
43009         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
43010
43011 1998-11-16  Jim Meyering  <meyering@ascend.com>
43012
43013         * m4/lfs.m4: Double-quote the `uname...` expression.
43014
43015 1998-11-14  Jim Meyering  <meyering@ascend.com>
43016
43017         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
43018         * m4/stat.m4: Likewise.
43019
43020 1998-11-03  Jim Meyering  <meyering@ascend.com>
43021
43022         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
43023         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
43024
43025 1998-10-18  Jim Meyering  <meyering@ascend.com>
43026
43027         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
43028
43029 1998-10-17  Jim Meyering  <meyering@ascend.com>
43030
43031         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
43032         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
43033         calls for those previously hard-coded headers.  Instead, take a new
43034         parameter.
43035         (jm_CHECK_DECLARATIONS): Reflect interface change.
43036         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
43037         (jm_CHECK_DECL_LOCALTIME_R): New macro.
43038
43039         * m4/mktime.m4: Test for spring-forward gap before long-running test.
43040
43041 1998-10-14  Jim Meyering  <meyering@ascend.com>
43042
43043         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
43044         instead of "TZ=America/Vancouver".  From Paul Eggert.
43045
43046 1998-10-11  Jim Meyering  <meyering@ascend.com>
43047
43048         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
43049         This adds a test for a recently added compatibility fix for mktime.c.
43050         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
43051
43052 1998-09-27  Jim Meyering  <meyering@ascend.com>
43053
43054         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
43055
43056         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
43057         ../configure.in, including a change from Gordon Matzigkeit to allow
43058         cross-compiling for the Hurd.
43059
43060         * m4/glibc.m4: New file/macro to test for the GNU C Library
43061         versions 1 and 2.  From Gordon Matzigkeit.
43062         Indent.
43063
43064 1998-09-21  Jim Meyering  <meyering@ascend.com>
43065
43066         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
43067
43068 1998-08-18  Paul Eggert  <eggert@twinsun.com>
43069
43070         Port nanosecond-resolution times to UnixWare 2.1.2 and
43071         pedantic Solaris 2.6.
43072
43073         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
43074         AC_STRUCT_ST_MTIM.
43075         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
43076         Generate name of ns member, instead of just 1 or undef.
43077         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
43078
43079 1998-08-15  Jim Meyering  <meyering@ascend.com>
43080
43081         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
43082         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
43083         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
43084         instead of jm_TYPE_SSIZE_T.
43085
43086 1998-08-12  Jim Meyering  <meyering@ascend.com>
43087
43088         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
43089
43090 1998-08-02  Jim Meyering  <meyering@ascend.com>
43091
43092         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
43093         in acconfig.h manually.
43094
43095 1998-07-31  Paul Eggert  <eggert@twinsun.com>
43096
43097         * m4/st_mtim.m4: New file.
43098
43099 1998-07-28  Jim Meyering  <meyering@ascend.com>
43100
43101         * m4/utimes.m4: Undef stat.
43102
43103 1998-07-25  Jim Meyering  <meyering@ascend.com>
43104
43105         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
43106         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
43107
43108 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
43109
43110         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
43111         uid and gid actually remain unchanged.
43112
43113 1998-07-07  Jim Meyering  <meyering@ascend.com>
43114
43115         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
43116
43117 1998-07-04  Jim Meyering  <meyering@ascend.com>
43118
43119         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
43120         to prove that this macro can be used in packages without regex.c.
43121
43122 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
43123
43124         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
43125         is to be used.
43126
43127 1998-07-03  Jim Meyering  <meyering@ascend.com>
43128
43129         * m4/gettext.m4: Add -lintl if it's found to be necessary.
43130
43131         * m4/gettext.m4: New file -- from gettext-0.10.35.
43132         * m4/lcmessage.m4: Likewise.
43133         * m4/progtest.m4: Likewise.
43134
43135         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
43136         * m4/jm-macros.m4: Require the new macro.
43137
43138 1998-06-29  Jim Meyering  <meyering@ascend.com>
43139
43140         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
43141         for the definition of NGROUPS (used in a system header included
43142         by sys/mount.h).
43143
43144 1998-06-28  Jim Meyering  <meyering@ascend.com>
43145
43146         * m4/ls-mntd-fs.m4: New file.
43147         * m4/fstypename.m4: New file.
43148
43149         * m4/jm-macros.m4: Require the new macro.
43150         * m4/jm-glibc-io.m4: New file.
43151
43152 1998-05-19  Jim Meyering  <meyering@ascend.com>
43153
43154         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
43155         * m4/lchown.m4: New file.
43156
43157         * m4/Makefile.am.in: New file.
43158         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
43159
43160 1998-05-14  Jim Meyering  <meyering@ascend.com>
43161
43162         * m4/Makefile.am (EXTRA_DIST): Add them.
43163         * m4/jm-macros.m4: New file.
43164         * m4/utimbuf.m4: New file.
43165
43166 1998-05-12  Jim Meyering  <meyering@ascend.com>
43167
43168         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
43169
43170 1998-05-11  Jim Meyering  <meyering@ascend.com>
43171
43172         * m4/isc-posix.m4: New file.
43173
43174 1998-05-10  Jim Meyering  <meyering@ascend.com>
43175
43176         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
43177
43178 1998-05-09  Jim Meyering  <meyering@ascend.com>
43179
43180         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
43181         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
43182         with automake.
43183
43184         * m4/ssize_t.m4: New file.
43185         * m4/mktime.m4: Remove file -- the new automake has this now.
43186
43187 1998-04-26  Jim Meyering  <meyering@ascend.com>
43188
43189         * m4/assert.m4: New file.
43190         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
43191
43192 1998-04-05  Jim Meyering  <meyering@ascend.com>
43193
43194         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
43195         (jm_PREREQ): Use it here.
43196
43197 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
43198
43199         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
43200         in acconfig.h.
43201
43202 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
43203
43204         * m4/prereq.m4: New file.
43205         * m4/error.m4: New file.
43206         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
43207
43208 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
43209
43210         * m4/getline.m4: Don't set am_cv_func_working_getline before the
43211         cache-check for the same variable -- that defeated the purpose of
43212         the test; the test program was never run.  This was a problem only
43213         on systems with losing getline functions -- HP-UX 10.20 is one.
43214         Reported by Bjorn Helgaas.
43215
43216 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
43217
43218         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
43219
43220 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
43221
43222         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
43223
43224         * m4/const.m4: New file.  Use an initializer in this declaration
43225         typedef int charset[2]; const charset x;
43226         Reported by Bob Glickstein.
43227
43228 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
43229
43230         * m4/chown.m4: Fix reversed types on -1 args to chown.
43231         From Kaveh Ghazi.
43232
43233 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
43234
43235         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
43236         Add lseek and memchr.
43237
43238         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
43239         T.E.Dickey <dickey@clark.net> said that some older preprocessors
43240         have a 20-character limit on names.
43241
43242 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
43243
43244         * m4/inttypes_h.m4: New file.
43245         * m4/uintmax_t.m4: New file.
43246         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
43247
43248
43249         -----
43250
43251         Local Variables:
43252         coding: utf-8
43253         End:
43254
43255         Copyright (C) 1997-2008 Free Software Foundation, Inc.
43256
43257         Copying and distribution of this file, with or without
43258         modification, are permitted provided the copyright notice
43259         and this notice are preserved.