Module EOVERFLOW is removed.
[pspp] / ChangeLog
1 2008-09-26  Bruno Haible  <bruno@clisp.org>
2
3         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
4
5 2008-09-26  Bruno Haible  <bruno@clisp.org>
6
7         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
8
9 2008-09-26  Bruno Haible  <bruno@clisp.org>
10
11         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
12         * tests/test-vc-list-files-cvs.sh: Likewise.
13
14 2008-09-26  Bruno Haible  <bruno@clisp.org>
15
16         * doc/posix-headers/sys_resource.texi: Reorder items.
17
18 2008-09-26  Jim Meyering  <meyering@redhat.com>
19
20         fts: tweak inode comparison function
21         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22         inode numbers, as documented.
23
24         fts: sort dirent entries on inode number before traversing
25         This avoids a quadratic, seek-related performance penalty when
26         operating on a directory containing many entries (measurable at 10k;
27         3.5 hours at 2 million entries with a cold cache) on certain types
28         of file systems, including ext3 and ext4, but not tmpfs.
29         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
30         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
32         (fs_handles_readdir_ordered_dirents_efficiently): New function.
33         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
34         (fts_build): Set the stat.st_ino member from D_INO.
35         If it is likely to be useful, sort dirent entries on inode number.
36
37         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38         and the struct statfs.f_type member.
39         * modules/fts (Depends-on): Add d-ino.
40
41 2008-09-26  Bruno Haible  <bruno@clisp.org>
42
43         * modules/sigpipe-die (Depends-on): Add sigpipe.
44
45         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47         and GNULIB_STDIO_H_SIGPIPE are set.
48         * lib/stdio-write.c: New file.
49         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
50         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52         REPLACE_STDIO_WRITE_FUNCS.
53         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
54         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57         * modules/stdio (Files): Add lib/stdio-write.c.
58         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
59         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
60         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
61         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
62         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
63         REPLACE_FPRINTF_POSIX.
64         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
65         REPLACE_PRINTF_POSIX.
66         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
67         REPLACE_VFPRINTF_POSIX.
68         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
69         REPLACE_VPRINTF_POSIX.
70         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
71         SIGPIPE issue.
72         * doc/posix-functions/fputc.texi: Likewise.
73         * doc/posix-functions/fputs.texi: Likewise.
74         * doc/posix-functions/fwrite.texi: Likewise.
75         * doc/posix-functions/printf.texi: Likewise.
76         * doc/posix-functions/putc.texi: Likewise.
77         * doc/posix-functions/putchar.texi: Likewise.
78         * doc/posix-functions/puts.texi: Likewise.
79         * doc/posix-functions/vfprintf.texi: Likewise.
80         * doc/posix-functions/vprintf.texi: Likewise.
81
82         * modules/safe-write (Depends-on): Add write.
83
84         * modules/sigpipe-tests: New file.
85         * tests/test-sigpipe.c: New file.
86         * tests/test-sigpipe.sh: New file.
87
88         * modules/write: New file.
89         * lib/unistd.in.h: Include <sys/types.h>.
90         (write): New declaration.
91         * lib/write.c: New file.
92         * m4/write.m4: New file.
93         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
94         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
95         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
96         GNULIB_WRITE, REPLACE_WRITE.
97         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
98         and the SIGPIPE issue.
99
100         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
101         (raise): New declaration.
102         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
103         (ext_signal): New function.
104         (rpl_raise): New function.
105         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
106         GNULIB_SIGNAL_H_SIGPIPE.
107         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
108         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
109
110         * modules/sigpipe: New file.
111         * m4/sigpipe.m4: New file.
112
113 2008-09-25  Derek Price  <derek@ximbiot.com>
114             Bruno Haible  <bruno@clisp.org>
115
116         * gnulib-tool (func_import): Report all license incompatibilities, not
117         just the first one.
118
119 2008-09-25  Bruno Haible  <bruno@clisp.org>
120
121         * gnulib-tool (func_import): When computing the edits, consider not
122         only the Makefile.ams that exist but also those that will be generated.
123
124 2008-09-25  Simon Josefsson  <simon@josefsson.org>
125
126         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
127         fixes gnulib-tool --test warning about duplicate dependency.
128
129 2008-09-25  Bruno Haible  <bruno@clisp.org>
130
131         * gnulib-tool: Don't ask the user to perform edits in the generated
132         Makefile.ams.
133         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
134         apply to the Makefile.am being generated.
135         (func_emit_tests_Makefile_am): Execute edits that apply to the
136         Makefile.am being generated.
137         (func_import): Setup list of Makefile.am edits before emitting the
138         Makefile.ams, not at the end.
139         (func_create_testdir): Update.
140         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
141
142 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
143
144         * gnulib-tool (func_import): Store the --tests-base option in the
145         comment in gnulib-cache.m4.
146
147 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
148
149         * NEWS: Document increased portability that sys_select now provides.
150
151         * lib/sys_select.in.h: Install select wrapper.
152         * lib/sys_socket.in.h: Use more descriptive name when there is no
153         select wrapper.
154         * lib/winsock-select.c: New.
155         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
156         Require gl_HEADER_SYS_SOCKET.
157         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
158         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
159         * tests/test-sys_select.c: Add functional tests.
160
161 2008-09-24  Eric Blake  <ebb9@byu.net>
162
163         open, fopen: close fd leak in last patch
164         * lib/open.c (rpl_open): Close fd before returning error.
165         * lib/fopen.c (rpl_fopen): Close fd before returning error.
166         * doc/posix-functions/open.texi (open): Document that Irix also
167         has the bug.
168         * doc/posix-functions/fopen.texi (fopen): Likewise.
169         Reported by Paolo Bonzini.
170
171 2008-09-24  Bruno Haible  <bruno@clisp.org>
172
173         Ensure that a filename ending in a slash cannot be used to access a
174         non-directory.
175         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
176         to check whether it's really a directory.
177         * lib/fopen.c: Include fcntl.h, unistd.h.
178         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
179         and fdopen().
180         * modules/fopen (Depends-on): Add unistd.
181         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
182         * tests/test-fopen.c (main): Likewise.
183         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
184         * doc/posix-functions/fopen.texi: Likewise.
185         Reported by Eric Blake.
186
187 2008-09-23  Eric Blake  <ebb9@byu.net>
188
189         c-stack: avoid compiler optimizations when provoking overflow
190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
191         recursion harder to optimize, to ensure a stack overflow occurs.
192         * tests/test-c-stack.c (recurse): Likewise.
193         Borrowed from libsigsegv.
194
195         c-stack: work around Irix sigaltstack bug
196         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
197         whether sigaltstack uses wrong end of stack_t (copied in part from
198         libsigsegv).
199         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
200         Irix bug, without requiring an over-allocation.
201         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
202         bug.
203
204         fopen: document mingw bug on directories
205         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
206         not allowing a stream visiting a directory, even though reading
207         from such a stream is not portable.
208
209 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
210
211         * lib/poll.c: Rewrite.
212         * modules/poll: Depend on alloca.
213
214 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
215
216         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
217         instead define prototypes for a full set of wrappers.  Ensure
218         that Cygwin does not use the compatibility code, which is only
219         for MinGW.
220         * lib/winsock.c: New.
221         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
222         * modules/sys_socket: Add lib/winsock.c.
223
224         * modules/poll-tests: Add errno and perror.
225         * tests/test-poll.c: Use ioctl, not ioctlsocket.
226
227 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
228
229         * tests/test-poll.c: Downgrade minimum needed Winsock version.
230
231 2008-09-23  Bruno Haible  <bruno@clisp.org>
232
233         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
234         * doc/glibc-functions/*: Likewise.
235
236 2008-09-23  Simon Josefsson  <simon@josefsson.org>
237
238         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
239         success.
240
241 2008-09-22  Eric Blake  <ebb9@byu.net>
242             Bruno Haible  <bruno@clisp.org>
243
244         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
245         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
246         supply %A but mishandle pseudo-NaN.
247         Reported by Simon Josefsson.
248
249 2008-09-21  Bruno Haible  <bruno@clisp.org>
250
251         * tests/test-lock.c (main): Tweak skip message.
252         * tests/test-tls.c (main): Likewise.
253
254 2008-09-21  Bruno Haible  <bruno@clisp.org>
255
256         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
257         whether 'struct sigaction' has sa_sigaction here...
258         (gl_PREREQ_SIG_HANDLER_H): ... not here.
259         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
260
261 2008-09-21  Bruno Haible  <bruno@clisp.org>
262
263         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
264         section.
265         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
266         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
267         the new section.
268         (Support for obsolete systems lacking POSIX:2001): New section.
269         (String handling <string.h>): Move strdup to the new section.
270         Suggested by Simon Josefsson and Paolo Bonzini.
271
272 2008-09-21  Bruno Haible  <bruno@clisp.org>
273
274         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
275         exponents in %e and %g results on 'long double'. Needed for mingw's
276         improved *printf functions.
277         * tests/test-vasprintf-posix.c (test_function): Likewise.
278         * tests/test-snprintf-posix.h (test_function): Likewise.
279         * tests/test-sprintf-posix.h (test_function): Likewise.
280         Reported by Eric Blake.
281
282 2008-09-21  Bruno Haible  <bruno@clisp.org>
283
284         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
285         * tests/test-sprintf-posix.h (test_function): Likewise.
286
287 2008-09-21  Bruno Haible  <bruno@clisp.org>
288
289         * modules/getpass (Depends-on): Add strdup-posix.
290
291         New module 'strdup-posix'.
292         * modules/strdup-posix: New file.
293         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
294         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
296         REPLACE_STRDUP.
297         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
298         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
300         strdup-posix.
301
302         * modules/strdup (Depends-on): Remove malloc-posix.
303
304 2008-09-20  Bruno Haible  <bruno@clisp.org>
305
306         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
307         Wildenhues.
308
309 2008-09-20  Bruno Haible  <bruno@clisp.org>
310
311         Ensure that wint_t gets defined on IRIX 5.3.
312         * lib/wchar.in.h (wint_t): Define if not defined by the system.
313         * lib/wctype.in.h (wint_t): Likewise.
314         (__wctype_wint_t): Remove type.
315         (isw*): Use wint_t instead of __wctype_wint_t.
316         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
317         * modules/wchar (Files): Add m4/wint_t.m4.
318         (Makefile.am): Substitute HAVE_WINT_T.
319         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
320         * tests/test-wctype.c: Check that wint_t is defined.
321         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
322         * doc/posix-headers/wctype.texi: Likewise.
323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
324
325 2008-09-18  Bruno Haible  <bruno@clisp.org>
326
327         * gnulib-tool (func_exit): Update comment.
328
329 2008-09-18  Simon Josefsson  <simon@josefsson.org>
330
331         * modules/getaddrinfo (Depends-on): Remove strdup, this module
332         assumes strdup exists and does not depend on strdup to return
333         ENOMEM on out of memory conditions.
334
335 2008-09-18  Bruno Haible  <bruno@clisp.org>
336
337         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
338         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
339         digits for the exponent.
340
341 2008-09-18  Jim Meyering  <meyering@redhat.com>
342             Bruno Haible  <bruno@clisp.org>
343
344         * lib/vasnprintf.c (decimal_point_char): Define also if
345         NEED_PRINTF_INFINITE_LONG_DOUBLE.
346
347 2008-09-16  Bruno Haible  <bruno@clisp.org>
348         and Eric Blake  <ebb9@byu.net>
349
350         vasnprintf: support Irix 5.3
351         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
352         that mishandle long double infinity.
353         Reported by Tom G. Christensen.
354
355 2008-09-16  Bruno Haible  <bruno@clisp.org>
356
357         * doc/glibc-functions/scandir.texi: Mention the function is missing on
358         Solaris 9.
359         * doc/glibc-functions/alphasort.texi: Likewise.
360         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
361
362 2008-09-16  Jim Meyering  <meyering@redhat.com>
363
364         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
365         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
366         a umask modification leak out of a subshell.  Otherwise, the
367         opensolaris /bin/sh would be accepted and thus cause unwarranted
368         failures in the coreutils test suite.
369
370 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
371
372         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
373         to succeed.
374
375 2008-09-16  Jim Meyering  <meyering@redhat.com>
376
377         avoid spurious test failure when library is built without ACL support
378         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
379         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
380         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
381         * tests/test-copy-acl.sh: Likewise.
382
383 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
384
385         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
386         based on character occurrence counts.
387
388 2008-09-15  Eric Blake  <ebb9@byu.net>
389
390         tests: avoid some compiler warnings
391         * tests/test-memchr.c (main): Pass NULL indirectly.
392         * tests/test-closein.c (main): Avoid unused variable.
393
394 2008-09-15  Bruno Haible  <bruno@clisp.org>
395
396         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
397         are missing on OpenBSD 4.0 individually.
398         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
399
400 2008-09-15  Bruno Haible  <bruno@clisp.org>
401
402         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
403         * doc/posix-functions/strerror.texi: Mention also Cygwin.
404         * doc/posix-functions/perror.texi: Likewise.
405         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
406         is missing.
407         Reported by Eric Blake.
408
409         * lib/errno.in.h: Use replacement values >= 2000.
410         Reported by Eric Blake.
411
412 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
413
414         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
415         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
416         limit.
417         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
418         compareseq was aborted.
419
420 2008-09-14  Bruno Haible  <bruno@clisp.org>
421
422         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
423         yvec_edit_count.
424         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
425         (fstrcmp_bounded): Simplify result computation accordingly.
426
427 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
428
429         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
430         (fstrcmp): Define in terms of fstrcmp_bounded.
431         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
432         lower_bound argument.
433         Return quickly if the result is certainly < lower_bound.
434         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
435
436 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
437
438         * lib/diffseq.h (EARLY_ABORT): New macro.
439         (compareseq): Change return type to bool. Return true when EARLY_ABORT
440         evaluates to true.
441
442 2008-09-14  Bruno Haible  <bruno@clisp.org>
443
444         * modules/perror-tests: New file.
445         * tests/test-perror.sh: New file.
446         * tests/test-perror.c: New file.
447
448         New module 'perror'.
449         * lib/stdio.in.h (perror): New declaration.
450         * lib/perror.c: New file.
451         * m4/perror.m4: New file.
452         * modules/perror: New file.
453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
454         * doc/posix-functions/perror.texi: Mention the perror module.
455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
456         REPLACE_PERROR.
457         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
458         REPLACE_PERROR.
459
460 2008-09-14  Bruno Haible  <bruno@clisp.org>
461
462         * modules/stdio (Makefile.am): Reorder to match the order in
463         lib/stdio.in.h.
464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
465
466 2008-09-13  Bruno Haible  <bruno@clisp.org>
467
468         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
469
470 2008-09-13  Bruno Haible  <bruno@clisp.org>
471
472         Extend strerror to cover the added errno values.
473         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
474         (rpl_strerror): Provide error messages for the added errno values and
475         for the WSA* values.
476         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
477         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
478         strerror.
479         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
480         * modules/strerror (Depends-on): Add errno.
481         * doc/posix-functions/strerror.texi: Document the change.
482         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
483         and EOVERFLOW.
484
485 2008-09-13  Bruno Haible  <bruno@clisp.org>
486
487         * modules/EOVERFLOW: Remove file.
488         * m4/eoverflow.m4: Remove file.
489         * modules/EOVERFLOW-tests: Remove file.
490         * tests/test-EOVERFLOW.c: Remove file.
491         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
492         * modules/ftell (Depends-on): Likewise.
493         * modules/getdelim (Depends-on): Likewise.
494         * modules/getugroups (Depends-on): Likewise.
495         * modules/poll (Depends-on): Likewise.
496         * modules/snprintf (Depends-on): Likewise.
497         * modules/sprintf-posix (Depends-on): Likewise.
498         * modules/vasnprintf (Depends-on): Likewise.
499         * modules/vasprintf (Depends-on): Likewise.
500         * modules/vfprintf-posix (Depends-on): Likewise.
501         * modules/vsnprintf (Depends-on): Likewise.
502         * modules/vsprintf-posix (Depends-on): Likewise.
503         * modules/xvasprintf (Depends-on): Likewise.
504         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
505         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
506         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
507         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
508         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
509         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
510         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
511         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
512         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
513         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
514         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
515         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
516         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
517         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
518         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
519         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
520         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
521         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
522         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
523         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
524         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
525         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
526         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
527         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
528         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
529         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
530         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
531         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
532         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
533         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
534         * MODULES.html.sh: Remove EOVERFLOW.
535         * NEWS: Mention the change.
536
537 2008-09-13  Bruno Haible  <bruno@clisp.org>
538
539         * modules/errno-tests: New file.
540         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
541
542         * lib/errno.in.h: New file.
543         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
544         * modules/errno: New file.
545         * doc/posix-headers/errno.texi: Update documentation.
546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
547
548 2008-09-13  Bruno Haible  <bruno@clisp.org>
549
550         * tests/test-poll.c: Use #if for native Windows, rather than testing
551         __MSVCRT__.
552
553 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
554             Bruno Haible  <bruno@clisp.org>
555
556         * lib/glob.c: Don't include <pwd.h> on native Windows.
557         (WINDOWS32): New macro.
558         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
559
560 2008-09-13  Bruno Haible  <bruno@clisp.org>
561
562         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
563         (ETIMEDOUT): Remove macro.
564         (glthread_cond_timedwait_multithreaded): New declaration.
565         (glthread_cond_timedwait): Use it.
566         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
567         (glthread_cond_timedwait_multithreaded): New function.
568
569 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
570
571         * modules/poll-tests: Do not check for io.h.
572         * tests/test-poll.c: Check for __MSVCRT__ instead.
573
574 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
575
576         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
577         * modules/poll-tests: Add inet_pton, stdbool, sockets.
578         * tests/test-poll.c: Use them.  Use _pipe on Windows.
579
580 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
581
582         * modules/poll-tests: New.
583         * tests/test-poll.c: New.
584
585 2008-09-12  Eric Blake  <ebb9@byu.net>
586
587         frexp: test for NetBSD failure on -0.0
588         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
589         not all, bugs from NetBSD 3.0 have been fixed.
590         * doc/posix-functions/frexp.texi (frexp): Document bug.
591         Reported by Thomas Klausner.
592
593         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
594         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
595         literal -0.0.
596         Reported by Jonathan C. Patschke <jp@centtech.com>.
597
598 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
599
600         * lib/glthread/cond.h: Use dummy implementation also if
601         USE_WIN32_THREADS.
602
603 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
604
605         * modules/fnmatch-posix (License): Change to LGPLv2+.
606         * modules/fnmatch-gnu (License): Likewise.
607
608 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
609
610         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
611
612 2008-09-11  Jim Meyering  <meyering@redhat.com>
613
614         * users.txt: Add gtk-vnc.
615
616 2008-09-08  Simon Josefsson  <simon@josefsson.org>
617
618         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
619         rotate amounts.
620
621         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
622         required for 16-bit and 8-bit rotates.
623         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
624         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
625         UINT8_MAX instead of hard-coded constants.
626         Suggested by Paul Eggert.
627
628 2008-09-07  Bruno Haible  <bruno@clisp.org>
629
630         * tests/test-striconveh.c (main): Check behaviour when converting from
631         UTF-7.
632
633         Make striconveh work better with stateful encodings.
634         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
635         that iconv does not increment the inptr when returning -1/EINVAL.
636
637 2008-09-07  Bruno Haible  <bruno@clisp.org>
638
639         * build-aux/config.rpath: Update according to libtool-2.2.6.
640         * build-aux/config.libpath: Likewise.
641
642 2008-09-06  Bruno Haible  <bruno@clisp.org>
643
644         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
645         * lib/freadptr.c (freadptr): Likewise.
646         * lib/freadseek.c (freadptrinc): Likewise.
647         Reported by Simon Josefsson.
648
649 2008-09-06  Bruno Haible  <bruno@clisp.org>
650
651         * modules/freadptr (License): Change to LGPLv2+.
652         * modules/freadseek (License): Likewise.
653         Suggested by Eric Blake.
654
655         * modules/memchr2 (License): Change to LGPLv2+.
656         Approved by Eric Blake.
657
658 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
659             Bruno Haible  <bruno@clisp.org>
660
661         Make gnulib-tool work with native 'sed' on AIX.
662         * gnulib-tool (sed_noop): New variable.
663         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
664         func_add_or_update, func_create_testdir): Use it to initialize sed
665         script variables.
666         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
667
668 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
669             Bruno Haible  <bruno@clisp.org>
670
671         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
672         also works after #include directives.
673
674 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
675
676         getdate.y: reject an out-of-range timezone value
677         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
678         the range [-24...+24].  When specified with only one or two digits,
679         * tests/test-getdate.c: Tests for the fix.
680         * doc/getdate.texi: Document this change.
681
682 2008-09-03  Bruno Haible  <bruno@clisp.org>
683
684         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
685
686 2008-09-02  Simon Josefsson  <simon@josefsson.org>
687
688         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
689         <bruce.korb@gmail.com> with ideas from Ben Pfaff
690         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
691         Blake <ebb9@byu.net>.
692
693         * tests/test-bitrotate.c: Add more test vectors.
694
695 2008-09-02  Eric Blake  <ebb9@byu.net>
696
697         vasnprintf-posix: handle large precision via %.*d
698         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
699         when handling it ourselves.
700         * tests/test-vasnprintf-posix.c (test_function): Add test.
701         * tests/test-snprintf-posix.h (test_function): Likewise.
702         * tests/test-sprintf-posix.h (test_function): Likewise.
703         * tests/test-vasprintf-posix.c (test_function): Likewise.
704         Reported by Alain Guibert.
705
706 2008-09-01  Eric Blake  <ebb9@byu.net>
707
708         c-stack: make configure-time check more robust
709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
710         successful sigaction call.
711         Reported by Tom G. Christensen.
712
713 2008-09-01  Bruno Haible  <bruno@clisp.org>
714
715         New module 'findprog-lgpl'.
716         * modules/findprog-lgpl: New file.
717         * lib/findprog-lgpl.c: New file.
718         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
719         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
720         to decide whether to use strdup or xstrdup, concatenated_filename or
721         xconcatenated_filename.
722
723 2008-09-01  Bruno Haible  <bruno@clisp.org>
724
725         Split module 'concat-filename' into 'concat-filename' (LGPL) and
726         'xconcat-filename' (GPL).
727         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
728         (License): Change to LGPLv2+.
729         * modules/xconcat-filename: New file.
730         * lib/concat-filename.h (concatenated_filename): Change specification.
731         (xconcatenated_filename): New declaration.
732         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
733         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
734         memory situations.
735         * lib/xconcat-filename.c: New file.
736         * NEWS: Mention the change.
737         * lib/findprog.c: Include concat-filename.h, not filename.h.
738         (find_in_path): Use xconcatenated_filename instead of
739         concatenated_filename.
740         * lib/javacomp.c: Include concat-filename.h, not filename.h.
741         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
742         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
743         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
744         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
745         instead of concatenated_filename.
746         * lib/javaexec.c: Include concat-filename.h, not filename.h.
747         (execute_java_class): Use xconcatenated_filename instead of
748         concatenated_filename.
749         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
750         * modules/javacomp (Depends-on): Likewise.
751         * modules/javaexec (Depends-on): Likewise.
752
753 2008-09-01  Bruno Haible  <bruno@clisp.org>
754
755         Split module 'filename' into 'filename' and 'concat-filename'.
756         * modules/filename: Keep only lib/filename.h.
757         (License): Change to LGPLv2+.
758         * modules/concat-filename: New file, extracted from modules/filename.
759         * lib/filename.h (concatenated_filename): Remove declaration.
760         * lib/concat-filename.h: New file, extracted from lib/filename.h.
761         * lib/concat-filename.c: Include concat-filename.h.
762         * NEWS: Mention the change.
763
764 2008-09-01  Simon Josefsson  <simon@josefsson.org>
765
766         * lib/bitrotate.h (rotl8, rotr8): Add.
767
768         * modules/bitrotate (configure.ac): Need
769         AC_REQUIRE([AC_C_INLINE]).
770         (Description): Mention stdint.h.  Reported by Bruno Haible
771         <bruno@clisp.org>.
772
773         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
774         Paolo Bonzini <bonzini@gnu.org>.
775
776 2008-08-31  Bruno Haible  <bruno@clisp.org>
777
778         Assume Solaris specific bi-arch conventions on Solaris systems.
779         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
780         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
781         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
782         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
783         like acl_libdirstem.
784         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
785         acl_libdirstem.
786         * NEWS: Mention the change.
787         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
788
789 2008-08-31  Jim Meyering  <meyering@redhat.com>
790
791         * lib/strftime.h: Add comments describing the two added arguments.
792
793         remove duplicate #include directives
794         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
795         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
796
797 2008-08-31  Bruno Haible  <bruno@clisp.org>
798
799         New module 'sigpipe-die'.
800         * modules/sigpipe-die: New file.
801         * lib/sigpipe-die.h: New file.
802         * lib/sigpipe-die.c: New file.
803         * MODULES.html.sh (Signal handling): Add sigpipe-die.
804
805 2008-08-31  Bruno Haible  <bruno@clisp.org>
806
807         Don't override previously installed signal handlers.
808         * lib/fatal-signal.c (saved_sigactions): New variable.
809         (uninstall_handlers): Reset the signal to the saved handler, not
810         to SIG_DFL (except when ignored).
811         (install_handlers): Save the previous handlers.
812
813 2008-08-30  Bruno Haible  <bruno@clisp.org>
814
815         * gnulib-tool (func_reset_sigpipe): New function.
816         (func_get_automake_snippet, func_modules_transitive_closure,
817         func_import): Invoke it before a join command that reads from stdin,
818         to avoid "echo: write error: Broken pipe" error messages on stderr.
819         Reported by Sam Steingold <sds@gnu.org>.
820
821 2008-08-30  Bruno Haible  <bruno@clisp.org>
822
823         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
824         Code copied from m4/open.m4.
825         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
826         access and the filename ends in a slash. Code copied from lib/open.c.
827         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
828         * tests/test-fopen.c (main): Check against bug with trailing slash.
829
830 2008-08-29  Bruno Haible  <bruno@clisp.org>
831
832         Avoid some "gcc -pedantic" warnings.
833         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
834         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
835         * lib/dirent.in.h: Likewise.
836         * lib/fcntl.in.h: Likewise.
837         * lib/float.in.h: Likewise.
838         * lib/iconv.in.h: Likewise.
839         * lib/inttypes.in.h: Likewise.
840         * lib/locale.in.h: Likewise.
841         * lib/math.in.h: Likewise.
842         * lib/netinet_in.in.h: Likewise.
843         * lib/search.in.h: Likewise.
844         * lib/signal.in.h: Likewise.
845         * lib/stdarg.in.h: Likewise.
846         * lib/stdint.in.h: Likewise.
847         * lib/stdio.in.h: Likewise.
848         * lib/stdlib.in.h: Likewise.
849         * lib/string.in.h: Likewise.
850         * lib/strings.in.h: Likewise.
851         * lib/sys_select.in.h: Likewise.
852         * lib/sys_socket.in.h: Likewise.
853         * lib/sys_stat.in.h: Likewise.
854         * lib/sys_time.in.h: Likewise.
855         * lib/sysexits.in.h: Likewise.
856         * lib/time.in.h: Likewise.
857         * lib/unistd.in.h: Likewise.
858         * lib/wchar.in.h: Likewise.
859         * lib/wctype.in.h: Likewise.
860         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
861         * modules/fchdir (Makefile.am): Likewise.
862         * modules/fcntl (Makefile.am): Likewise.
863         * modules/float (Makefile.am): Likewise.
864         * modules/iconv_open (Makefile.am): Likewise.
865         * modules/inttypes (Makefile.am): Likewise.
866         * modules/locale (Makefile.am): Likewise.
867         * modules/math (Makefile.am): Likewise.
868         * modules/netinet_in (Makefile.am): Likewise.
869         * modules/search (Makefile.am): Likewise.
870         * modules/signal (Makefile.am): Likewise.
871         * modules/stdarg (Makefile.am): Likewise.
872         * modules/stdint (Makefile.am): Likewise.
873         * modules/stdio (Makefile.am): Likewise.
874         * modules/stdlib (Makefile.am): Likewise.
875         * modules/string (Makefile.am): Likewise.
876         * modules/strings (Makefile.am): Likewise.
877         * modules/sys_select (Makefile.am): Likewise.
878         * modules/sys_socket (Makefile.am): Likewise.
879         * modules/sys_stat (Makefile.am): Likewise.
880         * modules/sys_time (Makefile.am): Likewise.
881         * modules/sysexits (Makefile.am): Likewise.
882         * modules/time (Makefile.am): Likewise.
883         * modules/unistd (Makefile.am): Likewise.
884         * modules/wchar (Makefile.am): Likewise.
885         * modules/wctype (Makefile.am): Likewise.
886         Reported by Reuben Thomas <rrt@sc3d.org>.
887
888 2008-08-29  Bruno Haible  <bruno@clisp.org>
889
890         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
891         any more.
892
893 2008-08-29  Simon Josefsson  <simon@josefsson.org>
894
895         * MODULES.html.sh (Misc): Add bitrotate.
896
897         * modules/bitrotate: New file.
898
899         * lib/bitrotate.h: New file.
900
901         * modules/bitrotate-tests: New file.
902
903         * tests/test-bitrotate.c: New file.
904
905         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
906         on the bitrotate module.
907
908         * lib/arctwo.c: Use new bitrotate module.
909
910 2008-08-29  Jim Meyering  <meyering@redhat.com>
911
912         bootstrap: merge changes from coreutils
913         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
914         of copied files.  Remove a kludge, now that this is fixed.
915         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
916         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
917         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
918
919 2008-08-29  Bruno Haible  <bruno@clisp.org>
920
921         * MODULES.html.sh: Remove --cvs-urls option.
922
923 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
924
925         maint.mk: adjust to file name change
926         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
927
928 2008-08-28  Jim Meyering  <meyering@redhat.com>
929
930         * modules/getndelim2 (License): Relicense to LGPLv2+.
931         Approved by Richard Stallman for the version of 1995, and by
932         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
933
934 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
935
936         * lib/getdelim.c (flockfile, funlockfile): Make all of them
937         dummy if one is not available.  Do not touch them if
938         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
939         (getc_maybe_unlocked): New.
940         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
941
942 2008-08-26  Eric Blake  <ebb9@byu.net>
943
944         doc/INSTALL: resync from autoconf
945         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
946         (INSTALL_PRELUDE): Delete; this is done more efficiently by
947         moving...
948         * install.texi [!autoconf]: ...here.  Resync from autoconf.
949         * INSTALL: Regenerate.
950         * INSTALL.ISO: New file.
951         * INSTALL.UTF-8: Likewise.
952
953 2008-08-26  Jim Meyering  <meyering@redhat.com>
954
955         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
956         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
957         these definitions conditional, so that they may be overridden, too.
958
959 2008-08-26  Bruno Haible  <bruno@clisp.org>
960
961         Generate INSTALL file variants with prettier quotes.
962         * doc/Makefile (INSTALL_PRELUDE): New macro.
963         (INSTALL): Use it.
964         (INSTALL.ISO, INSTALL.UTF-8): New rules.
965
966 2008-08-26  Bruno Haible  <bruno@clisp.org>
967
968         Run makeinfo in an English locale.
969         * doc/Makefile (MAKEINFO): New variable.
970
971 2008-08-26  Bruno Haible  <bruno@clisp.org>
972
973         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
974         Suggested by Eric Blake.
975
976 2008-08-25  Bruno Haible  <bruno@clisp.org>
977
978         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
979
980 2008-08-25  Eric Blake  <ebb9@byu.net>
981
982         c-stack: test that stack overflow can be caught
983         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
984         that platform allows handling stack overflow; at least OS/2 EMX
985         has sigaltstack, but crashes before transferring control to
986         handler on stack overflow.
987         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
988         check for HAVE_STACK_OVERFLOW_HANDLING.
989         Reported by Elbert Pol.
990
991 2008-08-25  Bruno Haible  <bruno@clisp.org>
992
993         * doc/posix-functions/strftime.texi: Fix description of strftime
994         module.
995
996 2008-08-24  Bruno Haible  <bruno@clisp.org>
997
998         * tests/uniwidth/test-uc_width2.c: New file.
999         * tests/uniwidth/test-uc_width2.sh: New file.
1000         * modules/uniwidth/width-tests (Files): Add the new files.
1001         (TESTS): Add uniwidth/test-uc_width2.sh.
1002         (TESTS_ENVIRONMENT): New variable.
1003         (check_PROGRAMS): Add test-uc_width2.
1004         (test_uc_width2_SOURCES): New variable.
1005
1006         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
1007         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
1008         not 0x00AB.
1009         Reported by Alexander V. Lukyanov <lav@netis.ru>.
1010
1011 2008-08-22  Eric Blake  <ebb9@byu.net>
1012
1013         test-lock, test-tls: mention why a test is skipped
1014         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
1015         skipped.
1016         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
1017
1018         count-one-bits: relax license
1019         * modules/count-one-bits (License): Relicense to LGPLv2+.
1020         Suggested by Ludovic Courtès, approved by Ben Pfaff.
1021
1022 2008-08-22  Andreas Schwab  <schwab@suse.de>
1023
1024         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1025         Remove spurious space in assignment.
1026
1027 2008-08-21  Simon Josefsson  <simon@josefsson.org>
1028
1029         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
1030         Paul Eggert <eggert@CS.UCLA.EDU>.
1031
1032 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
1033
1034         * modules/gettext: Add m4/threadlib.m4.
1035
1036 2008-08-19  Eric Blake  <ebb9@byu.net>
1037
1038         test-c-stack: fix compilation failure on FreeBSD 5.0
1039         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
1040         headers before <sys/resource.h>.
1041         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
1042         the bug.
1043         Reported by Nelson H. F. Beebe.
1044
1045         strverscmp: migrate from "strverscmp.h" to <string.h>
1046         * modules/string (Makefile.am): Add new hooks.
1047         * modules/strverscmp (Files): Remove strverscmp.h.
1048         (Depends-on): Add string.
1049         (configure.ac): Add indicator.
1050         (Include): Mention new header.
1051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
1052         defaults.
1053         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
1054         results.
1055         * lib/strverscmp.h: Delete.
1056         * lib/string.in.h (strverscmp): Provide declaration, when needed.
1057         * tests/test-strverscmp.c (includes): Adjust client.
1058         * lib/check-version.c (includes): Likewise.
1059         * NEWS: Document the change.
1060
1061         strverscmp: add unit test
1062         * modules/strverscmp-tests: New file.
1063         * tests/test-strverscmp.c: Likewise.
1064
1065 2008-08-19  Simon Josefsson  <simon@josefsson.org>
1066
1067         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
1068         regarding Windows crypto stuff, from Mono.
1069
1070 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
1071
1072         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
1073         if present, for intel RND.  Return error on failures.
1074
1075 2008-08-18  Ben Pfaff  <blp@gnu.org>
1076
1077         gitlog-to-changelog: give better diagnostic for failed pipe-open
1078         * build-aux/gitlog-to-changelog: Improve error message: suggest
1079         that the version of Git may be too old.
1080
1081 2008-08-18  Simon Josefsson  <simon@josefsson.org>
1082
1083         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
1084         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
1085
1086 2008-08-18  Bruno Haible  <bruno@clisp.org>
1087
1088         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
1089         pthread_in_use().
1090
1091 2008-08-18  Bruno Haible  <bruno@clisp.org>
1092
1093         * lib/glthread/threadlib.c: Include <pthread.h>.
1094
1095 2008-08-18  Bruno Haible  <bruno@clisp.org>
1096
1097         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
1098         glthread_recursive_lock_* macros.
1099         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
1100         Fix syntax error.
1101
1102 2008-08-18  Bruno Haible  <bruno@clisp.org>
1103
1104         * lib/glthread/thread.c: Avoid forcing a context switch right after
1105         thread creation.
1106
1107 2008-08-17  Bruno Haible  <bruno@clisp.org>
1108
1109         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
1110         * lib/glthread/thread.h: Provide Win32 specific implementation.
1111         * modules/thread (Files): Add lib/glthread/thread.c.
1112         (Depends-on): Add lock.
1113         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
1114
1115 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1116
1117         New module 'yield'.
1118         * modules/yield: New file.
1119         * lib/glthread/yield.h: New file.
1120         * m4/yield.m4: New file.
1121         * MODULES.html.sh (Multithreading): Add yield.
1122
1123 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1124
1125         New module 'thread'.
1126         * modules/thread: New file.
1127         * lib/glthread/thread.h: New file.
1128         * m4/thread.m4: New file.
1129         * MODULES.html.sh (Multithreading): Add thread.
1130
1131 2008-08-17  Bruno Haible  <bruno@clisp.org>
1132
1133         * lib/glthread/lock.h: Include <stdlib.h> always.
1134         * lib/glthread/tls.h: Likewise.
1135         * lib/glthread/cond.h: Likewise.
1136
1137 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1138
1139         New module 'cond'.
1140         * modules/cond: New file.
1141         * lib/glthread/cond.h: New file.
1142         * lib/glthread/cond.c: New file.
1143         * m4/cond.m4: New file.
1144         * MODULES.html.sh (Multithreading): Add cond.
1145
1146 2008-08-16  Eric Blake  <ebb9@byu.net>
1147
1148         c-stack: fix regression on Irix 5.3 from 2008-06-21
1149         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
1150         sa_sigaction...
1151         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
1152         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
1153         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
1154         * modules/signal (Makefile.am): Use the value.
1155         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
1156         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
1157         * doc/posix-headers/signal.texi (signal.h): Document this
1158         portability issue.
1159         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
1160         Reported by Tom G. Christensen.
1161
1162 2008-08-17  Bruno Haible  <bruno@clisp.org>
1163
1164         New module 'threadlib'.
1165         * modules/threadlib: New file.
1166         * lib/glthread/threadlib.c: New file, extracted from
1167         lib/glthread/lock.c.
1168         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
1169         functions.
1170         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
1171         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
1172         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
1173         macros.
1174         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
1175         (gl_DISABLE_THREADS): Remove macro.
1176         * modules/lock (Files): Remove build-aux/config.rpath.
1177         (Depends-on): Remove havelib. Add threadlib.
1178         (configure.ac-early): Remove section.
1179         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
1180         * modules/tls (Depends-on): Remove lock. Add threadlib.
1181         (Link): New section, copied from threadlib.
1182         * MODULES.html.sh (Multithreading): Add threadlib.
1183
1184 2008-08-14  Bruno Haible  <bruno@clisp.org>
1185
1186         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
1187         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
1188         glthread_rwlock_unlock, glthread_rwlock_destroy,
1189         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
1190         glthread_recursive_lock_destroy): Define as macros always.
1191         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
1192         glthread_lock_lock.
1193         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
1194         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
1195         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
1196         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
1197         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
1198         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
1199         (glthread_recursive_lock_lock_func): Renamed from
1200         glthread_recursive_lock_lock.
1201         (glthread_recursive_lock_unlock_func): Renamed from
1202         glthread_recursive_lock_unlock.
1203         (glthread_recursive_lock_destroy_func): Renamed from
1204         glthread_recursive_lock_destroy.
1205
1206 2008-08-14  Bruno Haible  <bruno@clisp.org>
1207
1208         * lib/glthread/lock.h: Renamed from lib/lock.h.
1209         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
1210         * lib/glthread/tls.h: Renamed from lib/tls.h.
1211         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
1212         * lib/fstrcmp.c: Update includes.
1213         * lib/strsignal.c: Update includes.
1214         * modules/lock (Files, Makefile.am): Update.
1215         (Include): Change to "glthread/lock.h".
1216         * modules/tls (Files, Makefile.am): Update.
1217         (Include): Change to "glthread/tls.h".
1218         * tests/test-lock.c: Update includes.
1219         * tests/test-tls.c: Update includes.
1220         * NEWS: Mention the renamed header files.
1221
1222 2008-08-11  Jim Meyering  <meyering@redhat.com>
1223
1224         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
1225
1226 2008-08-11  Eric Blake  <ebb9@byu.net>
1227
1228         test-c-stack: avoid C99-ism
1229         * tests/test-c-stack.c (main): Fix whitespace, move declaration
1230         before statement.
1231         Reported by Alain Guibert.
1232
1233 2008-08-10  Jim Meyering  <meyering@redhat.com>
1234
1235         ensure that return value of uinttostr et al are not ignored
1236         * lib/inttostr.h (__GNUC_PREREQ): Define.
1237         (__attribute_warn_unused_result__): Define.
1238         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
1239
1240 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
1241
1242         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
1243         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
1244
1245 2008-08-07  Jim Meyering  <meyering@redhat.com>
1246
1247         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
1248
1249         * modules/mkstemp (License): Relicense under LGPLv2+.
1250         * modules/tempname (License): Likewise.
1251
1252 2008-08-06  Bruno Haible  <bruno@clisp.org>
1253
1254         * lib/poll.c (poll): Further micro-optimization.
1255
1256 2008-08-06  Jim Meyering  <meyering@redhat.com>
1257
1258         inet_pton.c: use locale-independent tolower
1259         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
1260         (inet_pton6): Use c_tolower rather than tolower.
1261         * modules/inet_pton (Depends-on): Add c-ctype.
1262
1263 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
1264
1265         * lib/poll.c (poll): Avoid division when timeout is 0, cache
1266         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
1267
1268 2008-08-06  Jim Meyering  <meyering@redhat.com>
1269
1270         * modules/inet_pton (License): Relicense under LGPLv2+.
1271
1272 2008-08-03  Bruno Haible  <bruno@clisp.org>
1273
1274         Additional non-aborting API for lock and tls.
1275         * lib/lock.h: Include <errno.h>.
1276         (glthread_lock_init): New macro/function.
1277         (gl_lock_init): Define as wrapper around glthread_lock_init.
1278         (glthread_lock_lock): New macro/function.
1279         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
1280         (glthread_lock_unlock): New macro/function.
1281         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
1282         (glthread_lock_destroy): New macro/function.
1283         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
1284         (glthread_rwlock_init): New macro/function.
1285         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
1286         (glthread_rwlock_rdlock): New macro/function.
1287         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
1288         (glthread_rwlock_wrlock): New macro/function.
1289         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
1290         (glthread_rwlock_unlock): New macro/function.
1291         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
1292         (glthread_rwlock_destroy): New macro/function.
1293         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
1294         (glthread_recursive_lock_init): New macro/function.
1295         (gl_recursive_lock_init): Define as wrapper around
1296         glthread_recursive_lock_init.
1297         (glthread_recursive_lock_lock): New macro/function.
1298         (gl_recursive_lock_lock): Define as wrapper around
1299         glthread_recursive_lock_lock.
1300         (glthread_recursive_lock_unlock): New macro/function.
1301         (gl_recursive_lock_unlock): Define as wrapper around
1302         glthread_recursive_lock_unlock.
1303         (glthread_recursive_lock_destroy): New macro/function.
1304         (gl_recursive_lock_destroy): Define as wrapper around
1305         glthread_recursive_lock_destroy.
1306         (glthread_once): New macro/function.
1307         (gl_once): Define as wrapper around glthread_once.
1308         Update function declarations.
1309         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
1310         glthread_rwlock_init. Return error code.
1311         (glthread_rwlock_rdlock_multithreaded): Renamed from
1312         glthread_rwlock_rdlock. Return error code.
1313         (glthread_rwlock_wrlock_multithreaded): Renamed from
1314         glthread_rwlock_wrlock. Return error code.
1315         (glthread_rwlock_unlock_multithreaded): Renamed from
1316         glthread_rwlock_unlock. Return error code.
1317         (glthread_rwlock_destroy_multithreaded): Renamed from
1318         glthread_rwlock_destroy. Return error code.
1319         (glthread_recursive_lock_init_multithreaded): Renamed from
1320         glthread_recursive_lock_init. Return error code.
1321         (glthread_recursive_lock_lock_multithreaded): Renamed from
1322         glthread_recursive_lock_lock. Return error code.
1323         (glthread_recursive_lock_unlock_multithreaded): Renamed from
1324         glthread_recursive_lock_unlock. Return error code.
1325         (glthread_recursive_lock_destroy_multithreaded): Renamed from
1326         glthread_recursive_lock_destroy. Return error code.
1327         (glthread_once_call): Make static.
1328         (glthread_once_multithreaded): Renamed from glthread_once.
1329         * lib/tls.h: Include <errno.h>.
1330         (glthread_tls_key_init): New macro/function.
1331         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
1332         (glthread_tls_set): New macro/function.
1333         (gl_tls_set): Define as wrapper around glthread_tls_set.
1334         (glthread_tls_key_destroy): New macro/function.
1335         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
1336         Update function declarations.
1337         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
1338         glthread_tls_get.
1339         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1340
1341 2008-08-04  Eric Blake  <ebb9@byu.net>
1342
1343         gnumakefile: use space, not TAB, outside of targets
1344         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
1345
1346 2008-08-02  Jim Meyering  <meyering@redhat.com>
1347
1348         getdate.y: avoid locale-dependent date parsing failure
1349         In Turkish locales, getdate would fail to recognize keywords
1350         containing a lowercase "i".  The solution is not to rely on
1351         locale-sensitive case-conversion.
1352         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
1353         (lookup_word): Use c_toupper in place of toupper.
1354         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
1355         Reported by Vefa Bicakci <bicave@superonline.com> in
1356         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
1357         * modules/getdate (Depends-on): Add c-ctype.
1358
1359 2008-08-02  Bruno Haible  <bruno@clisp.org>
1360
1361         * gnulib-tool (func_import): When updating or creating a .gitignore
1362         file, prepend each added line with a slash, and ignore leading slashes
1363         from the existing lines.
1364         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1365
1366 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1367
1368         Portability fix for GNU make 3.79.1.
1369         * top/GNUmakefile: Avoid 'else COND', which older GNU make
1370         versions do not understand.
1371
1372 2008-08-01  Bruno Haible  <bruno@clisp.org>
1373
1374         Work around bug of HP-UX 10.20 cc with -0.0 literal.
1375         * tests/test-isnanf.h (zero): New variable.
1376         (main): Avoid literal -0.0f.
1377         * tests/test-isnand.h (zero): New variable.
1378         (main): Avoid literal -0.0.
1379         * tests/test-isnanl.h (zero): New variable.
1380         (main): Avoid literal -0.0L.
1381         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
1382         (test_float, test_double, test_long_double): Avoid literals -0.0f,
1383         -0.0, -0.0L.
1384         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
1385         (test_signbitd): Avoid literal -0.0.
1386         (test_signbitl): Avoid literal -0.0L.
1387         * tests/test-ceilf1.c (zero): New variable.
1388         (main): Avoid literal -0.0f.
1389         * tests/test-ceill.c (zero): New variable.
1390         (main): Avoid literal -0.0L.
1391         * tests/test-floorf1.c (zero): New variable.
1392         (main): Avoid literal -0.0f.
1393         * tests/test-floorl.c (zero): New variable.
1394         (main): Avoid literal -0.0L.
1395         * tests/test-roundf1.c (zero): New variable.
1396         (main): Avoid literal -0.0f.
1397         * tests/test-round1.c (zero): New variable.
1398         (main): Avoid literal -0.0.
1399         * tests/test-roundl.c (zero): New variable.
1400         (main): Avoid literal -0.0L.
1401         * tests/test-truncf1.c (zero): New variable.
1402         (main): Avoid literal -0.0f.
1403         * tests/test-trunc1.c (zero): New variable.
1404         (main): Avoid literal -0.0.
1405         * tests/test-truncl.c (zero): New variable.
1406         (main): Avoid literal -0.0L.
1407         * tests/test-frexp.c (zero): New variable.
1408         (main): Avoid literal -0.0.
1409         * tests/test-frexpl.c (zero): New variable.
1410         (main): Avoid literal -0.0L.
1411         * tests/test-ldexpl.c (zero): New variable.
1412         (main): Avoid literal -0.0L.
1413         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1414         (zerod, zerol): New variables.
1415         (test_function): Avoid literals -0.0, -0.0L.
1416         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
1417         (zerod, zerol): New variables.
1418         (test_function): Avoid literals -0.0, -0.0L.
1419         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1420         (zerod, zerol): New variables.
1421         (test_function): Avoid literals -0.0, -0.0L.
1422         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1423         (zerod, zerol): New variables.
1424         (test_function): Avoid literals -0.0, -0.0L.
1425         * tests/test-strtod.c (zero): New variable.
1426         (main): Avoid literal -0.0.
1427         Reported by Jonathan C. Patschke <jp@centtech.com>.
1428
1429 2008-07-31  Jim Meyering  <meyering@redhat.com>
1430
1431         sha256.h: correct definition of SHA224_DIGEST_SIZE
1432         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1433         Reported by Paulie Pena IV <paulie4@gmail.com>.
1434         Define as 224 / 8, rather than as a literal.
1435         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1436         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1437         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1438
1439 2008-07-31  Bruno Haible  <bruno@clisp.org>
1440
1441         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1442         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1443         Reported by Jonathan Patschke <jp@centtech.com>.
1444
1445 2008-07-31  Bruno Haible  <bruno@clisp.org>
1446
1447         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1448         Reported by Paolo Bonzini <bonzini@gnu.org>.
1449
1450 2008-07-30  Eric Blake  <ebb9@byu.net>
1451
1452         test-strtod: allow compilation without -lm
1453         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1454         Reported by Dennis Clarke <blastwave@gmail.com>.
1455
1456 2008-07-28  Jim Meyering  <meyering@redhat.com>
1457
1458         bootstrap: work also when there are no .po files in po/
1459         * build-aux/bootstrap (update_po_files): Complete the change
1460         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1461
1462 2008-07-27  Jim Meyering  <meyering@redhat.com>
1463
1464         * users.txt: Add zile.
1465
1466 2008-07-26  Ben Pfaff  <blp@gnu.org>
1467
1468         Add missing dependencies on new m4/exponent[fdl].m4 files.
1469         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1470         * modules/isnand-nolibm: Add m4/exponentd.m4.
1471         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1472         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1473         m4/isnan[fdl].m4, because the macros actually used moved.
1474         Reported by Jim Meyering.
1475
1476 2008-07-14  Ben Pfaff  <blp@gnu.org>
1477
1478         Add isinf module.
1479         * lib/isinf.c: New file.
1480         * lib/math.in.h: Define isinf macro if we have decided to replace
1481         it.
1482         * m4/isinf.m4: New file.
1483         * m4/math_h.m4: Initialize and substitute variables for isinf
1484         module.
1485         * modules/isinf: New file.
1486         * modules/isinf-tests: New file.
1487         * modules/math: Add substitutions for new module.
1488         * tests/test-isinf.c: New file.
1489         * doc/posix-functions/isinf.texi: Mention new module.
1490         * MODULES.html.sh: Mention new module.
1491
1492 2008-07-14  Ben Pfaff  <blp@gnu.org>
1493
1494         Factor out some macros for use by additional modules.
1495         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1496         exponentf.m4.
1497         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1498         exponentd.m4.
1499         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1500         file exponentl.m4.
1501         * m4/exponentf.m4: New file.
1502         * m4/exponentd.m4: New file.
1503         * m4/exponentl.m4: New file.
1504         * modules/isnanf: Use new file m4/exponentf.m4.
1505         * modules/isnand: Use new file m4/exponentd.m4.
1506         * modules/isnanl: Use new file m4/exponentl.m4.
1507
1508 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1509
1510         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1511         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1512         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1513         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1514
1515         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1516         readlink on platforms without PATH_MAX.
1517
1518 2008-07-21  Eric Blake  <ebb9@byu.net>
1519
1520         Warn, not fail, on stale version.
1521         * top/GNUmakefile (_curr-ver): Tone down previous patch.
1522
1523         Don't allow installation with stale devel version number.
1524         * top/GNUmakefile (_is-install-target): New macro.
1525         (_curr-ver): Forbid installation with stale version number.
1526
1527 2008-07-20  Bruno Haible  <bruno@clisp.org>
1528
1529         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
1530         TESTS_ENVIRONMENT.
1531         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
1532
1533 2008-07-20  Bruno Haible  <bruno@clisp.org>
1534
1535         * lib/c-stack.h (c_stack_action): Add documentation.
1536         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
1537
1538 2008-07-20  Bruno Haible  <bruno@clisp.org>
1539
1540         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1541         * modules/readlink (License): Likewise.
1542
1543 2008-07-17  Eric Blake  <ebb9@byu.net>
1544
1545         * modules/c-stack (Link): Fix typo.
1546
1547         Make c-stack use libsigsegv, when available.
1548         * modules/c-stack (Depends-on): Add libsigsegv.
1549         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1550         needed.
1551         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1552         (segv_handler, overflow_handler, c_stack_action)
1553         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1554         implementation when libsigsegv is available, but only when using
1555         the library is necessary.
1556         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1557         comment, explaining why XSI check fails on Linux.
1558         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
1559         * tests/test-c-stack2.sh: Tweak skip message.
1560         * NEWS: Document new link-time requirements.
1561
1562 2008-07-16  Eric Blake  <ebb9@byu.net>
1563
1564         c-stack: Expose false positives when not using libsigsegv.
1565         * modules/c-stack-tests (Files): Expand test.
1566         * tests/test-c-stack.c (main): Add means to conditionally trigger
1567         non-overflow SIGSEGV.
1568         * tests/test-c-stack2.sh: New file.
1569
1570 2008-07-14  Bruno Haible  <bruno@clisp.org>
1571
1572         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
1573         Reported by Eric Blake.
1574
1575 2008-07-14  Sam Steingold  <sds@gnu.org>
1576             Bruno Haible  <bruno@clisp.org>
1577
1578         New module libsigsegv.
1579         * modules/libsigsegv: New file.
1580         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
1581         modifications.
1582         * MODULES.html.sh (Signal handling): New section.
1583
1584 2008-07-14  Bruno Haible  <bruno@clisp.org>
1585
1586         * modules/unictype/ctype-* (Description): Add the word "function".
1587         Improves the resulting doc in MODULES.html.
1588
1589 2008-07-12  Ben Pfaff  <blp@gnu.org>
1590
1591         Add longlong module.
1592         * modules/longlong: New file.
1593
1594 2008-07-12  Bruno Haible  <bruno@clisp.org>
1595
1596         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
1597         to empty.
1598
1599 2008-07-10  Ben Pfaff  <blp@gnu.org>
1600
1601         Add isnan module.
1602         * doc/posix-functions/isnan.texi: Mention new module.
1603         * lib/math.in.h: Define isnan macro if we have decided to replace
1604         it.
1605         * m4/isnan.m4: New file.
1606         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
1607         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
1608         also.
1609         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
1610         redundancy.
1611         * m4/math_h.m4: Initialize and substitute variables for isnan
1612         module.
1613         * modules/isnan: New file.
1614         * modules/isnan-tests: New file.
1615         * modules/math: Add substitutions for new module.
1616         * tests/test-isnan.c: New file.
1617         * MODULES.html.sh: Mention new module.
1618
1619 2008-07-10  Ben Pfaff  <blp@gnu.org>
1620
1621         Add isnanf module.
1622         * lib/isnanf.m4: New file.
1623         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
1624         (gl_HAVE_ISNANF_IN_LIBM): New macro.
1625         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
1626         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
1627         * modules/isnanf: New file.
1628         * modules/isnanf-tests: New file.
1629         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
1630         files.
1631         * tests/test-isnanf-nolibm.c: factored most of its contents into
1632         new file tests/test-isnanf.h.
1633         * tests/test-isnanf.h: New file.
1634         * tests/test-isnanf.c: New file.
1635         * MODULES.html.sh: Mention new module.
1636         * doc/glibc-functions/isnanf.texi: Mention new module.
1637
1638 2008-07-10  Ben Pfaff  <blp@gnu.org>
1639
1640         Add isnand module.
1641         * lib/isnand.h: New file.
1642         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
1643         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
1644         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
1645         functionality also.
1646         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
1647         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
1648         (gl_HAVE_ISNAND_IN_LIBM): New macro.
1649         * modules/isnand: New file.
1650         * modules/isnand-tests: New file.
1651         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
1652         files.
1653         * tests/test-isnand-nolibm.c: factored most of its contents into
1654         new file tests/test-isnand.h.
1655         * tests/test-isnand.h: New file.
1656         * tests/test-isnand.c: New file.
1657         * MODULES.html.sh: Mention new module.
1658
1659 2008-07-10  Ben Pfaff  <blp@gnu.org>
1660
1661         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
1662         * lib/isnand.h: Rename lib/isnand-nolibm.h.
1663         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
1664         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
1665         * modules/isnanf-nolibm: Update references to renamed files.
1666         * modules/isnand-nolibm: Likewise.
1667         * modules/isnanf-nolibm-tests: Likewise.
1668         * modules/isnand-nolibm-tests: Likewise.
1669         * lib/frexp.c: Likewise.
1670         * lib/isfinite.c: Likewise.
1671         * lib/signbitd.c: Likewise.
1672         * lib/signbitf.c: Likewise.
1673         * lib/vasnprintf.c: Likewise.
1674         * tests/test-ceilf1.c: Likewise.
1675         * tests/test-ceilf2.c: Likewise.
1676         * tests/test-floorf1.c: Likewise.
1677         * tests/test-floorf2.c: Likewise.
1678         * tests/test-frexp.c: Likewise.
1679         * tests/test-round1.c: Likewise.
1680         * tests/test-round2.c: Likewise.
1681         * tests/test-roundf1.c: Likewise.
1682         * tests/test-strtod.c: Likewise.
1683         * tests/test-trunc1.c: Likewise.
1684         * tests/test-trunc2.c: Likewise.
1685         * tests/test-truncf1.c: Likewise.
1686         * tests/test-truncf2.c: Likewise.
1687         * NEWS: Mention the renamed header files.
1688
1689 2008-07-11  Jim Meyering  <meyering@redhat.com>
1690
1691         vc-list-files: make the last-resort awk code more portable
1692         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
1693         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
1694         does not support it.
1695
1696 2008-07-10  Eric Blake  <ebb9@byu.net>
1697
1698         Work with tar's bootstrap.
1699         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
1700         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
1701         an m4 comment.
1702
1703 2008-07-09  Jim Meyering  <meyering@redhat.com>
1704
1705         posix-shell.m4: fix typo that made this test malfunction
1706         * m4/posix-shell.m4: Remove capitalization in variable name.
1707
1708 2008-07-08  Bruno Haible  <bruno@clisp.org>
1709
1710         * m4/onceonly.m4: Update comments.
1711         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1712
1713 2008-07-04  Jim Meyering  <meyering@redhat.com>
1714
1715         * users.txt: Add vc-dwim.
1716         (bison, coreutils): Use the gitweb URL.
1717
1718 2008-07-03  Jim Meyering  <meyering@redhat.com>
1719
1720         * users.txt: Add libffcall.  From Sam Steingold.
1721
1722 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
1723
1724         getdate.y: do not ignore TZ with relative day, month or year offset
1725         * lib/getdate.y (get_date): Move the tz-handling block to follow the
1726         relative-date-handling, since otherwise, the latter would clobber the
1727         sole output (an updated Start value) of the tz-handling block.
1728         * tests/test-getdate.c: Tests for the fix
1729
1730 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1731
1732         Recognize 'foo_LIBRARIES += libgnu.a'.
1733         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
1734         makefile snippet has already specified an installation location,
1735         also using '+='.
1736
1737 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
1738
1739         getdate.y: factor out common actions
1740         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
1741         Use them in place of open-coded actions.
1742
1743 2008-07-01  Simon Josefsson  <simon@josefsson.org>
1744
1745         Add self-test for getdate module.
1746         * modules/getdate-tests: New file.
1747         * tests/test-getdate.c: New file.
1748
1749 2008-06-29  Bruno Haible  <bruno@clisp.org>
1750
1751         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
1752         .gitignore.
1753         Reported by Sylvain Beucler <beuc@beuc.net>.
1754
1755 2008-06-29  Bruno Haible  <bruno@clisp.org>
1756
1757         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
1758         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
1759
1760 2008-06-29  Bruno Haible  <bruno@clisp.org>
1761
1762         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
1763         EXTRA_DIST.
1764         Reported by Sylvain Beucler <beuc@beuc.net>.
1765
1766 2008-06-26  Jim Meyering  <meyering@redhat.com>
1767
1768         make several modules depend on the "open" module
1769         This provides slightly increased consistency when opening-for-write
1770         the name of a non-directory spelled with a trailing slash.
1771         * modules/chdir-safer: Likewise.
1772         * modules/chown: Likewise.
1773         * modules/clean-temp: Likewise.
1774         * modules/copy-file: Likewise.
1775         * modules/fchdir: Likewise.
1776         * modules/fcntl-safer: Likewise.
1777         * modules/pipe: Likewise.
1778         * modules/utime: Likewise.
1779         Prompted by Eric Blake and Bruno Haible.
1780
1781 2008-06-24  Andreas Schwab  <schwab@suse.de>
1782
1783         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
1784         literals can be used as initializers for global variables.
1785
1786 2008-06-23  Eric Blake  <ebb9@byu.net>
1787
1788         Make gnulib-cache.m4 easier to diff.
1789         * gnulib-tool (func_import): Allow newlines when reading cached
1790         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
1791
1792 2008-06-23  Bruno Haible  <bruno@clisp.org>
1793
1794         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
1795         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
1796         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
1797         m4/signalblocking.m4.
1798         (gl_PREREQ_SIGACTION): Don't invoke it.
1799         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
1800         gl_PREREQ_SIG_HANDLER_H.
1801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1802         Don't check for sigaction here.
1803
1804 2008-06-23  Bruno Haible  <bruno@clisp.org>
1805
1806         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
1807         (install_handlers): Don't set the SA_RESETHAND flag.
1808
1809 2008-06-23  Bruno Haible  <bruno@clisp.org>
1810
1811         * m4/sigaction.m4: Comment fixes.
1812         * lib/signal.in.h: Likewise.
1813
1814 2008-06-23  Eric Blake  <ebb9@byu.net>
1815
1816         Fix typo.
1817         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
1818
1819         Avoid SA_ namespace.
1820         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
1821         Reported by Ralf Wildenhues.
1822
1823         Avoid test failure due to SA_RESTORER.
1824         * tests/test-sigaction.c (SA_MASK): New macro.
1825         (main): Avoid failing due to extension flags being set.
1826         Reported by Jim Meyering.
1827
1828         Revert use of sig-handler.h in sigprocmask.c.
1829         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
1830         it requires the existence of struct sigaction.
1831         * lib/sigprocmask.c (handler_t): Restore typedef.
1832         (rpl_signal, old_handlers): Use local type.
1833
1834 2008-06-22  Bruno Haible  <bruno@clisp.org>
1835
1836         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1837         conditionally.
1838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1839
1840 2008-06-22  Bruno Haible  <bruno@clisp.org>
1841
1842         * doc/posix-functions/siginterrupt.texi: Move note.
1843
1844         * lib/signal.in.h (SA_RESTART): New macro.
1845         * lib/sigaction.c: Update comment.
1846
1847         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
1848
1849         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
1850         (gl_PREREQ_SIGPROCMASK): Invoke it.
1851         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
1852
1853         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
1854
1855         * lib/sigprocmask.c: Update a comment.
1856
1857 2008-06-21  Eric Blake  <ebb9@byu.net>
1858
1859         Use sigaction module rather than signal().
1860         * modules/c-stack (Depends-on): Add sigaction.
1861         * modules/fatal-signal (Depends-on): Likewise.
1862         * modules/nanosleep (Depends-on): Likewise.
1863         * modules/sigprocmask (Files): Add sig-handler.h.
1864         * modules/sigaction (Files): Likewise.
1865         * lib/sig-handler.h (get_handler): New file, suggested by Paul
1866         Eggert.
1867         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
1868         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
1869         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1870         (init_fatal_signals): Likewise.
1871         * lib/nanosleep.c (rpl_nanosleep): Likewise.
1872         (siginterrupt): Delete fallback.
1873         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
1874         instead.
1875         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
1876         siginterrupt.
1877
1878         New module sigaction, for mingw.
1879         * modules/sigaction: New module...
1880         * modules/sigaction-tests: ...and its test.
1881         * m4/sigaction.m4: New file.
1882         * lib/sigaction.c: Likewise.
1883         * tests/test-sigaction.c: Likewise.
1884         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
1885         * modules/signal (Makefile.am): Likewise.
1886         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
1887         needed.
1888         * doc/posix-headers/signal.texi (signal.h): Mention provided
1889         types.
1890         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
1891         that sigaction is preferable.
1892         * doc/posix-functions/sigaction.texi (sigaction): Mention new
1893         module.
1894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1895         sigaction.
1896
1897         Improve robustness of sigprocmask by overriding signal.
1898         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
1899         is in use.
1900         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
1901         (SIGKILL, SIGSTOP): Provide fallbacks.
1902         (rpl_signal): Implement.
1903         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
1904         signal can be called inside handlers.
1905
1906         Fix nanosleep module on mingw.
1907         * modules/nanosleep (Depends-on): Add sys_select.
1908         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
1909
1910         Fix licensing of sigprocmask.
1911         * modules/raise (License): Relicense as LGPL.
1912
1913 2008-06-21  Bruno Haible  <bruno@clisp.org>
1914
1915         * lib/propername.c (proper_name_utf8): Don't use the transliterated
1916         result if it contains question marks.
1917         Reported by Michael Geng <linux@michaelgeng.de>.
1918
1919 2008-06-19  Bruno Haible  <bruno@clisp.org>
1920
1921         Fix CVS-ism.
1922         * doc/gnulib.texi: Include updated-stamp.texi.
1923         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
1924         (updated-stamp.texi): New rule.
1925         (gnulib.info): Depend on it.
1926         * doc/.gitignore: Add updated-stamp.texi.
1927         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
1928
1929 2008-06-19  Bruno Haible  <bruno@clisp.org>
1930
1931         * doc/Makefile (gnulib.info): Update and simplify dependencies.
1932         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1933
1934 2008-06-19  Eric Blake  <ebb9@byu.net>
1935
1936         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
1937         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
1938         Reported by Stepan Kasal.
1939
1940 2008-06-18  Bruno Haible  <bruno@clisp.org>
1941
1942         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1943         Reported by Eric Blake.
1944
1945 2008-06-18  Eric Blake  <ebb9@byu.net>
1946
1947         Work around cygwin 1.5.25 strsignal bug.
1948         * tests/test-strsignal.c: Allow for const char *.
1949         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
1950
1951 2008-06-18  Simon Josefsson  <simon@josefsson.org>
1952
1953         * users.txt: Update URL to article and add author/date
1954         information.
1955
1956 2008-06-17  Bruno Haible  <bruno@clisp.org>
1957
1958         New macro gl_DISABLE_THREADS.
1959         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
1960         if the user did not pass --enable-threads or --disable-threads option.
1961         (gl_DISABLE_THREADS): New macro.
1962         Reported by Eric Blake <ebb9@byu.net>.
1963
1964 2008-06-17  Bruno Haible  <bruno@clisp.org>
1965
1966         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
1967         when the macro ignores it.
1968         Based on a patch by Eric Blake <ebb9@byu.net>.
1969
1970 2008-06-17  Bruno Haible  <bruno@clisp.org>
1971
1972         * modules/tls (License): Change to LGPLv2+.
1973         Reported by Eric Blake.
1974
1975 2008-06-17  Eric Blake  <ebb9@byu.net>
1976
1977         Simplify c-stack prerequisites.
1978         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
1979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
1980         no longer requires <ucontext.h> to exist.  Optimize setrlimit
1981         check.
1982         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
1983         <sys/resource.h>.
1984
1985         Move c-stack test into testsuite.
1986         * modules/c-stack-tests: New file.
1987         * lib/c-stack.c [DEBUG]: Move test program...
1988         * tests/test-c-stack.c: ...into this new file.  Skip rather than
1989         fail test if sigaltstack is lacking.
1990         * tests/test-c-stack.sh: New driver file.
1991
1992 2008-06-16  Eric Blake  <ebb9@byu.net>
1993
1994         Use raise module consistently.
1995         * modules/fatal-signal (Depends-on): Add raise.
1996         * modules/sigprocmask (Depends-on): Likewise.
1997         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
1998         * lib/sigprocmask.c (sigprocmask): Likewise.
1999         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2000         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
2001
2002         Fix compliance bug in sigpending.
2003         * lib/sigprocmask.c (sigpending): Return pending array via
2004         parameter, not return value.
2005
2006 2008-06-14  Eric Blake  <ebb9@byu.net>
2007
2008         Improve obstack-printf test code.
2009         * tests/test-obstack-printf.c (test_function): Fix comment, and
2010         simplify usage of obstack_* in macros.  Add a test for coverage.
2011         Reported by Bruno Haible.
2012
2013 2008-06-14  Bruno Haible  <bruno@clisp.org>
2014
2015         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
2016         array size as a constant, not as a const variable.
2017         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
2018         AC_USE_SYSTEM_EXTENSIONS.
2019         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
2020         Test whether the obstack_printf function actually exists.
2021         * modules/obstack-printf (Depends-on): Add extensions.
2022         (Include): Remove obstack.h.
2023         * modules/obstack-printf-posix (Depends-on): Add extensions.
2024         (Include): Remove obstack.h.
2025
2026 2008-06-13  Eric Blake  <ebb9@byu.net>
2027
2028         Add obstack-printf and obstack-printf-posix modules.
2029         * modules/obstack-printf: New file.
2030         * modules/obstack-printf-posix: Likewise.
2031         * MODULES.html.sh (Misc): Mention them.
2032         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2033         Likewise.
2034         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2035         Likewise.
2036         * modules/stdio (Makefile.am): Accomodate new modules.
2037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2038         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
2039         Declare.
2040         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
2041         functions.
2042         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
2043         (gl_REPLACE_OBSTACK_PRINTF): New macros
2044         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
2045         * tests/test-obstack-printf.c: New file.
2046         * modules/obstack-printf-tests: Likewise.
2047         * modules/obstack-printf-posix-tests: Likewise.
2048
2049 2008-06-11  Bruno Haible  <bruno@clisp.org>
2050
2051         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
2052         * lib/open.c: Include errno.h.
2053         (open): Fail when attempting to write to a file that has a trailing
2054         slash.
2055         * tests/test-open.c (main): Test against trailing slash bug.
2056         * doc/posix-functions/open.texi: Mention the trailing slash bug.
2057
2058 2008-06-10  Bruno Haible  <bruno@clisp.org>
2059
2060         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
2061         for $? to work inside the trap command, with various /bin/sh-s.
2062         * tests/test-vc-list-files-cvs.sh: Likewise.
2063
2064 2008-06-10  Bruno Haible  <bruno@clisp.org>
2065
2066         * lib/acl-internal.h: Don't include gettext.h here.
2067         * lib/set-mode-acl.c: Include gettext.h here.
2068         * lib/copy-acl.c: Likewise.
2069
2070 2008-06-10  Bruno Haible  <bruno@clisp.org>
2071
2072         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
2073         * lib/wait-process.c (wait_subprocess): Likewise.
2074         * lib/execute.h (execute): Add termsigp argument.
2075         * lib/execute.c (execute): Likewise.
2076         * lib/csharpcomp.c (compile_csharp_using_pnet,
2077         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
2078         * lib/csharpexec.c (execute_csharp_using_pnet,
2079         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
2080         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2081         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
2082         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
2083         is_jikes_present): Update.
2084         * lib/javaexec.c (execute_java_class): Update.
2085         * lib/javaversion.c (execute_and_read_line): Update.
2086         * NEWS: Document the changes.
2087         Reported by Eric Blake.
2088
2089 2008-06-10  Eric Blake  <ebb9@byu.net>
2090
2091         Add missing include.
2092         * tests/test-strstr.c (includes): Add <signal.h>.
2093         * tests/test-strcasestr.c (includes): Likewise.
2094         * tests/test-memmem.c (includes): Likewise.
2095
2096 2008-06-10  Bruno Haible  <bruno@clisp.org>
2097
2098         * lib/wait-process.c (wait_subprocess): Add an assertion.
2099
2100 2008-06-10  Bruno Haible  <bruno@clisp.org>
2101
2102         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
2103
2104 2008-06-10  Bruno Haible  <bruno@clisp.org>
2105
2106         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
2107         using alarm().
2108         * tests/test-strcasestr.c (main): Likewise.
2109         * tests/test-strstr.c (main): Likewise.
2110
2111 2008-06-09  Bruno Haible  <bruno@clisp.org>
2112
2113         Work around the Solaris 10 ACE ACLs ABI change.
2114         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
2115         declare if ACL_NO_TRIVIAL is present.
2116         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
2117         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
2118         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
2119         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
2120         define if ACL_NO_TRIVIAL is present.
2121         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
2122         and use the current ABI.
2123         (file_has_acl): Use same #if condition as elsewhere.
2124         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
2125         in use, and use the current ABI.
2126         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
2127         Reported by Jim Meyering.
2128
2129 2008-06-09  Eric Blake  <ebb9@byu.net>
2130
2131         Work around environments that (stupidly) ignore SIGALRM.
2132         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
2133         before using alarm().
2134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2135         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2136         Reported by Ian Beckwith <ianb@erislabs.net>.
2137
2138         Produce autobuild blurb earlier in log.
2139         * modules/autobuild (configure.ac-early): Move AB_INIT here.
2140
2141 2008-06-09  Jim Meyering  <meyering@redhat.com>
2142         and OndÅ™ej Vašík  <ovasik@redhat.com>
2143
2144         utimens.c: correct kernel bug work-around
2145         OndÅ™ej Vašík found that the invalid return value of 280 indicates
2146         failure, not success, and the kernel bug we're trying to work
2147         around affects not just the utimensat call, but also the fallback
2148         futimens call.
2149         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
2150         not success.
2151         [HAVE_FUTIMENS]: Use the same work-around, here.
2152
2153 2008-06-09  Jim Meyering  <meyering@redhat.com>
2154
2155         add more guards around definition of ACE_-related code
2156         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
2157         ALLOW and ACE_OWNER are also defined.
2158
2159 2008-06-08  Bruno Haible  <bruno@clisp.org>
2160
2161         * lib/acl-internal.h: Add me as co-author.
2162         * lib/file-has-acl.c: Likewise.
2163         * lib/set-mode-acl.c: Likewise.
2164         * lib/copy-acl.c: Likewise.
2165
2166 2008-06-08  Bruno Haible  <bruno@clisp.org>
2167
2168         Add support for AIX ACLs.
2169         * lib/acl-internal.h (acl_nontrivial): New declaration.
2170         * lib/file-has-acl.c (acl_nontrivial): New function.
2171         (file_has_acl): Add implementation using AIX 4 ACL API.
2172         * lib/set-mode-acl.c (qset_acl): Likewise.
2173         * lib/copy-acl.c (qcopy_acl): Likewise.
2174
2175 2008-06-08  Bruno Haible  <bruno@clisp.org>
2176
2177         Add support for HP-UX ACLs.
2178         * lib/acl-internal.h (acl_nontrivial): New declaration.
2179         * lib/file-has-acl.c (acl_nontrivial): New function.
2180         (file_has_acl): Add implementation using HP-UX 11 ACL API.
2181         * lib/set-mode-acl.c (qset_acl): Likewise.
2182         * lib/copy-acl.c (qcopy_acl): Likewise.
2183
2184 2008-06-08  Bruno Haible  <bruno@clisp.org>
2185
2186         Add support for Cygwin ACLs.
2187         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
2188         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
2189         the chmod_or_fchmod call.
2190         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
2191
2192 2008-06-08  Bruno Haible  <bruno@clisp.org>
2193
2194         Fix bug with setuid modes in Solaris 10+ code.
2195         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
2196         succeeded, when the mode contains some special bits.
2197
2198 2008-06-08  Bruno Haible  <bruno@clisp.org>
2199
2200         Add support for Solaris 7..10 ACLs.
2201         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
2202         declarations.
2203         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
2204         functions.
2205         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
2206         * lib/set-mode-acl.c (qset_acl): Likewise.
2207         * lib/copy-acl.c (qcopy_acl): Likewise.
2208
2209 2008-06-08  Bruno Haible  <bruno@clisp.org>
2210
2211         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
2212         declaration.
2213         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
2214         (acl_access_nontrivial): Remove MacOS X case.
2215         (file_has_acl): Use acl_extended_nontrivial.
2216         * lib/copy-acl.c (qcopy_acl): Likewise.
2217
2218 2008-06-08  Bruno Haible  <bruno@clisp.org>
2219
2220         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
2221
2222 2008-06-08  Jim Meyering  <meyering@redhat.com>
2223
2224         * modules/acl (Maintainer): Add Bruno Haible.
2225
2226 2008-06-07  Bruno Haible  <bruno@clisp.org>
2227
2228         Improve support for Tru64 ACLs.
2229         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
2230         ACL on OSF/1.
2231
2232 2008-06-07  Bruno Haible  <bruno@clisp.org>
2233
2234         Add support for MacOS X ACLs.
2235         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
2236         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
2237         * lib/set-mode-acl.c (qset_acl): Likewise.
2238         * lib/copy-acl.c (qcopy_acl): Likewise.
2239
2240 2008-06-07  Bruno Haible  <bruno@clisp.org>
2241
2242         Fix memory leak introduced on 2008-05-22.
2243         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
2244         use.
2245
2246 2008-06-07  Bruno Haible  <bruno@clisp.org>
2247
2248         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
2249         to construct an empty ACL.
2250
2251 2008-06-07  Bruno Haible  <bruno@clisp.org>
2252
2253         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
2254         precisely.
2255         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
2256
2257 2008-06-07  Bruno Haible  <bruno@clisp.org>
2258
2259         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
2260         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
2261
2262 2008-06-07  Bruno Haible  <bruno@clisp.org>
2263
2264         * doc/posix-functions/_setjmp.texi: Explain the use of this function
2265         regardless of POSIX.
2266         * doc/posix-functions/_longjmp.texi: Likewise.
2267         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
2268         SystemV platform in this case.
2269
2270 2008-06-06  Eric Blake  <ebb9@byu.net>
2271
2272         Document abort() bugs.
2273         * doc/posix-functions/abort.texi (abort): Mention anomalies.
2274
2275         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
2276         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
2277         sigsetjmp.
2278         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
2279         siglongjmp, but only as a macro.
2280         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
2281         is obsolete.
2282         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
2283
2284         Tweak documentation to cover cygwin argz bugs.
2285         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
2286         argz bug fix; no code change needed since no cygwin releases
2287         occurred between the last fix and the bug being tested.
2288         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
2289         module and recently fixed cygwin bugs.
2290         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
2291         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
2292         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
2293         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
2294         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
2295         Likewise.
2296         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
2297         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
2298         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
2299         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
2300         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
2301         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
2302         Likewise.
2303
2304         Avoid gcc warning on cygwin.
2305         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
2306         !ACL_NO_TRIVIAL]: Avoid unused variable.
2307
2308 2008-06-05  Eric Blake  <ebb9@byu.net>
2309
2310         Be tolerant of UNKNOWN version in gnulib-tool test dir.
2311         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
2312         git-version-gen fails to come up with a version.
2313         Reported by Simon Josefsson.
2314
2315 2008-06-05  Jim Meyering  <meyering@redhat.com>
2316             Paul Eggert  <eggert@cs.ucla.edu>
2317
2318         utimens.c: work around a probable Linux kernel bug
2319         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
2320         appears to be a kernel bug that causes utimensat to return 280
2321         instead of 0, indicating success.
2322
2323 2008-06-04  Bruno Haible  <bruno@clisp.org>
2324
2325         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
2326         2008-06-01 commit.
2327
2328 2008-06-04  Bruno Haible  <bruno@clisp.org>
2329
2330         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
2331         * lib/file-has-acl.c (acl_access_nontrivial): New function.
2332         (file_has_acl): Use it. Save errno afterwards.
2333         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
2334
2335 2008-06-03  Bruno Haible  <bruno@clisp.org>
2336
2337         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
2338         draft code. Simplify #ifs.
2339         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
2340         Put Solaris code after POSIX-draft code. Fix comments regarding
2341         Solaris 10, HP-UX. Mention Cygwin.
2342         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
2343
2344 2008-06-03  Eric Blake  <ebb9@byu.net>
2345
2346         Provide fallback for older kernels.
2347         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
2348         Provide runtime fallback if kernel lacks support.
2349         Reported by Mike Frysinger.
2350
2351 2008-06-02  Bruno Haible  <bruno@clisp.org>
2352
2353         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
2354         it exists.
2355
2356 2008-06-02  Bruno Haible  <bruno@clisp.org>
2357
2358         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
2359         * lib/copy-acl.c (qcopy_acl): Update comment.
2360
2361 2008-06-02  Bruno Haible  <bruno@clisp.org>
2362
2363         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
2364         like ACL APIs.
2365
2366 2008-06-02  Bruno Haible  <bruno@clisp.org>
2367
2368         * tests/test-file-has-acl.sh: Use different code for Cygwin.
2369         * tests/test-set-mode-acl.sh: Likewise.
2370         * tests/test-copy-acl.sh: Likewise.
2371         * tests/test-copy-file.sh: Likewise.
2372
2373 2008-06-02  Bruno Haible  <bruno@clisp.org>
2374
2375         * tests/test-file-has-acl.sh: Remove unused code.
2376
2377 2008-06-01  Bruno Haible  <bruno@clisp.org>
2378
2379         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
2380         (copy_acl): Just a wrapper around qcopy_acl that emits the error
2381         messages.
2382         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
2383
2384 2008-06-01  Bruno Haible  <bruno@clisp.org>
2385
2386         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
2387         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
2388         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
2389         APIs.
2390         * modules/acl-tests (configure.ac): Remove tests now contained in
2391         m4/acl.m4.
2392
2393 2008-06-02  Jim Meyering  <meyering@redhat.com>
2394
2395         announce-gen: use a better key-server host name
2396         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
2397         it may be more consistently reliable.  Suggested by Werner Koch
2398         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
2399
2400 2008-06-01  Bruno Haible  <bruno@clisp.org>
2401
2402         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
2403         Reported by Voroskoi Andras <voroskoi@gmail.com>.
2404
2405 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
2406
2407         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
2408
2409 2008-06-01  Bruno Haible  <bruno@clisp.org>
2410
2411         New ACL tests.
2412         * tests/test-file-has-acl.sh: New file.
2413         * tests/test-file-has-acl.c: New file.
2414         * tests/test-set-mode-acl.sh: New file.
2415         * tests/test-set-mode-acl.c: New file.
2416         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
2417         * tests/test-copy-acl.c: New file.
2418         * modules/acl-tests: New file, based on modules/copy-file-tests.
2419         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2420         (Depends-on): Add acl-tests.
2421         (configure.ac): Remove checks.
2422         (Makefile.am): Don't create test-sameacls program here any more.
2423
2424 2008-06-01  Bruno Haible  <bruno@clisp.org>
2425
2426         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2427         * tests/test-sameacls.c: Include progname.h.
2428         (main): Invoke set_program_name. Portability fixes for MacOS X,
2429         Solaris, HP-UX.
2430
2431 2008-06-01  Bruno Haible  <bruno@clisp.org>
2432
2433         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2434         function.
2435         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2436
2437 2008-06-01  Bruno Haible  <bruno@clisp.org>
2438
2439         * modules/rpmatch (Depends-on): Add strdup.
2440
2441 2008-06-01  Bruno Haible  <bruno@clisp.org>
2442
2443         * lib/pipe.c: Include unistd-safer.h.
2444         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2445         * modules/pipe (Depends-on): Add unistd-safer.
2446
2447 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2448
2449         * modules/autobuild (configure.ac): Call AB_INIT.
2450
2451 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2452
2453         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2454         Suggested by Bruno Haible <bruno@clisp.org>.
2455
2456 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2457
2458         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2459         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2460         <bruno@clisp.org>.
2461
2462 2008-05-29  Eric Blake  <ebb9@byu.net>
2463
2464         Prefer new POSIX 200x interfaces over futimesat.
2465         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2466         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2467         when available.
2468         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2469
2470 2008-05-28  Bruno Haible  <bruno@clisp.org>
2471
2472         * modules/stpcpy (License): Change to LGPLv2+.
2473         Requested by David Lutterkort <dlutter@redhat.com>.
2474
2475 2008-05-27  Bruno Haible  <bruno@clisp.org>
2476
2477         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2478         current mingw.
2479         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2480
2481 2008-05-27  Bruno Haible  <bruno@clisp.org>
2482
2483         * modules/iconv_open (Link): New section, from module 'iconv'.
2484         * modules/striconv (Link): Likewise.
2485         * modules/striconveh (Link): Likewise.
2486         * modules/xstriconv (Link): Likewise.
2487         * modules/unicodeio (Link): Likewise.
2488         * modules/propername (Link): Likewise.
2489         Reported by Jim Meyering.
2490
2491 2008-05-26  Jim Meyering  <meyering@redhat.com>
2492
2493         sha256: do not artificially restrict buffer length to be < 2^32
2494         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2495         uint32_t to size_t.
2496         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2497         to match.
2498
2499         avoid unaligned access errors, e.g., on sparc
2500         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2501         direct access through a possibly-unaligned uint64* pointer.
2502         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2503         direct access through a possibly-unaligned uint32* pointer.
2504         Prompted by this patch from Tom "spot" Callaway:
2505         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2506
2507         sha512.c: fix typo in comment
2508         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2509
2510 2008-05-25  Bruno Haible  <bruno@clisp.org>
2511
2512         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2513         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2514         (Makefile.am): Update lib_SOURCES.
2515
2516 2008-05-25  Bruno Haible  <bruno@clisp.org>
2517
2518         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2519
2520 2008-05-25  Jim Meyering  <meyering@redhat.com>
2521
2522         useless-if-before-free: freed expr may have white-space differences
2523         * build-aux/useless-if-before-free: Recognize cases in which the
2524         freed expression differs from the tested one in embedded white
2525         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
2526         $1 was used, so we can't make any regexp shy.  Improved tests now
2527         detect this.
2528
2529         useless-if-before-free: accept white space in the expression.
2530         * build-aux/useless-if-before-free: For now, any white space
2531         in the expression must be identical in the free argument.
2532
2533         useless-if-before-free: efficiency tweak
2534         * build-aux/useless-if-before-free: Make the expression-matching
2535         regexp "shy".
2536         Make the *outer* regexp shy, not the expr-matching one.
2537
2538         update code-in-comment to accept cast of free arg
2539         * build-aux/useless-if-before-free: Update regexp.
2540
2541 2008-05-25  Bruno Haible  <bruno@clisp.org>
2542
2543         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2544         * modules/copy-file-tests (Files, Makefile.am): Update.
2545         * tests/test-copy-file.c (func_test_copy): Update.
2546
2547 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2548
2549         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2550
2551 2008-05-23  Bruno Haible  <bruno@clisp.org>
2552
2553         Improve support for ACLs on OSF/1.
2554         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2555         Remove fallback for unknown flavors of ACLs.
2556
2557 2008-05-22  Bruno Haible  <bruno@clisp.org>
2558
2559         Add support for ACLs on OSF/1.
2560         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
2561         replacements.
2562         (acl_free_text): New macro fallback.
2563         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
2564         acl_free.
2565         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
2566         acl_free_text function. Require AC_C_INLINE.
2567
2568 2008-05-22  Bruno Haible  <bruno@clisp.org>
2569
2570         Make copy_acl work on MacOS X 10.5.
2571         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
2572         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
2573         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
2574         If MODE_INSIDE_ACL, don't assume that every system has the same text
2575         representation for ACLs as FreeBSD.
2576         * lib/copy-acl.c (copy_acl): Add support for platforms with
2577         !MODE_INSIDE_ACL.
2578         * lib/file-has-acl.c (file_has_acl): Likewise.
2579         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
2580         FreeBSD, MacOS X, or IRIX, respectively.
2581
2582 2008-05-22  Bruno Haible  <bruno@clisp.org>
2583
2584         * lib/acl.h: Don't include <sys/acl.h>.
2585         (GETACLCNT): Move fallback to lib/acl-internal.h.
2586         * lib/acl-internal.h: Include <sys/acl.h> here.
2587         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
2588
2589 2008-05-22  Bruno Haible  <bruno@clisp.org>
2590
2591         Split off copy_acl function to separate file.
2592         * lib/copy-acl.c: New file, extracted from lib/acl.c.
2593         * lib/acl.c (copy_acl): Moved function to separate file.
2594         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
2595         * modules/acl (Files): Add lib/copy-acl.c.
2596         (Makefiles.am): Augment lib_SOURCES.
2597
2598 2008-05-22  Bruno Haible  <bruno@clisp.org>
2599
2600         * modules/copy-file-tests: New file.
2601         * tests/test-copy-file.sh: New file.
2602         * tests/test-copy-file.c: New file.
2603         * tests/test-copy-file-sameacls.c: New file.
2604
2605 2008-05-22  Eric Blake  <ebb9@byu.net>
2606
2607         Avoid gcc warning.
2608         * tests/test-memcmp.c (main): Pass NULL indirectly.
2609
2610 2008-05-21  Bruno Haible  <bruno@clisp.org>
2611
2612         Add reference doc about ACLs.
2613         * doc/acl-resources.txt: New file.
2614         * doc/acl-cygwin.txt: New file.
2615
2616 2008-05-21  Bruno Haible  <bruno@clisp.org>
2617
2618         Avoid one more warning from gcc.
2619         * lib/vasnprintf.c (IF_LINT): Update comments.
2620         (VASNPRINTF): Use it also for the 'prefix' array initializer.
2621
2622 2008-05-21  Jim Meyering  <meyering@redhat.com>
2623
2624         avoid a warning from gcc
2625         * lib/vasnprintf.c (IF_LINT): Define.
2626         (scale10_round_decimal_long_double):
2627         Use it to avoid a "may be used uninitialized" warning.
2628         (scale10_round_decimal_double): Likewise.
2629
2630 2008-05-21  Simon Josefsson  <simon@josefsson.org>
2631
2632         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
2633         declared.
2634
2635 2008-05-20  Bruno Haible  <bruno@clisp.org>
2636
2637         * tests/test-memcmp.c (main): Test also the sign of the result. Test
2638         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
2639
2640 2008-05-20  Simon Josefsson  <simon@josefsson.org>
2641
2642         * modules/memcmp-tests: New file.
2643         * tests/test-memcmp.c: New file.
2644
2645 2008-05-19  Bruno Haible  <bruno@clisp.org>
2646
2647         * modules/propername (Notice, configure.ac): Put quoted "..." into
2648         --keyword option.
2649         * lib/propername.h: Update comments accordingly.
2650         Reported by Eric Blake.
2651
2652 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
2653
2654         * modules/getpass-gnu (Depends-on): Add fseeko.
2655
2656 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2657
2658         * modules/base64-tests: New file.
2659
2660 2008-05-19  Bo Borgerson <gigabo@gmail.com>
2661
2662         * lib/base64.c (base64_decode_ctx): If a decode context structure
2663         was passed in use it to ignore newlines.  If a context structure
2664         was _not_ passed in, continue to treat newlines as garbage (this
2665         is the historical behavior).  Formerly base64_decode.
2666         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2667         takes a decode context structure.
2668         * lib/base64.h (base64_decode): Macro for four-argument calls.
2669         (base64_decode_alloc): Likewise.
2670         * lib/base64.c (base64_decode_ctx): If a decode context structure
2671         was passed in use it to ignore newlines.  If a context structure
2672         was _not_ passed in, continue to treat newlines as garbage (this
2673         is the historical behavior).  Formerly base64_decode.
2674         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2675         takes a decode context structure.
2676         * lib/base64.h (base64_decode): Macro for four-argument calls.
2677         (base64_decode_alloc): Likewise.
2678
2679 2008-05-19  Jim Meyering  <meyering@redhat.com>
2680
2681         avoid a warning from gcc
2682         * lib/trim.c (IF_LINT): Define.
2683         (trim2): Use it to avoid a "may be used uninitialized" warning.
2684
2685         Fix doc typo.
2686         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
2687
2688 2008-05-19  Bruno Haible  <bruno@clisp.org>
2689
2690         * doc/glibc-functions/getpass.texi: Document limits of other
2691         implementations.
2692
2693 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2694             Bruno Haible <bruno@clisp.org>
2695
2696         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
2697
2698 2008-05-18  Bruno Haible  <bruno@clisp.org>
2699
2700         * modules/propername: New file, from GNU gettext.
2701         * lib/propername.h: New file, from GNU gettext.
2702         * lib/propername.c: New file, from GNU gettext.
2703         * MODULES.html.sh (Internationalization functions): Add propername.
2704
2705 2008-05-16  Jim Meyering  <meyering@redhat.com>
2706             Bruno Haible  <bruno@clisp.org>
2707
2708         Avoid some warnings from "gcc -Wshadow".
2709         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
2710
2711 2008-05-15  Eric Blake  <ebb9@byu.net>
2712
2713         Extend previous patch to cygwin 1.7.0.
2714         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
2715         fast implementation in cygwin >= 1.7.0.
2716         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2717         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2718
2719 2008-05-15  Bruno Haible  <bruno@clisp.org>
2720
2721         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
2722         implementation in glibc >= 2.9.
2723         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2725
2726 2008-05-15  Bruno Haible  <bruno@clisp.org>
2727
2728         * MODULES.html.sh (Internationalization functions): Remove linebreak.
2729         (Unicode string functions): Add unilbrk/*.
2730         Reported by Karl Berry.
2731
2732 2008-05-15  Eric Blake  <ebb9@byu.net>
2733
2734         Fix violation of <stdbool.h> replacement in regex.
2735         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
2736         * lib/regexec.c (re_search_internal): Likewise.
2737         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
2738
2739 2008-05-15  Jim Meyering  <meyering@redhat.com>
2740
2741         avoid distracting test output when git or cvs is not found
2742         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
2743         * tests/test-vc-list-files-git.sh: Likewise.
2744
2745 2008-05-15  Eric Blake  <ebb9@byu.net>
2746
2747         Glibc finally accepted the memmem speedup code, bugzilla #5514.
2748         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
2749         glibc version.
2750         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2751         * doc/posix-functions/strstr.texi (strstr): Likewise.
2752         * lib/str-two-way.h (MAX): Sychronize with glibc.
2753
2754 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
2755
2756         * lib/regcomp.c (optimize_utf8): Add a note on why we test
2757         opr.ctx_type.
2758         (calc_first): Initialize constraint field.
2759         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2760         Fix grammar.
2761         (duplicate_node): Merge constraint field for all node types.
2762         (calc_eclosure_iter): Look at constraint field for all node types.
2763         * lib/regex_internal.c (create_cd_newstate): Don't look at
2764         opr.ctx_type.
2765
2766 2008-05-14  Bruno Haible  <bruno@clisp.org>
2767
2768         Help GCC to do better code generation.
2769         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
2770         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2771         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
2772         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
2773         Declare with attribute 'malloc' if supported.
2774
2775 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
2776
2777         use "echo STR|wc -c" rather than unportable "expr length STR"
2778         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
2779         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
2780
2781 2008-05-14  Jim Meyering  <meyering@redhat.com>
2782
2783         use dd ibs=$n count=1 ... rather than less-portable head -c$n
2784         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
2785         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
2786         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
2787         via Collin Lasse.
2788
2789 2008-05-14  Eric Blake  <ebb9@byu.net>
2790
2791         Avoid quadratic growth in gl_LIBSOURCES.
2792         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
2793         Suggested by Bruno Haible.
2794
2795         Test xmemdup0.
2796         * modules/xmemdup0-tests: New file.
2797         * tests/test-xmemdup0.c: Likewise.
2798
2799 2008-05-13  Eric Blake  <ebb9@byu.net>
2800
2801         Split xmemdup0 into its own module.
2802         * modules/xmemdup0: New file.
2803         * lib/xmemdup0.h: Likewise.
2804         * lib/xmemdup0.c: Likewise.
2805         * MODULES.html.sh (Memory management functions): Add xmemdup0.
2806         * lib/xalloc.h (xmemdup0): Remove.
2807         * lib/xmalloc.c (xmemdup0): Likewise.
2808
2809 2008-05-13  Eric Blake  <ebb9@byu.net>
2810             Bruno Haible  <bruno@clisp.org>
2811
2812         Reduce number of forks required during autoconf.
2813         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
2814         and gl_LIBSOURCES_DIR.
2815         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
2816         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
2817         m4_syscmd per file.
2818         <m4_foreach_w>: Move...
2819         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
2820
2821 2008-05-13  Eric Blake  <ebb9@byu.net>
2822
2823         * gnulib-tool: Fix various comment typos.
2824
2825 2008-05-12  Bruno Haible  <bruno@clisp.org>
2826
2827         Tailor the linebreaking algorithm.
2828         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
2829
2830 2008-05-12  Bruno Haible  <bruno@clisp.org>
2831
2832         Update to Unicode 5.0.0.
2833         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2834         LBP_JV, LBP_JT. Redistribute values.
2835         (unilbrk_table): Change size.
2836         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2837         Unicode TR#14 rev. 22.
2838         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2839         LBP_JV, LBP_JT. Redistribute values.
2840         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2841         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2842         Update.
2843         * lib/unilbrk/lbrkprop1.h: Regenerated.
2844         * lib/unilbrk/lbrkprop2.h: Regenerated.
2845         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
2846         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
2847         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
2848         Likewise.
2849         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
2850         Likewise.
2851         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
2852         result.
2853         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2854         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2855         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2856         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
2857         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
2858         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
2859
2860 2008-05-11  Bruno Haible  <bruno@clisp.org>
2861
2862         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
2863
2864 2008-05-11  Bruno Haible  <bruno@clisp.org>
2865
2866         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
2867         * modules/unilbrk/gen-lbrk: New file.
2868
2869 2008-05-11  Bruno Haible  <bruno@clisp.org>
2870
2871         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
2872         * m4/sha512.m4 (gl_SHA512): Likewise.
2873
2874 2008-05-11  Jim Meyering  <meyering@redhat.com>
2875
2876         New modules: crypto/sha256, crypto/sha512 (from coreutils)
2877         * modules/crypto/sha256: New file.
2878         * modules/crypto/sha512: Likewise.
2879         * lib/sha256.c: Likewise.
2880         * lib/sha256.h: Likewise.
2881         * lib/sha512.c: Likewise.
2882         * lib/sha512.h: Likewise.
2883         * lib/u64.h: Likewise.
2884         * m4/sha256.m4: Likewise.
2885         * m4/sha512.m4: Likewise.
2886         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
2887
2888 2008-05-10  Bruno Haible  <bruno@clisp.org>
2889
2890         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
2891         (Input/Output <stdio.h>): Add xprintf.
2892         (Signal handling <signal.h>): Add strsignal.
2893         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
2894         (Core language properties): Add func.
2895         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
2896         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
2897         strings.
2898         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
2899         (Input/output): New section.
2900         (File system functions): Add openat-die, stat-macros.
2901         (Networking functions): Add sockets.
2902         (Unicode string functions): Add unictype/*.
2903         (Support for building libraries and executables): Add gperf.
2904         (Support for building documentation): Add agpl-3.0.
2905         (Misc): Add nocrash.
2906
2907 2008-05-10  Bruno Haible  <bruno@clisp.org>
2908
2909         * modules/unictype/gen-ctype: New file.
2910
2911 2008-05-10  Jim Meyering  <meyering@redhat.com>
2912
2913         Make chdir-safer.c more efficient on a system with no symlinks.
2914         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
2915         also if ELOOP is zero.  Suggested by Bruno Haible.
2916
2917         Make chdir-safer.c slightly safer.
2918         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
2919         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
2920
2921         Avoid compile failure on systems without ELOOP (like mingw).
2922         * lib/chdir-safer.c (ELOOP): Define if not already defined.
2923         Reported by Bruno Haible.
2924
2925 2008-05-10  Bruno Haible  <bruno@clisp.org>
2926
2927         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
2928         (is_utf8_encoding): Use a case-insensitive comparison.
2929         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
2930         streq.
2931
2932 2008-05-10  Bruno Haible  <bruno@clisp.org>
2933
2934         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
2935         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
2936         * lib/unilbrk/ulc-common.h (iconv_string_length,
2937         iconv_string_keeping_offsets): Remove declarations.
2938         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
2939         Don't include <iconv.h>, streq.h, xsize.h.
2940         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
2941         conversion.
2942         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
2943         <iconv.h>, streq.h, xsize.h.
2944         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
2945         conversion.
2946         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
2947         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
2948         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
2949         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
2950
2951 2008-05-10  Bruno Haible  <bruno@clisp.org>
2952
2953         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
2954         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
2955
2956         * modules/unilbrk/u32-width-linebreaks-tests: New file.
2957         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
2958
2959         * modules/unilbrk/u16-width-linebreaks-tests: New file.
2960         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
2961
2962         * modules/unilbrk/u8-width-linebreaks-tests: New file.
2963         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
2964
2965         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
2966         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
2967
2968         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
2969         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
2970
2971         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
2972         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
2973
2974         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
2975         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
2976
2977 2008-05-10  Bruno Haible  <bruno@clisp.org>
2978
2979         Split up 'linebreak' module.
2980         * lib/unilbrk.h: New file, based on lib/linebreak.h.
2981         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
2982         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
2983         modifications.
2984         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
2985         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
2986         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
2987         lib/linebreak.c.
2988         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
2989         lib/linebreak.c.
2990         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
2991         lib/linebreak.c.
2992         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
2993         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
2994         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
2995         lib/linebreak.c.
2996         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
2997         lib/linebreak.c.
2998         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
2999         lib/linebreak.c.
3000         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
3001         lib/linebreak.c.
3002         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
3003         lib/linebreak.c.
3004         * modules/unilbrk/base: New file.
3005         * modules/unilbrk/tables: New file.
3006         * modules/unilbrk/u8-possible-linebreaks: New file.
3007         * modules/unilbrk/u16-possible-linebreaks: New file.
3008         * modules/unilbrk/u32-possible-linebreaks: New file.
3009         * modules/unilbrk/ulc-common: New file.
3010         * modules/unilbrk/ulc-possible-linebreaks: New file.
3011         * modules/unilbrk/u8-width-linebreaks: New file.
3012         * modules/unilbrk/u16-width-linebreaks: New file.
3013         * modules/unilbrk/u32-width-linebreaks: New file.
3014         * modules/unilbrk/ulc-width-linebreaks: New file.
3015         * lib/linebreak.h: Remove file.
3016         * lib/linebreak.c: Remove file.
3017         * m4/linebreak.m4: Remove file.
3018         * modules/linebreak: Remove file.
3019         * NEWS: Mention the changes.
3020
3021 2008-05-09  Eric Blake  <ebb9@byu.net>
3022
3023         Add xmemdup0.
3024         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
3025         implementation.
3026         * lib/xmalloc.c (xmemdup0): New C implementation.
3027
3028 2008-05-08  Bruno Haible  <bruno@clisp.org>
3029
3030         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
3031
3032 2008-05-07  Eric Blake  <ebb9@byu.net>
3033
3034         Support cross-compilation of <wctype.h>.
3035         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
3036         AC_CACHE_CHECK.
3037
3038 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
3039
3040         * build-aux/vc-list-files: Add support for bzr.
3041
3042 2008-05-03  Jim Meyering  <meyering@redhat.com>
3043
3044         avoid failed assertion with tight malloc
3045         * tests/test-getndelim2.c: Correct an off-by-one assertion.
3046
3047 2008-05-03  Simon Josefsson  <simon@josefsson.org>
3048
3049         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
3050         are needed from arpa/inet.h.
3051         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
3052         Reported by Bruno Haible.
3053
3054 2008-05-02  Jim Meyering  <meyering@redhat.com>
3055
3056         avoid compilation error on FreeBSD 6
3057         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
3058
3059 2008-05-01  Jim Meyering  <meyering@redhat.com>
3060
3061         useless-if-before-free: correct --help's exit status description
3062         * build-aux/useless-if-before-free (usage): Like grep, exit 0
3063         for one or more matches, etc.  Reported by Bruno Haible.
3064
3065         vc-list-files: make the stand-alone gnulib test work
3066         * modules/vc-list-files-tests (configure.ac):
3067         Define and AC_SUBST abs_aux_dir.
3068         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
3069         $(abs_top_srcdir) to each script and having each of them
3070         duplicate the work of setting PATH, set PATH here, using
3071         the new variable, abs_aux_dir instead.
3072         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
3073         * tests/test-vc-list-files-git.sh: Likewise.
3074         Reported by Bruno Haible.
3075
3076 2008-05-01  Bruno Haible  <bruno@clisp.org>
3077
3078         * lib/getndelim2.c (getndelim2): Fix newsize computation during
3079         reallocation. Rename 'done' to 'found_delimiter'.
3080
3081 2008-05-01  Jim Meyering  <meyering@redhat.com>
3082
3083         vc-list-files: accommodate /bin/sh like the one from Solaris 10
3084         * build-aux/vc-list-files: Use `...`, not $(...).
3085
3086 2008-04-30  Jim Meyering  <meyering@redhat.com>
3087
3088         add tests for vc-list-files
3089         * modules/vc-list-files-tests: New module.
3090         * tests/test-vc-list-files-cvs.sh: New file.
3091         * tests/test-vc-list-files-git.sh: New file.
3092
3093         avoid a warning from gcc
3094         * lib/getndelim2.c (IF_LINT): Define.
3095         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
3096
3097         vc-list-files: work properly with build-aux/cvsu, too
3098         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
3099         to all cvs-based clauses.
3100
3101         vc-list-files: work properly in the CVS+awk case, too
3102         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
3103
3104         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
3105         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
3106         take more than one file argument, so .  Add quotes, just in case $dir
3107         ever contains a shell meta-character.  Prompted by Soren Hansen in
3108         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
3109
3110 2008-04-29  Eric Blake  <ebb9@byu.net>
3111
3112         Optimize getndelim2 to use block operations when possible.
3113         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
3114         freadseek, and memchr2.
3115         * lib/getndelim2.c (getndelim2): Use them for block reads.
3116
3117 2008-04-29  Bruno Haible  <bruno@clisp.org>
3118
3119         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
3120         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3121         * modules/inet_ntop (Depends-on): Add extensions.
3122         * modules/inet_pton (Depends-on): Likewise.
3123         Reported by Simon Josefsson.
3124
3125 2008-04-29  Jim Meyering  <meyering@redhat.com>
3126
3127         When the is more than one match in a block, match all of them.
3128         * build-aux/useless-if-before-free: Iterate through each block
3129         until there are no more matches.
3130
3131         Fix broken useless-if-before-free script.
3132         * build-aux/useless-if-before-free: Fix typo: missing "?" after
3133         the expression to match cast of argument to free-like function.
3134
3135 2008-04-29  Eric Blake  <ebb9@byu.net>
3136
3137         Use new header.
3138         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
3139
3140 2008-04-29  Jim Meyering  <meyering@redhat.com>
3141
3142         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
3143         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
3144         by gnulib to exist and to declare e.g., inet_ntop.
3145         Don't include "inet_ntop.h", now removed.
3146
3147         * m4/arpa_inet_h.m4: Remove trailing blanks.
3148
3149 2008-04-29  Eric Blake  <ebb9@byu.net>
3150
3151         Silence valgrind on safe reads beyond potential array bounds.
3152         * lib/rawmemchr.valgrind: New file.
3153         * lib/strchrnul.valgrind: Likewise.
3154         * modules/rawmemchr (Files): Distribute new file.
3155         * modules/strchrnul (Files): Likewise.
3156         Suggested by Bruno Haible.
3157
3158 2008-04-29  Bruno Haible  <bruno@clisp.org>
3159
3160         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
3161         (inet_ntop, inet_pton): Change portability warning's wording.
3162         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
3163         Invoke gl_CHECK_NEXT_HEADERS.
3164         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
3165         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
3166         set ARPA_INET_H.
3167         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3168         * modules/arpa_inet (Description): No longer only for systems that
3169         lack it.
3170         (Depends-on): Add include_next.
3171         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
3172         HAVE_ARPA_INET_H.
3173
3174 2008-04-29  Jim Meyering  <meyering@redhat.com>
3175
3176         * modules/mkdir (License): Re-license as LGPLv2+.
3177
3178 2008-04-29  Bruno Haible  <bruno@clisp.org>
3179
3180         * modules/rawmemchr (Maintainer): Set to Eric.
3181         * modules/strchrnul (Maintainer): Likewise.
3182
3183 2008-04-29  Simon Josefsson  <simon@josefsson.org>
3184
3185         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
3186         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
3187
3188         * modules/arpa_inet (arpa/inet.h): Use them.
3189
3190 2008-04-28  Eric Blake  <ebb9@byu.net>
3191
3192         Test getndelim2.
3193         * modules/getndelim2-tests: New file.
3194         * tests/test-getndelim2.c: Likewise.
3195         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
3196         stream.
3197         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
3198
3199         * MODULES.html.sh: Document new module.
3200
3201 2008-04-20  Bruno Haible  <bruno@clisp.org>
3202
3203         * lib/c-stack.c (die): Use raise.
3204         * modules/c-stack (Depends-on): Add raise.
3205
3206 2008-04-28  Bruno Haible  <bruno@clisp.org>
3207
3208         Expect rpmatch to be declared.
3209         * lib/yesno.c (rpmatch): Remove declaration.
3210
3211         Declare rpmatch.
3212         * lib/stdlib.in.h (rpmatch): New declaration.
3213         * lib/rpmatch.c: Include <stdlib.h> first.
3214         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
3215         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
3216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
3217         HAVE_RPMATCH.
3218         * modules/rpmatch (Depends-on): Add stdlib, extensions.
3219         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3220         (Include): Set to <stdlib.h>.
3221         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
3222         HAVE_RPMATCH.
3223         * NEWS: Document the change.
3224
3225 2008-04-28  Bruno Haible  <bruno@clisp.org>
3226
3227         Change rpmatch to use nl_langinfo when appropriate.
3228         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
3229         (N_): New macro.
3230         (localized_pattern): New function/macro.
3231         (try): Remove match, nomatch arguments. Copy the pattern into safe
3232         memory before caching it.
3233         (rpmatch): Use localized_pattern. Add translator comments.
3234         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
3235         Suggested by Eric Blake.
3236         * modules/rpmatch (Depends-on): Add stdbool.
3237
3238 2008-04-28  Eric Blake  <ebb9@byu.net>
3239
3240         Add rawmemchr module, matching glibc.
3241         * modules/string (Makefile.am): New indicator.
3242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
3243         * lib/string.in.h (rawmemchr): Declare when appropriate.
3244         * modules/rawmemchr: New file.
3245         * m4/rawmemchr.m4: Likewise.
3246         * lib/rawmemchr.c: Likewise.
3247         * modules/rawmemchr-tests: Likewise.
3248         * tests/test-rawmemchr.c: Likewise.
3249         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
3250         module.
3251         * modules/strchrnul (Depends-on): Add rawmemchr.
3252         * lib/strchrnul.c (strchrnul): Optimize a corner case.
3253
3254         Whitespace cleanup.
3255         * tests/test-strchrnul.c: Reindent.
3256         * lib/strchrnul.c: Likewise.
3257
3258         Optimize and test strchrnul.
3259         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
3260         * modules/strchrnul-tests: New file.
3261         * tests/test-strchrnul.c: Likewise.
3262
3263         Remove intprops dependency.
3264         * modules/memchr (Depends-on): Remove intprops.
3265         * modules/memrchr (Depends-on): Likewise.
3266         * modules/memchr2 (Depends-on): Likewise.
3267         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
3268         * lib/memrchr.c (__memrchr): Likewise.
3269         * lib/memrchr2.c (memchr2): Likewise.
3270         Reported by Simon Josefsson.
3271
3272 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3273
3274         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
3275         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3276
3277 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3278
3279         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
3280
3281         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
3282
3283         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
3284
3285         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
3286         declarations.
3287         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
3288
3289         * m4/inet_pton.m4: Don't check for header files.
3290
3291         * m4/inet_ntop.m4: Don't check for header files.
3292
3293 2008-04-28  Simon Josefsson  <simon@josefsson.org>
3294
3295         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
3296         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
3297         trigger for cygwin).
3298         Reported by Bruno Haible  <bruno@clisp.org>.
3299
3300 2008-04-28  Bruno Haible  <bruno@clisp.org>
3301
3302         * doc/posix-functions/strdup.texi: Mention mingw problem.
3303
3304 2008-04-27  Bruno Haible  <bruno@clisp.org>
3305
3306         * modules/stat-time-tests (Depends-on): Add sleep.
3307         * tests/test-stat-time.c (force_unlink): New function.
3308         (cleanup): Use it.
3309         (test_mtime): Remove the ctime related tests.
3310         (test_ctime): New function, containing the ctime related tests.
3311         (main): Call test_ctime, except on native Windows platforms.
3312
3313 2008-04-27  Bruno Haible  <bruno@clisp.org>
3314
3315         * lib/rpmatch.c (rpmatch): Add some comments.
3316         Reported by James Youngman <jay@gnu.org>.
3317
3318 2008-04-27  Bruno Haible  <bruno@clisp.org>
3319
3320         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
3321         quiet NaNs.
3322
3323 2008-04-27  Bruno Haible  <bruno@clisp.org>
3324
3325         Make test-yesno.sh work on mingw.
3326         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
3327         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
3328         (main): Set stdin to binary mode.
3329         * modules/yesno-tests (Depends-on): Add binary-io.
3330
3331 2008-04-27  Bruno Haible  <bruno@clisp.org>
3332
3333         Fix 'isfinite' on x86, x86_64, ia64 platforms.
3334         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
3335         argument that lie outside the IEEE 854 domain.
3336         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
3337         (gl_ISFINITE): Use it.
3338         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
3339
3340 2008-04-27  Bruno Haible  <bruno@clisp.org>
3341
3342         Allow local renaming in config.h.
3343         * lib/memrchr.c (memrchr): Don't undefine outside libc.
3344
3345 2008-04-27  Bruno Haible  <bruno@clisp.org>
3346
3347         * lib/memchr.c (__memchr): Change type of 'i'.
3348         * lib/memchr2.c (memchr2): Likewise.
3349
3350 2008-04-26  Eric Blake  <ebb9@byu.net>
3351         and Bruno Haible  <bruno@clisp.org>
3352
3353         Optimize and test memrchr.
3354         * modules/memrchr (Depends-on): Add intprops.
3355         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
3356         * modules/memrchr-tests: New file.
3357         * tests/test-memrchr.c: New file.
3358
3359 2008-04-26  Bruno Haible  <bruno@clisp.org>
3360
3361         Add tentative support for DragonFly BSD.
3362         * lib/stdio-impl.h: Add macros for DragonFly BSD.
3363         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
3364         fp.
3365         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3366         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
3367         * lib/fpurge.c (fpurge): Likewise.
3368         * lib/freadable.c (freaadable): Likewise.
3369         * lib/freadahead.c (freadahead): Likewise.
3370         * lib/freading.c (freading): Likewise.
3371         * lib/freadptr.c (freadptr): Likewise.
3372         * lib/freadseek.c (freadptrinc): Likewise.
3373         * lib/fseeko.c (fseeko): Likewise.
3374         * lib/fseterr.c (fseterr): Likewise.
3375         * lib/fwritable.c (fwritable): Likewise.
3376         * lib/fwriting.c (fwriting): Likewise.
3377
3378 2008-04-26  Bruno Haible  <bruno@clisp.org>
3379
3380         * lib/stdio-impl.h: New file.
3381         * lib/fbufmode.c: Include stdio-impl.h.
3382         (fbufmode): Use fp_, remove redundant #defines.
3383         * lib/fflush.c: Include stdio-impl.h.
3384         (clear_ungetc_buffer): Remove redundant #defines.
3385         * lib/fpurge.c: Include stdio-impl.h.
3386         (fpurge): Remove redundant #defines.
3387         * lib/freadable.c: Include stdio-impl.h.
3388         (freadable): Remove redundant #defines.
3389         * lib/freadahead.c: Include stdio-impl.h.
3390         (freadahead): Remove redundant #defines.
3391         * lib/freading.c: Include stdio-impl.h.
3392         (freading): Remove redundant #defines.
3393         * lib/freadptr.c: Include stdio-impl.h.
3394         (freadptr): Remove redundant #defines.
3395         * lib/freadseek.c: Include stdio-impl.h.
3396         (freadptrinc): Remove redundant #defines.
3397         * lib/fseeko.c: Include stdio-impl.h.
3398         (rpl_fseeko): Remove redundant #defines.
3399         * lib/fseterr.c: Include stdio-impl.h.
3400         (fseterr): Remove redundant #defines.
3401         * lib/fwritable.c: Include stdio-impl.h.
3402         (fwritable: Remove redundant #defines.
3403         * lib/fwriting.c: Include stdio-impl.h.
3404         (fwriting): Remove redundant #defines.
3405         * modules/fbufmode (Files): Add lib/stdio-impl.h.
3406         * modules/fflush (Files): Likewise.
3407         * modules/fpurge (Files): Likewise.
3408         * modules/freadable (Files): Likewise.
3409         * modules/freadahead (Files): Likewise.
3410         * modules/freading (Files): Likewise.
3411         * modules/freadptr (Files): Likewise.
3412         * modules/freadseek (Files): Likewise.
3413         * modules/fseeko (Files): Likewise.
3414         * modules/fseterr (Files): Likewise.
3415         * modules/fwritable (Files): Likewise.
3416         * modules/fwriting (Files): Likewise.
3417
3418 2008-04-26  Bruno Haible  <bruno@clisp.org>
3419
3420         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3421         restore_seek_optimization, update_fpos_cache): New functions, extracted
3422         from rpl_fflush.
3423         (rpl_fflush): Use them.
3424         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3425         (gl_REPLACE_FFLUSH): Use it.
3426
3427 2008-04-26  Bruno Haible  <bruno@clisp.org>
3428
3429         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3430         on Solaris.
3431         * tests/test-xstrtoimax.sh: Likewise.
3432         * tests/test-xstrtoumax.sh: Likewise.
3433         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3434
3435 2008-04-26  Bruno Haible  <bruno@clisp.org>
3436
3437         * modules/memchr-tests: New file.
3438         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3439
3440 2008-04-26  Eric Blake  <ebb9@byu.net>
3441             Bruno Haible  <bruno@clisp.org>
3442
3443         * lib/memchr.c: Include intprops.h.
3444         (__memchr): Optimize parallel detection of matching bytes. Rename local
3445         variables. Add explanatory comments.
3446
3447 2008-04-26  Bruno Haible  <bruno@clisp.org>
3448
3449         Fix module 'memchr', broken since 2000-10-28.
3450         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3451
3452 2008-04-26  Bruno Haible  <bruno@clisp.org>
3453
3454         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3455         comments.
3456
3457 2008-04-25  Eric Blake  <ebb9@byu.net>
3458
3459         Use native fstatat on cygwin 1.7.0.
3460         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3461         first.
3462
3463 2008-04-23  Eric Blake  <ebb9@byu.net>
3464
3465         Improve memchr2 performance.
3466         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3467         NUL bytes.
3468         * modules/memchr2 (Depends-on): Use intprops.h.
3469
3470 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3471
3472         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3473         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3474         <blp@cs.stanford.edu>.
3475
3476 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3477
3478         * lib/arpa_inet.in.h: New file.
3479
3480         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3481         (Makefile.am): Sed in substitute header file.
3482
3483         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3484         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3485
3486         * modules/inet_ntop (configure.ac): Use
3487         gl_ARPA_INET_MODULE_INDICATOR.
3488
3489         * modules/inet_pton (configure.ac): Use
3490         gl_ARPA_INET_MODULE_INDICATOR.
3491
3492 2008-04-22  Jim Meyering  <meyering@redhat.com>
3493
3494         * modules/verify (License): Re-license as LGPLv2+.
3495
3496 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3497
3498         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3499         parameter to void* as per POSIX standard (MinGW uses char*).
3500
3501 2008-04-21  Bruno Haible  <bruno@clisp.org>
3502
3503         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3504         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3505         Define to replacements if REPLACE_ISWCNTRL is 1.
3506         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3507         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3508         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3509         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3510         what it fixes.
3511         * doc/posix-functions/iswalpha.texi: Likewise.
3512         * doc/posix-functions/iswblank.texi: Likewise.
3513         * doc/posix-functions/iswcntrl.texi: Likewise.
3514         * doc/posix-functions/iswdigit.texi: Likewise.
3515         * doc/posix-functions/iswgraph.texi: Likewise.
3516         * doc/posix-functions/iswlower.texi: Likewise.
3517         * doc/posix-functions/iswprint.texi: Likewise.
3518         * doc/posix-functions/iswpunct.texi: Likewise.
3519         * doc/posix-functions/iswspace.texi: Likewise.
3520         * doc/posix-functions/iswupper.texi: Likewise.
3521         * doc/posix-functions/iswxdigit.texi: Likewise.
3522         Reported by Alain Guibert.
3523
3524 2008-04-21  Bruno Haible  <bruno@clisp.org>
3525
3526         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
3527         Patch by Alain Guibert.
3528
3529 2008-04-21  Bruno Haible  <bruno@clisp.org>
3530
3531         Fix test failures on mingw.
3532         * tests/test-xstrtol.c (print_no_progname): New function.
3533         (main): Install it in error_print_progname hook.
3534         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
3535         * tests/test-xstrtoimax.sh: Likewise.
3536         * tests/test-xstrtoumax.sh: Likewise.
3537
3538 2008-04-21  Bruno Haible  <bruno@clisp.org>
3539
3540         Fix test failure on mingw.
3541         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3542
3543 2008-04-21  Bruno Haible  <bruno@clisp.org>
3544
3545         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3546         Actually assign a value.
3547
3548 2008-04-20  Bruno Haible  <bruno@clisp.org>
3549
3550         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3551         take 2.
3552         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3553         'canonicalize-lgpl' module is also used.
3554         * lib/canonicalize-lgpl.c: Undo last change.
3555         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3556
3557 2008-04-20  Bruno Haible  <bruno@clisp.org>
3558
3559         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
3560         config.h. Provide _mkdir based fallback for mingw.
3561         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
3562         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
3563         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
3564         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
3565         rather than defining mkdir in config.h.
3566         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
3567         (gl_SYS_STAT_H_DEFAULTS): New macro.
3568         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
3569         HAVE_IO_H any more.
3570         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
3571         HAVE_DECL_MKDIR and HAVE_IO_H.
3572
3573 2008-04-20  Bruno Haible  <bruno@clisp.org>
3574
3575         * lib/isapipe.c: Port to native Windows platforms.
3576
3577 2008-04-20  Bruno Haible  <bruno@clisp.org>
3578
3579         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
3580
3581 2008-04-21  Eric Blake  <ebb9@byu.net>
3582
3583         Work around preprocessors that don't handle UINTMAX_MAX.
3584         * lib/memchr2.c (memchr2): Avoid embedded #if.
3585         Reported by Alain Guibert, fix suggested by Bruno Haible.
3586
3587 2008-04-21  Simon Josefsson  <simon@josefsson.org>
3588
3589         * doc/posix-functions/strftime.texi (strftime): Explain better
3590         Windows incompatibility.  Suggested by Micah Cowan
3591         <micah@cowan.name>.
3592
3593 2008-04-20  Bruno Haible  <bruno@clisp.org>
3594
3595         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
3596         unistr/u8-mblen.
3597
3598 2008-04-20  Bruno Haible  <bruno@clisp.org>
3599
3600         Fix test failure on platforms with non-GNU iconv.
3601         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
3602         (U_TO_U8): Use it, rather than u16_to_u8.
3603         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
3604         units at the end of the input string.
3605         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
3606
3607 2008-04-20  Bruno Haible  <bruno@clisp.org>
3608
3609         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
3610         when the resulting length is 0.
3611         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
3612
3613 2008-04-20  Bruno Haible  <bruno@clisp.org>
3614
3615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
3616         works.
3617         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
3618
3619 2008-04-20  Bruno Haible  <bruno@clisp.org>
3620
3621         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
3622         * modules/tsearch-tests (configure.ac): Test for initstate function.
3623
3624 2008-04-20  Bruno Haible  <bruno@clisp.org>
3625
3626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
3627         for nlink_t if missing.
3628         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
3629
3630 2008-04-19  Bruno Haible  <bruno@clisp.org>
3631
3632         Work around snprintf bug on Linux libc5.
3633         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
3634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3635         gl_SNPRINTF_SIZE1.
3636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3637         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
3638         that test failed.
3639         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3640         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
3641         * modules/snprintf (Files): Add m4/printf.m4.
3642         * modules/vsnprintf (Files): Likewise.
3643         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
3644         * doc/posix-functions/vsnprintf.texi: Likewise.
3645
3646 2008-04-19  Bruno Haible  <bruno@clisp.org>
3647
3648         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
3649         from 0.0058 to less than 10^-7.
3650
3651 2008-04-19  Bruno Haible  <bruno@clisp.org>
3652
3653         Fix rounding when a precision is given.
3654         * lib/vasnprintf.c (is_borderline): New function.
3655         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
3656         9...9x.
3657         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
3658         %e, %g.
3659         * tests/test-vasprintf-posix.c (test_function): Likewise.
3660         * tests/test-snprintf-posix.h (test_function): Likewise.
3661         * tests/test-sprintf-posix.h (test_function): Likewise.
3662         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
3663         * tests/test-printf-posix.h (test_function): Likewise.
3664         * tests/test-printf-posix.output: Update.
3665         Reported by John Darrington <john@darrington.wattle.id.au> via
3666         Ben Pfaff <blp@cs.stanford.edu>.
3667
3668 2008-04-18  Simon Josefsson  <simon@josefsson.org>
3669
3670         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
3671         Suggested by Bruno Haible <bruno@clisp.org>.
3672
3673 2008-04-17  Bruno Haible  <bruno@clisp.org>
3674
3675         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
3676         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
3677         implementation.
3678         Patch by Bruce Merry <bmerry@gmail.com>.
3679
3680 2008-04-17  Simon Josefsson  <simon@josefsson.org>
3681
3682         * doc/posix-functions/strftime.texi (strftime): Mention that %e
3683         doesn't work under Windows.
3684
3685 2008-04-16  Bruno Haible  <bruno@clisp.org>
3686
3687         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
3688         New macros.
3689         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
3690         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
3691         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
3692         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
3693         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
3694         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
3695         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
3696         macros.
3697         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
3698         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
3699         Northern Sotho, Uighur.
3700
3701 2008-04-16  Bruno Haible  <bruno@clisp.org>
3702
3703         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
3704         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
3705         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
3706         Reported by Daniel Bergström <daniel@octocode.com>.
3707
3708 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
3709             Bruno Haible  <bruno@clisp.org>
3710
3711         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
3712         function.
3713         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
3714         New functions, mostly extracted from gl_locale_name_default.
3715         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
3716
3717 2008-04-16  Eric Blake  <ebb9@byu.net>
3718
3719         Adjust strtod detection to catch glibc 2.7 bug.
3720         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
3721         Reported by John Gatewood Ham.
3722
3723 2008-04-16  Bruno Haible  <bruno@clisp.org>
3724
3725         Add tentative support for Linux libc5.
3726         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
3727         * lib/fpurge.c (fpurge): Likewise.
3728         * lib/freadable.c (freadable): Likewise.
3729         * lib/freadahead.c (freadahead): Likewise.
3730         * lib/freading.c (freading): Likewise.
3731         * lib/freadptr.c (freadptr): Likewise.
3732         * lib/freadseek.c (freadptrinc): Likewise.
3733         * lib/fseeko.c (rpl_fseeko): Likewise.
3734         * lib/fseterr.c (fseterr): Likewise.
3735         * lib/fwritable.c (fwritable): Likewise.
3736         * lib/fwriting.c (fwriting): Likewise.
3737         Reported by Alain Guibert <alguibert+bts@free.fr>.
3738
3739 2008-04-15  Bruno Haible  <bruno@clisp.org>
3740
3741         * modules/mathl (configure.ac): Define module indicator.
3742
3743 2008-04-15  Bruno Haible  <bruno@clisp.org>
3744
3745         * lib/logl.c (logl): Remove unused variables.
3746
3747 2008-04-15  Bruno Haible  <bruno@clisp.org>
3748
3749         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
3750         fails.
3751
3752 2008-04-15  Bruno Haible  <bruno@clisp.org>
3753
3754         * lib/trim.c (trim2): Fix argument of isspace() macro.
3755
3756 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
3757
3758         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
3759         to 0.
3760         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
3761
3762 2008-04-14  Bruno Haible  <bruno@clisp.org>
3763
3764         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
3765         AC_LANG_PROGRAM argument.
3766         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3767         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
3768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3769         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3770         * m4/math_h.m4 (gl_MATH_H): Likewise.
3771         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3773         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3774         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3775         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3776         * m4/regex.m4 (gl_REGEX): Likewise.
3777         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3778         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
3779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3780         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
3781         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3782         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3785
3786 2008-04-14  Jim Meyering  <meyering@redhat.com>
3787
3788         test-strtod: fix typos: s/abs/fabs/
3789         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
3790
3791 2008-04-13  Bruno Haible  <bruno@clisp.org>
3792
3793         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
3794         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
3795         module is also used and while not building the reloc-wrapper.
3796
3797 2008-04-13  Bruno Haible  <bruno@clisp.org>
3798
3799         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
3800
3801 2008-04-13  Bruno Haible  <bruno@clisp.org>
3802
3803         Fix AIX compilation failure introduced on 2008-04-02.
3804         * tests/test-frexp.c (exp): Undefine before redefining.
3805         * tests/test-frexpl.c (exp): Likewise.
3806
3807 2008-04-13  Bruno Haible  <bruno@clisp.org>
3808
3809         Work around a HP-UX stdio bug.
3810         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
3811         * tests/test-ftello.c (main): Likewise.
3812         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
3813         * doc/posix-functions/ftello.texi: Likewise.
3814
3815 2008-04-13  Bruno Haible  <bruno@clisp.org>
3816
3817         Make test-signbit pass on HP-UX/hppa.
3818         * tests/test-signbit.c (minus_zerol): New variable.
3819         (test_signbitl): Use it.
3820
3821 2008-04-13  Bruno Haible  <bruno@clisp.org>
3822
3823         Make truncl work on OSF/1 4.0.
3824         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
3825         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3826         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
3828         HAVE_DECL_TRUNCL.
3829         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
3830         HAVE_DECL_TRUNCL.
3831         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3832
3833 2008-04-13  Bruno Haible  <bruno@clisp.org>
3834
3835         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3836
3837 2008-04-13  Bruno Haible  <bruno@clisp.org>
3838
3839         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3840         expression, so as to avoid HP-UX 11 cc compiler bug.
3841
3842 2008-04-13  Bruno Haible  <bruno@clisp.org>
3843
3844         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
3845
3846 2008-04-13  Bruno Haible  <bruno@clisp.org>
3847
3848         * lib/git-merge-changelog.c: Remove empty declaration outside of
3849         functions.
3850
3851 2008-04-13  Bruno Haible  <bruno@clisp.org>
3852
3853         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
3854
3855 2008-04-13  Bruno Haible  <bruno@clisp.org>
3856
3857         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
3858         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
3859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
3860         also if it exists but lacks definitions of the SHUT_* macros.
3861         * modules/sys_socket (Description): Update.
3862         Reported by Elbert Pol <e.pol@chello.nl>.
3863
3864 2008-04-13  Bruno Haible  <bruno@clisp.org>
3865
3866         * lib/localcharset.c (OS2): Don't redefine if already defined.
3867         Reported by Elbert Pol <e.pol@chello.nl>.
3868
3869 2008-04-13  Bruno Haible  <bruno@clisp.org>
3870
3871         * lib/binary-io.h [__EMX__]: Include <io.h>.
3872         Reported by Elbert Pol <e.pol@chello.nl>.
3873
3874 2008-04-12  Bruno Haible  <bruno@clisp.org>
3875
3876         * lib/fpucw.h: Enable the definitions also for x86_64.
3877         Needed for NetBSD/x86_64.
3878         Reported by Thomas Klausner <tk@giga.or.at>.
3879
3880 2008-04-12  Bruno Haible  <bruno@clisp.org>
3881
3882         * tests/test-strtod.c: Include isnand.h.
3883         (main): Use isnand instead of isnan.
3884         Reported by Jim Meyering.
3885
3886 2008-04-12  Bruno Haible  <bruno@clisp.org>
3887
3888         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
3889         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3890
3891 2008-04-12  Jim Meyering  <meyering@redhat.com>
3892
3893         * m4/math_h.m4 (gl_MATH_H): Fix typos.
3894
3895 2008-04-12  Bruno Haible  <bruno@clisp.org>
3896
3897         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
3898         Reported by Elbert Pol <e.pol@chello.nl>.
3899
3900 2008-04-12  Eric Blake  <ebb9@byu.net>
3901
3902         Work around Solaris 10 math.h bug.
3903         * m4/math_h.m4 (gl_MATH_H): Check for bug.
3904         (gl_MATH_H_DEFAULTS): Set up default.
3905         * modules/math (Makefile.am): Replace new indicators.
3906         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
3907         * tests/test-math.c (main): Test this.
3908         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
3909         * doc/posix-headers/math.texi (math.h): Mention bug.
3910         Reported by Nelson H. F. Beebe and Jim Meyering.
3911
3912 2008-04-11  Bruno Haible  <bruno@clisp.org>
3913
3914         Adapt to future versions of Apple GCC.
3915         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
3916         Reported by Peter O'Gorman <peter@pogma.com>.
3917
3918 2008-04-11  Bruno Haible  <bruno@clisp.org>
3919
3920         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
3921
3922 2008-04-11  Bruno Haible  <bruno@clisp.org>
3923
3924         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
3925
3926         * modules/getaddrinfo-tests (Makefile.am): Define
3927         test_getaddrinfo_LDADD.
3928
3929 2008-04-11  Bruno Haible  <bruno@clisp.org>
3930
3931         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
3932         (init): Fix syntax error.
3933         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
3934         is declared.
3935
3936 2008-04-11  Bruno Haible  <bruno@clisp.org>
3937
3938         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
3939         * modules/glob (Depends-on): Add stdbool.
3940
3941 2008-04-11  Bruno Haible  <bruno@clisp.org>
3942
3943         * lib/trim.c: Include <string.h>.
3944
3945 2008-04-11  Eric Blake  <ebb9@byu.net>
3946
3947         Avoid compile failure on OS/2.
3948         * lib/regex_internal.h (internal_function): Disable optimization
3949         on OS/2 (__EMX__), where it caused compiler error.
3950         Reported by Elbert Pol.
3951
3952 2008-04-11  Bruno Haible  <bruno@clisp.org>
3953
3954         Flush the standard error stream before aborting. Needed on mingw.
3955         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
3956         * tests/test-array_list.c (ASSERT): Likewise.
3957         * tests/test-array_oset.c (ASSERT): Likewise.
3958         * tests/test-avltree_list.c (ASSERT): Likewise.
3959         * tests/test-avltree_oset.c (ASSERT): Likewise.
3960         * tests/test-avltreehash_list.c (ASSERT): Likewise.
3961         * tests/test-binary-io.c (ASSERT): Likewise.
3962         * tests/test-byteswap.c (ASSERT): Likewise.
3963         * tests/test-c-ctype.c (ASSERT): Likewise.
3964         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
3965         * tests/test-c-strcasestr.c (ASSERT): Likewise.
3966         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
3967         * tests/test-c-strstr.c (ASSERT): Likewise.
3968         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
3969         * tests/test-canonicalize.c (ASSERT): Likewise.
3970         * tests/test-carray_list.c (ASSERT): Likewise.
3971         * tests/test-ceilf1.c (ASSERT): Likewise.
3972         * tests/test-ceilf2.c (ASSERT): Likewise.
3973         * tests/test-ceill.c (ASSERT): Likewise.
3974         * tests/test-count-one-bits.c (ASSERT): Likewise.
3975         * tests/test-fbufmode.c (ASSERT): Likewise.
3976         * tests/test-fflush2.c (ASSERT): Likewise.
3977         * tests/test-floorf1.c (ASSERT): Likewise.
3978         * tests/test-floorf2.c (ASSERT): Likewise.
3979         * tests/test-floorl.c (ASSERT): Likewise.
3980         * tests/test-fopen.c (ASSERT): Likewise.
3981         * tests/test-fpending.c (ASSERT): Likewise.
3982         * tests/test-fprintf-posix.c (ASSERT): Likewise.
3983         * tests/test-fpurge.c (ASSERT): Likewise.
3984         * tests/test-freadable.c (ASSERT): Likewise.
3985         * tests/test-freadahead.c (ASSERT): Likewise.
3986         * tests/test-freading.c (ASSERT): Likewise.
3987         * tests/test-freadptr.c (ASSERT): Likewise.
3988         * tests/test-freadptr2.c (ASSERT): Likewise.
3989         * tests/test-freadseek.c (ASSERT): Likewise.
3990         * tests/test-freopen.c (ASSERT): Likewise.
3991         * tests/test-frexp.c (ASSERT): Likewise.
3992         * tests/test-frexpl.c (ASSERT): Likewise.
3993         * tests/test-fseek.c (ASSERT): Likewise.
3994         * tests/test-fseeko.c (ASSERT): Likewise.
3995         * tests/test-fstrcmp.c (ASSERT): Likewise.
3996         * tests/test-ftell.c (ASSERT): Likewise.
3997         * tests/test-ftello.c (ASSERT): Likewise.
3998         * tests/test-func.c (ASSERT): Likewise.
3999         * tests/test-fwritable.c (ASSERT): Likewise.
4000         * tests/test-fwriting.c (ASSERT): Likewise.
4001         * tests/test-getdelim.c (ASSERT): Likewise.
4002         * tests/test-getline.c (ASSERT): Likewise.
4003         * tests/test-i-ring.c (ASSERT): Likewise.
4004         * tests/test-iconv-utf.c (ASSERT): Likewise.
4005         * tests/test-iconv.c (ASSERT): Likewise.
4006         * tests/test-isfinite.c (ASSERT): Likewise.
4007         * tests/test-isnand.c (ASSERT): Likewise.
4008         * tests/test-isnanf.c (ASSERT): Likewise.
4009         * tests/test-isnanl.h (ASSERT): Likewise.
4010         * tests/test-ldexpl.c (ASSERT): Likewise.
4011         * tests/test-linked_list.c (ASSERT): Likewise.
4012         * tests/test-linkedhash_list.c (ASSERT): Likewise.
4013         * tests/test-localename.c (ASSERT): Likewise.
4014         * tests/test-lseek.c (ASSERT): Likewise.
4015         * tests/test-mbscasecmp.c (ASSERT): Likewise.
4016         * tests/test-mbscasestr1.c (ASSERT): Likewise.
4017         * tests/test-mbscasestr2.c (ASSERT): Likewise.
4018         * tests/test-mbscasestr3.c (ASSERT): Likewise.
4019         * tests/test-mbscasestr4.c (ASSERT): Likewise.
4020         * tests/test-mbschr.c (ASSERT): Likewise.
4021         * tests/test-mbscspn.c (ASSERT): Likewise.
4022         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
4023         * tests/test-mbspbrk.c (ASSERT): Likewise.
4024         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
4025         * tests/test-mbsrchr.c (ASSERT): Likewise.
4026         * tests/test-mbsspn.c (ASSERT): Likewise.
4027         * tests/test-mbsstr1.c (ASSERT): Likewise.
4028         * tests/test-mbsstr2.c (ASSERT): Likewise.
4029         * tests/test-mbsstr3.c (ASSERT): Likewise.
4030         * tests/test-memchr2.c (ASSERT): Likewise.
4031         * tests/test-memmem.c (ASSERT): Likewise.
4032         * tests/test-open.c (ASSERT): Likewise.
4033         * tests/test-printf-frexp.c (ASSERT): Likewise.
4034         * tests/test-printf-frexpl.c (ASSERT): Likewise.
4035         * tests/test-printf-posix.c (ASSERT): Likewise.
4036         * tests/test-quotearg.c (ASSERT): Likewise.
4037         * tests/test-rbtree_list.c (ASSERT): Likewise.
4038         * tests/test-rbtree_oset.c (ASSERT): Likewise.
4039         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
4040         * tests/test-round1.c (ASSERT): Likewise.
4041         * tests/test-roundf1.c (ASSERT): Likewise.
4042         * tests/test-roundl.c (ASSERT): Likewise.
4043         * tests/test-signbit.c (ASSERT): Likewise.
4044         * tests/test-sleep.c (ASSERT): Likewise.
4045         * tests/test-snprintf-posix.c (ASSERT): Likewise.
4046         * tests/test-snprintf.c (ASSERT): Likewise.
4047         * tests/test-sprintf-posix.c (ASSERT): Likewise.
4048         * tests/test-stat-time.c (ASSERT): Likewise.
4049         * tests/test-strcasestr.c (ASSERT): Likewise.
4050         * tests/test-strerror.c (ASSERT): Likewise.
4051         * tests/test-striconv.c (ASSERT): Likewise.
4052         * tests/test-striconveh.c (ASSERT): Likewise.
4053         * tests/test-striconveha.c (ASSERT): Likewise.
4054         * tests/test-strsignal.c (ASSERT): Likewise.
4055         * tests/test-strstr.c (ASSERT): Likewise.
4056         * tests/test-strtod.c (ASSERT): Likewise.
4057         * tests/test-trunc1.c (ASSERT): Likewise.
4058         * tests/test-trunc2.c (ASSERT): Likewise.
4059         * tests/test-truncf1.c (ASSERT): Likewise.
4060         * tests/test-truncf2.c (ASSERT): Likewise.
4061         * tests/test-truncl.c (ASSERT): Likewise.
4062         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
4063         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
4064         * tests/test-vasnprintf.c (ASSERT): Likewise.
4065         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
4066         * tests/test-vasprintf.c (ASSERT): Likewise.
4067         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
4068         * tests/test-vprintf-posix.c (ASSERT): Likewise.
4069         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
4070         * tests/test-vsnprintf.c (ASSERT): Likewise.
4071         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
4072         * tests/test-wcwidth.c (ASSERT): Likewise.
4073         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
4074         * tests/test-xprintf-posix.c (ASSERT): Likewise.
4075         * tests/test-xvasprintf.c (ASSERT): Likewise.
4076         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
4077         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
4078         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
4079         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
4080         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
4081         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
4082         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
4083         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
4084         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
4085         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
4086         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
4087         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
4088         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
4089         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
4090         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
4091         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
4092         * tests/unictype/test-block_list.c (ASSERT): Likewise.
4093         * tests/unictype/test-block_of.c (ASSERT): Likewise.
4094         * tests/unictype/test-block_test.c (ASSERT): Likewise.
4095         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
4096         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
4097         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
4098         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
4099         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
4100         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
4101         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
4102         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
4103         * tests/unictype/test-combining.c (ASSERT): Likewise.
4104         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
4105         * tests/unictype/test-digit.c (ASSERT): Likewise.
4106         * tests/unictype/test-mirror.c (ASSERT): Likewise.
4107         * tests/unictype/test-numeric.c (ASSERT): Likewise.
4108         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
4109         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
4110         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
4111         * tests/unictype/test-scripts.c (ASSERT): Likewise.
4112         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
4113         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
4114         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
4115         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
4116         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
4117         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
4118         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
4119         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
4120         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
4121         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
4122         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
4123         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
4124         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
4125         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
4126         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
4127         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
4128         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
4129         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
4130         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
4131         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
4132         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
4133         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
4134         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
4135         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
4136         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
4137         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
4138         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
4139         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
4140         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
4141         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
4142         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
4143         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
4144         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
4145         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
4146         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
4147         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
4148         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
4149         Reported by Eric Blake.
4150
4151 2008-04-11  Bruno Haible  <bruno@clisp.org>
4152
4153         * lib/wchar.in.h: Tweak comment.
4154
4155 2008-04-11  Bruno Haible  <bruno@clisp.org>
4156
4157         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
4158         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
4159         gl_COMMON.
4160         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
4161
4162 2008-04-11  Bruno Haible  <bruno@clisp.org>
4163
4164         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
4165
4166 2008-04-11  Simon Josefsson  <simon@josefsson.org>
4167
4168         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
4169         of attempting to use non-existing /dev/*random.  Based on patch
4170         from Adam Strzelecki <ono@java.pl> in
4171         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
4172
4173 2008-04-08  Bruno Haible  <bruno@clisp.org>
4174
4175         Add tentative support for emx+gcc.
4176         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
4177         * lib/fpurge.c (fpurge): Likewise.
4178         * lib/freadable.c (freadable): Likewise.
4179         * lib/freadahead.c (freadahead): Likewise.
4180         * lib/freading.c (freading): Likewise.
4181         * lib/freadptr.c (freadptr): Likewise.
4182         * lib/freadseek.c (freadptrinc): Likewise.
4183         * lib/fseeko.c (rpl_fseeko): Likewise.
4184         * lib/fseterr.c (fseterr): Likewise.
4185         * lib/fwritable.c (fwritable): Likewise.
4186         * lib/fwriting.c (fwriting): Likewise.
4187         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
4188
4189 2008-04-09  Eric Blake  <ebb9@byu.net>
4190
4191         Avoid some autoconf warnings.
4192         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
4193         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
4194         * m4/afs.m4 (gl_AFS): Likewise.
4195         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
4196         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
4197         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4198         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
4199         (gl_INTEGER_TYPE_SUFFIX): Likewise.
4200         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
4201         (AC_CHECK_DECLS_ONCE): Likewise.
4202         Rename file...
4203         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
4204         gnulib-tool requires autoconf 2.59 or better.
4205         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
4206
4207 2008-04-08  Eric Blake  <ebb9@byu.net>
4208
4209         Use 'git describe --match' if present (added in git 1.5.5).
4210         * build-aux/git-version-gen: Limit result to tags that match 'v*'
4211         if possible.
4212
4213 2008-04-08  Bruno Haible  <bruno@clisp.org>
4214
4215         Add tentative support for OpenServer.
4216         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
4217         _ptr, _cnt.
4218         * lib/fpurge.c (fpurge): Likewise.
4219         * lib/freadable.c (freadable): Likewise.
4220         * lib/freadahead.c (freadahead): Likewise.
4221         * lib/freading.c (freading): Likewise.
4222         * lib/freadptr.c (freadptr): Likewise.
4223         * lib/freadseek.c (freadptrinc): Likewise.
4224         * lib/fseeko.c (rpl_fseeko): Likewise.
4225         * lib/fseterr.c (fseterr): Likewise.
4226         * lib/fwritable.c (fwritable): Likewise.
4227         * lib/fwriting.c (fwriting): Likewise.
4228         Reported by Roger Cornelius <rac@tenzing.org> and
4229         Brian K. White <brian@aljex.com>.
4230
4231 2008-04-06  Jim Meyering  <meyering@redhat.com>
4232
4233         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
4234
4235 2008-04-06  Bruno Haible  <bruno@clisp.org>
4236
4237         Avoid possible error with non-ASCII bytes in UTF-8 locales.
4238         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
4239         * tests/test-printf-posix.sh: Likewise.
4240         * tests/test-vfprintf-posix.sh: Likewise.
4241         * tests/test-vprintf-posix.sh: Likewise.
4242         * tests/test-xprintf-posix.sh: Likewise.
4243
4244 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4245
4246         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
4247         hide error from 'ls', needed on OS/2.
4248         Report by Elbert Pol <elbert.pol@gmail.com>.
4249
4250 2008-04-04  Eric Blake  <ebb9@byu.net>
4251
4252         Make test-fseeko.c failures meaningful.
4253         * tests/test-fseeko.c: Print line number on failure.
4254         * tests/test-fseek.c: Likewise.
4255         Reported by Nelson H. F. Beebe.
4256
4257         Improve strtod bug detection check.
4258         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
4259         required for Solaris 10.
4260         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
4261
4262 2008-04-04  Bruno Haible  <bruno@clisp.org>
4263
4264         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
4265         by m4/setenv.m4.
4266
4267 2008-04-03  Eric Blake  <ebb9@byu.net>
4268
4269         Ensure sane .version contents.
4270         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
4271         version string.
4272         * build-aux/git-version-gen: Improve documentation.
4273
4274         Make GNU make output nicer.
4275         * top/GNUmakefile [!_have-Makefile]: Add dependency on
4276         MAKECMDGOALS to enforce message for all command line targets.  Set
4277         srcdir for use in maint.mk.
4278
4279         Another maintainer tweak.
4280         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
4281         a target that regenerates version.
4282
4283 2008-04-03  Jim Meyering  <meyering@redhat.com>
4284
4285         vc-list-files: don't cause coreutils "make po-check" failure
4286         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
4287
4288 2008-04-03  Eric Blake  <ebb9@byu.net>
4289
4290         Allow VPATH usage of vc-list-files.
4291         * build-aux/vc-list-files (scriptversion): Add timestamp.
4292         (options): Add --help, --version, -C.
4293         (CVS): Support installed cvsu.
4294
4295 2008-04-02  Bruno Haible  <bruno@clisp.org>
4296
4297         Avoid some "statement with no effect" warnings from gcc.
4298         * tests/test-wctype.c (main): Explicitly ignore unused values.
4299         Reported by Jim Meyering.
4300
4301 2008-04-02  Jim Meyering  <meyering@redhat.com>
4302
4303         Avoid some warnings from "gcc -Wshadow".
4304         * tests/test-frexp.c (exp): Define to a different identifier.
4305         * tests/test-frexpl.c (exp): Likewise.
4306
4307 2008-04-03  Jim Meyering  <meyering@redhat.com>
4308
4309         bootstrap: remove dangling *.[ch] symlinks from lib
4310         * build-aux/bootstrap [dangling symlink removal]: Move find's
4311         -depth option to precede all others, to avoid a warning.
4312         Remove *.[ch] files too, and from "$source_base" (usually lib/).
4313
4314 2008-04-02  Bruno Haible  <bruno@clisp.org>
4315
4316         Avoid some warnings from "gcc -Wshadow".
4317         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
4318         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
4319         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
4320         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
4321         Reported by Jim Meyering.
4322
4323 2008-04-01  Bruno Haible  <bruno@clisp.org>
4324
4325         Fix test to work on IRIX 6.5 with cc.
4326         * tests/test-math.c (numeric_equal): New function.
4327         (main): Use it.
4328
4329 2008-04-01  Bruno Haible  <bruno@clisp.org>
4330
4331         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
4332
4333 2008-04-01  Bruno Haible  <bruno@clisp.org>
4334
4335         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
4336         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4337         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
4338         (Depends-on): Remove math.
4339
4340         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
4341         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4342         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
4343         (Depends-on): Remove math.
4344
4345         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
4346         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4347         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
4348         (Depends-on): Remove math.
4349         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
4350         (Depends-on): Remove math.
4351
4352         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
4353         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
4354         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
4355         (Depends-on): Remove math.
4356         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
4357         (Depends-on): Remove math.
4358
4359         * tests/test-round1.c: Include nan.h.
4360         (main): Use NaNd instead of NAN.
4361         * modules/round-tests (Files): Add tests/nan.h.
4362
4363         * tests/test-trunc1.c: Include nan.h.
4364         (main): Use NaNd instead of NAN.
4365         * modules/trunc-tests (Files): Add tests/nan.h.
4366
4367         * tests/test-roundf1.c: Include nan.h.
4368         (main): Use NaNf instead of NAN.
4369         * modules/roundf-tests (Files): Add tests/nan.h.
4370
4371         * tests/test-truncf1.c: Include nan.h.
4372         (main): Use NaNf instead of NAN.
4373         * modules/truncf-tests (Files): Add tests/nan.h.
4374
4375         * tests/test-ceilf1.c: Include nan.h.
4376         (main): Use NaNf instead of NAN.
4377         * modules/ceilf-tests (Files): Add tests/nan.h.
4378
4379         * tests/test-floorf1.c: Include nan.h.
4380         (main): Use NaNf instead of NAN.
4381         * modules/floorf-tests (Files): Add tests/nan.h.
4382
4383         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
4384         (main): Use NaNf instead of NAN.
4385         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
4386
4387         * tests/test-isnand.c: Include nan.h instead of <math.h>.
4388         (main): Use NaNd instead of NAN.
4389         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
4390
4391         * tests/test-frexp.c: Include nan.h.
4392         (main): Use NaNd instead of NAN.
4393         * modules/frexp-tests (Files): Add tests/nan.h.
4394
4395         * lib/isnan.c: Don't include <math.h>.
4396         (FUNC): Don't use NAN macro.
4397         * modules/isnand-nolibm (Depends-on): Remove math.
4398         * modules/isnanf-nolibm (Depends-on): Remove math.
4399         * modules/isnanl (Depends-on): Remove math.
4400         * modules/isnanl-nolibm (Depends-on): Remove math.
4401
4402         * tests/nan.h: New file.
4403
4404 2008-04-01  Eric Blake  <ebb9@byu.net>
4405
4406         Fix typos.
4407         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
4408         values to be the right type.
4409
4410         For now, cater to gnulib strtod inaccuracies.
4411         * tests/test-strtod.c (main): Allow 1-ulp error on expected
4412         fractional results.  While not as nice from a QoI perspective, it
4413         is a quicker patch than correctly implementing decimal to binary
4414         rounding.
4415
4416 2008-03-31  Eric Blake  <ebb9@byu.net>
4417
4418         Guarantee a definition of NAN.
4419         * lib/math.in.h (NAN): Define if missing.
4420         * tests/test-math.c (main): Test it.
4421         * doc/posix-headers/math.texi (math.h): Document this.
4422         * lib/isnan.c (rpl_isnand): Use it.
4423         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4424         * tests/test-floorf1.c (NaN): Likewise.
4425         * tests/test-frexp.c (NaN): Likewise.
4426         * tests/test-isnand.c (NaN): Likewise.
4427         * tests/test-isnanf.c (NaN): Likewise.
4428         * tests/test-round1.c (NaN): Likewise.
4429         * tests/test-roundf1.c (NaN): Likewise.
4430         * tests/test-snprintf-posix.h (NaN): Likewise.
4431         * tests/test-sprintf-posix.h (NaN): Likewise.
4432         * tests/test-trunc1.c (NaN): Likewise.
4433         * tests/test-truncf1.c (NaN): Likewise.
4434         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4435         * tests/test-vasprintf-posix.c (NaN): Likewise.
4436         * modules/isnand-nolibm (Depends-on): Add math.
4437         * modules/isnanf-nolibm (Depends-on): Likewise.
4438         * modules/isnanl (Depends-on): Likewise.
4439         * modules/isnanl-nolibm (Depends-on): Likewise.
4440         * modules/snprintf-posix-tests (Depends-on): Likewise.
4441         * modules/sprintf-posix-tests (Depends-on): Likewise.
4442         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4443         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4444         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4445         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4446
4447 2008-03-31  Bruno Haible  <bruno@clisp.org>
4448
4449         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4450         * doc/posix-functions/strtod.texi: Likewise.
4451
4452 2008-03-31  Bruno Haible  <bruno@clisp.org>
4453
4454         * tests/test-strtod.c (main): Don't use C99 syntax.
4455
4456 2008-03-31  Bruno Haible  <bruno@clisp.org>
4457
4458         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4459         Reported by Eric Blake.
4460
4461 2008-03-31  Jim Meyering  <meyering@redhat.com>
4462
4463         Don't compare actual signbit return values.
4464         * tests/test-strtod.c (main): Rather, compare only their
4465         zero/non-zero nature.
4466
4467 2008-03-31  Eric Blake  <ebb9@byu.net>
4468
4469         More strtod documentation.
4470         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4471         failures as distinct bugs.
4472
4473 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4474
4475         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4476         Problem reported by Erik Benada in
4477         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4478
4479 2008-03-30  Bruno Haible  <bruno@clisp.org>
4480
4481         * tests/test-strtod.c: Add comments about which assertion fails on which
4482         platform.
4483         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4484
4485 2008-03-30  Eric Blake  <ebb9@byu.net>
4486
4487         Test signbit behavior on zeros.
4488         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4489         (test_signbitd, test_signbitl): Likewise.
4490
4491         More strtod touchups.
4492         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4493         sign of negative underflow, for now.  Use .5, not .1.
4494         * doc/posix-functions/strtod.texi (strtod): Mention these
4495         limitations.
4496         Reported by Jim Meyering.
4497
4498 2008-03-30  Bruno Haible  <bruno@clisp.org>
4499
4500         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4501         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4502
4503 2008-03-30  Bruno Haible  <bruno@clisp.org>
4504
4505         Avoid failure when attempting to return empty iconv results on some
4506         platforms.
4507         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4508         allocation, don't report ENOMEM when the resulting string is empty.
4509
4510 2008-03-30  Bruno Haible  <bruno@clisp.org>
4511
4512         Fix buffer overrun.
4513         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4514         Don't consider the width for tmp_length. Check count against tmp_length
4515         before doing the padding. Ensure enough allocation during padding.
4516
4517 2008-03-30  Eric Blake  <ebb9@byu.net>
4518
4519         strtod touchups.
4520         * lib/strtod.c (strtod): Avoid compiler warnings.
4521         Reported by Jim Meyering.
4522
4523 2008-03-30  Bruno Haible  <bruno@clisp.org>
4524
4525         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
4526         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
4527         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
4528         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
4529         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
4530         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
4531         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
4532         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
4533
4534         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
4535         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
4536         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
4537         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
4538         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4539         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4540         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4541         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4542
4543         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4544         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4545         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4546         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4547         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4548         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4549         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4550         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4551
4552         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4553         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4554
4555         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4556         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4557
4558         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
4559         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
4560
4561         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
4562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
4563         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
4564
4565         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
4566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
4567         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
4568
4569         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
4570         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
4571         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
4572
4573         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
4574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
4575         * modules/vasprintf (Depends-on): Add EOVERFLOW.
4576
4577         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
4578         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
4579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
4580         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
4581         (Depends-on): Add EOVERFLOW.
4582         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
4583         (Depends-on): Add EOVERFLOW.
4584         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4585         (Depends-on): Add EOVERFLOW.
4586         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4587         (Depends-on): Add EOVERFLOW.
4588         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4589         (Depends-on): Add EOVERFLOW.
4590         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4591         (Depends-on): Add EOVERFLOW.
4592         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4593         (Depends-on): Add EOVERFLOW.
4594         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4595         (Depends-on): Add EOVERFLOW.
4596
4597         * lib/sprintf.c (EOVERFLOW): Remove fallback.
4598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
4599         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
4600
4601         * lib/snprintf.c (EOVERFLOW): Remove fallback.
4602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
4603         * modules/snprintf (Depends-on): Add EOVERFLOW.
4604
4605         * lib/poll.c (EOVERFLOW): Remove fallback.
4606         * modules/poll (Depends-on): Add EOVERFLOW.
4607
4608         * lib/getugroups.c (EOVERFLOW): Remove fallback.
4609         * modules/getugroups (Depends-on): Add EOVERFLOW.
4610
4611         * lib/getdelim.c (EOVERFLOW): Remove fallback.
4612         * modules/getdelim (Depends-on): Add EOVERFLOW.
4613
4614         * lib/ftell.c (EOVERFLOW): Remove fallback.
4615         * modules/ftell (Depends-on): Add EOVERFLOW.
4616
4617         * lib/fprintf.c (EOVERFLOW): Remove fallback.
4618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
4619         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
4620
4621         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
4622
4623         * modules/EOVERFLOW-tests: New file.
4624         * tests/test-EOVERFLOW.c: New file.
4625
4626         * modules/EOVERFLOW: New file.
4627         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
4628
4629 2008-03-30  Bruno Haible  <bruno@clisp.org>
4630
4631         Fix bug introduced on 2007-06-10.
4632         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
4633         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
4634
4635 2008-03-30  Bruno Haible  <bruno@clisp.org>
4636
4637         Improve freadseek's efficiency after ungetc.
4638         * lib/freadseek.c: Include freadahead.h.
4639         (freadptrinc): New function, extracted from freadseek.
4640         (freadseek): Use it in a loop. Use freadahead to determine the number
4641         of loop iterations.
4642         * modules/freadseek (Depends-on): Add freadahead.
4643         (configure.ac): Require AC_C_INLINE.
4644
4645 2008-03-30  Bruno Haible  <bruno@clisp.org>
4646
4647         * lib/freadseek.c (freadseek): Don't ignore the return value of
4648         freadptr.
4649
4650 2008-03-29  Eric Blake  <ebb9@byu.net>
4651
4652         Add hex float support.
4653         * modules/strtod (Depends-on): Add c-ctype.
4654         (Link): Mention POW_LIB.
4655         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
4656         whitespace between 'e' and exponent.
4657         * tests/test-strtod.c (main): Enable hex float tests.
4658         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
4659         now provides.
4660
4661         Document various strtod bugs, with some fixes.
4662         * doc/posix-functions/strtod.texi (strtod): Document bugs with
4663         "-0x", "inf", "nan", and hex constants.
4664         * doc/posix-functions/atof.texi (atof): Likewise.
4665         * modules/stdlib (Makefile.am): Support strtod.
4666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4667         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
4668         detect additional strtod bugs.
4669         * lib/stdlib.in.h (rpl_strtod): Add declarations.
4670         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
4671         bool where appropriate.  Parse 'inf' and 'nan'.
4672         * tests/test-strtod.c: New file.
4673         * modules/strtod (Depends-on): Add stdbool, stdlib.
4674         (configure.ac): Turn on module indicator.
4675         * modules/strtod-tests: New module.
4676
4677 2008-03-29  Eric Blake  <ebb9@byu.net>
4678
4679         Fix ftell on mingw.
4680         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
4681         * modules/ftell-tests (Depends-on): Add binary-io.
4682         * modules/ftello-tests (Depends-on): Likewise.
4683         * tests/test-ftell.c (main): Enhance test to cover behavior after
4684         ungetc.  Enforce binary mode.
4685         * tests/test-ftello.c (main): Likewise.
4686
4687         Pass test-freadseek on cygwin.
4688         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
4689         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
4690         ungetc buffer.
4691
4692         * tests/test-fflush2.c (main): Fix typo.
4693
4694 2008-03-29  Bruno Haible  <bruno@clisp.org>
4695
4696         * tests/test-fflush2.c (main): Temporarily disable the contents of
4697         this test.
4698         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
4699         Reported by Eric Blake.
4700
4701 2008-03-28  Simon Josefsson  <simon@josefsson.org>
4702
4703         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
4704         (GC_SHA224_DIGEST_SIZE): Add.
4705
4706         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
4707         (gc_hash_digest_length): Likewise.
4708         (gc_hash_buffer): Likewise.
4709
4710 2008-03-25  Bruno Haible  <bruno@clisp.org>
4711
4712         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
4713         detail which gettext release to use.
4714         Reported by Simon Josefsson.
4715
4716 2008-03-26  Jim Meyering  <meyering@redhat.com>
4717
4718         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
4719         * modules/gnumakefile (clean-GNUmakefile): Also, use
4720         test ... && ... || : syntax rather than if-then ... fi.
4721
4722         gnumakefile: Don't double-quote-expand $(VPATH) value.
4723         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
4724
4725 2008-03-24  Eric Blake  <ebb9@byu.net>
4726
4727         Alter GNUmakefile to install into top directory.
4728         * modules/maintainer-makefile: Split, and add dependency...
4729         * modules/gnumakefile: to this new module.
4730         * build-aux/GNUmakefile: Move...
4731         * top/GNUmakefile: ...here.
4732         * build-aux/maint.mk: Move...
4733         * top/maint.mk: ...here.
4734         * MODULES.html.sh (Support for maintaining...): Document new
4735         module.
4736
4737 2008-03-23  Bruno Haible  <bruno@clisp.org>
4738
4739         * gnulib-tool: New options --vc-files, --no-vc-files.
4740         (func_usage): Document them.
4741         (vc_files): New variable.
4742         (func_import): Consider vc_files.
4743         (func_create_testdir): Set vc_files to empty.
4744         Suggested by Jim Meyering and Karl Berry.
4745
4746 2008-03-23  Bruno Haible  <bruno@clisp.org>
4747
4748         Fix regex compilation error on HP-UX 11.
4749         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
4750         * modules/regex (Files): Add m4/mbstate_t.m4.
4751         Reported by Ton Voon <ton.voon@altinity.com>.
4752
4753 2008-03-23  Bruno Haible  <bruno@clisp.org>
4754
4755         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
4756
4757 2008-03-23  Eric Blake  <ebb9@byu.net>
4758             Bruno Haible  <bruno@clisp.org>
4759
4760         Install files from top/ in the destination directory.
4761         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4762         augmentation also for the files from top/.
4763         (func_import, func_create_testdir): Rewrite file names:
4764         top/filename -> filename.
4765
4766 2008-03-23  Bruno Haible  <bruno@clisp.org>
4767
4768         Tweak "gnulib --version" output.
4769         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
4770
4771 2008-03-23  Bruno Haible  <bruno@clisp.org>
4772
4773         Tweak "gnulib --version" output.
4774         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
4775         rather than contents of ChangeLog, when possible.
4776
4777 2008-03-21  Eric Blake  <ebb9@byu.net>
4778
4779         More --version tweaks.
4780         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
4781         date of last ChangeLog entry.
4782
4783 2008-03-21  Jim Meyering  <meyering@redhat.com>
4784
4785         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
4786
4787 2008-03-20  Eric Blake  <ebb9@byu.net>
4788
4789         VPATH fix.
4790         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
4791
4792 2008-03-20  Simon Josefsson  <simon@josefsson.org>
4793
4794         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
4795         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
4796
4797 2008-03-20  Eric Blake  <ebb9@byu.net>
4798
4799         Sync GNUmakefile with coreutils.
4800         * build-aux/GNUmakefile (have-Makefile): Rename...
4801         (_have-Makefile): ...to this, for namespace consideration.
4802         (GNUmakefile.cfg): Include, if present.
4803         (_autoreconf): Define a default.
4804         (_is-dist-target): New rule for rebuilds to pick up intra-release
4805         version.
4806         (maint-cfg.mk): Rename...
4807         (cfg.mk): ...to this.
4808
4809 2008-03-18  Jim Meyering  <meyering@redhat.com>
4810
4811         New script and module: mktempd
4812         * MODULES.html.sh (maint+release support): Add mktempd.
4813         * build-aux/mktempd: New file.
4814         * modules/mktempd: New file.
4815
4816 2008-03-15  Jim Meyering  <meyering@redhat.com>
4817
4818         Undo last change.
4819         * lib/sha1.c, lib/md5.c: 63 != ~63.
4820         Reported by Andreas Schwab.
4821
4822         sha1.c, md5.c: Hoist a redundant expression.
4823         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
4824         "ctx->buflen" only once, before calling *_process_block.
4825         * lib/md5.c (md5_process_bytes): Likewise.
4826
4827 2008-03-14  Eric Blake  <ebb9@byu.net>
4828
4829         Bump copyright year in files generated by gnulib-tool.
4830         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4831         gnulib-tool, rather than hard-coding it.
4832
4833         Fix 'gnulib-tool --version' output to work with git.
4834         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4835         (startup): ...here.
4836         (func_version): Use it to invoke git-version-gen, rather than
4837         relying on CVS keyword expansion.  Modernize wording.
4838         (cvsdatestamp, last_checkin_date, version): Kill unused
4839         variables.
4840
4841 2008-03-12  Jim Meyering  <meyering@redhat.com>
4842
4843         Recognize optional cast of the argument to free.
4844         * build-aux/useless-if-before-free: Update regexps.
4845
4846         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
4847
4848 2008-03-11  Bruno Haible  <bruno@clisp.org>
4849
4850         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
4851         by a single package.
4852         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
4853         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
4854         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
4855         Reported by Sam Steingold <sds@gnu.org>.
4856
4857 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4858
4859         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
4860         repositories.
4861
4862 2008-03-11  Bruno Haible  <bruno@clisp.org>
4863
4864         Avoid conflicts between local macro definitions.
4865         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4866         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
4867
4868 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
4869             Bruno Haible  <bruno@clisp.org>
4870
4871         Make va_copy work with some version of xlc on AIX 5.1.
4872         * lib/stdarg.in.h: New file.
4873         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
4874         On AIX, use a <stdarg.h> file substitute.
4875         * modules/stdarg (Files): Add lib/stdarg.in.h.
4876         (Depends-on): Add include_next.
4877         (Makefile.am): Build a stdarg.h substitute if requested.
4878         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
4879
4880 2008-03-10  Bruno Haible  <bruno@clisp.org>
4881
4882         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
4883         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4884         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4885
4886 2008-03-10  Bruno Haible  <bruno@clisp.org>
4887
4888         * modules/stdlib (Depends-on): Add include_next, remove
4889         absolute-header.
4890
4891 2008-03-09  Bruno Haible  <bruno@clisp.org>
4892
4893         * lib/freadahead.h (freadahead): Document more precisely.
4894         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
4895         the sum of both buffer sizes.
4896         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
4897         * NEWS: Document the change.
4898
4899 2008-03-09  Bruno Haible  <bruno@clisp.org>
4900
4901         Extend freadptr to return also the buffer size.
4902         * lib/freadptr.h (freadptr): Add sizep argument.
4903         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
4904         (freadptr): Add sizep argument. Determine buffer size like freadahead
4905         does.
4906         * tests/test-freadptr.c: Don't include freadahead.h.
4907         (main): Adapt for new calling convention of freadptr.
4908         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
4909         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
4910         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
4911         tests/test-freadptr2.sh.
4912         (Depends): Remove freadahead.
4913         (TESTS): Add test-freadptr2.sh.
4914         (check_PROGRAMS): Add test-freadptr2.
4915
4916 2008-03-09  Bruno Haible  <bruno@clisp.org>
4917
4918         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
4919         Report and solution by Simon Josefsson.
4920
4921 2008-03-06  Bruno Haible  <bruno@clisp.org>
4922
4923         Make fflush after ungetc work on BSD platforms.
4924         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
4925         * tests/test-fflush2.c: New file.
4926         * tests/test-fflush2.sh: New file.
4927         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
4928         tests/test-fflush2.c.
4929         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
4930         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
4931
4932 2008-03-06  Eric Blake  <ebb9@byu.net>
4933
4934         Likewise for ftello.
4935         * modules/ftello (Dependencies): Add extensions.
4936         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
4937
4938 2008-03-06  Bruno Haible  <bruno@clisp.org>
4939
4940         * modules/fseeko (Dependencies): Add extensions.
4941         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
4942         Needed on glibc systems.
4943
4944 2008-03-06  Bruno Haible  <bruno@clisp.org>
4945
4946         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
4947         email address.
4948         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4949
4950 2008-03-06  Bruno Haible  <bruno@clisp.org>
4951
4952         * users.txt: Add libgnupdf.
4953
4954 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4955
4956         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
4957         (Header File Substitutes, Function Substitutes,
4958         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
4959         (Build robot for gnulib): Fix typo.
4960
4961 2008-03-06  Bruno Haible  <bruno@clisp.org>
4962
4963         * doc/gnulib-tool.texi (VCS Issues): Small updates.
4964         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4965
4966 2008-03-06  Bruno Haible  <bruno@clisp.org>
4967
4968         * doc/func.texi: New file, extracted from doc/gnulib.texi.
4969         * doc/gnulib.texi: Include it.
4970
4971 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4972
4973         * modules/func (License): Change license to unlimited; there was
4974         no LGPL parts in the module anyway.
4975
4976 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4977
4978         * modules/__func__: Renamed to modules/func.
4979         * modules/__func__-tests: Renamed to modules/func-tests.
4980         * tests/test-__func__.c: Renamed to tests/test-func.c.
4981         * m4/__func__.m4: Renamed to m4/func.m4.
4982         * doc/gnulib.texi (__func__): Section renamed to func.
4983         Suggested by Eric Blake <ebb9@byu.net>.
4984
4985 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4986
4987         * doc/gnulib.texi (__func__): Use C99 terminology when talking
4988         about __func__.  Make example self-contained.  Suggested by Eric
4989         Blake <ebb9@byu.net>.
4990
4991         * tests/test-__func__.c (main): Avoid extraneous () around __func.
4992         Suggested by Eric Blake <ebb9@byu.net>.
4993
4994 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4995
4996         * modules/__func__: New file.
4997         * modules/__func__-tests: New file.
4998         * tests/test-__func__.c: New file.
4999         * m4/__func__.m4: New file.
5000         * doc/gnulib.texi (__func__): Document __func__ module.
5001
5002 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5003
5004         * modules/byteswap (License): Re-license as LGPLv2+.
5005
5006 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5007
5008         * doc/Makefile: Add pdf target.
5009
5010 2008-03-05  Simon Josefsson  <simon@josefsson.org>
5011
5012         * modules/inline (License): Use 'unlimited', since there are only
5013         *.m4 files in this module.
5014
5015 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5016             Bruno Haible  <bruno@clisp.org>
5017
5018         Add support for HP C 7.1 on OpenVMS 8.3.
5019         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
5020
5021 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
5022
5023         Update VMS specifics.
5024         * lib/getopt.c [VMS]: Remove include of unixlib.h.
5025
5026 2008-03-02  Jim Meyering  <meyering@redhat.com>
5027
5028         Remove the last dependency on the "free" module.
5029         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
5030         Reported by Bob Proulx.
5031
5032         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
5033
5034         Remove useless "if" tests before free.  Deprecate "free" module.
5035         * doc/posix-functions/free.texi: Mention that this
5036         module is no longer useful.
5037         * modules/free (Notice): Say this module is obsolete.
5038         * modules/readutmp (Depends-on): Remove free.
5039         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
5040         * lib/putenv.c (putenv): Likewise.
5041         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
5042         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
5043         * tests/test-c-strcasestr.c (main): Likewise.
5044         * tests/test-c-strstr.c (main): Likewise.
5045         * tests/test-mbscasestr1.c (main): Likewise.
5046         * tests/test-mbscasestr2.c (main): Likewise.
5047         * tests/test-mbsstr1.c (main): Likewise.
5048         * tests/test-mbsstr2.c (main): Likewise.
5049         * tests/test-memmem.c (main): Likewise.
5050         * tests/test-strcasestr.c (main): Likewise.
5051         * tests/test-striconv.c (main): Likewise.
5052         * tests/test-striconveh.c (main): Likewise.
5053         * tests/test-striconveha.c (main): Likewise.
5054         * tests/test-strstr.c (main): Likewise.
5055
5056         * build-aux/git-version-gen: Adjust a comment and the Usage string.
5057
5058         bootstrap: sync from coreutils again
5059         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
5060
5061 2008-03-01  Jim Meyering  <meyering@redhat.com>
5062
5063         bootstrap: sync from coreutils
5064         * build-aux/bootstrap (update_po_files): Copy a .po file into place
5065         also when the target doesn't exist.
5066
5067 2008-03-01  Eric Blake  <ebb9@byu.net>
5068
5069         Fix bugs in last patch.
5070         * lib/memchr2.c (memchr2): Fix typo.
5071         * tests/test-memchr2.c: Test previous bug, and don't use GNU
5072         extension.
5073         Reported by Bruce Korb.
5074
5075         New module 'memchr2'.
5076         * modules/memchr2: New file.
5077         * modules/memchr2-tests: Likewise.
5078         * lib/memchr2.h: Likewise.
5079         * lib/memchr2.c: Likewise, based on memchr.c.
5080         * tests/test-memchr2.c: New test.
5081         * MODULES.html.sh (String handling): Add memchr2.
5082
5083 2008-02-29  Bruno Haible  <bruno@clisp.org>
5084
5085         * modules/freadseek-tests: New file.
5086         * tests/test-freadseek.sh: New file.
5087         * tests/test-freadseek.c: New file.
5088
5089         New module 'freadseek'.
5090         * modules/freadseek: New file.
5091         * lib/freadseek.h: New file.
5092         * lib/freadseek.c: New file.
5093         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
5094
5095 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
5096
5097         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
5098         wydawca.
5099
5100         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
5101         program_invocation_name and program_invocation_short_name are
5102         present.
5103
5104 2008-02-28  Bruno Haible  <bruno@clisp.org>
5105
5106         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
5107         * tests/test-freadptr.sh: Also test non-seekable stdin.
5108
5109 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
5110
5111         * build-aux/bootstrap (source_base, m4_base)
5112         (doc_base, tests_base): New variables.
5113         (gnulib_tool_options): Do not hardcode base directories, use
5114         the above variables instead.
5115
5116 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
5117
5118         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
5119
5120 2008-02-28  Bruno Haible  <bruno@clisp.org>
5121
5122         * modules/freadptr-tests: New file.
5123         * tests/test-freadptr.sh: New file.
5124         * tests/test-freadptr.c: New file.
5125
5126         New module 'freadptr'.
5127         * modules/freadptr: New file.
5128         * lib/freadptr.h: New file.
5129         * lib/freadptr.c: New file.
5130         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
5131
5132 2008-02-26  Karl Berry  <karl@freefriends.org>
5133
5134         Sync from Libtool:
5135         * libltdl/argz.c (argz_add, argz_count): New functions.
5136         * libltdl/argz.in.h: Declare them.
5137         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
5138
5139 2008-02-22  Bruno Haible  <bruno@clisp.org>
5140
5141         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
5142         is a pointer type.  Needed for HP-UX 10.
5143         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
5144         * doc/posix-functions/gmtime_r.texi: Likewise.
5145         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
5146
5147 2008-02-24  Bruno Haible  <bruno@clisp.org>
5148
5149         * modules/environ-tests: New file.
5150         * tests/test-environ.c: New file.
5151
5152         New module 'environ'.
5153         * modules/environ: New file.
5154         * lib/unistd.in.h (environ): New declaration.
5155         * m4/environ.m4: New file.
5156         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
5157         after use.
5158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
5159         HAVE_DECL_ENVIRON.
5160         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
5161         HAVE_DECL_ENVIRON.
5162         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
5163         wrong claim that 'environ' is missing on some systems.
5164         * modules/execute (Depends-on): Add environ.
5165         * lib/execute.c (environ): Remove fallback declaration.
5166         * modules/pipe (Depends-on): Add environ.
5167         * lib/pipe.c (environ): Remove fallback declaration.
5168         * modules/setenv (Depends-on): Add environ.
5169         * lib/setenv.c (environ): Remove fallback declaration.
5170         * modules/unsetenv (Depends-on): Add environ.
5171         * lib/unsetenv.c (environ): Remove fallback declaration.
5172         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
5173         m4/environ.m4.
5174         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
5175         (gl_PREREQ_UNSETENV): Likewise.
5176
5177 2008-02-24  Bruno Haible  <bruno@clisp.org>
5178
5179         * doc/posix-functions/environ.texi: Document the MacOS X problem.
5180
5181 2008-02-20  Bob Proulx  <bob@proulx.com>
5182
5183         Enable use of older two part flavor 'git describe'.
5184         * build-aux/git-version-gen: If using the older two part flavor of
5185         git version then recreate the third part now present in the
5186         newer three part flavor of git describe.
5187
5188 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
5189
5190         * lib/fts.c (fts_build): Typo correction to comment.
5191
5192 2008-02-17  Bruno Haible  <bruno@clisp.org>
5193
5194         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
5195         generating no-op conflicts.
5196
5197 2008-02-17  Bruno Haible  <bruno@clisp.org>
5198
5199         Speed up by 10%.
5200         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
5201         result_entries, rather than an index-based loop.
5202
5203 2008-02-17  Bruno Haible  <bruno@clisp.org>
5204
5205         Speed up by 25%.
5206         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
5207         'hashcode_cached'.
5208         (entry_create): New function.
5209         (entry_hashcode): Use the cached hashcode if possible.
5210         (read_changelog_file, try_split_merged_entry): Use entry_create.
5211
5212 2008-02-17  Bruno Haible  <bruno@clisp.org>
5213
5214         Speed up from O(n^2) to O(n) for long ChangeLog files.
5215         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
5216         (read_changelog_file): Change implementation of entries_reversed list
5217         to rbtreehash.
5218         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
5219
5220 2008-02-17  Bruno Haible  <bruno@clisp.org>
5221
5222         New option --split-merged-entry.
5223         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
5224         (find_paragraph_end, try_split_merged_entry): New functions.
5225         (long_options): Add option --split-merged-entry.
5226         (usage): Document option --split-merged-entry.
5227         (main): Implement option --split-merged-entry.
5228         Reported by Eric Blake.
5229
5230 2008-02-17  Bruno Haible  <bruno@clisp.org>
5231
5232         * lib/git-merge-changelog.c: Include c-strstr.h.
5233         (main): Support the "git pull --rebase" situation.
5234         * modules/git-merge-changelog (Depends-on): Add c-strstr.
5235         Reported by Eric Blake.
5236
5237 2008-02-16  Eric Blake  <ebb9@byu.net>
5238
5239         Avoid doubling \ in common case of "c-maybe" quoting style.
5240         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
5241         eliding outer quotes.
5242         * lib/quotearg.h: Document this.
5243         * tests/test-quotearg.c (result_strings, inputs, results_g)
5244         (flag_results, locale_results): Test it by adding a new string to
5245         each test group.
5246         (compare_strings): Test new string.
5247
5248 2008-02-13  Eric Blake  <ebb9@byu.net>
5249
5250         Avoid trigraph quoting in default output.
5251         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
5252         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
5253         unless explicitly requested.
5254         * tests/test-quotearg.c (flag_results, main): Add additional tests.
5255
5256 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
5257
5258         Don't rely on signed integer overflowing to negative value.
5259         * lib/getugroups.c (getugroups): Include <limits.h>.
5260         Instead, compare against INT_MAX, and increment only if the test passes.
5261
5262 2008-02-13  Jim Meyering  <meyering@redhat.com>
5263         and Eric Blake  <ebb9@byu.net>
5264
5265         Avoid shadowing warning and compile errors on Linux.
5266         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
5267         forwarding macros on Linux.
5268         (dcgettext): Define a stub, for Linux.
5269         (results_g, main): Avoid warnings.
5270
5271 2008-02-12  Eric Blake  <ebb9@byu.net>
5272
5273         Silence warning in last patch.
5274         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
5275
5276         Quotearg part 4: add tests, fix c-maybe colon quoting.
5277         * lib/quotearg.h: Improve documentation.
5278         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
5279         escapes when adding outer quotes.  When quoting trigraphs, use
5280         valid C notation.  When quoting NUL, omit extra characters if next
5281         character is not digit.  Alter prototype.
5282         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
5283         callers.
5284         * modules/quotearg-tests: New module.
5285         * tests/test-quotearg.c: New test.
5286
5287 2008-02-07  Eric Blake  <ebb9@byu.net>
5288
5289         Quotearg part 3: add flag to control outer quote elision.
5290         * lib/quotearg.h (c_maybe_quoting_style): New style.
5291         (enum quoting_flags): Better documentation of flags.
5292         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
5293         c-maybe style.
5294         (quotearg_buffer_restyled): Handle new flag to elide outer
5295         quotes.
5296
5297         Quotearg part 2: add flag that can control NUL elision.
5298         * lib/quotearg.h (set_quoting_flags): New prototype.
5299         * lib/quotearg.c (struct quoting_options): Add flag field.
5300         (set_quoting_flags): New function.
5301         (quotearg_buffer_restyled): Add flags parameter.
5302         (quotearg_alloc_mem): Set the flag if length cannot be returned.
5303         (quotearg_n_options): Set the flag, since length cannot be
5304         returned.
5305         (quoting_options_from_style): Default flags correctly.
5306
5307         Quotearg part 1: more wrappers, restore quotearg_char state.
5308         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
5309         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
5310         (quotearg_colon_mem): New wrappers.
5311         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
5312         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
5313         functions.
5314         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
5315         (quotearg_colon_mem): New functions.
5316
5317 2008-02-11  Bruno Haible  <bruno@clisp.org>
5318
5319         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
5320         library in the current directory: it does not work with parallel make.
5321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5322
5323 2008-02-11  Bruno Haible  <bruno@clisp.org>
5324
5325         * .gitattributes: New file.
5326
5327 2008-02-11  Jim Meyering  <meyering@redhat.com>
5328
5329         useless-if-before-free: Fix reversed exit values.
5330         * build-aux/useless-if-before-free: Use correct values
5331         for EXIT_MATCH and EXIT_NO_MATCH.
5332
5333         * build-aux/useless-if-before-free: Close stdout carefully.
5334
5335 2008-02-10  Bruno Haible  <bruno@clisp.org>
5336
5337         New module 'git-merge-changelog'.
5338         * modules/git-merge-changelog: New file.
5339         * lib/git-merge-changelog.c: New file.
5340
5341 2008-02-10  Jim Meyering  <meyering@redhat.com>
5342
5343         useless-if-before-free: New option: --list (-l).
5344
5345         useless-if-before-free: Don't exit immediately upon open failure.
5346         * build-aux/useless-if-before-free: Exit 2 for errors.
5347         Upon failure to open a file, don't exit immediately.
5348         Rather, just warn and continue with any remaining files.
5349
5350 2008-02-10  Bruno Haible  <bruno@clisp.org>
5351
5352         New abstract list operation 'node_set_value'.
5353         * lib/gl_list.h (gl_list_node_set_value): New function.
5354         (struct gl_list_implementation): New field node_set_value.
5355         * lib/gl_list.c (gl_list_node_set_value): New function.
5356         * lib/gl_array_list.c (gl_array_node_set_value): New function.
5357         (gl_array_list_implementation): Update.
5358         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
5359         (gl_carray_list_implementation): Update.
5360         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
5361         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
5362         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
5363         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
5364         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
5365         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
5366         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
5367         Update.
5368         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
5369         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
5370         (gl_sublist_list_implementation): Update.
5371
5372 2008-02-10  Bruno Haible  <bruno@clisp.org>
5373
5374         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
5375         Needed when ELEMENT is #defined to 'some_type *'.
5376
5377 2008-02-10  Jim Meyering  <meyering@redhat.com>
5378
5379         New script and module: useless-if-before-free
5380         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
5381         * build-aux/useless-if-before-free: New file.
5382         * modules/useless-if-before-free: New file.
5383
5384         * build-aux/gitlog-to-changelog: Use committer date, not author date.
5385
5386         xstrtol_error: Fix typo.
5387         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
5388         s/exit_failure/exit_status/.
5389
5390 2008-02-09  Jim Meyering  <meyering@redhat.com>
5391
5392         New script and module: gitlog-to-changelog
5393         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
5394         * modules/gitlog-to-changelog: New file.
5395         * build-aux/gitlog-to-changelog: New file.
5396
5397 2008-02-08  Jim Meyering  <meyering@redhat.com>
5398
5399         Avoid two "parameter unused" warnings.
5400         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
5401         Mark "st" as used.
5402
5403         Use "git COMMAND", not "git-COMMAND".
5404         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
5405         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
5406         * build-aux/git-version-gen: Use "git status", not "git-status".
5407
5408 2008-02-07  Bruno Haible  <bruno@clisp.org>
5409
5410         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
5411         Avoids a crash on Windows Vista.
5412         Reported by Adam Strzelecki <ono@java.pl> via
5413         Simon Josefsson <simon@josefsson.org>.
5414
5415 2008-02-06  Bruno Haible  <bruno@clisp.org>
5416
5417         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
5418         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
5419         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5421         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5422         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5423         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5424         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5425         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5432         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5433         left-adjust flag.
5434         * tests/test-snprintf-posix.h (test_function): Likewise.
5435         * tests/test-sprintf-posix.h (test_function): Likewise.
5436         * tests/test-vasprintf-posix.c (test_function): Likewise.
5437         * doc/posix-functions/fprintf.texi: Update.
5438         * doc/posix-functions/printf.texi: Update.
5439         * doc/posix-functions/snprintf.texi: Update.
5440         * doc/posix-functions/sprintf.texi: Update.
5441         * doc/posix-functions/vfprintf.texi: Update.
5442         * doc/posix-functions/vprintf.texi: Update.
5443         * doc/posix-functions/vsnprintf.texi: Update.
5444         * doc/posix-functions/vsprintf.texi: Update.
5445         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5446
5447 2008-02-06  Bruno Haible  <bruno@clisp.org>
5448
5449         Fix bug introduced on 2008-01-26.
5450         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5451
5452 2008-02-06  Bruno Haible  <bruno@clisp.org>
5453
5454         Fix bug introduced on 2007-06-10.
5455         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5456         !NEED_PRINTF_FLAG_ZERO.
5457
5458 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5459
5460         getloadavg: use libperfstat on AIX5
5461         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5462
5463 2008-02-03  Bruno Haible  <bruno@clisp.org>
5464
5465         * lib/diffseq.h: Add comments about required #includes.
5466         Reported by Michael Biggs <gnulib@doubleplum.net>.
5467
5468 2008-02-01  Bruno Haible  <bruno@clisp.org>
5469
5470         * users.txt: Add gnuit.
5471
5472 2008-01-31  Bruno Haible  <bruno@clisp.org>
5473
5474         * lib/md4.c (set_uint32): Mark as inline.
5475         * lib/md5.c (set_uint32): Likewise.
5476         * lib/sha1.c (set_uint32): Likewise.
5477         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5478         * m4/md5.m4 (gl_MD5): Likewise.
5479         * m4/sha1.m4 (gl_SHA1): Likewise.
5480
5481 2008-01-31  Jim Meyering  <meyering@redhat.com>
5482
5483         Use "sizeof VAR", rather than a literal "4".
5484         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5485         * lib/md4.c (md4_read_ctx): Likewise.
5486         * lib/sha1.c (sha1_read_ctx): Likewise.
5487
5488 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5489
5490         * tests/test-sha1.c: New file, based on test-md5.c.
5491
5492         * modules/crypto/sha1-tests: New file.
5493
5494 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5495
5496         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5497
5498 2008-01-31  Jim Meyering  <meyering@redhat.com>
5499
5500         Prefer "sizeof v" over the equivalent "4".
5501         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5502         * lib/md5.c (set_uint32): Likewise.
5503         * lib/sha1.c (set_uint32): Likewise.
5504
5505 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5506
5507         * lib/sha1.c (set_uint32): Mark function as static.
5508
5509 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5510
5511         md2: clarify comments to say that alignment is not required.
5512         * lib/md2.h: Remove warning about alignment in comment.
5513         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5514         never been required.
5515
5516 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5517
5518         md4: adapt alignment constraint fix from sha1.
5519         * lib/md4.c (set_uint32): New function, from sha1.c
5520         (md4_read_ctx): Use it.
5521         (md4_finish_ctx): Doc fix.
5522         * lib/md4.h: Doc fix.
5523
5524 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5525
5526         md5: adapt alignment constraint fix from sha1.
5527         * lib/md5.c (set_uint32): New function, from sha1.c
5528         (md5_read_ctx): Use it.
5529         (md5_finish_ctx): Doc fix.
5530         * lib/md5.h: Doc fix.
5531
5532 2008-01-30  Peter Palfrader  <weasel@debian.org>
5533
5534         sha1: remove the result buffer alignment constraint
5535         * lib/sha1.c (set_uint32): New function.
5536         (sha1_read_ctx): Rewrite to remove the result buffer alignment
5537         constraint.
5538         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5539         * lib/sha1.h: Likewise.
5540
5541 2008-01-30  Andreas Schwab  <schwab@suse.de>
5542             Bruno Haible  <bruno@clisp.org>
5543
5544         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5545         correct definition of LDBL_MIN_EXP.
5546
5547 2008-01-30  Karl Berry  <karl@gnu.org>
5548
5549         * config/srclist-update: try to preserve x bit on updates.
5550         * config/srclistvars.sh: update for karl.
5551
5552 2008-01-29  Jim Meyering  <meyering@redhat.com>
5553
5554         vasnprintf.c: Avoid warning about unused label
5555         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5556         "overflow" label definition and associated code with the
5557         same cpp condition that guards the sole use of that label.
5558
5559 2008-01-26  Bruno Haible  <bruno@clisp.org>
5560
5561         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5562         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
5563         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
5564         * lib/isnanl-nolibm.h (isnanl): Likewise.
5565         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5566
5567 2008-01-26  Bruno Haible  <bruno@clisp.org>
5568
5569         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
5570         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
5571
5572 2008-01-26  Bruno Haible  <bruno@clisp.org>
5573
5574         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
5575         GCC >= 4.0 built-in.
5576         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
5577
5578 2008-01-26  Bruno Haible  <bruno@clisp.org>
5579
5580         Rename isnan, applicable to 'double' only, to isnand.
5581         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
5582         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
5583         (configure.ac): Update.
5584         (Include): Replace "isnan.h" with "isnand.h".
5585         * m4/isnand.m4: Renamed from m4/isnan.m4.
5586         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
5587         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
5588         instead of isnan.c.
5589         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
5590         instead of HAVE_ISNAN_IN_LIBC.
5591         (isnand): Renamed from isnan.
5592         * lib/isnand.c: New file.
5593         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
5594         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
5595         (Makefile.am): Update.
5596         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
5597         Include isnand.h instead of isnan.h.
5598         (main): Test isnand instead of isnan.
5599         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
5600         isnan-nolibm.
5601         * modules/frexp (Depends-on): Likewise.
5602         * modules/frexp-tests (Depends-on): Likewise.
5603         * modules/frexp-nolibm (Depends-on): Likewise.
5604         * modules/frexp-nolibm-tests (Depends-on): Likewise.
5605         * modules/isfinite (Depends-on): Likewise.
5606         * modules/round-tests (Depends-on): Likewise.
5607         * modules/signbit (Depends-on): Likewise.
5608         * modules/signbit-tests (Depends-on): Likewise.
5609         * modules/snprintf-posix (Depends-on): Likewise.
5610         * modules/sprintf-posix (Depends-on): Likewise.
5611         * modules/trunc-tests (Depends-on): Likewise.
5612         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5613         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5614         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5615         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5616         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5617         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5618         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5619         * modules/vasnprintf-posix (Depends-on): Likewise.
5620         * modules/vasprintf-posix (Depends-on): Likewise.
5621         * modules/vfprintf-posix (Depends-on): Likewise.
5622         * modules/vsnprintf-posix (Depends-on): Likewise.
5623         * modules/vsprintf-posix (Depends-on): Likewise.
5624         * lib/frexp.c: Include isnand.h instead of isnan.h.
5625         (ISNAN): Set to isnand instead of isnan.
5626         * lib/isfinite.c: Include isnand.h instead of isnan.h.
5627         (gl_isfinited): Use isnand instead of isnan.
5628         * lib/signbitd.c: Include isnand.h instead of isnan.h.
5629         (gl_signbitd): Use isnand instead of isnan.
5630         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
5631         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
5632         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
5633         (main): Use isnand instead of isnan.
5634         * tests/test-round1.c: Include isnand.h.
5635         (main): Use isnand instead of isnan.
5636         * tests/test-round2.c: Include isnand.h instead of isnan.h.
5637         (ISNAN): Set to isnand instead of isnan.
5638         * tests/test-trunc1.c: Include isnand.h.
5639         (main): Use isnand instead of isnan.
5640         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
5641         (equal): Use isnand instead of isnan.
5642         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
5643         isnand-nolibm.
5644         * NEWS: Mention the change.
5645
5646 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5647             Bruno Haible  <bruno@clisp.org>
5648
5649         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
5650         the GCC builtins for signbits are present and set
5651         REPLACE_SIGNBIT_USING_GCC if so.
5652         * lib/math.in.h (signbit): Define using GCC builtins if
5653         REPLACE_SIGNBIT_USING_GCC is set.
5654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5655         REPLACE_SIGNBIT_USING_GCC.
5656         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
5657
5658 2008-01-25  Jim Meyering  <meyering@redhat.com>
5659
5660         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
5661         * lib/poll.c: Include <config.h>, not "config.h".
5662         * tests/test-getaddrinfo.c: Likewise.
5663
5664 2008-01-25  Simon Josefsson  <simon@josefsson.org>
5665
5666         * modules/sockets-tests: New file.
5667
5668 2008-01-24  Simon Josefsson  <simon@josefsson.org>
5669
5670         * modules/sockets: New module, can be used to call WSA_Startup and
5671         WSA_Cleanup when needed.
5672
5673         * lib/sockets.h, lib/sockets.c: New files.
5674
5675         * m4/sockets.m4: New file.
5676
5677         * tests/test-sockets.c: New file.
5678
5679 2008-01-19  Bruno Haible  <bruno@clisp.org>
5680
5681         * doc/posix-headers: Renamed from doc/headers.
5682         * doc/posix-functions: Renamed from doc/functions.
5683         * doc/gnulib.texi: Update.
5684
5685 2008-01-19  Bruno Haible  <bruno@clisp.org>
5686
5687         * doc/glibc-functions/strcasestr.texi: Include contents of
5688         doc/functions/strcasestr.texi, fixing the list of platforms.
5689         * doc/functions/strcasestr.texi: Remove file.
5690
5691 2008-01-19  Bruno Haible  <bruno@clisp.org>
5692
5693         * doc/glibc-functions/memmem.texi: Include contents of
5694         doc/functions/memmem.texi.
5695         * doc/functions/memmem.texi: Remove file.
5696
5697 2008-01-18  Bruno Haible  <bruno@clisp.org>
5698
5699         * doc/glibc-functions/*.texi: New files.
5700         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
5701         to use the new files.
5702
5703 2008-01-17  Bruno Haible  <bruno@clisp.org>
5704
5705         * tests/test-gethostname.c (main): Fix printf statement.
5706
5707 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5708
5709         * modules/gethostname-tests: New file.
5710
5711         * tests/test-gethostname.c: New file.
5712
5713 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5714
5715         * lib/gethostname.c: Include string.h unconditionally, strncpy is
5716         used by the UNAME case.  Reported by Bruno Haible
5717         <bruno@clisp.org>.
5718
5719 2008-01-17  Eric Blake  <ebb9@byu.net>
5720
5721         Convert c-strcasestr to be more efficient.
5722         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
5723         (Depends-on): Add c-strcase, remove malloca, strnlen.
5724         * tests/test-c-strcasestr.c (main): Enhance test.
5725         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
5726
5727 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5728
5729         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
5730         Use it in creating po/Makevars.
5731
5732 2008-01-15  Simon Josefsson  <simon@josefsson.org>
5733
5734         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
5735         Applications that requires it should initialize libgcrypt
5736         manually.
5737
5738 2008-01-16  Simon Josefsson  <simon@josefsson.org>
5739
5740         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
5741
5742 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5743
5744         Fix problem with getdate on mingw32 reported by Simon Josefsson
5745         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5746         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
5747         tzname", when deciding whether to declare tzname.
5748         * lib/strftime.c (tzname): Likewise.
5749
5750 2008-01-15  Bruno Haible  <bruno@clisp.org>
5751
5752         Work around a MacOS X 10.5 bug in frexpl().
5753         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
5754         * doc/functions/frexpl.texi: Document the bug.
5755         Reported by Elias Pipping <pipping@gentoo.org>.
5756
5757 2008-01-14  Eric Blake  <ebb9@byu.net>
5758
5759         Touch up previous patch.
5760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
5761         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
5762
5763         Convert strcasestr module to use Two-Way algorithm.
5764         * modules/strcasestr-simple: New module, based on the old
5765         strcasestr, but with Two-Way rather than KMP.
5766         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
5767         * lib/string.in.h (rpl_strcasestr): Declare.
5768         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
5769         performance.
5770         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
5771         * modules/string (Makefile.am): Support strcasestr.
5772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
5773         * modules/strcasestr-tests (Depends-on): Check for alarm.
5774         * tests/test-strcasestr.c: Augment test.
5775         * lib/str-two-way.h: Clean up stray macro.
5776         * NEWS: Document new module.
5777         * MODULES.html.sh (string handling): Likewise.
5778         * doc/functions/strcasestr.texi: New file.
5779         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
5780         here, since it is not a POSIX function.
5781
5782 2008-01-14  Colin Watson  <cjwatson@debian.org>
5783             Bruno Haible  <bruno@clisp.org>
5784
5785         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
5786         works fine; if not, set REPLACE_STRSIGNAL.
5787         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
5788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5789         REPLACE_STRSIGNAL.
5790         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
5791         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
5792         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
5793
5794 2008-01-14  Bruno Haible  <bruno@clisp.org>
5795
5796         * modules/strsignal (Include): Change to <string.h>.
5797
5798 2008-01-14  Colin Watson  <cjwatson@debian.org>
5799
5800         * modules/argp (Notice): Add a notice recommending to change
5801         XGETTEXT_OPTIONS.
5802         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
5803
5804 2008-01-13  Colin Watson  <cjwatson@debian.org>
5805
5806         * modules/strsignal-tests: New file.
5807         * tests/test-strsignal.c: New file.
5808
5809         * lib/strsignal.c: New file, from glibc with modifications.
5810         * lib/siglist.h: New file, from glibc with modifications.
5811         * lib/string.in.h (strsignal): New declaration.
5812         * m4/strsignal.m4: New file.
5813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5814         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
5815         * modules/strsignal: New file.
5816         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
5817         HAVE_DECL_STRSIGNAL.
5818
5819 2008-01-13  Bruno Haible  <bruno@clisp.org>
5820
5821         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
5822         locale encoding is not ASCII. Needed for OpenBSD 4.0.
5823         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5824         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5825
5826 2008-01-13  Bruno Haible  <bruno@clisp.org>
5827
5828         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
5829         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
5830         * lib/argp.h (__attribute__): Likewise.
5831         * lib/c-stack.c (__attribute__): Likewise.
5832         * lib/error.h (__attribute__): Likewise.
5833         * lib/fts.c (__attribute__): Likewise.
5834         * lib/openat.h (__attribute__): Likewise.
5835         * lib/stdio.in.h (__attribute__): Likewise.
5836         * lib/string.in.h (__attribute__): Likewise.
5837         * lib/utimens.c (__attribute__): Likewise.
5838         * lib/vasnprintf.h (__attribute__): Likewise.
5839         * lib/xalloc.h (__attribute__): Likewise.
5840         * lib/xprintf.h (__attribute__): Likewise.
5841         * lib/xstrtol.h (__attribute__): Likewise.
5842         * lib/xvasprintf.h (__attribute__): Likewise.
5843
5844 2008-01-12  Bruno Haible  <bruno@clisp.org>
5845
5846         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
5847         * doc/glibc-headers/a.out.texi: New file.
5848         * doc/glibc-headers/aliases.texi: New file.
5849         * doc/glibc-headers/alloca.texi: New file.
5850         * doc/glibc-headers/ar.texi: New file.
5851         * doc/glibc-headers/argp.texi: New file.
5852         * doc/glibc-headers/argz.texi: New file.
5853         * doc/glibc-headers/byteswap.texi: New file.
5854         * doc/glibc-headers/crypt.texi: New file.
5855         * doc/glibc-headers/endian.texi: New file.
5856         * doc/glibc-headers/envz.texi: New file.
5857         * doc/glibc-headers/err.texi: New file.
5858         * doc/glibc-headers/error.texi: New file.
5859         * doc/glibc-headers/execinfo.texi: New file.
5860         * doc/glibc-headers/fpu_control.texi: New file.
5861         * doc/glibc-headers/fstab.texi: New file.
5862         * doc/glibc-headers/fts.texi: New file.
5863         * doc/glibc-headers/getopt.texi: New file.
5864         * doc/glibc-headers/ieee754.texi: New file.
5865         * doc/glibc-headers/ifaddrs.texi: New file.
5866         * doc/glibc-headers/libintl.texi: New file.
5867         * doc/glibc-headers/mcheck.texi: New file.
5868         * doc/glibc-headers/mntent.texi: New file.
5869         * doc/glibc-headers/obstack.texi: New file.
5870         * doc/glibc-headers/paths.texi: New file.
5871         * doc/glibc-headers/printf.texi: New file.
5872         * doc/glibc-headers/pty.texi: New file.
5873         * doc/glibc-headers/resolv.texi: New file.
5874         * doc/glibc-headers/shadow.texi: New file.
5875         * doc/glibc-headers/sysexits.texi: New file.
5876         * doc/glibc-headers/ttyent.texi: New file.
5877
5878 2008-01-12  Jim Meyering  <meyering@redhat.com>
5879
5880         announce-gen: emit Gnulib's git-based version string.
5881         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
5882         New option --gnulib-version=V, where V is expected to be
5883         the output of running git describe in the gnulib directory.
5884         (get_tool_versions): Request feedback on xdelta.  I suspect it's
5885         not useful, and plan to stop publishing an xdelta file with each
5886         coreutils release.
5887
5888         * build-aux/announce-gen: Also check for lzma-compressed files.
5889
5890 2008-01-11  Bruno Haible  <bruno@clisp.org>
5891
5892         * tests/test-memmem.c (main): Increase maximum allowed time.
5893         * tests/test-strstr.c (main): Likewise.
5894
5895 2008-01-11  Bruno Haible  <bruno@clisp.org>
5896
5897         * doc/functions/memmem.texi: Add more precisions about platforms.
5898         * doc/functions/strstr.texi: Likewise.
5899
5900 2008-01-10  Eric Blake  <ebb9@byu.net>
5901
5902         * m4/strstr.m4: Delete cruft from copy-n-paste.
5903         Reported by Bruno Haible.
5904
5905 2008-01-10  Bruno Haible  <bruno@clisp.org>
5906
5907         Make c-strstr rely on strstr.
5908         * lib/c-strstr.c: Don't include str-kmp.h.
5909         (c_strstr): Define in terms of strstr.
5910         * modules/c-strstr (Files): Remove lib/str-kmp.h.
5911         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
5912
5913 2008-01-10  Bruno Haible  <bruno@clisp.org>
5914
5915         * doc/gnulib.texi (String Functions in C Locale): New section.
5916         * doc/c-ctype.texi: New file.
5917         * doc/c-strcase.texi: New file.
5918         * doc/c-strcaseeq.texi: New file.
5919         * doc/c-strcasestr.texi: New file.
5920         * doc/c-strstr.texi: New file.
5921         * doc/c-strtod.texi: New file.
5922         * doc/c-strtold.texi: New file.
5923
5924 2008-01-10  Eric Blake  <ebb9@byu.net>
5925
5926         * lib/relocatable.h: Fix a comment.
5927
5928 2008-01-10  Eric Blake  <ebb9@byu.net>
5929
5930         Share two-way algorithm.
5931         * lib/str-two-way.h: New file, merged from...
5932         * lib/memmem.c: ...here...
5933         * lib/strstr.c: ...and here.
5934         * modules/memmem (Files): Use it.
5935         * modules/strstr (Files): Likewise.
5936
5937         Avoid quadratic strstr implementations.
5938         * lib/strstr.c: New file.
5939         * m4/strstr.m4: Likewise.
5940         * modules/strstr: Likewise.
5941         * modules/strstr-tests: Likewise.
5942         * tests/test-strstr.c: Likewise.
5943         * lib/string.in.h (rpl_strstr): Declare.
5944         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
5945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
5946         * modules/string (Makefile.am): Likewise.
5947         * MODULES.html.sh (string handling): Mention new module.
5948         * doc/functions/strstr.texi (strstr): Document the bug.
5949
5950 2008-01-10  Bruno Haible  <bruno@clisp.org>
5951
5952         * lib/relocatable.h (relocate): State whether result is freshly
5953         allocated or not.
5954         * lib/relocatable.c (relocate): Return a freshly allocated string
5955         instead of a pointer to a privately held string.
5956         Reported by Sylvain Beucler <beuc@gnu.org>.
5957
5958 2008-01-10  Colin Watson  <cjwatson@debian.org>
5959
5960         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
5961         s/S_ISNLK/S_ISLNK/.
5962
5963 2008-01-09  Bruno Haible  <bruno@clisp.org>
5964
5965         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
5966         and other files.
5967         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
5968         if it's only a guess.
5969         * modules/memmem: Simplify by depending on memmem-simple.
5970
5971 2008-01-09  Bruno Haible  <bruno@clisp.org>
5972
5973         Work around OpenBSD 4.0 tdelete() bug.
5974         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
5975         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
5976         macros and don't redefine the enum values.
5977         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
5978         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
5979         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
5980
5981 2008-01-09  Bruno Haible  <bruno@clisp.org>
5982
5983         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
5984         (main): Don't perform the tests if setlocale did not install a UTF-8
5985         locale. Needed on OpenBSD 4.0.
5986         * modules/wcwidth-tests (Depends-on): Add localcharset.
5987
5988 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5989
5990         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
5991         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
5992         * NEWS: announce this.
5993         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
5994
5995 2008-01-09  Simon Josefsson  <simon@josefsson.org>
5996         and Eric Blake  <ebb9@byu.net>
5997
5998         Add memmem-simple module.
5999         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
6000         (gl_FUNC_MEMMEM): Separate performance from presence checks.
6001         * modules/memmem-simple: New file.
6002         * modules/memmem (Description): Tweak.
6003         * MODULES.html.sh (string handling): Mention new module.
6004         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
6005         addressed by memmem-simple.
6006         * NEWS: Document the difference.
6007
6008 2008-01-09  Eric Blake  <ebb9@byu.net>
6009
6010         Give gcc some memmem optimization hints.
6011         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
6012         (strcasestr): Declare as pure.
6013         * modules/memmem (Maintainer): Claim my implementation.
6014
6015 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6016
6017         Support AIX 6.1 and higher.
6018         * build-aux/config.libpath: Likewise.
6019         * build-aux/config.rpath: Likewise.
6020
6021 2008-01-08  Jim Meyering  <meyering@redhat.com>
6022             Bruno Haible  <bruno@clisp.org>
6023
6024         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
6025         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
6026         Reported by Peter Fales in
6027         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
6028
6029 2008-01-08  Bruno Haible  <bruno@clisp.org>
6030
6031         * modules/unictype/category-of (Depends-on): Add
6032         unictype/category-none.
6033         * modules/unictype/category-and-tests (Depends-on): Add
6034         unictype/category-{L,N,Lu,Nd}.
6035         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
6036         * modules/unictype/category-or-tests (Depends-on): Add
6037         unictype/category-{L,N}.
6038         * modules/unictype/category-name-tests (Depends-on): Add
6039         unictype/category-{Z,Nl}.
6040         Reported by Simon Josefsson.
6041
6042 2008-01-08  Bruno Haible  <bruno@clisp.org>
6043
6044         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
6045         convention better.
6046         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
6047         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
6048         Reported by Peter Miller <millerp@canb.auug.org.au>.
6049
6050 2008-01-08  Eric Blake  <ebb9@byu.net>
6051
6052         Rewrite memmem to guarantee linear complexity without malloc.
6053         * lib/memmem.c (memmem): Use Two-Way rather than
6054         Knuth-Morris-Pratt, to allow O(1) space usage.
6055         (critical_factorization, two_way_short_needle)
6056         (two_way_long_needle): New functions.
6057         (knuth_morris_pratt): Delete.
6058         * modules/memmem (Depends-on): No longer need malloca or stdbool.
6059         Add stdint.
6060         * tests/test-memmem.c (main): Add tests for periodic needle and
6061         sublinear performance.
6062         * doc/functions/memmem.texi (memmem): Document other deficiencies
6063         in cygwin and older glibc.
6064
6065 2008-01-08  Bruno Haible  <bruno@clisp.org>
6066
6067         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
6068         augmentation.
6069
6070 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
6071
6072         Add a configure time option: --disable-acl.
6073         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
6074         AC_ARG_ENABLE(acl).
6075
6076 2008-01-06  Simon Josefsson  <simon@josefsson.org>
6077
6078         * tests/test-localename.c: Don't include obsolete "setenv.h".
6079
6080         * modules/localename-tests (Depends-on): Need unsetenv.
6081
6082 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6083
6084         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
6085
6086 2008-01-06  Colin Watson  <cjwatson@debian.org>
6087
6088         * users.txt: Add man-db.
6089
6090 2008-01-07  Bruno Haible  <bruno@clisp.org>
6091
6092         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
6093         previous section name.
6094
6095 2008-01-07  Bruno Haible  <bruno@clisp.org>
6096
6097         * lib/progname.c (set_program_name): Don't strip off a leading
6098         "lt-" prefix outside a .libs directory.
6099         Suggested by Paul Eggert.
6100
6101 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
6102             Bruno Haible  <bruno@clisp.org>
6103
6104         Improve memory cleanup in 'relocatable' module.
6105         * lib/relocatable.h (compute_curr_prefix): Change return type to
6106         'char *'.
6107         * lib/relocatable.c (compute_curr_prefix): Change return type to
6108         'char *'. Free curr_installdir after use.
6109         (relocate): Free curr_prefix_better after use.
6110         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
6111
6112 2008-01-01  Bruno Haible  <bruno@clisp.org>
6113
6114         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
6115         failure on older glibc systems.
6116         Reported by Peter Fales <psfales@alcatel-lucent.com>.
6117
6118 2008-01-05  Eric Blake  <ebb9@byu.net>
6119
6120         Avoid quadratic system memmem.
6121         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
6122         Reported by Ralf Wildenhues.
6123
6124         Fix memmem test for mingw.
6125         * modules/memmem-tests (configure.ac): Check for alarm.
6126         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
6127         it.
6128         * doc/functions/memmem.texi: New file.
6129         * doc/gnulib.texi (Function Substitutes): Add memmem.
6130         Reported by Bruno Haible.
6131
6132 2008-01-04  Bruno Haible  <bruno@clisp.org>
6133
6134         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
6135         Require gl_HEADER_STRINGS_H_DEFAULTS, not
6136         gl_HEADER_STRING_H_DEFAULTS.
6137
6138 2008-01-04  Eric Blake  <ebb9@byu.net>
6139
6140         Shorten duration of memmem test.
6141         * tests/test-memmem.c (main): Use alarm to declare failure if test
6142         is taking too long.
6143         Reported by Ralf Wildenhues.
6144
6145 2007-12-21  Simon Josefsson  <simon@josefsson.org>
6146
6147         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
6148         string, needed by strerror.
6149
6150 2008-01-03  Colin Watson  <cjwatson@debian.org>
6151             Bruno Haible  <bruno@clisp.org>
6152
6153         * doc/gnulib-tool.texi (Localization): New section.
6154
6155 2008-01-02  Bruno Haible  <bruno@clisp.org>
6156
6157         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
6158         variables to 'unsigned char *' type.
6159         Reported by Paul Eggert.
6160
6161 2008-01-02  Jim Meyering  <jim@meyering.net>
6162
6163         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
6164
6165 2007-12-31  Jim Meyering  <jim@meyering.net>
6166
6167         Avoid use of private FTS type name.
6168         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
6169
6170 2007-12-30  Karl Berry  <karl@gnu.org>
6171
6172         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
6173         work around defect in Texinfo and/or the standalone Info browser.
6174
6175 2007-12-30  Bruno Haible  <bruno@clisp.org>
6176
6177         Unify 5 copies of the KMP code.
6178         * lib/str-kmp.h: New file.
6179         * lib/c-strcasestr.c: Include str-kmp.h.
6180         (knuth_morris_pratt): Remove function.
6181         (c_strcasestr): Update.
6182         * lib/c-strstr.c: Include str-kmp.h.
6183         (knuth_morris_pratt): Remove function.
6184         (c_strcasestr): Update.
6185         * lib/mbscasestr.c: Include str-kmp.h.
6186         (knuth_morris_pratt_unibyte): Remove function.
6187         * lib/mbsstr.c: Include str-kmp.h.
6188         (knuth_morris_pratt_unibyte): Remove function.
6189         * lib/strcasestr.c: Include str-kmp.h.
6190         (knuth_morris_pratt): Remove function.
6191         (strcasestr): Update.
6192         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
6193         * modules/c-strstr (Files): Likewise.
6194         * modules/mbscasestr (Files): Likewise.
6195         * modules/mbsstr (Files): Likewise.
6196         * modules/strcasestr (Files): Likewise.
6197         Suggested by Paul Eggert.
6198
6199 2007-12-30  Bruno Haible  <bruno@clisp.org>
6200
6201         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
6202         defined.
6203
6204 2007-12-30  Bruno Haible  <bruno@clisp.org>
6205
6206         * lib/xmalloca.h: Include xalloc.h.
6207         (xnmalloca): New macro.
6208
6209 2007-12-30  Bruno Haible  <bruno@clisp.org>
6210
6211         * lib/malloca.h (nmalloca): New macro.
6212         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
6213         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
6214         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
6215         knuth_morris_pratt_multibyte): Likewise.
6216         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
6217         knuth_morris_pratt_multibyte): Likewise.
6218         * lib/memmem.c (knuth_morris_pratt): Likewise.
6219         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
6220
6221 2007-12-25  Bruno Haible  <bruno@clisp.org>
6222
6223         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
6224         * lib/glob.c: Don't include openat.h.
6225         (link_exists2_p): Add back the code that deals with the
6226         !GLOB_ALTDIRFUNC case.
6227         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
6228         let it do the filename concatenation.
6229         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
6230         * modules/glob (Depends-on): Remove openat.
6231
6232 2007-12-31  Bruno Haible  <bruno@clisp.org>
6233
6234         * modules/dirfd (License): Change to LGPLv2+.
6235         Approved by Jim Meyering.
6236
6237 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6238
6239         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
6240         when multiplying M by sizeof (size_t).
6241
6242 2007-12-10  Martin Lambers  <marlam@marlam.de>
6243
6244         Override getpagesize on mingw.
6245         * lib/getpagesize.c: New file.
6246         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
6247         * modules/getpagesize (Files): Add lib/getpagesize.c.
6248         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
6249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6250         REPLACE_GETPAGESIZE.
6251         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
6252
6253 2007-12-25  Bruno Haible  <bruno@clisp.org>
6254
6255         * modules/localcharset (Notice): New field.
6256         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
6257         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6258
6259 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6260             Bruno Haible  <bruno@clisp.org>
6261
6262         Avoid using the syntax symbol() in formatted documentation.
6263         * MODULES.html.sh (func_module): When replacing symbol() with a
6264         hyperlink, remove the parentheses. Show an error if some remain.
6265         Recognize and render the '...' syntax.
6266         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
6267         Rework. Add paragraph about GCC's inlining.
6268         * doc/alloca.texi: Likewise.
6269         * doc/error.texi: Remove parentheses from symbol reference.
6270         * doc/gnulib-intro.texi: Likewise.
6271         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
6272         * modules/fnmatch (Description): Reword to say "the ... function".
6273         * modules/full-read (Description): Likewise.
6274         * modules/full-write (Description): Likewise.
6275         * modules/safe-read (Description): Likewise.
6276         * modules/safe-write (Description): Likewise.
6277         * modules/strchrnul (Description): Likewise.
6278         * modules/trim (Description): Likewise.
6279         * modules/error (Description): Remove parentheses from symbol
6280         references.
6281         * modules/verror (Description): Likewise.
6282         Reported by Karl Berry.
6283
6284 2007-12-25  Bruno Haible  <bruno@clisp.org>
6285
6286         Fixup after 2007-10-16 commit.
6287         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
6288
6289 2007-12-24  Bruno Haible  <bruno@clisp.org>
6290
6291         Make --enable-relocatable work with DESTDIR.
6292         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
6293         to compute installdir from destprog.
6294         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
6295         also set the RELOC_DESTDIR variable.
6296         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6297
6298 2007-12-24  Bruno Haible  <bruno@clisp.org>
6299
6300         Fix link error due to xalloc_die().
6301         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
6302         of xreadlink.
6303         * lib/relocwrapper.c: Update comments.
6304         * build-aux/install-reloc: Remove xreadlink.c from file list.
6305         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
6306         xreadlink.c.
6307         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6308
6309 2007-12-24  Bruno Haible  <bruno@clisp.org>
6310
6311         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
6312         * lib/setenv.h: Remove file.
6313         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
6314         lib/setenv.h.
6315         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
6316         (Depends-on): Add stdlib.
6317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
6318         gl_FUNC_UNSETENV.
6319         (Include): Replace setenv.h with <stdlib.h>.
6320         * modules/unsetenv: New file.
6321         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
6322         * lib/unsetenv.c: Include <stdlib.h> first.
6323         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
6324         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
6325         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
6326         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
6327         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
6328         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
6330         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
6331         * doc/functions/unsetenv.texi: Update.
6332         * modules/xsetenv (Depends-on): Add unsetenv.
6333         * modules/getdate (Depends-on): Likewise.
6334         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
6335         * lib/xsetenv.c: Don't include setenv.h.
6336         * lib/getdate.y: Likewise.
6337         * lib/relocwrapper.c: Likewise.
6338         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
6339         (Depends-on): Add stdlib.
6340         * NEWS: Mention the changes.
6341         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
6342
6343 2007-12-23  Bruno Haible  <bruno@clisp.org>
6344
6345         * lib/memmem.c (memmem): Use lowercase variable names. Tab
6346         indentation.
6347
6348 2007-12-23  Bruno Haible  <bruno@clisp.org>
6349
6350         * lib/c-strcasestr.c: Add more comments.
6351         * lib/c-strstr.c: Likewise.
6352         * lib/mbscasestr.c: Likewise.
6353         * lib/mbsstr.c: Likewise.
6354         * lib/strcasestr.c: Likewise.
6355         * lib/memmem.c: Likewise.
6356
6357 2007-12-23  Bruno Haible  <bruno@clisp.org>
6358
6359         * tests/test-memmem.c: Include <string.h> first.
6360
6361 2007-12-22  Bruno Haible  <bruno@clisp.org>
6362
6363         * gnulib-tool (func_create_testdir): Change $auxdir while generating
6364         the contents of $testsbase.
6365         Reported by Ralf Wildenhues.
6366
6367 2007-12-22  Bruno Haible  <bruno@clisp.org>
6368
6369         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
6370         two variables local_ldadd_before, local_ldadd_last.
6371
6372 2007-12-20  Eric Blake  <ebb9@byu.net>
6373
6374         Work around circular library issue when cross-compiling.
6375         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
6376         that progname.o does not need to pull in rpl_memcmp.
6377
6378 2007-12-19  Eric Blake  <ebb9@byu.net>
6379
6380         Fix memmem to avoid O(n^2) worst-case complexity.
6381         * lib/memmem.c (knuth_morris_pratt): New function.
6382         (memmem): Use it if first few naive iterations fail.
6383         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
6384         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
6385         * modules/memchr (License): Likewise.
6386         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
6387         malloca.
6388         * tests/test-memmem.c: Rewrite, borrowing ideas from
6389         test-mbsstr1.c; the old version wouldn't even compile!
6390         * modules/memmem-tests: New file.
6391         * lib/string.in.h (rpl_memmem): Add declaration.
6392         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
6393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
6394         REPLACE_MEMMEM.
6395
6396 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6397
6398         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
6399         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
6400         before any system include files, and undef after them all.  This
6401         should fix a problem on VMS reported by John E. Malmberg in
6402         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
6403
6404 2007-12-17  Eric Blake  <ebb9@byu.net>
6405
6406         Revert addition of verify, for BSD/OS.
6407         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
6408         can't handle large files, for the sake of obsolete platforms.
6409         * modules/fseeko (Depends-on): Remove verify.
6410         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
6411         * doc/functions/ftello.texi (ftello): Likewise.
6412         * doc/functions/fgetpos.texi (fgetpos): Likewise.
6413         Reported by Larry Jones.
6414
6415 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
6416
6417         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
6418         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
6419
6420 2007-12-17  Jim Meyering  <meyering@redhat.com>
6421
6422         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6423         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6424         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6425         * modules/getcwd (Depends-on): Add openat.
6426         Reported by Petr Salinger.
6427
6428 2007-12-17  Bruno Haible  <bruno@clisp.org>
6429
6430         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6431         avoid a segmentation fault of the configure test on x86_64 systems.
6432
6433 2007-12-15  Jim Meyering  <meyering@redhat.com>
6434
6435         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6436
6437 2007-12-13  Eric Blake  <ebb9@byu.net>
6438
6439         Another fseek test.
6440         * tests/test-fseek.c (main): Also test ungetc handling.
6441         * tests/test-fseeko.c (main): Likewise.
6442         * modules/fseeko (Depends-on): Add verify.
6443         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6444         large.
6445         Reported by Larry Jones.
6446
6447         Fix fseeko on mingw.
6448         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6449         seek.
6450
6451         Beef up fseek tests.
6452         * tests/test-fseek.c (main): Also test eof handling.
6453         * tests/test-fseeko.c (main): Likewise.
6454         Reported by Larry Jones.
6455
6456 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6457
6458         Fix fseeko on BSD-based platforms.
6459         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6460         successful seek.
6461
6462 2007-12-12  Eric Blake  <ebb9@byu.net>
6463
6464         Allow circular dependency of separate libtests.a
6465         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6466         when use_libtests.
6467
6468 2007-12-11  Eric Blake  <ebb9@byu.net>
6469
6470         Fix bug with -0.0L in previous patch.
6471         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6472         * tests/test-isnan.c (main): Also test on zeroes.
6473         * tests/test-isnanf.c (main): Likewise.
6474         * tests/test-isnanl.h (main): Likewise.
6475
6476         Detect pseudo-denormals on x86 even when cross-compiling.
6477         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6478         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6479         invalid bit patterns that happen to satisfy ==.
6480
6481         Avoid link failures with separate libtests.a.
6482         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6483         last, to satisfy circular dependencies.
6484
6485 2007-12-11  Eric Blake  <ebb9@byu.net>
6486         and Bruno Haible  <bruno@clisp.org>
6487
6488         Fix OpenBSD 4.0 <float.h> handling of long double.
6489         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6490         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6491         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6492
6493 2007-12-11  Jim Meyering  <meyering@redhat.com>
6494
6495         * users.txt: Add libvirt.
6496
6497         Support versions of autoconf prior to 2.59c.
6498         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6499         if it is not already defined.
6500
6501 2007-12-09  Bruno Haible  <bruno@clisp.org>
6502
6503         Let 'gnulib-tool --import' collect sources needed for the tests in
6504         tests/ rather than in lib/.
6505         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6506         argument. If true, add rules to generate libtests.a, and put libtests.a
6507         into $(LDADD). Consider source files in subdirectories and set
6508         uses_subdirs.
6509         (func_emit_initmacro_start, func_emit_initmacro_end,
6510         func_emit_initmacro_done): Pass all arguments explicitly.
6511         (func_import): Determine two module lists main_modules,
6512         testsrelated_modules. Determine use_libtests. Determine two variables
6513         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6514         instead of just sed_transform_lib_file. Determine two variables
6515         main_files and testsrelated_files. Compute 'files' as the union of
6516         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6517         func_add_or_update. In the generated gnulib-comp.m4, collect the
6518         object files for tests/ in different variables than those for lib/.
6519         Substitute LIBTESTS_LIBDEPS.
6520         (func_create_testdir): Combine the uses_subdirs results from
6521         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
6522
6523 2007-12-09  Bruno Haible  <bruno@clisp.org>
6524
6525         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
6526         the build-aux directory.
6527
6528 2007-12-09  Bruno Haible  <bruno@clisp.org>
6529
6530         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
6531         introduced on 2006-09-09.
6532
6533 2007-12-07  Jim Meyering  <meyering@redhat.com>
6534
6535         Let these macros work also with autoconf-2.59.
6536         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
6537         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
6538         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6539
6540 2007-12-06  Jim Meyering  <meyering@redhat.com>
6541
6542         Avoid a configure-time syntax error in gl_FUNC_ACL.
6543         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6544         function in each branch, before testing the cache variable.
6545
6546 2007-12-04  Eric Blake  <ebb9@byu.net>
6547
6548         Make scripts executable.
6549         * build-aux/config.guess: Add execute permissions.
6550         * build-aux/config.sub: Likewise.
6551         * build-aux/gendocs.sh: Likewise.
6552
6553         Fix frexp on mingw.
6554         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6555         cross-compiling.
6556         * doc/functions/frexp.texi (frexp): Document the bug.
6557
6558         Make cygwin fseeko check more reliable.
6559         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
6560         version numbers, rather than unrelated feature check.
6561         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
6562         * doc/functions/ftello.texi (ftello): Likewise.
6563         Reported by Bruno Haible.
6564
6565         * m4/strerror.m4: Bump version number.
6566
6567 2007-12-03  Bruno Haible  <bruno@clisp.org>
6568
6569         * doc/functions/mprotect.texi: Mention the mingw problem.
6570
6571 2007-12-03  Eric Blake  <ebb9@byu.net>
6572
6573         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
6574         REPLACE_STRERROR is initialized before this macro.
6575
6576 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6577
6578         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
6579         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
6580         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
6581         put -lsec in even for programs other than 'ls'.  This fixes a problem
6582         for gettext reported by Bruno Haible in
6583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
6584         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
6585         Add support for Solaris 10.  This isn't efficient, but should get the
6586         job done for now.
6587
6588 2007-12-03  James Youngman  <jay@gnu.org>
6589
6590         * doc/regexprops-generic.texi: change "an close-group" to "a
6591         close-group" and "illegal" to "not allowed".
6592
6593 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6594
6595         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
6596         pr_byname.h. Needed for the rare case when the maintainer has done
6597         "make maintainer-clean" in the source directory and then attempts a
6598         build outside the source directory.
6599         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
6600         scripts_byname.h.
6601
6602 2007-12-02  Martin Lambers <marlam@marlam.de>
6603             Bruno Haible  <bruno@clisp.org>
6604
6605         * lib/getpagesize.h: Remove file.
6606         * lib/unistd.in.h: Include declaration of getpagesize here.
6607         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
6608         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
6609         HAVE_SYS_PARAM_H.
6610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
6611         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6612         * modules/getpagesize (Files): Remove lib/getpagesize.h.
6613         (Depends-on): Add unistd.
6614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6615         (Include): Use <unistd.h> instead of getpagesize.h.
6616         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
6617         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6618         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
6619         gl_GETPAGESIZE invocation, already handled by module dependency.
6620         * lib/pagealign_alloc.c: Don't include getpagesize.h.
6621
6622 2007-12-02  Bruno Haible  <bruno@clisp.org>
6623
6624         * modules/strings-tests: New file.
6625         * tests/test-strings.c: New file.
6626
6627         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
6628         * lib/strings.in.h: New file.
6629         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
6630         * m4/strings_h.m4: New file.
6631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
6632         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
6633         * modules/strings: New file.
6634         * modules/string (Makefile.am): Update.
6635         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
6636         Reported by Karl Berry.
6637
6638 2007-12-01  Eric Blake  <ebb9@byu.net>
6639
6640         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
6641         accomodate fix in cygwin 1.5.25.
6642
6643 2007-12-01  Jim Meyering  <meyering@redhat.com>
6644
6645         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
6646         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6647         that would inhibit utf8-optimization of a regexp containing line-
6648         or buffer-anchors, e.g., `^', `$'.
6649
6650 2007-11-30  Bruno Haible  <bruno@clisp.org>
6651
6652         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
6653         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
6654         glthread_recursive_lock_init.
6655         * lib/lock.c (glthread_recursive_lock_init)
6656         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
6657         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6658
6659 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6660
6661         New function qset_acl, like set_acl but with syscall semantics.
6662         * lib/acl.h (qset_acl): New decl.
6663         * lib/acl.c (qset_acl): New function.
6664         (set_acl): Use new function.  Use more-consistent diagnostics.
6665
6666 2007-11-28  Jim Meyering  <meyering@redhat.com>
6667
6668         * modules/physmem (License): Change from GPL to LGPLv2+.
6669
6670 2007-11-26  Bruno Haible  <bruno@clisp.org>
6671
6672         * lib/vasnprintf.c (decode_long_double): Don't abort if the
6673         'long double' type has excess precision.
6674         Reported by Jim Meyering in
6675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
6676
6677 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6678
6679         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
6680         Sync from <http://gnu.org/licenses>.
6681         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
6682         with license text from same location.
6683         * doc/maintain.texi, doc/standards.texi:  Sync from
6684         <http://savannah.gnu.org/projects/gnustandards>.
6685
6686 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
6687         and Jim Meyering  <meyering@redhat.com>
6688
6689         Adjust getdate' grammar to accept a slightly more regular language.
6690         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
6691         Before, the former was rejected.
6692         * lib/getdate.y (digits_to_date_time): New function, factored
6693         out of ...
6694         (number): ...here.  Just call digits_to_date_time.
6695         (hybrid): New non-terminal to handle an <unsigned number,
6696         signed relative offset> sequence consistently.
6697
6698 2007-11-18  Jim Meyering  <meyering@redhat.com>
6699
6700         Pull my changes from coreutils:
6701         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
6702         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
6703         use of $gnulib_tool_option_extras, so that it's separated from the
6704         preceding argument.
6705
6706         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
6707         * build-aux/bootstrap (cp_mark_as_generated): Create any required
6708         parent destination directories before copying a file into place.
6709
6710 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6711
6712         bootstrap: work also with 4-argument variant of AC_INIT
6713         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
6714
6715 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6716
6717         Port test-getaddrinfo to Solaris.
6718         Problem reported by Bruno Haible in
6719         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
6720         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
6721         explanation of setting 'hints'.
6722         Don't reject an implementation merely because it returns EAI_SERVICE.
6723         (EAI_SERVICE): Define to 0 if not defined.
6724
6725 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6726
6727         The license of gnu-make and posix-shell is now "GPLed build tool".
6728         * modules/gnu-make (License): Likewise.
6729         * modules/posix-shell (License): Likewise.
6730
6731         New module posix-shell, for determining a POSIX shell
6732         or perhaps something that is close enough to a POSIX shell.
6733         * m4/posix-shell.m4: New file.
6734         * modules/posix-shell: New file.
6735
6736         * MODULES.html.sh: Mention new module.
6737
6738         New module gnu-make, for determining whether we're using GNU Make.
6739         * m4/gnu-make.m4: New file.
6740         * modules/gnu-make: New file.
6741         * MODULES.html.sh: Mention new module.
6742
6743 2007-11-14  Jim Meyering  <meyering@redhat.com>
6744
6745         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
6746         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
6747         use this macro to create a function _definition_.
6748         Remove useless "#undef ARGMATCH_DIE".
6749
6750 2007-11-14  Bruno Haible  <bruno@clisp.org>
6751
6752         * lib/config.charset: Update for OpenBSD 4.1.
6753         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
6754
6755 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6756
6757         Document 64-bit #if problems in stdint.texi.
6758         * doc/headers/stdint.texi (stdint.h): Mention problems with
6759         64-bit-#if, and how to work around them.
6760
6761         Don't insist on 'long long int' support in the preprocessor.  It
6762         breaks too many things.  For example, PRIdMAX still uses a 'long
6763         long int' format with the latest Sun compiler, even though
6764         HAVE_LONG_LONG_INT isn't defined due to that compiler's
6765         preprocessor problem.  This causes the latest coreutils to dump
6766         core on Solaris 10 sparc with the Sun C compiler.
6767         Instead, fix the 2007-10-16 problem in a different way, by evaluating
6768         the troublesome expressions at configure-time, not at #if-time.
6769         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
6770         preprocessor.
6771         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
6772         compile-time C checks, done at 'configure'-time.
6773         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
6774         * modules/inttypes (Makefile): Substitute the new symbols that
6775         gl_INTTYPES_H now generates.
6776         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
6777
6778 2007-11-12  Bruno Haible  <bruno@clisp.org>
6779
6780         Tests for Unicode character classification functions.
6781
6782         * modules/unictype/bidicategory-byname-tests: New file.
6783         * modules/unictype/bidicategory-name-tests: New file.
6784         * modules/unictype/bidicategory-of-tests: New file.
6785         * modules/unictype/bidicategory-test-tests: New file.
6786         * modules/unictype/block-list-tests: New file.
6787         * modules/unictype/block-of-tests: New file.
6788         * modules/unictype/block-test-tests: New file.
6789         * modules/unictype/category-C-tests: New file.
6790         * modules/unictype/category-Cc-tests: New file.
6791         * modules/unictype/category-Cf-tests: New file.
6792         * modules/unictype/category-Cn-tests: New file.
6793         * modules/unictype/category-Co-tests: New file.
6794         * modules/unictype/category-Cs-tests: New file.
6795         * modules/unictype/category-L-tests: New file.
6796         * modules/unictype/category-Ll-tests: New file.
6797         * modules/unictype/category-Lm-tests: New file.
6798         * modules/unictype/category-Lo-tests: New file.
6799         * modules/unictype/category-Lt-tests: New file.
6800         * modules/unictype/category-Lu-tests: New file.
6801         * modules/unictype/category-M-tests: New file.
6802         * modules/unictype/category-Mc-tests: New file.
6803         * modules/unictype/category-Me-tests: New file.
6804         * modules/unictype/category-Mn-tests: New file.
6805         * modules/unictype/category-N-tests: New file.
6806         * modules/unictype/category-Nd-tests: New file.
6807         * modules/unictype/category-Nl-tests: New file.
6808         * modules/unictype/category-No-tests: New file.
6809         * modules/unictype/category-P-tests: New file.
6810         * modules/unictype/category-Pc-tests: New file.
6811         * modules/unictype/category-Pd-tests: New file.
6812         * modules/unictype/category-Pe-tests: New file.
6813         * modules/unictype/category-Pf-tests: New file.
6814         * modules/unictype/category-Pi-tests: New file.
6815         * modules/unictype/category-Po-tests: New file.
6816         * modules/unictype/category-Ps-tests: New file.
6817         * modules/unictype/category-S-tests: New file.
6818         * modules/unictype/category-Sc-tests: New file.
6819         * modules/unictype/category-Sk-tests: New file.
6820         * modules/unictype/category-Sm-tests: New file.
6821         * modules/unictype/category-So-tests: New file.
6822         * modules/unictype/category-Z-tests: New file.
6823         * modules/unictype/category-Zl-tests: New file.
6824         * modules/unictype/category-Zp-tests: New file.
6825         * modules/unictype/category-Zs-tests: New file.
6826         * modules/unictype/category-and-not-tests: New file.
6827         * modules/unictype/category-and-tests: New file.
6828         * modules/unictype/category-byname-tests: New file.
6829         * modules/unictype/category-name-tests: New file.
6830         * modules/unictype/category-none-tests: New file.
6831         * modules/unictype/category-of-tests: New file.
6832         * modules/unictype/category-or-tests: New file.
6833         * modules/unictype/category-test-withtable-tests: New file.
6834         * modules/unictype/combining-class-tests: New file.
6835         * modules/unictype/ctype-alnum-tests: New file.
6836         * modules/unictype/ctype-alpha-tests: New file.
6837         * modules/unictype/ctype-blank-tests: New file.
6838         * modules/unictype/ctype-cntrl-tests: New file.
6839         * modules/unictype/ctype-digit-tests: New file.
6840         * modules/unictype/ctype-graph-tests: New file.
6841         * modules/unictype/ctype-lower-tests: New file.
6842         * modules/unictype/ctype-print-tests: New file.
6843         * modules/unictype/ctype-punct-tests: New file.
6844         * modules/unictype/ctype-space-tests: New file.
6845         * modules/unictype/ctype-upper-tests: New file.
6846         * modules/unictype/ctype-xdigit-tests: New file.
6847         * modules/unictype/decimal-digit-tests: New file.
6848         * modules/unictype/digit-tests: New file.
6849         * modules/unictype/mirror-tests: New file.
6850         * modules/unictype/numeric-tests: New file.
6851         * modules/unictype/property-alphabetic-tests: New file.
6852         * modules/unictype/property-ascii-hex-digit-tests: New file.
6853         * modules/unictype/property-bidi-arabic-digit-tests: New file.
6854         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
6855         * modules/unictype/property-bidi-block-separator-tests: New file.
6856         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
6857         * modules/unictype/property-bidi-common-separator-tests: New file.
6858         * modules/unictype/property-bidi-control-tests: New file.
6859         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
6860         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
6861         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
6862         * modules/unictype/property-bidi-european-digit-tests: New file.
6863         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
6864         * modules/unictype/property-bidi-left-to-right-tests: New file.
6865         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
6866         * modules/unictype/property-bidi-other-neutral-tests: New file.
6867         * modules/unictype/property-bidi-pdf-tests: New file.
6868         * modules/unictype/property-bidi-segment-separator-tests: New file.
6869         * modules/unictype/property-bidi-whitespace-tests: New file.
6870         * modules/unictype/property-byname-tests: New file.
6871         * modules/unictype/property-combining-tests: New file.
6872         * modules/unictype/property-composite-tests: New file.
6873         * modules/unictype/property-currency-symbol-tests: New file.
6874         * modules/unictype/property-dash-tests: New file.
6875         * modules/unictype/property-decimal-digit-tests: New file.
6876         * modules/unictype/property-default-ignorable-code-point-tests: New file.
6877         * modules/unictype/property-deprecated-tests: New file.
6878         * modules/unictype/property-diacritic-tests: New file.
6879         * modules/unictype/property-extender-tests: New file.
6880         * modules/unictype/property-format-control-tests: New file.
6881         * modules/unictype/property-grapheme-base-tests: New file.
6882         * modules/unictype/property-grapheme-extend-tests: New file.
6883         * modules/unictype/property-grapheme-link-tests: New file.
6884         * modules/unictype/property-hex-digit-tests: New file.
6885         * modules/unictype/property-hyphen-tests: New file.
6886         * modules/unictype/property-id-continue-tests: New file.
6887         * modules/unictype/property-id-start-tests: New file.
6888         * modules/unictype/property-ideographic-tests: New file.
6889         * modules/unictype/property-ids-binary-operator-tests: New file.
6890         * modules/unictype/property-ids-trinary-operator-tests: New file.
6891         * modules/unictype/property-ignorable-control-tests: New file.
6892         * modules/unictype/property-iso-control-tests: New file.
6893         * modules/unictype/property-join-control-tests: New file.
6894         * modules/unictype/property-left-of-pair-tests: New file.
6895         * modules/unictype/property-line-separator-tests: New file.
6896         * modules/unictype/property-logical-order-exception-tests: New file.
6897         * modules/unictype/property-lowercase-tests: New file.
6898         * modules/unictype/property-math-tests: New file.
6899         * modules/unictype/property-non-break-tests: New file.
6900         * modules/unictype/property-not-a-character-tests: New file.
6901         * modules/unictype/property-numeric-tests: New file.
6902         * modules/unictype/property-other-alphabetic-tests: New file.
6903         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
6904         * modules/unictype/property-other-grapheme-extend-tests: New file.
6905         * modules/unictype/property-other-id-continue-tests: New file.
6906         * modules/unictype/property-other-id-start-tests: New file.
6907         * modules/unictype/property-other-lowercase-tests: New file.
6908         * modules/unictype/property-other-math-tests: New file.
6909         * modules/unictype/property-other-uppercase-tests: New file.
6910         * modules/unictype/property-paired-punctuation-tests: New file.
6911         * modules/unictype/property-paragraph-separator-tests: New file.
6912         * modules/unictype/property-pattern-syntax-tests: New file.
6913         * modules/unictype/property-pattern-white-space-tests: New file.
6914         * modules/unictype/property-private-use-tests: New file.
6915         * modules/unictype/property-punctuation-tests: New file.
6916         * modules/unictype/property-quotation-mark-tests: New file.
6917         * modules/unictype/property-radical-tests: New file.
6918         * modules/unictype/property-sentence-terminal-tests: New file.
6919         * modules/unictype/property-soft-dotted-tests: New file.
6920         * modules/unictype/property-space-tests: New file.
6921         * modules/unictype/property-terminal-punctuation-tests: New file.
6922         * modules/unictype/property-test-tests: New file.
6923         * modules/unictype/property-titlecase-tests: New file.
6924         * modules/unictype/property-unassigned-code-value-tests: New file.
6925         * modules/unictype/property-unified-ideograph-tests: New file.
6926         * modules/unictype/property-uppercase-tests: New file.
6927         * modules/unictype/property-variation-selector-tests: New file.
6928         * modules/unictype/property-white-space-tests: New file.
6929         * modules/unictype/property-xid-continue-tests: New file.
6930         * modules/unictype/property-xid-start-tests: New file.
6931         * modules/unictype/property-zero-width-tests: New file.
6932         * modules/unictype/scripts-tests: New file.
6933         * modules/unictype/syntax-c-ident-tests: New file.
6934         * modules/unictype/syntax-c-whitespace-tests: New file.
6935         * modules/unictype/syntax-java-ident-tests: New file.
6936         * modules/unictype/syntax-java-whitespace-tests: New file.
6937         * tests/unictype/test-bidi_byname.c: New file.
6938         * tests/unictype/test-bidi_name.c: New file.
6939         * tests/unictype/test-bidi_of.c: New file.
6940         * tests/unictype/test-bidi_test.c: New file.
6941         * tests/unictype/test-block_list.c: New file.
6942         * tests/unictype/test-block_of.c: New file.
6943         * tests/unictype/test-block_test.c: New file.
6944         * tests/unictype/test-categ_and.c: New file.
6945         * tests/unictype/test-categ_and_not.c: New file.
6946         * tests/unictype/test-categ_byname.c: New file.
6947         * tests/unictype/test-categ_name.c: New file.
6948         * tests/unictype/test-categ_none.c: New file.
6949         * tests/unictype/test-categ_of.c: New file.
6950         * tests/unictype/test-categ_or.c: New file.
6951         * tests/unictype/test-categ_test_withtable.c: New file.
6952         * tests/unictype/test-combining.c: New file.
6953         * tests/unictype/test-decdigit.c: New file.
6954         * tests/unictype/test-digit.c: New file.
6955         * tests/unictype/test-mirror.c: New file.
6956         * tests/unictype/test-numeric.c: New file.
6957         * tests/unictype/test-pr_byname.c: New file.
6958         * tests/unictype/test-pr_test.c: New file.
6959         * tests/unictype/test-predicate-part1.h: New file.
6960         * tests/unictype/test-predicate-part2.h: New file.
6961         * tests/unictype/test-scripts.c: New file.
6962         * tests/unictype/test-sy_c_ident.c: New file.
6963         * tests/unictype/test-sy_java_ident.c: New file.
6964
6965         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
6966         for Unicode 5.0.0.
6967         * tests/unictype/test-categ_Cc.c: Likewise.
6968         * tests/unictype/test-categ_Cf.c: Likewise.
6969         * tests/unictype/test-categ_Cn.c: Likewise.
6970         * tests/unictype/test-categ_Co.c: Likewise.
6971         * tests/unictype/test-categ_Cs.c: Likewise.
6972         * tests/unictype/test-categ_L.c: Likewise.
6973         * tests/unictype/test-categ_Ll.c: Likewise.
6974         * tests/unictype/test-categ_Lm.c: Likewise.
6975         * tests/unictype/test-categ_Lo.c: Likewise.
6976         * tests/unictype/test-categ_Lt.c: Likewise.
6977         * tests/unictype/test-categ_Lu.c: Likewise.
6978         * tests/unictype/test-categ_M.c: Likewise.
6979         * tests/unictype/test-categ_Mc.c: Likewise.
6980         * tests/unictype/test-categ_Me.c: Likewise.
6981         * tests/unictype/test-categ_Mn.c: Likewise.
6982         * tests/unictype/test-categ_N.c: Likewise.
6983         * tests/unictype/test-categ_Nd.c: Likewise.
6984         * tests/unictype/test-categ_Nl.c: Likewise.
6985         * tests/unictype/test-categ_No.c: Likewise.
6986         * tests/unictype/test-categ_P.c: Likewise.
6987         * tests/unictype/test-categ_Pc.c: Likewise.
6988         * tests/unictype/test-categ_Pd.c: Likewise.
6989         * tests/unictype/test-categ_Pe.c: Likewise.
6990         * tests/unictype/test-categ_Pf.c: Likewise.
6991         * tests/unictype/test-categ_Pi.c: Likewise.
6992         * tests/unictype/test-categ_Po.c: Likewise.
6993         * tests/unictype/test-categ_Ps.c: Likewise.
6994         * tests/unictype/test-categ_S.c: Likewise.
6995         * tests/unictype/test-categ_Sc.c: Likewise.
6996         * tests/unictype/test-categ_Sk.c: Likewise.
6997         * tests/unictype/test-categ_Sm.c: Likewise.
6998         * tests/unictype/test-categ_So.c: Likewise.
6999         * tests/unictype/test-categ_Z.c: Likewise.
7000         * tests/unictype/test-categ_Zl.c: Likewise.
7001         * tests/unictype/test-categ_Zp.c: Likewise.
7002         * tests/unictype/test-categ_Zs.c: Likewise.
7003         * tests/unictype/test-ctype_alnum.c: Likewise.
7004         * tests/unictype/test-ctype_alpha.c: Likewise.
7005         * tests/unictype/test-ctype_blank.c: Likewise.
7006         * tests/unictype/test-ctype_cntrl.c: Likewise.
7007         * tests/unictype/test-ctype_digit.c: Likewise.
7008         * tests/unictype/test-ctype_graph.c: Likewise.
7009         * tests/unictype/test-ctype_lower.c: Likewise.
7010         * tests/unictype/test-ctype_print.c: Likewise.
7011         * tests/unictype/test-ctype_punct.c: Likewise.
7012         * tests/unictype/test-ctype_space.c: Likewise.
7013         * tests/unictype/test-ctype_upper.c: Likewise.
7014         * tests/unictype/test-ctype_xdigit.c: Likewise.
7015         * tests/unictype/test-decdigit.h: Likewise.
7016         * tests/unictype/test-digit.h: Likewise.
7017         * tests/unictype/test-numeric.h: Likewise.
7018         * tests/unictype/test-pr_alphabetic.c: Likewise.
7019         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
7020         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7021         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7022         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
7023         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7024         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
7025         * tests/unictype/test-pr_bidi_control.c: Likewise.
7026         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
7027         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
7028         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7029         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7030         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7031         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7032         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7033         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7034         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
7035         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
7036         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
7037         * tests/unictype/test-pr_combining.c: Likewise.
7038         * tests/unictype/test-pr_composite.c: Likewise.
7039         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7040         * tests/unictype/test-pr_dash.c: Likewise.
7041         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7042         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
7043         * tests/unictype/test-pr_deprecated.c: Likewise.
7044         * tests/unictype/test-pr_diacritic.c: Likewise.
7045         * tests/unictype/test-pr_extender.c: Likewise.
7046         * tests/unictype/test-pr_format_control.c: Likewise.
7047         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7048         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7049         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7050         * tests/unictype/test-pr_hex_digit.c: Likewise.
7051         * tests/unictype/test-pr_hyphen.c: Likewise.
7052         * tests/unictype/test-pr_id_continue.c: Likewise.
7053         * tests/unictype/test-pr_id_start.c: Likewise.
7054         * tests/unictype/test-pr_ideographic.c: Likewise.
7055         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
7056         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
7057         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7058         * tests/unictype/test-pr_iso_control.c: Likewise.
7059         * tests/unictype/test-pr_join_control.c: Likewise.
7060         * tests/unictype/test-pr_left_of_pair.c: Likewise.
7061         * tests/unictype/test-pr_line_separator.c: Likewise.
7062         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7063         * tests/unictype/test-pr_lowercase.c: Likewise.
7064         * tests/unictype/test-pr_math.c: Likewise.
7065         * tests/unictype/test-pr_non_break.c: Likewise.
7066         * tests/unictype/test-pr_not_a_character.c: Likewise.
7067         * tests/unictype/test-pr_numeric.c: Likewise.
7068         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7069         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
7070         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
7071         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7072         * tests/unictype/test-pr_other_id_start.c: Likewise.
7073         * tests/unictype/test-pr_other_lowercase.c: Likewise.
7074         * tests/unictype/test-pr_other_math.c: Likewise.
7075         * tests/unictype/test-pr_other_uppercase.c: Likewise.
7076         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
7077         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
7078         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
7079         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
7080         * tests/unictype/test-pr_private_use.c: Likewise.
7081         * tests/unictype/test-pr_punctuation.c: Likewise.
7082         * tests/unictype/test-pr_quotation_mark.c: Likewise.
7083         * tests/unictype/test-pr_radical.c: Likewise.
7084         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7085         * tests/unictype/test-pr_soft_dotted.c: Likewise.
7086         * tests/unictype/test-pr_space.c: Likewise.
7087         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7088         * tests/unictype/test-pr_titlecase.c: Likewise.
7089         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7090         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7091         * tests/unictype/test-pr_uppercase.c: Likewise.
7092         * tests/unictype/test-pr_variation_selector.c: Likewise.
7093         * tests/unictype/test-pr_white_space.c: Likewise.
7094         * tests/unictype/test-pr_xid_continue.c: Likewise.
7095         * tests/unictype/test-pr_xid_start.c: Likewise.
7096         * tests/unictype/test-pr_zero_width.c: Likewise.
7097         * tests/unictype/test-sy_c_whitespace.c: Likewise.
7098         * tests/unictype/test-sy_java_whitespace.c: Likewise.
7099
7100 2007-11-12  Bruno Haible  <bruno@clisp.org>
7101
7102         Unicode character classification functions.
7103         * lib/unictype.h: New file.
7104         * modules/unictype/base: New file.
7105         * modules/unictype/category-L: New file.
7106         * modules/unictype/category-Lu: New file.
7107         * modules/unictype/category-Ll: New file.
7108         * modules/unictype/category-Lt: New file.
7109         * modules/unictype/category-Lm: New file.
7110         * modules/unictype/category-Lo: New file.
7111         * modules/unictype/category-M: New file.
7112         * modules/unictype/category-Mn: New file.
7113         * modules/unictype/category-Mc: New file.
7114         * modules/unictype/category-Me: New file.
7115         * modules/unictype/category-N: New file.
7116         * modules/unictype/category-Nd: New file.
7117         * modules/unictype/category-Nl: New file.
7118         * modules/unictype/category-No: New file.
7119         * modules/unictype/category-P: New file.
7120         * modules/unictype/category-Pc: New file.
7121         * modules/unictype/category-Pd: New file.
7122         * modules/unictype/category-Ps: New file.
7123         * modules/unictype/category-Pe: New file.
7124         * modules/unictype/category-Pi: New file.
7125         * modules/unictype/category-Pf: New file.
7126         * modules/unictype/category-Po: New file.
7127         * modules/unictype/category-S: New file.
7128         * modules/unictype/category-Sm: New file.
7129         * modules/unictype/category-Sc: New file.
7130         * modules/unictype/category-Sk: New file.
7131         * modules/unictype/category-So: New file.
7132         * modules/unictype/category-Z: New file.
7133         * modules/unictype/category-Zs: New file.
7134         * modules/unictype/category-Zl: New file.
7135         * modules/unictype/category-Zp: New file.
7136         * modules/unictype/category-C: New file.
7137         * modules/unictype/category-Cc: New file.
7138         * modules/unictype/category-Cf: New file.
7139         * modules/unictype/category-Cs: New file.
7140         * modules/unictype/category-Co: New file.
7141         * modules/unictype/category-Cn: New file.
7142         * modules/unictype/category-or: New file.
7143         * modules/unictype/category-of: New file.
7144         * modules/unictype/category-test: New file.
7145         * modules/unictype/category-test-withtable: New file.
7146         * modules/unictype/category-byname: New file.
7147         * modules/unictype/category-none: New file.
7148         * modules/unictype/category-and: New file.
7149         * modules/unictype/category-and-not: New file.
7150         * modules/unictype/category-name: New file.
7151         * modules/unictype/combining-class: New file.
7152         * modules/unictype/category-all: New file.
7153         * modules/unictype/bidicategory-all: New file.
7154         * modules/unictype/bidicategory-byname: New file.
7155         * modules/unictype/bidicategory-name: New file.
7156         * modules/unictype/bidicategory-of: New file.
7157         * modules/unictype/bidicategory-test: New file.
7158         * modules/unictype/decimal-digit: New file.
7159         * modules/unictype/digit: New file.
7160         * modules/unictype/numeric: New file.
7161         * modules/unictype/mirror: New file.
7162         * modules/unictype/property-white-space: New file.
7163         * modules/unictype/property-alphabetic: New file.
7164         * modules/unictype/property-other-alphabetic: New file.
7165         * modules/unictype/property-not-a-character: New file.
7166         * modules/unictype/property-default-ignorable-code-point: New file.
7167         * modules/unictype/property-other-default-ignorable-code-point: New
7168         file.
7169         * modules/unictype/property-deprecated: New file.
7170         * modules/unictype/property-logical-order-exception: New file.
7171         * modules/unictype/property-variation-selector: New file.
7172         * modules/unictype/property-private-use: New file.
7173         * modules/unictype/property-unassigned-code-value: New file.
7174         * modules/unictype/property-uppercase: New file.
7175         * modules/unictype/property-other-uppercase: New file.
7176         * modules/unictype/property-lowercase: New file.
7177         * modules/unictype/property-other-lowercase: New file.
7178         * modules/unictype/property-titlecase: New file.
7179         * modules/unictype/property-soft-dotted: New file.
7180         * modules/unictype/property-id-start: New file.
7181         * modules/unictype/property-other-id-start: New file.
7182         * modules/unictype/property-id-continue: New file.
7183         * modules/unictype/property-other-id-continue: New file.
7184         * modules/unictype/property-xid-start: New file.
7185         * modules/unictype/property-xid-continue: New file.
7186         * modules/unictype/property-pattern-white-space: New file.
7187         * modules/unictype/property-pattern-syntax: New file.
7188         * modules/unictype/property-join-control: New file.
7189         * modules/unictype/property-grapheme-base: New file.
7190         * modules/unictype/property-grapheme-extend: New file.
7191         * modules/unictype/property-other-grapheme-extend: New file.
7192         * modules/unictype/property-grapheme-link: New file.
7193         * modules/unictype/property-bidi-control: New file.
7194         * modules/unictype/property-bidi-left-to-right: New file.
7195         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
7196         * modules/unictype/property-bidi-arabic-right-to-left: New file.
7197         * modules/unictype/property-bidi-european-digit: New file.
7198         * modules/unictype/property-bidi-eur-num-separator: New file.
7199         * modules/unictype/property-bidi-eur-num-terminator: New file.
7200         * modules/unictype/property-bidi-arabic-digit: New file.
7201         * modules/unictype/property-bidi-common-separator: New file.
7202         * modules/unictype/property-bidi-block-separator: New file.
7203         * modules/unictype/property-bidi-segment-separator: New file.
7204         * modules/unictype/property-bidi-whitespace: New file.
7205         * modules/unictype/property-bidi-non-spacing-mark: New file.
7206         * modules/unictype/property-bidi-boundary-neutral: New file.
7207         * modules/unictype/property-bidi-pdf: New file.
7208         * modules/unictype/property-bidi-embedding-or-override: New file.
7209         * modules/unictype/property-bidi-other-neutral: New file.
7210         * modules/unictype/property-hex-digit: New file.
7211         * modules/unictype/property-ascii-hex-digit: New file.
7212         * modules/unictype/property-ideographic: New file.
7213         * modules/unictype/property-unified-ideograph: New file.
7214         * modules/unictype/property-radical: New file.
7215         * modules/unictype/property-ids-binary-operator: New file.
7216         * modules/unictype/property-ids-trinary-operator: New file.
7217         * modules/unictype/property-zero-width: New file.
7218         * modules/unictype/property-space: New file.
7219         * modules/unictype/property-non-break: New file.
7220         * modules/unictype/property-iso-control: New file.
7221         * modules/unictype/property-format-control: New file.
7222         * modules/unictype/property-dash: New file.
7223         * modules/unictype/property-hyphen: New file.
7224         * modules/unictype/property-punctuation: New file.
7225         * modules/unictype/property-line-separator: New file.
7226         * modules/unictype/property-paragraph-separator: New file.
7227         * modules/unictype/property-quotation-mark: New file.
7228         * modules/unictype/property-sentence-terminal: New file.
7229         * modules/unictype/property-terminal-punctuation: New file.
7230         * modules/unictype/property-currency-symbol: New file.
7231         * modules/unictype/property-math: New file.
7232         * modules/unictype/property-other-math: New file.
7233         * modules/unictype/property-paired-punctuation: New file.
7234         * modules/unictype/property-left-of-pair: New file.
7235         * modules/unictype/property-combining: New file.
7236         * modules/unictype/property-composite: New file.
7237         * modules/unictype/property-decimal-digit: New file.
7238         * modules/unictype/property-numeric: New file.
7239         * modules/unictype/property-diacritic: New file.
7240         * modules/unictype/property-extender: New file.
7241         * modules/unictype/property-ignorable-control: New file.
7242         * modules/unictype/property-test: New file.
7243         * modules/unictype/property-byname: New file.
7244         * modules/unictype/property-all: New file.
7245         * modules/unictype/scripts: New file.
7246         * modules/unictype/scripts-all: New file.
7247         * modules/unictype/block-of: New file.
7248         * modules/unictype/block-test: New file.
7249         * modules/unictype/block-list: New file.
7250         * modules/unictype/block-all: New file.
7251         * modules/unictype/syntax-c-whitespace: New file.
7252         * modules/unictype/syntax-java-whitespace: New file.
7253         * modules/unictype/syntax-c-ident: New file.
7254         * modules/unictype/syntax-java-ident: New file.
7255         * modules/unictype/ctype-alnum: New file.
7256         * modules/unictype/ctype-alpha: New file.
7257         * modules/unictype/ctype-cntrl: New file.
7258         * modules/unictype/ctype-digit: New file.
7259         * modules/unictype/ctype-graph: New file.
7260         * modules/unictype/ctype-lower: New file.
7261         * modules/unictype/ctype-print: New file.
7262         * modules/unictype/ctype-punct: New file.
7263         * modules/unictype/ctype-space: New file.
7264         * modules/unictype/ctype-upper: New file.
7265         * modules/unictype/ctype-xdigit: New file.
7266         * modules/unictype/ctype-blank: New file.
7267         * lib/unictype/bidi_byname.c: New file.
7268         * lib/unictype/bidi_name.c: New file.
7269         * lib/unictype/bidi_of.c: New file.
7270         * lib/unictype/bidi_test.c: New file.
7271         * lib/unictype/bitmap.h: New file.
7272         * lib/unictype/block_test.c: New file.
7273         * lib/unictype/blocks.c: New file.
7274         * lib/unictype/categ_C.c: New file.
7275         * lib/unictype/categ_Cc.c: New file.
7276         * lib/unictype/categ_Cf.c: New file.
7277         * lib/unictype/categ_Cn.c: New file.
7278         * lib/unictype/categ_Co.c: New file.
7279         * lib/unictype/categ_Cs.c: New file.
7280         * lib/unictype/categ_L.c: New file.
7281         * lib/unictype/categ_Ll.c: New file.
7282         * lib/unictype/categ_Lm.c: New file.
7283         * lib/unictype/categ_Lo.c: New file.
7284         * lib/unictype/categ_Lt.c: New file.
7285         * lib/unictype/categ_Lu.c: New file.
7286         * lib/unictype/categ_M.c: New file.
7287         * lib/unictype/categ_Mc.c: New file.
7288         * lib/unictype/categ_Me.c: New file.
7289         * lib/unictype/categ_Mn.c: New file.
7290         * lib/unictype/categ_N.c: New file.
7291         * lib/unictype/categ_Nd.c: New file.
7292         * lib/unictype/categ_Nl.c: New file.
7293         * lib/unictype/categ_No.c: New file.
7294         * lib/unictype/categ_P.c: New file.
7295         * lib/unictype/categ_Pc.c: New file.
7296         * lib/unictype/categ_Pd.c: New file.
7297         * lib/unictype/categ_Pe.c: New file.
7298         * lib/unictype/categ_Pf.c: New file.
7299         * lib/unictype/categ_Pi.c: New file.
7300         * lib/unictype/categ_Po.c: New file.
7301         * lib/unictype/categ_Ps.c: New file.
7302         * lib/unictype/categ_S.c: New file.
7303         * lib/unictype/categ_Sc.c: New file.
7304         * lib/unictype/categ_Sk.c: New file.
7305         * lib/unictype/categ_Sm.c: New file.
7306         * lib/unictype/categ_So.c: New file.
7307         * lib/unictype/categ_Z.c: New file.
7308         * lib/unictype/categ_Zl.c: New file.
7309         * lib/unictype/categ_Zp.c: New file.
7310         * lib/unictype/categ_Zs.c: New file.
7311         * lib/unictype/categ_and.c: New file.
7312         * lib/unictype/categ_and_not.c: New file.
7313         * lib/unictype/categ_byname.c: New file.
7314         * lib/unictype/categ_name.c: New file.
7315         * lib/unictype/categ_none.c: New file.
7316         * lib/unictype/categ_of.c: New file.
7317         * lib/unictype/categ_or.c: New file.
7318         * lib/unictype/categ_test.c: New file.
7319         * lib/unictype/combining.c: New file.
7320         * lib/unictype/ctype_alnum.c: New file.
7321         * lib/unictype/ctype_alpha.c: New file.
7322         * lib/unictype/ctype_blank.c: New file.
7323         * lib/unictype/ctype_cntrl.c: New file.
7324         * lib/unictype/ctype_digit.c: New file.
7325         * lib/unictype/ctype_graph.c: New file.
7326         * lib/unictype/ctype_lower.c: New file.
7327         * lib/unictype/ctype_print.c: New file.
7328         * lib/unictype/ctype_punct.c: New file.
7329         * lib/unictype/ctype_space.c: New file.
7330         * lib/unictype/ctype_upper.c: New file.
7331         * lib/unictype/ctype_xdigit.c: New file.
7332         * lib/unictype/decdigit.c: New file.
7333         * lib/unictype/digit.c: New file.
7334         * lib/unictype/identsyntaxmap.h: New file.
7335         * lib/unictype/mirror.c: New file.
7336         * lib/unictype/numeric.c: New file.
7337         * lib/unictype/pr_alphabetic.c: New file.
7338         * lib/unictype/pr_ascii_hex_digit.c: New file.
7339         * lib/unictype/pr_bidi_arabic_digit.c: New file.
7340         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
7341         * lib/unictype/pr_bidi_block_separator.c: New file.
7342         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
7343         * lib/unictype/pr_bidi_common_separator.c: New file.
7344         * lib/unictype/pr_bidi_control.c: New file.
7345         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
7346         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
7347         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
7348         * lib/unictype/pr_bidi_european_digit.c: New file.
7349         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
7350         * lib/unictype/pr_bidi_left_to_right.c: New file.
7351         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
7352         * lib/unictype/pr_bidi_other_neutral.c: New file.
7353         * lib/unictype/pr_bidi_pdf.c: New file.
7354         * lib/unictype/pr_bidi_segment_separator.c: New file.
7355         * lib/unictype/pr_bidi_whitespace.c: New file.
7356         * lib/unictype/pr_byname.c: New file.
7357         * lib/unictype/pr_byname.gperf: New file.
7358         * lib/unictype/pr_combining.c: New file.
7359         * lib/unictype/pr_composite.c: New file.
7360         * lib/unictype/pr_currency_symbol.c: New file.
7361         * lib/unictype/pr_dash.c: New file.
7362         * lib/unictype/pr_decimal_digit.c: New file.
7363         * lib/unictype/pr_default_ignorable_code_point.c: New file.
7364         * lib/unictype/pr_deprecated.c: New file.
7365         * lib/unictype/pr_diacritic.c: New file.
7366         * lib/unictype/pr_extender.c: New file.
7367         * lib/unictype/pr_format_control.c: New file.
7368         * lib/unictype/pr_grapheme_base.c: New file.
7369         * lib/unictype/pr_grapheme_extend.c: New file.
7370         * lib/unictype/pr_grapheme_link.c: New file.
7371         * lib/unictype/pr_hex_digit.c: New file.
7372         * lib/unictype/pr_hyphen.c: New file.
7373         * lib/unictype/pr_id_continue.c: New file.
7374         * lib/unictype/pr_id_start.c: New file.
7375         * lib/unictype/pr_ideographic.c: New file.
7376         * lib/unictype/pr_ids_binary_operator.c: New file.
7377         * lib/unictype/pr_ids_trinary_operator.c: New file.
7378         * lib/unictype/pr_ignorable_control.c: New file.
7379         * lib/unictype/pr_iso_control.c: New file.
7380         * lib/unictype/pr_join_control.c: New file.
7381         * lib/unictype/pr_left_of_pair.c: New file.
7382         * lib/unictype/pr_line_separator.c: New file.
7383         * lib/unictype/pr_logical_order_exception.c: New file.
7384         * lib/unictype/pr_lowercase.c: New file.
7385         * lib/unictype/pr_math.c: New file.
7386         * lib/unictype/pr_non_break.c: New file.
7387         * lib/unictype/pr_not_a_character.c: New file.
7388         * lib/unictype/pr_numeric.c: New file.
7389         * lib/unictype/pr_other_alphabetic.c: New file.
7390         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
7391         * lib/unictype/pr_other_grapheme_extend.c: New file.
7392         * lib/unictype/pr_other_id_continue.c: New file.
7393         * lib/unictype/pr_other_id_start.c: New file.
7394         * lib/unictype/pr_other_lowercase.c: New file.
7395         * lib/unictype/pr_other_math.c: New file.
7396         * lib/unictype/pr_other_uppercase.c: New file.
7397         * lib/unictype/pr_paired_punctuation.c: New file.
7398         * lib/unictype/pr_paragraph_separator.c: New file.
7399         * lib/unictype/pr_pattern_syntax.c: New file.
7400         * lib/unictype/pr_pattern_white_space.c: New file.
7401         * lib/unictype/pr_private_use.c: New file.
7402         * lib/unictype/pr_punctuation.c: New file.
7403         * lib/unictype/pr_quotation_mark.c: New file.
7404         * lib/unictype/pr_radical.c: New file.
7405         * lib/unictype/pr_sentence_terminal.c: New file.
7406         * lib/unictype/pr_soft_dotted.c: New file.
7407         * lib/unictype/pr_space.c: New file.
7408         * lib/unictype/pr_terminal_punctuation.c: New file.
7409         * lib/unictype/pr_test.c: New file.
7410         * lib/unictype/pr_titlecase.c: New file.
7411         * lib/unictype/pr_unassigned_code_value.c: New file.
7412         * lib/unictype/pr_unified_ideograph.c: New file.
7413         * lib/unictype/pr_uppercase.c: New file.
7414         * lib/unictype/pr_variation_selector.c: New file.
7415         * lib/unictype/pr_white_space.c: New file.
7416         * lib/unictype/pr_xid_continue.c: New file.
7417         * lib/unictype/pr_xid_start.c: New file.
7418         * lib/unictype/pr_zero_width.c: New file.
7419         * lib/unictype/scripts.c: New file.
7420         * lib/unictype/sy_c_ident.c: New file.
7421         * lib/unictype/sy_c_whitespace.c: New file.
7422         * lib/unictype/sy_java_ident.c: New file.
7423         * lib/unictype/sy_java_whitespace.c: New file.
7424
7425         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7426         Unicode 5.0.0.
7427         * lib/unictype/blocks.h: Likewise.
7428         * lib/unictype/categ_C.h: Likewise.
7429         * lib/unictype/categ_Cc.h: Likewise.
7430         * lib/unictype/categ_Cf.h: Likewise.
7431         * lib/unictype/categ_Cn.h: Likewise.
7432         * lib/unictype/categ_Co.h: Likewise.
7433         * lib/unictype/categ_Cs.h: Likewise.
7434         * lib/unictype/categ_L.h: Likewise.
7435         * lib/unictype/categ_Ll.h: Likewise.
7436         * lib/unictype/categ_Lm.h: Likewise.
7437         * lib/unictype/categ_Lo.h: Likewise.
7438         * lib/unictype/categ_Lt.h: Likewise.
7439         * lib/unictype/categ_Lu.h: Likewise.
7440         * lib/unictype/categ_M.h: Likewise.
7441         * lib/unictype/categ_Mc.h: Likewise.
7442         * lib/unictype/categ_Me.h: Likewise.
7443         * lib/unictype/categ_Mn.h: Likewise.
7444         * lib/unictype/categ_N.h: Likewise.
7445         * lib/unictype/categ_Nd.h: Likewise.
7446         * lib/unictype/categ_Nl.h: Likewise.
7447         * lib/unictype/categ_No.h: Likewise.
7448         * lib/unictype/categ_P.h: Likewise.
7449         * lib/unictype/categ_Pc.h: Likewise.
7450         * lib/unictype/categ_Pd.h: Likewise.
7451         * lib/unictype/categ_Pe.h: Likewise.
7452         * lib/unictype/categ_Pf.h: Likewise.
7453         * lib/unictype/categ_Pi.h: Likewise.
7454         * lib/unictype/categ_Po.h: Likewise.
7455         * lib/unictype/categ_Ps.h: Likewise.
7456         * lib/unictype/categ_S.h: Likewise.
7457         * lib/unictype/categ_Sc.h: Likewise.
7458         * lib/unictype/categ_Sk.h: Likewise.
7459         * lib/unictype/categ_Sm.h: Likewise.
7460         * lib/unictype/categ_So.h: Likewise.
7461         * lib/unictype/categ_Z.h: Likewise.
7462         * lib/unictype/categ_Zl.h: Likewise.
7463         * lib/unictype/categ_Zp.h: Likewise.
7464         * lib/unictype/categ_Zs.h: Likewise.
7465         * lib/unictype/categ_of.h: Likewise.
7466         * lib/unictype/combining.h: Likewise.
7467         * lib/unictype/ctype_alnum.h: Likewise.
7468         * lib/unictype/ctype_alpha.h: Likewise.
7469         * lib/unictype/ctype_blank.h: Likewise.
7470         * lib/unictype/ctype_cntrl.h: Likewise.
7471         * lib/unictype/ctype_digit.h: Likewise.
7472         * lib/unictype/ctype_graph.h: Likewise.
7473         * lib/unictype/ctype_lower.h: Likewise.
7474         * lib/unictype/ctype_print.h: Likewise.
7475         * lib/unictype/ctype_punct.h: Likewise.
7476         * lib/unictype/ctype_space.h: Likewise.
7477         * lib/unictype/ctype_upper.h: Likewise.
7478         * lib/unictype/ctype_xdigit.h: Likewise.
7479         * lib/unictype/decdigit.h: Likewise.
7480         * lib/unictype/digit.h: Likewise.
7481         * lib/unictype/mirror.h: Likewise.
7482         * lib/unictype/numeric.h: Likewise.
7483         * lib/unictype/pr_alphabetic.h: Likewise.
7484         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7485         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7486         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7487         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7488         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7489         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7490         * lib/unictype/pr_bidi_control.h: Likewise.
7491         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7492         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7493         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7494         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7495         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7496         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7497         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7498         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7499         * lib/unictype/pr_bidi_pdf.h: Likewise.
7500         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7501         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7502         * lib/unictype/pr_combining.h: Likewise.
7503         * lib/unictype/pr_composite.h: Likewise.
7504         * lib/unictype/pr_currency_symbol.h: Likewise.
7505         * lib/unictype/pr_dash.h: Likewise.
7506         * lib/unictype/pr_decimal_digit.h: Likewise.
7507         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7508         * lib/unictype/pr_deprecated.h: Likewise.
7509         * lib/unictype/pr_diacritic.h: Likewise.
7510         * lib/unictype/pr_extender.h: Likewise.
7511         * lib/unictype/pr_format_control.h: Likewise.
7512         * lib/unictype/pr_grapheme_base.h: Likewise.
7513         * lib/unictype/pr_grapheme_extend.h: Likewise.
7514         * lib/unictype/pr_grapheme_link.h: Likewise.
7515         * lib/unictype/pr_hex_digit.h: Likewise.
7516         * lib/unictype/pr_hyphen.h: Likewise.
7517         * lib/unictype/pr_id_continue.h: Likewise.
7518         * lib/unictype/pr_id_start.h: Likewise.
7519         * lib/unictype/pr_ideographic.h: Likewise.
7520         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7521         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7522         * lib/unictype/pr_ignorable_control.h: Likewise.
7523         * lib/unictype/pr_iso_control.h: Likewise.
7524         * lib/unictype/pr_join_control.h: Likewise.
7525         * lib/unictype/pr_left_of_pair.h: Likewise.
7526         * lib/unictype/pr_line_separator.h: Likewise.
7527         * lib/unictype/pr_logical_order_exception.h: Likewise.
7528         * lib/unictype/pr_lowercase.h: Likewise.
7529         * lib/unictype/pr_math.h: Likewise.
7530         * lib/unictype/pr_non_break.h: Likewise.
7531         * lib/unictype/pr_not_a_character.h: Likewise.
7532         * lib/unictype/pr_numeric.h: Likewise.
7533         * lib/unictype/pr_other_alphabetic.h: Likewise.
7534         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7535         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7536         * lib/unictype/pr_other_id_continue.h: Likewise.
7537         * lib/unictype/pr_other_id_start.h: Likewise.
7538         * lib/unictype/pr_other_lowercase.h: Likewise.
7539         * lib/unictype/pr_other_math.h: Likewise.
7540         * lib/unictype/pr_other_uppercase.h: Likewise.
7541         * lib/unictype/pr_paired_punctuation.h: Likewise.
7542         * lib/unictype/pr_paragraph_separator.h: Likewise.
7543         * lib/unictype/pr_pattern_syntax.h: Likewise.
7544         * lib/unictype/pr_pattern_white_space.h: Likewise.
7545         * lib/unictype/pr_private_use.h: Likewise.
7546         * lib/unictype/pr_punctuation.h: Likewise.
7547         * lib/unictype/pr_quotation_mark.h: Likewise.
7548         * lib/unictype/pr_radical.h: Likewise.
7549         * lib/unictype/pr_sentence_terminal.h: Likewise.
7550         * lib/unictype/pr_soft_dotted.h: Likewise.
7551         * lib/unictype/pr_space.h: Likewise.
7552         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7553         * lib/unictype/pr_titlecase.h: Likewise.
7554         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7555         * lib/unictype/pr_unified_ideograph.h: Likewise.
7556         * lib/unictype/pr_uppercase.h: Likewise.
7557         * lib/unictype/pr_variation_selector.h: Likewise.
7558         * lib/unictype/pr_white_space.h: Likewise.
7559         * lib/unictype/pr_xid_continue.h: Likewise.
7560         * lib/unictype/pr_xid_start.h: Likewise.
7561         * lib/unictype/pr_zero_width.h: Likewise.
7562         * lib/unictype/scripts.h: Likewise.
7563         * lib/unictype/scripts_byname.gperf: Likewise.
7564         * lib/unictype/sy_c_ident.h: Likewise.
7565         * lib/unictype/sy_c_whitespace.h: Likewise.
7566         * lib/unictype/sy_java_ident.h: Likewise.
7567         * lib/unictype/sy_java_whitespace.h: Likewise.
7568
7569         * lib/unictype/Makefile: New file.
7570         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
7571         glibc.
7572         * lib/unictype/3level.h: New file, copied from glibc.
7573         * lib/unictype/3levelbit.h: New file.
7574
7575 2007-11-11  Bruno Haible  <bruno@clisp.org>
7576
7577         * modules/gperf: New file.
7578         * modules/iconv_open (Depends-on): Add it.
7579         (Makefile.am): Remove the GPERF definition.
7580
7581 2007-11-11  Bruno Haible  <bruno@clisp.org>
7582
7583         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
7584         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
7585
7586 2007-11-11  Bruno Haible  <bruno@clisp.org>
7587
7588         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
7589         (usage): Remove function.
7590
7591 2007-11-11  Bruno Haible  <bruno@clisp.org>
7592
7593         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
7594         gl_FUNC_CEILF_LIBS.
7595         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
7596         gl_FUNC_CEIL_LIBS.
7597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
7598         gl_FUNC_CEILL_LIBS.
7599         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
7600         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
7601         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
7602
7603 2007-11-11  Bruno Haible  <bruno@clisp.org>
7604
7605         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
7606         roundf were declared but do not exist on functions.
7607         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
7608         roundl were declared but do not exist on functions.
7609         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
7610         HAVE_FLOORL_AND_CEILL, respectively.
7611         Needed for Sun C on Solaris 10.
7612
7613 2007-11-11  Bruno Haible  <bruno@clisp.org>
7614
7615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
7616         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
7617         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
7618         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
7619         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
7620         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
7621         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
7622         HAVE_DECL_ROUNDF.
7623         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
7624         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
7625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
7626         of HAVE_DECL_ROUND*.
7627         * modules/math (Makefile.am): Update.
7628
7629 2007-11-10  Bruno Haible  <bruno@clisp.org>
7630
7631         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
7632         ptrdiff_t as m4/intl.m4.
7633
7634 2007-11-10  Jim Meyering  <meyering@redhat.com>
7635
7636         Avoid link failure for the argmatch test.
7637         * tests/test-argmatch.c (usage): Define function to avoid a link
7638         failure: argmatch_die requires a usage function.
7639
7640 2007-11-09  Bruno Haible  <bruno@clisp.org>
7641
7642         * doc/functions/snprintf.texi: Mention BeOS deficiency.
7643         * doc/functions/vsnprintf.texi: Likewise.
7644         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
7645         with a size argument < 2.
7646
7647 2007-11-09  Bruno Haible  <bruno@clisp.org>
7648
7649         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
7650         buffer. Fixes an inefficiency introduced on 2007-11-03.
7651
7652 2007-11-09  Bruno Haible  <bruno@clisp.org>
7653
7654         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
7655         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
7656
7657 2007-11-08  Jim Meyering  <meyering@redhat.com>
7658
7659         Change cache variable name prefix "jm_" to "gl_" everywhere.
7660         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
7661         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
7662         * m4/uptime.m4: s/gl_/jm_/
7663
7664 2007-11-07  Bruno Haible  <bruno@clisp.org>
7665
7666         Update to GNU gettext 0.17.
7667         * m4/intl.m4: Update to GNU gettext 0.17.
7668         * m4/po.m4: Likewise.
7669         * modules/gettext (Files): Remove m4/ulonglong.m4.
7670         (configure.ac): Require gettext infrastructure from version 0.17.
7671
7672 2007-11-06  Bruno Haible  <bruno@clisp.org>
7673
7674         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
7675         symbolic values are not defined in a public header.
7676         * lib/freadable.c (freadable) [QNX]: Likewise.
7677         * lib/freadahead.c (freadahead) [QNX]: Likewise.
7678         * lib/freading.c (freading) [QNX]: Likewise.
7679         * lib/fseterr.c (fseterr) [QNX]: Likewise.
7680         * lib/fwritable.c (fwritable) [QNX]: Likewise.
7681         * lib/fwriting.c (fwriting) [QNX]: Likewise.
7682         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
7683         Reported by Alain Magloire.
7684
7685         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
7686
7687 2007-11-05  Bruno Haible  <bruno@clisp.org>
7688
7689         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
7690         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
7691         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
7692         Reported by Eric Blake.
7693
7694 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7695             Bruno Haible  <bruno@clisp.org>
7696
7697         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
7698         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
7699         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
7700         (malloc): Undefine also before including <stdlib.h>.
7701         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
7702         Needed on OSF/1 4.0.
7703
7704 2007-11-05  Jim Meyering  <meyering@redhat.com>
7705
7706         git-version-gen: sync from coreutils.
7707         * build-aux/git-version-gen: Add comments.
7708         Change the first '-' to '.' in the snapshot version string,
7709         e.g., 6.9-377-08144 -> 6.9.377-08144
7710         Remove first parameter.
7711         Don't declare a version "-dirty" merely because a time
7712         stamp has changed.
7713
7714 2007-11-04  Bruno Haible  <bruno@clisp.org>
7715
7716         * lib/lock.h: Protect all macro definitions containing an 'if'
7717         statement through a "do { ... } while (0)".
7718         * lib/tls.h: Likewise.
7719
7720 2007-11-04  Bruno Haible  <bruno@clisp.org>
7721
7722         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
7723
7724 2007-11-04  Bruno Haible  <bruno@clisp.org>
7725
7726         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
7727         * modules/fprintf-posix (Depends-on): Add nocrash.
7728         * modules/snprintf-posix (Depends-on): Likewise.
7729         * modules/sprintf-posix (Depends-on): Likewise.
7730         * modules/vasnprintf-posix (Depends-on): Likewise.
7731         * modules/vasprintf-posix (Depends-on): Likewise.
7732         * modules/vfprintf-posix (Depends-on): Likewise.
7733         * modules/vsnprintf-posix (Depends-on): Likewise.
7734         * modules/vsprintf-posix (Depends-on): Likewise.
7735         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7742
7743 2007-11-04  Bruno Haible  <bruno@clisp.org>
7744
7745         * modules/nocrash: New file.
7746         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
7747         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
7748
7749 2007-11-04  Bruno Haible  <bruno@clisp.org>
7750
7751         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
7752         precision handling.
7753         * tests/test-vasprintf-posix.c (test_function): Likewise.
7754         * tests/test-snprintf-posix.h (test_function): Likewise.
7755         * tests/test-sprintf-posix.h (test_function): Likewise.
7756
7757         Fix *printf behaviour for large precisions on mingw and BeOS.
7758         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
7759         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
7760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
7761         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7763         gl_PRINTF_PRECISION and test its result. Invoke
7764         gl_PREREQ_VASNPRINTF_PRECISION.
7765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7772         * doc/functions/fprintf.texi: Update.
7773         * doc/functions/printf.texi: Update.
7774         * doc/functions/snprintf.texi: Update.
7775         * doc/functions/sprintf.texi: Update.
7776         * doc/functions/vfprintf.texi: Update.
7777         * doc/functions/vprintf.texi: Update.
7778         * doc/functions/vsnprintf.texi: Update.
7779         * doc/functions/vsprintf.texi: Update.
7780
7781 2007-11-04  Bruno Haible  <bruno@clisp.org>
7782
7783         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
7784
7785 2007-11-04  Bruno Haible  <bruno@clisp.org>
7786
7787         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
7788         Reported by Sylvain Beucler <beuc@gnu.org>.
7789
7790 2007-11-03  Bruno Haible  <bruno@clisp.org>
7791
7792         * tests/test-fprintf-posix2.sh: New file.
7793         * tests/test-fprintf-posix2.c: New file.
7794         * modules/fprintf-posix-tests (Files): Add them.
7795         (TESTS): Add test-fprintf-posix2.sh.
7796         (configure.ac): Check for getrlimit and setrlimit.
7797         (check_PROGRAMS): Add test-fprintf-posix2.
7798
7799         * tests/test-printf-posix2.sh: New file.
7800         * tests/test-printf-posix2.c: New file.
7801         * modules/printf-posix-tests (Files): Add them.
7802         (TESTS): Add test-printf-posix2.sh.
7803         (configure.ac): Check for getrlimit and setrlimit.
7804         (check_PROGRAMS): Add test-printf-posix2.
7805
7806         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
7807         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
7808         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
7809         (decode_double): New function, copied from decode_long_double.
7810         (scale10_round_decimal_decoded): New function, extracted from
7811         scale10_round_decimal_long_double.
7812         (scale10_round_decimal_long_double): Use it.
7813         (scale10_round_decimal_double): New function.
7814         (floorlog10): New function.
7815         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
7816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
7817         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7818         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7819         gl_PRINTF_ENOMEM and test its result. Invoke
7820         gl_PREREQ_VASNPRINTF_ENOMEM.
7821         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7822         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7825         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7827         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7828         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
7829         * modules/snprintf-posix (Depends-on): Likewise.
7830         * modules/sprintf-posix (Depends-on): Likewise.
7831         * modules/vasnprintf-posix (Depends-on): Likewise.
7832         * modules/vasprintf-posix (Depends-on): Likewise.
7833         * modules/vfprintf-posix (Depends-on): Likewise.
7834         * modules/vsnprintf-posix (Depends-on): Likewise.
7835         * modules/vsprintf-posix (Depends-on): Likewise.
7836         * doc/functions/fprintf.texi: Update.
7837         * doc/functions/printf.texi: Update.
7838         * doc/functions/snprintf.texi: Update.
7839         * doc/functions/sprintf.texi: Update.
7840         * doc/functions/vfprintf.texi: Update.
7841         * doc/functions/vprintf.texi: Update.
7842         * doc/functions/vsnprintf.texi: Update.
7843         * doc/functions/vsprintf.texi: Update.
7844
7845 2007-11-03  Bruno Haible  <bruno@clisp.org>
7846
7847         * modules/frexp-nolibm-tests: New file.
7848
7849         * modules/frexp-nolibm: New file.
7850         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
7851
7852 2007-11-03  Bruno Haible  <bruno@clisp.org>
7853
7854         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
7855         value is C99 compliant.
7856         Needed for OSF/1 5.1.
7857
7858 2007-11-03  Bruno Haible  <bruno@clisp.org>
7859
7860         Fix out-of-memory handling of vasnprintf.
7861         * lib/printf-parse.c: Include <errno.h>.
7862         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
7863         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
7864         is already set.
7865
7866 2007-11-02  Eric Blake  <ebb9@byu.net>
7867
7868         Fix tests on cygwin.
7869         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
7870
7871 2007-11-01  Bruno Haible  <bruno@clisp.org>
7872
7873         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
7874         warning.
7875         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
7876         needed for POSIX compatibility.
7877
7878 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7879
7880         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
7881         for compatibility with GNU.
7882
7883 2007-11-01  Bruno Haible  <bruno@clisp.org>
7884
7885         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
7886         (putenv): Renamed from rpl_putenv. Change argument type from
7887         'const char *' to 'char *'.
7888         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
7889         of defining putenv in config.h, just set REPLACE_PUTENV.
7890         * modules/putenv (Depends-on): Add stdlib.
7891         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7892         (Include): Use <stdlib.h>.
7893         * lib/stdlib.in.h (putenv): New declaration.
7894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
7895         REPLACE_PUTENV.
7896         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
7897         REPLACE_PUTENV.
7898         Needed for MacOS X 10.5.0.
7899         Reported by Peter O'Gorman <peter@pogma.com>.
7900
7901 2007-11-01  Jim Meyering  <meyering@redhat.com>
7902
7903         Treat an empty date string exactly like "0".
7904         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
7905         if the remaining date string (to be parsed) is empty, use "0".
7906         Reported by Mischa Molhoek and discussed in this thread:
7907         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
7908
7909 2007-10-31  Bruno Haible  <bruno@clisp.org>
7910
7911         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
7912         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
7913         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
7914         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
7915         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
7916         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
7917
7918 2007-10-31  Bruno Haible  <bruno@clisp.org>
7919
7920         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
7921         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7922         (AC_TYPE_LONG_LONG_INT): Use it.
7923         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
7924         it as well.
7925         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
7926         to m4/longlong.m4.
7927         * modules/stdint (Files): Remove m4/ulonglong.m4.
7928         * modules/strtoull (Files): Use m4/longlong.m4 instead of
7929         m4/ulonglong.m4.
7930         * modules/strtoumax (Files): Likewise.
7931
7932 2007-10-30  Bruno Haible  <bruno@clisp.org>
7933
7934         * modules/xvasprintf-posix: New file.
7935         Suggested by Eric Blake.
7936
7937 2007-10-30  Bruno Haible  <bruno@clisp.org>
7938
7939         * modules/xprintf-posix-tests: New file.
7940         * tests/test-xprintf-posix.sh: New file.
7941         * tests/test-xprintf-posix.c: New file.
7942         * tests/test-xfprintf-posix.c: New file.
7943
7944         * modules/xprintf-posix: New file.
7945
7946 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7947
7948         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
7949         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
7950         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
7951
7952 2007-10-29  Bruno Haible  <bruno@clisp.org>
7953
7954         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
7955         contain the special marker '_cv_'.
7956         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7957         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7958         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7959         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7960         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7961         Reported by Ralf Wildenhues.
7962
7963 2007-10-29  Bruno Haible  <bruno@clisp.org>
7964
7965         * gnulib-tool (func_import): When --lgpl is not specified, set
7966         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
7967         GPLv3.
7968         Reported by Simon Josefsson.
7969
7970 2007-10-28  Bruno Haible  <bruno@clisp.org>
7971
7972         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
7973         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
7974         HAVE_DECL_ISFINITE.
7975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7976         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
7977         HAVE_DECL_ISFINITE.
7978
7979 2007-10-28  Bruno Haible  <bruno@clisp.org>
7980
7981         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
7982         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
7983
7984 2007-10-28  Bruno Haible  <bruno@clisp.org>
7985
7986         Fix link errors with Sun C 5.0 on Solaris 10.
7987         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
7988         function is declared but not present in the compiler's libm.
7989         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7990         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7991         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
7992         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
7993         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
7994         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
7995         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
7996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7997         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
7998         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
7999         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
8000         HAVE_DECL_FLOORL.
8001
8002 2007-10-28  Bruno Haible  <bruno@clisp.org>
8003
8004         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
8005         gl_FUNC_FLOORL. Cache the result.
8006         (gl_FUNC_FLOORL): Use it.
8007         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
8008         gl_FUNC_CEILL. Cache the result.
8009         (gl_FUNC_CEILL): Use it.
8010
8011         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
8012         gl_FUNC_FLOOR. Cache the result.
8013         (gl_FUNC_FLOOR): Use it.
8014         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
8015         gl_FUNC_CEIL. Cache the result.
8016         (gl_FUNC_CEIL): Use it.
8017
8018         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
8019         gl_FUNC_FLOORF. Cache the result.
8020         (gl_FUNC_FLOORF): Use it.
8021         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
8022         gl_FUNC_CEILF. Cache the result.
8023         (gl_FUNC_CEILF): Use it.
8024
8025 2007-10-28  Bruno Haible  <bruno@clisp.org>
8026
8027         * gnulib-tool: Allow specifying the LGPL version number through
8028         --lgpl=2 or --lgpl=3.
8029         (func_usage): Document --lgpl with argument.
8030         Handle --lgpl=... arguments.
8031         (func_import): Recognize also gl_LGPL calls with an argument. When
8032         --lgpl=2 is used and the module's license is just LGPL, report an
8033         error. Set sed_transform_lib_file according to the lgpl variable. In
8034         the generated files, use --lgpl or gl_LGPL invocations with argument,
8035         if necessary.
8036         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
8037         an LGPv2+ license.
8038         * doc/gnulib-tool.texi (Modified imports): Update explanation of
8039         gl_LGPL macro.
8040
8041 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8042             Bruno Haible  <bruno@clisp.org>
8043
8044         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
8045         (u16_uctomb_aux): Likewise.
8046         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
8047         !HAVE_INLINE.
8048         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
8049
8050 2007-10-28  Bruno Haible  <bruno@clisp.org>
8051
8052         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
8053         Invoke AM_GETTEXT_OPTION if it exists.
8054         * modules/vasprintf: Likewise.
8055         * modules/verror: Likewise.
8056         * modules/xprintf: Likewise.
8057         * modules/xvasprintf: Likewise.
8058
8059 2007-10-27  Ben Pfaff  <blp@gnu.org>
8060
8061         * lib/math.in.h: Define isfinite macro and prototypes for
8062         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
8063         implementations.
8064         * m4/math_h.m4: New substitutions for isfinite module.
8065         * lib/isfinite.c: New file.
8066         * m4/isfinite.m4: New file.
8067         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
8068         * modules/isfinite: New file.
8069         * modules/isfinite-tests: New file.
8070         * tests/tests-isfinite.c: New file.
8071         * doc/functions/isfinite.texi: Mention isfinite module.
8072         * MODULES.html.sh: Mention new module.
8073
8074 2007-10-27  Ben Pfaff  <blp@gnu.org>
8075
8076         Ralf Wildenhues reported that Tru64 4.0D declares the round
8077         functions but does not have definitions.
8078         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
8079         cannot be found in any library, set the output variable to
8080         "missing" instead of "".
8081         * m4/round.m4: Also use our substitute if we cannot find round in
8082         any library, even if it is declared.
8083         * m4/roundf.m4: Likewise for roundf.
8084         * m4/roundl.m4: Likewise for roundl.
8085         * lib/math.in.h: Undefine roundf, round, roundl before defining
8086         their replacements, to allow for hypothetical systems where these
8087         may be defined as macros but not available in libraries.
8088
8089 2007-10-27  Bruno Haible  <bruno@clisp.org>
8090
8091         * doc/gnulib.texi: Invoke @firstparagraphindent.
8092         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
8093         changes in gnulib.
8094         (Source changes): New section.
8095
8096 2007-10-26  Bruno Haible  <bruno@clisp.org>
8097
8098         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
8099         borrowed from autoconf.
8100
8101 2007-10-26  Bruno Haible  <bruno@clisp.org>
8102
8103         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
8104         strerror returned the empty string. Needed on HP-UX 11.00.
8105
8106 2007-10-24  Micah Cowan  <micah@cowan.name>
8107
8108         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
8109         * build-aux/bootstrap: Remove support for now-unnecessary option,
8110         --cvs-user, and envvars CVS_USER, CVS_RSH.
8111
8112 2007-10-24  Jim Meyering  <meyering@redhat.com>
8113
8114         Avoid diagnostics from sha1sum when there is no cached checksum.
8115         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
8116         if the po.s1 file hasn't been created yet.
8117
8118         * build-aux/bootstrap: Sync from coreutils:
8119         2007-10-24  Jim Meyering  <meyering@redhat.com>
8120         Get gnulib from the git repository, not from an obsolete cvs one.
8121         * build-aux/bootstrap: Suggestion from Micah Cowan.
8122         2007-10-04  Jim Meyering  <jim@meyering.net>
8123         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
8124         (update_po_files): Work also when there are no .po files in po/.
8125
8126 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8127
8128         * README: Append ".git" to git and cg examples.
8129         Problem reported by Benoit Sigoure.
8130
8131 2007-10-23  Micah Cowan  <micah@cowan.name>
8132
8133         * users.txt: Add wget.
8134
8135 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8136
8137         Fix linking of some unistdio tests on FreeBSD.
8138         * modules/unistdio/u16-vsnprintf-tests
8139         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
8140         * modules/unistdio/u16-vsprintf-tests
8141         (test_u16_vsnprintf1_LDADD): Likewise.
8142         * modules/unistdio/u32-vsnprintf-tests
8143         (test_u32_vsnprintf1_LDADD): Likewise.
8144         * modules/unistdio/u32-vsprintf-tests
8145         (test_u32_vsprintf1_LDADD): Likewise.
8146         * modules/unistdio/u8-vsnprintf-tests
8147         (test_u8_vsnprintf1_LDADD): Likewise.
8148         * modules/unistdio/u8-vsprintf-tests
8149         (test_u8_vsprintf1_LDADD): Likewise.
8150         * modules/unistdio/ulc-vsnprintf-tests
8151         (test_ulc_vsnprintf1_LDADD): Likewise.
8152         * modules/unistdio/ulc-vsprintf-tests
8153         (test_ulc_vsprintf1_LDADD): Likewise.
8154
8155         Fix linking of some uniconv tests on FreeBSD.
8156         * modules/uniconv/u16-conv-from-enc-tests
8157         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
8158         * modules/uniconv/u16-conv-to-enc-tests
8159         (test_u16_conv_to_enc_LDADD): Likewise.
8160         * modules/uniconv/u16-strconv-from-enc-tests
8161         (test_u16_strconv_from_enc_LDADD): Likewise.
8162         * modules/uniconv/u16-strconv-to-enc-tests
8163         (test_u16_strconv_to_enc_LDADD): Likewise.
8164         * modules/uniconv/u32-conv-from-enc-tests
8165         (test_u32_conv_from_enc_LDADD): Likewise.
8166         * modules/uniconv/u32-conv-to-enc-tests
8167         (test_u32_conv_to_enc_LDADD): Likewise.
8168         * modules/uniconv/u32-strconv-from-enc-tests
8169         (test_u32_strconv_from_enc_LDADD): Likewise.
8170         * modules/uniconv/u32-strconv-to-enc-tests
8171         (test_u32_strconv_to_enc_LDADD): Likewise.
8172         * modules/uniconv/u8-conv-from-enc-tests
8173         (test_u8_conv_from_enc_LDADD): Likewise.
8174         * modules/uniconv/u8-conv-to-enc-tests
8175         (test_u8_conv_to_enc_LDADD): Likewise.
8176         * modules/uniconv/u8-strconv-from-enc-tests
8177         (test_u8_strconv_from_enc_LDADD): Likewise.
8178         * modules/uniconv/u8-strconv-to-enc-tests
8179         (test_u8_strconv_to_enc_LDADD): Likewise.
8180
8181 2007-10-22  Bruno Haible  <bruno@clisp.org>
8182
8183         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
8184         size.
8185
8186 2007-10-22  Eric Blake  <ebb9@byu.net>
8187
8188         Tweak x*printf documentation.
8189         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
8190         variable name and comments.
8191         Suggested by Bruno Haible.
8192
8193 2007-10-22  Bruno Haible  <bruno@clisp.org>
8194
8195         * lib/acl.c (copy_acl): Fix file name in comment.
8196
8197 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8198
8199         Fix Tru64 problem with stdbool.h.
8200         * lib/stdbool.in.h (false, true):
8201         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
8202         Don't declare as an enum in this situation; it runs afoul of Tru64.
8203         Problem reported by Steven M. Schweda in
8204         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
8205
8206 2007-10-22  Eric Blake  <ebb9@byu.net>
8207
8208         Also wrap vf?printf.
8209         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
8210         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
8211         (xvprintf, xvfprintf): New functions.
8212
8213 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8214
8215         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
8216         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
8217
8218         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
8219         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
8220
8221 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
8222
8223         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
8224         by Bruno Haible.
8225
8226 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8227
8228         * lib/getloadavg.c
8229         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
8230         Undef `sys' after including sys/table.h, for Tru64 4.0D.
8231
8232         * tests/test-i-ring.c: Work for C89.
8233
8234 2007-10-22  Bruno Haible  <bruno@clisp.org>
8235
8236         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
8237         -1u, in preprocessor expression, so that we don't test for the bug
8238         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
8239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
8240
8241 2007-10-22  Eric Blake  <ebb9@byu.net>
8242
8243         * tests/test-yesno.sh: Silence stderr during test.
8244
8245 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8246
8247         * modules/crypto/gc-camellia: New file.
8248
8249         * m4/gc-camellia.m4: New file.
8250
8251         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
8252
8253         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
8254
8255 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8256
8257         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
8258         --help to stdout.  Reported by sms@antinode.org (Steven
8259         M. Schweda).
8260
8261 2007-10-22  Simon Josefsson  <simon@josefsson.org>
8262
8263         * users.txt: Fix link to libksba.
8264
8265 2007-10-21  Ben Pfaff  <blp@gnu.org>
8266
8267         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
8268         round.c roundf implementation that depends on floorf and ceilf to
8269         be tested unconditionally.
8270
8271 2007-10-21  Ben Pfaff  <blp@gnu.org>
8272
8273         * m4/check-libm-func.m4: Removed.
8274         * m4/check-math-lib.m4: New file.
8275         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
8276         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
8277         definition and lack of AC_LIBOBJ([roundf]).
8278         * m4/roundl.m4: Ditto, and similarly for roundl.
8279         * modules/round: Reference new m4 file.
8280         * modules/roundf: Ditto.
8281         * modules/roundl: Ditto.
8282         * tests/test-round2.c (main): Use ROUND instead of round.
8283         Bug report from Bruno Haible.
8284
8285 2007-10-21  Bruno Haible  <bruno@clisp.org>
8286
8287         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
8288         context.
8289
8290 2007-10-21  Bruno Haible  <bruno@clisp.org>
8291
8292         * tests/test-wcwidth.c (main): Allow negative result for some control
8293         characters.
8294
8295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
8296         Needed on OSF/1 5.1.
8297
8298 2007-10-21  Bruno Haible  <bruno@clisp.org>
8299
8300         * tests/test-floorf1.c: Include isnanf.h.
8301         (main): Use isnanf() instead of isnan().
8302         * tests/test-ceilf1.c: Include isnanf.h.
8303         (main): Use isnanf() instead of isnan().
8304         * tests/test-truncf1.c: Include isnanf.h.
8305         (main): Use isnanf() instead of isnan().
8306         * tests/test-roundf1.c: Include isnanf.h.
8307         (main): Use isnanf() instead of isnan().
8308
8309 2007-10-21  Eric Blake  <ebb9@byu.net>
8310
8311         * users.txt: Update URL for m4.
8312
8313 2007-10-21  Bruno Haible  <bruno@clisp.org>
8314
8315         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
8316
8317 2007-10-21  Bruno Haible  <bruno@clisp.org>
8318
8319         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
8320         Git's management files if the CVS files are not present.
8321
8322 2007-10-20  Bruno Haible  <bruno@clisp.org>
8323
8324         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
8325         gcc-3.4.x.
8326
8327 2007-10-20  Ben Pfaff  <blp@gnu.org>
8328
8329         * lib/math.in.h: Declare round, roundf, roundl if we are providing
8330         implementations.
8331         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
8332         * lib/round.c: New file.
8333         * lib/roundf.c: New file.
8334         * lib/roundl.c: New file.
8335         * m4/round.m4: New file.
8336         * m4/roundf.m4: New file.
8337         * m4/roundl.m4: New file.
8338         * m4/check-libm-func-m4: New file.
8339         * modules/math: Replace round, roundf, roundl related @VARS@ in
8340         math.in.h.
8341         * modules/round: New file.
8342         * modules/round-tests: New file.
8343         * modules/roundf: New file.
8344         * modules/roundf-tests: New file.
8345         * modules/roundl: New file.
8346         * modules/roundl-tests: New file.
8347         * tests/test-round1.c: New file.
8348         * tests/test-round2.c: New file.
8349         * tests/test-roundf1.c: New file.
8350         * tests/test-roundf2.c: New file.
8351         * tests/test-roundl.c: New file.
8352         * doc/functions/round.texi: Mention round module.
8353         * doc/functions/roundf.texi: Mention roundf module.
8354         * doc/functions/roundl.texi: Mention roundl module.
8355         * MODULES.html.sh: Mention new modules.
8356         Thanks to Bruno Haible for suggestions.
8357
8358 2007-10-20  Jim Meyering  <meyering@redhat.com>
8359
8360         * lib/xprintf.c: Include <config.h> unconditionally.
8361
8362         Change xprintf's license to GPL.
8363         * modules/xprintf (License): s/LGPL/GPL/, since this module
8364         depends on modules (exit and exitfail) which are GPL.
8365         Suggestion from Bruno Haible.
8366
8367         xprintf fixes.
8368         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
8369         Use a clearer diagnostic.
8370         Patch from Bruno Haible.
8371
8372 2007-10-20  Bruno Haible  <bruno@clisp.org>
8373
8374         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
8375         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
8376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8377
8378 2007-10-20  Bruno Haible  <bruno@clisp.org>
8379
8380         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
8381         precision in the comparison result > x - 1 or similar.
8382         * tests/test-ceilf2.c (correct_result_p): Likewise.
8383         * tests/test-truncf2.c (correct_result_p): Likewise.
8384         * tests/test-trunc2.c (correct_result_p): Likewise.
8385         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8386
8387 2007-10-20  Bruno Haible  <bruno@clisp.org>
8388
8389         * modules/ceil: New file.
8390         * m4/ceil.m4: New file.
8391         * doc/functions/ceil.texi: Mention the 'ceil' module.
8392
8393 2007-10-20  Bruno Haible  <bruno@clisp.org>
8394
8395         * modules/floor: New file.
8396         * m4/floor.m4: New file.
8397         * doc/functions/floor.texi: Mention the 'floor' module.
8398
8399 2007-10-20  Bruno Haible  <bruno@clisp.org>
8400
8401         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
8402         of %a.
8403         * modules/floorf-tests (Depends-on): Likewise.
8404         * modules/truncf-tests (Depends-on): Likewise.
8405         * modules/trunc-tests (Depends-on): Likewise.
8406         Reported by Ben Pfaff.
8407
8408 2007-10-19  Jim Meyering  <meyering@redhat.com>
8409
8410         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
8411         Don't bother testing specific errno values.  Just test ferror.
8412
8413         New module: xprintf
8414         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
8415
8416 2007-10-19  Bruno Haible  <bruno@clisp.org>
8417
8418         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
8419         syntax.
8420         * modules/javaexec (Makefile.am): Likewise.
8421         * modules/relocatable-prog (Makefile.am): Likewise.
8422         Suggested by Jim Meyering.
8423
8424 2007-10-18  Bruno Haible  <bruno@clisp.org>
8425
8426         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8427         Reported by Jim Meyering.
8428
8429 2007-10-18  Eric Blake  <ebb9@byu.net>
8430
8431         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8432
8433 2007-10-18  Bruno Haible  <bruno@clisp.org>
8434
8435         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8436         the format string into writable memory. Needed in Fortify conditions.
8437
8438 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8439             Bruno Haible  <bruno@clisp.org>
8440
8441         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8442         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8443         * modules/trim (Depends-on): Add mbchar.
8444         (configure.ac): Add gl_FUNC_MBRTOWC.
8445         (Makefile.am): Augment lib_SOURCES.
8446
8447 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8448
8449         Modify glob.c to use fstatat and dirfd, to simplify it.
8450         Suggested by Eric Blake.
8451         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8452         Don't include <stdbool.h>; not used.
8453         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8454         (link_exists_p): Simplify implementation, since we can now assume
8455         dirfd and fstatat.
8456         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8457
8458 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8459
8460         * gnulib-tool (func_get_dependencies): Fix sed script to
8461         match only tests.
8462
8463 2007-10-17  Bruno Haible  <bruno@clisp.org>
8464
8465         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8466         allow locale names without encoding suffix.
8467         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8468         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8469
8470 2007-10-16  Bruno Haible  <bruno@clisp.org>
8471
8472         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8473         * lib/getgroups.c (getgroups): Likewise.
8474         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8475
8476 2007-10-16  Bruno Haible  <bruno@clisp.org>
8477
8478         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8479         * modules/malloc-posix (License): Likewise.
8480         * modules/realloc-posix (License): Likewise.
8481         * modules/calloc-posix (License): Likewise.
8482         * modules/intprops (License): Change from GPL to LGPL, with
8483         Paul Eggert's approval.
8484
8485 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8486
8487         Merge glibc changes into lib/glob.c.
8488
8489         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8490         2007-10-15 04:59:03 UTC.  Here are the changes:
8491
8492         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8493
8494         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8495
8496         * lib/glob.c: Add some branch prediction throughout.
8497
8498         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8499
8500         [BZ #5103]
8501         * lib/glob.c (glob): Recognize patterns starting \/.
8502
8503         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8504
8505         [BZ #3996]
8506         * lib/glob.c (attribute_hidden): Define if not defined.
8507         (glob): Unescape dirname, filename or username when needed and not
8508         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8509         is NULL.  Handle unescaped [ in pattern without closing ].
8510         Don't pass GLOB_CHECK down to recursive glob for directories.
8511         (__glob_pattern_type): New function.
8512         (__glob_pattern_p): Implement using __glob_pattern_type.
8513         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8514         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8515         Remove unreachable code.
8516
8517         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8518
8519         * lib/glob.c (glob_in_dir): Add some comments and asserts to
8520         explain why there are no leaks.
8521
8522         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8523
8524         [BZ #3253]
8525         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8526         time, rather allocate increasingly bigger arrays of pointers, if
8527         possible with alloca, if too large with malloc.
8528
8529 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8530
8531         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8532         Problem reported by H.Merijn Brand in
8533         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8534         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
8535         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8536
8537 2007-10-15  Bruno Haible  <bruno@clisp.org>
8538
8539         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8540         with explicit rpl_ prefix.
8541         * lib/fopen.c (fopen): Likewise.
8542         * lib/freopen.c (freopen): Likewise.
8543         * lib/iconv.c (iconv): Likewise.
8544         * lib/iconv_close.c (iconv_close): Likewise.
8545
8546 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8547
8548         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8549
8550 2007-10-15  Bruno Haible  <bruno@clisp.org>
8551
8552         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8553         <stddef.h> instead of <stdlib.h> since we only need NULL.
8554         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8555
8556 2007-10-15  Bruno Haible  <bruno@clisp.org>
8557
8558         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
8559         Replace paragraph talking about LIBOBJS.
8560         Reported by Colin Watson <cjwatson@debian.org>.
8561
8562 2007-10-15  Bruno Haible  <bruno@clisp.org>
8563
8564         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
8565         <stdlib.h> before using NULL.
8566
8567 2007-10-15  Simon Josefsson  <simon@josefsson.org>
8568
8569         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
8570         Reported by Albert Chin <china@thewrittenword.com>.
8571
8572 2007-10-14  Bruno Haible  <bruno@clisp.org>
8573
8574         * modules/iconv_open-utf-tests: New file.
8575         * tests/test-iconv-utf.c: New file.
8576
8577         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
8578         * modules/iconv_open-utf: New file.
8579         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
8580         (iconv, iconv_close): New declarations.
8581         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
8582         be defined.
8583         (iconv_open): Add special handling of conversion between UTF-8 and
8584         UTF-{16,32}{BE,LE}.
8585         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
8586         * lib/iconv_close.c: New file.
8587         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
8588         gl_FUNC_ICONV_OPEN.
8589         (gl_FUNC_ICONV_OPEN): Use it.
8590         (gl_FUNC_ICONV_OPEN_UTF): New macro.
8591         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
8592         and REPLACE_ICONV_UTF.
8593         * modules/iconv_open (Depends-on): Add c-strcase.
8594         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
8595         ICONV_CONST.
8596         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
8597
8598 2007-10-13  Albert Chin  <china@thewrittenword.com>
8599             Bruno Haible  <bruno@clisp.org>
8600
8601         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
8602         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
8603
8604 2007-10-13  Bruno Haible  <bruno@clisp.org>
8605
8606         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
8607         defined, use the ISO C99 inline semantics.
8608         * lib/argp.h (ARGP_EI): Likewise.
8609
8610 2007-10-13  Bruno Haible  <bruno@clisp.org>
8611
8612         Handle 'inline' change in gcc 4.3.0.
8613         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
8614         argp_fmtstream_write, argp_fmtstream_set_lmargin,
8615         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
8616         argp_fmtstream_point): Disable 'extern' declaration if the function
8617         definition is going to be provided inline.
8618         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
8619         semantics, not the ISO C99 inline semantics.
8620         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
8621         'extern' declaration if the function definition is going to be provided
8622         inline.
8623         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
8624         the GNU C inline semantics, not the ISO C99 inline semantics. With
8625         GCC 4.2, avoid a warning.
8626
8627 2007-10-13  Bruno Haible  <bruno@clisp.org>
8628
8629         * lib/freading.h (freading): Enable the use of __freading for
8630         glibc >= 2.7.
8631         * lib/freading.c (freading): Likewise.
8632
8633 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8634
8635         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
8636         "warning: C99 inline functions are not supported; using GNU89".
8637
8638 2007-10-12  Bruno Haible  <bruno@clisp.org>
8639
8640         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
8641         of 2.
8642         * tests/test-ceilf2.c: New file.
8643         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
8644
8645         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
8646         * modules/ceilf-tests: Update.
8647
8648 2007-10-12  Bruno Haible  <bruno@clisp.org>
8649
8650         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
8651         of 2.
8652         * tests/test-floorf2.c: New file.
8653         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
8654
8655         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
8656         * modules/floorf-tests: Update.
8657
8658 2007-10-12  Bruno Haible  <bruno@clisp.org>
8659
8660         * tests/test-trunc2.c: New file.
8661         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
8662
8663         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
8664         * modules/trunc-tests: Update.
8665
8666 2007-10-12  Bruno Haible  <bruno@clisp.org>
8667
8668         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
8669         of 2.
8670         * tests/test-truncf2.c: New file.
8671         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
8672
8673         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
8674         * modules/truncf-tests: Update.
8675
8676 2007-10-11  Eric Blake  <ebb9@byu.net>
8677
8678         Don't claim strerror is broken on Interix.
8679         * doc/functions/strerror.texi (strerror): Known broken systems are
8680         now Solaris 8, and not Interix.
8681         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
8682         Interix on cross-compile.
8683         Reported by Martin Koeppe in
8684         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
8685
8686 2007-10-11  Bruno Haible  <bruno@clisp.org>
8687
8688         * modules/i-ring-tests: New file.
8689         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
8690         instead of assert.
8691
8692 2007-10-11  Bruno Haible  <bruno@clisp.org>
8693
8694         * modules/filenamecat-tests: New file.
8695         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
8696         * lib/filenamecat.c: Remove test code.
8697
8698 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8699
8700         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
8701
8702         * lib/strerror.c: Include <string.h> always, to test interface,
8703         and to remove the need for the dummy.
8704         Include intprops.h to compute width instead of doing it ourselves
8705         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
8706         (strerror): Define it to return NULL if there's no system strerror.
8707         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
8708         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
8709         ancient pre-strerror Unix systems well any more.  Saying "unknown
8710         system error" is enough.
8711         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
8712         simpler strerror.c implementation.
8713         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
8714         Simplify the tests to reflect the simpler strerror implementation.
8715         * modules/strerror (Depends-on): Add intprops.
8716
8717 2007-10-09  Eric Blake  <ebb9@byu.net>
8718
8719         Silence test-fpending.
8720         * modules/fpending-tests (Files): Add wrapper script.
8721         * tests/test-fpending.sh: New file.
8722
8723 2007-10-09  Bruno Haible  <bruno@clisp.org>
8724
8725         * MODULES.html.sh (func_module): Don't create a hyperlink for
8726         function names like 'printf_frexp'.
8727         (Misc): Add crc, memxor.
8728         (Characteristics of floating types): New section.
8729         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
8730         isnanf-nolibm, signbit, trunc, truncf, truncl.
8731         (Enhancements for ISO C 99 functions): New subsection Input/output.
8732         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
8733         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
8734         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
8735         (Compatibility checks for POSIX:2001 functions): Add clock-time.
8736         (Enhancements for POSIX:2001 functions): Add chdir-long.
8737         (File system functions): Add areadlink, chdir-safer, read-file.
8738         Remove cycle-check.
8739         (File system as inode set): New section.
8740         (Date and time): Add gethrxtime.
8741         (Multithreading): Add openmp.
8742         (Internationalization functions): Add localename.
8743         (Unicode string functions): Add unistr/u*-mbsnlen.
8744         (Support for maintaining and releasing projects): Add git-version-gen.
8745         (Lone files): Remove directories.
8746
8747 2007-10-08  Ben Pfaff  <blp@gnu.org>
8748
8749         * lib/xmalloca.h: Fix typo in comment.
8750
8751 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8752
8753         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
8754         when avoiding problems with integer overflow.  Use a portable test
8755         instead.
8756
8757 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8758
8759         * modules/dummy (License): Change to LGPLv2+.
8760         * modules/float (License): Likewise
8761         * modules/realloc (License): Likewise
8762         * modules/stdlib (License): Likewise
8763
8764 2007-10-07  Bruno Haible  <bruno@clisp.org>
8765
8766         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
8767         * floor.c (TWO_MANT_DIG): Likewise.
8768         * ceil.c (TWO_MANT_DIG): Likewise.
8769         Reported by Ben Pfaff.
8770
8771 2007-10-07  Bruno Haible  <bruno@clisp.org>
8772
8773         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
8774         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
8775         * lib/frexp.c (FUNC): Likewise.
8776         * lib/printf-frexp.h (printf_frexp): Likewise.
8777         * lib/printf-frexpl.h (printf_frexpl): Likewise.
8778         * lib/printf-frexp.c (FUNC): Likewise.
8779         Suggested by Jim Meyering.
8780
8781 2007-10-07  Jim Meyering  <meyering@redhat.com>
8782
8783         Make xnanosleep's integer overflow test more robust.
8784         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
8785         so that gcc-4.3.0 doesn't optimize away this test for overflow.
8786
8787 2007-10-07  Bruno Haible  <bruno@clisp.org>
8788
8789         * NEWS: Mention the license change.
8790
8791         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
8792         abbreviations in the modules files.
8793
8794         Change copyright notice from GPLv2+ to GPLv3+.
8795         * README: Change copyright notice.
8796         * MODULES.html.sh: Likewise.
8797         * build-aux/bootstrap.conf: Likewise.
8798         * build-aux/config.libpath: Likewise.
8799         * build-aux/csharpcomp.sh.in: Likewise.
8800         * build-aux/csharpexec.sh.in: Likewise.
8801         * build-aux/install-reloc: Likewise.
8802         * build-aux/javacomp.sh.in: Likewise.
8803         * build-aux/javaexec.sh.in: Likewise.
8804         * build-aux/ldd.sh.in: Likewise.
8805         * build-aux/reloc-ldflags: Likewise.
8806         * build-aux/relocatable.sh.in: Likewise.
8807         * build-aux/x-to-1.in: Likewise.
8808         * check-module: Likewise.
8809         * config/srclistvars.sh: Likewise.
8810         * gnulib-tool: Likewise.
8811         * lib/acl-internal.h: Likewise.
8812         * lib/acl.c: Likewise.
8813         * lib/acl.h: Likewise.
8814         * lib/acl_entries.c: Likewise.
8815         * lib/areadlink-with-size.c: Likewise.
8816         * lib/areadlink.c: Likewise.
8817         * lib/areadlink.h: Likewise.
8818         * lib/argmatch.c: Likewise.
8819         * lib/argmatch.h: Likewise.
8820         * lib/argp-ba.c: Likewise.
8821         * lib/argp-eexst.c: Likewise.
8822         * lib/argp-fmtstream.c: Likewise.
8823         * lib/argp-fmtstream.h: Likewise.
8824         * lib/argp-fs-xinl.c: Likewise.
8825         * lib/argp-help.c: Likewise.
8826         * lib/argp-namefrob.h: Likewise.
8827         * lib/argp-parse.c: Likewise.
8828         * lib/argp-pin.c: Likewise.
8829         * lib/argp-pv.c: Likewise.
8830         * lib/argp-pvh.c: Likewise.
8831         * lib/argp-xinl.c: Likewise.
8832         * lib/argp.h: Likewise.
8833         * lib/at-func.c: Likewise.
8834         * lib/atanl.c: Likewise.
8835         * lib/backupfile.c: Likewise.
8836         * lib/backupfile.h: Likewise.
8837         * lib/basename.c: Likewise.
8838         * lib/binary-io.h: Likewise.
8839         * lib/byteswap.in.h: Likewise.
8840         * lib/c-stack.c: Likewise.
8841         * lib/c-stack.h: Likewise.
8842         * lib/c-strcasestr.c: Likewise.
8843         * lib/c-strcasestr.h: Likewise.
8844         * lib/c-strstr.c: Likewise.
8845         * lib/c-strstr.h: Likewise.
8846         * lib/c-strtod.c: Likewise.
8847         * lib/calloc.c: Likewise.
8848         * lib/canon-host.c: Likewise.
8849         * lib/canon-host.h: Likewise.
8850         * lib/canonicalize-lgpl.c: Likewise.
8851         * lib/canonicalize.c: Likewise.
8852         * lib/canonicalize.h: Likewise.
8853         * lib/ceil.c: Likewise.
8854         * lib/ceilf.c: Likewise.
8855         * lib/ceill.c: Likewise.
8856         * lib/chdir-long.c: Likewise.
8857         * lib/chdir-long.h: Likewise.
8858         * lib/chdir-safer.c: Likewise.
8859         * lib/chdir-safer.h: Likewise.
8860         * lib/chown.c: Likewise.
8861         * lib/classpath.c: Likewise.
8862         * lib/classpath.h: Likewise.
8863         * lib/clean-temp.c: Likewise.
8864         * lib/clean-temp.h: Likewise.
8865         * lib/cloexec.c: Likewise.
8866         * lib/close-stream.c: Likewise.
8867         * lib/closein.c: Likewise.
8868         * lib/closein.h: Likewise.
8869         * lib/closeout.c: Likewise.
8870         * lib/closeout.h: Likewise.
8871         * lib/concat-filename.c: Likewise.
8872         * lib/copy-file.c: Likewise.
8873         * lib/copy-file.h: Likewise.
8874         * lib/count-one-bits.h: Likewise.
8875         * lib/crc.c: Likewise.
8876         * lib/crc.h: Likewise.
8877         * lib/creat-safer.c: Likewise.
8878         * lib/csharpcomp.c: Likewise.
8879         * lib/csharpcomp.h: Likewise.
8880         * lib/csharpexec.c: Likewise.
8881         * lib/csharpexec.h: Likewise.
8882         * lib/cycle-check.c: Likewise.
8883         * lib/cycle-check.h: Likewise.
8884         * lib/diacrit.c: Likewise.
8885         * lib/diacrit.h: Likewise.
8886         * lib/diffseq.h: Likewise.
8887         * lib/dirchownmod.c: Likewise.
8888         * lib/dirent.in.h: Likewise.
8889         * lib/dirfd.c: Likewise.
8890         * lib/dirfd.h: Likewise.
8891         * lib/dirname.c: Likewise.
8892         * lib/dirname.h: Likewise.
8893         * lib/dummy.c: Likewise.
8894         * lib/dup-safer.c: Likewise.
8895         * lib/dup2.c: Likewise.
8896         * lib/eealloc.h: Likewise.
8897         * lib/error.c: Likewise.
8898         * lib/error.h: Likewise.
8899         * lib/euidaccess.c: Likewise.
8900         * lib/exclude.c: Likewise.
8901         * lib/exclude.h: Likewise.
8902         * lib/execute.c: Likewise.
8903         * lib/execute.h: Likewise.
8904         * lib/exitfail.c: Likewise.
8905         * lib/exitfail.h: Likewise.
8906         * lib/expl.c: Likewise.
8907         * lib/fatal-signal.c: Likewise.
8908         * lib/fatal-signal.h: Likewise.
8909         * lib/fbufmode.c: Likewise.
8910         * lib/fbufmode.h: Likewise.
8911         * lib/fchdir.c: Likewise.
8912         * lib/fchmodat.c: Likewise.
8913         * lib/fchownat.c: Likewise.
8914         * lib/fcntl--.h: Likewise.
8915         * lib/fcntl-safer.h: Likewise.
8916         * lib/fcntl.in.h: Likewise.
8917         * lib/fd-safer.c: Likewise.
8918         * lib/fflush.c: Likewise.
8919         * lib/file-has-acl.c: Likewise.
8920         * lib/file-set.c: Likewise.
8921         * lib/file-type.c: Likewise.
8922         * lib/file-type.h: Likewise.
8923         * lib/fileblocks.c: Likewise.
8924         * lib/filemode.c: Likewise.
8925         * lib/filemode.h: Likewise.
8926         * lib/filename.h: Likewise.
8927         * lib/filenamecat.c: Likewise.
8928         * lib/filenamecat.h: Likewise.
8929         * lib/findprog.c: Likewise.
8930         * lib/findprog.h: Likewise.
8931         * lib/float.in.h: Likewise.
8932         * lib/floor.c: Likewise.
8933         * lib/floorf.c: Likewise.
8934         * lib/floorl.c: Likewise.
8935         * lib/fopen-safer.c: Likewise.
8936         * lib/fopen.c: Likewise.
8937         * lib/fpending.c: Likewise.
8938         * lib/fpending.h: Likewise.
8939         * lib/fprintf.c: Likewise.
8940         * lib/fprintftime.h: Likewise.
8941         * lib/fpucw.h: Likewise.
8942         * lib/fpurge.c: Likewise.
8943         * lib/fpurge.h: Likewise.
8944         * lib/freadable.c: Likewise.
8945         * lib/freadable.h: Likewise.
8946         * lib/freadahead.c: Likewise.
8947         * lib/freadahead.h: Likewise.
8948         * lib/freading.c: Likewise.
8949         * lib/freading.h: Likewise.
8950         * lib/free.c: Likewise.
8951         * lib/freopen.c: Likewise.
8952         * lib/frexp.c: Likewise.
8953         * lib/frexpl.c: Likewise.
8954         * lib/fseek.c: Likewise.
8955         * lib/fseterr.c: Likewise.
8956         * lib/fseterr.h: Likewise.
8957         * lib/fstatat.c: Likewise.
8958         * lib/fstrcmp.c: Likewise.
8959         * lib/fstrcmp.h: Likewise.
8960         * lib/fsusage.c: Likewise.
8961         * lib/fsusage.h: Likewise.
8962         * lib/ftell.c: Likewise.
8963         * lib/ftello.c: Likewise.
8964         * lib/fts-cycle.c: Likewise.
8965         * lib/fts.c: Likewise.
8966         * lib/fts_.h: Likewise.
8967         * lib/full-read.c: Likewise.
8968         * lib/full-read.h: Likewise.
8969         * lib/full-write.c: Likewise.
8970         * lib/full-write.h: Likewise.
8971         * lib/fwritable.c: Likewise.
8972         * lib/fwritable.h: Likewise.
8973         * lib/fwriteerror.c: Likewise.
8974         * lib/fwriteerror.h: Likewise.
8975         * lib/fwriting.c: Likewise.
8976         * lib/fwriting.h: Likewise.
8977         * lib/gcd.c: Likewise.
8978         * lib/gcd.h: Likewise.
8979         * lib/getcwd.c: Likewise.
8980         * lib/getdate.h: Likewise.
8981         * lib/getdate.y: Likewise.
8982         * lib/getdomainname.c: Likewise.
8983         * lib/getdomainname.h: Likewise.
8984         * lib/getgroups.c: Likewise.
8985         * lib/gethostname.c: Likewise.
8986         * lib/gethrxtime.c: Likewise.
8987         * lib/gethrxtime.h: Likewise.
8988         * lib/getloadavg.c: Likewise.
8989         * lib/getndelim2.c: Likewise.
8990         * lib/getndelim2.h: Likewise.
8991         * lib/getnline.c: Likewise.
8992         * lib/getnline.h: Likewise.
8993         * lib/getopt.c: Likewise.
8994         * lib/getopt.in.h: Likewise.
8995         * lib/getopt1.c: Likewise.
8996         * lib/getopt_int.h: Likewise.
8997         * lib/getpagesize.h: Likewise.
8998         * lib/getsubopt.c: Likewise.
8999         * lib/gettime.c: Likewise.
9000         * lib/getugroups.c: Likewise.
9001         * lib/getugroups.h: Likewise.
9002         * lib/getusershell.c: Likewise.
9003         * lib/gl_anyavltree_list1.h: Likewise.
9004         * lib/gl_anyavltree_list2.h: Likewise.
9005         * lib/gl_anyhash_list1.h: Likewise.
9006         * lib/gl_anyhash_list2.h: Likewise.
9007         * lib/gl_anylinked_list1.h: Likewise.
9008         * lib/gl_anylinked_list2.h: Likewise.
9009         * lib/gl_anyrbtree_list1.h: Likewise.
9010         * lib/gl_anyrbtree_list2.h: Likewise.
9011         * lib/gl_anytree_list1.h: Likewise.
9012         * lib/gl_anytree_list2.h: Likewise.
9013         * lib/gl_anytree_oset.h: Likewise.
9014         * lib/gl_anytreehash_list1.h: Likewise.
9015         * lib/gl_anytreehash_list2.h: Likewise.
9016         * lib/gl_array_list.c: Likewise.
9017         * lib/gl_array_list.h: Likewise.
9018         * lib/gl_array_oset.c: Likewise.
9019         * lib/gl_array_oset.h: Likewise.
9020         * lib/gl_avltree_list.c: Likewise.
9021         * lib/gl_avltree_list.h: Likewise.
9022         * lib/gl_avltree_oset.c: Likewise.
9023         * lib/gl_avltree_oset.h: Likewise.
9024         * lib/gl_avltreehash_list.c: Likewise.
9025         * lib/gl_avltreehash_list.h: Likewise.
9026         * lib/gl_carray_list.c: Likewise.
9027         * lib/gl_carray_list.h: Likewise.
9028         * lib/gl_linked_list.c: Likewise.
9029         * lib/gl_linked_list.h: Likewise.
9030         * lib/gl_linkedhash_list.c: Likewise.
9031         * lib/gl_linkedhash_list.h: Likewise.
9032         * lib/gl_list.c: Likewise.
9033         * lib/gl_list.h: Likewise.
9034         * lib/gl_oset.c: Likewise.
9035         * lib/gl_oset.h: Likewise.
9036         * lib/gl_rbtree_list.c: Likewise.
9037         * lib/gl_rbtree_list.h: Likewise.
9038         * lib/gl_rbtree_oset.c: Likewise.
9039         * lib/gl_rbtree_oset.h: Likewise.
9040         * lib/gl_rbtreehash_list.c: Likewise.
9041         * lib/gl_rbtreehash_list.h: Likewise.
9042         * lib/gl_sublist.c: Likewise.
9043         * lib/gl_sublist.h: Likewise.
9044         * lib/group-member.c: Likewise.
9045         * lib/group-member.h: Likewise.
9046         * lib/hard-locale.c: Likewise.
9047         * lib/hard-locale.h: Likewise.
9048         * lib/hash-pjw.c: Likewise.
9049         * lib/hash-pjw.h: Likewise.
9050         * lib/hash-triple.c: Likewise.
9051         * lib/hash.c: Likewise.
9052         * lib/hash.h: Likewise.
9053         * lib/human.c: Likewise.
9054         * lib/human.h: Likewise.
9055         * lib/i-ring.c: Likewise.
9056         * lib/i-ring.h: Likewise.
9057         * lib/idcache.c: Likewise.
9058         * lib/imaxabs.c: Likewise.
9059         * lib/imaxdiv.c: Likewise.
9060         * lib/inet_pton.c: Likewise.
9061         * lib/inet_pton.h: Likewise.
9062         * lib/intprops.h: Likewise.
9063         * lib/inttostr.c: Likewise.
9064         * lib/inttostr.h: Likewise.
9065         * lib/inttypes.in.h: Likewise.
9066         * lib/isapipe.c: Likewise.
9067         * lib/isdir.c: Likewise.
9068         * lib/isnan.c: Likewise.
9069         * lib/isnan.h: Likewise.
9070         * lib/isnanf.c: Likewise.
9071         * lib/isnanf.h: Likewise.
9072         * lib/isnanl-nolibm.h: Likewise.
9073         * lib/isnanl.c: Likewise.
9074         * lib/isnanl.h: Likewise.
9075         * lib/javacomp.c: Likewise.
9076         * lib/javacomp.h: Likewise.
9077         * lib/javaexec.c: Likewise.
9078         * lib/javaexec.h: Likewise.
9079         * lib/javaversion.c: Likewise.
9080         * lib/javaversion.h: Likewise.
9081         * lib/javaversion.java: Likewise.
9082         * lib/lbrkprop.h: Likewise.
9083         * lib/lchmod.h: Likewise.
9084         * lib/lchown.c: Likewise.
9085         * lib/ldexpl.c: Likewise.
9086         * lib/linebreak.c: Likewise.
9087         * lib/linebreak.h: Likewise.
9088         * lib/linebuffer.c: Likewise.
9089         * lib/linebuffer.h: Likewise.
9090         * lib/locale.in.h: Likewise.
9091         * lib/logl.c: Likewise.
9092         * lib/long-options.c: Likewise.
9093         * lib/long-options.h: Likewise.
9094         * lib/lstat.c: Likewise.
9095         * lib/lstat.h: Likewise.
9096         * lib/math.in.h: Likewise.
9097         * lib/mbchar.c: Likewise.
9098         * lib/mbchar.h: Likewise.
9099         * lib/mbfile.h: Likewise.
9100         * lib/mbiter.h: Likewise.
9101         * lib/mbscasecmp.c: Likewise.
9102         * lib/mbscasestr.c: Likewise.
9103         * lib/mbschr.c: Likewise.
9104         * lib/mbscspn.c: Likewise.
9105         * lib/mbslen.c: Likewise.
9106         * lib/mbsncasecmp.c: Likewise.
9107         * lib/mbsnlen.c: Likewise.
9108         * lib/mbspbrk.c: Likewise.
9109         * lib/mbspcasecmp.c: Likewise.
9110         * lib/mbsrchr.c: Likewise.
9111         * lib/mbssep.c: Likewise.
9112         * lib/mbsspn.c: Likewise.
9113         * lib/mbsstr.c: Likewise.
9114         * lib/mbstok_r.c: Likewise.
9115         * lib/mbswidth.c: Likewise.
9116         * lib/mbswidth.h: Likewise.
9117         * lib/mbuiter.h: Likewise.
9118         * lib/memcasecmp.c: Likewise.
9119         * lib/memcasecmp.h: Likewise.
9120         * lib/memchr.c: Likewise.
9121         * lib/memcmp.c: Likewise.
9122         * lib/memcoll.c: Likewise.
9123         * lib/memcoll.h: Likewise.
9124         * lib/memcpy.c: Likewise.
9125         * lib/memrchr.c: Likewise.
9126         * lib/mkancesdirs.c: Likewise.
9127         * lib/mkdir-p.c: Likewise.
9128         * lib/mkdir-p.h: Likewise.
9129         * lib/mkdir.c: Likewise.
9130         * lib/mkdirat.c: Likewise.
9131         * lib/mkdtemp.c: Likewise.
9132         * lib/mkstemp-safer.c: Likewise.
9133         * lib/mkstemp.c: Likewise.
9134         * lib/modechange.c: Likewise.
9135         * lib/modechange.h: Likewise.
9136         * lib/mountlist.c: Likewise.
9137         * lib/mountlist.h: Likewise.
9138         * lib/mpsort.c: Likewise.
9139         * lib/nanosleep.c: Likewise.
9140         * lib/obstack.c: Likewise.
9141         * lib/obstack.h: Likewise.
9142         * lib/open-safer.c: Likewise.
9143         * lib/open.c: Likewise.
9144         * lib/openat-die.c: Likewise.
9145         * lib/openat-priv.h: Likewise.
9146         * lib/openat-proc.c: Likewise.
9147         * lib/openat.c: Likewise.
9148         * lib/openat.h: Likewise.
9149         * lib/pagealign_alloc.c: Likewise.
9150         * lib/pagealign_alloc.h: Likewise.
9151         * lib/physmem.c: Likewise.
9152         * lib/physmem.h: Likewise.
9153         * lib/pipe-safer.c: Likewise.
9154         * lib/pipe.c: Likewise.
9155         * lib/pipe.h: Likewise.
9156         * lib/posixtm.c: Likewise.
9157         * lib/posixtm.h: Likewise.
9158         * lib/posixver.c: Likewise.
9159         * lib/printf-frexp.c: Likewise.
9160         * lib/printf-frexp.h: Likewise.
9161         * lib/printf-frexpl.c: Likewise.
9162         * lib/printf-frexpl.h: Likewise.
9163         * lib/printf.c: Likewise.
9164         * lib/progname.c: Likewise.
9165         * lib/progname.h: Likewise.
9166         * lib/progreloc.c: Likewise.
9167         * lib/putenv.c: Likewise.
9168         * lib/quote.c: Likewise.
9169         * lib/quote.h: Likewise.
9170         * lib/quotearg.c: Likewise.
9171         * lib/quotearg.h: Likewise.
9172         * lib/raise.c: Likewise.
9173         * lib/readline.c: Likewise.
9174         * lib/readline.h: Likewise.
9175         * lib/readlink.c: Likewise.
9176         * lib/readtokens.c: Likewise.
9177         * lib/readtokens.h: Likewise.
9178         * lib/readtokens0.c: Likewise.
9179         * lib/readtokens0.h: Likewise.
9180         * lib/readutmp.c: Likewise.
9181         * lib/readutmp.h: Likewise.
9182         * lib/realloc.c: Likewise.
9183         * lib/relocwrapper.c: Likewise.
9184         * lib/rename-dest-slash.c: Likewise.
9185         * lib/rename.c: Likewise.
9186         * lib/rmdir.c: Likewise.
9187         * lib/rpmatch.c: Likewise.
9188         * lib/safe-read.c: Likewise.
9189         * lib/safe-read.h: Likewise.
9190         * lib/safe-write.c: Likewise.
9191         * lib/safe-write.h: Likewise.
9192         * lib/same-inode.h: Likewise.
9193         * lib/same.c: Likewise.
9194         * lib/same.h: Likewise.
9195         * lib/save-cwd.c: Likewise.
9196         * lib/save-cwd.h: Likewise.
9197         * lib/savedir.c: Likewise.
9198         * lib/savedir.h: Likewise.
9199         * lib/savewd.c: Likewise.
9200         * lib/savewd.h: Likewise.
9201         * lib/search.in.h: Likewise.
9202         * lib/setenv.c: Likewise.
9203         * lib/setenv.h: Likewise.
9204         * lib/settime.c: Likewise.
9205         * lib/sh-quote.c: Likewise.
9206         * lib/sh-quote.h: Likewise.
9207         * lib/sig2str.c: Likewise.
9208         * lib/sig2str.h: Likewise.
9209         * lib/signal.in.h: Likewise.
9210         * lib/signbitd.c: Likewise.
9211         * lib/signbitf.c: Likewise.
9212         * lib/signbitl.c: Likewise.
9213         * lib/sigprocmask.c: Likewise.
9214         * lib/sincosl.c: Likewise.
9215         * lib/sleep.c: Likewise.
9216         * lib/sprintf.c: Likewise.
9217         * lib/sqrtl.c: Likewise.
9218         * lib/stat-time.h: Likewise.
9219         * lib/stdio--.h: Likewise.
9220         * lib/stdio-safer.h: Likewise.
9221         * lib/stdlib--.h: Likewise.
9222         * lib/stdlib-safer.h: Likewise.
9223         * lib/stdlib.in.h: Likewise.
9224         * lib/stpcpy.c: Likewise.
9225         * lib/stpncpy.c: Likewise.
9226         * lib/strchrnul.c: Likewise.
9227         * lib/strcspn.c: Likewise.
9228         * lib/strerror.c: Likewise.
9229         * lib/strftime.c: Likewise.
9230         * lib/strftime.h: Likewise.
9231         * lib/striconveh.c: Likewise.
9232         * lib/striconveh.h: Likewise.
9233         * lib/striconveha.c: Likewise.
9234         * lib/striconveha.h: Likewise.
9235         * lib/stripslash.c: Likewise.
9236         * lib/strnlen1.c: Likewise.
9237         * lib/strnlen1.h: Likewise.
9238         * lib/strtod.c: Likewise.
9239         * lib/strtoimax.c: Likewise.
9240         * lib/strtok_r.c: Likewise.
9241         * lib/strtol.c: Likewise.
9242         * lib/strtoll.c: Likewise.
9243         * lib/strtoul.c: Likewise.
9244         * lib/strtoull.c: Likewise.
9245         * lib/sysexits.in.h: Likewise.
9246         * lib/tempname.c: Likewise.
9247         * lib/tempname.h: Likewise.
9248         * lib/timespec.h: Likewise.
9249         * lib/tls.c: Likewise.
9250         * lib/tls.h: Likewise.
9251         * lib/tmpdir.c: Likewise.
9252         * lib/tmpdir.h: Likewise.
9253         * lib/tmpfile-safer.c: Likewise.
9254         * lib/tmpfile.c: Likewise.
9255         * lib/trigl.c: Likewise.
9256         * lib/trigl.h: Likewise.
9257         * lib/trim.c: Likewise.
9258         * lib/trim.h: Likewise.
9259         * lib/trunc.c: Likewise.
9260         * lib/truncf.c: Likewise.
9261         * lib/truncl.c: Likewise.
9262         * lib/tsearch.c: Likewise.
9263         * lib/unicodeio.c: Likewise.
9264         * lib/unicodeio.h: Likewise.
9265         * lib/unistd--.h: Likewise.
9266         * lib/unistd-safer.h: Likewise.
9267         * lib/unistdio/ulc-fprintf.c: Likewise.
9268         * lib/unistdio/ulc-vfprintf.c: Likewise.
9269         * lib/unlinkdir.c: Likewise.
9270         * lib/unlinkdir.h: Likewise.
9271         * lib/unlocked-io.h: Likewise.
9272         * lib/unsetenv.c: Likewise.
9273         * lib/userspec.c: Likewise.
9274         * lib/utime.c: Likewise.
9275         * lib/utimecmp.c: Likewise.
9276         * lib/utimecmp.h: Likewise.
9277         * lib/utimens.c: Likewise.
9278         * lib/verify.h: Likewise.
9279         * lib/verror.c: Likewise.
9280         * lib/verror.h: Likewise.
9281         * lib/version-etc-fsf.c: Likewise.
9282         * lib/version-etc.c: Likewise.
9283         * lib/version-etc.h: Likewise.
9284         * lib/vfprintf.c: Likewise.
9285         * lib/vprintf.c: Likewise.
9286         * lib/vsprintf.c: Likewise.
9287         * lib/w32spawn.h: Likewise.
9288         * lib/wait-process.c: Likewise.
9289         * lib/wait-process.h: Likewise.
9290         * lib/wcwidth.c: Likewise.
9291         * lib/write-any-file.c: Likewise.
9292         * lib/xalloc-die.c: Likewise.
9293         * lib/xalloc.h: Likewise.
9294         * lib/xasprintf.c: Likewise.
9295         * lib/xgetcwd.c: Likewise.
9296         * lib/xgetcwd.h: Likewise.
9297         * lib/xgetdomainname.c: Likewise.
9298         * lib/xgetdomainname.h: Likewise.
9299         * lib/xgethostname.c: Likewise.
9300         * lib/xmalloc.c: Likewise.
9301         * lib/xmalloca.c: Likewise.
9302         * lib/xmalloca.h: Likewise.
9303         * lib/xmemcoll.c: Likewise.
9304         * lib/xnanosleep.c: Likewise.
9305         * lib/xreadlink.c: Likewise.
9306         * lib/xreadlink.h: Likewise.
9307         * lib/xsetenv.c: Likewise.
9308         * lib/xsetenv.h: Likewise.
9309         * lib/xstriconv.c: Likewise.
9310         * lib/xstriconv.h: Likewise.
9311         * lib/xstrndup.c: Likewise.
9312         * lib/xstrndup.h: Likewise.
9313         * lib/xstrtod.c: Likewise.
9314         * lib/xstrtod.h: Likewise.
9315         * lib/xstrtol-error.c: Likewise.
9316         * lib/xstrtol.c: Likewise.
9317         * lib/xstrtol.h: Likewise.
9318         * lib/xtime.h: Likewise.
9319         * lib/xvasprintf.c: Likewise.
9320         * lib/xvasprintf.h: Likewise.
9321         * lib/yesno.c: Likewise.
9322         * lib/yesno.h: Likewise.
9323         * posix-modules: Likewise.
9324         * tests/test-alloca-opt.c: Likewise.
9325         * tests/test-arcfour.c: Likewise.
9326         * tests/test-arctwo.c: Likewise.
9327         * tests/test-argmatch.c: Likewise.
9328         * tests/test-argp-2.sh: Likewise.
9329         * tests/test-argp.c: Likewise.
9330         * tests/test-arpa_inet.c: Likewise.
9331         * tests/test-array_list.c: Likewise.
9332         * tests/test-array_oset.c: Likewise.
9333         * tests/test-atexit.c: Likewise.
9334         * tests/test-avltree_list.c: Likewise.
9335         * tests/test-avltree_oset.c: Likewise.
9336         * tests/test-avltreehash_list.c: Likewise.
9337         * tests/test-base64.c: Likewise.
9338         * tests/test-binary-io.c: Likewise.
9339         * tests/test-byteswap.c: Likewise.
9340         * tests/test-c-ctype.c: Likewise.
9341         * tests/test-c-strcasecmp.c: Likewise.
9342         * tests/test-c-strcasestr.c: Likewise.
9343         * tests/test-c-strncasecmp.c: Likewise.
9344         * tests/test-c-strstr.c: Likewise.
9345         * tests/test-canonicalize-lgpl.c: Likewise.
9346         * tests/test-canonicalize.c: Likewise.
9347         * tests/test-carray_list.c: Likewise.
9348         * tests/test-ceilf.c: Likewise.
9349         * tests/test-ceill.c: Likewise.
9350         * tests/test-count-one-bits.c: Likewise.
9351         * tests/test-crc.c: Likewise.
9352         * tests/test-dirname.c: Likewise.
9353         * tests/test-fbufmode.c: Likewise.
9354         * tests/test-fcntl.c: Likewise.
9355         * tests/test-fflush.c: Likewise.
9356         * tests/test-floorf.c: Likewise.
9357         * tests/test-floorl.c: Likewise.
9358         * tests/test-fopen.c: Likewise.
9359         * tests/test-fprintf-posix.c: Likewise.
9360         * tests/test-fprintf-posix.h: Likewise.
9361         * tests/test-fpurge.c: Likewise.
9362         * tests/test-freadable.c: Likewise.
9363         * tests/test-freadahead.c: Likewise.
9364         * tests/test-freading.c: Likewise.
9365         * tests/test-freopen.c: Likewise.
9366         * tests/test-frexp.c: Likewise.
9367         * tests/test-frexpl.c: Likewise.
9368         * tests/test-fseek.c: Likewise.
9369         * tests/test-fseeko.c: Likewise.
9370         * tests/test-fseterr.c: Likewise.
9371         * tests/test-fstrcmp.c: Likewise.
9372         * tests/test-ftell.c: Likewise.
9373         * tests/test-ftello.c: Likewise.
9374         * tests/test-fwritable.c: Likewise.
9375         * tests/test-fwriting.c: Likewise.
9376         * tests/test-getaddrinfo.c: Likewise.
9377         * tests/test-getpass.c: Likewise.
9378         * tests/test-gettimeofday.c: Likewise.
9379         * tests/test-hmac-md5.c: Likewise.
9380         * tests/test-hmac-sha1.c: Likewise.
9381         * tests/test-iconv.c: Likewise.
9382         * tests/test-iconvme.c: Likewise.
9383         * tests/test-inttypes.c: Likewise.
9384         * tests/test-isnan.c: Likewise.
9385         * tests/test-isnanf.c: Likewise.
9386         * tests/test-isnanl-nolibm.c: Likewise.
9387         * tests/test-isnanl.c: Likewise.
9388         * tests/test-isnanl.h: Likewise.
9389         * tests/test-ldexpl.c: Likewise.
9390         * tests/test-linked_list.c: Likewise.
9391         * tests/test-linkedhash_list.c: Likewise.
9392         * tests/test-locale.c: Likewise.
9393         * tests/test-localename.c: Likewise.
9394         * tests/test-lock.c: Likewise.
9395         * tests/test-lseek.c: Likewise.
9396         * tests/test-malloca.c: Likewise.
9397         * tests/test-math.c: Likewise.
9398         * tests/test-mbscasecmp.c: Likewise.
9399         * tests/test-mbscasestr1.c: Likewise.
9400         * tests/test-mbscasestr2.c: Likewise.
9401         * tests/test-mbscasestr3.c: Likewise.
9402         * tests/test-mbscasestr4.c: Likewise.
9403         * tests/test-mbschr.c: Likewise.
9404         * tests/test-mbscspn.c: Likewise.
9405         * tests/test-mbsncasecmp.c: Likewise.
9406         * tests/test-mbspbrk.c: Likewise.
9407         * tests/test-mbspcasecmp.c: Likewise.
9408         * tests/test-mbsrchr.c: Likewise.
9409         * tests/test-mbsspn.c: Likewise.
9410         * tests/test-mbsstr1.c: Likewise.
9411         * tests/test-mbsstr2.c: Likewise.
9412         * tests/test-mbsstr3.c: Likewise.
9413         * tests/test-md5.c: Likewise.
9414         * tests/test-memmem.c: Likewise.
9415         * tests/test-netinet_in.c: Likewise.
9416         * tests/test-open.c: Likewise.
9417         * tests/test-printf-frexp.c: Likewise.
9418         * tests/test-printf-frexpl.c: Likewise.
9419         * tests/test-printf-posix.c: Likewise.
9420         * tests/test-printf-posix.h: Likewise.
9421         * tests/test-rbtree_list.c: Likewise.
9422         * tests/test-rbtree_oset.c: Likewise.
9423         * tests/test-rbtreehash_list.c: Likewise.
9424         * tests/test-read-file.c: Likewise.
9425         * tests/test-rijndael.c: Likewise.
9426         * tests/test-search.c: Likewise.
9427         * tests/test-signbit.c: Likewise.
9428         * tests/test-sleep.c: Likewise.
9429         * tests/test-snprintf-posix.c: Likewise.
9430         * tests/test-snprintf-posix.h: Likewise.
9431         * tests/test-snprintf.c: Likewise.
9432         * tests/test-sprintf-posix.c: Likewise.
9433         * tests/test-sprintf-posix.h: Likewise.
9434         * tests/test-stat-time.c: Likewise.
9435         * tests/test-stdbool.c: Likewise.
9436         * tests/test-stdint.c: Likewise.
9437         * tests/test-stdio.c: Likewise.
9438         * tests/test-stdlib.c: Likewise.
9439         * tests/test-stpncpy.c: Likewise.
9440         * tests/test-strcasestr.c: Likewise.
9441         * tests/test-striconv.c: Likewise.
9442         * tests/test-striconveh.c: Likewise.
9443         * tests/test-striconveha.c: Likewise.
9444         * tests/test-string.c: Likewise.
9445         * tests/test-sys_select.c: Likewise.
9446         * tests/test-sys_socket.c: Likewise.
9447         * tests/test-sys_stat.c: Likewise.
9448         * tests/test-sys_time.c: Likewise.
9449         * tests/test-sysexits.c: Likewise.
9450         * tests/test-time.c: Likewise.
9451         * tests/test-tls.c: Likewise.
9452         * tests/test-trunc.c: Likewise.
9453         * tests/test-truncf.c: Likewise.
9454         * tests/test-truncl.c: Likewise.
9455         * tests/test-unistd.c: Likewise.
9456         * tests/test-vasnprintf-posix.c: Likewise.
9457         * tests/test-vasnprintf-posix2.c: Likewise.
9458         * tests/test-vasnprintf.c: Likewise.
9459         * tests/test-vasprintf-posix.c: Likewise.
9460         * tests/test-vasprintf.c: Likewise.
9461         * tests/test-verify.c: Likewise.
9462         * tests/test-vfprintf-posix.c: Likewise.
9463         * tests/test-vprintf-posix.c: Likewise.
9464         * tests/test-vsnprintf-posix.c: Likewise.
9465         * tests/test-vsnprintf.c: Likewise.
9466         * tests/test-vsprintf-posix.c: Likewise.
9467         * tests/test-wchar.c: Likewise.
9468         * tests/test-wctype.c: Likewise.
9469         * tests/test-wcwidth.c: Likewise.
9470         * tests/test-xstrtol.c: Likewise.
9471         * tests/test-xvasprintf.c: Likewise.
9472         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9473         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9474         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9475         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9476         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9477         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9478         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9479         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9480         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9481         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9482         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9483         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9484         * tests/uniname/test-uninames.c: Likewise.
9485         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9486         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9487         * tests/unistdio/test-u16-printf1.h: Likewise.
9488         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9489         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9490         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9491         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9492         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9493         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9494         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9495         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9496         * tests/unistdio/test-u32-printf1.h: Likewise.
9497         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9498         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9499         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9500         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9501         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9502         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9503         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9504         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9505         * tests/unistdio/test-u8-printf1.h: Likewise.
9506         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9507         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9508         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9509         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9510         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9511         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9512         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9513         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9514         * tests/unistdio/test-ulc-printf1.h: Likewise.
9515         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9516         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9517         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9518         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9519         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9520         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9521         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9522         * tests/uniwidth/test-u16-width.c: Likewise.
9523         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9524         * tests/uniwidth/test-u32-width.c: Likewise.
9525         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9526         * tests/uniwidth/test-u8-width.c: Likewise.
9527         * tests/uniwidth/test-uc_width.c: Likewise.
9528         * config/srclist-update: Likewise.
9529         (fixlicense): Update to GPLv3+.
9530
9531         Change copyright notice from LGPLv2.1+ to LGPLv3+.
9532         * tests/test-tsearch.c: Change copyright notice.
9533
9534         Change copyright notice from LGPLv2.0+ to LGPLv3+.
9535         * lib/c-strcaseeq.h: Change copyright notice.
9536         * lib/streq.h: Likewise.
9537         * lib/uniconv.h: Likewise.
9538         * lib/uniconv/u-conv-from-enc.h: Likewise.
9539         * lib/uniconv/u-conv-to-enc.h: Likewise.
9540         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9541         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9542         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9543         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9544         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9545         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9546         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9547         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9548         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9549         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9550         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9551         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9552         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9553         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9554         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9555         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9556         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9557         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
9558         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
9559         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
9560         * lib/uniname.h: Likewise.
9561         * lib/uniname/uniname.c: Likewise.
9562         * lib/unistdio.h: Likewise.
9563         * lib/unistdio/u-asnprintf.h: Likewise.
9564         * lib/unistdio/u-asprintf.h: Likewise.
9565         * lib/unistdio/u-printf-args.c: Likewise.
9566         * lib/unistdio/u-printf-args.h: Likewise.
9567         * lib/unistdio/u-printf-parse.h: Likewise.
9568         * lib/unistdio/u-snprintf.h: Likewise.
9569         * lib/unistdio/u-sprintf.h: Likewise.
9570         * lib/unistdio/u-vasprintf.h: Likewise.
9571         * lib/unistdio/u-vsnprintf.h: Likewise.
9572         * lib/unistdio/u-vsprintf.h: Likewise.
9573         * lib/unistdio/u16-asnprintf.c: Likewise.
9574         * lib/unistdio/u16-asprintf.c: Likewise.
9575         * lib/unistdio/u16-printf-parse.c: Likewise.
9576         * lib/unistdio/u16-snprintf.c: Likewise.
9577         * lib/unistdio/u16-sprintf.c: Likewise.
9578         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
9579         * lib/unistdio/u16-u16-asprintf.c: Likewise.
9580         * lib/unistdio/u16-u16-snprintf.c: Likewise.
9581         * lib/unistdio/u16-u16-sprintf.c: Likewise.
9582         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
9583         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
9584         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
9585         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
9586         * lib/unistdio/u16-vasnprintf.c: Likewise.
9587         * lib/unistdio/u16-vasprintf.c: Likewise.
9588         * lib/unistdio/u16-vsnprintf.c: Likewise.
9589         * lib/unistdio/u16-vsprintf.c: Likewise.
9590         * lib/unistdio/u32-asnprintf.c: Likewise.
9591         * lib/unistdio/u32-asprintf.c: Likewise.
9592         * lib/unistdio/u32-printf-parse.c: Likewise.
9593         * lib/unistdio/u32-snprintf.c: Likewise.
9594         * lib/unistdio/u32-sprintf.c: Likewise.
9595         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
9596         * lib/unistdio/u32-u32-asprintf.c: Likewise.
9597         * lib/unistdio/u32-u32-snprintf.c: Likewise.
9598         * lib/unistdio/u32-u32-sprintf.c: Likewise.
9599         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
9600         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
9601         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
9602         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
9603         * lib/unistdio/u32-vasnprintf.c: Likewise.
9604         * lib/unistdio/u32-vasprintf.c: Likewise.
9605         * lib/unistdio/u32-vsnprintf.c: Likewise.
9606         * lib/unistdio/u32-vsprintf.c: Likewise.
9607         * lib/unistdio/u8-asnprintf.c: Likewise.
9608         * lib/unistdio/u8-asprintf.c: Likewise.
9609         * lib/unistdio/u8-printf-parse.c: Likewise.
9610         * lib/unistdio/u8-snprintf.c: Likewise.
9611         * lib/unistdio/u8-sprintf.c: Likewise.
9612         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
9613         * lib/unistdio/u8-u8-asprintf.c: Likewise.
9614         * lib/unistdio/u8-u8-snprintf.c: Likewise.
9615         * lib/unistdio/u8-u8-sprintf.c: Likewise.
9616         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
9617         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
9618         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
9619         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
9620         * lib/unistdio/u8-vasnprintf.c: Likewise.
9621         * lib/unistdio/u8-vasprintf.c: Likewise.
9622         * lib/unistdio/u8-vsnprintf.c: Likewise.
9623         * lib/unistdio/u8-vsprintf.c: Likewise.
9624         * lib/unistdio/ulc-asnprintf.c: Likewise.
9625         * lib/unistdio/ulc-asprintf.c: Likewise.
9626         * lib/unistdio/ulc-printf-parse.c: Likewise.
9627         * lib/unistdio/ulc-snprintf.c: Likewise.
9628         * lib/unistdio/ulc-sprintf.c: Likewise.
9629         * lib/unistdio/ulc-vasnprintf.c: Likewise.
9630         * lib/unistdio/ulc-vasprintf.c: Likewise.
9631         * lib/unistdio/ulc-vsnprintf.c: Likewise.
9632         * lib/unistdio/ulc-vsprintf.c: Likewise.
9633         * lib/unistr.h: Likewise.
9634         * lib/unistr/u-cpy-alloc.h: Likewise.
9635         * lib/unistr/u-cpy.h: Likewise.
9636         * lib/unistr/u-endswith.h: Likewise.
9637         * lib/unistr/u-move.h: Likewise.
9638         * lib/unistr/u-set.h: Likewise.
9639         * lib/unistr/u-startswith.h: Likewise.
9640         * lib/unistr/u-stpcpy.h: Likewise.
9641         * lib/unistr/u-stpncpy.h: Likewise.
9642         * lib/unistr/u-strcat.h: Likewise.
9643         * lib/unistr/u-strcpy.h: Likewise.
9644         * lib/unistr/u-strcspn.h: Likewise.
9645         * lib/unistr/u-strdup.h: Likewise.
9646         * lib/unistr/u-strlen.h: Likewise.
9647         * lib/unistr/u-strncat.h: Likewise.
9648         * lib/unistr/u-strncpy.h: Likewise.
9649         * lib/unistr/u-strnlen.h: Likewise.
9650         * lib/unistr/u-strpbrk.h: Likewise.
9651         * lib/unistr/u-strspn.h: Likewise.
9652         * lib/unistr/u-strstr.h: Likewise.
9653         * lib/unistr/u-strtok.h: Likewise.
9654         * lib/unistr/u16-check.c: Likewise.
9655         * lib/unistr/u16-chr.c: Likewise.
9656         * lib/unistr/u16-cmp.c: Likewise.
9657         * lib/unistr/u16-cpy-alloc.c: Likewise.
9658         * lib/unistr/u16-cpy.c: Likewise.
9659         * lib/unistr/u16-endswith.c: Likewise.
9660         * lib/unistr/u16-mblen.c: Likewise.
9661         * lib/unistr/u16-mbsnlen.c: Likewise.
9662         * lib/unistr/u16-mbtouc-aux.c: Likewise.
9663         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9664         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9665         * lib/unistr/u16-mbtouc.c: Likewise.
9666         * lib/unistr/u16-mbtoucr.c: Likewise.
9667         * lib/unistr/u16-move.c: Likewise.
9668         * lib/unistr/u16-next.c: Likewise.
9669         * lib/unistr/u16-prev.c: Likewise.
9670         * lib/unistr/u16-set.c: Likewise.
9671         * lib/unistr/u16-startswith.c: Likewise.
9672         * lib/unistr/u16-stpcpy.c: Likewise.
9673         * lib/unistr/u16-stpncpy.c: Likewise.
9674         * lib/unistr/u16-strcat.c: Likewise.
9675         * lib/unistr/u16-strchr.c: Likewise.
9676         * lib/unistr/u16-strcmp.c: Likewise.
9677         * lib/unistr/u16-strcpy.c: Likewise.
9678         * lib/unistr/u16-strcspn.c: Likewise.
9679         * lib/unistr/u16-strdup.c: Likewise.
9680         * lib/unistr/u16-strlen.c: Likewise.
9681         * lib/unistr/u16-strmblen.c: Likewise.
9682         * lib/unistr/u16-strmbtouc.c: Likewise.
9683         * lib/unistr/u16-strncat.c: Likewise.
9684         * lib/unistr/u16-strncmp.c: Likewise.
9685         * lib/unistr/u16-strncpy.c: Likewise.
9686         * lib/unistr/u16-strnlen.c: Likewise.
9687         * lib/unistr/u16-strpbrk.c: Likewise.
9688         * lib/unistr/u16-strrchr.c: Likewise.
9689         * lib/unistr/u16-strspn.c: Likewise.
9690         * lib/unistr/u16-strstr.c: Likewise.
9691         * lib/unistr/u16-strtok.c: Likewise.
9692         * lib/unistr/u16-to-u32.c: Likewise.
9693         * lib/unistr/u16-to-u8.c: Likewise.
9694         * lib/unistr/u16-uctomb-aux.c: Likewise.
9695         * lib/unistr/u16-uctomb.c: Likewise.
9696         * lib/unistr/u32-check.c: Likewise.
9697         * lib/unistr/u32-chr.c: Likewise.
9698         * lib/unistr/u32-cmp.c: Likewise.
9699         * lib/unistr/u32-cpy-alloc.c: Likewise.
9700         * lib/unistr/u32-cpy.c: Likewise.
9701         * lib/unistr/u32-endswith.c: Likewise.
9702         * lib/unistr/u32-mblen.c: Likewise.
9703         * lib/unistr/u32-mbsnlen.c: Likewise.
9704         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9705         * lib/unistr/u32-mbtouc.c: Likewise.
9706         * lib/unistr/u32-mbtoucr.c: Likewise.
9707         * lib/unistr/u32-move.c: Likewise.
9708         * lib/unistr/u32-next.c: Likewise.
9709         * lib/unistr/u32-prev.c: Likewise.
9710         * lib/unistr/u32-set.c: Likewise.
9711         * lib/unistr/u32-startswith.c: Likewise.
9712         * lib/unistr/u32-stpcpy.c: Likewise.
9713         * lib/unistr/u32-stpncpy.c: Likewise.
9714         * lib/unistr/u32-strcat.c: Likewise.
9715         * lib/unistr/u32-strchr.c: Likewise.
9716         * lib/unistr/u32-strcmp.c: Likewise.
9717         * lib/unistr/u32-strcpy.c: Likewise.
9718         * lib/unistr/u32-strcspn.c: Likewise.
9719         * lib/unistr/u32-strdup.c: Likewise.
9720         * lib/unistr/u32-strlen.c: Likewise.
9721         * lib/unistr/u32-strmblen.c: Likewise.
9722         * lib/unistr/u32-strmbtouc.c: Likewise.
9723         * lib/unistr/u32-strncat.c: Likewise.
9724         * lib/unistr/u32-strncmp.c: Likewise.
9725         * lib/unistr/u32-strncpy.c: Likewise.
9726         * lib/unistr/u32-strnlen.c: Likewise.
9727         * lib/unistr/u32-strpbrk.c: Likewise.
9728         * lib/unistr/u32-strrchr.c: Likewise.
9729         * lib/unistr/u32-strspn.c: Likewise.
9730         * lib/unistr/u32-strstr.c: Likewise.
9731         * lib/unistr/u32-strtok.c: Likewise.
9732         * lib/unistr/u32-to-u16.c: Likewise.
9733         * lib/unistr/u32-to-u8.c: Likewise.
9734         * lib/unistr/u32-uctomb.c: Likewise.
9735         * lib/unistr/u8-check.c: Likewise.
9736         * lib/unistr/u8-chr.c: Likewise.
9737         * lib/unistr/u8-cmp.c: Likewise.
9738         * lib/unistr/u8-cpy-alloc.c: Likewise.
9739         * lib/unistr/u8-cpy.c: Likewise.
9740         * lib/unistr/u8-endswith.c: Likewise.
9741         * lib/unistr/u8-mblen.c: Likewise.
9742         * lib/unistr/u8-mbsnlen.c: Likewise.
9743         * lib/unistr/u8-mbtouc-aux.c: Likewise.
9744         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9745         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9746         * lib/unistr/u8-mbtouc.c: Likewise.
9747         * lib/unistr/u8-mbtoucr.c: Likewise.
9748         * lib/unistr/u8-move.c: Likewise.
9749         * lib/unistr/u8-next.c: Likewise.
9750         * lib/unistr/u8-prev.c: Likewise.
9751         * lib/unistr/u8-set.c: Likewise.
9752         * lib/unistr/u8-startswith.c: Likewise.
9753         * lib/unistr/u8-stpcpy.c: Likewise.
9754         * lib/unistr/u8-stpncpy.c: Likewise.
9755         * lib/unistr/u8-strcat.c: Likewise.
9756         * lib/unistr/u8-strchr.c: Likewise.
9757         * lib/unistr/u8-strcmp.c: Likewise.
9758         * lib/unistr/u8-strcpy.c: Likewise.
9759         * lib/unistr/u8-strcspn.c: Likewise.
9760         * lib/unistr/u8-strdup.c: Likewise.
9761         * lib/unistr/u8-strlen.c: Likewise.
9762         * lib/unistr/u8-strmblen.c: Likewise.
9763         * lib/unistr/u8-strmbtouc.c: Likewise.
9764         * lib/unistr/u8-strncat.c: Likewise.
9765         * lib/unistr/u8-strncmp.c: Likewise.
9766         * lib/unistr/u8-strncpy.c: Likewise.
9767         * lib/unistr/u8-strnlen.c: Likewise.
9768         * lib/unistr/u8-strpbrk.c: Likewise.
9769         * lib/unistr/u8-strrchr.c: Likewise.
9770         * lib/unistr/u8-strspn.c: Likewise.
9771         * lib/unistr/u8-strstr.c: Likewise.
9772         * lib/unistr/u8-strtok.c: Likewise.
9773         * lib/unistr/u8-to-u16.c: Likewise.
9774         * lib/unistr/u8-to-u32.c: Likewise.
9775         * lib/unistr/u8-uctomb-aux.c: Likewise.
9776         * lib/unistr/u8-uctomb.c: Likewise.
9777         * lib/unitypes.h: Likewise.
9778         * lib/uniwidth.h: Likewise.
9779         * lib/uniwidth/cjk.h: Likewise.
9780         * lib/uniwidth/u16-strwidth.c: Likewise.
9781         * lib/uniwidth/u16-width.c: Likewise.
9782         * lib/uniwidth/u32-strwidth.c: Likewise.
9783         * lib/uniwidth/u32-width.c: Likewise.
9784         * lib/uniwidth/u8-strwidth.c: Likewise.
9785         * lib/uniwidth/u8-width.c: Likewise.
9786         * lib/uniwidth/width.c: Likewise.
9787
9788 2007-10-07  Bruno Haible  <bruno@clisp.org>
9789
9790         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
9791         The file is still under LGPL (see modules/inttypes).
9792
9793 2007-10-06  Bruno Haible  <bruno@clisp.org>
9794
9795         * modules/trunc (Dependencies): Add 'extensions'.
9796         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
9797         Reported by Ben Pfaff <blp@gnu.org>.
9798
9799 2007-10-06  Bruno Haible  <bruno@clisp.org>
9800
9801         * modules/freopen-tests: New file.
9802         * tests/test-freopen.c: New file.
9803
9804         * modules/fopen-tests: New file.
9805         * tests/test-fopen.c: New file.
9806
9807         * modules/fopen: New file.
9808         * lib/fopen.c: New file.
9809         * m4/fopen.m4: New file.
9810         * modules/freopen: New file.
9811         * lib/freopen.c: New file.
9812         * m4/freopen.m4: New file.
9813         * lib/stdio.in.h (fopen, freopen): New declarations.
9814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
9815         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9816         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
9817         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9818         * doc/functions/fopen.texi: Mention the 'fopen' module.
9819         * doc/functions/freopen.texi: Mention the 'freopen' module.
9820
9821 2007-10-06  Bruno Haible  <bruno@clisp.org>
9822
9823         * modules/open-tests: New file.
9824         * tests/test-open.c: New file.
9825
9826         * modules/open: New file.
9827         * lib/open.c: New file.
9828         * m4/open.m4: New file.
9829         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
9830         lib/open.c does.
9831         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9832         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9833         macros.
9834         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9835         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9836         REPLACE_OPEN.
9837         * doc/functions/open.texi: Mention the 'open' module.
9838
9839 2007-10-04  Bruno Haible  <bruno@clisp.org>
9840
9841         * modules/ceill-tests: New file.
9842         * tests/test-ceill.c: New file.
9843
9844         * modules/ceill: New file.
9845         * lib/ceill.c: Replace entire file.
9846         * m4/ceill.m4: New file.
9847         * lib/math.in.h (ceill): Replace declaration.
9848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
9849         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
9850         * doc/functions/ceill.texi: Mention the 'ceill' module.
9851         * modules/mathl (Files): Remove lib/ceill.c.
9852         (Depends-on): Add ceill.
9853
9854 2007-10-04  Bruno Haible  <bruno@clisp.org>
9855
9856         * modules/ceilf-tests: New file.
9857         * tests/test-ceilf.c: New file.
9858
9859         * modules/ceilf: New file.
9860         * lib/ceil.c: New file.
9861         * lib/ceilf.c: New file.
9862         * m4/ceilf.m4: New file.
9863         * lib/math.in.h (ceilf): New declaration.
9864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
9865         HAVE_DECL_CEILF.
9866         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
9867         HAVE_DECL_CEILF.
9868         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
9869
9870 2007-10-04  Bruno Haible  <bruno@clisp.org>
9871
9872         * modules/floorl-tests: New file.
9873         * tests/test-floorl.c: New file.
9874
9875         * modules/floorl: New file.
9876         * lib/floorl.c: Replace entire file.
9877         * m4/floorl.m4: New file.
9878         * lib/math.in.h (floorl): Replace declaration.
9879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
9880         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
9881         * doc/functions/floorl.texi: Mention the 'floorl' module.
9882         * modules/mathl (Files): Remove lib/floorl.c.
9883         (Depends-on): Add floorl.
9884
9885 2007-10-04  Bruno Haible  <bruno@clisp.org>
9886
9887         * modules/floorf-tests: New file.
9888         * tests/test-floorf.c: New file.
9889
9890         * modules/floorf: New file.
9891         * lib/floor.c: New file.
9892         * lib/floorf.c: New file.
9893         * m4/floorf.m4: New file.
9894         * lib/math.in.h (floorf): New declaration.
9895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
9896         HAVE_DECL_FLOORF.
9897         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
9898         HAVE_DECL_FLOORF.
9899         * doc/functions/floorf.texi: Mention the 'floorf' module.
9900
9901 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
9902             Bruno Haible  <bruno@clisp.org>
9903
9904         Advertise for the Git server instead of the CVS server.
9905         * doc/gnulib-intro.texi (Steady Development): Mention the Git
9906         repository instead of the CVS one.
9907         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
9908         about all VCS systems generically.
9909         * doc/gnulib.texi (Introduction): Capitalize `Git'.
9910
9911 2007-10-04  Bruno Haible  <bruno@clisp.org>
9912
9913         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
9914         means.
9915         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
9916
9917 2007-10-04  Bruno Haible  <bruno@clisp.org>
9918
9919         * modules/truncl-tests: New file.
9920         * tests/test-truncl.c: New file.
9921
9922         * modules/truncl: New file.
9923         * lib/truncl.c: New file.
9924         * m4/truncl.m4: New file.
9925         * lib/math.in.h (truncl): New declaration.
9926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
9927         HAVE_DECL_TRUNCL.
9928         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
9929         HAVE_DECL_TRUNCL.
9930         * doc/functions/truncl.texi: Mention the 'truncl' module.
9931
9932 2007-10-04  Bruno Haible  <bruno@clisp.org>
9933
9934         * modules/truncf-tests: New file.
9935         * tests/test-truncf.c: New file.
9936
9937         * modules/truncf: New file.
9938         * lib/trunc.c: Make paramerizable through USE_* macros.
9939         * lib/truncf.c: New file.
9940         * m4/truncf.m4: New file.
9941         * lib/math.in.h (truncf): New declaration.
9942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
9943         HAVE_DECL_TRUNCF.
9944         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
9945         HAVE_DECL_TRUNCF.
9946         * doc/functions/truncf.texi: Mention the 'truncf' module.
9947
9948 2007-10-03  Bruno Haible  <bruno@clisp.org>
9949
9950         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
9951         augmentation also for tests modules.
9952         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
9953         * modules/atexit-tests (Makefile.am): Likewise.
9954         * modules/binary-io-tests (Makefile.am): Likewise.
9955         * modules/c-strcase-tests (Makefile.am): Likewise.
9956         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
9957         * modules/canonicalize-tests (Makefile.am): Likewise.
9958         * modules/closein-tests (Makefile.am): Likewise.
9959         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9960         * modules/freadahead-tests (Makefile.am): Likewise.
9961         * modules/fseek-tests (Makefile.am): Likewise.
9962         * modules/fseeko-tests (Makefile.am): Likewise.
9963         * modules/ftell-tests (Makefile.am): Likewise.
9964         * modules/ftello-tests (Makefile.am): Likewise.
9965         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
9966         * modules/isnanl-tests (Makefile.am): Likewise.
9967         * modules/lseek-tests (Makefile.am): Likewise.
9968         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9969         * modules/mbscasestr-tests (Makefile.am): Likewise.
9970         * modules/mbschr-tests (Makefile.am): Likewise.
9971         * modules/mbscspn-tests (Makefile.am): Likewise.
9972         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9973         * modules/mbspbrk-tests (Makefile.am): Likewise.
9974         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9975         * modules/mbsrchr-tests (Makefile.am): Likewise.
9976         * modules/mbsspn-tests (Makefile.am): Likewise.
9977         * modules/mbsstr-tests (Makefile.am): Likewise.
9978         * modules/printf-posix-tests (Makefile.am): Likewise.
9979         * modules/snprintf-posix-tests (Makefile.am): Likewise.
9980         * modules/sprintf-posix-tests (Makefile.am): Likewise.
9981         * modules/tsearch-tests (Makefile.am): Likewise.
9982         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9983         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9984         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9985         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9986         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9987         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9988         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9989         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9990         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
9991         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
9992         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9993         * modules/xstrtol-tests (Makefile.am): Likewise.
9994         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9995         * modules/yesno-tests (Makefile.am): Likewise.
9996
9997 2007-10-03  Bruno Haible  <bruno@clisp.org>
9998
9999         * modules/trunc-tests: New file.
10000         * tests/test-trunc.c: New file.
10001
10002         * modules/trunc: New file.
10003         * lib/trunc.c: New file.
10004         * m4/trunc.m4: New file.
10005         * lib/math.in.h (trunc): New declaration.
10006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
10007         HAVE_DECL_TRUNC.
10008         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
10009         HAVE_DECL_TRUNC.
10010         * doc/functions/trunc.texi: Mention the 'trunc' module.
10011
10012 2007-10-03  Bruno Haible  <bruno@clisp.org>
10013
10014         * tests/test-fpending.c: New file, mostly copied
10015         from coreutils/lib/t-fpending.c.
10016         * modules/fpending-tests: New file.
10017
10018 2007-10-03  Bruno Haible  <bruno@clisp.org>
10019
10020         Port the stdio extensions to QNX (untested).
10021         * lib/fseterr.c (fseterr): Add support for QNX.
10022         * lib/fbufmode.c (fbufmode): Likewise.
10023         * lib/freadable.c (freadable): Likewise.
10024         * lib/fwritable.c (fwritable): Likewise.
10025         * lib/freading.c (freading): Likewise.
10026         * lib/fwriting.c (fwriting): Likewise.
10027         * lib/freadahead.c (freadahed): Likewise.
10028         * lib/fpurge.c (fpurge): Likewise.
10029         * lib/fseeko.c (rpl_fseeko): Likewise.
10030
10031 2007-10-03  Bruno Haible  <bruno@clisp.org>
10032             Jim Meyering  <jim@meyering.net>
10033             Eric Blake  <ebb9@byu.net>
10034
10035         * doc/relocatable.texi: Use @command instead of @program.
10036
10037 2007-10-02  Jim Meyering  <jim@meyering.net>
10038
10039         Perform one more "_.h" -> ".in.h" substitution.
10040         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
10041         instead of unistd_.h here, too.
10042
10043 2007-10-01  Bruno Haible  <bruno@clisp.org>
10044
10045         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
10046         Needed for the alloca-opt module.
10047
10048 2007-09-30  Bruno Haible  <bruno@clisp.org>
10049
10050         * lib/alloca.in.h: Renamed from lib/alloca_.h.
10051         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
10052         alloca_.h.
10053         * lib/argz.in.h: Renamed from lib/argz_.h.
10054         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
10055         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
10056         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
10057         byteswap_.h.
10058         * lib/dirent.in.h: Renamed from lib/dirent_.h.
10059         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
10060         dirent_.h.
10061         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
10062         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
10063         fcntl_.h.
10064         * lib/float.in.h: Renamed from lib/float_.h.
10065         * modules/float (Files, Makefile.am): Use float.in.h instead of
10066         float_.h.
10067         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
10068         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
10069         fnmatch_.h.
10070         * lib/getopt.in.h: Renamed from lib/getopt_.h.
10071         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
10072         getopt_.h.
10073         * lib/glob.in.h: Renamed from lib/glob_.h.
10074         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
10075         * lib/iconv.in.h: Renamed from lib/iconv_.h.
10076         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
10077         iconv_.h.
10078         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
10079         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
10080         inttypes_.h.
10081         * lib/locale.in.h: Renamed from lib/locale_.h.
10082         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
10083         locale_.h.
10084         * lib/math.in.h: Renamed from lib/math_.h.
10085         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
10086         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
10087         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
10088         of netinet_in_.h. Add dependency.
10089         * lib/poll.in.h: Renamed from lib/poll_.h.
10090         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
10091         * lib/search.in.h: Renamed from lib/search_.h.
10092         * modules/search (Files, Makefile.am): Use search.in.h instead of
10093         search_.h.
10094         * lib/signal.in.h: Renamed from lib/signal_.h.
10095         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
10096         _signal.h.
10097         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
10098         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
10099         stdbool_.h.
10100         * lib/stdint.in.h: Renamed from lib/stdint_.h.
10101         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
10102         stdint_.h.
10103         * lib/stdio.in.h: Renamed from lib/stdio_.h.
10104         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
10105         stdio_.h.
10106         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
10107         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
10108         stdlib_.h.
10109         * lib/string.in.h: Renamed from lib/string_.h.
10110         * modules/string (Files, Makefile.am): Use string.in.h instead of
10111         string_.h.
10112         * doc/gnulib-tool.texi (Initial import): Update.
10113         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
10114         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
10115         of sys_select_.h. Add dependency.
10116         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
10117         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
10118         of sys_socket_.h.
10119         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
10120         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
10121         sys_stat_.h.
10122         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
10123         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
10124         sys_time_.h.
10125         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
10126         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
10127         sysexits_.h.
10128         * lib/time.in.h: Renamed from lib/time_.h.
10129         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
10130         * lib/unistd.in.h: Renamed from lib/unistd_.h.
10131         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
10132         unistd_.h.
10133         * lib/wchar.in.h: Renamed from lib/wchar_.h.
10134         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
10135         wchar_.h.
10136         * lib/wctype.in.h: Renamed from lib/wctype_.h.
10137         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
10138         wctype_.h.
10139         * build-aux/bootstrap (slurp): Update.
10140         * lib/.cppi-disable: Update.
10141
10142 2007-09-30  Bruno Haible  <bruno@clisp.org>
10143
10144         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
10145         Needed on BeOS.
10146
10147 2007-09-30  Bruno Haible  <bruno@clisp.org>
10148
10149         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
10150
10151 2007-09-29  Bruno Haible  <bruno@clisp.org>
10152
10153         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
10154
10155 2007-09-29  Bruno Haible  <bruno@clisp.org>
10156
10157         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
10158         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
10159         * build-aux/install-reloc: Compile also areadlink.c.
10160         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
10161
10162 2007-09-29  Bruno Haible  <bruno@clisp.org>
10163
10164         * gnulib-tool (func_emit_initmacro_done): Indentation.
10165
10166 2007-09-29  Bruno Haible  <bruno@clisp.org>
10167
10168         * README: Add CVS checkout update instructions.
10169         Info from Bob Proulx <bob@proulx.com>.
10170
10171 2007-09-28  Eric Blake  <ebb9@byu.net>
10172
10173         Provide move-if-change.
10174         * build-aux/move-if-change: New file, based on best practice
10175         rather than any canonical upstream location.
10176
10177 2007-09-28  Jim Meyering  <jim@meyering.net>
10178
10179         Fix canonicalize loop-detection corner case.
10180         Do not attempt to stat the symlink values stored via seen_triple.
10181         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
10182         on linux-2.6.18, (but not 2.6.22).
10183         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
10184         triple_compare.  The former compares dev,ino,filename, while the latter
10185         would actually stat dirname(filename) when dev and ino were equal.
10186         * lib/hash-triple.c: Install <string.h>.
10187         (STREQ): Define.
10188         (triple_compare_ino_str): New function.
10189         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
10190
10191 2007-09-28  Eric Blake  <ebb9@byu.net>
10192
10193         Enforce that AC_REPLACE_FUNCS files exist.
10194         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
10195         override check for typos.
10196
10197         Fix test-closein on Solaris 10.
10198         * tests/test-closein.c (main): Don't assume stdin can be inherited
10199         closed on all systems.
10200         * tests/test-closein.sh: Likewise.
10201         Reported by Piotr Tarnowski.
10202
10203 2007-09-28  Jim Meyering  <jim@meyering.net>
10204
10205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
10206
10207 2007-09-27  Jim Meyering  <jim@meyering.net>
10208
10209         canonicalize: Avoid a false-positive cycle failure.
10210         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
10211         Sort.  Remove cycle-check.
10212         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
10213         not cycle-check.h.
10214         (seen_triple): New function.
10215         (canonicalize_filename_mode): Use it instead of cycle-check.
10216         * tests/test-canonicalize.c: Add a test for this bug.
10217         * tests/test-canonicalize.sh: Set up and run the test.
10218
10219         New module, file-set, from coreutils.
10220         * modules/file-set: Define it.
10221         * lib/file-set.c, lib/file-set.h: Implement.
10222
10223         New module, hash-triple, from coreutils.
10224         * modules/hash-triple: Define it.
10225         * lib/hash-triple.c, lib/hash-triple.h: Implement.
10226
10227 2007-09-25  Eric Blake  <ebb9@byu.net>
10228
10229         Fix strerror on Interix.
10230         * lib/string_.h (strerror): Declare replacement.
10231         * doc/functions/strerror.texi (strerror): Document the Interix
10232         shortcoming.
10233         * modules/string (Makefile.am): Support new hooks.
10234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
10235         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
10236         gl_FUNC_STRERROR_SEPARATE.
10237         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
10238         * lib/strerror.c (rpl_strerror): Provide replacement.
10239         * modules/strerror (Depends-on): Add string.
10240         (configure.ac): Detect use of module.
10241         * tests/test-strerror.c: New file.
10242         * modules/strerror-tests: New test module.
10243         * modules/argp (Depends-on): Add strerror.
10244         * modules/error (Depends-on): Likewise.
10245         Reported by Martin Koeppe.
10246
10247 2007-09-24  Bruno Haible  <bruno@clisp.org>
10248
10249         * README: Update git instructions.
10250
10251 2007-09-24  Eric Blake  <ebb9@byu.net>
10252
10253         Revert fpending breakage from 2007-09-08.
10254         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
10255         __fpending.c.
10256
10257 2007-09-24  Jim Meyering  <jim@meyering.net>
10258
10259         filenamecat.c: Add a test.
10260         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
10261         showing how the function works when DIR is the empty string.
10262
10263 2007-09-21  Simon Josefsson  <simon@josefsson.org>
10264
10265         * tests/test-canonicalize.sh: Turn on executable bit.
10266
10267 2007-09-19  Eric Blake  <ebb9@byu.net>
10268
10269         * README: Update CVS instructions.
10270
10271 2007-09-18  Bruno Haible  <bruno@clisp.org>
10272
10273         * modules/areadlink: New file.
10274         * lib/areadlink.h (areadlink): New declaration.
10275         * lib/areadlink.c: New file, based on lib/xreadlink.c.
10276
10277 2007-09-17  Jim Meyering  <jim@meyering.net>
10278
10279         * lib/savewd.c (ESTALE) [!defined]: Define.
10280         Reported to be required on Interix by Martin Koeppe.
10281
10282 2007-09-17  Bruno Haible  <bruno@clisp.org>
10283
10284         * gnulib-tool (func_version): Use $version.
10285
10286 2007-09-16  Bruno Haible  <bruno@clisp.org>
10287
10288         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
10289         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
10290         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
10291         Reported by Greg Schafer <gschafer@zip.com.au>.
10292
10293 2007-09-15  Bruno Haible  <bruno@clisp.org>
10294
10295         * gnulib-tool (sed): Try a little harder to make bash understand the
10296         alias.
10297         Reported by Bruce Korb <bruce.korb@gmail.com>.
10298
10299 2007-09-13  Eric Blake  <ebb9@byu.net>
10300
10301         * ChangeLog: Remove conflict markers.
10302
10303 2007-09-13  Simon Josefsson  <simon@josefsson.org>
10304
10305         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
10306         Reported by Bruno Haible <bruno@clisp.org>.
10307
10308 2007-09-12  Bruno Haible  <bruno@clisp.org>
10309
10310         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
10311         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
10312         is not defined.
10313
10314 2007-09-12  Eric Blake  <ebb9@byu.net>
10315
10316         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
10317         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
10318         Autoconf definition.
10319         * modules/euidaccess (Depends-on): Add extensions, for
10320         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
10321         * modules/fnmatch (Depends-on): Likewise.
10322         * modules/getaddrinfo (Depends-on): Likewise.
10323         * modules/getdelim (Depends-on): Likewise.
10324         * modules/getline (Depends-on): Likewise.
10325         * modules/getsubopt (Depends-on): Likewise.
10326         * modules/gettext (Depends-on): Likewise.
10327         * modules/group-member (Depends-on): Likewise.
10328         * modules/mbchar (Depends-on): Likewise.
10329         * modules/memmem (Depends-on): Likewise.
10330         * modules/mempcpy (Depends-on): Likewise.
10331         * modules/memrchr (Depends-on): Likewise.
10332         * modules/pagealign_alloc (Depends-on): Likewise.
10333         * modules/readutmp (Depends-on): Likewise.
10334         * modules/stpcpy (Depends-on): Likewise.
10335         * modules/stpncpy (Depends-on): Likewise.
10336         * modules/strchrnul (Depends-on): Likewise.
10337         * modules/strndup (Depends-on): Likewise.
10338         * modules/strsep (Depends-on): Likewise.
10339         * modules/strverscmp (Depends-on): Likewise.
10340         * modules/vasprintf (Depends-on): Likewise.
10341         * modules/wcwidth (Depends-on): Likewise.
10342         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
10343         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
10344         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
10345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
10346         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10347         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10348         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
10349         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10350         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
10351         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10352         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10353         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
10354         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
10355         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10356         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
10357         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10358         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10359         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
10360         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10361         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
10362         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10363         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
10364         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
10365         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
10366         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
10367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10368         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
10369         so that lock.m4 can be used in gettext without extensions module.
10370
10371 2007-09-11  Bruno Haible  <bruno@clisp.org>
10372
10373         * m4/isc-posix.m4: Remove file.
10374         Suggested by Eric Blake.
10375
10376 2007-09-11  Eric Blake  <ebb9@byu.net>
10377
10378         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
10379
10380 2007-09-10  Bruno Haible  <bruno@clisp.org>
10381
10382         * posix-modules: Fix typo in error message.
10383         Reported by Matt <mkraai@beckman.com>.
10384
10385 2007-09-09  Bruno Haible  <bruno@clisp.org>
10386
10387         * doc/functions/getdelim.texi: Update list of platforms lacking the
10388         function.
10389         * doc/functions/getline.texi: Likewise.
10390
10391 2007-09-09  Jim Meyering  <jim@meyering.net>
10392
10393         * lib/hash.c (hash_initialize): Detect calloc failure.
10394         Reported by Bruno Haible.
10395
10396 2007-09-09  Bruno Haible  <bruno@clisp.org>
10397
10398         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
10399         malloc or realloc fails.
10400
10401 2007-09-09  Bruno Haible  <bruno@clisp.org>
10402
10403         * modules/getcwd (Depends-on): Add malloc-posix.
10404         * modules/glob (Depends-on): Likewise.
10405         * modules/putenv (Depends-on): Likewise.
10406         * modules/strdup (Depends-on): Likewise.
10407         * modules/getdelim (Depends-on): Add realloc-posix.
10408         * modules/read-file (Depends-on): Likewise.
10409
10410 2007-09-09  Bruno Haible  <bruno@clisp.org>
10411
10412         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
10413         (gl_FUNC_MALLOC_POSIX): Require it.
10414         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
10415         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
10416         * modules/realloc (Files): Add m4/malloc.m4.
10417         * modules/calloc (Files): Likewise.
10418
10419 2007-09-09  Bruno Haible  <bruno@clisp.org>
10420
10421         * modules/malloc-posix: New file.
10422         * modules/malloc (Depends-on): Add malloc-posix.
10423         * lib/malloc.c: Include errno.h.
10424         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10425         and a POSIX-compatible malloc into a single function. Set ENOMEM
10426         when returning NULL.
10427         * m4/malloc.m4: New file.
10428         * doc/functions/malloc.texi: Mention the malloc-posix module.
10429         * lib/stdlib_.h (malloc): New declaration.
10430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10431         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10432         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10433         and HAVE_MALLOC_POSIX.
10434
10435 2007-09-09  Bruno Haible  <bruno@clisp.org>
10436
10437         * modules/realloc-posix: New file.
10438         * modules/realloc (Depends-on): Add realloc-posix.
10439         * lib/realloc.c: Include errno.h.
10440         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10441         and a POSIX-compatible realloc into a single function. Set ENOMEM
10442         when returning NULL.
10443         * m4/realloc.m4: New file.
10444         * doc/functions/realloc.texi: Mention the realloc-posix module.
10445         * lib/stdlib_.h (realloc): New declaration.
10446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10447         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10448         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10449         and HAVE_REALLOC_POSIX.
10450
10451 2007-09-09  Bruno Haible  <bruno@clisp.org>
10452
10453         * modules/calloc-posix: New file.
10454         * modules/calloc (Depends-on): Add calloc-posix.
10455         * lib/calloc.c: Include errno.h.
10456         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10457         and a POSIX-compatible calloc into a single function. Set ENOMEM
10458         when returning NULL.
10459         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10460         * doc/functions/calloc.texi: Mention the calloc-posix module.
10461         * lib/stdlib_.h (calloc): New declaration.
10462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10463         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10464         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10465         and HAVE_CALLOC_POSIX.
10466
10467 2007-09-09  Bruno Haible  <bruno@clisp.org>
10468
10469         Allow for modules to show an arbitrary notice.
10470         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10471         * gnulib-tool: New option --extract-notice.
10472         (func_usage): Document it.
10473         (sed_extract_prog): Update.
10474         (func_get_notice): New function.
10475         (func_modules_notice): New function.
10476         (func_import, func_create_testdir): Invoke it.
10477         Suggested by Jim Meyering.
10478
10479 2007-09-09  Bruno Haible  <bruno@clisp.org>
10480
10481         * gnulib-tool: New options --verbose, --quiet.
10482         (func_usage): Document them.
10483         (verbose): New variable.
10484         (func_execute_command): New function.
10485         (func_import): Don't show the module list and the file list if
10486         $verbose < 0.
10487         (func_create_testdir): Likewise. Use func_execute_command.
10488         (func_create_megatestdir): Use func_execute_command.
10489
10490 2007-09-08  Bruno Haible  <bruno@clisp.org>
10491
10492         * gnulib-tool (func_import): Prefer rsync over wget when available,
10493         for fetching the PO files.
10494
10495 2007-09-08  Bruno Haible  <bruno@clisp.org>
10496
10497         * posix-modules: New file. Portions copied from gnulib-tool.
10498         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10499
10500 2007-09-08  Jim Meyering  <jim@meyering.net>
10501
10502         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10503         * lib/fpending.h: Rename from __fpending.h.
10504         * lib/fpending.c: Rename from __fpending.c.
10505         Include "fpending.h", not "__fpending.h".
10506         * lib/__fpending.h, lib/__fpending.c: Remove files.
10507         * modules/fpending (Files): Reflect new file names.
10508         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10509
10510 2007-09-08  Bruno Haible  <bruno@clisp.org>
10511
10512         * m4/inttypes-h.m4: Remove stub file.
10513
10514 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10515
10516         * doc/headers/stdint.texi: Discuss #include_next issue.
10517
10518 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10519
10520         * build-aux/bootstrap: Remove obsolete comment about wget --help.
10521
10522 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10523
10524         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
10525         in variable name.
10526
10527 2007-09-03  Jim Meyering  <jim@meyering.net>
10528
10529         New module: git-version-gen.
10530         * modules/git-version-gen: New file.
10531
10532         Import changes from coreutils for bootstrap script.
10533
10534         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
10535
10536         bootstrap: uses rsync to download the .po files
10537         * build-aux/bootstrap (po_download_command_format): New global.
10538         (download_po_files): Use rsync.
10539         (update_po_files): Don't remove .po files after download,
10540         so future rsync runs can take advantage of the copies.
10541
10542         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10543
10544         Solve the unnecessary-.po-file-regeneration problem once and for all.
10545         * build-aux/bootstrap (download_po_files): New function, renamed from
10546         get_translations.  Now, downloads, but doesn't update LINGUAS.
10547         (update_po_files): New function.
10548
10549         bootstrap: Ignore more.
10550         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10551         uniwidth to e.g., lib/.gitignore.
10552         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10553
10554         * build-aux/bootstrap: New setting: vc_ignore.
10555         (insert_sorted_if_absent): Create $file if absent.
10556         Adapt to new, possibly empty, list: $vc_ignore.
10557
10558         bootstrap: generate more ignorable names
10559         * build-aux/bootstrap (slurp): When generating ignorable names,
10560         also map .sin to .sed, .gperf to .c, and .y to .c.
10561
10562 2007-09-03  Jim Meyering  <jim@meyering.net>
10563
10564         * build-aux/git-version-gen: New file, from coreutils.  For details, see
10565         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
10566
10567 2007-09-02  Bruno Haible  <bruno@clisp.org>
10568
10569         Fix mis-recognition of 'mcs' on QNX 6.
10570         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
10571         output contains the string "Mono".
10572         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
10573         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
10574
10575 2007-09-01  Bruno Haible  <bruno@clisp.org>
10576
10577         Fix collision between uniwidth/* and linebreak modules.
10578         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
10579         u32_width): Remove declarations.
10580         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
10581         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
10582         streq3, streq2, streq1, streq0): Remove functions.
10583         (STREQ): Remove macro.
10584         (is_cjk_encoding): Remove function.
10585         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
10586         (uc_width, u8_width, u16_width, u32_width): Remove functions.
10587         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
10588         * NEWS: Document the change.
10589
10590 2007-09-01  Bruno Haible  <bruno@clisp.org>
10591
10592         * lib/streq.h: Add double-inclusion guard.
10593
10594 2007-09-01  Karl Berry  <karl@gnu.org>
10595
10596         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
10597
10598 2007-08-28  Jim Meyering  <jim@meyering.net>
10599
10600         Rename mreadlink_with_size to areadlink_with_size.
10601         * NEWS: Document the change.
10602         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
10603         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
10604         * lib/mreadlink.h: Rename this to...
10605         * lib/areadlink.h: ...this.
10606         * modules/mreadlink-with-size: Rename this to...
10607         * modules/areadlink-with-size: ...this.
10608         * lib/canonicalize.c: Reflect the renaming.
10609         * modules/canonicalize: Likewise.
10610
10611 2007-08-26  Bruno Haible  <bruno@clisp.org>
10612
10613         * gnulib-tool (func_import): When deciding which files to remove,
10614         consider also dangling symbolic links.
10615         Reported by Eric Blake.
10616
10617 2007-08-26  Bruno Haible  <bruno@clisp.org>
10618
10619         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
10620
10621 2007-08-23  Simon Josefsson  <simon@josefsson.org>
10622
10623         * lib/readline.c: Don't include getline.h, the prototype is now
10624         found in stdio.h.
10625
10626 2007-08-23  Jim Meyering  <jim@meyering.net>
10627
10628         Getdelim touchup.
10629         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
10630         around the funlockfile call, since funlockfile never sets errno.
10631         Don't set errno upon failed realloc.
10632
10633 2007-08-22  Eric Blake  <ebb9@byu.net>
10634
10635         Getline touchups.
10636         * lib/getdelim.c (getdelim): Revert regression that required *n to
10637         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
10638         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
10639         getdelim, rather than whether implementation is missing.
10640         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
10641         * lib/stdio_.h (getline): Also declare if replacement is
10642         required.
10643         * doc/functions/getdelim.texi: New file.
10644         * doc/functions/getline.texi: Likewise.
10645         * doc/gnulib.texi (Function Substitutes): Add new files.
10646         Reported by Bruno Haible.
10647
10648 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
10649
10650         * users.txt: Add Guile.
10651
10652 2007-08-22  Eric Blake  <ebb9@byu.net>
10653
10654         * tests/test-getdelim.c (main): Use remove, not unlink.
10655         * tests/test-getline.c (main): Likewise.
10656
10657         Move getline and getdelim into stdio.h, per POSIX 200x.
10658         * modules/getline (Files): Remove getline.h.
10659         (Depends-on): Add stdio.
10660         (configure.ac): Add module indicator.
10661         * modules/getdelim (Files): Remove getdelim.h.
10662         (Depends-on): Add stdio.
10663         (configure.ac): Add module indicator.
10664         * modules/stdio (Makefile.am): Work with new indicators.
10665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10666         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
10667         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10668         * lib/getdelim.h: Delete.
10669         * lib/getline.h: Delete.
10670         * lib/stdio_.h (getdelim, getline): Declare.
10671         * modules/getdelim-tests: New module.
10672         * modules/getline-tests: Likewise.
10673         * tests/test-getdelim.c: New file.
10674         * tests/test-getline.c: Likewise.
10675         * NEWS: Document the change.
10676         * lib/getline.c: Update choice of header.
10677         * lib/csharpcomp.c: Likewise.
10678         * lib/getpass.c: Likewise.
10679         * lib/javacomp.c: Likewise.
10680         * lib/javaversion.c: Likewise.
10681         * lib/yesno.c: Likewise.
10682         * lib/getdelim.c: Likewise.
10683         (getdelim): Set errno on failure, and avoid memory leak.
10684
10685 2007-08-19  Bruno Haible  <bruno@clisp.org>
10686
10687         * modules/closein (Depends-on): Add freadahead.
10688         * lib/closein.c: Include freadahead.h.
10689         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
10690         is zero.
10691
10692 2007-08-19  Bruno Haible  <bruno@clisp.org>
10693
10694         * modules/freadahead-tests: New file.
10695         * tests/test-freadahead.sh: New file.
10696         * tests/test-freadahead.c: New file.
10697
10698         * modules/freadahead: New file.
10699         * lib/freadahead.h: New file.
10700         * lib/freadahead.c: New file.
10701         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
10702         fbufmode, fpurge, freadable, fwritable.
10703
10704 2007-08-19  Eric Blake  <ebb9@byu.net>
10705
10706         Test yesno in combination with closein.
10707         * lib/yesno.c (yesno): Document use of stdin.
10708         * modules/yesno-tests (Files): New module.
10709         * tests/test-yesno.c (main): New file.
10710         * tests/test-yesno.sh: Likewise.
10711
10712 2007-08-19  Bruno Haible  <bruno@clisp.org>
10713
10714         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
10715         * lib/fseeko.c (rpl_fseeko): Likewise.
10716         * lib/fseterr.c (fseterr): Likewise.
10717
10718 2007-08-19  Bruno Haible  <bruno@clisp.org>
10719
10720         * tests/test-lseek.c (main): Disable a test for BeOS.
10721         * doc/functions/lseek.texi: Document the BeOS bug.
10722
10723 2007-08-19  Bruno Haible  <bruno@clisp.org>
10724             Eric Blake  <ebb9@byu.net>
10725
10726         * lib/lseek.c: Include <sys/stat.h>.
10727         (rpl_lseek): Add workaround code also for Unix platforms.
10728         Needed for BeOS.
10729         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
10730         * doc/functions/lseek.texi: Document BeOS definiency.
10731
10732 2007-08-18  Bruno Haible  <bruno@clisp.org>
10733
10734         * modules/fstrcmp-tests: New file.
10735         * tests/test-fstrcmp.c: New file.
10736
10737 2007-08-18  Bruno Haible  <bruno@clisp.org>
10738
10739         * modules/fstrcmp: New file, from GNU gettext with modifications.
10740         * lib/fstrcmp.h: New file, from GNU gettext.
10741         * lib/fstrcmp.c: New file, from GNU gettext.
10742         * MODULES.html.sh (String handling): Add fstrcmp.
10743
10744 2007-08-18  Bruno Haible  <bruno@clisp.org>
10745
10746         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
10747         'bool'.
10748         (diag, compareseq): Remove const from the ctxt argument.
10749         (USE_HEURISTIC): Undefine at the end.
10750
10751 2007-08-18  Jim Meyering  <jim@meyering.net>
10752
10753         New file: lib/idcache.h
10754         * NEWS: Mention the addition.
10755         * modules/idcache (Files): Add lib/idcache.h
10756         * lib/idcache.c: Include "idcache.h".
10757         Don't include <sys/types.h>.
10758         Add a FIXME comment.
10759         Move file-scoped "static" declarations to the top.
10760         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
10761
10762 2007-08-17  Bruno Haible  <bruno@clisp.org>
10763         and Paul Eggert  <eggert@cs.ucla.edu>
10764
10765         * MODULES.html.sh: Add diffseq.
10766         * modules/diffseq: New file.
10767         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
10768         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
10769
10770 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10771
10772         Import changes from coreutils for bootstrap script.
10773
10774         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
10775
10776         * build-aux/bootstrap (slurp): Work even in environments where
10777         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
10778         current code does not slurp files whose names start with ".", and
10779         this looks like it might be a troublesome area.
10780
10781         2007-07-11  Jim Meyering  <jim@meyering.net>
10782
10783         If there's a GPL vN copyright comment, require that N == 3.
10784
10785         2007-07-08  Jim Meyering  <jim@meyering.net>
10786
10787         Run the coreutils-specific code only if tests/Makefile.am.in exists.
10788         * build-aux/bootstrap (mam_template): Move definition out of loop.
10789
10790         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
10791
10792         * build-aux/bootstrap (symlink_to_dir): Rename function from
10793         symlink_to_gnulib.  Add a directory parameter.  Update all
10794         callers.
10795         (cp_mark_as_generated): Also check for -- and link to -- files in
10796         gl/.
10797
10798         2007-07-08  Jim Meyering  <jim@meyering.net>
10799
10800         Adapt to deeper hierarchy in gnulib.
10801         * build-aux/bootstrap (symlink_to_dir): If the destination
10802         directory doesn't exist, create it. This is required at least for
10803         "lib/uniwidth/cjk.h".
10804
10805         2007-05-15  Jim Meyering  <jim@meyering.net>
10806
10807         * build-aux/bootstrap: Now that generated Makefile.am files
10808         are no longer under version control, they must be created at
10809         bootstrap time.
10810
10811 2007-08-14  Ben Pfaff  <blp@gnu.org>
10812
10813         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
10814
10815 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10816
10817         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
10818         given the changes below.
10819         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
10820         even on hosts that have padding bits beyond the supported 64.
10821
10822 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10823
10824         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
10825         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
10826         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
10827         depends on it.
10828         (xstrtol_error): Remove.
10829         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
10830         but with a different signature.
10831         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10832         * lib/xstrtol-error.c: Include exitfail.h.
10833         (xstrtol_fatal): New function, with a different signature from the
10834         old xstrtol_error, so that the caller need not worry about passing
10835         in an exit status, or about storage management of the option argument.
10836         (xstrtol_error): Now a static function.  Redo signature to
10837         implement xstrtol_fatal.  Output the correct number of hyphens in
10838         front of the option so that the caller need not worry about
10839         storage management.
10840         (N_): New macro.
10841         (_): Remove; not used now.
10842         * modules/xstrtol: Depend on getopt.
10843         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10844         of old STRTOL_FATAL_ERROR macro.
10845         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
10846         of test program.
10847         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
10848         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
10849
10850 2007-08-08  Eric Blake  <ebb9@byu.net>
10851
10852         * lib/xstrtol-error.c: Add missing include.
10853
10854         Move xstrtol messages into gnulib domain, when --pobase is used.
10855         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
10856         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
10857         * modules/xstrtol (Files): Distribute new file.
10858         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
10859         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
10860         * tests/test-xstrtol.c: ...into new file.
10861         * tests/test-xstrtoul.c: Also test xstrtoul.
10862         * tests/test-xstrtoimax.c: Also test xstrtoimax.
10863         * tests/test-xstrtoumax.c: Also test xstrtoumax.
10864         * tests/test-xstrtol.sh: Drive the tests.
10865         * tests/test-xstrtoimax.sh: Likewise.
10866         * tests/test-xstrtoumax.sh: Likewise.
10867         * modules/xstrtol-tests: New module.
10868         * modules/xstrtoimax-tests: Likewise.
10869         * modules/xstrtoumax-tests: Likewise.
10870
10871 2007-08-08  Jim Meyering  <jim@meyering.net>
10872
10873         New function: mfile_name_concat.
10874         * lib/filenamecat.c (mfile_name_concat): New function, just like
10875         file_name_concat, but return NULL upon failure rather than exiting
10876         with a diagnostic.
10877         * lib/filenamecat.h: Declare it.
10878
10879 2007-08-07  Bruno Haible  <bruno@clisp.org>
10880
10881         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
10882         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
10883         warning from gcc.
10884         Reported by Eric Blake.
10885
10886 2007-08-07  Simon Josefsson  <simon@josefsson.org>
10887
10888         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
10889         * modules/crypto/arcfour (License): Likewise.
10890         * modules/crypto/des-tests (License): Likewise.
10891         * modules/crypto/gc-arctwo-tests (License): Likewise.
10892         * modules/crypto/gc-des-tests (License): Likewise.
10893         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
10894         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
10895         * modules/crypto/gc-md2-tests (License): Likewise.
10896         * modules/crypto/gc-md4-tests (License): Likewise.
10897         * modules/crypto/gc-md5-tests (License): Likewise.
10898         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
10899         * modules/crypto/gc-rijndael-tests (License): Likewise.
10900         * modules/crypto/gc-sha1-tests (License): Likewise.
10901         * modules/crypto/gc-tests (License): Likewise.
10902         * modules/crypto/hmac-md5 (License): Likewise.
10903         * modules/crypto/hmac-sha1 (License): Likewise.
10904         * modules/crypto/md2-tests (License): Likewise.
10905         * modules/crypto/md4-tests (License): Likewise.
10906         * modules/crypto/md5 (License): Likewise.
10907         * modules/crypto/rijndael (License): Likewise.
10908         * modules/crypto/sha1 (License): Likewise.
10909         * modules/memxor (License): Likewise.
10910
10911 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10912         and Bruno Haible  <bruno@clisp.org>
10913
10914         * NEWS: Describe interface changes to human, xstrtol.
10915         * lib/human.h: Include <xstrtol.h>.
10916         (human_options): Return enum strtol_error, not int.  Remove
10917         bool arg; take int * instead.
10918         * lib/human.c: Don't include "gettext.h".
10919         (_): Remove; no longer used.
10920         Don't include <xstrtol.h>, since human.h does it.
10921         (human_options): Adjust to abovementioned interface changes.
10922         Do not report error to stderr; that's now the caller's
10923         responsibility.
10924         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
10925         interface change.
10926         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
10927         Str, Argument_type_string.  All uses changed.  Put " argument"
10928         in diagnostics to make them clearer.  Change wording of suffix
10929         message for clarity.
10930         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
10931         Argument_type_string.
10932         (STRTOL_FATAL_WARN): Remove; no longer used.
10933         * modules/human (Depends-on): Remove gettext-h.
10934
10935 2007-08-06  Simon Josefsson  <simon@josefsson.org>
10936
10937         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
10938
10939 2007-07-31  Bruno Haible  <bruno@clisp.org>
10940
10941         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
10942         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
10943         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
10944
10945 2007-07-31  Bruno Haible  <bruno@clisp.org>
10946
10947         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
10948         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
10949
10950 2007-07-30  Bruno Haible  <bruno@clisp.org>
10951
10952         * modules/base64 (License): Use the synonymous term "LGPLv2+".
10953         * modules/c-ctype (License): Likewise.
10954         * modules/c-strcase (License): Likewise.
10955         * modules/check-version (License): Likewise.
10956         * modules/iconv (License): Likewise.
10957         * modules/iconv_open (License): Likewise.
10958         * modules/read-file (License): Likewise.
10959         * modules/striconv (License): Likewise.
10960         * modules/strverscmp (License): Likewise.
10961         * modules/vasprintf (License): Likewise.
10962         * modules/crypto/des (License): Likewise.
10963         * modules/crypto/gc (License): Likewise.
10964         * modules/crypto/gc-arcfour (License): Likewise.
10965         * modules/crypto/gc-arctwo (License): Likewise.
10966         * modules/crypto/gc-des (License): Likewise.
10967         * modules/crypto/gc-hmac-md5 (License): Likewise.
10968         * modules/crypto/gc-hmac-sha1 (License): Likewise.
10969         * modules/crypto/gc-md2 (License): Likewise.
10970         * modules/crypto/gc-md4 (License): Likewise.
10971         * modules/crypto/gc-md5 (License): Likewise.
10972         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
10973         * modules/crypto/gc-random (License): Likewise.
10974         * modules/crypto/gc-rijndael (License): Likewise.
10975         * modules/crypto/gc-sha1 (License): Likewise.
10976         * modules/crypto/md2 (License): Likewise.
10977         * modules/crypto/md4 (License): Likewise.
10978
10979 2007-07-30  Jim Meyering  <jim@meyering.net>
10980
10981         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
10982         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
10983         it has valid stat data.  This bug would cause du not to count the
10984         sizes of inaccessible directories.
10985         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
10986         in <http://bugzilla.redhat.com/250077>.
10987
10988 2007-07-25  Peter O'Gorman  <peter@pogma.com>
10989             Bruno Haible  <bruno@clisp.org>
10990
10991         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
10992         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
10993         #include_next, gives a diagnostic about it, but reports no error in
10994         the exit code.
10995         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10996
10997 2007-07-24  Ben Pfaff  <blp@gnu.org>
10998
10999         Improve name: "count-one-bits" is better than "popcount".
11000         * MODULES.html.sh: Update name.
11001         * lib/popcount.h: Renamed lib/count-one-bits.h.
11002         (popcount): Renamed count_one_bits.
11003         (popcountl): Renamed count_one_bits_l.
11004         (popcountll): Renamed count_one_bits_ll.
11005         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
11006         * modules/popcount: Renamed module/count-one-bits.
11007         * modules/popcount-tests: Renamed module/count-one-bits-tests.
11008         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
11009
11010 2007-07-23  Ben Pfaff  <blp@gnu.org>
11011
11012         * lib/popcount.h (popcount32): Reduce size of constants, to allow
11013         better code generation, and add U to large constants to avoid
11014         warnings, in non-GCC case.
11015         Suggested by Bruno Haible.
11016
11017 2007-07-23  Ben Pfaff  <blp@gnu.org>
11018
11019         * lib/popcount.h: Use verify_true instead of if...abort.
11020         * modules/popcount: Depend on verify module.
11021         Suggested by Jim Meyering.
11022
11023 2007-07-23  Bruno Haible  <bruno@clisp.org>
11024
11025         * gnulib-tool (func_import): Create a .cvsignore file also when the
11026         directory is not yet in CVS but the toplevel directory is. When
11027         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
11028         Reported by Karl Berry.
11029
11030 2007-07-22  Ben Pfaff  <blp@gnu.org>
11031
11032         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
11033         case.
11034         Suggested by Eric Blake.
11035
11036 2007-07-22  Ben Pfaff  <blp@gnu.org>
11037
11038         New module: popcount.
11039         * MODULES.html.sh: Add popcount.
11040         * modules/popcount: New file.
11041         * modules/popcount-tests: New file.
11042         * tests/test-popcount.c: New file.
11043         * lib/popcount.h: New file.
11044         * m4/popcount.m4: New file.
11045
11046 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11047
11048         * build-aux/announce-gen: Update to GPLv3.
11049
11050         * build-aux/config.guess: Update from config.
11051
11052 2007-07-21  Bruno Haible  <bruno@clisp.org>
11053
11054         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
11055         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
11056
11057 2007-07-20  Jim Meyering  <jim@meyering.net>
11058
11059         * check-module: Diagnose a self-dependency.
11060
11061 2007-07-19  Bruno Haible  <bruno@clisp.org>
11062
11063         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
11064         empty.
11065         Reported by Eric Blake.
11066
11067 2007-07-18  Bruno Haible  <bruno@clisp.org>
11068
11069         * gnulib-tool: New options --po-base, --po-domain.
11070         (func_usage): Document them.
11071         (pobase, po_domain): New variables.
11072         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
11073         DEFAULT_TEXT_DOMAIN.
11074         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
11075         (func_import): Consider pobase and po_domain. Create a po/ directory.
11076         (func_create_testdir): Set pobase and po_domain to empty.
11077         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
11078         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
11079
11080 2007-07-18  Bruno Haible  <bruno@clisp.org>
11081
11082         * gnulib-tool (func_get_automake_snippet): Synthesize also an
11083         EXTRA_DIST augmentation for files in build-aux/.
11084
11085 2007-07-16  Bruno Haible  <bruno@clisp.org>
11086
11087         * modules/lseek (License): Use the synonymous term "LGPLv2+".
11088         * modules/getdelim (License): Likewise.
11089
11090 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11091
11092         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
11093         * modules/d-type (License): Likewise.
11094         * modules/extensions (License): Likewise.
11095         * modules/fnmatch (License): Likewise.
11096         * modules/fseeko (License): Likewise.
11097         * modules/getaddrinfo (License): Likewise.
11098         * modules/getline (License): Likewise.
11099         * modules/getlogin_r (License): Likewise.
11100         * modules/getpass (License): Likewise.
11101         * modules/gettimeofday (License): Likewise.
11102         * modules/glob (License): Likewise.
11103         * modules/inet_ntop (License): Likewise.
11104         * modules/malloc (License): Likewise.
11105         * modules/malloca (License): Likewise.
11106         * modules/memmem (License): Likewise.
11107         * modules/mempcpy (License): Likewise.
11108         * modules/memset (License): Likewise.
11109         * modules/minmax (License): Likewise.
11110         * modules/mktime (License): Likewise.
11111         * modules/netinet_in (License): Likewise.
11112         * modules/pathmax (License): Likewise.
11113         * modules/poll (License): Likewise.
11114         * modules/regex (License): Likewise.
11115         * modules/snprintf (License): Likewise.
11116         * modules/stdbool (License): Likewise.
11117         * modules/stdint (License): Likewise.
11118         * modules/stdio (License): Likewise.
11119         * modules/strcase (License): Likewise.
11120         * modules/strcasestr (License): Likewise.
11121         * modules/strdup (License): Likewise.
11122         * modules/string (License): Likewise.
11123         * modules/strndup (License): Likewise.
11124         * modules/strnlen (License): Likewise.
11125         * modules/strpbrk (License): Likewise.
11126         * modules/strptime (License): Likewise.
11127         * modules/strsep (License): Likewise.
11128         * modules/sys_select (License): Likewise.
11129         * modules/sys_socket (License): Likewise.
11130         * modules/sys_stat (License): Likewise.
11131         * modules/sys_time (License): Likewise.
11132         * modules/time (License): Likewise.
11133         * modules/time_r (License): Likewise.
11134         * modules/timegm (License): Likewise.
11135         * modules/unistd (License): Likewise.
11136         * modules/vsnprintf (License): Likewise.
11137         * modules/wctype (License): Likewise.
11138
11139 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11140
11141         * modules/argz (License): LGPLv2+.
11142
11143 2007-07-15  Karl Berry  <karl@gnu.org>
11144
11145         * doc/gnulib.texi: revise node structure per new fdl.texi.
11146
11147 2007-07-14  Bruno Haible  <bruno@clisp.org>
11148
11149         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
11150         the output file.
11151         * lib/uniname/uninames.h: Regenerated.
11152
11153 2007-07-14  Karl Berry  <karl@gnu.org>
11154
11155         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
11156         omitting sectioning and index commands.
11157
11158 2007-07-13  Bruno Haible  <bruno@clisp.org>
11159
11160         New gnulib-tool option --more-symlinks.
11161         * gnulib-tool (func_usage): Document --more-symlinks.
11162         (do_copyrights): New variable.
11163         Recognize option --more-symlinks.
11164         (func_import): Don't add a copyright notice transform to
11165         sed_transform_lib_file if do_copyrights is empty.
11166
11167 2007-07-13  Bruno Haible  <bruno@clisp.org>
11168
11169         * lib/vasnprintf.c (decimal_point_char): Define also if
11170         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
11171         && !NEED_PRINTF_DIRECTIVE_A.
11172         Reported by Clemens Koller <clemens.koller@anagramm.de> via
11173         Gary V. Vaughan <gary@gnu.org>.
11174
11175 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11176
11177         * lib/inttypes_.h: Undo previous change, since it was fixed
11178         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
11179
11180 2007-07-13  Bruno Haible  <bruno@clisp.org>
11181
11182         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
11183         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
11184
11185 2007-07-13  Jim Meyering  <jim@meyering.net>
11186
11187         df: Don't fail for Tru64's "file-on-file mount".
11188         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
11189         so we fall through and use statfs instead.  Details here:
11190         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
11191         Reported by Albert Chin.
11192
11193 2007-07-13  Bruno Haible  <bruno@clisp.org>
11194
11195         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
11196         * modules/configmake (License): Likewise.
11197         * modules/gettext (License): Likewise.
11198         * modules/gettext-h (License): Likewise.
11199         * modules/include_next (License): Likewise.
11200         * modules/link-warning (License): Likewise.
11201         * modules/localcharset (License): Likewise.
11202         * modules/localename (License): Likewise.
11203         * modules/lock (License): Likewise.
11204         * modules/relocatable-lib-lgpl (License): Likewise.
11205         * modules/size_max (License): Likewise.
11206         * modules/vasnprintf (License): Likewise.
11207         * modules/wchar (License): Likewise.
11208         * modules/xsize (License): Likewise.
11209
11210 2007-07-13  Bruno Haible  <bruno@clisp.org>
11211
11212         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
11213         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
11214
11215 2007-07-12  Bruno Haible  <bruno@clisp.org>
11216
11217         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
11218         in the modules files.
11219
11220 2007-07-11  Karl Berry  <karl@gnu.org>
11221
11222         * MODULES.html.sh (func_module): use
11223          sed -e '\|^'"${includefile}"'$|d'
11224          instead of /.../d, to avoid errors on $includefile's containing /.
11225
11226 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
11227
11228         * gnulib-tool (func_import): Avoid duplication of --avoid
11229         statements
11230         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
11231         names to `_' in variable names.
11232
11233 2007-07-10  Eric Blake  <ebb9@byu.net>
11234
11235         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
11236         * NEWS: Document this change.
11237
11238 2007-07-08  Bruno Haible  <bruno@clisp.org>
11239
11240         Update to Unicode 5.0.
11241         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
11242         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
11243         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
11244         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
11245         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
11246         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
11247         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
11248         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
11249         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
11250         U+10A3F, U+1D242..U+1D244.
11251         (nonspacing_table_ind): Update.
11252         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
11253         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
11254
11255 2007-07-08  Bruno Haible  <bruno@clisp.org>
11256
11257         Update to Unicode 5.0.
11258         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
11259         code transform. Extend the name index field of unicode_name_to_code and
11260         unicode_code_to_name from 16 to 24 bits.
11261         * lib/uniname/uniname.c (unicode_character_name,
11262         unicode_name_character): Add the range 0x12xxx to the code transform.
11263         * lib/uniname/uninames.h: Regenerated.
11264         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
11265
11266 2007-07-07  Bruno Haible  <bruno@clisp.org>
11267
11268         * modules/wcwidth-tests: New file.
11269         * tests/test-wcwidth.c: New file.
11270
11271         Work around MacOS X wcwidth() bug.
11272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
11273         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
11274         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
11275         original wcwidth in non-UTF-8 locales.
11276         * modules/wcwidth (Depends-on): Add localcharset, streq,
11277         uniwidth/width.
11278         * doc/functions/wcwidth.texi: Update.
11279
11280 2007-07-07  Bruno Haible  <bruno@clisp.org>
11281
11282         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
11283         (wcwidth): New declaration.
11284         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
11285         macros.
11286         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
11287         here. Prepare for creating <wchar.h> unconditionally.
11288         * modules/wchar (Depends-on): Add link-warning.
11289         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
11290         REPLACE_WCWIDTH, and GL_LINK_WARNING.
11291         * lib/wcwidth.h: Remove file.
11292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
11293         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
11294         * modules/wcwidth (Files): Remove lib/wcwidth.h.
11295         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
11296         (Include): Replace wcwidth.h with <wchar.h>.
11297         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
11298         * lib/mbchar.h: Don't include wcwidth.h.
11299         * lib/mbswidth.c: Likewise.
11300         * NEWS: Mention the change.
11301
11302 2007-07-07  Bruno Haible  <bruno@clisp.org>
11303
11304         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
11305         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
11306         definition with an external declaration.
11307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
11308         defined as a function. Remove AC_C_INLINE requirement.
11309         * modules/wcwidth (Files): Add lib/wcwidth.c.
11310         (Makefile.am): Remove redundant statement.
11311
11312 2007-07-07  Bruno Haible  <bruno@clisp.org>
11313
11314         * MODULES.html.sh (Unicode string functions): Add the new modules.
11315
11316         * tests/uniwidth/test-u32-strwidth.c: New file.
11317         * modules/uniwidth/u32-strwidth-tests: New file.
11318
11319         * lib/uniwidth/u32-strwidth.c: New file.
11320         * modules/uniwidth/u32-strwidth: New file.
11321
11322         * tests/uniwidth/test-u16-strwidth.c: New file.
11323         * modules/uniwidth/u16-strwidth-tests: New file.
11324
11325         * lib/uniwidth/u16-strwidth.c: New file.
11326         * modules/uniwidth/u16-strwidth: New file.
11327
11328         * tests/uniwidth/test-u8-strwidth.c: New file.
11329         * modules/uniwidth/u8-strwidth-tests: New file.
11330
11331         * lib/uniwidth/u8-strwidth.c: New file.
11332         * modules/uniwidth/u8-strwidth: New file.
11333
11334         * tests/uniwidth/test-u32-width.c: New file.
11335         * modules/uniwidth/u32-width-tests: New file.
11336
11337         * lib/uniwidth/u32-width.c: New file.
11338         * modules/uniwidth/u32-width: New file.
11339
11340         * tests/uniwidth/test-u16-width.c: New file.
11341         * modules/uniwidth/u16-width-tests: New file.
11342
11343         * lib/uniwidth/u16-width.c: New file.
11344         * modules/uniwidth/u16-width: New file.
11345
11346         * tests/uniwidth/test-u8-width.c: New file.
11347         * modules/uniwidth/u8-width-tests: New file.
11348
11349         * lib/uniwidth/u8-width.c: New file.
11350         * modules/uniwidth/u8-width: New file.
11351
11352         * tests/uniwidth/test-uc_width.c: New file.
11353         * modules/uniwidth/width-tests: New file.
11354
11355         * lib/uniwidth/width.c: New file, from GNU libiconv.
11356         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
11357         * modules/uniwidth/width: New file.
11358
11359         * lib/uniwidth.h: New file, from GNU libiconv.
11360         * modules/uniwidth/base: New file.
11361
11362 2007-07-07  Bruno Haible  <bruno@clisp.org>
11363
11364         * lib/uniname.h: New file, from GNU gettext.
11365         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
11366         * lib/uniname/uninames.h: New file, from GNU gettext.
11367         * lib/uniname/uniname.c: New file, from GNU gettext.
11368         * tests/uniname/test-uninames.sh: New file.
11369         * tests/uniname/test-uninames.c: New file, from GNU gettext.
11370         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
11371         * modules/uniname/base: New file.
11372         * modules/uniname/uniname: New file.
11373         * modules/uniname/uniname-tests: New file.
11374         * MODULES.html.sh (Unicode string functions): Add the new modules.
11375
11376 2007-07-06  Bruno Haible  <bruno@clisp.org>
11377
11378         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
11379
11380 2007-07-06  Bruno Haible  <bruno@clisp.org>
11381
11382         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
11383         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
11384         includes <cygwin/sys_time.h> which includes <sys/select.h> which
11385         include <sys/time.h>.
11386         Reported by Eric Blake.
11387
11388 2007-07-06  Eric Blake  <ebb9@byu.net>
11389
11390         Fix testing canonicalize on cygwin.
11391         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11392         Revert patch from 2007-06-19.
11393         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
11394         canonicalize module is also in use.
11395         * tests/test-canonicalize.c: New file.
11396         * tests/test-canonicalize.sh: Likewise.
11397         * modules/canonicalize-tests: Likewise.
11398
11399 2007-07-06  Jim Meyering  <jim@meyering.net>
11400
11401         * lib/getugroups.c (getugroups): Detect getgrent failure.
11402         Adjust comment to reflect reality: this function may return -1.
11403
11404 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11405
11406         * build-aux/bootstrap (TP_URL,get_translations): Update to use
11407         the new TP address.
11408         (usage): Fix typo
11409         (gnulib_mk): New variable.
11410
11411 2007-07-05  Jim Meyering  <jim@meyering.net>
11412
11413         Don't let endgrent clobber errno, no matter how improbable.
11414         * lib/getugroups.c (getugroups): Save and restore errno around
11415         endgrent call.
11416
11417         Close the group DB even when failing with 2^31 or more members.
11418         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
11419
11420 2007-07-04  Jim Meyering  <jim@meyering.net>
11421
11422         * lib/getugroups.h: New file.
11423         * lib/getugroups.c: Include "getugroups.h".
11424         Remove uses of "register" keyword.
11425         Move local variable, "cp", down into scope where used.
11426         Give "username" parameter the "const" attribute.
11427         * modules/getugroups (Files): Add lib/getugroups.h
11428
11429 2007-07-04  Karl Berry  <karl@gnu.org>
11430
11431         * MODULES.html.sh (func_all_modules): Complete rename of
11432         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11433
11434 2007-07-02  Bruno Haible  <bruno@clisp.org>
11435
11436         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11437         mode, when inttypes.h comes from gnulib.
11438         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11439
11440 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11441
11442         * NEWS: Mention lgpl module name change.
11443
11444         * modules/lgpl-2.1: Renamed from lgpl.
11445
11446         * NEWS: Mention gpl module name change.
11447
11448         * modules/gpl-3.0: New file, based on gpl-2.0.
11449
11450         * modules/gpl-2.0: Renamed from gpl.
11451
11452         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11453         doc/gpl-2.0.texi.
11454
11455 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11456
11457         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11458         #define __STDC_LIMIT_MACROS temporarily while including
11459         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11460         Problem reported by Joel E. Denny in
11461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11462
11463 2007-07-01  Bruno Haible  <bruno@clisp.org>
11464
11465         * lib/unistdio.h: New file.
11466         * lib/unistdio/u-asnprintf.h: New file.
11467         * lib/unistdio/u-asprintf.h: New file.
11468         * lib/unistdio/u-printf-args.c: New file.
11469         * lib/unistdio/u-printf-args.h: New file.
11470         * lib/unistdio/u-printf-parse.h: New file.
11471         * lib/unistdio/u-snprintf.h: New file.
11472         * lib/unistdio/u-sprintf.h: New file.
11473         * lib/unistdio/u-vasprintf.h: New file.
11474         * lib/unistdio/u-vsnprintf.h: New file.
11475         * lib/unistdio/u-vsprintf.h: New file.
11476         * lib/unistdio/ulc-asnprintf.c: New file.
11477         * lib/unistdio/ulc-asprintf.c: New file.
11478         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11479         * lib/unistdio/ulc-printf-parse.c: New file.
11480         * lib/unistdio/ulc-snprintf.c: New file.
11481         * lib/unistdio/ulc-sprintf.c: New file.
11482         * lib/unistdio/ulc-vasnprintf.c: New file.
11483         * lib/unistdio/ulc-vasprintf.c: New file.
11484         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11485         * lib/unistdio/ulc-vsnprintf.c: New file.
11486         * lib/unistdio/ulc-vsprintf.c: New file.
11487         * lib/unistdio/u8-asnprintf.c: New file.
11488         * lib/unistdio/u8-asprintf.c: New file.
11489         * lib/unistdio/u8-printf-parse.c: New file.
11490         * lib/unistdio/u8-snprintf.c: New file.
11491         * lib/unistdio/u8-sprintf.c: New file.
11492         * lib/unistdio/u8-vasnprintf.c: New file.
11493         * lib/unistdio/u8-vasprintf.c: New file.
11494         * lib/unistdio/u8-vsnprintf.c: New file.
11495         * lib/unistdio/u8-vsprintf.c: New file.
11496         * lib/unistdio/u8-u8-asnprintf.c: New file.
11497         * lib/unistdio/u8-u8-asprintf.c: New file.
11498         * lib/unistdio/u8-u8-snprintf.c: New file.
11499         * lib/unistdio/u8-u8-sprintf.c: New file.
11500         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11501         * lib/unistdio/u8-u8-vasprintf.c: New file.
11502         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11503         * lib/unistdio/u8-u8-vsprintf.c: New file.
11504         * lib/unistdio/u16-asnprintf.c: New file.
11505         * lib/unistdio/u16-asprintf.c: New file.
11506         * lib/unistdio/u16-printf-parse.c: New file.
11507         * lib/unistdio/u16-snprintf.c: New file.
11508         * lib/unistdio/u16-sprintf.c: New file.
11509         * lib/unistdio/u16-vasnprintf.c: New file.
11510         * lib/unistdio/u16-vasprintf.c: New file.
11511         * lib/unistdio/u16-vsnprintf.c: New file.
11512         * lib/unistdio/u16-vsprintf.c: New file.
11513         * lib/unistdio/u16-u16-asnprintf.c: New file.
11514         * lib/unistdio/u16-u16-asprintf.c: New file.
11515         * lib/unistdio/u16-u16-snprintf.c: New file.
11516         * lib/unistdio/u16-u16-sprintf.c: New file.
11517         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11518         * lib/unistdio/u16-u16-vasprintf.c: New file.
11519         * lib/unistdio/u16-u16-vsnprintf.c: New file.
11520         * lib/unistdio/u16-u16-vsprintf.c: New file.
11521         * lib/unistdio/u32-asnprintf.c: New file.
11522         * lib/unistdio/u32-asprintf.c: New file.
11523         * lib/unistdio/u32-printf-parse.c: New file.
11524         * lib/unistdio/u32-snprintf.c: New file.
11525         * lib/unistdio/u32-sprintf.c: New file.
11526         * lib/unistdio/u32-vasnprintf.c: New file.
11527         * lib/unistdio/u32-vasprintf.c: New file.
11528         * lib/unistdio/u32-vsnprintf.c: New file.
11529         * lib/unistdio/u32-vsprintf.c: New file.
11530         * lib/unistdio/u32-u32-asnprintf.c: New file.
11531         * lib/unistdio/u32-u32-asprintf.c: New file.
11532         * lib/unistdio/u32-u32-snprintf.c: New file.
11533         * lib/unistdio/u32-u32-sprintf.c: New file.
11534         * lib/unistdio/u32-u32-vasnprintf.c: New file.
11535         * lib/unistdio/u32-u32-vasprintf.c: New file.
11536         * lib/unistdio/u32-u32-vsnprintf.c: New file.
11537         * lib/unistdio/u32-u32-vsprintf.c: New file.
11538         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11539         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11540         * tests/unistdio/test-ulc-printf1.h: New file.
11541         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11542         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11543         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11544         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11545         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11546         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11547         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11548         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11549         * tests/unistdio/test-u8-asnprintf1.c: New file.
11550         * tests/unistdio/test-u8-asnprintf1.h: New file.
11551         * tests/unistdio/test-u8-printf1.h: New file.
11552         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11553         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11554         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11555         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11556         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11557         * tests/unistdio/test-u8-vasprintf1.c: New file.
11558         * tests/unistdio/test-u8-vsnprintf1.c: New file.
11559         * tests/unistdio/test-u8-vsprintf1.c: New file.
11560         * tests/unistdio/test-u16-asnprintf1.c: New file.
11561         * tests/unistdio/test-u16-asnprintf1.h: New file.
11562         * tests/unistdio/test-u16-printf1.h: New file.
11563         * tests/unistdio/test-u16-vasnprintf1.c: New file.
11564         * tests/unistdio/test-u16-vasnprintf2.c: New file.
11565         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
11566         * tests/unistdio/test-u16-vasnprintf3.c: New file.
11567         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
11568         * tests/unistdio/test-u16-vasprintf1.c: New file.
11569         * tests/unistdio/test-u16-vsnprintf1.c: New file.
11570         * tests/unistdio/test-u16-vsprintf1.c: New file.
11571         * tests/unistdio/test-u32-asnprintf1.c: New file.
11572         * tests/unistdio/test-u32-asnprintf1.h: New file.
11573         * tests/unistdio/test-u32-printf1.h: New file.
11574         * tests/unistdio/test-u32-vasnprintf1.c: New file.
11575         * tests/unistdio/test-u32-vasnprintf2.c: New file.
11576         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
11577         * tests/unistdio/test-u32-vasnprintf3.c: New file.
11578         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
11579         * tests/unistdio/test-u32-vasprintf1.c: New file.
11580         * tests/unistdio/test-u32-vsnprintf1.c: New file.
11581         * tests/unistdio/test-u32-vsprintf1.c: New file.
11582         * modules/unistdio/base: New file.
11583         * modules/unistdio/u-printf-args: New file.
11584         * modules/unistdio/ulc-asnprintf: New file.
11585         * modules/unistdio/ulc-asprintf: New file.
11586         * modules/unistdio/ulc-fprintf: New file.
11587         * modules/unistdio/ulc-printf-parse: New file.
11588         * modules/unistdio/ulc-snprintf: New file.
11589         * modules/unistdio/ulc-sprintf: New file.
11590         * modules/unistdio/ulc-vasnprintf: New file.
11591         * modules/unistdio/ulc-vasprintf: New file.
11592         * modules/unistdio/ulc-vfprintf: New file.
11593         * modules/unistdio/ulc-vsnprintf: New file.
11594         * modules/unistdio/ulc-vsprintf: New file.
11595         * modules/unistdio/u8-asnprintf: New file.
11596         * modules/unistdio/u8-asprintf: New file.
11597         * modules/unistdio/u8-printf-parse: New file.
11598         * modules/unistdio/u8-snprintf: New file.
11599         * modules/unistdio/u8-sprintf: New file.
11600         * modules/unistdio/u8-vasnprintf: New file.
11601         * modules/unistdio/u8-vasprintf: New file.
11602         * modules/unistdio/u8-vsnprintf: New file.
11603         * modules/unistdio/u8-vsprintf: New file.
11604         * modules/unistdio/u8-u8-asnprintf: New file.
11605         * modules/unistdio/u8-u8-asprintf: New file.
11606         * modules/unistdio/u8-u8-snprintf: New file.
11607         * modules/unistdio/u8-u8-sprintf: New file.
11608         * modules/unistdio/u8-u8-vasnprintf: New file.
11609         * modules/unistdio/u8-u8-vasprintf: New file.
11610         * modules/unistdio/u8-u8-vsnprintf: New file.
11611         * modules/unistdio/u8-u8-vsprintf: New file.
11612         * modules/unistdio/u16-asnprintf: New file.
11613         * modules/unistdio/u16-asprintf: New file.
11614         * modules/unistdio/u16-printf-parse: New file.
11615         * modules/unistdio/u16-snprintf: New file.
11616         * modules/unistdio/u16-sprintf: New file.
11617         * modules/unistdio/u16-vasnprintf: New file.
11618         * modules/unistdio/u16-vasprintf: New file.
11619         * modules/unistdio/u16-vsnprintf: New file.
11620         * modules/unistdio/u16-vsprintf: New file.
11621         * modules/unistdio/u16-u16-asnprintf: New file.
11622         * modules/unistdio/u16-u16-asprintf: New file.
11623         * modules/unistdio/u16-u16-snprintf: New file.
11624         * modules/unistdio/u16-u16-sprintf: New file.
11625         * modules/unistdio/u16-u16-vasnprintf: New file.
11626         * modules/unistdio/u16-u16-vasprintf: New file.
11627         * modules/unistdio/u16-u16-vsnprintf: New file.
11628         * modules/unistdio/u16-u16-vsprintf: New file.
11629         * modules/unistdio/u32-asnprintf: New file.
11630         * modules/unistdio/u32-asprintf: New file.
11631         * modules/unistdio/u32-printf-parse: New file.
11632         * modules/unistdio/u32-snprintf: New file.
11633         * modules/unistdio/u32-sprintf: New file.
11634         * modules/unistdio/u32-vasnprintf: New file.
11635         * modules/unistdio/u32-vasprintf: New file.
11636         * modules/unistdio/u32-vsnprintf: New file.
11637         * modules/unistdio/u32-vsprintf: New file.
11638         * modules/unistdio/u32-u32-asnprintf: New file.
11639         * modules/unistdio/u32-u32-asprintf: New file.
11640         * modules/unistdio/u32-u32-snprintf: New file.
11641         * modules/unistdio/u32-u32-sprintf: New file.
11642         * modules/unistdio/u32-u32-vasnprintf: New file.
11643         * modules/unistdio/u32-u32-vasprintf: New file.
11644         * modules/unistdio/u32-u32-vsnprintf: New file.
11645         * modules/unistdio/u32-u32-vsprintf: New file.
11646         * modules/unistdio/ulc-asnprintf-tests: New file.
11647         * modules/unistdio/ulc-vasnprintf-tests: New file.
11648         * modules/unistdio/ulc-vasprintf-tests: New file.
11649         * modules/unistdio/ulc-vsnprintf-tests: New file.
11650         * modules/unistdio/ulc-vsprintf-tests: New file.
11651         * modules/unistdio/u8-asnprintf-tests: New file.
11652         * modules/unistdio/u8-vasnprintf-tests: New file.
11653         * modules/unistdio/u8-vasprintf-tests: New file.
11654         * modules/unistdio/u8-vsnprintf-tests: New file.
11655         * modules/unistdio/u8-vsprintf-tests: New file.
11656         * modules/unistdio/u16-asnprintf-tests: New file.
11657         * modules/unistdio/u16-vasnprintf-tests: New file.
11658         * modules/unistdio/u16-vasprintf-tests: New file.
11659         * modules/unistdio/u16-vsnprintf-tests: New file.
11660         * modules/unistdio/u16-vsprintf-tests: New file.
11661         * modules/unistdio/u32-asnprintf-tests: New file.
11662         * modules/unistdio/u32-vasnprintf-tests: New file.
11663         * modules/unistdio/u32-vasprintf-tests: New file.
11664         * modules/unistdio/u32-vsnprintf-tests: New file.
11665         * modules/unistdio/u32-vsprintf-tests: New file.
11666         * MODULES.html.sh (Unicode string functions): Add the new modules.
11667
11668 2007-07-01  Bruno Haible  <bruno@clisp.org>
11669
11670         * lib/sprintf.c (sprintf): Limit the available length estimation,
11671         to avoid address wraparound.
11672         * lib/vsprintf.c (vsprintf): Likewise.
11673         * modules/sprintf-posix (Dependencies): Add stdint.
11674         * modules/vsprintf-posix (Dependencies): Likewise.
11675
11676 2007-07-01  Bruno Haible  <bruno@clisp.org>
11677
11678         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
11679         Windows PATH as well. Conservative double-quoting. Comments.
11680
11681 2007-07-01  Bruno Haible  <bruno@clisp.org>
11682             Eric Blake  <ebb9@byu.net>
11683             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11684
11685         * gnulib-tool (self_abspathname): Fix algorithm to cope with
11686         empty components in $PATH, denoting '.'.
11687
11688 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11689
11690         * gnulib-tool: Fix indentation.
11691         (func_create_megatestdir): Likewise.
11692         Report by Bruno Haible.
11693
11694 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11695
11696         Sync from Automake.
11697         * build-aux/gnupload: Fix shell portability issues with for loops.
11698         Report by Karl Berry.
11699
11700 2007-06-29  Simon Josefsson  <simon@josefsson.org>
11701
11702         * build-aux/maint.mk (POURL): Use translationproject.org.
11703
11704 2007-06-27  Simon Josefsson  <simon@josefsson.org>
11705             Bruno Haible  <bruno@clisp.org>
11706
11707         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
11708         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
11709         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
11710         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
11711         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
11712
11713 2007-06-27  Bruno Haible  <bruno@clisp.org>
11714
11715         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
11716         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
11717
11718 2007-06-26  Karl Berry  <karl@gnu.org>
11719
11720         * MODULES.html.sh: remove xreadlink-with-size.
11721
11722 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11723
11724         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
11725         method that I hope also handles the double-include problem noted
11726         by Bruno Haible in
11727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
11728
11729 2007-06-23  Bruno Haible  <bruno@clisp.org>
11730
11731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11732         Don't let the 'mostlyclean' target fail if the last subdirectory could
11733         not be removed.
11734         Reported by Karl Berry.
11735
11736 2007-06-23  Bruno Haible  <bruno@clisp.org>
11737
11738         * gnulib-tool (echo): Add a speedier workaround for ksh.
11739         * tests/test-echo.sh: Likewise.
11740
11741 2007-06-23  Bruno Haible  <bruno@clisp.org>
11742
11743         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
11744         * tests/test-echo.sh: Likewise.
11745
11746 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11747
11748         * gnulib-tool (IFS): Initialize early, so we don't set it to
11749         empty later.
11750         (self_abspathname): Rewrite algorithm to set it, reindent.
11751         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
11752         (func_create_megatestdir): Merge some sed scripts.
11753
11754 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11755
11756         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
11757         exposed by Sun Studio 11 cc on Solaris 8.
11758
11759 2007-06-22  Bruno Haible  <bruno@clisp.org>
11760
11761         * gnulib-tool (echo): Ensure the echo primitive does not interpret
11762         backslashes.
11763         * tests/test-echo.sh: New file.
11764
11765 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11766
11767         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
11768         simplify `sed_replace_build_aux' scripts, they are portable but
11769         echoing them with `echo' is not.
11770         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
11771
11772 2007-06-21  Karl Berry  <karl@gnu.org>
11773
11774         * config/srclist.txt: guess we can't handle the licenses via
11775         srclist at the moment.
11776
11777 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11778
11779         * MODULES.html.sh: Add include_next.
11780         * modules/include_next: New file.
11781
11782 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11783
11784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
11785         INCLUDE_NEXT.
11786         (gl_CHECK_NEXT_HEADERS): New macro.
11787         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
11788         the obsolescent gl_ABSOLUTE_HEADER.
11789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11790         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11791         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11792         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11793         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11794         * m4/math_h.m4 (gl_MATH_H): Likewise.
11795         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11796         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11797         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11798         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11799         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11800         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11801         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11802         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11803         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11805         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11806         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11807         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11808         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11809         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11810         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11811         * m4/inttypes.m4 (gl_INTTYPES_H): Define
11812         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
11813         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
11814         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
11815         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
11816         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
11817         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
11818         * lib/float_.h: Likewise.
11819         * lib/inttypes_.h: Likewise.
11820         * lib/math_.h: Likewise.
11821         * lib/search_.h: Likewise.
11822         * lib/signal_.h: Likewise.
11823         * lib/stdint_.h: Likewise.
11824         * lib/stdio_.h: Likewise.
11825         * lib/stdlib_.h: Likewise.
11826         * lib/string_.h: Likewise.
11827         * lib/sys_stat_.h: Likewise.
11828         * lib/sys_time_.h: Likewise.
11829         * lib/time_.h: Likewise.
11830         * lib/unistd_.h: Likewise.
11831         * lib/wchar_.h: Likewise.
11832         * lib/wctype_.h: Likewise.
11833         * lib/dirent_.h: Likewise.
11834         * lib/iconv_.h: Likewise.
11835         * lib/locale_.h: Likewise.
11836         * lib/netinet_in_.h: Likewise.
11837         * lib/sys_select_.h: Likewise.
11838         * lib/sys_socket_.h: Likewise.
11839         * lib/sysexits_.h: Likewise.
11840         * modules/fcntl (Depends-on): Depend on include_next, not
11841         absolute_header.
11842         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11843         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11844         * modules/fchdir: Likewise.
11845         * modules/float: Likewise.
11846         * modules/iconv_open: Likewise.
11847         * modules/inttypes: Likewise.
11848         * modules/locale: Likewise.
11849         * modules/math: Likewise.
11850         * modules/netinet_in: Likewise.
11851         * modules/search: Likewise.
11852         * modules/signal: Likewise.
11853         * modules/stdint: Likewise.
11854         * modules/stdio: Likewise.
11855         * modules/stdlib: Likewise.
11856         * modules/string: Likewise.
11857         * modules/sys_select: Likewise.
11858         * modules/sys_socket: Likewise.
11859         * modules/sys_stat: Likewise.
11860         * modules/sys_time: Likewise.
11861         * modules/sysexits: Likewise.
11862         * modules/time: Likewise.
11863         * modules/unistd: Likewise.
11864         * modules/wchar: Likewise.
11865         * modules/wctype: Likewise.
11866         * modules/sys_stat: Change maintainer to "all".
11867         * modules/unistd: Likewise.
11868
11869 2007-06-20  Karl Berry  <karl@gnu.org>
11870
11871         * config/srclist.txt: track www changes in license files.
11872
11873 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
11874
11875         * build-aux/bootstrap: Remove stray dot.
11876         Make sure build_aux settings are honored when linking
11877         gnulib_extra_files.
11878
11879 2007-06-19  Eric Blake  <ebb9@byu.net>
11880
11881         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11882         Allow compilation on cygwin.
11883
11884 2007-06-19  Jim Meyering  <jim@meyering.net>
11885
11886         xreadlink-with-size: Remove module.  No longer used.
11887         Ex-callers now use xreadlink or mreadlink-with-size.
11888         * modules/xreadlink-with-size: Remove module.
11889         * lib/xreadlink-with-size.c: Remove file.
11890         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
11891         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
11892         just before the function definition *is* accurate.
11893
11894         Eliminate one way canonicalize_filename_mode could exit.
11895         * lib/canonicalize.c (canonicalize_filename_mode):
11896         Use mreadlink_with_size, not xreadlink_with_size.
11897
11898 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11899
11900         Detect porting problems to FreeBSD/arm, which has time_t wider than
11901         long int.  Original problem reported for GNU diff by Xin Li in
11902         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
11903         * modules/getdate (Depends-on): Add intprops, verify.
11904         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
11905         is an integer type no wider than long int.
11906
11907 2007-06-18  Jim Meyering  <jim@meyering.net>
11908
11909         New module: mreadlink-with-size.
11910         * MODULES.html.sh: Add mreadlink-with-size.
11911         * modules/mreadlink-with-size: New module
11912         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
11913         not xreadlink-with-size.
11914         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
11915
11916 2007-06-16  Bruno Haible  <bruno@clisp.org>
11917
11918         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
11919         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
11920         Reported by Gary V. Vaughan <gary@gnu.org>.
11921
11922 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11923
11924         Revamp lchown so that it lives in unistd.h where it belongs.
11925         * lib/lchown.h: Remove.
11926         * lib/dirchownmod.c: Don't include lib/lchown.h.
11927         * lib/fchownat.c: Likewise.
11928         * lib/openat.c: Likewise.
11929         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
11930         does not follow symlinks.
11931         (EOPNOTSUPP): Define if not defined.
11932         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
11933         is defined to 0.
11934         (lchown): New decl.
11935         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
11936         Do not check for lchown decl.
11937         Set REPLACE_LCHOWN.
11938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
11939         REPLACE_LCHOWN.
11940         * modules/chown: Make it clear it follows symlinks.
11941         * modules/lchown: Make it clear it doesn't follow symlinks.
11942         (Files): Remove lib/lchown.h
11943         (Depends-on): Add unistd.
11944         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
11945         (Include): Include <unistd.h>, not "lchown.h".
11946         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
11947         REPLACE_LCHOWN.
11948
11949 2007-06-15  Jim Meyering  <jim@meyering.net>
11950
11951         Change license (GPL to LGPL) of fsusage and dependents.
11952         * modules/fsusage (License): Change to LGPL.
11953         * modules/full-read (License): Likewise.
11954         * modules/full-write (License): Likewise.
11955         * modules/safe-read (License): Likewise.
11956         * modules/safe-write (License): Likewise.
11957
11958 2007-06-14  Ben Pfaff  <blp@gnu.org>
11959
11960         Missing part of allocsa -> malloca transition.
11961         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
11962         gl_MALLOCA.
11963
11964 2007-06-12  Bruno Haible  <bruno@clisp.org>
11965
11966         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
11967         to ia64, x86_64, i386.
11968         Reported by Eric Blake.
11969
11970 2007-06-12  Bruno Haible  <bruno@clisp.org>
11971
11972         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
11973         cross-compiling to x86_64.
11974
11975 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
11976
11977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
11978         glitch reported by Ralf Wildenhues in
11979         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
11980
11981         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
11982         Vin Shelton.
11983
11984 2007-06-11  Bruno Haible  <bruno@clisp.org>
11985
11986         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
11987         replacement string.
11988         Reported by Eric Blake.
11989
11990 2007-06-10  Bruno Haible  <bruno@clisp.org>
11991
11992         Prepare vasnprintf code for use with Unicode strings.
11993         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
11994         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
11995         TYPE_U32_STRING.
11996         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
11997         a_u32_string variants.
11998         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11999         * lib/printf-args.c: Don't include config.h and the specification
12000         header if PRINTF_FETCHARGS is already defined.
12001         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
12002         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
12003         TYPE_U16_STRING, TYPE_U32_STRING.
12004         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
12005         u16_directive, u16_directives, u32_directive, u32_directives): New
12006         types.
12007         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
12008         New declarations.
12009         * lib/printf-parse.c: Don't include config.h and the specification
12010         header if PRINTF_PARSE is already defined. Eliminate the set of
12011         parameters for WIDE_CHAR_VERSION; the user of this file must provide
12012         them now. Include c-ctype.h.
12013         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
12014         directive and CHAR_T_ONLY_ASCII.
12015         * lib/vasnprintf.c: Don't include config.h and the specification header
12016         if VASNPRINTF is already defined.
12017         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
12018         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
12019         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
12020         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
12021         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
12022         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
12023         code accordingly.
12024         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
12025         pad_ourselves also in this case, with the 'c' and 's' directives, and
12026         with a different notion of "width".
12027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
12028
12029 2007-06-10  Bruno Haible  <bruno@clisp.org>
12030
12031         * modules/unistr/u32-mbsnlen: New file.
12032         * lib/unistr/u32-mbsnlen.c: New file.
12033
12034         * modules/unistr/u16-mbsnlen: New file.
12035         * lib/unistr/u16-mbsnlen.c: New file.
12036
12037         * modules/unistr/u8-mbsnlen: New file.
12038         * lib/unistr/u8-mbsnlen.c: New file.
12039
12040         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
12041         declarations.
12042
12043 2007-06-10  Bruno Haible  <bruno@clisp.org>
12044
12045         * lib/string_.h (mbsnlen): New declaration.
12046         * lib/mbsnlen.c: New file.
12047         * m4/mbsnlen.m4: New file.
12048         * modules/mbsnlen: New file.
12049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
12050         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
12051         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
12052
12053 2007-06-10  Bruno Haible  <bruno@clisp.org>
12054
12055         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
12056
12057 2007-06-10  Bruno Haible  <bruno@clisp.org>
12058
12059         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
12060         * lib/mbuiter.h: Likewise.
12061
12062 2007-06-10  Bruno Haible  <bruno@clisp.org>
12063
12064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
12065         declaration.
12066
12067 2007-06-10  Karl Berry  <karl@gnu.org>
12068
12069         * config/srclist.txt: remove gettext entries, Bruno prefers
12070         to update individually.
12071
12072 2007-06-10  Bruno Haible  <bruno@clisp.org>
12073
12074         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
12075         'maxlen'. Ensure only length + width bytes are allocated, not
12076         length + 1 + width.
12077
12078 2007-06-09  Bruno Haible  <bruno@clisp.org>
12079
12080         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
12081         (CHAR_T): Remove macro.
12082         (VASNPRINTF): Update.
12083
12084 2007-06-09  Bruno Haible  <bruno@clisp.org>
12085
12086         * MODULES.html.sh (Unicode string functions): Add the new modules.
12087
12088         * modules/uniconv/u32-conv-to-enc: New file.
12089         * lib/uniconv/u32-conv-to-enc.c: New file.
12090         * modules/uniconv/u32-conv-to-enc-tests: New file.
12091         * tests/uniconv/test-u32-conv-to-enc.c: New file.
12092
12093         * modules/uniconv/u16-conv-to-enc: New file.
12094         * lib/uniconv/u16-conv-to-enc.c: New file.
12095         * lib/uniconv/u-conv-to-enc.h: New file.
12096         * modules/uniconv/u16-conv-to-enc-tests: New file.
12097         * tests/uniconv/test-u16-conv-to-enc.c: New file.
12098
12099         * modules/uniconv/u8-conv-to-enc: New file.
12100         * lib/uniconv/u8-conv-to-enc.c: New file.
12101         * modules/uniconv/u8-conv-to-enc-tests: New file.
12102         * tests/uniconv/test-u8-conv-to-enc.c: New file.
12103
12104         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12105         u32_conv_to_encoding): New declarations.
12106
12107 2007-06-09  Bruno Haible  <bruno@clisp.org>
12108
12109         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
12110
12111 2007-06-09  Bruno Haible  <bruno@clisp.org>
12112
12113         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
12114         * modules/malloca: Renamed from modules/allocsa, updated.
12115         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
12116         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
12117         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
12118         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
12119         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
12120         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
12121         * modules/xmalloca: Renamed from modules/xallocsa, updated.
12122         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
12123         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
12124         * modules/c-strcasestr (Depends-on): Update.
12125         * lib/c-strcasestr.c: Update.
12126         * modules/c-strstr (Depends-on): Update.
12127         * lib/c-strstr.c: Update.
12128         * modules/canonicalize-lgpl (Depends-on): Update.
12129         * lib/canonicalize-lgpl.c: Update.
12130         * modules/clean-temp (Depends-on): Update.
12131         * lib/clean-temp.c: Update.
12132         * modules/csharpcomp (Depends-on): Update.
12133         * lib/csharpcomp.c: Update.
12134         * modules/csharpexec (Depends-on): Update.
12135         * lib/csharpexec.c: Update.
12136         * modules/javacomp (Depends-on): Update.
12137         * lib/javacomp.c: Update.
12138         * modules/javaexec (Depends-on): Update.
12139         * lib/javaexec.c: Update.
12140         * modules/mbscasestr (Depends-on): Update.
12141         * lib/mbscasestr.c: Update.
12142         * modules/mbsstr (Depends-on): Update.
12143         * lib/mbsstr.c: Update.
12144         * modules/setenv (Depends-on): Update.
12145         * lib/setenv.c: Update.
12146         * modules/strcasestr (Depends-on): Update.
12147         * lib/strcasestr.c: Update.
12148         * modules/striconveha (Depends-on): Update.
12149         * lib/striconveha.c: Update.
12150         * modules/relocatable-prog-wrapper (Files): Update.
12151         * lib/relocwrapper.c: Update.
12152         * build-aux/install-reloc: Update.
12153         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
12154
12155 2007-06-08  Bruno Haible  <bruno@clisp.org>
12156
12157         Port to uClibc.
12158         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
12159         * lib/fpurge.c (fpurge): Likewise.
12160         * lib/freading.c (freading): Likewise.
12161         * lib/fseeko.c (rpl_fseeko): Likewise.
12162         * lib/fseterr.c (fseterr): Likewise.
12163         * lib/fwriting.c (fwriting): Likewise.
12164         * tests/test-fflush.c (main): Avoid a failure on uClibc.
12165
12166 2007-06-08  Bruno Haible  <bruno@clisp.org>
12167
12168         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
12169         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
12170         * modules/gettext (Files): Add m4/intlmacosx.m4.
12171
12172 2007-06-07  Bruno Haible  <bruno@clisp.org>
12173
12174         * modules/localename-tests: New file.
12175         * tests/test-localename.c: New file.
12176
12177         New module 'localename'.
12178         * lib/localename.h: New file.
12179         * lib/localename.c: New file, from GNU gettext.
12180         * m4/localename.m4: New file.
12181         * modules/localename: New file.
12182
12183 2007-06-07  Bruno Haible  <bruno@clisp.org>
12184
12185         Work around the lack of <wchar.h> on some builds of uClibc.
12186         * doc/headers/wchar.texi: Update.
12187         * lib/wchar_.h: Include <wchar.h> only if it exists.
12188         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
12189         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
12190         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
12191         doesn't exist.
12192         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
12193         * modules/mbfile (Depends-on): Add wchar.
12194         * modules/mbiter (Depends-on): Likewise.
12195         * modules/mbuiter (Depends-on): Likewise.
12196         Reported by Simon Josefsson.
12197
12198 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12199
12200         Work around problem reported by Steven M. Schweda in
12201         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
12202         Tru64 5.1B with the Compaq compiler environment installed declares
12203         an 'isblank' function but does not define it in the C library.
12204         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
12205         * lib/regex_internal.h (isblank): Likewise.
12206         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
12207         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12208
12209 2007-06-05  Bruno Haible  <bruno@clisp.org>
12210
12211         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
12212         ia64.
12213         * modules/printf-safe: New file.
12214         * modules/fprintf-posix (Depends-on): Add printf-safe.
12215         * modules/printf-posix (Depends-on): Likewise.
12216         * modules/snprintf-posix (Depends-on): Likewise.
12217         * modules/sprintf-posix (Depends-on): Likewise.
12218         * modules/vasnprintf-posix (Depends-on): Likewise.
12219         * modules/vasprintf-posix (Depends-on): Likewise.
12220         * modules/vfprintf-posix (Depends-on): Likewise.
12221         * modules/vprintf-posix (Depends-on): Likewise.
12222         * modules/vsnprintf-posix (Depends-on): Likewise.
12223         * modules/vsprintf-posix (Depends-on): Likewise.
12224         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12225         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
12226         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
12227         "no" on i386, x86_64, ia64.
12228         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
12229         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12230         on i386, x86_64, ia64.
12231         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
12232         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12233         on i386, x86_64, ia64.
12234         * tests/test-vasnprintf-posix.c: Include float.h.
12235         (LDBL80_WORDS): New macro.
12236         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12237         on i386, x86_64, ia64.
12238         * tests/test-vasprintf-posix.c: Include float.h.
12239         (LDBL80_WORDS): New macro.
12240         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
12241         on i386, x86_64, ia64.
12242         * tests/test-snprintf-posix.c: Include float.h.
12243         * tests/test-sprintf-posix.c: Likewise.
12244         * tests/test-vsnprintf-posix.c: Likewise.
12245         * tests/test-vsprintf-posix.c: Likewise.
12246
12247 2007-06-05  Bruno Haible  <bruno@clisp.org>
12248
12249         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
12250         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
12251         non-IEEE numbers on i386, x86_64, ia64.
12252         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
12253         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
12254         * tests/test-isnanl.h: Include float.h.
12255         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
12256
12257 2007-06-05  Bruno Haible  <bruno@clisp.org>
12258
12259         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
12260         also the %a / %A. Handle the %a / %A code before this extra handling.
12261
12262 2007-06-05  Bruno Haible  <bruno@clisp.org>
12263
12264         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
12265         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
12266
12267 2007-06-05  Bruno Haible  <bruno@clisp.org>
12268
12269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
12270         typo in variable name.
12271
12272 2007-06-05  Eric Blake  <ebb9@byu.net>
12273
12274         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
12275         Reported by Simon Josefsson.
12276
12277 2007-06-04  Bruno Haible  <bruno@clisp.org>
12278
12279         Avoid test failures on some PowerPC platforms.
12280         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
12281         Define differently for PowerPC.
12282         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
12283         Reported by Gary V. Vaughan <gary@gnu.org>.
12284
12285 2007-06-02  Bruno Haible  <bruno@clisp.org>
12286
12287         Fix test-stdint failure on FreeBSD/ia64.
12288         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
12289         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
12290         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
12291         * doc/headers/stdint.texi: Update.
12292
12293 2007-06-01  Bruno Haible  <bruno@clisp.org>
12294
12295         * tests/test-binary-io.c (main): Pass a third argument to open().
12296         Reported by Gary V. Vaughan <gary@gnu.org>.
12297
12298 2007-06-01  Bruno Haible  <bruno@clisp.org>
12299
12300         * doc/functions/frexpl.texi: Update for mingw.
12301
12302 2007-06-01  Bruno Haible  <bruno@clisp.org>
12303
12304         * tests/test-lseek.c (main): Disable test of errno for invalid third
12305         argument.
12306         * doc/functions/lseek.texi: Update.
12307         Reported by Gary V. Vaughan <gary@gnu.org>.
12308
12309 2007-05-28  Bruno Haible  <bruno@clisp.org>
12310
12311         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
12312
12313 2007-05-31  Eric Blake  <ebb9@byu.net>
12314
12315         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
12316         cross compiling.
12317
12318 2007-05-30  Eric Blake  <ebb9@byu.net>
12319         and Bruno Haible  <bruno@clisp.org>
12320
12321         Work around mingw test failures exposed by m4-1.4.9b.
12322         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
12323         * tests/test-unistd.c: Disable uid_t and git_t tests for the
12324         moment.
12325
12326 2007-05-30  Bruno Haible  <bruno@clisp.org>
12327
12328         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
12329         assuming that they are closed. Needed on HP-UX 11.
12330
12331 2007-05-29  Bruno Haible  <bruno@clisp.org>
12332
12333         Fix a problem with #include_next.
12334         * lib/dirent_.h: Split the double-inclusion guard.
12335         * lib/fcntl_.h: Likewise.
12336         * lib/float_.h: Likewise.
12337         * lib/iconv_.h: Likewise.
12338         * lib/inttypes_.h: Likewise.
12339         * lib/locale_.h: Likewise.
12340         * lib/math_.h: Likewise.
12341         * lib/netinet_in_.h: Likewise.
12342         * lib/search_.h: Likewise.
12343         * lib/signal_.h: Likewise.
12344         * lib/stdint_.h: Likewise.
12345         * lib/stdio_.h: Likewise.
12346         * lib/stdlib_.h: Likewise.
12347         * lib/string_.h: Likewise.
12348         * lib/sys_select_.h: Likewise.
12349         * lib/sys_socket_.h: Likewise.
12350         * lib/sys_stat_.h: Likewise.
12351         * lib/sys_time_.h: Likewise.
12352         * lib/sysexits_.h: Likewise.
12353         * lib/time_.h: Likewise.
12354         * lib/unistd_.h: Likewise.
12355         * lib/wchar_.h: Likewise.
12356         * lib/wctype_.h: Likewise.
12357
12358 2007-05-29  Bruno Haible  <bruno@clisp.org>
12359
12360         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
12361         for the moment.
12362
12363 2007-05-29  Bruno Haible  <bruno@clisp.org>
12364
12365         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
12366         invocation.
12367         Reported by Eric Blake.
12368
12369 2007-05-29  Bruno Haible  <bruno@clisp.org>
12370
12371         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
12372         compiling case.
12373
12374 2007-05-29  Eric Blake  <ebb9@byu.net>
12375             Bruno Haible  <bruno@clisp.org>
12376
12377         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
12378         cross compiles.
12379
12380 2007-05-28  Eric Blake  <ebb9@byu.net>
12381
12382         * modules/closein-tests (test_closein_LDADD): Support test on
12383         cygwin with libtool.
12384
12385 2007-05-28  Bruno Haible  <bruno@clisp.org>
12386
12387         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
12388         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12389         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12390         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12391         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12392         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12393         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12394         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12395         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12396
12397 2007-05-28  Eric Blake  <ebb9@byu.net>
12398
12399         Unconditionally include <config.h> in unit tests.
12400         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
12401         * tests/test-allocsa.c, tests/test-arcfour.c,
12402         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
12403         tests/test-array_list.c, tests/test-array_oset.c,
12404         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
12405         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
12406         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
12407         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
12408         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
12409         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
12410         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
12411         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
12412         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
12413         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
12414         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
12415         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
12416         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
12417         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
12418         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
12419         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12420         test-md5.c, test-memmem.c, test-printf-posix.c,
12421         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12422         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12423         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12424         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12425         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12426         test-vasnprintf-posix2.c, test-vasnprintf.c,
12427         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12428         test-vfprintf-posix.c, test-vprintf-posix.c,
12429         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12430         test-xvasprintf.c: Likewise.
12431
12432 2007-05-28  Bruno Haible  <bruno@clisp.org>
12433
12434         * gnulib-tool (func_import): Remember the --with-tests command-line
12435         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12436         Reported by Eric Blake.
12437
12438 2007-05-28  Bruno Haible  <bruno@clisp.org>
12439
12440         * modules/ftell-tests: New file.
12441         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12442         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12443
12444         * lib/ftell.c: New file.
12445         * modules/ftell: New file.
12446         * m4/ftell.m4: New file.
12447         * doc/functions/ftell.texi: Update.
12448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12449         REPLACE_FTELL.
12450         * lib/stdio_.h (rpl_ftell): New declaration.
12451         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12452         REPLACE_FTELL.
12453
12454 2007-05-28  Eric Blake  <ebb9@byu.net>
12455
12456         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12457
12458 2007-05-28  Bruno Haible  <bruno@clisp.org>
12459
12460         * modules/fseek-tests: New file.
12461         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12462         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12463
12464         * lib/fseek.c: New file.
12465         * modules/fseek: New file.
12466         * m4/fseek.m4: New file.
12467         * doc/functions/fseek.texi: Update.
12468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12469         REPLACE_FSEEK.
12470         * lib/stdio_.h (rpl_fseek): New declaration.
12471         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12472         REPLACE_FSEEK.
12473
12474 2007-05-28  Bruno Haible  <bruno@clisp.org>
12475
12476         * lib/stdio_.h (fflush): More comments.
12477
12478 2007-05-28  Bruno Haible  <bruno@clisp.org>
12479
12480         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12481         runtime test.
12482
12483 2007-05-28  Eric Blake  <ebb9@byu.net>
12484
12485         Improve lseek module.
12486         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12487         * lib/unistd_.h (lseek): Scale back link warning message.
12488         * tests/test-lseek.c: Beef up test.
12489         * tests/test-lseek.sh: Exercise more facets of lseek.
12490         Reported by Bruno Haible.
12491
12492 2007-05-28  Bruno Haible  <bruno@clisp.org>
12493
12494         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12495         to define.
12496
12497 2007-05-27  Bruno Haible  <bruno@clisp.org>
12498
12499         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12500
12501 2007-05-27  Bruno Haible  <bruno@clisp.org>
12502
12503         * modules/openmp: New file.
12504         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12505         Noah Misch.
12506
12507 2007-05-26  Bruno Haible  <bruno@clisp.org>
12508
12509         * modules/chdir-long (Depends-on): Add fchdir.
12510         * modules/chdir-safer (Depends-on): Likewise.
12511         * modules/fts (Depends-on): Likewise.
12512         * modules/fts-lgpl (Depends-on): Likewise.
12513         * modules/openat (Depends-on): Likewise.
12514         * modules/savewd (Depends-on): Likewise.
12515
12516 2007-05-24  Eric Blake  <ebb9@byu.net>
12517
12518         Fix lseek on mingw.
12519         * modules/lseek: New module.
12520         * m4/lseek.m4: New file.
12521         * lib/lseek.c: New file.
12522         * modules/lseek-tests: New file.
12523         * tests/test-lseek.c: New file.
12524         * tests/test-lseek.sh: New file.
12525         * MODULES.html.sh: Document lseek module.
12526         * modules/fflush (Depends-on): Add lseek, fseeko.
12527         * modules/fseeko (Depends-on): Likewise.
12528         * modules/ftello (Depends-on): Likewise.
12529         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
12530         broken.
12531         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
12532         broken.
12533         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
12534         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
12535         * lib/ftello.c (rpl_ftello): Likewise.
12536         * tests/test-fseeko.c (main): Test this.
12537         * tests/test-fseeko.sh: Likewise.
12538         * tests/test-ftello.c (main): Likewise.
12539         * tests/test-ftello.sh: Likewise.
12540         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12541         implies replacing fseek.
12542         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12543         HAVE_FTELLO.
12544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12545         * modules/unistd (Makefile.am): Likewise.
12546         * lib/unistd_.h (lseek): Declare a replacement.
12547         * doc/functions/lseek.texi (lseek): Document this fix.
12548         * doc/functions/fseek.texi (fseek): Likewise.
12549         * doc/functions/ftell.texi (ftell): Likewise.
12550
12551 2007-05-24  Bruno Haible  <bruno@clisp.org>
12552
12553         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12554         in the printed representation of a NaN.
12555         * tests/test-vasprintf-posix.c (test_function): Likewise.
12556         * tests/test-snprintf-posix.h (test_function): Likewise.
12557         * tests/test-sprintf-posix.h (test_function): Likewise.
12558         Reported by Eric Blake.
12559
12560 2007-05-23  Eric Blake  <ebb9@byu.net>
12561
12562         Fix fseeko/ftello on cygwin 1.5.24.
12563         * doc/functions/fseeko.texi (fseeko): Document the fix.
12564         * doc/functions/ftello.texi (ftello): Document the fix.
12565         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
12566         * doc/functions/stdout.text (stdout): New file.
12567         * doc/functions/stderr.text (stderr): New file.
12568         * doc/gnulib.texi (Function Substitutes): Use new files.
12569         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
12570         prior to 1.7.0.
12571         * tests/test-ftello.c (main): Likewise for ftello.
12572         * tests/test-fseeko.sh: New file.
12573         * tests/test-ftello.sh: New file.
12574         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
12575         with seekable stdin.
12576         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
12577         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
12578         (gl_REPLACE_FSEEKO): New macro.
12579         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
12580         * modules/fseeko (Files): Distribute fseeko.c.
12581         * modules/ftello (Files): Distribute ftello.c.
12582         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
12583         mode.
12584         * lib/ftello.c (rpl_ftello): New file.
12585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
12586         fseeko, ftello.
12587         (gl_STDIN_LARGE_OFFSET): New macro.
12588         * modules/stdio (Makefile.am): Perform the replacement.
12589         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
12590
12591 2007-05-23  Bruno Haible  <bruno@clisp.org>
12592
12593         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
12594         GNULIB_POSIXCHECK is defined.
12595
12596 2007-05-21  Bruno Haible  <bruno@clisp.org>
12597
12598         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
12599         Check also the output for NaN arguments. When cross-compiling, guess
12600         no on IRIX.
12601         * lib/vasnprintf.c: Update comments.
12602         * tests/test-vasnprintf-posix.c (strisnan): New function.
12603         (test_function): Use it.
12604         * tests/test-vasprintf-posix.c (strisnan): New function.
12605         (test_function): Use it.
12606         * tests/test-snprintf-posix.h (strisnan): New function.
12607         (test_function): Use it.
12608         * tests/test-sprintf-posix.h (strisnan): New function.
12609         (test_function): Use it.
12610         Reported by Eric Blake.
12611
12612 2007-05-20  Bruno Haible  <bruno@clisp.org>
12613
12614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
12615         numbers that fails on BeOS.
12616         * doc/functions/frexpl.texi: Update.
12617
12618 2007-05-20  Jim Meyering  <jim@meyering.net>
12619
12620         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
12621         forced upon us by glibc-2.6.
12622
12623 2007-05-20  Bruno Haible  <bruno@clisp.org>
12624
12625         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
12626         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
12627         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
12628         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
12629         NEED_PRINTF_INFINITE.
12630         (is_infinitel): New function.
12631         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
12632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
12633         gl_PREREQ_VASNPRINTF_INFINITE.
12634         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
12635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12636         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
12637         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
12638         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
12639         gl_PREREQ_VASNPRINTF_INFINITE.
12640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12647         * doc/functions/fprintf.texi: Update.
12648         * doc/functions/printf.texi: Update.
12649         * doc/functions/snprintf.texi: Update.
12650         * doc/functions/sprintf.texi: Update.
12651         * doc/functions/vfprintf.texi: Update.
12652         * doc/functions/vprintf.texi: Update.
12653         * doc/functions/vsnprintf.texi: Update.
12654         * doc/functions/vsprintf.texi: Update.
12655
12656 2007-05-20  Bruno Haible  <bruno@clisp.org>
12657
12658         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
12659         was not found in libc.
12660         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12661
12662 2007-05-20  Bruno Haible  <bruno@clisp.org>
12663
12664         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12665         printed as "-nan" instead of "nan".
12666         * tests/test-vasprintf-posix.c (test_function): Likewise.
12667         * tests/test-snprintf-posix.h (test_function): Likewise.
12668         * tests/test-sprintf-posix.h (test_function): Likewise.
12669         Needed for HP-UX 11.
12670
12671 2007-05-20  Jim Meyering  <jim@meyering.net>
12672
12673         Fix buggy test for the fchownat-deref bug.
12674         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
12675         symlink required for the run-test.  Without it, this test would
12676         always declare that fchownat doesn't work, and client code would
12677         unnecessarily use the replacement function with fixed libc.
12678         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
12679         Reported by Greg Schafer.
12680
12681 2007-05-19  Bruno Haible  <bruno@clisp.org>
12682
12683         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
12684         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
12685         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
12686         Needed for IRIX 6.5 and Solaris 2.5.1.
12687
12688 2007-05-19  Bruno Haible  <bruno@clisp.org>
12689
12690         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
12691         (test_function): Skip tests involving -0.0 on platforms where
12692         -0.0 = 0.0.
12693         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
12694         (test_function): Skip tests involving -0.0 on platforms where
12695         -0.0 = 0.0.
12696         * tests/test-snprintf-posix.h (have_minus_zero): New function.
12697         (test_function): Skip tests involving -0.0 on platforms where
12698         -0.0 = 0.0.
12699         * tests/test-sprintf-posix.h (have_minus_zero): New function.
12700         (test_function): Skip tests involving -0.0 on platforms where
12701         -0.0 = 0.0.
12702         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
12703         tests.
12704         * tests/test-printf-posix.h (test_function): Likewise.
12705         * tests/test-printf-posix.output: Remove all -0.0 related results.
12706         Needed for IRIX 6.5.
12707
12708 2007-05-19  Bruno Haible  <bruno@clisp.org>
12709
12710         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12711         printed as "nan0x7fffffff" instead of "nan".
12712         * tests/test-vasprintf-posix.c (test_function): Likewise.
12713         * tests/test-snprintf-posix.h (test_function): Likewise.
12714         * tests/test-sprintf-posix.h (test_function): Likewise.
12715         * tests/test-fprintf-posix.h (NaN): Remove macro.
12716         (test_function): Remove all NaN related tests.
12717         * tests/test-printf-posix.h (NaN): Remove macro.
12718         (test_function): Remove all NaN related tests.
12719         * tests/test-printf-posix.output: Remove all NaN related results.
12720         Needed for IRIX 6.5.
12721
12722 2007-05-19  Bruno Haible  <bruno@clisp.org>
12723
12724         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
12725         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12726
12727 2007-05-19  Bruno Haible  <bruno@clisp.org>
12728
12729         * lib/float_.h: New file.
12730         * m4/float_h.m4: New file.
12731         * modules/float: New file.
12732         * modules/isnanl (Dependencies): Add float.
12733         * modules/isnanl-nolibm (Dependencies): Likewise.
12734         * modules/mathl (Dependencies): Likewise.
12735         * modules/printf-frexpl (Dependencies): Likewise.
12736         * modules/signbit (Dependencies): Likewise.
12737         * modules/vasnprintf (Dependencies): Likewise.
12738         * doc/headers/float.texi: Update.
12739
12740 2007-05-19  Jim Meyering  <jim@meyering.net>
12741
12742         * lib/utimens.c (gl_futimens): Rename from futimens,
12743         now that glibc-2.6 declares futimens.
12744         * lib/utimens.h: Likewise.
12745
12746 2007-05-19  Bruno Haible  <bruno@clisp.org>
12747
12748         Avoid test failures on mingw.
12749         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
12750         * tests/test-printf-posix.sh: Likewise.
12751         * tests/test-vfprintf-posix.sh: Likewise.
12752         * tests/test-vprintf-posix.sh: Likewise.
12753
12754 2007-05-19  Bruno Haible  <bruno@clisp.org>
12755
12756         Fix *printf result for NaN, Inf, -0.0 on mingw.
12757         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
12758         * lib/vasnprintf.c: Include math.h and isnan.h.
12759         (is_infinite_or_zero): New function.
12760         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
12761         values in the %f, %F, %e, %E, %g, %G directives.
12762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
12763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12764         gl_PRINTF_INFINITE and test its result. Invoke
12765         gl_PREREQ_VASNPRINTF_INFINITE.
12766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12767         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12768         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12769         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12770         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12771         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12772         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12773         * doc/functions/fprintf.texi: Update.
12774         * doc/functions/printf.texi: Update.
12775         * doc/functions/snprintf.texi: Update.
12776         * doc/functions/sprintf.texi: Update.
12777         * doc/functions/vfprintf.texi: Update.
12778         * doc/functions/vprintf.texi: Update.
12779         * doc/functions/vsnprintf.texi: Update.
12780         * doc/functions/vsprintf.texi: Update.
12781
12782 2007-05-19  Bruno Haible  <bruno@clisp.org>
12783
12784         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
12785         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
12786         Instead of multiplying with 10^k, set extra_zeroes to k.
12787         (scale10_round_long_double): Remove function.
12788
12789 2007-05-18  Bruno Haible  <bruno@clisp.org>
12790
12791         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
12792         introduced on 2007-05-06.
12793
12794 2007-05-18  Bruno Haible  <bruno@clisp.org>
12795
12796         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
12797         %g directives.
12798         * tests/test-vasprintf-posix.c (test_function): Likewise.
12799         * tests/test-snprintf-posix.h (test_function): Likewise.
12800         * tests/test-sprintf-posix.h (test_function): Likewise.
12801
12802 2007-05-18  Bruno Haible  <bruno@clisp.org>
12803
12804         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
12805         (strmatch): New function.
12806         (test_function): Test the %f directive on numbers of various exponents.
12807         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
12808         (strmatch): New function.
12809         (test_function): Test the %f directive on numbers of various exponents.
12810         * tests/test-snprintf-posix.h (strmatch): New function.
12811         (test_function): Test the %f directive on numbers of various exponents.
12812         * tests/test-sprintf-posix.h (strmatch): New function.
12813         (test_function): Test the %f directive on numbers of various exponents.
12814         * tests/test-snprintf-posix.c (SIZEOF): New macro.
12815         * tests/test-sprintf-posix.c (SIZEOF): New macro.
12816         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
12817         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
12818
12819 2007-05-18  Bruno Haible  <bruno@clisp.org>
12820
12821         Add support for 'long double' number output.
12822         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
12823         * lib/vasnprintf.c: Include math.h and float+.h.
12824         (mp_limb_t): New type.
12825         (GMP_LIMB_BITS): New macro.
12826         (mp_twolimb_t): New type.
12827         (GMP_TWOLIMB_BITS): New macro.
12828         (mpn_t): New type.
12829         (multiply, divide, convert_to_decimal, decode_long_double,
12830         scale10_round_long_double, scale10_round_decimal_long_double,
12831         floorlog10l): New functions.
12832         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12833         for the %f, %F, %e, %E, %g, %G directives.
12834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12836         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12837         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12839         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12840         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12841         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12845         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
12846         * modules/snprintf-posix (Depends-on): Likewise.
12847         * modules/sprintf-posix (Depends-on): Likewise.
12848         * modules/vasnprintf-posix (Depends-on): Likewise.
12849         * modules/vasprintf-posix (Depends-on): Likewise.
12850         * modules/vfprintf-posix (Depends-on): Likewise.
12851         * modules/vsnprintf-posix (Depends-on): Likewise.
12852         * modules/vsprintf-posix (Depends-on): Likewise.
12853         * modules/vasnprintf (Files): Add lib/float+.h.
12854         * doc/functions/fprintf.texi: Update.
12855         * doc/functions/printf.texi: Update.
12856         * doc/functions/snprintf.texi: Update.
12857         * doc/functions/sprintf.texi: Update.
12858         * doc/functions/vfprintf.texi: Update.
12859         * doc/functions/vprintf.texi: Update.
12860         * doc/functions/vsnprintf.texi: Update.
12861         * doc/functions/vsprintf.texi: Update.
12862
12863 2007-05-18  Bruno Haible  <bruno@clisp.org>
12864
12865         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
12866
12867 2007-05-18  Bruno Haible  <bruno@clisp.org>
12868
12869         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
12870         for printing 64-bit integers. Needed for mingw.
12871
12872 2007-05-18  Bruno Haible  <bruno@clisp.org>
12873
12874         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12875         gl_FUNC_FREXPL_WORKS.
12876         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
12877
12878 2007-05-18  Bruno Haible  <bruno@clisp.org>
12879
12880         * modules/frexpl-nolibm-tests: New file.
12881
12882         * modules/frexpl-nolibm: New file.
12883         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
12884
12885 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12886
12887         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
12888         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12889         GCC 4.2, which otherwise issues a lot of warnings.
12890         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
12891         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
12892         Likewise.
12893         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
12894         * modules/iconv_open (iconv.h): Likewise.
12895         * modules/locale (locale.h): Likewise.
12896         * modules/netinet_in (netinet/in.h): Likewise.
12897         * modules/sys_select (sys_select.h): Likewise.
12898         * modules/sys_socket (sys/socket.h): Likewise.
12899         * modules/sys_stat (sys/stat.h): Likewise.
12900         * modules/sysexits (sysexits.h): Likewise.
12901         * modules/unistd (unistd.h): Likewise.
12902
12903 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12904
12905         * modules/closein-tests (Makefile.am): Distribute
12906         `test-closein.sh'.
12907
12908 2007-05-17  Bruno Haible  <bruno@clisp.org>
12909
12910         * tests/test-printf-posix.output: Renamed from
12911         tests/test-fprintf-posix.out.
12912         * modules/fprintf-posix-tests: Update.
12913         * modules/printf-posix-tests: Update.
12914         * modules/vfprintf-posix-tests: Update.
12915         * modules/vprintf-posix-tests: Update.
12916         * tests/test-fprintf-posix.sh: Update.
12917         * tests/test-printf-posix.sh: Update.
12918         * tests/test-vfprintf-posix.sh: Update.
12919         * tests/test-vprintf-posix.sh: Update.
12920         Reported by Ralf Wildenhues.
12921
12922 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12923
12924         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
12925         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12926         GCC 4.2, which otherwise issues a lot of warnings.
12927         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
12928         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
12929         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
12930         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
12931         it should no longer be needed.
12932         * lib/string_.h: Likewise.
12933         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
12934         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
12935         * modules/inttypes (inttypes.h): Likewise.
12936         * modules/math (math.h): Likewise.
12937         * modules/search (search.h): Likewise.
12938         * modules/signal (signal.h): Likewise.
12939         * modules/stdint (stdint.h): Likewise.
12940         * modules/stdio (stdio.h): Likewise.
12941         * modules/stdlib (stdlib.h): Likewise.
12942         * modules/string (string.h): Likewise.
12943         * modules/sys_time (sys/time.h): Likewise.
12944         * modules/time (time.h): Likewise.
12945         * modules/wchar (wchar.h): Likewise.
12946         * modules/wctype (wtype.h): Likewise.
12947
12948 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12949
12950         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
12951
12952 2007-05-13  Bruno Haible  <bruno@clisp.org>
12953
12954         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
12955         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12956         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
12957         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12958         (gl_PREREQ_STRTOK_R): Don't require it here.
12959
12960 2007-05-13  Bruno Haible  <bruno@clisp.org>
12961
12962         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
12963         when used in C++ mode.
12964
12965 2007-05-12  Bruno Haible  <bruno@clisp.org>
12966
12967         * lib/linebuffer.h: Tweak doc.
12968         * lib/linebuffer.c: Likewise.
12969
12970 2007-05-12  James Youngman  <jay@gnu.org>
12971
12972         * lib/linebuffer.c (readlinebuffer_delim): New function,
12973         like readlinebuffer, but use a caller-specified delimiter.
12974         (readlinebuffer): Just call readlinebuffer_delim with '\n'
12975         as the delimiter.
12976         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
12977
12978 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12979
12980         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
12981         * modules/openat (Files): Remove openat-die.c.
12982         (Depends-on): Add openat-die.
12983         * modules/openat-die: New module.
12984
12985 2007-05-06  Bruno Haible  <bruno@clisp.org>
12986
12987         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
12988         Update with info about Cygwin.
12989         * doc/functions/fprintf.texi: Update.
12990         * doc/functions/printf.texi: Update.
12991         * doc/functions/snprintf.texi: Update.
12992         * doc/functions/sprintf.texi: Update.
12993         * doc/functions/vfprintf.texi: Update.
12994         * doc/functions/vprintf.texi: Update.
12995         * doc/functions/vsnprintf.texi: Update.
12996         * doc/functions/vsprintf.texi: Update.
12997         Reported by Eric Blake.
12998
12999 2007-05-06  Bruno Haible  <bruno@clisp.org>
13000
13001         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
13002         padding ourselves for the floating-point directives.
13003         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
13004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
13005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13006         gl_PRINTF_FLAG_ZERO and test its result. Invoke
13007         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
13008         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13015         * tests/test-snprintf-posix.h (test_function): Also check the width
13016         and some flags in the %f directive.
13017         * tests/test-sprintf-posix.h (test_function): Likewise.
13018         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13019         * tests/test-vasprintf-posix.c (test_function): Likewise.
13020         * doc/functions/fprintf.texi: Update.
13021         * doc/functions/printf.texi: Update.
13022         * doc/functions/snprintf.texi: Update.
13023         * doc/functions/sprintf.texi: Update.
13024         * doc/functions/vfprintf.texi: Update.
13025         * doc/functions/vprintf.texi: Update.
13026         * doc/functions/vsnprintf.texi: Update.
13027         * doc/functions/vsprintf.texi: Update.
13028
13029 2007-05-06  Bruno Haible  <bruno@clisp.org>
13030
13031         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
13032         pass the ' flag character to sprintf or snprintf.
13033         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
13034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
13035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13036         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
13037         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
13038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
13040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13041         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13042         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13043         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13044         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13045         * tests/test-snprintf-posix.h (test_function): Also check the grouping
13046         flag.
13047         * tests/test-sprintf-posix.h (test_function): Likewise.
13048         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13049         * tests/test-vasprintf-posix.c (test_function): Likewise.
13050         * doc/functions/fprintf.texi: Update.
13051         * doc/functions/printf.texi: Update.
13052         * doc/functions/snprintf.texi: Update.
13053         * doc/functions/sprintf.texi: Update.
13054         * doc/functions/vfprintf.texi: Update.
13055         * doc/functions/vprintf.texi: Update.
13056         * doc/functions/vsnprintf.texi: Update.
13057         * doc/functions/vsprintf.texi: Update.
13058
13059 2007-05-01  Bruno Haible  <bruno@clisp.org>
13060
13061         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
13062
13063 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13064
13065         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
13066         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
13067
13068 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13069
13070         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
13071         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
13072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
13073
13074 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
13075
13076         * lib/argp-help.c (struct hol_entry): New member `ord'.
13077         (HOL_ENTRY_PTRCMP): Use ord for comparison
13078         (hol_sort): Initialize ord.
13079
13080 2007-05-01  Bruno Haible  <bruno@clisp.org>
13081
13082         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
13083         Reported by Eric Blake.
13084         * doc/gnulib.texi (Function Substitutes): Update.
13085
13086 2007-05-01  Bruno Haible  <bruno@clisp.org>
13087
13088         * doc/functions.texi: Remove file, now redundant through
13089         doc/functions/*.texi.
13090
13091 2007-05-01  Bruno Haible  <bruno@clisp.org>
13092
13093         * modules/argp (Depends-on): Add sleep.
13094
13095 2007-05-01  Bruno Haible  <bruno@clisp.org>
13096
13097         * modules/sleep-tests: New file.
13098         * tests/test-sleep.c: New file.
13099
13100         * modules/sleep: New file.
13101         * lib/sleep.c: New file.
13102         * m4/sleep.m4: New file.
13103         * lib/unistd_.h (sleep): New declaration.
13104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
13105         HAVE_SLEEP.
13106         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
13107         * doc/functions/sleep.texi: Document the sleep module.
13108
13109 2007-05-01  Bruno Haible  <bruno@clisp.org>
13110
13111         * lib/sigprocmask.h: Remove file.
13112         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
13113         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
13114         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
13115         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
13116         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13117         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
13118         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
13119         HAVE_SIGSET_T as a shell variable.
13120         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
13121         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
13122         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
13123         (Depends-on): Add signal. Remove verify.
13124         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
13125         (Include): Mention <signal.h> instead of sigprocmask.h.
13126         * NEWS: Mention the change.
13127         * lib/fatal-signal.c: Don't include sigprocmask.h.
13128
13129 2007-05-01  Bruno Haible  <bruno@clisp.org>
13130
13131         * modules/signal: New file.
13132         * lib/signal_.h: New file.
13133         * m4/signal_h.m4: New file.
13134
13135 2007-05-01  Bruno Haible  <bruno@clisp.org>
13136
13137         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
13138         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
13139         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
13140         HAVE_WCTYPE_CTMP_BUG into wctype.h.
13141
13142 2007-05-01  Bruno Haible  <bruno@clisp.org>
13143
13144         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
13145         configure time.
13146         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
13147         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
13148         * modules/sys_stat (Makefile.am): Substitute their values into
13149         sys/stat.h.
13150
13151 2007-05-01  Bruno Haible  <bruno@clisp.org>
13152
13153         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
13154         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
13155         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
13156
13157 2007-05-01  Bruno Haible  <bruno@clisp.org>
13158
13159         * doc/header/assert.texi: Undo last change: don't mention the gnulib
13160         'assert' module here.
13161
13162 2007-05-01  Bruno Haible  <bruno@clisp.org>
13163
13164         * doc/functions/*.texi: New files.
13165         * doc/functions/google-ranking.txt: New file.
13166         * doc/gnulib.texi (Function Substitutes): New chapter.
13167         (ctime, inet_ntoa): Remove sections.
13168         * doc/ctime.texi: Remove file.
13169         * doc/inet_ntoa.texi: Remove file.
13170         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
13171         dependencies.
13172         (%.info): New rule, specifying a --reference-limit.
13173
13174 2007-05-01  Bruno Haible  <bruno@clisp.org>
13175
13176         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
13177
13178 2007-05-01  Bruno Haible  <bruno@clisp.org>
13179
13180         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
13181         the portability of 'mkdir' to mingw systems.
13182
13183 2007-05-01  Bruno Haible  <bruno@clisp.org>
13184
13185         * doc/headers/google-ranking.txt: New file.
13186
13187 2007-04-30  Eric Blake  <ebb9@byu.net>
13188
13189         Prefer fseeko to fseek.
13190         * modules/getpass (Depends-on): Add fseeko.
13191         * lib/getpass.c (getpass): Use fseeko, not fseek.
13192
13193 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
13194
13195         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
13196         assumes the sorting is stable, while most qsort implementations
13197         are not.  Use argument addresses to ensure they never compare as
13198         equal.
13199
13200         * tests/test-argp-2.sh (usage-indent test): Fix output
13201         (func_compare): Restore diff options
13202         * tests/test-argp.c: Restore #include "progname.h"
13203
13204 2007-04-29  Bruno Haible  <bruno@clisp.org>
13205
13206         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
13207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13208         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
13209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13210         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
13211         (configure.ac): Define CHECK_SNPRINTF_POSIX.
13212         (TESTS, check_PROGRAMS): Add test-snprintf.
13213         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
13214         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
13215         (TESTS, check_PROGRAMS): Add test-vsnprintf.
13216         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
13217         assertions that fail on HP-UX, OSF/1, or IRIX.
13218         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
13219
13220 2007-04-29  Bruno Haible  <bruno@clisp.org>
13221
13222         * MODULES.html.sh (posix_functions): Remove 'contents'.
13223
13224 2007-04-29  Karl Berry  <karl@gnu.org>
13225
13226         * config/srclist.txt (gendocs_template_min): new entry.
13227
13228 2007-04-29  Bruno Haible  <bruno@clisp.org>
13229
13230         Work around fpurge bug on BSD systems.
13231         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
13232         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
13233         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
13234         fpurge to rpl_fpurge if the system already has this function.
13235         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
13236         the case where the system already has this function. Correct invariants
13237         on BSD systems.
13238         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
13239         BSD systems.
13240
13241 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
13242
13243         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
13244         proposed by Sven Verdoolaege.
13245
13246         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
13247         options.
13248         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
13249         (usage and help tests): Update
13250
13251 2007-04-29  Bruno Haible  <bruno@clisp.org>
13252
13253         * tests/test-fflush.c (main): Use a file of size 17, not 10.
13254         Print more information in case of failure. Disable a test on BeOS.
13255
13256 2007-04-29  Bruno Haible  <bruno@clisp.org>
13257
13258         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
13259         This helps debugging on systems on which no gdb is available.
13260
13261 2007-04-29  Bruno Haible  <bruno@clisp.org>
13262
13263         * lib/freading.h: Improve comments.
13264         * lib/fwriting.h: Likewise.
13265         * tests/test-freading.c (main): Don't check freading immediately after
13266         repositioning. Needed for glibc.
13267
13268 2007-04-29  Bruno Haible  <bruno@clisp.org>
13269
13270         * lib/freading.c (freading): Trivial simplification.
13271
13272 2007-04-28  Bruno Haible  <bruno@clisp.org>
13273
13274         * tests/test-fwriting.c (main): Also test the interaction between
13275         fflush and fwriting.
13276         * modules/fwriting-tests (Depends-on): Add fflush.
13277
13278         * tests/test-freading.c (main): Also test the interaction between
13279         fflush and freading.
13280         * modules/freading-tests (Depends-on): Add fflush.
13281
13282 2007-04-28  Bruno Haible  <bruno@clisp.org>
13283
13284         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
13285         fseeko and ftello.
13286         Suggested by Eric Blake.
13287
13288 2007-04-28  Jim Meyering  <jim@meyering.net>
13289
13290         Avoid false-negative in gl_STDINT_H's C99 conformance test.
13291         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
13292         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
13293
13294 2007-04-27  Eric Blake  <ebb9@byu.net>
13295
13296         * doc/headers/assert.texi (assert.h): Document assert module use.
13297
13298 2007-04-27  Bruno Haible  <bruno@clisp.org>
13299
13300         * doc/headers/*.texi: New files.
13301         * doc/gnulib.texi (Header File Substitutes): New chapter.
13302         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
13303         dependencies.
13304         (standards.info ,standards.html, standards.dvi): Update dependencies.
13305         (mostlyclean, clean): New targets.
13306
13307 2007-04-27  Bruno Haible  <bruno@clisp.org>
13308
13309         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
13310         * modules/sysexits (Files, Makefile.am): Update.
13311
13312         * lib/sys_socket_.h: Renamed from lib/socket_.h.
13313         * modules/sys_socket (Files, Makefile.am): Update.
13314
13315         * lib/sys_stat_.h: Renamed from lib/stat_.h.
13316         * modules/sys_stat (Files, Makefile.am): Update.
13317
13318 2007-04-27  Eric Blake  <ebb9@byu.net>
13319
13320         * lib/freading.h: Improve comments.
13321         * lib/fwriting.h: Likewise.
13322         * lib/fflush.c: Likewise.
13323
13324         Fix closein for mingw.
13325         * modules/closein-tests: Add tests for closein.
13326         * tests/test-closein.c: New file.
13327         * tests/test-closein.sh: Likewise.
13328         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
13329         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
13330
13331 2007-04-27  Bruno Haible  <bruno@clisp.org>
13332
13333         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
13334         version is < 6.
13335         * lib/math_.h [__DECC]: Likewise.
13336         * lib/stdio_.h [__DECC]: Likewise.
13337         * lib/stdlib_.h [__DECC]: Likewise.
13338         * lib/string_.h [__DECC]: Likewise.
13339         * lib/time_.h [__DECC]: Likewise.
13340         * lib/wchar_.h [__DECC]: Likewise.
13341         * lib/wctype_.h [__DECC]: Likewise.
13342
13343 2007-04-27  Bruno Haible  <bruno@clisp.org>
13344
13345         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
13346
13347 2007-04-27  Bruno Haible  <bruno@clisp.org>
13348
13349         * lib/fflush.c: Add comments.
13350         * modules/fpurge-tests (Depends-on): Add fflush.
13351         * modules/freadable-tests (Depends-on): Likewise.
13352         * modules/fwritable-tests (Depends-on): Likewise.
13353
13354 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
13355
13356         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
13357         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
13358         Report by Bruno Haible <bruno@clisp.org>.
13359
13360 2007-04-26  Eric Blake  <ebb9@byu.net>
13361
13362         Fix fflush on mingw.
13363         * modules/fflush (Depends-on): Add freading.
13364         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
13365         but unread data.
13366
13367 2007-04-26  Eric Blake  <ebb9@byu.net>
13368         and Bruno Haible  <bruno@clisp.org>
13369
13370         Implement freading and fwriting.
13371         * lib/freading.c: New file.
13372         * lib/freading.h: Likewise.
13373         * m4/freading.m4: Likewise.
13374         * modules/freading: Likewise.
13375         * modules/freading-tests: Likewise.
13376         * tests/test-freading.c: Likewise.
13377         * lib/fwriting.c: New file.
13378         * lib/fwriting.h: Likewise.
13379         * m4/fwriting.m4: Likewise.
13380         * modules/fwriting: Likewise.
13381         * modules/fwriting-tests: Likewise.
13382         * tests/test-fwriting.c: Likewise.
13383         * MODULES.html.sh (File stream based Input/Output): Mention them.
13384
13385 2007-04-26  Bruno Haible  <bruno@clisp.org>
13386
13387         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
13388         'long' when we assume it.
13389         Suggested by Eric Blake.
13390
13391 2007-04-26  Bruno Haible  <bruno@clisp.org>
13392
13393         Ensure fseeko, ftello are declared on glibc systems.
13394         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
13395         * modules/fseeko (configure.ac-early): Likewise.
13396         * modules/ftello (configure.ac-early): Likewise.
13397         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
13398         AC_FUNC_FSEEKO for this.
13399         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
13400         (gl_CHECK_FSEEKO): Remove macro.
13401
13402 2007-04-26  Bruno Haible  <bruno@clisp.org>
13403
13404         * tests/test-fflush.c (main): Also check the ftell result after
13405         fflush and fseek/fseeko.
13406         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
13407         file descriptor position cache in the stream.
13408         * lib/fseeko.c (rpl_fseeko): Likewise.
13409
13410 2007-04-26  Bruno Haible  <bruno@clisp.org>
13411
13412         * modules/fflush-tests (Depends-on): Add fseeko.
13413
13414 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
13415             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13416
13417         * lib/argz_.h: ensure error_t definition is obtained in same
13418         mechanism system argz.h would have.
13419         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13420         argz facilities are known bad.  Err on the side of caution if
13421         cross-compiling.
13422
13423 2007-04-25  Eric Blake  <ebb9@byu.net>
13424
13425         * lib/fpurge.c (includes): Use stdlib.h for free.
13426         * tests/test-fflush.c (main): Also test fflush-fseeko.
13427
13428 2007-04-25  Bruno Haible  <bruno@clisp.org>
13429
13430         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13431         * lib/fseeko.c: New file.
13432         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13433         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13434         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13435         gl_FUNC_FSEEKO.
13436         (gl_FUNC_FSEEKO): Invoke it.
13437         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13438         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13439         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13440
13441 2007-04-25  Bruno Haible  <bruno@clisp.org>
13442
13443         * modules/fflush (Depends-on): Add ftello.
13444
13445 2007-04-25  Bruno Haible  <bruno@clisp.org>
13446
13447         * modules/ftello-tests: New file.
13448         * tests/test-ftello.c: New file.
13449
13450         * modules/ftello: New file.
13451         * m4/ftello.m4: New file.
13452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13453         HAVE_FTELLO.
13454         * lib/stdio_.h (ftello): New declaration.
13455         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13456         HAVE_FTELLO.
13457
13458 2007-04-25  Bruno Haible  <bruno@clisp.org>
13459
13460         * modules/fseeko-tests: New file.
13461         * tests/test-fseeko.c: New file.
13462
13463         * modules/fseeko: New file.
13464         * m4/fseeko.m4: New file.
13465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13466         HAVE_FSEEKO.
13467         * lib/stdio_.h (fseeko): New declaration.
13468         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13469         HAVE_FSEEKO.
13470
13471 2007-04-25  Bruno Haible  <bruno@clisp.org>
13472
13473         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13474
13475 2007-04-25  Bruno Haible  <bruno@clisp.org>
13476
13477         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13478         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13479         * tests/test-unistd.c: Likewise.
13480         * tests/test-fcntl.c: Likewise.
13481
13482 2007-04-23  Eric Blake  <ebb9@byu.net>
13483
13484         * lib/fflush.c: Fix missing include.
13485         Reported by Bruno Haible.
13486
13487 2007-04-23  Bruno Haible  <bruno@clisp.org>
13488
13489         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13490         Reported by Eric Blake.
13491
13492 2007-04-23  Bruno Haible  <bruno@clisp.org>
13493
13494         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13495
13496 2007-04-23  Bruno Haible  <bruno@clisp.org>
13497
13498         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13499
13500 2007-04-23  Bruno Haible  <bruno@clisp.org>
13501
13502         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13503         Needed on HP-UX 11.
13504
13505 2007-04-16  Eric Blake  <ebb9@byu.net>
13506
13507         Make fflush rely on fpurge.
13508         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13509         open coding all variants.
13510         * modules/fflush (Depends-on): Add fpurge and unistd.
13511         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13512         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13513
13514         Fix --with-tests compilation on cygwin.
13515         * modules/argmatch-tests (Makefile.am): List gnulib library first
13516         in LDADD.
13517         * modules/argp-tests (Makefile.am): Likewise.
13518         * modules/array-list-tests (Makefile.am): Likewise.
13519         * modules/array-oset-tests (Makefile.am): Likewise.
13520         * modules/avltree-list-tests (Makefile.am): Likewise.
13521         * modules/avltree-oset-tests (Makefile.am): Likewise.
13522         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13523         * modules/carray-list-tests (Makefile.am): Likewise.
13524         * modules/dirname-tests (Makefile.am): Likewise.
13525         * modules/frexp-tests (Makefile.am): Likewise.
13526         * modules/isnanl-tests (Makefile.am): Likewise.
13527         * modules/linked-list-tests (Makefile.am): Likewise.
13528         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13529         * modules/lock-tests (Makefile.am): Likewise.
13530         * modules/rbtree-list-tests (Makefile.am): Likewise.
13531         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13532         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13533         * modules/tls-tests (Makefile.am): Likewise.
13534         * modules/tsearch-tests (Makefile.am): Likewise.
13535         * modules/xvasprintf-tests (Makefile.am): Likewise.
13536
13537         Fix fpurge for cygwin.
13538         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13539         value.
13540         * modules/fpurge-tests (Depends-on): Clean up trash.
13541
13542 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13543
13544         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13545
13546         * m4/autobuild.m4: Re-indent.
13547
13548 2007-04-13  Bruno Haible  <bruno@clisp.org>
13549
13550         * modules/fpurge-tests: New file.
13551         * tests/test-fpurge.c: New file.
13552
13553         * modules/fpurge: New file.
13554         * lib/fpurge.h: New file.
13555         * lib/fpurge.c: New file.
13556         * m4/fpurge.m4: New file.
13557
13558 2007-04-13  Bruno Haible  <bruno@clisp.org>
13559
13560         * modules/fbufmode-tests: New file.
13561         * tests/test-fbufmode.c: New file.
13562
13563         * modules/fbufmode: New file.
13564         * lib/fbufmode.h: New file.
13565         * lib/fbufmode.c: New file.
13566         * m4/fbufmode.m4: New file.
13567
13568 2007-04-13  Bruno Haible  <bruno@clisp.org>
13569
13570         * modules/fwritable-tests: New file.
13571         * tests/test-fwritable.c: New file.
13572
13573         * modules/fwritable: New file.
13574         * lib/fwritable.h: New file.
13575         * lib/fwritable.c: New file.
13576         * m4/fwritable.m4: New file.
13577
13578 2007-04-13  Bruno Haible  <bruno@clisp.org>
13579
13580         * modules/freadable-tests: New file.
13581         * tests/test-freadable.c: New file.
13582
13583         * modules/freadable: New file.
13584         * lib/freadable.h: New file.
13585         * lib/freadable.c: New file.
13586         * m4/freadable.m4: New file.
13587
13588 2007-04-13  Bruno Haible  <bruno@clisp.org>
13589
13590         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
13591         MOSTLYCLEANFILES.
13592
13593 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13594
13595         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
13596         gzip bootstrap.conf to avoid dragging in i18n machinery.
13597         (gnulib_tool_option): Use it.
13598
13599 2007-04-13  Bruno Haible  <bruno@clisp.org>
13600
13601         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
13602         %F directives.
13603         * tests/test-vasprintf-posix.c (test_function): Likewise.
13604         * tests/test-snprintf-posix.h (test_function): Likewise.
13605         * tests/test-sprintf-posix.h (test_function): Likewise.
13606         * tests/test-fprintf-posix.h (test_function): Likewise.
13607         * tests/test-printf-posix.h (test_function): Likewise.
13608         * tests/test-fprintf-posix.out: Likewise.
13609
13610 2007-04-13  Bruno Haible  <bruno@clisp.org>
13611
13612         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
13613         * modules/tls-tests (configure.ac): Likewise.
13614         Reported by Arto C. Nirkko <anirkko@insel.ch>.
13615
13616 2007-04-13  Bruno Haible  <bruno@clisp.org>
13617
13618         * lib/tls.c (glthread_tls_get): Fix return type.
13619         Patch by Arto C. Nirkko <anirkko@insel.ch>.
13620
13621 2007-04-12  Eric Blake  <ebb9@byu.net>
13622
13623         * modules/gettime (Depends-on): Remove gettime.
13624         Reported by Dmitry V. Levin.
13625
13626 2007-04-12  Bruno Haible  <bruno@clisp.org>
13627
13628         * modules/fflush (Include): Mention <stdio.h>.
13629         * modules/strtoimax (Include): Mention <inttypes.h>.
13630         * modules/strtoumax (Include): Likewise.
13631
13632 2007-04-12  Eric Blake  <ebb9@byu.net>
13633
13634         * .cvsignore: New file.
13635         * .gitignore: Likewise.
13636
13637 2007-04-12  Bruno Haible  <bruno@clisp.org>
13638
13639         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
13640         not before, since $(LDADD) often contains libgnu.a.
13641         * modules/striconv-tests (test_striconv_LDADD): Likewise.
13642         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
13643         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
13644         Needed on Cygwin.
13645
13646 2007-04-12  Eric Blake  <ebb9@byu.net>
13647
13648         Work around glibc's failure to flush stdin on fclose.
13649         * lib/closein.c (close_stdin): Flush stdin before closing.
13650
13651         Work around glibc's failure to reset seekable stdin on exit.
13652         * modules/closein: New module.
13653         * lib/closein.c: New file.
13654         * lib/closein.h: Likewise.
13655         * m4/closein.m4: Likewise.
13656         * MODULES.html.sh (File stream based Input/Output): Document it.
13657
13658 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13659
13660         * gnulib-tool: Rename generated 'autobuild' script to
13661         'do-autobuild' in --create-megatestdir output.
13662
13663         * doc/gnulib.texi (Build robot for gnulib): Fix.
13664
13665 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13666
13667         * modules/sysexits (Depends-on): Add absolute-header.
13668
13669 2007-04-12  Eric Blake  <ebb9@byu.net>
13670
13671         No need to preserve errno on success.
13672         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
13673         Reported by Bruno Haible.
13674
13675 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13676
13677         * MODULES.html.sh (Support for maintaining and releasing
13678         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
13679
13680 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13681
13682         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
13683
13684 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13685
13686         * modules/autobuild: New module.
13687
13688         * m4/autobuild.m4: New file.
13689
13690 2007-04-11  Bruno Haible  <bruno@clisp.org>
13691
13692         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
13693         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
13694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
13695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
13696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13697         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13698         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13700         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13701         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
13703         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13704         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
13706         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13707         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
13709         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13710         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13711         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
13712         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13713         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
13715         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13716         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
13718         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13719         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13720         Reported by Eric Blake.
13721
13722 2007-04-11  Bruno Haible  <bruno@clisp.org>
13723
13724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
13725
13726 2007-04-10  Bruno Haible  <bruno@clisp.org>
13727
13728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
13729         for NaN and Infinity. Needed on FreeBSD 6.1.
13730         * tests/test-vasnprintf-posix.c (test_function): Undo last change
13731         regarding results for "%010a" of Infinity and NaN.
13732         * tests/test-vasprintf-posix.c (test_function): Likewise.
13733         * tests/test-snprintf-posix.h (test_function): Likewise.
13734         * tests/test-sprintf-posix.h (test_function): Likewise.
13735         * tests/test-fprintf-posix.h (test_function): Likewise.
13736         * tests/test-printf-posix.h (test_function): Likewise.
13737         * tests/test-fprintf-posix.out: Likewise.
13738
13739 2007-04-10  Bruno Haible  <bruno@clisp.org>
13740
13741         * modules/locale-tests: New file.
13742         * tests/test-locale.c: New file.
13743
13744         * modules/locale: New file.
13745         * lib/locale_.h: New file.
13746         * m4/locale_h.m4: New file.
13747
13748 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13749             Bruno Haible  <bruno@clisp.org>
13750
13751         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
13752         be determined, test for availability of the copysignf, copysign,
13753         copysignl functions.
13754         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
13755         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
13756         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
13757
13758 2007-04-09  Eric Blake  <ebb9@byu.net>
13759
13760         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
13761         * modules/stdio (Makefile.am): Support fflush.
13762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13763         * modules/fflush: New file.
13764         * lib/fflush.c: Likewise.
13765         * m4/fflush.m4: Likewise.
13766         * modules/fflush-tests: New test.
13767         * tests/test-fflush.c: Likewise.
13768         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
13769
13770 2007-04-06  Bruno Haible  <bruno@clisp.org>
13771
13772         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
13773         (VASNPRINTF): Use signbit for faster determination whether to print a
13774         minus sign.
13775         * modules/vasnprintf (Files): Remove lib/float+.h.
13776         * modules/fprintf-posix (Depends-on): Add signbit.
13777         * modules/snprintf-posix (Depends-on): Likewise.
13778         * modules/sprintf-posix (Depends-on): Likewise.
13779         * modules/vasnprintf-posix (Depends-on): Likewise.
13780         * modules/vasprintf-posix (Depends-on): Likewise.
13781         * modules/vfprintf-posix (Depends-on): Likewise.
13782         * modules/vsnprintf-posix (Depends-on): Likewise.
13783         * modules/vsprintf-posix (Depends-on): Likewise.
13784
13785 2007-04-06  Bruno Haible  <bruno@clisp.org>
13786
13787         * tests/test-frexp.c (main): Test also the sign bit of zero results.
13788         * tests/test-frexpl.c (main): Likewise.
13789         * tests/test-ldexpl.c (main): Likewise.
13790         * modules/frexp-tests (Depends-on): Add signbit.
13791         * modules/frexpl-tests (Depdends-on): Likewise.
13792         * modules/ldexpl-tests (Depdends-on): Likewise.
13793
13794 2007-04-06  Bruno Haible  <bruno@clisp.org>
13795
13796         * modules/signbit-tests: New file.
13797         * tests/test-signbit.c: New file.
13798
13799         * modules/signbit: New file.
13800         * lib/signbitf.c: New file.
13801         * lib/signbitd.c: New file.
13802         * lib/signbitl.c: New file.
13803         * m4/signbit.m4: New file.
13804         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
13805         (signbit): New macro.
13806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
13807         REPLACE_SIGNBIT.
13808         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
13809         REPLACE_FREXPL into math.h.
13810
13811 2007-04-06  Bruno Haible  <bruno@clisp.org>
13812
13813         * modules/isnanf-nolibm-tests: New file.
13814         * tests/test-isnanf.c: New file.
13815
13816         * modules/isnanf-nolibm: New file.
13817         * lib/isnanf.h: New file.
13818         * lib/isnanf.c: New file.
13819         * lib/isnan.c: Consider the USE_FLOAT macro.
13820         * m4/isnanf.m4: New file.
13821
13822 2007-04-06  Bruno Haible  <bruno@clisp.org>
13823
13824         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
13825         (Link): New section.
13826
13827         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
13828
13829 2007-04-06  Bruno Haible  <bruno@clisp.org>
13830
13831         Assume the 'long double' type.
13832         * m4/longdouble.m4: Remove file.
13833         * config/srclist.txt: Don't mention longdouble.m4.
13834         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13835         * lib/float+.h: Likewise.
13836         * lib/frexp.c: Likewise.
13837         * lib/printf-args.h: Likewise.
13838         * lib/printf-args.c: Likewise.
13839         * lib/printf-frexp.c: Likewise.
13840         * lib/printf-parse.c: Likewise.
13841         * lib/vasnprintf.c: Likewise.
13842         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13843         * m4/intl.m4: Likewise.
13844         * m4/isnanl.m4: Likewise.
13845         * m4/printf.m4: Likewise.
13846         * m4/printf-frexpl.m4: Likewise.
13847         * m4/vasnprintf.m4: Likewise.
13848         * modules/allocsa (Files): Remove m4/longdouble.m4.
13849         * modules/gettext (Files): Likewise.
13850         * modules/relocatable-prog-wrapper (Files): Likewise.
13851         * modules/vasnprintf (Files): Likewise.
13852         * modules/isnanl (Files): Likewise.
13853         (Include): Simplify.
13854         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
13855         (Include): Simplify.
13856         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
13857         (Include): Simplify.
13858         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
13859         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13860         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
13861         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13862         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13863         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13864         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
13865         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13866         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13867         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13868         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
13869         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13870         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
13871         * tests/test-isnanl.c: Likewise.
13872         * tests/test-snprintf-posix.h: Likewise.
13873         * tests/test-sprintf-posix.h: Likewise.
13874         * tests/test-vasnprintf-posix.c: Likewise.
13875         * tests/test-vasnprintf-posix2.c: Likewise.
13876         * tests/test-vasprintf-posix.c: Likewise.
13877
13878 2007-04-06  Bruno Haible  <bruno@clisp.org>
13879
13880         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
13881         * lib/math_.h [__DECC]: Include the overridden include file through
13882         #include_next, outside the double-inclusion guard.
13883         * lib/stdio_.h [__DECC]: Likewise.
13884         * lib/stdlib_.h [__DECC]: Likewise.
13885         * lib/string_.h [__DECC]: Likewise.
13886         * lib/time_.h [__DECC]: Likewise.
13887         * lib/wchar_.h [__DECC]: Likewise.
13888         * lib/wctype_.h [__DECC]: Likewise.
13889         * lib/inttypes_.h [__DECC]: Likewise.
13890         Reported by Albert Chin <china@thewrittenword.com> in
13891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
13892
13893 2007-04-04  Eric Blake  <ebb9@byu.net>
13894
13895         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
13896         1.5.x.
13897
13898 2007-04-04  Bruno Haible  <bruno@clisp.org>
13899
13900         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
13901         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
13902
13903 2007-04-04  Bruno Haible  <bruno@clisp.org>
13904
13905         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
13906         results for "%010a" of Infinity and NaN.
13907         * tests/test-vasprintf-posix.c (test_function): Likewise.
13908         * tests/test-snprintf-posix.h (test_function): Likewise.
13909         * tests/test-sprintf-posix.h (test_function): Likewise.
13910         * tests/test-fprintf-posix.h (test_function): Remove these tests.
13911         * tests/test-printf-posix.h (test_function): Likewise.
13912         * tests/test-fprintf-posix.out: Update.
13913         Needed for FreeBSD 6.1.
13914
13915 2007-04-04  Bruno Haible  <bruno@clisp.org>
13916
13917         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
13918         directly used by the gnulib modules nor by gnulib-tool.
13919
13920 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13921
13922         * DEPENDENCIES: Give overall description of version dependency
13923         desirability.  Use more-typical names for apps.
13924         Add shell, coreutils, diffutils, grep, tar, gzip.
13925
13926 2007-04-04  Simon Josefsson  <simon@josefsson.org>
13927
13928         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
13929
13930 2007-04-04  Karl Berry  <karl@gnu.org>
13931
13932         * MODULES.html.sh (func_module): missing '.
13933
13934 2007-04-03  Bruno Haible  <bruno@clisp.org>
13935
13936         * modules/argmatch-tests (Makefile.am): New variable
13937         test_argmatch_LDADD.
13938         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
13939         * modules/array-list-tests (Makefile.am): New variable
13940         test_array_list_LDADD.
13941         * modules/array-oset-tests (Makefile.am): New variable
13942         test_array_oset_LDADD.
13943         * modules/avltree-list-tests (Makefile.am): New variable
13944         test_avltree_list_LDADD.
13945         * modules/avltree-oset-tests (Makefile.am): New variable
13946         test_avltree_oset_LDADD.
13947         * modules/avltreehash-list-tests (Makefile.am): New variable
13948         test_avltreehash_list_LDADD.
13949         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
13950         test_canonicalize_lgpl_LDADD.
13951         * modules/carray-list-tests (Makefile.am): New variable
13952         test_carray_list_LDADD.
13953         * modules/dirname-tests (Makefile.am): New variable
13954         test_dirname_LDADD.
13955         * modules/linked-list-tests (Makefile.am): New variable
13956         test_linked_list_LDADD.
13957         * modules/linkedhash-list-tests (Makefile.am): New variable
13958         test_linkedhash_list_LDADD.
13959         * modules/rbtree-list-tests (Makefile.am): New variable
13960         test_rbtree_list_LDADD.
13961         * modules/rbtree-oset-tests (Makefile.am): New variable
13962         test_rbtree_oset_LDADD.
13963         * modules/rbtreehash-list-tests (Makefile.am): New variable
13964         test_rbtreehash_list_LDADD.
13965         * modules/xvasprintf-tests (Makefile.am): New variable
13966         test_xvasprintf_LDADD.
13967         Reported by Eric Blake.
13968
13969 2007-04-03  Eric Blake  <ebb9@byu.net>
13970
13971         * DEPENDENCIES: Weaken m4 requirements.
13972
13973 2007-04-03  Bruno Haible  <bruno@clisp.org>
13974
13975         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
13976         * modules/isnanl-tests (configure.ac): Likewise.
13977
13978 2007-04-03  Ben Pfaff  <blp@gnu.org>
13979
13980         * modules/iconv_open: Add $(srcdir)/ to source directory
13981         references in Makefile fragments that call gperf, to fix VPATH
13982         builds.
13983
13984 2007-04-03  Bruno Haible  <bruno@clisp.org>
13985
13986         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
13987         * lib/ldexpl.c: Undo last change.
13988
13989 2007-04-03  Bruno Haible  <bruno@clisp.org>
13990
13991         * modules/printf-frexpl (Depends-on): Undo last change.
13992         (Files): Add m4/ldexpl.m4.
13993
13994 2007-04-03  Bruno Haible  <bruno@clisp.org>
13995
13996         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
13997         * modules/isnanl (Link): New section.
13998
13999         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
14000         * modules/frexp (Link): New section.
14001
14002         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
14003         * modules/frexpl (Link): New section.
14004
14005         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
14006         * modules/ldexpl (Link): New section.
14007
14008 2007-04-03  Bruno Haible  <bruno@clisp.org>
14009
14010         * modules/TEMPLATE-EXTENDED: New file.
14011         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
14012
14013 2007-04-03  Bruno Haible  <bruno@clisp.org>
14014
14015         * DEPENDENCIES: New file.
14016         Suggested by Simon Josefsson.
14017
14018 2007-04-03  Bruno Haible  <bruno@clisp.org>
14019
14020         * doc/gnulib.texi: Escape @.
14021
14022 2007-04-03  James Youngman  <jay@gnu.org>
14023         and Paul Eggert  <eggert@cs.ucla.edu>
14024
14025         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
14026         birthtime on all systems that have birthtime, not just those which
14027         use st_birthtimensec rather than st_birthtim.  Putting zero in
14028         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
14029         that the birth time is not available for files on an NFS mount.
14030
14031 2007-04-03  Simon Josefsson  <simon@josefsson.org>
14032
14033         * modules/memxor: Move back from crypto/, suggested by Bruno.
14034         * modules/crypto/hmac-sha1: Fix memxor dependency.
14035
14036         * modules/crypto/gc: Moved from ../.
14037
14038 2007-04-02  Eric Blake  <ebb9@byu.net>
14039
14040         * lib/ldexpl.c (includes): Avoid libm.
14041
14042         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
14043
14044 2007-04-02  Bruno Haible  <bruno@clisp.org>
14045
14046         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
14047         on IRIX.
14048
14049 2007-04-02  Bruno Haible  <bruno@clisp.org>
14050
14051         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
14052         x86 or x86_64 platforms running MacOS X.
14053         Reported by Ryan Schmidt <@ryandesign.com>.
14054
14055 2007-04-02  Bruno Haible  <bruno@clisp.org>
14056
14057         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
14058         i386.
14059
14060 2007-04-01  Simon Josefsson  <simon@josefsson.org>
14061
14062         * modules/crypto/arcfour: Moved from ../.
14063         * modules/crypto/arcfour-tests: Moved from ../.
14064         * modules/crypto/arctwo: Moved from ../.
14065         * modules/crypto/arctwo-tests: Moved from ../.
14066         * modules/crypto/des: Moved from ../.
14067         * modules/crypto/des-tests: Moved from ../.
14068         * modules/crypto/gc-arcfour: Moved from ../.
14069         * modules/crypto/gc-arcfour-tests: Moved from ../.
14070         * modules/crypto/gc-arctwo: Moved from ../.
14071         * modules/crypto/gc-arctwo-tests: Moved from ../.
14072         * modules/crypto/gc-des: Moved from ../.
14073         * modules/crypto/gc-des-tests: Moved from ../.
14074         * modules/crypto/gc-hmac-md5: Moved from ../.
14075         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
14076         * modules/crypto/gc-hmac-sha1: Moved from ../.
14077         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
14078         * modules/crypto/gc-md2: Moved from ../.
14079         * modules/crypto/gc-md2-tests: Moved from ../.
14080         * modules/crypto/gc-md4: Moved from ../.
14081         * modules/crypto/gc-md4-tests: Moved from ../.
14082         * modules/crypto/gc-md5: Moved from ../.
14083         * modules/crypto/gc-md5-tests: Moved from ../.
14084         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
14085         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
14086         * modules/crypto/gc-random: Moved from ../.
14087         * modules/crypto/gc-rijndael: Moved from ../.
14088         * modules/crypto/gc-rijndael-tests: Moved from ../.
14089         * modules/crypto/gc-sha1: Moved from ../.
14090         * modules/crypto/gc-sha1-tests: Moved from ../.
14091         * modules/crypto/gc-tests: Moved from ../.
14092         * modules/crypto/hmac-md5: Moved from ../.
14093         * modules/crypto/hmac-md5-tests: Moved from ../.
14094         * modules/crypto/hmac-sha1: Moved from ../.
14095         * modules/crypto/hmac-sha1-tests: Moved from ../.
14096         * modules/crypto/md2: Moved from ../.
14097         * modules/crypto/md2-tests: Moved from ../.
14098         * modules/crypto/md4: Moved from ../.
14099         * modules/crypto/md4-tests: Moved from ../.
14100         * modules/crypto/md5: Moved from ../.
14101         * modules/crypto/md5-tests: Moved from ../.
14102         * modules/crypto/memxor: Moved from ../.
14103         * modules/crypto/rijndael: Moved from ../.
14104         * modules/crypto/rijndael-tests: Moved from ../.
14105         * modules/crypto/sha1: Moved from ../.
14106
14107 2007-03-30  James Youngman  <jay@gnu.org>
14108
14109         * tests/test-stat-time.c (prepare_test): use chmod() rather than
14110         rename() to change the ctime of a file (because ctime is unaffected
14111         by rename on jfs2 on AIX 5.1).
14112         (main): Start by doing cleanup, in case a previous run failed leaving
14113         test files behind.
14114
14115 2007-03-31  Bruno Haible  <bruno@clisp.org>
14116
14117         Support old proprietary implementations of iconv.
14118         * modules/iconv_open: New file.
14119         * lib/iconv_.h: New file.
14120         * m4/iconv_h.m4: New file.
14121         * lib/iconv_open.c: New file.
14122         * lib/iconv_open-aix.gperf: New file.
14123         * lib/iconv_open-hpux.gperf: New file.
14124         * lib/iconv_open-irix.gperf: New file.
14125         * lib/iconv_open-osf.gperf: New file.
14126         * m4/iconv_open.m4: New file.
14127         * modules/linebreak (Depends-on): Add iconv_open.
14128         * modules/striconv (Depends-on): Likewise.
14129         * modules/striconveh (Depends-on): Likewise.
14130         * modules/unicodeio (Depends-on): Likewise.
14131         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
14132         (iconv_t)(-1).
14133         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
14134         conversion if cd is (iconv_t)(-1).
14135         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
14136         is not possible.
14137
14138 2007-03-31  Bruno Haible  <bruno@clisp.org>
14139
14140         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14141         work on Solaris either. Protect also second use of "autodetect_jp".
14142
14143 2007-03-31  Bruno Haible  <bruno@clisp.org>
14144
14145         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
14146         the function is not present.
14147
14148 2007-03-31  Bruno Haible  <bruno@clisp.org>
14149
14150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
14151         the function is not present.
14152
14153 2007-03-31  Bruno Haible  <bruno@clisp.org>
14154
14155         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
14156         a bug in HP-UX iconv_open().
14157
14158 2007-03-31  Bruno Haible  <bruno@clisp.org>
14159
14160         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
14161         (Mathematics <math.h>): New section, add fpieee.
14162         (Input/output <stdio.h>): Add fseterr.
14163         (Mathematics <math.h>): New section, add printf-frexp.
14164         (Container data structures): Add sublist.
14165         (Core language properties): Add fpucw, inline.
14166         (Functions for greatest-width integer types <inttypes.h>): Add
14167         imaxabs, imaxdiv, inttypes.
14168         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
14169         isnanl-nolibm, ldexp.
14170         (Mathematics <math.h>): New section, add printf-frexpl.
14171         (Support for systems lacking POSIX:2001): Add fprintf-posix,
14172         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
14173         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
14174         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
14175         (Unicode string functions): Add unistr/u*-mbtoucr.
14176         (Java): Add javacomp-script, javaexec-script.
14177         (C#): Add csharpcomp-script, csharpexec-script.
14178         (Support for building libraries and executables): Add havelib,
14179         relocatable-*.
14180         (Support for maintaining and releasing projects): Renamed from
14181         'Support for maintaining and release projects'. Add announce-gen.
14182
14183 2007-03-31  Bruno Haible  <bruno@clisp.org>
14184
14185         * README: Talk primarily about git.
14186         (git and CVS): Renamed from CVS.
14187         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
14188         gnulib is available through git.
14189         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
14190
14191 2007-03-30  Bruno Haible  <bruno@clisp.org>
14192
14193         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
14194         * lib/poll_.h: Likewise.
14195         * lib/stat_.h: Likewise.
14196         * lib/sys_time_.h: Likewise.
14197         * lib/sysexit_.h: Likewise.
14198         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
14199         * lib/stdbool_.h: Likewise.
14200         * lib/byteswap_.h: Add double-inclusion guard.
14201
14202 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
14203
14204         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
14205
14206 2007-03-30  Karl Berry  <karl@gnu.org>
14207
14208         * config/srclist-update: double space after USA in the license
14209         substitution, since that's how it's usually (?) written.
14210
14211 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14212
14213         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
14214         reported by Bruno Haible.
14215
14216 2007-03-29  Bruno Haible  <bruno@clisp.org>
14217
14218         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
14219         a bug in AIX iconv().
14220
14221 2007-03-29  Bruno Haible  <bruno@clisp.org>
14222
14223         * modules/ldexpl-tests: New file.
14224         * tests/test-ldexpl.c: New file.
14225
14226 2007-03-29  Bruno Haible  <bruno@clisp.org>
14227
14228         * lib/ldexpl.c: Include fpucw.h.
14229         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
14230         multiplication.
14231         * modules/ldexpl (Depends-on): Add fpucw.
14232
14233 2007-03-29  Bruno Haible  <bruno@clisp.org>
14234
14235         * modules/ldexpl: New file.
14236         * m4/ldexpl.m4: New file.
14237         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
14238         set.
14239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
14240         REPLACE_LDEXPL.
14241         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
14242         REPLACE_LDEXPL.
14243         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
14244         gl_FUNC_LDEXPL_WORKS.
14245         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
14246         * modules/mathl (Files): Remove lib/ldexpl.c.
14247         (Depends-on): Add ldexpl.
14248
14249 2007-03-29  Bruno Haible  <bruno@clisp.org>
14250
14251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
14252
14253 2007-03-29  Bruno Haible  <bruno@clisp.org>
14254
14255         * tests/test-striconveh.c (main): Don't assume that a direct conversion
14256         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
14257         and possibly also HP-UX.
14258         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
14259         work on AIX, IRIX, HP-UX, OSF/1.
14260         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14261         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14262         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14263         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14264         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14265         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14266
14267 2007-03-29  Bruno Haible  <bruno@clisp.org>
14268
14269         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
14270
14271 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14272
14273         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
14274         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
14275
14276 2007-03-29  Eric Blake  <ebb9@byu.net>
14277
14278         * lib/acl-internal.h: Remove redundant include.
14279         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
14280         Cygwin when a file is locked.
14281
14282 2007-03-29  Bruno Haible  <bruno@clisp.org>
14283
14284         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
14285         file.
14286         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
14287
14288 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14289
14290         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
14291         try to remove a parent directory if the child couldn't be removed
14292         (except for the first rmdir, which could fail because the child
14293         doesn't exist).  Problem reported by Jeff Blaine in
14294         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
14295
14296 2007-03-28  Bruno Haible  <bruno@clisp.org>
14297
14298         * lib/striconveh.c (utf8conv_carefully): New function.
14299         (mem_cd_iconveh_internal): Invoke it.
14300
14301 2007-03-28  Bruno Haible  <bruno@clisp.org>
14302
14303         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
14304         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
14305         input.
14306         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
14307         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
14308         unistr/u8-uctomb.
14309
14310 2007-03-28  Bruno Haible  <bruno@clisp.org>
14311
14312         * modules/unistr/u8-mbtoucr: New file.
14313         * lib/unistr/u8-mbtoucr.c: New file.
14314         * modules/unistr/u16-mbtoucr: New file.
14315         * lib/unistr/u16-mbtoucr.c: New file.
14316         * modules/unistr/u16-mbtoucr: New file.
14317         * lib/unistr/u16-mbtoucr.c: New file.
14318         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
14319
14320 2007-03-27  Simon Josefsson  <simon@josefsson.org>
14321             Bruno Haible  <bruno@clisp.org>
14322
14323         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
14324         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
14325         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
14326
14327         * m4/stdio_h.m4: Add stubs for vasprintf too.
14328
14329         * modules/stdio: Support vasprintf in sed command.
14330
14331         * modules/vasprintf: Depend on stdio for prototypes.  Remove
14332         vasprintf.h.  Add stdio module indicator.
14333
14334         * lib/stdio_.h: Declare asprintf and vasprintf, based on
14335         vasprintf.h.
14336
14337         * lib/vasprintf.h: File removed.
14338
14339         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
14340         * lib/vasprintf.c: Ditto.
14341         * lib/xvasprintf.c: Ditto.
14342         * tests/test-vasprintf-posix.c: Ditto.
14343         * tests/test-vasprintf.c: Ditto.
14344
14345 2007-03-27  Bruno Haible  <bruno@clisp.org>
14346
14347         Make vasnprintf multithread-safe.
14348         * lib/vasnprintf.c (decimal_point_char): New function.
14349         (VASNPRINTF): Use it.
14350         Suggested by Simon Josefsson.
14351
14352 2007-03-27  Eric Blake  <ebb9@byu.net>
14353
14354         Support sub-second birthtime on cygwin.
14355         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
14356         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
14357         (get_stat_birthtime): Also work with st_birthtim.
14358
14359 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
14360
14361         * lib/stat-time.h (USE_BIRTHTIME): Remove.
14362         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
14363         (get_stat_birthtime_ns): Do not try to use "spare" fields.
14364         (get_stat_birthtime_ns): Simplify compile-time tests.
14365         (get_stat_birthtime): Change the API to look like
14366         get_stat_mtime etc., except return a negative tv_nsec on error.
14367         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
14368         Don't check for "spare" fields.
14369         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
14370         or for struct stat.st_birthtime, as these tests aren't used.
14371         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
14372
14373 2007-03-27  Bruno Haible  <bruno@clisp.org>
14374
14375         * lib/stat-time.h: Include <sys/stat.h>.
14376
14377 2007-03-27  James Youngman  <jay@gnu.org>
14378
14379         * lib/stat-time.h (get_stat_birthtime): New function for
14380           retrieving st_birthtime as provided by UFS2 (hence *BSD).
14381         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
14382           and its variants.
14383         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
14384         * modules/stat-time-test: New file.
14385         * tests/test-stat-time.c: New test, devised by Bruno Haible.
14386
14387 2007-03-26  Bruno Haible  <bruno@clisp.org>
14388
14389         Better support of signalling NaNs.
14390         * lib/atanl.c: Include isnanl.h.
14391         (atanl): Perform test for NaN at the beginning of the function and
14392         through a call to isnanl.
14393         * lib/cosl.c: Include isnanl.h.
14394         (cosl): Perform test for NaN at the beginning of the function and
14395         through a call to isnanl.
14396         * lib/ldexpl.c: Include isnanl.h.
14397         (ldexpl): Perform test for NaN through a call to isnanl.
14398         * lib/logl.c: Include isnanl.h.
14399         (logl): Perform test for NaN at the beginning of the function and
14400         through a call to isnanl.
14401         * lib/sinl.c: Include isnanl.h.
14402         (sinl): Perform test for NaN at the beginning of the function and
14403         through a call to isnanl.
14404         * lib/sqrtl.c: Include isnanl.h.
14405         (sqrtl): Perform test for NaN at the beginning of the function and
14406         through a call to isnanl.
14407         * lib/tanl.c: Include isnanl.h.
14408         (tanl): Perform test for NaN at the beginning of the function and
14409         through a call to isnanl.
14410         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
14411         * modules/mathl (Depends-on): Add isnanl.
14412
14413 2007-03-26  Eric Blake  <ebb9@byu.net>
14414
14415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
14416         regression in logic sense of previous patch.
14417
14418 2007-03-26  Bruno Haible  <bruno@clisp.org>
14419
14420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14421         unportable shell command "if ! ...".
14422         Reported by Ralf Wildenhues.
14423
14424 2007-03-25  Bruno Haible  <bruno@clisp.org>
14425
14426         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14427         <sysexits.h> file, and only add EX_CONFIG.
14428         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14429         absolute file name and whether it is sufficient. Substitute also
14430         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14431         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14432         ABSOLUTE_SYSEXITS_H into sysexits.h.
14433
14434 2007-03-25  Bruno Haible  <bruno@clisp.org>
14435
14436         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14437         hints is NULL.
14438
14439 2007-03-25  Bruno Haible  <bruno@clisp.org>
14440
14441         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14442         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14443
14444 2007-03-25  Bruno Haible  <bruno@clisp.org>
14445
14446         * lib/vasnprintf.c: Include langinfo.h.
14447         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14448         multithread-safe.
14449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14458         Reported by Simon Josefsson.
14459
14460 2007-03-25  Bruno Haible  <bruno@clisp.org>
14461
14462         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14463         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14464         * modules/vasnprintf (Depends-on): Add stdint.
14465
14466 2007-03-25  Bruno Haible  <bruno@clisp.org>
14467
14468         * modules/fpieee: New file.
14469         * m4/fpieee.m4: New file.
14470         * modules/isnan-nolibm (Depends-on): Add fpieee.
14471         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14472         * modules/isnanl (Depends-on): Add fpieee.
14473
14474 2007-03-25  Bruno Haible  <bruno@clisp.org>
14475
14476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14477
14478 2007-03-25  Bruno Haible  <bruno@clisp.org>
14479
14480         Avoid test failures on IRIX 6.5.
14481         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14482         (main): Use it.
14483         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14484         macros.
14485         (main): Use them.
14486
14487 2007-03-25  Bruno Haible  <bruno@clisp.org>
14488
14489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14490         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14491         exists but doesn't work.
14492         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14493         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14495         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14496
14497 2007-03-25  Bruno Haible  <bruno@clisp.org>
14498
14499         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14500         returns inf. Needed on IRIX 6.5.
14501
14502 2007-03-25  Bruno Haible  <bruno@clisp.org>
14503
14504         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14505         (main): Use isnanl instead of x != x idiom.
14506         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14507
14508         * tests/test-frexp.c: Include isnan.h.
14509         (main): Use isnan instead of x != x idiom.
14510         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14511
14512 2007-03-25  Bruno Haible  <bruno@clisp.org>
14513
14514         * tests/test-frexp.c (NaN): New function/macro.
14515         (main): Use it instead of 0.0 / 0.0.
14516         * tests/test-isnan.c (NaN): New function/macro.
14517         (main): Use it instead of 0.0 / 0.0.
14518         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14519         (test_function): Use it instead of 0.0 / 0.0.
14520         * tests/test-vasprintf-posix.c (NaN): New function/macro.
14521         (test_function): Use it instead of 0.0 / 0.0.
14522         * tests/test-snprintf-posix.h (NaN): New function/macro.
14523         (test_function): Use it instead of 0.0 / 0.0.
14524         * tests/test-sprintf-posix.h (NaN): New function/macro.
14525         (test_function): Use it instead of 0.0 / 0.0.
14526         * tests/test-fprintf-posix.h (NaN): New function/macro.
14527         (test_function): Use it instead of 0.0 / 0.0.
14528         * tests/test-printf-posix.h (NaN): New function/macro.
14529         (test_function): Use it instead of 0.0 / 0.0.
14530
14531         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
14532
14533 2007-03-25  Bruno Haible  <bruno@clisp.org>
14534
14535         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
14536
14537 2007-03-25  Bruno Haible  <bruno@clisp.org>
14538
14539         * lib/regexec.c (merge_state_with_log): Make static.
14540
14541 2007-03-25  Bruno Haible  <bruno@clisp.org>
14542
14543         * lib/trigl.c (kernel_rem_pio2): Make static.
14544
14545 2007-03-25  Bruno Haible  <bruno@clisp.org>
14546
14547         * lib/sincosl.c (sincosl_table): Make static.
14548
14549 2007-03-25  Bruno Haible  <bruno@clisp.org>
14550
14551         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14552         if the compiler does not support C99.
14553
14554 2007-03-25  Bruno Haible  <bruno@clisp.org>
14555
14556         * modules/time (Makefile.am): Ensure all rule action lines start with a
14557         tab.
14558
14559 2007-03-24  Bruno Haible  <bruno@clisp.org>
14560
14561         * modules/tsearch-tests: New file.
14562         * tests/test-tsearch.sh: New file.
14563         * tests/test-tsearch.c: New file, mostly copied from glibc.
14564
14565         * modules/search-tests: New file.
14566         * tests/test-search.c: New file.
14567
14568         * modules/search: New file.
14569         * lib/search_.h: New file, incorporating lib/tsearch.h.
14570         * m4/search_h.m4: New file.
14571         * lib/tsearch.h: Remove file.
14572         * lib/tsearch.c: Include search.h instead of tsearch.h.
14573         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
14574         HAVE_TSEARCH.
14575         * modules/tsearch (Files): Remove lib/tsearch.h.
14576         (Depends-on): Add search.
14577         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
14578         (Include): Change tsearch.h into search.h.
14579
14580 2007-03-24  Bruno Haible  <bruno@clisp.org>
14581
14582         * modules/fpucw: New file.
14583         * lib/fpucw.h: New file.
14584         * lib/frexp.c: Include fpucw.h.
14585         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14586         (FUNC): Use them.
14587         * lib/printf-frexp.c: Include fpucw.h.
14588         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14589         (FUNC): Use them.
14590         * lib/vasnprintf.c: Include fpucw.h.
14591         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
14592         'long double' calculations.
14593         * tests/test-frexpl.c: Include fpucw.h.
14594         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14595         * tests/test-printf-frexpl.c: Include fpucw.h.
14596         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14597         * modules/frexpl (Depends-on): Add fpucw.
14598         * modules/printf-frexpl (Depends-on): Likewise.
14599         * modules/fprintf-posix (Depends-on): Likewise.
14600         * modules/snprintf-posix (Depends-on): Likewise.
14601         * modules/sprintf-posix (Depends-on): Likewise.
14602         * modules/vasnprintf-posix (Depends-on): Likewise.
14603         * modules/vasprintf-posix (Depends-on): Likewise.
14604         * modules/vfprintf-posix (Depends-on): Likewise.
14605         * modules/vsnprintf-posix (Depends-on): Likewise.
14606         * modules/vsprintf-posix (Depends-on): Likewise.
14607         * modules/frexpl-tests (Depends-on): Likewise.
14608         * modules/printf-frexpl-tests (Depends-on): Likewise.
14609
14610 2007-03-24  Bruno Haible  <bruno@clisp.org>
14611
14612         * lib/float+.h: New file.
14613         * lib/isnan.c: Include float+.h.
14614         (SIZE): New macro.
14615         (FUNC): Compare only SIZE bytes of the value.
14616         * lib/vasnprintf.c: Include float+.h.
14617         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
14618         SIZEOF_LDBL or SIZEOF_DBL bytes.
14619         * modules/isnan-nolibm (Files): Add lib/float+.h.
14620         * modules/isnanl-nolibm (Files): Add lib/float+.h.
14621         * modules/isnanl (Files): Add lib/float+.h.
14622         * modules/vasnprintf (Files): Add lib/float+.h.
14623
14624 2007-03-24  Bruno Haible  <bruno@clisp.org>
14625
14626         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
14627         include isnanl-nolibm.h.
14628
14629 2007-03-24  Bruno Haible  <bruno@clisp.org>
14630
14631         * tests/test-read-file.c (main): Don't produce spurious output for
14632         expected situations. Make the test fail if it encountered unexpected
14633         results.
14634
14635 2007-03-24  Bruno Haible  <bruno@clisp.org>
14636
14637         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
14638         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
14639
14640 2007-03-24  Bruno Haible  <bruno@clisp.org>
14641
14642         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
14643
14644 2007-03-24  Bruno Haible  <bruno@clisp.org>
14645
14646         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
14647         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
14648
14649         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
14650         * modules/utf8-ucs4: Turn into a symbolic link to module
14651         unistr/u8-mbtouc.
14652
14653         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
14654         utf8-ucs4-unsafe.
14655         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
14656         unistr/u8-mbtouc-unsafe.
14657
14658         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
14659         * modules/utf16-ucs4: Turn into a symbolic link to module
14660         unistr/u16-mbtouc.
14661
14662         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
14663         utf16-ucs4-unsafe.
14664         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
14665         unistr/u16-mbtouc-unsafe.
14666
14667         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
14668         * modules/ucs4-utf8: Turn into a symbolic link to module
14669         unistr/u8-ubtomb.
14670
14671         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
14672         * modules/ucs4-utf16: Turn into a symbolic link to module
14673         unistr/u16-ubtomb.
14674
14675 2007-03-24  Bruno Haible  <bruno@clisp.org>
14676
14677         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
14678         Enable the function only if HAVE_INLINE.
14679         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
14680         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14681         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
14682         Enable the function only if HAVE_INLINE.
14683         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
14684         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14685         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
14686         Enable the function only if HAVE_INLINE.
14687         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
14688         Enable the function only if HAVE_INLINE.
14689         * modules/utf8-ucs4: Update.
14690         * modules/utf8-ucs4-unsafe: Update.
14691         * modules/utf16-ucs4: Update.
14692         * modules/utf16-ucs4-unsafe: Update.
14693         * modules/ucs4-utf8: Update.
14694         * modules/ucs4-utf16: Update.
14695
14696 2007-03-24  Bruno Haible  <bruno@clisp.org>
14697
14698         * lib/utf8-ucs4.h: Remove file.
14699         * lib/utf8-ucs4-unsafe.h: Remove file.
14700         * lib/utf16-ucs4.h: Remove file.
14701         * lib/utf16-ucs4-unsafe.h: Remove file.
14702         * lib/ucs4-utf8.h: Remove file.
14703         * lib/ucs4-utf16.h: Remove file.
14704         * lib/unistr.h: Include their previous contents.
14705         * m4/utf-ucs4.m4: Remove file.
14706         * m4/ucs4-utf.m4: Remove file.
14707         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
14708         (Depends-on): Add unistr/base.
14709         (configure.ac): Remove gl_UTF_UCS4.
14710         (Makefile.am): Update.
14711         (Include): Change to unistr.h.
14712         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
14713         (Depends-on): Add unistr/base.
14714         (configure.ac): Remove gl_UTF_UCS4.
14715         (Makefile.am): Update.
14716         (Include): Change to unistr.h.
14717         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
14718         (Depends-on): Add unistr/base.
14719         (configure.ac): Remove gl_UTF_UCS4.
14720         (Makefile.am): Update.
14721         (Include): Change to unistr.h.
14722         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
14723         (Depends-on): Add unistr/base.
14724         (configure.ac): Remove gl_UTF_UCS4.
14725         (Makefile.am): Update.
14726         (Include): Change to unistr.h.
14727         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
14728         (Depends-on): Add unistr/base.
14729         (configure.ac): Remove gl_UCS4_UTF.
14730         (Makefile.am): Update.
14731         (Include): Change to unistr.h.
14732         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
14733         (Depends-on): Add unistr/base.
14734         (configure.ac): Remove gl_UCS4_UTF.
14735         (Makefile.am): Update.
14736         (Include): Change to unistr.h.
14737         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
14738         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
14739         utf8-ucs4-unsafe.h.
14740         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
14741         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
14742         utf16-ucs4-unsafe.h.
14743         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
14744         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
14745         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
14746         * lib/unistr/u8-strchr.c: Likewise.
14747         * lib/unistr/u8-strrchr.c: Likewise.
14748         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
14749         * lib/unistr/u16-strchr.c: Likewise.
14750         * lib/unistr/u16-strrchr.c: Likewise.
14751         * lib/striconveh.c: Update.
14752         * lib/linebreak.c: Update.
14753
14754 2007-03-24  Bruno Haible  <bruno@clisp.org>
14755
14756         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
14757         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
14758
14759 2007-03-22  Bruno Haible  <bruno@clisp.org>
14760
14761         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
14762
14763 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14764
14765         * MODULES.html.sh (File system functions): New module write-any-file.
14766         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
14767         * m4/write-any-file.m4: New files.
14768
14769 2007-03-23  Eric Blake  <ebb9@byu.net>
14770
14771         * gnulib-tool: Rearrange space-tab sequences, since some editors
14772         like to eat them.
14773
14774 2007-03-23  Eric Blake  <ebb9@byu.net>
14775
14776         * lib/version-etc.c (version_etc_va): Update license wording to
14777         be more concise.  Recommended by Richard Stallman.
14778
14779 2007-03-22  Bruno Haible  <bruno@clisp.org>
14780
14781         * lib/poll.c (MSG_PEEK): New fallback definition.
14782
14783 2007-03-22  Bruno Haible  <bruno@clisp.org>
14784
14785         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
14786         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
14787         (main): Update.
14788         Fixes a compilation error on BeOS.
14789
14790 2007-03-22  Bruno Haible  <bruno@clisp.org>
14791
14792         * modules/frexpl-tests: New file.
14793         * tests/test-frexpl.c: New file.
14794
14795         * modules/frexpl: New file.
14796         * m4/frexpl.m4: New file.
14797         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
14798         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
14799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
14800         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
14801         (Depends-on): Add frexpl. Remove isnanl-nolibm.
14802         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
14803
14804 2007-03-22  Bruno Haible  <bruno@clisp.org>
14805
14806         * lib/frexpl.c: Share code with lib/frexp.c.
14807         * modules/mathl (Files): Add lib/frexp.c.
14808         (Depends-on): Add isnanl-nolibm.
14809
14810 2007-03-22  Bruno Haible  <bruno@clisp.org>
14811
14812         * modules/printf-frexp (Files): Add m4/frexp.m4.
14813         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
14814         only if the found frexp function actually works.
14815
14816 2007-03-22  Bruno Haible  <bruno@clisp.org>
14817
14818         * lib/frexp.c: Remove older implementation that uses divisions.
14819
14820 2007-03-21  Bruno Haible  <bruno@clisp.org>
14821
14822         * modules/frexp-tests: New file.
14823         * tests/test-frexp.c: New file.
14824
14825         * modules/frexp: New file.
14826         * lib/frexp.c: New file.
14827         * m4/frexp.m4: New file.
14828         * lib/math_.h (frexp): New declaration.
14829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
14830         REPLACE_FREXP.
14831         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14832
14833 2007-03-21  Bruno Haible  <bruno@clisp.org>
14834
14835         * modules/isnanl-tests: New file.
14836         * tests/test-isnanl.c: New file.
14837
14838         * modules/isnanl: New file.
14839         * lib/isnanl.h: New file.
14840         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14841         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14842         gl_FUNC_ISNANL_WORKS.
14843         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14844         New macros.
14845
14846 2007-03-21  Bruno Haible  <bruno@clisp.org>
14847
14848         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
14849         lib/isnanl.h.
14850         (Include): Update.
14851         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
14852         * lib/vasnprintf.c: Update.
14853         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
14854         tests/test-isnanl.h, remove tests/test-isnanl.c.
14855         (Makefile.am): Update.
14856         * tests/test-isnanl-nolibm.c: New file.
14857         * tests/test-isnanl.h: New file.
14858         * tests/test-isnanl.c: Remove file.
14859
14860 2007-03-21  Jim Meyering  <jim@meyering.net>
14861
14862         When trying to open ".", treat ESTALE like EACCES.
14863         * lib/savewd.c (savewd_save): Resort to forking not just upon
14864         failure with EACCES, but also when errno is ESTALE.
14865
14866 2007-03-20  Bruno Haible  <bruno@clisp.org>
14867
14868         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
14869         Needed on AIX 5.1. Reported by Matthew Woehlke.
14870
14871 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14872
14873         Suggestions by Bruno Haible:
14874         * lib/acl-internal.h: Include "gettext.h" rather than rolling
14875         our own.
14876         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
14877         * modules/acl (Depends-on): Add gettext.
14878
14879 2007-03-19  Bruno Haible  <bruno@clisp.org>
14880
14881         * modules/iconvme: Remove file.
14882         * lib/iconvme.h: Remove file.
14883         * lib/iconvme.c: Remove file.
14884         * m4/iconvme.m4: Remove file.
14885
14886 2007-03-19  Bruno Haible  <bruno@clisp.org>
14887
14888         * doc/relocatable-maint.texi: Break long shell script line.
14889         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14890
14891 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14892
14893         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
14894         handle file_has_acl.
14895         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
14896         * lib/acl.c: Move header inclusions and related macro defns into
14897         lib/acl-internal.h.
14898         (S_ISLNK): Remove defn, since that's now done for us.
14899         (file_has_acl): Move to lib/file-has-acl.c.
14900         Call acl_trivial if available.  This is the crucial part of the fix.
14901         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
14902         shared within the library.  Rewrite a bit, partly to make it compatible
14903         with the GNU coding style.
14904         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
14905         Remove unnecessary double-quotes.
14906         Don't test for acl_to_text; the build will catch that.
14907         Replace acl_entries if it doesn't exist and it is needed.
14908         Check for -lsec and acl_trivial (as used on Solaris 10).
14909         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
14910         lib/file-has-acl.c.
14911         (Depends-on): Add sys_stat, for S_ISLNK.
14912
14913 2007-03-19  Ben Pfaff  <blp@gnu.org>
14914
14915         * doc/gnulib.texi: Fix typos.
14916         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14917
14918 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14919
14920         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
14921         If size is zero here, buf must be zero.
14922
14923 2007-03-19  Simon Josefsson  <simon@josefsson.org>
14924
14925         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
14926         <bruno@clisp.org>.
14927
14928 2007-03-18  Bruno Haible  <bruno@clisp.org>
14929
14930         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
14931         Suggested by Eric Blake.
14932
14933 2007-03-18  Ben Pfaff  <blp@gnu.org>
14934
14935         * doc/relocatable.texi: Recommend using as prefix a directory
14936         that does not exist and will never be created.  Based on
14937         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
14938         and others.
14939
14940 2007-03-17  Bruno Haible  <bruno@clisp.org>
14941
14942         * lib/fchownat.c: Include lchown.h.
14943
14944 2007-03-17  Bruno Haible  <bruno@clisp.org>
14945
14946         Fix endless loop when the given allocated size was > INT_MAX.
14947         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
14948         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
14949         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
14950         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
14951         * lib/sprintf.c (sprintf): Likewise.
14952
14953 2007-03-17  Bruno Haible  <bruno@clisp.org>
14954
14955         * tests/test-argp-2.sh (func_compare): Output a context diff.
14956
14957 2007-03-17  Bruno Haible  <bruno@clisp.org>
14958
14959         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
14960         locale's decimal-point character.
14961
14962 2007-03-17  Bruno Haible  <bruno@clisp.org>
14963
14964         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
14965         before comparing it. Needed because on some platforms (e.g. x86) a
14966         'long double' occupies less bytes than sizeof (long double).
14967
14968 2007-03-17  Bruno Haible  <bruno@clisp.org>
14969
14970         * tests/test-crc.c (main): Make printf statements 64-bit clean.
14971         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
14972         * tests/test-getaddrinfo.c (simple): Likewise.
14973         * tests/test-read-file.c (main): Likewise.
14974
14975 2007-03-17  Bruno Haible  <bruno@clisp.org>
14976
14977         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
14978
14979 2007-03-17  Bruno Haible  <bruno@clisp.org>
14980
14981         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
14982         unused variable.
14983
14984 2007-03-17  Bruno Haible  <bruno@clisp.org>
14985
14986         * tests/test-c-strcasecmp.c: Include c-strcase.h.
14987         * tests/test-c-strncasecmp.c: Likewise.
14988
14989 2007-03-17  Bruno Haible  <bruno@clisp.org>
14990
14991         * modules/stdlib (Depends-on): Add unistd.
14992         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
14993         Needed for MacOS X 10.3.
14994
14995 2007-03-17  Bruno Haible  <bruno@clisp.org>
14996
14997         * lib/unistr/u-strdup.h: Include <stdlib.h>.
14998
14999 2007-03-17  Bruno Haible  <bruno@clisp.org>
15000
15001         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
15002
15003 2007-03-17  Bruno Haible  <bruno@clisp.org>
15004
15005         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
15006         to reflect files copied from gnulib (with or without modifications).
15007         Suggested by Jim Meyering.
15008
15009 2007-03-17  Eric Blake  <ebb9@byu.net>
15010
15011         * NEWS: Document stdlib change from 2007-02-18.
15012
15013 2007-03-17  Jim Meyering  <jim@meyering.net>
15014
15015         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
15016         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
15017         someone uses a name containing shell meta-characters.
15018         Reported by Alfred M. Szmidt.
15019
15020         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
15021
15022 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15023
15024         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
15025         and copy gettext configuration files only if configure.ac contains
15026         a use of AM_GNU_GETTEXT_VERSION.
15027
15028 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
15029
15030         * build-aux/bootstrap (gnulib_name): New variable.
15031         (gnulib_tool_options): Use it.
15032
15033 2007-03-13  Simon Josefsson  <simon@josefsson.org>
15034
15035         * tests/test-des.c: Use new namespace.
15036
15037 2007-03-15  Bruno Haible  <bruno@clisp.org>
15038
15039         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
15040         Reported by James Youngman <jay@gnu.org>.
15041
15042 2007-03-15  Bruno Haible  <bruno@clisp.org>
15043
15044         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
15045         declared prototype. Needed with cc on OSF/1 5.1.
15046
15047 2007-03-15  Bruno Haible  <bruno@clisp.org>
15048
15049         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
15050         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
15051         (struct gl_list_implementation): Add dispose_fn argument to the
15052         'create_empty', 'create' methods.
15053         (struct gl_list_impl_base): Add field 'dispose_fn'.
15054         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
15055         argument.
15056         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
15057         dispose_fn argument.
15058         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
15059         dispose_fn on the dropped values.
15060         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
15061         dispose_fn argument.
15062         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
15063         dropped values.
15064         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
15065         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15066         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
15067         (gl_tree_remove_node): Call dispose_fn on the dropped value.
15068         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
15069         argument.
15070         (gl_tree_list_free): Call dispose_fn on the dropped values.
15071         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
15072         the dropped values.
15073         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15074         Add dispose_fn argument.
15075         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
15076         Call dispose_fn on the dropped values.
15077         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
15078         Add dispose_fn argument.
15079         (gl_sublist_create): Initialize the 'dispose_fn' field.
15080         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
15081         * tests/test-array_list.c (main): Update.
15082         * tests/test-carray_list.c (main): Update.
15083         * tests/test-avltree_list.c (main): Update.
15084         * tests/test-rbtree_list.c (main): Update.
15085         * tests/test-avltreehash_list.c (main): Update.
15086         * tests/test-rbtreehash_list.c (main): Update.
15087         * tests/test-linked_list.c (main): Update.
15088         * tests/test-linkedhash_list.c (main): Update.
15089         * tests/test-array_oset.c (main): Update.
15090
15091 2007-03-15  Bruno Haible  <bruno@clisp.org>
15092
15093         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
15094         (gl_oset_create_empty): Add dispose_fn argument.
15095         (struct gl_oset_implementation): Add dispose_fn argument to
15096         'create_empty' method.
15097         (struct gl_oset_impl_base): Add dispose_fn field.
15098         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
15099         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
15100         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
15101         values.
15102         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
15103         (gl_tree_oset_free): Call dispose_fn on the dropped values.
15104         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15105         dropped value.
15106         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
15107         dropped value.
15108         * tests/test-array_oset.c (main): Update.
15109         * tests/test-avltree_oset.c (main): Update.
15110         * tests/test-rbtree_oset.c (main): Update.
15111         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
15112
15113 2007-03-13  Bruno Haible  <bruno@clisp.org>
15114
15115         * tests/test-stdbool.c (i): Update after last patch.
15116
15117 2007-03-12  Bruno Haible  <bruno@clisp.org>
15118
15119         * lib/quotearg.c: Include <wctype.h> early, before the definition of
15120         the iswprint macro. Needed on Solaris 2.5.1.
15121
15122 2007-03-12  Bruno Haible  <bruno@clisp.org>
15123
15124         * tests/test-printf-frexp.c (main): Declare x as volatile.
15125
15126 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15127
15128         * doc/gnulib.texi (Build robot for gnulib): New section.
15129
15130 2007-03-12  Jim Meyering  <jim@meyering.net>
15131
15132         * build-aux/bootstrap: New file.
15133         * build-aux/bootstrap.conf: New file, from coreutils.
15134
15135 2007-03-11  Bruno Haible  <bruno@clisp.org>
15136
15137         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
15138
15139 2007-03-12  Simon Josefsson  <simon@josefsson.org>
15140
15141         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
15142         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
15143         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
15144
15145 2007-03-11  Bruno Haible  <bruno@clisp.org>
15146
15147         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
15148         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
15149
15150 2007-03-11  Bruno Haible  <bruno@clisp.org>
15151
15152         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
15153         formula. Needed for SunPRO C 5.0.
15154
15155 2007-03-11  Bruno Haible  <bruno@clisp.org>
15156
15157         * modules/long-options (Depends-on): Add getopt.
15158
15159 2007-03-11  Bruno Haible  <bruno@clisp.org>
15160
15161         * modules/modechange (Depends-on): Add stdbool.
15162
15163 2007-03-11  Bruno Haible  <bruno@clisp.org>
15164
15165         * modules/i-ring (Depends-on): Add stdbool.
15166
15167 2007-03-11  Bruno Haible  <bruno@clisp.org>
15168
15169         * modules/gc-des (Depends-on): Add stdbool.
15170
15171 2007-03-11  Bruno Haible  <bruno@clisp.org>
15172
15173         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
15174
15175 2007-03-11  Bruno Haible  <bruno@clisp.org>
15176
15177         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
15178
15179 2007-03-11  Bruno Haible  <bruno@clisp.org>
15180
15181         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
15182
15183 2007-03-11  Bruno Haible  <bruno@clisp.org>
15184
15185         * lib/vasnprintf.c (sprintf): Undefine.
15186
15187 2007-03-11  Bruno Haible  <bruno@clisp.org>
15188
15189         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
15190         initializers in SunPRO C and Compaq C compilers.
15191
15192 2007-03-11  Bruno Haible  <bruno@clisp.org>
15193
15194         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
15195         decrementing code ANSI C compliant.
15196
15197 2007-03-11  Bruno Haible  <bruno@clisp.org>
15198
15199         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
15200         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
15201
15202 2007-03-11  Bruno Haible  <bruno@clisp.org>
15203
15204         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
15205         <stdbool.h> substitute doesn't pass.
15206
15207 2007-03-11  Bruno Haible  <bruno@clisp.org>
15208
15209         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
15210
15211 2007-03-11  Bruno Haible  <bruno@clisp.org>
15212
15213         * gnulib-tool (func_create_megatestdir): Create also an autobuild
15214         script, for submission to autobuild.josefsson.org.
15215
15216 2007-03-10  Bruno Haible  <bruno@clisp.org>
15217
15218         * modules/canonicalize-lgpl-tests: New file.
15219         * tests/test-canonicalize-lgpl.sh: New file.
15220         * tests/test-canonicalize-lgpl.c: New file.
15221
15222         * modules/c-strcase-tests: New file.
15223         * tests/test-c-strcase.sh: New file.
15224         * tests/test-c-strcasecmp.c: New file.
15225         * tests/test-c-strncasecmp.c: New file.
15226
15227         * modules/atexit-tests: New file.
15228         * tests/test-atexit.sh: New file.
15229         * tests/test-atexit.c: New file.
15230
15231 2007-03-10  Bruno Haible  <bruno@clisp.org>
15232
15233         * tests/test-binary-io.sh: Use temporary filenames that are not so
15234         likely to clash with those of other tests (in a parallel make).
15235         * tests/test-binary-io.c: Likewise.
15236
15237 2007-03-10  Bruno Haible  <bruno@clisp.org>
15238
15239         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
15240         fallback; use #error instead.
15241         Suggested by Simon Josefsson.
15242
15243 2007-03-10  Bruno Haible  <bruno@clisp.org>
15244
15245         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
15246         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
15247         first and the last.
15248
15249 2007-03-10  Bruno Haible  <bruno@clisp.org>
15250
15251         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
15252
15253 2007-03-10  Bruno Haible  <bruno@clisp.org>
15254
15255         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
15256         "make distcheck".
15257         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
15258         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
15259         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
15260
15261 2007-03-10  Bruno Haible  <bruno@clisp.org>
15262
15263         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
15264         variable.
15265         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
15266         variable.
15267
15268 2007-03-09  Eric Blake  <ebb9@byu.net>
15269         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
15270
15271         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
15272         types are not being provided by gnulib.
15273         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
15274         types are supported.
15275
15276 2007-03-10  Bruno Haible  <bruno@clisp.org>
15277
15278         * lib/stdio_.h (__attribute__): New macro.
15279         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
15280         vsprintf): Specify __attribute__ __format__ for GCC.
15281         Suggested by Eric Blake.
15282
15283 2007-03-09  Bruno Haible  <bruno@clisp.org>
15284
15285         * modules/printf-posix-tests: New file.
15286         * tests/test-printf-posix.sh: New file.
15287         * tests/test-printf-posix.c: New file.
15288
15289         * modules/printf-posix: New file.
15290         * lib/printf.c: New file.
15291         * m4/printf-posix-rpl.m4: New file.
15292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
15293         REPLACE_PRINTF.
15294         * lib/stdio_.h (printf): New declaration.
15295         (format, __format__, ____printf____, ____scanf____, ____strftime____,
15296         ____strfmon____): New macros.
15297         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
15298         REPLACE_PRINTF.
15299
15300 2007-03-09  Bruno Haible  <bruno@clisp.org>
15301
15302         * tests/test-vasnprintf-posix2.sh: New file.
15303         * tests/test-vasnprintf-posix2.c: New file.
15304         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
15305         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15306         (Makefile.am): Activate test-vasnprintf-posix2.sh.
15307
15308         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
15309         a locale dependent decimal point, rather than always '.'.
15310
15311 2007-03-09  Eric Blake  <ebb9@byu.net>
15312
15313         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
15314         spite of platforms like Tandem/NSK that define it to -1.
15315
15316 2007-03-08  Bruno Haible  <bruno@clisp.org>
15317
15318         * modules/vprintf-posix-tests: New file.
15319         * tests/test-vprintf-posix.sh: New file.
15320         * tests/test-vprintf-posix.c: New file.
15321         * tests/test-printf-posix.h: New file.
15322
15323         * modules/vprintf-posix: New file.
15324         * lib/vprintf.c: New file.
15325         * m4/vprintf-posix.m4: New file.
15326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
15327         REPLACE_VPRINTF.
15328         * lib/stdio_.h (vprintf): New declaration.
15329         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
15330         REPLACE_VPRINTF.
15331
15332 2007-03-08  Bruno Haible  <bruno@clisp.org>
15333
15334         * modules/fprintf-posix-tests: New file.
15335         * tests/test-fprintf-posix.sh: New file.
15336         * tests/test-fprintf-posix.c: New file.
15337
15338         * modules/fprintf-posix: New file.
15339         * lib/fprintf.c: New file.
15340         * m4/fprintf-posix.m4: New file.
15341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
15342         REPLACE_FPRINTF.
15343         * lib/stdio_.h (fprintf): New declaration.
15344         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
15345         REPLACE_FPRINTF.
15346
15347 2007-03-08  Bruno Haible  <bruno@clisp.org>
15348
15349         * modules/vfprintf-posix-tests: New file.
15350         * tests/test-vfprintf-posix.sh: New file.
15351         * tests/test-vfprintf-posix.c: New file.
15352         * tests/test-fprintf-posix.h: New file.
15353         * tests/test-fprintf-posix.out: New file.
15354
15355         * modules/vfprintf-posix: New file.
15356         * lib/vfprintf.c: New file.
15357         * m4/vfprintf-posix.m4: New file.
15358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
15359         REPLACE_VFPRINTF.
15360         * lib/stdio_.h (vfprintf): New declaration.
15361         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
15362         REPLACE_VFPRINTF.
15363
15364 2007-03-08  Bruno Haible  <bruno@clisp.org>
15365
15366         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
15367
15368 2007-03-08  Bruno Haible  <bruno@clisp.org>
15369
15370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
15371         instead of 'expr' invocations.
15372         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15373         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15374         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15377         Suggested by Paul Eggert.
15378
15379 2007-03-08  Bruno Haible  <bruno@clisp.org>
15380
15381         * modules/fseterr-tests: New file.
15382         * tests/test-fseterr.c: New file.
15383
15384         * modules/fseterr: New file.
15385         * lib/fseterr.h: New file.
15386         * lib/fseterr.c: New file.
15387
15388 2007-03-08  Bruno Haible  <bruno@clisp.org>
15389
15390         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
15391         * lib/getopt_.h: Likewise.
15392         * lib/mbswidth.h: Likewise.
15393         * lib/setenv.h: Likewise.
15394         * lib/vasnprintf.h: Likewise.
15395         * lib/vasprintf.h: Likewise.
15396         * lib/verror.h: Likewise.
15397         * lib/xsetenv.h: Likewise.
15398         * lib/xvasprintf.h: Likewise.
15399
15400 2007-03-08  Jim Meyering  <jim@meyering.net>
15401
15402         * users.txt: Add parted.
15403
15404         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
15405
15406 2007-03-07  Bruno Haible  <bruno@clisp.org>
15407
15408         * m4/printf.m4: Make the shell script snippets copy&pastable.
15409
15410 2007-03-02  Bruno Haible  <bruno@clisp.org>
15411
15412         * lib/netinet_in_.h: New file.
15413         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
15414         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
15415         * modules/netinet_in (Files): Add lib/netinet_in_.h.
15416         (Depends-on): Add absolute-header.
15417         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
15418         into netinet/in.h.
15419
15420 2007-03-03  Bruno Haible  <bruno@clisp.org>
15421
15422         * lib/sys_select_.h: New file.
15423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15424         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15425         * modules/sys_select (Files): Add lib/sys_select_.h.
15426         (Depends-on): Add absolute-header.
15427         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15428         into sys/select.h.
15429
15430 2007-03-02  Bruno Haible  <bruno@clisp.org>
15431
15432         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15433         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15434         values.
15435         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15436         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15437         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15438         * modules/sys_socket (Depends-on): Add absolute-header.
15439         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15440         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15441         (Include): Remove requirement of inclusion of <sys/types.h>.
15442
15443 2007-03-02  Bruno Haible  <bruno@clisp.org>
15444
15445         * lib/byteswap_.h (bswap_32): Fix formula.
15446
15447 2007-03-06  Bruno Haible  <bruno@clisp.org>
15448
15449         * modules/sprintf-posix-tests: New file.
15450         * tests/test-sprintf-posix.c: New file.
15451
15452         * modules/sprintf-posix: New file.
15453         * lib/sprintf.c: New file.
15454         * m4/sprintf-posix.m4: New file.
15455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15456         REPLACE_SPRINTF.
15457         * lib/stdio_.h (sprintf): New declaration.
15458         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15459         REPLACE_SPRINTF.
15460
15461 2007-03-06  Bruno Haible  <bruno@clisp.org>
15462
15463         * modules/vsprintf-posix-tests: New file.
15464         * tests/test-vsprintf-posix.c: New file.
15465         * tests/test-sprintf-posix.h: New file.
15466
15467         * modules/vsprintf-posix: New file.
15468         * lib/vsprintf.c: New file.
15469         * m4/vsprintf-posix.m4: New file.
15470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15471         REPLACE_VSPRINTF.
15472         * lib/stdio_.h (vsprintf): New declaration.
15473         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15474         REPLACE_VSPRINTF.
15475
15476 2007-03-06  Bruno Haible  <bruno@clisp.org>
15477
15478         * modules/vsnprintf (Depend-on): Remove minmax.
15479
15480 2007-03-06  Bruno Haible  <bruno@clisp.org>
15481
15482         * modules/snprintf-posix-tests: New file.
15483         * tests/test-snprintf-posix.c: New file.
15484
15485         * modules/snprintf-posix: New file.
15486         * m4/snprintf-posix.m4: New file.
15487         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15488         gl_FUNC_SNPRINTF.
15489         (gl_FUNC_SNPRINTF): Invoke it.
15490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15491         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15492         is set.
15493         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15494
15495 2007-03-06  Bruno Haible  <bruno@clisp.org>
15496
15497         * modules/vsnprintf-posix-tests: New file.
15498         * tests/test-vsnprintf-posix.c: New file.
15499         * tests/test-snprintf-posix.h: New file.
15500
15501         * modules/vsnprintf-posix: New file.
15502         * m4/vsnprintf-posix.m4: New file.
15503         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15504         gl_FUNC_VSNPRINTF.
15505         (gl_FUNC_VSNPRINTF): Invoke it.
15506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15507         * lib/stdio_.h (vsnprintf): Define as a replacement if
15508         REPLACE_VSNPRINTF is set.
15509         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15510
15511 2007-03-06  Bruno Haible  <bruno@clisp.org>
15512
15513         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15515
15516 2007-03-06  Bruno Haible  <bruno@clisp.org>
15517
15518         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15519         (asinl): Declare also if HAVE_DECL_ASINL is set.
15520         (atanl): Declare also if HAVE_DECL_ATANL is set.
15521         (ceill): Declare also if HAVE_DECL_CEILL is set.
15522         (cosl): Declare also if HAVE_DECL_COSL is set.
15523         (expl): Declare also if HAVE_DECL_EXPL is set.
15524         (floorl): Declare also if HAVE_DECL_FLOORL is set.
15525         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
15526         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
15527         (logl): Declare also if HAVE_DECL_LOGL is set.
15528         (sinl): Declare also if HAVE_DECL_SINL is set.
15529         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
15530         (tanl): Declare also if HAVE_DECL_TANL is set.
15531         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
15532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
15533         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
15534         declaration of frexpl, ldexpl.
15535         * modules/printf-frexpl (Depends-on): Add math.
15536         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
15537
15538 2007-03-05  Bruno Haible  <bruno@clisp.org>
15539
15540         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15541         frexpl and ldexpl are declared.
15542         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15543
15544 2007-03-05  Bruno Haible  <bruno@clisp.org>
15545
15546         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15547         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15548
15549 2007-03-05  Bruno Haible  <bruno@clisp.org>
15550
15551         * lib/stdio_.h: Include <stddef.h>.
15552
15553 2007-03-05  Bruno Haible  <bruno@clisp.org>
15554
15555         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15556
15557 2007-03-05  Bruno Haible  <bruno@clisp.org>
15558
15559         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
15560         NetBSD 4, from Ralf Wildenhues.
15561
15562 2007-03-04  Bruno Haible  <bruno@clisp.org>
15563
15564         * lib/vasprintf.h: Update #if logic for the case when the functions
15565         exist but are overridden.
15566
15567 2007-03-04  Bruno Haible  <bruno@clisp.org>
15568
15569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
15570         implementations: glibc-2.4 and MacOS X 10.3.
15571         * tests/test-vasnprintf-posix.c (test_function): Test also the case
15572         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
15573         * tests/test-vasprintf-posix.c (test_function): Likewise.
15574
15575 2007-03-04  Bruno Haible  <bruno@clisp.org>
15576
15577         * modules/vasprintf-posix-tests: New file.
15578         * tests/test-vasprintf-posix.c: New file.
15579
15580         * modules/vasprintf-posix: New file.
15581         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
15582         defined.
15583         * m4/vasprintf-posix.m4: New file.
15584         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
15585         gl_FUNC_VASPRINTF.
15586         (gl_FUNC_VASPRINTF): Invoke it.
15587         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
15588         here.
15589         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
15590
15591 2007-03-04  Bruno Haible  <bruno@clisp.org>
15592
15593         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
15594         REPLACE_GETTIMEOFDAY.
15595         * modules/sys_time (Makefile.am): Likewise.
15596         * m4/sys_time_h.m4: Likewise.
15597         * m4/gettimeofday.m4: Likewise.
15598
15599 2007-03-04  Bruno Haible  <bruno@clisp.org>
15600
15601         * modules/vasnprintf-posix-tests: New file.
15602         * tests/test-vasnprintf-posix.c: New file.
15603
15604         * modules/vasnprintf-posix: New file.
15605         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
15606         printf-frexpl.h.
15607         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
15608         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
15609         REPLACE_VASNPRINTF is defined.
15610         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
15611         gl_FUNC_VASNPRINTF.
15612         (gl_FUNC_VASNPRINTF): Invoke it.
15613         * m4/vasnprintf-posix.m4: New file.
15614         * m4/printf.m4: New file.
15615
15616 2007-03-04  Bruno Haible  <bruno@clisp.org>
15617
15618         Compile progreloc.c only if --enable-relocatable is specified.
15619         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
15620         if --enable-relocatable was specified.
15621         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
15622         lib_SOURCES.
15623
15624 2007-03-04  Jim Meyering  <jim@meyering.net>
15625
15626         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
15627         Use it consistently, rather than enumerating errno constants.
15628
15629 2007-03-04  Bruno Haible  <bruno@clisp.org>
15630
15631         * modules/xvasprintf-tests: New file.
15632         * tests/test-xvasprintf.c: New file.
15633
15634         * modules/vasprintf-tests: New file.
15635         * tests/test-vasprintf.c: New file.
15636
15637         * modules/vasnprintf-tests: New file.
15638         * tests/test-vasnprintf.c: New file.
15639
15640         * modules/vsnprintf-tests: New file.
15641         * tests/test-vsnprintf.c: New file.
15642
15643         * modules/snprintf-tests: New file.
15644         * tests/test-snprintf.c: New file.
15645
15646 2007-03-04  Bruno Haible  <bruno@clisp.org>
15647
15648         Compile relocatable.c only if --enable-relocatable is specified.
15649         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
15650         gl_RELOCATABLE_LIBRARY.
15651         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
15652         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
15653         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
15654         gl_RELOCATABLE_LIBRARY.
15655         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
15656         (Makefile.am): Remove lib_SOURCES.
15657         * modules/relocatable-lib-lgpl (configure.ac): Invoke
15658         gl_RELOCATABLE_LIBRARY.
15659         (Makefile.am): Remove lib_SOURCES.
15660         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
15661         always.
15662         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15663         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
15664
15665 2007-03-04  Bruno Haible  <bruno@clisp.org>
15666
15667         * modules/argmatch-tests: New file.
15668         * tests/test-argmatch.c: New file.
15669
15670         * tests/test-allocsa.c (main): Halve the number of loop runs.
15671
15672         * modules/alloca-opt-tests: New file.
15673         * tests/test-alloca-opt.c: New file.
15674
15675 2007-03-04  Jim Meyering  <jim@meyering.net>
15676
15677         Work around difference between Linux ACLs and Solaris 10 ZFS.
15678         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
15679         for EINVAL.
15680
15681 2007-03-03  Bruno Haible  <bruno@clisp.org>
15682
15683         * modules/relocatable-prog (Depends-on): Add back progreloc's
15684         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
15685
15686 2007-03-03  Bruno Haible  <bruno@clisp.org>
15687
15688         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
15689         * modules/relocatable-lib: New file.
15690
15691 2007-03-03  Bruno Haible  <bruno@clisp.org>
15692
15693         * modules/relocatable-prog: Renamed from modules/relocatable.
15694         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
15695
15696 2007-03-03  Bruno Haible  <bruno@clisp.org>
15697
15698         * modules/relocatable-script (Files): Add doc/relocatable.texi,
15699         m4/relocatable-lib.m4.
15700         (Depends-on): Remove 'relocatable'.
15701         (configure.ac): Add gl_RELOCATABLE_NOP.
15702
15703 2007-03-03  Bruno Haible  <bruno@clisp.org>
15704
15705         * modules/relocatable-prog-wrapper: New file.
15706         * modules/relocatable (Depends-on): Add it. Remove all other
15707         dependencies except progname.
15708         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
15709
15710         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
15711         (gl_FUNC_STRERROR): Nop.
15712         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
15713
15714         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
15715         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
15716
15717         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
15718         (gl_FUNC_READLINK): Update.
15719
15720         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
15721
15722 2007-03-03  Bruno Haible  <bruno@clisp.org>
15723
15724         * lib/xreadlink.c: Include <unistd.h> unconditionally.
15725         * modules/xreadlink (Depends-on): Add unistd.
15726         * modules/xreadlink-with-size (Depends-on): Likewise.
15727
15728 2007-03-03  Bruno Haible  <bruno@clisp.org>
15729
15730         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
15731         extracted from gt_FUNC_SETENV.
15732         (gt_FUNC_SETENV): Remove macro.
15733         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
15734         remove gt_FUNC_SETENV.
15735
15736 2007-03-03  Bruno Haible  <bruno@clisp.org>
15737
15738         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
15739         ENABLE_RELOCATABLE here.
15740         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
15741
15742 2007-03-03  Bruno Haible  <bruno@clisp.org>
15743
15744         * modules/rbtreehash-list-tests (Depends-on): Add progname.
15745         * tests/test-rbtreehash_list.c: Include progname.h.
15746         (main): Call set_program_name.
15747
15748         * modules/rbtree-oset-tests (Depends-on): Add progname.
15749         * tests/test-rbtree_oset.c: Include progname.h.
15750         (main): Call set_program_name.
15751
15752         * modules/rbtree-list-tests (Depends-on): Add progname.
15753         * tests/test-rbtree_list.c: Include progname.h.
15754         (main): Call set_program_name.
15755
15756         * modules/linked-list-tests (Depends-on): Add progname.
15757         * tests/test-linked_list.c: Include progname.h.
15758         (main): Call set_program_name.
15759
15760 2007-03-03  Bruno Haible  <bruno@clisp.org>
15761
15762         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
15763         All uses of __restrict changed to _Restrict_.
15764         * lib/glob_.h (__restrict): Remove macro.
15765
15766 2007-03-02  Bruno Haible  <bruno@clisp.org>
15767
15768         * modules/gettext (configure.ac): Require gettext infrastructure
15769         from version 0.16.1.
15770
15771 2007-03-02  Bruno Haible  <bruno@clisp.org>
15772
15773         * modules/linkedhash-list-tests (Depends-on): Add progname.
15774         * tests/test-linkedhash_list.c: Include progname.h.
15775         (main): Call set_program_name.
15776
15777         * modules/carray-list-tests (Depends-on): Add progname.
15778         * tests/test-carray_list.c: Include progname.h.
15779         (main): Call set_program_name.
15780
15781         * modules/avltreehash-list-tests (Depends-on): Add progname.
15782         * tests/test-avltreehash_list.c: Include progname.h.
15783         (main): Call set_program_name.
15784
15785         * modules/avltree-oset-tests (Depends-on): Add progname.
15786         * tests/test-avltree_oset.c: Include progname.h.
15787         (main): Call set_program_name.
15788
15789         * modules/avltree-list-tests (Depends-on): Add progname.
15790         * tests/test-avltree_list.c: Include progname.h.
15791         (main): Call set_program_name.
15792
15793         * modules/array-oset-tests (Depends-on): Add progname.
15794         * tests/test-array_oset.c: Include progname.h.
15795         (main): Call set_program_name.
15796
15797         * modules/array-list-tests (Depends-on): Add progname.
15798         * tests/test-array_list.c: Include progname.h.
15799         (main): Call set_program_name.
15800
15801         * modules/argp-tests (Depends-on): Add progname.
15802         * tests/test-argp.c: Include argp.h first. Include progname.h.
15803         (main): Call set_program_name.
15804
15805 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
15806
15807         * doc/gnulib-tool.texi (Initial import): Reword description of
15808         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
15809         limited effect even if defined after the first system include.
15810
15811 2007-03-01  Bruno Haible  <bruno@clisp.org>
15812
15813         * build-aux/config.libpath: Update to libtool-1.5.22.
15814         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15815
15816 2007-03-01  Bruno Haible  <bruno@clisp.org>
15817
15818         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
15819         foo_CFLAGS.
15820         Reported by Ralf Wildenhues.
15821
15822 2007-03-01  Bruno Haible  <bruno@clisp.org>
15823
15824         * build-aux/install-reloc: Remove object files left over by some
15825         compilers.
15826         Reported by Ralf Wildenhues.
15827
15828 2007-03-01  Bruno Haible  <bruno@clisp.org>
15829
15830         * build-aux/install-reloc: Break long lines.
15831
15832 2007-03-01  Bruno Haible  <bruno@clisp.org>
15833
15834         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15835         Reported by Ralf Wildenhues.
15836
15837 2007-03-01  Bruno Haible  <bruno@clisp.org>
15838
15839         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15840         include ordering constraints.
15841
15842 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15843
15844         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
15845         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
15846         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
15847         as another example.
15848         * lib/time_.h: Fix misspelling.
15849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15850         Require gl_HEADER_TIME_H_DEFAULTS.
15851         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
15852         * m4/time_r.m4 (gl_TIME_R): Likewise.
15853         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
15854
15855 2007-03-01  Bruno Haible  <bruno@clisp.org>
15856
15857         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
15858         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15859
15860 2007-03-01  Jim Meyering  <jim@meyering.net>
15861
15862         * modules/xreadlink (Maintainer): Add my name.
15863         * modules/xreadlink-with-size (Depends-on): Alphabetize.
15864
15865 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
15866             Bruno Haible  <bruno@clisp.org>
15867
15868         * build-aux/install-reloc: Compile also c-ctype.c.
15869         * build-aux/relocatable.sh.in: New file.
15870         * doc/relocatable.texi: New file.
15871         * doc/relocatable-maint.texi: New file.
15872         * doc/gnulib.texi: Include relocatable-maint.texi.
15873         * lib/progreloc.c: Include unistd.h unconditionally.
15874         * lib/relocwrapper.c: Include unistd.h unconditionally.
15875         Include c-ctype.h.
15876         (add_dotbin): Use c_tolower.
15877         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
15878         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
15879         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
15880         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
15881         to m4/relocatable-lib.m4.
15882         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
15883         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
15884         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
15885         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
15886         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
15887         * modules/relocatable: New file.
15888         * modules/relocatable-lib: New file.
15889         * modules/relocatable-script: New file.
15890
15891 2007-02-28  Bruno Haible  <bruno@clisp.org>
15892
15893         Import --enable-relocatable infrastructure.
15894         * build-aux/config.libpath: New file, from GNU gettext.
15895         * build-aux/install-reloc: New file, from GNU gettext.
15896         * build-aux/reloc-ldflags: New file, from GNU gettext.
15897         * lib/relocatable.h: New file, from GNU gettext.
15898         * lib/relocatable.c: New file, from GNU gettext.
15899         * lib/relocwrapper.c: New file, from GNU gettext.
15900         * m4/relocatable.m4: New file, from GNU gettext.
15901
15902 2007-02-28  Bruno Haible  <bruno@clisp.org>
15903
15904         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
15905
15906         * modules/xreadlink: New file, from GNU gettext with modifications.
15907         * lib/xreadlink.c: New file, from GNU gettext.
15908         * lib/xreadlink.h: Add comments.
15909         (xreadlink): New declaration.
15910
15911         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
15912         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
15913         lib/xreadlink-with-size.c.
15914         (configure.ac): Remove gl_XREADLINK invocation.
15915         (Makefile.am): Augment lib_SOURCES.
15916         * m4/xreadlink.m4: Remove file.
15917         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
15918         (xreadlink_with_size): Renamed from xreadink.
15919         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
15920         * modules/canonicalize (Depends-on): Replace xreadlink with
15921         xreadlink-with-size.
15922         * lib/canonicalize.c (canonicalize_filename_mode): Update.
15923
15924 2007-02-25  Jim Meyering  <jim@meyering.net>
15925
15926         * build-aux/announce-gen: When complaining about excess arguments,
15927         list them.
15928
15929 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15930
15931         * README: Document signed integer overflow situation more
15932         accurately.
15933
15934 2007-02-25  Bruno Haible  <bruno@clisp.org>
15935
15936         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
15937         'a' or 'A' conversion.
15938
15939 2007-02-25  Bruno Haible  <bruno@clisp.org>
15940
15941         * modules/filename: Renamed from modules/pathname.
15942         (Files): Replace lib/pathname.h with lib/filename.h. Replace
15943         lib/concatpath.c with lib/concat-filename.c.
15944         (Makefile.am): Update.
15945         (Include): Replace pathname.h with filename.h.
15946         * lib/filename.h: Renamed from lib/pathname.h.
15947         (concatenated_filename): Renamed from concatenated_pathname.
15948         * lib/concat-filename.c: Renamed from lib/concatpath.c.
15949         (concatenated_filename): Renamed from concatenated_pathname.
15950         * lib/findprog.c: Include filename.h instead of pathname.h.
15951         (find_in_path): Update.
15952         * lib/javacomp.c: Include filename.h instead of pathname.h.
15953         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15954         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15955         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15956         is_oldgcj_14_13_usable, is_javac_usable): Update.
15957         * lib/javaexec.c: Include filename.h instead of pathname.h.
15958         (execute_java_class): Update.
15959         * modules/findprog: Update.
15960         * modules/javacomp: Update.
15961         * modules/javaexec: Update.
15962         * MODULES.html.sh (File system functions): Add 'filename', remove
15963         'pathname'.
15964
15965 2007-02-25  Bruno Haible  <bruno@clisp.org>
15966
15967         * modules/printf-frexpl-tests: New file.
15968         * tests/test-printf-frexpl.c: New file.
15969
15970         * modules/printf-frexpl: New file.
15971         * lib/printf-frexpl.h: New file.
15972         * lib/printf-frexpl.c: New file.
15973         * m4/printf-frexpl.m4: New file.
15974
15975 2007-02-25  Bruno Haible  <bruno@clisp.org>
15976
15977         * modules/printf-frexp-tests: New file.
15978         * tests/test-printf-frexp.c: New file.
15979
15980         * modules/printf-frexp: New file.
15981         * lib/printf-frexp.h: New file.
15982         * lib/printf-frexp.c: New file.
15983         * m4/printf-frexp.m4: New file.
15984
15985 2007-02-25  Bruno Haible  <bruno@clisp.org>
15986
15987         Assume automake >= 1.10 for the tests.
15988         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
15989         * modules/arctwo-tests: Likewise.
15990         * modules/argp-tests: Likewise.
15991         * modules/avltree-list-tests: Likewise.
15992         * modules/avltree-oset-tests: Likewise.
15993         * modules/avltreehash-list-tests: Likewise.
15994         * modules/carray-list-tests: Likewise.
15995         * modules/crc-tests: Likewise.
15996         * modules/des-tests: Likewise.
15997         * modules/gc-arcfour-tests: Likewise.
15998         * modules/gc-arctwo-tests: Likewise.
15999         * modules/gc-des-tests: Likewise.
16000         * modules/gc-hmac-md5-tests: Likewise.
16001         * modules/gc-hmac-sha1-tests: Likewise.
16002         * modules/gc-md2-tests: Likewise.
16003         * modules/gc-md4-tests: Likewise.
16004         * modules/gc-md5-tests: Likewise.
16005         * modules/gc-pbkdf2-sha1-tests: Likewise.
16006         * modules/gc-rijndael-tests: Likewise.
16007         * modules/gc-sha1-tests: Likewise.
16008         * modules/gc-tests: Likewise.
16009         * modules/getaddrinfo-tests: Likewise.
16010         * modules/hmac-md5-tests: Likewise.
16011         * modules/hmac-sha1-tests: Likewise.
16012         * modules/linked-list-tests: Likewise.
16013         * modules/linkedhash-list-tests: Likewise.
16014         * modules/lock-tests: Likewise.
16015         * modules/md2-tests: Likewise.
16016         * modules/md4-tests: Likewise.
16017         * modules/md5-tests: Likewise.
16018         * modules/rbtree-list-tests: Likewise.
16019         * modules/rbtree-oset-tests: Likewise.
16020         * modules/rbtreehash-list-tests: Likewise.
16021         * modules/read-file-tests: Likewise.
16022         * modules/rijndael-tests: Likewise.
16023         * modules/stdint-tests: Likewise.
16024         * modules/tls-tests: Likewise.
16025
16026 2007-02-24  Bruno Haible  <bruno@clisp.org>
16027
16028         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
16029         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
16030         function; instead check whether isnan with a double argument links.
16031         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
16032         function; instead check whether isnan with a 'long double' argument
16033         links.
16034         Reported by Eric Blake <ebb9@byu.net>.
16035
16036 2007-02-24  Bruno Haible  <bruno@clisp.org>
16037
16038         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
16039         defined.
16040         * lib/isnanl.c: Remove all code. Just include isnan.c.
16041         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
16042
16043 2007-02-25  Jim Meyering  <jim@meyering.net>
16044
16045         Avoid conflicting types for 'unsetenv' on FreeBSD.
16046         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
16047         conflicting with FreeBSD's (5.0 and 6.1) function declaration
16048         in stdlib.h.
16049
16050 2007-02-24  Bruno Haible  <bruno@clisp.org>
16051
16052         * modules/isnanl-nolibm-tests: New file.
16053         * tests/test-isnanl.c: New file.
16054
16055         * modules/isnanl-nolibm: New file.
16056         * lib/isnanl.h: New file.
16057         * lib/isnanl.c: New file.
16058         * m4/isnanl.m4: New file.
16059
16060 2007-02-24  Bruno Haible  <bruno@clisp.org>
16061
16062         * modules/isnan-nolibm-tests: New file.
16063         * tests/test-isnan.c: New file.
16064
16065         * modules/isnan-nolibm: New file.
16066         * lib/isnan.h: New file.
16067         * lib/isnan.c: New file.
16068         * m4/isnan.m4: New file.
16069
16070 2007-02-24  Bruno Haible  <bruno@clisp.org>
16071
16072         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
16073         assume that an exponent fits in 20 bits.
16074
16075 2007-02-24  Jim Meyering  <jim@meyering.net>
16076
16077         * m4/regex.m4: Update the description of the configure-time option,
16078         --without-included-regex, to state accurately what the defaults are,
16079         and perhaps to give people an idea why using this option is risky.
16080
16081 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16082
16083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
16084         loops on small arguments.  This attempts to avoid the problem
16085         Bruno Haible reported for AIX 4.3.2 in
16086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
16087
16088 2007-02-23  Bruno Haible  <bruno@clisp.org>
16089
16090         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
16091         Needed for help2man.
16092
16093 2007-02-23  Karl Berry  <karl@gnu.org>
16094
16095         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
16096         exists, foo.h should be cvs-ignored, not committed.
16097
16098 2007-02-23  Eric Blake  <ebb9@byu.net>
16099
16100         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
16101         * lib/stat-time.h (includes): Likewise.
16102         * lib/utimecmp.c (includes): Likewise.
16103         * lib/utimens.h (includes): Likewise.
16104         * lib/getdate.y (includes): Also include "timespec.h" for use
16105         internal to the module.
16106         * modules/utimens (Depends-on): Revert yesterday's patch.
16107         * modules/nanosleep (Depends-on): Add missing dependency.
16108
16109 2007-02-22  Bruno Haible  <bruno@clisp.org>
16110
16111         * lib/glob.c: Don't include getlogin_r.h.
16112
16113 2007-02-22  Jim Meyering  <jim@meyering.net>
16114
16115         * modules/utimens (Depends-on): Add timespec, required for
16116         utimens.h's inclusion of timespec.h.
16117
16118 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16119
16120         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
16121         long unreadable paths in GNU/Linux.  Problem reported by Andreas
16122         Schwab in
16123         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
16124         I'll try to think of a better way to fix the Solaris problem.
16125
16126         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
16127         like glibc; on Solaris 10, it fails with errno == EINVAL.
16128         POSIX says the behavior is unspecified if the first argument is NULL,
16129         so play it safe and never pass NULL to the system getcwd.
16130
16131 2007-02-21  Jim Meyering  <jim@meyering.net>
16132
16133         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
16134         of gettimeofday.  It would conflict with the one now always
16135         provided via sys_time_.h.  Reported by Matthew Woehlke, as
16136         an IRIX 6.5 build failure.
16137
16138 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16139
16140         Minor fixups to port to Solaris 10 with Sun C 5.8.
16141         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
16142         * modules/getcwd (Depends-on): Add dirfd.
16143         * lib/putenv.c (putenv): #undef it.
16144         (rpl_putenv): New decl.
16145         (malloc, free): Include <stdlib.h> rather than prototyping separately.
16146
16147 2007-02-20  Bruno Haible  <bruno@clisp.org>
16148
16149         * modules/stdio-tests: New file.
16150         * tests/test-stdio.c: New file.
16151
16152         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
16153         (Depends-on): Add stdio.
16154         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16155         (Include): Use <stdio.h> instead of vsnprintf.h.
16156         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16157         HAVE_DECL_VSNPRINTF.
16158         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
16159
16160         * modules/snprintf (Files): Remove lib/snprintf.h.
16161         (Depends-on): Add stdio.
16162         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16163         (Include): Use <stdio.h> instead of snprintf.h.
16164         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
16165         HAVE_DECL_SNPRINTF.
16166         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
16167         * lib/getaddrinfo.c: Likewise.
16168
16169         * modules/stdio: New file.
16170         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
16171         * lib/snprintf.h: Remove file.
16172         * lib/vsnprintf.h: Remove file.
16173         * lib/.cppi-disable: Remove snprintf.h.
16174         * m4/stdio_h.m4: New file.
16175         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
16176
16177 2007-02-20  Jim Meyering  <jim@meyering.net>
16178
16179         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
16180         used by e.g., mingw.  From Bruno Haible.
16181
16182 2007-02-19  Bruno Haible  <bruno@clisp.org>
16183
16184         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
16185         warnings.
16186         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16187
16188 2007-02-19  Bruno Haible  <bruno@clisp.org>
16189
16190         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
16191         from mingw users.
16192
16193 2007-02-19  Bruno Haible  <bruno@clisp.org>
16194
16195         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
16196         warnings.
16197         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
16198
16199 2007-02-19  Jim Meyering  <jim@meyering.net>
16200
16201         Don't use FD after a successful "fdopendir (fd)".
16202         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
16203         Reset it by calling dirfd on the just-obtained DIR*.
16204
16205         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
16206         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
16207
16208 2007-02-18  Bruno Haible  <bruno@clisp.org>
16209
16210         * lib/readlink.c: Include <unistd.h>.
16211         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
16212         HAVE_READLINK.
16213         * modules/readlink (Depends-on): Add unistd.
16214         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16215         (Include): Add <unistd.h>.
16216
16217         * lib/getlogin_r.h: Remove file.
16218         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
16219         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
16220         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
16221         HAVE_DECL_GETLOGIN_R.
16222         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
16223         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16224         (Include): Use <unistd.h> instead of getlogin_r.h.
16225
16226         * lib/getcwd.h: Remove file.
16227         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
16228         * lib/xgetcwd.c: Likewise.
16229         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
16230         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
16231         * modules/getcwd (Files): Remove lib/getcwd.h.
16232         (Depends-on): Add unistd.
16233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16234         (Include): Use <unistd.h> instad of getcwd.h.
16235
16236         * lib/ftruncate.c: Include <unistd.h> first.
16237         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
16238         Set HAVE_FTRUNCATE.
16239         * modules/ftruncate (Depends-on): Add unistd.
16240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16241
16242         * lib/fchdir.c: Include <unistd.h> first.
16243         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
16244         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
16245         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
16246         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16247         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
16248
16249         * lib/dup2.c: Include <unistd.h> first.
16250         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
16251         HAVE_DUP2.
16252         * modules/dup2 (Depends-on): Add unistd.
16253         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16254
16255         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
16256         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
16257         REPLACE_CHOWN. Don't define chown as a macro here.
16258         * modules/chown (Depends-on): Add unistd.
16259         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16260
16261         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
16262         Add definition for GL_LINK_WARNING.
16263         (chown, dup2): New declarations.
16264         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
16265         link warning.
16266         (ftruncate): New declaration.
16267         (getcwd): New declaration, taken from old getcwd.h.
16268         (getlogin_r): New declaration, taken from old getlogin_r.h.
16269         (readlink): New declaration.
16270         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
16271         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
16272         (gl_PREREQ_UNISTD): Remove macro.
16273         (gl_UNISTD_MODULE_INDICATOR): New macro.
16274         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
16275         many new variables. Don't set UNISTD_H.
16276         * modules/unistd (Description): Change.
16277         (Depends-on): Add link-warning.
16278         (configure.ac): Update.
16279         (Makefile.am): Create unistd.h always. Substitute many new variables
16280         into it.
16281
16282 2007-02-18  Bruno Haible  <bruno@clisp.org>
16283
16284         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
16285         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
16286         HAVE_GETSUBOPT.
16287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
16288         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
16289         * lib/getsubopt.h: Remove file.
16290         * modules/getsubopt (Files): Remove lib/getsubopt.h.
16291         (Depends-on): Add stdlib.
16292         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16293         (Includes): Use <stdlib.h> instead of getsubopt.h.
16294         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
16295         Set HAVE_GETSUBOPT.
16296         * lib/getsubopt.c: Don't include getsubopt.h.
16297
16298 2007-02-18  Bruno Haible  <bruno@clisp.org>
16299
16300         * modules/fchdir (Depends-on): Add dup2.
16301
16302 2007-02-18  Bruno Haible  <bruno@clisp.org>
16303
16304         * lib/stdlib_.h: Handle glibc's special invocation convention
16305         specially.
16306
16307 2007-02-18  Bruno Haible  <bruno@clisp.org>
16308
16309         * modules/stdlib-tests: New file.
16310         * tests/test-stdlib.c: New file.
16311
16312         * modules/mkstemp (Files): Remove lib/mkstemp.h.
16313         (Depends-on): Add stdlib.
16314         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16315         (Includes): Use <stdlib.h> instead of mkstemp.h.
16316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16317         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
16318         * lib/mkstemp.c: Don't include mkstemp.h.
16319         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
16320         * lib/stdlib--.h: Don't include mkstemp.h.
16321
16322         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
16323         (Depends-on): Add stdlib.
16324         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16325         (Includes): Use <stdlib.h> instead of mkdtemp.h.
16326         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
16327         HAVE_MKDTEMP.
16328         * lib/mkdtemp.c: Don't include mkdtemp.h.
16329         * lib/clean-temp.c: Don't include mkdtemp.h.
16330
16331         * modules/exit (Files): Remove lib/exit.h.
16332         (Depends-on): Add stdlib.
16333         (Makefile.am): Remove lib_SOURCES.
16334         (Include): Use <stdlib.h> instead of exit.h.
16335         * lib/argmatch.c: Don't include exit.h.
16336         * lib/execute.c: Likewise.
16337         * lib/pagealign_alloc.c: Likewise.
16338         * lib/pipe.c: Likewise.
16339         * lib/wait-process.c: Likewise.
16340         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
16341         * lib/exitfail.c: Likewise.
16342         * lib/savewd.c: Likewise.
16343         * lib/xsetenv.c: Likewise.
16344
16345         * modules/stdlib: New file.
16346         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
16347         and extra comments about mkstemp().
16348         * lib/exit.h: Remove file.
16349         * lib/mkdtemp.h: Remove file.
16350         * lib/mkstemp.h: Remove file.
16351         * m4/stdlib_h.m4: New file.
16352         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
16353
16354 2007-02-18  Bruno Haible  <bruno@clisp.org>
16355
16356         * modules/math-tests: New file.
16357         * tests/test-math.c: New file.
16358
16359         * modules/math: New file.
16360         * modules/mathl (Files): Remove lib/mathl.h.
16361         (Depends-on): Add math.
16362         (Makefile.am): Don't mention mathl.h.
16363         (Include): Use <math.h> instead of mathl.h.
16364         * lib/math_.h: New file.
16365         * lib/mathl.h: Remove file.
16366         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
16367         mathl.h.
16368         * lib/asinl.c: Likewise.
16369         * lib/atanl.c: Likewise.
16370         * lib/ceill.c: Likewise.
16371         * lib/cosl.c: Likewise.
16372         * lib/expl.c: Likewise.
16373         * lib/floorl.c: Likewise.
16374         * lib/frexpl.c: Likewise.
16375         * lib/ldexpl.c: Likewise.
16376         * lib/logl.c: Likewise.
16377         * lib/sincosl.c: Likewise.
16378         * lib/sinl.c: Likewise.
16379         * lib/sqrtl.c: Likewise.
16380         * lib/tanl.c: Likewise.
16381         * lib/trigl.c: Likewise.
16382         * m4/math_h.m4: New file.
16383         * MODULES.html.sh (Mathematics): Add math.
16384
16385 2007-02-17  Bruno Haible  <bruno@clisp.org>
16386
16387         * modules/wctype-tests: New file.
16388         * tests/test-wctype.c: New file.
16389
16390         * modules/wchar-tests: New file.
16391         * tests/test-wchar.c: New file.
16392
16393         * modules/unistd-tests: New file.
16394         * tests/test-unistd.c: New file.
16395
16396         * modules/time-tests: New file.
16397         * tests/test-time.c: New file.
16398
16399         * modules/sysexits-tests: New file.
16400         * tests/test-sysexits.c: New file.
16401
16402         * modules/sys_time-tests: New file.
16403         * tests/test-sys_time.c: New file.
16404
16405         * modules/sys_stat-tests: New file.
16406         * tests/test-sys_stat.c: New file.
16407
16408         * modules/sys_socket-tests: New file.
16409         * tests/test-sys_socket.c: New file.
16410
16411         * modules/sys_select-tests: New file.
16412         * tests/test-sys_select.c: New file.
16413
16414         * modules/string-tests: New file.
16415         * tests/test-string.c: New file.
16416
16417         * modules/stdbool-tests: New file.
16418         * tests/test-stdbool.c: New file.
16419
16420         * modules/netinet_in-tests: New file.
16421         * tests/test-netinet_in.c: New file.
16422
16423         * modules/inttypes-tests: New file.
16424         * tests/test-inttypes.c: New file.
16425
16426         * modules/fcntl-tests: New file.
16427         * tests/test-fcntl.c: New file.
16428
16429         * modules/byteswap-tests: New file.
16430         * tests/test-byteswap.c: New file.
16431
16432         * modules/arpa_inet-tests: New file.
16433         * tests/test-arpa_inet.c: New file.
16434
16435 2007-02-17  Bruno Haible  <bruno@clisp.org>
16436
16437         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16438         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16439         if the corresponding module is not enabled. Emit link warnings if
16440         the function is used nevertheless.
16441         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16442         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16443         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16444         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16445         * modules/inttypes (Depends-on): Add link-warning.
16446         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16447         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16448         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16449         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16450         * modules/imaxdiv (configure.ac): Likewise.
16451         * modules/strtoimax (configure.ac): Likewise.
16452         * modules/strtoumax (configure.ac): Likewise.
16453
16454 2007-02-17  Bruno Haible  <bruno@clisp.org>
16455
16456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16457         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16458         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16459         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16460
16461 2007-02-17  Bruno Haible  <bruno@clisp.org>
16462
16463         * modules/link-warning: New file.
16464         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16465         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16466         * modules/string (Depends-on): Add link-warning.
16467         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16468         string.h.
16469         * MODULES.html.sh (Support for building libraries and executables): Add
16470         link-warning.
16471
16472 2007-02-17  Bruno Haible  <bruno@clisp.org>
16473
16474         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16475         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16476         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16477         long lines.
16478
16479 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16480             Bruno Haible  <bruno@clisp.org>
16481
16482         * modules/tmpfile: New file.
16483         * lib/tmpfile.c: New file.
16484         * m4/tmpfile.m4: New file.
16485         * MODULES.html.sh (func_all_modules): New section "Input/output".
16486
16487 2007-02-15  Bruno Haible  <bruno@clisp.org>
16488
16489         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16490         (supports_delete_on_close): New function.
16491         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16492
16493 2007-02-14  Bruno Haible  <bruno@clisp.org>
16494
16495         * modules/mbspcasecmp-tests: New file.
16496         * tests/test-mbspcasecmp.sh: New file.
16497         * tests/test-mbspcasecmp.c: New file.
16498
16499         New module mbspcasecmp.
16500         * modules/mbspcasecmp: New file.
16501         * lib/mbspcasecmp.c: New file.
16502         * lib/string_.h (strncasecmp): Change warning message.
16503         (mbspcasecmp): New declaration.
16504         * m4/mbspcasecmp.m4: New file.
16505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16506         GNULIB_MBSPCASECMP.
16507         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16508         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16509
16510 2007-02-14  Bruno Haible  <bruno@clisp.org>
16511
16512         * modules/mbsncasecmp-tests: New file.
16513         * tests/test-mbsncasecmp.sh: New file.
16514         * tests/test-mbsncasecmp.c: New file.
16515
16516         New module mbsncasecmp.
16517         * modules/mbsncasecmp: New file.
16518         * lib/mbsncasecmp.c: New file.
16519         * lib/string_.h (mbsncasecmp): New declaration.
16520         * m4/mbsncasecmp.m4: New file.
16521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16522         GNULIB_MBSNCASECMP.
16523         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
16524         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
16525
16526 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16527
16528         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
16529         Verify that it doesn't overlap with our flags.
16530         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
16531         do not have the desired effect in multibyte locales; instead, use
16532         mbscasecmp.
16533         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
16534         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
16535         we don't require GNU fnmatch ourselves (if our users require it, they
16536         should do so explicitly).
16537
16538         Fix regex code so it doesn't rely on strcasecmp.
16539         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16540         Otherwise, include gnulib's langinfo.h.
16541         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16542         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16543         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16544         * modules/regex (FILES): Remove m4/codeset.m4.
16545         (Depends-on): Add localcharset.  Remove strcase.
16546
16547 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16548
16549         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16550         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16551
16552 2007-02-13  Bruno Haible  <bruno@clisp.org>
16553
16554         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16555         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16556
16557 2007-02-12  Bruno Haible  <bruno@clisp.org>
16558
16559         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16560         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
16561         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
16562         time warning rather than a link error.
16563
16564 2007-02-12  Bruno Haible  <bruno@clisp.org>
16565
16566         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
16567         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16569
16570 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16571
16572         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
16573         args, not 2.
16574
16575 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16576
16577         New module 'time', so that apps can include <time.h> as per
16578         POSIX and GNU instead of separate include files like time_r.h
16579         and timegm.h.  This implementation tries out a simpler approach
16580         for replacing decls in standard include files (as compared to
16581         the string module), somewhat as an experiment.
16582
16583         * config/srclist.txt: Comment out mktime.c for now.
16584         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
16585         since it doesn't apply any more.  Use generic wording instead.
16586         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
16587         'time'.
16588         * lib/time_.h, m4/time_h.m4, modules/time: New files.
16589         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
16590         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
16591         Don't include <sys/types.h>; no longer needed since we assume C89.
16592         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
16593         * lib/strftime.c: Likewise.
16594         * lib/time_r.c: Likewise.
16595         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
16596         * lib/nanosleep.c: Include <time.h> first, to check interface.
16597         * lib/strptime.c: Likewise.
16598         * lib/time_r.c: Likewise.
16599         * lib/timegm.c: Likewise.
16600         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
16601         needed.
16602         * lib/timegm.c: Don't include timegm.h; no longer needed.
16603         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
16604         time.h now handles any problems in that area.
16605         (struct timespec, nanosleep): Remove; time.h now arranges for these.
16606         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
16607         that time.h defines struct timespec.
16608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
16609         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
16610         handles that.
16611         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
16612         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
16613         needed.  Set REPLACE_LOCALTIME.
16614         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
16615         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
16616         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
16617         nanosleep; time_h.m4 now does that.  Don't require
16618         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
16619         module handles this now.
16620         * modules/getdate (Depends-on): Remove timespec.  Add time.
16621         * modules/nanosleep (Depends-on): Likewise.
16622         * modules/stat-time (Depends-on): Likewise.
16623         * modules/nanosleep (Include): Include time.h, not timespec.h.
16624         * modules/strptime (Files): Remove lib/strptime.h.
16625         (Depends-on): Add extensions, time.
16626         (Include): Include time.h, not strptime.h.
16627         * modules/time_r (Files): Remove lib/time_r.h.
16628         (Depends-on): Add time.
16629         (Include): Include time.h, not time_r.h.
16630         * modules/timegm: Likewise.
16631         * modules/timespec (Description): Now does timespec-related decls
16632         of our own, instead of struct timespec itself.
16633         (Depends-on): Add time; remove extensions.
16634         (Maintainer): Add self.
16635         * modules/utimecmp (Depends-on): Add time; remove timespec.
16636         * modules/utimens (Depends-on): Likewise.
16637         * modules/xnanosleep (Depends-on): Likewise.
16638
16639 2007-02-11  Bruno Haible  <bruno@clisp.org>
16640
16641         * lib/c-strstr.c: Include allocsa.h.
16642         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16643         * lib/c-strcasestr.c: Include allocsa.h.
16644         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16645         * lib/strcasestr.c: Include allocsa.h.
16646         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16647         * lib/mbsstr.c: Include allocsa.h.
16648         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16649         allocsa/freesa instead of malloc/free.
16650         * lib/mbscasestr.c: Include allocsa.h.
16651         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16652         allocsa/freesa instead of malloc/free.
16653         * modules/c-strstr (Depends-on): Add allocsa.
16654         * modules/c-strcasestr (Depends-on): Likewise.
16655         * modules/strcasestr (Depends-on): Likewise.
16656         * modules/mbsstr (Depends-on): Likewise.
16657         * modules/mbscasestr (Depends-on): Likewise.
16658
16659 2007-02-11  Bruno Haible  <bruno@clisp.org>
16660
16661         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
16662
16663         * modules/mbsspn-tests: New file.
16664         * tests/test-mbsspn.sh: New file.
16665         * tests/test-mbsspn.c: New file.
16666
16667 2007-02-11  Bruno Haible  <bruno@clisp.org>
16668
16669         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
16670
16671         * modules/mbspbrk-tests: New file.
16672         * tests/test-mbspbrk.sh: New file.
16673         * tests/test-mbspbrk.c: New file.
16674
16675 2007-02-11  Bruno Haible  <bruno@clisp.org>
16676
16677         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
16678         unneeded cast.
16679
16680         * modules/mbscspn-tests: New file.
16681         * tests/test-mbscspn.sh: New file.
16682         * tests/test-mbscspn.c: New file.
16683
16684 2007-02-11  Bruno Haible  <bruno@clisp.org>
16685
16686         * modules/mbscasecmp-tests: New file.
16687         * tests/test-mbscasecmp.sh: New file.
16688         * tests/test-mbscasecmp.c: New file.
16689
16690 2007-02-11  Bruno Haible  <bruno@clisp.org>
16691
16692         Ensure O(n) worst-case complexity of mbscasestr.
16693         * lib/mbscasestr.c: Include stdbool.h.
16694         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16695         functions.
16696         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
16697         the bookkeeping indicates that it's worth it.
16698         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
16699
16700         * modules/mbscasestr-tests: New file.
16701         * tests/test-mbscasestr1.c: New file.
16702         * tests/test-mbscasestr2.sh: New file.
16703         * tests/test-mbscasestr2.c: New file.
16704         * tests/test-mbscasestr3.sh: New file.
16705         * tests/test-mbscasestr3.c: New file.
16706         * tests/test-mbscasestr4.sh: New file.
16707         * tests/test-mbscasestr4.c: New file.
16708         * m4/locale-tr.m4: New file.
16709
16710 2007-02-11  Bruno Haible  <bruno@clisp.org>
16711
16712         Ensure O(n) worst-case complexity of mbsstr.
16713         * lib/mbsstr.c: Include stdbool.h.
16714         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16715         functions.
16716         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
16717         bookkeeping indicates that it's worth it.
16718         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
16719
16720         * modules/mbsstr-tests: New file.
16721         * tests/test-mbsstr1.c: New file.
16722         * tests/test-mbsstr2.sh: New file.
16723         * tests/test-mbsstr2.c: New file.
16724         * tests/test-mbsstr3.sh: New file.
16725         * tests/test-mbsstr3.c: New file.
16726         * m4/locale-fr.m4: New file.
16727
16728 2007-02-11  Bruno Haible  <bruno@clisp.org>
16729
16730         * lib/mbsrchr.c (mbsrchr): Fix bug.
16731
16732         * modules/mbsrchr-tests: New file.
16733         * tests/test-mbsrchr.sh: New file.
16734         * tests/test-mbsrchr.c: New file.
16735
16736 2007-02-11  Bruno Haible  <bruno@clisp.org>
16737
16738         * lib/mbschr.c (mbschr): Fix bug.
16739
16740         * modules/mbschr-tests: New file.
16741         * tests/test-mbschr.sh: New file.
16742         * tests/test-mbschr.c: New file.
16743         * m4/locale-zh.m4: New file.
16744
16745 2007-02-11  Bruno Haible  <bruno@clisp.org>
16746
16747         Support for copying multibyte string iterators.
16748         * lib/mbiter.h: Include <string.h>.
16749         (mbiter_multi_copy): New function.
16750         (mbi_copy): New macro.
16751         * lib/mbuiter.h: Include <string.h>.
16752         (mbuiter_multi_copy): New function.
16753         (mbui_copy): New macro.
16754
16755 2007-02-11  Bruno Haible  <bruno@clisp.org>
16756
16757         New module mbslen.
16758         * modules/mbslen: New file.
16759         * lib/mbslen.c: New file.
16760         * lib/string_.h (mbslen): New declaration.
16761         * m4/mbslen.m4: New file.
16762         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16763         GNULIB_MBSLEN.
16764         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
16765         * MODULES.html.sh (Internationalization functions): Add mbslen.
16766
16767 2007-02-11  Bruno Haible  <bruno@clisp.org>
16768
16769         Ensure O(n) worst-case complexity of strcasestr substitute.
16770         * lib/strcasestr.c: Include stdbool.h.
16771         (knuth_morris_pratt): New function.
16772         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16773         bookkeeping indicates that it's worth it.
16774         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
16775
16776         * modules/strcasestr-tests: New file.
16777         * tests/test-strcasestr.c: New file.
16778
16779 2007-02-11  Bruno Haible  <bruno@clisp.org>
16780
16781         Ensure O(n) worst-case complexity of c_strcasestr.
16782         * lib/c-strcasestr.c: Include stdbool.h, string.h.
16783         (knuth_morris_pratt): New function.
16784         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
16785         the bookkeeping indicates that it's worth it.
16786         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
16787
16788         * modules/c-strcasestr-tests: New file.
16789         * tests/test-c-strcasestr.c: New file.
16790
16791 2007-02-11  Bruno Haible  <bruno@clisp.org>
16792
16793         Ensure O(n) worst-case complexity of c_strstr.
16794         * lib/c-strstr.c: Include stdbool.h, string.h.
16795         (knuth_morris_pratt): New function.
16796         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16797         bookkeeping indicates that it's worth it.
16798         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
16799
16800         * lib/c-strstr.c: Complete rewrite for maintainability.
16801
16802         * modules/c-strstr-tests: New file.
16803         * tests/test-c-strstr.c: New file.
16804
16805 2007-02-11  Bruno Haible  <bruno@clisp.org>
16806
16807         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
16808         5.2.1 and earlier, whereby \055 was treated just like the range
16809         delimiter '-'.
16810         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16811
16812 2007-02-08  Bruno Haible  <bruno@clisp.org>
16813
16814         * modules/regex (Depends-on): Add stdbool.
16815         Reported by Dalibor Topic <robilad@kaffe.org>.
16816
16817 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16818
16819         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
16820         Prefer returning from main to exiting from it.
16821         Remove unnecessary parens after sizeof.
16822
16823 2007-02-05  Bruno Haible  <bruno@clisp.org>
16824
16825         New module mbssep.
16826         * modules/mbssep: New file.
16827         * lib/mbssep.c: New file.
16828         * lib/string_.h (strsep): Add a conditional link warning.
16829         (mbssep): New declaration.
16830         * m4/mbssep.m4: New file.
16831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16832         GNULIB_MBSSEP.
16833         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16834         * MODULES.html.sh (Internationalization functions): Add mbssep.
16835
16836 2007-02-05  Bruno Haible  <bruno@clisp.org>
16837
16838         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16839         Optimize search in case of 1 delimiter.
16840
16841 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16842
16843         * lib/acl.h: Include sys/types.h before sys/acl.h.
16844
16845 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16846
16847         Merge upstream fix for glibc bugzilla #3957:
16848
16849         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
16850
16851         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16852         bit for RE_HAT_LISTS_NOT_NEWLINE.
16853         (build_charclass_op): Remove bogus comment.
16854
16855 2007-02-05  Simon Josefsson  <simon@josefsson.org>
16856
16857         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
16858
16859 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16860
16861         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
16862         * lib/memmem.c [!defined _LIBC]: Include config.h.
16863
16864 2007-02-04  Bruno Haible  <bruno@clisp.org>
16865
16866         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
16867         warning message.
16868
16869 2007-02-04  Bruno Haible  <bruno@clisp.org>
16870
16871         New module mbstok_r.
16872         * modules/mbstok_r: New file.
16873         * lib/mbstok_r.c: New file.
16874         * lib/string_.h (strtok_r): Change argument names to match the
16875         comments. Add a conditional link warning.
16876         (mbstok_r): New declaration.
16877         * m4/mbstok_r.m4: New file.
16878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16879         GNULIB_MBSTOK_R.
16880         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
16881         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
16882
16883 2007-02-04  Bruno Haible  <bruno@clisp.org>
16884
16885         New module mbsspn.
16886         * modules/mbsspn: New file.
16887         * lib/mbsspn.c: New file.
16888         * lib/string_.h (strspn): Add a conditional link warning.
16889         (mbsspn): New declaration.
16890         * m4/mbsspn.m4: New file.
16891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16892         GNULIB_MBSSPN.
16893         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
16894         * MODULES.html.sh (Internationalization functions): Add mbsspn.
16895
16896 2007-02-04  Bruno Haible  <bruno@clisp.org>
16897
16898         New module mbspbrk.
16899         * modules/mbspbrk: New file.
16900         * lib/mbspbrk.c: New file.
16901         * lib/string_.h (strpbrk): Add a conditional link warning.
16902         (mbspbrk): New declaration.
16903         * m4/mbspbrk.m4: New file.
16904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16905         GNULIB_MBSPBRK.
16906         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
16907         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
16908
16909 2007-02-04  Bruno Haible  <bruno@clisp.org>
16910
16911         New module mbscspn.
16912         * modules/mbscspn: New file.
16913         * lib/mbscspn.c: New file.
16914         * lib/string_.h (strcspn): Add a conditional link warning.
16915         (mbscspn): New declaration.
16916         * m4/mbscspn.m4: New file.
16917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16918         GNULIB_MBSCSPN.
16919         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
16920         * MODULES.html.sh (Internationalization functions): Add mbscspn.
16921
16922 2007-02-04  Bruno Haible  <bruno@clisp.org>
16923
16924         New module mbscasestr, reduced goal of strcasestr.
16925         * modules/mbscasestr: New file.
16926         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
16927         (mbscasestr): Renamed from strcasestr.
16928         * lib/strcasestr.c: Don't include mbuiter.h.
16929         (strcasestr): Remove support for multibyte locales.
16930         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
16931         Change the conditional link warning.
16932         (mbscasestr): New declaration.
16933         * m4/mbscasestr.m4: New file.
16934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
16935         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
16936         REPLACE_STRCASESTR.
16937         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
16938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16939         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16940         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
16941         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
16942         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16943         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
16944         (Depends-on): Remove mbuiter.
16945         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
16946
16947 2007-02-04  Bruno Haible  <bruno@clisp.org>
16948
16949         Simplify handling of strncasecmp.
16950         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
16951         the conditional link warning.
16952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16953         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
16954         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
16955         * modules/strcase (configure.ac): Don't invoke
16956         gl_STRING_MODULE_INDICATOR.
16957         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
16958
16959 2007-02-04  Bruno Haible  <bruno@clisp.org>
16960
16961         New module mbscasecmp, reduced goal of strcasecmp.
16962         * modules/mbscasecmp: New file.
16963         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
16964         (mbscasecmp): Renamed from strcasecmp.
16965         * lib/strcasecmp.c: Don't include mbuiter.h.
16966         (strcasecmp): Remove support for multibyte locales.
16967         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
16968         Change the conditional link warning.
16969         (mbscasecmp): New declaration.
16970         * m4/mbscasecmp.m4: New file.
16971         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
16972         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
16973         REPLACE_STRCASECMP.
16974         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
16975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16976         GNULIB_MBSCASECMP.
16977         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
16978         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
16979         * modules/strcase (Files): Remove m4/mbrtowc.m4.
16980         (Depends-on): Remove mbuiter.
16981         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
16982
16983 2007-02-04  Bruno Haible  <bruno@clisp.org>
16984
16985         New module mbsstr. Remove module strstr.
16986         * modules/mbsstr: New file.
16987         * modules/strstr: Remove file.
16988         * lib/mbsstr.c: Renamed from lib/strstr.c.
16989         (mbsstr): Renamed from strstr.
16990         * lib/string_.h (strstr): Remove declaration. Change the conditional
16991         link warning.
16992         (mbsstr): New declaration.
16993         * m4/mbsstr.m4: New file.
16994         * m4/strstr.m4: Remove file.
16995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16996         REPLACE_STRSTR.
16997         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
16998         Don't initialize GNULIB_STRSTR.
16999         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
17000         substitute GNULIB_STRSTR and REPLACE_STRSTR.
17001         * MODULES.html.sh (Internationalization functions): Add mbsstr.
17002         (Support for systems lacking ANSI C 89): Remove strstr.
17003
17004 2007-02-04  Bruno Haible  <bruno@clisp.org>
17005
17006         New module mbsrchr.
17007         * modules/mbsrchr: New file.
17008         * lib/mbsrchr.c: New file.
17009         * lib/string_.h (strrchr): Add a conditional link warning.
17010         (mbsrchr): New declaration.
17011         * m4/mbsrchr.m4: New file.
17012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17013         GNULIB_MBSRCHR.
17014         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
17015         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
17016
17017 2007-02-04  Bruno Haible  <bruno@clisp.org>
17018
17019         New module mbschr.
17020         * modules/mbschr: New file.
17021         * lib/mbschr.c: New file.
17022         * lib/string_.h (strchr): Add a conditional link warning.
17023         (mbschr): New declaration.
17024         * m4/mbschr.m4: New file.
17025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
17026         GNULIB_MBSCHR.
17027         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
17028         * MODULES.html.sh (Internationalization functions): Add mbschr.
17029
17030 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17031
17032         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
17033
17034         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
17035
17036 2007-02-04  Bruno Haible  <bruno@clisp.org>
17037
17038         New module description section 'configure.ac-early'.
17039         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
17040         (func_get_autoconf_early_snippet): New function.
17041         (func_import, func_create_testdir): Use it. Remove special cases for
17042         modules 'extensions' and 'lock'.
17043         * modules/extensions (configure.ac-early): Require
17044         gl_USE_SYSTEM_EXTENSIONS.
17045         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
17046
17047 2007-02-04  Bruno Haible  <bruno@clisp.org>
17048
17049         Make use of gcj-4.3's -fsource and -ftarget option.
17050         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
17051         and if so try the options -fsource and -ftarget.
17052         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
17053         source_version, ftarget_option, target_version arguments.
17054         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
17055         (is_envjavac_oldgcj_14_14_usable): Renamed from
17056         is_envjavac_gcj_14_14_usable.
17057         (is_envjavac_oldgcj_14_13_usable): Renamed from
17058         is_envjavac_gcj_14_13_usable.
17059         (is_gcj_present): Update.
17060         (is_gcj_43, is_gcj43_usable): New functions.
17061         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
17062         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
17063         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
17064         try the options -fsource and -ftarget.
17065
17066 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17067
17068         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
17069         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
17070         larger value.
17071
17072 2007-02-03  Jim Meyering  <jim@meyering.net>
17073
17074         Give tools a better chance to allocate space for very large buffers.
17075         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
17076
17077         Make pwd and readlink work also when run with an unreadable parent dir
17078         on systems with openat support.
17079         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
17080         provided getcwd function, even when we have openat support.
17081         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
17082
17083 2007-02-02  Bruno Haible  <bruno@clisp.org>
17084
17085         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
17086         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
17087         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
17088         portability problems if one of these functions is only used on specific
17089         platforms.
17090         Reported by Paul Eggert.
17091
17092 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17093
17094         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
17095         is causing more trouble than it's curing.
17096         * lib/regex_internal.h (__mempcpy): Remove.
17097         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
17098         (and make the code a tad smaller to boot).
17099         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
17100
17101 2007-02-02  Jim Meyering  <jim@meyering.net>
17102
17103         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
17104         section, not in the Makefile.am: one.
17105
17106 2007-02-02  Eric Blake  <ebb9@byu.net>
17107
17108         * lib/strchrnul.c: Always include config.h first.
17109
17110         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
17111         gnulib strstr is not necessary here.
17112
17113 2007-02-02  Simon Josefsson  <simon@josefsson.org>
17114
17115         * m4/socklen.m4: Fix typo.
17116
17117 2007-02-02  Eric Blake  <ebb9@byu.net>
17118
17119         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
17120         * modules/netinet_in (Makefile.am): Likewise.
17121
17122 2007-02-01  Bruno Haible  <bruno@clisp.org>
17123
17124         * lib/string_.h (GL_LINK_WARNING): New macro.
17125         (strcasecmp, strstr, strcasestr): If provided by the system,
17126         conditionally define as a macro that leads to a warning instead of to
17127         an error.
17128         (strncasecmp): Conditionally define as a macro that leads to a warning.
17129
17130 2007-02-01  Karl Berry  <karl@gnu.org>
17131
17132         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
17133
17134 2007-02-01  Bruno Haible  <bruno@clisp.org>
17135
17136         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
17137         renamings.
17138
17139 2007-02-01  Eric Blake  <ebb9@byu.net>
17140
17141         * modules/regex (Depends-on): Revert dependence on mempcpy.
17142         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
17143         module's definition of mempcpy.
17144         Reported by Paul Eggert.
17145
17146 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
17147
17148         * lib/string_.h: If the gnulib module XYZ is not present, undefine
17149         the symbol XYZ before redefining it.  This fixes a problem with
17150         programs that don't use XYZ, when compiled on systems that define
17151         XYZ to something else.
17152
17153 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17154
17155         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
17156         occurs when "mkdir -m foo" creates a setgid directory that is (1)
17157         writeable to group or other and (2) is intended to have a special
17158         mode bit that is set or cleared.  In such a case, the directory
17159         should be neither group- nor other-writeable until the special
17160         mode bits are right.
17161
17162 2007-01-31  Eric Blake  <ebb9@byu.net>
17163
17164         * modules/mountlist (Depends-on): Add strstr.
17165
17166         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
17167         bug.
17168         * modules/string (Makefile.am): Remove redundant replacement.
17169         * modules/regex (Depends-on): Add mempcpy.
17170
17171 2007-01-31  Bruno Haible  <bruno@clisp.org>
17172
17173         New module description field 'Link'.
17174         * gnulib-tool (func_usage): Document --extract-link-directive.
17175         (sed_extract_prog): Recognize 'Link' directive.
17176         (func_get_link_directive): New function.
17177         (func_import): Show summary of link directives.
17178         Handle --extract-link-directive option.
17179         * modules/acl (Link): New section.
17180         * modules/clock-time (Link): New section.
17181         * modules/euidaccess (Link): New section.
17182         * modules/gettext (Link): New section.
17183         * modules/iconv (Link): New section.
17184         * modules/lock (Link): New section.
17185         * modules/nanosleep (Link): New section.
17186         * modules/readline (Link): New section.
17187
17188 2007-01-27  Bruno Haible  <bruno@clisp.org>
17189
17190         Enforce the use of gnulib modules for unportable <string.h> functions.
17191         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
17192         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
17193         (gl_HEADER_STRING_H_BODY): Require it.
17194         * lib/string_.h: If the gnulib module XYZ is not present, redefine
17195         the symbol XYZ to one that gives a link error.
17196         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
17197         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
17198         * modules/mempcpy (configure.ac): Likewise.
17199         * modules/memrchr (configure.ac): Likewise.
17200         * modules/stpcpy (configure.ac): Likewise.
17201         * modules/stpncpy (configure.ac): Likewise.
17202         * modules/strcase (configure.ac): Likewise.
17203         * modules/strcasestr (configure.ac): Likewise.
17204         * modules/strchrnul (configure.ac): Likewise.
17205         * modules/strdup (configure.ac): Likewise.
17206         * modules/strndup (configure.ac): Likewise.
17207         * modules/strnlen (configure.ac): Likewise.
17208         * modules/strpbrk (configure.ac): Likewise.
17209         * modules/strsep (configure.ac): Likewise.
17210         * modules/strstr (configure.ac): Likewise.
17211         * modules/strtok_r (configure.ac): Likewise.
17212
17213 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
17214
17215         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
17216
17217 2007-01-30  Jim Meyering  <jim@meyering.net>
17218
17219         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
17220
17221 2007-01-29  Bruno Haible  <bruno@clisp.org>
17222
17223         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
17224         * lib/execute.c: Likewise.
17225         * lib/pipe.c: Likewise.
17226         * lib/printf-args.h: Likewise.
17227         * lib/printf-args.c: Likewise.
17228         * lib/printf-parse.c: Likewise.
17229         * lib/vasnprintf.c: Likewise.
17230
17231 2007-01-29  Eric Blake  <ebb9@byu.net>
17232
17233         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
17234         declaration.
17235
17236 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17237
17238         * lib/strptime.h (strptime): Use 'restrict' for args where
17239         POSIX requires this.
17240         * lib/strptime.c (strptime): Likewise.
17241         Change license notice from LGPL to GPL, since gnulib-tool will
17242         change this as needed.
17243         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
17244         defined.
17245         Include "strptime.h" first, to check interface.
17246         Do not #undef _LIBC and _NL_CURRENT.
17247         Do not include <stdlib.h>; no longer needed.
17248         Include "time_r.h" and declare ptime_locale_status
17249         only if _LIBC is not defined.
17250         (__P): Remove unused macro.
17251         (match_string): Bring back glibc version, but use it only if _LIBC
17252         is defined.
17253         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
17254         Remove unnecessary assertion and abort() call.
17255         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
17256         * m4/strptime.m4: Fix serial number comment.
17257         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
17258         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
17259         (Depends-on): Add time_r.
17260
17261 2007-01-29  Bruno Haible  <bruno@clisp.org>
17262
17263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17264         strptime.
17265         * modules/strptime (Depends-on): Add stdbool.
17266         * lib/strptime.h: Include <time.h> always. Add comments.
17267
17268 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17269
17270         * modules/strptime: New file.
17271         * lib/strptime.h: New file.
17272         * lib/strptime.c: New file.
17273         * m4/strptime.m4: New file.
17274
17275 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17276
17277         * MODULES.html.sh: New module mpsort.
17278         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
17279
17280         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
17281         a circularity problem with HP-UX ia64 reported by Bob Proulx in
17282         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
17283         All uses changed.
17284         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
17285         All uses changed.
17286         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
17287         to _Restrict_.
17288         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
17289         the parameter matches the prototype.
17290
17291 2007-01-28  Jim Meyering  <jim@meyering.net>
17292
17293         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17294         sys/time.h here, reverting that part of the previous patch:
17295         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
17296
17297 2007-01-28  Bruno Haible  <bruno@clisp.org>
17298
17299         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
17300         value of $(SYS_TIME_H).
17301         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
17302         remove it conditionally, too. [added by Jim Meyering]
17303         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
17304         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17305         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
17306         GETTIMEOFDAY_REPLACEMENT to 1.
17307
17308 2007-01-28  Bruno Haible  <bruno@clisp.org>
17309
17310         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
17311         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
17312         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
17313         Set UNISTD_H instead of UNISTD_H2.
17314         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
17315
17316 2007-01-28  Bruno Haible  <bruno@clisp.org>
17317
17318         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
17319         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
17320
17321 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17322
17323         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
17324         (func_create_testdir): Ensure C locale for `grep' and `tr'
17325         character ranges.
17326         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
17327         ACLOCAL_AMFLAGS parsing state machine.
17328
17329 2007-01-27  Bruno Haible  <bruno@clisp.org>
17330
17331         * modules/unistr/base: Update.
17332
17333 2007-01-27  Bruno Haible  <bruno@clisp.org>
17334
17335         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
17336         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
17337         * modules/unistr/u32-mbtouc-unsafe: Renamed from
17338         modules/unistr/u32-mbtouc.
17339         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
17340         * lib/unistr.h: Update.
17341         * lib/linebreak.c: Update.
17342         * modules/unistr/u32-mbtouc: Renamed from
17343         modules/unistr/u32-mbtouc-safe.
17344         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
17345         * lib/unistr.h: Update.
17346         * lib/unistr/u32-to-u8.c: Update.
17347         * lib/unistr/u32-to-u16.c: Update.
17348
17349 2007-01-27  Bruno Haible  <bruno@clisp.org>
17350
17351         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
17352         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
17353         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
17354         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
17355         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
17356         * modules/unistr/u16-mbtouc-unsafe: Renamed from
17357         modules/unistr/u16-mbtouc.
17358         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
17359         * lib/unistr.h: Update.
17360         * lib/linebreak.c: Update.
17361         * modules/linebreak: Update.
17362         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
17363         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
17364         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
17365         * modules/unistr/u16-mbtouc: Renamed from
17366         modules/unistr/u16-mbtouc-safe.
17367         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
17368         * lib/unistr.h: Update.
17369         * lib/unistr/u16-to-u8.c: Update.
17370         * modules/unistr/u16-to-u8: Update.
17371         * lib/unistr/u16-to-u32.c: Update.
17372         * modules/unistr/u16-to-u32: Update.
17373
17374 2007-01-27  Bruno Haible  <bruno@clisp.org>
17375
17376         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
17377         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
17378         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
17379         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
17380         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
17381         * modules/unistr/u8-mbtouc-unsafe: Renamed from
17382         modules/unistr/u8-mbtouc.
17383         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
17384         * lib/unistr.h: Update.
17385         * lib/striconveh.c: Update.
17386         * modules/striconveh: Update.
17387         * lib/linebreak.c: Update.
17388         * modules/linebreak: Update.
17389         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
17390         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
17391         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
17392         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
17393         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
17394         * lib/unistr.h: Update.
17395         * lib/striconveh.c: Update.
17396         * modules/striconveh: Update.
17397         * lib/unistr/u8-to-u16.c: Update.
17398         * modules/unistr/u8-to-u16: Update.
17399         * lib/unistr/u8-to-u32.c: Update.
17400         * modules/unistr/u8-to-u32: Update.
17401
17402 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17403
17404         Sync from Libtool.
17405         * lib/argz.c: Do not include strings.h nor memory.h, include
17406         string.h unconditionally.  Patch by Simon Josefsson.
17407
17408 2007-01-27  Bruno Haible  <bruno@clisp.org>
17409
17410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
17411         from gl_HEADER_STRING_H_BODY.
17412         (gl_HEADER_STRING_H_BODY): Require it.
17413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
17414         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17415         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17416         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17417         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17418         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
17419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17420         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17421         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17422         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17423         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17424         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17425         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17426         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17427         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17428
17429 2007-01-27  Bruno Haible  <bruno@clisp.org>
17430
17431         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17432         check_PROGRAMS into noinst_PROGRAMS.
17433         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17434         check_PROGRAMS in this case.
17435         (func_import): Set for_test to false.
17436         (func_create_testdir): Set for_test to true.
17437
17438 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17439             Bruno Haible  <bruno@clisp.org>
17440
17441         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17442         (Depends-on): Add string.
17443         (Includes): Use <string.h> instead of strcasestr.h.
17444         * modules/string (Makefile.am): Also substitute the value of
17445         REPLACE_STRCASESTR.
17446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17447         assume strcasestr is declared in <string.h> not <strings.h>. Also
17448         set REPLACE_STRCASESTR.
17449         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17450         REPLACE_STRCASESTR.
17451         * lib/strcasestr.h: Remove file.
17452         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17453         * lib/string_.h (strcasestr): New declaration.
17454
17455 2007-01-27  Bruno Haible  <bruno@clisp.org>
17456
17457         * lib/string_.h: Use 'extern'.
17458
17459 2007-01-27  Jim Meyering  <jim@meyering.net>
17460
17461         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17462         of set-but-not-used local, "q".
17463
17464         * lib/mempcpy.c: Include <config.h> before <string.h>.
17465         This fixes a compilation error on HP-UX, due to the system's
17466         "restrict"-using mempcpy prototype.
17467
17468 2007-01-26  Bruno Haible  <bruno@clisp.org>
17469
17470         Small optimization.
17471         * lib/javacomp.c: Include c-strstr.h.
17472          (is_envjavac_gcj): Use c_strstr instead of strstr.
17473         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17474
17475 2007-01-26  Bruno Haible  <bruno@clisp.org>
17476
17477         * MODULES.html.sh (Unicode string functions): Add the new modules.
17478
17479         * modules/uniconv/u32-strconv-to-locale: New file.
17480         * lib/uniconv/u32-strconv-to-locale.c: New file.
17481
17482         * modules/uniconv/u16-strconv-to-locale: New file.
17483         * lib/uniconv/u16-strconv-to-locale.c: New file.
17484
17485         * modules/uniconv/u8-strconv-to-locale: New file.
17486         * lib/uniconv/u8-strconv-to-locale.c: New file.
17487
17488         * modules/uniconv/u32-strconv-from-locale: New file.
17489         * lib/uniconv/u32-strconv-from-locale.c: New file.
17490
17491         * modules/uniconv/u16-strconv-from-locale: New file.
17492         * lib/uniconv/u16-strconv-from-locale.c: New file.
17493
17494         * modules/uniconv/u8-strconv-from-locale: New file.
17495         * lib/uniconv/u8-strconv-from-locale.c: New file.
17496
17497         * modules/uniconv/u32-strconv-to-enc: New file.
17498         * lib/uniconv/u32-strconv-to-enc.c: New file.
17499         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17500         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17501
17502         * modules/uniconv/u16-strconv-to-enc: New file.
17503         * lib/uniconv/u16-strconv-to-enc.c: New file.
17504         * lib/uniconv/u-strconv-to-enc.h: New file.
17505         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17506         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17507
17508         * modules/uniconv/u8-strconv-to-enc: New file.
17509         * lib/uniconv/u8-strconv-to-enc.c: New file.
17510         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17511         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17512
17513         * modules/uniconv/u32-strconv-from-enc: New file.
17514         * lib/uniconv/u32-strconv-from-enc.c: New file.
17515         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17516         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17517
17518         * modules/uniconv/u16-strconv-from-enc: New file.
17519         * lib/uniconv/u16-strconv-from-enc.c: New file.
17520         * modules/uniconv/u16-strconv-from-enc-tests: New file.
17521         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
17522
17523         * modules/uniconv/u8-strconv-from-enc: New file.
17524         * lib/uniconv/u8-strconv-from-enc.c: New file.
17525         * lib/uniconv/u-strconv-from-enc.h: New file.
17526         * modules/uniconv/u8-strconv-from-enc-tests: New file.
17527         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
17528
17529         * modules/uniconv/u32-conv-from-enc: New file.
17530         * lib/uniconv/u32-conv-from-enc.c: New file.
17531         * modules/uniconv/u32-conv-from-enc-tests: New file.
17532         * tests/uniconv/test-u32-conv-from-enc.c: New file.
17533
17534         * modules/uniconv/u16-conv-from-enc: New file.
17535         * lib/uniconv/u16-conv-from-enc.c: New file.
17536         * lib/uniconv/u-conv-from-enc.h: New file.
17537         * modules/uniconv/u16-conv-from-enc-tests: New file.
17538         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17539
17540         * modules/uniconv/u8-conv-from-enc: New file.
17541         * lib/uniconv/u8-conv-from-enc.c: New file.
17542         * modules/uniconv/u8-conv-from-enc-tests: New file.
17543         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17544
17545         * modules/uniconv/base: New file.
17546         * lib/uniconv.h: New file.
17547
17548 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17549
17550         * doc/gnulib-tool.texi (Initial import): Update to match current
17551         behavior with strdup module.
17552         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17553         * lib/memmem.h: Remove; all uses removed.  This is now done
17554         by <string.h>.
17555         * lib/mempcpy.h: Likewise.
17556         * lib/memrchr.h: Likewise.
17557         * lib/stpcpy.h: Likewise.
17558         * lib/stpncpy.h: Likewise.
17559         * lib/strcase.h: Likewise.
17560         * lib/strchrnul.h: Likewise.
17561         * lib/strdup.h: Likewise.
17562         * lib/strndup.h: Likewise.
17563         * lib/strnlen.h: Likewise.
17564         * lib/strpbrk.h: Likewise.
17565         * lib/strsep.h: Likewise.
17566         * lib/strstr.h: Likewise.
17567         * lib/strtok_r.h: Likewise.
17568         * lib/string_.h: New file.
17569         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
17570         Rely on <string.h> instead.
17571         * lib/canon-host.c: Likewise.
17572         * lib/chdir-long.c: Likewise.
17573         * lib/concatpath.c: Likewise.
17574         * lib/exclude.c: Likewise.
17575         * lib/fchdir.c: Likewise.
17576         * lib/getaddrinfo.c: Likewise.
17577         * lib/getcwd.c: Likewise.
17578         * lib/getsubopt.c: Likewise.
17579         * lib/glob.c: Likewise.
17580         * lib/hard-locale.c: Likewise.
17581         * lib/iconvme.c: Likewise.
17582         * lib/javacomp.c: Likewise.
17583         * lib/mempcpy.c: Likewise.
17584         * lib/memrchr.c: Likewise.
17585         * lib/regex_internal.h: Likewise.
17586         * lib/stpncpy.c: Likewise.
17587         * lib/strcasecmp.c: Likewise.
17588         * lib/strchrnul.c: Likewise.
17589         * lib/strdup.c: Likewise.
17590         * lib/striconv.c: Likewise.
17591         * lib/striconveh.c: Likewise.
17592         * lib/striconveha.c: Likewise.
17593         * lib/strncasecmp.c: Likewise.
17594         * lib/strndup.c: Likewise.
17595         * lib/strnlen.c: Likewise.
17596         * lib/strsep.c: Likewise.
17597         * lib/strstr.c: Likewise.
17598         * lib/strtok_r.c: Likewise.
17599         * lib/userspec.c: Likewise.
17600         * lib/w32spawn.h: Likewise.
17601         * lib/xstrndup.c: Likewise.
17602         * lib/mountlist.c (strstr): Remove decl.
17603         * m4/string_h.m4: New file.
17604         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
17605         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
17606         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
17607         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
17608         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
17609         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
17610         Set REPLACE_STRCASECMP if necessary.
17611         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
17612         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
17613         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
17614         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
17615         HAVE_DECL_STRDUP if necessary.
17616         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
17617         since gl_FUNC_STRNDUP does that now.
17618         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
17619         Check for decl here...
17620         (gl_PREREQ_STRNLEN): ... not here.
17621         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
17622         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
17623         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
17624         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
17625         necessary.
17626         * modules/string: New file.
17627         * modules/memmem (Files): Remove special-purpose include file.
17628         (Depends-on): Add string.
17629         (Include): Include <string.h>, not the removed file.
17630         * modules/mempcpy: Likewise.
17631         * modules/memrchr: Likewise.
17632         * modules/stpcpy: Likewise.
17633         * modules/stpncpy: Likewise.
17634         * modules/strcase: Likewise.
17635         * modules/strchrnul: Likewise.
17636         * modules/strdup: Likewise.
17637         * modules/strndup: Likewise.
17638         * modules/strnlen: Likewise.
17639         * modules/strpbrk: Likewise.
17640         * modules/strsep: Likewise.
17641         * modules/strstr: Likewise.
17642         * modules/strtok_r: Likewise.
17643         * tests/test-dirname.c: Don't include "strdup.h", since
17644         <string.h> now suffices.
17645         * tests/test-memmem.c: Don't include "memmem.h", since
17646         <string.h> now suffices.
17647
17648 2007-01-25  Bruno Haible  <bruno@clisp.org>
17649
17650         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
17651         *resultp is 0.
17652
17653         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
17654         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
17655         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
17656         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
17657
17658         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
17659         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
17660         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
17661         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
17662         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
17663         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
17664
17665 2007-01-24  Bruno Haible  <bruno@clisp.org>
17666
17667         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
17668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
17669         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
17670         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
17671         gl_FUNC_FTS_CORE.
17672         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
17673         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
17674         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17675         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
17676         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
17677         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
17678         gl_FUNC_FCHOWNAT.
17679         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
17680         gl_FUNC_STRFTIME.
17681         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
17682         Reported by Ralf Wildenhues.
17683
17684 2007-01-24  Bruno Haible  <bruno@clisp.org>
17685
17686         Drop AC_REQUIRE calls that are redundant with the module dependencies.
17687         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
17688         gl_GETADDRINFO.
17689         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
17690         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
17691         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
17692
17693 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17694
17695         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
17696         Don't use 'exit'; just return from 'main'.
17697         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
17698
17699         * lib/fnmatch_.h: Readjust white space and comments to match
17700         glibc, to avoid spurious diffs.
17701
17702 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17703
17704         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
17705         2004-12-01 change by Jakub Jelinek, since this code won't compile
17706         if !LIBC.  Problem reported by Bob Proulx.
17707
17708 2007-01-23  Bruno Haible  <bruno@clisp.org>
17709
17710         * lib/striconveh.c: Include c-strcaseeq.h.
17711         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
17712         * modules/striconveh (Depends-on): Add c-strcaseeq.
17713
17714 2007-01-23  Bruno Haible  <bruno@clisp.org>
17715
17716         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
17717
17718         * modules/c-strcaseeq: New file.
17719         * lib/c-strcaseeq.h: New file.
17720
17721         * modules/streq: New file.
17722         * lib/streq.h: New file.
17723
17724 2007-01-23  Bruno Haible  <bruno@clisp.org>
17725
17726         * modules/striconveha-tests: New file.
17727         * tests/test-striconveha.c: New file.
17728
17729         * lib/striconveha.h: Include <stdbool.h>.
17730         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
17731         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
17732         (mem_iconveha_notranslit): Renamed from mem_iconveha.
17733         (mem_iconveha): New function.
17734         (str_iconveha_notranslit): Renamed from str_iconveha.
17735         (str_iconveha): New function.
17736         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
17737         c-strcase.
17738
17739 2007-01-23  Bruno Haible  <bruno@clisp.org>
17740
17741         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
17742         encodings without forgiving before trying any encoding with handler.
17743         (str_iconveha): Try all encodings without forgiving before trying any
17744         encoding with handler.
17745
17746 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17747
17748         Import the following changes from libc.
17749
17750         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17751
17752         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
17753
17754         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
17755
17756         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
17757         normal_bracket label.
17758
17759         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
17760
17761         [BZ #361]
17762         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
17763         to normal_bracket after fetching the next character.
17764
17765 2007-01-22  Bruno Haible  <bruno@clisp.org>
17766
17767         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
17768         argument.
17769         * lib/striconveh.c (iconv_carefully_1): New function.
17770         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
17771         argument.
17772         (str_cd_iconveh): Update.
17773         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
17774         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
17775         * tests/test-striconveh.c (MAGIC): New macro.
17776         (new_offsets): New function.
17777         (main): Test call with and without offsets.
17778
17779 2007-01-22  Bruno Haible  <bruno@clisp.org>
17780
17781         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
17782         * modules/sys_select (Makefile.am): Likewise.
17783         * modules/sys_socket (Makefile.am): Likewise.
17784         * modules/sys_time (Makefile.am): Likewise.
17785
17786 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17787
17788         * modules/gettimeofday (License): Change from GPL to LGPL, since
17789         gettimeofday is a library function.
17790
17791 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17792
17793         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
17794
17795 2007-01-21  Bruno Haible  <bruno@clisp.org>
17796
17797         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
17798
17799 2007-01-21  Bruno Haible  <bruno@clisp.org>
17800
17801         * modules/striconveha: New file.
17802         * lib/striconveha.h: New file.
17803         * lib/striconveha.c: New file.
17804         * MODULES.html.sh (Internationalization functions): Add striconveha.
17805         * lib/striconv.c (str_iconv): Optimize the case of an empty input
17806         string.
17807         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
17808
17809 2007-01-21  Bruno Haible  <bruno@clisp.org>
17810
17811         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
17812         * lib/striconveh.c (str_iconveh): Likewise.
17813
17814 2007-01-21  Bruno Haible  <bruno@clisp.org>
17815
17816         * lib/striconveh.h (mem_iconveh): New declaration.
17817         * lib/striconveh.c (mem_iconveh): New function.
17818         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
17819
17820 2007-01-21  Bruno Haible  <bruno@clisp.org>
17821
17822         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
17823
17824         * lib/striconveh.h (mem_cd_iconveh): Change specification.
17825         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
17826         original result buffer.
17827         (str_cd_iconveh): Update.
17828         * tests/test-striconveh.c (main): Update.
17829
17830         * lib/striconv.h (mem_cd_iconv): Change specification.
17831         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17832         result buffer.
17833         (str_cd_iconv): Update.
17834         * tests/test-striconv.c (main): Update.
17835
17836 2007-01-21  Bruno Haible  <bruno@clisp.org>
17837
17838         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17839
17840 2007-01-20  Jim Meyering  <jim@meyering.net>
17841
17842         * lib/userspec.c (parse_with_separator): If a user or group string
17843         starts with "+", skip the corresponding name-to-ID look-up, since
17844         such a look-up must fail: user and group names may not include "+".
17845
17846 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17847
17848         * lib/poll.c: Include sys/time.h and time.h unconditionally,
17849         since we now assume the sys_time module.
17850         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
17851         check for sys/time.h; no longer needed.
17852         * modules/poll (Depends-on): Depend on sys_time.
17853
17854 2007-01-18  Bruno Haible  <bruno@clisp.org>
17855
17856         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
17857         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17858
17859         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
17860         gettimeofday.
17861
17862         * tests/test-gettimeofday.c: Include <time.h>.
17863         (dummy): Remove variable.
17864
17865         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
17866         gl_HEADER_SYS_TIME_H.
17867         (gl_HEADER_SYS_TIME_H): New macro.
17868
17869         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17870         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17872         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
17873         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
17875         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
17876         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17877         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
17878         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
17879         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17880
17881         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
17882         last change; it caused a compilation error when cross-compiling to
17883         Cygwin.
17884
17885 2007-01-18  Jim Meyering  <jim@meyering.net>
17886
17887         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
17888         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
17889         than the race-prone "test -d sys || mkdir sys".
17890         (configure.ac): Use AC_PROG_MKDIR_P.
17891         * modules/sys_select: Likewise.
17892         * modules/sys_socket: Likewise.
17893         * modules/sys_time: Likewise.
17894
17895 2007-01-18  Eric Blake  <ebb9@byu.net>
17896
17897         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
17898         replace gettimeofday.
17899         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
17900         name, to avoid infinite recursion.
17901
17902 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
17903
17904         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
17905         module sys_time.
17906         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
17907         assume timespec.h defines struct timeval.
17908         * lib/settime.c: Likewise.
17909         * lib/utimens.c: Likewise.
17910         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
17911         since we now assume the gettimeofday module.
17912         * lib/tempname.c (__gen_tempname): Likewise.
17913         * lib/gettimeofday.h: Remove.
17914         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
17915         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
17916         Include <time.h>, for 'time()'.
17917         (localtime_buffer_addr): Also use this workaround if
17918         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
17919         to simplify the uses.  All uses changed.
17920         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
17921         that #undef is inside {}, and 'const' follows type name consistently.
17922         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
17923         (gettimeofday): Do not use the maximum possible value for
17924         tv->tv_usec, since that might break usages other than ls.c.
17925         Instead, we'll leave ls.c alone.  This undoes today's patch
17926         by Bruno.  Add a compile-time warning for 1s-clock resolution;
17927         we've never observed the problem but might as well keep the
17928         canary.
17929         * lib/nanosleep.c: Include timespec.h first, for interface check.
17930         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
17931         now assume the sys_time module.
17932         * lib/tempname.c: Likewise.
17933         * lib/timespec.h: Likewise.
17934         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
17935         needed.
17936         * lib/strftime.c: Likewise.
17937         * lib/timespec.h: Likewise.
17938         * lib/posixtm.c: Include posixtm.h first, for interface check.
17939         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
17940         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
17941         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
17942         * lib/sys_time_.h: New file.
17943         * lib/timespec.h (struct timespec): Use long int, not long.
17944         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17945         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
17946         Remove obsolescent call to AC_HEADER_TIME.
17947         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17949         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17950         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
17951         Likewise.
17952         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
17953         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
17954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
17955         into the sys_time module.  Check for gettimeofday just once.
17956         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
17957         for gettimeofday signature to just check the signature.  Merely
17958         compile it, since linking doesn't test signature.  Improve test for
17959         whether gettimeofday.o is actually needed.
17960         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
17961         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
17962         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
17963         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17964         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
17965         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
17966         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
17967         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
17968         than worrying about sys/time.h.
17969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17970         Don't bother worrying about TIME_WITH_SYS_TIME.
17971         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17972         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
17973         * m4/sys_time_h.m4: New file.
17974         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
17975         Don't include sys/time.h.  Return from main rather than exiting.
17976         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
17977         all uses changed.
17978         * modules/gethrxtime (Depends-on): Add sys_time.
17979         * modules/gettime (Depends-on): Likewise.
17980         * modules/gettimeofday (Depends-on): Likewise.
17981         * modules/nanosleep (Depends-on): Likewise.
17982         * modules/settime (Depends-on): Likewise.
17983         * modules/tempname (Depends-on): Likewise.
17984         * modules/utimens (Depends-on): Likewise.
17985         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
17986         (Include:) Change back to <sys/time.h>.
17987         (Maintainer:) Add self.
17988         * modules/sys_time: New file.
17989         * modules/tempname (Depends-on): Add gettimeofday.
17990         * tests/test-gettimeofday.c: Include <sys/time.h>
17991         rather than gettimeofday.h.
17992
17993 2007-01-17  Bruno Haible  <bruno@clisp.org>
17994
17995         * gnulib-tool (func_get_license): Revert last patch. Instead, let
17996         the license default to GPL.
17997         (func_create_testdir): Don't complain if a module is LGPL and its
17998         tests module depends on GPLed modules.
17999
18000 2007-01-17  Bruno Haible  <bruno@clisp.org>
18001
18002         * lib/gettimeofday.c (gettimeofday): Add code for the case
18003         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
18004         maximum possible value for tv->tv_usec, rather than the minimum one.
18005
18006 2005-10-08  Martin Lambers  <marlam@marlam.de>
18007 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18008 2007-01-16  Bruno Haible  <bruno@clisp.org>
18009
18010         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
18011         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
18012         gl_FUNC_GETTIMEOFDAY.
18013         (Include): Add gettimeofday.h.
18014         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
18015         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
18016         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
18017         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
18018         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
18019         * lib/gettimeofday.h: New file.
18020         * lib/gettimeofday.c: Include <sys/timeb.h>.
18021         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
18022         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
18023         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
18024         fall back on time().
18025
18026         * tests/test-gettimeofday.c: New file.
18027         * modules/gettimeofday-tests: New file.
18028
18029 2007-01-16  Eric Blake  <ebb9@byu.net>
18030
18031         * modules/fnmatch (Depends-on): Depend on wchar.
18032         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
18033         * m4/fnmatch.m4: Likewise.
18034         * modules/mbchar (Makefile.am): Assume <wchar.h>.
18035         * m4/mbchar.m4: Likewise.
18036         * modules/mbswidth (Depends-on): Depend on wchar.
18037         * lib/mbswidth.c: Assume <wchar.h>.
18038         * m4/mbswidth.m4: Likewise.
18039         * modules/quotearg (Depends-on): Depend on wchar.
18040         * lib/quotearg.c: Assume <wchar.h>.
18041         * m4/quotearg.m4: Likewise.
18042         * modules/regex (Depends-on): Depend on wchar.
18043         * lib/regex_internal.h: Assume <wchar.h>.
18044         * m4/regex.m4: Likewise.
18045         * modules/stdint (Depends-on): Depend on wchar.
18046         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
18047         * m4/stdint.m4: Likewise.
18048         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
18049         * modules/strftime (Depends-on): Depend on wchar.
18050         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
18051         * modules/strtol (Depends-on): Depend on wchar.
18052         * lib/strtol.c: Assume <wchar.h>.
18053         * modules/wcwidth (Depends-on): Depend on wchar.
18054         * lib/wcwidth.h: Assume <wchar.h>.
18055         * m4/wcwidth.m4: Likewise.
18056
18057 2007-01-16  Bruno Haible  <bruno@clisp.org>
18058
18059         * modules/csharpexec-script: New, created from...
18060         * modules/csharpexec: ... this.
18061
18062 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
18063
18064         * modules/javaexec-script: New, created from...
18065         * modules/javaexec: ... this.
18066
18067 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18068
18069         * modules/poll (Dependencies): Add sys_select.
18070
18071 2007-01-15  Jim Meyering  <jim@meyering.net>
18072
18073         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
18074         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
18075         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
18076         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
18077
18078 2007-01-15  Bruno Haible  <bruno@clisp.org>
18079
18080         * modules/striconveh: New file.
18081         * lib/striconveh.h: New file.
18082         * lib/striconveh.c: New file.
18083         * MODULES.html.sh (Internationalization functions): Add striconveh.
18084
18085         * modules/striconveh-tests: New file.
18086         * tests/test-striconveh.c: New file.
18087
18088 2007-01-15  Bruno Haible  <bruno@clisp.org>
18089
18090         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
18091         not from GNU libiconv or GNU libc.
18092
18093 2007-01-15  Bruno Haible  <bruno@clisp.org>
18094
18095         * doc/gnulib-intro.texi (Copyright): Explain the different license
18096         terms for module descriptions, autoconf macros, tests, documentation.
18097
18098 2007-01-14  Bruno Haible  <bruno@clisp.org>
18099
18100         * modules/striconv-tests: New file.
18101         * tests/test-striconv.c: New file.
18102
18103 2007-01-14  Bruno Haible  <bruno@clisp.org>
18104
18105         * modules/iconv-tests: New file.
18106         * tests/test-iconv.c: New file.
18107
18108 2007-01-14  Bruno Haible  <bruno@clisp.org>
18109
18110         * gnulib-tool (func_get_license): For test modules, use the license of
18111         the main module.
18112
18113 2007-01-14  Bruno Haible  <bruno@clisp.org>
18114
18115         * modules/iconv (Include): Clarify that <iconv.h> can only be included
18116         if iconv is found to exist.
18117
18118 2007-01-14  Bruno Haible  <bruno@clisp.org>
18119
18120         * modules/c-ctype-tests: New file.
18121         * tests/test-c-ctype.c: New file.
18122
18123 2007-01-14  Bruno Haible  <bruno@clisp.org>
18124
18125         * modules/binary-io-tests: New file.
18126         * tests/test-binary-io.sh: New file.
18127         * tests/test-binary-io.c: New file.
18128
18129 2007-01-14  Bruno Haible  <bruno@clisp.org>
18130
18131         * modules/array-oset-tests: New file.
18132         * tests/test-array_oset.c: New file.
18133
18134 2007-01-14  Bruno Haible  <bruno@clisp.org>
18135
18136         * modules/array-list-tests: New file.
18137         * tests/test-array_list.c: New file.
18138
18139 2007-01-14  Bruno Haible  <bruno@clisp.org>
18140
18141         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
18142         and make.
18143         Reported by Simon Josefsson in
18144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
18145
18146 2007-01-14  Bruno Haible  <bruno@clisp.org>
18147
18148         * modules/allocsa-tests: New file.
18149         * tests/test-allocsa.c: New file.
18150
18151 2007-01-14  Bruno Haible  <bruno@clisp.org>
18152
18153         * modules/fchdir (Depends-on): Add absolute-header.
18154         * modules/unistd (Depends-on): Likewise.
18155
18156 2006-12-30  Bruno Haible  <bruno@clisp.org>
18157
18158         * modules/fchdir: New file.
18159         * modules/unistd (Files): Add lib/unistd_.h.
18160         (Makefile.am): Generate unistd.h from unistd_.h.
18161         * lib/fchdir.c: New file.
18162         * lib/dirent_.h: New file.
18163         * lib/unistd_.h: New file.
18164         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
18165         * m4/fchdir.m4: New file.
18166         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
18167         (gl_HEADER_UNISTD): Invoke it.
18168         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
18169         function.
18170         * lib/backupfile.c (opendir, closedir): Undefine.
18171         * lib/chown.c (open, close): Undefine.
18172         * lib/clean-temp.c (open, close): Undefine.
18173         * lib/copy-file.c (open, close): Undefine.
18174         * lib/execute.c (open, close): Undefine.
18175         * lib/fsusage.c (open, close): Undefine.
18176         * lib/gc-gnulib.c (open, close): Undefine.
18177         * lib/getcwd.c (opendir, closedir): Undefine.
18178         * lib/glob.c (opendir, closedir): Undefine.
18179         * lib/javacomp.c (open, close): Undefine.
18180         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
18181         * lib/openat-proc.c (open, close): Undefine.
18182         * lib/pagealign_alloc.c (open, close): Undefine.
18183         * lib/pipe.c (open, close): Undefine.
18184         * lib/progreloc.c (open, close): Undefine.
18185         * lib/savedir.c (opendir, closedir): Undefine.
18186         * lib/utime.c (open, close): Undefine.
18187         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
18188
18189 2007-01-10  Bruno Haible  <bruno@clisp.org>
18190
18191         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
18192
18193 2007-01-12  Eric Blake  <ebb9@byu.net>
18194
18195         Provide a robust <wchar.h>.  Further simplifications are now
18196         possible in other modules, but not included here.
18197         * modules/wchar: New module.
18198         * m4/wchar.m4: New file.
18199         * lib/wchar_.h: Likewise.
18200         * modules/mbchar (Depends-on): Depend on wchar, as the first use
18201         of the new module.
18202         * MODULES.html.sh (Extended multibyte and wide character utilities):
18203         New section.
18204
18205 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
18206
18207         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
18208         to a reasonable default for memory allocation.
18209         (xreadlink): Don't allocate a huge buffer, to work around a buggy
18210         file system that reports garbage st_size values for symlinks.
18211         Problem reported by Liyang Hu.
18212
18213 2007-01-11  Simon Josefsson  <simon@josefsson.org>
18214
18215         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
18216         Emacs .#* auto-save files).
18217
18218 2007-01-11  Bruno Haible  <bruno@clisp.org>
18219
18220         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
18221         directory.
18222
18223 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18224
18225         Use @...@ consistently in lib/wctype_.h.
18226         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
18227         on it being set to 1 or 0.
18228         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
18229         go back to AC_SUBSTing it.
18230         * modules/wctype (Makefile.am): Undo previous change.
18231
18232 2007-01-10  Eric Blake  <ebb9@byu.net>
18233
18234         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
18235         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
18236         * modules/wctype (Makefile.am): Likewise.
18237         Reported by Chris McGuire.
18238
18239 2007-01-10  Jim Meyering  <jim@meyering.net>
18240
18241         fts.c: a small readability/maintainability improvement
18242         * lib/fts.c (fts_read): Make this code slightly more readable and
18243         maintainable by hoisting the "sp->fts_cur = p" assignments to
18244         immediately follow the statements that set P.  Derived from
18245         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
18246
18247 2007-01-10  Eric Blake  <ebb9@byu.net>
18248
18249         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
18250         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
18251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18252         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18253         Reported by Chris McGuire.
18254
18255 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18256
18257         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
18258         in sed script.
18259
18260 2007-01-09  Bruno Haible  <bruno@clisp.org>
18261
18262         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
18263         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
18264         variables.
18265         (func_module): Use them.
18266
18267 2007-01-09  Bruno Haible  <bruno@clisp.org>
18268
18269         * modules/unistr/base: New file.
18270         * lib/unistr.h: New file.
18271
18272         * modules/unistr/u8-to-u16: New file.
18273         * lib/unistr/u8-to-u16.c: New file.
18274
18275         * modules/unistr/u8-to-u32: New file.
18276         * lib/unistr/u8-to-u32.c: New file.
18277
18278         * modules/unistr/u16-to-u8: New file.
18279         * lib/unistr/u16-to-u8.c: New file.
18280
18281         * modules/unistr/u16-to-u32: New file.
18282         * lib/unistr/u16-to-u32.c: New file.
18283
18284         * modules/unistr/u32-to-u8: New file.
18285         * lib/unistr/u32-to-u8.c: New file.
18286
18287         * modules/unistr/u32-to-u16: New file.
18288         * lib/unistr/u32-to-u16.c: New file.
18289
18290         * modules/unistr/u8-check: New file.
18291         * modules/unistr/u16-check: New file.
18292         * modules/unistr/u32-check: New file.
18293         * lib/unistr/u8-check.c: New file.
18294         * lib/unistr/u16-check.c: New file.
18295         * lib/unistr/u32-check.c: New file.
18296
18297         * modules/unistr/u8-chr: New file.
18298         * modules/unistr/u16-chr: New file.
18299         * modules/unistr/u32-chr: New file.
18300         * lib/unistr/u8-chr.c: New file.
18301         * lib/unistr/u16-chr.c: New file.
18302         * lib/unistr/u32-chr.c: New file.
18303
18304         * modules/unistr/u8-cmp: New file.
18305         * modules/unistr/u16-cmp: New file.
18306         * modules/unistr/u32-cmp: New file.
18307         * lib/unistr/u8-cmp.c: New file.
18308         * lib/unistr/u16-cmp.c: New file.
18309         * lib/unistr/u32-cmp.c: New file.
18310
18311         * modules/unistr/u8-cpy: New file.
18312         * modules/unistr/u16-cpy: New file.
18313         * modules/unistr/u32-cpy: New file.
18314         * lib/unistr/u8-cpy.c: New file.
18315         * lib/unistr/u16-cpy.c: New file.
18316         * lib/unistr/u32-cpy.c: New file.
18317         * lib/unistr/u-cpy.h: New file.
18318
18319         * modules/unistr/u8-cpy-alloc: New file.
18320         * modules/unistr/u16-cpy-alloc: New file.
18321         * modules/unistr/u32-cpy-alloc: New file.
18322         * lib/unistr/u8-cpy-alloc.c: New file.
18323         * lib/unistr/u16-cpy-alloc.c: New file.
18324         * lib/unistr/u32-cpy-alloc.c: New file.
18325         * lib/unistr/u-cpy-alloc.h: New file.
18326
18327         * modules/unistr/u8-endswith: New file.
18328         * modules/unistr/u16-endswith: New file.
18329         * modules/unistr/u32-endswith: New file.
18330         * lib/unistr/u8-endswith.c: New file.
18331         * lib/unistr/u16-endswith.c: New file.
18332         * lib/unistr/u32-endswith.c: New file.
18333         * lib/unistr/u-endswith.h: New file.
18334
18335         * modules/unistr/u8-mblen: New file.
18336         * modules/unistr/u16-mblen: New file.
18337         * modules/unistr/u32-mblen: New file.
18338         * lib/unistr/u8-mblen.c: New file.
18339         * lib/unistr/u16-mblen.c: New file.
18340         * lib/unistr/u32-mblen.c: New file.
18341
18342         * modules/unistr/u8-mbtouc: New file.
18343         * modules/unistr/u16-mbtouc: New file.
18344         * modules/unistr/u32-mbtouc: New file.
18345         * lib/unistr/u8-mbtouc.c: New file.
18346         * lib/unistr/u16-mbtouc.c: New file.
18347         * lib/unistr/u32-mbtouc.c: New file.
18348
18349         * modules/unistr/u8-mbtouc-safe: New file.
18350         * modules/unistr/u16-mbtouc-safe: New file.
18351         * modules/unistr/u32-mbtouc-safe: New file.
18352         * lib/unistr/u8-mbtouc-safe.c: New file.
18353         * lib/unistr/u16-mbtouc-safe.c: New file.
18354         * lib/unistr/u32-mbtouc-safe.c: New file.
18355
18356         * modules/unistr/u8-move: New file.
18357         * modules/unistr/u16-move: New file.
18358         * modules/unistr/u32-move: New file.
18359         * lib/unistr/u8-move.c: New file.
18360         * lib/unistr/u16-move.c: New file.
18361         * lib/unistr/u32-move.c: New file.
18362         * lib/unistr/u-move.h: New file.
18363
18364         * modules/unistr/u8-next: New file.
18365         * modules/unistr/u16-next: New file.
18366         * modules/unistr/u32-next: New file.
18367         * lib/unistr/u8-next.c: New file.
18368         * lib/unistr/u16-next.c: New file.
18369         * lib/unistr/u32-next.c: New file.
18370
18371         * modules/unistr/u8-prev: New file.
18372         * modules/unistr/u16-prev: New file.
18373         * modules/unistr/u32-prev: New file.
18374         * lib/unistr/u8-prev.c: New file.
18375         * lib/unistr/u16-prev.c: New file.
18376         * lib/unistr/u32-prev.c: New file.
18377
18378         * modules/unistr/u8-set: New file.
18379         * modules/unistr/u16-set: New file.
18380         * modules/unistr/u32-set: New file.
18381         * lib/unistr/u8-set.c: New file.
18382         * lib/unistr/u16-set.c: New file.
18383         * lib/unistr/u32-set.c: New file.
18384         * lib/unistr/u-set.h: New file.
18385
18386         * modules/unistr/u8-startswith: New file.
18387         * modules/unistr/u16-startswith: New file.
18388         * modules/unistr/u32-startswith: New file.
18389         * lib/unistr/u8-startswith.c: New file.
18390         * lib/unistr/u16-startswith.c: New file.
18391         * lib/unistr/u32-startswith.c: New file.
18392         * lib/unistr/u-startswith.h: New file.
18393
18394         * modules/unistr/u8-stpcpy: New file.
18395         * modules/unistr/u16-stpcpy: New file.
18396         * modules/unistr/u32-stpcpy: New file.
18397         * lib/unistr/u8-stpcpy.c: New file.
18398         * lib/unistr/u16-stpcpy.c: New file.
18399         * lib/unistr/u32-stpcpy.c: New file.
18400         * lib/unistr/u-stpcpy.h: New file.
18401
18402         * modules/unistr/u8-stpncpy: New file.
18403         * modules/unistr/u16-stpncpy: New file.
18404         * modules/unistr/u32-stpncpy: New file.
18405         * lib/unistr/u8-stpncpy.c: New file.
18406         * lib/unistr/u16-stpncpy.c: New file.
18407         * lib/unistr/u32-stpncpy.c: New file.
18408         * lib/unistr/u-stpncpy.h: New file.
18409
18410         * modules/unistr/u8-strcat: New file.
18411         * modules/unistr/u16-strcat: New file.
18412         * modules/unistr/u32-strcat: New file.
18413         * lib/unistr/u8-strcat.c: New file.
18414         * lib/unistr/u16-strcat.c: New file.
18415         * lib/unistr/u32-strcat.c: New file.
18416         * lib/unistr/u-strcat.h: New file.
18417
18418         * modules/unistr/u8-strchr: New file.
18419         * modules/unistr/u16-strchr: New file.
18420         * modules/unistr/u32-strchr: New file.
18421         * lib/unistr/u8-strchr.c: New file.
18422         * lib/unistr/u16-strchr.c: New file.
18423         * lib/unistr/u32-strchr.c: New file.
18424
18425         * modules/unistr/u8-strcmp: New file.
18426         * modules/unistr/u16-strcmp: New file.
18427         * modules/unistr/u32-strcmp: New file.
18428         * lib/unistr/u8-strcmp.c: New file.
18429         * lib/unistr/u16-strcmp.c: New file.
18430         * lib/unistr/u32-strcmp.c: New file.
18431
18432         * modules/unistr/u8-strcpy: New file.
18433         * modules/unistr/u16-strcpy: New file.
18434         * modules/unistr/u32-strcpy: New file.
18435         * lib/unistr/u8-strcpy.c: New file.
18436         * lib/unistr/u16-strcpy.c: New file.
18437         * lib/unistr/u32-strcpy.c: New file.
18438         * lib/unistr/u-strcpy.h: New file.
18439
18440         * modules/unistr/u8-strcspn: New file.
18441         * modules/unistr/u16-strcspn: New file.
18442         * modules/unistr/u32-strcspn: New file.
18443         * lib/unistr/u8-strcspn.c: New file.
18444         * lib/unistr/u16-strcspn.c: New file.
18445         * lib/unistr/u32-strcspn.c: New file.
18446         * lib/unistr/u-strcspn.h: New file.
18447
18448         * modules/unistr/u8-strdup: New file.
18449         * modules/unistr/u16-strdup: New file.
18450         * modules/unistr/u32-strdup: New file.
18451         * lib/unistr/u8-strdup.c: New file.
18452         * lib/unistr/u16-strdup.c: New file.
18453         * lib/unistr/u32-strdup.c: New file.
18454         * lib/unistr/u-strdup.h: New file.
18455
18456         * modules/unistr/u8-strlen: New file.
18457         * modules/unistr/u16-strlen: New file.
18458         * modules/unistr/u32-strlen: New file.
18459         * lib/unistr/u8-strlen.c: New file.
18460         * lib/unistr/u16-strlen.c: New file.
18461         * lib/unistr/u32-strlen.c: New file.
18462         * lib/unistr/u-strlen.h: New file.
18463
18464         * modules/unistr/u8-strmblen: New file.
18465         * modules/unistr/u16-strmblen: New file.
18466         * modules/unistr/u32-strmblen: New file.
18467         * lib/unistr/u8-strmblen.c: New file.
18468         * lib/unistr/u16-strmblen.c: New file.
18469         * lib/unistr/u32-strmblen.c: New file.
18470
18471         * modules/unistr/u8-strmbtouc: New file.
18472         * modules/unistr/u16-strmbtouc: New file.
18473         * modules/unistr/u32-strmbtouc: New file.
18474         * lib/unistr/u8-strmbtouc.c: New file.
18475         * lib/unistr/u16-strmbtouc.c: New file.
18476         * lib/unistr/u32-strmbtouc.c: New file.
18477
18478         * modules/unistr/u8-strncat: New file.
18479         * modules/unistr/u16-strncat: New file.
18480         * modules/unistr/u32-strncat: New file.
18481         * lib/unistr/u8-strncat.c: New file.
18482         * lib/unistr/u16-strncat.c: New file.
18483         * lib/unistr/u32-strncat.c: New file.
18484         * lib/unistr/u-strncat.h: New file.
18485
18486         * modules/unistr/u8-strncmp: New file.
18487         * modules/unistr/u16-strncmp: New file.
18488         * modules/unistr/u32-strncmp: New file.
18489         * lib/unistr/u8-strncmp.c: New file.
18490         * lib/unistr/u16-strncmp.c: New file.
18491         * lib/unistr/u32-strncmp.c: New file.
18492
18493         * modules/unistr/u8-strncpy: New file.
18494         * modules/unistr/u16-strncpy: New file.
18495         * modules/unistr/u32-strncpy: New file.
18496         * lib/unistr/u8-strncpy.c: New file.
18497         * lib/unistr/u16-strncpy.c: New file.
18498         * lib/unistr/u32-strncpy.c: New file.
18499         * lib/unistr/u-strncpy.h: New file.
18500
18501         * modules/unistr/u8-strnlen: New file.
18502         * modules/unistr/u16-strnlen: New file.
18503         * modules/unistr/u32-strnlen: New file.
18504         * lib/unistr/u8-strnlen.c: New file.
18505         * lib/unistr/u16-strnlen.c: New file.
18506         * lib/unistr/u32-strnlen.c: New file.
18507         * lib/unistr/u-strnlen.h: New file.
18508
18509         * modules/unistr/u8-strpbrk: New file.
18510         * modules/unistr/u16-strpbrk: New file.
18511         * modules/unistr/u32-strpbrk: New file.
18512         * lib/unistr/u8-strpbrk.c: New file.
18513         * lib/unistr/u16-strpbrk.c: New file.
18514         * lib/unistr/u32-strpbrk.c: New file.
18515         * lib/unistr/u-strpbrk.h: New file.
18516
18517         * modules/unistr/u8-strrchr: New file.
18518         * modules/unistr/u16-strrchr: New file.
18519         * modules/unistr/u32-strrchr: New file.
18520         * lib/unistr/u8-strrchr.c: New file.
18521         * lib/unistr/u16-strrchr.c: New file.
18522         * lib/unistr/u32-strrchr.c: New file.
18523
18524         * modules/unistr/u8-strspn: New file.
18525         * modules/unistr/u16-strspn: New file.
18526         * modules/unistr/u32-strspn: New file.
18527         * lib/unistr/u8-strspn.c: New file.
18528         * lib/unistr/u16-strspn.c: New file.
18529         * lib/unistr/u32-strspn.c: New file.
18530         * lib/unistr/u-strspn.h: New file.
18531
18532         * modules/unistr/u8-strstr: New file.
18533         * modules/unistr/u16-strstr: New file.
18534         * modules/unistr/u32-strstr: New file.
18535         * lib/unistr/u8-strstr.c: New file.
18536         * lib/unistr/u16-strstr.c: New file.
18537         * lib/unistr/u32-strstr.c: New file.
18538         * lib/unistr/u-strstr.h: New file.
18539
18540         * modules/unistr/u8-strtok: New file.
18541         * modules/unistr/u16-strtok: New file.
18542         * modules/unistr/u32-strtok: New file.
18543         * lib/unistr/u8-strtok.c: New file.
18544         * lib/unistr/u16-strtok.c: New file.
18545         * lib/unistr/u32-strtok.c: New file.
18546         * lib/unistr/u-strtok.h: New file.
18547
18548         * modules/unistr/u8-uctomb: New file.
18549         * modules/unistr/u16-uctomb: New file.
18550         * modules/unistr/u32-uctomb: New file.
18551         * lib/unistr/u8-uctomb.c: New file.
18552         * lib/unistr/u16-uctomb.c: New file.
18553         * lib/unistr/u32-uctomb.c: New file.
18554
18555         * MODULES.html.sh (Unicode string functions): Add the new modules.
18556
18557 2007-01-08  Bruno Haible  <bruno@clisp.org>
18558
18559         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
18560         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
18561         subdirectories.
18562
18563 2007-01-08  Karl Berry  <karl@gnu.org>
18564
18565         * doc/error.texi: mention that main() fns must set program_name
18566         when progname is used.
18567
18568 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
18569
18570         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
18571         WCTYPE_H is empty, for the benefit of builds from non-distclean
18572         directories.  Problem reported by Eric Blake in
18573         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
18574
18575 2007-01-08  Bruno Haible  <bruno@clisp.org>
18576
18577         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
18578         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
18579         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18580         PROVIDE_CANONICALIZE_FILENAME_MODE.
18581         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
18582
18583 2007-01-08  Bruno Haible  <bruno@clisp.org>
18584
18585         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
18586         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
18587         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
18588         * lib/fts.c: Likewise.
18589         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
18590
18591 2006-12-25  Bruno Haible  <bruno@clisp.org>
18592
18593         * modules/utf8-ucs4-safe: New file.
18594         * lib/utf8-ucs4-safe.h: New file.
18595         * lib/unistr/utf8-ucs4-safe.c: New file.
18596
18597         * modules/utf16-ucs4-safe: New file.
18598         * lib/utf16-ucs4-safe.h: New file.
18599         * lib/unistr/utf16-ucs4-safe.c: New file.
18600
18601         * MODULES.html.sh (Unicode string functions): Add the new modules.
18602
18603 2007-01-08  Bruno Haible  <bruno@clisp.org>
18604
18605         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
18606         (Depends-on): Add unitypes.
18607         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18608         (u8_mbtouc_aux): Move out to separate file.
18609         (u8_mbtouc): Use ucs4_t, uint8_t types.
18610         * lib/unistr/utf8-ucs4.c: New file.
18611
18612         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
18613         (Depends-on): Add unitypes.
18614         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18615         (u16_mbtouc_aux): Move out to separate file.
18616         (u16_mbtouc): Use ucs4_t, uint16_t types.
18617         * lib/unistr/utf16-ucs4.c: New file.
18618
18619         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
18620         (Depends-on): Add unitypes.
18621         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
18622         (u8_uctomb_aux): Move out to separate file.
18623         (u8_uctomb): Use ucs4_t, uint8_t types.
18624         * lib/unistr/ucs4-utf8.c: New file.
18625
18626         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
18627         (Depends-on): Add unitypes.
18628         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
18629         (u16_uctomb_aux): Move out to separate file.
18630         (u16_uctomb): Use ucs4_t, uint16_t types.
18631         * lib/unistr/ucs4-utf16.c: New file.
18632
18633 2006-12-25  Bruno Haible  <bruno@clisp.org>
18634
18635         * modules/unitypes: New file.
18636         * lib/unitypes.h: New file.
18637         * MODULES.html.sh (func_all_modules): New section "Unicode string
18638         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
18639         this section. Add unitypes.
18640
18641 2007-01-08  Bruno Haible  <bruno@clisp.org>
18642
18643         Avoid variable names that conflict with those from libtool.
18644         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
18645         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
18646         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
18647         library_names_spec to acl_library_names_spec, hardcode_* to
18648         acl_hardcode_*.
18649         Reported by Ralf Wildenhues.
18650
18651 2007-01-08  Bruno Haible  <bruno@clisp.org>
18652
18653         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
18654         definition.
18655         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
18656         definition.
18657         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
18658         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
18659         definition.
18660         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
18661         definition.
18662         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
18663         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
18664         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
18665         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
18666         definition.
18667         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
18668         definition.
18669         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
18670         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
18671         GC_USE_<algorithm>.
18672         * lib/gc-libgcrypt.c: Likewise.
18673         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
18674         * modules/gc-arctwo (configure.ac): Likewise.
18675         * modules/gc-des (configure.ac): Likewise.
18676         * modules/gc-hmac-md5 (configure.ac): Likewise.
18677         * modules/gc-hmac-sha1 (configure.ac): Likewise.
18678         * modules/gc-md2 (configure.ac): Likewise.
18679         * modules/gc-md4 (configure.ac): Likewise.
18680         * modules/gc-md5 (configure.ac): Likewise.
18681         * modules/gc-random (configure.ac): Likewise.
18682         * modules/gc-rijndael (configure.ac): Likewise.
18683         * modules/gc-sha1 (configure.ac): Likewise.
18684
18685 2007-01-08  Bruno Haible  <bruno@clisp.org>
18686
18687         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
18688         macro definition.
18689         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
18690         definition.
18691         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
18692         definition.
18693         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
18694         * modules/fcntl-safer (configure.ac): Likewise.
18695         * modules/fopen-safer (configure.ac): Likewise.
18696         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
18697         GNULIB_FWRITEERROR macro definition.
18698
18699 2007-01-08  Bruno Haible  <bruno@clisp.org>
18700
18701         * m4/gnulib-common.m4: New file.
18702         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
18703         (func_get_filelist): Add m4/gnulib-common.m4.
18704
18705 2007-01-08  Bruno Haible  <bruno@clisp.org>
18706
18707         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
18708         command.
18709
18710 2007-01-08  Jim Meyering  <jim@meyering.net>
18711
18712         Use a more robust test for a "can't happen" condition.
18713         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
18714         narrowed the st_size value.  Presuming the "can't happen" condition
18715         is true, that narrowing could conceivably convert an invalid st_size
18716         value into a valid one.  Instead, use a change based on Matthew
18717         Woehlke's original patch.
18718
18719         Slight readability improvement: use an assert-like macro
18720         in place of literal "abort ()" uses.
18721         * lib/fts.c (fts_assert): Define.
18722         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
18723         Use this macro instead of a bare 'abort'.
18724
18725 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18726
18727         Don't worry about using IRIX 5.3's wctype.h broken definitions;
18728         simply work around them.
18729         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
18730         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
18731         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
18732         declaring.
18733         Don't bother to define as macros, since the standard doesn't require it.
18734         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18735         longer worry about IRIX 5.3.
18736         (HAVE_WCTYPE_CTMP_BUG): Remove.
18737
18738 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18739
18740         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
18741         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
18742         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18743         Problems reported by Georg Schwarz for IRIX 5.3.
18744
18745         * gnulib-tool (autoconf_minversion): Take the maximum version number
18746         found, not the minimum.  Problem reported by James Youngman.
18747
18748 2007-01-03  Karl Berry  <karl@gnu.org>
18749
18750         * doc/error.texi: new file, explaining interaction with progname.
18751         * doc/gnulib.texi: include it.  Update copyright.
18752
18753 2007-01-03  Simon Josefsson  <simon@josefsson.org>
18754
18755         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
18756         AC_CANONICAL_HOST, to improve autobuild outputs.
18757
18758 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
18759             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18760
18761         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
18762         sockets, server sockets, and other file descriptors.  Count errors
18763         to compute the return value.  Reorder the code a bit to be easier
18764         to follow.  Don't set event bits that were not requested (except
18765         POLLERR and POLLHUP).
18766
18767 2007-01-01  Bruno Haible  <bruno@clisp.org>
18768
18769         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
18770
18771 2007-01-03  Jim Meyering  <jim@meyering.net>
18772
18773         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
18774
18775 2007-01-02  Bruno Haible  <bruno@clisp.org>
18776
18777         * modules/settime (Include): Require timespec.h.
18778         * modules/nanosleep (Include): Likewise.
18779
18780 2007-01-01  Bruno Haible  <bruno@clisp.org>
18781
18782         * gnulib-tool (func_emit_copyright_notice): Bump year.
18783         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
18784
18785 2007-01-01  Bruno Haible  <bruno@clisp.org>
18786
18787         Improve support for OpenBSD.
18788         * build-aux/config.rpath (libname_spec): Export.
18789         (library_names_spec): New variable. Export.
18790         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
18791         library_names_spec from the config.rpath output. Locate shared library
18792         through the name pattern in library_names_spec.
18793
18794 2007-01-01  Eric Blake  <ebb9@byu.net>
18795
18796         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
18797
18798 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18799
18800         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
18801         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
18802         assume the C locale, and avoid an "eval" that could cause trouble.
18803         Problem with SORT reported by Bob Proulx.
18804
18805         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
18806         Define.  Trivial patch from Henning Nielsen Lund, originally
18807         sent to bug-grep@gnu.org today.
18808
18809 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18810
18811         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
18812         struct stat.  Problem reported by Henning Nielsen Lund.
18813         * lib/acl.c: Include acl.h first, to check interface.  Don't
18814         bother to include sys/types.h and sys/stat.h again.
18815
18816 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18817
18818         Import the following change from libc; problem reported by
18819         Sven Verdoolaege.
18820
18821         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
18822
18823         [BZ #1373]
18824         * lib/argp.h: Remove __NTH for __argp_usage inline function.
18825
18826 2006-12-28  Jim Meyering  <jim@meyering.net>
18827
18828         * build-aux/announce-gen: Do not assume that the package
18829         builds any of tar.gz, tar.bz2, and .xdelta files.
18830         Suggestion from Simon Josefsson.
18831
18832 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18833
18834         * modules/announce-gen: New file.
18835
18836 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18837
18838         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18839         handles its gotchas now.
18840         * lib/mbswidth.c: Likewise.
18841         * lib/wcwidth.h: Likewise.
18842         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18843         and iswcntrl; the wctype module does this stuff now.
18844         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18846         * modules/mbchar (Depends-on): Add wctype.
18847         * modules/mbswidth (Depends-on): Likewise.
18848         * modules/wcwidth (Depends-on): Likewise.
18849
18850 2006-12-27  Eric Blake  <ebb9@byu.net>
18851
18852         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
18853         module uses more than what <wctype.h> is required to provide.
18854
18855 2006-12-26  Eric Blake  <ebb9@byu.net>
18856
18857         * gnulib-tool (sed_extract_prog): Avoid space-tab.
18858
18859 2006-12-26  Eric Blake  <ebb9@byu.net>
18860
18861         * modules/absolute-header: New module.
18862         * modules/fcntl (Depends-on): Depend on it.
18863         * modules/inttypes (Depends-on): Likewise.
18864         * modules/stdint (Depends-on): Likewise.
18865         * modules/sys_stat (Depends-on): Likewise.
18866         * modules/wctype (Depends-on): Likewise.
18867         * MODULES.html.sh (Support for building libraries and
18868         executables): Document it.
18869
18870 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18871
18872         * gnulib-tool (SED): Remove, undoing previous change.
18873         The problem was that it broke coreutils on Solaris, because
18874         "sed --posix" leaked into a makefile.
18875         (sed): New alias, if 'alias' and GNU sed.
18876
18877 2006-12-24  Jim Meyering  <jim@meyering.net>
18878
18879         Work around an fchownat bug in glibc-2.4:
18880         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
18881         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
18882         in spite of the -P option.
18883         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
18884         New macros.
18885         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
18886         * modules/openat (Files): Add lib/fchownat.c.
18887         * lib/openat.c (fchownat): Don't define here.  Move to...
18888         * lib/fchownat.c: ...this new file.
18889
18890 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18891
18892         Fix bug reported by Bruno Haible in
18893         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
18894         where quotearg.c didn't compile on Mac OS X 10.2 because it
18895         lacks <wchar.h> and wint_t.
18896         * lib/wctype_.h (__wctype_wint_t): New type.
18897         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
18898         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
18899         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
18900         Arg is now of type __wctype_wint_t, not wint_t.
18901         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
18902         substitute HAVE_WINT_T.
18903         * modules/wctype (Files): Add m4/wint_t.m4.
18904         (wctype.h): Substitute HAVE_WINT_T.
18905
18906 2006-12-23  Bruno Haible  <bruno@clisp.org>
18907
18908         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
18909
18910 2006-12-23  Bruno Haible  <bruno@clisp.org>
18911
18912         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
18913         S_ISLNK.
18914         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
18915         mingw.
18916
18917 2006-12-22  Bruno Haible  <bruno@clisp.org>
18918
18919         * lib/copy-file.c: Include acl.h.
18920         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
18921         Close the file descriptors only after being done with copy_acl.
18922         * modules/copy-file (Depends-on): Add acl.
18923
18924 2006-12-22  Bruno Haible  <bruno@clisp.org>
18925
18926         * gnulib-tool (SED): New variable.
18927         Use $SED instead of sed everywhere.
18928
18929 2006-12-22  Bruno Haible  <bruno@clisp.org>
18930
18931         * modules/no-c++: New file.
18932         * m4/no-c++.m4: New file.
18933         * MODULES.html.sh (Support for building libraries and executables):
18934         Add no-c++.
18935
18936 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18937
18938         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18939         Include <limits.h>, and use its INT_MAX to rewrite the
18940         j loop so that it does not overflow 'int'.  Problem reported by
18941         Ralf Wildenhues in
18942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
18943         Play it safe by shifting left by 1 rather than multiplying by 2,
18944         as GCC is less likely to optimize this away when the value
18945         is signed (when it assumes overflow leads to undefined behavior).
18946         Also, don't assume time_t uses two's complement.
18947
18948 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18949
18950         * MODULES.html.sh: New module wctype.
18951         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
18952         * lib/fnmatch.c: Don't bother to include <wchar.h> before
18953         <wctype.h>, since the new wctype module should fix this.
18954         * lib/quotearg.c: Include <wctype.h> unconditionally, since
18955         the wctype module should arrange for it.
18956         * lib/regex_internal.h: Likewise.
18957         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
18958         since the wctype module should handle this now.
18959         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
18960         * modules/fnmatch (Depends-on): Add wctype.
18961         * modules/quotearg (Depends-on): Likewise.
18962         * modules/regex (Depends-on): Likewise.
18963
18964 2006-12-19  Bruno Haible  <bruno@clisp.org>
18965
18966         * lib/strdup.h [C++]: Wrap definitions in extern "C".
18967         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
18968
18969 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18970
18971         * modules/savewd (Depends-on): Fix dependency on fcntl.
18972
18973 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18974
18975         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
18976         conforms to C99, rather than relying on the user's environment
18977         setting of STDINT_H.
18978
18979 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18980         and Eric Blake  <ebb9@byu.net>
18981
18982         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
18983         This is more consistent with the other defines here.
18984         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
18985         Port to z/OS.  Problem reported by Paul Gilmartin.
18986         Change local vars to use gl_ prefix rather than ac_.
18987         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
18988         with other defines.
18989         * modules/double-slash-root: New module.
18990         * modules/dirname (Files): Remove m4/double-slash-root.m4.
18991         (Depends-on): Add double-slash-root.
18992         * MODULES.html.sh (File system functions): Mention new module.
18993
18994 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18995
18996         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
18997         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
18998         This is for the benefit of gzip, which doesn't do i18n.
18999
19000 2006-12-12  Jim Meyering  <jim@meyering.net>
19001
19002         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
19003         Reported by Andreas Schwab <schwab@suse.de>.
19004
19005 2006-12-12  Bruno Haible  <bruno@clisp.org>
19006
19007         Merge these changes.
19008         2006-09-05  Bruno Haible  <bruno@clisp.org>
19009         * lib/iconvme.c (iconv_string): No need to save and restore errno when
19010         iconv_alloc succeeded.
19011         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
19012         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
19013         test for " && dest " at the end - dest is always != NULL there. Call
19014         iconv with 4xNULL arguments initially, to reset the state. Call iconv
19015         with 2xNULL arguments, also to flush the state storage. Handle the
19016         IRIX iconv behaviour. Realloc the final result, to throw away unused
19017         memory.
19018
19019 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
19020
19021         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
19022         and fchmodat unconditionally, since glibc 2.4 has them.
19023         Problem reported by Arkadiusz Miskiewicz.
19024
19025 2006-12-10  Bruno Haible  <bruno@clisp.org>
19026
19027         * gnulib-tool (func_import): Show the include files only for those
19028         modules that are copied and specified.
19029         Reported by Karl Berry.
19030
19031 2006-12-08  Jim Meyering  <jim@meyering.net>
19032
19033         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
19034         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
19035
19036         * build-aux/announce-gen: Add two new options, both optional:
19037         --bootstrap-tools=TOOL_LIST
19038               a comma-separated list of tools, e.g.,
19039               autoconf,automake,bison,gnulib
19040         --gnulib-snapshot-date=DATE
19041               if gnulib is in the bootstrap tool list,
19042               then report this as the snapshot date.
19043               If not specified, use the current date/time.
19044               If you specify a date here, be sure it's UTC.
19045
19046 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19047
19048         * tests/test-argp-2.sh: Fix test to match actual output.
19049         (func_compare): Fix sed script to be portable.
19050
19051 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
19052
19053         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
19054         workaround for this case.  It is not autoconfigured now; offhand
19055         it's hard to see how to autoconfigure it.
19056
19057 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
19058
19059         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
19060         a directory that is about to be chowned.  Such a directory's
19061         initial file permissions should permit the owner only and this
19062         should not be changed until after the chown, since the group and
19063         other bits would be incorrect if they granted permission before
19064         the chown.
19065
19066         Fix porting problem for iswctype reported by Georg Schwarz in:
19067         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
19068         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
19069         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
19070         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
19071         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19072
19073 2006-12-03  Jim Meyering  <jim@meyering.net>
19074
19075         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
19076         p->fts_statp may not yet be defined.
19077         (fts_read): Instead, set it in the caller, once p->fts_statp is
19078         sure to be defined, and corresponds to a top-level directory.
19079         This bug made du -x fail.  Here's the coreutils test case:
19080         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
19081         Reported by Mike Frysinger.
19082
19083 2006-12-01  Jim Meyering  <jim@meyering.net>
19084
19085         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
19086         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
19087         Reported by Simon Josefsson.
19088
19089 2006-11-30  Jim Meyering  <jim@meyering.net>
19090
19091         * m4/warning.m4: Use the all-permissive copyright notice
19092         recommended by RMS (rather than LGPL).
19093         * m4/vararrays.m4: Likewise.
19094         * m4/flexmember.m4: Likewise.
19095
19096 2006-11-29  Bruno Haible  <bruno@clisp.org>
19097
19098         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19099         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
19100         using +=.
19101         Reported by Simon Josefsson <simon@josefsson.org>.
19102
19103 2006-11-28  James Youngman <jay@gnu.org>
19104
19105         * README: Advise users that they might find the bug-gnulib@gnu.org
19106         and autotools-announce@gnu.org mailing lists useful.
19107
19108 2006-11-28  Bruno Haible  <bruno@clisp.org>
19109
19110         * m4/ptrdiff_max.m4: Remove file.
19111
19112 2006-11-21  Bruno Haible  <bruno@clisp.org>
19113
19114         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
19115         _AC_COMPUTE_INT.
19116         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19117         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
19118         _AC_COMPUTE_INT.
19119         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19120         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
19121         _AC_COMPUTE_INT.
19122         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19123
19124 2006-11-28  Jim Meyering  <jim@meyering.net>
19125
19126         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
19127         warning from "gcc -Wshadow" about shadowing the builtin.
19128
19129 2006-11-27  Bruno Haible  <bruno@clisp.org>
19130
19131         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
19132         _AC_COMPUTE_INT.
19133         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
19134
19135 2006-11-27  Bruno Haible  <bruno@clisp.org>
19136             Paul Eggert  <eggert@cs.ucla.edu>
19137
19138         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
19139
19140 2006-11-26  Bruno Haible  <bruno@clisp.org>
19141
19142         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19143         noinst_LTLIBRARIES.
19144
19145 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
19146             Bruno Haible  <bruno@clisp.org>
19147
19148         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
19149         if compiling with "gcc -ansi".
19150
19151 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
19152
19153         Fix some incompatibilities with gcc -ansi -pedantic.
19154         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
19155         if compiling pedantically with GCC, unless it's C99 or later.
19156         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
19157         it mishandles gcc -ansi -pedantic as well.
19158         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
19159         if gcc -pedantic.
19160         * lib/regexec.c (check_node_accept_bytes): Don't use auto
19161         initializers for struct if -pedantic, unless it's C99 or later.
19162
19163 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
19164
19165         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
19166         Don't close an fd more than once. Identical atimes indicate
19167         success, not failure.
19168
19169 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
19170
19171         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
19172
19173 2006-11-23  Jim Meyering  <jim@meyering.net>
19174
19175         * build-aux/announce-gen: New file.  From coreutils.
19176
19177 2006-11-22  Jim Meyering  <jim@meyering.net>
19178
19179         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
19180         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
19181         (fts_read): Use a temporary to narrow the overused st_size member
19182         before using it in a switch statement.  Reported by Matthew Woehlke.
19183
19184         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
19185         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19186
19187 2006-11-20  Bruno Haible  <bruno@clisp.org>
19188
19189         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
19190         changequote instead of pairs of brackets.
19191         Reported by Andreas Schwab <schwab@suse.de>.
19192
19193 2006-11-21  Jim Meyering  <jim@meyering.net>
19194
19195         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
19196         so as to remain compatible with older compilers.
19197         Patch from Michael Deutschmann.
19198
19199 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19200
19201         * MODULES.html.sh (File system functions): Add openat.
19202
19203         * lib/openat.h (rpl_fstatat): New macro, if
19204         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
19205         (fstatat): Define to rpl_fstatat under the same conditions,
19206         unless COMPILING_FSTATAT.
19207         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
19208         seems to have the bug.
19209         * lib/fstatat.c: New file.
19210         * modules/openat (Files): Add it.
19211
19212 2006-11-20  Bruno Haible  <bruno@clisp.org>
19213
19214         * Makefile: New file.
19215
19216 2006-11-20  Jim Meyering  <jim@meyering.net>
19217
19218         The beginnings of syntax-related checks for gnulib.
19219         * lib/Makefile: New file.
19220         * lib/t-idcache: New script.  Ensure that the two halves of
19221         idcache.c stay in sync.
19222
19223         * lib/idcache.c: Adjust comments in user- and group- portions to
19224         be more accurate, and to be consistent with one another.
19225
19226 2006-11-20  Jim Meyering  <jim@meyering.net>
19227
19228         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
19229         continue using the flexible array member (thus, this module performs
19230         half as many malloc calls), with the addition that...
19231         (getgroup, getuser): Consistently record a non-match via an empty
19232         "name" string, and map an empty string match to a NULL return value.
19233         * modules/idcache (Depends-on): Re-add flexmember.
19234
19235         * lib/idcache.c (getuser): Remove all uses of the register keyword.
19236         (getuidbyname, getgroup, getgidbyname): Likewise.
19237
19238         Use cleaner syntax: NULL rather than 0.
19239         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
19240
19241 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19242
19243         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
19244         It mishandled the case where the group was missing.
19245         Problem reported by Greg Schafer.
19246         * modules/idcache: Likewise.
19247
19248 2006-11-18  Jim Meyering  <jim@meyering.net>
19249
19250         * check-module (%exempt_header): Add exception for some
19251         conditionally-included headers.
19252
19253         * modules/i-ring (Depends-on): Add verify.
19254         (License): Change to LGPL.
19255
19256 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19257
19258         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
19259         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
19260         and inttostr.h.  Use snprintf rather than uinttostr, so that
19261         LGPLed code doesn't depend on GPLed.
19262
19263 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19264
19265         * modules/inline (License): Change from GPL to LGPL.
19266
19267 2006-11-17  Jim Meyering  <jim@meyering.net>
19268
19269         * modules/d-type (License): Switch to LGPL.
19270
19271 2006-11-15  Bruno Haible  <bruno@clisp.org>
19272
19273         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
19274
19275 2006-11-15  Eric Blake  <ebb9@byu.net>
19276
19277         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
19278         the module dependency.
19279
19280 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19281             Bruno Haible  <bruno@clisp.org>
19282
19283         * gnulib-tool (func_create_testdir): Add license consistency check.
19284
19285 2006-11-15  Eric Blake  <ebb9@byu.net>
19286
19287         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
19288         random "(cached)" in configure output.
19289
19290 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19291
19292         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
19293         test for conforming inttypes.h is both announced and cached.
19294
19295         * MODULES.html.sh (seen_modules, seen_files): New variables.
19296         (func_module): Rewrite to use a few less gnulib-tool and sed
19297         invocations.  Avoid a couple of quadratic algorithms for ...
19298         (missed_modules, missed_files): ... these, with ...
19299         (func_append, func_tmpdir): ... these new functions, from
19300         gnulib-tool.  Analogously, install traps for cleanup.
19301
19302         * tests/test-gc.c (main): Remove unused variables.
19303         * tests/test-read-file.c: Include stdlib.h, for 'free'.
19304
19305 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
19306
19307         * modules/inttostr (License): Change to LGPL.
19308
19309 2006-11-14  Eric Blake  <ebb9@byu.net>
19310
19311         * modules/tempname (License): Change to LGPL.
19312
19313 2006-11-14  Eric Blake  <ebb9@byu.net>
19314
19315         * doc/functions.texi (Function Portability): *printf functions on
19316         Cygwin now understand all POSIX size specifiers.
19317
19318 2006-11-14  Bruno Haible  <bruno@clisp.org>
19319
19320         * modules/c-ctype (License): Change to LGPL.
19321
19322 2006-11-12  Bruno Haible  <bruno@clisp.org>
19323
19324         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19325         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
19326         for GNOME libraries, for which the include files are installed in
19327         subdirectories of $prefix/include.
19328
19329 2006-11-12  Bruno Haible  <bruno@clisp.org>
19330
19331         * m4/lib-link.m4: Require at least autoconf-2.54.
19332         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
19333         name to underscores for the --with option.
19334
19335 2006-11-13  Bruno Haible  <bruno@clisp.org>
19336
19337         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
19338         the tests directory.
19339         Reported by Ralf Wildenhues.
19340
19341 2006-11-13  Bruno Haible  <bruno@clisp.org>
19342
19343         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
19344         (func_emit_initmacro_end): Undo the override here.
19345         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
19346         Works around the famous automake error in coreutils.
19347
19348 2006-11-13  Eric Blake  <ebb9@byu.net>
19349
19350         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
19351         element, not its node.
19352
19353 2006-11-12  Bruno Haible  <bruno@clisp.org>
19354
19355         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
19356         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
19357
19358 2006-11-12  Bruno Haible  <bruno@clisp.org>
19359
19360         * gnulib-tool: New option --local-symlink.
19361         (func_usage): Document it.
19362         (lsymbolic): New variable.
19363         (func_import, func_create_testdir): If --symlink was not specified,
19364         test whether --local-symlink was specified and the file comes from
19365         the local_gnulib_dir.
19366
19367 2006-11-12  Bruno Haible  <bruno@clisp.org>
19368
19369         * gnulib-tool (func_ln): New function.
19370         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
19371
19372 2006-11-12  Bruno Haible  <bruno@clisp.org>
19373
19374         Finish support for source files in subdirectories.
19375         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
19376         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
19377         AUTOMAKE_OPTIONS.
19378         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
19379
19380 2006-11-12  Bruno Haible  <bruno@clisp.org>
19381
19382         * gnulib-tool (func_get_automake_snippet): Synthesize also an
19383         EXTRA_lib_SOURCES augmentation.
19384         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
19385
19386 2006-11-12  Jim Meyering  <jim@meyering.net>
19387
19388         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
19389         file descriptors.  This also averts a failure on systems with
19390         native openat support when a traversed directory lacks "x" access.
19391         * lib/fts_.h: Include "i-ring.h"
19392         (struct FTS) [fts_fd_ring]: New member.
19393         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
19394         (FCHDIR): Add parentheses.
19395         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
19396         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
19397         When descending, rather than simply closing the previous
19398         fts_cwd_fd value, push that file descriptor onto the ring.
19399         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
19400         (fts_open): Initialize the new fd_ring member.
19401         (fts_close): Clear the ring.
19402         (fts_safe_changedir): When possible, use our new fd_ring to skip
19403         the diropen and fstat and dev/ino comparison that would normally
19404         accompany a virtual `chdir ("..")'.
19405
19406         * modules/fts (Depends-on): Add i-ring.
19407         * modules/i-ring: New module.
19408         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
19409         * m4/i-ring.m4: New file.
19410
19411 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19412
19413         * gnulib-tool (func_create_testdir): Fix replacement of
19414         `build-aux' in configure.ac.  Run autotools in gltests
19415         subdirectory.
19416         (func_create_testdir, func_create_megatestdir, test): There is
19417         no need for '--force' in most autotool invocations in a new
19418         tree.  Actually fail the whole test if any of the tools, or the
19419         configure or make stages fail.
19420
19421         Sync from Automake.
19422         * build-aux/gnupload: Revert last change.  Add pointer to upload
19423         instructions of the GNU Maintenance Instructions.
19424         Suggestion by Karl Berry.
19425
19426 2006-11-10  Jim Meyering  <jim@meyering.net>
19427
19428         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19429
19430 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19431
19432         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19433         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19434         (bind_textdomain_codeset) [! ENABLE_NLS]:
19435         Evaluate all the arguments.  That way, callers get compatible behavior
19436         if the arguments have side effects.  Also, it avoids some GCC
19437         diagnostics in some cases; Joel E. Denny reported problems when Bison
19438         was configured with --enable-gcc-warnigs.
19439
19440 2006-11-10  Jim Meyering  <jim@meyering.net>
19441
19442         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19443         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19444         account.
19445
19446 2006-11-10  Jim Meyering  <jim@meyering.net>
19447
19448         * modules/inline: New file/module.
19449         * modules/xalloc (Files): Remove m4/inline.m4.
19450         (Depends-on): Add inline, instead.
19451         * modules/oset: Likewise.
19452         * modules/list: Likewise.
19453
19454 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19455
19456         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19457         Problem reported by Matthew Woehlke.
19458
19459 2006-11-09  Bruno Haible  <bruno@clisp.org>
19460
19461         * lib/tempname.c (gen_tempname): Remove variant that invokes
19462         __gen_tempname.
19463         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19464         __gen_tempname.
19465
19466 2006-11-08  Bruno Haible  <bruno@clisp.org>
19467
19468         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19469         to 'yes' instead of 'cross-compiling'.
19470
19471 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19472
19473         * lib/quotearg.h (quotearg_free): New decl.
19474         * lib/quotearg.c (quotearg_free): New function.
19475         (slot0, nslots, slotvec0, slotvec):
19476         Now file-scope so that quotearg_free can get at them.
19477
19478 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19479
19480         Sync from Automake.
19481         * build-aux/gnupload: Add missing 'gnu' to example URL.
19482         Report by Karl Berry.
19483
19484 2006-11-08  Bruno Haible  <bruno@clisp.org>
19485
19486         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19487         Suggested by Paul Eggert.
19488
19489 2006-11-08  Jim Meyering  <jim@meyering.net>
19490
19491         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19492         It's already included if !_LIBC.
19493         (fts_safe_changedir): Add a comment.
19494
19495 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19496
19497         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19498         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19499         Matthew Woehlke.
19500
19501         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19502         definitions up, to avoid colliding with change below.
19503         (static_inline) [HAVE_INLINE]: New macro.
19504         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19505         Provide extern decls when !HAVE_INLINE.  Do not define unless
19506         static_inline is defined, either by us or by xmalloc.c.  Use
19507         static_inline rather than static inline.
19508         (XCALLOC): Optimize sizeof(T) = 1 case.
19509         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19510
19511 2006-11-07  Bruno Haible  <bruno@clisp.org>
19512
19513         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19514         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19515         AC_C_INLINE.
19516         * modules/xalloc (Files): Add m4/inline.m4.
19517
19518 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19519
19520         * README: Fix typo.
19521         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
19522         (Miscellanous Notes): ...from this.
19523
19524 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19525
19526         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19527         Mention that offsetof should be used instead of sizeof.
19528         From Bruno Haible.
19529
19530 2006-11-07  Bruno Haible  <bruno@clisp.org>
19531
19532         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
19533
19534 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19535
19536         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19537         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
19538         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19539         (gl_tree_add_before, gl_tree_add_after):
19540         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19541         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19542         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19543         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19544         (gl_linked_add_after, gl_linked_add_at): Likewise.
19545         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19546         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19547         (gl_tree_add_before, gl_tree_add_after): Likewise.
19548         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19549         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19550         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19551
19552 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19553
19554         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19555
19556 2006-11-06  Bruno Haible  <bruno@clisp.org>
19557
19558         * m4/inline.m4: New file.
19559         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
19560         * modules/list (Files): Add m4/inline.m4.
19561         * modules/oset (Files): Likewise.
19562
19563 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19564
19565         * lib/idcache.c: Include <stddef.h>, for offsetof.
19566         (struct userid.name): Change from char * to a flexible array member.
19567         All uses changed.
19568         * modules/idcache (Depends-on): Add flexmember.
19569
19570         * MODULES.html.sh (Core language properties): New module flexmember.
19571         * modules/flexmember, m4/flexmember.m4: New files.
19572
19573         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
19574         inline functions that are identical with the old xnmalloc_inline,
19575         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
19576         that we can avoid some unnecessary integer multiplications and
19577         divisions in the common case where the element size is known at
19578         compile time.
19579         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
19580         needed.
19581         (xnboundedmalloc): Remove.
19582         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
19583         arguments, for consistency with rest of this header.
19584         (xcharalloc): Rewrite using XNMALLOC.
19585         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
19586         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
19587         versions have been moved to lib/xalloc.h and renamed to be the
19588         non-*_inline versions.
19589         (xmalloc, xrealloc): Implement without reference to the xnmalloc
19590         and xnrealloc functions, since those functions are now inline and
19591         now call us.
19592         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
19593         renaming described above.
19594         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
19595         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
19596         captures the dependency in AC_C_INLINE.
19597
19598         New module canonicalize-lgpl, proposed by Charles Wilson in
19599         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
19600         with a few small changes afterwards.
19601         * MODULES.html.sh (File system functions): New module
19602         canonicalize-lgpl.
19603         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
19604         and canonicalize_file_name.
19605         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
19606         * modules/canonicalize-lgpl: New files.
19607
19608 2006-11-05  Bruno Haible  <bruno@clisp.org>
19609
19610         * gnulib-tool (func_import, func_create_testdir): Create directories
19611         also for files in subdirectories of lib/.
19612
19613 2006-11-05  Bruno Haible  <bruno@clisp.org>
19614
19615         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
19616         ANSI C compliant.
19617
19618 2006-11-03  Bruno Haible  <bruno@clisp.org>
19619
19620         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19621         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
19622         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
19623         (xnboundedmalloc): New inline function.
19624         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
19625         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
19626         xmalloc.
19627         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
19628         xmalloc.
19629         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
19630         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
19631         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
19632         xmalloc.
19633         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19634         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
19635         xmalloc.
19636         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
19637         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19638         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
19639         xmalloc.
19640         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19641         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
19642         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19643         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
19644         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
19645         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
19646         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
19647
19648 2006-11-03  Bruno Haible  <bruno@clisp.org>
19649
19650         * lib/c-ctype.h [C++]: Define functions without name mangling.
19651         * lib/fwriteerror.h [C++]: Likewise.
19652         * lib/gcd.h [C++]: Likewise.
19653         * lib/linebreak.h [C++]: Likewise.
19654
19655 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19656
19657         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
19658         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
19659         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
19660         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19661         Check for functions and headers just once.
19662         Check for declaration of canonicalize_file_name.
19663         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
19664
19665 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19666
19667         * gnulib-tool (func_import): Fix typo in actioncmd.
19668
19669 2006-11-02  Bruno Haible  <bruno@clisp.org>
19670
19671         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
19672         newline sequence in the Makefile.am snippet as a space, like "make"
19673         does.
19674         Reported by Roger Persson <perrog@gmail.com>.
19675
19676 2006-11-01  Bruno Haible  <bruno@clisp.org>
19677
19678         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
19679         already declared in <string.h>.
19680         * lib/strcase.h (strncasecmp): Don't declare it if yes.
19681
19682 2006-11-01  Bruno Haible  <bruno@clisp.org>
19683
19684         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
19685         * lib/strcase.h: Include <string.h>.
19686         (strcasecmp): Define to rpl_strcasecmp here.
19687
19688 2006-11-01  Bruno Haible  <bruno@clisp.org>
19689
19690         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
19691
19692 2006-11-01  Eric Blake  <ebb9@byu.net>
19693
19694         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
19695
19696         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
19697
19698 2006-10-29  Bruno Haible  <bruno@clisp.org>
19699
19700         Make it compile in C++ mode.
19701         * lib/full-write.c (full_rw): Add a cast.
19702
19703 2006-11-01  Bruno Haible  <bruno@clisp.org>
19704
19705         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
19706         be POSIX compliant.
19707         Reported by Roger Persson <perrog@gmail.com>.
19708
19709 2006-11-01  Eric Blake  <ebb9@byu.net>
19710
19711         * lib/getopt_.h: Fix comments.
19712
19713 2006-10-31  Eric Blake  <ebb9@byu.net>
19714
19715         * modules/tmpdir (Depends-on): Add sys_stat.
19716         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
19717         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
19718         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
19719         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
19720         tempname.
19721
19722 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
19723
19724         Avoid some C++ diagnostics reported by Bruno Haible.
19725         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
19726         xmalloc.
19727         (quotearg_alloc): Use xcharalloc rather than xmalloc.
19728         (struct slotvec): Move to top level.
19729         (quotearg_n_options): Rewrite to avoid xmalloc.
19730         * lib/xalloc.h (xcharalloc): New function.
19731         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
19732         [defined __cplusplus]: Add function template that provides result
19733         type propagation.  This part of the change is from Bruno Haible.
19734
19735 2006-10-29  Bruno Haible  <bruno@clisp.org>
19736
19737         Make it compile in C++ mode.
19738         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
19739         * lib/strnlen1.c (strnlen1): Cast memchr result.
19740         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
19741         * lib/clean-temp.c (string_equals, string_hash): Add casts.
19742         (create_temp_dir): Rename local variable 'template'.
19743         (compile_csharp_using_sscli): Add cast.
19744         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
19745         * lib/findprog.c (find_in_path): Likewise.
19746         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
19747         * lib/wait-process.c (register_slave_subprocess): Likewise.
19748
19749 2006-10-22  Bruno Haible  <bruno@clisp.org>
19750
19751         * modules/tsearch: New file.
19752         * lib/tsearch.h: New file.
19753         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
19754         * m4/tsearch.m4: New file.
19755         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
19756
19757 2006-10-29  Eric Blake  <ebb9@byu.net>
19758
19759         * lib/arcfour.c: Assume config.h.
19760         * lib/arctwo.c: Likewise.
19761         * lib/base64.c: Likewise.
19762         * lib/check-version.c: Likewise.
19763         * lib/crc.c: Likewise.
19764         * lib/des.c: Likewise.
19765         * lib/gc-gnulib.c: Likewise.
19766         * lib/gc-libgcrypt.c: Likewise.
19767         * lib/gc-pbkdf2-sha1.c: Likewise.
19768         * lib/getaddrinfo.c: Likewise.
19769         * lib/getdelim.c: Likewise.
19770         * lib/getline.c: Likewise.
19771         * lib/hmac-md5.c: Likewise.
19772         * lib/hmac-sha1.c: Likewise.
19773         * lib/iconvme.c: Likewise.
19774         * lib/md2.c: Likewise.
19775         * lib/md4.c: Likewise.
19776         * lib/memxor.c: Likewise.
19777         * lib/read-file.c: Likewise.
19778         * lib/readline.c: Likewise.
19779         * lib/rijndael-alg-fst.c: Likewise.
19780         * lib/rijndael-api-fst.c: Likewise.
19781         * lib/xgetdomainname.c: Likewise.
19782
19783 2006-10-28  Eric Blake  <ebb9@byu.net>
19784
19785         * lib/xstrndup.c: Assume config.h.
19786
19787 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19788
19789         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
19790         stat-macros.h is now for our own macros, whereas stat_h is for
19791         macros in the <sys/stat.h> name space.
19792         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
19793         (STAT_MACROS_H): Remove.
19794         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
19795         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
19796         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
19797         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
19798         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
19799         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
19800         Move these macros to ...
19801         * lib/stat_.h: here.  Don't include stat-macros.h.
19802         * lib/canonicalize.c: Don't include stat-macros.h.
19803         * lib/chown.c: Likewise.
19804         * lib/euidaccess.c: Likewise.
19805         * lib/file-type.c: Likewise.
19806         * lib/filemode.c: Likewise.
19807         * lib/glob.c: Likewise.
19808         * lib/isapipe.c: Likewise.
19809         * lib/lchown.c: Likewise.
19810         * lib/lstat.c: Likewise.
19811         * lib/mkdir-p.c: Likewise.
19812         * lib/rmdir.c: Likewise.
19813         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
19814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
19815         unless mkdir isn't declared, to speed up 'configure'.
19816         Always create sys/stat.h, since it's unlikely any real sys/stat.h
19817         would define all the S_* symbols.
19818         * modules/canonicalize (Depends-on):
19819         Depend on sys_stat, not stat-macros.
19820         * modules/chown: Likewise.
19821         * modules/euidaccess: Likewise.
19822         * modules/filemode: Likewise.
19823         * modules/file-type: Likewise.
19824         * modules/glob: Likewise.
19825         * modules/isapipe: Likewise.
19826         * modules/lchown: Likewise.
19827         * modules/lstat: Likewise.
19828         * modules/mkancesdirs: Likewise.
19829         * modules/rmdir: Likewise.
19830         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19831         * modules/modechange: Likewise.
19832         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19833         (configure.ac): Remove gl_STAT_MACROS.
19834         * modules/sys_stat (Depends-on): Remove stat-macros.
19835
19836 2006-10-27  Bruno Haible  <bruno@clisp.org>
19837
19838         * m4/signed.m4: Remove file.
19839         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19840         invocation.
19841         * modules/vasnprintf (Files): Remove m4/signed.m4.
19842
19843 2006-10-27  Bruno Haible  <bruno@clisp.org>
19844
19845         Update to GNU gettext 0.16.
19846         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
19847         m4/inttypes-h.m4, m4/signed.m4.
19848         * m4/gettext.m4: Update to GNU gettext 0.16.
19849         * m4/intl.m4: New file, from GNU gettext.
19850         * m4/intldir.m4: New file, from GNU gettext.
19851         * config/srclist.txt: Update
19852
19853 2006-10-27  Eric Blake  <ebb9@byu.net>
19854
19855         * MODULES.html.sh: Document tempname.
19856         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
19857         dependencies.
19858         (Files): Move lib/tempname.c...
19859         * modules/tempname: ...to this new module.
19860         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
19861         (gl_PREREQ_TEMPNAME): Move...
19862         * m4/tempname.m4: ...to this new file.
19863         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
19864         * modules/sys_stat (Depends-on): Add stat-macros.
19865         * lib/stat_.h (includes): Pick up stat macros.
19866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
19867         if stat macros are broken.
19868         * lib/tempname.c (includes): No need to include "stat-macros.h".
19869         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
19870         (direxists, __path_search) [!_LIBC]: Don't compile these in
19871         gnulib; the tmpdir module covers that.
19872         * lib/tempname.h: New file.
19873
19874 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19875
19876         * COPYING: Explain how gnulib-tool converts licence headers.
19877         Almost all wording by Eric Blake.
19878
19879 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19880
19881         * lib/mbchar.h (is_basic_table): Make read-only.
19882         * lib/mbchar.c (is_basic_table): Likewise.
19883         Reported by John Darrington.
19884
19885 2006-10-25  Bruno Haible  <bruno@clisp.org>
19886
19887         * lib/progname.h (set_program_name): Undefine before defining.
19888
19889 2006-10-25  Bruno Haible  <bruno@clisp.org>
19890
19891         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
19892         false for non-gcc C++ compilers.
19893         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19894
19895 2006-10-24  Bruno Haible  <bruno@clisp.org>
19896
19897         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
19898         iconv implementations like Irix iconv.
19899
19900 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19901
19902         * modules/vararrays: New file.
19903         * m4/vararrays.m4: New file, taken from diffutils.
19904         * MODULES.html.sh: New module vararrays.
19905
19906 2006-10-24  Karl Berry  <karl@gnu.org>
19907
19908         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
19909         Don't call GNU Unix.
19910
19911 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19912
19913         * users.txt: Add Libtool.
19914
19915         Sync from Libtool:
19916
19917         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19918
19919         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
19920         to gnulib's policy of including config.h unconditionally.
19921
19922 2006-10-24  Bruno Haible  <bruno@clisp.org>
19923
19924         * modules/wcwidth (Files): Add m4/wint_t.m4.
19925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
19926         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
19927
19928 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19929
19930         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
19931         to pacify GCC with some -W flags enabled.  Problem reported by
19932         Bruno Haible.
19933
19934 2006-10-24  Jim Meyering  <jim@meyering.net>
19935
19936         * MODULES.html.sh: Remove uinttostr.  It's not a module.
19937         Reported by Karl Berry.
19938
19939 2006-10-23  Bruno Haible  <bruno@clisp.org>
19940
19941         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
19942
19943 2006-10-24  Bruno Haible  <bruno@clisp.org>
19944
19945         * lib/gl_list.h: Use C comment style, not C++ comment style.
19946
19947 2006-10-23  Eric Blake  <ebb9@byu.net>
19948
19949         * lib/getaddrinfo.c (includes): Add missing include.
19950
19951 2006-10-23  Bruno Haible  <bruno@clisp.org>
19952             Paul Eggert  <eggert@cs.ucla.edu>
19953
19954         Ability to rename obstack_free.
19955         * lib/obstack.h (__obstack_free): New macro. Declare instead of
19956         obstack_free.
19957         (obstack_free): Invoke the __obstack_free macro.
19958         * lib/obstack.c (obstack_free): Use __obstack_free macro.
19959
19960 2006-10-23  Bruno Haible  <bruno@clisp.org>
19961             Paul Eggert  <eggert@cs.ucla.edu>
19962
19963         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
19964         __argc, __argv from the declaration. (They are defined as macros on
19965         mingw.)
19966
19967 2006-10-22  Bruno Haible  <bruno@clisp.org>
19968
19969         * doc/gnulib-intro.texi: New file.
19970         * doc/gnulib.texi: Include it.
19971
19972 2006-10-21  Bruno Haible  <bruno@clisp.org>
19973
19974         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
19975         "Introduction", "Miscellanous Notes", "Particular Modules".
19976
19977 2006-10-21  Bruno Haible  <bruno@clisp.org>
19978
19979         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19980         Change mostlyclean-local rule to avoid sh syntax error from bash
19981         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
19982
19983 2006-10-23  Jim Meyering  <jim@meyering.net>
19984
19985         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
19986         in place of snprintf.
19987
19988         * modules/inttostr (Files): Add lib/uinttostr.c.
19989         * lib/uinttostr.c (inttostr): New file/function.
19990         * lib/inttostr.h (uinttostr): Declare.
19991         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
19992         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19993         Add uinttostr.
19994         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
19995
19996 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19997
19998         * lib/canonicalize.c (ELOOP): Define if not already defined.
19999         Problem reported by Bruno Haible in
20000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
20001
20002 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20003
20004         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
20005         Problem reported by Perry Smith and Ville Laurikari.
20006
20007         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
20008         uses.
20009
20010 2006-10-19  Bruno Haible  <bruno@clisp.org>
20011
20012         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
20013         for mingw.
20014
20015 2006-10-19  Bruno Haible  <bruno@clisp.org>
20016
20017         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
20018         Needed for mingw.
20019
20020 2006-10-19  Bruno Haible  <bruno@clisp.org>
20021
20022         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
20023
20024 2006-10-19  Bruno Haible  <bruno@clisp.org>
20025
20026         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
20027         it.
20028
20029 2006-10-19  Bruno Haible  <bruno@clisp.org>
20030
20031         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
20032         invocation.
20033
20034 2006-10-19  Bruno Haible  <bruno@clisp.org>
20035
20036         * gnulib-tool (func_create_testdir): Don't include ftruncate and
20037         mountlist by default.
20038
20039 2006-10-16  Bruno Haible  <bruno@clisp.org>
20040
20041         * lib/c-strstr.c: Include c-strstr.h.
20042
20043 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20044
20045         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
20046         in a slash.
20047
20048 2006-10-18  Bruno Haible  <bruno@clisp.org>
20049
20050         * lib/lock.h [C++]: Wrap definitions in extern "C".
20051
20052 2006-10-18  Bruno Haible  <bruno@clisp.org>
20053
20054         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
20055         gl_LIBOBJS list.
20056
20057 2006-10-18  Bruno Haible  <bruno@clisp.org>
20058
20059         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
20060
20061 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20062
20063         * lib/xstrtol.h: Include gettext.h.
20064         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
20065         Problem reported by Eric Blake.
20066         * modules/xstrtol (Depends-on): Add gettext-h.
20067
20068 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
20069
20070         * lib/strftime.c (advance): New macro.
20071         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
20072         incomplete type, so you can't add 0 to it.  Problem and patch
20073         reported by Eelco Dolstra for dietlibc.
20074
20075 2006-10-18  Jim Meyering  <jim@meyering.net>
20076
20077         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
20078         type for a local, and rename it: s/up/user_proc/.
20079
20080 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
20081
20082         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
20083         READ_UTMP_USER_PROCESS.
20084         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
20085
20086 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
20087
20088         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
20089         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
20090
20091 2006-10-17  Eric Blake  <ebb9@byu.net>
20092
20093         * lib/sigprocmask.c (sigprocmask): Fix typo.
20094
20095         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
20096
20097         * modules/clean-temp (Makefile.am): Don't add to make output...
20098         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
20099         config.h.
20100
20101 2006-10-17  Bruno Haible  <bruno@clisp.org>
20102
20103         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
20104         differently if DEFAULT_TEXT_DOMAIN is set.
20105
20106 2006-10-16  Bruno Haible  <bruno@clisp.org>
20107
20108         * lib/clean-temp.c: Include fwriteerror.h.
20109
20110 2006-10-16  Bruno Haible  <bruno@clisp.org>
20111
20112         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
20113
20114 2006-10-16  Bruno Haible  <bruno@clisp.org>
20115
20116         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
20117         * lib/sigprocmask.h: Include <sys/types.h>.
20118         (sigset_t): Use the system's definition if present.
20119
20120 2006-10-17  Eric Blake  <ebb9@byu.net>
20121
20122         * lib/xvasprintf.c (includes): Assume config.h.
20123         * lib/xasprintf.c (includes): Likewise.
20124
20125 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20126
20127         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
20128         at least as wide as intmax_t.
20129
20130 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
20131
20132         (Imported from Automake.)
20133         * build-aux/gnupload: Update to version 1.1 of directive file.
20134
20135 2006-10-16  Eric Blake  <ebb9@byu.net>
20136
20137         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
20138         match Automake 1.10a.
20139
20140 2006-10-14  Bruno Haible  <bruno@clisp.org>
20141
20142         * modules/sigprocmask: New file.
20143         * lib/sigprocmask.h: New file.
20144         * lib/sigprocmask.c: New file.
20145         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
20146         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
20147         request sigprocmask.o.
20148         (gl_PREREQ_SIGPROCMASK): New macro.
20149         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
20150         (Depends-on): Add sigprocmask.
20151         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
20152         gt_SIGNALBLOCKING. Test for 'raise' only once.
20153         * lib/fatal-signal.c: Include sigprocmask.h.
20154         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
20155         unblock_fatal_signals): Define always.
20156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20157         sigprocmask.
20158
20159 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20160
20161         Sync from Automake.
20162         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
20163         which incorrectly sets the mode of an existing destination
20164         directory.  In some cases the unpatched install-sh could do the
20165         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
20166         system.  We hope this is rare in practice, but it's clearly worth
20167         fixing.  Problem reported by Alex Unleashed in
20168         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
20169         Also, don't bother to check for -m bugs unless we're using -m;
20170         suggested by Stepan Kasal.
20171
20172 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20173
20174         Sync from Automake.
20175         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
20176         `-c' flag, so they appear at the same position as in %FASTDEP%
20177         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
20178         which ignores unknown options only after the first non-option.
20179         Bug report against M4 by Nelson H. F. Beebe.
20180
20181 2006-10-13  Jim Meyering  <jim@meyering.net>
20182
20183         Fix a bug in yesterday's change.
20184         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
20185         p->fts_statp->st_dev would be used uninitialized.
20186         Ensures that we always call fts_stat on the very first entry.
20187         Miklos Szeredi reported that find -xdev stopped working.
20188
20189 2006-10-12  Bruno Haible  <bruno@clisp.org>
20190
20191         * gnulib-tool (func_get_automake_snippet): Append an automatically
20192         computed EXTRA_DIST augmentation.
20193         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
20194         * modules/alloca-opt (Makefile.am): Likewise.
20195         * modules/allocsa (Makefile.am): Likewise.
20196         * modules/arcfour (Makefile.am): Likewise.
20197         * modules/arctwo (Makefile.am): Likewise.
20198         * modules/argmatch (Makefile.am): Likewise.
20199         * modules/argz (Makefile.am): Likewise.
20200         * modules/atexit (Makefile.am): Likewise.
20201         * modules/backupfile (Makefile.am): Likewise.
20202         * modules/byteswap (Makefile.am): Likewise.
20203         * modules/c-strtod (Makefile.am): Likewise.
20204         * modules/c-strtold (Makefile.am): Likewise.
20205         * modules/calloc (Makefile.am): Likewise.
20206         * modules/canon-host (Makefile.am): Likewise.
20207         * modules/canonicalize (Makefile.am): Likewise.
20208         * modules/chdir-long (Makefile.am): Likewise.
20209         * modules/chdir-safer (Makefile.am): Likewise.
20210         * modules/check-version (Makefile.am): Likewise.
20211         * modules/chown (Makefile.am): Likewise.
20212         * modules/cloexec (Makefile.am): Likewise.
20213         * modules/close-stream (Makefile.am): Likewise.
20214         * modules/closeout (Makefile.am): Likewise.
20215         * modules/crc (Makefile.am): Likewise.
20216         * modules/csharpexec (Makefile.am): Likewise.
20217         * modules/cycle-check (Makefile.am): Likewise.
20218         * modules/des (Makefile.am): Likewise.
20219         * modules/dev-ino (Makefile.am): Likewise.
20220         * modules/dirfd (Makefile.am): Likewise.
20221         * modules/dirname (Makefile.am): Likewise.
20222         * modules/dup2 (Makefile.am): Likewise.
20223         * modules/eealloc (Makefile.am): Likewise.
20224         * modules/error (Makefile.am): Likewise.
20225         * modules/euidaccess (Makefile.am): Likewise.
20226         * modules/exclude (Makefile.am): Likewise.
20227         * modules/exitfail (Makefile.am): Likewise.
20228         * modules/fcntl-safer (Makefile.am): Likewise.
20229         * modules/fcntl (Makefile.am): Likewise.
20230         * modules/file-type (Makefile.am): Likewise.
20231         * modules/fileblocks (Makefile.am): Likewise.
20232         * modules/filemode (Makefile.am): Likewise.
20233         * modules/filenamecat (Makefile.am): Likewise.
20234         * modules/fnmatch (Makefile.am): Likewise.
20235         * modules/fopen-safer (Makefile.am): Likewise.
20236         * modules/fpending (Makefile.am): Likewise.
20237         * modules/fprintftime (Makefile.am): Likewise.
20238         * modules/free (Makefile.am): Likewise.
20239         * modules/fsusage (Makefile.am): Likewise.
20240         * modules/ftruncate (Makefile.am): Likewise.
20241         * modules/fts (Makefile.am): Likewise.
20242         * modules/gc-arcfour (Makefile.am): Likewise.
20243         * modules/gc-des (Makefile.am): Likewise.
20244         * modules/gc-hmac-md5 (Makefile.am): Likewise.
20245         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
20246         * modules/gc-md4 (Makefile.am): Likewise.
20247         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20248         * modules/gc-sha1 (Makefile.am): Likewise.
20249         * modules/gc (Makefile.am): Likewise.
20250         * modules/getaddrinfo (Makefile.am): Likewise.
20251         * modules/getcwd (Makefile.am): Likewise.
20252         * modules/getdelim (Makefile.am): Likewise.
20253         * modules/getdomainname (Makefile.am): Likewise.
20254         * modules/getgroups (Makefile.am): Likewise.
20255         * modules/gethostname (Makefile.am): Likewise.
20256         * modules/gethrxtime (Makefile.am): Likewise.
20257         * modules/getline (Makefile.am): Likewise.
20258         * modules/getloadavg (Makefile.am): Likewise.
20259         * modules/getlogin_r (Makefile.am): Likewise.
20260         * modules/getndelim2 (Makefile.am): Likewise.
20261         * modules/getopt (Makefile.am): Likewise.
20262         * modules/getpagesize (Makefile.am): Likewise.
20263         * modules/getpass-gnu (Makefile.am): Likewise.
20264         * modules/getpass (Makefile.am): Likewise.
20265         * modules/getsubopt (Makefile.am): Likewise.
20266         * modules/gettime (Makefile.am): Likewise.
20267         * modules/gettimeofday (Makefile.am): Likewise.
20268         * modules/getugroups (Makefile.am): Likewise.
20269         * modules/getusershell (Makefile.am): Likewise.
20270         * modules/glob (Makefile.am): Likewise.
20271         * modules/group-member (Makefile.am): Likewise.
20272         * modules/hard-locale (Makefile.am): Likewise.
20273         * modules/hash (Makefile.am): Likewise.
20274         * modules/hmac-md5 (Makefile.am): Likewise.
20275         * modules/hmac-sha1 (Makefile.am): Likewise.
20276         * modules/human (Makefile.am): Likewise.
20277         * modules/idcache (Makefile.am): Likewise.
20278         * modules/imaxabs (Makefile.am): Likewise.
20279         * modules/imaxdiv (Makefile.am): Likewise.
20280         * modules/inet_ntop (Makefile.am): Likewise.
20281         * modules/inet_pton (Makefile.am): Likewise.
20282         * modules/intprops (Makefile.am): Likewise.
20283         * modules/inttostr (Makefile.am): Likewise.
20284         * modules/inttypes (Makefile.am): Likewise.
20285         * modules/isapipe (Makefile.am): Likewise.
20286         * modules/javaversion (Makefile.am): Likewise.
20287         * modules/lchmod (Makefile.am): Likewise.
20288         * modules/lchown (Makefile.am): Likewise.
20289         * modules/localcharset (Makefile.am): Likewise.
20290         * modules/long-options (Makefile.am): Likewise.
20291         * modules/lstat (Makefile.am): Likewise.
20292         * modules/malloc (Makefile.am): Likewise.
20293         * modules/mathl (Makefile.am): Likewise.
20294         * modules/mbchar (Makefile.am): Likewise.
20295         * modules/md2 (Makefile.am): Likewise.
20296         * modules/md4 (Makefile.am): Likewise.
20297         * modules/md5 (Makefile.am): Likewise.
20298         * modules/memcasecmp (Makefile.am): Likewise.
20299         * modules/memchr (Makefile.am): Likewise.
20300         * modules/memcmp (Makefile.am): Likewise.
20301         * modules/memcoll (Makefile.am): Likewise.
20302         * modules/memcpy (Makefile.am): Likewise.
20303         * modules/memmem (Makefile.am): Likewise.
20304         * modules/memmove (Makefile.am): Likewise.
20305         * modules/mempcpy (Makefile.am): Likewise.
20306         * modules/memrchr (Makefile.am): Likewise.
20307         * modules/memset (Makefile.am): Likewise.
20308         * modules/memxor (Makefile.am): Likewise.
20309         * modules/mkancesdirs (Makefile.am): Likewise.
20310         * modules/mkdir-p (Makefile.am): Likewise.
20311         * modules/mkdir (Makefile.am): Likewise.
20312         * modules/mkdtemp (Makefile.am): Likewise.
20313         * modules/mkstemp (Makefile.am): Likewise.
20314         * modules/mktime (Makefile.am): Likewise.
20315         * modules/modechange (Makefile.am): Likewise.
20316         * modules/mountlist (Makefile.am): Likewise.
20317         * modules/nanosleep (Makefile.am): Likewise.
20318         * modules/obstack (Makefile.am): Likewise.
20319         * modules/openat (Makefile.am): Likewise.
20320         * modules/pagealign_alloc (Makefile.am): Likewise.
20321         * modules/pathmax (Makefile.am): Likewise.
20322         * modules/physmem (Makefile.am): Likewise.
20323         * modules/poll (Makefile.am): Likewise.
20324         * modules/posixtm (Makefile.am): Likewise.
20325         * modules/posixver (Makefile.am): Likewise.
20326         * modules/putenv (Makefile.am): Likewise.
20327         * modules/quote (Makefile.am): Likewise.
20328         * modules/quotearg (Makefile.am): Likewise.
20329         * modules/raise (Makefile.am): Likewise.
20330         * modules/read-file (Makefile.am): Likewise.
20331         * modules/readline (Makefile.am): Likewise.
20332         * modules/readlink (Makefile.am): Likewise.
20333         * modules/readtokens (Makefile.am): Likewise.
20334         * modules/readutmp (Makefile.am): Likewise.
20335         * modules/realloc (Makefile.am): Likewise.
20336         * modules/regex (Makefile.am): Likewise.
20337         * modules/rename-dest-slash (Makefile.am): Likewise.
20338         * modules/rename (Makefile.am): Likewise.
20339         * modules/rijndael (Makefile.am): Likewise.
20340         * modules/rmdir (Makefile.am): Likewise.
20341         * modules/rpmatch (Makefile.am): Likewise.
20342         * modules/safe-read (Makefile.am): Likewise.
20343         * modules/safe-write (Makefile.am): Likewise.
20344         * modules/same-inode (Makefile.am): Likewise.
20345         * modules/same (Makefile.am): Likewise.
20346         * modules/save-cwd (Makefile.am): Likewise.
20347         * modules/savedir (Makefile.am): Likewise.
20348         * modules/setenv (Makefile.am): Likewise.
20349         * modules/settime (Makefile.am): Likewise.
20350         * modules/sha1 (Makefile.am): Likewise.
20351         * modules/sig2str (Makefile.am): Likewise.
20352         * modules/snprintf (Makefile.am): Likewise.
20353         * modules/stat-macros (Makefile.am): Likewise.
20354         * modules/stat-time (Makefile.am): Likewise.
20355         * modules/stdbool (Makefile.am): Likewise.
20356         * modules/stdint (Makefile.am): Likewise.
20357         * modules/stdlib-safer (Makefile.am): Likewise.
20358         * modules/stpcpy (Makefile.am): Likewise.
20359         * modules/stpncpy (Makefile.am): Likewise.
20360         * modules/strcase (Makefile.am): Likewise.
20361         * modules/strcasestr (Makefile.am): Likewise.
20362         * modules/strchrnul (Makefile.am): Likewise.
20363         * modules/strcspn (Makefile.am): Likewise.
20364         * modules/strdup (Makefile.am): Likewise.
20365         * modules/strerror (Makefile.am): Likewise.
20366         * modules/strftime (Makefile.am): Likewise.
20367         * modules/strndup (Makefile.am): Likewise.
20368         * modules/strnlen (Makefile.am): Likewise.
20369         * modules/strpbrk (Makefile.am): Likewise.
20370         * modules/strsep (Makefile.am): Likewise.
20371         * modules/strstr (Makefile.am): Likewise.
20372         * modules/strtod (Makefile.am): Likewise.
20373         * modules/strtoimax (Makefile.am): Likewise.
20374         * modules/strtok_r (Makefile.am): Likewise.
20375         * modules/strtol (Makefile.am): Likewise.
20376         * modules/strtoll (Makefile.am): Likewise.
20377         * modules/strtoul (Makefile.am): Likewise.
20378         * modules/strtoull (Makefile.am): Likewise.
20379         * modules/strtoumax (Makefile.am): Likewise.
20380         * modules/strverscmp (Makefile.am): Likewise.
20381         * modules/sys_socket (Makefile.am): Likewise.
20382         * modules/sys_stat (Makefile.am): Likewise.
20383         * modules/sysexits (Makefile.am): Likewise.
20384         * modules/time_r (Makefile.am): Likewise.
20385         * modules/timegm (Makefile.am): Likewise.
20386         * modules/timespec (Makefile.am): Likewise.
20387         * modules/tmpfile-safer (Makefile.am): Likewise.
20388         * modules/trim (Makefile.am): Likewise.
20389         * modules/unistd-safer (Makefile.am): Likewise.
20390         * modules/unlinkdir (Makefile.am): Likewise.
20391         * modules/unlocked-io (Makefile.am): Likewise.
20392         * modules/userspec (Makefile.am): Likewise.
20393         * modules/utime (Makefile.am): Likewise.
20394         * modules/utimecmp (Makefile.am): Likewise.
20395         * modules/utimens (Makefile.am): Likewise.
20396         * modules/vasnprintf (Makefile.am): Likewise.
20397         * modules/vasprintf (Makefile.am): Likewise.
20398         * modules/vsnprintf (Makefile.am): Likewise.
20399         * modules/xalloc (Makefile.am): Likewise.
20400         * modules/xgetcwd (Makefile.am): Likewise.
20401         * modules/xnanosleep (Makefile.am): Likewise.
20402         * modules/xreadlink (Makefile.am): Likewise.
20403         * modules/xstrtod (Makefile.am): Likewise.
20404         * modules/xstrtol (Makefile.am): Likewise.
20405         * modules/xstrtold (Makefile.am): Likewise.
20406         * modules/yesno (Makefile.am): Likewise.
20407         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
20408
20409 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20410
20411         * modules/error (Makefile.am): Distribute files through
20412         EXTRA_DIST, not lib_SOURCES.
20413
20414 2006-10-12  Eric Blake  <ebb9@byu.net>
20415
20416         * modules/error (Makefile.am): Distribute files in /lib.
20417         * modules/obstack (Makefile.am): Likewise.
20418
20419 2006-10-12  Bruno Haible  <bruno@clisp.org>
20420
20421         * modules/acl (Makefile.am): Distribute all files in lib/ through
20422         EXTRA_DIST.
20423         * modules/arcfour (Makefile.am): Likewise.
20424         * modules/arctwo (Makefile.am): Likewise.
20425         * modules/argmatch (Makefile.am): Likewise.
20426         * modules/argz (Makefile.am): Likewise.
20427         * modules/atexit (Makefile.am): Likewise.
20428         * modules/backupfile (Makefile.am): Likewise.
20429         * modules/c-strtod (Makefile.am): Likewise.
20430         * modules/c-strtold (Makefile.am): Likewise.
20431         * modules/calloc (Makefile.am): Likewise.
20432         * modules/canon-host (Makefile.am): Likewise.
20433         * modules/canonicalize (Makefile.am): Likewise.
20434         * modules/chdir-long (Makefile.am): Likewise.
20435         * modules/chdir-safer (Makefile.am): Likewise.
20436         * modules/check-version (Makefile.am): Likewise.
20437         * modules/chown (Makefile.am): Likewise.
20438         * modules/cloexec (Makefile.am): Likewise.
20439         * modules/close-stream (Makefile.am): Likewise.
20440         * modules/closeout (Makefile.am): Likewise.
20441         * modules/crc (Makefile.am): Likewise.
20442         * modules/cycle-check (Makefile.am): Likewise.
20443         * modules/des (Makefile.am): Likewise.
20444         * modules/dirfd (Makefile.am): Likewise.
20445         * modules/dirname (Makefile.am): Likewise.
20446         * modules/dup2 (Makefile.am): Likewise.
20447         * modules/euidaccess (Makefile.am): Likewise.
20448         * modules/exclude (Makefile.am): Likewise.
20449         * modules/exitfail (Makefile.am): Likewise.
20450         * modules/fcntl-safer (Makefile.am): Likewise.
20451         * modules/file-type (Makefile.am): Likewise.
20452         * modules/fileblocks (Makefile.am): Likewise.
20453         * modules/filemode (Makefile.am): Likewise.
20454         * modules/filenamecat (Makefile.am): Likewise.
20455         * modules/fnmatch (Makefile.am): Likewise.
20456         * modules/fopen-safer (Makefile.am): Likewise.
20457         * modules/fpending (Makefile.am): Likewise.
20458         * modules/fprintftime (Makefile.am): Likewise.
20459         * modules/free (Makefile.am): Likewise.
20460         * modules/fsusage (Makefile.am): Likewise.
20461         * modules/ftruncate (Makefile.am): Likewise.
20462         * modules/fts (Makefile.am): Likewise.
20463         * modules/gc (Makefile.am): Likewise.
20464         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20465         * modules/getaddrinfo (Makefile.am): Likewise.
20466         * modules/getcwd (Makefile.am): Likewise.
20467         * modules/getdelim (Makefile.am): Likewise.
20468         * modules/getdomainname (Makefile.am): Likewise.
20469         * modules/getgroups (Makefile.am): Likewise.
20470         * modules/gethostname (Makefile.am): Likewise.
20471         * modules/gethrxtime (Makefile.am): Likewise.
20472         * modules/getline (Makefile.am): Likewise.
20473         * modules/getloadavg (Makefile.am): Likewise.
20474         * modules/getlogin_r (Makefile.am): Likewise.
20475         * modules/getopt (Makefile.am): Likewise.
20476         * modules/getpass (Makefile.am): Likewise.
20477         * modules/getpass-gnu (Makefile.am): Likewise.
20478         * modules/getsubopt (Makefile.am): Likewise.
20479         * modules/gettime (Makefile.am): Likewise.
20480         * modules/gettimeofday (Makefile.am): Likewise.
20481         * modules/getugroups (Makefile.am): Likewise.
20482         * modules/getusershell (Makefile.am): Likewise.
20483         * modules/glob (Makefile.am): Likewise.
20484         * modules/group-member (Makefile.am): Likewise.
20485         * modules/hard-locale (Makefile.am): Likewise.
20486         * modules/hash (Makefile.am): Likewise.
20487         * modules/hmac-md5 (Makefile.am): Likewise.
20488         * modules/hmac-sha1 (Makefile.am): Likewise.
20489         * modules/human (Makefile.am): Likewise.
20490         * modules/idcache (Makefile.am): Likewise.
20491         * modules/imaxabs (Makefile.am): Likewise.
20492         * modules/imaxdiv (Makefile.am): Likewise.
20493         * modules/inet_ntop (Makefile.am): Likewise.
20494         * modules/inet_pton (Makefile.am): Likewise.
20495         * modules/inttostr (Makefile.am): Likewise.
20496         * modules/isapipe (Makefile.am): Likewise.
20497         * modules/lchown (Makefile.am): Likewise.
20498         * modules/long-options (Makefile.am): Likewise.
20499         * modules/lstat (Makefile.am): Likewise.
20500         * modules/malloc (Makefile.am): Likewise.
20501         * modules/mathl (Makefile.am): Likewise.
20502         * modules/mbchar (Makefile.am): Likewise.
20503         * modules/md2 (Makefile.am): Likewise.
20504         * modules/md4 (Makefile.am): Likewise.
20505         * modules/md5 (Makefile.am): Likewise.
20506         * modules/memcasecmp (Makefile.am): Likewise.
20507         * modules/memchr (Makefile.am): Likewise.
20508         * modules/memcmp (Makefile.am): Likewise.
20509         * modules/memcoll (Makefile.am): Likewise.
20510         * modules/memcpy (Makefile.am): Likewise.
20511         * modules/memmem (Makefile.am): Likewise.
20512         * modules/memmove (Makefile.am): Likewise.
20513         * modules/mempcpy (Makefile.am): Likewise.
20514         * modules/memrchr (Makefile.am): Likewise.
20515         * modules/memset (Makefile.am): Likewise.
20516         * modules/memxor (Makefile.am): Likewise.
20517         * modules/mkancesdirs (Makefile.am): Likewise.
20518         * modules/mkdir (Makefile.am): Likewise.
20519         * modules/mkdir-p (Makefile.am): Likewise.
20520         * modules/mkdtemp (Makefile.am): Likewise.
20521         * modules/mkstemp (Makefile.am): Likewise.
20522         * modules/mktime (Makefile.am): Likewise.
20523         * modules/modechange (Makefile.am): Likewise.
20524         * modules/mountlist (Makefile.am): Likewise.
20525         * modules/nanosleep (Makefile.am): Likewise.
20526         * modules/openat (Makefile.am): Likewise.
20527         * modules/pagealign_alloc (Makefile.am): Likewise.
20528         * modules/physmem (Makefile.am): Likewise.
20529         * modules/poll (Makefile.am): Likewise.
20530         * modules/posixtm (Makefile.am): Likewise.
20531         * modules/posixver (Makefile.am): Likewise.
20532         * modules/putenv (Makefile.am): Likewise.
20533         * modules/quote (Makefile.am): Likewise.
20534         * modules/quotearg (Makefile.am): Likewise.
20535         * modules/raise (Makefile.am): Likewise.
20536         * modules/read-file (Makefile.am): Likewise.
20537         * modules/readline (Makefile.am): Likewise.
20538         * modules/readlink (Makefile.am): Likewise.
20539         * modules/readtokens (Makefile.am): Likewise.
20540         * modules/readutmp (Makefile.am): Likewise.
20541         * modules/realloc (Makefile.am): Likewise.
20542         * modules/regex (Makefile.am): Likewise.
20543         * modules/rename (Makefile.am): Likewise.
20544         * modules/rename-dest-slash (Makefile.am): Likewise.
20545         * modules/rijndael (Makefile.am): Likewise.
20546         * modules/rmdir (Makefile.am): Likewise.
20547         * modules/rpmatch (Makefile.am): Likewise.
20548         * modules/safe-read (Makefile.am): Likewise.
20549         * modules/safe-write (Makefile.am): Likewise.
20550         * modules/same (Makefile.am): Likewise.
20551         * modules/save-cwd (Makefile.am): Likewise.
20552         * modules/savedir (Makefile.am): Likewise.
20553         * modules/setenv (Makefile.am): Likewise.
20554         * modules/settime (Makefile.am): Likewise.
20555         * modules/sha1 (Makefile.am): Likewise.
20556         * modules/sig2str (Makefile.am): Likewise.
20557         * modules/snprintf (Makefile.am): Likewise.
20558         * modules/stdlib-safer (Makefile.am): Likewise.
20559         * modules/stpcpy (Makefile.am): Likewise.
20560         * modules/stpncpy (Makefile.am): Likewise.
20561         * modules/strcase (Makefile.am): Likewise.
20562         * modules/strcasestr (Makefile.am): Likewise.
20563         * modules/strchrnul (Makefile.am): Likewise.
20564         * modules/strcspn (Makefile.am): Likewise.
20565         * modules/strdup (Makefile.am): Likewise.
20566         * modules/strerror (Makefile.am): Likewise.
20567         * modules/strftime (Makefile.am): Likewise.
20568         * modules/strndup (Makefile.am): Likewise.
20569         * modules/strnlen (Makefile.am): Likewise.
20570         * modules/strpbrk (Makefile.am): Likewise.
20571         * modules/strsep (Makefile.am): Likewise.
20572         * modules/strstr (Makefile.am): Likewise.
20573         * modules/strtod (Makefile.am): Likewise.
20574         * modules/strtoimax (Makefile.am): Likewise.
20575         * modules/strtok_r (Makefile.am): Likewise.
20576         * modules/strtol (Makefile.am): Likewise.
20577         * modules/strtoll (Makefile.am): Likewise.
20578         * modules/strtoul (Makefile.am): Likewise.
20579         * modules/strtoull (Makefile.am): Likewise.
20580         * modules/strtoumax (Makefile.am): Likewise.
20581         * modules/strverscmp (Makefile.am): Likewise.
20582         * modules/time_r (Makefile.am): Likewise.
20583         * modules/timegm (Makefile.am): Likewise.
20584         * modules/tmpfile-safer (Makefile.am): Likewise.
20585         * modules/unistd-safer (Makefile.am): Likewise.
20586         * modules/unlinkdir (Makefile.am): Likewise.
20587         * modules/userspec (Makefile.am): Likewise.
20588         * modules/utime (Makefile.am): Likewise.
20589         * modules/utimecmp (Makefile.am): Likewise.
20590         * modules/utimens (Makefile.am): Likewise.
20591         * modules/vasnprintf (Makefile.am): Likewise.
20592         * modules/vasprintf (Makefile.am): Likewise.
20593         * modules/vsnprintf (Makefile.am): Likewise.
20594         * modules/xalloc (Makefile.am): Likewise.
20595         * modules/xgetcwd (Makefile.am): Likewise.
20596         * modules/xnanosleep (Makefile.am): Likewise.
20597         * modules/xreadlink (Makefile.am): Likewise.
20598         * modules/xstrtod (Makefile.am): Likewise.
20599         * modules/xstrtol (Makefile.am): Likewise.
20600         * modules/xstrtold (Makefile.am): Likewise.
20601         * modules/yesno (Makefile.am): Likewise.
20602
20603 2006-10-12  Jim Meyering  <jim@meyering.net>
20604
20605         * m4/getloadavg.m4: Revert the change below.
20606
20607         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
20608         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
20609         fail with a symlink, which is what coreutils' ./bootstrap now
20610         creates by default.
20611
20612 2006-10-12  Bruno Haible  <bruno@clisp.org>
20613
20614         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
20615         mingw.
20616         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
20617         MSVC and mingw explicitly.
20618
20619 2006-10-11  Simon Josefsson  <jas@extundo.com>
20620             Bruno Haible  <bruno@clisp.org>
20621
20622         Add support for multiple gnulib-tool invocations in the scope of a
20623         single configure.ac file.
20624         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
20625         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
20626         with the same contents as the _LIBADD variable.
20627         (func_emit_initmacro_start, func_emit_initmacro_end,
20628         func_emit_initmacro_done): New functions.
20629         (func_import, func_create_testdir): Invoke them. Allow the identifiers
20630         gl_LIBOBJS and gl_LTLIBOBJS.
20631
20632 2006-10-11  Bruno Haible  <bruno@clisp.org>
20633
20634         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
20635         (func_create_testdir): Don't create po/Makefile.am, don't invoke
20636         autoreconf. Instead, invoke autopoint explicitly but move back the
20637         *.m4 files from gnulib.
20638
20639 2006-10-11  Bruno Haible  <bruno@clisp.org>
20640
20641         * gnulib-tool (func_usage): Make module names after --create-testdir
20642         optional.
20643         (func_create_testdir): If no module was specified, use nearly all
20644         modules.
20645
20646 2006-10-12  Jim Meyering  <jim@meyering.net>
20647
20648         Big performance improvement for fts-based tools that use FTS_NOSTAT.
20649         Avoid spurious inode-mismatch problems on non-POSIX file systems.
20650         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
20651         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
20652         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
20653         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
20654         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
20655         (fts_set_stat_required): New function.
20656         (fts_open): Defer the calls to fts_stat, if possible or requested.
20657         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
20658         into fts_stat itself.
20659         (fts_read): Perform any required (deferred) fts_stat call.
20660         (fts_build): Likewise, for the directory we're about to open and read.
20661         In the readdir loop, carefully decide whether each entry will require
20662         an eventual call to fts_stat, using dirent.d_type info if available.
20663         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
20664         a command line argument into this function.  Update all callers.
20665         Map a return value of FTS_DOT to FTS_D for a command line argument.
20666         * modules/fts (Depends-on): Add d-type.  Alphabetize.
20667         Thanks to Miklos Szeredi for his tenacity and for the initial
20668         bug report about "find" failing on a FUSE-based file system.
20669
20670         * lib/fts.c (fts_open): Use consistent indentation.
20671
20672 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20673
20674         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
20675         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
20676         reported by Jim Meyering.  All uses of cache variables renamed
20677         to match Autoconf's.
20678         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
20679         the other one.
20680
20681         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20682         Fix misspelling in diagnostic.
20683
20684 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20685
20686         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
20687         defined.  Problem reported by Matthew Woehlke.
20688
20689         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
20690         Add support for Tandem NonStop R series.
20691         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
20692         Use new macro.
20693
20694         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
20695         (has_trailing_slash): Omit size arg; all callers changed.
20696         Omit 'inline', since it doesn't help performance and we'd
20697         need to configure it.
20698         Don't count //, ///, etc. as having a trailing slash.
20699         As a side effect, this removes a C99ism reported by Matthew Woehlke.
20700         (rpl_rename_dest_slash): On failure, use rename's errno rather
20701         than (in some cases) an incorrect or junk errno.
20702         Simplify code by removing need to compute length; this does
20703         cause it to make two passes instead of one over the file name,
20704         but it's worth it.
20705
20706         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
20707         change, since Autoconf's version may no longer be appropriate now
20708         that we are using CVS Autoconf's version.  Add support for Tandem.
20709
20710 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20711             Bruno Haible  <bruno@clisp.org>
20712
20713         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
20714         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
20715         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
20716         gl_AC_TYPE_LONG_LONG.
20717
20718         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
20719         instead of HAVE_LONG_LONG.
20720         * lib/printf-args.c (printf_fetchargs): Likewise.
20721         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20722         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20723         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
20724         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
20725         gl_AC_TYPE_LONG_LONG.
20726
20727 2006-10-11  Bruno Haible  <bruno@clisp.org>
20728
20729         * m4/longlong.m4: Add comments.
20730         * m4/ulonglong.m4: Likewise.
20731
20732 2006-10-10  Bruno Haible  <bruno@clisp.org>
20733
20734         Make it possible to #define stpcpy, strdup to aliases.
20735         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
20736         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
20737
20738 2006-10-10  Bruno Haible  <bruno@clisp.org>
20739
20740         Make it possible to #define gcd to an alias.
20741         * lib/gcd.c: Include config.h.
20742
20743 2006-10-10  Bruno Haible  <bruno@clisp.org>
20744
20745         Make it possible to #define c_isascii to an alias.
20746         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
20747         defined. Undefine the macros before defining them, to avoid gcc
20748         warnings.
20749         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
20750         define NO_C_CTYPE_MACROS early.
20751
20752 2006-10-10  Bruno Haible  <bruno@clisp.org>
20753
20754         Make it possible to #define set_program_name to an alias.
20755         * lib/progname.c: Don't undefine set_program_name; instead, undefine
20756         ENABLE_RELOCATABLE early.
20757
20758 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20759
20760         Port to Tandem NSK OSS, which has 64-bit signed int but at most
20761         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
20762         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
20763         More generally, don't assume that 64-bit signed int is available
20764         if unsigned int is, and vice versa.
20765         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
20766         unsigned symbols, not on their signed counterparts.
20767         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
20768         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
20769         (UINT64_C, UINTMAX_C):
20770         Likewise.
20771         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
20772         unsigned counterparts.
20773         (Have_long_long, Unsigned): New macros.
20774         (Int): Renamed from INT.
20775         (strtoimax): Use the new macros.
20776         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
20777         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
20778         * modules/inttypes (inttypes.h): Substitute
20779         HAVE_UNSIGNED_LONG_LONG_INT.
20780         * modules/stdint (stdint.h): Likewise.
20781         (Files): Add m4/ulonglong.m4.
20782
20783 2006-10-10  Bruno Haible  <bruno@clisp.org>
20784
20785         Fix a gcc -Wshadow warning.
20786         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
20787         to 'bucket'.
20788         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
20789         gl_linked_indexof_from_to): Likewise.
20790         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
20791         Likewise.
20792         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
20793         Likewise.
20794         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
20795         Reported by Eric Blake.
20796
20797 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
20798
20799         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
20800         for NetBSD.  Problem reported by Bruno Haible.
20801
20802 2006-10-09  Jim Meyering  <jim@meyering.net>
20803
20804         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
20805         Patch from Bruno Haible.
20806
20807 2006-10-09  Jim Meyering  <jim@meyering.net>
20808
20809         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
20810         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
20811         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
20812
20813 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20814
20815         Don't include <config.h> twice; this doesn't work in some cases,
20816         e.g., when config.h has "#define intmax_t long long int" and
20817         we include <config.h>, <inttypes.h>, <config.h> in that order.
20818         Problem reported by Matthew Woehlke in:
20819         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
20820         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
20821         * lib/fts-cycle.c: Don't include config.h.
20822         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
20823         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
20824         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
20825         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
20826         inttypes.h.
20827         * lib/xstrtoumax.c: Likewise.
20828         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
20829         __strtol and the like, so that this module is more like its siblings.
20830         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20831         Remove; no longer needed now that we assume gnulib inttypes.h.
20832
20833 2006-10-08  Bruno Haible  <bruno@clisp.org>
20834
20835         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20836         option.
20837
20838 2006-10-07  Jim Meyering  <jim@meyering.net>
20839
20840         * modules/inttypes (inttypes.h): Revert what seems to have been
20841         an inadvertent part of today's change: use "|", not "/" in the
20842         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20843
20844 2006-10-07  Bruno Haible  <bruno@clisp.org>
20845
20846         * modules/sublist: New file.
20847
20848 2006-10-07  Bruno Haible  <bruno@clisp.org>
20849
20850         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
20851         * modules/argz (argz.h): Likewise.
20852         * modules/arpa_inet (arpa/inet.h): Likewise.
20853         * modules/byteswap (byteswap.h): Likewise.
20854         * modules/configmake (configmake.h): Likewise.
20855         * modules/fcntl (fcntl.h): Likewise.
20856         * modules/fnmatch (fnmatch.h): Likewise.
20857         * modules/getopt (getopt.h): Likewise.
20858         * modules/glob (glob.h): Likewise.
20859         * modules/inttypes (inttypes.h): Likewise.
20860         * modules/netinet_in (netinet/in.h): Likewise.
20861         * modules/poll (poll.h): Likewise.
20862         * modules/stdbool (stdbool.h): Likewise.
20863         * modules/stdint (stdint.h): Likewise.
20864         * modules/sys_select (sys/select.h): Likewise.
20865         * modules/sys_socket (sys/socket.h): Likewise.
20866         * modules/sys_stat (sys/stat.h): Likewise.
20867         * modules/sysexits (sysexits.h): Likewise.
20868         * modules/unistd (unistd.h): Likewise.
20869         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20870         Add a "DO NOT EDIT" comment to the generated file.
20871         (func_import): Likewise for gnulib-comp.m4.
20872
20873 2006-10-07  Bruno Haible  <bruno@clisp.org>
20874
20875         * lib/gl_sublist.h: New file.
20876         * lib/gl_sublist.c: New file.
20877
20878 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20879
20880         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
20881         name (relative to the original working directory) and the file
20882         name component (relative to the temporary working directory).  All
20883         callers changed.
20884         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
20885         * lib/mkdir-p.c (make_dir_parents): Likewise.
20886         * lib/mkdir-p.h (make_dir_parents): Likewise.
20887
20888 2006-10-06  Eric Blake  <ebb9@byu.net>
20889
20890         Define several macros for use by the clean-temp module.
20891         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
20892         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
20893         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
20894
20895         * lib/clean-temp.h (close_stream_temp): New declaration.
20896         * lib/clean-temp.c (includes): Pull in headers according to what
20897         other modules are in use.
20898         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
20899
20900 2006-10-06  Bruno Haible  <bruno@clisp.org>
20901
20902         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
20903         instead of fopen, fwriteerror.
20904
20905 2006-10-06  Bruno Haible  <bruno@clisp.org>
20906
20907         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
20908         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
20909         int.
20910         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
20911         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
20912         Return an error indicator.
20913         Suggested by Eric Blake.
20914
20915 2006-10-06  Bruno Haible  <bruno@clisp.org>
20916
20917         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
20918         Reported by Eric Blake.
20919
20920 2006-10-06  Bruno Haible  <bruno@clisp.org>
20921
20922         * modules/closeout (Description): Mention stderr too.
20923
20924 2006-10-06  Bruno Haible  <bruno@clisp.org>
20925         and Paul Eggert  <eggert@cs.ucla.edu>
20926
20927         * lib/closeout.c (close_stdout): Also close stderr.
20928         * lib/closeout.h: Update comment.
20929
20930 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20931
20932         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
20933         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
20934         * lib/dirchownmod.c: Include lchown.h.
20935         * lib/lchown.c: Don't include files that lchown.h now includes.
20936         Don't declare chown, since lchown.h now does that.
20937         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
20938         (lchown): Define to rpl_chown if lchown is declared but
20939         does not exist.  Declare using a prototype if lchown is not
20940         declared.  Add a copyright notice.
20941         * lib/mkstemp.h: Include <unistd.h>.
20942         * lib/openat.c: Include lchown.h.
20943
20944         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
20945         we now test for that separately.
20946         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
20947         rather than O_NOFOLLOW, when testing whether it's possible to
20948         avoid a race condition reliably.
20949         * lib/savewd.c (savewd_chdir): Likewise.
20950
20951         Remove macros that are no longer needed now that stdint.h is
20952         reliable.
20953         * lib/fsusage.c (UINTMAX_MAX): Remove.
20954         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
20955         * lib/utimecmp.c (SIZE_MAX): Remove.
20956
20957         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
20958
20959         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
20960         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
20961         O_NOATIME works.
20962
20963 2006-10-05  Bruno Haible  <bruno@clisp.org>
20964
20965         * lib/gl_list.h (gl_sortedlist_search_from_to,
20966         gl_sortedlist_indexof_from_to): New declarations.
20967         (gl_list_implementation): New fields sortedlist_search_from_to,
20968         sortedlist_indexof_from_to.
20969         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
20970         inline functions.
20971         * lib/gl_list.c (gl_sortedlist_search_from_to,
20972         gl_sortedlist_indexof_from_to): New functions.
20973         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
20974         function.
20975         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
20976         (gl_array_sortedlist_search_from_to): New function.
20977         (gl_array_list_implementation): Update.
20978         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
20979         function.
20980         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
20981         (gl_carray_sortedlist_search_from_to): New function.
20982         (gl_carray_list_implementation): Update.
20983         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
20984         gl_linked_sortedlist_indexof_from_to): New functions.
20985         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20986         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20987         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
20988         gl_tree_sortedlist_indexof_from_to): New functions.
20989         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20990         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20991         Update.
20992         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20993         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
20994         Update.
20995
20996 2006-10-05  Bruno Haible  <bruno@clisp.org>
20997
20998         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
20999         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
21000         (struct gl_list_implementation): Add fields search_from_to,
21001         indexof_from_to. Remove fields search, indexof.
21002         (gl_list_search): Use the search_from_to method.
21003         (gl_list_search_from, gl_list_search_from_to): New functions.
21004         (gl_list_indexof): Use the indexof_from_to method.
21005         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21006         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
21007         (gl_list_search_from, gl_list_search_from_to): New functions.
21008         (gl_list_indexof): Use the indexof_from_to method.
21009         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
21010         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
21011         gl_array_indexof. Add start_index, end_index arguments.
21012         (gl_array_search_from_to): Renamed from gl_array_search. Add
21013         start_index, end_index arguments.
21014         (gl_array_remove, gl_array_list_implementation): Update.
21015         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
21016         gl_carray_indexof. Add start_index, end_index arguments.
21017         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
21018         start_index, end_index arguments.
21019         (gl_carray_remove, gl_carray_list_implementation): Update.
21020         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
21021         gl_linked_search. Add start_index, end_index arguments.
21022         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
21023         start_index, end_index arguments.
21024         (gl_linked_remove): Update.
21025         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21026         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21027         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
21028         field to 'size_t'.
21029         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
21030         gl_tree_search. Add start_index, end_index arguments.
21031         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21032         start_index, end_index arguments.
21033         (gl_tree_remove): Update.
21034         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21035         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21036         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
21037         function.
21038         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
21039         gl_tree_search. Add start_index, end_index arguments.
21040         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
21041         start_index, end_index arguments.
21042         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21043         Update.
21044         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
21045
21046 2006-10-05  Bruno Haible  <bruno@clisp.org>
21047
21048         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
21049
21050         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
21051         fwriteerror_temp): New declarations.
21052         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
21053         (descriptors): New variable.
21054         (cleanup): First, close the descriptors.
21055         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
21056         fclose_temp, fwriteerror_temp): New functions.
21057
21058 2006-10-04  Jim Meyering  <jim@meyering.net>
21059
21060         * lib/fts.c (fts_open): Tiny comment change.
21061
21062 2006-10-04  Bruno Haible  <bruno@clisp.org>
21063
21064         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
21065         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
21066         gl_LOCK_BODY.
21067         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
21068         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
21069         gl_LOCK_EARLY_BODY.
21070         (gl_LOCK): Require gl_LOCK_BODY.
21071
21072 2006-10-04  Bruno Haible  <bruno@clisp.org>
21073
21074         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
21075         (gl_oset_search_atleast): New declaration.
21076         (struct gl_oset_implementation): Add field 'search_atleast'.
21077         (gl_oset_search_atleast): New inline function.
21078         * lib/gl_oset.c (gl_oset_search_atleast): New function.
21079         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
21080         (gl_array_oset_implementation): Update.
21081         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
21082         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
21083         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
21084
21085 2006-10-04  Bruno Haible  <bruno@clisp.org>
21086
21087         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
21088
21089 2006-10-03  Bruno Haible  <bruno@clisp.org>
21090
21091         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
21092         from gl_avltreehash_list_implementation.
21093
21094 2006-10-03  Bruno Haible  <bruno@clisp.org>
21095
21096         * lib/gl_oset.c (gl_oset_add): Fix return type.
21097
21098 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
21099
21100         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
21101
21102 2006-10-02  Eric Blake  <ebb9@byu.net>
21103
21104         * modules/strnlen (Depends-on): Add extensions.
21105
21106 2006-10-02  Eric Blake  <ebb9@byu.net>
21107
21108         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
21109         definition in 2.60+.
21110
21111 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
21112
21113         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
21114         checks.
21115
21116 2006-10-02  Bruno Haible  <bruno@clisp.org>
21117
21118         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
21119         to the AUTOMAKE_OPTIONS.
21120         Reported by Jim Meyering.
21121
21122 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21123
21124         Work around bug in Solaris 10 /proc file system:
21125         /proc/self/fd/NNN/.. isn't the parent directory of
21126         the directory whose file descriptor is NNN.  This needs to
21127         be worked around at run time, not compile time, since a
21128         program might be built on Solaris 8, where things work, and
21129         run on Solaris 10.
21130         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
21131         to use the following interface instead:
21132         (OPENAT_BUFFER_SIZE): New macro.
21133         (openat_proc_name): New function.
21134         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
21135         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
21136         Likewise.
21137         * lib/openat-proc.c: New file.
21138         * modules/openat (Files): Add lib/openat-proc.c.
21139         (Depends-on): Add same-inode, stdbool.
21140         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
21141
21142 2006-09-29  Bruno Haible  <bruno@clisp.org>
21143
21144         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
21145         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
21146         argument. Set stdout_closed before testing for ferror, not after.
21147         (fwriteerror, fwriteerror_no_ebadf): New functions.
21148
21149 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21150
21151         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
21152
21153 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
21154
21155         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
21156         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
21157
21158 2006-09-28  Jim Meyering  <jim@meyering.net>
21159
21160         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
21161         Include <unistd.h>.
21162
21163 2006-09-28  Bruno Haible  <bruno@clisp.org>
21164
21165         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
21166         * modules/linkedhash-list (Depends-on): Likewise.
21167         * modules/rbtreehash-list (Depends-on): Likewise.
21168
21169 2006-09-28  Bruno Haible  <bruno@clisp.org>
21170
21171         * lib/strndup.h: Simplify the redefinition of strndup.
21172         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
21173         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
21174
21175 2006-09-28  Bruno Haible  <bruno@clisp.org>
21176
21177         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
21178         * lib/gl_linkedhash_list.c: Likewise.
21179         * lib/gl_rbtreehash_list.c: Likewise.
21180
21181 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21182
21183         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
21184         getaddrinfo.
21185
21186         * lib/__fpending.h: Don't include <stdio_ext.h> unless
21187         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
21188         it causes <stdio_ext.h> to cause a compile-time error.
21189         Problem reported by Nelson H. F. Beebe.
21190         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
21191         of HAVE_DECL___PENDING.
21192
21193         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
21194         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
21195         declaration.
21196
21197 2006-09-27  Jim Meyering  <jim@meyering.net>
21198
21199         This file could end up with a definition for a function
21200         named __strndup, rather than rpl_strndup on a system with
21201         incomplete weak_alias support.
21202         * lib/strndup.c (strndup): Rename from __strndup.
21203         Remove #defines that used to map __strndup to strndup.
21204         Don't use K&R prototypes.
21205         Remove LIBC-related code, since this file is not sync'd with glibc.
21206         * lib/strndup.h: Revamp, accordingly.
21207         * m4/strndup.m4: Modernize.
21208
21209 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21210
21211         * modules/savewd (Depends-on): Add 'raise'.
21212         * lib/savewd.c: Include <signal.h>, for 'raise'.
21213
21214 2006-09-26  Jim Meyering  <jim@meyering.net>
21215
21216         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
21217         when we detect Darwin 8.7.0's acl_get_file bug.
21218         Rearrange to perform the new (below) run-test while $LIBS
21219         contains any acl-related library.  Set USE_ACL at the end.
21220         (gl_ACL_GET_FILE): New function.
21221
21222 2006-09-26  Eric Blake  <ebb9@byu.net>
21223
21224         * lib/verror.c: Include <config.h> unconditionally.
21225
21226 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21227
21228         * modules/clock-time (Maintainer): Add self.
21229         * modules/getlogin_r (Depends-on): Add extensions.
21230
21231 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21232
21233         * modules/clock-time: New module.
21234         * modules/nanosleep (Depends-on): Add clock-time.
21235         * modules/gethrxtime (Depends-on): Likewise.
21236         * modules/gettime (Depends-on): Likewise.
21237         * modules/settime (Depends-on): Likewise.
21238
21239         * modules/fts-lgpl: Depend on openat.
21240         * modules/mkancesdirs: Depend on savewd.
21241         * modules/mkdir-p: Likewise.
21242
21243 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21244
21245         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
21246
21247         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
21248         `gl_have_arbitrary_file_name_length_limit' to
21249         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
21250         actually works between configure runs.
21251
21252 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21253             Bruno Haible  <bruno@clisp.org>
21254
21255         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
21256
21257 2006-09-25  Jim Meyering  <jim@meyering.net>
21258
21259         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
21260         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
21261
21262 2006-09-25  Eric Blake  <ebb9@byu.net>
21263
21264         * gnulib-tool (func_import, func_create_testdir): Fix typos in
21265         exec's in 2006-09-18 patch when shuffling fds.
21266
21267 2006-09-25  Bruno Haible  <bruno@clisp.org>
21268
21269         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
21270         Reported by Jim Meyering.
21271
21272 2006-09-24  Jim Meyering  <jim@meyering.net>
21273
21274         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
21275         compare a pointer against a literal "0".  That caused failures with
21276         at least HP-UX's hpcc.
21277
21278 2006-09-22  Simon Josefsson  <jas@extundo.com>
21279
21280         * modules/gc-sha1:
21281         * modules/gc-md4:
21282         * modules/gc-hmac-sha1:
21283         * modules/gc-hmac-md5:
21284         * modules/gc-des:
21285         * modules/gc-arcfour: Distribute more files.
21286
21287 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21288
21289         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
21290         (gl_linked_iterator_from_to): Initialize struct completely.
21291         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
21292         (gl_tree_iterator_from_to): Likewise
21293         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
21294         * lib/gl_array_list.c [lint] (gl_array_iterator)
21295         (gl_array_iterator_from_to): Likewise.
21296         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
21297         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
21298         (gl_carray_iterator_from_to): Likewise.
21299
21300         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
21301         * lib/md4.c (md4_process_block): Remove unused variable.
21302         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
21303         parentheses for clarity.
21304
21305 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21306
21307         * modules/bison-i18n (Depends-on): Add gettext.
21308
21309 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21310
21311         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
21312         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21313         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
21314         also add missing comma that caused broken test.
21315         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
21316         stdlib.h, for `abort'.
21317         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
21318         variables.
21319         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
21320         include unistd.h if present, for `rmdir'.
21321         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
21322         variables.
21323         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
21324         in the process include standard headers for prototypes.
21325         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
21326         gets declared on GNU/Linux.
21327         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
21328         unistd.h, for `rmdir'.
21329         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
21330
21331         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
21332         always true.
21333         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
21334
21335         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
21336
21337 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21338
21339         * gnulib-tool (func_version): Create output all at once.  This
21340         may help avoid triggering unnecessary SIGPIPEs, and at any
21341         rate it doesn't hurt.
21342
21343 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21344             Bruno Haible  <bruno@clisp.org>
21345
21346         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
21347         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21348         * m4/signed.m4 (bh_C_SIGNED): Likewise.
21349
21350         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
21351         (gl_FUNC_VASPRINTF): Invoke it.
21352
21353 2006-09-22  Bruno Haible  <bruno@clisp.org>
21354
21355         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
21356         getloadavg.c as first argument.
21357
21358 2006-09-22  Bruno Haible  <bruno@clisp.org>
21359
21360         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
21361         at the beginning of the gl_INIT macro.
21362         * modules/getloadavg (configure.ac): Pass $gl_source_base to
21363         gl_GETLOADAVG.
21364
21365 2006-09-22  Bruno Haible  <bruno@clisp.org>
21366
21367         * gnulib-tool (func_create_megatestdir): Don't include the config-h
21368         module.
21369         Suggested by Ralf Wildenhues.
21370
21371 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21372
21373         Import this patch from libc:
21374
21375         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
21376
21377         * lib/regex_internal.c (re_string_reconstruct): Handle
21378         offset < pstr->valid_raw_len && pstr->offsets_needed case.
21379         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
21380         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
21381         re_string_context_at.
21382
21383         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
21384         now requires it.
21385         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
21386         gl_REGEX now does it for us.
21387         (gl_REGEX): Add test taken from
21388         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
21389
21390         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
21391         Check that large offsets work.  Modernize Autoconf usages.
21392         Prefer "yes" to mean a good thing rather than a bad.
21393         Don't put "#define mkstemp" in config.h, as this might interfere
21394         with standard system headers that "#define mkstemp mkstemp64".
21395
21396         * modules/mkstemp (Depends-on): Add extensions, so that
21397         mkstemp is visible on some platforms.
21398         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
21399         (Include): Change to "mkstemp.h" from <stdlib.h>.
21400         (Files): Add mkstemp.h.
21401
21402         * lib/mkstemp.h: New file, since some standard headers
21403         #define mkstemp.
21404         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
21405         Include "mkstemp.h".
21406         Make the _LIBC code resemble glibc original more,
21407         e.g., use K&R style.
21408         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
21409         (mkstemp): Remove, since mkstemp.h does this for us.
21410         * lib/stdlib--.h: Include mkstemp.h.
21411
21412         Import this patch from libc:
21413
21414         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21415
21416         * lib/tempname.c (__gen_tempname): Change attempts_min
21417         into a macro.  Use preprocessor to decide how to initialize
21418         attempts [Coverity CID 67].
21419
21420 2006-09-20  Bruno Haible  <bruno@clisp.org>
21421
21422         * lib/mkdtemp.c: Import from libc.
21423         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21424                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21425                 attempts_min into a macro.  Use preprocessor to decide how to
21426                 initialize attempts [Coverity CID 67].
21427         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21428                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21429                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21430
21431 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21432
21433         * gnulib-tool (func_exit): New function, to allow to pass the
21434         exit status portably through the trap.  Use everywhere.
21435         (--help, --version): Signal a write error.
21436         (trap): catch SIGPIPE, for write errors.
21437         Exit at the end of the trap, with the correct exit status.
21438
21439 2006-09-19  Karl Berry  <karl@gnu.org>
21440
21441         * doc/gnulib.texi: note about the license texinfo files.
21442
21443 2006-09-19  Eric Blake  <ebb9@byu.net>
21444
21445         * gnulib-tool: Avoid space-tab.
21446
21447 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21448
21449         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21450         that prevented coreutils 6.1 from building.  Problem reported
21451         by Petter Reinholdtsen.
21452
21453 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21454
21455         * gnulib-tool (avoidlist): Fix typo that broke options like
21456         --avoid=lock that are used by coreutils bootstrap.
21457
21458 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21459
21460         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21461         more systematically.
21462
21463 2006-09-18  Jim Meyering  <jim@meyering.net>
21464
21465         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21466
21467 2006-09-18  Bruno Haible  <bruno@clisp.org>
21468
21469         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21470
21471 2006-09-18  Bruno Haible  <bruno@clisp.org>
21472
21473         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21474         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21475         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21476         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21477         * m4/gettext.m4: Require autoconf >= 2.52.
21478         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21479         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21480         of gl_cv_header_inttypes_h.
21481
21482 2006-09-18  Bruno Haible  <bruno@clisp.org>
21483
21484         * lib/javaversion.c: Include configmake.h.
21485
21486 2006-09-18  Bruno Haible  <bruno@clisp.org>
21487
21488         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21489         avoid that the while loops be executed in a subshell.
21490
21491 2006-09-18  Bruno Haible  <bruno@clisp.org>
21492
21493         * MODULES.html.sh (func_module): Break long lines.
21494         Suggested by Bruce Korb <bkorb@gnu.org>.
21495
21496 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21497
21498         Speed up by a factor of 1.12.
21499         * gnulib-tool (nl): New variable.
21500         (func_import): Rewrite include directive extraction to only read each
21501         directive once.
21502
21503 2006-09-17  Bruno Haible  <bruno@clisp.org>
21504
21505         * modules/javaversion (Makefile.am): Remove DEFS setting.
21506         (Depends-on): Add configmake, for PKGDATADIR definition.
21507
21508 2006-09-17  Bruno Haible  <bruno@clisp.org>
21509
21510         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21511
21512 2006-09-17  Bruno Haible  <bruno@clisp.org>
21513
21514         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21515         (func_modules_transitive_closure, func_modules_add_dummy,
21516         func_modules_to_filelist, func_import, func_create_testdir,
21517         func_create_megatestdir, ...): Use it wherever possible.
21518         Suggested by Ralf Wildenhues.
21519
21520 2006-09-16  Karl Berry  <karl@gnu.org>
21521
21522         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
21523         to avoid sectioning errors.
21524         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
21525         [ifinfo]: blank line after @center-ed titles.
21526         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
21527         Spell FSF address consistently with others.
21528         (These changes approved by rms.)
21529
21530 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21531
21532         Speed up by a factor of 1.61.
21533         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
21534         already checked module names again.
21535
21536 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21537
21538         Speed up by a factor of 1.13.
21539         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21540         for new_files, and the input to func_add_or_update.
21541
21542 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21543
21544         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21545         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21546
21547 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21548
21549         * modules/mkancesdirs (Depends-on): Add fcntl.
21550         * modules/savewd: New file.
21551         * MODULES.html.sh (File system functions): Add savewd.
21552
21553         * modules/configmake (Makefile.am): Add support for the
21554         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21555
21556 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21557
21558         * m4/savewd.m4: New file.
21559
21560 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21561
21562         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
21563         (dirchownmod): New arg FD.  All callers changed.
21564         Use FD rather than opening the directory ourself, as opening is
21565         now the caller's responsibility.
21566         * lib/dirchownmod.h: Likewise.
21567         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
21568         hosts that require <sys/types.h> before <sys/stat.h>.  Include
21569         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
21570         (test_dir): Remove.
21571         (mkancesdirs): Return length of prefix of FILE that has already
21572         been made, or -2 if there is a child doing the work.  Redo
21573         algorithm so that it is O(N) rather than O(N**2).  Optimize away
21574         ".", and treat ".." specially since it might stray back into
21575         already-created areas.  Use a subprocess if necessary.  New arg
21576         WD; all users changed.  MAKE_DIR function should now return 1
21577         if it creates a directory that is not readable.  Return -2 if
21578         a child process is spun off.
21579         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
21580         Adjust signature to match code.
21581         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
21582         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
21583         all users changed.
21584         * lib/savewd.c, lib/savewd.h: New files.
21585
21586 2006-09-15  Jim Meyering  <jim@meyering.net>
21587
21588         * modules/rename-dest-slash: New module.
21589         * MODULES.html.sh (posix_compat): Add it here.
21590
21591         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
21592
21593 2006-09-15  Jim Meyering  <jim@meyering.net>
21594
21595         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
21596         file.
21597
21598         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
21599
21600 2006-09-15  Jim Meyering  <jim@meyering.net>
21601
21602         * lib/rename-dest-slash.c (has_trailing_slash): Use
21603         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
21604         (rpl_rename_dest_slash): Perform the cheaper trailing slash
21605         test before testing whether SRC is a directory.
21606         Suggestions from Bruno Haible.
21607
21608         Avoid a warning about an unused variable.
21609         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
21610         into the #ifdef block where it's used.
21611
21612         * lib/rename-dest-slash.c: New file.
21613
21614 2006-09-14  Bruno Haible  <bruno@clisp.org>
21615
21616         * lib/allocsa.c: Include <config.h> unconditionally.
21617         * lib/asnprintf.c: Likewise.
21618         * lib/asprintf.c: Likewise.
21619         * lib/c-strcasecmp.c: Likewise.
21620         * lib/c-strcasestr.c: Likewise.
21621         * lib/c-strncasecmp.c: Likewise.
21622         * lib/c-strstr.c: Likewise.
21623         * lib/classpath.c: Likewise.
21624         * lib/clean-temp.c: Likewise.
21625         * lib/concatpath.c: Likewise.
21626         * lib/copy-file.c: Likewise.
21627         * lib/csharpcomp.c: Likewise.
21628         * lib/csharpexec.c: Likewise.
21629         * lib/execute.c: Likewise.
21630         * lib/fatal-signal.c: Likewise.
21631         * lib/findprog.c: Likewise.
21632         * lib/fwriteerror.c: Likewise.
21633         * lib/gl_array_list.c: Likewise.
21634         * lib/gl_array_oset.c: Likewise.
21635         * lib/gl_avltree_list.c: Likewise.
21636         * lib/gl_avltree_oset.c: Likewise.
21637         * lib/gl_avltreehash_list.c: Likewise.
21638         * lib/gl_carray_list.c: Likewise.
21639         * lib/gl_linked_list.c: Likewise.
21640         * lib/gl_linkedhash_list.c: Likewise.
21641         * lib/gl_list.c: Likewise.
21642         * lib/gl_oset.c: Likewise.
21643         * lib/gl_rbtree_list.c: Likewise.
21644         * lib/gl_rbtree_oset.c: Likewise.
21645         * lib/gl_rbtreehash_list.c: Likewise.
21646         * lib/imaxabs.c: Likewise.
21647         * lib/imaxdiv.c: Likewise.
21648         * lib/javacomp.c: Likewise.
21649         * lib/javaexec.c: Likewise.
21650         * lib/javaversion.c: Likewise.
21651         * lib/linebreak.c: Likewise.
21652         * lib/localcharset.c: Likewise.
21653         * lib/lock.c: Likewise.
21654         * lib/mbchar.c: Likewise.
21655         * lib/mbswidth.c: Likewise.
21656         * lib/mkdtemp.c: Likewise.
21657         * lib/pipe.c: Likewise.
21658         * lib/printf-args.c: Likewise.
21659         * lib/printf-parse.c: Likewise.
21660         * lib/progname.c: Likewise.
21661         * lib/progreloc.c: Likewise.
21662         * lib/readlink.c: Likewise.
21663         * lib/sh-quote.c: Likewise.
21664         * lib/stpcpy.c: Likewise.
21665         * lib/stpncpy.c: Likewise.
21666         * lib/strcasecmp.c: Likewise.
21667         * lib/strcasestr.c: Likewise.
21668         * lib/strcspn.c: Likewise.
21669         * lib/striconv.c: Likewise.
21670         * lib/strncasecmp.c: Likewise.
21671         * lib/strnlen1.c: Likewise.
21672         * lib/strstr.c: Likewise.
21673         * lib/strtok_r.c: Likewise.
21674         * lib/tls.c: Likewise.
21675         * lib/tmpdir.c: Likewise.
21676         * lib/unicodeio.c: Likewise.
21677         * lib/unsetenv.c: Likewise.
21678         * lib/vasnprintf.c: Likewise.
21679         * lib/vasprintf.c: Likewise.
21680         * lib/wait-process.c: Likewise.
21681         * lib/xallocsa.c: Likewise.
21682         * lib/xsetenv.c: Likewise.
21683         * lib/xstriconv.c: Likewise.
21684
21685 2006-09-13  Simon Josefsson  <jas@extundo.com>
21686
21687         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
21688         that internally, suggested by Ralf Wildenhues
21689         <Ralf.Wildenhues@gmx.de>.
21690
21691 2006-09-13  Simon Josefsson  <jas@extundo.com>
21692
21693         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
21694         @LIBOBJS@.
21695         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21696
21697 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21698
21699         * lib/_fpending.c: Include <config.h> unconditionally, since we no
21700         longer worry about uses that don't define HAVE_CONFIG_H.
21701         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
21702         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
21703         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
21704         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
21705         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
21706         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
21707         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
21708         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
21709         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
21710         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
21711         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
21712         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
21713         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
21714         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
21715         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
21716         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
21717         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
21718         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
21719         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
21720         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
21721         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
21722         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
21723         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
21724         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
21725         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
21726         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
21727         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
21728         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
21729         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
21730         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
21731         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
21732         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
21733         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
21734         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
21735         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
21736         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
21737         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
21738         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
21739         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
21740         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
21741         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
21742         Likewise.
21743
21744 2006-09-13  Eric Blake  <ebb9@byu.net>
21745
21746         * lib/getopt.c: Fix typo in last commit.
21747
21748 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21749
21750         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
21751         dgettext.
21752
21753 2006-09-12  Jim Meyering  <jim@meyering.net>
21754
21755         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
21756         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
21757         Reported by Nelson H. F. Beebe.
21758
21759 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21760
21761         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
21762         program_invocation_name and program_invocation_short_name are
21763         initialized.
21764         * lib/argp-namefrob.h: Move declarations of program_invocation_name
21765         and program_invocation_short_name to argp.h, so they are visible
21766         to user programs.
21767         * lib/argp.h: Likewise
21768
21769 2006-09-10  Bruno Haible  <bruno@clisp.org>
21770
21771         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21772         m4/inttypes_h.m4, m4/uintmax_t.m4.
21773
21774 2006-09-10  Bruno Haible  <bruno@clisp.org>
21775
21776         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
21777         gl_AC_TYPE_UINTMAX_T.
21778
21779 2006-09-10  Bruno Haible  <bruno@clisp.org>
21780
21781         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
21782
21783 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21784
21785         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
21786         convention.  Text proposed by Bruno Haible.
21787         (struct argp_option): Document the use of N_() wrappers.
21788
21789         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
21790         '\v', and translate the two parts separately, instead of feeding
21791         the whole string to gettext.  This allows to exclude
21792         '\v' from the strings visible to the translator by writing doc
21793         strings as N_("..") "\v" N_("..").
21794
21795 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
21796
21797         * config/srclist.txt: Undo latest change; the bug was fixed.
21798
21799 2006-09-09  Bruno Haible  <bruno@clisp.org>
21800
21801         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
21802         assignments if building a library without libtool.
21803         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
21804         in func_emit_lib_Makefile_am.
21805         (func_import): When building a static library libfoo.a, arrange to
21806         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
21807         (func_create_testdir): Likewise.
21808         * modules/gc (configure.ac, Makefile.am): If building statically,
21809         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
21810         * modules/iconvme (configure.ac, Makefile.am): Likewise.
21811         * modules/striconv (configure.ac, Makefile.am): Likewise.
21812         Based on a suggestion by Ralf Wildenhues.
21813
21814 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21815
21816         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21817         Check for unistd.h too, since Autoconf doesn't assume POSIX.
21818         Also:
21819
21820         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21821         Add year_2050_test to catch glibc bug 2821
21822         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21823
21824         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21825         Prefer #ifdef to #if.
21826
21827         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
21828         Return from 'main' instead of calling 'exit'.
21829
21830 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21831
21832         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21833         returned the maximum time_t value rather than (time_t) -1.
21834         Problem originally reported by William Bardwell
21835         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21836
21837         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21838         Moved to here ...
21839         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21840         ... from here.
21841
21842 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21843
21844         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
21845         2821 is fixed.
21846
21847 2006-09-08  Jim Meyering  <jim@meyering.net>
21848
21849         Don't make generated files read-only.  That would bother too many
21850         people.  However, do retain the ability to work when targets are
21851         read-only: remove the destination and temporary files before writing
21852         them (when generated via sed or echo), or by using the -f option for
21853         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
21854         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21855         * modules/byteswap, modules/configmake, modules/fcntl:
21856         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21857         * modules/localcharset, modules/netinet_in, modules/poll:
21858         * modules/stdbool, modules/stdint, modules/sys_select:
21859         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21860
21861 2006-09-08  Jim Meyering  <jim@meyering.net>
21862
21863         Avoid new build failure on FreeBSD 6.0.
21864         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
21865         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
21866         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
21867
21868 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21869
21870         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
21871
21872 2006-09-07  Jim Meyering  <jim@meyering.net>
21873
21874         Fix global typo in last change: use chmod u-w, not chmod u-x.
21875         Spotted by Paul Eggert and Bruce Korb.
21876         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21877         * modules/byteswap, modules/configmake, modules/fcntl:
21878         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21879         * modules/localcharset, modules/netinet_in, modules/poll:
21880         * modules/stdbool, modules/stdint, modules/sys_select:
21881         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21882
21883 2006-09-06  Jim Meyering  <jim@meyering.net>
21884
21885         Make generated files be read-only.
21886         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
21887         Ensure that each generated file is now read-only.
21888         * modules/argz: Likewise.
21889         * modules/arpa_inet: Likewise.
21890         * modules/byteswap: Likewise.
21891         * modules/configmake: Likewise.
21892         * modules/fcntl: Likewise.
21893         * modules/fnmatch: Likewise.
21894         * modules/getopt: Likewise.
21895         * modules/glob: Likewise.
21896         * modules/inttypes: Likewise.
21897         * modules/netinet_in: Likewise.
21898         * modules/poll: Likewise.
21899         * modules/stdbool: Likewise.
21900         * modules/stdint: Likewise.
21901         * modules/sys_select: Likewise.
21902         * modules/sys_socket: Likewise.
21903         * modules/sys_stat: Likewise.
21904         * modules/sysexits: Likewise.
21905         * modules/localcharset: Same as above, but continue using temporary
21906         file named "t-$@" (why different?) rather than the "$@-t" used
21907         everywhere else.
21908
21909         * modules/sysexits (Makefile.am): Replace literal occurrences
21910         of "sysexit.h" more readable, and more consistent, "$@".
21911
21912 2006-09-06  Bruno Haible  <bruno@clisp.org>
21913
21914         * modules/striconv: New file.
21915         * modules/xstriconv: New file.
21916         * MODULES.html.sh (Internationalization functions): Add striconv,
21917         xstriconv.
21918
21919 2006-09-06  Bruno Haible  <bruno@clisp.org>
21920
21921         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
21922         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
21923         not using libtool correctly.
21924
21925 2006-09-06  Bruno Haible  <bruno@clisp.org>
21926
21927         * lib/striconv.h: New file.
21928         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
21929         iconvstring.c.
21930         * lib/xstriconv.h: New file.
21931         * lib/xstriconv.c: New file.
21932
21933 2006-09-06  Bruno Haible  <bruno@clisp.org>
21934
21935         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21936         lib_..._LDFLAGS.
21937
21938 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21939
21940         * lib/argz_.h: Sync from Libtool.
21941
21942         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
21943                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21944
21945         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
21946
21947 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21948
21949         * modules/trim: New file.
21950
21951 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21952
21953         * lib/trim.h: New file.
21954         * lib/trim.c: New file.
21955
21956 2006-09-05  Bruno Haible  <bruno@clisp.org>
21957
21958         * MODULES.html.sh (String handling): Add trim.
21959
21960 2006-09-04  Karl Berry  <karl@gnu.org>
21961
21962         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
21963         until next release.
21964
21965 2006-09-03  Bruno Haible  <bruno@clisp.org>
21966
21967         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
21968         correctly.
21969
21970 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21971
21972         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
21973         not gl_GETLOADAVG.  Omit unneeded semicolons.
21974         Problems reported by Ralf Wildenhues in
21975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21976         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
21977         at the end, which is the usual gnulib style.
21978
21979         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
21980         of doing all the work ourselves.
21981         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
21982         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
21983
21984 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21985
21986         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
21987         Problem reported by Ralf Wildenhues in
21988         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21989
21990         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
21991         HAVE_STRUCT_STATFS_F_FSTYPENAME.
21992
21993 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21994
21995         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
21996         yesterday's patch by changing test -n to test -z.
21997
21998 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21999
22000         * modules/getloadavg (Files): Add m4/getloadavg.m4.
22001         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
22002         the former is now obsolescent.
22003
22004         * modules/chdir-long (Depends-on): Add fcntl.
22005
22006 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22007
22008         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
22009         obsolescent, and programs should use gnulib instead.
22010         * m4/getloadavg.m4: New file, with contents taken from Autoconf
22011         but with prefixes changed.
22012
22013 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22014
22015         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
22016         or stdbool.h, because they might not exist while configuring.
22017
22018         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
22019         Don't include unistd.h or limits.h; not needed, since chdir-long.h
22020         does that for us.
22021         (O_DIRECTORY): Remove.
22022
22023 2006-08-31  Eric Blake  <ebb9@byu.net>
22024
22025         * gnulib-tool: Don't let emacs change spaces to TAB.
22026
22027 2006-08-31  Bruno Haible  <bruno@clisp.org>
22028
22029         * gnulib-tool: When calling func_import more than once, do it in a
22030         subshell.
22031         Reported by Eric Blake <ebb9@byu.net>.
22032
22033 2006-08-31  Bruno Haible  <bruno@clisp.org>
22034
22035         * gnulib-tool (nl): Remove variable.
22036         (sed_transform_lib_file): Use more robust test for config-h module.
22037         (func_import): Fix typo in 2006-08-25 patch.
22038
22039 2006-08-31  Bruno Haible  <bruno@clisp.org>
22040
22041         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
22042         specified, augment Makefile.am variables instead of assigning them.
22043
22044 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22045
22046         Work around a bug in both the Linux and SunOS 64-bit kernels:
22047         nanosleep mishandles sleeps for longer than 2**31 seconds.
22048         Problem reported by Frank v Waveren in
22049         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
22051         Check for nanosleep bug.
22052         (LIB_NANOSLEEP): Append clock_gettime library if needed.
22053
22054 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22055
22056         Work around a bug in both the Linux and SunOS 64-bit kernels:
22057         nanosleep mishandles sleeps for longer than 2**31 seconds.
22058         Problem reported by Frank v Waveren in
22059         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
22060         * lib/nanosleep.c (BILLION): New constant.
22061         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
22062         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
22063         implementation.
22064
22065 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22066
22067         * modules/nanosleep (Depends-on): Add gettime.
22068
22069 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
22070         and Simon Josefsson  <jas@extundo.com>
22071         and Oskar Liljeblad  <oskar@osk.mine.nu>
22072
22073         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
22074         * gnulib-tool (func_import): New license type 'unmodifiable license
22075         text'.
22076         * modules/fdl: Use it.  Longer description.
22077         * module/gpl, module/lgpl: New files.
22078
22079 2006-08-30  Jim Meyering  <jim@meyering.net>
22080
22081         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
22082         shadowing the parameter.
22083
22084 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22085
22086         Sync from Libtool:
22087
22088         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22089
22090         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
22091         sharing with gnulib.  Report by Eric Blake.
22092
22093 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22094
22095         * modules/isapipe: New file.
22096         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
22097
22098 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22099
22100         * modules/configmake (Makefile.am): Add a comment, and omit
22101         the CONFIGMAKE_ prefix from generated macro names.  Suggested
22102         by Bruno Haible.
22103
22104 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22105
22106         * m4/isapipe.m4: New file.
22107
22108 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22109
22110         * lib/isapipe.c, lib/isapipe.h: New files.
22111
22112 2006-08-29  Jim Meyering  <jim@meyering.net>
22113
22114         * modules/configmake (Makefile.am): Make configmake.h depend on
22115         Makefile.  Otherwise, a stale configmake.h could hang around.
22116
22117 2006-08-29  Eric Blake  <ebb9@byu.net>
22118
22119         * lib/error.c (error_at_line, print_errno_message): Match libc, after
22120         resolution of upstream bug 3044.
22121
22122 2006-08-29  Bruno Haible  <bruno@clisp.org>
22123
22124         * modules/localcharset (Depends-on): Add configmake.
22125         (Makefile.am): Remove setting of LIBDIR through DEFS.
22126
22127 2006-08-29  Bruno Haible  <bruno@clisp.org>
22128
22129         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
22130         defined.
22131
22132 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22133
22134         * modules/fcntl: New file.
22135         * modules/chdir-safer (Depends-on): Add fcntl.
22136         * modules/fts: Likewise.
22137         * modules/mkdir-p: Likewise.
22138
22139         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
22140         This undoes the most recent change, since we're now addressing the
22141         problem in a different way.
22142
22143         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
22144         into output, since the output might be called Makefile.am even
22145         if $makefile_name is something different.
22146         (func_import): Use $makefile_am rather than
22147         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
22148         empty.
22149
22150         * modules/inttypes (Files): Add m4/inttypes-h.m4.
22151
22152 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22153
22154         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
22155         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
22156         recent change to stdint.m4, since we're now addressing the problem in a
22157         different way.
22158
22159 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22160
22161         * m4/fcntl_h.m4: New file.
22162
22163 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
22164
22165         * lib/fcntl_.h: New file.
22166         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
22167         the fcntl module.
22168         * lib/dirchownmod.c: Likewise.
22169         * lib/fts.c: Likewise.
22170
22171         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
22172         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
22173         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
22174         just before including <inttypes.h>, to avoid circular inclusion.
22175
22176 2006-08-28  Jim Meyering  <jim@meyering.net>
22177
22178         * doc/visibility.texi: Actually read and correct the grammar of the
22179         sentence affected by yesterday's change.
22180
22181 2006-08-28  Eric Blake  <ebb9@byu.net>
22182
22183         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
22184         needs wrapper.
22185
22186 2006-08-28  Eric Blake  <ebb9@byu.net>
22187
22188         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
22189
22190 2006-08-28  Eric Blake  <ebb9@byu.net>
22191
22192         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
22193
22194 2006-08-28  Bruno Haible  <bruno@clisp.org>
22195
22196         * modules/c-strstr: New file, from GNU gettext.
22197         * MODULES.html.sh (String handling): Add c-strstr.
22198
22199 2006-08-28  Bruno Haible  <bruno@clisp.org>
22200
22201         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
22202         macros.
22203         Reported by Eric Blake.
22204
22205 2006-08-28  Bruno Haible  <bruno@clisp.org>
22206
22207         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
22208         (VASNPRINTF): Return a string of length > INT_MAX without failing.
22209         * lib/vasprintf.c: Include errno.h, limits.h.
22210         (EOVERFLOW): New fallback definition.
22211         (vasprintf): Test here whether the string length is > INT_MAX.
22212         * lib/vsnprintf.c: Include errno.h, limits.h.
22213         (EOVERFLOW): New fallback definition.
22214         (vsnprintf): Fix bug when generated string was too long for the buffer.
22215         Test here whether the string length is > INT_MAX.
22216
22217 2006-08-28  Bruno Haible  <bruno@clisp.org>
22218
22219         * lib/inttypes_.h (SCNX*): Remove definitions.
22220         Reported by Eric Blake.
22221
22222 2006-08-28  Bruno Haible  <bruno@clisp.org>
22223
22224         * lib/c-strstr.h: New file, from GNU gettext.
22225         * lib/c-strstr.c: New file, from GNU gettext.
22226
22227 2006-08-28  Bruno Haible  <bruno@clisp.org>
22228
22229         * gnulib-tool: Reorder some statements.
22230
22231 2006-08-28  Bruno Haible  <bruno@clisp.org>
22232
22233         * gnulib-tool: New option --makefile-name.
22234         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
22235         $makefile_name.
22236         (func_import): Write $makefile_name to the cache file, and read it from
22237         there unless explicitly specified. Use $makefile_name as file name
22238         instead of Makefile.am. Adjust the recommendations accordingly.
22239
22240 2006-08-28  Bruno Haible  <bruno@clisp.org>
22241
22242         * gnulib-tool (func_verify_module): Check against misapplying patch.
22243
22244 2006-08-28  Bruno Haible  <bruno@clisp.org>
22245
22246         * gnulib-tool (func_relativize, func_relconcat): New functions.
22247         Give an error if --local-dir is given with --update.
22248         Remove trailing slashes from $local_gnulib_dir.
22249         (func_import): Store the relativized $local_gnulib_dir in
22250         gnulib-cache.m4, and read it from there if not specified explicitly.
22251
22252 2006-08-28  Bruno Haible  <bruno@clisp.org>
22253
22254         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
22255         is the current directory. Respect also $local_gnulib_dir.
22256
22257 2006-08-28  Bruno Haible  <bruno@clisp.org>
22258             Simon Josefsson  <jas@extundo.com>
22259
22260         BeOS portability.
22261         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
22262
22263 2006-08-27  Jim Meyering  <jim@meyering.net>
22264
22265         * doc/visibility.texi: Remove duplicate word: "pointer".
22266
22267 2006-08-26  Bruno Haible  <bruno@clisp.org>
22268
22269         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
22270         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
22271         (Makefile.am): Create inttypes.h from inttypes_.h.
22272         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
22273
22274         * modules/imaxabs: New file.
22275
22276         * modules/imaxdiv: New file.
22277
22278 2006-08-26  Bruno Haible  <bruno@clisp.org>
22279
22280         * m4/inttypes.m4: New file.
22281         * m4/_inttypes_h.m4: Remove file.
22282         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
22283         PRI_MACROS_BROKEN.
22284         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
22285
22286         * m4/imaxabs.m4: New file.
22287
22288         * m4/imaxdiv.m4: New file.
22289
22290 2006-08-26  Bruno Haible  <bruno@clisp.org>
22291
22292         * lib/inttypes_.h: New file.
22293         * lib/inttypes.h: Remove file.
22294         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
22295
22296         * lib/imaxabs.c: New file.
22297
22298         * lib/imaxdiv.c: New file.
22299
22300 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22301
22302         New config-h module, so that "make" output needn't be cluttered
22303         by -DHAVE_CONFIG_H.
22304         * MODULES.html.sh (Support for building libraries and executables):
22305         Add config-h.
22306         * modules/config-h: New file.
22307         * gnulib-tool (nl, sed_transform_lib_file): New vars.
22308         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
22309         the config-h module is used.
22310
22311         New configmake module, so that "make" output needn't be cluttered
22312         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
22313         * MODULES.html.sh (Support for building libraries and executables):
22314         Add configmake.
22315         * modules/configmake: New file.
22316
22317 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22318
22319         * m4/config-h.m4: New file.
22320
22321 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22322
22323         * config/srclist.txt: Add elisp-comp.
22324
22325 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22326
22327         * MODULES.html.sh (Support for building libraries and executables):
22328         Add elisp-comp.
22329         * build-aux/elisp-comp: New file.
22330         * modules/elisp-comp: New file.
22331
22332 2006-08-24  Bruno Haible  <bruno@clisp.org>
22333
22334         * gnulib-tool (func_create_testdir): Use non-default values of
22335         sourcebase and m4base.
22336
22337 2006-08-24  Bruno Haible  <bruno@clisp.org>
22338
22339         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
22340         HTML structure.
22341
22342 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22343
22344         * modules/openat (Depends-on): Add lchown.
22345
22346 2006-08-23  Bruno Haible  <bruno@clisp.org>
22347
22348         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
22349         of gl_LOCK_EARLY instead of gl_LOCK.
22350
22351 2006-08-23  Bruno Haible  <bruno@clisp.org>
22352
22353         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
22354         on OSF/1 to no.
22355         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
22356
22357 2006-08-23  Bruno Haible  <bruno@clisp.org>
22358
22359         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
22360         as unusable.
22361
22362         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
22363         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
22364         (gl_LOCK): New macro.
22365
22366 2006-08-22  Simon Josefsson  <jas@extundo.com>
22367
22368         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
22369         to md5 module.
22370
22371 2006-08-22  Simon Josefsson  <jas@extundo.com>
22372
22373         * MODULES.html.sh: Add "Support for maintaining and release
22374         projects".
22375
22376         * build-aux/gnupload: New file, from coreutils.
22377
22378 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22379
22380         Avoid the need for AC_LIBSOURCES in m4 macros.
22381         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
22382         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
22383         * modules/check-version (EXTRA_DIST): Add check-version.h.
22384         * modules/crc (EXTRA_DIST): Add crc.h.
22385         * modules/des (EXTRA_DIST): Add des.h.
22386         * modules/gc (EXTRA_DIST): Add gc.h.
22387         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
22388         * modules/getline (EXTRA_DIST): Add getline.h.
22389         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
22390         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
22391         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
22392         * modules/md2 (EXTRA_DIST): Add md2.h.
22393         * modules/md4 (EXTRA_DIST): Add md4.h.
22394         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
22395         * modules/read-file (EXTRA_DIST): Add read-file.h.
22396         * modules/readline (EXTRA_DIST): Add readline.h.
22397         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
22398         rijndael-api-fst.h.
22399
22400 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22401
22402         * m4/rijndael.m4 (gl_ARCFOUR):
22403         * m4/arctwo.m4 (gl_ARCTWO):
22404         * m4/check-version.m4 (gl_CHECK_VERSION):
22405         * m4/crc.m4 (gl_CRC):
22406         * m4/des.m4 (gl_DES):
22407         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
22408         * m4/gc.m4 (gl_GC):
22409         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22410         * m4/getline.m4 (gl_FUNC_GETLINE):
22411         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
22412         * m4/hmac-md5.m4 (gl_HMAC_MD5):
22413         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
22414         * m4/md2.m4 (gl_MD2):
22415         * m4/md4.m4 (gl_MD4):
22416         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
22417         * m4/read-file.m4 (gl_FUNC_READ_FILE):
22418         * m4/readline.m4 (gl_FUNC_READLINE):
22419         * m4/rijndael.m4 (gl_RIJNDAEL):
22420         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22421         to get the necessary .h files and whatnot.
22422
22423 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22424
22425         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22426         gnulib rather than the other way around.
22427         * config/srclistvars.sh (COREUTILS): Remove.
22428
22429 2006-08-22  Jim Meyering  <jim@meyering.net>
22430
22431         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22432
22433         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22434
22435 2006-08-22  Eric Blake  <ebb9@byu.net>
22436
22437         * modules/regexprops-generic: New file.
22438         * MODULES.html.sh (Support for building documentation): List it.
22439
22440 2006-08-22  Eric Blake  <ebb9@byu.net>
22441
22442         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22443         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22444         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22445         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22446
22447 2006-08-22  Bruno Haible  <bruno@clisp.org>
22448
22449         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22450         and lib_LTLIBRARIES like the other lib_* variables.
22451
22452 2006-08-22  Bruno Haible  <bruno@clisp.org>
22453
22454         * build-aux/x-to-1.in: New file, from GNU gettext.
22455
22456 2006-08-22  Bruno Haible  <bruno@clisp.org>
22457
22458         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22459         <utmpx.h> exists.
22460
22461 2006-08-22  Bruno Haible  <bruno@clisp.org>
22462
22463         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22464         <utmpx.h> exists.
22465
22466 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22467
22468         BeOS portability.
22469         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22470         exist.
22471         Problem reported by Bruno Haible.
22472
22473 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22474
22475         Avoid the need for AC_LIBSOURCES in m4 macros.
22476         * modules/acl (EXTRA_DIST): Add acl.h.
22477         * modules/argmatch (Files): Add m4/argmatch.m4.
22478         (configure.ac): Add gl_ARGMATCH.
22479         (EXTRA_DIST): Renamed from lib_SOURCES, for
22480         consistency with the other modules.  Remove argmatch.c.
22481         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22482         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22483         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22484         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22485         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22486         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22487         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22488         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22489         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22490         * modules/closeout (EXTRA_DIST): Add closeout.h.
22491         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22492         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22493         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22494         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22495         dirname.h; remove basename.c and stripslash.c.
22496         * modules/exclude (EXTRA_DIST): Add exclude.h.
22497         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22498         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22499         * modules/file-type (EXTRA_DIST): Add file-type.h.
22500         * modules/filemode (EXTRA_DIST): Add filemode.h.
22501         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22502         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22503         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22504         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22505         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22506         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22507         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22508         * modules/getdate (EXTRA_DIST): Add getdate.c.
22509         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22510         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22511         * modules/getpass (EXTRA_DIST): Add getpass.h.
22512         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22513         * modules/group-member (EXTRA_DIST): Add group-member.h.
22514         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22515         * modules/hash (EXTRA_DIST): Add hash.h.
22516         * modules/human (EXTRA_DIST): Add human.h.
22517         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22518         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22519         * modules/lchown (EXTRA_DIST): Add lchown.h.
22520         * modules/long-options (EXTRA_DIST): Add long-options.h.
22521         * modules/lstat (EXTRA_DIST): Add lstat.h.
22522         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
22523         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
22524         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
22525         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
22526         * modules/memxor (EXTRA_DIST): Add memxor.h.
22527         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
22528         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
22529         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
22530         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
22531         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
22532         * modules/physmem (EXTRA_DIST): Add physmem.h.
22533         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
22534         * modules/posixver (EXTRA_DIST): Add posixver.h.
22535         * modules/quote (EXTRA_DIST): Add quote.h.
22536         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
22537         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
22538         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22539         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22540         regex_internal.h regexec.c.
22541         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22542         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22543         * modules/same (EXTRA_DIST): Add same.h.
22544         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22545         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22546         * modules/savedir (EXTRA_DIST): Add savedir.h.
22547         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22548         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22549         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22550         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22551         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22552         * modules/strdup (EXTRA_DIST): Add strdup.h.
22553         * modules/strftime (EXTRA_DIST): Add strftime.h.
22554         * modules/strndup (EXTRA_DIST): Add strndup.h.
22555         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22556         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22557         * modules/time_r (EXTRA_DIST): Add time_r.h.
22558         * modules/timespec (EXTRA_DIST): Add timespec.h.
22559         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22560         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
22561         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
22562         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
22563         * modules/userspec (EXTRA_DIST): Add userspec.h.
22564         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
22565         * modules/utimens (EXTRA_DIST): Add utimens.h.
22566         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
22567         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
22568         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
22569         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
22570         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
22571         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
22572         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
22573         * modules/yesno (EXTRA_DIST): Add yesno.h.
22574
22575 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22576
22577         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
22578
22579         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
22580         * m4/dev-ino.m4, same-inode.m4: Remove.
22581
22582         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
22583         * m4/acl.m4 (AC_FUNC_ACL):
22584         * m4/backupfile.m4 (gl_BACKUPFILE):
22585         * m4/c-strtod.m4 (gl_C99_STRTOLD):
22586         * m4/canon-host.m4 (gl_CANON_HOST):
22587         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22588         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
22589         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
22590         * m4/cloexec.m4 (gl_CLOEXEC):
22591         * m4/close-stream.m4 (gl_CLOSE_STREAM):
22592         * m4/closeout.m4 (gl_CLOSEOUT):
22593         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22594         * m4/dirname.m4 (gl_DIRNAME):
22595         * m4/exclude.m4 (gl_EXCLUDE):
22596         * m4/exitfail.m4 (gl_EXITFAIL):
22597         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
22598         * m4/file-type.m4 (gl_FILE_TYPE):
22599         * m4/filemode.m4 (gl_FILEMODE):
22600         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
22601         * m4/fpending.m4 (gl_FUNC_FPENDING):
22602         * m4/fprintftime.m4 (gl_FPRINTFTIME):
22603         * m4/fts.m4 (gl_FUNC_FTS):
22604         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22605         * m4/getdate.m4 (gl_GETDATE):
22606         * m4/gethrxtime.m4 (gl_GETHRXTIME):
22607         * m4/getpagesize.m4 (gl_GETPAGESIZE):
22608         * m4/getpass.m4 (gl_FUNC_GETPASS):
22609         * m4/gettime.m4 (gl_GETTIME):
22610         * m4/getugroups.m4 (gl_GETUGROUPS):
22611         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
22612         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
22613         * m4/hard-locale.m4 (gl_HARD_LOCALE):
22614         * m4/hash.m4 (gl_HASH):
22615         * m4/idcache.m4 (gl_IDCACHE):
22616         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
22617         * m4/lchown.m4 (gl_FUNC_LCHOWN):
22618         * m4/long-options.m4 (gl_LONG_OPTIONS):
22619         * m4/lstat.m4 (gl_FUNC_LSTAT):
22620         * m4/md5.m4 (gl_MD5):
22621         * m4/memcasecmp.m4 (gl_MEMCASECMP):
22622         * m4/memcoll.m4 (gl_MEMCOLL):
22623         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
22624         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
22625         * m4/memxor.m4 (gl_MEMXOR):
22626         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
22627         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
22628         * m4/modechange.m4 (gl_MODECHANGE):
22629         * m4/mountlist.m4 (gl_MOUNTLIST):
22630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22631         * m4/openat.m4 (gl_FUNC_OPENAT):
22632         * m4/pathmax.m4 (gl_PATHMAX):
22633         * m4/physmem.m4 (gl_PHYSMEM):
22634         * m4/posixtm.m4 (gl_POSIXTM):
22635         * m4/posixver.m4 (gl_POSIXVER):
22636         * m4/quote.m4 (gl_QUOTE):
22637         * m4/quotearg.m4 (gl_QUOTEARG):
22638         * m4/readtokens.m4 (gl_READTOKENS):
22639         * m4/readutmp.m4 (gl_READUTMP):
22640         * m4/regex.m4 (gl_REGEX):
22641         * m4/safe-read.m4 (gl_SAFE_READ):
22642         * m4/safe-write.m4 (gl_SAFE_WRITE):
22643         * m4/same.m4 (gl_SAME):
22644         * m4/save-cwd.m4 (gl_SAVE_CWD):
22645         * m4/savedir.m4 (gl_SAVEDIR):
22646         * m4/settime.m4 (gl_SETTIME):
22647         * m4/sha1.m4 (gl_SHA1):
22648         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
22649         * m4/stat-macros.m4 (gl_STAT_MACROS):
22650         * m4/stat-time.m4 (gl_STAT_TIME):
22651         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
22652         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
22653         * m4/strdup.m4 (gl_FUNC_STRDUP):
22654         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
22655         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22656         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
22657         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
22658         * m4/time_r.m4 (gl_TIME_R):
22659         * m4/timespec.m4 (gl_TIMESPEC):
22660         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
22661         * m4/unlinkdir.m4 (gl_UNLINKDIR):
22662         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
22663         * m4/userspec.m4 (gl_USERSPEC):
22664         * m4/utimecmp.m4 (gl_UTIMECMP):
22665         * m4/utimens.m4 (gl_UTIMENS):
22666         * m4/xalloc.m4 (gl_XALLOC):
22667         * m4/xgetcwd.m4 (gl_XGETCWD):
22668         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
22669         * m4/xreadlink.m4 (gl_XREADLINK):
22670         * m4/xstrtod.m4 (gl_XSTRTOD):
22671         * m4/yesno.m4 (gl_YESNO):
22672         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22673         to get the necessary .h files and whatnot.
22674
22675 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
22676             Bruno Haible  <bruno@clisp.org>
22677
22678         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
22679         /bin/sh understanding of '!' conditional negation.
22680
22681 2006-08-21  Jim Meyering  <jim@meyering.net>
22682
22683         * modules/openat (Depends-on): Really alphabetize.
22684
22685         * modules/acl (Depends-on): Add error and quote.
22686
22687         * check-module (find_included_lib_files): Add at-func.c to the
22688         ok-to-include-more-than-once white list.
22689
22690         * modules/openat (Depends-on): Add lstat.  Alphabetize.
22691
22692 2006-08-21  Bruno Haible  <bruno@clisp.org>
22693
22694         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22695         Emit a pkgdata_DATA variable only if some snippets add contents to it.
22696         Reported by Martin Lambers <marlam@marlam.de>.
22697
22698 2006-08-21  Bruno Haible  <bruno@clisp.org>
22699
22700         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
22701         specify an installation location, don't emit a noinst_LIBRARIES or
22702         noinst_LTLIBRARIES assignment.
22703
22704 2006-08-21  Bruno Haible  <bruno@clisp.org>
22705
22706         BeOS portability.
22707         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
22708         BeOS has mbrtowc() but no <wctype.h>.
22709
22710 2006-08-21  Bruno Haible  <bruno@clisp.org>
22711
22712         BeOS portability.
22713         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
22714         exist.
22715
22716 2006-08-21  Bruno Haible  <bruno@clisp.org>
22717
22718         BeOS portability.
22719         * lib/mbchar.h: Include <wctype.h> only if it exists.
22720
22721 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22722
22723         Remove files that are no longer needed by their respective modules.
22724         * m4/obstack.m4: Remove.
22725         * m4/strerror_r.m4: Remove.
22726         * m4/uint32_t.m4: Remove.
22727         * m4/uintptr_t.m4: Remove.
22728         * m4/ullong_max.m4: Remove.
22729         * m4/xstrtoimax.m4: Remove.
22730         * m4/xstrtoumax.m4: Remove.
22731
22732         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
22733         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
22734         dependencies now capture this.
22735
22736         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
22737         Do not use AC_LIBSOURCES, since gnulib modules now do this.
22738         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
22739         * m4/human.m4 (gl_HUMAN): Likewise.
22740         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
22741         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
22742
22743         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
22744
22745         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
22746         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
22747         stdint.
22748         * m4/human.m4 (gl_HUMAN): Likewise.
22749         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
22750         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
22751         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22752         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22753         * m4/xstrtol (gl_XSTRTOL): Likewise.
22754
22755         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
22756         AC_TYPE_LONG_LONG_INT.
22757         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22758         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
22759         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
22760         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22761
22762         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
22763         on stdbool.
22764
22765         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
22766         (gl_PREREQ_XSTRTOUL): Remove.
22767
22768         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
22769
22770         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
22771         mode.
22772
22773 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22774
22775         Add and change modules to make it easier for coreutils to use
22776         gnulib-tool.
22777         * modules/backupfile (Files): Remove m4/d-ino.m4.
22778         (Depends-on): Add d-ino.
22779         * modules/cycle-check (Depends-on): Add stdint.
22780         (lib_SOURCES): Add cycle-check.h.
22781         * modules/d-ino: New module.
22782         * modules/d-type: New module.
22783         * modules/error (Files): Remove m4/strerror_r.m4.
22784         * modules/filemode (Files): Add m4/st_dm_mode.m4.
22785         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22786         m4/inttypes_h.m4, m4/uintmax_t.m4.
22787         (Depends-on): Add stdint.
22788         (lib_SOURCES): Add fsusage.h.
22789         * modules/getcwd (Files): Remove d-ino.m4.
22790         (Depends-on): Add d-ino.
22791         * modules/getndelim2 (Depends-on): Add stdint.
22792         * modules/glob (Files): Remove m4/d-type.m4.
22793         (Depends-on): Add d-type.
22794         * modules/host-os: New module.
22795         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
22796         m4/inttypes_h.m4, m4/uintmax_t.m4.
22797         * Depends-on: Add stdint.
22798         (lib_SOURCES): Add human.h.
22799         * modules/inttostr (Files): Remove m4/intmax_t.m4,
22800         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
22801         m4/uintmax_t.m4, m4/ulonglong.m4.
22802         (Depends-on): Add stdint.
22803         (EXTRA_DIST): Add inttostr.h.
22804         * modules/lchmod: New module.
22805         * modules/link-follow: New module.
22806         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
22807         (Depends-on): Add lchmod.
22808         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
22809         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
22810         (Depends-on): Add stdint.
22811         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
22812         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
22813         (Depends-on): Add stdint.
22814         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
22815         * modules/perl: New module.
22816         * modules/regex (Depends-on): Add stdint.
22817         * modules/rmdir-errno: New module.
22818         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22819         m4/intmax_t.m4.
22820         (Depends-on): Add stdint.
22821         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22822         m4/uintmax_t.m4.
22823         (Depends-on): Add stdint.
22824         * modules/unlink-busy: New module.
22825         * modules/utimecmp (Depends-on): Add stdint.
22826         * modules/uptime: New module.
22827         * modules/winsz-ioctl: New module.
22828         * modules/winsz-termios: New module.
22829         * modules/xnanosleep (Depends-on): Add nanosleep.
22830         * modules/ullong_max: Remove.
22831         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22832         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22833         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22834         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22835         (Depends-on): Add inttypes.
22836         (lib_SOURCES): Add xstrtol.h.
22837         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22838         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22839         * MODULES.html.sh: Move 'assert' into the assert section.
22840         Move 'dummy' into the linking section.
22841         Remove ullong_max.
22842         Add section for compatibility checks for POSIX:2001 functions,
22843         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22844         winsz-ioctl, and winsz-termios into it.
22845         Add lchmod.
22846         Add top-level Misc section and put host-os, perl, and uptime
22847         into it.
22848
22849 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22850
22851         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
22852         now assume the stdint module.  Do not include inttypes.h.
22853         * lib/fsusage.h: Likewise.
22854         * lib/getndelim2.c: Likewise.
22855         * lib/human.h: Likewise.
22856         * lib/inttostr.h: Likewise.
22857         * lib/obstack.c: Likewise.
22858         * lib/regex_internal.h: Likewise.
22859         * lib/tempname.c: Likewise.
22860         * lib/utimecmp.c: Likewise.
22861         * lib/xstrtol.h: Likewise.
22862
22863         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
22864
22865         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
22866         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
22867         * lib/xtime.h: Likewise.
22868
22869 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22870
22871         * modules/openat (Files): Add lib/fchmodat.c.
22872         Fixes problem reported by Jay Youngman.
22873
22874 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22875
22876         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
22877         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
22878
22879 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22880             Bruno Haible  <bruno@clisp.org>
22881
22882         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
22883         and is a script that invokes bison. Tighten the code. Add comments.
22884
22885 2006-08-18  Jim Meyering  <jim@meyering.net>
22886
22887         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
22888         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
22889         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
22890         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
22891
22892 2006-08-18  Bruno Haible  <bruno@clisp.org>
22893
22894         * modules/bison-i18n: New file.
22895         * MODULES.html.sh (Internationalization functions): Add it.
22896
22897 2006-08-18  Bruno Haible  <bruno@clisp.org>
22898
22899         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
22900         sys/statvfs.h. When getmntinfo was found, check its declaration and
22901         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
22902
22903 2006-08-18  Bruno Haible  <bruno@clisp.org>
22904
22905         * m4/bison-i18n.m4: New file, from bison.
22906
22907 2006-08-18  Bruno Haible  <bruno@clisp.org>
22908
22909         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
22910         (ME_DUMMY): Treat "kernfs" as a dummy.
22911         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
22912
22913 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22914
22915         Update from coreutils.
22916
22917         2006-08-15  Jim Meyering  <jim@meyering.net>
22918
22919         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
22920
22921         2006-01-17  Jim Meyering  <jim@meyering.net>
22922
22923         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
22924
22925         2006-01-11  Jim Meyering  <jim@meyering.net>
22926
22927         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
22928         Check for the lchmod function.
22929
22930 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22931
22932         Update from coreutils.
22933
22934         * lib/__fpending.h: Add copyright notice.
22935         * lib/fprintftime.h: Likewise.
22936         * lib/savedir.c: Use (C) in copyright notice.
22937         * lib/savedir.h: Likewise.
22938
22939         2006-08-15  Jim Meyering  <jim@meyering.net>
22940
22941         * lib/at-func.c: New file, with the logic of all emulated at-functions.
22942         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
22943         in support of the EXPECTED_ERRNO macro.
22944         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
22945         definitions.  Instead, define the appropriate symbols and include
22946         "at-func.c".
22947         * lib/mkdirat.c (mkdirat): Likewise.
22948         * lib/fchmodat.c (fchmodat): Likewise.
22949         (ENOSYS): Remove definition.
22950         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
22951         it.  Don't include "unistd--.h" -- it wasn't ever used.
22952
22953         2006-01-17  Jim Meyering  <jim@meyering.net>
22954
22955         Rewrite fts.c not to change the current working directory,
22956         by using openat, fstatat, fdopendir, etc..
22957
22958         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
22959         (HAVE_OPENAT_SUPPORT): Define.
22960         [_LIBC] (fchdir): Don't undef or define; no longer used.
22961         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
22962         Now, this `function' always succeeds, and consumes its file descriptor
22963         parameter -- so callers must not close such FDs.  Update callers.
22964         (diropen_fd, opendirat, cwd_advance_fd): New functions.
22965         (diropen): Add parameter, SP.  Adjust all callers.
22966         Implement using diropen_fd, rather than open.
22967         (fts_open): Initialize new member, fts_cwd_fd.
22968         Remove fts_rft-setting code.
22969         (fts_close): Close fts_cwd_fd, if necessary.
22970         (__opendir2): Define in terms of opendir or opendirat,
22971         depending on whether the FST_NOCHDIR flag is set.
22972         (fts_build): Since fts_safe_changedir consumes its FD, and since
22973         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
22974         and close the dup'd file descriptor upon failure.
22975         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
22976         (fts_safe_changedir): Tweak semantics to reflect that this function
22977         now calls cwd_advance_fd and hence consumes its FD argument.
22978         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
22979         [struct FTS] (fts_rft): Remove now-unused member.
22980         [struct FTS] (fts_cycle.state): Improve comment.
22981
22982         * lib/openat.c (openat_needs_fchdir): New function.
22983         * lib/openat.h (openat_needs_fchdir): Declare it.
22984
22985 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22986
22987         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
22988         Problem and fix reported by Pádraig Brady in
22989         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
22990
22991 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22992
22993         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
22994
22995 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22996
22997         * lib/memcoll.c (memcoll): Optimize for the common case where the
22998         arguments are bytewise equal.
22999
23000 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23001
23002         * doc/regexprops-generic.texi: Add a copyright notice.
23003
23004 2006-08-15  Bruno Haible  <bruno@clisp.org>
23005
23006         * modules/tmpdir (License): Change to LGPL.
23007
23008 2006-08-15  Bruno Haible  <bruno@clisp.org>
23009
23010         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
23011         module.
23012
23013 2006-08-14  Simon Josefsson  <jas@extundo.com>
23014
23015         * config/srclist.txt: Add gnupload.
23016
23017 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23018
23019         Change copyright notice from LGPL 2 to GPL 2, since that's the
23020         standard form used in the gnulib repository.
23021         * tests/test-lock.c: Likewise.
23022         * tests/test-stdint.c: Likewise.
23023         * tests/test-tls.c: Likewise.
23024
23025         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
23026         prelude-manager.  User shorter URLs for GNU projects, without '?'.
23027         Add copyright notice.
23028
23029         * check-module: Add copyright notice.  Output a copyright
23030         notice if "--version" is specified.
23031         * modules/COPYING: New file.
23032         * tests/test-getaddrinfo.c: Add copyright notice.
23033         * tests/test-verify.c: Likewise.
23034
23035 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23036
23037         Change copyright notice from LGPL 2 to GPL 2, since that's the
23038         standard form used in the gnulib repository.
23039         * lib/lock.c: LGPL -> GPL.
23040         * lib/lock.h: Likewise.
23041         * lib/strnlen1.c: Likewise.
23042         * lib/strnlen1.h: Likewise.
23043         * lib/tls.c: Likewise.
23044         * lib/tls.h: Likewise.
23045         * lib/tmpdir.c: Likewise.
23046
23047         * lib/TODO: Remove; this belongs only in coreutils.
23048
23049 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23050
23051         Add copyright notices to long-enough files that lack them, since
23052         otherwise the files aren't clearly free.  Use the same notice that
23053         getdate.texi already uses.
23054         * doc/alloca-opt.texi: Add copyright notice.
23055         * doc/alloca.texi: Likewise.
23056         * doc/ctime.texi: Likewise.
23057         * doc/functions.texi: Likewise.
23058         * doc/gcd.texi: Likewise.
23059         * doc/gnulib-tool.texi: Likewise.
23060         * doc/inet_ntoa.texi: Likewise.
23061         * doc/visibility.texi: Likewise.
23062
23063         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
23064         * doc/quote.texi: Add copyright notice.
23065
23066         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
23067         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
23068         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
23069         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
23070         is now obsolete, and give a pointer to the Sun list.
23071         Add copyright notice.
23072
23073 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23074
23075         * config/srclistvars.sh: Add copyright notice.
23076
23077 2006-08-14  Eric Blake  <ebb9@byu.net>
23078
23079         Import the following change from libc:
23080
23081         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
23082
23083         Upstream bug 2997.
23084         * lib/misc/error.c: Add space between program name and message if file
23085         name is missing.
23086
23087 2006-08-12  Karl Berry  <karl@gnu.org>
23088
23089         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
23090         remove, these originate in gnulib now.
23091
23092 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23093
23094         * doc/Makefile (standards.info standards.html standards.dvi):
23095         Also depend on make-stds.texi.
23096
23097 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23098
23099         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
23100         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
23101
23102         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
23103         in wchar_t.  Problem reported by Eric Blake.
23104
23105         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
23106         LEN is smaller than SIZE.  Suggested by Bruno Haible.
23107         Also, help the compiler to keep LEN in a register.
23108
23109 2006-08-11  Eric Blake  <ebb9@byu.net>
23110
23111         * users.txt: Sort.  Add tar.
23112
23113 2006-08-11  Bruno Haible  <bruno@clisp.org>
23114
23115         * users.txt: New file.
23116
23117 2006-08-11  Bruno Haible  <bruno@clisp.org>
23118
23119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
23120         before <wchar.h>. Needed for OSF/1 and BSD/OS.
23121
23122 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23123
23124         * modules/snprintf (Depends-on): Remove minmax.
23125         (Maintainer): Add self and Bruno.
23126
23127 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23128
23129         * lib/.cppi-disable: Add snprintf.h, socket_.h.
23130         * lib/snprintf.c: Include <errno.h> and <limits.h>.
23131         (EOVERFLOW): Define if the system does not.
23132         Do not include "minmax.h"; it wasn't used.
23133         (snprintf): Don't assume size_t promotes to an unsigned type.
23134         Fix bug when generated string was too long for the buffer: the
23135         buffer's contents are supposed to be the initial prefix of the
23136         output.  Don't assume vasnprintf returns EOVERFLOW if the size
23137         exceeds INT_MAX; do the check ourselves.
23138
23139         Import the following changes from libc:
23140
23141         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
23142
23143         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
23144         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
23145         set wc to the byte which couldn't be converted.
23146         (re_string_reconstruct): Don't clear valid_raw_len before calling
23147         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
23148         tip_context using re_string_context_at.
23149
23150         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
23151
23152         * lib/posix/regex.h: g++ still cannot handled [restrict].
23153
23154         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
23155
23156         * lib/posix/regex.h: Remove special handling for VMS.
23157
23158 2006-08-10  Jim Meyering  <jim@meyering.net>
23159
23160         * modules/same-inode: New module.
23161         * modules/dev-ino: New module.
23162         * modules/cycle-check: Depend on these modules, rather than simply
23163         including their .h files.
23164         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
23165         required via m4/cycle-check.m4.
23166         * modules/same: Depend on new same-inode module, rather than
23167         including same-inode.h.
23168         * modules/chdir-safer: New file.
23169
23170         * modules/chown (Depends-on): Add stat-macros.
23171
23172 2006-08-10  Jim Meyering  <jim@meyering.net>
23173
23174         * m4/cycle-check.m4: New file.
23175         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
23176         * m4/dev-ino.m4, m4/same-inode.m4: New files.
23177
23178 2006-08-10  Eric Blake  <ebb9@byu.net>
23179
23180         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
23181         in from original proposal.
23182
23183 2006-08-10  Eric Blake  <ebb9@byu.net>
23184         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23185
23186         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
23187         namespace.
23188
23189 2006-08-10  Bruno Haible  <bruno@clisp.org>
23190
23191         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
23192         as well.
23193
23194 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23195
23196         Sync from coreutils.
23197
23198         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
23199
23200         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
23201         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
23202
23203 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23204
23205         * modules/restrict: Remove; no longer needed now that we assume
23206         Autoconf 2.59 or later.
23207         * MODULES.html.sh: Remove 'restrict'.
23208         * modules/argp (Depends-on): Remove 'restrict'.
23209         * modules/base64 (Depends-on): Likewise.
23210         * modules/gc (Depends-on): Likewise.
23211         * modules/getaddrinfo (Depends-on): Likewise.
23212         * modules/glob (Depends-on): Likewise.
23213         * modules/inet_ntop (Depends-on): Likewise.
23214         * modules/inet_pton (Depends-on): Likewise.
23215         * modules/memxor (Depends-on): Likewise.
23216         * modules/regex (Depends-on): Likewise.
23217         * modules/strtok_r (Depends-on): Likewise.
23218         * modules/time_r (Depends-on): Likewise.
23219
23220 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23221
23222         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
23223         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
23224         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23225         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
23226         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23227         * m4/memxor.m4 (gl_MEMXOR): Likewise.
23228         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
23229         gl_C_RESTRICT replaced by AC_C_RESTRICT.
23230
23231         Merge from coreutils.
23232         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
23233         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
23234         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23235         * m4/time_r.m4 (gl_TIME_R): Likewise.
23236
23237 2006-08-09  Karl Berry  <karl@gnu.org>
23238
23239         * config/srclist.txt: no more gettext-tools, per Bruno.
23240
23241 2006-08-08  Eric Blake  <ebb9@byu.net>
23242
23243         * modules/verror: New module.
23244         * MODULES.html.sh: Document it.
23245
23246 2006-08-08  Eric Blake  <ebb9@byu.net>
23247
23248         * lib/verror.h, lib/verror.c: New files.
23249
23250 2006-08-08  Eric Blake  <ebb9@byu.net>
23251
23252         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
23253         verror_at_line output complies with GNU Coding Standards even when
23254         file is NULL.
23255
23256 2006-08-07  Bruno Haible  <bruno@clisp.org>
23257
23258         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
23259         versions of AIX.
23260         Reported by Ralf Wildenhues.
23261
23262 2006-08-07  Bruno Haible  <bruno@clisp.org>
23263
23264         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
23265         in an AC_DEFUN. Needed so that the autoconf snippets can use
23266         AC_REQUIRE.
23267
23268 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23269
23270         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23271         Initialize pkgdata_DATA.
23272         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
23273         overriding it.
23274
23275 2006-08-06  Eric Blake  <ebb9@byu.net>
23276
23277         * lib/error.h: Fold in some upstream changes from glibc.
23278         * lib/error.c: Likewise.
23279
23280 2006-08-04  Bruno Haible  <bruno@clisp.org>
23281
23282         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23283         Make the mostlyclean-local rule depend on mostlyclean-generic.
23284         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
23285
23286 2006-07-31  Bruno Haible  <bruno@clisp.org>
23287
23288         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
23289         <stdlib.h>, <string.h>.
23290
23291 2006-07-30  Bruno Haible  <bruno@clisp.org>
23292
23293         * modules/readlink (License): Change to LGPL.
23294
23295 2006-07-30  Bruno Haible  <bruno@clisp.org>
23296
23297         * modules/javaversion (Makefile.am): Distribute javaversion.java and
23298         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
23299         set PKGDATADIR to point to it.
23300
23301 2006-07-30  Bruno Haible  <bruno@clisp.org>
23302
23303         * modules/csharpexec (configure.ac): Comment out macro invocation.
23304         * modules/javaexec (configure.ac): Likewise.
23305         * modules/javacomp-script (configure.ac): Likewise.
23306
23307         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
23308
23309 2006-07-30  Bruno Haible  <bruno@clisp.org>
23310
23311         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
23312         linked-list.
23313
23314 2006-07-30  Bruno Haible  <bruno@clisp.org>
23315
23316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
23317
23318 2006-07-30  Bruno Haible  <bruno@clisp.org>
23319
23320         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23321         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
23322         get removed.
23323
23324 2006-07-29  Bruno Haible  <bruno@clisp.org>
23325
23326         Make it possible for gnulib-tool to work with locally modified or
23327         augmented gnulib repositories.
23328         * gnulib-tool (func_usage): Document --local-dir option.
23329         (local_gnulib_dir): New variable.
23330         Handle --local-dir option.
23331         (func_lookup_file): New function.
23332         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
23333         (func_get_description, func_get_filelist, func_get_description,
23334         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
23335         func_get_automake_snippet, func_get_include_directive,
23336         func_get_license, func_get_maintainer): Use func_lookup_file.
23337         (func_import, func_create_testdir): Use func_lookup_file.
23338
23339 2006-07-29  Bruno Haible  <bruno@clisp.org>
23340
23341         * modules/setenv (Depends-on): Add unistd.
23342
23343 2006-07-29  Bruno Haible  <bruno@clisp.org>
23344
23345         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
23346
23347 2006-07-29  Bruno Haible  <bruno@clisp.org>
23348
23349         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
23350
23351 2006-07-29  Bruno Haible  <bruno@clisp.org>
23352
23353         * gnulib-tool (import, update): If there is no Makefile.am, look at
23354         aclocal.m4, instead of bailing out.
23355
23356 2006-07-29  Bruno Haible  <bruno@clisp.org>
23357
23358         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
23359         Categorize the options by when they are useful.
23360
23361 2006-07-29  Bruno Haible  <bruno@clisp.org>
23362
23363         * gnulib-tool (func_usage): Document option --no-libtool.
23364         Handle option --no-libtool.
23365         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
23366         for changed semantics of $libtool variable.
23367         (func_import): Likewise. If libtool is not used, show this through
23368         an option --no-libtool.
23369         (func_create_testdir): Update.
23370
23371 2006-07-29  Bruno Haible  <bruno@clisp.org>
23372
23373         * gnulib-tool (func_import): Extend error message about missing
23374         --doc-base.
23375
23376 2006-07-29  Bruno Haible  <bruno@clisp.org>
23377
23378         * gnulib-tool (func_import): Don't create the $docbase directory if
23379         there is no file to store there.
23380
23381 2006-07-29  Bruno Haible  <bruno@clisp.org>
23382
23383         * gnulib-tool (autoconf_minversion): If a --dir option is given and
23384         relevant, look for configure.ac there, not in the current directory.
23385         Also use a simple search for AC_PREREQ, not "autoconf --trace".
23386
23387 2006-07-29  Bruno Haible  <bruno@clisp.org>
23388
23389         * gnulib-tool (SORT): New variable.
23390         (func_usage): Undocument --assume-autoconf option.
23391         Remove --assume-autoconf option handling.
23392         (autoconf_minversion): Determine from the contents of configure.ac.
23393         (func_import): Remove autoconf_minversion handling.
23394         Suggested by Eric Blake.
23395
23396 2006-07-29  Bruno Haible  <bruno@clisp.org>
23397
23398         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
23399
23400 2006-07-29  Bruno Haible  <bruno@clisp.org>
23401
23402         * config/srclist.txt (*setenv.[ch]): Remove rules.
23403
23404 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23405
23406         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
23407
23408 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23409
23410         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
23411         arpa/inet.h.
23412
23413 2006-07-28  Simon Josefsson  <jas@extundo.com>
23414
23415         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
23416         * modules/inet_pton (Depends-on): Likewise.
23417
23418 2006-07-28  Simon Josefsson  <jas@extundo.com>
23419
23420         * m4/netinet_in_h.m4: New file.
23421
23422 2006-07-28  Simon Josefsson  <jas@extundo.com>
23423
23424         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23425         #include's.
23426
23427 2006-07-28  Simon Josefsson  <jas@extundo.com>
23428
23429         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23430         #include's.
23431
23432 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23433
23434         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23435         setgid on directories only if they set these bits.
23436         * lib/modechange.h: Remove obsolete comment about masks.
23437
23438 2006-07-28  Eric Blake  <ebb9@byu.net>
23439
23440         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23441         macro expansion.
23442
23443 2006-07-28  Bruno Haible  <bruno@clisp.org>
23444
23445         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23446
23447 2006-07-28  Bruno Haible  <bruno@clisp.org>
23448
23449         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23450
23451 2006-07-28  Bruno Haible  <bruno@clisp.org>
23452
23453         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23454         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23455         Define fallbacks.
23456         Avoids link error on FreeBSD 4.x.
23457         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23458
23459         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23460         encoding.
23461         * lib/mbswidth.c (iswcntrl): Likewise.
23462
23463 2006-07-27  Bruno Haible  <bruno@clisp.org>
23464
23465         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23466         test.
23467
23468 2006-07-27  Bruno Haible  <bruno@clisp.org>
23469
23470         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23471         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23472         defined.
23473
23474 2006-07-26  Eric Blake  <ebb9@byu.net>
23475
23476         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23477
23478 2006-07-26  Eric Blake  <ebb9@byu.net>
23479
23480         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23481         like mingw that lack mkstemp.
23482         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23483         avoid compilation warning on mingw.
23484
23485 2006-07-26  Bruno Haible  <bruno@clisp.org>
23486
23487         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23488         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23489         INT_FAST*_MIN, INTPTR_MIN.
23490
23491 2006-07-25  Bruno Haible  <bruno@clisp.org>
23492
23493         * modules/version-etc (Depends-on): Add stdarg.
23494
23495 2006-07-25  Bruno Haible  <bruno@clisp.org>
23496
23497         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23498         complex commands.
23499
23500 2006-07-25  Bruno Haible  <bruno@clisp.org>
23501
23502         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23503         defined in <stdarg.h> or config.h.
23504
23505 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23506
23507         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23508         (gl_STDIO_SAFER): Remove.
23509
23510 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23511
23512         * MODULES.html.sh (File stream based Input/Output):
23513         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23514         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23515         * modules/fopen-safer, modules/tmpfile-safer: New files.
23516         * modules/stdio-safer: Remove.
23517
23518 2006-07-24  Bruno Haible  <bruno@clisp.org>
23519
23520         * modules/tmpdir: New file.
23521         * MODULES.html.sh (File system functions): Add it.
23522
23523 2006-07-24  Bruno Haible  <bruno@clisp.org>
23524
23525         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
23526         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
23527
23528 2006-07-24  Bruno Haible  <bruno@clisp.org>
23529
23530         * modules/clean-temp: New file.
23531
23532 2006-07-24  Bruno Haible  <bruno@clisp.org>
23533
23534         * m4/tmpdir.m4: New file, from GNU gettext.
23535
23536 2006-07-24  Bruno Haible  <bruno@clisp.org>
23537
23538         * lib/tmpdir.h: New file, from GNU gettext.
23539         * lib/tmpdir.c: New file, from GNU gettext.
23540
23541 2006-07-24  Bruno Haible  <bruno@clisp.org>
23542
23543         * lib/clean-temp.h: New file, from GNU gettext.
23544         * lib/clean-temp.c: New file, from GNU gettext.
23545
23546 2006-07-23  Eric Blake  <ebb9@byu.net>
23547
23548         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23549         (Depends-on): Add binary-io.
23550
23551 2006-07-23  Eric Blake  <ebb9@byu.net>
23552
23553         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23554
23555 2006-07-23  Eric Blake  <ebb9@byu.net>
23556
23557         * lib/tmpfile-safer.c: New file.
23558         * lib/stdio-safer.h (fopen_safer): Add prototype.
23559         * lib/stdio--.h (tmpfile): Make safer.
23560
23561 2006-07-23  Bruno Haible  <bruno@clisp.org>
23562
23563         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
23564         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
23565         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
23566         gl_linked_remove_at): Use it.
23567
23568 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23569         and Simon Josefsson <jas@extundo.com>
23570
23571         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
23572
23573         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
23574
23575 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23576
23577         * modules/close-stream: New file.
23578         * modules/closeout (Description): Make it clear that it exits
23579         with a diagnostic on error.
23580         (Depends-on): Add close-stream.  Remove fpending, stdbool.
23581         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
23582
23583 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23584
23585         * m4/close-stream.m4: New file.
23586
23587 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23588
23589         * lib/close-stream.c, lib/close-stream.h: New files.
23590
23591 2006-07-22  Bruno Haible  <bruno@clisp.org>
23592
23593         Merge from GNU gettext 0.15.
23594
23595         2006-05-01  Bruno Haible  <bruno@clisp.org>
23596
23597                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
23598
23599         2006-07-22  Bruno Haible  <bruno@clisp.org>
23600
23601                 * modules/javaversion: New file.
23602                 * MODULES.html.sh (Java): Add javaversion.
23603
23604         2006-03-12  Bruno Haible  <bruno@clisp.org>
23605
23606                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
23607
23608         2005-12-04  Bruno Haible  <bruno@clisp.org>
23609
23610                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
23611                 (untested).
23612
23613         2006-06-21  Bruno Haible  <bruno@clisp.org>
23614
23615                 Avoid warnings from recent versions of mcs.
23616                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
23617                 -o, -L, -r any more. Use options documented since mcs-1.0
23618                 instead. Similarly for -g.
23619
23620         2005-12-04  Bruno Haible  <bruno@clisp.org>
23621
23622                 * build-aux/csharpcomp.sh.in: Suffix for resources is
23623                 .resources, not .resource.
23624
23625         2005-07-09  Bruno Haible  <bruno@clisp.org>
23626
23627                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
23628                 add a .dll suffix.
23629                 Reported by Mark Junker <mjscod@gmx.de>.
23630
23631         2006-07-22  Bruno Haible  <bruno@clisp.org>
23632
23633                 * modules/gettext: Upgrade to gettext-0.15.
23634                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
23635                 m4/visibility.m4.
23636                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
23637
23638 2006-07-22  Bruno Haible  <bruno@clisp.org>
23639
23640         Merge from GNU gettext 0.15.
23641
23642         2006-03-25  Bruno Haible  <bruno@clisp.org>
23643
23644                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
23645
23646         2006-07-21  Bruno Haible  <bruno@clisp.org>
23647
23648                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
23649                 "1.1".
23650
23651         2006-05-09  Bruno Haible  <bruno@clisp.org>
23652
23653                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
23654                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
23655                 for the conftestver execution.
23656
23657         2006-05-01  Bruno Haible  <bruno@clisp.org>
23658
23659                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
23660                 optional target-version argument. Verify that the compiler
23661                 groks source of the specified source-version, or add -source
23662                 option as necessary. Verify that the compiler produces
23663                 bytecode in the specified target-version, or add -target and
23664                 -source options as necessary. Make the result of the test
23665                 available as variable CONF_JAVAC. Also log error output in
23666                 config.log.
23667
23668         2006-03-11  Bruno Haible  <bruno@clisp.org>
23669
23670                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
23671
23672         2006-05-09  Bruno Haible  <bruno@clisp.org>
23673
23674                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
23675                 CLASSPATH_SEPARATOR to a semicolon.
23676
23677         2006-03-12  Bruno Haible  <bruno@clisp.org>
23678
23679                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
23680                 available as variable CONF_JAVA, for subsequent autoconf
23681                 tests. Also log error output in config.log.
23682
23683         2006-07-19  Bruno Haible  <bruno@clisp.org>
23684
23685                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
23686                 that getline works on glibc2 systems. Needed to avoid trouble
23687                 in relocatable.c.
23688                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
23689
23690         2005-12-04  Bruno Haible  <bruno@clisp.org>
23691
23692                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
23693                 launcher (untested).
23694
23695         2005-12-04  Bruno Haible  <bruno@clisp.org>
23696
23697                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
23698
23699         2006-07-22  Bruno Haible  <bruno@clisp.org>
23700
23701                 * gettext.m4: Update from GNU gettext-0.15.
23702                 * nls.m4: Likewise.
23703                 * po.m4: Likewise.
23704                 * inttypes-pri.m4: Likewise.
23705                 * inttypes-h.m4: Renamed from inttypes.m4.
23706                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
23707
23708 2006-07-22  Bruno Haible  <bruno@clisp.org>
23709
23710         Merge from GNU gettext 0.15.
23711
23712         2005-07-05  Bruno Haible  <bruno@clisp.org>
23713
23714                 * printf-args.c (printf_fetchargs): Work around broken
23715                 definition of wint_t on mingw.
23716
23717         2005-02-12  Bruno Haible  <bruno@clisp.org>
23718
23719                 * xallocsa.h: Add extern "C" for C++.
23720
23721         2006-05-17  Bruno Haible  <bruno@clisp.org>
23722
23723                 Cygwin portability.
23724                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
23725
23726         2006-04-30  Bruno Haible  <bruno@clisp.org>
23727
23728                 * progreloc.c: Include <mach-o/dyld.h> if available.
23729                 (find_executable): Use _NSGetExecutablePath when possible.
23730
23731         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23732
23733                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
23734                 function.
23735
23736         2005-12-29  Bruno Haible  <bruno@clisp.org>
23737
23738                 * progreloc.c (set_program_name_and_installdir): Fix
23739                 compilation error.
23740
23741         2005-12-04  Bruno Haible  <bruno@clisp.org>
23742
23743                 Cygwin portability.
23744                 * progreloc.c: Include <windows.h> also on Cygwin.
23745                 (find_executable): Add support for Cygwin.
23746                 (set_program_name_and_installdir): Handle also platforms with
23747                 nonempty EXEEXT.
23748
23749         2006-07-11  Bruno Haible  <bruno@clisp.org>
23750
23751                 * javacomp.c: Fix a comment.
23752                 Reported by Jim Meyering.
23753
23754         2006-04-30  Bruno Haible  <bruno@clisp.org>
23755
23756                 * javacomp.h (compile_java_class): Add source_version,
23757                 target_version arguments.
23758                 * javacomp.c: Rewritten to choose only a compiler that
23759                 respects the specified source_version and target_version.
23760
23761         2006-06-27  Bruno Haible  <bruno@clisp.org>
23762
23763                 Assume correct S_ISDIR macro.
23764                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
23765
23766         2006-07-22  Bruno Haible  <bruno@clisp.org>
23767
23768                 * javaversion.h: New file, from GNU gettext.
23769                 * javaversion.c: New file, from GNU gettext.
23770                 * javaversion.java: New file, from GNU gettext.
23771                 * javaversion.class: New file, from GNU gettext.
23772
23773         2006-05-17  Bruno Haible  <bruno@clisp.org>
23774
23775                 Cygwin portability.
23776                 * javaexec.c (execute_java_class): Test for jview program
23777                 also on Cygwin.
23778
23779         2006-04-09  Bruno Haible  <bruno@clisp.org>
23780
23781                 * fatal-signal.c: Don't include string.h.
23782                 (at_fatal_signal): Use a copying loop instead of memcpy.
23783
23784         2005-12-04  Bruno Haible  <bruno@clisp.org>
23785
23786                 * csharpexec.c: Add support for 'clix' launcher (untested).
23787                 (execute_csharp_using_sscli): New function.
23788                 (execute_csharp_program): Call it.
23789
23790         2006-06-21  Bruno Haible  <bruno@clisp.org>
23791
23792                 Avoid warnings from recent versions of mcs.
23793                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
23794                 -o, -L, -r any more. Use options documented since mcs-1.0
23795                 instead. Similarly for -g.
23796
23797         2005-07-09  Bruno Haible  <bruno@clisp.org>
23798
23799                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
23800                 add a .dll suffix.
23801                 Reported by Mark Junker <mjscod@gmx.de>.
23802
23803         2006-06-17  Bruno Haible  <bruno@clisp.org>
23804
23805                 * config.charset: Update for NetBSD 3.0.
23806
23807         2006-05-17  Bruno Haible  <bruno@clisp.org>
23808
23809                 Cygwin portability.
23810                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
23811
23812         2006-05-16  Bruno Haible  <bruno@clisp.org>
23813
23814                 * localcharset.c [CYGWIN]: Include <windows.h>.
23815                 (get_charset_aliases): For Cygwin, return the same CPxxx
23816                 aliases list as under WIN32.
23817                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
23818                 the environment variables. Fall back to GetACP().
23819
23820         2006-04-05  Bruno Haible  <bruno@clisp.org>
23821
23822                 * config.charset: Update Juan Manuel Guerrero's address.
23823
23824         2005-02-12  Bruno Haible  <bruno@clisp.org>
23825
23826                 * allocsa.h: Add extern "C" for C++.
23827
23828         2005-02-10  Bruno Haible  <bruno@clisp.org>
23829
23830                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23831                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23832
23833         2006-07-22  Bruno Haible  <bruno@clisp.org>
23834
23835                 * gettext.h: Update to GNU gettext-0.15.
23836
23837 2006-07-22  Bruno Haible  <bruno@clisp.org>
23838
23839         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23840         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23841         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23842
23843 2006-07-21  Eric Blake  <ebb9@byu.net>
23844
23845         * modules/stdlib-safer: New file.
23846         * MODULES.html.sh (File stream based Input/Output): Add
23847         stdlib-safer.
23848
23849 2006-07-21  Eric Blake  <ebb9@byu.net>
23850
23851         * lib/stdlib-safer.h: New file from coreutils, required by
23852         stdlib--.h.
23853
23854 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
23855
23856         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
23857
23858 2006-07-20  Bruno Haible  <bruno@clisp.org>
23859
23860         * gnulib-tool: Recognize new option --assume-autoconf.
23861         (autoconf_minversion): New variable.
23862         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
23863
23864 2006-07-20  Bruno Haible  <bruno@clisp.org>
23865
23866         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
23867
23868 2006-07-19  Derek R. Price  <derek@ximbiot.com>
23869
23870         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
23871         Reindent and repaginate.
23872
23873 2006-07-19  Derek Price  <derek@ximbiot.com>
23874
23875         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
23876         Correct grammar.
23877
23878 2006-07-17  Bruno Haible  <bruno@clisp.org>
23879
23880         * modules/list: New file.
23881         * modules/array-list: New file.
23882         * modules/carray-list, modules/carray-list-tests: New files.
23883         * modules/linked-list, modules/linked-list-tests: New files.
23884         * modules/avltree-list, modules/avltree-list-tests: New files.
23885         * modules/rbtree-list, modules/rbtree-list-tests: New files.
23886         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
23887         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
23888         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
23889         * modules/oset: New file.
23890         * modules/array-oset: New file.
23891         * modules/avltree-oset, modules/avltree-oset-tests: New files.
23892         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
23893         * tests/test-carray_list.c: New file.
23894         * tests/test-linked_list.c: New file.
23895         * tests/test-avltree_list.c: New file.
23896         * tests/test-rbtree_list.c: New file.
23897         * tests/test-linkedhash_list.c: New file.
23898         * tests/test-avltreehash_list.c: New file.
23899         * tests/test-rbtreehash_list.c: New file.
23900         * tests/test-avltree_oset.c: New file.
23901         * tests/test-rbtree_oset.c: New file.
23902         * MODULES.html.sh (Container data structures): New section.
23903
23904 2006-07-17  Bruno Haible  <bruno@clisp.org>
23905
23906         * m4/gl_list.m4: New file.
23907
23908 2006-07-17  Bruno Haible  <bruno@clisp.org>
23909
23910         * lib/gl_list.h: New file.
23911         * lib/gl_list.c: New file.
23912         * lib/gl_array_list.h: New file.
23913         * lib/gl_array_list.c: New file.
23914         * lib/gl_carray_list.h: New file.
23915         * lib/gl_carray_list.c: New file.
23916         * lib/gl_linked_list.h: New file.
23917         * lib/gl_linked_list.c: New file.
23918         * lib/gl_anylinked_list1.h: New file.
23919         * lib/gl_anylinked_list2.h: New file.
23920         * lib/gl_avltree_list.h: New file.
23921         * lib/gl_avltree_list.c: New file.
23922         * lib/gl_anyavltree_list1.h: New file.
23923         * lib/gl_anyavltree_list2.h: New file.
23924         * lib/gl_rbtree_list.h: New file.
23925         * lib/gl_rbtree_list.c: New file.
23926         * lib/gl_anyrbtree_list1.h: New file.
23927         * lib/gl_anyrbtree_list2.h: New file.
23928         * lib/gl_anytree_list1.h: New file.
23929         * lib/gl_anytree_list2.h: New file.
23930         * lib/gl_linkedhash_list.h: New file.
23931         * lib/gl_linkedhash_list.c: New file.
23932         * lib/gl_anyhash_list1.h: New file.
23933         * lib/gl_anyhash_list2.h: New file.
23934         * lib/gl_avltreehash_list.h: New file.
23935         * lib/gl_avltreehash_list.c: New file.
23936         * lib/gl_rbtreehash_list.h: New file.
23937         * lib/gl_rbtreehash_list.c: New file.
23938         * lib/gl_anytreehash_list1.h: New file.
23939         * lib/gl_anytreehash_list2.h: New file.
23940
23941         * lib/gl_oset.h: New file.
23942         * lib/gl_oset.c: New file.
23943         * lib/gl_array_oset.h: New file.
23944         * lib/gl_array_oset.c: New file.
23945         * lib/gl_avltree_oset.h: New file.
23946         * lib/gl_avltree_oset.c: New file.
23947         * lib/gl_rbtree_oset.h: New file.
23948         * lib/gl_rbtree_oset.c: New file.
23949         * lib/gl_anytree_oset.h: New file.
23950
23951 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23952
23953         * m4/mkancesdirs.m4: New file.
23954         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
23955         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
23956         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
23957         it.
23958
23959 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23960
23961         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
23962         * lib/mkancesdirs.h: New files.
23963         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
23964         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
23965         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
23966         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
23967         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
23968         callers changed.  Revamp internals significantly, by not
23969         attempting to create directories that are temporarily more
23970         permissive than the final results.  Do not attempt to use
23971         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
23972         This removes some race conditions, fixes some bugs, and simplifies
23973         things.  Use new dirchownmod function to do owner and mode changes.
23974         * lib/mkdir-p.h: Likewise.
23975         * lib/modechange.c (octal_to_mode): New function.
23976         (struct mode_change): New member mentioned.
23977         (make_node_op_equals): New arg mentioned.  All callers changed.
23978         (mode_compile): Keep track of which mode bits the user has explicitly
23979         mentioned.
23980         (mode_adjust): New arg DIR, so that we implement the X op correctly.
23981         New arg PMODE_BITS, to keep track of which mode bits the user
23982         mentioned; it treats S_ISUID and S_ISGID speciall.
23983         All callers changed.
23984         * lib/modechange.h: Likewise.
23985
23986 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23987
23988         * MODULES.html.sh: Add mkancestors.
23989         * modules/mkancesdirs: New module.
23990         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
23991         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
23992         The chdir-safer and afs files are now orphans; I'll remove them
23993         unless someone speaks up.
23994         Add lib/dirchownmod.c, lib/dirchownmod.h.
23995         (Depends-on): Remove alloca, chown, save-cwd, dirname.
23996         Add lchown, mkancesdirs.
23997         (Maintainer): Add self.
23998
23999 2006-07-15  Karl Berry  <karl@gnu.org>
24000
24001         * gnulib-tool: help message wording/arrangement.
24002
24003 2006-07-14  Simon Josefsson  <jas@extundo.com>
24004
24005         * doc/gnulib.texi (Libtool and Windows): New section.
24006
24007 2006-07-12  Simon Josefsson  <jas@extundo.com>
24008
24009         * modules/gendocs (License): Fix license, approved by Karl.
24010
24011 2006-07-12  Eric Blake  <ebb9@byu.net>
24012
24013         * MODULES.html.sh: Add gendocs.
24014
24015 2006-07-11  Eric Blake  <ebb9@byu.net>
24016
24017         * modules/fdl: New module, to install doc/fdl.texi.
24018         * MODULES.html.sh: Add new section for documentation modules.
24019         * gnulib-tool: Avoid space-tab.
24020         (--doc-base): New option, to manage files from doc.
24021
24022 2006-07-11  Eric Blake  <ebb9@byu.net>
24023
24024         * m4/absolute-header.m4: Fix comments to match recent change.
24025
24026 2006-07-11  Eric Blake  <ebb9@byu.net>
24027
24028         * gnulib-tool: List --doc-base before --tests-base.
24029
24030 2006-07-11  Derek R. Price  <derek@ximbiot.com>
24031
24032         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
24033
24034 2006-07-11  Bruno Haible  <bruno@clisp.org>
24035
24036         * README: Mention where to put documentation.
24037
24038 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24039
24040         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
24041
24042 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24043
24044         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
24045         to stdint.m4.
24046
24047 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
24048
24049         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
24050         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
24051         "no/such/file/stdint.h" when there is no such file, so that
24052         the resulting C code can be parsed by dodgy compilers.
24053         Problems reported by Bob Proulx.
24054
24055 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24056
24057         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
24058         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24059         macros into the GNU _D_EXACT_NAMLEN.
24060         * lib/savedir.c:  Likewise.
24061         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
24062
24063 2006-07-10  Derek R. Price  <derek@ximbiot.com>
24064         and Paul Eggert  <eggert@cs.ucla.edu>
24065
24066         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
24067         * m4/savedir.m4:
24068         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
24069         macros into the GNU _D_EXACT_NAMLEN.
24070
24071 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24072
24073         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
24074         around the absolute name, to work around a problem with the HP-UX
24075         11.23 native C compiler, reported by Bob Proulx.
24076
24077 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24078
24079         * doc/maintain.texi, make-stds.texi: Sync from
24080         <http://savannah.gnu.org/projects/gnustandards>.
24081
24082 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24083
24084         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
24085
24086 2006-07-09  Jim Meyering  <jim@meyering.net>
24087
24088         * m4/glob.m4: Remove a doubled word in a comment.
24089
24090 2006-07-09  Jim Meyering  <jim@meyering.net>
24091
24092         * lib/argp-pv.c: Remove a doubled word in a comment.
24093         * lib/check-version.c (check_version): Likewise.
24094         * lib/javacomp.c (compile_java_class): Likewise.
24095
24096 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24097
24098         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
24099         for the benefit of people using Autoconf 2.60.  If you want to
24100         support older Autoconf versions you can copy m4/onceonly_2_57.m4
24101         (or m4/onceonly.m4, if pre-2.57) manually.
24102
24103 2006-07-08  Jim Meyering  <jim@meyering.net>
24104
24105         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
24106         comment.
24107         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
24108         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
24109         comment.
24110
24111 2006-07-08  Jim Meyering  <jim@meyering.net>
24112
24113         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
24114
24115 2006-07-07  Simon Josefsson  <jas@extundo.com>
24116
24117         * tests/test-crc.c: Change expected crc value, the test vector
24118         were probably computed using the old broken crc.c?
24119
24120 2006-07-06  Simon Josefsson  <jas@extundo.com>
24121
24122         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
24123         now the canonical place for the M4 file).
24124
24125         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
24126         from the sys_socket dependency now.
24127
24128         * modules/inet_pton (Files): Ditto.
24129
24130         * modules/inet_ntop (Files): Ditto.
24131
24132 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24133
24134         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
24135         not gl_PREREQ_GETUSERSHELL.
24136
24137 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24138
24139         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
24140         with only one argument, for Autoconf 2.60.
24141         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
24142         expand to nothing, so add a shell command to avoid syntax error.
24143         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24144
24145 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24146
24147         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
24148
24149 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24150
24151         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
24152         no longer needed.  Check for isblank decl.
24153         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
24154         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
24155         of existence.
24156
24157 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24158
24159         * lib/getloadavg.c: Use __VMS, not VMS.
24160         * lib/getopt.c: Likewise.
24161         * lib/getpagesize.h: Likewise.
24162         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
24163         and probably does not work.
24164
24165 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24166
24167         * lib/.cppi-disable: Add wcwidth.
24168         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
24169         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
24170         (ISGRAPH): Remove.  All uses changed to isgraph.
24171         (FOLD) [!defined _LIBC]: Remove special case.
24172         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
24173         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
24174         HAVE_ISBLANK.
24175         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
24176         case.
24177
24178 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24179
24180         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
24181         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
24182         brackets.  Other minor changes to suppress some compiler
24183         warnings.
24184
24185 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24186         and Paul Eggert  <eggert@cs.ucla.edu>
24187
24188         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
24189         of invoking obsolescent AC_HEADER_DIRENT macro.
24190         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24191         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
24192         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24193         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
24194         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
24195         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
24196         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
24197         * m4/readdir.m4: Remove; no longer needed.
24198
24199 2006-07-06  Derek R. Price  <derek@ximbiot.com>
24200         and Paul Eggert  <eggert@cs.ucla.edu>
24201
24202         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
24203         Don't worry about this obsolete case any more.
24204         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
24205         directories.
24206         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
24207         worry about this obsolete case any more.
24208         * lib/fts.c: Likewise.
24209         * lib/getcwd.c: Likewise.
24210         * lib/glob.h: Likewise.
24211         * lib/savedir.c: Likewise.
24212
24213 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24214
24215         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
24216         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
24217         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
24218         needed.
24219         All uses removed.
24220         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24221         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24222         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
24223         needed.
24224         * m4/getdate.m4 (gl_GETDATE): Likewise.
24225         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24226         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24227         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24228         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24229         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
24230         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24231         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
24232         needed.
24233
24234 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
24235
24236         * lib/memcasecmp.c: Include <limits.h>.
24237         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
24238         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
24239         Don't assume isdigit succeeds only on '0' through '9'.
24240
24241 2006-07-05  Eric Blake  <ebb9@byu.net>
24242
24243         * modules/getaddrinfo (Depends-on): Add snprintf.
24244
24245 2006-07-05  Eric Blake  <ebb9@byu.net>
24246
24247         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
24248         to avoid 'header present but could not be compiled' on cygwin.
24249
24250 2006-07-05  Eric Blake  <ebb9@byu.net>
24251
24252         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
24253         missing from netdb.h.
24254         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
24255
24256 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24257
24258         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
24259         no longer needed.
24260         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
24261         * m4/getdate.m4 (gl_GETDATE): Likewise.
24262         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
24263         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
24264         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24265         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
24266         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24267
24268 2006-07-05  Derek R. Price  <derek@ximbiot.com>
24269
24270         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
24271         All uses of is_space replaced by isspace.
24272         * lib/exit.h: Don't talk about STDC_HEADERS.
24273         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
24274         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
24275         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
24276         replaced by isprint etc.
24277         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
24278         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24279         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
24280         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
24281         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
24282         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
24283
24284 2006-07-05  Bruno Haible  <bruno@clisp.org>
24285
24286         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
24287         the function exists, before testing against AIX.
24288         Reported by Martin Lambers <marlam@marlam.de>.
24289
24290 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24291
24292         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
24293         From Mark D. Baushke.
24294
24295 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
24296
24297         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
24298         to the absolute name, not just one, to bypass Sun C 5.8's
24299         "warning: #include of /usr/include/... may be non-portable".
24300
24301 2006-07-04  Eric Blake  <ebb9@byu.net>
24302
24303         * modules/dirname-tests: New test module.
24304         * tests/test-dirname.c: New file, replacing dirname.c
24305         TEST_DIRNAME section that was recently deleted.
24306
24307 2006-07-04  Bruno Haible  <bruno@clisp.org>
24308
24309         Assume ANSI C header files and <ctype.h> functions.
24310         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
24311         (mbsnwidth): Use isprint, iscntrl instead.
24312
24313 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24314
24315         Merge from coreutils.
24316         * MODULES.html.sh: Add xstrtold.
24317         * modules/xstrtold: New file.
24318         * modules/cycle-check (Files): Add lib/same-inode.h.
24319         * modules/dirname (Files): Add m4/double-slash-root.m4.
24320         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
24321         * modules/mkdir-p (Files): Add lib/same-inode.h.
24322         * modules/same (Files): Add lib/same-inode.h.
24323
24324 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24325
24326         * m4/absolute-header.m4: Renamed from full-header-path.m4.
24327         This is to keep the terminology clean; POSIX talks about
24328         "absolute pathnames", not "full pathnames", but the GNU
24329         Coding Standards say to use "path" for something else;
24330         so use "absolute" to keep both sides happy.
24331         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
24332         Set gl_absolute_header, not gl_full_header_path.
24333         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
24334         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
24335         All uses changed.
24336
24337         Merge from coreutils.
24338
24339         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24340
24341         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
24342         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
24343         want to require the building of c-strtod.o.
24344         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
24345         needs -lm directly.
24346         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
24347
24348         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24349
24350         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
24351         --as-needed option if available.  Problem reported by Albert Chin in
24352         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
24353         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
24354         cc merely issues a bunch of annoying warnings for --as-needed
24355         (this problem was reported by Bob Proulx).  Also, try linking with
24356         -lm to detect a bug in binutils 2.16 (this problem was reported
24357         by Ralf Wildenhues).
24358
24359         2006-06-18  Jim Meyering  <jim@meyering.net>
24360
24361         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
24362         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
24363         macro.
24364         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
24365         also check for glibc-2.4's abort-inducing bug.
24366
24367         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
24368         Low-probability clean-up should be to use rmdir to get rid of
24369         the just-created directory, not unlink.
24370
24371         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
24372         configure fail, and request a bug report to inform us about it.
24373         Add a comment that, barring reports to the contrary, in 2007 we'll
24374         assume ftruncate is universally available.
24375
24376         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24377
24378         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
24379
24380         2006-03-12  Jim Meyering  <jim@meyering.net>
24381
24382         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
24383         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
24384         * m4/same.m4 (gl_SAME): Likewise.
24385         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
24386
24387         2006-03-11  Eric Blake  <ebb9@byu.net>
24388
24389         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
24390         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
24391         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
24392         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
24393
24394 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24395
24396         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
24397         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
24398         reported by Mark D. Baushke, one in
24399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
24400
24401         Merge from coreutils.
24402
24403         * lib/.cppi-disable: Add stdint_.h.
24404         * lib/.cvsignore: Add stdint.h.
24405
24406         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24407
24408         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
24409         both double and long double versions.
24410         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
24411         * lib/xstrtold.c: New file.
24412         * lib/xstrtod.h (xstrtold): New decl.
24413
24414         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24415
24416         * lib/filemode.c (setst): Remove.
24417         (strmode): Rewrite to avoid setst.  This makes the code shorter,
24418         (arguably) clearer, and the generated code is a bit smaller on my
24419         Debian GNU/Linux stable x86 host.
24420
24421         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24422
24423         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24424         Assume that filemode.h includes sys/types.h and sys/stat.h.
24425         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24426         (ftypelet): Reorder to put common cases first, for efficiency.
24427         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24428         to do 'M'.
24429         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24430         of 10, for compatibility with FreeBSD.  All callers changed.
24431         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24432         types that can't be deduced solely from st_mode.  First arg is now a
24433         const pointer.
24434         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24435         (strmode): Renamed from mode_string.
24436         (filemodestring): New decl.
24437         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24438         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24439         needed.
24440         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24441
24442         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24443
24444         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24445         fsusage.h now does that.  Include fsusage.h first, to test interface.
24446         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24447         at most one method (the old code could have generated decls that
24448         didn't conform to C89, not that this was ever exercised).
24449         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24450
24451         2006-03-19  Jim Meyering  <jim@meyering.net>
24452
24453         Work even in a chroot where d_ino values for entries in "/"
24454         don't match the stat.st_ino values for the same names.
24455         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24456         number, iterate through all entries again, using lstat instead.
24457         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24458         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24459
24460         * lib/getcwd.c (__getcwd): Clarify a comment.
24461         Use memcpy in place of a call to strcpy.
24462
24463         2006-03-12  Jim Meyering  <jim@meyering.net>
24464
24465         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24466         matches that of the current directory (which we're about to chdir ".."
24467         out of), then save the dev-ino of the parent, instead.
24468
24469         * lib/same-inode.h (SAME_INODE): New file/macro.
24470         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24471         Include "same-inode.h", instead.
24472         * lib/same.c: Likewise.
24473         * lib/cycle-check.h: Include "same-inode.h".
24474         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24475         * lib/cycle-check.c (SAME_INODE): Remove definition.
24476         * lib/root-dev-ino.h: Include "same-inode.h".
24477
24478         2006-03-11  Eric Blake  <ebb9@byu.net>
24479
24480         * lib/same.c (same_name): s/base_name/last_component/
24481         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24482         * lib/filenamecat.c (file_name_concat): Likewise.
24483
24484         2006-03-11  Eric Blake  <ebb9@byu.net>,
24485                     Paul Eggert  <eggert@cs.ucla.edu>
24486
24487         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24488         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24489         drive prefix.
24490         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24491         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24492         (last_component): New method.
24493         * lib/dirname.c (dir_len): Determine when drive letters need a
24494         subsequent slash.  Preserve // when it is special.
24495         (dir_name): Don't append dot when drive letter is absolute.
24496         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24497         * lib/basename.c (base_name): New semantics - malloc the result.
24498         Preserve // when it is special.  Preserve relative files that look
24499         like drive letters.
24500         (base_len): Preserve // when it is special.
24501         (last_component): New method, similar to old base_name semantics.
24502         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24503         base_name.  Strip redundant slashes from ///.
24504
24505 2006-07-03  Jim Meyering  <jim@meyering.net>
24506
24507         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24508         macro is used before the first cycle_check call.
24509
24510 2006-07-03  Eric Blake  <ebb9@byu.net>
24511
24512         * modules/dirname (Depends-on): Add xstrndup.
24513
24514 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24515
24516         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24517         test cases, so that config.log is a bit easier to follow.
24518
24519 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24520
24521         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
24522         both are 64 bits, since this seems to be the tradition, and this
24523         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
24524         we ever run into a host that prefers long long to long in this
24525         case, we'll need another configure-time test.  Problem reported by
24526         Jim Meyering.
24527
24528 2006-07-02  Eric Blake  <ebb9@byu.net>
24529
24530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
24531
24532 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24533
24534         * modules/inttypes (Depends-on): No longer depends on stdint.
24535         * modules/stdint (Description): Say more about assumptions.
24536         Say that the fast types might differ.  Say macros are used.
24537         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
24538         (Makefile.am): Revise list of substituted symbols to match
24539         new stdint.m4.
24540         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24541         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24542         * tests/test-stdint.c (verify_same_types)
24543         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24544         the code conforms to C99/C89.
24545         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24546         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24547
24548 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24549
24550         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24551         but fix a bug, by requiring at least 64 bits.
24552         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24553         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24554         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24555         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24556
24557         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
24558         changes.  Make 2.59 a prerequisite.  Check and substitute for
24559         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
24560         inttypes.h.  Do not use special include files; just use the
24561         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
24562         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
24563         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
24564         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
24565         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
24566         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
24567         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
24568         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
24569         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
24570         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
24571         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
24572         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
24573         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
24574         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
24575         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
24576         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
24577         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
24578         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
24579         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
24580         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
24581         WINT_MAX.  Check for C99 conformance more strictly, by detecting
24582         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
24583         not check for things that C99 does not require, e.g., int8_t.  If
24584         a test isn't needed unless <stdint.h> isn't working, and is
24585         unlikely to be needed for any other reason, then don't do it
24586         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
24587         size_t, since we assume C89 freestanding at least.  Do not check
24588         for sig_atomic_t, wchar_t, or wint_t, since the code now does
24589         the right thing even if the types are not defined.  Instead use:
24590         (gl_STDINT_TYPE_PROPERTIES): New macro.
24591         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
24592         testing whether <sys/types.h> clashes, as Autoconf does this for
24593         us now.  All uses removed.
24594         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
24595         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
24596         (gl_CHECK_TYPE_SAME):
24597         Remove; no longer needed.
24598         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
24599         exists, since we'll return 0 anyway in that case.
24600         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
24601
24602 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24603
24604         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
24605         possible collision with system files.
24606         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
24607         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
24608         WCHAR_MIN and WCHAR_MAX in this case.
24609         (<stddef.h>): Do not include; no longer needed.
24610         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
24611         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
24612         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
24613         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
24614         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
24615         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
24616         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
24617         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
24618         !defined(__c99))]: Include in this case too, since it's harmless
24619         now.
24620         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
24621         dangerous to do so.
24622         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
24623         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
24624         (_STDINT_MIN, _STDINT_MAX): New macros.
24625         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
24626         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
24627         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
24628         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
24629         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
24630         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
24631         macros, not typedefs; this simplifies things quite a bit.
24632         Use long int for all types narrower than int64_t.
24633         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
24634         Define in terms of long long int or int64_t or long int,
24635         not int64_t or int32_t.  This saves some compile-time testing.
24636         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
24637         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
24638         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
24639         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
24640         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
24641         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
24642         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
24643         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
24644         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
24645         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
24646         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24647         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24648         undef any previous version and define our own version, for
24649         simplicity and consistency with the new macros for types.
24650         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24651         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24652         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
24653         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
24654         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
24655         @WINT_T_SUFFIX@ to keep things simple here.
24656         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
24657         Simplify by assuming typical 8/16/32/64 host, since we're
24658         already doing that elsewhere anyway.
24659         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
24660         and assume long long int is 64 bits if available.  This
24661         speeds up 'configure'.
24662
24663 2006-07-01  Eric Blake  <ebb9@byu.net>
24664
24665         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
24666         Reported by Andreas Buening.
24667
24668 2006-07-01  Eric Blake  <ebb9@byu.net>
24669
24670         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
24671
24672 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24673
24674         * lib/getaddrinfo.c: fixed typo
24675
24676 2006-06-29  Jim Meyering  <jim@meyering.net>
24677
24678         * modules/strftime (Maintainer): Add my name, since with the
24679         FPRINTFTIME changes strftime.c has forked from glibc.
24680
24681 2006-06-29  Eric Blake  <ebb9@byu.net>
24682
24683         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
24684
24685 2006-06-29  Eric Blake  <ebb9@byu.net>
24686
24687         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
24688
24689 2006-06-29  Eric Blake  <ebb9@byu.net>
24690
24691         * lib/stat_.h: New file.
24692
24693 2006-06-29  Eric Blake  <ebb9@byu.net>
24694
24695         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
24696         unused static function.
24697
24698 2006-06-29  Eric Blake  <ebb9@byu.net>
24699
24700         * doc/functions.texi (Function Portability): Document missing lstat
24701         on mingw.
24702
24703 2006-06-29  Eric Blake  <ebb9@byu.net>
24704
24705         * MODULES.html.sh: Add sys_stat.
24706         * modules/sys_stat: New module.
24707         * modules/mkstemp (Depends-on): Add sys_stat.
24708
24709 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24710
24711         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
24712
24713 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24714
24715         * m4/c-bs-a.m4: Removed.
24716
24717 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24718
24719         * lib/strftime.c: Assume strftime() exists.
24720
24721 2006-06-29  Derek Price  <derek@ximbiot.com>
24722
24723         * modules/c-bs-a: Removed - \a is C89.
24724         * MODULES.html.sh: Remove c-bs-a.
24725
24726 2006-06-29  Bruno Haible  <bruno@clisp.org>
24727
24728         * modules/wcwidth (License): Change to LGPL.
24729
24730 2006-06-28  Simon Josefsson  <jas@extundo.com>
24731
24732         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
24733         on _WIN32.
24734
24735         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
24736         getnameinfo.
24737
24738 2006-06-28  Simon Josefsson  <jas@extundo.com>
24739
24740         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
24741
24742 2006-06-28  Simon Josefsson  <jas@extundo.com>
24743
24744         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
24745         functions there.  It will succeed on Windows XP, but on Windows
24746         2000 and (presumably) earlier, it will fail, and use the internal
24747         re-implementation.
24748         (use_win32_p): New function.
24749         (getaddrinfo): Use strtoul on servname, to support numeric ports.
24750         Support AI_NUMERICSERV to disable getservbyname.
24751         (getnameinfo): New function, only supports
24752         NI_NUMERICHOST|NI_NUMERICSERV for now.
24753
24754         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
24755         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
24756         getnameinfo.
24757
24758 2006-06-28  Eric Blake  <ebb9@byu.net>
24759
24760         * modules/wcwidth: New file.
24761         * modules/mbchar (Depends-on): Add wcwidth.
24762         * modules/mbswidth (Depends-on): Add wcwidth.
24763         * MODULES.html.sh: Add wcwidth.
24764
24765 2006-06-28  Eric Blake  <ebb9@byu.net>
24766
24767         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
24768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
24769
24770 2006-06-28  Eric Blake  <ebb9@byu.net>
24771
24772         * lib/xvasprintf.h: Fix comments.
24773
24774 2006-06-28  Eric Blake  <ebb9@byu.net>
24775
24776         * lib/mbchar.h (wcwidth): Include wcwidth.h.
24777         * lib/mbswidth.c (wcwidth): Move from here...
24778         * lib/wcwidth.h: ...to this new file.
24779
24780 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24781
24782         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
24783
24784         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
24785         it's obsolete.
24786         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
24787
24788 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24789
24790         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
24791         Autoconf 2.60 says this stuff was obsolete.
24792
24793 2006-06-28  Bruno Haible  <bruno@clisp.org>
24794
24795         * modules/wcwidth (Files): Add m4/wchar_t.m4.
24796
24797 2006-06-28  Bruno Haible  <bruno@clisp.org>
24798
24799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
24800         gt_TYPE_WCHAR_T.
24801
24802 2006-06-28  Bruno Haible  <bruno@clisp.org>
24803
24804         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
24805         declaration for wcwidth.
24806         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
24807
24808 2006-06-28  Bruno Haible  <bruno@clisp.org>
24809
24810         * lib/mkdtemp.c [MINGW]: Include <io.h>.
24811         (mkdir): Define using _mkdir.
24812
24813 2006-06-28  Bruno Haible  <bruno@clisp.org>
24814
24815         * lib/getaddrinfo.h: Fix POSIX URL.
24816         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
24817         _WIN32.
24818         (use_win32_p): Make static.
24819         (getaddrinfo): Reject service name if it is empty or does not consist
24820         solely of decimal digits, or if its value is > 65535.
24821         (getnameinfo): Remove useless casts.
24822
24823 2006-06-27  Simon Josefsson  <jas@extundo.com>
24824
24825         * modules/sys_select: New file, suggested by Bruno Haible, Paul
24826         Eggert and Martin Lambers.
24827
24828 2006-06-27  Simon Josefsson  <jas@extundo.com>
24829
24830         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24831         Eggert and Martin Lambers.
24832
24833 2006-06-27  Bruno Haible  <bruno@clisp.org>
24834
24835         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24836         result to 0, not to empty.
24837         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24838
24839 2006-06-27  Bruno Haible  <bruno@clisp.org>
24840
24841         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24842
24843 2006-06-26  Simon Josefsson  <jas@extundo.com>
24844
24845         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
24846         present.
24847
24848 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
24849
24850         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
24851         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
24852         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
24853
24854 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
24855
24856         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
24857
24858 2006-06-26  Bruno Haible  <bruno@clisp.org>
24859
24860         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
24861
24862 2006-06-26  Bruno Haible  <bruno@clisp.org>
24863
24864         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
24865
24866 2006-06-26  Bruno Haible  <bruno@clisp.org>
24867
24868         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
24869         SGI C compiler in pre-C99 mode.
24870         Suggested by Mark D. Baushke and Larry Jones.
24871
24872 2006-06-26  Bruno Haible  <bruno@clisp.org>
24873
24874         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
24875         WCHAR_MAX.
24876         Reported by Mark D. Baushke and Larry Jones.
24877
24878 2006-06-26  Bruno Haible  <bruno@clisp.org>
24879
24880         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
24881         in pre-C99 mode.
24882         Suggested by Mark D. Baushke and Larry Jones.
24883
24884 2006-06-23  Simon Josefsson  <jas@extundo.com>
24885             Bruno Haible  <bruno@clisp.org>
24886
24887         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
24888         Emit mostlyclean-local rule.
24889         (func_emit_tests_Makefile_am): Likewise.
24890         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
24891
24892 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
24893
24894         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
24895
24896 2006-06-23  Bruno Haible  <bruno@clisp.org>
24897
24898         * tests/test-stdint.c: Update to match ISO C 99 Technical
24899         Corrigendum 1.
24900
24901 2006-06-23  Bruno Haible  <bruno@clisp.org>
24902
24903         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
24904
24905 2006-06-23  Bruno Haible  <bruno@clisp.org>
24906
24907         * lib/stdint_.h: Treat IRIX like OpenBSD.
24908
24909 2006-06-23  Bruno Haible  <bruno@clisp.org>
24910
24911         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
24912         ISO C 99 Technical Corrigendum 1.
24913
24914 2006-06-22  Simon Josefsson  <jas@extundo.com>
24915
24916         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
24917         MinGW.
24918
24919 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24920
24921         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
24922         needed.  Some compiler complained about some of them.  Problem reported
24923         by Larry Jones in
24924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
24925
24926 2006-06-21  Simon Josefsson  <jas@extundo.com>
24927
24928         * tests/test-getaddrinfo.c: New file.
24929
24930         * modules/getaddrinfo-tests: New file.
24931
24932         * MODULES.html.sh: Add inet_pton.
24933
24934         * modules/inet_pton: New file.
24935
24936 2006-06-21  Simon Josefsson  <jas@extundo.com>
24937
24938         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
24939         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
24940         of using the (limited) gnulib implementation on Windows XP.
24941
24942         * m4/inet_pton.m4: New file.
24943
24944 2006-06-21  Simon Josefsson  <jas@extundo.com>
24945
24946         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
24947         variable.
24948
24949         * lib/socket_.h: Don't define WINVER.
24950
24951         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
24952         slightly modified to work in gnulib.
24953
24954 2006-06-21  Simon Josefsson  <jas@extundo.com>
24955
24956         * doc/gnulib.texi (Windows sockets): Add.
24957
24958 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24959
24960         * lib/read-file.c (fread_file): Start with buffer allocation of
24961         0 bytes rather than 1 byte; this simplifies the code.
24962         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
24963         code to free buffer and save/restore errno.
24964         (internal_read_file): Remove unused local.
24965
24966 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24967
24968         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
24969         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
24970         Problem reported by Denis Excoffier in
24971         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
24972
24973 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24974
24975         * modules/sys_socket, modules/socklen: Include sys/types since
24976         FreeBSD 4.x's sys/socket.h needs it.
24977
24978 2006-06-19  Simon Josefsson  <jas@extundo.com>
24979
24980         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
24981
24982 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24983
24984         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
24985
24986 2006-06-19  Bruno Haible  <bruno@clisp.org>
24987
24988         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
24989         and FULL_PATH_INTTYPES_H in angle brackets.
24990         Reported by Mark D. Baushke <mdb@gnu.org>.
24991
24992 2006-06-17  Eric Blake  <ebb9@byu.net>
24993
24994         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
24995         errno.
24996
24997 2006-06-17  Bruno Haible  <bruno@clisp.org>
24998
24999         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
25000         <sys/inttypes.h>.
25001
25002 2006-06-17  Bruno Haible  <bruno@clisp.org>
25003
25004         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
25005         whether errno is declared. Assume <errno.h> declares errno.
25006
25007 2006-06-17  Bruno Haible  <bruno@clisp.org>
25008
25009         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
25010
25011 2006-06-17  Bruno Haible  <bruno@clisp.org>
25012
25013         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
25014         problem on Solaris 2.5.1.
25015
25016 2006-06-16  Eric Blake  <ebb9@byu.net>
25017
25018         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
25019         * lib/unicodeio.c [!defined errno]: Likewise.
25020         * lib/strtol.c [!defined errno]: Likewise.
25021         * lib/strtod.c [!defined errno]: Likewise.
25022
25023 2006-06-15  Eric Blake  <ebb9@byu.net>
25024
25025         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
25026
25027 2006-06-15  Eric Blake  <ebb9@byu.net>
25028
25029         * config/srclist.txt (ssize_t.m4): Lose sync.
25030
25031 2006-06-15  Bruno Haible  <bruno@clisp.org>
25032
25033         * modules/stdint (Files): Include m4/full-header-path.m4,
25034         m4/size_max.m4, m4/wchar_t.m4.
25035         (Makefile.am): Many more substitutions.
25036         * modules/stdint-tests: New file.
25037         * tests/test-stdint.c: New file.
25038
25039 2006-06-15  Bruno Haible  <bruno@clisp.org>
25040
25041         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
25042         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
25043         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
25044         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
25045         gl_CHECK_TYPE_SAME): New macros.
25046
25047 2006-06-15  Bruno Haible  <bruno@clisp.org>
25048
25049         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
25050
25051 2006-06-15  Bruno Haible  <bruno@clisp.org>
25052
25053         * lib/stdint_.h: Rewritten to be fully auto-configured.
25054         Fixes bug on HP-UX/IA64.
25055
25056 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
25057
25058         * lib/getdate.y (__attribute__): Don't define if already defined.
25059         Problem reported by Larry Jones.
25060         * lib/utimens.c (__attribute__): Likewise.
25061
25062 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
25063
25064         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
25065         reported by Andreas Schwab.
25066
25067 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25068             Bruno Haible  <bruno@clisp.org>
25069
25070         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
25071         check for the declaration of strnlen and a run test that exposes the
25072         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
25073         rpl_strndup.
25074
25075 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25076             Bruno Haible  <bruno@clisp.org>
25077
25078         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
25079
25080 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25081
25082         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
25083         compile test, for Tru64 4.0D.
25084
25085 2006-05-28  Karl Berry  <karl@gnu.org>
25086
25087         * config/srclist.txt (printf-args.c): lose sync.
25088
25089 2006-05-26  Martin Lambers  <marlam@marlam.de>
25090
25091         * lib/getpass.c: Updates the test for the native W32 API, and adds
25092         missing includes, thus fixing compilation warnings.
25093
25094 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25095
25096         * lib/exclude.c (exclude_fnmatch): New function.
25097         (excluded_file_name): Call exclude_fnmatch.
25098         * lib/exclude.h (excluded_file_name): New prototype
25099
25100 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
25101
25102         * lib/tempname.c (small_open, large_open): New macros.
25103         (__open, __open64) [!_LIBC]: Remove.
25104         (__gen_tempname): Use small_open and large_open instead of __open
25105         and __open64.  This fixes a portability bug on HP-UX 11.11i
25106         reported by Simon Wing-Tang in
25107         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
25108
25109 2006-05-24  Bruno Haible  <bruno@clisp.org>
25110
25111         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
25112         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
25113         Reported by Thorsten Maerz <torte@netztorte.de> via
25114         Aaron Stone <aaron@serendipity.cx>.
25115
25116 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25117
25118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
25119         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
25120         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
25121         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
25122         not really conditional on the cache.
25123         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
25124
25125 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25126
25127         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
25128         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
25129         (my_usleep): Don't mishandle maximum value.
25130
25131 2006-05-19  Jim Meyering  <jim@meyering.net>
25132
25133         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
25134
25135 2006-05-17  Bruno Haible  <bruno@clisp.org>
25136
25137         Cygwin portability.
25138         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
25139
25140 2006-05-17  Bruno Haible  <bruno@clisp.org>
25141
25142         * lib/stdint_.h: Fix recognition of Cygwin.
25143
25144 2006-05-15  Bruno Haible  <bruno@clisp.org>
25145
25146         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
25147         on libtool patch by Ralf Wildenhues.
25148
25149 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
25150
25151         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
25152         test for C99 conformance; (bool) 0.5 is an integer constant
25153         expression, but (bool) -0.5 is not.  Problem reported by Fedor
25154         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
25155
25156 2006-05-11  Simon Josefsson  <jas@extundo.com>
25157
25158         * m4/xvasprintf.m4: Fix obvious typo.
25159
25160 2006-05-11  Jim Meyering  <jim@meyering.net>
25161
25162         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
25163         James Lemley.
25164
25165 2006-05-10  Simon Josefsson  <jas@extundo.com>
25166
25167         * lib/md4.c: Typo fix, update copyright years.
25168         (K1, K2): Don't use L because it turn computations into 64-bit on
25169         64-bit platforms.
25170
25171 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
25174         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
25175         unwanted sign propagation, e.g., on hosts with 64-bit int.
25176         There still are some problems with reeelly weird theoretical hosts
25177         (e.g., 33-bit int) but it's not worth worrying about now.
25178         * lib/sha1.c (rol): Likewise.
25179         (K1, K2, K3, K4): Remove unnecessary L suffix.
25180
25181 2006-05-10  Bruno Haible  <bruno@clisp.org>
25182
25183         * lib/des.c: Cast to avoid warnings.
25184
25185 2006-05-09  Bruno Haible  <bruno@clisp.org>
25186
25187         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
25188         (Depends-on): Depend also on xsize, stdarg.
25189         (configure.ac): Add gl_XVASPRINTF.
25190
25191 2006-05-09  Bruno Haible  <bruno@clisp.org>
25192
25193         * m4/xvasprintf.m4: New file.
25194
25195 2006-05-09  Bruno Haible  <bruno@clisp.org>
25196
25197         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
25198         (EOVERFLOW): Define fallback value.
25199         (xstrcat): New function.
25200         (xvasprintf): Recognize the special case of a string concatenation.
25201
25202 2006-05-08  Eric Blake  <ebb9@byu.net>
25203
25204         * gnulib-tool (func_version): Base copyright year on CVS date.
25205         (func_emit_copyright_notice): New function.
25206         (func_emit_lib_Makefile_am): Use it.
25207         (func_emit_tests_Makefile_am): Likewise.
25208         (func_import): Likewise.
25209
25210 2006-05-08  Bruno Haible  <bruno@clisp.org>
25211
25212         * modules/stdarg: New file.
25213         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
25214
25215 2006-05-08  Bruno Haible  <bruno@clisp.org>
25216
25217         * m4/stdarg.m4: New file, from GNU gettext.
25218
25219 2006-05-08  Bruno Haible  <bruno@clisp.org>
25220
25221         * config/srclist.txt (build-aux/config.rpath): different from latest
25222         release.
25223
25224 2006-05-08  Bruno Haible  <bruno@clisp.org>
25225
25226         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
25227
25228 2006-05-05  Jim Meyering  <jim@meyering.net>
25229
25230         * m4/warning.m4: New file, derived from bison's file by the same name.
25231
25232 2006-05-03  Bruno Haible  <bruno@clisp.org>
25233
25234         * lib/stdint_.h: Shorter URL.
25235         * lib/inttypes.h: Likewise.
25236
25237 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25238
25239         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
25240
25241 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25242
25243         * lib/verify.h: Document the internals better.  Most of this change
25244         was written by Bruno Haible.
25245
25246 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
25247
25248         * doc/verify.texi: New file, partly based on a proposal by
25249         Bruno Haible.
25250
25251 2006-05-02  Bruno Haible  <bruno@clisp.org>
25252
25253         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
25254         test from here...
25255         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
25256
25257 2006-04-29  Bruno Haible  <bruno@clisp.org>
25258
25259         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
25260         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
25261
25262 2006-04-29  Bruno Haible  <bruno@clisp.org>
25263
25264         * gnulib-tool: Make --update option actually work.
25265
25266 2006-04-29  Bruno Haible  <bruno@clisp.org>
25267
25268         * doc/gcd.texi: New file.
25269         * doc/gnulib.texi: Include it.
25270
25271 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25272
25273         * lib/getdate.y (get_date): When adding relative date, start with the
25274         initial time, not with the result of the first mktime call.
25275
25276 2006-04-25  Bruno Haible  <bruno@clisp.org>
25277
25278         * gnulib-tool (func_import): Output the include directives in three
25279         blocks, sorted separately.
25280         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25281
25282 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25283
25284         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
25285         to define main with arguments, for C++.  Reported by Eric Blake.
25286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
25287         Prefer 'int main ()' to 'int main (void)', for C++.
25288         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
25290         for 'main', for C99 and C++.
25291
25292 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
25293
25294         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
25295         Don't assume that exit status -1 is valid.
25296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25297         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25298         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25299         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
25300         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
25301         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
25302         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
25303         functions can be used without declaring them, or that you can
25304         exit with status -1.
25305         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25306
25307 2006-04-24  Karl Berry  <karl@gnu.org>
25308
25309         * config/srclist.txt (longdouble.m4): sync lost.
25310
25311 2006-04-24  Eric Blake  <ebb9@byu.net>
25312
25313         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
25314
25315 2006-04-24  Bruno Haible  <bruno@clisp.org>
25316
25317         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
25318         poll() implementation in AIX.
25319         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25320
25321 2006-04-24  Bruno Haible  <bruno@clisp.org>
25322
25323         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
25324         assigned exactly once.
25325
25326 2006-04-23  Claudio Fontana  <claudio@gnu.org>
25327             Bruno Haible  <bruno@clisp.org>
25328
25329         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
25330         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
25331         for AM_CPPFLAGS.
25332
25333 2006-04-23  Bruno Haible  <bruno@clisp.org>
25334
25335         * modules/copy-file: Depend on unistd.
25336         * modules/execute: Likewise.
25337         * modules/fatal-signal: Likewise.
25338         * modules/findprog: Likewise.
25339         * modules/mkdtemp : Likewise.
25340         * modules/pipe: Likewise.
25341         * modules/wait-process: Likewise.
25342
25343 2006-04-23  Bruno Haible  <bruno@clisp.org>
25344
25345         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
25346         condition was already detected.
25347         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25348
25349 2006-04-23  Bruno Haible  <bruno@clisp.org>
25350
25351         * lib/copy-file.c: Include <unistd.h> unconditionally.
25352         * lib/execute.c: Likewise.
25353         * lib/fatal-signal.c: Likewise.
25354         * lib/findprog.c: Likewise.
25355         * lib/mkdtemp.c: Likewise.
25356         * lib/pipe.h: Likewise.
25357         * lib/pipe.c: Likewise.
25358         * lib/wait-process.h: Likewise.
25359
25360 2006-04-23  Bruno Haible  <bruno@clisp.org>
25361
25362         * gnulib-tool (func_usage): Fix --import description. Document
25363         --update.
25364         (func_import): Create temporary file in a temporary directory, if
25365         --dry-run is specified. Silence errors from 'grep' when there are no
25366         m4 files in $m4dir.
25367         (func_create_testdir): Silence errors from 'grep' when there are no
25368         m4 files in $m4dir.
25369         Reported by Karl Berry <karl@freefriends.org>.
25370
25371 2006-04-20  Bruno Haible  <bruno@clisp.org>
25372
25373         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
25374         one argument, so that the code will be portable to Autoconf 2.60.
25375         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
25376         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
25377         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
25378
25379 2006-04-19  Derek Price  <derek@ximbiot.com>
25380             Eric Blake  <ebb9@byu.net>
25381
25382         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
25383         rather than "/full/path.h".  Update comment to match.  Shorten &
25384         generalize m4_translit call via AS_TR_CPP.
25385
25386 2006-04-19  Derek Price  <derek@ximbiot.com>
25387             Eric Blake  <ebb9@byu.net>
25388
25389         * lib/inttypes.h: Correct grammar in comment.
25390
25391 2006-04-18  Derek Price  <derek@ximbiot.com>
25392             Paul Eggert  <eggert@cs.ucla.edu>
25393
25394         * modules/inttypes: New file.
25395         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
25396
25397 2006-04-18  Derek Price  <derek@ximbiot.com>
25398             Paul Eggert  <eggert@cs.ucla.edu>
25399
25400         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
25401         New files.
25402
25403 2006-04-18  Derek Price  <derek@ximbiot.com>
25404             Paul Eggert  <eggert@cs.ucla.edu>
25405
25406         * lib/inttypes.h: New file.
25407         * lib/strtoimax.c: Assume <inttypes.h>.
25408
25409 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
25410
25411         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
25412         isn't mounted.  Problem reported by Kir Kolyshkin.
25413
25414 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25415
25416         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
25417         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
25418         Derek R. Price.
25419         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25420         implementation.
25421
25422 2006-04-12  Eric Blake  <ebb9@byu.net>
25423
25424         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25425         is now done automatically by the corresponding Autoconf macro.
25426
25427 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25428
25429         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25430         time_r.h.
25431
25432 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25433
25434         Merge regex changes from libc, removing some of our
25435         POSIX-conformance changes that were rejected and redoing them in a
25436         less-intrusive way.
25437
25438         * lib/regcomp.c (re_compile_internal, init_dfa):
25439         Length arg is now size_t, not Idx.  All uses changed.
25440         (peek_token): Forward decl now says internal_function.
25441         (__re_error_msgid, __re_error_msgid_idx):
25442         Now static rather than extern with attribute_hidden.
25443         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25444         For some reason libc prefers K&R style defns for external functions.
25445         (regerror) [!defined _LIBC]: Likewise.
25446         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25447         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25448         (build_range_exp, build_collating_symbol):
25449         Use K&R-style defn.
25450         (re_compile_fastmap): Use '\0' to memset, not 0.
25451         (utf8_sb_map): Make the calculations more obvious.
25452         (init_dfa, parse_bracket_exp, build_charclass_op):
25453         Call calloc and cast result, as glibc does.
25454         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25455         (build_range_exp, build_collating_symbol):
25456         Now internal functions.
25457
25458         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25459
25460         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25461         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25462         Don't depend on VMS; depend on __VMS instead, for POSIX
25463         namespace cleanness.
25464         (regoff_t): Define to ssize_t, not long int.
25465
25466         Remove the REG_ macros named below.  Instead, make the old names
25467         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25468         __USE_GNU_REGEX.
25469         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25470         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25471         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25472         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25473         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25474         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25475         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25476         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25477         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25478         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25479         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25480         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25481         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25482         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25483         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25484         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25485         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25486         (REG_NREGS):
25487         Remove.  All uses replaced by the old RE_* names.
25488         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25489         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25490         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25491         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25492         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25493         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25494         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25495         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25496         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25497         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25498         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25499         Don't bother having these macros be independent of each others'
25500         values, since they no longer exist in the POSIX name space.
25501
25502         Rename the following member names back to their old names,
25503         unless !__USE_GNU_REGEX.  All uses changed back.
25504         (buffer): Renamed from re_buffer.
25505         (allocated): Renamed from re_allocated.
25506         (used): Renamed from re_used.
25507         (syntax): Renamed from re_syntax.
25508         (fastmap): Renamed from re_fastmap.
25509         (translate): Renamed from re_translate.
25510         (can_be_null): Renamed from re_can_be_null.
25511         (regs_allocated): Renamed from re_regs_allocated.
25512         (fastmap_accurate): Renamed from re_fastmap_accurate.
25513         (no_sub): Renamed from re_no_sub.
25514         (not_bol): Renamed from re_not_bol.
25515         (not_eol): Renamed from re_not_eol.
25516         (newline_anchor): Renamed from re_newline_anchor.
25517         (num_regs): Renamed from rm_num_regs.
25518         (start): Renamed from rm_start.
25519         (end): Renamed from rm_end.
25520
25521         (free_state): Move up a bit.
25522
25523         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
25524         #define to be empty.
25525         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
25526         when that is what is intended.
25527         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
25528         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
25529         (MAX): New macro.
25530         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
25531         All uses changed back to re_malloc, etc.  It's now the caller's
25532         responsibility to check for overflow; all callers changed.
25533         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
25534         (re_x2nrealloc): Remove.
25535         (free_state): Remove decl.
25536
25537         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
25538         (re_set_registers, re_exec):
25539         Use K&R-style defn.
25540
25541         2006-01-31  Roland McGrath  <roland@redhat.com>
25542
25543         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25544         Reported by Mike Frysinger <vapier@gentoo.org>.
25545
25546         2006-01-15  Andreas Jaeger  <aj@suse.de>
25547
25548         [BZ #1950]
25549         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25550         build_wcs_upper_buffer change.
25551         (build_wcs_upper_buffer): Change return type.
25552
25553         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25554
25555         * lib/regex_internal.h: Include <stdint.h> if available.
25556
25557         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
25558
25559         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
25560
25561         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25562
25563         * lib/regcomp.c: Adjust for changed secondary hash function.
25564
25565         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
25566
25567         * lib/regex.h: Pretty printing.
25568         Clean up namespace a bit.
25569
25570         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
25571
25572         * lib/regexec.c (update_cur_sifted_state, check_arrival,
25573         check_arrival_add_next_nodes): Avoid using uninitialized variable.
25574
25575         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25576                     Ulrich Drepper  <drepper@redhat.com>
25577
25578         [BZ #1302]
25579         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
25580         changed.
25581         (bitset_word_t): Renamed from bitset_word.  All uses changed.
25582
25583         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
25584
25585         [BZ #281]
25586         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
25587         * lib/regcomp.c: Remove unnecessary uses of
25588         unsigned RE_TRANSLATE_TYPE.
25589         * lib/regex_internal.h: Likewise.
25590         * lib/regex_internal.c: Likewise.
25591         * lib/regexec.c: Likewise.
25592         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
25593
25594         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
25595
25596         * lib/regexec.c (find_recover_state): Remove unnecessary
25597         initialization.
25598         (transit_state_bkref): Make DFA a const pointer.
25599         (get_subexp): Likewise.
25600         (check_arrival): Likewise.
25601         (update_cur_sifted_state): Likewise.
25602         (re_search_internal): Likewise.
25603         (prune_impossible_nodes): Likewise.
25604         (acquire_init_state_context): Likewise.
25605         (proceed_next_node): Likewise.
25606         (set_regs): Likewise.
25607         (free_fail_stack_return): Likewise.
25608         (check_arrival_expand_ecl): Mark DFA parameter as const.
25609         (check_arrival_expand_ecl_sub): Likewise.
25610         (check_subexp_limits): Likewise.
25611         (sub_epsilon_src_nodes):  Likewise.
25612         (add_epsilon_src_nodes):  Likewise.
25613         (merge_state_array): Likewise.
25614         (update_regs): Likewise.
25615         (build_trtable): Likewise.
25616         (sift_states_backward): Mark MCTX parameter as const.
25617         (build_sifted_states): Likewise.
25618         (update_cur_sifted_state): Likewise.
25619         (sift_states_mkref): Likewise.
25620         (check_arrival_expand_ecl): Mark eclosure as const.
25621         (check_dst_limits_calc_pos_1): Likewise.
25622         * lib/regex_internal.h (re_match_context_t): Make dfa a const
25623         pointer.
25624
25625         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
25626
25627         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
25628         (transit_state_sb): Likewise.
25629         (transit_state_mb): Likewise.
25630         (sift_states_iter_mb): Likewise.
25631         (check_arrival_add_next_nodes): Likewise.
25632         (check_node_accept_bytes): Change first parameter to pointer-to-const.
25633         [_LIBC] (re_search_2_stub): Use mempcpy.
25634
25635         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
25636         mbrtowc for very simple UTF-8 case.
25637
25638         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
25639         a pointer-to-const.
25640         (re_acquire_state_context): Likewise.
25641         * lib/regex_internal.h: Adjust prototypes.
25642
25643         * lib/regex.c: Prevent using C++ compilers.
25644
25645         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
25646         (re_acquire_state_context): Likewise.
25647
25648 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25649
25650         * modules/regex (Depends-on): Add ssize_t.
25651
25652 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25653
25654         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
25655         translation table.
25656
25657 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25658
25659         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
25660
25661 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
25662             Bruno Haible  <bruno@clisp.org>
25663
25664         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
25665         <sys/types.h> and <inttypes.h>.
25666
25667 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25668
25669         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
25670         `__error_t_defined', so argp.h will not typedef the former.
25671
25672 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25673
25674         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
25675         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
25676         glibc names.  Even if glibc is changed to conform to POSIX, the
25677         traditional names will be available anyway, since regex depends on
25678         the extensions module.  Also, fix a longstanding typo in the
25679         implementation of Spencer ERE test #75 from grep 2.3.  Problems
25680         reported by Emanuele Giaquinta.  Also, change sense of cached
25681         variable, so that the message makes sense.
25682
25683 2006-03-24  Simon Josefsson  <jas@extundo.com>
25684
25685         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
25686         including some doc fixes.
25687         (base64_encode_alloc): Fix +1 bug on allocation failures.
25688
25689 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25690
25691         * lib/base64.c (base64_encode): Do not read past end of array with
25692         unsanitized input on systems with CHAR_BIT > 8.
25693
25694 2006-03-24  Eric Blake  <ebb9@byu.net>
25695
25696         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
25697
25698 2006-03-22  Karl Berry  <karl@gnu.org>
25699
25700         * config/srclist.txt (*setenv.[ch]): get from coreutils.
25701         * config/srclistvars.sh (COREUTILS): new var.
25702
25703 2006-03-17  Jim Meyering  <jim@meyering.net>
25704
25705         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
25706         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
25707
25708 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25709
25710         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
25711         no longer needs it.  Instead, check that regoff_t is as least
25712         as wide as ptrdiff_t.
25713
25714         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
25715         so that our regex.h stays compatible with the installed regex.
25716         This is helpful for installers who configure --without-included-regex.
25717         Problem reported by Emanuele Giaquinta.
25718
25719 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25720
25721         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
25722         Typedef to long int, not to off_, as POSIX will likely change
25723         in that direction.
25724
25725 2006-03-15  Eric Blake  <ebb9@byu.net>
25726
25727         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
25728
25729 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25730
25731         * lib/argp-help.c (validate_uparams): Fix typo
25732         * lib/argp-parse.c (argp_default_options): Consistently begin help
25733         messages with a lowercase letter.
25734
25735 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25736
25737         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
25738         overrun buffers and shouldn't be used (much as gets shouldn't be
25739         used).
25740         * lib/time_r.c (asctime_r, ctime_r): Likewise.
25741
25742 2006-03-08  Simon Josefsson  <jas@extundo.com>
25743
25744         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
25745         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25746
25747 2006-03-08  Simon Josefsson  <jas@extundo.com>
25748
25749         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
25750         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25751
25752 2006-03-08  Simon Josefsson  <jas@extundo.com>
25753
25754         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
25755         signal that configure disabled the device.
25756
25757 2006-03-08  Simon Josefsson  <jas@extundo.com>
25758
25759         * build-aux/maint.mk: Fix refresh-po, to handle no translated
25760         languages.
25761
25762 2006-03-07  Simon Josefsson  <jas@extundo.com>
25763
25764         * modules/getopt (Depends-on): Add unistd.
25765
25766         * modules/unistd: New file.
25767
25768 2006-03-07  Simon Josefsson  <jas@extundo.com>
25769
25770         * modules/gc-random: New file.
25771
25772 2006-03-07  Simon Josefsson  <jas@extundo.com>
25773
25774         * m4/unistd_h.m4: New file.
25775
25776 2006-03-07  Simon Josefsson  <jas@extundo.com>
25777
25778         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
25779         test to be side-effect free by storing the result in the cache
25780         variable gl_cv_lib_readline, and moving the assignment of
25781         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
25782         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25783
25784 2006-03-07  Simon Josefsson  <jas@extundo.com>
25785
25786         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
25787         error on missing devices (the functions will return an error).
25788
25789         * m4/gc.m4: Move random stuff to gc-random.m4
25790
25791 2006-03-07  Simon Josefsson  <jas@extundo.com>
25792
25793         * lib/unistd_.h: New file.
25794
25795 2006-03-07  Simon Josefsson  <jas@extundo.com>
25796
25797         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
25798
25799 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25800
25801         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
25802         Problem reported by Juan Manuel Guerrero.
25803
25804 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25805
25806         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
25807         the unistd module.
25808         * lib/getlogin_r.c: Likewise.
25809         * lib/getlogin_r.h: Likewise.
25810         * lib/glob.c: Likewise.
25811         * lib/pagealign_alloc.c: Likewise.
25812         * lib/unistd_.h: Remove; no longer needed.
25813
25814 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25815
25816         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25817         Add unistd.
25818         * modules/c-stack (Depends-on): Add unistd.
25819         * modules/getlogin_r: Likewise.
25820         * modules/glob: Likewise.
25821         * modules/pagealign_alloc: Likewise.
25822         * modules/unistd (Files): Remove lib/unistd_.h.
25823         (EXTRA_DIST): Remove.
25824         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
25825         need unistd_.h.
25826         (MOSTLYCLEANFILES): Remove unistd.h-t.
25827
25828 2006-03-03  Simon Josefsson  <jas@extundo.com>
25829
25830         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25831
25832 2006-03-03  Simon Josefsson  <jas@extundo.com>
25833
25834         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25835         libidn and bison.
25836
25837 2006-03-03  Simon Josefsson  <jas@extundo.com>
25838
25839         * build-aux/maint.mk: Add indent target.
25840
25841 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25842
25843         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25844         our replacement poll.h in any case, to avoid a differing
25845         declaration from a system header.  Seen on AIX.
25846
25847 2006-03-01  Simon Josefsson  <jas@extundo.com>
25848
25849         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
25850         <kasal@ucw.cz>.
25851
25852 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25853
25854         * modules/gettime (Depends-on): Add extensions module.
25855         * modules/nanosleep (Depends-on): Likewise.
25856         * modules/settime (Depends-on): Likewise.
25857
25858 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25859
25860         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
25861         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
25862         pedantically.
25863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25864         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
25865
25866         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
25867         not "==".  Reported by Ralf Wildenhues.
25868
25869 2006-03-01  Karl Berry  <karl@gnu.org>
25870
25871         * doc/Copyright/request-*: new files, synced from gnuorg.
25872
25873 2006-03-01  Karl Berry  <karl@gnu.org>
25874
25875         * config/srclist.txt (Copyright/*): new entries.
25876
25877 2006-02-28  Simon Josefsson  <jas@extundo.com>
25878
25879         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
25880
25881 2006-02-27  Simon Josefsson  <jas@extundo.com>
25882
25883         * lib/base64.h: Indent #define's.  From Jim Meyering
25884         <jim@meyering.net>.
25885
25886 2006-02-27  Jim Meyering  <jim@meyering.net>
25887
25888         Revert the change of 2006-02-24, so these files can continue
25889         to be sync'd from gettext.
25890         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
25891         of `config.h'.
25892
25893 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25894
25895         * modules/intprops: New file.
25896         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25897         Add intprops.
25898         * modules/getloadavg (Files): Remove lib/intprops.h.
25899         (Depends-on): Add intprops.
25900         * modules/human: Likewise.
25901         * modules/inttostr: Likewise.
25902         * modules/openat: Likewise.
25903         * modules/sig2str: Likewise.
25904         * modules/userspec: Likewise.
25905         * modules/utimecmp: Likewise.
25906         * modules/xnanosleep: Likewise.
25907         * modules/xstrtol: Likewise.
25908
25909 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
25910
25911         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
25912         * modules/lock-tests (TESTS): Use $(EXEEXT).
25913         * modules/tls-tests: Likewise.
25914         * modules/argp-tests: Likewise.
25915         (check_PROGRAMS): New var, replacing...
25916         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
25917
25918 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25919
25920         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
25921         `config.h'.
25922
25923 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25924
25925         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
25926
25927 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25928
25929         Sync from coreutils.
25930         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
25931         gl_CHDIR_SAFER.
25932
25933 2006-02-22  Jim Meyering  <jim@meyering.net>
25934
25935         Sync from coreutils.
25936         * m4/chdir-safer.m4: New file.
25937
25938 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25939
25940         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
25941         AT_FDCWD exceeds INT_MAX.
25942         * lib/openat.h (AT_FDCWD): Likewise.
25943
25944 2006-02-17  Eric Blake  <address@hidden>
25945
25946         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
25947
25948 2006-02-16  Simon Josefsson  <jas@extundo.com>
25949
25950         * modules/getaddrinfo (Depends-on): Add sys_socket.
25951
25952 2006-02-15  Simon Josefsson  <jas@extundo.com>
25953
25954         * build-aux/maint.mk: Add dsyntax-check rule.
25955
25956 2006-02-15  Eric Blake  <ebb9@byu.net>
25957
25958         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
25959         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
25960         'present but cannot compile' warnings on cygwin.
25961         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
25962         use ws2tcpip.h if sys/socket.h works.
25963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
25964         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
25965
25966 2006-02-14  Simon Josefsson  <jas@extundo.com>
25967
25968         * modules/maintainer-makefile (Files): Rename.
25969
25970         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
25971         and (the local) Makefile.cfg to maint-cfg.mk.
25972
25973         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
25974         to the latter.
25975
25976         * modules/maintainer-makefile: New module.
25977
25978         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
25979         severaly stripped to make it possible to build it up from scratch
25980         with reliable tests.
25981
25982         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
25983         fixes to permit overriding the default actions when configure and
25984         makefile are not available.
25985
25986 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25987
25988         Sync from coreutils.
25989         * modules/lstat (Depends-on): Don't depend on xalloc.
25990         (License): Change from GPL to LGPL, since this is now simply a
25991         replacement for a libc function.
25992
25993 2006-02-14  Jim Meyering  <jim@meyering.net>
25994
25995         Sync from coreutils.
25996
25997         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
25998         failure on deficient systems, and simplify gnulib lgpl dependencies.
25999         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
26000         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
26001
26002         * lib/xalloc-die.c: Remove unused definition of N_.
26003
26004 2006-02-14  Jim Meyering  <jim@meyering.net>
26005
26006         Sync from coreutils.
26007         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
26008         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
26009         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
26010         double-quote uses of that variable, to accommodate the rare case in
26011         which getmntent is available in none of the libraries checked.  This
26012         happens at least on FreeBSD 5.0.
26013
26014 2006-02-13  Simon Josefsson  <jas@extundo.com>
26015
26016         * gnulib-tool (Usage): Fix --import, from
26017         karl@freefriends.org (Karl Berry).
26018
26019 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
26020
26021         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
26022
26023 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
26024
26025         * lib/argp-namefrob.h: Restore changes accidentally lost during the
26026         "autoupdate" on 2005-12-12.
26027
26028 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26029
26030         * modules/closeout (Depends-on): Remove atexit.
26031
26032 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26033
26034         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
26035         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
26036
26037 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26038
26039         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
26040         __EXTENSIONS__ if this causes compilation to fail.  Problem
26041         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
26042         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
26043
26044 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
26045
26046         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
26047         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
26048         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
26049         All uses changed.
26050
26051 2006-01-26  Simon Josefsson  <jas@extundo.com>
26052
26053         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
26054         prototype is visible on mingw32.
26055
26056         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
26057         for mingw32.
26058
26059         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
26060         mingw32).
26061
26062 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
26063
26064         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
26065         attempt to open for write; this always fails, at least on POSIX
26066         hosts.  This reinstates the 2006-01-09 change, which was
26067         inadvertently removed.
26068
26069 2006-01-26  Bruno Haible  <bruno@clisp.org>
26070
26071         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
26072         Reported by Paul Eggert.
26073
26074 2006-01-26  Bruno Haible  <bruno@clisp.org>
26075             Paul Eggert  <eggert@cs.ucla.edu>
26076
26077         * lib/stdbool_.h (_Bool)
26078         [(! (defined __cplusplus || defined __BEOS__)
26079           && !defined __GNUC__
26080           && !(defined __HP_cc || defined __xlc__
26081                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
26082                || defined __sgi))]:
26083         #define to signed char in these cases too; this simplifies
26084         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
26085         etc., separately) and makes it more conservative.
26086
26087 2006-01-25  Simon Josefsson  <jas@extundo.com>
26088
26089         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
26090         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
26091         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
26092
26093 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26094
26095         * lib/argp-namefrob.h: Bugfix. Remove stray #
26096
26097 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26098
26099         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
26100         so that we test the test.
26101         Check for yet another HP-UX cc bug involving *bool |= bool.
26102
26103 2006-01-25  Karl Berry  <karl@gnu.org>
26104
26105         * config/srclist.txt (vasnprintf.c): sync lost.
26106
26107 2006-01-25  Jim Meyering  <jim@meyering.net>
26108
26109         Sync from the stable (b5) branch of coreutils:
26110
26111         * lib/fts.c (fts_children): Don't let close() clobber errno from
26112         failed fchdir().
26113
26114         * lib/fts.c (fts_stat): When following a symlink-to-directory,
26115         don't necessarily interpret stat-fails+lstat-succeeds as indicating
26116         a dangling symlink.  That can also happen at least for ELOOP.
26117         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
26118         FYI, this bug predates the inclusion of fts.c in coreutils.
26119
26120         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
26121         in their own block, so pre-c99 compilers don't object.
26122
26123         Avoid the double-free (first in fts_read, second in fts_close) that
26124         would occur when an `active' directory is made inaccessible (e.g.,
26125         via chmod a-x) during a traversal.
26126         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26127         before returning.  Reproduce this failure by
26128         mkdir -p a/b; cd a; chmod a-x . b
26129         Reported by Stavros Passas.
26130
26131 2006-01-25  Jim Meyering  <jim@meyering.net>
26132
26133         * lib/fileblocks.c: Remove more useless parentheses.
26134         * lib/readutmp.h: Likewise.
26135
26136 2006-01-25  Bruno Haible  <bruno@clisp.org>
26137
26138         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
26139         warnings.
26140         Reported by Paul Eggert.
26141
26142 2006-01-25  Bruno Haible  <bruno@clisp.org>
26143
26144         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
26145         rid of a trap command. For Solaris sh.
26146         Reported by Mark D. Baushke <mdb@gnu.org>.
26147
26148 2006-01-24  Simon Josefsson  <jas@extundo.com>
26149
26150         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
26151         Bruno.
26152
26153 2006-01-24  Karl Berry  <karl@gnu.org>
26154
26155         * config/srclist.txt (argp-namefrob.h): sync lost.
26156
26157 2006-01-24  Jim Meyering  <jim@meyering.net>
26158
26159         * modules/openat (Files): Add lib/intprops.h.
26160         From Mark D. Baushke.
26161
26162 2006-01-24  Jim Meyering  <jim@meyering.net>
26163
26164         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
26165         Reported by Mark D. Baushke.
26166
26167 2006-01-24  Jim Meyering  <jim@meyering.net>
26168
26169         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
26170
26171 2006-01-24  Bruno Haible  <bruno@clisp.org>
26172
26173         * modules/strnlen (Maintainer): Change from glibc to all.
26174
26175 2006-01-24  Bruno Haible  <bruno@clisp.org>
26176
26177         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
26178         Patch by Paul Eggert.
26179
26180 2006-01-24  Bruno Haible  <bruno@clisp.org>
26181
26182         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
26183         already has it.
26184         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
26185         2005-11-26.
26186
26187         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
26188         'signed char' to avoid problems with the built-in _Bool type.
26189         Reported by Paul Eggert on 2005-11-26.
26190
26191 2006-01-24  Bruno Haible  <bruno@clisp.org>
26192
26193         * gnulib-tool (func_import): Avoid constructing complicated sed
26194         expressions inside backquote.
26195         Report and solution by Mark D. Baushke <mdb@gnu.org>.
26196
26197 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
26198
26199         These changes imported from libc.
26200         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
26201         test and two separate function calls.
26202         * lib/strndup.c (__strndup): Add libc_hidden_def.
26203
26204 2006-01-23  Simon Josefsson  <jas@extundo.com>
26205
26206         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
26207         Remove the test_*_SOURCES variable: automake infers it by default.
26208         * modules/tls-tests: Likewise.
26209
26210 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26211
26212         Work around porting bugs reported by Dieter in
26213         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
26214         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
26215         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
26216         Include "getopt.h" first, to check interface.
26217         (getenv): Declare only if defined HAVE_DECL_GETENV &&
26218         !HAVE_DECL_GETENV.
26219         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
26220         (__strndup): Revert to K&R-style function dfns, the glibc style.
26221         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
26222         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
26223         Include strnlen.h first, to get prototype properly.
26224         (strnlen): Renamed from __strnlen.
26225         Remove weak alias.
26226
26227 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26228
26229         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
26230
26231 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26232
26233         * config/srclist.txt: Adjust to reflect glibc reorganization.
26234         This affects only comments.
26235
26236 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26237
26238          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
26239          Reported by Bruce Korb <bkorb@gnu.org>.
26240
26241 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
26242
26243         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
26244         to pacify gcc -Wswitch-default.
26245
26246 2006-01-22  Bruno Haible  <bruno@clisp.org>
26247
26248         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
26249         temporary buffer for sprintf, take into account the precision also
26250         for 'd', 'i', 'u', 'o', 'x', 'X'.
26251
26252 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26253
26254         * modules/argp-tests: New module
26255         * tests/test-argp.c: New file
26256         * tests/test-argp-2.sh: New file
26257
26258 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
26259
26260         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
26261         (__argp_base_name): Removed
26262         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
26263         typo.
26264         (__argp_base_name): Provide macro definition or extern declaration
26265         depending on the configuration
26266
26267 2006-01-20  Simon Josefsson  <jas@extundo.com>
26268
26269         * modules/inet_ntop (Depends-on): Depend on sys_socket.
26270
26271 2006-01-20  Simon Josefsson  <jas@extundo.com>
26272
26273         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
26274
26275 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26276
26277         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
26278         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
26279         Suggested by Bruno Haible.
26280
26281 2006-01-20  Karl Berry  <karl@gnu.org>
26282
26283         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
26284         until changes propagate, I guess.
26285
26286 2006-01-19  Simon Josefsson  <jas@extundo.com>
26287
26288         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
26289
26290 2006-01-19  Simon Josefsson  <jas@extundo.com>
26291
26292         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
26293
26294 2006-01-19  Simon Josefsson  <jas@extundo.com>
26295
26296         * gnulib-tool: Set check_PROGRAMS.
26297
26298         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26299         modules/des-tests, modules/gc-arcfour-tests,
26300         modules/gc-arctwo-tests, modules/gc-des-tests,
26301         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26302         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26303         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26304         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26305         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26306         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
26307         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
26308         test_*_SOURCES.
26309
26310 2006-01-18  Simon Josefsson  <jas@extundo.com>
26311
26312         * modules/socklen (Depends-on): Depend on sys_socket.
26313
26314 2006-01-18  Simon Josefsson  <jas@extundo.com>
26315
26316         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
26317         modules/des-tests, modules/gc-arcfour-tests,
26318         modules/gc-arctwo-tests, modules/gc-des-tests,
26319         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
26320         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
26321         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
26322         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
26323         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
26324         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
26325         $(EXEEXT) to automake TESTS variable, for mingw32.
26326
26327 2006-01-17  Simon Josefsson  <jas@extundo.com>
26328
26329         * modules/socklen (Include): Need sys/socket.h.
26330
26331 2006-01-17  Bruno Haible  <bruno@clisp.org>
26332
26333         * modules/ssize_t (Include): Add <sys/types.h>.
26334
26335 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26336
26337         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
26338         it's not portable and it doesn't work with cross-compiles.
26339         Problem reported by Bruno Haible.  Fix missing-$ typo in
26340         'test "gl_cv_ignore_unused_libraries" ...' that prevented
26341         -zignore from being used with Sun's C compiler.
26342
26343 2006-01-12  Simon Josefsson  <jas@extundo.com>
26344
26345         * lib/base64.c: Fix warning, reported by Bruno Haible
26346         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
26347
26348 2006-01-12  Bruno Haible  <bruno@clisp.org>
26349
26350         * modules/ldd: New file.
26351         * build-aux/ldd.sh.in: New file.
26352         * MODULES.html.sh (Support for building libraries and executables): Add
26353         ldd.
26354
26355 2006-01-12  Bruno Haible  <bruno@clisp.org>
26356
26357         * m4/ldd.m4: New file.
26358
26359 2006-01-12  Bruno Haible  <bruno@clisp.org>
26360
26361         * gnulib-tool (func_import, func_create_testdir): Don't go into an
26362         endless loop while replacing $auxdir with build-aux.
26363
26364 2006-01-11  Simon Josefsson  <jas@extundo.com>
26365
26366         * lib/stdint_.h (SIZE_MAX): Add missing (.
26367
26368 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26369
26370         Sync from coreutils.
26371         * lib/md5.c: Fix commentary typos.
26372         (alignof, UNALIGNED_P): No need for a GCC-specific version.
26373         * lib/md5.h (__attribute__): Remove; unused.
26374         * lib/sha1.c: Fix commentary to match md5 better.
26375         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
26376         so that we don't need to worry about alignment.  All uses changed.
26377         This merges the 2005-10-28 md5 change into sha1.
26378
26379 2006-01-11  Jim Meyering  <jim@meyering.net>
26380
26381         Sync from coreutils.
26382         * lib/md5.c (OP): Fix spacing.
26383
26384 2006-01-11  Bruno Haible  <bruno@clisp.org>
26385
26386         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26387         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
26388         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
26389
26390 2006-01-11  Bruno Haible  <bruno@clisp.org>
26391
26392         Ensure automatic ordering between gl_LOCK and gl_ARGP.
26393         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
26394         the "early" section as well.
26395
26396 2006-01-11  Bruno Haible  <bruno@clisp.org>
26397
26398         Avoid "ar: no archive members specified" error on MacOS X.
26399         * gnulib-tool (func_modules_add_dummy): New function.
26400         (func_import, func_create_testdir): Invoke it.
26401
26402 2006-01-11  Bruno Haible  <bruno@clisp.org>
26403
26404         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
26405         with $auxdir in AC_CONFIG_FILES statements.
26406
26407 2006-01-11  Bruno Haible  <bruno@clisp.org>
26408
26409         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26410         Initialize also noinst_HEADERS to empty.
26411
26412 2006-01-11  Bruno Haible  <bruno@clisp.org>
26413
26414         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
26415         variables.
26416         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
26417         autoreconf.
26418
26419 2006-01-11  Bruno Haible  <bruno@clisp.org>
26420
26421         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26422         overridable by the user.
26423         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26424
26425 2006-01-10  Simon Josefsson  <jas@extundo.com>
26426
26427         * modules/sys_socket: New file.
26428
26429 2006-01-10  Simon Josefsson  <jas@extundo.com>
26430
26431         * m4/sys_socket_h.m4: New file.
26432
26433 2006-01-10  Simon Josefsson  <jas@extundo.com>
26434
26435         * lib/socket_.h: New file.
26436
26437 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26438
26439         * modules/readutmp (Maintainer): Add myself.
26440
26441 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26442
26443         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26444         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26445         People who are still concerned with buggy memcmp implementations
26446         can invoke gl_FUNC_MEMCMP themselves.
26447
26448 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26449
26450         * lib/regex_internal.h (BITSET_WORD_BITS):
26451         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26452         preprocessor mishandles large unsigned values as if they were signed.
26453         Problem reported by Claudio Fontana in
26454         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26455
26456 2006-01-10  Jim Meyering  <jim@meyering.net>
26457
26458         Avoid the double-free (first in fts_read, second in fts_close) that
26459         would occur when an `active' directory is made inaccessible (e.g.,
26460         via chmod a-x) during a traversal.
26461         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26462         before returning.  Reproduce this failure by
26463         mkdir -p a/b; cd a; chmod a-x . b
26464         Reported by Stavros Passas.
26465
26466         Sync from coreutils.
26467         * lib/sha1.c: Tweak grammar in a comment.
26468
26469 2006-01-10  Jim Meyering  <jim@meyering.net>
26470
26471         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26472         Patch by Joerg Sonnenberger.
26473
26474 2006-01-10  Bruno Haible  <bruno@clisp.org>
26475
26476         * modules/readutmp: Depend on module free.
26477         * modules/strtok_r: Depend on module restrict.
26478
26479 2006-01-10  Bruno Haible  <bruno@clisp.org>
26480
26481         * modules/gettext (configure.ac): Add an invocation of
26482         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26483
26484 2006-01-10  Bruno Haible  <bruno@clisp.org>
26485
26486         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26487         Reported by Werner Lemberg <wl@gnu.org>.
26488
26489 2006-01-10  Bruno Haible  <bruno@clisp.org>
26490
26491         * lib/localcharset.c: Update from GNU gettext.
26492
26493 2006-01-10  Bruno Haible  <bruno@clisp.org>
26494
26495         * lib/argp.h (__const): Remove macro. Use const instead.
26496         * lib/argp-fmtstream.h (__const): Likewise.
26497         * lib/glob_.h (__const): Remove macro.
26498         * lib/glob-libc.h: Use const instead of __const.
26499
26500 2006-01-10  Bruno Haible  <bruno@clisp.org>
26501
26502         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26503         variable.
26504         Needed to avoid an automake error regarding the 'gettext' module.
26505
26506 2006-01-09  Simon Josefsson  <jas@extundo.com>
26507
26508         * modules/inet_ntop (Depends-on): Add restrict.
26509
26510 2006-01-09  Simon Josefsson  <jas@extundo.com>
26511
26512         * modules/gc-rijndael-tests (License): Put under LGPL.
26513
26514         * modules/gc-des-tests (License): Likewise.
26515
26516         * modules/gc-arcfour-tests (License): Likewise.
26517
26518         * modules/gc-arctwo-tests (License): Likewise.
26519
26520         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
26521
26522         * modules/gc-hmac-sha1-tests (Files): Likewise.
26523
26524         * modules/gc-hmac-md5-tests (License): Likewise.
26525
26526         * modules/gc-sha1-tests (License): Likewise.
26527
26528         * modules/gc-md5-tests (License): Likewise.
26529
26530         * modules/gc-md4-tests (License): Likewise.
26531
26532         * modules/gc-md2-tests (License): Likewise.
26533
26534         * modules/gc-tests (License): Likewise.
26535
26536         * modules/des-tests (License): Likewise.
26537
26538         * modules/md4-tests (License): Likewise.
26539
26540         * modules/md2-tests (License): Likewise.
26541
26542 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26543
26544         Sync from coreutils:
26545
26546         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26547         * modules/lib-ignore: New file.
26548         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26549         chdir-safer.m4, lchmod.m4.
26550         * modules/openat: Add mkdirat.c, openat-priv.h.
26551
26552 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26553
26554         Sync from coreutils.
26555         * m4/lib-ignore.m4: New file.
26556         * m4/lchmod.m4: New file.
26557
26558 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26559
26560         Sync from coreutils.
26561         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
26562         for write access: POSIX says that must fail.
26563         * lib/fts.c (diropen): Likewise.
26564         * lib/save-cwd.c (save_cwd): Likewise.
26565         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
26566         well, for minor improvements on hosts that lack O_DIRECTORY.
26567         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
26568         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
26569         Fall back on chown if open failed with EACCES.
26570
26571         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
26572         Report an error at compile-time if only a 1-second nominal clock
26573         resolution is found.
26574
26575         * lib/lchmod.h: New file.
26576         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
26577         (make_dir_parents): Use lchown rather than chown, and
26578         lchmod rather than chmod.
26579
26580         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
26581         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
26582         "proc" reported by n0dalus.
26583
26584         * lib/mountlist.c: Include <limits.h>.
26585         (dev_from_mount_options)
26586         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
26587         New function.  It no longer assumes "dev=" has the System V meaning
26588         on Linux (since it doesn't).  It also parses "dev=" more carefully.
26589         (read_file_system_list)
26590         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
26591         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
26592         dev= in that case.
26593
26594         * lib/posixtm.h (PDS_PRE_2000): New macro.
26595         * lib/posixtm.c (year): Arg is now syntax_bits rather than
26596         allow_century.  All usages changed.  Reject dates outside the range
26597         1969-1999 if PDS_PRE_2000 is used.
26598
26599 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26600
26601         Sync from coreutils.
26602         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
26603         (Time of day items): Mention the possibility of leap seconds.
26604         Problem reported by Dr. David Alan Gilbert.
26605
26606 2006-01-09  Jim Meyering  <jim@meyering.net>
26607
26608         Sync from coreutils.
26609
26610         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
26611
26612         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
26613
26614         * lib/modechange.c (mode_compile): Reject an invalid mode string
26615         that starts with an octal digit.  From Andreas Gruenbacher.
26616
26617         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
26618         and dup to open_safer and dup_safer, respectively.
26619         (openat_permissive): Fix typo in comment.
26620
26621         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
26622         "gettext.h"; either no longer needed or are guaranteed by openat.h.
26623         (_): Remove; no longer needed.
26624         (openat): Renamed from rpl_openat; no need for rpl_openat
26625         since openat.h renames openat for us.
26626         Replace most of the body with a call to openat_permissive,
26627         to avoid duplicate code.
26628         Port to (probably hypothetical) environments were mode_t is
26629         wider than int.
26630         (openat_permissive): Require mode arg, so that we can check
26631         types better.  Put it just after flags.  Change cwd failure
26632         indicator from pointer-to-bool to pointer-to-errno-value.
26633         All callers changed.
26634         Invoke openat_save_fail and/or openat_restore_fail if
26635         cwd_errno is null, so that openat can call us.
26636         (openat_permissive, fdopendir, fstatat, unlinkat):
26637         Simplify errno handling to avoid some duplicate code,
26638         as it's OK to set errno on success.
26639         * lib/openat.h: Revamp code so that function macros depend on
26640         __OPENAT_PREFIX only, not also on AT_FDCWD.
26641         (openat_ro): Remove.  Caller changed to use openat_permissive.
26642         (openat_permissive): Now a macro, if not a function.
26643         (openat_restore_fail, openat_save_fail): Now always functions,
26644         since mkdirat needs them even if __OPENAT_PREFIX is defined.
26645
26646         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
26647         and openat.c.
26648         * lib/mkdirat.c: Include openat-priv.h.
26649         Remove definitions of macros defined therein.
26650         * lib/openat.c: Likewise.
26651
26652         * lib/mkdirat.c (mkdirat): New file and function.
26653         * lib/openat.h (mkdirat): Declare.
26654
26655         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
26656
26657         * lib/openat.h (openat_permissive): Declare.
26658         (openat_ro): Define.
26659
26660         * lib/openat.c (EXPECTED_ERRNO): New macro.
26661         (openat_permissive): New function -- used in remove.c rewrite.
26662         (all functions): Set errno just before returning, only if there
26663         was an actual failure.
26664         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
26665
26666         Emulate openat-family functions using Linux's procfs, if possible.
26667         Idea and some code based on Ulrich Drepper's glibc changes.
26668
26669         * lib/openat.c: (BUILD_PROC_NAME): New macro.
26670         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
26671         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
26672         before falling back on save_cwd and restore_cwd.
26673         (fdopendir, fstatat, unlinkat): Likewise.
26674
26675         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
26676         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
26677
26678         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
26679         as second argument to va_arg.  Otherwise, some versions of gcc
26680         warn that `if this code is reached, the program will abort'.
26681
26682 2006-01-09  Jim Meyering  <jim@meyering.net>
26683
26684         Sync from coreutils.
26685         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
26686         Require openat-priv.h.
26687
26688 2006-01-09  Bruno Haible  <bruno@clisp.org>
26689
26690         * modules/strnlen (Include): Use strnlen.h.
26691
26692 2006-01-09  Bruno Haible  <bruno@clisp.org>
26693
26694         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
26695
26696 2006-01-09  Bruno Haible  <bruno@clisp.org>
26697
26698         * lib/sysexit_.h (EX_OK): New macro.
26699         Suggested by Martin Lambers <marlam@marlam.de>.
26700
26701 2006-01-09  Bruno Haible  <bruno@clisp.org>
26702
26703         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
26704         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
26705
26706 2006-01-09  Bruno Haible  <bruno@clisp.org>
26707
26708         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
26709         numbers.
26710
26711 2006-01-09  Bruno Haible  <bruno@clisp.org>
26712
26713         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
26714         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
26715         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
26716         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
26717
26718 2006-01-09  Bruno Haible  <bruno@clisp.org>
26719
26720         * build-aux/javacomp.sh.in: New file, moved from lib/.
26721         * modules/javacomp-script (Files): Update.
26722         (configure.ac): Add AC_CONFIG_FILES invocation.
26723         (EXTRA_DIST): Remove variable.
26724
26725         * build-aux/javaexec.sh.in: New file, moved from lib/.
26726         * modules/javaexec (Files): Update.
26727         (configure.ac): Add AC_CONFIG_FILES invocation.
26728         (EXTRA_DIST): Remove javaexec.sh.in.
26729
26730         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
26731         * modules/csharpcomp-script (Files): Update.
26732         (configure.ac): Add AC_CONFIG_FILES invocation.
26733         (EXTRA_DIST): Remove variable.
26734
26735         * build-aux/csharpexec.sh.in: New file, moved from lib/.
26736         * modules/csharpexec (Files): Update.
26737         (configure.ac): Add AC_CONFIG_FILES invocation.
26738         (EXTRA_DIST): Remove csharpexec.sh.in.
26739
26740 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26741
26742         Sync from coreutils.
26743
26744         Add POSIX ACL support
26745         * lib/acl.h (copy_acl, set_acl): Add declarations.
26746         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
26747         systems other than Linux.
26748         (chmod_or_fchmod): New function: use fchmod when possible,
26749         and chmod otherwise.
26750         (file_has_acl): Add a POSIX ACL implementation, with a
26751         Linux-specific subcase.
26752         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
26753         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
26754         acls are unsupported.
26755         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
26756         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
26757         are unsupported.
26758
26759 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26760
26761         Sync from coreutils.
26762         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
26763
26764 2006-01-07  Bruno Haible  <bruno@clisp.org>
26765
26766         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
26767         gl_EARLY.
26768
26769 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26770
26771         * lib/strftime.c (tzname): Don't declare if it is already #defined.
26772         Problem reported for Mingw by Mark Junker.
26773
26774 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26775
26776         * README: Gnulib normally doesn't generate a tarball.
26777
26778 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26779
26780         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
26781         long int, not int, for nanosecond counts, so that people who are
26782         used to POSIX struct timespec won't be surprised.  Reported by Jim
26783         Meyering.
26784
26785 2005-12-28  Bruno Haible  <bruno@clisp.org>
26786
26787         * build-aux/config.rpath: Update from GNU gettext.
26788
26789 2005-12-16  Jim Meyering  <jim@meyering.net>
26790
26791         * modules/fprintftime: New module.
26792         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
26793
26794 2005-12-16  Jim Meyering  <jim@meyering.net>
26795
26796         * m4/fprintftime.m4: New file.
26797
26798 2005-12-16  Jim Meyering  <jim@meyering.net>
26799
26800         * lib/fprintftime.c, lib/fprintftime.h: New files.
26801
26802 2005-12-15  Simon Josefsson  <jas@extundo.com>
26803
26804         * modules/socklen (configure.ac): Fix M4 macro name, to align with
26805         new m4/socklen.m4.
26806
26807 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26808
26809         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
26810         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
26811
26812 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26813
26814         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
26815         * lib/argp-help.c (fill_in_uparams): Check if the constructed
26816         struct uparams is valid. Fall back to the default values if it is
26817         not.
26818
26819 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26820
26821         * modules/argp (Files): Add argp-pin.c
26822         (Depends-on): dirname
26823         (lib_SOURCES): Add argp-pin.c
26824
26825 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26826
26827         * m4/argp.m4:  Check if program_invocation_name and
26828         program_invocation_short_name are declared and define appropriate
26829         macros if they are not.
26830
26831 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26832
26833         * lib/argp-help.c (__argp_base_name): New function
26834         (__argp_short_program_name): Rewrite using __argp_base_name
26835         * lib/argp-namefrob.h: Define program_invocation_name and
26836         program_invocation_short_name if requested
26837         (__argp_base_name): Add prototype
26838         * lib/argp-parse.c (argp_def): Use gettext wrappers
26839         (argp_default_parser): Use __argp_base_name
26840         * lib/argp-pin.c: New file. Defines program_invocation_name and
26841         program_invocation_short_name on systems that lack them.
26842
26843 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26844
26845         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
26846         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26847         porting problem reported by Georg Schwarz in
26848         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26849
26850 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26851
26852         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
26853         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26854         porting problem reported by Georg Schwarz in
26855         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26856
26857 2005-12-05  Bruno Haible  <bruno@clisp.org>
26858
26859         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
26860         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
26861         Reported by Mark Junker <mjscod@gmx.de>.
26862
26863 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26864
26865         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
26866         Use implementation from Albert Chin, with some
26867         comments/corrections by Stepan Kasal and myself.
26868
26869 2005-12-02  Bruno Haible  <bruno@clisp.org>
26870
26871         * gnulib-tool (func_import): Accept GPLed build tool modules when
26872         --lgpl is given.
26873         * modules/csharpcomp-script: New file.
26874         * modules/csharpcomp: Depend on it.
26875         * modules/javacomp-script: New file.
26876         * modules/javacomp: Depend on it.
26877         Suggested by Simon Josefsson.
26878
26879 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26880
26881         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
26882         statement, to work around an HP-UX 10.20 compiler bug reported by
26883         Peter O'Gorman.
26884
26885 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26886
26887         * modules/savedir (Depends-on): Add openat.
26888
26889 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26890
26891         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
26892         (uintmax_t) [defined uintmax_t]: Do not declare.
26893         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
26894         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
26895         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
26896         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
26897         sake of portability to weird hosts that C allows (though we don't
26898         know of any practical examples).
26899
26900         * lib/savedir.h (fdsavedir): New decl.
26901         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
26902         contains most of the former guts of savedir.
26903         (savedir): Use savedirstream.
26904         Include "openat.h".
26905
26906 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26907
26908         * modules/obstack (Files): Add m4/ulonglong.m4.
26909         Problem reported by Davide Angelocola.
26910
26911 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26912
26913         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
26914         coreutils no longer futzes with rounding modes.
26915
26916 2005-11-14  Jim Meyering  <jim@meyering.net>
26917
26918         * lib/mkstemp-safer.c: Include <config.h>, required for possible
26919         replacement of mkstemp.
26920
26921 2005-11-10  Simon Josefsson  <jas@extundo.com>
26922
26923         * lib/readline.c: Remove EOL.
26924
26925 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26926
26927         * modules/gethrxtime (Depends-on): Add gettime.
26928
26929 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26930
26931         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
26932         or gettimeofday; no longer needed.
26933
26934 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26935
26936         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
26937         time business.
26938         (gethrxtime) [! (HAVE_NANOUPTIME
26939         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
26940         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
26941         our own approximation.
26942
26943 2005-11-08  Eric Blake  <ebb9@byu.net>
26944
26945         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26946
26947 2005-11-08  Eric Blake  <ebb9@byu.net>
26948
26949         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26950
26951 2005-11-04  Bruno Haible  <bruno@clisp.org>
26952
26953         * gnulib-tool: Implement --update mode.
26954
26955 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26956
26957         Fix porting problem reported by Theodoros V. Kalamatianos.
26958         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
26959         Don't assume that futimes failing means we must fail.
26960
26961 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26962
26963         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
26964         variables to suggest the intended function of the PATH_MAX check.
26965
26966 2005-10-30  Kean Johnston  <jkj@sco.com>
26967
26968         Trivial changes to support SCO systems.
26969         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
26970         as PATH_MAX.
26971         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
26972         where __ptr is null when no I/O is pending.
26973
26974 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26975
26976         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
26977         leave errno alone.  Problem reported by Dmitry V. Levin.
26978
26979 2005-10-28  Simon Josefsson  <jas@extundo.com>
26980
26981         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
26982         Test more.
26983
26984         * tests/test-gc-md2.c, tests/test-md2.c: New files.
26985
26986         * modules/md2, modules/md2-tests: New files.
26987
26988 2005-10-28  Simon Josefsson  <jas@extundo.com>
26989
26990         * m4/inet_ntop.m4: More tests.
26991
26992         * m4/gc-md2.m4, md2.m4: New file.
26993
26994 2005-10-28  Simon Josefsson  <jas@extundo.com>
26995
26996         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
26997         "restrict" keywords, as per POSIX.  Protect the function
26998         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
26999         Don't use K&R prototypes.  Check the sprintf return values.
27000         Re-define EAFNOSUPPORT if not present.  Indent.
27001
27002         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
27003         suggested by Bruno Haible <bruno@clisp.org>.
27004
27005         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
27006
27007         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
27008
27009         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
27010         libgcrypt).
27011
27012         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
27013
27014         * lib/md2.h, lib/md2.c: New files.
27015
27016 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27017
27018         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
27019         errno alone.  Problem reported by Frederic Jolliton.
27020
27021 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27022
27023         * modules/verify (License): Change from GPL to LGPL.  This is a
27024         tiny module and there are apparently near-equivalents that are
27025         under the BSD license.
27026
27027 2005-10-24  Simon Josefsson  <jas@extundo.com>
27028
27029         * modules/sha1: Relicense to LGPL.
27030
27031 2005-10-24  Simon Josefsson  <jas@extundo.com>
27032
27033         * lib/md4.h: Shrink buffer size, now that we changed the type.
27034
27035 2005-10-23  Simon Josefsson  <jas@extundo.com>
27036
27037         * gnulib-tool (func_import): Fix --tests-base.
27038
27039 2005-10-22  Simon Josefsson  <jas@extundo.com>
27040
27041         * modules/arcfour (Depends-on): Need stdint.
27042
27043 2005-10-22  Simon Josefsson  <jas@extundo.com>
27044
27045         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
27046         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
27047
27048 2005-10-22  Simon Josefsson  <jas@extundo.com>
27049
27050         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
27051         suggested by Bruno Haible <bruno@clisp.org>.
27052
27053 2005-10-22  Simon Josefsson  <jas@extundo.com>
27054
27055         * lib/crc.h: Include stddef.h, for size_t.
27056
27057 2005-10-22  Simon Josefsson  <jas@extundo.com>
27058
27059         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
27060         arcfour_context struct (simplify test vector testing in GNU
27061         Shishi).
27062
27063 2005-10-21  Simon Josefsson  <jas@extundo.com>
27064
27065         * modules/des, modules/des-tests: New files.
27066
27067         * modules/gc-des, modules/gc-des-tests: New files.
27068
27069         * tests/test-des.c, tests/test-gc-des.c: New file.
27070
27071 2005-10-21  Simon Josefsson  <jas@extundo.com>
27072
27073         * modules/arctwo, modules/arctwo-tests: New files.
27074
27075         * tests/test-arctwo.c: New file.
27076
27077         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
27078
27079         * tests/test-gc-arctwo.c: New file.
27080
27081 2005-10-21  Simon Josefsson  <jas@extundo.com>
27082
27083         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
27084         Bruno Haible <bruno@clisp.org>.
27085
27086         * m4/gc-des.m4: New file.
27087
27088 2005-10-21  Simon Josefsson  <jas@extundo.com>
27089
27090         * m4/arctwo.m4: New file.
27091
27092         * m4/gc-arctwo.m4: New file.
27093
27094 2005-10-21  Simon Josefsson  <jas@extundo.com>
27095
27096         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
27097         block.
27098
27099 2005-10-21  Simon Josefsson  <jas@extundo.com>
27100
27101         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
27102         <bruno@clisp.org>.
27103
27104         * lib/hmac-sha1.c (hmac_sha1): Likewise.
27105
27106         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
27107         Bruno Haible <bruno@clisp.org>.
27108
27109         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
27110         <bruno@clisp.org>.
27111
27112 2005-10-21  Simon Josefsson  <jas@extundo.com>
27113
27114         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
27115
27116 2005-10-21  Simon Josefsson  <jas@extundo.com>
27117
27118         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
27119
27120 2005-10-21  Simon Josefsson  <jas@extundo.com>
27121
27122         * lib/des.h, lib/des.c: New files.
27123
27124         * lib/gc-gnulib.c: Support DES.c
27125
27126 2005-10-21  Simon Josefsson  <jas@extundo.com>
27127
27128         * lib/arctwo.h, lib/arctwo.c: New files.
27129
27130         * lib/gc-gnulib.c: Support ARCTWO.
27131
27132 2005-10-21  Simon Josefsson  <jas@extundo.com>
27133
27134         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
27135         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27136
27137 2005-10-21  Simon Josefsson  <jas@extundo.com>
27138
27139         * gnulib-tool (func_import, func_create_testdir): Define automake
27140         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
27141         Makefile.am snippet),
27142         suggested by Bruno Haible <bruno@clisp.org>.
27143
27144         * modules/gc (Makefile.am): Use it.
27145
27146 2005-10-21  Bruno Haible  <bruno@clisp.org>
27147
27148         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
27149         patch.
27150
27151 2005-10-19  Simon Josefsson  <jas@extundo.com>
27152
27153         * tests/test-gc-rijndael.c: New file.
27154
27155         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
27156
27157 2005-10-19  Simon Josefsson  <jas@extundo.com>
27158
27159         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
27160         interface too.
27161
27162 2005-10-19  Simon Josefsson  <jas@extundo.com>
27163
27164         * tests/test-gc-arcfour.c: New file.
27165
27166         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
27167
27168 2005-10-19  Simon Josefsson  <jas@extundo.com>
27169
27170         * modules/gc-md4, modules/gc-md4-tests: New file.
27171
27172         * tests/test-gc-md4.c: New file.
27173
27174 2005-10-19  Simon Josefsson  <jas@extundo.com>
27175
27176         * m4/gc-md4.m4: New file.
27177
27178 2005-10-19  Simon Josefsson  <jas@extundo.com>
27179
27180         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
27181         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
27182         <kasal@ucw.cz>.
27183
27184 2005-10-19  Simon Josefsson  <jas@extundo.com>
27185
27186         * m4/gc-arcfour.m4: New file.
27187
27188         * m4/gc-rijndael.m4: New file.
27189
27190 2005-10-19  Simon Josefsson  <jas@extundo.com>
27191
27192         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
27193
27194 2005-10-19  Simon Josefsson  <jas@extundo.com>
27195
27196         * lib/gc-gnulib.c: Support ARCFOUR.
27197
27198 2005-10-19  Simon Josefsson  <jas@extundo.com>
27199
27200         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
27201         support.
27202
27203         * lib/gc.h: Add ECB enum type.
27204
27205         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
27206
27207 2005-10-18  Simon Josefsson  <jas@extundo.com>
27208
27209         * tests/test-md5.c: New file.
27210
27211         * modules/md5-tests: New file.
27212
27213 2005-10-18  Simon Josefsson  <jas@extundo.com>
27214
27215         * tests/test-md4.c: New file.
27216
27217         * modules/md4, modules/md4-tests: New files.
27218
27219 2005-10-18  Simon Josefsson  <jas@extundo.com>
27220
27221         * m4/md4.m4: New file.
27222
27223 2005-10-18  Simon Josefsson  <jas@extundo.com>
27224
27225         * lib/md4.h, lib/md4.c: New files, based on md5.?.
27226
27227 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
27228
27229         * gnulib-tool (func_create_testdir): Omit the second check whether
27230         BUILT_SOURCES in nonempty.
27231
27232 2005-10-17  Simon Josefsson  <jas@extundo.com>
27233
27234         * tests/test-rijndael.c: New file.
27235
27236 2005-10-17  Simon Josefsson  <jas@extundo.com>
27237
27238         * modules/sha1: Depend on stdint instead of md5.
27239
27240         * modules/md5: Depend on stdint, remove uint32_t.
27241
27242 2005-10-17  Simon Josefsson  <jas@extundo.com>
27243
27244         * modules/gc-sha1-tests: New file.
27245
27246         * tests/test-gc-sha1.c: New file.
27247
27248 2005-10-17  Simon Josefsson  <jas@extundo.com>
27249
27250         * m4/md5.m4: Remove call to uint32_t.m4.
27251
27252 2005-10-17  Simon Josefsson  <jas@extundo.com>
27253
27254         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
27255
27256         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
27257         md5.h.
27258
27259         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
27260
27261         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
27262
27263 2005-10-17  Simon Josefsson  <jas@extundo.com>
27264
27265         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
27266
27267 2005-10-17  Simon Josefsson  <jas@extundo.com>
27268
27269         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
27270
27271 2005-10-17  Simon Josefsson  <jas@extundo.com>
27272
27273         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
27274
27275         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
27276
27277 2005-10-17  Bruno Haible  <bruno@clisp.org>
27278
27279         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
27280         that it can also be used in a test.
27281
27282 2005-10-16  Bruno Haible  <bruno@clisp.org>
27283
27284         * gnulib-tool (func_emit_tests_Makefile_am): Also define
27285         TESTS_ENVIRONMENT, so that individual tests can augment it.
27286
27287         * gnulib-tool (func_create_testdir): Use an intermediate target for
27288         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
27289         macros, like $(ALLOCA_H), which cannot be passed through the command
27290         line.
27291
27292 2005-10-15  Simon Josefsson  <jas@extundo.com>
27293
27294         * modules/rijndael-tests: New file.
27295
27296         * modules/rijndael: New file.
27297
27298 2005-10-15  Simon Josefsson  <jas@extundo.com>
27299
27300         * m4/rijndael.m4: New file.
27301
27302 2005-10-15  Simon Josefsson  <jas@extundo.com>
27303
27304         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
27305
27306         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
27307
27308 2005-10-14  Simon Josefsson  <jas@extundo.com>
27309
27310         * tests/test-arcfour.c: New file.
27311
27312         * modules/arcfour, modules/arcfour-tests: New files.
27313
27314 2005-10-14  Simon Josefsson  <jas@extundo.com>
27315
27316         * m4/arcfour.m4: New file.
27317
27318 2005-10-14  Simon Josefsson  <jas@extundo.com>
27319
27320         * lib/arcfour.h, lib/arcfour.c: New files.
27321
27322 2005-10-14  Roland McGrath  <roland@redhat.com>
27323
27324         Import from libc.  [BZ #1331]
27325         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
27326         macro argument.
27327         Reported by Matej Vela <vela@debian.org>.
27328
27329 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27330
27331         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
27332         include <wchar.h>; no longer needed.
27333
27334 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27335
27336         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
27337
27338 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
27339         and  Ulrich Drepper  <drepper@redhat.com>
27340
27341         Import from libc.
27342         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
27343         instead of inline stream orientation test and two separate
27344         function calls.  Pay no attention to USE_IN_LIBIO.
27345
27346 2005-10-13  Simon Josefsson  <jas@extundo.com>
27347
27348         * modules/gc-hmac-md5-tests: New file.
27349
27350         * tests/test-gc-hmac-sha1.c: New file.
27351
27352         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
27353
27354         * modules/gc-hmac-md5-tests: New file.
27355
27356         * tests/test-gc-md5.c: New file.
27357
27358         * modules/gc-md5-tests: New file.
27359
27360 2005-10-13  Simon Josefsson  <jas@extundo.com>
27361
27362         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
27363         Move memory allocation outside of loop.
27364
27365 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27366
27367         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
27368         intermediate directory is in a read-only file system.  Problem
27369         reported by Eric Blake.
27370
27371 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
27372
27373         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
27374
27375 2005-10-12  Simon Josefsson  <jas@extundo.com>
27376
27377         * tests/test-hmac-sha1.c: New file.
27378
27379         * modules/hmac-sha1-tests: New file.
27380
27381         * modules/hmac-sha1: New file.
27382
27383 2005-10-12  Simon Josefsson  <jas@extundo.com>
27384
27385         * modules/gc-sha1: New file.
27386
27387 2005-10-12  Simon Josefsson  <jas@extundo.com>
27388
27389         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
27390
27391         * tests/test-gc-pbkdf2-sha1.c: New file.
27392
27393 2005-10-12  Simon Josefsson  <jas@extundo.com>
27394
27395         * modules/gc-md5, modules/gc-hmac-md5: New files.
27396
27397         * modules/gc (Files): Remove md5, memxor and hmac files.
27398
27399 2005-10-12  Simon Josefsson  <jas@extundo.com>
27400
27401         * m4/gc-pbkdf2-sha1.m4: New file.
27402
27403         * m4/gc-hmac-sha1.m4: New file.
27404
27405         * m4/gc-sha1: New file.
27406
27407         * m4/hmac-sha1.m4: New file.
27408
27409 2005-10-12  Simon Josefsson  <jas@extundo.com>
27410
27411         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
27412
27413         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
27414
27415 2005-10-12  Simon Josefsson  <jas@extundo.com>
27416
27417         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
27418         suggested by Bruno Haible <bruno@clisp.org>.
27419
27420 2005-10-12  Simon Josefsson  <jas@extundo.com>
27421
27422         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27423
27424 2005-10-12  Simon Josefsson  <jas@extundo.com>
27425
27426         * lib/gc-pbkdf2-sha1.c: New file.
27427
27428         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27429
27430 2005-10-12  Simon Josefsson  <jas@extundo.com>
27431
27432         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27433
27434         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27435
27436 2005-10-12  Simon Josefsson  <jas@extundo.com>
27437
27438         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27439         GC_USE_HMAC_MD5, respectively.
27440
27441         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27442         (gc_md5): Fix typo.
27443
27444         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27445
27446         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27447
27448         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27449
27450 2005-10-12  Bruno Haible  <bruno@clisp.org>
27451
27452         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27453         Reported by Stepan Kasal <kasal@ucw.cz>.
27454
27455 2005-10-11  Simon Josefsson  <jas@extundo.com>
27456
27457         * tests/test-crc.c: New file.
27458
27459         * modules/crc, modules/crc-tests: New files.
27460
27461 2005-10-11  Simon Josefsson  <jas@extundo.com>
27462
27463         * m4/crc.m4: New file.
27464
27465 2005-10-11  Simon Josefsson  <jas@extundo.com>
27466
27467         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27468
27469         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27470
27471         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27472
27473 2005-10-11  Simon Josefsson  <jas@extundo.com>
27474
27475         * lib/crc.h, lib/crc.c: New files.
27476
27477         * lib/gc.h (gc_hash_buffer): Add doc.
27478
27479 2005-10-11  Bruno Haible  <bruno@clisp.org>
27480
27481         * modules/c-strcasestr: New file.
27482         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27483
27484 2005-10-11  Bruno Haible  <bruno@clisp.org>
27485
27486         * modules/c-strcase: New file.
27487         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27488
27489 2005-10-11  Bruno Haible  <bruno@clisp.org>
27490
27491         * lib/strcasecmp.c: Include limits.h.
27492         (strcasecmp): Avoid integer overflow on exotic platforms.
27493         * lib/strncasecmp.c: Include limits.h.
27494         (strncasecmp): Avoid integer overflow on exotic platforms.
27495         Reported by Paul Eggert.
27496
27497 2005-10-11  Bruno Haible  <bruno@clisp.org>
27498
27499         * lib/c-strcasestr.h: New file, from GNU gettext.
27500         * lib/c-strcasestr.c: New file, from GNU gettext.
27501
27502 2005-10-11  Bruno Haible  <bruno@clisp.org>
27503
27504         * lib/c-strcase.h: New file, from GNU gettext.
27505         * lib/c-strcasecmp.c: New file, from GNU gettext.
27506         * lib/c-strncasecmp.c: New file, from GNU gettext.
27507
27508 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27509
27510         * modules/mempcpy (License): GPL -> LGPL.
27511         * modules/strchrnul (License): Likewise.
27512         * modules/sysexits (License): Likewise.
27513
27514 2005-10-08  Simon Josefsson  <jas@extundo.com>
27515
27516         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27517
27518 2005-10-07  Simon Josefsson  <jas@extundo.com>
27519
27520         * m4/memxor.m4: Remove gl_C_RESTRICT call.
27521
27522 2005-10-06  Simon Josefsson  <jas@extundo.com>
27523
27524         * tests/test-hmac-md5.c: New file.
27525
27526         * modules/hmac-md5-tests: New file.
27527
27528         * modules/hmac-md5: New file.
27529
27530 2005-10-06  Simon Josefsson  <jas@extundo.com>
27531
27532         * m4/hmac-md5.m4: New file.
27533
27534         * m4/memxor.m4: Require gl_C_RESTRICT.
27535
27536 2005-10-06  Simon Josefsson  <jas@extundo.com>
27537
27538         * lib/memxor.c (memxor): Avoid casts and warnings.
27539
27540 2005-10-06  Simon Josefsson  <jas@extundo.com>
27541
27542         * lib/hmac-md5.c: New file.
27543
27544         * lib/hmac.h: New file.
27545
27546 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27547
27548         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27549         promotes to int, not unsigned int, to catch the AIX 5.3
27550         compiler bug.
27551
27552 2005-10-05  Simon Josefsson  <jas@extundo.com>
27553
27554         * modules/memxor: New file.
27555
27556         * modules/iconv (Files): Move config.rpath to havelib, it is used
27557         there.
27558
27559         * modules/havelib (Files): Add config.rpath.
27560
27561 2005-10-05  Simon Josefsson  <jas@extundo.com>
27562
27563         * m4/memxor.m4: New file.
27564
27565 2005-10-05  Simon Josefsson  <jas@extundo.com>
27566
27567         * lib/memxor.c (memxor): Fix compiler error.
27568
27569         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
27570         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
27571
27572         * lib/memxor.h, lib/memxor.c: New files.
27573
27574         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
27575         we assume all systems have it, suggested by Jim Meyering
27576         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
27577         any systems lack sys/socket.h; mingw32 is known to lack it, but we
27578         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
27579         same reasons.
27580
27581 2005-10-05  Simon Josefsson  <jas@extundo.com>
27582
27583         * config/srclist.txt: Add glibc bug 1423 for md5.h.
27584
27585 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27586
27587         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
27588         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
27589         needed, since the source code now assumes these .h files.
27590
27591 2005-10-05  Derek Price  <derek@ximbiot.com>
27592
27593         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
27594
27595 2005-10-05  Bruno Haible  <bruno@clisp.org>
27596
27597         * modules/stdint (License): Change to LGPL.
27598
27599 2005-10-04  Simon Josefsson  <jas@extundo.com>
27600
27601         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
27602         D. Baushke" <mdb@gnu.org>.
27603
27604 2005-10-04  Bruno Haible  <bruno@clisp.org>
27605
27606         * lib/verify.h (verify_true): Provide alternative definition for C++.
27607
27608 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27609
27610         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
27611         (SSIZE_MAX): New macro, if not already defined.
27612         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
27613         than 2 GiB.
27614
27615 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27616
27617         Sync from coreutils.
27618         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
27619         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
27620         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
27621         ULLONG_MAX doesn't work with 2.7.2.1.
27622
27623 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27624
27625         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
27626         From Ben Pfaff.
27627
27628         * modules/exclude (Depends-on): Depend on verify.
27629         * modules/strtoimax (Depends-on): Likewise.
27630         * modules/utimecmp (Depends-on): Likewise.
27631
27632 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27633
27634         * lib/exclude.c: Include verify.h.
27635         (verify): Remove.  All callers changed to use verify.h's version.
27636         * lib/strtoimax.c: Likewise.
27637         * lib/utimecmp.c: Likewis.e
27638
27639         Sync from coreutils.
27640         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
27641         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
27642         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
27643         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
27644         bother returning ENOSYS if settimeofday or stime fails; just let
27645         them return whatever errno they want to return.
27646         * lib/utimens.c: Include unistd.h, for dup2.
27647         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
27648         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
27649
27650 2005-10-02  Jim Meyering  <jim@meyering.net>
27651
27652         Sync from coreutils.
27653         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
27654         from glibc-2.2.5 that fails for read-only files.
27655
27656 2005-10-02  Jim Meyering  <jim@meyering.net>
27657
27658         Sync from coreutils.
27659         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
27660         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
27661         `#if HAVE_CONFIG_H'.
27662         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
27663         Remove AT_FDCWD test.
27664         Do not consume the fd unless successful.
27665         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
27666         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
27667         block, so that we don't even try to compile it if settimeofday is
27668         available.  This works around a compilation failure on OSF1 V5.1,
27669         due to stime requiring a `long int*' while tv_sec is `int'.
27670
27671 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
27672
27673         Sync from coreutils.
27674         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
27675         against `yes', rather than just testing for nonempty.
27676
27677 2005-10-01  Simon Josefsson  <jas@extundo.com>
27678
27679         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
27680         and Darwin.
27681
27682         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
27683         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
27684         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
27685         freeaddrinfo and gai_strerror are declared by the POSIX headers.
27686         Check if struct addrinfo is declared.
27687
27688 2005-10-01  Simon Josefsson  <jas@extundo.com>
27689
27690         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
27691         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
27692         AI_* and EAI_* definitions.  Protect function declarations.
27693
27694 2005-10-01  Jim Meyering  <jim@meyering.net>
27695
27696         Sync from coreutils.
27697
27698         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
27699         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
27700         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
27701         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27702         in the inet and nsl libraries.  Required on Solaris 5.7.
27703
27704 2005-10-01  Jim Meyering  <jim@meyering.net>
27705
27706         Sync from coreutils.
27707         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27708         in the inet and nsl libraries.  Required on Solaris 5.7.
27709
27710 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
27711
27712         * lib/getdelim.c (getdelim): Remove unused variables.
27713
27714 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
27715
27716         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
27717         so that the code works even with ancient cpp.  Portability problem
27718         with GCC 2.7.2.1 reported by Thomas M.Ott.
27719
27720 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
27721
27722         * modules/regex (Depends-on): Add strcase.
27723
27724         * modules/gethostname (Licence): Change from GPL to LGPL, since
27725         gethostname.c is a trivial implementation of a standard library
27726         function.
27727         * modules/poll (License): Change from GPL to LGPL, since it's
27728         derived from LGPL code.
27729
27730 2005-09-27  Jim Meyering  <jim@meyering.net>
27731
27732         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
27733         HAVE_CONFIG_H.
27734
27735         * lib/intprops.h (signed_type_or_expr__): Define.
27736         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
27737         for unsigned types.
27738
27739 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27740
27741         * lib/verify.h (verify_expr): Remove, replacing with:
27742         (verify_true): New macro that returns true instead of void.
27743         (verify_type__): Remove.
27744         (verify): Use verify_true rather than verify_type__.
27745
27746 2005-09-26  Bruno Haible  <bruno@clisp.org>
27747
27748         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
27749         is necessary.
27750         (lib_SOURCES): Remove mbchar.c.
27751         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
27752         (Files): Add m4/mbrtowc.m4.
27753         * modules/mbiter: Likewise.
27754         * modules/mbuiter: Likewise.
27755
27756 2005-09-26  Bruno Haible  <bruno@clisp.org>
27757
27758         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
27759         compile mbchar.c if they are not both present.
27760         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
27761         * m4/mbiter.m4 (gl_MBITER): Likewise.
27762         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
27763         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
27764         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
27765
27766 2005-09-25  Jim Meyering  <jim@meyering.net>
27767
27768         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
27769         also uses socklen_t.
27770
27771 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27772
27773         * lib/utimens.c (ENOSYS): Define if not already defined.
27774         (futimens): Support having a null PATH if the file descriptor
27775         is nonnegative.
27776
27777         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
27778         Remove.
27779         (__attribute): Define to empty unless GCC 3.1 or later.
27780         This works around a core dump on OpenBSD 3.4, which has GCC
27781         2.95.3, which dumps core when given __attribute__(()).  It also
27782         simplifies other tests, since we really don't want to bother with
27783         worrying about which ancient version of GCC supported what.
27784         Original problem reported by Yoann Vandoorselaere, with part of
27785         the fix suggested by Derek Price.
27786
27787 2005-09-24  Jim Meyering  <jim@meyering.net>
27788
27789         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
27790         so we can once again use a positive bitfield width of 1 -- now we
27791         don't have to explain why we were using a bitfield width of 2.
27792
27793 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27794
27795         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
27796         and similarly for the other external symbols.  Problem reported
27797         by James Gallager.
27798
27799         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
27800         bug reported by Jim Meyering.
27801
27802         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
27803         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
27804         not needed, since socklen is a prerequisite module.
27805
27806 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27807
27808         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
27809         Problem reported by Eric Blake.
27810         (getaddrinfo): Initialize se so that it's not garbage.
27811         Redo internal storage allocation so that it doesn't make unportable
27812         assumptions about alignment.
27813         Fix a memory leak.
27814
27815         * lib/utimens.c (futimens): Use futimesat if available.
27816         Prefer it to futimes since it doesn't have the futimes bug.
27817
27818         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
27819         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
27820         Instead, declare a function that returns a pointer to an array,
27821         and use verify_type__ to declare the size of the array.
27822         Problem and germ of a solution reported by Bruno Haible.
27823         (verify_type__): Use 2, not 1, for bitfield size, to avoid
27824         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
27825
27826 2005-09-23  Jim Meyering  <jim@meyering.net>
27827
27828         Sync from coreutils.
27829         Correct build failure (socklen_t not defined) on at least
27830         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27831         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27832
27833 2005-09-23  Jim Meyering  <jim@meyering.net>
27834
27835         * modules/getaddrinfo (Depends-on): Add socklen.
27836
27837 2005-09-23  Bruno Haible  <bruno@clisp.org>
27838
27839         * tests/test-verify.c: New file.
27840
27841 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27842
27843         Sync from coreutils.
27844
27845         * modules/argmatch (Depends-on): Add verify.
27846         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
27847         unistd-safer.
27848         * modules/save-cwd (Depends-on): Likewise.
27849
27850         * modules/openat (Files): Add lib/openat-die.c.
27851         (Depends-on): Remove error, exitfail.
27852         Add dirname.
27853
27854         * modules/verify: New file.
27855         * MODULES.html.sh (Diagnostics <assert.h>): New section,
27856         with "verify" module.
27857
27858 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27859
27860         Sync from coreutils.
27861
27862         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
27863         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
27864         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
27865         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
27866         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
27867         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
27868         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
27869         Don't bother checking for string.h, stdlib.h, unistd.h.
27870         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
27871         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
27872         module's job.
27873         * m4/jm-macros.m4 (gl_MACROS): Likewise.
27874         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
27875
27876         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
27877         (gl_GETDATE): Use it.
27878
27879         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
27880
27881 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27882
27883         Sync from coreutils.
27884
27885         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
27886         stat-time.h.
27887         * lib/argmatch.h: Include verify.h
27888         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
27889         (ARGMATCH_ASSERT): Remove; unused.
27890         * lib/canonicalize.c: Assume STDC_HEADERS.
27891         * lib/exclude.c: Include "strcase.h".
27892         * lib/regex_internal.h [!defined _LIBC]: Likewise.
27893         * lib/getusershell.c: Include stdio--.h rather than stdio.h
27894         and stdio-safer.h.
27895         (getusershell): Call fopen, not fopen_safer.
27896         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
27897         Do not include unistd-safer.h.
27898         (save_cwd): Don't call fd_safer; no longer needed
27899         now that we include fcntl--.h.
27900
27901         * lib/getdate.y (relative_time): New type.
27902         (RELATIVE_TIME_0): New constant.
27903         (parser_control): Use relative_time instead of doing it ourselves.
27904         (%union): Add new relative_time rel member.
27905         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
27906         Now typeless.
27907         (relunit, relunit_snumber): Now of type rel.
27908         (zone, rel, relunit, get_date): Adjust to above changes.
27909
27910         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
27911         Do not include unistd-safer.h.
27912         (getloadavg): Don't call fd_safer; no longer needed
27913         now that we include fcntl--.h.
27914
27915         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
27916         (make_dir_parents): Treat ENOSYS like EEXIST.
27917
27918         Improve quality of diagnostics on restore_cwd failure.
27919         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
27920         (make_dir_parents): Last arg is now int * (for errno), not bool *.
27921         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
27922         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
27923         each time through the loop.  Do not diagnose restore_cwd failure;
27924         that is the caller's job (and perhaps the caller does not care).
27925
27926         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
27927         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
27928         If the file already exists but is not a directory, don't bother
27929         to try to make its parents.
27930         Close potential file descriptor leak if we can't chdir("/") (!).
27931         Don't always return true if chdir($PWD) fails; return true only
27932         if the requested action was done successfully (except for the
27933         chdir($PWD)).
27934         Don't log final directory unless we actually made it.
27935         Refactor to avoid duplicate code to fix up permissions.
27936         Don't attempt to fix up parent permissions if chdir($PWD) fails.
27937
27938         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
27939         to make it a bit faster and (I hope) clearer.
27940         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
27941         Fix bug in formats like %2N.
27942
27943         * lib/verify.h: New file.
27944
27945 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27946
27947         Sync from coreutils.
27948         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
27949
27950 2005-09-22  Jim Meyering  <jim@meyering.net>
27951
27952         Sync from coreutils.
27953
27954         * m4/lstat.m4 (gl_FUNC_LSTAT):
27955         Use AC_LIBSOURCES to require lstat.c and lstat.h.
27956         Remove obsolete comment.
27957         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
27958         * m4/xstrtod.m4: Likewise.
27959
27960         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
27961
27962 2005-09-22  Jim Meyering  <jim@meyering.net>
27963
27964         Sync from coreutils.
27965
27966         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
27967
27968         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
27969         the .tm_year member, since otherwise gcc-4.0 would now warn about
27970         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
27971
27972         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
27973         order to avoid an unsuppressible warning from gcc on 64-bit systems.
27974
27975         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
27976         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
27977         when run in a time zone for which daylight savings time is in effect
27978         for the starting date.
27979
27980         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
27981         stop us from restricting permissions of just-created absolute-named
27982         directories.
27983         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
27984         to restore initial working directory.
27985         * lib/mkdir-p.c (make_dir_parents): New parameter:
27986         different_working_dir, to tell caller if/when we change the working
27987         directory and are unable to return to the initial one.
27988         * lib/mkdir-p.h (make_dir_parents): Update prototype.
27989         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
27990         `return false'.  This fixes a bug introduced on 2004-07-30.
27991
27992         * lib/openat.c (fdopendir): Be sure to close the supplied
27993         file descriptor before returning.  This makes our replacement
27994         implementation a little closer to Solaris's, where fdopendir
27995         ties the file descriptor to the returned DIR* pointer.
27996         * lib/openat.c (unlinkat): New function.
27997         * lib/openat.h (unlinkat): Add prototype.
27998         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
27999         (openat_restore_fail): Rename from openat_restore_die.
28000         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
28001
28002         Provide an alternative to exiting immediately upon save_cwd or
28003         restore_cwd failure.  Now, an application can arrange e.g.,
28004         to perform a longjump in that case.
28005         * lib/openat.c: Include dirname.h.
28006         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
28007         (rpl_openat, fdopendir, fstatat): Call openat_save_die
28008         and openat_restore_die rather than calling error directly.
28009         Don't include "error.h" or "exitfail.h"; they're no longer needed.
28010
28011         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
28012         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
28013         define.
28014
28015         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
28016         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
28017                             int utc, int nanoseconds);
28018         Background:
28019         date should not have to allocate a megabyte of virtual memory to
28020         handle a format argument like +%1048575T.  When implemented with
28021         strftime, it must allocate such a buffer, use strftime to fill it
28022         in, print it, then free it.
28023         With fprintftime, it simply prints everything and exits.
28024         With no need for memory allocation, that's one fewer way to fail.
28025         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
28026         optional field width, not before, so we accept %9:z, not %:9z.
28027         (my_strftime): Be sure to use L_('x') for literals.
28028
28029         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
28030         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
28031         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
28032         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
28033         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
28034         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
28035         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
28036         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
28037         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
28038         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
28039         * lib/xgethostname.c, lib/xreadlink.c:
28040         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
28041
28042         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
28043         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
28044         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
28045         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
28046         and don't include <sys/file.h>).
28047
28048 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
28049
28050         Sync from coreutils.
28051
28052         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
28053         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
28054         [!LDAV_DONE]: Avoid unused variable warning.
28055
28056 2005-09-21  Bruno Haible  <bruno@clisp.org>
28057
28058         * lib/unicodeio.h (unicode_to_mb): New declaration.
28059
28060 2005-09-20  Derek Price  <derek@ximbiot.com>
28061
28062         * lib/getaddrinfo.c: Don't include <netdb.h> included from
28063         getaddrinfo.h.
28064
28065 2005-09-20  Bruno Haible  <bruno@clisp.org>
28066
28067         * gnulib-tool: Remove trailing slashes from the values specified for
28068         --source-base, --m4-base, --tests-base, --aux-dir.
28069         Suggested by Simon Josefsson <jas@extundo.com>.
28070
28071 2005-09-20  Bruno Haible  <bruno@clisp.org>
28072
28073         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
28074         func_modules_to_filelist, func_import, func_create_testdir): Make all
28075         sorting results locale-independent, so that gnulib-cache.m4 doesn't
28076         change when gnulib-tool is invoked in a different locale.
28077
28078 2005-09-19  Simon Josefsson  <jas@extundo.com>
28079
28080         * m4/socklen.m4: Fix typo.
28081
28082 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28083
28084         Use a consistent style for including <config.h>.
28085         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
28086         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
28087         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
28088         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
28089         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
28090         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
28091         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
28092         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
28093         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
28094         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
28095         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
28096         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
28097         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
28098         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
28099         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
28100         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
28101         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
28102         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
28103         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
28104         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
28105         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
28106         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
28107         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
28108         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
28109         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
28110         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
28111         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
28112         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
28113         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
28114         lib/xstrtoumax.c, lib/yesno.c:
28115         Standardize inclusion of config.h.
28116         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
28117         lib/inttostr.h:  Removed inclusion of config.h from header files.
28118         * lib/inttostr.c:  Adjusted in-tree users.
28119         * lib/timespec.h: Remove superfluous warning to include config.h.
28120         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
28121         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
28122         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
28123         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
28124         config.h with HAVE_CONFIG_H.
28125
28126 2005-09-19  Jim Meyering  <jim@meyering.net>
28127
28128         * modules/pathmax (License): Change to LGPL.
28129
28130 2005-09-19  Derek Price  <derek@ximbiot.com>
28131
28132         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
28133
28134 2005-09-19  Bruno Haible  <bruno@clisp.org>
28135
28136         * gnulib-tool (import): Provide default for --tests-base.
28137
28138 2005-09-19  Bruno Haible  <bruno@clisp.org>
28139
28140         * doc/quote.texi: New file, extracted from gnulib.texi.
28141         * doc/ctime.texi: New file, extracted from gnulib.texi.
28142         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
28143         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
28144         * doc/gnulib.texi: Include them.
28145
28146 2005-09-18  Bruno Haible  <bruno@clisp.org>
28147
28148         Portability fix.
28149         * gnulib-tool (func_readlink): New function.
28150         (func_ln_if_changed): Use it.
28151
28152 2005-09-18  Bruno Haible  <bruno@clisp.org>
28153
28154         * gnulib-tool: Support --with-tests also with --import.
28155         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
28156         (func_import): Use variables $testsbase and $inctests. Emit a
28157         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
28158         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
28159         SUBDIRS += $testsdir.
28160         (func_create_testdir): Update.
28161
28162 2005-09-18  Bruno Haible  <bruno@clisp.org>
28163
28164         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
28165         instead of $dry_run.
28166         (func_cp_if_changed, func_mv_if_changed): Remove functions.
28167         (func_ln_if_changed): Don't handle dry-run here.
28168         (func_import): In dry-run mode, detect more precisely which actions
28169         would be performed, and don't use "...ing" verbs.
28170
28171 2005-09-18  Bruno Haible  <bruno@clisp.org>
28172
28173         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
28174         (func_import): Use join on two temporary files instead of three nested
28175         loops, in order to determine which files are new or old.
28176
28177 2005-09-18  Bruno Haible  <bruno@clisp.org>
28178
28179         * gnulib-tool (func_import): Comment out code that spits out the
28180         new files with --dry-run.
28181
28182 2005-09-18  Bruno Haible  <bruno@clisp.org>
28183
28184         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
28185
28186 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28187
28188         * lib/stat-time.h: New file.
28189         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
28190         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
28191         in a different way.
28192         (timespec_cmp): New function.
28193         * lib/utimecmp.c: Include stat-time.h.
28194         (SYSCALL_RESOLUTION): Depend on whether various struct stat
28195         members exist, not on the obsolescent ST_MTIM_NSEC.
28196         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
28197
28198 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28199
28200         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
28201
28202 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28203
28204         * MODULES.html.sh (File system functions): Add stat-time.
28205         * modules/stat-time: New file.
28206         * modules/timespec (Files): Remove m4/st_mtim.m4; this
28207         is now done in a different way, by the stat-time module.
28208         * modules/utimecmp (Depends-on): Add stat-time.
28209
28210 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28211
28212         * m4/st_mtim.m4: Remove.  Superseded by...
28213         * m4/stat-time.m4: New file.
28214         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
28215         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
28216
28217 2005-09-15  Derek Price  <derek@ximbiot.com>
28218
28219         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
28220
28221 2005-09-15  Derek Price  <derek@ximbiot.com>
28222
28223         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
28224         * lib/regex_internal.c: Ditto, using this...
28225         (__GNUC_PREREQ): ...new macro.
28226         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
28227         using...
28228         (__GNUC_PREREQ): ...this new macro.
28229
28230         * lib/strstr.h: Include string.h. Define strstr as a macro here.
28231
28232 2005-09-15  Derek Price  <derek@ximbiot.com>
28233             Paul Eggert  <eggert@cs.ucla.edu>
28234
28235         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
28236         changes, consolidating in...
28237         * lib/regex_internal.h: ...this file.
28238
28239 2005-09-13  Jim Meyering  <jim@meyering.net>
28240
28241         * lib/canon-host.c: Filter through gnu indent and reword comments
28242         slightly.
28243         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
28244
28245 2005-09-13  Derek Price  <derek@ximbiot.com>
28246
28247         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
28248         failure.
28249         Reported by Jim Meyering  <jim@meyering.net>.
28250
28251 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28252
28253         * lib/base64.c: Typo.
28254         (base64_encode): Put b64str in initialized data section.
28255
28256 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28257
28258         Merge glibc and coreutils changes into gnulib, plus a few
28259         extra fixes.
28260         * lib/md5.c: Use #error rather than a string.
28261         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
28262         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
28263         (__attribute__): Define to empty for non recent-GCC.
28264         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
28265         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
28266         Renamed from their non-__ counterparts, with new macros replacing
28267         them if not _LIBC.  Add __THROW attribute.
28268         (rol): Remove.
28269         (struct md5_ctx): Align buffer if using GCC.
28270         * lib/sha1.h (struct sha1_ctx): Likewise.
28271         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
28272         The old name was backwards.
28273         (NOTSWAP): Remove; not used.
28274         (rol): New macro, moved here from md5.h.
28275         (sha1_process_block): Remove a FIXME that doesn't make sense.
28276
28277 2005-09-12  Derek Price  <derek@ximbiot.com>
28278
28279         Return usable errors from canon-host.
28280         * lib/canon-host.h: New file.
28281         * lib/canon-host.c (canon_host): Wrap...
28282         (canon_host_r): ...this new function, which now relies exclusively on
28283         getaddrinfo.
28284         (ch_strerror): New function.
28285         (last_cherror): New global.
28286         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
28287         interface.
28288         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
28289         void *.
28290         (freeaddrinfo): Free ai->ai_canonname when set.
28291
28292 2005-09-12  Derek Price  <derek@ximbiot.com>
28293
28294         Make canon-host require getaddrinfo.
28295         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
28296         AC_LIBSOURCE canon-host.h.  Call...
28297         (gl_PREREQ_CANON_HOST): ...this new function, which requires
28298         gl_GETADDRINFO.
28299         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
28300
28301 2005-09-12  Derek Price  <derek@ximbiot.com>
28302
28303         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
28304         LGPL.
28305         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
28306
28307 2005-09-12  Derek Price  <derek@ximbiot.com>
28308
28309         * lib/gai_strerror.c: Include config.h when available.  Include
28310         getaddrinfo.h before other headers to test interface.
28311         Reported by Larry Jones <lawrence.jones@ugs.com>.
28312
28313 2005-09-12  Derek Price  <derek@ximbiot.com>
28314             Paul Eggert  <eggert@cs.ucla.edu>
28315
28316         * modules/glob (Files): Add glob-libc.h.
28317
28318 2005-09-12  Derek Price  <derek@ximbiot.com>
28319             Paul Eggert  <eggert@cs.ucla.edu>
28320
28321         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
28322         glob_.h, glob-libc.h.
28323         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
28324
28325 2005-09-12  Derek Price  <derek@ximbiot.com>
28326             Paul Eggert  <eggert@cs.ucla.edu>
28327
28328         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
28329         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
28330         protecting things that should be done only in gnulib contexts.
28331         * lib/glob_.h: New file, containing only the glob things needed for
28332         gnulib.
28333         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
28334         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
28335         (glob, globfree, glob_pattern_p): Now defined simply in terms of
28336         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
28337         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
28338         and to respect the namespace rules better.
28339
28340 2005-09-08  Simon Josefsson  <jas@extundo.com>
28341
28342         * modules/socklen: New file.
28343
28344 2005-09-08  Simon Josefsson  <jas@extundo.com>
28345
28346         * m4/socklen.m4: New file.
28347
28348 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28349
28350         * modules/utimens (Files): Add m4/utimbuf.m4, since
28351         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
28352         Reported by Sergey Poznyakoff.
28353
28354 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28355
28356         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
28357         definitions, since that's the preferred style in glibc.
28358         Fix a minor spacing issue, and update copyright notice to match
28359         glibc's.
28360
28361 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28362
28363         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
28364
28365 2005-09-06  Simon Josefsson  <jas@extundo.com>
28366
28367         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
28368         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
28369
28370 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28371
28372         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
28373         warning.
28374
28375 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28376
28377         * config/srclist.txt: Add glibc bug 1302.
28378
28379 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28380
28381         Change bitset word type from unsigned int to unsigned long int,
28382         as this has better performance on typical 64-bit hosts.
28383         Port bitset code to hosts with unusual word sizes.
28384         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
28385         (build_collating_symbol):
28386         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
28387         argument is a bitset.  This is merely a style issue, but it makes
28388         it clearer that an entire array is expected.
28389         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
28390         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
28391         Port to the case where bitset_word is not the same as unsigned int.
28392         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28393         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
28394         Likewise.
28395         * lib/regexec.c (check_dst_limits_calc_pos_1,
28396         check_subexp_matching_top):
28397         (build_trtable, group_nodes_into_DFAstates):
28398         Likewise.
28399         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
28400         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
28401         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
28402         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
28403         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
28404         * lib/regcomp.c (optimize_subexps, lower_subexp):
28405         Work even if bitset_word has holes in its bitwise representation.
28406         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
28407         * lib/regexec.c (check_dst_limits_calc_pos_1,
28408         check_subexp_matching_top):
28409         Likewise.
28410         * lib/regex_internal.c (re_string_reconstruct):
28411         Don't assume UCHAR_MAX == 255.
28412         * lib/regex_internal.h (bitset_set_all): Likewise.
28413         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
28414         All uses changed.
28415         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
28416         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
28417         All uses changed.
28418         (BITSET_WORD_MAX): New macro.
28419         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28420         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28421         (bitset_empty, bitset_copy):
28422         Prefer sizeof (bitset) to multiplying it out ourselves.
28423         (bitset_not_merge): Remove; unused.
28424         (bitset_contain): Return bool, not unsigned int with one bit on.
28425         All callers changed.
28426         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28427         alignment than re_node_set; do this by defining a new internal
28428         type struct dests_alloc and using it to allocate memory.
28429
28430 2005-09-05  Bruno Haible  <bruno@clisp.org>
28431
28432         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28433         links.
28434
28435 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28436
28437         * modules/size_max (Makefile.am): Add size_max.h
28438
28439 2005-09-04  Derek Price  <derek@ximbiot.com>
28440
28441         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28442
28443 2005-09-03  Simon Josefsson  <jas@extundo.com>
28444
28445         * gnulib-tool: Fix typo.
28446
28447 2005-09-03  Simon Josefsson  <jas@extundo.com>
28448
28449         * config/srclist.txt: Add glibc bug 1293.
28450
28451 2005-09-03  Derek Price  <derek@ximbiot.com>
28452
28453         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28454         From Larry Jones <lawrence.jones@ugs.com>.
28455
28456 2005-09-02  Simon Josefsson  <jas@extundo.com>
28457
28458         * modules/socklen: New file.
28459
28460 2005-09-02  Simon Josefsson  <jas@extundo.com>
28461
28462         * modules/havelib: New module.
28463
28464         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28465         Use havelib.
28466
28467 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28468
28469         Check for arithmetic overflow when calculating sizes, to prevent
28470         some buffer-overflow issues.  These patches are conservative, in the
28471         sense that when I couldn't determine whether an overflow was possible,
28472         I inserted a run-time check.
28473         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28474         macros.
28475         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28476         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28477         (re_xnrealloc, re_x2nrealloc): New inline functions.
28478         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28479         parse_bracket_exp):
28480         (build_equiv_class, build_charclass): Check for arithmetic overflow
28481         in size expression calculations.
28482         * lib/regex_internal.c (re_string_realloc_buffers):
28483         (build_wcs_upper_buffer, re_node_set_add_intersect):
28484         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28485         (re_dfa_add_node, register_state): Likewise.
28486         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28487         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28488         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28489         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28490
28491 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28492
28493         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28494         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28495
28496 2005-09-02  Bruno Haible  <bruno@clisp.org>
28497
28498         Support for lib vs. lib64 distinction on biarch platforms.
28499         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28500         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28501         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28502
28503 2005-09-02  Bruno Haible  <bruno@clisp.org>
28504
28505         * gnulib-tool (import): In the other first-use case, provide defaults
28506         as well.
28507
28508 2005-09-02  Bruno Haible  <bruno@clisp.org>
28509
28510         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28511         patches not yet found in the latest gettext release.
28512
28513 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28514
28515         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28516         to avoid a collision with bits/local_lim.h in glibc.
28517         All uses changed.  Problem reported by Dmitry V. Levin in
28518         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28519
28520         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
28521         bugs in int versus size_t comparisons.
28522         (re_string_context_at): Fix bug where the code assumed that
28523         Idx is signed.
28524
28525         Use bool where appropriate.
28526         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
28527         All callers changed.
28528         (calc_eclosure_iter): Likewise, for ROOT arg.
28529         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
28530         (build_charclass_op): Likewise, for NON_MATCH arg.
28531         * lib/regex_internal.c (re_string_allocate, re_string_construct):
28532         (re_string_construct_common): Likewise, for ICASE arg.
28533         * lib/regexec.c (re_search_2_stub, re_search_stub):
28534         Likewise, for RET_LEN arg.
28535         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
28536         (set_regs): Likewise, for FL_BACKTRACK arg.
28537         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
28538         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28539         (calc_eclosure_iter, parse_bracket_exp):
28540         Use bool for internal variables that are booleans.
28541         * lib/regexec.c (re_search_internal, check_matching,
28542         proceed_next_node):
28543         (set_regs, build_sifted_states, sift_states_bkref):
28544         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28545         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28546         (find_collation_sequence_value):
28547         Likewise.
28548         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28549         (re_node_set_compare):
28550         Return bool, not int. All callers changed.
28551         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28552         (build_trtable, check_node_accept): Likewise.
28553         * lib/regex_internal.h: Include stdbool.h.
28554
28555         Fix bugs uncovered when converting to bool.
28556         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28557         failure instead of charging ahead blindly.
28558         * lib/regex_internal.c (register_state): Likewise.
28559         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
28560         for freeing internal storage.
28561         (group_nodes_into_DFA_states): Use unsigned int, not int, for
28562         bitset pieces used as boolean, to avoid undefined behavior
28563         on hosts that do int overflow checking.
28564
28565 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28566
28567         * config/srclist.txt: Add glibc bugs 1285-1287.
28568
28569 2005-09-01  Jim Meyering  <jim@meyering.net>
28570
28571         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
28572         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
28573         Require gl_STAT_MACROS, too.
28574
28575 2005-09-01  Bruno Haible  <bruno@clisp.org>
28576
28577         * gnulib-tool (import): In the first-use case, provide defaults.
28578
28579 2005-09-01  Bruno Haible  <bruno@clisp.org>
28580
28581         * gnulib-tool (func_import): Remove the .tmp files.
28582
28583 2005-09-01  Bruno Haible  <bruno@clisp.org>
28584
28585         * gnulib-tool (func_import): Fix handling of symbolic links.
28586
28587 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28588
28589         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
28590         old glibc regex code mishandles strings longer than 2**31 bytes.
28591         This patch fixes this when the regex code is used in gnulib
28592         (i.e., outside glibc).
28593
28594         This patch should not affect the use of the regex code inside
28595         glibc.  No doubt this problem also needs to be handled for glibc
28596         as well, but the result will be an incompatible change to the
28597         glibc ABI, and the old ABI will have to be supported too.  That
28598         can be the the subject for another patch.
28599
28600         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
28601         governing whether the rest of this patch is active.  By default,
28602         the macro is disabled and the patch has no effect.
28603         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
28604         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
28605         (struct re_pattern_buffer, re_search, re_search_2, re_match):
28606         (re_match_2, re_set_registers): Use the new types.
28607         * lib/regex_internal.h (Idx, re_hashval_t): New types.
28608         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
28609         New macros.
28610         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
28611         (re_string_context_at, bin_tree_t, re_dfastate_t):
28612         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
28613         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
28614         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
28615         (re_string_char_size_at, re_string_wchar_at):
28616         (re_string_elem_size_at):
28617         Use the new types and macros to port to 64-bit hosts.
28618         Use unsigned types for internal values, so that the code
28619         mostly works even for arrays larger than SSIZE_MAX.
28620         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
28621         (search_duplicated_node, calc_eclosure_iter, fetch_number):
28622         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28623         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
28624         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
28625         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
28626         (calc_inveclosure, parse_dup_op, build_range_exp):
28627         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
28628         (fetch_number, create_token_tree, mark_opt_subexp):
28629         Likewise.
28630         * lib/regex_internal.c (re_string_construct_common,
28631         create_ci_newstate):
28632         (create_cd_newstate, re_string_allocate, re_string_construct):
28633         (re_string_realloc_buffers, build_wcs_upper_buffer):
28634         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28635         (re_string_reconstruct, re_string_peek_byte_case):
28636         (re_string_fetch_byte_case, re_string_context_at):
28637         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28638         (re_node_set_init_copy, re_node_set_add_intersect):
28639         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28640         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28641         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28642         (re_acquire_state, re_acquire_state_context, register_state):
28643         Likewise.
28644         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
28645         search_cur_bkref_entry):
28646         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
28647         (re_search_internal, re_search_2_stub, re_search_stub)
28648         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
28649         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
28650         (update_cur_sifted_state, check_dst_limits):
28651         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28652         (check_subexp_limits, sift_states_bkref, merge_state_array):
28653         (check_subexp_matching_top, get_subexp, get_subexp_sub):
28654         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
28655         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28656         (expand_bkref_cache, check_node_accept_bytes):
28657         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
28658         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
28659         (acquire_init_state_context, check_halt_node_context):
28660         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
28661         (sift_states_backward, clean_state_log_if_needed):
28662         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
28663         (find_recover_state, transit_state_sb, transit_state_mb):
28664         (transit_state_bkref, build_trtable, match_ctx_clean):
28665         Likewise.
28666         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
28667         to work around an assumption that REG_MISSING is negative.
28668
28669         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
28670         (seek_collating_symbol_entry) [defined _LIBC]:
28671         (lookup_collation_sequence_value) [defined _LIBC]:
28672         (build_range_exp, build_collating_symbol) [defined _LIBC]:
28673         Use prototypes rather than old-style function definitions.
28674         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
28675         (transit_state_sb) [0]:
28676         (find_collation_sequence_value) [defined _LIBC]: Likewise.
28677
28678         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
28679         rm_eo.
28680
28681         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
28682         (optimize_subexps, lower_subexp):
28683         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
28684         since the signed shift might overflow.  Use 1u<<31 instead.
28685         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28686         Likewise.
28687         * lib/regexec.c (check_dst_limits_calc_pos_1,
28688         check_subexp_matching_top): Likewise.
28689
28690         * lib/regcomp.c (optimize_subexps, lower_subexp):
28691         Use CHAR_BIT rather than 8, for clarity.
28692         * lib/regexec.c (check_dst_limits_calc_pos_1):
28693         (check_subexp_matching_top): Likewise.
28694         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
28695         have to worry about portability issues when shifting it left.
28696         Remove no-longer-needed test for table_size > 0.
28697         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
28698         in a word, as the resulting behavior is undefined.
28699         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
28700         in one case, a <= should have been an <, and in another case the
28701         whole test was missing.
28702         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
28703         the standard name CHAR_BIT.
28704         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
28705         this is not true on one's complement and signed-magnitude hosts.
28706
28707         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
28708         next_last_offset.
28709         (struct re_dfa_t): Remove unused member states_alloc.
28710         * lib/regcomp.c (init_dfa): Don't initialize unused members.
28711
28712 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28713
28714         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
28715         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
28716         and large-file glibc and in 32-bit large-file Solaris.
28717
28718 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28719
28720         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
28721         lengths fit in regoff_t; this isn't true if regoff_t is the same
28722         width as size_t.
28723         * lib/regex.c (re_search_internal): 5th arg is LAST_START
28724         (= START + RANGE) instead of RANGE.  This avoids overflow
28725         problems when regoff_t is the same width as size_t.
28726         All callers changed.
28727         (re_search_2_stub): Check for overflow when adding the
28728         sizes of the two strings.
28729         (re_search_stub): Check for overflow when adding START
28730         to RANGE; if it occurs, substitute the extreme value.
28731
28732 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28733
28734         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
28735
28736 2005-08-31  Jim Meyering  <jim@meyering.net>
28737
28738         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
28739         a pointer-to-const.
28740         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
28741         (register_state): Likewise.
28742         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
28743         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28744         (group_nodes_into_DFAstates): Likewise.
28745
28746 2005-08-31  Jim Meyering  <jim@meyering.net>
28747
28748         * check-module: Add a FIXME comment.
28749
28750 2005-08-31  Eric Blake  <ebb9@byu.net>
28751
28752         * modules/unistd-safer (Files): Add unistd--.h.
28753         * modules/stdio-safer (Files): Add stdio--.h.
28754
28755 2005-08-31  Derek Price  <derek@ximbiot.com>
28756
28757         * lib/getdelim.c (getdelim): Return EOF on EOF.
28758         Reported by Larry Jones <lawrence.jones@ugs.com>.
28759
28760 2005-08-31  Bruno Haible  <bruno@clisp.org>
28761
28762         Avoid unnecessary diffs in the generated lib/Makefile.am.
28763         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
28764         the generated files.
28765         (func_import): Don't set cmd.
28766
28767 2005-08-31  Bruno Haible  <bruno@clisp.org>
28768
28769         * lib/strstr.c: Include <stddef.h>, for NULL.
28770         * lib/strcasestr.c: Likewise.
28771         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28772
28773 2005-08-31  Bruno Haible  <bruno@clisp.org>
28774
28775         * gnulib-tool: New option --macro-prefix.
28776         (func_import): Use macro_prefix.
28777         (import): Handle option --macro-prefix.
28778
28779 2005-08-31  Bruno Haible  <bruno@clisp.org>
28780
28781         * gnulib-tool (import): Rename most ac_* variables to cached_*.
28782         Also use new variables cached_lgpl, cached_libtool.
28783
28784 2005-08-31  Bruno Haible  <bruno@clisp.org>
28785
28786         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
28787         always instantiating them.
28788
28789 2005-08-31  Bruno Haible  <bruno@clisp.org>
28790
28791         * gnulib-tool (func_import): Read the previous cached settings
28792         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
28793         earlier added by gnulib but are now dropped. Warn when a gnulib file
28794         overwrites a non-gnulib file.
28795
28796 2005-08-31  Bruno Haible  <bruno@clisp.org>
28797
28798         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
28799         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
28800         projects that don't keep autogenerated files in CVS. Put into
28801         actioncmd only the specified modules, not the transitive closure.
28802
28803 2005-08-31  Bruno Haible  <bruno@clisp.org>
28804
28805         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
28806         Create directories that shall be filled.
28807         (import): Don't look for gl_* macros in configure.ac. Recurse across
28808         all directories containing a gnulib-cache.m4 files, if meaningful.
28809
28810 2005-08-31  Bruno Haible  <bruno@clisp.org>
28811
28812         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
28813         (import): Set seen_libtool when we see gl_LIBTOOL.
28814
28815 2005-08-31  Bruno Haible  <bruno@clisp.org>
28816
28817         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
28818         declaration macro definitions from generated gnulib.m4.
28819
28820 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
28821
28822         * lib/iconvme.h: Add prototype for iconv_alloc.
28823
28824 2005-08-29  Simon Josefsson  <jas@extundo.com>
28825
28826         * lib/iconvme.c: Fix errno.
28827
28828 2005-08-29  Bruno Haible  <bruno@clisp.org>
28829
28830         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28831         that it works when the directory contains spaces.
28832
28833 2005-08-29  Bruno Haible  <bruno@clisp.org>
28834
28835         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28836
28837 2005-08-29  Bruno Haible  <bruno@clisp.org>
28838
28839         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28840         Emit more advice.
28841
28842 2005-08-29  Bruno Haible  <bruno@clisp.org>
28843         and Stepan Kasal  <kasal@ucw.cz>
28844
28845         * check-module: If more parameters are given, check each of them
28846         separately; add more exceptions, as noted by Jim Meyering.
28847         (check_module): New procedure.
28848         (%exempt_header): Now contains all exceptions.
28849
28850 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
28851
28852         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
28853
28854 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28855
28856         * lib/iconvme.c: Split iconv_string into iconv_alloc.
28857
28858 2005-08-28  Bruno Haible  <bruno@clisp.org>
28859
28860         * m4/gnulib-tool.m4: New file.
28861
28862 2005-08-27  Jim Meyering  <jim@meyering.net>
28863
28864         * modules/unistd-safer (Files): Add pipe-safer.c.
28865         * modules/fcntl-safer (Files): Add creat-safer.c.
28866
28867 2005-08-27  Jim Meyering  <jim@meyering.net>
28868
28869         * m4/stdlib-safer.m4: New file.  From coreutils.
28870         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
28871         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
28872         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
28873         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
28874         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
28875
28876 2005-08-27  Jim Meyering  <jim@meyering.net>
28877
28878         * lib/fopen-safer.c: Merge minor changes from coreutils.
28879         * lib/dup-safer.c: Likewise.
28880         * lib/fd-safer.c: Likewise.
28881
28882         Merge from coreutils.
28883         * lib/stdio--.h: New file.
28884         * lib/stdlib--.h: New file.
28885         * lib/mkstemp-safer.c: New file.
28886
28887         GNU tar needs these.
28888         * lib/pipe-safer.c: New file.
28889         * lib/creat-safer.c: New file.
28890         * lib/fcntl--.h (creat): Define to creat_safer.
28891         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
28892         * lib/unistd--.h (pipe): Define to pipe_safer.
28893         * lib/unistd-safer.h: Declare pipe_safer.
28894
28895 2005-08-26  Simon Josefsson  <jas@extundo.com>
28896
28897         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
28898         Haible <bruno@clisp.org>.
28899
28900 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
28901
28902         * lib/regex_internal.h: Remove all references to
28903         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
28904         or better.
28905         (bitset_not, bitset_merge, bitset_not_merge):
28906         (bitset_mask, re_string_allocate, re_string_construct):
28907         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
28908         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
28909         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
28910         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
28911         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28912         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28913         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
28914         (re_acquire_state_context):
28915         Remove unnecessary forward decls.
28916         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
28917         Put __attribute at function definition,
28918         now that the function decl has been removed.
28919         * lib/regex_internal.c (re_string_peek_byte_case):
28920         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
28921         Likewise.
28922
28923 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
28924
28925         * m4/regex.m4: Add AC_PREREQ(2.50).
28926         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
28927
28928 2005-08-25  Simon Josefsson  <jas@extundo.com>
28929
28930         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
28931         __fsetlocking.
28932
28933 2005-08-25  Simon Josefsson  <jas@extundo.com>
28934
28935         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
28936         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
28937         GLIBC specific code.
28938
28939 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28940
28941         Make regex safe for g++.  This fixes one real bug (an "err"
28942         that should have been "*err").  g++ problem reported by
28943         Sam Steingold.
28944         * lib/regex_internal.h (re_calloc): New macro, consistent with
28945         re_malloc etc.  All callers of calloc changed to use re_calloc.
28946         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
28947         not int.  All callers changed.
28948         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
28949         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
28950         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
28951         (find_recover_state): Change "err" to "*err"; this fixes what
28952         appears to be a real bug.
28953         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
28954         versus int.
28955
28956 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28957
28958         * modules/regex (Depends-on): Add malloc, since the code
28959         assumes that !malloc(0) means failure.
28960
28961 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28962
28963         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
28964
28965         alloca modernization/simplification for regex.
28966         * lib/regex.c: Remove portability cruft for alloca.  This no longer
28967         needs to be at the start of the file, and can be moved into
28968         regex_internal.h and simplified.
28969         * lib/regex_internal.h: Include <alloca.h>.
28970         (__libc_use_alloca) [!defined _LIBC]: New macro.
28971         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
28972         now works outside glibc.
28973
28974 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28975
28976         * config/srclist.txt: Add glibc bugs 1241, 1245.
28977
28978 2005-08-25  Jim Meyering  <jim@meyering.net>
28979
28980         * lib/open-safer.c: Include <config.h>.
28981         Otherwise, we'd lose LARGEFILE support in any file using
28982         e.g. "fcntl--.h"
28983
28984 2005-08-25  Bruno Haible  <bruno@clisp.org>
28985
28986         * m4/minmax.m4: Require autoconf 2.52.
28987         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
28988         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
28989         alternatives of translit over the alphabet.
28990         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
28991
28992 2005-08-24  Simon Josefsson  <jas@extundo.com>
28993
28994         * tests/test-getpass.c: New file.
28995
28996 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28997
28998         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
28999         for GNU regex features.
29000
29001 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29002
29003         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
29004         * lib/regex.h (regerror): Likewise.
29005
29006         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
29007         requires this.  (The code never needed it.)
29008
29009         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
29010         All uses of recently-renamed identifiers changed to use the new,
29011         POSIX-compliant names.  The code will build and run just fine
29012         without these changes, but it's better to eat our own dog food
29013         and use the standard-conforming names.
29014
29015         * lib/regex.h: Fix a multitude of POSIX name space violations.
29016         These changes have an effect only for programs that define
29017         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
29018         do not change anything for programs compiled in the normal way.
29019         Also, there is no effect on the ABI.
29020
29021         (_REGEX_SOURCE): New macro.
29022         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
29023         defined and _GNU_SOURCE is not; this fixes a name space violation.
29024
29025         Rename the following macros to obey POSIX requirements.
29026         The old names are still visible as macros if _REGEX_SOURCE is defined.
29027         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
29028         RE_BACKSLASH_ESCAPE_IN_LISTS.
29029         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
29030         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
29031         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
29032         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
29033         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
29034         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
29035         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
29036         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
29037         (REG_INTERVALS): renamed from RE_INTERVALS.
29038         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
29039         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
29040         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
29041         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
29042         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
29043         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
29044         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
29045         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
29046         RE_UNMATCHED_RIGHT_PAREN_ORD.
29047         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
29048         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
29049         (REG_DEBUG): renamed from RE_DEBUG.
29050         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
29051         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
29052         unusual, since we can't clash with the POSIX REG_ICASE.
29053         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
29054         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
29055         (REG_NO_SUB): renamed from RE_NO_SUB.
29056         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
29057         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
29058         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
29059         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
29060         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
29061         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
29062         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
29063         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
29064         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
29065         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
29066         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
29067         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
29068         RE_SYNTAX_POSIX_MINIMAL_BASIC.
29069         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
29070         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
29071         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
29072         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
29073         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
29074         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
29075         (REG_FIXED): Renamed from REGS_FIXED.
29076         (REG_NREGS): Renamed from RE_NREGS.
29077
29078         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
29079         of other REG_* macros, since POSIX says the user is allowed to
29080         #undef these macros selectively.
29081
29082         (reg_errcode_t): Update comment stating what other tables need
29083         to be consistent.
29084
29085         Rename the following enum values to obey POSIX requirements.
29086         The old names are still visible as macros.
29087         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
29088         is not defined, since GNU is supposed to be a superset of POSIX as
29089         much as possible, and since we want reg_errcode_t to be a signed
29090         type for implementation consistency.
29091         (_REG_NOERROR): Renamed from REG_NOERROR.
29092         (_REG_NOMATCH): Renamed from REG_NOMATCH.
29093         (_REG_BADPAT): Renamed from REG_BADPAT.
29094         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
29095         (_REG_ECTYPE): Renamed from REG_ECTYPE.
29096         (_REG_EESCAPE): Renamed from REG_EESCAPE.
29097         (_REG_ESUBREG): Renamed from REG_ESUBREG.
29098         (_REG_EBRACK): Renamed from REG_EBRACK.
29099         (_REG_EPAREN): Renamed from REG_EPAREN.
29100         (_REG_EBRACE): Renamed from REG_EBRACE.
29101         (_REG_BADBR): Renamed from REG_BADBR.
29102         (_REG_ERANGE): Renamed from REG_ERANGE.
29103         (_REG_ESPACE): Renamed from REG_ESPACE.
29104         (_REG_BADRPT): Renamed from REG_BADRPT.
29105         (_REG_EEND): Renamed from REG_EEND.
29106         (_REG_ESIZE): Renamed from REG_ESIZE.
29107         (_REG_ERPAREN): Renamed from REG_ERPAREN.
29108         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
29109         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
29110         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
29111         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
29112
29113         (_REG_RE_NAME, _REG_RM_NAME): New macros.
29114         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
29115         changed.  But support the old name if the new one is not defined
29116         and if _REGEX_SOURCE.
29117
29118         Change the following member names in struct re_pattern_buffer.
29119         The old names are still supported if !_REGEX_SOURCE.
29120         The new names are always supported, regardless of _REGEX_SOURCE.
29121         (re_buffer): Renamed from buffer.
29122         (re_allocated): Renamed from allocated.
29123         (re_used): Renamed from used.
29124         (re_syntax): Renamed from syntax.
29125         (re_fastmap): Renamed from fastmap.
29126         (re_translate): Renamed from translate.
29127         (re_can_be_null): Renamed from can_be_null.
29128         (re_regs_allocated): Renamed from regs_allocated.
29129         (re_fastmap_accurate): Renamed from fastmap_accurate.
29130         (re_no_sub): Renamed from no_sub.
29131         (re_not_bol): Renamed from not_bol.
29132         (re_not_eol): Renamed from not_eol.
29133         (re_newline_anchor): Renamed from newline_anchor.
29134
29135         Change the following member names in struct re_registers.
29136         The old names are still supported if !_REGEX_SOURCE.
29137         The new names are always supported, regardless of _REGEX_SOURCE.
29138         (rm_num_regs): Renamed from num_regs.
29139         (rm_start): Renamed from start.
29140         (rm_end): Renamed from end.
29141
29142         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
29143         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
29144         Prepend __ to parameter names.
29145
29146         Undo yesterday's changes.
29147
29148 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29149
29150         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
29151         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
29152         lib/regex.c.
29153
29154 2005-08-24  Jim Meyering  <jim@meyering.net>
29155
29156         Sync from coreutils.
29157         * m4/fcntl-safer.m4: New file.
29158
29159         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
29160         and object files for this module.
29161
29162 2005-08-24  Jim Meyering  <jim@meyering.net>
29163
29164         Sync from coreutils.
29165         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
29166
29167 2005-08-24  Jim Meyering  <jim@meyering.net>
29168
29169         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
29170         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
29171
29172 2005-08-24  Jim Meyering  <jim@meyering.net>
29173
29174         * modules/fcntl-safer: New module.
29175         * modules/fts (Depends-on): Add fcntl-safer.
29176         * MODULES.html.sh (File descriptor based Input/Output):
29177         Add fcntl-safer.
29178
29179 2005-08-24  Bruno Haible  <bruno@clisp.org>
29180
29181         Support for unit test modules.
29182         * modules/README: Mention tests modules.
29183         * modules/TEMPLATE-TESTS: New file.
29184         * gnulib-tool: New options --extract-tests-module, --with-tests and
29185         --tests-base (unused for the moment).
29186         (testsbase, inctests): New variables.
29187         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
29188         (func_verify_module): Exclude TEMPLATE-TESTS.
29189         (func_verify_nontests_module, func_verify_tests_module): New functions.
29190         (func_get_dependencies): Add implicit dependency for tests modules.
29191         (func_get_tests_module): New function.
29192         (func_modules_transitive_closure): When --with-tests was specified,
29193         include the unit tests as well, unless explicitly avoided.
29194         (func_emit_lib_Makefile_am): Ignore the tests modules here.
29195         (func_emit_tests_Makefile_am): New function.
29196         (func_create_testdir): When --with-tests was specified, emit a
29197         tests/ directory.
29198         * MODULES.html.sh (Future developments): Update.
29199
29200 2005-08-24  Bruno Haible  <bruno@clisp.org>
29201
29202         * modules/tls-tests: New file.
29203         * tests/test-tls.c: New file, from GNU gettext.
29204
29205 2005-08-24  Bruno Haible  <bruno@clisp.org>
29206
29207         * modules/lock-tests: New file.
29208         * tests/test-lock.c: New file, from GNU gettext.
29209
29210 2005-08-24  Bruno Haible  <bruno@clisp.org>
29211
29212         * lib/lock.h: Add multiple inclusion guard.
29213         * lib/tls.h: Add multiple inclusion guard.
29214
29215 2005-08-24  Bruno Haible  <bruno@clisp.org>
29216
29217         * gnulib-tool: Add support for the --aux-dir option to
29218         --create-testdir, --create-megatestdir, --test, --megatest.
29219         (func_create_testdir, func_create_megatestdir): Optionally emit a
29220         AC_CONFIG_AUX_DIR directive.
29221         (create-testdir, create-megatestdir, test, megatest): Provide a
29222         default value for $auxdir.
29223
29224 2005-08-24  Bruno Haible  <bruno@clisp.org>
29225
29226         * gnulib-tool (import): Use compound statement instead of subshell
29227         where possible.
29228
29229 2005-08-24  Bruno Haible  <bruno@clisp.org>
29230
29231         * gnulib-tool (import): Change --aux-dir default to "build-aux".
29232
29233 2005-08-24  Bruno Haible  <bruno@clisp.org>
29234
29235         * gnulib-tool (func_version): Update.
29236
29237 2005-08-24  Bruno Haible  <bruno@clisp.org>
29238
29239         * gnulib-tool (func_import, func_create_testdir,
29240         func_create_megatestdir): Quote all autoconf macro arguments.
29241
29242 2005-08-24  Bruno Haible  <bruno@clisp.org>
29243
29244         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
29245         option --force, because --force causes the aclocal.m4 of each
29246         subdirectory to be newer than the corresponding config.h.in.
29247
29248 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29249
29250         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
29251         All contents moved to gl_REGEX.
29252         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
29253         assume that it does.
29254
29255 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29256
29257         * lib/regex.h (REG_NOSYS)
29258         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
29259         Define, since POSIX requires it as of 2001.
29260         (_REG_ENOSYS)
29261         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
29262         New private symbol, used to keep the enum signed in all cases.
29263         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
29264         Youngman in
29265         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
29266
29267         * lib/regex_internal.c (re_string_skip_chars, register_state):
29268         (calc_state_hash):
29269         Remove forward decls; no longer needed now that we use prototypes.
29270         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
29271         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
29272         (clean_state_log_if_needed): Likewise.
29273
29274 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29275
29276         * config/srclist.txt: Add glibc bugs 1231-1233.
29277
29278 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29279
29280         Fix problems reported by Sam Steingold in
29281         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
29282         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
29283         assumed that reg_errcode_t is a signed type, which is not
29284         necessarily true if _XOPEN_SOURCE is not defined.
29285         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
29286         since some compilers warn about it otherwise.
29287
29288 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29289
29290         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
29291         (init_word_char, create_initial_state, duplicate_node_closure):
29292         (fetch_token, peek_token_bracket, build_range_exp):
29293         (build_collating_symbol): Remove forward decls; no longer needed
29294         now that we use prototypes.
29295
29296         * lib/regcomp.c:
29297         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
29298         (re_compile_fastmap_iter, regcomp, regerror, regfree):
29299         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
29300         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
29301         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
29302         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
29303         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
29304         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
29305         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
29306         (build_range_exp, build_collating_symbol, parse_bracket_exp):
29307         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
29308         (build_charclass, build_charclass_op, fetch_number, create_tree):
29309         (create_token_tree, mark_opt_subexp, duplicate_tree):
29310         Use prototypes rather than old-style definitions.
29311
29312         * lib/regex_internal.c:
29313         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
29314         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
29315         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
29316         (re_string_reconstruct, re_string_peek_byte_case):
29317         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
29318         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
29319         (re_node_set_init_copy, re_node_set_add_intersect):
29320         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
29321         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
29322         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
29323         (re_acquire_state, re_acquire_state_context, register_state):
29324         (create_ci_newstate, create_cd_newstate, free_state):
29325         Likewise.
29326         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
29327         re_search_2):
29328         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
29329         (re_search_internal, prune_impossible_nodes):
29330         (acquire_init_state_context, check_matching, static):
29331         (check_halt_node_context, check_halt_state_context, proceed_next_node):
29332         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
29333         (update_regs, sift_states_backward, build_sifted_states):
29334         (clean_state_log_if_needed, merge_state_array):
29335         (update_cur_sifted_state, add_epsilon_src_nodes):
29336         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
29337         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
29338         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
29339         (find_recover_state, check_subexp_matching_top, transit_state_mb):
29340         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
29341         (check_arrival, check_arrival_add_next_nodes):
29342         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
29343         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
29344         (check_node_accept_bytes, check_node_accept, extend_buffers):
29345         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
29346         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
29347         (sift_ctx_init):
29348         Likewise.
29349
29350         * lib/regex_internal.h:
29351         (re_string_allocate, re_string_construct, re_string_reconstruct):
29352         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
29353         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
29354         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
29355         (re_string_context_at, re_string_peek_byte_case):
29356         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
29357         is defined, since we now use prototypes always.
29358
29359         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
29360         C89 or better.  All uses removed.
29361
29362 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29363
29364         * config/srclist.txt: Add glibc bugs 1220-1227.
29365
29366 2005-08-20  Jim Meyering  <jim@meyering.net>
29367
29368         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
29369         of unused local, dfa.
29370
29371 2005-08-20  Bruno Haible  <bruno@clisp.org>
29372
29373         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
29374
29375 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29376
29377         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
29378         (re_node_set_insert_last, re_dfa_add_node):
29379         Rename local variables to avoid GCC shadowing warnings.
29380
29381 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29382
29383         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
29384         [defined lint]: Suppress bogus uninitialized-variable warnings.
29385
29386         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
29387         and let the caller return REG_ESPACE if out of space.  This
29388         removes an uninitialied-variable warning with GCC 4.0.1, and also
29389         avoids taking the address of a local variable.  All callers
29390         changed.
29391
29392 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29393
29394         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
29395         $LIBCSRC/posix/regexec.c.
29396         Add glibc bug 1217 for regcomp.c.
29397
29398 2005-08-19  Jim Meyering  <jim@meyering.net>
29399
29400         * lib/regexec.c (proceed_next_node): Redo local variables to
29401         avoid GCC shadowing warnings.
29402
29403 2005-08-18  Bruno Haible  <bruno@clisp.org>
29404
29405         * lib/strstr.c (strstr): Fix return value in multibyte case.
29406         * lib/strcasestr.c (strcasestr): Likewise.
29407
29408 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29409
29410         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
29411
29412 2005-08-17  Jim Meyering  <jim@meyering.net>
29413
29414         Make the %s format (seconds since the epoch) work for a negative
29415         number and when used with a zero-padded field width, e.g. %015s.
29416
29417         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
29418         label so that it precedes the code to set `digits'.  Otherwise,
29419         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29420         print `00-22'.  Now, it prints `-0022', as it should.
29421
29422 2005-08-17  Bruno Haible  <bruno@clisp.org>
29423
29424         * modules/strstr (Files): Add m4/mbrtowc.m4.
29425         (Depends-on): Add mbuiter.
29426
29427 2005-08-17  Bruno Haible  <bruno@clisp.org>
29428
29429         * modules/strcasestr: New file.
29430         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29431         strcasestr.
29432
29433 2005-08-17  Bruno Haible  <bruno@clisp.org>
29434
29435         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29436
29437 2005-08-17  Bruno Haible  <bruno@clisp.org>
29438
29439         * modules/mbuiter: New file.
29440         * MODULES.html.sh (Extended multibyte and wide character utilities):
29441         Add mbuiter.
29442
29443 2005-08-17  Bruno Haible  <bruno@clisp.org>
29444
29445         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29446         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29447
29448 2005-08-17  Bruno Haible  <bruno@clisp.org>
29449
29450         * m4/strcasestr.m4: New file.
29451
29452 2005-08-17  Bruno Haible  <bruno@clisp.org>
29453
29454         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29455         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29456
29457 2005-08-17  Bruno Haible  <bruno@clisp.org>
29458
29459         * lib/strcasestr.h: New file.
29460         * lib/strcasestr.c: New file.
29461
29462 2005-08-17  Bruno Haible  <bruno@clisp.org>
29463
29464         * lib/strcasecmp.c: Use mbuiter.h.
29465
29466 2005-08-17  Bruno Haible  <bruno@clisp.org>
29467
29468         * lib/mbuiter.h: New file.
29469
29470 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29471
29472         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29473         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29474         and gl_GETOPT are both invoked via different paths (as happens
29475         with GNU tar CVS because it uses both argp and getopt), the former
29476         wins.
29477
29478 2005-08-16  Bruno Haible  <bruno@clisp.org>
29479
29480         * modules/tls: New file.
29481         * MODULES.html.sh (Multithreading): Add tls.
29482
29483 2005-08-16  Bruno Haible  <bruno@clisp.org>
29484
29485         * modules/strnlen1: New file.
29486         * MODULES.html.sh (String handling): Add strnlen1.
29487
29488 2005-08-16  Bruno Haible  <bruno@clisp.org>
29489
29490         * modules/strcase (Files): Add m4/mbrtowc.m4.
29491         (Depends-on): Add strnlen1, mbchar.
29492
29493 2005-08-16  Bruno Haible  <bruno@clisp.org>
29494
29495         * modules/mbiter: New file.
29496         * MODULES.html.sh (Extended multibyte and wide character utilities):
29497         Add mbiter.
29498
29499 2005-08-16  Bruno Haible  <bruno@clisp.org>
29500
29501         * modules/mbfile: New file.
29502         * MODULES.html.sh (Extended multibyte and wide character utilities):
29503         Add mbfile.
29504
29505 2005-08-16  Bruno Haible  <bruno@clisp.org>
29506
29507         * modules/mbchar: New file.
29508         * MODULES.html.sh (Extended multibyte and wide character utilities):
29509         New section.
29510
29511 2005-08-16  Bruno Haible  <bruno@clisp.org>
29512
29513         * m4/tls.m4: New file, from GNU gettext.
29514
29515 2005-08-16  Bruno Haible  <bruno@clisp.org>
29516
29517         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29518         always.
29519         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
29520
29521 2005-08-16  Bruno Haible  <bruno@clisp.org>
29522
29523         * m4/mbiter.m4: New file.
29524
29525 2005-08-16  Bruno Haible  <bruno@clisp.org>
29526
29527         * m4/mbfile.m4: New file.
29528
29529 2005-08-16  Bruno Haible  <bruno@clisp.org>
29530
29531         * m4/mbchar.m4: New file.
29532
29533 2005-08-16  Bruno Haible  <bruno@clisp.org>
29534
29535         * lib/tls.h: New file, from GNU gettext.
29536         * lib/tls.c: New file, from GNU gettext.
29537
29538 2005-08-16  Bruno Haible  <bruno@clisp.org>
29539
29540         * lib/strnlen1.h: New file.
29541         * lib/strnlen1.c: New file.
29542
29543 2005-08-16  Bruno Haible  <bruno@clisp.org>
29544
29545         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29546         (mbi_init): Update.
29547         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29548         NUL byte, not after it.
29549
29550 2005-08-16  Bruno Haible  <bruno@clisp.org>
29551
29552         * lib/strcase.h (strcasecmp): Add note in comments.
29553         * lib/strncasecmp.c: Use code from strcasecmp.c.
29554         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29555         (strcasecmp): Work correctly in multibyte locales.
29556
29557 2005-08-16  Bruno Haible  <bruno@clisp.org>
29558
29559         * lib/mbiter.h: New file.
29560
29561 2005-08-16  Bruno Haible  <bruno@clisp.org>
29562
29563         * lib/mbfile.h: New file.
29564
29565 2005-08-16  Bruno Haible  <bruno@clisp.org>
29566
29567         * lib/mbchar.h: New file.
29568         * lib/mbchar.c: New file.
29569
29570 2005-08-16  Bruno Haible  <bruno@clisp.org>
29571
29572         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
29573         the valid ones. Makes the comparison operations transitive:
29574         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
29575         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
29576
29577 2005-08-15  Simon Josefsson  <jas@extundo.com>
29578
29579         * modules/ssize_t (License): Change to 'unlimited'.
29580
29581         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
29582
29583 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29584
29585         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
29586         Add comments for each pending glibc patch.
29587
29588 2005-08-15  Bruno Haible  <bruno@clisp.org>
29589
29590         * lib/regex.h (__restrict_arr): Don't define to __restrict if
29591         __cplusplus is defined.
29592
29593 2005-08-14  Jim Meyering  <jim@meyering.net>
29594
29595         Sync from coreutils.
29596
29597         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
29598         Use the hash-table-based cycle-detection code not just when
29599         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
29600         Reported by James Youngman in
29601         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
29602         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
29603         FTS_TIGHT_CYCLE_CHECK.
29604         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
29605         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
29606         once again.
29607         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
29608         * lib/fts.c (fd_safer): Remove decl.
29609         Include fcntl--.h rather than unistd-safer.h
29610         (fts_safe_changedir): Don't call fd_safer; no longer needed
29611         now that we include fcntl--.h.
29612
29613 2005-08-12  Simon Josefsson  <jas@extundo.com>
29614
29615         * modules/getndelim2: Use ssize_t module.
29616         * modules/getnline: Likewise.
29617         * modules/safe-read: Likewise.
29618         * modules/xreadlink: Likewise.
29619
29620         * modules/ssize_t: New file.
29621
29622 2005-08-12  Simon Josefsson  <jas@extundo.com>
29623
29624         * m4/readline.m4: Look for termcap, curses or ncurses if required.
29625
29626 2005-08-12  Simon Josefsson  <jas@extundo.com>
29627
29628         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29629         ssize_t.
29630
29631 2005-08-12  Simon Josefsson  <jas@extundo.com>
29632
29633         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
29634         readline, getdelim and check_version.
29635         (Support for systems lacking ISO C 99: Sizes of integer types):
29636         Add size_max.
29637
29638 2005-08-12  Bruno Haible  <bruno@clisp.org>
29639
29640         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
29641
29642 2005-08-11  Simon Josefsson  <jas@extundo.com>
29643
29644         * modules/readline: New file.
29645
29646         * modules/strnlen (Files): Add strnlen.h.
29647
29648 2005-08-11  Simon Josefsson  <jas@extundo.com>
29649
29650         * m4/readline.m4: New file.
29651
29652 2005-08-11  Simon Josefsson  <jas@extundo.com>
29653
29654         * lib/readline.h, readline.c: New file.
29655
29656 2005-08-11  Simon Josefsson  <jas@extundo.com>
29657
29658         * doc/gnulib.texi (Initial import, Finishing touches): Mention
29659         gl_AVOID.
29660
29661 2005-08-11  Bruno Haible  <bruno@clisp.org>
29662
29663         * lib/strnlen.h (strnlen): Change parameter name to match comment.
29664
29665 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
29666
29667         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
29668
29669 2005-08-10  Simon Josefsson  <jas@extundo.com>
29670
29671         * tests/test-iconvme.c: New file.
29672
29673 2005-08-10  Simon Josefsson  <jas@extundo.com>
29674
29675         * m4/strnlen.m4: New file.
29676
29677         * m4/strndup.m4: Don't check for strnlen declaration, done in
29678         strnlen.m4.
29679
29680 2005-08-10  Simon Josefsson  <jas@extundo.com>
29681
29682         * lib/strndup.c: Use strnlen.h.
29683
29684         * lib/strnlen.h: New file.
29685
29686 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29687
29688         * README: Typos.
29689
29690 2005-08-02  Simon Josefsson  <jas@extundo.com>
29691
29692         * modules/readline: New file.
29693
29694 2005-08-02  Simon Josefsson  <jas@extundo.com>
29695
29696         * modules/getdelim: New file.
29697
29698         * modules/getline: Rewrite, don't use getndelim2.
29699
29700 2005-08-02  Simon Josefsson  <jas@extundo.com>
29701
29702         * m4/getline.m4: Separate out getdelim stuff into separate module.
29703
29704         * m4/getdelim.m4: New file.
29705
29706 2005-08-02  Simon Josefsson  <jas@extundo.com>
29707
29708         * lib/getline.h, getline.c: Rewrite.
29709
29710         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
29711
29712 2005-07-31  Bruno Haible  <bruno@clisp.org>
29713
29714         * lib/lock.h (gl_lock_initializer): New macro.
29715         (gl_lock_define_initialized): Use it.
29716         (gl_rwlock_initializer): New macro.
29717         (gl_rwlock_define_initialized): Use it.
29718         (gl_recursive_lock_initializer): New macro.
29719         (gl_recursive_lock_define_initialized): Use it.
29720
29721 2005-07-30  Karl Berry  <karl@gnu.org>
29722
29723         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
29724         Report from Ben Pfaff, regarding getopt.
29725
29726 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
29727
29728         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
29729         normal way.
29730         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
29731         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
29732         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
29733         (gl_GETOPT): Use the new macros.  Most of the implementation
29734         is moved to the new macros.  This is for programs like Emacs
29735         that don't want all the functionality of gl_GETOPT.
29736
29737 2005-07-26  Bruno Haible  <bruno@clisp.org>
29738
29739         * m4/lock.m4: Update from GNU gettext.
29740
29741 2005-07-26  Bruno Haible  <bruno@clisp.org>
29742
29743         * lib/lock.h: Update from GNU gettext.
29744         * lib/lock.c: Update from GNU gettext.
29745
29746 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29747
29748         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
29749         obsolescent AC_TRY_RUN.  Include the default includes files, for
29750         'exit'.
29751
29752 2005-07-24  Bruno Haible  <bruno@clisp.org>
29753
29754         * modules/visibility: New file.
29755         * MODULES.html.sh (Misc): Add visibility.
29756
29757 2005-07-24  Bruno Haible  <bruno@clisp.org>
29758
29759         * m4/visibility.m4: New file.
29760
29761 2005-07-24  Bruno Haible  <bruno@clisp.org>
29762
29763         * doc/visibility.texi: New file.
29764
29765 2005-07-22  Bruno Haible  <bruno@clisp.org>
29766
29767         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
29768         $(ALLOCA_H), redundant through BUILT_SOURCES.
29769         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
29770         redundant through BUILT_SOURCES.
29771         * modules/byteswap (Makefile.am): Remove explicit dependency on
29772         $(BYTESWAP_H), redundant through BUILT_SOURCES.
29773         * modules/fnmatch (Makefile.am): Remove explicit dependency on
29774         $(FNMATCH_H), redundant through BUILT_SOURCES.
29775         * modules/getopt (Makefile.am): Remove explicit dependency on
29776         $(GETOPT_H), redundant through BUILT_SOURCES.
29777         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
29778         redundant through BUILT_SOURCES.
29779         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
29780         redundant through BUILT_SOURCES.
29781         * modules/stdbool (Makefile.am): Remove explicit dependency on
29782         $(STDBOOL_H), redundant through BUILT_SOURCES.
29783         * modules/stdint (Makefile.am): Remove explicit dependency on
29784         $(STDINT_H), redundant through BUILT_SOURCES.
29785         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
29786         Remove explicit dependency on $(SYSEXITS_H).
29787         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
29788
29789 2005-07-18  Simon Josefsson  <jas@extundo.com>
29790
29791         * lib/check-version.c (check_version): Accept identical versions too.
29792
29793 2005-07-18  Bruno Haible  <bruno@clisp.org>
29794
29795         * modules/lock: New file.
29796         * MODULES.html.sh (Multithreading): New section.
29797
29798 2005-07-18  Bruno Haible  <bruno@clisp.org>
29799
29800         * m4/lock.m4: New file, from GNU gettext.
29801
29802 2005-07-18  Bruno Haible  <bruno@clisp.org>
29803
29804         * lib/lock.h: New file, from GNU gettext.
29805         * lib/lock.c: New file, from GNU gettext.
29806
29807 2005-07-18  Bruno Haible  <bruno@clisp.org>
29808
29809         * lib/lock.h (gl_once_t): New type.
29810         (gl_once_define, gl_once): New macros.
29811         * lib/lock.c (fresh_once): New variable.
29812         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
29813         functions.
29814
29815 2005-07-16  Simon Josefsson  <jas@extundo.com>
29816
29817         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
29818         workaround, suggested by Bruno.
29819
29820 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29821
29822         * modules/xalloc (Depends-on): Add xalloc-die.
29823         * modules/xvasprintf (Depends-on): Add xalloc-die.
29824
29825 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29826
29827         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
29828         with a minor change.
29829
29830 2005-07-15  Bruno Haible  <bruno@clisp.org>
29831
29832         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29833         When using lib/poll.c, define poll as rpl_poll.
29834
29835 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29836
29837         * modules/argp (Depends-on): Remove unlocked-io.
29838
29839 2005-07-14  Derek Price  <derek@ximbiot.com>
29840
29841         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29842         for glob symlink bug.
29843
29844 2005-07-14  Bruno Haible  <bruno@clisp.org>
29845
29846         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
29847         Instead, test for *_unlocked function declarations directly.
29848
29849 2005-07-11  Simon Josefsson  <jas@extundo.com>
29850
29851         * modules/size_max: New file.
29852
29853         * modules/xsize: Depend on size_max module for size_max.m4.
29854
29855 2005-07-11  Simon Josefsson  <jas@extundo.com>
29856
29857         * lib/size_max.h: New file.
29858
29859 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29860
29861         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
29862         copyright symbol and the year.
29863         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
29864         (version_etc_va): Use parameterized copyright notice.
29865         Reword to conform to the current GNU coding standards.
29866
29867 2005-07-11  Karl Berry  <karl@gnu.org>
29868
29869         * doc/gnulib.texi (Quoting): new node.
29870         (Initial import): more info, from Patrice.
29871
29872 2005-07-11  Bruno Haible  <bruno@clisp.org>
29873
29874         * gnulib-tool (func_usage): Document option --avoid.
29875         (Command line options): Handle --avoid.
29876         (func_acceptable): New function.
29877         (func_modules_transitive_closure): Use it.
29878
29879 2005-07-11  Bruno Haible  <bruno@clisp.org>
29880
29881         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
29882         Reported by Jim Meyering.
29883
29884 2005-07-10  Bruno Haible  <bruno@clisp.org>
29885
29886         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
29887         Needed when size_t is smaller than 'unsigned int'.
29888         Reported by Paul Eggert.
29889
29890 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29891
29892         * modules/argp (Depends-on): Add unlocked-io
29893
29894 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29895
29896         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
29897         block of defines.
29898
29899 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29900
29901         * config/srclist.txt: Comment out regcomp.c, since we have a porting
29902         fix now.
29903
29904 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
29905         and Paul Eggert  <eggert@cs.ucla.edu>
29906
29907         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
29908         in wint_t, not wchar_t.  Remove now-unnecessary cast.
29909
29910 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29911
29912         * modules/regex (Files): Add lib/regex_internal.c,
29913         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
29914         (Depends-on): Add extensions.
29915         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
29916
29917 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29918
29919         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
29920         pathconf.
29921         * m4/same.m4 (gl_SAME): Likewise.
29922         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
29923
29924         * m4/regex.m4: Adjust to new libc regex implementation.
29925         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
29926         all the .c and .h parts of (the new) regex.
29927         Quote the m4 stuff better.
29928         Check for RE_ICASE bug of old gnulib.
29929         Check for REG_STARTEND of recent libc.
29930         Rename local variables from jm_* to gl_*.
29931         Quote operand of "test -f".
29932         Say "recent enough" version of libc, not "version 2".
29933         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
29934         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
29935         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
29936         Remove check for btowc, isascii.
29937         Require AM_LANGINFO_CODESET.
29938
29939 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29940
29941         * lib/regex.c, regex.h: Sync from libc.
29942         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
29943         * lib/regexec.c:
29944         New files, synced from libc, except that regex_internal.h
29945         currently has a small porting fix.
29946
29947 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29948
29949         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
29950         regex_internal.c, regexec.c.
29951         Add regex_internal.h too, but as a comment, since the libc version
29952         is currently broken in gnulib mode.
29953
29954 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29955
29956         Support programs like Emacs that use gnulib but not gettext.
29957         * MODULES.html.sh (Internationalization functions): Add gettext-h.
29958         * modules/gettext-h: New file.
29959         * modules/gettext (Files): Remove lib/gettext.h.
29960         (Depends-on): Add gettext-h.
29961         (Makefile.am): Remove lib_SOURCES.
29962         * modules/argmatch, modules/c-stack, modules/closeout:
29963         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
29964         * modules/execute, modules/file-type, modules/getaddrinfo:
29965         * modules/getopt, modules/human, modules/javacomp:
29966         * modules/javaexec, modules/mkdir-p, modules/obstack:
29967         * modules/openat, modules/pagealign_alloc, modules/pipe:
29968         * modules/quotearg, modules/regex, modules/rpmatch:
29969         * modules/unicodeio, modules/userspec, modules/version-etc:
29970         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
29971         * modules/xsetenv:
29972         Depend on gettext-h, not gettext.
29973
29974 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29975
29976         * gnulib-tool (func_import): Add support for 'public domain' license.
29977         * modules/alloca, modules/atexit, modules/memmove:
29978         Now public domain, not GPL.
29979         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
29980         * modules/realloc, modules/strerror, modules/strtod:
29981         Now LGPL, not GPL.
29982
29983 2005-07-05  Bruno Haible  <bruno@clisp.org>
29984
29985         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
29986         autoconf CVS. Needed for mingw.
29987
29988 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29989
29990         Remove the dependency of the strftime module on the tzset module.
29991         * modules/strftime (Depends-on): Remove dependency on tzset.
29992
29993 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29994
29995         Remove the dependency of the strftime module on the tzset module.
29996         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
29997         gl_FUNC_TZSET_CLOBBER.
29998
29999 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30000
30001         Remove the dependency of the strftime module on the tzset module.
30002         * lib/strftime.c (my_strftime)
30003         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
30004         Copy the input structure, to work around some of the bug with
30005         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
30006         Solaris releases, you should also use the tzset module, but we won't
30007         require it as a dependency any more since we don't want LGPLed code
30008         to depend on GPLed code.
30009
30010 2005-07-02  Jim Meyering  <jim@meyering.net>
30011
30012         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
30013         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
30014         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
30015         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
30016
30017 2005-07-02  Jim Meyering  <jim@meyering.net>
30018
30019         * lib/backupfile.c (backup_args): Change a `0' to NULL.
30020
30021 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
30022
30023         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
30024         declares only 'struct timespec;' (!).
30025
30026 2005-07-01  Jim Meyering  <jim@meyering.net>
30027
30028         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
30029         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
30030         * lib/save-cwd.c, tempname.c:
30031         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30032         and don't include <sys/file.h>).
30033
30034 2005-06-29  Jim Meyering  <jim@meyering.net>
30035
30036         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
30037         type name.  Use the variable name instead.
30038         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
30039         Likewise.
30040
30041 2005-06-28  Simon Josefsson  <jas@extundo.com>
30042
30043         * modules/check-version (Files): Add check-version.m4.
30044
30045 2005-06-28  Simon Josefsson  <jas@extundo.com>
30046
30047         * m4/check-version.m4: New file, suggested by Jim Meyering
30048         <jim@meyering.net>.
30049
30050 2005-06-28  Simon Josefsson  <jas@extundo.com>
30051
30052         * lib/check-version.h, lib/check-version.c: New files.
30053
30054 2005-06-28  Simon Josefsson  <jas@extundo.com>
30055
30056         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
30057         collision with global variable.  Better indentation.  Don't
30058         increment buffer pointer beyond buffer end.  Based on comments
30059         from Paul Eggert <eggert@cs.ucla.edu>.
30060
30061         * lib/base64.h: Indent.
30062
30063 2005-06-28  Simon Josefsson  <jas@extundo.com>
30064
30065         * doc/gnulib.texi (Library version handling): New section.
30066
30067 2005-06-28  Jim Meyering  <jim@meyering.net>
30068
30069         * check-module (find_included_lib_files): Hard-code another
30070         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
30071         but modules/fts-lgpl (correctly) does not list those files.
30072
30073         * modules/canonicalize (Files): Add lib/pathmax.h.
30074
30075 2005-06-25  Simon Josefsson  <jas@extundo.com>
30076
30077         * modules/check-version: New file.
30078
30079 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
30080
30081         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
30082         initializer of struct addrinfo, as an indication that we don't
30083         care how many members the structure has.
30084
30085 2005-06-24  Derek Price  <derek@ximbiot.com>
30086         and Bruno Haible  <bruno@clisp.org>
30087
30088         Remove stat module & update lstat.
30089         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
30090         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30091         * m4/stat.m4: Remove this file.
30092
30093 2005-06-24  Derek Price  <derek@ximbiot.com>
30094         and Bruno Haible  <bruno@clisp.org>
30095
30096         Remove stat module & update lstat.
30097         * lib/stat.c: Remove this file...
30098         (slash_aware_lstat): ...moving this content and its support...
30099         * lib/lstat.c (rpl_lstat): ...into here.
30100         * lib/lstat.h: New file.
30101
30102 2005-06-24  Derek Price  <derek@ximbiot.com>
30103         and Bruno Haible  <bruno@clisp.org>
30104
30105         Remove stat module & update lstat.
30106         * config/srclist.txt (libc sources): Remove stat.
30107
30108 2005-06-24  Derek Price  <derek@ximbiot.com>
30109         and Bruno Haible  <bruno@clisp.org>
30110
30111         Remove stat module & update lstat.
30112         * MODULES.html.sh (stat): Remove.
30113         * MODULES.html: Regenerated.
30114         * modules/lstat (Description): Correct function name.
30115         (Files): Add "lstat.h".
30116         (Depends-on): Remove stat, add xalloc, stat-macros.
30117         * modules/stat: Remove this file.
30118         (Include): Add "lstat.h", remove <sys/stat.h>.
30119
30120 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30121
30122         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
30123         (ranged_convert): Don't save conversion in a temporary struct.
30124         This causes a warning with GCC 4.0.0, and anyway in the typical
30125         case it's not worth the extra 100 bytes or so of code.
30126         (ranged_convert, __mktime_internal): When calling a function via a
30127         pointer P, use P () rather than (*P) (), as we now assume C89 or
30128         better.
30129
30130 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30131
30132         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
30133         "who -r" failed to give output.  Problem reported by Tim Waugh.
30134
30135         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
30136         (xcalloc): Use it to avoid needless tests.
30137         Problem reported by Jim Meyering.
30138
30139 2005-06-20  Derek Price  <derek@ximbiot.com>
30140
30141         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
30142         unnecessary for Autoconfs > 2.59c.
30143
30144 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30145
30146         * lib/argp.h (__option_is_short): Check upper limit of
30147         __key. Isprint() requires its argument to have the value
30148         of an unsigned char or EOF.
30149
30150 2005-06-16  Jim Meyering  <jim@meyering.net>
30151
30152         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
30153         when either N or S is zero.
30154
30155 2005-06-16  Derek Price  <derek@ximbiot.com>
30156
30157         * m4/bison.m4: Declare YACC & YFLAGS precious.
30158
30159 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
30160
30161         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
30162         multibyte string or pattern, fall back on unibyte matching.
30163         Problem reported by James Youngman.
30164
30165 2005-06-08  Bruno Haible  <bruno@clisp.org>
30166
30167         * modules/csharpcomp: New file.
30168         * MODULES.html.sh (C#): Add csharpcomp.
30169
30170 2005-06-08  Bruno Haible  <bruno@clisp.org>
30171
30172         * m4/csharpcomp.m4: New file, from GNU gettext.
30173
30174 2005-06-08  Bruno Haible  <bruno@clisp.org>
30175
30176         * lib/csharpcomp.h: New file, from GNU gettext.
30177         * lib/csharpcomp.c: New file, from GNU gettext.
30178         * lib/csharpcomp.sh.in: New file, from GNU gettext.
30179
30180 2005-06-08  Bruno Haible  <bruno@clisp.org>
30181
30182         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
30183         warning on mingw.
30184
30185 2005-06-07  Derek Price  <derek@ximbiot.com>
30186
30187         Sync from CVS.
30188         * lib/glob_.h: Indent nested #ifdef.
30189
30190 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30191
30192         Sync from coreutils.
30193         Use "file name" when talking about file names, instead of "filename"
30194         or "path", as per the GNU coding standards.
30195         * lib/mkdir-p.c: Renamed from makepath.c.
30196         (make_dir_parents): Renamed from make_path.  All callers changed.
30197         * lib/mkdir-p.h: Likewise.  All includers changed.
30198         * lib/filenamecat.c: Renamed from path-concat.c.
30199         (file_name_concat): Renamed from path_concat.  All callers changed.
30200         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
30201         * lib/filenamecat.h: Likewise.  All includers changed.
30202         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
30203         in comments or local variable names.
30204         * lib/basename.c: Likewise.
30205         * lib/canonicalize.c, canonicalize.h: Likewise.
30206         * lib/dirname.c, dirname.h: Likewise.
30207         * lib/euidaccess.c: Likewise.
30208         * lib/exclude.c: Likewise
30209         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
30210         * lib/fsusage.c, fsuage.h: Likewise.
30211         * lib/fts.c, fts_.h: Likewise.
30212         * lib/getcwd.c: Likewise.
30213         * lib/getloadavg.c: Likewise.
30214         * lib/mkstemp.c: Likewise.
30215         * lib/mountlist.c, mountlist.h: Likewise.
30216         * lib/openat.c, openat.h: Likewise.
30217         * lib/readlink-stub.c: Likewise.
30218         * lib/readutmp.c, readutmp.h: Likewise.
30219         * lib/rename.c: Likewise.
30220         * lib/rmdir.c: Likewise.
30221         * lib/same.c: Likewise.
30222         * lib/savedir.c: Likewise.
30223         * lib/stripslash.c: Likewise.
30224         * lib/tempname.c: Likewise.
30225         * lib/xreadlink.c: Likewise.
30226         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
30227         All uses changed.
30228         * lib/exclude.h: Likewise.
30229
30230         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
30231         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30232         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
30233         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30234         * lib/pathmax.h: Include <limits.h> unconditionally, since other
30235         files have been getting away with it for years (MORE/BSD 4.3
30236         is extinct now).
30237         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
30238         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
30239
30240         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
30241         Define to 256, not 255, as per modern POSIX.
30242
30243 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30244
30245         Sync from coreutils.
30246         Use "file name" when talking about file names, instead of "filename"
30247         or "path", as per the GNU coding standards.
30248         * MODULES.html.sh: mkdir-p renamed from makepath.
30249         filenamecat renamed from path-concat.
30250         * modules/filenamecat: Renamed from modules/path-concat.
30251         (Files): filenamecat.h and filenamecat.c renamed from
30252         path-concat.h and path-concat.c.
30253         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
30254         (Include): filenamecat.h, not path-concat.h.
30255         * modules/mkdir-p: Renamed from modules/makepath.
30256         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
30257         makepath.c.
30258         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
30259         (Include): mkdir-p.h, not makepath.h.
30260
30261 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30262
30263         Sync from coreutils.
30264         * m4/mkdir-p.m4: Renamed from makepath.m4.
30265         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
30266         Rename files from makepath.c to mkdir-p.c, and from
30267         makepath.h to mkdir-p.h.
30268         * m4/filenamecat.m4: Renamed from path-concat.m4.
30269         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
30270         Rename files from path-concat.c to filenamecat.c,
30271         and from path-concat.h to filenamecat.h.
30272         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
30273         "file name" in local variables or comments.
30274         * m4/rename.m4: Likewise.
30275
30276 2005-06-01  Bruno Haible  <bruno@clisp.org>
30277
30278         * modules/csharpexec: New file.
30279         * MODULES.html.sh (C#): New section.
30280
30281 2005-06-01  Bruno Haible  <bruno@clisp.org>
30282
30283         * m4/csharp.m4: New file, from GNU gettext.
30284         * m4/csharpexec.m4: New file, from GNU gettext.
30285
30286 2005-06-01  Bruno Haible  <bruno@clisp.org>
30287
30288         * lib/csharpexec.h: New file, from GNU gettext.
30289         * lib/csharpexec.c: New file, from GNU gettext.
30290         * lib/csharpexec.sh.in: New file, from GNU gettext.
30291
30292 2005-05-31  Derek Price  <derek@ximbiot.com>
30293             Paul Eggert  <eggert@cs.ucla.edu>
30294
30295         Sync from cvs.
30296         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30297
30298 2005-05-31  Derek Price  <derek@ximbiot.com>
30299             Paul Eggert  <eggert@cs.ucla.edu>
30300
30301         Sync from cvs.
30302         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
30303
30304 2005-05-29  Derek Price  <derek@ximbiot.com>
30305
30306         * config/srclist.txt (glob_.h, glob.c): Add these files.
30307
30308 2005-05-29  Derek Price  <derek@ximbiot.com>
30309
30310         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
30311         * modules/glob: New file.
30312         * modules/getlogin_r: Add link to POSIX spec in description.
30313
30314 2005-05-29  Derek Price  <derek@ximbiot.com>
30315             Paul Eggert  <eggert@cs.ucla.edu>
30316
30317         * m4/glob.m4: New file.
30318
30319 2005-05-29  Derek Price  <derek@ximbiot.com>
30320             Paul Eggert  <eggert@cs.ucla.edu>
30321
30322         * lib/glob_.h, lib/glob.c: New files.
30323
30324 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30325
30326         * modules/fts (Files): Remove m4/inttypes-pri.m4.
30327         * modules/fts-lgpl (Depends-on): Remove gettext.
30328
30329 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30330
30331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
30332         and don't require gt_INTTYPES_PRI.
30333
30334 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30335
30336         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
30337
30338         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
30339         the configuration hassle isn't worth it.
30340         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
30341         (LONGEST_MODIFIER, PRIuMAX): Remove.
30342
30343 2005-05-27  Bruno Haible  <bruno@clisp.org>
30344
30345         * lib/getlogin_r.h: Remove second include of <stddef.h>.
30346
30347 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
30348
30349         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
30350         _POSIX_PTHREAD_SEMANTICS for Solaris.
30351
30352 2005-05-25  Derek Price  <derek@ximbiot.com>
30353
30354         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
30355
30356 2005-05-25  Derek Price  <derek@ximbiot.com>
30357             Paul Eggert  <eggert@cs.ucla.edu>
30358
30359         * modules/getlogin_r, m4/getlogin_r.m4: New files.
30360         * lib/getlogin_r.c, getlogin_r.h: New files.
30361
30362 2005-05-25  Bruno Haible  <bruno@clisp.org>
30363             Derek Price  <derek@ximbiot.com>
30364
30365         * lib/getlogin_r.h: Simplify API documentation.
30366
30367 2005-05-23  Derek Price  <derek@ximbiot.com>
30368
30369         * modules/minmax (Files): Add m4/minmax.m4.
30370         (configure.ac): Add gl_MINMAX.
30371
30372 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30373
30374         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
30375         so that unistd-safer.h (GPL'ed code) need not be included.
30376
30377 2005-05-22  Bruno Haible  <bruno@clisp.org>
30378
30379         * m4/minmax.m4: New file.
30380         Based on a patch by Derek Price <derek@ximbiot.com>.
30381
30382 2005-05-22  Bruno Haible  <bruno@clisp.org>
30383
30384         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
30385         (INT64_MIN): Fix definition.
30386         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30387
30388         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
30389         NEED_SIGNED_INT_TYPES.
30390
30391         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
30392         HAVE_SYSTEM_INTTYPES.
30393
30394 2005-05-22  Bruno Haible  <bruno@clisp.org>
30395
30396         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
30397         Also include <sys/param.h> if it defines MIN, MAX.
30398         Based on a patch by Derek Price <derek@ximbiot.com>.
30399
30400 2005-05-21  Jim Meyering  <jim@meyering.net>
30401
30402         * modules/fts (Files): Add m4/inttypes-pri.m4.
30403         (Depends-on): Add lstat and remove gettext.  Alphabetize.
30404
30405 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30406
30407         New fts module.
30408         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
30409         (setup_dir, free_dir): New functions.
30410         (enter_dir, leave_dir): Define trivial
30411         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
30412         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
30413         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
30414         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
30415         Move to fts-cycle.c.
30416         (fts_open): Use setup_dir.
30417         (fts_close): Use free_dir.
30418         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
30419         This adds a label and some gotos, but the alternatives were messier.
30420         Check for memory allocation failure when entering a dir.
30421         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30422         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30423         (FTS): New member fts_cycle, that is a union that contains the
30424         old active_dir_ht and cycle_state.  All uses changed to mention
30425         fts_cycle.ht and fts_cycle.state.
30426         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30427         fts.c, with the following changes:
30428         (setup_dir, free_dir): New functions.
30429         (enter_dir): Now returns bool.  Return true if successful, false
30430         if memory exhausted.  All callers changed.
30431         Do not bother partly cleaning up on
30432         memory allocation failure; that is free_dir's job.
30433         However, free ad if hash_insert fails, to avoid memory leak.
30434         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30435         fts->fts_options to see which union member to use.
30436
30437 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30438
30439         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30440         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30441
30442 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30443
30444         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30445
30446 2005-05-20  Jim Meyering  <jim@meyering.net>
30447
30448         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30449         Now a macro, to pacify GCC.
30450
30451 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30452
30453         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30454         of -1.
30455
30456 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30457
30458         * lib/chown.c (rpl_chown): Return -1 on failure.
30459
30460 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30461
30462         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30463         Don't check for stddef.h.
30464         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30465         don't use its results.
30466         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30467         since we include them unconditionally.  Don't require
30468         AM_STDBOOL_H, since stdbool is a prerequisite.
30469         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30470         since we assume C89 or better.
30471         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30472         as we don't use their results.
30473         Don't check for fchdir, memmove, memset, strrchr, as we use
30474         them unconditionally.
30475         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30476         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30477
30478 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30479
30480         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30481         Include <stddef.h> unconditionally, since we assume C89 now.
30482         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30483         * lib/fts.c: Include fts_.h first, to check interface.
30484         Do not include intprops.h; no longer needed.
30485         Include cycle-check.h and hash.h, since fts_.h no longer does.
30486         Remove unnecessary casts of closedir to void.
30487         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30488         decide whether to decrement nlinks.
30489         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30490         (FTS): Use struct hash_table * instead of Hash_table, so that
30491         we no longer need to include hash.h here.
30492
30493 2005-05-18  Jim Meyering  <jim@meyering.net>
30494
30495         * modules/dirfd (License): Change to LGPL.  Most of the code
30496         is already in the public domain.
30497
30498 2005-05-18  Jim Meyering  <jim@meyering.net>
30499
30500         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30501         Reported by Yoann Vandoorselaere.
30502
30503 2005-05-17  Jim Meyering  <jim@meyering.net>
30504
30505         * m4/fts.m4: New file, from coreutils.
30506
30507 2005-05-17  Jim Meyering  <jim@meyering.net>
30508
30509         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30510
30511 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30512
30513         Sync from coreutils.
30514         * m4/unlinkdir.m4: New file.
30515
30516 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30517
30518         Sync from coreutils.
30519         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
30520         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
30521         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
30522         White space changes only.
30523         * lib/makepath.c (make_path): Port to hosts where leading "//" is
30524         special.
30525         * lib/yesno.c: Include getline.h, not ctype.h.
30526         (yesno): Don't remove leading white space; POSIX doesn't allow it.
30527         Use getline to remove arbitrary restriction on response length.
30528
30529 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30530
30531         * config/srclist-update: Spell out "Street" in FSF postal
30532         mail address; this is the style the FSF seems to prefer.
30533
30534         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
30535         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
30536         this updates FSF postal mail address.
30537
30538         Sync from coreutils.
30539         * modules/unlinkdir: New file.
30540         * modules/yesno (Depends-on): Add getline.
30541         * MODULES.html.sh (File system functions): Add unlinkdir.
30542
30543 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30544
30545         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30546         lib/strsep.h:
30547         Change the initial comment to refer to GPL, not LGPL.
30548         gnulib-tool will change it to LGPL as needed.
30549
30550         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30551         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30552         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30553         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30554         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30555         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30556         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30557         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
30558         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
30559         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
30560         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
30561         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
30562         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
30563         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
30564         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
30565         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
30566         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
30567         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
30568         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
30569         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
30570         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
30571         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
30572         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
30573         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
30574         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
30575         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
30576         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
30577         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
30578         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
30579         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
30580         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
30581         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
30582         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
30583         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
30584         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
30585         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
30586         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
30587         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
30588         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
30589         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
30590         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
30591         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
30592         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
30593         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
30594         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
30595         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
30596         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
30597         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
30598         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
30599         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
30600         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30601         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
30602         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
30603         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
30604         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
30605         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
30606         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
30607         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
30608         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
30609         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
30610         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
30611         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
30612         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
30613         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
30614         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
30615         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
30616         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
30617         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
30618         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
30619         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
30620         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
30621         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
30622         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
30623         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
30624         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
30625         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
30626         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
30627         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
30628         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
30629         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
30630         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
30631         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
30632         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
30633         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
30634         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
30635         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
30636         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
30637         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
30638         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
30639         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
30640         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
30641         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
30642         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
30643         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
30644         lib/yesno.c, lib/yesno.h:
30645         Update FSF postal mail address.
30646
30647 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30648
30649         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
30650         tests/test-memmem.c, tests/test-stpncpy.c:
30651         Update FSF postal mail address.
30652
30653 2005-05-13  Bruno Haible  <bruno@clisp.org>
30654
30655         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
30656         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
30657         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
30658         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
30659         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
30660         Add support for 64-bit integers in the MSVC compiler.
30661
30662 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30663
30664         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
30665
30666 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
30667
30668         * gnulib-tool (func_import): Sort and uniquify recommended includes.
30669
30670 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30671
30672         * doc/getdate.texi (General date syntax): Don't say that date
30673         date --iso-8601=ns generates acceptable dates; it doesn't yet.
30674         Problem reported by Nic Ferrier.
30675
30676 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30677
30678         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
30679         specified in ai_socktype. Fix invalid ai_protocol
30680         check. ai_protocol is usually set to 0 or depending on
30681         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
30682         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
30683         ai_socktype / ai_protocol in the returned addrinfo structure.
30684
30685 2005-05-10  Simon Josefsson  <jas@extundo.com>
30686
30687         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
30688         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30689
30690 2005-05-10  Karl Berry  <karl@gnu.org>
30691
30692         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
30693         (from http://www.gnu.org/licenses).
30694         * doc/COPYING.LIB: also rename to COPYING.LESSER.
30695         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
30696         fdl.texi suffices.
30697
30698 2005-05-10  Karl Berry  <karl@gnu.org>
30699
30700         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
30701         (COPYING.DOC): remove.
30702
30703         * config/srclist-update: new FSF address.
30704
30705 2005-05-10  Derek Price  <derek@ximbiot.com>
30706
30707         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
30708         possible.
30709
30710 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30711             Bruno Haible  <bruno@clisp.org>
30712
30713         * modules/inet_ntop: New file.
30714         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30715         inet_ntop.
30716
30717 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30718             Bruno Haible  <bruno@clisp.org>
30719
30720         * m4/inet_ntop.m4: New file.
30721
30722 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30723             Bruno Haible  <bruno@clisp.org>
30724
30725         * lib/inet_ntop.h: New file.
30726         * lib/inet_ntop.c: New file, from glibc with modifications.
30727
30728 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
30729
30730         * modules/time_r (License): Change to LGPL.
30731         * modules/extensions (License): Change to LGPL.  Actually,
30732         the license is more permissive than that, but currently gnulib-tool
30733         doesn't know how to handle more-permissive licenses.
30734
30735         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
30736         Problem reported by Dave Love.
30737
30738 2005-05-08  Jim Meyering  <jim@meyering.net>
30739
30740         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
30741         blank.
30742
30743 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30744
30745         * modules/argmatch (Depends-on): Add stdbool.
30746         * modules/backupfile (Depends-on): Likewise.
30747         * modules/chdir-long (Depends-on): Likewise.
30748         * modules/closeout (Depends-on): Likewise.
30749         * modules/cycle-check (Depends-on): Likewise.
30750         * modules/dirname (Depends-on): Likewise.
30751         * modules/fnmatch (Depends-on): Likewise.
30752         * modules/fsusage (Depends-on): Likewise.
30753         * modules/fwriteerror (Depends-on): Likewise.
30754         * modules/getcwd (Depends-on): Likewise.
30755         * modules/getloadavg (Depends-on): Likewise.
30756         * modules/hard-locale (Depends-on): Likewise.
30757         * modules/makepath (Depends-on): Likewise.
30758         * modules/mountlist (Depends-on): Likewise.
30759         * modules/nanosleep (Depends-on): Likewise.
30760         * modules/posixtm (Depends-on): Likewise.
30761         * modules/quotearg (Depends-on): Likewise.
30762         * modules/readtokens (Depends-on): Likewise.
30763         * modules/readtokens0 (Depends-on): Likewise.
30764         * modules/readutmp (Depends-on): Likewise.
30765         * modules/save-cwd (Depends-on): Likewise.
30766         * modules/strftime (Depends-on): Likewise.
30767         * modules/userspec (Depends-on): Likewise.
30768         * modules/utimecmp (Depends-on): Likewise.
30769         * modules/xgetcwd (Depends-on): Likewise.
30770         * modules/xnanosleep (Depends-on): Likewise.
30771         * modules/xstrtod (Depends-on): Likewise.
30772         * modules/yesno (Depends-on): Likewise.
30773
30774 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30775
30776         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
30777         needless checks.
30778
30779 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30780
30781         Merge from coreutils.  Among other things,
30782         add bulletproofing for cases where stdin, stdout, or stderr are closed.
30783         * lib/fd-safer.c: New file.
30784         * lib/fcntl-safer.h, open-safer.c: Remove.
30785         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
30786         * lib/dup-safer.c: Include unistd-safer.h first.
30787         Don't include errno.h.
30788         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
30789         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
30790         * lib/file-type.c: Rely on file-type.h change.
30791         * lib/getloadavg.c: Include unistd-safer.h.
30792         (getloadavg): Use safer open.
30793         * lib/getusershell.c: Include "stdio-safer.h".
30794         (getusershell): Use safer fopen.
30795         * lib/long-options.c (long_options): Use NULL rather than 0.
30796         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
30797         'free'.
30798         * lib/modechange.c: Likewise.
30799         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
30800         (MODE_DONE): New constant.
30801         (struct mode_change): Remove 'next' member.
30802         (make_node_op_equals): New function; like the old one of the
30803         same name, except it allocates an array.
30804         (mode_compile, mode_create_from_ref): Use it.
30805         (mode_compile): Allocate result as an array, not a linked list.
30806         Parse octal string ourself, so that we catch mistakes like "+0".
30807         (mode_adjust): Arg is an array, not a linked list.
30808         * lib/modechange.c: Include stat-macros.h, xalloc.h.
30809         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
30810         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
30811         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
30812         Remove.  This is now stat-macros.h's job.
30813         (talloc): Remove.  All callers replaced by xalloc, so that
30814         our invokers don't have to worry about reporting memory failures.
30815         (make_node_op_equals): Remove.
30816         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30817         New constants.
30818         (struct mode_change): Moved here from modechange.h.
30819         (mode_append_entry): Remove.
30820         (mode_compile): Remove MASKED_OPS arg, since it encouraged
30821         apps to have incorrect behavior.  Use simpler algorithm for head
30822         and tail.  Don't futz with umask; that's now the job of mode_adjust.
30823         Detect more invalid usages rather than having somewhat-random behavior.
30824         Don't insert an "a=" action, as that leads to incorrect behavior.
30825         (mode_compile, mode_create_from_ref): Return NULL on error instead
30826         of an enum, since now there's only one way to have an error.  All
30827         callers changed.
30828         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
30829         at the correct time.  Simplify calculation of "+u" and its ilk.
30830         Don't mishandle "+X".
30831         (mode_free): Remove "register" and localize decls.
30832         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30833         (struct mode_change): Move to modechange.c; callers don't
30834         need to see this stuff.
30835         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30836         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30837         (mode_change, mode_adjust): Reflect the new signatures noted above.
30838         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30839         that might redefine system include files.
30840         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30841         (my_usleep): Use NULL rather than (void *) 0.
30842         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30843         Use siginterrupt to specify that system calls should be interrupted.
30844         (rpl_nanosleep): Move initialization of suspended closer to call of
30845         my_usleep.
30846         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
30847         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
30848         (desirable_utmp_entry): New function.
30849         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
30850         using x2nrealloc, to simplify logic.
30851         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
30852         size calculation.  Do not assume utmp file is a regular file.
30853         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
30854         (READ_UTMP_CHECK_PIDS): New constant.
30855         * lib/save-cwd.c: Include unistd-safer.h.
30856         (save_cwd): Use fd_safer.
30857         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
30858         [!_LIBC] Include "stat-macros.h" instead.
30859         * lib/unistd-safer.h (fd_safer): New decl.
30860
30861 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30862
30863         * modules/getloadavg (Depends-on): Add unistd-safer.
30864         * modules/getusershell (Depends-on): Add stdio-safer.
30865         * modules/lstat (Depends-on): Remove xalloc.
30866         * modules/mkstemp (Depends-on): Add stat-macros.
30867         * modules/modechange (Depends-on): Remove xstrtol.
30868         Add stat-macros, xalloc.
30869         * modules/save-cwd (Depends-on): Add unistd-safer.
30870         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
30871         * modules/unistd-safer (Files): Add lib/fd-safer.c
30872         (Makefile.am): Remove lib_SOURCES.
30873
30874         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
30875         Remove fcntl-safer; unistd-safer supersedes it.
30876
30877 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30878
30879         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
30880         AC_HEADER_STAT.
30881         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
30882         (gl_PREREQ_CHOWN): Remove.
30883         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
30884         it.  Don't require AC_HEADER_STAT.
30885         (gl_PREREQ_LSTAT): Remove.
30886         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
30887         Don't require AC_HEADER_STAT.
30888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
30889         (gl_PREREQ_RMDIR): Remove.
30890         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
30891         mention stat-macros.h or AC_HEADER_STAT, since we'll make
30892         the stat-macros module a prerequisite.
30893         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
30894         * m4/filemode.m4 (gl_FILEMODE): Likewise.
30895         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
30896         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
30897         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
30898         variable names.
30899         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
30900         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
30901         variable prefixes.
30902         * m4/fcntl-safer.m4: Remove.
30903         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
30904         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
30905         Invoke gl_PREREQ_FD_SAFER.
30906         (gl_PREREQ_FD_SAFER): New macro.
30907         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
30908         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
30909         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
30910         Remove duplicate call to AC_LIBOBJ(readutmp).
30911         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
30912
30913         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
30914         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
30915
30916 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30917
30918         * MODULES.html.sh (Misc): Add byteswap.
30919
30920 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30921
30922         * modules/getcwd (Depends-on): Add extensions.
30923         * modules/openat (Depends-on): Likewise.
30924
30925 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30926
30927         * modules/byteswap: New file.
30928
30929 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30930
30931         * m4/byteswap.m4: New file.
30932
30933 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30934
30935         * lib/byteswap_.h: New file.
30936
30937 2005-04-25  Karl Berry  <karl@gnu.org>
30938
30939         * m4/gettext.m4: Update from GNU gettext 0.14.4.
30940
30941 2005-04-25  Albert Chin  <china@thewrittenword.com>
30942
30943         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
30944         Toolkit C bug.
30945
30946 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
30947
30948         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
30949         (func_ln_if_changed) Remove forcibly for no error message
30950         in case file does not exist.
30951
30952 2005-04-19  Simon Josefsson  <jas@extundo.com>
30953
30954         * gnulib-tool (Options): Make --symlink mean --symbolic.
30955
30956 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
30957
30958         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
30959
30960 2005-04-16  Simon Josefsson  <jas@extundo.com>
30961
30962         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
30963
30964 2005-04-15  Simon Josefsson  <jas@extundo.com>
30965
30966         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
30967
30968 2005-04-15  Simon Josefsson  <jas@extundo.com>
30969
30970         * gnulib-tool: Rename --symlink to --symbolic.
30971
30972 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
30973
30974         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
30975         symbolic links to files instead of copying/moving.  Add --aux-dir,
30976         specifying directory relative --dir where auxiliary build tools
30977         are placed.
30978
30979 2005-04-14  Bruno Haible  <bruno@clisp.org>
30980
30981         * modules/allocsa (License): Change to LGPL.
30982         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30983
30984 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
30985
30986         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
30987         that "UTC +1 second" continues to work.  Problem reported
30988         by Dmitry V. Levin.
30989         (relunit_snumber): New rule.
30990         (relunit): Use it.
30991
30992 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30993
30994         * lib/getdate.y (universal_time_zone_table): New constant.
30995         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
30996         universal_time_zone_table.
30997         (lookup_zone): Prefer universal_time_zone_table to
30998         local_time_zone_table, so that "GMT" time stamps are allowed in
30999         London during the summer.  Problem reported by Ian Abbott.
31000
31001 2005-04-12  Jim Meyering  <jim@meyering.net>
31002
31003         * lib/human.c (humblock): Set *options even when returning due to
31004         xstrtoumax conversion failure.  Thanks to a used-uninitialized
31005         warning from gcc-4.
31006
31007 2005-04-09  Jim Meyering  <jim@meyering.net>
31008
31009         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
31010         -Wuninitialized: initialize tm0.tm_year.
31011
31012 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31013
31014         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
31015         count, since there's no maximum.  All uses changed.
31016         Add member dsts_seen.
31017         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
31018         not being INT_MAX.
31019         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
31020         Use pc_rels_seen to decide whther a date is absolute.
31021
31022         * lib/getdate.y (number): Don't overwrite year.
31023         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
31024         check.
31025
31026 2005-04-02  Simon Josefsson  <jas@extundo.com>
31027
31028         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
31029         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
31030
31031 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
31032
31033         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
31034         where no absolute path name can be longer than PATH_MAX.
31035
31036 2005-03-27  Jim Meyering  <jim@meyering.net>
31037
31038         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
31039
31040 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
31041
31042         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
31043         "one's complement" -> "ones' complement" in comment, as per Knuth.
31044         "value of type" -> "type or expression" in comment.
31045         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
31046
31047 2005-03-26  Jim Meyering  <jim@meyering.net>
31048
31049         Comment nits.
31050         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
31051         Correct typos: s/or/of/.
31052
31053 2005-03-26  Jim Meyering  <jim@meyering.net>
31054
31055         * modules/check-include-files: Move to ../ and rename to...
31056         * check-module: ...this.
31057
31058 2005-03-25  Jim Meyering  <jim@meyering.net>
31059
31060         * modules/xvasprintf (Files): Add xalloc.h.
31061
31062 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
31063
31064         * modules/gettext (Files): config/config.rpath ->
31065         build-aux/config.rpath
31066         * modules/iconv (Files): Likewise.
31067         Problem reported by Oskar Liljeblad.
31068
31069 2005-03-23  Jim Meyering  <jim@meyering.net>
31070
31071         * modules/check-include-files: New script to check for
31072         missing dependencies, multiple includes, etc.
31073
31074         * modules/c-strtold (Depends-on): Add xalloc.
31075         * modules/c-strtod (Depends-on): Add xalloc.
31076         * modules/hash (Depends-on): Add xalloc.
31077         (Files): Remove lib/xalloc.h.
31078
31079         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
31080         * modules/userspec (Files): Add lib/inttostr.h.
31081
31082 2005-03-23  Jim Meyering  <jim@meyering.net>
31083
31084         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
31085
31086 2005-03-22  Jim Meyering  <jim@meyering.net>
31087
31088         * modules/stat-macros: New module.
31089         * modules/canonicalize, modules/euidaccess, modules/file-type,
31090         * modules/filemode, modules/lchown, modules/makepath,
31091         * modules/rmdir, modules/stat: Depend on new stat-macros module
31092         rather than listing lib/stat-macros.h manually.
31093         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
31094
31095 2005-03-22  Jim Meyering  <jim@meyering.net>
31096
31097         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
31098
31099 2005-03-22  Bruno Haible  <bruno@clisp.org>
31100
31101         * config/srclist.txt: Replace target directory 'config' with
31102         'build-aux'.
31103         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
31104         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
31105         ../build-aux/.
31106
31107 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31108
31109         * modules/chdir-long (Depends-on): Add mempcpy.
31110
31111         * modules/acl, modules/backupfile, modules/c-strtod,
31112         modules/c-strtold, modules/canon-host, modules/canonicalize,
31113         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
31114         modules/exclude, modules/exitfail, modules/file-type,
31115         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
31116         modules/getdate, modules/getline, modules/getpagesize,
31117         modules/getpass, modules/getugroups, modules/group-member,
31118         modules/hard-locale, modules/hash, modules/human, modules/idcache,
31119         modules/inttostr, modules/long-options, modules/makepath,
31120         modules/md5, modules/memcasecmp, modules/memcoll,
31121         modules/modechange, modules/mountlist, modules/path-concat,
31122         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
31123         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
31124         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
31125         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
31126         modules/strftime, modules/strndup, modules/strverscmp,
31127         modules/timespec, modules/unlocked-io, modules/userspec,
31128         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
31129         modules/yesno:
31130         Remove lib_SOURCES line from Makefile.am section, as this is now
31131         done automatically by the corresponding Autoconf macro.
31132
31133 2005-03-21  Jim Meyering  <jim@meyering.net>
31134
31135         Changes imported from coreutils.
31136
31137         * lib/cycle-check.c: Don't include xalloc.h.
31138
31139         * lib/path-concat.c: Don't include assert.h.
31140         (path_concat): Remove assertion that would have triggered
31141         for ABASE starting with more than one slash.
31142         Reported by Andreas Schwab.
31143
31144         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
31145         properly when ABASE is an absolute file name.
31146         Correct the description of this function.
31147         Include <assert.h>.
31148         Add an assertion and a test driver.
31149         This fixes a bug introduced on 2004-07-02.
31150         Andreas Schwab reported the resulting failure of cp --parents:
31151         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
31152
31153 2005-03-21  Jim Meyering  <jim@meyering.net>
31154
31155         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
31156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
31157
31158 2005-03-21  Jim Meyering  <jim@meyering.net>
31159         and  Paul Eggert  <eggert@cs.ucla.edu>
31160
31161         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
31162         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
31163         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
31164         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
31165         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
31166         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
31167         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
31168         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
31169         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
31170         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
31171         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
31172         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
31173         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
31174         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
31175         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
31176         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
31177         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
31178         for these modules.
31179
31180 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31181
31182         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
31183         (which shouldn't happen), generate nothing instead of returning 0
31184         immediately, so that nstrftime (NULL, ...) doesn't return 0.
31185
31186 2005-03-16  Bruno Haible  <bruno@clisp.org>
31187
31188         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
31189         HAVE_LONGLONG_64BIT.
31190
31191 2005-03-16  Bruno Haible  <bruno@clisp.org>
31192
31193         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
31194         HAVE_LONGLONG_64BIT.
31195
31196 2005-03-16  Bruno Haible  <bruno@clisp.org>
31197
31198         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
31199         HAVE_LONGLONG_64BIT.
31200
31201 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31202
31203         * lib/strftime.c (my_strftime): Prepend space to format so that we can
31204         reliably distinguish strftime failure from empty output on POSIX
31205         hosts.
31206
31207 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
31208
31209         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
31210         (iconv_string): Don't guess a size-zero buffer, as that might cause
31211         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
31212         result would be 'too large', where 'too large' is (heuristically)
31213         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
31214         overflow concerns.  This will prevent some unwanted malloc failures
31215         when the inputs are very large.
31216
31217 2005-03-15  Karl Berry  <karl@gnu.org>
31218
31219         * config/srclist.txt (config.rpath): from gettext.
31220         * config/config.rpath: update.
31221
31222 2005-03-15  Bruno Haible  <bruno@clisp.org>
31223
31224         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
31225         to 'negate'.
31226
31227         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
31228         variable.
31229
31230         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
31231         results.
31232
31233 2005-03-14  Simon Josefsson  <jas@extundo.com>
31234
31235         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
31236         <fx@gnu.org>.
31237
31238 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
31239
31240         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
31241         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
31242         intprops.h.
31243         * lib/strtol.c: Likewise.
31244
31245 2005-03-14  Jim Meyering  <jim@meyering.net>
31246
31247         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
31248         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
31249         to be nonzero so that we (and caller) can detect the difference
31250         between a valid zero-length expansion and an error return, even
31251         when the underlying strftime fails before writing anything into
31252         that location.
31253
31254 2005-03-14  Bruno Haible  <bruno@clisp.org>
31255
31256         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
31257         Update from GNU gettext 0.14.3.
31258
31259 2005-03-10  Jim Meyering  <jim@meyering.net>
31260
31261         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
31262
31263 2005-03-10  Jim Meyering  <jim@meyering.net>
31264
31265         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
31266         so that this module works on systems without fchdir.
31267
31268 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
31269
31270         Factor int-properties macros into a single file, except for
31271         glibc-related files.
31272         * lib/intprops.h: New file.
31273         * lib/getloadavg.c: Include it instead of limits.h.
31274         (INT_STRLEN_BOUND): Remove.
31275         * lib/human.c: Include intprops.h.
31276         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
31277         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
31278         302/1000.
31279         * lib/inttostr.h: Include intprops.h instead of limits.h.
31280         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
31281         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
31282         for consistency with intprops.h.
31283         (time_t_is_integer, twos_complement_arithmetic): Use them.
31284         * lib/sig2str.h: Include <signal.h>, intprops.h.
31285         (INT_STRLEN_BOUND): Remove.
31286         * lib/strftime.c (TYPE_SIGNED): Remove.
31287         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
31288         * lib/strtol.c: Adjust comments to match intprops.h.
31289         * lib/userspec.c: Include intprops.h.
31290         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
31291         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
31292         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
31293         instead of rolling our own expressions.
31294         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
31295
31296         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
31297         instead of int.
31298         (my_strftime): Do not mishandle years close to INT_MAX, by doing
31299         the right thing even if adding 1900 would overflow.  Similarly
31300         for tm_mon + 1 and tm_yday + 1.
31301         Make %Y always equivalent to %C%y, and similarly for %G and %g.
31302         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
31303         (DO_SIGNED_NUMBER): New macro.
31304         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
31305
31306 2005-03-07  Bruno Haible  <bruno@clisp.org>
31307
31308         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
31309
31310 2005-03-07  Bruno Haible  <bruno@clisp.org>
31311
31312         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
31313
31314 2005-03-04  Derek R. Price  <derek@ximbiot.com>
31315
31316         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
31317         (func_import): Only replace files via --import when they have actually
31318         changed.
31319
31320 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31321
31322         * m4/mmap-anon.m4: New file.
31323         * m4/pagealign_alloc.m4: New file.
31324
31325 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31326             Bruno Haible  <bruno@clisp.org>
31327
31328         * modules/pagealign_alloc: New file.
31329         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
31330
31331 2005-03-03  Derek R. Price  <derek@ximbiot.com>
31332             Bruno Haible  <bruno@clisp.org>
31333
31334         * lib/pagealign_alloc.h: New file.
31335         * lib/pagealign_alloc.c: New file.
31336
31337 2005-03-03  Bruno Haible  <bruno@clisp.org>
31338
31339         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
31340         Use an all-permissive copyright notice, recommended by RMS.
31341
31342 2005-03-02  Bruno Haible  <bruno@clisp.org>
31343
31344         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
31345         of AIX, the replacement has to be done only after <string.h> is
31346         included, therefore not in config.h. stpncpy.h does the replacement,
31347         and stpncpy.c uses it.
31348
31349 2005-03-02  Bruno Haible  <bruno@clisp.org>
31350
31351         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
31352         stpncpy.c uses it.
31353
31354 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31355
31356         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
31357         The workaround isn't strictly needed for POSIX conformance, and
31358         it's too much of a pain to configure and maintain.  We'll ask
31359         people to fix their kernels instead.
31360         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
31361         (NANOSLEEP_BUG_WORKAROUND): Remove.
31362         (xnanosleep): Remove the workaround.
31363
31364 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31365
31366         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
31367         Reported by Derek Price.
31368         (Include): Add "timespec.h".
31369
31370         * modules/xnanosleep (Depends-on): Remove gethrxtime.
31371
31372 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31373
31374         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
31375         to detect nanosleep bug.
31376
31377 2005-03-01  Bruno Haible  <bruno@clisp.org>
31378
31379         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
31380
31381 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31382
31383         * modules/gethrxtime: New file.
31384         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
31385         (Depends-on): Add gethrxtime.
31386         (configure.ac): Add gl_XNANOSLEEP.
31387         (Makefile.am): Remove lib_SOURCES line.
31388
31389 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31390
31391         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
31392         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
31393
31394 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31395
31396         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
31397         * lib/timespec.h (gettime): Return void, since it always
31398         succeeds now.  All uses changed.
31399         * lib/gettime.c (gettime) Likewise.
31400         [HAVE_NANOTIME]: Prefer nanotime.
31401         Assume gettimeofday succeeds, as POSIX requires.
31402         Assime time () succeeds, since other code already does.
31403         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
31404         (timespec_subtract): Remove.
31405         (NANOSLEEP_BUG_WORKAROUND): New constant.
31406         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
31407         things considerably.  Use it only on GNU/Linux hosts, since the
31408         workaround shouldn't be needed elsewhere.
31409
31410 2005-02-24  Bruno Haible  <bruno@clisp.org>
31411
31412         * modules/gettext (Files): Add m4/glibc2.m4.
31413
31414 2005-02-24  Bruno Haible  <bruno@clisp.org>
31415
31416         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
31417         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
31418         * m4/progtest.m4:
31419         Update from GNU gettext 0.14.2.
31420         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31421
31422 2005-02-24  Bruno Haible  <bruno@clisp.org>
31423
31424         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31425         * lib/config.charset: Update from GNU gettext 0.14.2.
31426
31427 2005-02-24  Bruno Haible  <bruno@clisp.org>
31428
31429         * lib/gettext.h: Update from GNU gettext 0.14.2.
31430
31431 2005-02-23  Simon Josefsson  <jas@extundo.com>
31432
31433         * m4/iconvme.m4: New file.
31434
31435 2005-02-23  Jim Meyering  <jim@meyering.net>
31436
31437         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31438         change.
31439         Thanks to Bruno Haible for catching it.
31440
31441 2005-02-22  Simon Josefsson  <jas@extundo.com>
31442
31443         * modules/iconvme: New file.
31444
31445         * MODULES.html.sh: Add iconvme.
31446
31447 2005-02-22  Simon Josefsson  <jas@extundo.com>
31448
31449         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31450
31451 2005-02-22  Simon Josefsson  <jas@extundo.com>
31452
31453         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31454
31455 2005-02-22  Jim Meyering  <jim@meyering.net>
31456
31457         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31458         s/ifndef/ifdef/.
31459
31460 2005-02-20  Neil Conway  <neilc@samurai.com>
31461
31462         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31463         returned by OSX/Darwin if the specified buffer is not large
31464         enough for the hostname.
31465
31466 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31467
31468         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31469         pass it to _help, otherwise the latter coredumps trying to
31470         dereference state.root_argp.
31471
31472 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31473
31474         * modules/chdir-long (Depends-on): Add memrchr.
31475         * modules/memrchr (Files): Add lib/memrchr.h.
31476         (Include): "memrchr.h".
31477
31478 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31479
31480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31481
31482 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31483
31484         * lib/memrchr.h: New file.
31485         * lib/chdir-long.c: Include it.
31486         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31487         Don't bother including stddef.h.
31488
31489 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31490
31491         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31492         inclusion.
31493         Include <sys/types.h>, for dev_t.
31494         (ME_DUMMY, ME_REMOTE): Move from here....
31495         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31496         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31497         Dmitry V. Levin.
31498         Include mountlist.h first, to test the interface.
31499
31500 2005-01-29  Bruno Haible  <bruno@clisp.org>
31501
31502         * lib/progname.c (program_name): Initialize.
31503         Needed when linking statically on MacOS X.
31504
31505 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31506
31507         Sync from coreutils.
31508         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31509         (Depends-on): Add c-strtod.
31510         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31511
31512 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31513
31514         Sync from coreutils.
31515         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31516
31517         Remove files that are specific to coreutils.
31518         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31519
31520 2005-01-28  Bruno Haible  <bruno@clisp.org>
31521
31522         * modules/javacomp: New file.
31523         * MODULES.html.sh (Java): Add javacomp.
31524
31525 2005-01-28  Bruno Haible  <bruno@clisp.org>
31526
31527         * m4/javacomp.m4: New file, from GNU gettext.
31528
31529 2005-01-28  Bruno Haible  <bruno@clisp.org>
31530
31531         * lib/javacomp.sh.in: New file, from GNU gettext.
31532         * lib/javacomp.h: New file, from GNU gettext.
31533         * lib/javacomp.c: New file, from GNU gettext.
31534
31535 2005-01-26  Simon Josefsson  <jas@extundo.com>
31536
31537         * lib/gai_strerror.c: Use GPL in header.
31538
31539 2005-01-26  Bruno Haible  <bruno@clisp.org>
31540
31541         * modules/javaexec: New file.
31542         * MODULES.html.sh (Java): Add javaexec.
31543
31544 2005-01-26  Bruno Haible  <bruno@clisp.org>
31545
31546         * m4/javaexec.m4: New file, from GNU gettext.
31547
31548 2005-01-26  Bruno Haible  <bruno@clisp.org>
31549
31550         * lib/javaexec.sh.in: New file, from GNU gettext.
31551         * lib/javaexec.h: New file, from GNU gettext.
31552         * lib/javaexec.c: New file, from GNU gettext.
31553
31554 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31555
31556         * modules/lchown (Depends-on): Remove lchown.h
31557
31558 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31559
31560         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
31561         must be defined if the header file was not found, in order
31562         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
31563
31564 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31565
31566         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
31567         initializers for struct pentry_state.
31568         (__argp_error): Check return value of __asprintf
31569         (__argp_failure): Translate error message
31570
31571         * lib/argp-parse.c: Removed braces around the expansion of N_()
31572
31573 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31574
31575         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
31576         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
31577         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
31578         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
31579         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
31580         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
31581         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
31582         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
31583         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
31584         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
31585         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
31586         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
31587         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
31588         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
31589         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
31590         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
31591         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
31592         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
31593         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
31594         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
31595         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
31596         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
31597         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
31598         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
31599         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
31600         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
31601         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
31602         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
31603         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
31604         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
31605         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
31606         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
31607         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
31608         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
31609         xstrtol.m4, xstrtoumax.m4, yesno.m4:
31610         Use an all-permissive copyright notice, recommended by RMS.
31611
31612 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31613
31614         * modules/chdir-long (Depends-on): Remove mempcpy.
31615
31616 2005-01-21  Jim Meyering  <jim@meyering.net>
31617
31618         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
31619         same value as for Solaris 9.
31620
31621         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
31622         component length.  This included changing the parameter to be
31623         of type `char *' rather than `char const *'.
31624         * lib/chdir-long.h (chdir_long): Update prototype.
31625
31626         * lib/openat.c (fdopendir, fstatat): New functions.
31627         * lib/openat.h: Include headers required for use of DIR and struct
31628         stat.
31629         [AT_SYMLINK_NOFOLLOW]: Define.
31630         (fdopendir, fstatat): Add prototypes.
31631
31632 2005-01-21  Bruno Haible  <bruno@clisp.org>
31633
31634         * modules/classpath: New file.
31635         * MODULES.html.sh (Java): Add classpath.
31636
31637 2005-01-21  Bruno Haible  <bruno@clisp.org>
31638
31639         * lib/classpath.h: New file, from GNU gettext.
31640         * lib/classpath.c: New file, from GNU gettext.
31641
31642 2005-01-20  Simon Josefsson  <jas@extundo.com>
31643
31644         * modules/version-etc-fsf: New file.
31645
31646 2005-01-20  Simon Josefsson  <jas@extundo.com>
31647
31648         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
31649         * lib/version-etc.c: Remove version_etc_copyright.
31650         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
31651         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
31652
31653 2005-01-20  Simon Josefsson  <jas@extundo.com>
31654
31655         * lib/base64.h (isbase64): Add.
31656
31657         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
31658         using a unsigned prototype, don't inline.
31659         (base64_decode): Use it.
31660
31661 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31662
31663         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
31664         it.
31665
31666 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31667
31668         * lib/save-cwd.c (save_cwd): Remove code to support the case
31669         where fchdir is missing or flaky.
31670
31671 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31672
31673         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
31674
31675 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
31676
31677         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
31678         AC_LIBSOURCES now does this.
31679         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
31680         with new ullong_max module.
31681
31682 2005-01-19  Bruno Haible  <bruno@clisp.org>
31683
31684         * modules/sh-quote: New file.
31685         * MODULES.html.sh (Executing programs): Add sh-quote.
31686
31687 2005-01-19  Bruno Haible  <bruno@clisp.org>
31688
31689         * lib/sh-quote.h: New file, from GNU gettext.
31690         * lib/sh-quote.c: New file, from GNU gettext.
31691
31692 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31693
31694         Merge from coreutils.
31695         * m4/ullong_max.m4: New file.
31696         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
31697         (gl_MACROS): Assume localeconv exists.
31698
31699 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31700
31701         Merge changes from coreutils, as described below in several
31702         changelogs dated today.
31703
31704         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
31705         (O_DIRECTORY): Remove; not needed here, since "." must be
31706         a directory.  All uses removed.
31707         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
31708         universal on Suns, and we also need to test for IRIX.
31709         Revamp code to use 'if' rather than '#if'.
31710         Avoid unnecessary comparison of cwd->desc to 0.
31711
31712         * lib/utimens.c (futimens): Robustify the previous patch, by checking
31713         for known valid error numbers rather than observed invalid ones.
31714
31715 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31716
31717         * modules/ullong_max: New file.
31718
31719         * modules/chdir-long, modules/openat: New files.
31720         * modules/save-cwd (Depends-on): Depend on chdir-long.
31721         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
31722
31723 2005-01-18  Jim Meyering  <jim@meyering.net>
31724
31725         Merge from coreutils.
31726         * m4/chdir-long.m4, m4/openat.m4: New files.
31727         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
31728         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
31729         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
31730         is sane and DOES follow symlinks.  Besides, testing 20 different
31731         systems found no broken chown implementations.
31732         Prompted by a change in rsync's copy of this macro.
31733         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
31734
31735         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
31736
31737         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
31738         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
31739         NULL-means-set-to-current-time semantics.
31740         Remove temporary file immediately, rather than waiting
31741         for configure's at-exit trap code to do it.
31742
31743 2005-01-18  Jim Meyering  <jim@meyering.net>
31744
31745         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31746
31747         * lib/utimens.c (futimens): Account for the fact that futimes
31748         can also fail with errno == ENOSYS or errno == ENOENT.
31749         Patch from Dmitry V. Levin.
31750
31751         Change the name of the robust chdir function from chdir to chdir_long.
31752         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
31753         (restore_cwd): Use chdir_long, not chdir.
31754         * lib/chdir-long.c: Renamed from chdir.c.
31755         * lib/chdir-long.h: Renamed from chdir.h.
31756         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
31757         Hurd.
31758
31759 2005-01-18  Bruno Haible  <bruno@clisp.org>
31760
31761         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
31762         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
31763         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
31764         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
31765         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
31766         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
31767         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
31768         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
31769         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
31770         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
31771         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
31772         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
31773         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
31774         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
31775         Use an all-permissive copyright notice, recommended by RMS.
31776
31777 2005-01-18  Bob Proulx  <bob@proulx.com>
31778
31779         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
31780         simplify offsetof() macro construct to avoid compile failure with
31781         native HP-UX 11.0 ANSI C compiler.
31782
31783 2005-01-17  Bruno Haible  <bruno@clisp.org>
31784
31785         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
31786         redundant because stpncpy.m4 takes care of it.
31787
31788 2005-01-17  Bruno Haible  <bruno@clisp.org>
31789
31790         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
31791
31792 2005-01-17  Bruno Haible  <bruno@clisp.org>
31793
31794         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
31795         used.
31796
31797 2005-01-17  Bruno Haible  <bruno@clisp.org>
31798
31799         * lib/fwriteerror.h (fwriteerror): Change specification to include
31800         fclose.
31801         * lib/fwriteerror.c: Include <stdbool.h>.
31802         (fwriteerror): At the end, close the file stream. Record whether
31803         stdout was already closed.
31804
31805 2005-01-17  Bruno Haible  <bruno@clisp.org>
31806
31807         * lib/execute.c (environ): Declare if needed.
31808         * lib/pipe.c (environ): Likewise.
31809         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
31810
31811 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31812
31813         * modules/argp: Depend on vsnprintf
31814
31815 2005-01-10  Jim Meyering  <jim@meyering.net>
31816
31817         * modules/closeout (Depends-on): Add atexit.
31818
31819 2005-01-06  Bruno Haible  <bruno@clisp.org>
31820
31821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
31822
31823 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31824
31825         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
31826         definitions to be after all include files, to avoid collisions.
31827         Problem reported by Bob Proulx.
31828
31829 2005-01-04  Jim Meyering  <jim@meyering.net>
31830
31831         Changes imported from coreutils.
31832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31833         as the mkstemp template, use a temporary directory and an
31834         8.3-friendly template to avoid trouble on systems like DJGPP.
31835         Reported by Juan M. Guerrero via Stepan Kasal.
31836         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31837         close. Remove the temporary directory right away, rather than waiting
31838         for configure's at-exit trap code to do it.
31839         Suggestion from Stepan Kasal.
31840
31841 2005-01-01  Simon Josefsson  <jas@extundo.com>
31842
31843         * gnulib-tool: Print #include directives when --import'ing.
31844
31845 2004-12-28  Simon Josefsson  <jas@extundo.com>
31846
31847         * tests/test-base64.c: Include required header files.  Remove
31848         unused variables.
31849
31850 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31851
31852         * modules/error (Depends-on): Remove gettext.
31853
31854 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31855
31856         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
31857         not needed.  This removes a dependency on the gettext module.
31858         [defined _LIBC]: Do not include <libintl.h>; not needed.
31859
31860 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31861
31862         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
31863         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
31864
31865 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31866
31867         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
31868         HAVE_DECL_STRTOLD.
31869
31870 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31871
31872         * modules/getdate (Depends-on): Remove alloca-opt.
31873
31874 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31875
31876         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
31877
31878 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31879
31880         * lib/argp-parse.c: Include <stddef.h>.
31881         (alignof, alignto): New macros.
31882         (parser_init): Don't assume that void * is aligned sufficiently
31883         for struct option.
31884
31885         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
31886         need to extend the stack.
31887         (YYINITDEPTH): New macro, so that the initial stack isn't overly
31888         large.
31889
31890 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31891
31892         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
31893
31894 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31895
31896         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
31897         (2004-10-24) change.  Apparently this was a false alarm.
31898
31899         * modules/getdate: Depend on alloca-opt, not alloca.
31900
31901 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31902
31903         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
31904         Remove now-obsolete comment about AIX.
31905         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
31906         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
31907         (YYMAXDEPTH): New macro.
31908
31909 2004-12-18  Simon Josefsson  <jas@extundo.com>
31910
31911         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
31912
31913 2004-12-18  Bruno Haible  <bruno@clisp.org>
31914
31915         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
31916
31917 2004-12-18  Bruno Haible  <bruno@clisp.org>
31918
31919         * lib/fatal-signal.c (fatal_signals): Make non-const.
31920         (init_fatal_signals): New function.
31921         (uninstall_handlers, install_handlers): Ignore signals that were set to
31922         SIG_IGN.
31923         (at_fatal_signal): Call init_fatal_signals.
31924         (init_fatal_signal_set): Likewise. Ignore signals that were set to
31925         SIG_IGN.
31926         Reported by Paul Eggert.
31927
31928 2004-12-18  Bruno Haible  <bruno@clisp.org>
31929
31930         * doc/alloca.texi: New file.
31931         * doc/alloca-opt.texi: New file.
31932
31933 2004-12-17  Jim Meyering  <jim@meyering.net>
31934
31935         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
31936         Otherwise, install-sh could exit with improper exit status when
31937         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
31938
31939 2004-12-16  Simon Josefsson  <jas@extundo.com>
31940
31941         * tests/test-base64.c: Add license.
31942
31943 2004-12-15  Stepan Kasal  <address@hidden>
31944
31945         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
31946
31947 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31948
31949         * modules/getcwd (Files): Add m4/d-ino.m4.
31950         Suggested by Mark D. Baushke.
31951
31952 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31953
31954         * lib/getdate.y (textint): New member "negative".
31955         (time_zone_hhmm): New function.
31956         Expect 14 shift-reduce conflicts, not 13.
31957         (o_colon_minutes): New rule.
31958         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
31959         (yylex): Set the "negative" member of signed numbers.
31960
31961 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31962
31963         * doc/getdate.texi (Time of day items, Time zone items):
31964         Describe new formats +00:00, UTC+00:00.
31965
31966 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31967
31968         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
31969         spurious "-l"s.  Problem reported by Stepan Kasal.
31970
31971 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
31972
31973         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
31974         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
31975
31976 2004-12-04  Simon Josefsson  <jas@extundo.com>
31977
31978         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
31979         Vandoorselaere <yoann@prelude-ids.org>.
31980
31981 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31982
31983         Changes imported from coreutils.
31984         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
31985         exist.
31986         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
31987
31988 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31989
31990         Changes imported from coreutils.
31991         * lib/hard-locale.c: Assume <locale.h> exists.
31992         Include "strdup.h".
31993         (GLIBC_VERSION): New macro.
31994         (hard_locale): Assume setlocale exists.
31995         Rewrite to avoid #ifdef.
31996         Use strdup rather than malloc + strcpy.
31997         * lib/human.c: Assume <locale.h> exists.
31998         (human_readable): Assume localeconv exists.
31999
32000 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
32001
32002         * modules/hard-locale (Depends-on): Add strdup.
32003
32004 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
32005
32006         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
32007         convert T2, not T.  (Imported from libc.)
32008
32009 2004-11-30  Simon Josefsson  <jas@extundo.com>
32010
32011         * modules/restrict (License): Change to LGPL.
32012
32013 2004-11-30  Simon Josefsson  <jas@extundo.com>
32014
32015         * m4/restrict.m4: Add copyright and copying conditions.
32016
32017 2004-11-30  Simon Josefsson  <jas@extundo.com>
32018
32019         * m4/base64.m4: New file.
32020
32021 2004-11-30  Simon Josefsson  <jas@extundo.com>
32022
32023         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
32024         base64.
32025
32026         * tests/test-base64.c: New file.
32027
32028         * modules/base64: New file.
32029
32030 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32031
32032         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32033         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
32034
32035         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
32036
32037 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
32038
32039         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
32040         (__getcwd.c): Don't restore errno; glibc doesn't.
32041         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
32042         first, falling back to our code only if its results look suspicious.
32043         Ensure that the resulting buffer is only as large as necessary.
32044
32045         * lib/readutmp.c: Include readutmp.h first.
32046         Include <errno.h>, since readutmp.h no longer does that.
32047         * lib/readutmp.h: Don't include <errno.h>,
32048         <sys/param.h>, <time.h>; not needed to establish interface.
32049         (errno): Remove decl.
32050         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
32051         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
32052         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
32053
32054 2004-11-28  Simon Josefsson  <jas@extundo.com>
32055
32056         * lib/base64.h, base64.c: New file.
32057
32058 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32059
32060         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
32061
32062 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
32063
32064         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
32065         (Depends-on): Remove pathmax, same.  Add mempcpy.
32066         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
32067         (Makefile.am): Append getcwd.h to lib_SOURCES.
32068         (Include): Add getcwd.h.
32069         (Maintainer): Change from Jim Meyering to "all, glibc",
32070         since getdate now uses intended-for-glibc code.
32071         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
32072         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
32073
32074 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32075
32076         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
32077         HP's ANSI C compiler.
32078         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
32079         Declaring int functions causes warnings on some modern systems and
32080         shouldn't be needed to compile on ancient ones.
32081         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
32082         defined.
32083
32084         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
32085         with the following changes.
32086         (__set_errno): Parenthesize properly.
32087         Include <stdbool.h>.
32088         (MIN, MAX, MATCHING_INO): New macros.
32089         (__getcwd): Define with prototype, not K&R form.
32090         Use heuristics to allocate default buffer on stack if possible.
32091         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
32092         behavior, and to avoid the PATH_MAX limit when computing
32093         ../../../../...
32094         Use MATCHING_INO to compare inode number to file.
32095         Check for arithmetic overflow in size calculations.
32096         Fix bug in reallocation of dot array that caused getcwd to fail
32097         on directories nested deeper than 75.
32098         Be more careful about saving errno on error.
32099         Do not use realloc; use only free+malloc, as this is a bit
32100         more flexible and avoids a needless copy operation.
32101         Do not inspect st_dev and st_ino for symbolic links; POSIX
32102         doesn't specify the latter.
32103         Check for closedir errors.
32104         Avoid needless casts.
32105         Use "#ifdef weak_alias" around weak_alias, to be like other
32106         glibc code.
32107         The following changes to getcwd.c have effect only when used in
32108         gnulib; they have no effect inside glibc proper.
32109         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
32110         as alloca isn't used.
32111         (alloca, __alloca): Likewise.
32112         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
32113         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
32114         unconditionally, as gnulib assumes C89 or better.
32115         Do not include <sys/param.h>.
32116         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
32117         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
32118         better.
32119         (NULL) [!defined NULL]: Remove; we assume C89 or better.
32120         Include <dirent.h> in a way that is compatible with modern Autoconf.
32121         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
32122         New macros, if not already defined.
32123         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
32124         Use "_LIBC", not "defined _LIBC", for consistency.
32125         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
32126         a mempcpy module.
32127         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
32128         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
32129         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
32130         credit only to Jim Meyering and adjust the copyright dates.
32131         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
32132         <stdlib.h>, <unistd.h>, "pathmax.h".
32133         Instead, include "xgetcwd.h" (first) and "getcwd.h".
32134         (INITIAL_BUFFER_SIZE): Remove.
32135         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
32136
32137 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32138
32139         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
32140         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
32141         Use the _ONCE methods, for efficiency.
32142         Check for fcntl.h.  In test program, include <errno.h>
32143         and <fcntl.h> if available.  Remove old K&R cruft from
32144         test program.  Check for common errors in GNU/Linux,
32145         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
32146         don't do AC_LIBOBJ, as that's getcwd.m4's job.
32147         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
32148         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
32149         name accordingly.
32150         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
32151         accommodate new getcwd.c.
32152         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
32153         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
32154         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
32155         that's all we need now.
32156
32157 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32158
32159         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
32160         argp-parse.c depends on getopt internals, that means we should
32161         always use our getopt, to be on the safe side.
32162         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
32163         order not to spoil the result of an eventual previous invocation
32164         of gl_GETOPT_SUBSTITUTE.
32165
32166 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32167
32168         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
32169         redefinition warnings. To avoid them, include the defines
32170         in `#if !defined __need_getopt ... #endif'. The only place
32171         where __getopt_argv_const is used is in definitions
32172         of getopt_long and getopt_long_only below, which are as well
32173         protected by `#ifndef __need_getopt'.
32174         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
32175         __need_getopt after including <stdio.h> and <unistd.h> These
32176         headers might have defined it.
32177
32178 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32179
32180         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
32181
32182 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
32183
32184         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
32185         (futimens): New function, which uses futimes if available.
32186         (futimens, utimens): Support timespec==NULL, with same semantics
32187         as utime and utimens.
32188         * lib/utimens.h (futimens): New decl.
32189
32190 2004-11-23  Jim Meyering  <jim@meyering.net>
32191
32192         * lib/getopt_.h: Remove trailing blanks.
32193
32194 2004-11-23  Jim Meyering  <jim@meyering.net>
32195
32196         * lib/__fpending.c: Add comment.
32197
32198 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
32199
32200         * modules/canonicalize (Depends-on): Add xreadlink.
32201         Problem reported by James Youngman.
32202
32203 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32204
32205         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
32206         New macros.
32207         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
32208         optopt): Use them instead of invoking ## directly; otherwise, the
32209         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
32210
32211 2004-11-19  Bruno Haible  <bruno@clisp.org>
32212
32213         * lib/strtok_r.c: Move comments from here...
32214         * lib/strtok_r.h: ... to here.
32215
32216 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32217
32218         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
32219         implementations that mishandle size_t overflow.
32220
32221 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32222
32223         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
32224         might fail.  Problem reported by Yoann Vandoorselaere.
32225         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
32226         implementations that mishandle size_t overflow.
32227
32228 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32229
32230         * modules/canon-host (Depends-on): Add strdup.
32231
32232 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32233
32234         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
32235
32236 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32237
32238         * lib/canon-host.c: Include "strdup.h".
32239         (canon_host): Use getaddrinfo if available, so that IPv6 works.
32240         Use strdup instead of malloc/strcpy to duplicate strings.
32241
32242         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
32243         (human_space_before_unit): New constant.
32244         * lib/human.c (human_readable): Support it.
32245
32246         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
32247         (xgetcwd): Set errno correctly when failing.
32248         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
32249         the failure is actually due to a PATH_MAX problem.
32250
32251         Further getopt changes to make it more likely that glibc will
32252         buy the changes back.
32253         * lib/getopt.c (POSIXLY_CORRECT): New constant.
32254         (getopt): Use it, so to preserve glibc semantic
32255         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
32256         when compiling for libc.
32257         * lib/getopt_.h (__getopt_argv_const): Bring it back.
32258         (getopt_long, getopt_long_only): Use it.
32259
32260         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32261         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
32262         (getopt): Argv is now char * const *, as per standard.
32263         (_getopt_internal_r, _getopt_internal): Argv is now char **,
32264         not char *__getopt_argv_const *.
32265         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32266         _getopt_long_only_r): Likewise.
32267         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
32268         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32269         _getopt_long_r, _getopt_long_only_r): Likewise.
32270         * lib/getopt_.h (__getopt_argv_const): Remove.
32271         (getopt): Argv is now char * const *, as per standard.
32272
32273         * lib/getdate.y (tORDINAL): New token.
32274         (day, relunit): Allow it for relative times.
32275         (relative_time_table): Use tORDINAL for ordinals.
32276
32277 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32278
32279         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
32280         Document that "second" isn't allowed as an ordinal number.
32281
32282 2004-11-16  Jim Meyering  <jim@meyering.net>
32283
32284         * modules/closeout (Depends-on): Add fpending.
32285
32286 2004-11-15  Jim Meyering  <jim@meyering.net>
32287
32288         * lib/closeout.c: Include "__fpending.h" once again.
32289         Include <stdbool.h>.
32290         (close_stdout): Don't fail just because stdout was closed initially,
32291         since some programs don't write to stdout in the normal course of
32292         operation (other than --version and --help), and we don't want this
32293         function to make e.g. `touch file >&-' fail.
32294         But do fail if it was closed and someone has tried to write to it.
32295         E.g., `printf foo >&-' must fail.
32296
32297 2004-11-13  Jim Meyering  <jim@meyering.net>
32298
32299         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
32300
32301 2004-11-12  Simon Josefsson  <jas@extundo.com>
32302
32303         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
32304         small doc fix is still pending.
32305
32306 2004-11-11  Simon Josefsson  <jas@extundo.com>
32307
32308         * modules/strtok_r: New file.
32309
32310         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32311         strtok_r.
32312
32313 2004-11-11  Simon Josefsson  <jas@extundo.com>
32314
32315         * m4/strtok_r.m4: New file.
32316
32317         * m4/getopt.m4: Replace opterr.
32318
32319 2004-11-11  Simon Josefsson  <jas@extundo.com>
32320
32321         * lib/strtok_r.h, strtok_r.c: New file.
32322
32323 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32324
32325         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
32326         of replacing opterr, getopt, etc.  This should handle the
32327         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
32328
32329 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
32330
32331         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
32332         we can stop lying to compilers about the constness of argv when we
32333         are compiled outside glibc.
32334         (getopt, getopt_long, getopt_long_only): Use it.
32335         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
32336         _getopt_internal, getopt): Likewise.
32337         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
32338         _getopt_long_only_r): Likewise.
32339         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
32340         _getopt_long_r, _getopt_long_only_r): Likewise.
32341
32342         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
32343         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
32344         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
32345         the other external symbols.
32346         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
32347         declaration, since the above renaming now works around collisions.
32348
32349 2004-11-11  Jim Meyering  <jim@meyering.net>
32350
32351         * lib/linebreak.c: Remove trailing blanks.
32352         * lib/alloca_.h: Likewise.
32353         * lib/acosl.c: Likewise.
32354         * lib/euidaccess.c: Likewise.
32355         * lib/allocsa.h: Likewise.
32356
32357 2004-11-10  Simon Josefsson  <jas@extundo.com>
32358
32359         * m4/getaddrinfo.m4: New file.
32360
32361 2004-11-10  Simon Josefsson  <jas@extundo.com>
32362
32363         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
32364
32365 2004-11-10  Simon Josefsson  <jas@extundo.com>
32366
32367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32368         getaddrinfo.
32369
32370         * modules/getaddrinfo: New file.
32371
32372 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32373
32374         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
32375
32376 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32377
32378         * lib/mktime.c (SHR): New macro, which is a portable
32379         substitute for >> that should work even on Crays.
32380         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
32381         Problem reported by Mark D. Baushke in
32382         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
32383         * lib/getdate.y (SHR): Likewise.
32384         (tm_diff): Use it.
32385         * lib/strftime.c (SHR): Likewise.
32386         (tm_diff): Use it.
32387         * lib/quotearg.c (struct quoting_options): Use unsigned int for
32388         quote_these_too, so that right shifts are well defined.  All uses
32389         changed.
32390
32391 2004-11-10  Jim Meyering  <jim@meyering.net>
32392
32393         Ensure that no close failure goes unreported.
32394         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
32395         return early when it seems there's nothing to flush.
32396         Don't include __fpending.h.
32397
32398 2004-11-10  Jim Meyering  <jim@meyering.net>
32399
32400         * modules/closeout (Depends-on): Remove fpending.
32401
32402 2004-11-10  Jim Meyering  <jim@meyering.net>
32403
32404         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
32405
32406 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32407
32408         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
32409         gl_FUNC_STRFTIME.
32410         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
32411         and AC_REQUIRE when possible, to avoid duplicate checks.
32412         Check for <wchar.h>.
32413
32414 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32415
32416         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
32417
32418 2004-11-09  Bruno Haible  <bruno@clisp.org>
32419
32420         * m4/sockpfaf.m4: New file.
32421
32422 2004-11-05  Bruno Haible  <bruno@clisp.org>
32423
32424         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32425         Reported by Mark D. Baushke <mdb@cvshome.org>.
32426
32427 2004-11-04  Bruno Haible  <bruno@clisp.org>
32428
32429         2004-09-11  Bruno Haible  <bruno@clisp.org>
32430                 * allocsa.valgrind: New file.
32431         2004-02-06  Bruno Haible  <bruno@clisp.org>
32432                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32433                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32434                 Reported by Christopher Seip <chris.seip@hp.com>.
32435
32436 2004-11-04  Bruno Haible  <bruno@clisp.org>
32437
32438         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32439         (Makefile.am): Distribute it.
32440
32441 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32442
32443         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32444         with errno == ERANGE if the buffer is too small.
32445         Problem reported by Mark D. Baushke.
32446
32447 2004-11-03  Albert Chin  <china@thewrittenword.com>
32448             Paul Eggert  <eggert@cs.ucla.edu>
32449
32450         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32451         equivalent, substitute $ac_type for equivalent type rather than
32452         blindly using uint32_t *always* which won't work if uint32_t is not
32453         available.  Define _UINT32_T to work around typedef of uint32_t if
32454         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32455         2.5.1.
32456
32457 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32458
32459         * m4/jm-macros.m4: Sync from coreutils.
32460         (gl_MACROS): Check for mbrlen, for pathchk.
32461         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32462
32463 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32464
32465         * lib/xreadlink.c (MAXSIZE): New macro.
32466         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32467         size does not exceed MAXSIZE.  Avoid cast.
32468         As suggested by Mark D. Baushke in
32469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32470         if readlink fails with buffer size just under MAXSIZE, try again
32471         with MAXSIZE.
32472
32473 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32474
32475         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32476
32477 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32478         and  Paul Eggert  <eggert@cs.ucla.edu>
32479
32480         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32481         (get_date): Overparenthesize to avoid GCC warning.
32482
32483 2004-11-02  Bruno Haible  <bruno@clisp.org>
32484
32485         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32486         returns void.
32487
32488 2004-11-02  Bruno Haible  <bruno@clisp.org>
32489
32490         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32491         function returns void.
32492
32493 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32494
32495         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32496         fflush_unlocked, flockfile, funlockfile, funlockfile,
32497         fputs_unlocked, putc_unlocked.
32498
32499 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32500
32501         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32502         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32503         already declared.
32504
32505 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32506
32507         * modules/getdate (Files): Add doc/getdate.texi.
32508         (Depends-on): Add setenv, xalloc.
32509
32510 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32511
32512         * lib/getdate.y: Add support for TZ="foo" within a date string.
32513         Fix some bugs near time_t boundaries.  Reject dates with
32514         out-of-range components, e.g., "Sept 31".
32515         Include <stdlib.h>, "setenv.h", "xalloc.h".
32516         (ISDIGIT_LOCALE): Remove; unused.
32517         Note that the TZ and time functions used here are not reentrant.
32518         (mktime_ok, get_tz): New functions.
32519         (TZBUFSIZE): New constant.
32520         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
32521         This requires that we sometimes generate our own TZ="XXX..." setting.
32522
32523 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32524
32525         * doc/getdate.texi: New file, from coreutils with modifications for
32526         the new TZ parsing.
32527
32528 2004-10-27  Derek R. Price  <derek@ximbiot.com>
32529
32530         * lib/mktime.c (not_equal_tm): Remove redundant check.
32531
32532 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32533
32534         * modules/regex (lib_SOURCES): Add regex.c.
32535         Reported by James Youngman in
32536         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
32537
32538 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32539
32540         * lib/getdate.y: Use Bison 1.875 features, and some minor
32541         code cleanups.  This change does not affect semantics.
32542         Don't include <stdlib.h>; no longer needed.
32543         Don't include unlocked-io.h; only the "#if TEST" code uses
32544         stdio, and performance isn't crucial there.
32545         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32546         Bison 1.875 features as described below.
32547         All uses of "PC." replaced by "pc->".
32548         (YYSTYPE): Add a forward declaration.
32549         (yylex, yyerror): Use full prototypes in forward decls.
32550         Use "%pure-parser" rather than obsolescent "%pure_parser".
32551         Use %parse-param and %lex-param instead of obsolescent
32552         YYPARSE_PARAM and YYLEX_PARAM.
32553         (meridian_table, month_and_day_table, time_units_table,
32554         relative_time_table, time_zone_table, military_table,
32555         lookup_zone, lookup_word, get_date):
32556         Use NULL instead of 0 where appropriate.
32557         (to_hour): Avoid abort (), to avoid a dependency on
32558         stdlib.h.
32559         (yyerror, yylex): Now accepts parser_control * arg.
32560         (main) [TEST]: Use '\0' rather than 0 for char.
32561
32562 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32563
32564         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
32565
32566 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32567
32568         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
32569         It's now the caller's responsibility to handle the case where
32570         !HAVE_GETPAGESIZE && !defined getpagesize.
32571
32572         * lib/mktime.c (leapyear): Arg is long int, not int.
32573
32574 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32575
32576         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
32577
32578 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32579
32580         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
32581         missing.  Problem reported by James Youngman.
32582
32583 2004-10-16  Simon Josefsson  <jas@extundo.com>
32584
32585         * gnulib-tool: Fix comments.  Fix parse problem.
32586         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
32587
32588 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32589
32590         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
32591         implementation of getopt_long.  Problem reported by Alexander Taler in:
32592         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
32593
32594 2004-10-15  Bruno Haible  <bruno@clisp.org>
32595
32596         * gnulib-tool: Untabify. Initialize supplied_libname.
32597         (func_usage): More homogenous output.
32598         (func_modules_transitive_closure, func_modules_to_filelist,
32599         func_emit_lib_Makefile_am): New functions.
32600         (func_import): New function, extracted from big case statement. Use
32601         func_get_license, func_modules_transitive_closure,
32602         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
32603         opt_lgpl. Don't use test -a, as it's not portable.
32604         (func_create_testdir): Use func_modules_transitive_closure,
32605         func_modules_to_filelist, func_emit_lib_Makefile_am.
32606
32607 2004-10-15  Bruno Haible  <bruno@clisp.org>
32608
32609         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
32610
32611 2004-10-15  Bruno Haible  <bruno@clisp.org>
32612
32613         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
32614         the portions belonging to each module.
32615         Suggested by Derek Robert Price <derek@ximbiot.com>.
32616
32617 2004-10-12  Simon Josefsson  <jas@extundo.com>
32618
32619         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32620         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
32621         to real functions.
32622
32623 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32624
32625         * modules/vsnprintf: New file.
32626
32627 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32628
32629         * m4/vsnprintf.m4: New file.
32630
32631 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32632
32633         * lib/vsnprintf.h: New file.
32634         * lib/vsnprintf.c: New file.
32635
32636 2004-10-11  Bruno Haible  <bruno@clisp.org>
32637
32638         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
32639         vsnprintf.
32640
32641 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32642
32643         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
32644
32645 2004-10-07  Bruno Haible  <bruno@clisp.org>
32646
32647         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
32648         fits into the provided buffer.
32649
32650 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32651
32652         * lib/diacrit.c, diacrit.h: Add GPL notice.
32653
32654         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
32655         notice.
32656         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
32657         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
32658         This avoids a potential constant-folding bug.
32659
32660 2004-10-05  Bruno Haible  <bruno@clisp.org>
32661
32662         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
32663         for the declaration of strsep.
32664
32665 2004-10-05  Bruno Haible  <bruno@clisp.org>
32666
32667         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
32668
32669 2004-10-04  Simon Josefsson  <jas@extundo.com>
32670
32671         * modules/memmem: New file.
32672         * tests/test-memmem.c: New file.
32673         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
32674
32675 2004-10-04  Simon Josefsson  <jas@extundo.com>
32676
32677         * m4/memmem.m4: New file.
32678
32679 2004-10-04  Simon Josefsson  <jas@extundo.com>
32680
32681         * lib/memmem.h: New file.
32682         * lib/memmem.c: New file, taken from glibc.
32683
32684 2004-10-04  Simon Josefsson  <jas@extundo.com>
32685
32686         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
32687         '#ifdef USE_UNLOCKED_IO'.
32688
32689 2004-10-04  Simon Josefsson  <jas@extundo.com>
32690
32691         * config/srclist.txt: Add memmem from glibc.
32692
32693 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32694
32695         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
32696
32697         * modules/argmatch, modules/argp, modules/closeout, modules/error,
32698         modules/exclude, modules/getdate, modules/getline,
32699         modules/getndelim2, modules/getpass, modules/getpass-gnu,
32700         modules/getusershell, modules/linebuffer, modules/md5,
32701         modules/mountlist, modules/posixtm, modules/readtokens,
32702         modules/readutmp, modules/regex, modules/sha1,
32703         modules/version-etc, modules/yesno:
32704         Remove dependency on unlocked-io.
32705
32706 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32707
32708         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
32709
32710         * m4/unlocked-io.m4: Add copyright notice.
32711         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
32712
32713 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32714
32715         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
32716         * lib/xmalloc.c (xmemdup): Likewise.
32717         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
32718         XFREE): Remove these long-obsolescent macros.
32719         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
32720         * lib/xstrdup.c: Remove.
32721
32722         * lib/regex.c (re_comp): Cast gettext return value to char *,
32723         Problem reported by Martin Neitzel via Mark D. Baushke.
32724
32725 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32726
32727         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
32728         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
32729         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
32730         regex.c, sha1.c, version-etc.c, yesno.c:
32731         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
32732         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
32733         the includer's responsibility.
32734
32735         Sync from coreutils.
32736
32737         * lib/modechange.c (mode_compile): Don't decrement a pointer that
32738         points to the start of a string, as the C Standard says the
32739         resulting behavior is undefined.
32740
32741         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
32742         simple -> simple_backups, numbered_existing ->
32743         numbered_existing_backups, numbered -> numbered_backups
32744         to avoid shadowing problems.  All uses changed.
32745         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
32746         * lib/backupfile.c (check_extension, numbered_backup):
32747         Rename locals to avoid shadowing 'basename'.
32748         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
32749         once.
32750
32751         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
32752         * lib/.cvsignore: Add getopt.h.
32753
32754 2004-10-04  Bruno Haible  <bruno@clisp.org>
32755
32756         * modules/README: New file.
32757         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
32758         not a module.
32759
32760 2004-10-02  Jim Meyering  <jim@meyering.net>
32761
32762         * lib/dirfd.h, getpagesize.h: Add copyright notice.
32763
32764 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32765
32766         * modules/strsep: New file.
32767
32768 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32769
32770         * m4/strsep.m4: New file.
32771
32772 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32773
32774         * lib/strsep.h: New file.
32775         * lib/strsep.c: New file.
32776
32777 2004-10-01  Simon Josefsson  <jas@extundo.com>
32778
32779         * lib/snprintf.c (snprintf): Handle size==0.
32780
32781 2004-10-01  Simon Josefsson  <jas@extundo.com>
32782             Bruno Haible  <bruno@clisp.org>
32783
32784         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
32785         (snprintf): Declare 'args'.
32786
32787 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
32788
32789         * lib/snprintf.c: Remove comments as to why each header is needed.
32790
32791 2004-10-01  Bruno Haible  <bruno@clisp.org>
32792
32793         * MODULES.html.sh: Add strsep.
32794
32795 2004-09-30  Simon Josefsson  <jas@extundo.com>
32796
32797         * modules/snprintf: New file.
32798
32799 2004-09-30  Simon Josefsson  <jas@extundo.com>
32800
32801         * m4/snprintf.m4: New file.
32802
32803 2004-09-30  Simon Josefsson  <jas@extundo.com>
32804
32805         * lib/snprintf.h, lib/snprintf.c: New files.
32806
32807 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32808
32809         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
32810         (hol_entry_help): Never translate an empty string.
32811         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
32812         * lib/argp.h (OPTION_NO_TRANS): New option.
32813
32814 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32815
32816         * modules/argp (Maintainer): Replace Simon Josefsson
32817         by Sergey Poznyakoff.
32818
32819 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32820
32821         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
32822         changes merged back into glibc.
32823
32824 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32825
32826         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
32827
32828 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
32829
32830         * lib/xvasprintf.c: Include xalloc.h.
32831         (xvasprintf): Use xalloc_die, not xmalloc_die.
32832
32833 2004-09-29  Bruno Haible  <bruno@clisp.org>
32834
32835         * modules/alloca-opt: New file, derived from modules/alloca.
32836         * modules/allocsa: Depend on alloca-opt instead of alloca.
32837         * modules/setenv: Likewise.
32838         * modules/vasnprintf: Likewise.
32839         * MODULES.html.sh: Add alloca-opt.
32840
32841 2004-09-28  Simon Josefsson  <jas@extundo.com>
32842
32843         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32844         LGPL, and to replace license template from GPL to LGPL.
32845
32846 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32847
32848         * modules/dummy: Change license to LGPL.
32849
32850 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32851
32852         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
32853
32854 2004-09-24  Simon Josefsson  <jas@extundo.com>
32855
32856         * modules/minmax (License): Change from GPL to LGPL.
32857
32858 2004-09-23  Simon Josefsson  <jas@extundo.com>
32859
32860         * gnulib-tool (--import): Typo.
32861
32862 2004-09-23  Simon Josefsson  <jas@extundo.com>
32863
32864         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
32865
32866 2004-09-22  Bruno Haible  <bruno@clisp.org>
32867
32868         * modules/*: Add 'License' field.
32869         * gnulib-tool: Accept --extract-license option.
32870         (func_get_license): New function.
32871
32872 2004-09-21  Bruno Haible  <bruno@clisp.org>
32873
32874         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
32875         Reported by Simon Josefsson.
32876
32877 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32878
32879         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
32880         gl_AC_TYPE_LONG_LONG.
32881
32882 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32883
32884         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
32885
32886 2004-09-18  Simon Josefsson  <jas@extundo.com>
32887         and  Paul Eggert  <eggert@cs.ucla.edu>
32888
32889         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
32890         calls with autoreconf.  Define GL_LIB.
32891
32892 2004-09-14  Karl Berry  <karl@gnu.org>
32893
32894         * config/srclist.txt: unsync setenv.c, sigh.
32895
32896 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32897
32898         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
32899         Problem reported by Bruno Haible in:
32900         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
32901
32902 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32903
32904         * config/srclist.txt: Comment out argp-pvh.c.
32905
32906 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
32907
32908         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
32909         in case some system header has #define'd it.  Problem reported by
32910         Soeren D. Schulze in
32911         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
32912
32913 2004-09-09  Karl Berry  <karl@gnu.org>
32914
32915         * regex.[ch]: delete from the root.  These were supposed to be
32916                 synced with emacs cvs, but this has not happened for about
32917                 a year, and anyway nothing else uses emacs regex.[ch].
32918                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
32919                 lib/regex[.ch] is untouched.
32920
32921 2004-09-09  Bruno Haible  <bruno@clisp.org>
32922
32923         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
32924
32925 2004-09-09  Bruno Haible  <bruno@clisp.org>
32926
32927         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
32928         modifications.
32929         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
32930
32931 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32932
32933         * modules/xvasprintf: New file.
32934         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
32935
32936 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32937
32938         * lib/xvasprintf.h: New file.
32939         * lib/xvasprintf.c: New file.
32940         * lib/xasprintf.c: New file.
32941
32942 2004-09-08  Bruno Haible  <bruno@clisp.org>
32943
32944         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
32945
32946 2004-09-08  Bruno Haible  <bruno@clisp.org>
32947
32948         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
32949         length is > INT_MAX.
32950         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
32951         more.
32952
32953 2004-09-08  Bruno Haible  <bruno@clisp.org>
32954
32955         * lib/stdint_.h: New file, taken from GNU clisp.
32956
32957 2004-09-08  Bruno Haible  <bruno@clisp.org>
32958             Oskar Liljeblad  <oskar@osk.mine.nu>
32959
32960         * modules/stdint: New file.
32961         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
32962
32963 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32964
32965         Import from coreutils.
32966         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
32967         strings on unbounded length.  alloca's performance benefits aren't
32968         that important here.
32969         (V_STRDUP): Remove.
32970         (parse_with_separator): New function, with most of the internals
32971         of the old parse_user_spec.  Allow user to omit both user and group,
32972         for compatibility with FreeBSD.
32973         Clone only the user name, not the entire spec.
32974         Do not set *uid, *gid unless entirely successful.
32975         Avoid memory leak in some failing cases.
32976         Fix regression for USER.GROUP reported by Dmitry V. Levin in
32977         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
32978         (parse_user_spec): Rewrite to use parse_with_separator.
32979
32980 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32981
32982         * modules/userspec: Don't depend on alloca.
32983
32984 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32985
32986         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
32987
32988 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32989
32990         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
32991         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
32992         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
32993
32994 2004-08-16  Simon Josefsson  <jas@extundo.com>
32995
32996         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
32997         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
32998         Add --dry-run for --import.
32999         Let user provided command line parameters override configure.ac
33000         settings.
33001
33002 2004-08-12  Simon Josefsson  <jas@extundo.com>
33003
33004         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
33005         as discussed with Paul Eggert in threads rooted at
33006         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
33007         and
33008         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
33009         Before, the test was empty, and relied on ELIDE_CODE in source
33010         code.)
33011         (gl_PREREQ_GETOPT): New macro.
33012         (gl_GETOPT): Use them.
33013
33014 2004-08-12  Simon Josefsson  <jas@extundo.com>
33015
33016         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
33017         * lib/getopt_.h: Renamed from getopt.h.
33018
33019 2004-08-12  Simon Josefsson  <jas@extundo.com>
33020
33021         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
33022         Change default library name from libfoo to libgnu.
33023         Now, if you have a configure.ac that says:
33024                 gl_SOURCE_BASE(gl)
33025                 gl_M4_BASE(gl/m4)
33026                 gl_MODULES(error getopt etcetera)
33027                 gl_INIT
33028         you can import all you need by running:
33029                 ../gnulib/gnulib-tool --import
33030
33031         * modules/getopt (Files): Rename getopt.h to getopt_.h.
33032         (Makefile.am): Rewrite, use logic from argz.
33033         (Include): Use <getopt.h> instead of "getopt.h".
33034
33035 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33036
33037         * modules/argp (Files): Add m4/unlocked-io.m4.
33038         (Depends-on): Add extensions.
33039
33040 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33041
33042         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
33043         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
33044         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
33045         Check for program_invocation_name, program_invocation_short_name,
33046         flockfile, funlockfile, features.h, _getopt_long_only_r.
33047
33048 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33049
33050         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
33051         its complicated substitute.
33052         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
33053         and program_invocation_name.
33054         (__argp_basename) [!_LIBC]: Remove; the only use was
33055         replaced by its body.
33056         (__argp_short_program_name): Change condition from
33057         !defined __argp_short_program_name to
33058         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
33059         to match argp-namefrob.h.
33060         (__argp_failure): Don't assume strerror_r returns char *.
33061         * lib/argp-parse.c (N_): Define unconditionally.
33062         (argp_default_options): Fill out initializers with 0 to avoid
33063         gcc warnings.
33064
33065 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33066
33067         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
33068         getopt1.c.
33069
33070 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33071
33072         Merge from coreutils.
33073
33074         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
33075
33076         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
33077         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
33078
33079 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33080
33081         Merge from coreutils.
33082
33083         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
33084         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
33085         for Reliant Unix 5.43.
33086
33087         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
33088         (union fooround): Use uintmax_t, not long int.
33089         The rest is a merge from libc:
33090         [defined _LIBC]: Include <shlib-compat.h>.
33091         (_obstack) [defined _LIBC]: Remove after 2.3.4.
33092
33093         * lib/settime.c (settime): Recode to avoid warning with
33094         Sun Forte C 6U2.
33095
33096         * lib/strverscmp.c: Convert to UTF-8.
33097
33098 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33099
33100         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
33101         m4/uintmax_t.m4.
33102
33103 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33104
33105         * modules/xalloc-die: New file.
33106         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
33107
33108         * modules/md5 (Files): Add m4/uint32_t.m4.
33109         * modules/sha1: Renamed from modules/sha.
33110         (Files):
33111         Rename lib/sha.h to lib/sha1.h.
33112         Rename lib/sha.c to lib/sha1.c.
33113         Rename m4/sha.m4 to m4/sha1.m4.
33114         (lib_SOURCES): Likewise.
33115         (configure.ac): Rename gl_SHA to gl_SHA1.
33116         (Include): sha.h -> sha1.h.
33117
33118 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33119
33120         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
33121         * m4/sha1.m4: Renamed from sha.m4.
33122         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
33123
33124 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33125
33126         * lib/obstack.h (obstack_empty_p):
33127         Don't assume that chunk->contents is suitably aligned.
33128         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
33129         Likewise. Problem reported by Benno in
33130         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
33131
33132         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
33133         readable.  This could be improved further but it'd take some work.
33134
33135 2004-08-08  Simon Josefsson  <jas@extundo.com>
33136
33137         * modules/xgethostname (Depends-on): Remove exit and error (not
33138         used).
33139
33140         * modules/getpass-gnu: Add getpass.h.
33141         (Depends-on): Add stdbool.
33142         * modules/getpass: Add getpass.h.
33143
33144 2004-08-08  Simon Josefsson  <jas@extundo.com>
33145
33146         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
33147         Check getpass declaration.
33148
33149 2004-08-08  Simon Josefsson  <jas@extundo.com>
33150
33151         * lib/xgethostname.c: Don't include error.h (not used).
33152
33153         * lib/getpass.h: Add.
33154         * lib/getpass.c: Include getpass.h first.
33155
33156 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33157
33158         * lib/xalloc-die.c: New file.
33159         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
33160         All uses removed.
33161         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
33162         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
33163         xalloc-die.c.
33164         (_, N_, xalloc_die): Move to xalloc-die.c.
33165         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
33166         so that we needn't mess with xalloc_msg_memory_exhausted.
33167
33168         * lib/sha1.h: Renamed from sha.h.
33169         (SHA1_H): Renamed from _SHA_H.
33170         (sha1_ctx): Renamed from sha_ctx.
33171         (sha1_init_ctx): Renamed from sha_init_ctx.
33172         (sha1_process_block): Renamed from sha_process_block.
33173         (sha1_process_bytes): Renamed from sha_process_bytes.
33174         (sha1_finish_ctx): Renamed from sha_finish_ctx.
33175         (sha1_read_ctx): Renamed from sha_read_ctx.
33176         (sha1_stream): Renamed from sha_stream.
33177         (sha1_buffer): Renamed from sha_buffer.
33178         * lib/sha1.c: Likewise; renamed from sha.c.
33179         Do not include <sys/types.h>.
33180         Include <stddef.h> rather than <stdlib.h>.
33181
33182 2004-08-08  Bruno Haible  <bruno@clisp.org>
33183
33184         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
33185         FILESYSTEM_PREFIX_LEN.
33186         * lib/progreloc.c: Likewise.
33187         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
33188
33189 2004-08-06  Simon Josefsson  <jas@extundo.com>
33190
33191         * modules/progname (Depends-on): Don't depend on stdbool.
33192
33193 2004-08-06  Simon Josefsson  <jas@extundo.com>
33194
33195         * modules/getsubopt: New file.
33196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33197         getsubopt.
33198
33199 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33200
33201         More merge from coreutils.
33202
33203         * m4/utimens.m4, m4/utimecmp.m4: New files.
33204         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
33205         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
33206         prereq.m4, sha.m4: Import changes from coreutils.
33207
33208 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33209
33210         More merge from coreutils.
33211         * modules/raise, modules/readtokens0, modules/utimens:
33212         * modules/utimecmp, module/xnanosleep: New files.
33213         * modules/strftime: Add lib/strftime.h.
33214         Change include from <time.h> to "strftime.h".
33215         * modules/yesno: Add lib/yesno.h.
33216         * modules/backupfile: Remove lib/addext.c.
33217         * modules/euidaccess: Add stat-macros.h.
33218         * modules/canonicalize, modules/euidaccess,
33219         modules/filemode, modules/lchown, modules/makepath,
33220         modules/rmdir, modules/stat: Likewise.
33221
33222 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33223
33224         Merge from tar.
33225         * lib/argp-help.c (make_hol, hol_append): Don't assume that
33226         SIZE_MAX is a valid preprocessor constant.
33227         (__argp_basename): Change from "#ifndef _LIBC"
33228         to "#ifndef __argp_short_program_name", so that
33229         we don't compile these functions for tar.
33230
33231         More merges from coreutils.
33232         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
33233         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
33234         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
33235         * lib/addext.c: Remove; no longer needed.
33236         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
33237         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
33238         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
33239         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
33240         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
33241         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
33242         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
33243         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
33244         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
33245         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33246         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
33247         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
33248         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
33249         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
33250         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
33251         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
33252         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
33253         Import changes from coreutils.
33254
33255 2004-08-05  Simon Josefsson  <jas@extundo.com>
33256
33257         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
33258
33259 2004-08-05  Simon Josefsson  <jas@extundo.com>
33260
33261         * m4/getsubopt.m4: New file.
33262
33263 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33264
33265         Merge from coreutils.
33266
33267         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
33268         * m4/getcwd-path-max.m4: New files.
33269
33270         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
33271         FILESYSTEM_PREFIX_LEN ->
33272         FILE_SYSTEM_PREFIX_LEN.
33273         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
33274         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
33275         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
33276         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
33277
33278         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
33279         prerequisite modules now handle the DOS stuff.
33280         Don't check for unistd.h.
33281
33282 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33283
33284         Merge from coreutils.
33285
33286         * lib/.gdb-history: Remove; this doesn't belong here.
33287
33288         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
33289         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
33290         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
33291         * lib/getcwd.c: New files.
33292
33293         * lib/dirname.h: Include <stdbool.h>.
33294         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
33295         for consistency with POSIX terminology.  All uses changed.
33296         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
33297         (strip_trailing_slashes): Use bool for booleans.
33298         * lib/stripslash.c (strip_trailing_slashes): Likewise.
33299
33300         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
33301         sometimes returns a positive errno value even when it succeeds.
33302         (print_errno_message) [!LIBC]: Fall back on strerror if
33303         __strerror_r fails.
33304
33305         * lib/path-concat.c (mempcpy): Don't define if a system header defines
33306         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
33307         (longest_relative_suffix): New function.
33308         (path_concat): Use it.  Assume first argument is not NULL.
33309         Port to DOS.  Omit redundant separators.
33310         Report an error instead of returning NULL.
33311         Use mempcpy instead of memcpy.
33312         (xpath_concat): Remove: not declared or used.
33313
33314         * lib/same.h: Include <stdbool.h>
33315         (same_name): Return bool, not int.
33316         * lib/same.c (same_name): Likewise.
33317         (errno): Don't declare; we assume C89 or better now.
33318
33319         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
33320         if not already defined.
33321
33322         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
33323         * lib/dup-safer.c (errno): Likewise.
33324
33325 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33326
33327         Merge from coreutils.
33328         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
33329         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
33330         * modules/path-concat: Don't depend on strdup.
33331
33332 2004-08-03  Simon Josefsson  <jas@extundo.com>
33333
33334         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
33335         * lib/progname.h: Don't include stdbool.h.
33336
33337 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33338
33339         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
33340         * MODULES.html.sh (func_all_modules): Remove fatal.
33341
33342 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33343
33344         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
33345
33346 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
33347
33348         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
33349         working.
33350
33351 2004-08-02  Simon Josefsson  <jas@extundo.com>
33352
33353         * lib/getsubopt.h: New file, with comments from Bruno Haible.
33354         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
33355         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
33356
33357 2004-08-01  Simon Josefsson  <jas@extundo.com>
33358
33359         * lib/xgetdomainname.c: Include stdlib.h, for free().
33360
33361 2004-07-19  Bruno Haible  <bruno@clisp.org>
33362
33363         * MODULES.html.sh (func_all_modules): Add dummy.
33364
33365 2004-07-16  Simon Josefsson  <jas@extundo.com>
33366
33367         * modules/dummy: New file.
33368
33369 2004-07-16  Simon Josefsson  <jas@extundo.com>
33370
33371         * lib/dummy.c: New file.
33372
33373 2004-07-16  Bruno Haible  <bruno@clisp.org>
33374
33375         * lib/backupfile.h: Add extern "C" for C++.
33376         * lib/closeout.h: Likewise.
33377         * lib/copy-file.h: Likewise.
33378         * lib/findprog.h: Likewise.
33379         * lib/full-write.h: Likewise.
33380         * lib/pathname.h: Likewise.
33381         * lib/progname.h: Likewise.
33382         * lib/stpcpy.h: Likewise.
33383         * lib/stpncpy.h: Likewise.
33384         * lib/strcase.h: Likewise.
33385         * lib/strstr.h: Likewise.
33386         * lib/xalloc.h: Likewise.
33387
33388         * lib/mbswidth.h: Add extern "C" for C++.
33389         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
33390
33391 2004-07-13  Robert Millan  <robertmh@gnu.org>
33392
33393         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
33394
33395 2004-07-09  Simon Josefsson  <jas@extundo.com>
33396
33397         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
33398         failed without this.)
33399
33400 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33401
33402         * modules/chown (Files): Add lib/fchown-stub.c, since
33403         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
33404
33405 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33406
33407         * lib/fchown-stub.c: New file.
33408
33409 2004-06-24  Jim Meyering  <jim@meyering.net>
33410
33411         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
33412
33413 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33414
33415         * modules/argz: Omit "#include".
33416
33417         * MODULES.html.sh (func_all_modules): Add calloc, to match
33418         2004-06-01 addition of calloc module.
33419
33420 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33421
33422         * m4/argz.m4: New file, which is autoupdated from libtool.
33423
33424 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33425
33426         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33427         libtool.
33428
33429 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33430
33431         * config/srclist-update: Don't insist on "USA." before the
33432         close-comment, as libtool omits the period and puts the */ on a
33433         separate line.
33434         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33435         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33436
33437 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33438
33439         * modules/argz: New file.
33440         * MODULES.html.sh (func_all_modules): Add argz.
33441
33442 2004-06-12  Jim Meyering  <jim@meyering.net>
33443         and  Paul Eggert  <eggert@cs.ucla.edu>
33444
33445         * modules/hash (Files): Add lib/xalloc.h.
33446         * modules/pipe (Depends-on): Add wait-process.
33447         * modules/stat (Depends-on): Add xalloc.
33448         * modules/userspec (Files): Add lib/userspec.h.
33449         * modules/xstrto
33450
33451         Upgrade from gettext-0.13.
33452         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33453         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33454         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33455
33456 2004-06-10  Jim Meyering  <jim@meyering.net>
33457
33458         * lib/calloc.c: New file.
33459
33460 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33461
33462         * lib/getdate.y (yylex): Allow space between sign and number.
33463         Problem reported by Dan Jacobson.
33464
33465 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33466
33467         Merge from coreutils CVS.
33468
33469         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33470         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33471         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33472         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33473         xstrtol.m4: Fix copyright date and/or serial number.
33474
33475         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33476         See if we need an fchown replacement.
33477         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33478         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33479         and use the replacement function if we detect either defect.
33480
33481         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33482         gl_UTIMECMP.
33483
33484 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33485         and  Jim Meyering  <jim@meyering.net>
33486
33487         Merge from coreutils CVS.
33488
33489         * lib/stat-macros.h: New file, with contents from file-type.h
33490         and coreutils' system.h.
33491         * lib/file-type.c: Include "stat-macros.h".
33492         * lib/file-type.h (file_type): Move all macro definitions to new file,
33493         stat-macros.h.
33494
33495         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33496         Wrap old code with this conditional.
33497         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33498         function that does not dereference symlinks.
33499         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33500
33501         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33502         dependency problems.
33503         (xreadlink): Accept new arg SIZE, for efficiency.
33504         All decls and uses changed.
33505         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33506
33507         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33508         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33509
33510         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33511         sysexits.h.
33512
33513 2004-06-01  Jim Meyering  <jim@meyering.net>
33514
33515         * m4/calloc.m4: New file.
33516
33517 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33518
33519         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
33520         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
33521         Also, fix a typo in a diagnostic.
33522
33523 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33524
33525         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
33526         or AC_FUNC_REALLOC.
33527
33528 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33529
33530         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
33531         macros to be defined.
33532         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
33533         the allocator returns NULL because the requested size is zero.
33534
33535 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33536
33537         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
33538         var.  Add comment explaining why libc still defines it.  This
33539         merges the following patch from glibc:
33540         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33541
33542 2004-05-20  Andreas Schwab  <schwab@suse.de>
33543
33544         * m4/free.m4: Replace free if it not known to work, not the other
33545         way round.
33546
33547 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33548
33549         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33550         present in glibc since revision 1.1 of this file.
33551         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33552         obstack_alignment_mask, obstack_alloc, obstack_base,
33553         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33554         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33555         obstack_grow0, obstack_init, obstack_int_grow,
33556         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33557         obstack_next_free, obstack_object_size, obstack_ptr_grow,
33558         obstack_ptr_grow_fast, obstack_room): Remove declarations of
33559         nonexistent functions.
33560
33561 2004-05-18  Karl Berry  <karl@gnu.org>
33562
33563         * config/srclist.txt: break link for vasnprintf.c.
33564
33565 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33566
33567         Port obstack to the AS/400, where pointers are 16 bytes wide and
33568         you cannot cast an integer to a valid pointer.  This patch is
33569         currently waiting to be integrated into glibc; see
33570         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
33571
33572         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
33573         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
33574         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
33575         (struct obstack): temp member is now a union of a pointer and
33576         an integer, instead of an integer.  All integer uses changed.
33577         This does not affect the physical layout of struct obstack,
33578         except on hosts (like the AS/400) where the size or alignment of
33579         void * is greater than that of ptrdiff_t.
33580         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
33581         __STDC__)]: Store temporary in pointer member of union, not
33582         integer member.
33583         * lib/obstack.c: Include <stddef.h>, for offsetof.
33584         (struct fooalign): Remove; it doesn't need a name.
33585         (union fooround): Change double to long double, and add void *.
33586         (DEFAULT_ALIGNMENT): Use offsetof to compute.
33587         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
33588         not a macro.  Hence the values are always int; so remove all
33589         casts-to-int in uses.
33590
33591 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33592
33593         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
33594         we can get this patch merged into glibc.
33595
33596 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33597             Paul Eggert  <eggert@cs.ucla.edu>
33598
33599         * m4/argp: Depend on alloca.
33600
33601 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33602             Paul Eggert  <eggert@cs.ucla.edu>
33603
33604         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
33605         freecoding.
33606
33607 2004-05-17  Bruno Haible  <bruno@clisp.org>
33608
33609         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
33610         precision that consists of a '.' followed by an empty digit string.
33611         Patch by Tor Lillqvist <tml@iki.fi>.
33612
33613 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33614
33615         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
33616         for backward compatibility with older code.  We need our own
33617         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
33618         it under some other name, and our alloca.h will define it.
33619
33620 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33621             Derek Price  <derek@ximbiot.com>
33622
33623         * lib/alloca.c: Include <alloca.h>, to get our interface.
33624         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
33625         include <alloca.h> first.  Use C89 prototype for alloca; this
33626         requires including <stddef.h> for size_t.  Use extern "C" if C++.
33627         Use #elif for simplicity, since we can assume C89 now.
33628         Don't try to source the system alloca.h since it will not be found
33629         and to prevent recursively including its replacement.
33630         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
33631         * lib/regex.c: Likewise.
33632
33633 2004-05-16  Derek Price  <derek@ximbiot.com>
33634             Paul Eggert  <eggert@cs.ucla.edu>
33635
33636         getline cleanup.  This changes the getndelim2 API: both order of
33637         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
33638         no delimiter).
33639
33640         * lib/getline.c: Don't include stddef.h or stdio.h, since our
33641         interface does that.
33642         (getline): Always use getdelim, so that we don't have two
33643         copies of this code.
33644         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
33645         if available.
33646         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
33647         (GETNDELIM2_MAXIMUM): New macro.
33648         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
33649         instead of the old practice of delim2==0.  All callers changed.
33650         Return -1 on overflow, instead of returning junk.
33651         Do not set *linesize unless allocation succeeds.
33652         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
33653         that we include sys/types.h.
33654         * lib/getnline.h: Likewise.
33655         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
33656         (getndelim2): Reorder arguments.
33657         * lib/getnline.c (getnline, getndelim):
33658         Don't discard the NMAX argument.
33659         (getnline): Invoke getndelim, to avoid code duplication.
33660         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
33661         of (size_t) -1 by callers of the getnline family.
33662
33663 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33664
33665         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
33666         Check for gettimeofday.
33667         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
33668         Check for settimeofday, stime.
33669
33670 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33671
33672         * lib/nanosleep.c (suspended): Change its type from int to
33673         sig_atomic_t volatile.
33674         (first_call): Make it private to rpl_nanosleep, and have it
33675         be zero initially as that's a bit faster.
33676         (my_usleep): Round up fractional times instead of truncating them,
33677         as this is the usual meaning for 'sleep'.
33678
33679         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
33680         doesn't work.
33681         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
33682         (ENOSYS): Define if not defined.
33683         (settime): Fall back on stime if it exists and settimeofday fails.
33684         But don't bother with fallbacks if a method fails with errno == EPERM.
33685
33686 2004-05-11  Jim Meyering  <jim@meyering.net>
33687
33688         Prior to this change, the save_cwd caller required read access to the
33689         current directory on most systems (ones with the fchdir function).
33690
33691         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
33692         fails, try write-only, and finally, resort to using xgetcwd.
33693
33694 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33695
33696         * lib/obstack.c, obstack.h: Import changes from libc.
33697
33698 2004-04-28  Bruno Haible  <bruno@clisp.org>
33699
33700         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
33701         also implicitly appends .exe to executables.
33702         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
33703         accepts Windows pathnames.
33704         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33705         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33706         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33707         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33708         Reported by Derek Robert Price <derek@ximbiot.com>.
33709
33710 2004-04-21  Karl Berry  <karl@gnu.org>
33711
33712         * config/srclist.txt (localcharset.c): break sync.
33713
33714 2004-04-20  Paul Eggert  <eggert@twinsun.com>
33715
33716         * m4/host-os.m4: Add a copyright notice.
33717
33718 2004-04-20  Jim Meyering  <jim@meyering.net>
33719
33720         Change UTILS_ to gl_ in AC_DEFINE'd names.
33721         Change utils_- and jm_-prefixed variables, too.
33722         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
33723         UTILS_FUNC_MKDIR_TRAILING_SLASH.
33724         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
33725
33726         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
33727         Don't emit trailing blanks.
33728         Also rename jm_-prefixed variables to have gl_ prefix.
33729
33730         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
33731         Also rename jm_-prefixed variables to have gl_ prefix.
33732
33733         * m4/jm-macros.m4: Reflect the renamings.
33734         * m4/prereq.m4: Likewise.
33735
33736 2004-04-20  Jim Meyering  <jim@meyering.net>
33737
33738         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
33739         memory.
33740
33741 2004-04-20  Jim Meyering  <jim@meyering.net>
33742             Bruno Haible  <bruno@clisp.org>
33743
33744         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
33745         memory when realloc fails.
33746
33747 2004-04-19  Jim Meyering  <jim@meyering.net>
33748
33749         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
33750         now that readutmp.c may call `free (0)'.
33751
33752 2004-04-19  Bruno Haible  <bruno@clisp.org>
33753
33754         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
33755         * m4/inttypes_h.m4: Likewise.
33756         * m4/stdint_h.m4: Likewise.
33757         * m4/intmax_t.m4: Likewise.
33758         * m4/uintmax_t.m4: Likewise.
33759
33760 2004-04-18  Jim Meyering  <jim@meyering.net>
33761
33762         * m4/prereq.m4: Don't forbid jm_ prefix.
33763
33764         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
33765         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
33766         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
33767         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
33768         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
33769         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
33770         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
33771         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
33772         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
33773         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
33774         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
33775         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
33776         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
33777         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
33778         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
33779         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
33780         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
33781         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
33782         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
33783
33784 2004-04-18  Jim Meyering  <jim@meyering.net>
33785
33786         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
33787         failure, don't leak memory and do call END_UTMP_ENT.
33788
33789 2004-04-16  Jim Meyering  <jim@meyering.net>
33790
33791         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
33792         coreutils' stat program.
33793         (gl_PREREQ): Don't require jm_PREREQ_STAT.
33794
33795 2004-04-11  Paul Eggert  <eggert@twinsun.com>
33796
33797         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
33798         C89.
33799         (CHAR_BIT): Remove, since we assume C89.
33800         Include <stdint.h> if available, as per current Autoconf CVS advice.
33801
33802 2004-03-31  Jim Meyering  <jim@meyering.net>
33803
33804         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
33805         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
33806         * m4/xalloc.m4: Likewise.
33807
33808 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33809
33810         Merge from coreutils.
33811
33812         * m4/inttostr.m4: New file.
33813         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
33814         Require AM_STDBOOL_H and gl_TIMESPEC instead.
33815         Require gl_CLOCK_TIME.
33816         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
33817
33818 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33819
33820         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
33821         not bool, to be more consistent with Unix conventions.
33822         Suggested by Bruno Haible.
33823
33824         Merge from coreutils.
33825
33826         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
33827         * lib/umaxtostr.c: New files.
33828
33829         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
33830         the usual <time.h> dance.
33831         (get_date): Change signature to support fractional time stamps.
33832         All callers changed.
33833         * lib/getdate.y: Include "getdate.h" first, as we can now
33834         assume C89 and don't need to worry about 'const'.
33835         Similarly, include "unlocked-io.h" near start, not in middle.
33836         Include <limits.h>.
33837         (textint.value): Use long int rather than int.
33838         (textint.digits): Use size_t rather than int.
33839         (BILLION, LOG10_BILLION): New constants.
33840         (parser_control): New member rel_ns.  Members day_ordinal,
33841         time_zone, month, day, hour, minutes, rel_year, rel_month,
33842         rel_day, rel_hour, rel_minutes, rel_seconds
33843         are now long int, not int.  Member seconds is now struct timespec,
33844         not int.  New member timespec_seen.  Members dates_seen, days_seen,
33845         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
33846         not int.
33847         (%union.intval): Now long int, not int.
33848         New member timespec.
33849         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
33850         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
33851         (spec): Now is a timespec or an item list.
33852         (timespec, items): New nonterminals.
33853         (time, rel, relunit, number, get_date):
33854         Add support for fractional seconds.
33855         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
33856         (gmtime, localtime, mktime): Remove decls; not needed with C89.
33857         (to_hour): First arg is now long int, not int.
33858         (to_year): Returns long int, not int.
33859         Don't treat year -70 like 70.
33860         (tm_diff): Returns long int, not int.
33861         (lookup_word): Use bool instead of int when appropriate.
33862         (yylex): Use size_t for count, not int.
33863         Detect overflow when parsing large integer constants.
33864         Add support for fractions.
33865         (get_date): Make pointers 'const' if possible.
33866         Use more-portable code to detect integer overflow.
33867         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
33868         Don't use ctime; it's not reliable if the year has >4 digits.
33869
33870         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
33871         This is for compatibility with BSD.
33872
33873         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
33874         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
33875         From coreutils' system.h.
33876
33877         * lib/userspec.c: Don't include "posixver.h".
33878         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
33879         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
33880         compatible extension.  Simplify code by removing a boolean int
33881         that was always nonzero if a string was nonnull.
33882
33883 2004-03-30  Jim Meyering  <jim@meyering.net>
33884
33885         Merge from coreutils.
33886
33887         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
33888         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
33889         on some systems one must include <grp.h> before it.
33890         Reported by Christian Krackowizer.
33891
33892 2004-03-30  Jim Meyering  <jim@meyering.net>
33893
33894         Merge from coreutils.
33895
33896         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
33897
33898         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
33899         an empty input stream.
33900
33901         * lib/readtokens.c: Include <stdbool.h>.
33902         (readtoken): Use `size_t' rather than int/long.
33903         All callers adjusted.
33904         Use `bool' rather than `int' where appropriate.
33905         Use memset rather than an explicit loop.
33906         Use x2nrealloc rather than xrealloc.
33907         Allow the use of `\0' as a delimiter.
33908         (readtokens): Likewise.
33909         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
33910
33911 2004-03-30  Jim Meyering  <jim@meyering.net>
33912
33913         * m4/realloc.m4: Remove file, since now it does no more than
33914         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
33915         the `configure.ac' section of module/realloc.
33916         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
33917
33918 2004-03-30  Bruno Haible  <bruno@clisp.org>
33919
33920         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
33921         nonnull.
33922
33923 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33924
33925         Merge changes to getloadavg.c from coreutils and Emacs.
33926
33927         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
33928         Define to an expression, not to the empty string.
33929         Include cloexec.h and xalloc.h.
33930         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
33931         Use set_cloexec_flag rather than rolling our own.
33932         * lib/cloexec.c, lib/cloexec.h: New files.
33933
33934 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33935
33936         * m4/cloexec.m4: New file.
33937
33938 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33939
33940         * lib/getopt.h: Sync with libc CVS.
33941
33942 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33943             Bruno Haible  <bruno@clisp.org>
33944
33945         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
33946         mbswidth.
33947
33948 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33949             Bruno Haible  <bruno@clisp.org>
33950
33951         * lib/mbswidth.h: Include <wchar.h> only if
33952         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
33953         <wchar.h>.
33954         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
33955
33956 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33957
33958         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
33959         Sync with libc CVS.
33960         * lib/getopt_int.h: New file, also synced from libc.
33961
33962 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33963
33964         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
33965         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
33966         Bring back getopt.c, getopt.h, getopt1.c.
33967
33968 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33969
33970         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
33971         All uses changed.  Check for sa_sigaction member; this fixes
33972         a bug first reported by Jason Andrade in
33973         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33974
33975 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33976
33977         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
33978         '#if' expressions.  Unlike the code it replaces, it does not
33979         depend on (defined _SC_PAGESIZE).  However, it does depend on
33980         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
33981         first reported by Jason Andrade in
33982         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33983
33984 2004-02-25  Simon Josefsson  <jas@extundo.com>
33985
33986         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
33987
33988 2004-02-25  Simon Josefsson  <jas@extundo.com>
33989
33990         * lib/strdup.h: New file.
33991         * lib/strdup.c: Include it.
33992         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
33993         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
33994
33995 2004-02-23  Karl Berry  <karl@gnu.org>
33996
33997         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
33998         (from fencepost.gnu.org:/gd/gnuorg).
33999
34000 2004-02-23  Karl Berry  <karl@gnu.org>
34001
34002         * config/srclistvars.sh (GNUORG) [karl]: redefine.
34003         * config/srclist.txt: add maintain/standards documents.
34004
34005 2004-02-18  Bruno Haible  <bruno@clisp.org>
34006
34007         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
34008         Reported by Derek Robert Price <derek@ximbiot.com>.
34009
34010 2004-02-16  Karl Berry  <karl@gnu.org>
34011
34012         * config/mkinstalldirs, install-sh: update from automake.
34013
34014 2004-02-06  Karl Berry  <karl@gnu.org>
34015
34016         * m4/po.m4: update from gettext 0.14.1.
34017
34018 2004-02-06  Karl Berry  <karl@gnu.org>
34019
34020         * lib/config.charset: update from gettext 0.14.1.
34021
34022 2004-02-05  Paul Eggert  <eggert@twinsun.com>
34023
34024         Add comments and code, prompted by suggestions from Bruno Haible
34025         for sh-quote.
34026         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
34027         describing the enum quoting_style values.
34028         * lib/quotearg.c (quotearg_alloc): New function.
34029         (quotearg_buffer_restyled): Treat lone { and } as special.
34030         Treat = as special.  Work around bug with older shells
34031         that "see" a '\' that is really the 2nd byte of a multibyte char.
34032         Quote empty string with shell_quoting_style.
34033
34034 2004-02-03  Bruno Haible  <bruno@clisp.org>
34035
34036         * m4/pipe.m4: New file, from GNU gettext.
34037
34038 2004-02-03  Bruno Haible  <bruno@clisp.org>
34039
34040         * lib/pipe.h: New file, from GNU gettext.
34041         * lib/pipe.c: New file, from GNU gettext.
34042
34043 2004-01-27  Bruno Haible  <bruno@clisp.org>
34044
34045         * m4/execute.m4: New file, from GNU gettext.
34046
34047 2004-01-27  Bruno Haible  <bruno@clisp.org>
34048
34049         * lib/execute.h: New file, from GNU gettext.
34050         * lib/execute.c: New file, from GNU gettext.
34051         * lib/w32spawn.h: New file, from GNU gettext.
34052
34053 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34054
34055         Merge from diffutils.
34056
34057         * lib/file-type.c (file_type): Add typed memory objects.
34058         * lib/file-type.h (S_TYPEISTMO): New macro.
34059
34060         * lib/c-stack.h (c_stack_action): Remove argv argument.
34061         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
34062         (die): Don't calculate message unless segv_action returns.
34063         (get_stack_location, min_address_from_argv, max_address_from_argv,
34064         volatile stack_base, volatile_stack_size): Remove.
34065         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
34066         that every segmentation violation is a stack overflow.  (Ouch!)
34067         See Debian bug 136249 (still outstanding) for more info about why
34068         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
34069
34070 2004-01-24  Paul Eggert  <eggert@twinsun.com>
34071
34072         Exit-status fix from coreutils.
34073
34074         Use exit_failure consistently in place of EXIT_FAILURE,
34075         so that program exit statuses are consistent on failure.
34076
34077         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
34078         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
34079         * lib/argmatch.h: Comment fix to match the above.
34080         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
34081         Now a macro referring to exit_failure, instead of a separate
34082         variable.  Include "exitfail.h" to get it.
34083         * lib/xstrtol.h: Include "exitfail.h".
34084         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
34085
34086         * lib/long-options.c (parse_long_options): Use prototype
34087         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
34088         for clarity.
34089
34090 2004-01-21  Jim Meyering  <jim@meyering.net>
34091
34092         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
34093         so as not to conflict with a different-sized __mktime_internal
34094         function in GNU libc.
34095         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
34096         Problem building statically-linked `ls' reported by Michael Brunnbauer.
34097
34098 2004-01-20  Karl Berry  <karl@gnu.org>
34099
34100         * config/config.guess: update from config.
34101
34102         * config/srclistvars.sh: GNUWWWLICENSES for karl.
34103
34104 2004-01-20  Bruno Haible  <bruno@clisp.org>
34105
34106         Safer stack allocation.
34107         * lib/setenv.c: Include allocsa.h.
34108         (alloca): Remove fallback definition.
34109         (freea): Remove macro.
34110         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
34111         instead of freea.
34112
34113 2004-01-20  Bruno Haible  <bruno@clisp.org>
34114
34115         * m4/eealloc.m4: New file, from GNU gettext.
34116
34117 2004-01-20  Bruno Haible  <bruno@clisp.org>
34118
34119         * m4/allocsa.m4: New file, from GNU gettext.
34120
34121 2004-01-20  Bruno Haible  <bruno@clisp.org>
34122
34123         * lib/xallocsa.h: New file, from GNU gettext.
34124         * lib/xallocsa.c: New file, from GNU gettext.
34125
34126 2004-01-20  Bruno Haible  <bruno@clisp.org>
34127
34128         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
34129
34130 2004-01-20  Bruno Haible  <bruno@clisp.org>
34131
34132         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
34133         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
34134         specially.
34135
34136 2004-01-20  Bruno Haible  <bruno@clisp.org>
34137
34138         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
34139         patch.
34140
34141 2004-01-20  Bruno Haible  <bruno@clisp.org>
34142
34143         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
34144
34145 2004-01-20  Bruno Haible  <bruno@clisp.org>
34146
34147         * lib/eealloc.h: New file.
34148
34149 2004-01-20  Bruno Haible  <bruno@clisp.org>
34150
34151         * lib/binary-io.h: Avoid warnings on Cygwin.
34152
34153 2004-01-20  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/allocsa.h: New file, from GNU gettext.
34156         * lib/allocsa.c: New file, from GNU gettext.
34157
34158 2004-01-18  Karl Berry  <karl@gnu.org>
34159
34160         * doc/gpl.texi, doc/lgpl.texi: new files.
34161
34162 2004-01-18  Karl Berry  <karl@gnu.org>
34163
34164         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
34165         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
34166
34167 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34168
34169         Merge from coreutils.
34170
34171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
34172         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
34173         (gl_DEFAULT_POSIX2_VERSION): Move
34174         the documentation from 'configure' into 'config.hin',
34175         so that 'configure --help' isn't burdened by it and
34176         we don't have to worry about its formatting there.
34177         Reword the documentation so that it's more succinct
34178         and can be run together into a single paragraph.
34179         * m4/same.m4 (gl_SAME): Check for pathconf.
34180
34181 2004-01-15  Paul Eggert  <eggert@twinsun.com>
34182
34183         Merge from coreutils.
34184
34185         * lib/posixver.c: Include posixver.h.
34186
34187         * lib/same.c: Include <stdbool.h>, <limits.h>.
34188         (_POSIX_NAME_MAX): Define if not defined.
34189         (MIN): New macro.
34190         (same_name): If file names are silently truncated, report
34191         that the file names are the same if they are the same after
34192         the silent truncation.
34193
34194         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
34195         conversion function.
34196         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
34197         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
34198         longer needed.
34199
34200 2004-01-15  Jim Meyering  <jim@meyering.net>
34201
34202         Merge from coreutils.
34203
34204         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
34205         if no library is required.
34206         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
34207         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
34208         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
34209         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
34210         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
34211         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
34212         value, $ac_cv_search_crypt, if it's "none required".
34213         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
34214         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
34215         not gl_FUNC_GETLOADAVG.
34216         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
34217         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
34218
34219 2004-01-15  Jim Meyering  <jim@meyering.net>
34220
34221         Merge from coreutils.
34222
34223         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
34224         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
34225         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
34226
34227         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
34228         optional configure-time default.
34229
34230         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34231
34232         * lib/xreadlink.c (xreadlink): Correct outdated comment.
34233
34234 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
34235
34236         Merge from coreutils.
34237
34238         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
34239         value, $ac_cv_search_nanosleep, if it's "none required".
34240
34241 2004-01-14  Paul Eggert  <eggert@twinsun.com>
34242
34243         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
34244         with like-named macro in fnmatch.c.
34245         (EXT): Use an internal constant instead.
34246
34247         Merge fnmatch patches from glibc.
34248         * lib/fnmatch.c (mbsinit): Remove define.
34249         Add libc_hidden_ver (__fnmatch, fnmatch).
34250         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
34251         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
34252
34253 2004-01-14  Karl Berry  <karl@gnu.org>
34254
34255         * config/install-sh: update from automake.
34256
34257 2004-01-13  Karl Berry  <karl@gnu.org>
34258
34259         * config/install-sh: update from automake.
34260
34261 2004-01-09  Karl Berry  <karl@gnu.org>
34262
34263         * config/install-sh: update from automake.
34264
34265 2004-01-05  Karl Berry  <karl@gnu.org>
34266
34267         * config/config.{sub,guess}: update from config.
34268
34269 2003-12-31  Karl Berry  <karl@gnu.org>
34270
34271         * config/depcomp: update from automake.
34272
34273 2003-12-14  Karl Berry  <karl@gnu.org>
34274
34275         * lib/config.charset: update from gettext-runtime.
34276
34277 2003-12-03  Paul Eggert  <eggert@twinsun.com>
34278
34279         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
34280         Bug reported by Alfred M. Szmidt.
34281
34282 2003-12-03  Bruno Haible  <bruno@clisp.org>
34283
34284         * m4/gettext.m4: Upgrade from gettext-0.13.
34285         * m4/po.m4: Upgrade from gettext-0.13.
34286         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
34287         * m4/intmax.m4: New file, from gettext-0.13.
34288         * m4/printf-posix.m4: New file, from gettext-0.13.
34289
34290 2003-11-29  Karl Berry  <karl@gnu.org>
34291
34292         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
34293
34294 2003-11-25  Paul Eggert  <eggert@twinsun.com>
34295             Bruno Haible  <bruno@clisp.org>
34296
34297         * lib/printf-parse.h: Don't include sys/types.h.
34298         (ARG_NONE): New macro.
34299         (char_directive): Change type of *arg_index fields to size_t.
34300         * lib/printf-parse.c: Don't include sys/types.h.
34301         (SSIZE_MAX): Remove macro.
34302         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
34303         Remove unnecessary overflow check.
34304         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
34305         fields.
34306
34307 2003-11-25  Bruno Haible  <bruno@clisp.org>
34308
34309         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
34310
34311 2003-11-25  Bruno Haible  <bruno@clisp.org>
34312
34313         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
34314         gt_TYPE_SSIZE_T.
34315
34316 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34317
34318         * modules/alloca: Remove dependency on xalloc.
34319
34320 2003-11-24  Paul Eggert  <eggert@twinsun.com>
34321
34322         * lib/alloca.c: Remove dependency on xalloc module.
34323         (xalloc_die): Remove.
34324         (memory_full) [!defined emacs]: New macro.
34325         [!defined emacs]: Don't include xalloc.h.
34326         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
34327         address arithmetic overflows.  Change datatypes a bit to avoid
34328         unnecessary casts.
34329
34330 2003-11-22  Jim Meyering  <jim@meyering.net>
34331
34332         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
34333         s/size/size_t/.
34334
34335 2003-11-21  Karl Berry  <karl@gnu.org>
34336
34337         * config/config.{sub,guess}: update from config.
34338
34339 2003-11-18  Karl Berry  <karl@gnu.org>
34340
34341         * config/config.{sub,guess}: update from config.
34342
34343         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
34344
34345 2003-11-17  Paul Eggert  <eggert@twinsun.com>
34346
34347         * README: Mention that S+T cannot overflow if S is the size of
34348         an existing object and T is sufficiently small.
34349
34350 2003-11-17  Jim Meyering  <jim@meyering.net>
34351
34352         On systems without utime and without a utimes function capable of
34353         dealing with a NULL struct utimbuf* argument, this utime replacement
34354         could -- in unusual circumstances -- leak a file descriptor.
34355         * lib/utime.c: Include <unistd.h> and <errno.h>.
34356         (utime_null): Be sure to close `fd' and to preserve errno.
34357         Reported by Geoff Collyer via Arnold Robbins.
34358
34359 2003-11-17  Bruno Haible  <bruno@clisp.org>
34360
34361         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
34362         (Depends-on): Add xsize.
34363
34364 2003-11-17  Bruno Haible  <bruno@clisp.org>
34365
34366         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
34367
34368 2003-11-17  Bruno Haible  <bruno@clisp.org>
34369
34370         * lib/vasnprintf.c (alloca): Remove fallback definition.
34371         (freea): Remove definition.
34372         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
34373         Reported by Paul Eggert.
34374
34375 2003-11-16  Paul Eggert  <eggert@twinsun.com>
34376             Bruno Haible  <bruno@clisp.org>
34377
34378         Protect against address arithmetic overflow.
34379         * lib/printf-args.h: Include stddef.h.
34380         (arguments): Change type of field 'count' to size_t.
34381         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
34382         'unsigned int' where appropriate.
34383         * lib/printf-parse.h: Include sys/types.h.
34384         (char_directive): Change type of *arg_index fields to ssize_t.
34385         (char_directives): Change type of fields 'count', max_*_length to
34386         size_t.
34387         * lib/printf-parse.c: Include sys/types.h and xsize.h.
34388         (SSIZE_MAX): Define fallback value.
34389         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
34390         instead of 'int' where appropriate. Check a_allocated, d_allocated
34391         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
34392         * lib/vasnprintf.c: Include xsize.h.
34393         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
34394         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
34395         overflow. Avoid wraparound when converting a width or precision from
34396         decimal to binary.
34397
34398 2003-11-16  Bruno Haible  <bruno@clisp.org>
34399
34400         Update from GNU gettext.
34401         * lib/printf-parse.c: Generalize to it can be compiled for wide
34402         strings.
34403         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
34404         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
34405         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
34406         SNPRINTF): New macros.
34407         Don't include <alloca.h> if the file is used inside libintl.
34408         (local_wcslen): New function, for Solaris 2.5.1.
34409         (VASNPRINTF): Use it instead of wcslen.
34410
34411 2003-11-16  Bruno Haible  <bruno@clisp.org>
34412
34413         * lib/xsize.h (xmax): New function.
34414         (xsum, xsum3, xsum4): Declare as "pure" functions.
34415
34416 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34417
34418         * modules/xalloc (Files): Undo latest change, since xalloc.h
34419         no longer needs SIZE_MAX or PTRDIFF_MAX.
34420
34421 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34422
34423         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34424         gl_PTRDIFF_MAX.
34425
34426 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34427
34428         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34429         "return", to pacify some unknown compiler.  Problem reported
34430         by Joerg Schilling.
34431
34432 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34433
34434         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34435         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34436         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34437         heuristic is just as accurate as far as we know, and it removes a
34438         dependency on size_max.m4 and ptrdiff_max.m4.
34439
34440 2003-11-11  Bruno Haible  <bruno@clisp.org>
34441
34442         * modules/xsize (Files): Add m4/size_max.m4.
34443         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34444
34445 2003-11-11  Bruno Haible  <bruno@clisp.org>
34446
34447         * m4/size_max.m4: New file.
34448         * m4/ptrdiff_max.m4: New file.
34449         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34450         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34451         (gl_XALLOC): Invoke it.
34452
34453 2003-11-11  Bruno Haible  <bruno@clisp.org>
34454
34455         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34456         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34457         defined.
34458
34459 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34460
34461         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34462         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34463         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34464         From Bruno Haible.
34465         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34466         not (size_t) -1, since it's defined here.
34467
34468 2003-11-09  Karl Berry  <karl@gnu.org>
34469
34470         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34471
34472 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34473
34474         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34475         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34476         Reject sizes of exactly SIZE_MAX bytes.
34477         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34478         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34479
34480 2003-11-05  Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34483         SIZE_MAX defined in <limits.h> on Solaris.
34484
34485 2003-11-04  Jim Meyering  <jim@meyering.net>
34486
34487         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34488         variable names, rather than @VAR@.
34489         * modules/poll: Likewise.
34490
34491 2003-11-04  Bruno Haible  <bruno@clisp.org>
34492
34493         * modules/xsize: New file.
34494         * modules/linebreak: Depend on xsize.
34495         * MODULES.html.sh (func_all_modules): Add xsize.
34496
34497 2003-11-04  Bruno Haible  <bruno@clisp.org>
34498
34499         * m4/xsize.m4: New file.
34500
34501 2003-11-04  Bruno Haible  <bruno@clisp.org>
34502
34503         * lib/xsize.h: New file.
34504         * lib/linebreak.c: Include xsize.h.
34505         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34506         argument for overflow.
34507         Suggested by Paul Eggert.
34508
34509 2003-11-03  Karl Berry  <karl@gnu.org>
34510
34511         * config/config.{guess,sub}: update from config.
34512
34513 2003-11-03  Jim Meyering  <jim@meyering.net>
34514
34515         * modules/userspec (lib_SOURCES): Add userspec.h.
34516         (Include): Add "userspec.h".
34517         Improve description.
34518
34519 2003-11-03  Jim Meyering  <jim@meyering.net>
34520
34521         * lib/userspec.c: Include "userspec.h".
34522         * lib/userspec.h: New file.
34523
34524 2003-11-03  Bruno Haible  <bruno@clisp.org>
34525
34526         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
34527
34528 2003-11-03  Bruno Haible  <bruno@clisp.org>
34529
34530         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
34531         available, to avoid (extremely rare) race condition.
34532         Suggested by Paul Eggert.
34533
34534 2003-11-02  Karl Berry  <karl@gnu.org>
34535
34536         * config/srclist.txt (vasprintf.c): sync broken, sigh.
34537
34538 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34539
34540         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34541         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34542         (read_filesystem_list): Set and use me_type_malloced.
34543         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34544         whatever the type happens to be), for brevity and consistency.
34545         Check for size calculation overflow on Alphas running OSF/1.
34546
34547 2003-10-31  Jim Meyering  <jim@meyering.net>
34548
34549         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34550
34551         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34552
34553 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34554             Bruno Haible  <bruno@clisp.org>
34555
34556         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34557         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
34558
34559 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34560
34561         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
34562         netbsd*-gnu*.  Suggested by Robert Millan.
34563
34564 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34565
34566         * modules/group-member: Depend on stdbool.
34567
34568 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34569
34570         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
34571
34572 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34573
34574         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
34575         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
34576         after the 'gnu' in these cases.  This fixes some bugs in the
34577         previous change, and is based on suggestions by Robert Millan.
34578
34579 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34580
34581         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
34582         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
34583         no longer needed.
34584         * lib/quotearg.c (quotearg_n_options): Use it.
34585         * lib/group-member.c: Include <stdbool.h>.
34586         (free_group_info): Arg is now const *; don't free arg.
34587         (get_group_info): Now returns bool and accepts struct group_info *,
34588         rather than returning a malloc'ed struct group_info *.
34589         All uses changed.  Check for overflow in internal size calculation.
34590
34591         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
34592         rather than xmalloc/xrealloc.
34593         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
34594         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
34595         conformance bug: the old code used a pointer after freeing the
34596         storage that it addressed.
34597         * lib/hash.c (hash_initialize): Simplify the code by using
34598         xalloc_oversized rather than doing it by hand.
34599         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
34600         the buffer preserved.  Use free and xmalloc instead.
34601         * lib/quotearg.c (quotearg_n_options): Likewise.
34602         Use a simpler test for size overflow.  Don't use xalloc_oversized
34603         because unsigned int might be wider than size_t (!); this suggests
34604         that we should switch from unsigned int to size_t for slot numbers.
34605
34606 2003-10-28  Paul Eggert  <eggert@twinsun.com>
34607
34608         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
34609         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
34610         NetBSD kernels.  Requested by Richard Stallman.
34611
34612 2003-10-27  Paul Eggert  <eggert@twinsun.com>
34613
34614         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
34615         to allocate the returned structure.  Do not allocate a subarray,
34616         as x2nrealloc will do that.
34617         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
34618         instead of xnrealloc.
34619         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
34620
34621 2003-10-27  Bruno Haible  <bruno@clisp.org>
34622
34623         * lib/stdbool_.h: Better support for BeOS.
34624
34625 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34626
34627         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
34628         now uses inline.
34629
34630 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34631
34632         * lib/xalloc.h (xalloc_oversized): New static inline function, for
34633         callers that want to do their own size-overflow checking.  Include
34634         <stdbool.h>, since xalloc_oversized returns bool.
34635         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
34636         to use xalloc_oversized.
34637
34638         Add two functions x2realloc, x2nrealloc, for programs that grow
34639         arrays dynamically by doubling their sizes.
34640         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
34641         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
34642         New functions.
34643
34644         Port to C99 semantics for 'inline' of external functions.
34645         Bug reported by Bruno Haible.
34646         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
34647         with the old contents of xnmalloc.
34648         (xnmalloc, xmalloc): Use it.
34649         (xnrealloc_inline): New static inline function,
34650         with the old contents of xnrealloc.
34651         (xnrealloc, xrealloc): Use it.
34652
34653         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
34654         that.
34655
34656 2003-10-26  Karl Berry  <karl@gnu.org>
34657
34658         * config/srclist.txt (COPYING.DOC): no longer available from
34659         /gd/gnuorg; don't know where the ultimate source is.
34660
34661 2003-10-25  Paul Eggert  <eggert@twinsun.com>
34662
34663         Fix several address-calculation bugs in the hash modules,
34664         plus some minor code cleanup.
34665
34666         * lib/hash.h: Include <stdbool.h>, for bool.
34667         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
34668         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
34669         hash_get_n_entries, hash_get_max_bucket_length,
34670         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
34671         hash_rehash): Use size_t rather than unsigned.
34672         * lib/hash.c (struct hash_table, hash_get_n_buckets,
34673         hash_get_n_buckets_used, hash_get_n_entries,
34674         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
34675         hash_get_entries, hash_do_for_each, hash_string, is_prime,
34676         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
34677         Likewise.
34678         (SIZE_MAX): Define if not defined.
34679         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
34680         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
34681         hash_print):
34682         Use const * when possible.
34683         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
34684         (check_tuning): Fix bug: if tuning parameters were very close to
34685         0 or 1, rounding errors could have caused subscript violations.
34686         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
34687         (hash_initialize): Add 'fail:' label
34688         to free table and return NULL, and use it to simplify code.
34689         Use calloc rather than clearing the storage ourself.
34690         (hash_initialize, hash_rehash): Check for arithmetic overflow in
34691         buffer size calculations.
34692         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
34693         Include <stddef.h>, for size_t.
34694         * lib/hash-pjw.c (hash_pjw): Likewise.
34695         Switch to method described by Bruno Haible.
34696         Include <limits.h>, for CHAR_BIT.
34697         (SIZE_BITS): New macro.
34698
34699 2003-10-23  Paul Eggert  <eggert@twinsun.com>
34700
34701         * m4/getline.m4 (AM_FUNC_GETLINE):
34702         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
34703         hosts.  Problem reported by Derek Robert Price in
34704         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
34705         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
34706         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
34707
34708 2003-10-21  Paul Eggert  <eggert@twinsun.com>
34709
34710         * lib/getndelim2.c (getndelim2): When size calculation overflows,
34711         ceiling the allocation at NMAX bytes rather than silently
34712         discarding input bytes before NMAX is reached.  This makes
34713         a difference only if NMAX exceeds SIZE_MAX / 2.
34714
34715         * lib/obstack.c: Merge from glibc.
34716         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
34717         Add libc_hidden_def (_obstack_newchunk).
34718         (_obstack_free) [! defined _LIBC]: Remove.
34719         [defined _LIBC]: Make a strong alias from obstack_free, rather than
34720         a clone of the function body.
34721         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
34722         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
34723
34724         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
34725         glibc.
34726         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
34727         arg to memcpy.
34728
34729         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
34730         (obstack_ptr_grow_fast, obstack_int_grow_fast):
34731         Don't use lvalue casts, as GCC plans to remove support for them
34732         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
34733         was also present in the non-GCC version, indicating that this
34734         code had always been buggy and had never been widely used.
34735         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
34736         Use the fast variant of each macro, rather than copying the
34737         definiens of the fast variant; that way, we'll be more likely to
34738         catch future bugs in the fast variants.
34739
34740 2003-10-20  Bruno Haible  <bruno@clisp.org>
34741
34742         * modules/wait-process: New file.
34743         * MODULES.html.sh (func_all_modules): Add wait-process.
34744
34745 2003-10-20  Bruno Haible  <bruno@clisp.org>
34746
34747         * m4/wait-process.m4: New file.
34748
34749 2003-10-20  Bruno Haible  <bruno@clisp.org>
34750
34751         * lib/wait-process.h: New file, from GNU gettext.
34752         * lib/wait-process.c: New file, from GNU gettext.
34753
34754 2003-10-19  Jim Meyering  <jim@meyering.net>
34755
34756         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
34757         HPUX 10.20.
34758
34759 2003-10-18  Karl Berry  <karl@gnu.org>
34760
34761         * config/config.guess: update from config.
34762
34763 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34764
34765         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
34766         (getgroups): First arg is int, not size_t.
34767         Don't let 'free' mangle errno.
34768
34769 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34770
34771         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
34772
34773 2003-10-16  Karl Berry  <karl@gnu.org>
34774
34775         * config/config.{guess,sub}: update from config.
34776
34777 2003-10-16  Jim Meyering  <jim@meyering.net>
34778
34779         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
34780         memcpy.
34781
34782 2003-10-15  Paul Eggert  <eggert@twinsun.com>
34783
34784         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
34785         (SIZE_MAX): Remove.
34786         (new_exclude, add_exclude_file): Initial size no longer needs to
34787         be a power of 2.
34788         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
34789         our own address arithmetic overflow checking.
34790
34791         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
34792         (fnmatch): Do not alloca more than 2000 wide characters;
34793         instead, use malloc for large buffers.
34794         Check for address arithmetic overflow, and return -1
34795         with errno set to ENOMEM in that case.
34796         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
34797         (NEW_PATTERN): Do not alloca more than 8000 bytes;
34798         instead, return -1.  Check for address arithmetic overflow.
34799
34800 2003-10-14  Paul Eggert  <eggert@twinsun.com>
34801
34802         Handle invalid suffixes and overflow independently, so that
34803         callers can treat them independently as needed.  Fix some bugs in
34804         suffix handling, e.g., "100k@" was not diagnosed as an invalid
34805         suffix for a human-readable blocksize.  The major caller-visible
34806         change is the addition of a new
34807         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
34808         that both overflow and suffix chars were found.
34809
34810         * lib/human.c (humblock): Don't check separately for invalid suffix
34811         char; that is xstrtoumax's job (now that its bug is fixed).
34812         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
34813         INTMAX_MAX]: New macros.
34814         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
34815         TYPE_MAXIMUM): New macros.
34816         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
34817         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
34818         if overflow occurs, as it's what __strtol does and it's more useful
34819         in practice.
34820         (__xstrtol): If __strtol reports some error other than ERANGE,
34821         reflect it to the caller as LONGINT_INVALID.  If it reports
34822         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
34823         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
34824         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
34825         value.
34826         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
34827         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
34828         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
34829         [defined UINTMAX_MAX]: New macros.
34830
34831 2003-10-14  Bruno Haible  <bruno@clisp.org>
34832
34833         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34834
34835 2003-10-14  Bruno Haible  <bruno@clisp.org>
34836
34837         * m4/sig_atomic_t: New file, from GNU gettext.
34838         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34839
34840 2003-10-14  Bruno Haible  <bruno@clisp.org>
34841
34842         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34843         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34844         Also use volatile where needed.
34845
34846 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34847
34848         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
34849         Change maintainer from Bruno Haible to 'all'.
34850
34851 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34852
34853         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
34854
34855 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34856
34857         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
34858         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
34859         and define in terms of the other primitives.
34860         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
34861         (SIZE_MAX): Define if not already defined.
34862         (array_size_overflow): New function.
34863         (xalloc_die): Abort instead of exiting if 'error' returns.
34864         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
34865         (xmalloc, xrealloc): Use them.
34866         (xcalloc): Check for address arithmetic overflow.
34867         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
34868         a bit faster than strcpy.
34869
34870 2003-10-10  Simon Josefsson  <jas@extundo.com>
34871
34872         * modules/argp (Depends-on): Add restrict and strcase.
34873
34874 2003-10-10  Simon Josefsson  <jas@extundo.com>
34875
34876         * m4/argp.m4: Add AC_C_INLINE.
34877
34878 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34879
34880         Merge getpass from libc, plus a few fixes.
34881
34882         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
34883         Include <stdbool.h>.
34884         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
34885         __fsetlocking to empty.
34886         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
34887         do include <bits/libc-lock.h>.
34888         Do not include <fcntl.h>; not needed.
34889         [_LIBC]: Include <wchar.h>.
34890         (NOTCANCEL_MODE): New macro.
34891         (flockfile, funlockfile) [_LIBC]: New macros.
34892         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
34893         [!_LIBC]: New macros.
34894         (call_fclose): New function.
34895         (getpass): Use it.  Save tty stream separately; this simplifies the
34896         code and makes it more reliable if stdin happens to equal stdout.
34897         Invoke __fsetlocking on tty.
34898         Handle thread cancellation if needed.
34899         Namespace cleanup (use __tcgetattr, __getline).
34900         Use bool for Booleans.
34901         [USE_IN_LIBIO]: Handle wide streams.
34902         [!_LIBC]: Unconditionally do the fseek, since we don't know what
34903         stream might go where.
34904
34905         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
34906         doesn't have to include <stdio.h> before us.
34907         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
34908         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
34909         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
34910         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
34911         if not declared, so that we can use getpass.c code from libc without
34912         rewriting it.
34913         (flockfile, ftrylockfile, funlockfile): New macros.
34914
34915 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34916
34917         * modules/getpass: Depend on stdbool.
34918
34919 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34920
34921         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
34922
34923 2003-10-07  Karl Berry  <karl@gnu.org>
34924
34925         * config/config.{guess,sub}: update from config.
34926
34927 2003-10-06  Jim Meyering  <jim@meyering.net>
34928             Bruno Haible  <bruno@clisp.org>
34929
34930         This lets translators provide better translations for the
34931         "Written by ..." part of --version output.
34932         * lib/version-etc.h: Include stdarg.h.
34933         (version_etc_copyright): Declare as readonly.
34934         (version_etc): Make this function variadic with a NULL-terminated list
34935         of author name strings.
34936         (version_etc_va): New declaration.
34937         * lib/version-etc.c: Include stdarg.h, stdlib.h.
34938         (version_etc_copyright): Declare as readonly.
34939         (version_etc_va): New function. Provide a different translatable string
34940         for each possible number of authors < 10. Abbreviate when there are 10
34941         authors or more.
34942         (version_etc): Make this function variadic. Call version_etc_va.
34943         Suggestion from Gary V. Vaughan.
34944
34945         * lib/long-options.h (parse_long_options): Change prototype: the
34946         authors string is moved to the end and becomes variadic.
34947         * lib/long-options.c: Include stdarg.h.
34948         (parse_long_options): Make this function variadic, too.
34949         Call version_etc_va, not version_etc.
34950
34951 2003-10-06  Bruno Haible  <bruno@clisp.org>
34952
34953         * modules/version-etc-2: Remove file.
34954         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
34955
34956 2003-10-06  Bruno Haible  <bruno@clisp.org>
34957
34958         * modules/fatal-signal: New file.
34959         * MODULES.html.sh (func_all_modules): Add fatal-signal.
34960
34961 2003-10-06  Bruno Haible  <bruno@clisp.org>
34962
34963         * m4/fatal-signal.m4: New file.
34964         * m4/signalblocking.m4: New file, from GNU gettext.
34965
34966 2003-10-06  Bruno Haible  <bruno@clisp.org>
34967
34968         * lib/version-etc-2.h: Remove file.
34969         * lib/version-etc-2.c: Remove file.
34970
34971 2003-10-06  Bruno Haible  <bruno@clisp.org>
34972
34973         * lib/fatal-signal.h: New file, from GNU gettext.
34974         * lib/fatal-signal.c: New file, from GNU gettext.
34975
34976 2003-10-05  Paul Eggert  <eggert@twinsun.com>
34977
34978         * README: Rework advice for preventing empty .o files.
34979         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
34980         not <sys/types.h>.
34981
34982 2003-10-04  Karl Berry  <karl@gnu.org>
34983
34984         * lib/argp*: update from libc.
34985
34986 2003-10-04  Karl Berry  <karl@gnu.org>
34987
34988         * config/config.{guess,sub}: update from config.
34989
34990 2003-10-02  Bruno Haible  <bruno@clisp.org>
34991
34992         * modules/lchown (Include): Add lchown.h.
34993         * modules/time_r (Include): Use "..." syntax.
34994         * modules/xgetdomainname (Include): Add xgetdomainname.h.
34995
34996 2003-10-01  Simon Josefsson  <jas@extundo.com>
34997
34998         * MODULES.html.sh (func_all_modules): Move gethostname from section
34999         'based on' to section 'lacking' POSIX:2001.
35000
35001 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
35002
35003         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
35004         to output mode on the same stream.
35005
35006 2003-09-29  Paul Eggert  <eggert@twinsun.com>
35007
35008         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
35009         Fix arg typo in previous patch.
35010
35011 2003-09-28  Jim Meyering  <jim@meyering.net>
35012
35013         * lib/error.c: Correct cpp indentation.
35014
35015 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35016
35017         * modules/free: New file.
35018
35019 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35020
35021         * m4/free.m4: New file.
35022
35023 2003-09-27  Paul Eggert  <eggert@twinsun.com>
35024
35025         * lib/minmax.h (MIN, MAX)
35026         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
35027         Omit the special code that used __typeof__, since we worry that
35028         it could be more trouble than it's worth.  See:
35029         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
35030         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
35031
35032         * lib/free.c: New file.
35033
35034 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
35035
35036         Trivial fixes to Makefile.am parts of module listings.
35037         * modules/strstr: Append strstr.h to lib_SOURCES.
35038         * modules/strcase: Likewise, for strcase.h.
35039
35040 2003-09-27  Karl Berry  <karl@gnu.org>
35041
35042         * config/mkinstalldirs: update from automake.
35043
35044 2003-09-26  Paul Eggert  <eggert@twinsun.com>
35045
35046         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
35047         (error_tail): Do not loop, reallocating temporary buffer, since
35048         the output cannot contain more wide characters than the input
35049         contains bytes, the size must be big enough already.  This avoids
35050         one potential size overflow calculation.  Check for size overflow
35051         when calculating temporary buffer size.  Free temporary buffer
35052         when done, if it was allocated with malloc; this plugs a memory
35053         leak.  Remove casts from void * to pointers, that are no longer
35054         needed now that we're assuming C89 or better.
35055
35056         Merge error changes from glibc.
35057
35058         * lib/error.c, error.h: Update copyright notice header to match glibc.
35059         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
35060         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
35061         Disable cancellation while printing error.
35062         * lib/error.h: Prepend __ to parameter names.
35063
35064 2003-09-26  Jim Meyering  <jim@meyering.net>
35065
35066         * lib/error.c (error_tail): Move some declarations
35067         into inner scope where the local variables are used.
35068
35069 2003-09-26  Bruno Haible  <bruno@clisp.org>
35070
35071         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
35072         stpncpy().
35073         Don't define stpncpy through config.h; it's now done through stpncpy.h.
35074
35075 2003-09-26  Bruno Haible  <bruno@clisp.org>
35076
35077         * lib/stpncpy.h (gnu_stpncpy): New declaration.
35078         (stpncpy): Define as alias for gnu_stpncpy.
35079         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
35080
35081 2003-09-25  Simon Josefsson  <jas@extundo.com>
35082
35083         * lib/xgetdomainname.h: New file.
35084         * lib/xgetdomainname.c: New file.
35085
35086 2003-09-25  Simon Josefsson  <jas@extundo.com>
35087             Bruno Haible  <bruno@clisp.org>
35088
35089         * modules/getdomainname: New file.
35090         * modules/xgetdomainname: New file.
35091         * MODULES.html.sh (func_all_modules): Add getdomainname,
35092         xgetdomainname.
35093
35094 2003-09-25  Simon Josefsson  <jas@extundo.com>
35095             Bruno Haible  <bruno@clisp.org>
35096
35097         * m4/getdomainname.m4: New file.
35098
35099 2003-09-25  Simon Josefsson  <jas@extundo.com>
35100             Bruno Haible  <bruno@clisp.org>
35101
35102         * lib/getdomainname.h: New file.
35103         * lib/getdomainname.c: New file.
35104
35105 2003-09-25  Karl Berry  <karl@gnu.org>
35106
35107         * lib/argp-fmtstream.c, argp-help.c: update from libc.
35108
35109 2003-09-25  Karl Berry  <karl@gnu.org>
35110
35111         * config/install-sh: update from automake.
35112
35113 2003-09-25  Bruno Haible  <bruno@clisp.org>
35114
35115         * modules/version-etc-2: New file, from modules/version-etc with
35116         modifications.
35117         * MODULES.html.sh (func_all_modules): Add version-etc-2.
35118
35119 2003-09-25  Bruno Haible  <bruno@clisp.org>
35120
35121         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
35122         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
35123
35124 2003-09-24  Simon Josefsson  <jas@extundo.com>
35125
35126         * modules/xgethostname: Add xgethostname.h.
35127
35128 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35129
35130         * lib/linebuffer.c (freebuffer): Don't free the argument, just
35131         the buffer associated with the argument.  Bug reported by
35132         Simon Josefsson.
35133
35134 2003-09-24  Paul Eggert  <eggert@twinsun.com>
35135
35136         * README: Document assumptions that 'int' is at least 32 bits
35137         wide, that integer arithmetic is 2's complement without overflow,
35138         that there are no holes in integer values, that adding sizes of
35139         two nonoverlapping objects can't overflow, and that all-bits-zero
35140         yields scalar zero.  Fix spelling and capitalization typos.
35141
35142 2003-09-19  Karl Berry  <karl@gnu.org>
35143
35144         * lib/argp.h: update from libc.
35145
35146 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35147
35148         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
35149         to avoid spurious warnings like "AC_RUN_IFELSE was called before
35150         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
35151
35152 2003-09-17  Paul Eggert  <eggert@twinsun.com>
35153
35154         * gnulib-tool: Use "test -h", not "test -L", for portability
35155         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
35156         (tags_regexp): Remove, since \| doesn't conform to POSIX.
35157         (sed_extract_prog): Issue s commands one-by-one, rather than
35158         using \| in one s command.
35159
35160 2003-09-16  Paul Eggert  <eggert@twinsun.com>
35161
35162         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
35163         input error, instead of returning NULL the next time we are called
35164         (and therefore losing track of errno).
35165
35166 2003-09-16  Bruno Haible  <bruno@clisp.org>
35167
35168         * gnulib-tool (func_create_testdir): Warn about duplicated
35169         dependencies.
35170
35171 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35172
35173         * modules/argmatch, modules/fatal, modules/obstack,
35174         modules/xalloc, modules/xgethostname: Sort dependencies by
35175         importance, not alphabetically.
35176
35177 2003-09-15  Paul Eggert  <eggert@twinsun.com>
35178
35179         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
35180         fails, so that the caller gets the proper errno.
35181
35182         * lib/readutmp.c (read_utmp): Likewise.
35183         Check for fstat error.  Close stream and free storage
35184         when failing.
35185
35186 2003-09-14  Karl Berry  <karl@gnu.org>
35187
35188         * config/srclist.txt (strdup.c): disable for c89 changes.
35189
35190 2003-09-14  Jim Meyering  <jim@meyering.net>
35191
35192         * lib/getloadavg.c: Correct cpp indentation.
35193         * lib/strdup.c: Likewise.
35194         * lib/vasnprintf.c: Likewise.
35195
35196 2003-09-14  Bruno Haible  <bruno@clisp.org>
35197
35198         * modules/fwriteerror: New file.
35199         * MODULES.html.sh (func_all_modules): Add fwriteerror.
35200
35201 2003-09-14  Bruno Haible  <bruno@clisp.org>
35202
35203         * lib/fwriteerror.h: New file.
35204         * lib/fwriteerror.c: New file.
35205
35206 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35207
35208         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
35209         modules/xgethostname, modules/xalloc: Depend on exit.
35210
35211 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35212
35213         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
35214
35215         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
35216         and AC_MINIX, too, so that their extensions are available.
35217
35218         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
35219         This macro has been superseded by gl_BACKUPFILE.
35220
35221         More patches to assume C89 or better.
35222
35223         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
35224
35225         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
35226         unconditionally.
35227         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
35228         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
35229         Include <string.h>, <stdlib.h> unconditionally.
35230         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
35231         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
35232         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
35233         headers or for string.h.
35234         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
35235         or strtoul.
35236
35237         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
35238         headers.
35239         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
35240         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35241         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
35242         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
35243         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35244         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
35245         memcpy, memset.
35246         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
35247         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
35248         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
35249         strtol.
35250         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
35251         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
35252         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
35253         strtoul.
35254
35255 2003-09-12  Paul Eggert  <eggert@twinsun.com>
35256
35257         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
35258         * lib/obstack.c [!defined _LIBC]: Likewise.
35259         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
35260         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
35261         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
35262
35263         More changes to assume C89 or better.
35264
35265         * lib/error.c (error_tail): Assume vprintf.
35266
35267         * lib/argmatch.c (getenv): Remove decl.
35268         * lib/progreloc.c (get_full_program_name): Define via prototype.
35269         * lib/setenv.c (clearenv): Likewise.
35270         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
35271         needed.
35272         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
35273         (malloc, memcpy): Remove decls.
35274         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
35275         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
35276         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35277         (memcpy): Remove macro.
35278         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
35279         (__P): Remove.  All uses removed.
35280         (PTR): Remove.  All uses changed to void *.
35281         (CHAR_BIT, NULL): Remove.
35282         (spaces, zeros, memset_space, memset_zero)
35283         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
35284         Remove.
35285         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
35286         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
35287         Define with prototype.
35288         Remove now-unnecessary prototype decl.
35289         (extra_args_spec): Assume ANSI C.  All uses changed.
35290         (extra_args_spec_iso): Remove.
35291         (my_strftime, emacs_strftimeu): Define via prototype.
35292         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
35293         unconditionally.
35294         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
35295         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
35296         (strtoul, strtol): Remove decls.
35297         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
35298         LONG_MAX): Remove.
35299         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
35300         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
35301         (LOCALE_PARAM_PROTO): New macro.
35302         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
35303         (INTERNAL (strtol), strtol): Define with a prototype.
35304         (PARAMS): Remove.  All uses removed.
35305         * lib/tempname.c: Include <string.h> unconditionally.
35306         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
35307         * lib/xgethostname.c (main): Define with a prototype.
35308         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
35309         Include <stdlib.h> unconditionally.
35310         (calloc, malloc, realloc, free): Remove decls.
35311         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
35312         Include <stdlib.h> unconditionally.  Sort include file names.
35313         (strtod): Remove.
35314         (xstrtod): Define with a prototype.
35315         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
35316         (strtol, strtoul): Remove decls.
35317
35318 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35319
35320         More patches to assume C89 or better.
35321         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
35322         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
35323         string.h, memchr, STDC_HEADERS.
35324
35325 2003-09-11  Paul Eggert  <eggert@twinsun.com>
35326
35327         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
35328         Include <stdlib.h>, <string.h> unconditionally.
35329         Remove now-unnecessary cast to char *.
35330         * lib/strnlen.c: Include <string.h> unconditionally.
35331         * lib/yesno.c (yesno): Define with a prototype.
35332
35333 2003-09-11  Bruno Haible  <bruno@clisp.org>
35334
35335         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
35336
35337 2003-09-10  Jim Meyering  <jim@meyering.net>
35338
35339         * lib/error.c: Correct indentation of cpp directives.
35340
35341 2003-09-10  Bruno Haible  <bruno@clisp.org>
35342
35343         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
35344         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
35345         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
35346         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
35347         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
35348         <stdlib.h> and <string.h> checks.
35349         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
35350         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
35351
35352 2003-09-10  Bruno Haible  <bruno@clisp.org>
35353
35354         * lib/strcspn.c: Include <string.h> unconditionally.
35355         * lib/strpbrk.c: Include <string.h> unconditionally.
35356         * lib/strstr.c: Include <string.h> unconditionally.
35357         * lib/unicodeio.c: Include <string.h> unconditionally.
35358         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
35359         * lib/unsetenv.c: Likewise.
35360         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
35361         * lib/yesno.c: Include <stdlib.h> unconditionally.
35362         (rpmatch): Add prototype.
35363
35364 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35365
35366         More patches to assume C89 or better.
35367         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
35368         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
35369         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
35370         or for string.h.
35371         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
35372         stdlib.h.
35373         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
35374         C headers.
35375         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
35376         string.h.
35377         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
35378         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
35379         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
35380         or for string.h.
35381         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
35382         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
35383         C headers.
35384         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
35385         memcpy.
35386         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
35387         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
35388         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
35389         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
35390         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
35391         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
35392         string.h, free.
35393         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
35394         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
35395         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
35396         C headers, or for string.h.
35397         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
35398         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
35399         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
35400         headers, memory.h, stdlib.h, string.h, strings.h.
35401         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
35402         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
35403         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
35404         strchr.
35405         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
35406         headers, memory.h, string.h.
35407         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
35408         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
35409         free.
35410         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
35411         headers.
35412         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
35413         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
35414         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
35415         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
35416         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
35417
35418 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35419
35420         More K&R removal.
35421
35422         * lib/acosl.c (main): Use a prototype.
35423         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35424         tanl.c: Likewise.
35425
35426         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35427
35428         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35429         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35430         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35431         with a prototype.
35432         * lib/getopt.c (const): Remove macro.
35433         Include <string.h> unconditionally.
35434         (my_index): Remove; all uses changed to strchr.
35435         (strlen): Remove decl.
35436         (exchange): Remove forward decl; no longer needed.
35437         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35438         Define with prototype.
35439         * lib/getopt1.c (const): Remove macro.
35440         (getopt_long, getopt_long_only, main): Define with prototype.
35441
35442         * lib/getugroups.c: Include <string.h> unconditionally.
35443
35444         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35445         (getusershell, setusershell, endusershell, readname, main):
35446         Define with prototypes.
35447
35448         * lib/group-member.c: Include group-member.h first.
35449         Include <stdlib.h> unconditionally.
35450
35451         * lib/hard-locale.c: Include hard-locale.h first.
35452         Include <stdlib.h>, <string.h> unconditionally.
35453
35454         * lib/hash.c (free, malloc): Remove decls.
35455         Include <stdlib.h> unconditionally.
35456
35457         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35458         (getenv): Do not declare.
35459
35460         * lib/idcache.c: Include <string.h> unconditionally.
35461
35462         * lib/long-options.c: Include long-options.h first, to test interface.
35463         Include <stdlib.h> unconditionally.
35464
35465         * lib/makepath.c: Include makepath.h first, to test interface.
35466         Include <stdlib.h> and <string.h> unconditionally.
35467
35468         * lib/linebuffer.c: Include <stdlib.h>.
35469         (free): Remove decl.
35470
35471         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35472         stddef.h. rpl_malloc returns void *, not char *.
35473         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35474         prototype.
35475
35476         * lib/md5.h: Include <limits.h> unconditionally.
35477         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35478         (__P): Remove; all uses removed.
35479         * lib/md5.c: Include "md5.h" first.
35480         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35481         md5_buffer, md5_process_bytes, md5_process_block):
35482         Define with prototypes.
35483         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35484         * lib/sha.c: Include "sha.h" first.
35485         Include <stdlib.h>, <string.h> unconditionally.
35486
35487         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35488         * lib/memcmp.c (__ptr_t): Likewise.
35489         * lib/memrchr.c (__ptr_t): Likewise.
35490         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35491         Include <string.h> unconditionally.
35492         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35493         * lib/memchr.c: Include <stdlib.h> unconditionally.
35494         * lib/memchr.c (LONG_MAX): Remove.
35495         * lib/memrchr.c (LONG_MAX): Likewise.
35496         * lib/memchr.c (__memchr): Define via a prototype.
35497         * lib/memrchr.c (__memrchr): Likewise.
35498         * lib/memcmp.c (__P): Remove, and remove all uses.
35499         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35500         Remove forward decls; no longer needed.
35501         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35502         Use types required by C89 in prototype.
35503
35504         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35505         * lib/savedir.c: Likewise.
35506         * lib/mkdir.c (free): Remove decl.
35507         * lib/rmdir.c (rmdir): Define with a prototype.
35508         * lib/savedir.c: Include savedir.h first, to test interface.
35509
35510         * lib/mktime.c (STDC_HEADERS): Remove.
35511         Include <stdlib.h>, <string.h> unconditionally.
35512
35513         * lib/modechange.c: Include <stdlib.h> unconditionally.
35514         (malloc): Remove decl.
35515
35516         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35517         (free): Remove decl.
35518
35519         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
35520         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
35521         (This type really should be intptr_t, but that's a C99ism.)
35522         (_obstack_memcpy): Remove: all uses changed to memcpy.
35523         Include <string.h> unconditionally.
35524         (struct obstack): Assume __STDC__ for types of members
35525         chunkfun, freefun, extra_arg.
35526         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
35527         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
35528         obstack_begin, obstack_specify_allocation,
35529         obstack_specify_allocation_with_arg, obstack_chunkfun,
35530         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
35531         Remove unprototyped decls and the macros that use them.
35532         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
35533         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
35534         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
35535         (defined __STDC__ && __STDC__)]:
35536         Remove nonprototyped code.
35537         Include <stdlib.h> unconditionally.
35538         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35539         _obstack_allocated_p, _obstack_free, obstack_free,
35540         _obstack_memory_used, print_and_abort):
35541         Define using prototypes.
35542         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35543         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35544         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35545         obstack_next_free, obstack_object_size, obstack_room) [0]:
35546         Remove unused, unprototyped code.
35547
35548         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35549
35550         * lib/physmem.c (physmem_total, physmem_available, main): Define
35551         with prototypes.
35552
35553         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35554         (main): Define with a prototype.
35555
35556         * lib/posixver.c (getenv): Remove decl.
35557
35558         * lib/putenv.c (malloc): Returns void *, not char *.
35559         Include <string.h> unconditionally.
35560         (strchr, memcpy, NULL): Do not define.
35561
35562         * lib/readtokens.c: Include readtokens.h first, to test interface.
35563         Include <stdlib.h>, <string.h> unconditionally.
35564         (init_tokenbuffer): Define with a prototype.
35565
35566         * lib/regex.c (PARAMS): Remove.  All uses removed.
35567         All uses of _RE_ARGS removed, too.
35568         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35569         unconditionally.
35570         (bzero): Assume memset exists.
35571         (memcmp, memcpy, NULL): Remove.
35572         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
35573         char, or assignments to local vars of type signed char.
35574         (init_syntax_once, PREFIX(extract_number_and_incr),
35575         PREFIX(print_partial_compiled_pattern),
35576         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
35577         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
35578         PREFIX(regex_grow_registers), PREFIX(regex_compile),
35579         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
35580         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
35581         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
35582         wcs_compile_range, byte_compile_range, truncate_wchar,
35583         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
35584         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
35585         count_mbs_length, wcs_re_match_2_internal,
35586         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
35587         PREFIX(alt_match_null_string_p),
35588         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
35589         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
35590         regfree, PREFIX(extract_number)): Define with prototype.  Remove
35591         now-unnecessary declaration, if any.
35592         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
35593         regcomp, regexec):
35594         Remove now-unnecessary casts among pointer types.
35595         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
35596
35597         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
35598         (free): Remove decl.
35599
35600         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
35601
35602         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
35603         (free): Remove decl.
35604
35605         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
35606         * lib/xgetcwd.c: Likewise.
35607
35608         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
35609         (free): Remove decl.
35610
35611         * lib/strchrnul.c (strchrnul): Define with a prototype.
35612         Fix bug: c_in was not converted to char before searching.
35613
35614         The following changes are not K&R related:
35615
35616         * lib/group-member.h: Include <sys/types.h>, so that this file is
35617         self-contained.
35618         * lib/makepath.h: Likewise.
35619
35620         * lib/getusershell.c (readname, default_index, line_size, readname):
35621         Use size_t, not int, for sizes.
35622         (readname): If the size overflows, report an error instead of
35623         looping forever.
35624
35625 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35626
35627         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
35628         libc.
35629
35630 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35631
35632         * README: New section: portability guidelines.
35633
35634 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35635
35636         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
35637         C89 spec.
35638
35639 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35640
35641         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
35642
35643 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35644
35645         Assume C89 or better; remove K&R cruft.
35646         A few of these changes were first proposed by Derek Robert Price
35647         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
35648
35649         * lib/addext.c: Include <string.h> unconditionally.
35650         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
35651         Don't declare getenv or malloc.
35652
35653         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
35654         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
35655         (NULL): Remove.
35656         (find_stack_direction, alloca): Use prototypes.
35657
35658         * lib/atexit.c (atexit): Define using a prototype.
35659
35660         * lib/basename.c, dirname.c, stripslash.c:
35661         Include <string.h> unconditionally.
35662
35663         * lib/bcopy.c: Include <stddef.h>.
35664         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
35665
35666         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
35667
35668         * lib/error.h (error, error_at_line, error_print_progname)
35669         [! (defined (__STDC__) && __STDC__)]: Remove decls.
35670         * lib/error.c: Include error.h first, to check interface.
35671         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35672         (VA_START): Remove; all uses changeed to va_start.
35673         (exit, strerror): Remove decls.
35674         (error_print_progname): Prototype uncondionally.
35675         Don't include <errno.h>; no longer needed.
35676         (private_strerror): Remove.
35677         (error_tail): Always define.
35678         (error, error_at_line): Assume C89 or better; always use prototypes.
35679         * lib/fatal.c: Include "fatal.h" first, to test interface.
35680         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35681         (VA_START): Remove; all uses changed to va_start.
35682         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
35683         this case.
35684         (exit): Remove decl.
35685         (fatal): Prototype unconditionally.  Assume va_start works.
35686         Abort at end, to pacify gcc.
35687
35688         * lib/euidaccess.c (main): Define with a prototype.
35689
35690         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
35691
35692         * lib/exitfail.c: Include <stdlib.h> unconditionally.
35693
35694         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
35695         prototypes.
35696         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
35697         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
35698         (getenv): Remove decl.
35699         (fnmatch): Define using a prototype.
35700         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
35701         (FCT): Define using a prototype.
35702
35703         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
35704
35705         * lib/gethostname.c: Include <stddef.h>.
35706         (gethostname): Define with prototype.  Length is size_t, not int.
35707
35708 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35709
35710         Assume C89 or better; remove K&R cruft.
35711         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
35712         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
35713         string.h, getenv, malloc.
35714         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
35715         headers.
35716         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
35717         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
35718         do not check for strerror.
35719         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
35720         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
35721         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
35722         do not check for doprnt or vprintf.
35723         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
35724         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
35725
35726 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35727
35728         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
35729         getversion.c should have been removed then, but was accidentally
35730         preserved.
35731
35732         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
35733         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
35734
35735 2003-09-08  Karl Berry  <karl@gnu.org>
35736
35737         * config/config.sub, config.guess, srclistvars.sh: update from savannah
35738                 config, forget about prep.
35739
35740         * config/depcomp, missing: update from automake.
35741
35742 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35743
35744         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
35745         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35746
35747 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35748
35749         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
35750         copy_tm_result.  Bug reported by Simon Josefsson in
35751         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35752
35753 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35754
35755         * m4/time_r.m4: New file.
35756         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
35757         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
35758         is. Check for timegm declaration.
35759         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
35760         Do not check for gmtime_r.
35761         Replace mktime if __mktime_internal does not exist and if mktime
35762         hasn't been replaced already.
35763
35764 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35765
35766         * lib/time_r.c, lib/time_r.h: New files.
35767
35768         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
35769         __localtime_r.
35770         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
35771         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
35772
35773         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
35774         __gmtime_r.
35775         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
35776         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
35777         Include <time_r.h>.
35778
35779         * lib/timegm.c: Switch to glibc implementation, with the following
35780         changes:
35781         [defined HAVE_CONFIG_H]: Include <config.h>.
35782         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
35783         (__mktime_internal) [!defined _LIBC]: New decl.
35784         (__gmtime_r) [!defined _LIBC]: New macro and function.
35785         (timegm): Use a prototype, since gnulib assumes C89.
35786         Do not bother declaring tmp to be const, as it's not really usefu.
35787         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
35788         (timegm): Declare only if HAVE_DECL_TIMEGM.
35789
35790 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35791
35792         * MODULES.html.sh (func_all_modules): Add time_r.
35793         * modules/time_r: New file.
35794         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
35795         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
35796
35797 2003-09-03  Paul Eggert  <eggert@twinsun.com>
35798
35799         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
35800         Bug reported by Lute Kamstra in
35801         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
35802
35803         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
35804         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
35805         course with correspondingly smaller numbers for tomorrow and
35806         yesterday.  From Tadayoshi Funaba.  Originally installed into
35807         sh-utils on 1999-08-07, but the patch got lost (I guess during the
35808         coreutils merge?).
35809
35810 2003-08-31  Simon Josefsson  <jas@extundo.com>
35811
35812         * modules/timegm: New file.
35813         * MODULES.html.sh (func_all_modules): Add timegm.
35814
35815 2003-08-31  Simon Josefsson  <jas@extundo.com>
35816
35817         * m4/timegm.m4: New file.
35818
35819 2003-08-31  Simon Josefsson  <jas@extundo.com>
35820
35821         * lib/timegm.h: New file.
35822         * lib/timegm.c: New file.  Based on
35823         wget-1.8.2/src/http.c:mktime_from_utc.
35824
35825 2003-08-31  Karl Berry  <karl@gnu.org>
35826
35827         * lib/argp.h: update from libc.
35828
35829 2003-08-28  Bruno Haible  <bruno@clisp.org>
35830
35831         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35832         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35833         followed by '#define fnmatch fnmatch_posix' gives an error.
35834
35835 2003-08-28  Bruno Haible  <bruno@clisp.org>
35836
35837         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35838         warning on QNX, which defines O_BINARY to 000000.
35839
35840 2003-08-27  Jim Meyering  <jim@meyering.net>
35841
35842         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35843         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35844         would fail after 32.  Reported by Danny Levinson.  Details here:
35845         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
35846
35847 2003-08-24  Bruno Haible  <bruno@clisp.org>
35848
35849         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
35850         MSVC7 <stdio.h> is included later.
35851
35852 2003-08-22  Simon Josefsson  <jas@extundo.com>
35853
35854         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
35855
35856 2003-08-20  Karl Berry  <karl@gnu.org>
35857
35858         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
35859
35860 2003-08-20  Bruno Haible  <bruno@clisp.org>
35861
35862         * modules/progname: New file.
35863         * MODULES.html.sh (func_all_modules): Add progname.
35864
35865 2003-08-20  Bruno Haible  <bruno@clisp.org>
35866
35867         * lib/progname.h: New file, from GNU gettext.
35868         * lib/progname.c: New file, from GNU gettext.
35869         * lib/progreloc.c: New file, from GNU gettext.
35870
35871 2003-08-19  Jim Meyering  <jim@meyering.net>
35872
35873         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
35874         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
35875
35876 2003-08-19  Bruno Haible  <bruno@clisp.org>
35877
35878         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
35879         more.
35880
35881 2003-08-19  Bruno Haible  <bruno@clisp.org>
35882
35883         * lib/xstrdup.c: Assume <string.h> exists.
35884
35885 2003-08-18  Paul Eggert  <eggert@twinsun.com>
35886
35887         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
35888         in makefile rules.
35889
35890 2003-08-18  Jim Meyering  <jim@meyering.net>
35891
35892         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
35893         * m4/lib-ld.m4: Likewise.
35894
35895 2003-08-18  Jim Meyering  <jim@meyering.net>
35896
35897         * lib/setenv.h: Indent nested cpp directive.
35898         * lib/vasnprintf.c: Remove trailing blanks.
35899
35900 2003-08-17  Simon Josefsson  <jas@extundo.com>
35901
35902         * modules/xstrndup: New file.
35903         * MODULES.html.sh (func_all_modules): Add xstrndup.
35904
35905 2003-08-17  Simon Josefsson  <jas@extundo.com>
35906
35907         * modules/argp: Fix autoconf macro name. Add more dependencies.
35908
35909 2003-08-17  Simon Josefsson  <jas@extundo.com>
35910
35911         * m4/xstrndup.m4: New file.
35912
35913 2003-08-17  Simon Josefsson  <jas@extundo.com>
35914
35915         * m4/argp.m4: New file.
35916
35917 2003-08-17  Simon Josefsson  <jas@extundo.com>
35918             Bruno Haible  <bruno@clisp.org>
35919
35920         * lib/xstrndup.h: New file.
35921         * lib/xstrndup.c: New file.
35922
35923 2003-08-17  Bruno Haible  <bruno@clisp.org>
35924
35925         * modules/strndup (Files, Include): Add lib/strndup.h.
35926
35927 2003-08-17  Bruno Haible  <bruno@clisp.org>
35928
35929         * modules/euidaccess (Files): Add lib/euidaccess.h.
35930
35931 2003-08-17  Bruno Haible  <bruno@clisp.org>
35932
35933         * lib/strndup.h: New file.
35934
35935 2003-08-17  Bruno Haible  <bruno@clisp.org>
35936
35937         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
35938         like AC_GNU_SOURCE.
35939         * modules/extensions (configure.ac): Comment out the invocation of
35940         gl_USE_SYSTEM_EXTENSIONS.
35941
35942 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35943
35944         Merges from coreutils, etc.
35945         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
35946         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
35947         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
35948         fixing a typo.
35949         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
35950         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
35951
35952 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35953
35954         Document merge from coreutils.
35955         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
35956         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
35957         * modules/utime: Add m4/utimes-null.m4.
35958
35959 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35960
35961         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
35962         space, undoing this 2003-08-12 change:
35963         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35964
35965 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35966
35967         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
35968         strtoul.c from libc, undoing this 2003-08-12 change:
35969         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35970
35971 2003-08-16  Jim Meyering  <jim@meyering.net>
35972
35973         Merges from coreutils.
35974         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
35975         prefix.  Adjust cache variables similarly.  Create 500 rather than
35976         just 300 files, to exercise bug on Darwin6.5, too.
35977         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
35978         $missing_dir.
35979         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
35980         AM_SYS_POSIX_TERMIOS.
35981         Reported by mkc@mathdogs.com.
35982         Also change use of $am_cv_sys_posix_termios
35983         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
35984         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
35985         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
35986         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
35987         in /proc/mounts until it finds one with matching device number.  This
35988         is unnecessary when the FILE argument *is* a mount point.  No stat call
35989         is necessary in that case.  So, disable the statvfs-testing code on
35990         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
35991         as RedHat bug# 84846.
35992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35993         to 1MB, so as not to render systems with no stack size limit (e.g.,
35994         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35995         Include <unistd.h>.  On some systems,
35996         it is required for the definition of _SC_PAGESIZE.
35997
35998 2003-08-16  Jim Meyering  <jim@meyering.net>
35999
36000         Merge from coreutils.
36001         * lib/xstrtoimax.c: #else #if -> #elif.
36002         * lib/xstrtoumax.c: Likewise.
36003
36004 2003-08-16  Jim Meyering  <jim@meyering.net>
36005
36006         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
36007         * m4/utimes.m4: Removed.
36008         * m4/utimes-null.m4: Renamed from utimes.m4.
36009
36010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
36011         to 1MB, so as not to render systems with no stack size limit (e.g.,
36012         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
36013         Include <unistd.h>.  On some systems,
36014         it is required for the definition of _SC_PAGESIZE.
36015
36016 2003-08-16  Jim Meyering  <jim@meyering.net>
36017         and Paul Eggert  <eggert@cs.ucla.edu>
36018
36019         Merges from coreutils, etc.
36020
36021         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
36022         using the latest version from cvs.  This avoids problems with #line
36023         directives using a vendor (Sun) compiler.
36024         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
36025         Don't set GETGROUPS_LIB here; now it's
36026         done via getgroups.m4's wrapper function.
36027         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
36028         rather than just in sh-util/configure.in, so that the
36029         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
36030         same.
36031         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
36032         AC_FUNC_GETLOADAVG where to find getloadavg.c.
36033         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
36034         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
36035         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
36036         Remove code that is now done by the newly-required macros.
36037         Append $(EXEEXT) to DF_PROG.
36038         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
36039         Do not invoke or require the following here,
36040         since prereq.m4 or some gnulib .m4 now does this for us:
36041         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
36042         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
36043         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
36044         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
36045         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
36046         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
36047         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
36048         AC_FUNC_OBSTACK.
36049         Do not replace the following functions, as this is now the job
36050         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
36051         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
36052         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
36053         atexit getpass, strdup, getpagesize.
36054         Replace 'raise'.
36055         Do not check for the following functions, as this is now the job
36056         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
36057         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
36058         setregid.
36059         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
36060         Check for sys/sysctl.h.
36061         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
36062         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
36063         of checking for ssize_t ourselves.
36064
36065         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
36066         Require every macro that gnulib/modules/* suggests for us.
36067         (jm_PREREQ_ADDEXT): New macro.
36068         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
36069         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
36070
36071         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
36072         (gl_PHYSMEM): Use it.
36073         Also check for `table' function.
36074         Check for new headers and functions.
36075         Add check for sys/sysmp.h.
36076         With suggestions from Kaveh Ghazi.
36077         Ignore headers that are present but cannot be compiled.  This
36078         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
36079         C 5.4.
36080
36081 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36082
36083         Document merge from coreutils.
36084         * modules/userspec: Depend on posixver.
36085         * modules/strftime: Depend on tzset.
36086
36087 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36088
36089         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
36090         rather than tab, after '#' in shell-script copyright notices.
36091         Suggested by Bruno Haible.
36092
36093 2003-08-15  Paul Eggert  <eggert@twinsun.com>
36094
36095         * config/srclist-update: Use three spaces, rather than tab, after '#'
36096         in shell-script copyright notices.  Suggested by Bruno Haible.
36097         Remove unnecessary parenthesization in regular expression.
36098
36099 2003-08-15  Jim Meyering  <jim@meyering.net>
36100
36101         Merge from coreutils.
36102         * lib/xgethostname.c: Include <stdlib.h>.
36103         (xghostname): Don't exit for anything other than memory-related
36104         failure; just return NULL.
36105         * lib/userspec.c: Include "posixver.h".
36106         (parse_user_spec): Accept `.' as a separator only
36107         in pre-POSIX-200112 mode.
36108         * lib/strtoimax.c: Use #elif rather than #else #if.
36109         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
36110         Remove function, now that we can rely on a working tzset function.
36111         [!_LIBC]: Ensure that the required autoconf test has been run.
36112         [!defined _NL_CURRENT && HAVE_STRFTIME]:
36113         Use underlying_strftime for %r.
36114         * lib/sha.c: Merge in some clean-up and optimization changes from
36115         glibc.
36116         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
36117         Ensure that it is a multiple of 64.
36118         Rearrange loop exit tests so as to avoid performing an
36119         additional fread after encountering an error or EOF.
36120         * lib/realloc.c: Update copyright date.
36121
36122 2003-08-15  Jim Meyering  <jim@meyering.net>
36123         and Paul Eggert  <eggert@twinsun.com>
36124
36125         Merge from coreutils.
36126         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
36127         member but strut utmpx does not.  Needed for AIX 4.3.3.
36128         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
36129
36130 2003-08-15  Jim Meyering  <jim@meyering.net>
36131         and Paul Eggert  <eggert@cs.ucla.edu>
36132
36133         Merges from coreutils, etc.
36134         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
36135         Require gl_FUNC_TZSET_CLOBBER.
36136         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
36137         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
36138         members.
36139
36140 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36141
36142         Help the merge from coreutils.
36143         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
36144         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
36145         * m4/tzset.m4: Use it too.
36146
36147 2003-08-14  Paul Eggert  <eggert@twinsun.com>
36148
36149         * modules/tzset: New file.
36150
36151 2003-08-14  Jim Meyering  <jim@meyering.net>
36152
36153         Merges from coreutils.
36154         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
36155         variable names, rather than @FNMATCH_H@.
36156         * modules/alloca: Likewise for $(ALLOCA_H).
36157
36158         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
36159         the three copies of the literal target, `fnmatch.h'.
36160         * modules/alloca (alloca.h): Likewise.
36161
36162 2003-08-14  Jim Meyering  <jim@meyering.net>
36163
36164         Merge from coreutils.
36165         * m4/tzset.m4: New file.
36166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
36167         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
36168         otherwise, AIX 5.1 systems would end up using the latter.
36169         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
36170         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
36171         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
36172         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
36173
36174 2003-08-14  Jim Meyering  <jim@meyering.net>
36175
36176         Merge from coreutils.
36177         * lib/obstack.h: Whitespace changes.
36178         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
36179         and xcalloc return values.
36180         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
36181         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
36182         hang on OSF/1 5.1 for DIR on both local and remote file systems.
36183         Reported by (and fix confirmed by) Nelson H. F. Beebe.
36184         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36185         error from mntctl.
36186         Use mntctl's return value to drive the entry-processing loop, since
36187         we can't rely on the value of the vmt_length member in the last
36188         entry.  On some systems doing so could result in exhausting
36189         virtual memory.  Based in part on a patch from Mike Jetzer.
36190
36191 2003-08-14  Jim Meyering  <jim@meyering.net>
36192         and Paul Eggert  <eggert@twinsun.com>
36193
36194         Merges from coreutils, plus other fixes.
36195         * lib/physmem.c: Merge in portability changes from gcc/libiberty
36196         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
36197         for credits and details.  Thanks to Kaveh Ghazi for helping
36198         to keep these files in sync.
36199         (ARRAY_SIZE): Define it.
36200         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
36201         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
36202         (memcasecmp): Don't assume size_t fits in unsigned int.
36203         Remove casts and duplicate code.
36204         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
36205         (memcpy): Remove definition.
36206         Merge in some clean-up and optimization changes from glibc.
36207         [BLOCKSIZE]: Move definition to top of file.
36208         Ensure that it is a multiple of 64.
36209         Rearrange loop exit tests so as to avoid performing an
36210         additional fread after encountering an error or EOF.
36211         * lib/md5.h (md5_uintptr): Define.
36212         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
36213         return to the initial working directory.  Preserve errno
36214         for caller.
36215         * lib/idcache.c: Include "xalloc.h".
36216         (xmalloc, xrealloc): Remove decls.
36217         (getuser): Remove casts no longer required in C89.
36218         * lib/human.c: Include stdio.h, for sprintf.
36219         * lib/group-member.c: Include "xalloc.h".
36220         (xmalloc, xrealloc): Remove decls.
36221         (get_group_info): Remove casts no longer required in C89.
36222         * lib/getusershell.c (readname): Remove casts no longer required in
36223         C89.
36224         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
36225         * lib/getline.c: Whitespace fix, from coreutils.
36226
36227 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36228
36229         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
36230         Check for isascii.
36231
36232         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36233         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36234         Undo previous (whitespace-only) change.
36235
36236 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36237
36238         * lib/exclude.c: Include <ctype.h>
36239         (IN_CTYPE_DOMAIN): New macro.
36240         (is_space): New fn.
36241         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
36242         and empty lines.
36243
36244         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36245         Undo previous (whitespace-only) change.
36246
36247 2003-08-13  Paul Eggert  <eggert@twinsun.com>
36248
36249         * config/srclist-update: Change update back to the old behavior,
36250         leaving whitespace alone.  Use one 'sed' command rather than a
36251         pipeline.
36252         (fixlicense): Now a variable, not a function.
36253         (remove_trailing_blanks): Remove.
36254         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
36255         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36256         Undo previous (whitespace-only) change.
36257
36258 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36259
36260         Merge from coreutils.
36261         * modules/euidaccess: Add lib_SOURCES, include for new
36262         file euidaccess.h
36263
36264 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36265
36266         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
36267         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
36268         Normalize leading white space and remove trailing white space.
36269
36270         Merge from coreutils
36271         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
36272
36273         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
36274         0.12.1.  These files are now being upgraded automatically by
36275         ../config/srclist-update.
36276
36277 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36278
36279         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
36280         Normalize leading white space and remove trailing white space.
36281         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
36282         notice, as per ../config/srclist-update.
36283
36284         Merge from coreutils.
36285         * lib/euidaccess.h: New file.
36286         * lib/euidaccess.c: Include it.
36287         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
36288         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
36289         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
36290
36291 2003-08-12  Paul Eggert  <eggert@twinsun.com>
36292
36293         * config/srclist-update: Add copyright notice.
36294         (remove_id_lines, remove_trailing_blanks): New constants.
36295         (fixfile): Use them to normalize spacing a bit in copied files.
36296         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
36297         Normalize leading white space and remove trailing white space.
36298
36299         * config/texinfo.tex: Sync with texinfo.
36300
36301         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
36302         strtoul.c from libc, to merge coreutils whitespace changes.
36303
36304         * config/srclist.txt: Get the following m4 files from gettext:
36305         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
36306         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
36307         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
36308         wint_t.m4.
36309
36310 2003-08-12  Karl Berry  <karl@gnu.org>
36311
36312         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
36313         been made.
36314
36315 2003-08-11  Paul Eggert  <eggert@twinsun.com>
36316
36317         * modules/gnu-source, m4/gnu-source.m4:
36318         Remove; we're assuming Autoconf 2.54 or later now.
36319         Suggested by Bruno Haible.
36320         * MODULES.html.sh (func_all_modules): Remove gnu-source.
36321
36322 2003-08-11  Bruno Haible  <bruno@clisp.org>
36323
36324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
36325
36326 2003-08-11  Bruno Haible  <bruno@clisp.org>
36327
36328         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
36329         (vasnprintf): Use it instead of wcslen.
36330
36331 2003-08-11  Bruno Haible  <bruno@clisp.org>
36332
36333         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
36334         value to ensure that _Bool promotes to int. Use #define for _Bool when
36335         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
36336
36337 2003-08-10  Karl Berry  <karl@gnu.org>
36338
36339         * lib/regex.h: update from libc (whitespace fix).
36340
36341 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36342
36343         Merge some files from coreutils.  These changes were
36344         originally made by Jim Meyering.
36345         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
36346         many older Unixes require this.
36347         * lib/alloca.c (alloca): Remove cast to argument of free;
36348         no longer needed in C89.
36349         * lib/alloca_.h, regex.h: Fix white space to match
36350         what GNU indent does.
36351
36352 2003-08-09  Paul Eggert  <eggert@twinsun.com>
36353
36354         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
36355         apparently Emacs's Unicode mode got confused before my 2003-08-05
36356         checkin.
36357
36358 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36359
36360         * m4/extensions.m4: New file.
36361         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
36362         Require gl_USE_SYSTEM_EXTENSIONS.
36363         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
36364         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
36365
36366 2003-08-08  Paul Eggert  <eggert@twinsun.com>
36367
36368         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
36369         * modules/extensions, modules/gnu-source: New files.
36370         * modules/timespec, modules/unlocked-io: Depend on extensions.
36371
36372 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36373
36374         * modules/restrict: New file.
36375         * MODULES.html.sh (func_all_modules): Add restrict.
36376         * modules/regex: Depend on restrict.
36377
36378 2003-08-07  Paul Eggert  <eggert@twinsun.com>
36379
36380         * m4/restrict.m4: New file.
36381         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
36382
36383 2003-08-07  Bruno Haible  <bruno@clisp.org>
36384
36385         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
36386         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
36387
36388 2003-08-07  Bruno Haible  <bruno@clisp.org>
36389
36390         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
36391         makes the module 'getndelim2' compatible with the module 'getline'.
36392
36393 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36394
36395         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
36396         byte with "\201" to avoid glitches when editing that source file
36397         with multi-gnome-terminal.
36398
36399 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36400
36401         * lib/bumpalloc.h: Remove.
36402
36403 2003-08-05  Paul Eggert  <eggert@twinsun.com>
36404
36405         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
36406         * modules/bumpalloc: Remove.
36407
36408 2003-08-04  Paul Eggert  <eggert@twinsun.com>
36409
36410         * lib/getloadavg.c: Change copyright notice and spacing to conform to
36411         GNU coding style.
36412
36413         Merge from coreutils.
36414         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
36415         1. From glibc.
36416         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
36417         from Karl Berry, implemented by Jim Meyering.
36418         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
36419         from Dmitry V. Levin.
36420         Remove anachronistic cast of xrealloc.
36421         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36422         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36423         type. Otherwise, it wouldn't compile with at least /bin/cc on
36424         ymp-cray-unicos9.0.2.X.
36425         Combine two mostly-identical uses of alloca into one.
36426         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36427
36428 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36429
36430         [From Emacs.]
36431
36432         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36433         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36434         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36435         obsolete NLIST_NAME_UNION.
36436         [__GNU__]: Undef BSD and FSCALE.
36437         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36438
36439 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36440
36441         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36442         an enum type, so that it's guaranteed to promote to int.  See:
36443         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36444
36445 2003-08-03  Karl Berry  <karl@gnu.org>
36446
36447         * config/depcomp: update from automake.
36448
36449 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36450
36451         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36452         (strerror): Don't assume that a printable int fits in 14 bytes.
36453
36454 2003-07-31  Bruno Haible  <bruno@clisp.org>
36455
36456         * modules/getpass-gnu: New file.
36457         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36458
36459 2003-07-31  Bruno Haible  <bruno@clisp.org>
36460
36461         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36462
36463 2003-07-24  Karl Berry  <karl@gnu.org>
36464
36465         * config/missing: update from automake.
36466
36467 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36468             Bruno Haible  <bruno@clisp.org>
36469
36470         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36471         * lib/getline.c (getline, getdelim): Likewise.
36472         Remove _GNU_SOURCE define; now it's defined in config.h through
36473         m4/getline.m4.
36474
36475 2003-07-23  Karl Berry  <karl@gnu.org>
36476
36477         * config/config.sub: update from prep.
36478
36479 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36480
36481         * modules/xalloc (Depends-on): Add exitfail.
36482         * modules/xmemcoll: Likewise.
36483
36484 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36485
36486         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36487         over-parenthesization in macros.
36488
36489         Sync with coreutils.
36490
36491         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36492         required by C99.
36493
36494         Use `exit_failure' for xalloc and xmemcoll instead of their own
36495         private exit-failure variables.
36496         * lib/xalloc.h (xalloc_exit_failure): Remove.
36497         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36498         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36499         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36500         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36501         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36502
36503 2003-07-20  Jim Meyering  <jim@meyering.net>
36504
36505         * modules/closeout (Depends-on): Add exitfail.
36506         Suggestion from Bruno Haible.
36507
36508 2003-07-19  Karl Berry  <karl@gnu.org>
36509
36510         * config/config.sub: update from prep.
36511
36512 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36513
36514         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36515         Remove.
36516         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36517         to test that it can stand by itself.  Include "exitfail.h".
36518         Clients should set exit_failure instead.
36519         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
36520
36521 2003-07-18  Bruno Haible  <bruno@clisp.org>
36522
36523         * modules/getndelim2: New file.
36524         * modules/getline: Share files with module getndelim2.
36525         * modules/getnline: Depend on getndelim2 instead of sharing files with
36526         it. Add getnline.c to lib_SOURCES.
36527         * MODULES.html.sh (func_all_modules): Add getndelim2.
36528
36529 2003-07-18  Bruno Haible  <bruno@clisp.org>
36530
36531         * m4/getndelim2.m4: New file.
36532         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
36533         invoke gl_PREREQ_GETNDELIM2.
36534         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
36535         gl_PREREQ_GETNDELIM2.
36536         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
36537         gl_GETNDELIM2.
36538
36539 2003-07-18  Bruno Haible  <bruno@clisp.org>
36540
36541         * lib/getndelim2.h: New file.
36542         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36543         getndelim2.h.
36544         (getndelim2): Make non-static. Change return type to ssize_t.
36545         * lib/getline.h: Change argument names.
36546         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36547         * lib/getnline.c: Include getndelim2.h.
36548
36549 2003-07-18  Andreas Schwab  <schwab@suse.de>
36550
36551         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36552
36553 2003-07-17  Karl Berry  <karl@gnu.org>
36554
36555         * config/config.sub: update from prep.
36556
36557 2003-07-17  Bruno Haible  <bruno@clisp.org>
36558
36559         * modules/getnline: New file.
36560         * modules/getline: Add lib/getndelim2.c to source file list.
36561         * MODULES.html.sh (func_all_modules): Add getnline.
36562
36563 2003-07-17  Bruno Haible  <bruno@clisp.org>
36564
36565         * m4/getnline.m4: New file.
36566
36567 2003-07-17  Bruno Haible  <bruno@clisp.org>
36568
36569         * m4/Makefile.am.in: Remove file.
36570         * m4/Makefile.am: Remove file.
36571         * m4/Makefile.in: Remove file.
36572
36573 2003-07-17  Bruno Haible  <bruno@clisp.org>
36574
36575         * lib/getnline.h: New file.
36576         * lib/getnline.c: New file.
36577         * lib/getndelim2.c: New file, extracted from getline.c.
36578         (getndelim2): Renamed from getdelim2, with added nmax argument.
36579         * lib/getline.c: Include getndelim2.c.
36580         (getdelim2): Moved out to getndelim2.c.
36581         (getline, getdelim): Update.
36582
36583 2003-07-17  Bruno Haible  <bruno@clisp.org>
36584
36585         * lib/Makefile.am: Remove file.
36586         * lib/Makefile.in: Remove file.
36587
36588 2003-07-17  Bruno Haible  <bruno@clisp.org>
36589
36590         * configure.in: Remove file.
36591         * Makefile.in: Remove file.
36592
36593 2003-07-17  Bruno Haible  <bruno@clisp.org>
36594
36595         * MODULES.html.sh: Put the </BODY> right before </HTML>.
36596
36597 2003-07-16  Karl Berry  <karl@gnu.org>
36598
36599         * config/srclist-update: was running fixlicense twice, which caused
36600                 texinfo.tex to be nullified for some reason.  Simplify,
36601                 $gplsrc is no longer needed as far as I can see?
36602
36603 2003-07-16  Jim Meyering  <jim@meyering.net>
36604
36605         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
36606
36607 2003-07-15  Paul Eggert  <eggert@twinsun.com>
36608
36609         * config/srclist.txt: Get the following files from gettext-runtime/intl
36610         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
36611         ref-del.sin.  From Bruno Haible.
36612         * config/srclist-update (fixfile): Change grep pattern again, since the
36613         previous fix didn't work (there was another trailing $).  Use
36614         '[$]' to escape the $s.
36615
36616 2003-07-15  Karl Berry  <karl@gnu.org>
36617
36618         * lib/vasnprintf.c: update from gettext.
36619
36620 2003-07-15  Karl Berry  <karl@gnu.org>
36621
36622         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
36623         gets expanded when surrounded by '$'.
36624
36625 2003-07-15  Jim Meyering  <jim@meyering.net>
36626
36627         * modules/save-cwd: Don't depend on error.  From Derek Price.
36628
36629 2003-07-15  Jim Meyering  <jim@meyering.net>
36630
36631         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
36632
36633 2003-07-14  Simon Josefsson  <jas@extundo.com>
36634
36635         * modules/mempcpy: New file.
36636         * MODULES.html.sh (func_all_modules): Add mempcpy.
36637
36638 2003-07-14  Simon Josefsson  <jas@extundo.com>
36639
36640         * m4/mempcpy.m4: New file.
36641
36642 2003-07-14  Simon Josefsson  <jas@extundo.com>
36643
36644         * lib/mempcpy.h: New file.
36645         * lib/mempcpy.c: New file.
36646
36647 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36648
36649         * modules/getdate, modules/posixtm: Depend on mktime.
36650
36651 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36652
36653         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
36654         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
36655         unicodeio.c, unicodeio.h, unlocked-io.h:
36656         Switch from LGPL to GPL.
36657
36658 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36659
36660         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
36661         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
36662         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
36663         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
36664         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
36665         updated automatically by ../config/srclist-update.  This changes
36666         their license from LPGL to GPL.
36667
36668 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36669
36670         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
36671         assumed to refer to the root of the most recent stable gettext version.
36672         * config/srclistvars.sh: Add defaults for eggert.
36673         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
36674         Match "This program" as well as "The program".  This is needed
36675         for gettext.
36676
36677 2003-07-14  Jim Meyering  <jim@meyering.net>
36678
36679         Don't emit diagnostics.  Let callers do that.
36680         * lib/save-cwd.c: Don't include "error.h".
36681         (save_cwd): Don't call error.  Ensure that errno is valid
36682         when returning nonzero.
36683
36684         * lib/save-cwd.h (restore_cwd): Update prototype.
36685         * lib/save-cwd.c (restore_cwd): Remove two parameters.
36686         Simplify.  Don't call error upon failure.  Let callers do that.
36687         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
36688         when auditing is enabled.  But don't bother updating the #if.
36689
36690 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
36691
36692         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
36693         it breaks C++ compilation.
36694         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
36695
36696 2003-07-10  Simon Josefsson  <jas@extundo.com>
36697
36698         * modules/strchrnul (Makefile.am): Add strchrnul.h.
36699
36700 2003-07-10  Jim Meyering  <jim@meyering.net>
36701
36702         * m4/clock_time.m4: Remove trailing blank.
36703         * m4/intmax_t.m4: Likewise.
36704
36705 2003-07-10  Jim Meyering  <jim@meyering.net>
36706
36707         * lib/vasnprintf.c: Remove trailing blanks.
36708         Make cpp indentation consistent.
36709
36710 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36711
36712         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
36713         posixver.c, strftime.c, strnlen.c, strverscmp.c:
36714         Switch from LGPL to GPL.
36715
36716 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36717
36718         * config/srclist.txt: Sort sublists.  Add
36719         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
36720         that differ from gnulib for one reason or another; we'd like this list
36721         to be smaller but for now let's document what we have.
36722
36723 2003-07-08  Paul Eggert  <eggert@twinsun.com>
36724
36725         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
36726         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
36727         and sweeter "eval x=$x".
36728         * config/srclist.txt: Get lib/argp* from glibc.
36729
36730 2003-07-07  Paul Eggert  <eggert@twinsun.com>
36731
36732         * lib/mktime.c: Fix some boundary cases and remove need for floating
36733         point.
36734
36735         Issue a compile-time diagnostic if time_t is floating point, or if
36736         two's complement arithmetic is not in effect, or if arithmetic
36737         right shift does not propagate the sign.  These assumptions were
36738         all in the original code but they weren't checked.
36739
36740         (TIME_T_MIDPOINT, verify): New macros.
36741         (__isleap): Remove; it has integer overflow problems.
36742         (leapyear): New function, without those problems.
36743         (ydhms_tm_diff): Remove; splitting into two parts.
36744         (ydhms_diff): New function, containing the arithmetic part of
36745         the old ydhms_tm_diff function.  Issue a compile-time
36746         diagnostic if we are not using C99 integer division.
36747         Avoid casts when possible.
36748         (guess_time_tm): New function, containing the checking part of
36749         the old ydhms_tm_diff function.  Return the new value, rather than
36750         the difference between it and the old.  Accept a new argument T
36751         so that *T specifies the old value.  Check for overflow in the result.
36752
36753         (__mktime_internal): Use a time_t offset, not a long int offset.
36754         This undoes the 2003-06-04 change, which is no longer needed now
36755         that we have better overflow checking.
36756         (localtime_offset): Likewise.
36757
36758         (__mktime_internal): Avoid harmful overflow on hosts where time_t
36759         and long are 64-bit but int is only 32-bit.
36760         (ydhms_diff): Use long int to store year1 and yday1.
36761         Issue a compile-time diagnostic if long int is not wide enough.
36762
36763         (__mktime_internal): Use long int to store adjusted year and yday.
36764         Use plain C rather than preprocessor commands, if that doesn't
36765         affect efficiency.
36766         Check for overflow (and try to repair) after each probe
36767         rather than checking only at the very end.  This avoids some bugs
36768         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
36769         does not equal GMT offset at maximum time).
36770         Use integer to check for overflow rather than floating point; this
36771         is more portable to non-IEEE hosts, and is a tad faster.
36772         When we detect that we are oscillating between two values,
36773         don't check whether tm_isdst has the requested value, since
36774         we already know the answer.  When tm_isdst has the wrong value,
36775         use a different heuristic to find the right one, based on the
36776         extreme values actually observed in practice in tz2003a,
36777         rather than the (overly optimistic) "previous 3 calendar quarters".
36778
36779         (not_equal_tm, print_tm, check_result): Use "const T" rather than
36780         "T const" to accommodate glibc style.
36781         (check_result): Use less-confusing report format.  "long" -> "long int.
36782         (main): Likewise.
36783         Don't loop if the iteration overflows time_t.
36784         Allow a negative step in the iteration.
36785
36786 2003-07-06  Karl Berry  <karl@gnu.org>
36787
36788         * config/depcomp: update from automake.
36789         * config/config.sub: update from prep.
36790
36791 2003-07-03  Karl Berry  <karl@gnu.org>
36792
36793         * config/config.guess: update from prep.
36794
36795 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36796
36797         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
36798         xreadlink.c now includes it unconditionally.
36799
36800 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36801
36802         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
36803         having it depend on HAVE_SYS_TYPES_H.
36804
36805 2003-07-01  Bruno Haible  <bruno@clisp.org>
36806
36807         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
36808         <sys/types.h> should be sufficient.
36809         Reported by Paul Eggert.
36810
36811 2003-06-26  Karl Berry  <karl@gnu.org>
36812
36813         * config/depcomp: update from automake.
36814
36815 2003-06-26  Bruno Haible  <bruno@clisp.org>
36816
36817         * modules/human: Depend on module stdbool.
36818
36819 2003-06-25  Bruno Haible  <bruno@clisp.org>
36820
36821         * modules/readlink: New file.
36822         * modules/xreadlink: Depend on it.
36823         * MODULES.html.sh (func_all_modules): Add readlink.
36824
36825 2003-06-25  Bruno Haible  <bruno@clisp.org>
36826
36827         * m4/readlink.m4: New file.
36828
36829 2003-06-25  Bruno Haible  <bruno@clisp.org>
36830
36831         * lib/readlink.c: New file.
36832
36833 2003-06-22  Karl Berry  <karl@gnu.org>
36834
36835         * config/srclist.txt: update mkinstalldirs from automake.
36836         * config/mkinstalldirs: update.
36837
36838 2003-06-22  Bruno Haible  <bruno@clisp.org>
36839
36840         Portability to mingw32.
36841         * m4/ssize_t.m4: New file, from GNU gettext.
36842         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36843         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36844
36845 2003-06-22  Bruno Haible  <bruno@clisp.org>
36846
36847         * modules/safe-read: Add m4/ssize_t.m4.
36848         * modules/xreadlink: Add m4/ssize_t.m4.
36849
36850 2003-06-20  Bruno Haible  <bruno@clisp.org>
36851
36852         Assume C89, so PARAMS isn't needed.
36853         * lib/unicodeio.h (PARAMS): Remove.
36854         * lib/unicodeio.c: Don't use PARAMS.
36855
36856 2003-06-18  Karl Berry  <karl@gnu.org>
36857
36858         * config/config.{guess,sub}: update from prep.
36859
36860 2003-06-18  Jim Meyering  <jim@meyering.net>
36861
36862         Merge changes from coreutils.
36863         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
36864         Remove explicit declarations of xmalloc and realloc.
36865         Include xalloc.h.
36866         (read_utmp): Remove anachronistic cast of xmalloc.
36867
36868 2003-06-17  Paul Eggert  <eggert@twinsun.com>
36869
36870         Assume C89, so PARAMS isn't needed.
36871         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
36872         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
36873         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
36874         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
36875         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
36876         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
36877         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
36878         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
36879         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
36880         lib/xstrtod.h, lib/xstrtol.h: Likewise.
36881         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
36882         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
36883         no longer needed. Anyway, config.h should always be included before any
36884         other file.
36885
36886 2003-06-11  Simon Josefsson  <jas@extundo.com>
36887
36888         * modules/sysexits: New file.
36889         * MODULES.html.sh (func_all_modules): Add sysexits.
36890
36891 2003-06-11  Simon Josefsson  <jas@extundo.com>
36892
36893         * lib/sysexit_.h: New file.
36894
36895 2003-06-11  Derek Price  <derek@ximbiot.com>
36896
36897         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
36898         necessary.
36899
36900 2003-06-11  Bruno Haible  <bruno@clisp.org>
36901
36902         * m4/sysexits.m4: New file.
36903
36904 2003-06-10  Simon Josefsson  <jas@extundo.com>
36905
36906         * lib/argp.h: New file, from glibc.
36907         * lib/argp-ba.c: New file, from glibc.
36908         * lib/argp-eexst.c: New file, from glibc.
36909         * lib/argp-fmtstream.c: New file, from glibc.
36910         * lib/argp-fmtstream.h: New file, from glibc.
36911         * lib/argp-fs-xinl.c: New file, from glibc.
36912         * lib/argp-help.c: New file, from glibc.
36913         * lib/argp-namefrob.h: New file, from glibc.
36914         * lib/argp-parse.c: New file, from glibc.
36915         * lib/argp-pv.c: New file, from glibc.
36916         * lib/argp-pvh.c: New file, from glibc.
36917         * lib/argp-xinl.c: New file, from glibc.
36918
36919 2003-06-10  Simon Josefsson  <jas@extundo.com>
36920
36921         * modules/strchrnul: New file.
36922
36923 2003-06-10  Simon Josefsson  <jas@extundo.com>
36924
36925         * modules/argp: New file.
36926
36927 2003-06-10  Simon Josefsson  <jas@extundo.com>
36928
36929         * m4/strchrnul.m4: New file.
36930
36931 2003-06-10  Simon Josefsson  <jas@extundo.com>
36932
36933         * lib/strchrnul.h: New file.
36934         * lib/strchrnul.c: New file.
36935
36936 2003-06-10  Bruno Haible  <bruno@clisp.org>
36937
36938         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
36939
36940 2003-06-07  Karl Berry  <karl@gnu.org>
36941
36942         * config/config.{guess,sub}: update from prep.
36943
36944 2003-06-07  Jim Meyering  <jim@meyering.net>
36945
36946         * modules/strtod: Use $(...) notation, not @...@ for
36947         AC_REPLACE'd variables.
36948         * modules/localcharset: Likewise.
36949
36950 2003-06-07  Jim Meyering  <jim@meyering.net>
36951
36952         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
36953         in place of my name in the copyright comment.
36954         Remove definition and uses of __P.
36955
36956         From coreutils.
36957         * lib/stat.c: Don't declare xmalloc explicitly.
36958         Instead, include "xalloc.h".
36959         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
36960         xrealloc, and xcalloc return values.
36961         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
36962         Improve comment.
36963         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
36964
36965 2003-06-07  Bruno Haible  <bruno@clisp.org>
36966
36967         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
36968         avoid AC_CONFIG_LINKS.
36969         * modules/fnmatch (Makefile.am): Use explicit creation rule for
36970         fnmatch.h, to avoid AC_CONFIG_LINKS.
36971         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
36972
36973 2003-06-07  Bruno Haible  <bruno@clisp.org>
36974
36975         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
36976         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
36977         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36978         directory.
36979         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
36980         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36981         directory.
36982
36983 2003-06-06  Jim Meyering  <jim@meyering.net>
36984
36985         Merge from coreutils.
36986         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
36987         Consolidate declarations and initializations of *_base* locals.
36988
36989         Merge from coreutils.
36990         This avoids a core dump on systems without GNU putenv,
36991         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
36992         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
36993         (unsetenv): New static function, from GNU libc.
36994         (rpl_putenv): Use it.
36995
36996         * lib/modechange.c: Remove trailing blanks.
36997
36998         Merge from coreutils.
36999         * lib/fsusage.c: Remove declaration of statfs.
37000         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
37001
37002         * lib/posixtm.c: Include <stdbool.h> unconditionally.
37003
37004 2003-06-06  Jim Meyering  <jim@meyering.net>
37005
37006         * lib/stdbool_.h: Renamed from stdbool.h.in.
37007
37008 2003-06-06  Jim Meyering  <jim@meyering.net>
37009             Bruno Haible  <bruno@clisp.org>
37010
37011         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
37012         Adjust Makefile.am snippet not to redirect directly to target.
37013         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
37014
37015 2003-06-05  Paul Eggert  <eggert@twinsun.com>
37016
37017         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
37018         mismatch, look in future quarters as well as past.  This fixes a
37019         bug when processing fall-backwards gaps immediately after a long
37020         period of daylight-saving time.
37021
37022         * lib/mktime.c: Assume freestanding C89 or better.
37023         (HAVE_LIMITS_H): Remove.  Assume it's 1.
37024         (__P): Remove; not used.
37025         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
37026         (mktime, not_equal_tm, print_tm, check_result,
37027         main): Use prototypes.  Use const * where appropriate.
37028         (main): Fix typo in testing code that uncovered by above changes.
37029         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
37030
37031 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37032
37033         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
37034         locale.h, localeconv.  This merges changes from coreutils.
37035
37036         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
37037         It can be removed after the next Autoconf is released.
37038         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
37039         needed.
37040
37041 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37042
37043         * lib/mktime.c: Fix Debian bug 177940
37044         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
37045         (localtime_offset): Now long int, not time_t, because we want it
37046         to be guaranteed to be signed.  All uses changed.
37047         (__mktime_internal): If overflow would occur when adding offset,
37048         don't add it.
37049
37050         Merge 'human' changes from coreutils.  Rewrite to support
37051         locale-specific notations like thousands separators.
37052         * lib/human.c: Simplify authorship notice.
37053         Include human.h immediately after config.h.
37054         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
37055         <limits.h>: Do not include, since human.h does.
37056         (SIZE_MAX, UINTMAX_MAX): New macros.
37057         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
37058         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
37059         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
37060         (power_letter): Renamed from suffixes.
37061         (generate_suffix_backwards): Remove.
37062         (adjust_value): Now takes int style (because of human.h changes)
37063         and long double value (for greater precision on some platforms).
37064         (group_number): New function.
37065         (human_readable): Use it.  Use integer options, not enum.
37066         Put the options before the sizes in the arg list.
37067         Support all the new options.
37068         The old human_readable function has been removed;
37069         use inttostr.h instead.
37070         (human_readable, default_block_size, humblock):
37071         Use uintmax_t, not int, for block sizes.
37072         (human_readable_inexact, block_size_types): Remove.
37073         (block_size_opts): New constant.
37074         (human_options): Renamed from human_block_size, with new signature
37075         that allows block sizes up to UINTMAX_MAX.  All callers changed.
37076         * lib/human.h: Add copyright and authorship notice.
37077         Include <limits.h> and <stdbool.h> unconditionally.
37078         (PARAMS): Remove.  All uses removed.
37079         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
37080         (enum human_inexact_style): Remove tag; now a nameless enum.
37081         (human_floor, human_ceiling, human_round_to_even): Now have
37082         values 2, 0, 1 rather than -1, 1, 0.
37083         (human_group_digits, human_suppress_point_zero, human_autoscale,
37084         human_base_1024, human_SI, human_B): New constants.
37085         (human_readable_inexact, human_block_size): Remove.
37086         (human_readable): Size args are now uintmax_t, not int.
37087         (human_options): New decl.
37088
37089         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
37090         unnecessary now that we assume C89 or better.  This change
37091         imported from coreutils.
37092
37093         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37094         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
37095         in the 2003-05-30 sync from glibc.
37096
37097         .h files should stand alone, but we shouldn't include <sys/types.h>
37098         if we can get away with just <stddef.h>.
37099
37100         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
37101         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
37102         rather than <sys/types.h>, as we merely need size_t.
37103         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
37104         to get size_t.
37105         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
37106         Include <stdio.h>, to get FILE.
37107         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
37108         memcasecmp.h has included <stddef.h> and all we need is size_t.
37109         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
37110         our interface, instead of including <sys/types.h>
37111
37112 2003-06-04  Paul Eggert  <eggert@twinsun.com>
37113
37114         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
37115         now, as glibc mktime is buggy on non-glibc systems.
37116
37117 2003-06-03  Karl Berry  <karl@gnu.org>
37118
37119         * config/config.sub: update from prep.
37120
37121 2003-06-02  Paul Eggert  <eggert@twinsun.com>
37122
37123         [from coreutils]
37124         Fix some minor time-related bugs with POSIX time arguments.
37125         Some valid time stamps were being rejected (notably -1, and
37126         time stamps before 1900 on 64-bit hosts).  And some invalid
37127         time stamps were being accepted, e.g. September 31.
37128
37129         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
37130         that we can return (time_t) -1 successfully.
37131         * lib/posixtm.c: Likewise.
37132         [HAVE_STDBOOL_H]: Include <stdbool.h>.
37133         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
37134         (t): Remove static var.
37135         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
37136         of static var.  All uses changed.
37137         (year): Do not reject years before 1900; they can occur with
37138         64-bit time_t.
37139         (posix_time_parse): Do not check for out-of-range components;
37140         that is now the caller's responsibility, since our checks were
37141         only approximations.
37142         (posixtime): Use mktime to check for out-of-range components,
37143         since it knows them exactly.
37144         If mktime returns (time_t) -1, check whether an error actually occurred
37145         by invoking localtime on -1.
37146         (main) [TEST_POSIXTIME]: Check for input data errors, and report
37147         posixtime failures better.
37148         Improve the test data (in comments only).
37149
37150 2003-06-02  Karl Berry  <karl@gnu.org>
37151
37152         * config/mkinstalldirs (version): new variable.
37153         (--version): new option.
37154         (usage): improve message.
37155
37156 2003-05-30  Karl Berry  <karl@gnu.org>
37157
37158         * lib/mktime.c: update from libc.
37159
37160 2003-05-30  Bruno Haible  <bruno@clisp.org>
37161
37162         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
37163         * config/config.rpath: Upgrade to gettext-0.12.1.
37164
37165 2003-05-30  Bruno Haible  <bruno@clisp.org>
37166
37167         * m4/gettext.m4: Upgrade to gettext-0.12.1.
37168         * m4/nls.m4: New file, from gettext-0.12.1.
37169         * m4/po.m4: New file, from gettext-0.12.1.
37170         * m4/progtest.m4: Upgrade to gettext-0.12.1.
37171
37172 2003-05-30  Bruno Haible  <bruno@clisp.org>
37173
37174         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
37175         * lib/localcharset.h: Likewise.
37176         * lib/localcharset.c: Likewise.
37177
37178 2003-05-29  Karl Berry  <karl@gnu.org>
37179
37180         * config/config.rpath: update from gettext.
37181
37182 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37183
37184         Assume the headers required for C89 freestanding compilers.
37185         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
37186         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
37187         * m4/human.m4 (gl_HUMAN): Likewise.
37188         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
37189         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
37190         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37191         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
37192         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37193         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
37194
37195 2003-05-28  Paul Eggert  <eggert@twinsun.com>
37196
37197         Assume the headers required for C89 freestanding compilers.
37198         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
37199         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
37200         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
37201         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
37202         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
37203         define, since <limits.h> is guaranteed to do that.
37204         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
37205         * lib/exclude.c: Include <stdbool.h> unconditionally.
37206         * lib/tempname.c: Include <stddef.h> unconditionally.
37207         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
37208         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
37209         <stddef.h> does that.
37210         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
37211         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
37212         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
37213         needed.
37214         * lib/xstrtol.c: Likewise.
37215         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
37216         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
37217
37218         * lib/addext.c (addext): Use assignment rather than cast, to avoid
37219         warnings on some platforms.
37220
37221         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
37222         arbitrarily.
37223
37224 2003-05-26  Jim Meyering  <jim@meyering.net>
37225
37226         Merge in a change from coreutils:
37227         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
37228         that is guaranteed to be `no'.  Use `no_such_member' to indicate
37229         that condition, rather than `-1' which is slightly misleading.
37230         Change the name of the cache variable to have the gl_ prefix.
37231         Prompted by a patch from Richard Dawe for DJGPP.
37232
37233 2003-05-24  Karl Berry  <karl@gnu.org>
37234
37235         * config/config.guess: update from prep.
37236
37237 2003-05-22  Karl Berry  <karl@gnu.org>
37238
37239         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
37240
37241 2003-05-20  Karl Berry  <karl@gnu.org>
37242
37243         * config/config.guess: update from prep.
37244
37245 2003-05-18  Karl Berry  <karl@gnu.org>
37246
37247         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
37248         might actually be set by the user.
37249
37250         * config/depcomp, install-sh, mdate-sh: update from automake.
37251
37252 2003-05-17  Bruno Haible  <bruno@clisp.org>
37253
37254         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
37255         invalid expansion for AC_EGREP_CPP.
37256         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
37257         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
37258         Suggested by Akim Demaille <akim@epita.fr> in
37259         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
37260
37261 2003-05-12  Jim Meyering  <jim@meyering.net>
37262
37263         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
37264         the space-padded-by-default conversion specifiers, %e, %k, %l.
37265
37266 2003-05-12  Bruno Haible  <bruno@clisp.org>
37267
37268         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
37269         the string is longer than 4 KB.
37270
37271 2003-05-11  Karl Berry  <karl@gnu.org>
37272
37273         * config/config.{guess,sub}: update from prep.
37274
37275 2003-05-09  Bruno Haible  <bruno@clisp.org>
37276
37277         * modules/error: Add m4/strerror_r.m4 to file list.
37278
37279 2003-05-03  Bruno Haible  <bruno@clisp.org>
37280
37281         Upgrade to Unicode-4.0.
37282         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
37283         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
37284         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
37285         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
37286         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
37287         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
37288         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
37289         Change width of U+E0100..U+E01EF from 1 to 0.
37290
37291 2003-04-25  Jim Meyering  <jim@meyering.net>
37292
37293         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
37294         of type size_t, not int.
37295
37296 2003-04-25  Bruno Haible  <bruno@clisp.org>
37297
37298         * lib/copy-file.c: Include <stddef.h>, for size_t.
37299
37300 2003-04-21  Paul Eggert  <eggert@twinsun.com>
37301
37302         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
37303         code which expansion is under static control.  Patch imported from
37304         Akim Demaille's patch to Bison; see
37305         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
37306
37307 2003-04-14  Bruno Haible  <bruno@clisp.org>
37308
37309         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
37310
37311 2003-04-11  Jim Meyering  <jim@meyering.net>
37312
37313         Merge changes from Coreutils.
37314
37315         2003-03-22  Jim Meyering  <jim@meyering.net>
37316
37317         * lib/strftime.c (widen): Cast alloca return value to proper type.
37318
37319         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
37320
37321         From GNU libc.
37322         * lib/strftime.c (my_strftime): Handle very large width
37323         specifications for numeric values correctly.  Improve checks for
37324         overflow.
37325
37326         2003-01-19  Jim Meyering  <jim@meyering.net>
37327
37328         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
37329         definitions.
37330         (nl_get_alt_digit) [! defined my_strftime]: Define.
37331         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
37332         _nl_get_alt_digit and _nl_get_walt_digit.
37333
37334         * lib/strftime.c (my_strftime): Merge in locale-related changes from
37335         libc. These changes have no effect outside of _LIBC.
37336
37337 2003-04-10  Bruno Haible  <bruno@clisp.org>
37338
37339         * modules/findprog: New file.
37340         * MODULES.html.sh (func_all_modules): Add it.
37341
37342 2003-04-10  Bruno Haible  <bruno@clisp.org>
37343
37344         * m4/findprog.m4: New file.
37345         * m4/eaccess.m4: New file.
37346
37347 2003-04-10  Bruno Haible  <bruno@clisp.org>
37348
37349         * lib/findprog.h: New file, from GNU gettext.
37350         * lib/findprog.c: New file, from GNU gettext.
37351
37352 2003-04-05  Jim Meyering  <jim@meyering.net>
37353
37354         Merge changes from Coreutils.
37355
37356         * lib/exclude.h (PARAMS): Remove definition and uses.
37357         * lib/exclude.c: Remove uses of `PARAMS'.
37358
37359         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
37360         Add test-cases for DOS filenames. Declare program_name.
37361         (main): Set up program_name.  Patch by Rich Dawe.
37362
37363         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
37364         error from mntctl.
37365         Use mntctl's return value to drive the entry-processing loop, since
37366         we can't rely on the value of the vmt_length member in the last
37367         entry.  On some systems doing so could result in exhausting
37368         virtual memory.  Based in part on a patch from Mike Jetzer.
37369
37370 2003-04-04  Bruno Haible  <bruno@clisp.org>
37371
37372         * modules/linebreak: New file.
37373         * MODULES.html.sh (func_all_modules): Add it.
37374
37375 2003-04-04  Bruno Haible  <bruno@clisp.org>
37376
37377         * m4/linebreak.m4: New file.
37378
37379 2003-04-04  Bruno Haible  <bruno@clisp.org>
37380
37381         * lib/linebreak.h: New file, from GNU gettext.
37382         * lib/linebreak.c: New file, from GNU gettext with slight
37383         modifications.
37384         * lib/lbrkprop.h: New file, from GNU gettext.
37385
37386 2003-04-03  Bruno Haible  <bruno@clisp.org>
37387
37388         * modules/utf8-ucs4: New file.
37389         * modules/utf16-ucs4: New file.
37390         * modules/ucs4-utf8: New file.
37391         * modules/ucs4-utf16: New file.
37392         * MODULES.html.sh (func_all_modules): Add them.
37393
37394 2003-04-03  Bruno Haible  <bruno@clisp.org>
37395
37396         * m4/utf-ucs4.m4: New file.
37397         * m4/ucs4-utf.m4: New file.
37398
37399 2003-04-03  Bruno Haible  <bruno@clisp.org>
37400
37401         * lib/utf8-ucs4.h: New file, from GNU gettext.
37402         * lib/utf16-ucs4.h: New file, from GNU gettext.
37403         * lib/ucs4-utf8.h: New file, from GNU gettext.
37404         * lib/ucs4-utf16.h: New file, from GNU gettext.
37405
37406 2003-04-02  Bruno Haible  <bruno@clisp.org>
37407
37408         * modules/binary-io: New file.
37409         * MODULES.html.sh (func_all_modules): Add it.
37410
37411 2003-04-02  Bruno Haible  <bruno@clisp.org>
37412
37413         * lib/binary-io.h: New file, from GNU gettext.
37414
37415 2003-04-01  Bruno Haible  <bruno@clisp.org>
37416
37417         * modules/pathname: New file.
37418         * MODULES.html.sh (func_all_modules): Add it.
37419
37420 2003-04-01  Bruno Haible  <bruno@clisp.org>
37421
37422         * lib/pathname.h: New file, from GNU gettext.
37423         * lib/concatpath.c: New file, from GNU gettext.
37424
37425 2003-03-30  Bruno Haible  <bruno@clisp.org>
37426
37427         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37428
37429 2003-03-30  Bruno Haible  <bruno@clisp.org>
37430
37431         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37432         function chown() doesn't exist.
37433
37434 2003-03-28  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/copy-file: New file.
37437         * MODULES.html.sh (func_all_modules): Add it.
37438
37439 2003-03-28  Bruno Haible  <bruno@clisp.org>
37440
37441         * m4/copy-file.m4: New file.
37442
37443 2003-03-28  Bruno Haible  <bruno@clisp.org>
37444
37445         * lib/copy-file.h: New file, from GNU gettext.
37446         * lib/copy-file.c: New file, from GNU gettext.
37447
37448 2003-03-18  Jim Meyering  <jim@meyering.net>
37449
37450         * lib/quote.c (quote_n): Fix typo in comment.
37451
37452 2003-03-18  Bruno Haible  <bruno@clisp.org>
37453
37454         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37455         checking.
37456         * m4/onceonly_2_57.m4: Likewise.
37457
37458 2003-03-17  Bruno Haible  <bruno@clisp.org>
37459
37460         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37461         (m4_quote): Remove macro.
37462         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37463
37464 2003-03-14  Jim Meyering  <jim@meyering.net>
37465
37466         Merge changes from Coreutils.
37467         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37468         to be const, in order to avoid warnings.
37469         (obstack_room): Likewise.
37470         (obstack_empty_p): Likewise.
37471
37472 2003-03-14  Bruno Haible  <bruno@clisp.org>
37473
37474         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37475         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37476
37477 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37478
37479         Merge changes from Bison.
37480         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37481         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37482         when compiling Bison 1.875's `bitset bset = obstack_alloc
37483         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37484         * lib/hash.c: Include <stdbool.h> unconditionally.
37485
37486 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37487
37488         * m4/onceonly.m4 (m4_quote): New macro.
37489         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37490         Quote AC_FOREACH variable-expansions properly.
37491
37492 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37493
37494         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37495
37496 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37497
37498         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37499         Reported by Bruce Becker; see:
37500         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37501
37502 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37503             Bruno Haible  <bruno@clisp.org>
37504
37505         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37506         Reported by John Hughes, see
37507         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37508
37509 2003-02-20  Bruno Haible  <bruno@clisp.org>
37510
37511         * MODULES.html.sh (func_all_modules): Add poll.
37512
37513 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37514
37515         * modules/poll: New file.
37516
37517 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37518
37519         * lib/poll_.h: New file.
37520         * lib/poll.c: New file.
37521
37522 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37523
37524         * m4/poll.m4: New file.
37525
37526 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37527
37528         * modules/mathl: New file.
37529
37530 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37531
37532         * lib/mathl.h: New file.
37533         * lib/acosl.c: New file.
37534         * lib/asinl.c: New file.
37535         * lib/atanl.c: New file.
37536         * lib/ceill.c: New file.
37537         * lib/cosl.c: New file.
37538         * lib/expl.c: New file.
37539         * lib/floorl.c: New file.
37540         * lib/frexpl.c: New file.
37541         * lib/ldexpl.c: New file.
37542         * lib/logl.c: New file.
37543         * lib/sincosl.c: New file.
37544         * lib/sinl.c: New file.
37545         * lib/sqrtl.c: New file.
37546         * lib/tanl.c: New file.
37547         * lib/trigl.c: New file.
37548         * lib/trigl.h: New file.
37549
37550 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37551
37552         * m4/mathl.m4: New file.
37553
37554 2003-02-18  Bruno Haible  <bruno@clisp.org>
37555
37556         * MODULES.html.sh (func_all_modules): Add mathl.
37557
37558 2003-02-17  Bruno Haible  <bruno@clisp.org>
37559
37560         * modules/mkdtemp: New module.
37561         * MODULES.html.sh (func_all_modules): Add it.
37562
37563 2003-02-17  Bruno Haible  <bruno@clisp.org>
37564
37565         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
37566
37567 2003-02-17  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/mkdtemp.h: New file, from GNU gettext.
37570         * lib/mkdtemp.c: New file, from GNU gettext.
37571
37572 2003-02-02  Jim Meyering  <jim@meyering.net>
37573
37574         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
37575         e.g. glibc-2.2.93.
37576
37577 2003-01-31  Bruno Haible  <bruno@clisp.org>
37578
37579         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
37580         'rpl_rename'.
37581         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
37582         'rpl_strnlen'.
37583         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
37584         'rpl_strtod'.
37585         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
37586         'rpl_utime'.
37587
37588 2003-01-31  Bruno Haible  <bruno@clisp.org>
37589
37590         * lib/rename.c: #undef rename before defining rpl_rename.
37591         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
37592
37593 2003-01-30  Bruno Haible  <bruno@clisp.org>
37594
37595         * modules/vasnprintf, modules/vasprintf: New modules.
37596         * MODULES.html.sh (func_all_modules): Add them.
37597
37598 2003-01-30  Bruno Haible  <bruno@clisp.org>
37599
37600         * m4/signed.m4: New file, from GNU gettext.
37601         * m4/longdouble.m4: New file, from GNU gettext.
37602         * m4/wchar_t.m4: New file, from GNU gettext.
37603         * m4/wint_t.m4: New file, from GNU gettext.
37604         * m4/vasnprintf.m4: New file.
37605         * m4/vasprintf.m4: New file.
37606
37607 2003-01-30  Bruno Haible  <bruno@clisp.org>
37608
37609         * lib/printf-args.h: New file, from GNU gettext.
37610         * lib/printf-args.c: New file, from GNU gettext.
37611         * lib/printf-parse.h: New file, from GNU gettext.
37612         * lib/printf-parse.c: New file, from GNU gettext.
37613         * lib/vasnprintf.h: New file, from GNU gettext.
37614         * lib/vasnprintf.c: New file, from GNU gettext.
37615         * lib/asnprintf.c: New file, from GNU gettext.
37616         * lib/vasprintf.h: New file, from GNU gettext with modifications.
37617         * lib/vasprintf.c: New file, from GNU gettext.
37618         * lib/asprintf.c: New file, from GNU gettext.
37619
37620 2003-01-29  Bruno Haible  <bruno@clisp.org>
37621
37622         * modules/stpncpy: New module.
37623         * MODULES.html.sh (func_all_modules): Add it.
37624
37625 2003-01-29  Bruno Haible  <bruno@clisp.org>
37626
37627         * m4/stpncpy.m4: New file.
37628
37629 2003-01-29  Bruno Haible  <bruno@clisp.org>
37630
37631         * lib/stpncpy.h: New file, from GNU gettext with modifications.
37632         * lib/stpncpy.c: New file, from GNU gettext with modifications.
37633
37634 2003-01-28  Bruno Haible  <bruno@clisp.org>
37635
37636         * modules/c-ctype: New module.
37637         * MODULES.html.sh (func_all_modules): Add it.
37638
37639 2003-01-28  Bruno Haible  <bruno@clisp.org>
37640
37641         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
37642         Paul Eggert.
37643         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
37644         Paul Eggert.
37645
37646 2003-01-27  Bruno Haible  <bruno@clisp.org>
37647
37648         * modules/xsetenv: New module.
37649         * MODULES.html.sh (func_all_modules): Add it.
37650
37651 2003-01-27  Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/xsetenv.h: New file, from GNU gettext.
37654         * lib/xsetenv.c: New file, from GNU gettext.
37655
37656 2003-01-23  Jim Meyering  <jim@meyering.net>
37657
37658         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
37659         from working on systems without dirfd (at least Irix and OSF1/Tru64).
37660
37661 2003-01-23  Bruno Haible  <bruno@clisp.org>
37662
37663         * modules/minmax: New module.
37664         * MODULES.html.sh (func_all_modules): Add it.
37665
37666 2003-01-23  Bruno Haible  <bruno@clisp.org>
37667
37668         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
37669         Eggert.
37670
37671 2003-01-22  Bruno Haible  <bruno@clisp.org>
37672
37673         * modules/exit: New module.
37674         * MODULES.html.sh (func_all_modules): Add it.
37675
37676 2003-01-22  Bruno Haible  <bruno@clisp.org>
37677
37678         * lib/exit.h: New file, from GNU gettext.
37679
37680 2003-01-19  Bruno Haible  <bruno@clisp.org>
37681
37682         * gnulib-tool: Recognize option --extract-maintainer.
37683         (func_get_maintainer): New function.
37684         * modules/*: Add Maintainer entry.
37685
37686 2003-01-16  Jim Meyering  <jim@meyering.net>
37687
37688         * m4/regex.m4: The `regex' struct is both input and output.
37689         Initialize it before each use.  Patch by Tim Waugh.
37690
37691 2003-01-16  Bruno Haible  <bruno@clisp.org>
37692
37693         * MODULES.html.sh: Add a table of contents. Add the module name as
37694         leftmost column. Add hyperlinks.
37695
37696 2003-01-15  Bruno Haible  <bruno@clisp.org>
37697
37698         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
37699
37700 2003-01-15  Bruno Haible  <bruno@clisp.org>
37701
37702         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
37703         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
37704         suffix.
37705
37706 2003-01-15  Bruno Haible  <bruno@clisp.org>
37707
37708         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
37709
37710 2003-01-15  Bruno Haible  <bruno@clisp.org>
37711
37712         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
37713         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
37714
37715 2003-01-14  Jim Meyering  <jim@meyering.net>
37716
37717         * lib/same.c (same_name): Tweak a comment.
37718
37719 2003-01-14  Bruno Haible  <bruno@clisp.org>
37720
37721         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
37722         when a string comparison is sufficient.
37723
37724 2003-01-14  Bruno Haible  <bruno@clisp.org>
37725
37726         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
37727         'unsigned int'.
37728
37729 2003-01-14  Bruno Haible  <bruno@clisp.org>
37730
37731         * lib/hash-pjw.c: Add comment about low quality of this function.
37732
37733 2003-01-13  Bruno Haible  <bruno@clisp.org>
37734
37735         * modules/stpcpy: Distribute lib/stpcpy.h.
37736         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
37737
37738 2003-01-13  Bruno Haible  <bruno@clisp.org>
37739
37740         * modules/*: Add a description.
37741         * modules/strpbrk: Fix Makefile.am snippet.
37742         * modules/strtoimax: Fix dependencies.
37743         * modules/strtoumax: Likewise.
37744
37745 2003-01-13  Bruno Haible  <bruno@clisp.org>
37746
37747         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
37748         * modules/alloca (Makefile.am): All object files depend on alloca.h.
37749         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
37750
37751 2003-01-13  Bruno Haible  <bruno@clisp.org>
37752
37753         * gnulib-tool (func_create_testdir): Store config/* files in the main
37754         directory.
37755         * config.rpath: Move to ...
37756         * config/config.rpath: ... here.
37757         * modules/gettext: Contains config/config.rpath, not config.rpath.
37758         * modules/iconv: Likewise.
37759
37760 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37761
37762         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37763         to avoid collisions with libcurses and libreadline.
37764
37765         * m4/getstr.m4: Remove.
37766         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
37767
37768 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37769
37770         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37771         to avoid collisions with libcurses and libreadline.
37772
37773         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
37774         * lib/getstr.h, getstr.c: Remove.
37775         * lib/getline.c: Include "getline.h", to check interface.
37776         Move body of old getstr.c here: this defines MIN_CHUNK and
37777         declares getdelim2, which is renamed from getstr.
37778         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
37779
37780         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
37781         All uses changed.
37782         * lib/linebuffer.h: Likewise.
37783         (readline): Remove backward-compatibility macro.
37784
37785 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37786
37787         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37788         to avoid collisions with libcurses and libreadline.
37789         * getstr: Remove.
37790         * MODULES.html.sh: Remove getstr.
37791         * modules/getline: Depend on unlocked-io, not getstr.
37792
37793 2003-01-12  Jim Meyering  <jim@meyering.net>
37794
37795         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
37796
37797 2003-01-10  Bruno Haible  <bruno@clisp.org>
37798
37799         * modules/alloca: Change Makefile.am requirements. Simplify Include
37800         requirements. Add lib/alloca_.h to file list.
37801
37802 2003-01-10  Bruno Haible  <bruno@clisp.org>
37803
37804         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
37805
37806 2003-01-10  Bruno Haible  <bruno@clisp.org>
37807
37808         * lib/alloca_.h: New file.
37809         * lib/getdate.y: Unconditionally include alloca.h.
37810         * lib/makepath.c: Likewise.
37811         * lib/setenv.c: Likewise.
37812         * lib/userspec.c: Likewise.
37813
37814 2003-01-09  Karl Berry  <karl@gnu.org>
37815
37816         * MODULES.html.sh: include `dirname $0` in PATH, to find
37817         gnulib-tool.
37818
37819 2003-01-09  Bruno Haible  <bruno@clisp.org>
37820
37821         * modules/stdbool: Change configure.ac, Makefile.am requirements.
37822         Simplify Include requirements. Add lib/stdbool.h.in to file list.
37823
37824 2003-01-09  Bruno Haible  <bruno@clisp.org>
37825
37826         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
37827
37828 2003-01-09  Bruno Haible  <bruno@clisp.org>
37829
37830         * lib/stdbool.h.in: New file.
37831
37832 2003-01-09  Bruno Haible  <bruno@clisp.org>
37833
37834         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37835         * MODULES.html.sh: Likewise.
37836
37837 2003-01-08  Jim Meyering  <jim@meyering.net>
37838
37839         * lib/full-write.c: Undefine and define-away `const' after inclusion
37840         of errno.h, not before.  Suggestion from Bruno Haible.
37841
37842 2003-01-08  Bruno Haible  <bruno@clisp.org>
37843
37844         * modules/full-read: Depend on full-write.
37845
37846 2003-01-08  Bruno Haible  <bruno@clisp.org>
37847
37848         * lib/safe-read.c: Include specification header first, to ensure its
37849         selfcontainedness.
37850         * lib/full-write.c: Likewise.
37851
37852 2003-01-07  Jim Meyering  <jim@meyering.net>
37853
37854         * lib/full-write.c: Rework so that it may serve to define full_read,
37855         too.
37856         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
37857
37858 2003-01-07  Bruno Haible  <bruno@clisp.org>
37859
37860         * lib/strtoimax.c: Include <stdint.h> as an alternative to
37861         <inttypes.h>.
37862         * lib/xstrtol.h: Likewise.
37863         * lib/xstrtoimax.c: Likewise.
37864         * lib/xstrtoumax.c: Likewise.
37865         * lib/human.h: Likewise.
37866
37867         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
37868         on systems that have <inttypes.h> but not <stdint.h>.
37869
37870 2003-01-07  Bruno Haible  <bruno@clisp.org>
37871
37872         * MODULES.html.sh: Add copyright notice.
37873         (missed_files): Omit CVS directory entries.
37874         (func_module): Make it work with sed-3.02.
37875         * MODULES.txt: Remove file.
37876
37877 2003-01-06  Jim Meyering  <jim@meyering.net>
37878
37879         * lib/version-etc.c: Update year in translatable copyright string.
37880
37881 2003-01-03  Karl Berry  <karl@gnu.org>
37882
37883         * config/config.{guess,sub}: update from prep.
37884
37885 2003-01-02  Karl Berry  <karl@gnu.org>
37886
37887         * doc/COPYING.DOC: belatedly updated to 1.2.
37888
37889 2003-01-01  Karl Berry  <karl@gnu.org>
37890
37891         * gnulib-tool (func_verify_module): report module name $module in
37892         error message, not $1.
37893         * gnulib-tool (create-testdir): don't complain if destdir couldn't
37894         be created, only if it doesn't exist.
37895         * gnulib-tool (last_checkin_date): don't expand the $Date here.
37896
37897 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37898
37899         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
37900
37901 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37902
37903         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
37904         memcmp if strcoll doesn't work.
37905
37906 2002-12-31  Bruno Haible  <bruno@clisp.org>
37907
37908         * lib/utime.c (utime_null): No need to call ftruncate if the file was
37909         nonempty.
37910
37911 2002-12-31  Bruno Haible  <bruno@clisp.org>
37912
37913         * lib/memcoll.c (STRCOLL): New macro.
37914         (memcoll): Use it.
37915
37916 2002-12-31  Bruno Haible  <bruno@clisp.org>
37917
37918         * lib/localcharset.h: New file.
37919         * lib/localcharset.c: Include it.
37920         * lib/unicodeio.c: Likewise.
37921
37922 2002-12-31  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
37925         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
37926
37927 2002-12-31  Bruno Haible  <bruno@clisp.org>
37928
37929         * lib/getline.h: Include <stddef.h>, for size_t.
37930
37931         * lib/unicodeio.h: Include <stddef.h>, for size_t.
37932         * lib/unicodeio.c: Don't include <stddef.h>.
37933
37934 2002-12-31  Bruno Haible  <bruno@clisp.org>
37935
37936         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
37937         HAVE_TM_ZONE.
37938
37939 2002-12-24  Karl Berry  <karl@gnu.org>
37940
37941         * config/config.guess: update from prep.
37942
37943 2002-12-24  Bruno Haible  <bruno@clisp.org>
37944
37945         General infrasructure.
37946         * m4/README: Rewritten.
37947         * m4/onceonly.m4: New file.
37948         * m4/onceonly_2_57.m4: New file.
37949
37950         Module atexit.
37951         * m4/atexit.m4: New file.
37952
37953         Module strtod.
37954         * m4/strtod.m4: New file.
37955
37956         Module strtol.
37957         * m4/strtol.m4: New file.
37958
37959         Module strtoul.
37960         * m4/strtoul.m4: New file.
37961
37962         Module memchr.
37963         * m4/memchr.m4: New file.
37964
37965         Module memcmp.
37966         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
37967         (jm_FUNC_MEMCMP): Invoke it.
37968
37969         Module memcpy.
37970         * m4/memcpy.m4: New file.
37971
37972         Module memmove.
37973         * m4/memmove.m4: New file.
37974
37975         Module memset.
37976         * m4/memset.m4: New file.
37977
37978         Module strcspn.
37979         * m4/strcspn.m4: New file.
37980
37981         Module strpbrk.
37982         * m4/strpbrk.m4: New file.
37983
37984         Module strstr.
37985         * m4/strstr.m4: New file.
37986
37987         Module strerror.
37988         * m4/strerror.m4: New file.
37989
37990         Module mktime.
37991         * m4/mktime.m4: Renamed from jm-mktime.m4.
37992         (gl_PREREQ_MKTIME): New macro.
37993         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
37994
37995         Module malloc.
37996         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
37997         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
37998         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
37999
38000         Module realloc.
38001         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
38002         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
38003         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
38004
38005         Module strftime.
38006         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
38007         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
38008         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
38009         gl_TM_GMTOFF.
38010         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
38011
38012         Module xalloc.
38013         * m4/xalloc.m4: New file.
38014
38015         Module alloca.
38016         * m4/alloca.m4: New file.
38017
38018         Module putenv.
38019         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
38020         (jm_FUNC_PUTENV): Invoke it.
38021
38022         Module setenv.
38023         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
38024         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
38025         when invoked twice.
38026         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
38027         gt_FUNC_SETENV.
38028
38029         Module memrchr.
38030         * m4/memrchr.m4: New file.
38031
38032         Module stpcpy.
38033         * m4/stpcpy.m4: New file.
38034
38035         Module strcase.
38036         * m4/strcase.m4: New file.
38037
38038         Module strdup.
38039         * m4/strdup.m4: New file.
38040
38041         Module strnlen.
38042         * m4/strnlen.m4: New file.
38043
38044         Module strndup.
38045         * m4/strndup.m4: New file.
38046
38047         Module xstrtod.
38048         * m4/xstrtod.m4: New file.
38049
38050         Module xstrtol.
38051         * m4/xstrtol.m4: New file.
38052
38053         Module getdate.
38054         * m4/getdate.m4: New file.
38055
38056         Module unlocked-io.
38057         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
38058         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
38059         * m4/jm-glibc-io.m4n: Remove file.
38060
38061         Module long-options.
38062         * m4/long-options.m4: New file.
38063
38064         Module md5.
38065         * m4/md5.m4: New file.
38066
38067         Module sha.
38068         * m4/sha.m4: New file.
38069
38070         Module getstr.
38071         * m4/getstr.m4: New file.
38072
38073         Module getline.
38074         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
38075         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
38076         <sys/types.h>, for size_t. Use the function name gnu_getline, not
38077         simply getline. Infoke gl_PREREQ_GETLINE.
38078
38079         Module obstack.
38080         * m4/obstack.m4: New file.
38081
38082         Module hash.
38083         * m4/hash.m4: New file.
38084
38085         Module readtokens.
38086         * m4/readtokens.m4: New file.
38087
38088         Module strverscmp.
38089         * m4/strverscmp.m4: New file.
38090
38091         Module stdbool.
38092         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
38093         OSF/1.
38094
38095         Module strtoll.
38096         * m4/strtoll.m4: New file.
38097
38098         Module strtoull.
38099         * m4/strtoull.m4: New file.
38100
38101         Module strtoimax.
38102         * m4/strtoimax.m4: New file.
38103
38104         Module strtoumax.
38105         * m4/strtoumax.m4: New file.
38106
38107         Module xstrtoimax.
38108         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
38109         jm_AC_PREREQ_XSTRTOIMAX.
38110         Moved the strtol prerequisites to strtol.m4.
38111         Moved the strtoll prerequisites to strtoll.m4.
38112         Moved the strtoimax prerequisites to strtoimax.m4.
38113
38114         Module xstrtoumax.
38115         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
38116         jm_AC_PREREQ_XSTRTOUMAX.
38117         Moved the strtoul prerequisites to strtoul.m4.
38118         Moved the strtoull prerequisites to strtoull.m4.
38119         Moved the strtoumax prerequisites to strtoumax.m4.
38120
38121         Module chown.
38122         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
38123         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
38124
38125         Module dup2.
38126         * m4/dup2.m4: New file.
38127
38128         Module ftruncate.
38129         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
38130         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
38131
38132         Module getgroups.
38133         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
38134         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
38135
38136         Module gettimeofday.
38137         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
38138         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
38139         gl_PREREQ_GETTIMEOFDAY.
38140
38141         Module mkdir.
38142         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
38143         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
38144
38145         Module mkstemp.
38146         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
38147         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
38148         jm_AC_TYPE_UINTMAX_T.
38149         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
38150
38151         Module stat.
38152         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
38153         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
38154
38155         Module lstat.
38156         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
38157         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
38158
38159         Module timespec.
38160         * m4/timespec.m4 (gl_TIMESPEC): New macro.
38161         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
38162         * m4/st_mtim.m4: Indentation.
38163
38164         Module nanosleep.
38165         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
38166         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
38167         gl_PREREQ_NANOSLEEP.
38168
38169         Module regex.
38170         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
38171         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
38172         (gl_REGEX): New macro.
38173
38174         Module rename.
38175         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
38176         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
38177
38178         Module rmdir.
38179         * m4/rmdir.m4: New file.
38180
38181         Module utime.
38182         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
38183         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
38184         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
38185
38186         Module dirname.
38187         * m4/dirname.m4: New file.
38188
38189         Module getopt.
38190         * m4/getopt.m4: New file.
38191
38192         Module unistd-safer.
38193         * m4/unistd-safer.m4: New file.
38194
38195         Module fnmatch.
38196         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
38197         declaration.
38198         (gl_PREREQ_FNMATCH_EXTRA): New macro.
38199         (gl_FUNC_FNMATCH_POSIX): New macro.
38200         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
38201         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
38202         simply fnmatch.
38203
38204         Module exclude.
38205         * m4/exclude.m4: New file.
38206
38207         Module human.
38208         * m4/human.m4: New file.
38209
38210         Module acl.
38211         * m4/acl.m4: Nop.
38212
38213         Module backupfile.
38214         * m4/backupfile.m4: New file.
38215         * m4/d-ino.m4: Indentation.
38216
38217         Module fsusage.
38218         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
38219         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
38220         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
38221
38222         Module dirfd.
38223         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
38224         requirements.
38225
38226         Module euidaccess.
38227         * m4/euidaccess.m4: New file.
38228
38229         Module file-type.
38230         * m4/file-type.m4: New file.
38231
38232         Module fileblocks.
38233         * m4/fileblocks.m4: New file.
38234
38235         Module filemode.
38236         * m4/filemode.m4: New file.
38237
38238         Module isdir.
38239         * m4/isdir.m4: New file.
38240
38241         Module lchown.
38242         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
38243         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
38244
38245         Module makepath.
38246         * m4/makepath.m4: New file.
38247
38248         Module modechange.
38249         * m4/modechange.m4: New file.
38250
38251         Module mountlist.
38252         * m4/mountlist.m4: New file.
38253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
38254         Indentation.
38255
38256         Module path-concat.
38257         * m4/path-concat.m4: New file.
38258
38259         Module pathmax.
38260         * m4/pathmax.m4: New file.
38261
38262         Module same.
38263         * m4/same.m4: New file.
38264
38265         Module save-cwd.
38266         * m4/save-cwd.m4: New file.
38267
38268         Module savedir.
38269         * m4/savedir.m4: New file.
38270
38271         Module xgetcwd.
38272         * m4/xgetcwd.m4: New file.
38273         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
38274
38275         Module xreadlink.
38276         * m4/xreadlink.m4: New file.
38277
38278         Module safe-read.
38279         * m4/safe-read.m4: New file.
38280
38281         Module safe-write.
38282         * m4/safe-write.m4: New file.
38283
38284         Module closeout.
38285         * m4/closeout.m4: New file.
38286
38287         Module stdio-safer.
38288         * m4/stdio-safer.m4: New file.
38289
38290         Module getpass.
38291         * m4/getpass.m4: New file.
38292
38293         Module getugroups.
38294         * m4/getugroups.m4: New file.
38295
38296         Module group-member.
38297         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
38298         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
38299
38300         Module idcache.
38301         * m4/idcache.m4: New file.
38302
38303         Module userspec.
38304         * m4/userspec.m4: New file.
38305
38306         Module gettime.
38307         * m4/clock_time.m4: New file.
38308         * m4/gettime.m4: New file.
38309
38310         Module settime.
38311         * m4/settime.m4: New file.
38312
38313         Module posixtm.
38314         * m4/posixtm.m4: New file.
38315
38316         Module gethostname.
38317         * m4/gethostname.m4: New file.
38318
38319         Module canon-host.
38320         * m4/canon-host.m4: New file.
38321
38322         Module gettext.
38323         * m4/codeset.m4: New file, from gettext-0.11.5.
38324         * m4/gettext.m4: New file, from gettext-0.11.5.
38325         * m4/glibc21.m4: New file, from gettext-0.11.5.
38326         * m4/iconv.m4: New file, from gettext-0.11.5.
38327         * m4/intdiv0.m4: New file, from gettext-0.11.5.
38328         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
38329         * m4/inttypes.m4: New file, from gettext-0.11.5.
38330         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
38331         * m4/isc-posix.m4: New file, from gettext-0.11.5.
38332         * m4/lcmessage.m4: New file, from gettext-0.11.5.
38333         * m4/lib-ld.m4: New file, from gettext-0.11.5.
38334         * m4/lib-link.m4: New file, from gettext-0.11.5.
38335         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
38336         * m4/progtest.m4: New file, from gettext-0.11.5.
38337         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
38338         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
38339         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
38340
38341         Module localcharset.
38342         * m4/localcharset.m4: New file.
38343
38344         Module hard-locale.
38345         * m4/hard-locale.m4: New file.
38346
38347         Module mbswidth.
38348         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
38349         onceonly macros.
38350         * m4/mbrtowc.m4: Add comment.
38351
38352         Module memcasecmp.
38353         * m4/memcasecmp.m4: New file.
38354
38355         Module memcoll.
38356         * m4/memcoll.m4: New file.
38357
38358         Module unicodeio.
38359         * m4/unicodeio.m4: New file.
38360
38361         Module rpmatch.
38362         * m4/rpmatch.m4: New file.
38363
38364         Module yesno.
38365         * m4/yesno.m4: New file.
38366
38367         Module exitfail.
38368         * m4/exitfail.m4: New file.
38369
38370         Module c-stack.
38371         * m4/c-stack.m4 (gl_C_STACK): New macro.
38372         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
38373
38374         Module error.
38375         * m4/error.m4 (gl_ERROR): New macro.
38376         (jm_PREREQ_ERROR): Use onceonly macros.
38377
38378         Module fatal.
38379         * m4/fatal.m4: New file.
38380
38381         Module getloadavg.
38382         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
38383         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
38384
38385         Module getpagesize.
38386         * m4/getpagesize.m4: New file.
38387
38388         Module getusershell.
38389         * m4/getusershell.m4: New file.
38390
38391         Module physmem.
38392         * m4/physmem.m4: New file.
38393
38394         Module posixver.
38395         * m4/posixver.m4: New file.
38396
38397         Module quotearg.
38398         * m4/quotearg.m4: New file.
38399
38400         Module quote.
38401         * m4/quote.m4: New file.
38402
38403         Module readutmp.
38404         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
38405
38406         Module sig2str.
38407         * m4/sig2str.m4: New file.
38408
38409         Other.
38410         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
38411         ulonglong.m4.
38412         * m4/intmax_t.m4: New file.
38413         * m4/d-type.m4: Indentation.
38414         * m4/jm-macros.m4: Update.
38415         * m4/prereq.m4 (jm_PREREQ): Update.
38416         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
38417         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
38418         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
38419         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38420         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38421         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38422         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38423         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38424         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38425         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38426         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38427         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38428         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38429         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38430         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38431         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38432         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38433         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38434         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38435
38436 2002-12-24  Bruno Haible  <bruno@clisp.org>
38437
38438         * MODULES.txt: Update according to m4/ changes.
38439
38440         Module gettext.
38441         * config.rpath: New file, from gettext-0.11.5.
38442
38443         * modules/*: New module descriptions.
38444         * gnulib-tool: New file.
38445         * MODULES.html.sh: New file.
38446
38447 2002-12-21  Karl Berry  <karl@gnu.org>
38448
38449         * doc/fdl.texi: update to version 1.2.
38450
38451 2002-12-19  Karl Berry  <karl@gnu.org>
38452
38453         * config/config.guess: update from prep.
38454
38455 2002-12-18  Bruno Haible  <bruno@clisp.org>
38456
38457         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38458         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38459
38460 2002-12-17  Bruno Haible  <bruno@clisp.org>
38461
38462         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38463         stdlib.h, string.h.
38464
38465 2002-12-17  Bruno Haible  <bruno@clisp.org>
38466
38467         * lib/canon-host.c (strdup): Remove unused declaration.
38468
38469         * lib/fsusage.c: Include full_read.h.
38470         (get_fs_usage): Use full_read instead of safe_read.
38471
38472         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38473
38474 2002-12-12  Karl Berry  <karl@gnu.org>
38475
38476         * config/config.guess: update from prep.
38477
38478 2002-12-11  Bruno Haible  <bruno@clisp.org>
38479
38480         * m4/setenv.m4: New file, from gettext-0.11.5.
38481
38482 2002-12-11  Bruno Haible  <bruno@clisp.org>
38483
38484         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38485         not unsetenv().
38486         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38487         modifications:
38488
38489         2002-12-11  Bruno Haible  <bruno@clisp.org>
38490
38491                 * setenv.c (alloca): Fall back to malloc.
38492                 (freea): New macro.
38493                 (setenv): Use freea() to free memory allocated with alloca().
38494
38495         2002-11-13  Bruno Haible  <bruno@clisp.org>
38496
38497                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38498                 function declarations.
38499                 * unsetenv.c (unsetenv): Likewise.
38500
38501         2002-03-04  Bruno Haible  <bruno@clisp.org>
38502
38503                 Portability to AIX 4.3.3.
38504                 * unsetenv.c: New file, extracted from setenv.c.
38505                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38506
38507         2001-12-20  Bruno Haible  <bruno@clisp.org>
38508
38509                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38510                 use malloc instead. For SunOS 4.
38511
38512         2001-12-11  Bruno Haible  <bruno@clisp.org>
38513
38514                 * setenv.c: Declare alloca.
38515                 (compar_fn_t): New typedef.
38516                 (KNOWN_VALUE, STORE_VALUE): Use it.
38517
38518         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38519         setenv.h.
38520
38521 2002-12-10  Paul Eggert  <eggert@twinsun.com>
38522
38523         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
38524         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
38525         Choose values that are less likely to collide with system fnmatch
38526         options.
38527         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
38528         defined (e.g., a pure POSIX system).
38529         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
38530         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
38531
38532 2002-12-06  Paul Eggert  <eggert@twinsun.com>
38533
38534         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
38535         a pain in practice to deal with generated m4 files.  This change
38536         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
38537
38538         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38539         and jm-glibc-io.m4, as they are no longer a special case.
38540         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38541         kludge and the auto-generation stuff.  Check only whether the
38542         functions are declared, not whether they exist, since older hosts
38543         that don't declare the functions can't use the optimization anyway.
38544
38545 2002-12-06  Jim Meyering  <jim@meyering.net>
38546
38547         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38548
38549         Merge in changes from libc's misc/error.c, in preparation
38550         for the merge of gnulib's changes back into libc.
38551
38552         * lib/error.c (_): Define only if not already defined.
38553         Move definition to follow all #include directives.
38554         Include unlocked-io.h only if !_LIBC.
38555         [_LIBC]: Include <libio/libioP.h>.
38556         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38557         (fflush): Tweak definition to use INTUSE.
38558         (putc): Define.
38559
38560 2002-12-05  Paul Eggert  <eggert@twinsun.com>
38561
38562         * lib/alloca.c [defined emacs]: Include "lisp.h".
38563         (xalloc_die) [defined emacs]: New macro.
38564         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
38565         [! defined emacs]: Include <xalloc.h>.
38566         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
38567         (pointer): Typedef to POINTER_TYPE *.
38568         (malloc): Remove decl; we now always use xmalloc.
38569         (alloca): Use old-style definition, since Emacs needs this.
38570         Check for arithmetic overflow when computing combined size.
38571
38572 2002-12-04  Paul Eggert  <eggert@twinsun.com>
38573
38574         Do not generate unlocked-io.h automatically, since it's easier to
38575         maintain it by hand.
38576
38577         * lib/unlocked-io.h: New file, from GNU diffutils,
38578         but with proper copyright notice and attribution.
38579         * lib/gen-uio: Remove.
38580         * lib/Makefile.am: Add copyright notice.
38581         (libfetish_a_SOURCES): Add unlocked-io.h.
38582         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
38583         (DISTCLEANFILES, io_functions): Remove macros.
38584         (EXTRA_DIST): Remove gen_uio.
38585         (unlocked-io.h): Remove rule.
38586
38587 2002-12-04  Jim Meyering  <jim@meyering.net>
38588
38589         Reflect the fact that stat.c and lstat.c are no longer generated.
38590         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
38591         (DISTCLEANFILES): Likewise.
38592         (EXTRA_DIST): Likewise.
38593         (all_local): Don't depend on stat.c or lstat.c.
38594         (stat.c, lstat.c): Remove rules.
38595         (EXTRA_DIST): Remove xstat.in.
38596
38597         * lib/xstat.in: Remove file.  Contents moved into stat.c.
38598         * lib/stat.c: New file.  Contents mostly from xstat.in.
38599         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
38600         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
38601
38602         * lib/safe-read.c: Rework so that it may serve to define safe_write,
38603         too.
38604         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
38605
38606 2002-12-03  Jim Meyering  <jim@meyering.net>
38607
38608         * lib/safe-read.c, safe-write.c: Change variable names and comments,
38609         but not semantics, to minimize the differences between these two files.
38610         (safe_read): Change comment to mention SAFE_READ_ERROR.
38611
38612         * lib/safe-read.c (IS_EINTR): Define.
38613         (safe_read): Use IS_EINTR in place of in-function cpp directives.
38614
38615 2002-12-02  Jim Meyering  <jim@meyering.net>
38616
38617         * lib/safe-read.c (EINTR): Define.
38618         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38619         (INT_MAX): Provide fallback.
38620         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
38621
38622         * lib/safe-read.h (SAFE_READ_ERROR): Define.
38623
38624 2002-12-02  Bruno Haible  <bruno@clisp.org>
38625
38626         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
38627         Define, taken from safe-read.c.
38628         (INT_MAX): Provide fallback.
38629         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
38630         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
38631
38632         * lib/safe-read.c (EINTR): Remove definition.
38633         (safe_read): Don't use EINTR if it is absent.
38634
38635 2002-12-01  Jim Meyering  <jim@meyering.net>
38636
38637         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
38638         zero.
38639         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
38640
38641 2002-11-27  Paul Eggert  <eggert@twinsun.com>
38642
38643         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
38644         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
38645         with `if (! (value < limit)) abort ();', for readability.
38646
38647 2002-11-26  Karl Berry  <karl@gnu.org>
38648
38649         * lib/strdup.c: copy from libc again, with jim's ok.
38650         * lib/.cppi-disable: re-add strdup.c
38651
38652 2002-11-25  Karl Berry  <karl@gnu.org>
38653
38654         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
38655         instead of "strtol.c".
38656
38657 2002-11-25  Karl Berry  <karl@gnu.org>
38658
38659         * config/install-sh: update from automake for variable quoting, $0 in
38660         error msgs, etc.
38661
38662         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
38663         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
38664         entry.
38665
38666 2002-11-25  Jim Meyering  <jim@meyering.net>
38667
38668         * lib/mktime.c: Sync from libc, now that it has the latest fix.
38669
38670 2002-11-24  Karl Berry  <karl@gnu.org>
38671
38672         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
38673         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
38674
38675 2002-11-24  Jim Meyering  <jim@meyering.net>
38676
38677         Update from coreutils:
38678
38679         * lib/mktime.c: Merge in changes from libc.
38680
38681         Avoid a link-time failure on some Linux systems.
38682         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
38683         (otherwise).
38684         (__mon_yday): Declare with the STATIC attribute.
38685         (__mktime_internal): Likewise.
38686         Based on a report from Greg Schafer.
38687
38688 2002-11-23  Jim Meyering  <jim@meyering.net>
38689
38690         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
38691         Use `unsigned', not `int', as type of index.
38692
38693         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
38694
38695         * lib/fsusage.c: Remove unneeded parentheses around operands of
38696         `defined'.
38697
38698 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38699
38700         * lib/quotearg.h: Allow multiple inclusion by surrounding with
38701         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
38702         so that we can be included first.
38703         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
38704         * lib/quotearg.c: Include quotearg.h immediately after config.h.
38705         No need to include stddef.h or sys/types.h any more.
38706         Surround local include files with "", not "<>".
38707         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
38708         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
38709         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
38710         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
38711         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
38712         (ISPRINT): Remove; no longer needed now that we assume C89.
38713
38714         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
38715         Preserve errno.
38716
38717         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
38718         quotearg_char): Use SIZE_MAX rather than
38719         (size_t) -1 when we are talking about "infinity".
38720
38721         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
38722
38723 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38724
38725         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
38726         hint that one should use `if (! x) abort ();' rather than `assert
38727         (x);', and anyway it's one less thing to worry about configuring.
38728         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
38729         hash_rehash, hash_insert): Use abort rather than assert.
38730
38731 2002-11-22  Bruno Haible  <bruno@clisp.org>
38732
38733         * lib/safe-read.h: Assume C89. Add comments.
38734         (safe_read): Change return type to size_t.
38735         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
38736         byte counts > SSIZE_MAX correctly.
38737         * lib/safe-write.h: New file.
38738         * lib/safe-write.c: New file.
38739         * lib/full-read.h: New file.
38740         * lib/full-read.c: New file.
38741         * lib/full-write.h: Assume C89. Add comments.
38742         * lib/full-write.c: Include safe-write.h.
38743         (full_write): Rewritten to use safe_write.
38744         Suggested by Jim Meyering and Paul Eggert.
38745
38746 2002-11-21  Jim Meyering  <jim@meyering.net>
38747
38748         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
38749
38750         Merge in changes from the coreutils.
38751
38752         2002-09-25  Paul Eggert  <eggert@twinsun.com>
38753         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
38754         <stdint.h>.
38755         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
38756         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
38757         int.  Work more efficiently if X is the same width as uintmax_t.
38758         Do not compare X to -1, to avoid bogus compiler warning.
38759         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
38760         Don't assume that f_frsize and f_bsize are the same type.
38761
38762         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
38763         warning on FreeBSD.
38764
38765         * lib/makepath.c (make_path): Restore umask *before* creating the final
38766         component.
38767         (make_path): Minor reformatting.
38768
38769         * lib/xmalloc.c: Adjust to work with new autoconf macros,
38770         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
38771         HAVE_MALLOC/HAVE_REALLOC.
38772
38773         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
38774         dummy ones.  At least on GNU/Linux systems, `auto' means something
38775         else.
38776         From Michael Stone.
38777
38778 2002-11-21  Bruno Haible  <bruno@clisp.org>
38779
38780         Remove case insensitive option matching.
38781         * lib/argmatch.h (argcasematch): Remove declaration.
38782         (ARGCASEMATCH): Remove macro.
38783         (__xargmatch_internal): Remove case_sensitive argument.
38784         (XARGMATCH): Update.
38785         (XARGCASEMATCH): Remove macro.
38786         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
38787         case_sensitive argument.
38788         (argcasematch): Remove function.
38789         (__xargmatch_internal): Remove case_sensitive argument.
38790         (main): Use XARGMATCH instead of XARGCASEMATCH.
38791
38792         * lib/xmalloc.c: Change compile-time error message. Add comment about
38793         required autoconf version.
38794
38795 2002-11-20  Paul Eggert  <eggert@twinsun.com>
38796
38797         Merge argmatch cleanups from Bison.  Assume C89.
38798
38799         * lib/argmatch.c: Include config.h here, not in argmatch.h.
38800         Include stdlib.h, for EXIT_FAILURE.
38801         Always include <string.h>, since we assume C89.
38802         (EXIT_FAILURE): Remove pre-C89 bug workaround.
38803         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
38804         Include <stddef.h> instead, since it's all we need for size_t.
38805         (PARAMS): Remove.  All uses removed.
38806         (ARRAY_CARDINALITY): Do not bother to #undef.
38807         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
38808         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38809         Remove unnecessary parentheses.
38810         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38811         Insert necessary parentheses.
38812         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
38813         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
38814
38815 2002-11-19  Bruno Haible  <bruno@clisp.org>
38816
38817         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
38818         * lib/mbswidth.h: Include <stddef.h>, for size_t.
38819
38820         * lib/mbswidth.h (PARAMS): Remove macro.
38821         (mbswidth, mbsnwidth): Use ANSI C function declarations.
38822         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
38823
38824         * lib/gcd.h (PARAMS): Remove macro.
38825         (gcd): Use ANSI C function declarations.
38826         * lib/gcd.c (gcd): Likewise.
38827
38828 2002-11-15  Bruno Haible  <bruno@clisp.org>
38829
38830         * lib/strcspn.c: Include <stddef.h>.
38831         (strcspn): Use ANSI C function declaration. Change return type to
38832         size_t. Use NULL.
38833         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38834         (strpbrk): Use NULL.
38835         * lib/strpbrk.h (PARAMS): Remove macro.
38836         (strpbrk): Use ANSI C function declaration.
38837         * lib/strstr.c: Don't include <sys/types.h>.
38838         * lib/strstr.h (PARAMS): Remove macro.
38839         (strstr): Use ANSI C function declarations.
38840
38841 2002-11-14  Karl Berry  <karl@gnu.org>
38842
38843         * config/mkinstalldirs: `do' on separate line, instead of
38844         `for var; do'.
38845
38846 2002-11-06  Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
38849         * lib/gcd.c (gcd): Likewise.
38850
38851 2002-11-05  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/gcd.h: New file, from gettext-0.11.5.
38854         * lib/gcd.c: New file, from gettext-0.11.5.
38855
38856 2002-11-05  Bruno Haible  <bruno@clisp.org>
38857
38858         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38859         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38860         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38861         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38862
38863         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
38864         <libintl.h>.
38865         * lib/makepath.c: Include gettext.h instead of <locale.h> and
38866         <libintl.h>.
38867
38868         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
38869         * lib/human.c: Include gettext.h instead of <libintl.h>.
38870         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
38871         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
38872         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
38873         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
38874         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
38875         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
38876         (textdomain): Remove definition.
38877         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
38878
38879         * lib/long-options.c: Remove include of <libintl.h> and definition of
38880         _.
38881         * lib/same.c: Remove include of <libintl.h> and definition of _.
38882
38883 2002-11-04  Owen Taylor  <otaylor@redhat.com>
38884
38885         * lib/config.charset: A few additions for Solaris.
38886
38887 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38888
38889         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
38890         * lib/localcharset.c (locale_charset): Declare as extern "C".
38891
38892 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38893
38894         * lib/config.charset: msdos in uk_UA uses CP1125.
38895
38896 2002-11-04  Bruno Haible  <bruno@clisp.org>
38897
38898         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
38899         * lib/strcase.h: New file, from GNU gettext-0.11.5.
38900         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
38901         * lib/strstr.h: New file, from GNU gettext-0.11.5.
38902         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
38903
38904 2002-11-04  Bruno Haible  <bruno@clisp.org>
38905
38906         * lib/localcharset.c (locale_charset): Don't return an empty string.
38907
38908 2002-11-04  Bruno Haible  <bruno@clisp.org>
38909
38910         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
38911         aliases.
38912
38913 2002-11-04  Bruno Haible  <bruno@clisp.org>
38914
38915         * lib/config.charset: Update for newest glibc. Add canonical names
38916         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
38917
38918 2002-11-04  Bruno Haible  <bruno@clisp.org>
38919
38920         * lib/config.charset: Add support for NetBSD.
38921
38922 2002-11-04  Bruno Haible  <bruno@clisp.org>
38923
38924         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
38925
38926 2002-11-01  Bruno Haible  <bruno@clisp.org>
38927
38928         * configure.in: Add AC_CONFIG_AUX_DIR call.
38929         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
38930         test/Makefile.
38931         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
38932
38933 2002-09-28  Karl Berry  <karl@gnu.org>
38934
38935         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
38936         installed automake until the next release, since changes have been
38937         made.
38938
38939 2002-09-25  Karl Berry  <karl@gnu.org>
38940
38941         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
38942         * lib/getopt*: copy from libc/posix.
38943         * lib/gettext.h: copy from gettext.
38944         * lib/.cppi-disable: add strdup.c, gettext.h.
38945
38946 2002-09-25  Karl Berry  <karl@gnu.org>
38947
38948         * config/srclist.txt: enable gettext.h check.
38949         * config/config.{guess,sub}: update from prep.
38950         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
38951                 from automake 1.6.3.
38952         See srclist*.
38953
38954 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
38955
38956         * regex.c (PATFETCH): Remove the translating fetch.
38957         (PATFETCH_RAW): Rename to PATFETCH.
38958         (set_image_of_range): New fun.
38959         (SET_RANGE_TABLE_WORK_AREA): Use it.
38960         (regex_compile): Don't translate the pattern chars so eagerly.
38961         Only do it when inserting an `exactn' bytecode or when handling
38962         a char-range.
38963         (mutually_exclusive_p): Avoid empty statement.
38964
38965 2002-07-06  Jim Meyering  <meyering@lucent.com>
38966
38967         * m4/README: Don't mention Makefile.am.in.
38968         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
38969
38970 2002-07-01  Jim Meyering  <meyering@lucent.com>
38971
38972         * lib/c-stack.c: Include sys/time.h.
38973         From Volker Borchert.
38974
38975 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38976
38977         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
38978
38979 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38980
38981         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
38982         New macro.  Use it uniformly instead of
38983         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
38984         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
38985         reported by Vin Shelton.
38986
38987 2002-06-22  Paul Eggert  <eggert@twinsun.com>
38988
38989         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
38990         Do not assume SA_SIGINFO behavior.
38991         Bug reported by Jim Meyering on NetBSD 1.5.2.
38992
38993 2002-06-22  Jim Meyering  <meyering@lucent.com>
38994
38995         * m4/c-stack.m4: New file, from diffutils-2.8.2.
38996         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
38997
38998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
38999         now that configure.ac uses AC_GNU_SOURCE.
39000         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
39001         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
39002
39003         Update to latest tools.  Suggestions from Paul Eggert.
39004         * m4/stdbool.m4: New file, from diffutils-2.8.2.
39005         * m4/gnu-source.m4: Update from diffutils-2.8.2.
39006         * m4/fnmatch.m4: Likewise.
39007         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
39008         to AC_HEADER_STDBOOL
39009
39010 2002-06-22  Jim Meyering  <meyering@lucent.com>
39011
39012         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
39013         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
39014
39015 2002-06-22  Jim Meyering  <meyering@lucent.com>
39016
39017         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
39018
39019         * lib/exitfail.c, exitfail.h: Likewise.
39020         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
39021
39022         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
39023         of fnmatch.h.
39024         (EXTRA_DIST): Add fnmatch_loop.c.
39025         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
39026
39027         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
39028         * lib/fnmatch.c: Update from diffutils-2.8.2.
39029         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
39030         * lib/fnmatch.h: Remove file.
39031
39032 2002-06-21  Jim Meyering  <meyering@lucent.com>
39033
39034         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
39035         * m4/mbrtowc.m4: Likewise.
39036
39037         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
39038         * m4/mbswidth.m4: Reflect name change:
39039         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
39040         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
39041
39042         * m4/lib-link.m4: Update from gettext-0.11.2.
39043         * m4/gettext.m4: Likewise.
39044
39045         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
39046         From Alfred M. Szmidt.
39047
39048 2002-06-18  Paul Eggert  <eggert@twinsun.com>
39049
39050         * lib/file-type.h: Report an error if neither S_ISREG nor
39051         S_IFREG is defined, instead of using a test specific to glibc
39052         2.2.  This should be safe, since POSIX requires S_ISREG and
39053         Unix Version 7 had S_IFREG.  We don't need to check for
39054         <sys/types.h> since we don't use any symbols that it defines.
39055
39056 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
39057
39058         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
39059         $@-t, so that each temporary file name is unique and valid in the first
39060         8 characters, for operation under DOS.
39061
39062 2002-06-15  Paul Eggert  <eggert@twinsun.com>
39063
39064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
39065
39066 2002-06-15  Jim Meyering  <meyering@lucent.com>
39067
39068         Work even with DJGPP 2.03, which lacks support for symlinks.
39069         From Richard Dawe.
39070         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
39071         is defined.
39072         * lib/lchown.c (S_ISLNK): Likewise.
39073
39074 2002-06-15  Jim Meyering  <meyering@lucent.com>
39075
39076         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
39077         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
39078         have been included before this file.
39079
39080 2002-06-14  Jim Meyering  <meyering@lucent.com>
39081
39082         * lib/file-type.h: Use the version from diffutils-2.8.2.
39083         * lib/file-type.c: Likewise.
39084
39085 2002-06-07  Jim Meyering  <meyering@lucent.com>
39086
39087         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
39088         They're needed at least for NetBSD 1.5.2.
39089         ($statxfs_includes): Include those same headers.
39090         ($statxfs_includes): Include sys/vfs.h if available.
39091         ($statxfs_includes): Likewise for sys/statvfs.h.
39092         Check for the following members in both structs statfs and statvfs:
39093         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
39094
39095 2002-06-01  Jim Meyering  <meyering@lucent.com>
39096
39097         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
39098         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
39099
39100 2002-05-28  Jim Meyering  <meyering@lucent.com>
39101
39102         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
39103         Reported by Volker Borchert.
39104
39105 2002-05-27  Jim Meyering  <meyering@lucent.com>
39106
39107         Fix a problem seen only on nonconforming systems whereby ls.c's
39108         use of localtime, and then of gettimeofday would cause trouble:
39109         the localtime call used to initialize rpl_gettimeofday's save
39110         mechanism would clobber ls's current local time information so
39111         that in any long listing the first file would always be listed
39112         with date 1970-01-01.  Analysis by Volker Borchert.
39113
39114         * lib/gettimeofday.c (localtime): Undefine.
39115         (rpl_localtime): New function.
39116
39117 2002-05-27  Jim Meyering  <meyering@lucent.com>
39118
39119         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
39120         localtime.
39121
39122         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
39123         use the replacement function; it wouldn't resolve at link time.
39124         Reported by Volker Borchert.
39125
39126 2002-05-22  Jim Meyering  <meyering@lucent.com>
39127
39128         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
39129         file-type.h.
39130         * lib/file-type.h: New file.
39131         * lib/file-type.c (file_type): New file/function.  Extracted from
39132         diffutils.
39133
39134 2002-04-30  Jim Meyering  <meyering@lucent.com>
39135
39136         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
39137
39138 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39139
39140         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
39141
39142 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39143
39144         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
39145         Do not check for alloca.h (no longer used) or stdbool.h (was never
39146         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
39147
39148 2002-04-29  Paul Eggert  <eggert@twinsun.com>
39149
39150         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
39151
39152 2002-04-29  Jim Meyering  <meyering@lucent.com>
39153
39154         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
39155         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
39156         Use AC_FUNC_STRNLEN here instead.
39157
39158         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
39159         With autoconf-2.53a, it's part of AC_PROG_CC.
39160
39161 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39162
39163         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
39164         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
39165
39166 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39167
39168         * lib/sig2str.h, lib/sig2str.c: New files.
39169         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
39170
39171 2002-04-28  Paul Eggert  <eggert@twinsun.com>
39172
39173         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
39174         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
39175         of 127, since 64 is the largest conceivable number for ancient
39176         nonstandard hosts.
39177         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
39178
39179 2002-04-28  Jim Meyering  <meyering@lucent.com>
39180
39181         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
39182
39183 2002-04-24  Jim Meyering  <meyering@lucent.com>
39184
39185         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
39186         (jm_PREREQ): Use it.
39187
39188         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
39189         mach/mach.h fcntl.h.
39190         Check for this function: setlocale.
39191
39192 2002-04-24  Jim Meyering  <meyering@lucent.com>
39193
39194         * lib/gettext.h: New file, from Gettext.
39195         * lib/Makefile.am (INCLUDES): Remove -I../intl.
39196         (libfetish_a_SOURCES): Add gettext.h.
39197
39198 2002-04-16  Jim Meyering  <meyering@lucent.com>
39199
39200         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
39201         ut_pid, ut_id, ut_exit.
39202
39203 2002-04-16  Jim Meyering  <meyering@lucent.com>
39204
39205         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
39206         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
39207         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
39208
39209 2002-04-12  Jim Meyering  <meyering@lucent.com>
39210
39211         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
39212         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
39213         existence of the getmntinfo function.  Needed for Darwin 5.3.
39214
39215         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
39216         This is necessary at least on Darwin 5.3.
39217
39218         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
39219         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
39220         strnlen.o in the library, and that makes some versions of ranlib
39221         object.
39222
39223 2002-04-12  Jim Meyering  <meyering@lucent.com>
39224
39225         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
39226
39227 2002-04-09  Jim Meyering  <meyering@lucent.com>
39228
39229         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
39230         to be more precise.  Rather than saying we're checking whether the
39231         function `works', say what we're testing.
39232         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
39233         Reported by Bruno Haible.
39234
39235 2002-03-10  Jim Meyering  <meyering@lucent.com>
39236
39237         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
39238         Suggestion from Santiago Vila.
39239
39240 2002-03-08  Jim Meyering  <meyering@lucent.com>
39241
39242         * lib/rename.c: Mention that this wrapper is needed also on
39243         mips-dec-ultrix4.4 systems.
39244
39245 2002-03-02  Jim Meyering  <meyering@lucent.com>
39246
39247         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
39248         not HAVE_CLOCK_SETTIME.
39249
39250 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39251
39252         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
39253         Check for clock_settime.
39254
39255 2002-02-27  Paul Eggert  <eggert@twinsun.com>
39256
39257         * lib/nanosleep.h: Rename to....
39258         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
39259
39260         * lib/gettime.c: New file.
39261         * lib/settime.c: New file.
39262         * lib/stime.c: Remove.
39263
39264         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
39265         timespec.h.  Remove nanosleep.h.
39266
39267 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39268
39269         * m4/acl.m4: New file.
39270         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
39271         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
39272
39273 2002-02-25  Paul Eggert  <eggert@twinsun.com>
39274
39275         * lib/acl.c, lib/acl.h: New files.
39276         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
39277
39278 2002-02-24  Jim Meyering  <meyering@lucent.com>
39279
39280         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
39281         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
39282         cause trouble.  Reported by Nelson Beebe.
39283
39284 2002-02-23  Paul Eggert  <eggert@twinsun.com>
39285
39286         * lib/path-concat.c (xpath_concat): Reorder code to pacify
39287         compilers that don't know that xalloc_die never returns.
39288
39289 2002-02-20  Jim Meyering  <meyering@lucent.com>
39290
39291         * lib/getdate.c: Regenerate using bison-1.33.
39292
39293 2002-02-17  Jim Meyering  <meyering@lucent.com>
39294
39295         * config/config.guess (main): Don't use `head -1'; it's no longer
39296         portable. Use `sed 1q' instead.
39297
39298 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
39299
39300         * m4/codeset.m4: Upgrade to gettext-0.11.
39301         * m4/gettext.m4: Upgrade to gettext-0.11.
39302         * m4/glibc21.m4: Upgrade to gettext-0.11.
39303         * m4/iconv.m4: Upgrade to gettext-0.11.
39304         * m4/isc-posix.m4: Upgrade to gettext-0.11.
39305         * m4/lcmessage.m4: Upgrade to gettext-0.11.
39306         * m4/lib-ld.m4: New file, from gettext-0.11.
39307         * m4/lib-link.m4: New file, from gettext-0.11.
39308         * m4/lib-prefix.m4: New file, from gettext-0.11.
39309         * m4/progtest.m4: Upgrade to gettext-0.11.
39310
39311 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39312
39313         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
39314         (jm_PREREQ): Use it.
39315
39316 2002-02-15  Paul Eggert  <eggert@twinsun.com>
39317
39318         * lib/posixver.c, lib/posixver.h: New files.
39319         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39320
39321 2002-02-02  Paul Eggert  <eggert@twinsun.com>
39322             Bruno Haible  <bruno@clisp.org>
39323
39324         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
39325         (fwrite_success_callback): New declaration.
39326         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
39327         print_unicode_char. Call failure callback instead of error.
39328         (fwrite_success_callback): New function.
39329         (exit_failure_callback): New function.
39330         (fallback_failure_callback): New function.
39331         (print_unicode_char): Call unicode_to_mb.
39332
39333 2002-01-26  Jim Meyering  <meyering@lucent.com>
39334
39335         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
39336         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
39337
39338 2002-01-26  Jim Meyering  <meyering@lucent.com>
39339
39340         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
39341
39342 2002-01-22  Paul Eggert  <eggert@twinsun.com>
39343
39344         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
39345
39346 2002-01-22  Jim Meyering  <meyering@lucent.com>
39347
39348         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
39349         Otherwise, some versions of automake would omit the rule that makes
39350         Makefile from Makefile.in.
39351
39352 2002-01-21  Paul Eggert  <eggert@twinsun.com>
39353
39354         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
39355         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
39356         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
39357         (memcoll): Set errno to zero if there is no error.
39358
39359         * lib/quotearg.c (quotearg_buffer_restyled):
39360         Fix bug with quoting buffers containing NUL when backslashing escapes.
39361         This bug was exposed by the other changes in this patch.
39362         (quotearg_n_options): New arg ARGSIZE.
39363         All callers changed.
39364         (quoting_options_from_style): New function.
39365         (quotearg_n_style): Use it.
39366         (quotearg_n_style_mem): New function.
39367
39368         * lib/quotearg.h (quotearg_n_style_mem): New function.
39369
39370 2002-01-19  Jim Meyering  <meyering@lucent.com>
39371
39372         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
39373         Remove useless quotes: DF_PROG="df".
39374         * m4/strnlen.m4: New file.
39375
39376 2002-01-16  Paul Eggert  <eggert@twinsun.com>
39377
39378         * lib/backupfile.c (ISDIGIT): Comment fix.
39379         * lib/getdate.y (ISDIGIT): Likewise.
39380         * lib/posixtm.c (ISDIGIT, year): Likewise.
39381         * lib/strverscmp.c (ISDIGIT): Likewise.
39382         * lib/userspec.c (ISDIGIT): Likewise.
39383
39384 2002-01-16  Jim Meyering  <meyering@lucent.com>
39385
39386         * lib/getdate.y: Add three semicolons, each just before a closing
39387         brace. Bison (as of version 1.31) no longer papers over that mistake.
39388
39389 2002-01-05  Jim Meyering  <meyering@lucent.com>
39390
39391         * lib/version-etc.c (version_etc_copyright): Update copyright year.
39392
39393 2001-12-19  Paul Eggert  <eggert@twinsun.com>
39394
39395         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
39396         not silently exit merely because the output buffer happens to
39397         have nothing pending.
39398
39399 2001-12-18  Paul Eggert  <eggert@twinsun.com>
39400
39401         See the big note in ../ChangeLog.
39402         * lib/human.c (suffixes): Prefer K to k for 1024.
39403         (generate_suffix_backwards): New function.
39404         (human_readable_inexact): Use it.
39405         * lib/xstrtol.c (__xstrtol): If there is no number but there
39406         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
39407         Accept 'K' as well as 'k'.
39408
39409 2001-12-15  Jim Meyering  <meyering@lucent.com>
39410
39411         * lib/regex.h (__restrict_arr): Update from libc.
39412
39413         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
39414         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
39415         (STREQ): Define.
39416
39417 2001-12-14  Jim Meyering  <meyering@lucent.com>
39418
39419         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39420         Suggestion from Bruno Haible.
39421
39422 2001-12-10  Jim Meyering  <meyering@lucent.com>
39423
39424         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39425         xrealloc, Instead, include "xalloc.h".
39426         (initbuffer): Don't cast xmalloc return value to char*.
39427         (readline): Reword comment.
39428         Don't cast xrealloc return value to char*
39429         Return NULL, not 0.
39430
39431 2001-12-09  Jim Meyering  <meyering@lucent.com>
39432
39433         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39434         about `signed and unsigned type in conditional expression'.
39435         * lib/posixtm.c (posix_time_parse): Likewise.
39436
39437         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39438
39439         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39440         to avoid a pedantic warning.
39441
39442         * lib/getstr.c: Don't include assert.h.
39443         (getstr): Remove warning-evoking assertions.
39444         Return -1 if offset parameter is out of bounds.
39445         Change the type of a local from int to size_t.
39446
39447         * lib/strftime.c (my_strftime_localtime_r): Include this function
39448         definition in the `#if ! HAVE_TM_GMTOFF' block.
39449
39450         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39451         Include xalloc.h instead.
39452
39453 2001-12-02  Jim Meyering  <meyering@lucent.com>
39454
39455         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39456         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39457         included.
39458
39459         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39460         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39461
39462 2001-11-30  Akim Demaille  <akim@epita.fr>
39463
39464         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39465         before being defined.
39466
39467 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39468
39469         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39470         First arg is int, not unsigned.
39471         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39472         (SIZE_MAX, UINT_MAX): New macros.
39473         (quotearg_n_options): Abort if N is negative.
39474         Avoid overflow check on hosts where size_t is 64 bits and int
39475         is 32 bits, as overflow is impossible there.
39476         Fix off-by-one typo that caused unnecessary reallocation.
39477
39478 2001-11-27  Jim Meyering  <meyering@lucent.com>
39479
39480         * lib/tempname.c: Merge with version from libc.
39481         * lib/regex.c: Likewise.
39482
39483         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39484         systems for which STDC_HEADERS is 0, it was not included, resulting in
39485         a warning about an integer-to-pointer conversion problem with getenv.
39486         Reported by Volker Borchert.
39487
39488 2001-11-26  Jim Meyering  <meyering@lucent.com>
39489
39490         * lib/gtod.h: Remove file.
39491         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39492         * lib/gettimeofday.c: Don't include gtod.h.
39493         (GTOD_init): Remove function.
39494         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39495         Suggestion from Volker Borchert.
39496
39497 2001-11-23  Jim Meyering  <meyering@lucent.com>
39498
39499         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39500         it.
39501         * lib/hash.c (struct hash_table): Define it here instead.
39502
39503 2001-11-22  Jim Meyering  <meyering@lucent.com>
39504
39505         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39506
39507 2001-11-20  Jim Meyering  <meyering@lucent.com>
39508
39509         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39510         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39511
39512 2001-11-19  Jim Meyering  <meyering@lucent.com>
39513
39514         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39515         directory.  Use "conftestXXXXXX" as the template.
39516         Suggestion from Paul Eggert.
39517
39518         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39519         immediately, so the test doesn't mistakenly hit the max-open-files
39520         limit.
39521
39522 2001-11-18  Paul Eggert  <eggert@twinsun.com>
39523
39524         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
39525         (TEMPORARIES): New macro.
39526         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
39527         removes an artificial limitation (e.g. HP-UX 10.20, where
39528         TMP_MAX is 17576).
39529
39530 2001-11-18  Jim Meyering  <meyering@lucent.com>
39531
39532         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
39533
39534 2001-11-18  Jim Meyering  <meyering@lucent.com>
39535
39536         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
39537         on SunOS 4.
39538
39539         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39540         files will be created before anything else.
39541
39542 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39543
39544         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39545         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39546
39547 2001-11-17  Jim Meyering  <meyering@lucent.com>
39548
39549         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39550         Prompted by a report from Bob Proulx.
39551
39552         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39553         Instead, require UTILS_FUNC_MKSTEMP.
39554
39555 2001-11-17  Jim Meyering  <meyering@lucent.com>
39556
39557         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
39558         Now, that's done as part of AC_FUNC_STRTOD.
39559
39560 2001-11-17  Jim Meyering  <meyering@lucent.com>
39561
39562         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
39563         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
39564         rather than group writable.  Patch by Juan F. Codagnone.
39565
39566         * lib/readtokens.c: Remove explicit declarations of xmalloc and
39567         xrealloc, Instead, include "xalloc.h".
39568
39569         * lib/mountlist.c: Include unlocked-io.h after all system headers.
39570         Remove explicit declarations of xmalloc, xrealloc,
39571         and xstrdup.  Instead, include "xalloc.h".
39572
39573         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
39574         unlocked-io.h.
39575         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
39576         Likewise.
39577         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
39578
39579         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
39580         Reported by Padraig Brady.
39581
39582         * lib/mkstemp.c: #undef mkstemp.
39583         Include config.h.
39584         (rpl_mkstemp): Rename from mkstemp.
39585         Protoize.
39586
39587 2001-11-16  Jim Meyering  <meyering@lucent.com>
39588
39589         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
39590         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
39591         determine the amount of total physical memory, use pstat_getstatic.
39592         HPUX-11 doesn't define _SC_PHYS_PAGES.
39593         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
39594         If sysconf couldn't be used to determine the amount of available
39595         physical memory, use both pstat_getstatic and pstat_getdynamic.
39596         Based on a patch from Bob Proulx.
39597
39598 2001-11-10  Jim Meyering  <meyering@lucent.com>
39599
39600         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
39601         (jm_PREREQ): Use it.
39602
39603 2001-11-09  Jim Meyering  <meyering@lucent.com>
39604
39605         * m4/jm-macros.m4: Require autoconf-2.52f.
39606         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
39607         Use these AC_-prefixed names, not the AM_-prefixed ones.
39608
39609         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
39610
39611 2001-11-05  Jim Meyering  <meyering@lucent.com>
39612
39613         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
39614
39615 2001-11-04  Jim Meyering  <meyering@lucent.com>
39616
39617         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
39618         $DEFS.
39619
39620 2001-11-03  Jim Meyering  <meyering@lucent.com>
39621
39622         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
39623         of AC_DEFUN.
39624
39625         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
39626         know the name of the variable in the macro definition.
39627
39628 2001-11-03  Jim Meyering  <meyering@lucent.com>
39629
39630         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
39631         in argmatch_to_argument call.
39632
39633         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
39634         argument.
39635
39636         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
39637         e.g., a fault due to an attempt to free a NULL pointer.
39638
39639 2001-11-01  Jim Meyering  <meyering@lucent.com>
39640
39641         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
39642         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
39643
39644 2001-11-01  Jim Meyering  <meyering@lucent.com>
39645
39646         * lib/dirfd.c, lib/dirfd.h: New files.
39647         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
39648
39649         * lib/hash.c (hash_print) [TESTING]: Clean up.
39650
39651 2001-10-22  Paul Eggert  <eggert@twinsun.com>
39652
39653         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
39654         to avoid a warning if -Wall.
39655
39656 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
39657
39658         * README: New file
39659         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
39660         (per RMS's instructions, this is now the canonical source)
39661         * lgpl/, gpl/: New directories.
39662
39663 2001-10-21  Paul Eggert  <eggert@twinsun.com>
39664
39665         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
39666
39667 2001-10-21  Jim Meyering  <meyering@lucent.com>
39668
39669         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
39670         this code would end up calling gettext even in packages built
39671         with --disable-nls.
39672         * lib/getopt.c (_): Likewise.
39673         * lib/regex.c (_): Likewise.
39674
39675 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39676
39677         * m4/error.m4 (jm_PREREQ_ERROR):
39678         Do not invoke AC_CHECK_FUNCS with strerror_r, as
39679         AC_FUNC_STRERROR_R does that.
39680         Check for strerror declaration.
39681
39682         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
39683         are supposed to have them these days.
39684         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
39685         Merge changes from latest Autoconf CVS.
39686         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
39687         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
39688         POSIX decided to standardize on the int flavor of strerror_r.
39689
39690 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39691
39692         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
39693         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
39694         Use strerror_r that is only a macro, even if it is not a function.
39695         (strerror): Check for HAVE_DECL_STRERROR before declaring.
39696         (private_strerror): Use prototypes, not old-style function definition.
39697         (print_errno_message): New function.
39698         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
39699         char*-flavored one.
39700         (error_tail, error, error_at_line): Use it.
39701
39702 2001-10-11  Jim Meyering  <meyering@lucent.com>
39703
39704         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
39705         and quote_n (1, ... to avoid clobbering a buffer.
39706
39707 2001-10-05  Jim Meyering  <meyering@lucent.com>
39708
39709         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
39710         hash-pjw.h.
39711         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
39712         * lib/hash-pjw.h: New file.
39713
39714 2001-09-30  Jim Meyering  <meyering@lucent.com>
39715
39716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
39717         `struct fsstat' has the `f_fstypename' member.
39718         Use that to define FS_TYPE, which is now used to make
39719         the getfsstat link test tighter.
39720
39721 2001-09-30  Jim Meyering  <meyering@lucent.com>
39722
39723         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
39724         Include <sys/ucred.h>, for Apple Darwin.
39725         Include sys/mount.h and sys/fs_types.h only if available.
39726         (FS_TYPE): Define.
39727         (read_filesystem_list): Use FS_TYPE.
39728
39729 2001-09-29  Paul Eggert  <eggert@twinsun.com>
39730
39731         * lib/exclude.c (excluded_filename): 0 -> false, since it's
39732         a boolean context.
39733
39734 2001-09-29  Jim Meyering  <meyering@lucent.com>
39735
39736         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39737         [one-argument getmntent function]): Include stdio.h before mntent.h.
39738         SunOS 4.1.x needs it for the declaration of `FILE'.
39739         Patch by Volker Borchert.
39740
39741         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39742         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
39743         sys/fs_types.h, and make the link-test for getfsstat guard #include
39744         directives with appropriate #if HAVE_*_H tests so that we can
39745         detect getfsstat on Apple Darwin1.3.7 systems.
39746         Reported by Nelson Beebe.
39747         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
39748
39749 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39750
39751         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39752         #defines strtoimax.  Also treat the other strto* functions
39753         like strtoimax.
39754
39755         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39756         Check for strtoul and strtoumax,
39757         as those declarations are made even in the signed case.
39758         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
39759         Likewise, for strtol and strtoimax.
39760
39761 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39762
39763         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39764         #defines strtoimax.  Also treat the other strto* functions
39765         like strtoimax.
39766
39767         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
39768         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
39769         (strtoimax, strtoumax): Do not declare if already defined as a macro.
39770
39771 2001-09-26  Jim Meyering  <meyering@lucent.com>
39772
39773         Most macros in unlocked-io.h had the wrong number of arguments.
39774         * lib/gen-uio: New script.
39775         (USE_UNLOCKED_IO): Define to 1 if not already defined.
39776         * lib/unlocked-io.hin: Remove file.
39777         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
39778         rather than trying to embed it here.
39779         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
39780         Reported by Padraig Brady.
39781
39782 2001-09-25  Volker Borchert  <bt@teknon.de>
39783
39784         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
39785         `result'.
39786
39787 2001-09-24  Jim Meyering  <meyering@lucent.com>
39788
39789         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
39790
39791 2001-09-23  Jim Meyering  <meyering@lucent.com>
39792
39793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
39794         instead of the mere test for existence of mntent.h.  The latter
39795         would get a false-positive on AIX 3.4 systems.
39796         In the outer getmntent if-block, don't die if neither of the getmntent
39797         tests succeeds.  Instead, just fall through and continue with the
39798         remaining tests.
39799
39800 2001-09-23  Jim Meyering  <meyering@lucent.com>
39801
39802         * lib/mountlist.c: Remove useless parentheses in #if directives.
39803         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
39804         the deprecated MOUNTED symbol is no longer defined in mntent.h.
39805
39806 2001-09-22  Jim Meyering  <meyering@lucent.com>
39807
39808         * m4/gettext.m4: New file.  From gettext.
39809         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
39810         * m4/progtest.m4: Likewise
39811         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
39812         * m4/glibc21.m4: Likewise.
39813
39814         * m4/libintl.m4: Remove.  No longer used.
39815
39816 2001-09-22  Jim Meyering  <meyering@lucent.com>
39817
39818         * lib/localcharset.c: Update from latest gettext.
39819         * lib/config.charset: Likewise.
39820
39821 2001-09-20  Jim Meyering  <meyering@lucent.com>
39822
39823         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
39824         strtoimax.
39825         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
39826         strtoumax.
39827
39828 2001-09-20  Jim Meyering  <meyering@lucent.com>
39829
39830         * lib/xstrtol.c (strtoimax): Guard declaration with
39831         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39832         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39833         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39834         (strtoumax): Likewise, for completeness (it wasn't necessary).
39835
39836 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39837
39838         * lib/strtoimax.c (HAVE_LONG_LONG):
39839         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39840         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39841         to work around bug in IBM C compiler.
39842
39843 2001-09-17  Jim Meyering  <meyering@lucent.com>
39844
39845         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
39846         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
39847         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
39848         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
39849         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
39850         whenever the right hand side need not be expanded by the shell.
39851
39852 2001-09-16  Paul Eggert  <eggert@twinsun.com>
39853
39854         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
39855         library.  It's not correct, as some older glibcs are buggy.
39856         fnmatch wasn't fixed until glibc 2.2.
39857
39858         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
39859         special shell magic here.
39860
39861 2001-09-16  Jim Meyering  <meyering@lucent.com>
39862
39863         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
39864         * m4/jm-macros.m4: Require it.
39865
39866 2001-09-16  Jim Meyering  <meyering@lucent.com>
39867
39868         * lib/mkdir.c: New file.
39869
39870 2001-09-15  Jim Meyering  <meyering@lucent.com>
39871
39872         * m4/jm-macros.m4: Check for help2man.
39873
39874 2001-09-11  Jim Meyering  <meyering@lucent.com>
39875
39876         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
39877         The body, by Paul Eggert, was moved here from configure.in.
39878         * m4/jm-macros.m4: Require UTILS_HOST_OS.
39879
39880 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39881
39882         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
39883         (jm_PREREQ): Use it.
39884
39885 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39886
39887         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
39888         Use ssize_t, not int, to store result of readlink.
39889         Check for ssize_t overflow as well as size_t overflow,
39890         as POSIX says the result of readlink is implementation-defined
39891         when ssize_t overflows.
39892         Remove unnecessary cast to char*.
39893         Use free+malloc instead of realloc, as the storage doesn't need
39894         to be preserved and it's clearer and can be more efficient that way.
39895         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
39896         * lib/xreadlink.h (xreadlink): Update prototype.
39897
39898 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39899
39900         * lib/xgetcwd.c: Revert some of the previous change; intead,
39901         fix the HAVE_GETCWD_NULL code to behave more like the
39902         !HAVE_GETCWD_NULL code used to.
39903
39904         Include "xalloc.h".
39905         (xgetcwd): Do not return NULL when memory is exhausted; instead,
39906         invoke xalloc_die.
39907
39908 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39909
39910         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
39911         sys/param.h, as pathmax.h includes them.
39912
39913 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39914
39915         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
39916         (jm_PREREQ_XGETCWD): New macro.
39917
39918         * m4/getcwd.m4: New file.
39919
39920 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39921
39922         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
39923         like the HAVE_GETCWD_NULL code.
39924         Include pathmax.h if not HAVE_GETCWD.
39925         Do not include xalloc.h.
39926         (INITIAL_BUFFER_SIZE): New symbol.
39927         Do not use xmalloc / xrealloc, since the caller is responsible for
39928         handling errors.  Preserve errno around `free' during failure.
39929         Do not overrun buffer when using getwd.
39930
39931 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39932
39933         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
39934         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
39935         getcwd (NULL, 0).
39936
39937 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39938
39939         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
39940         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
39941         spotted by Jim Meyering.
39942
39943 2001-09-03  Jim Meyering  <meyering@lucent.com>
39944
39945         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
39946         failure.
39947
39948 2001-09-02  Jim Meyering  <meyering@lucent.com>
39949
39950         * lib/error.c: Update from GNU libc.
39951
39952 2001-09-01  Jim Meyering  <meyering@lucent.com>
39953
39954         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
39955         Used by df.
39956
39957 2001-09-01  Jim Meyering  <meyering@lucent.com>
39958
39959         * lib/xreadlink.c: New file.
39960         * lib/xreadlink.h: New file.
39961         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
39962         xreadlink.h.
39963
39964         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
39965         doesn't conflict with sparc Solaris 7's definition in
39966         /usr/include/sys/int_types.h.
39967
39968         * lib/exclude.c: Use `""', not `<>' to #include non-system header
39969         files.
39970         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
39971         and strncasecmp as r-values.  Unixware didn't have declarations.
39972
39973 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39974
39975         * lib/xstrtol.h: Add copyright notice.
39976         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
39977         LONGINT_INVALID_SUFFIX_CHAR.
39978
39979 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39980
39981         * lib/xstrtol.c (strtoimax): New decl.
39982
39983 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39984
39985         * lib/xgetcwd.c: Don't include pathmax.h.
39986         Include stdlib.h and unistd.h if available.
39987         Include xalloc.h.
39988         (xmalloc, xstrdup, free): Remove decls.
39989         (xgetcwd): Don't assume sizes fit in unsigned.
39990         Check for overflow when computing sizes.
39991         Simplify reallocation code.
39992
39993 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39994
39995         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
39996         a directory's st_size can have an arbitrary value, so the old
39997         usage could waste an arbitrary amount of memory.  All uses
39998         changed.
39999         * lib/savedir.h: Update prototype.
40000
40001 2001-08-31  Paul Eggert  <eggert@twinsun.com>
40002
40003         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
40004
40005         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
40006         old strtoimax.c.
40007
40008         Also, make the following further changes to make this file's
40009         configuration more similar to that of strtol.c:
40010         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
40011         (strtoumax, uintmax_t, strtoull, strtol): Remove.
40012         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
40013         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
40014         changed to signed values.
40015
40016         And make the following changes as well:
40017         Fix copyright notice, as 1999 was missing.
40018         (verify): New macro.
40019         (strtoimax): Check sizes at compile-time, not run-time.
40020         Prefer strtol to strtoll if both work.
40021         (main): Remove; it was not that useful and was a pain to maintain.
40022
40023         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
40024
40025 2001-08-31  Jim Meyering  <meyering@lucent.com>
40026
40027         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
40028         Use an initial, malloc'd, buffer of length 128 rather than
40029         a statically allocated one of length 1024.
40030
40031 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40032
40033         Simplify code, partly by assuming autoconf 2.52 semantics.
40034
40035         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
40036
40037         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
40038         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
40039         All uses removed.
40040         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
40041         Move AC_REQUIRE to next-to-top level, to avoid confusion.
40042         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
40043         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
40044         jm_AC_HEADER_INTTYPES_H.
40045         * m4/jm-macros.m4 (jm_MACROS): Likewise.
40046
40047         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
40048
40049         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
40050         Quote first arg of AC_DEFUN.
40051         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
40052         since they are needed to parse the include file even if we need
40053         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
40054         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
40055         but with opposite signedness.
40056
40057 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40058
40059         Merge 'exclude' changes from tar 1.13.22.
40060         This fixes one or two unlikely storage allocation overflow bugs,
40061         but doesn't change user-visible behavior otherwise.
40062
40063 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40064
40065         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
40066         (jm_PREREQ_EXCLUDE): New macro.
40067
40068 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40069
40070         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
40071         tm to be declared.
40072
40073 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40074
40075         * lib/hash.c: Remove '2001' from copyright notice.
40076
40077 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40078
40079         * lib/full-write.h: New file.
40080         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
40081         * lib/full-write.c: Correct credits, as cccp.c no longer
40082         exists and anyway it was so heavily changed from the old cccp
40083         code as to be unrecognizable.  Include full-write.h.
40084         (full_write) Return size_t, with short writes meaning failure.
40085         All callers changed.  This fixes a bug with large buffers
40086         on 64-bit hosts.
40087         * lib/utime.c: Include full-write.h.
40088
40089 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40090
40091         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
40092         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
40093         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
40094         Include if available.
40095         (<xalloc.h>): Include
40096         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
40097         (verify): New macro.  Use it to verify that EXCLUDE macros do not
40098         collide with FNM macros.
40099         (struct patopts): New struct.
40100         (struct exclude): Use it, as exclude patterns now come with options.
40101         (new_exclude): Support above changes.
40102         (new_exclude, add_exclude_file):
40103         Initial size must now be a power of two to simplify overflow checking.
40104         (free_exclude, fnmatch_no_wildcards): New function.
40105         (excluded_filename): No longer requires options arg, as the options
40106         are determined by add_exclude.  Now returns bool, not int.
40107         (excluded_filename, add_exclude):
40108         Add support for the fancy new exclusion options.
40109         (add_exclude, add_exclude_file): Now takes int options arg.
40110         Check for arithmetic overflow when computing sizes.
40111         (add_exclude_file): xrealloc might modify errno, so don't
40112         realloc until after errno might be used.
40113
40114         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
40115         New macros.
40116         (free_exclude): New decl.
40117         (add_exclude, add_exclude_file): Now takes int options arg.
40118         (excluded_filename): No longer requires options arg, as the options
40119         are determined by add_exclude.  Now returns bool, not int.
40120
40121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
40122
40123         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
40124
40125 2001-08-27  Jim Meyering  <meyering@lucent.com>
40126
40127         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
40128
40129         * lib/version-etc.c (N_): Remove definition.
40130         Revert most of last change.
40131         Instead, simply don't mark the `Copyright...' string for translation.
40132         Based on advice from Paul Eggert.
40133
40134         * lib/strtoxmax.c: Tweak comment.
40135
40136 2001-08-26  Jim Meyering  <meyering@lucent.com>
40137
40138         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
40139
40140         * m4/xstrtoimax.m4: New file.
40141         * m4/xstrtoumax.m4: Add comments explaining why we
40142         AC_REPLACE_FUNCS(strtol).
40143
40144 2001-08-26  Jim Meyering  <meyering@lucent.com>
40145
40146         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
40147         of copyright with `%s' so translators don't get an untranslated
40148         message in 2002.
40149         (COPYRIGHT_YEAR): Define.
40150         (version_etc): Use fprintf rather than fputs.
40151         Suggestion from Ulrich Drepper.
40152
40153         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
40154
40155         * lib/strtoll.c: New file, from GNU libc.
40156         * lib/xstrtoimax.c: New file.
40157
40158         * lib/xstrtol.h: Add xstrtoimax.
40159         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
40160         * lib/strtoimax.c: New file.  Likewise, but first define
40161         STRTOUXMAX_SIGNED.
40162
40163         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
40164         ...
40165         * lib/strtoxmax.c: ... then renamed to this.
40166
40167 2001-08-18  Paul Eggert  <eggert@twinsun.com>
40168
40169         * m4/inttypes.m4: Add AC_PREREQ(2.13).
40170         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
40171         (jm_AC_TYPE_INTMAX_T): New macro.
40172         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
40173
40174         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
40175
40176         * m4/longlong.m4: Renamed from ulonglong.m4.
40177         * m4/inttypes.m4: Renamed from inttypes_h.m4.
40178         * m4/uintmax_t.m4: Removed.
40179
40180 2001-08-13  Paul Eggert  <eggert@twinsun.com>
40181
40182         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
40183         Port to Solaris 8, where 'sed' requires a space after the 'r'
40184         command, and where sh dislikes "$/".  Clean up the spacing a bit.
40185         Redirect output to $tmp just once.
40186
40187 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
40188
40189         * lib/addext.c (<errno.h>): Include.
40190         (errno): Declare if not defined.
40191         (addext): Work correctly when pathconf returns -1 and leaves
40192         errno alone because there is no limit.  Also, work even if
40193         pathconf returns a value greater than SIZE_MAX.
40194
40195 2001-08-12  Jim Meyering  <meyering@lucent.com>
40196
40197         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
40198         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
40199         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
40200         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
40201         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
40202         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
40203         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
40204         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
40205         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
40206         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
40207         utime.m4, utimes.m4, xstrtoumax.m4:
40208         Quote the first argument in each use of AC_DEFUN.
40209
40210 2001-08-12  Jim Meyering  <meyering@lucent.com>
40211
40212         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
40213         Simply `return getcwd (NULL, 0);'.
40214         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
40215         Use 1300 as initial value for length, not PATH_MAX.
40216
40217         * lib/pathmax.h: Clean up cpp syntax.
40218
40219 2001-08-12  Jim Meyering  <meyering@lucent.com>
40220
40221         * lib/gettimeofday.c: New file.
40222         * lib/gtod.h: New file.
40223         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
40224
40225 2001-08-05  Jim Meyering  <meyering@lucent.com>
40226
40227         * m4/jm-macros.m4: Require autoconf-2.52.
40228
40229 2001-08-04  Jim Meyering  <meyering@lucent.com>
40230
40231         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
40232         stmt, to get in sync with glibc.
40233
40234 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40235
40236         The following changes are from gettext 0.10.39 as maintained by
40237         Bruno Haible.
40238
40239         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
40240         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
40241         with inverted sense.  All uses changed.
40242
40243         * lib/mbswidth.c: Don't include <limits.h>.
40244         Include <stdlib.h> and <string.h> unconditionally.
40245         (iswcntrl, mbsinit, ISCNTRL): New macros.
40246         (mbsnwidth): Use K&R style function declarations.
40247         Don't bother checking for MB_LEN_MAX == 1, since the compiler
40248         can optimize it when MB_CUR_MAX == 1.
40249         The width of control characters is zero, not 1.
40250
40251 2001-08-03  Paul Eggert  <eggert@twinsun.com>
40252
40253         The following changes are from gettext 0.10.39 as maintained by
40254         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
40255
40256         * m4/codeset.m4: Upgrade to serial AM1.
40257         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
40258         all uses changed.  Quote first arg of AC_DEFUN.
40259         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
40260
40261         * m4/iconv.m4: Upgrade to serial AM2.
40262         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
40263         Add --with-libconv-prefix.
40264         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
40265         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
40266         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
40267         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
40268         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
40269
40270         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
40271         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
40272         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
40273         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
40274         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
40275         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
40276         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40277         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
40278         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
40279
40280         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
40281         string.h any more.
40282
40283         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
40284         not the default value.
40285
40286         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
40287         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
40288         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
40289         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
40290         Also check for iswcntrl, used for wcwidth fallback.
40291         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
40292         to Autoconf 2.13.
40293
40294 2001-08-03  Jim Meyering  <meyering@lucent.com>
40295
40296         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
40297         as it was in the original.  Reported by Paul Eggert.
40298
40299 2001-07-16  Jim Meyering  <meyering@lucent.com>
40300
40301         * m4/gettimeofday.m4: New file.
40302         Prompted by a report from Bernhard Baehr.
40303
40304 2001-07-15  Jim Meyering  <meyering@lucent.com>
40305
40306         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
40307         stuff. Now it's in ../Makefile.cfg.
40308
40309 2001-07-15  Jim Meyering  <meyering@lucent.com>
40310
40311         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
40312         (BUILT_SOURCES): Add unlocked-io.h.
40313         (io_functions): Define.
40314         (unlocked-io.h): New rule.
40315         (DISTCLEANFILES): Add unlocked-io.h.
40316         (all-local): Depend on unlocked-io.h, to ensure it is created.
40317
40318         * lib/unlocked-io.hin: New file
40319
40320         * lib/regex.c: Update from glibc.
40321
40322 2001-07-05  Jim Meyering  <meyering@lucent.com>
40323
40324         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
40325         recommendation.
40326         (libfetish_a_SOURCES): Put all .h files here instead.
40327         Remove a thus-exposed (better checks in automake) duplicate and
40328         two unnecessary .h files.
40329
40330 2001-07-04  Jim Meyering  <meyering@lucent.com>
40331
40332         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
40333         that generates jm-glibc-io.m4 so that it doesn't trigger any make
40334         distcheck failure.
40335
40336 2001-07-02  Jim Meyering  <meyering@lucent.com>
40337
40338         The following changes were prompted by suggestions from Bruno Haible.
40339
40340         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
40341         is now generated.
40342         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
40343         definition of EXTRA_DIST.
40344         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
40345         ensure that the generated file is created/updated whenever the list
40346         of $(unlocked_functions) is changed.
40347         (jm-glibc-io.m4): New rule.
40348         (unlocked-io.h): New rule -- currently unused.
40349
40350 2001-06-24  Jim Meyering  <meyering@lucent.com>
40351
40352         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
40353         unmatched right bracket, rather than kludging it with an extra,
40354         falsely-matching quote in a comment.  Patch by Akim Demaille.
40355
40356 2001-06-11  Jim Meyering  <meyering@lucent.com>
40357
40358         * lib/regex.c: Update from GNU libc.
40359
40360 2001-05-27  Jim Meyering  <meyering@lucent.com>
40361
40362         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
40363         Check for ut_type in struct utmp.
40364
40365 2001-05-27  Jim Meyering  <meyering@lucent.com>
40366
40367         * lib/readutmp.h (UT_TYPE): Define.
40368
40369 2001-05-24  Jim Meyering  <meyering@lucent.com>
40370
40371         * lib/argmatch.c: Include "quote.h".
40372         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
40373         quote function.  Reported by Göran Uddeborg.
40374
40375 2001-05-22  Jim Meyering  <meyering@lucent.com>
40376
40377         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
40378         now that we use the package-supplied version unconditionally.
40379         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
40380
40381 2001-05-21  Jim Meyering  <meyering@lucent.com>
40382
40383         * m4/regex.m4: Change a couple backticks to single quotes to avoid
40384         shell syntax errors.
40385
40386 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40387
40388         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
40389
40390 2001-05-20  Paul Eggert  <eggert@twinsun.com>
40391
40392         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
40393         Don't bother to check library strftime, since
40394         we'll be using our own my_strftime function anyway.
40395         Define my_strftime instead of strftime.
40396
40397 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
40398
40399         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
40400         which is not yet declared.
40401
40402 2001-05-15  Jim Meyering  <meyering@lucent.com>
40403
40404         * m4/regex.m4: Use proper quoting so brackets appear in the test
40405         program.
40406         Reported by, and with help from, Bruno Haible.
40407
40408 2001-05-13  Jim Meyering  <meyering@lucent.com>
40409
40410         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
40411         undefined.
40412
40413 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40414
40415         dirname code cleanup.  base_name now behaves more compatibly
40416         with POSIX basename when given file names that have trailing
40417         slashes, and similarly for dir_name.  Add new primitives
40418         base_len and dir_len.  Put the directory-name-related decls
40419         into dirname.h.
40420
40421         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40422         * lib/backupfile.c (base_name): Likewise.
40423         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40424         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40425         * lib/makepath.c (strip_trailing_slashes): Likewise.
40426         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40427         ISSLASH): Likewise.
40428         * lib/rename.c (strip_trailing_slashes): Likewise.
40429         * lib/same.c (base_name): Likewise.
40430         * lib/stripslash.c (ISSLASH): Likewise.
40431
40432         * lib/addext.c: Include <dirname.h> after size_t is defined.
40433         * lib/backupfile.c: Likewise.
40434
40435         * lib/addext.c (addext): Use base_len to trim redundant
40436         trailing slashes instead of doing it ourselves.
40437         But do not trim the last slash if it is not redundant.
40438
40439         * lib/backupfile.c (find_backup_file_name,
40440         max_backup_version): Use base_len instead of rolling it ourselves.
40441         Handle the case of "" and (on DOS) "C:" correctly.
40442
40443         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40444         needed. Include <string.h>, <dirname.h>.
40445         (base_name): Allow file names ending in slashes, other than names
40446         that are all slashes.  In this case, return the basename followed
40447         by the slashes.  This is more general, and can be used in places
40448         where the original base_name purposely had an assertion failure.
40449         (base_len): New function.
40450
40451         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40452         Do not include <assert.h>; no longer needed.
40453         Include xalloc.h.
40454         (memrchr): Remove decl.
40455         (dir_name_r): Remove.
40456         (dir_len): Renamed from dirlen.  All callers changed.
40457         Rewrite in terms of base_name, for simplicity and consistency.
40458         (dir_name): Never return NULL.  All callers changed.
40459         Do not include <stdlib.h> in test program; no longer needed.
40460         return 0; is fine for test program.
40461
40462         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40463         New macros.
40464         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40465
40466         * lib/path-concat.c (path_concat): Use base_len to compute
40467         base length, not strlen; this means we cannot rely on memcpy
40468         to null-terminate.
40469
40470         * lib/same.c (STREQ): Remove.
40471         (same_name): Handle the case where the basename ends in trailing '/'.
40472
40473         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40474         a slash was stripped.  Do not strip the last slash after a
40475         file system prefix.
40476
40477 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40478
40479         * lib/Makefile.am (libfetish_a_SOURCES):
40480         Add strftime.c, since we now compile it on all hosts.
40481
40482         * lib/strftime.c (my_strftime):
40483         Define to nstrftime if emacs, but only if my_strftime is not defined.
40484         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40485         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40486         Add one more extra argument: a nanoseconds value.
40487         All uses changed.
40488         (ns): New macro.
40489         (my_strftime function): Add %N format.
40490         (emacs_strftimeu): Renamed from emacs_strftime,
40491         with extra ut argument.
40492
40493 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40494
40495         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40496
40497 2001-04-21  Jim Meyering  <meyering@lucent.com>
40498
40499         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40500         doesn't interfere.
40501
40502 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40503
40504         * m4/ftruncate.m4: Check for chsize.
40505         Link with ftruncate.o unconditionally if ftruncate is missing.
40506         This was required when cross-compiling to i586-mingw32msvc.
40507
40508 2001-04-08  Jim Meyering  <meyering@lucent.com>
40509
40510         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40511         recomputed; that's necessary when the offset spans a DST transition.
40512         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40513
40514 2001-04-02  Jim Meyering  <meyering@lucent.com>
40515
40516         * lib/regex.h, regex.c: Update from GNU libc.
40517
40518 2001-03-24  Jim Meyering  <meyering@lucent.com>
40519
40520         * m4/jm-macros.m4: Require autoconf-2.49d.
40521
40522 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
40523
40524         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
40525
40526 2001-03-19  Paul Eggert  <eggert@twinsun.com>
40527
40528         * lib/version-etc.c (version_etc_copyright): Update to 2001.
40529
40530 2001-03-17  Jim Meyering  <meyering@lucent.com>
40531
40532         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
40533         now that the version in autoconf is equivalent.
40534         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
40535
40536         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
40537         Suggestion from Akim Demaille.
40538
40539         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40540         (jm_PREREQ_TEMPNAME): New function.
40541
40542 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40543
40544         * lib/tempname.c (uint64_t): Define to uintmax_t if
40545         not defined, and if UINT64_MAX is not defined.
40546         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40547         Reported by John David Anglin.
40548
40549 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40550
40551         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40552         resolve alias if codeset is empty.
40553         * lib/config.charset (BeOS): Use wildcard syntax.
40554
40555 2001-03-13  Jim Meyering  <meyering@lucent.com>
40556
40557         * lib/path-concat.c (path_concat)
40558         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
40559         concatenating e.g., `C:' and `foo'.
40560         From Bruno Haible.
40561
40562 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40563
40564         * lib/localcharset.c (locale_charset): Don't use
40565         setlocale(LC_CTYPE,NULL). Don't return NULL.
40566         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
40567
40568 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40569
40570         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
40571         support for DOS/DJGPP.
40572
40573 2001-03-01  Paul Eggert  <eggert@twinsun.com>
40574
40575         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
40576         lacks mkstemp.  Compile our own tempname.c if we compile our own
40577         mkstemp.c, as mkstemp relies on tempname.
40578
40579 2001-03-01  Jim Meyering  <meyering@lucent.com>
40580
40581         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
40582         AH_VERBATIM really does output its argument verbatim.
40583
40584 2001-02-28  Paul Eggert  <eggert@twinsun.com>
40585
40586         * lib/Makefile.am (libfetish_a_SOURCES):
40587         Add dup-safer.c, fopen-safer.c.
40588         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
40589
40590         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
40591         * lib/unistd-safer.h: New files.
40592
40593 2001-02-25  Paul Eggert  <eggert@twinsun.com>
40594
40595         The mkstemp replacement is taken from glibc 2.2.2, with some
40596         portability fixes for use outside glibc, as follows:
40597
40598         * lib/tempname.c (struct_stat64): New macro.
40599         (direxists, __gen_tempname): Use it.
40600         This avoids a portability problem with Solaris 8.
40601
40602         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
40603         (<stddef.h>, <stdint.h>, <string.h>):
40604         Include only if STDC_HEADERS || _LIBC.
40605         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
40606         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
40607         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
40608         (__set_errno): Define this macro if <errno.h> doesn't.
40609         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
40610         Define these macros if <stdio.h> doesn't.
40611         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
40612         Define these macros if <sys/stat.h>
40613         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
40614         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
40615         __xstat64): Define if not _LIBC.
40616         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
40617         (__gen_tempname): Invoke gettimeofday only if
40618         HAVE_GETTIMEOFDAY || _LIBC;
40619         otherwise, fall back on plain "time".
40620         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
40621
40622         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
40623
40624         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
40625
40626 2001-02-18  Paul Eggert  <eggert@twinsun.com>
40627
40628         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
40629
40630 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40631
40632         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
40633         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
40634         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
40635         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40636
40637 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40638
40639         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
40640         Remove workaround macros for hosts that have mbrtowc but not
40641         mbstate_t, as we now insist on proper declarations for both
40642         before using mbrtowc.
40643
40644 2001-02-17  Jim Meyering  <meyering@lucent.com>
40645
40646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
40647         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
40648         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
40649         UnixWare 7.1.1.
40650
40651         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
40652         rather than AC_CACHE_VAL.
40653
40654 2001-02-17  Jim Meyering  <meyering@lucent.com>
40655
40656         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
40657         around included file name.
40658
40659         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
40660
40661         * lib/strftime.c: Update from GNU libc (the only changes were to
40662         comments).
40663
40664 2001-02-17  Jim Meyering  <meyering@lucent.com>
40665
40666         * lib/regex.c: Update from libc.
40667
40668 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
40669
40670         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
40671         clash.
40672
40673 2001-02-16  Paul Eggert  <eggert@twinsun.com>
40674
40675         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
40676         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
40677         Reported by Mark Hounschell via Paul Eggert.
40678
40679 2001-02-07  Jim Meyering  <meyering@lucent.com>
40680
40681         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
40682
40683 2001-02-05  Jim Meyering  <meyering@lucent.com>
40684
40685         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
40686         it includes the patch required for `large file' support with at least
40687         HP-UX's 10.20 /bin/cc.
40688
40689 2001-02-03  Jim Meyering  <meyering@lucent.com>
40690
40691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
40692         AS_IF, now that it works once again (mysteriously).
40693         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40694
40695 2001-01-30  Jim Meyering  <meyering@lucent.com>
40696
40697         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
40698         * m4/chown.m4: Rename conftestchown to conftest.chown.
40699         * m4/rename.m4: s/conftestdir/conftest.d1/ and
40700         s/conftestdir2/conftest.d2/.
40701         * m4/utimes.m4: s/conftestdata/conftest.data/
40702         Inspired by Pavel Roskin's change in autoconf.
40703
40704 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
40705
40706         * lib/config.charset: Update for FreeBSD 4.2.
40707
40708 2001-01-27  Jim Meyering  <meyering@lucent.com>
40709
40710         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
40711         a use of AS_IF.
40712         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40713
40714 2001-01-26  Jim Meyering  <meyering@lucent.com>
40715
40716         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
40717         quotearg.c includes it.
40718
40719 2001-01-26  Jim Meyering  <meyering@lucent.com>
40720
40721         * lib/quotearg.c: Include stddef.h.
40722         * lib/quote.c: Include stddef.h.
40723         Reported by Axel Kittenberger.
40724
40725         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
40726         line in double quotes so that it evokes a better diagnostic.
40727         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
40728         Reported by Axel Kittenberger.
40729
40730 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
40731
40732         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
40733         as if it was a `charset'.
40734
40735 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40736
40737         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
40738         has const.
40739
40740 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40741
40742         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
40743         to avoid a warning.  Add back 'const' to inptr.
40744
40745 2001-01-20  Jim Meyering  <meyering@lucent.com>
40746
40747         Be sure that headers are checked before used in code compiled
40748         for the type checks.
40749         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
40750         In place of that, invoke jm_CHECK_ALL_TYPES.
40751         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
40752         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
40753         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
40754         The check for ssize_t was mistakenly run before the test for unistd.h.
40755
40756         The configure-time check for stdbool.h was missing.
40757         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
40758         (jm_PREREQ_HASH): New function.
40759
40760 2001-01-17  Jim Meyering  <meyering@lucent.com>
40761
40762         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
40763         for autoconf-2.49c.
40764         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
40765
40766 2001-01-16  Jim Meyering  <meyering@lucent.com>
40767
40768         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
40769         From Bruno Haible.
40770
40771 2001-01-14  Jim Meyering  <meyering@lucent.com>
40772
40773         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
40774         foo and bar.  Create conftestdir/ in the script, not in the C code.
40775         Remove directories in the script, not in the C code.
40776         Remove conftestdir{,2} before trying to create the directory.
40777         Make the entire configure script fail if the mkdir fails.
40778
40779 2001-01-14  Jim Meyering  <meyering@lucent.com>
40780
40781         * lib/rename.c: New file.  From Volker Borchert.
40782         Include stdlib.h, string.h or strings.h, and xalloc.h.
40783         Use strip_trailing_slashes rather than open-coding it.
40784
40785 2001-01-03  Paul Eggert  <eggert@twinsun.com>
40786
40787         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
40788
40789 2001-01-03  Jim Meyering  <meyering@lucent.com>
40790
40791         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
40792         of local `inptr' to avoid warning with some system declarations of
40793         iconv.
40794
40795 2001-01-02  Volker Borchert  <bt@teknon.de>
40796
40797         * m4/rename.m4: New file.
40798         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
40799
40800 2001-01-01  Jim Meyering  <meyering@lucent.com>
40801
40802         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
40803         even on systems with utmpx.h.  It's necessary for the declaration of
40804         utmp's ut_user member.  Reported by Andreas Jaeger.
40805
40806         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
40807         available. They are required for the declarations of getgrgid and
40808         getpwuid resp.
40809         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
40810         Reported by Andreas Jaeger.
40811
40812 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
40813
40814         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
40815         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
40816         so `make install' also works in VPATH builds.
40817
40818 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
40819
40820         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
40821         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
40822         can be used in subdirectories.
40823
40824 2000-12-29  Paul Eggert  <eggert@twinsun.com>
40825
40826         * lib/modechange.c: Do not assume that mode_t uses the
40827         traditional octal encoding.  E.g. "chmod 1 FOO" should set
40828         the other-execute bit of FOO even if S_IXOTH != 1.
40829
40830         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40831         WOTH, XOTH, ALLM): New macros.
40832         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40833          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40834         Use them.
40835         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40836         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40837         (mode_compile):
40838         No need to use uintmax_t; unsigned long is long enough.
40839         Don't bother to get suffix since we don't use it.
40840
40841 2000-12-26  Jim Meyering  <meyering@lucent.com>
40842
40843         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40844         better with autoheader.
40845
40846 2000-12-24  Jim Meyering  <meyering@lucent.com>
40847
40848         * lib/hash.c (is_prime): Return explicit boolean values.
40849         (hash_get_first): Return NULL to appease Irix5.6's 89.
40850         Reported by Nelson Beebe.
40851
40852 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
40853
40854         * lib/localcharset.c (locale_charset): Add support for Win32.
40855
40856 2000-12-18  Paul Eggert  <eggert@twinsun.com>
40857
40858         * lib/physmem.h, lib/physmem.c: New files.
40859
40860         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
40861         (noinst_HEADERS): Add physmem.h.
40862
40863         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
40864         't' for compatibility with Solaris 8 sort.
40865
40866 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
40867
40868         * lib/config.charset: Add support for BeOS.
40869
40870 2000-12-17  Jim Meyering  <meyering@lucent.com>
40871
40872         * m4/dos.m4 (jm_AC_DOS): New file and macro.
40873         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
40874
40875 2000-12-16  Jim Meyering  <meyering@lucent.com>
40876
40877         This bug had a serious impact on chown: `chown N:M FILE' (for integer
40878         N and M) would have treated it like `chown N:N FILE'.
40879
40880         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
40881
40882 2000-12-16  Jim Meyering  <meyering@lucent.com>
40883
40884         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
40885         SHELLS_FILE to a file name that's useful on djgpp systems.
40886         Include stdlib.h.
40887         (ADDITIONAL_DEFAULT_SHELLS): Define.
40888         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
40889         Based mostly on a patch from Prashant TR.
40890
40891 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
40892
40893         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
40894         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
40895         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
40896
40897 2000-12-08  Andreas Schwab  <schwab@suse.de>
40898
40899         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
40900         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
40901
40902 2000-12-07  Jim Meyering  <meyering@lucent.com>
40903
40904         * lib/stripslash.c (ISSLASH): Define.
40905         (strip_trailing_slashes): Use ISSLASH rather than comparing against
40906         `/'.
40907         From Prashant TR.
40908
40909         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
40910         (dir_name_r): Declare this function as static.
40911         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
40912         manifest itself on a name containing a mix of slashes and
40913         backslashes.
40914         Make this function work with names starting with a DOS-style
40915         drive letter and colon prefix.
40916         (dir_name): Append `.' if necessary.
40917         Based mostly on patches from Prashant TR and Eli Zaretskii.
40918
40919         * lib/dirname.h (dir_name_r): Remove prototype.
40920
40921 2000-12-06  Paul Eggert  <eggert@twinsun.com>
40922
40923         * m4/off_t-format.m4: Remove this file.
40924         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
40925
40926 2000-12-06  Jim Meyering  <meyering@lucent.com>
40927
40928         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
40929         replacement strtoull, we may well need the replacement strtoul, too.
40930         Check for declarations of strtoul and strtoull.
40931         Check for strtol.  Mainly as a cue to cause automake to include
40932         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
40933         Check for limits.h -- strtol.c needs it.
40934
40935 2000-12-05  Jim Meyering  <meyering@lucent.com>
40936
40937         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
40938
40939 2000-12-04  Jim Meyering  <meyering@lucent.com>
40940
40941         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
40942         Also include memory.h, stdlib.h, unistd.h if appropriate.
40943         Reported by Andreas Jaeger (conflicting declaration of malloc).
40944
40945 2000-12-02  Jim Meyering  <meyering@lucent.com>
40946
40947         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
40948         * m4/jm-macros.m4 (jm_MACROS): require it.
40949
40950 2000-12-02  Jim Meyering  <meyering@lucent.com>
40951
40952         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
40953
40954 2000-12-01  Paul Eggert  <eggert@twinsun.com>
40955
40956         * lib/memrchr.c: Include <config.h> before any system include file.
40957
40958 2000-11-30  Jim Meyering  <meyering@lucent.com>
40959
40960         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
40961
40962 2000-11-30  Jim Meyering  <meyering@lucent.com>
40963
40964         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
40965
40966 2000-11-29  Paul Eggert  <eggert@twinsun.com>
40967
40968         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
40969
40970 2000-11-26  Jim Meyering  <meyering@lucent.com>
40971
40972         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
40973
40974 2000-11-22  Paul Eggert  <eggert@twinsun.com>
40975
40976         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
40977         size of (size_t) -1; it's not portable.
40978
40979 2000-11-17  Jim Meyering  <meyering@lucent.com>
40980
40981         * lib/strstr.c: Update from GNU libc.
40982
40983 2000-11-17  Akim Demaille  <akim@epita.fr>
40984
40985         * lib/obstack.h: Formatting changes.
40986         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
40987         prevent type checking.
40988         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
40989         cast the value to (void *): assigning a `foo *' to a `void *'
40990         variable is valid.
40991         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
40992
40993 2000-11-16  Jim Meyering  <meyering@lucent.com>
40994
40995         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
40996
40997 2000-11-11  Jim Meyering  <meyering@lucent.com>
40998
40999         * lib/error.c: Add a couple #includes, merging from GNU libc version.
41000
41001 2000-11-10  Jim Meyering  <meyering@lucent.com>
41002
41003         * lib/obstack.h: Update from GNU libc.
41004         * lib/obstack.c: Likewise.
41005
41006 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
41007
41008         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
41009
41010 2000-11-06  Paul Eggert  <eggert@twinsun.com>
41011
41012         * lib/getusershell.c (setusershell): Use rewind rather than
41013         fseek/fseeko, to avoid configuration hassles with fseeko.
41014         Don't bother opening SHELLS_FILE if shellstream is NULL;
41015         it's not necessary.
41016
41017 2000-11-05  Jim Meyering  <meyering@lucent.com>
41018
41019         * lib/makepath.h (make_dir): Declare.
41020         * lib/makepath.c (make_dir): Remove `static' attribute.
41021         Tweak a comment.
41022
41023 2000-11-04  Jim Meyering  <meyering@lucent.com>
41024
41025         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
41026
41027 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
41028
41029         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
41030         last one in a bucket, advance to the next bucket.
41031
41032 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
41033
41034         * lib/fnmatch.c: Do not comment out all the code if we are using
41035         the GNU C library, because in some cases we are replacing buggy
41036         code in the GNU C library itself.
41037
41038 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
41039
41040         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
41041         (regex_compile): Catch bogus \(\1\).
41042
41043 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41044
41045         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
41046         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
41047         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
41048
41049 2000-10-30  Paul Eggert  <eggert@twinsun.com>
41050
41051         * lib/error.h, getline.h, modechange.h:
41052         Remove "2000" from Copyright line, as the file hasn't been
41053         changed this year other than in the copyright notice.
41054
41055         * lib/xalloc.h: Add "2000" to Copyright line, as this file
41056         was changed this year.
41057
41058 2000-10-29  Jim Meyering  <meyering@lucent.com>
41059
41060         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
41061         renaming.
41062         * m4/ls-mntd-fs.m4: Likewise
41063
41064 2000-10-29  Jim Meyering  <meyering@lucent.com>
41065
41066         * lib/xstat.in: Fix grammar in comment.
41067
41068 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
41069
41070         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
41071         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
41072         doesn't define __restrict_arr.
41073
41074 2000-10-28  Jim Meyering  <meyering@lucent.com>
41075
41076         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
41077         (jm_PREREQ_MEMCHR): New function.
41078
41079 2000-10-28  Jim Meyering  <meyering@lucent.com>
41080
41081         * lib/memchr.c: Update from libc.
41082         Adjust for portability:
41083         [HAVE_STDLIB_H]: Include stdlib.h.
41084         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
41085         Undef __memchr, too.
41086         [!weak_alias]: Define __memchr to memchr.
41087
41088         * lib/regex.c: Update from libc.
41089         * lib/regex.h: Likewise.
41090         * lib/getopt1.c: Likewise.
41091         * lib/memcmp.c: Likewise.
41092
41093         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
41094         Avoid using fseek, when possible -- it's broken by design.
41095         Patch by Ulrich Drepper.
41096
41097 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
41098
41099         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
41100         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
41101         Giving in to popular pressure to shut up the compiler with casts.
41102
41103 2000-10-26  Jim Meyering  <meyering@lucent.com>
41104
41105         * lib/strftime.c: Update from libc.
41106
41107 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
41108
41109         * regex.c: More `unsigned char' -> `re_char' changes.
41110         Also change several `int' into `re_wchar_t'.
41111         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
41112         (PUSH_FAILURE_POINTER): Don't cast any more.
41113         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
41114         We want GCC to complain, since this piece of code makes
41115         re_match non-reentrant, which *should* be fixed.
41116         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
41117         (EXTEND_BUFFER): Use RETALLOC.
41118         (SET_LIST_BIT): Don't cast.
41119         (re_wchar_t): New type.
41120         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
41121         that those two functions will always properly return.
41122         (IMMEDIATE_QUIT_CHECK): Cast to void.
41123         (analyse_first): Use recursion rather than an explicit stack.
41124         (re_compile_fastmap): Can't fail anymore.
41125         (re_search_2): Don't check re_compile_fastmap for failure.
41126         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
41127         Now also sets the new value (passed in a new argument).
41128         (re_match_2_internal): Use it.
41129         Also, use a new var `reg' of type size_t when looping through regs
41130         rather than reuse the inappropriate `mcnt'.
41131
41132 2000-10-25  Jim Meyering  <meyering@lucent.com>
41133
41134         * lib/obstack.c: Update from libc.
41135
41136 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
41137
41138         * regex.c (regex_compile): Change the way of handling a range from
41139         a char less than 256 to a char not less than 256.
41140
41141 2000-10-24  Andrew Innes  <andrewi@gnu.org>
41142
41143         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
41144         NT-Emacs only.
41145         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
41146         so that re_search functions only quit when callers expect them to.
41147
41148 2000-10-23  Jim Meyering  <meyering@lucent.com>
41149
41150         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
41151         wrong.  That set_locale call must not have any side effects.
41152         From Paul Eggert.
41153
41154 2000-10-22  Jim Meyering  <meyering@lucent.com>
41155
41156         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
41157         [CYCLIC]: Remove now-unused definition.
41158
41159         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
41160         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
41161         Suggestion from Ulrich Drepper.
41162
41163 2000-10-21  Jim Meyering  <meyering@lucent.com>
41164
41165         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
41166         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
41167         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
41168
41169 2000-10-21  Jim Meyering  <meyering@lucent.com>
41170
41171         * lib/dirname.c (memrchr): Declare if necessary.
41172         (dir_name): Remove the restriction that there be no
41173         trailing slashes.  Now, this code skips past them, effectively
41174         ignoring them.
41175         [TEST_DIRNAME] (main): New unit tests.
41176
41177         * lib/memrchr.c: New file from GNU libc.
41178         Undef __memrchr, too.
41179         [!weak_alias]: Define __memrchr to memrchr.
41180         Guard weak_alias use with `#ifdef weak_alias'.
41181
41182 2000-10-21  Jim Meyering  <meyering@lucent.com>
41183
41184         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
41185         (dir_name): Use dir_name_r.
41186         * lib/dirname.h (dir_name_r): Declare it.
41187
41188 2000-10-17  Jim Meyering  <meyering@lucent.com>
41189
41190         * lib/quote.h (PARAMS): Define and use.
41191         Reported by Akim Demaille.
41192
41193         * lib/getopt.c: Update from libc.
41194
41195 2000-10-16  Jim Meyering  <meyering@lucent.com>
41196
41197         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
41198         setlocale.
41199         From Jan Fedak.
41200
41201 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
41202
41203         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
41204
41205 2000-09-25  Jim Meyering  <meyering@lucent.com>
41206
41207         * lib/md5.h (rol): Define (from GnuPG).
41208
41209         * lib/sha.c: Give credit (GnuPG) where due.
41210         (M): Use rol rather than open-coding it.
41211         Add a FIXME comment.
41212
41213 2000-09-21  Jim Meyering  <meyering@lucent.com>
41214
41215         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
41216         Reported by Michael Stone.
41217
41218 2000-09-20  Jim Meyering  <meyering@lucent.com>
41219
41220         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
41221         (noinst_HEADERS): Add sha.h.
41222         Based on code from Scott G. Miller and from GnuPG.
41223
41224 2000-09-18  Jim Meyering  <meyering@lucent.com>
41225
41226         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
41227         LIBS. Otherwise, everyone ends up linking with -lelf for some
41228         configurations.
41229         Reported by Mike Stone.
41230
41231 2000-09-15  Jim Meyering  <meyering@lucent.com>
41232
41233         * lib/regex.c: Update from libc.
41234
41235 2000-09-10  Jim Meyering  <meyering@lucent.com>
41236
41237         * lib/getopt.c (_getopt_internal): Update from glibc.
41238
41239 2000-09-09  Jim Meyering  <meyering@lucent.com>
41240
41241         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
41242         think it should be used as a general replacement for isascii.
41243         * lib/fnmatch.c: Likewise.
41244         * lib/mbswidth.c: Likewise
41245         * lib/regex.c: Likewise.
41246
41247         Don't use atoi.
41248         * lib/userspec.c: Include sys/param.h and limits.h.
41249         Include xstrtol.h.
41250         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41251         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
41252         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
41253         UID, GID.  Check range.
41254
41255 2000-09-06  Jim Meyering  <meyering@lucent.com>
41256
41257         * lib/getopt.c (_getopt_internal): Update from glibc.
41258
41259 2000-08-30  Jim Meyering  <meyering@lucent.com>
41260
41261         * lib/strftime.c: Merge in changes from GNU libc.
41262
41263 2000-08-26  Jim Meyering  <meyering@lucent.com>
41264
41265         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
41266         * m4/fpending.m4: New file.
41267
41268 2000-08-26  Jim Meyering  <meyering@lucent.com>
41269
41270         * lib/closeout.c: Include "__fpending.h".
41271         (close_stdout_status): Return right away if there's nothing to flush.
41272
41273         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
41274         * lib/__fpending.c: New file.
41275         * lib/__fpending.h: New file.
41276
41277 2000-08-20  Jim Meyering  <meyering@lucent.com>
41278
41279         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
41280         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
41281         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
41282
41283 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
41284
41285         Improve fileutils installation on systems where running
41286         programs (like install) can't be unlinked.
41287         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
41288         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
41289
41290 2000-08-07  Paul Eggert  <eggert@twinsun.com>
41291
41292         Standardize on "memory exhausted" instead of "Memory exhausted"
41293         or "virtual memory exhausted".
41294         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
41295         "virtual memory exhausted".
41296         * lib/same.c (same_name): Invoke xalloc_die instead of printing
41297         our own message.
41298         * lib/userspec.c (parse_user_spec): Likewise.
41299         * lib/bumpalloc.h: comment fix
41300         * lib/same.c, userspec.c: Include xalloc.h.
41301
41302         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
41303         not char *const and pointing to a constant array.
41304         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
41305         (xrealloc): Comment fix.
41306
41307         * lib/userspec.c (parse_user_spec):
41308         Don't translate a message until just before returning,
41309         to avoid unnecessary translation.
41310
41311 2000-08-07  Jim Meyering  <meyering@lucent.com>
41312
41313         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
41314         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
41315         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
41316         getgroups.c, gethostname.c, getopt.h, group-member.c,
41317         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
41318         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
41319         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
41320         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
41321         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
41322         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
41323         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
41324         yesno.c: Back out Copyright date changes for each file with no change
41325         this year.  This eases coordination with other programs using the same
41326         source code modules.  From Paul Eggert.
41327
41328 2000-08-06  Paul Eggert  <eggert@twinsun.com>
41329
41330         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
41331         not char, for compatibility with glibc 2.1.3 strftime.c.
41332
41333 2000-08-03  Greg McGary  <greg@mcgary.org>
41334
41335         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
41336         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
41337         (EXTEND_BUFFER): Use them.
41338
41339 2000-08-01  Jim Meyering  <meyering@lucent.com>
41340
41341         * lib/dirname.c (ISSLASH): Define.
41342         (BACKSLASH_IS_PATH_SEPARATOR): Define.
41343         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
41344         both `\' and `/' may be use as path separators.
41345         Based on a patch from Prashant TR.
41346
41347 2000-07-31  Paul Eggert  <eggert@twinsun.com>
41348
41349         * lib/quotearg.c (quotearg_n_options): Don't make the initial
41350         slot vector a constant, since it might get modified.
41351
41352 2000-07-31  Jim Meyering  <meyering@lucent.com>
41353
41354         * lib/xmalloc.c: Use `virtual memory exhausted', not
41355         `Memory exhausted'.
41356         * lib/obstack.c (print_and_abort): Likewise.
41357
41358 2000-07-30  Paul Eggert  <eggert@twinsun.com>
41359
41360         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
41361         buffer, so that the caller can always quote one small
41362         component of a "memory exhausted" message in slot 0.
41363         From a suggestion by Jim Meyering.
41364
41365 2000-07-30  Jim Meyering  <meyering@lucent.com>
41366
41367         * lib/makepath.c (make_path): Quote the other instance, too.
41368
41369         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
41370         (STATIC_BUF_SIZE): Define.
41371         (quotearg_n_options): Use only statically allocated storage when
41372         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
41373         than STATIC_BUF_SIZE.
41374
41375 2000-07-29  Jim Meyering  <meyering@lucent.com>
41376
41377         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
41378         * lib/dirname.c (dir_name): Likewise.
41379
41380         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
41381         `/'.
41382
41383         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
41384         (dir_name): Assert that there are no trailing slashes.
41385
41386 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
41387
41388         * lib/mbswidth.h (mbswidth): Add a flags argument.
41389         (mbswidth): New declaration.
41390         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
41391         * lib/mbswidth.c (mbswidth): Add a flags argument.
41392         (mbsnwidth): New function.
41393
41394 2000-07-24  Jim Meyering  <meyering@lucent.com>
41395
41396         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
41397
41398 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41399
41400         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
41401
41402 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41403
41404         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
41405         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
41406         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
41407         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
41408         invoke multibyte primitives.
41409
41410 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41411
41412         * lib/quotearg.c:
41413         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
41414         so that mbstate_t is always defined.
41415
41416         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
41417         be 1 in at least one GCC installation, and this configuration
41418         error is likely to be common.  Ignoring MB_LEN_MAX hurts
41419         performance on hosts that have mbrtowc but have only unibyte
41420         locales, but I assume these hosts are rare.
41421
41422 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41423
41424         * lib/mbswidth.c (_XOPEN_SOURCE):
41425         Don't define; this causes problems on Solaris 7.
41426         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41427
41428 2000-07-23  Jim Meyering  <meyering@lucent.com>
41429
41430         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41431         too: getgrgid, getpwuid, getuid.
41432
41433 2000-07-23  Jim Meyering  <meyering@lucent.com>
41434
41435         * lib/basename.c (base_name): Add an assertion.
41436
41437 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41438
41439         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41440         shadow its mbsinit function.
41441
41442 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41443
41444         * lib/mbswidth.h: New file.
41445         * lib/mbswidth.c: New file.
41446         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41447         (noinst_HEADERS): Add mbswidth.h.
41448
41449 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41450
41451         * lib/config.charset: Add support for FreeBSD. Improve support for
41452         HP-UX and IRIX 6.
41453
41454 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41455
41456         * m4/mbswidth.m4: New file.
41457         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41458
41459 2000-07-15  Jim Meyering  <meyering@lucent.com>
41460
41461         * lib/makepath.c: Include quote.h.
41462         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41463         corresponding argument in a `quote (...)' call.
41464         Give better diagnostics.
41465
41466         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41467         (noinst_HEADERS): Add quote.h.
41468
41469         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41470         from tar's src/misc.c.
41471         * lib/quote.h: New file.  Prototypes for same.
41472
41473 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41474
41475         From a suggestion by Bruno Haible.
41476         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41477         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41478         to decide whether to define the BeOS workaround macro;
41479         this adjusts to the change to AC_MBSTATE_T.
41480
41481 2000-07-14  Jim Meyering  <meyering@lucent.com>
41482
41483         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41484         jm_AC_TYPE_UINTMAX_T.
41485
41486 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41487
41488         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41489
41490         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41491         quotearg_buffer_restyled): Add support for
41492         clocale_quoting_style.  Undo previous change to
41493         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41494         and "{RIGHT QUOTATION MARK}" msgids.
41495
41496 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41497
41498         From a suggestion by Bruno Haible.
41499         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41500         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41501         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41502         and mbstate_t, to a single-part test that simply defines mbstate_t.
41503         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41504         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41505
41506 2000-07-10  Jim Meyering  <meyering@lucent.com>
41507
41508         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41509
41510         * m4/gnu-source.m4: Output to confdefs.h directly.
41511         Suggestion from Akim Demaille.
41512
41513 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41514
41515         The old behavior of quoting `like this' doesn't look good with
41516         newer, ISO-style fonts.  See:
41517         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41518
41519         Instead, quote "like this" by default.  Let the translator
41520         tailor the locale-specific quoting behavior by providing
41521         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
41522
41523         * lib/quotearg.c (N_): New macro.
41524         (gettext_default): New function.
41525         (quotearg_buffer_restyled): Use
41526         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
41527         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
41528
41529 2000-07-09  Jim Meyering  <meyering@lucent.com>
41530
41531         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
41532         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
41533
41534         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
41535         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
41536
41537 2000-07-09  Jim Meyering  <meyering@lucent.com>
41538
41539         * lib/Most files: Update copyright dates to include 2000.
41540
41541 2000-07-08  Jim Meyering  <meyering@lucent.com>
41542
41543         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41544         if not defined.
41545         (xgethostname): Remove now-unnecessary #ifdef.
41546         Move declaration of `err' into loop where it's used.
41547
41548 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41549         and Bruno Haible  <haible@clisp.cons.org>
41550
41551         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41552         only if the test for an object-type mbstate_t fails.  This
41553         prevents us from mistakenly reporting that mbstate_t is a
41554         system object type after we "#define mbstate_t int" to work
41555         around its lack.
41556
41557 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41558         and Bruno Haible  <haible@clisp.cons.org>
41559
41560         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
41561
41562 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41563
41564         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
41565         to strerror_r.
41566         Include <ctype.h> for use of isalpha.
41567
41568 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41569
41570         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
41571         by allocating a larger buffer. Test the gethostname return value for
41572         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
41573         returns an error and ENAMETOOLONG isn't defined.
41574
41575 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41576
41577         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
41578         dimension.
41579
41580 2000-07-04  Jim Meyering  <meyering@lucent.com>
41581
41582         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
41583         of the deprecated AC_CHECKING.
41584
41585 2000-07-04  Jim Meyering  <meyering@lucent.com>
41586
41587         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
41588         Reported by Bruno Haible.
41589
41590 2000-07-04  Jim Meyering  <meyering@lucent.com>
41591
41592         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
41593         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
41594         lacks mbrtowc.
41595
41596 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41597
41598         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
41599         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
41600
41601 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41602         and Bruno Haible  <haible@clisp.cons.org>
41603
41604         * lib/quotearg.c (mbrtowc):
41605         Assign to *pwc, and return 1 only if result is nonzero.
41606         (iswprint): Use ISPRINT when substituting our own mbrtowc.
41607
41608 2000-07-03  Jim Meyering  <meyering@lucent.com>
41609
41610         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
41611
41612 2000-07-03  Jim Meyering  <meyering@lucent.com>
41613
41614         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
41615         This is necessary to get a definition of e.g., UTMP_FILE on
41616         HP-UX 10.20.
41617         From Bob Proulx.
41618
41619 2000-07-02  Jim Meyering  <meyering@lucent.com>
41620
41621         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
41622
41623         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
41624         AC_LIBOBJ(function_name).
41625         * m4/chown.m4: Likewise.
41626         * m4/fnmatch.m4: Likewise.
41627         * m4/ftruncate.m4: Likewise.
41628         * m4/getgroups.m4: Likewise.
41629         * m4/getline.m4: Likewise.
41630         * m4/group-member.m4: Likewise.
41631         * m4/jm-macros.m4: Likewise.
41632         * m4/lstat.m4: Likewise.
41633         * m4/malloc.m4: Likewise.
41634         * m4/memcmp.m4: Likewise.
41635         * m4/nanosleep.m4: Likewise.
41636         * m4/putenv.m4: Likewise.
41637         * m4/realloc.m4: Likewise.
41638         * m4/regex.m4: Likewise.
41639         * m4/stat.m4: Likewise.
41640         * m4/strftime.m4: Likewise.
41641
41642 2000-07-02  Jim Meyering  <meyering@lucent.com>
41643
41644         * lib/quotearg.c (mbstate_t): Don't define here.
41645
41646 2000-07-02  Jim Meyering  <meyering@lucent.com>
41647
41648         * lib/nanosleep.c (SIGCONT): Define if not already defined.
41649
41650 2000-07-01  Jim Meyering  <meyering@lucent.com>
41651
41652         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
41653
41654 2000-07-01  Jim Meyering  <meyering@lucent.com>
41655
41656         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
41657         problem.
41658
41659 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41660
41661         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
41662         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
41663
41664 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41665
41666         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
41667         per change in ../m4/ls-mntd-fs.m4.
41668         (read_filesystem_list): Ignore symbolic links.
41669
41670 2000-06-29  Jim Meyering  <meyering@lucent.com>
41671
41672         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
41673         for declaration of strcmp.
41674
41675         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
41676
41677         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
41678         Avoid warning by casting result to `char *' to remove `const'.
41679
41680 2000-06-28  Jim Meyering  <meyering@lucent.com>
41681
41682         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
41683         included by quotearg.c, for which we perform this test.  From
41684         Bruno Haible.
41685
41686 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41687
41688         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
41689         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
41690         <utmpx.h> exists, put readutmp.o into LIBOBJS.
41691
41692 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41693
41694         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
41695
41696 2000-06-26  Paul Eggert  <eggert@twinsun.com>
41697
41698         savedir now sets errno on failure and invokes xmalloc to get memory.
41699         Fix a couple of other minor bugs while we're at it.
41700
41701         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
41702         (NAMLEN): Remove macro.
41703         (malloc, realloc): Remove decls.
41704         (stpcpy): Likewise.
41705         ("xalloc.h"): Include.
41706         (NAME_SIZE_DEFAULT): New macro.
41707         (savedir): Use xmalloc / xrealloc to allocate memory.
41708         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
41709         Skip "" directory entries.
41710         Use strlen to calculate directory entry length, since the old method
41711         is rarely used these days and isn't worth supporting.
41712         Don't use a pointer after freeing it.
41713         Check for integer overflow when calculating allocation size.
41714         Use memcpy to copy entries, instead of stpcpy.
41715         Set errno properly when returning NULL.
41716         Check for readdir error.
41717
41718 2000-06-26  Jim Meyering  <meyering@lucent.com>
41719
41720         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
41721
41722 2000-06-25  Jim Meyering  <meyering@lucent.com>
41723
41724         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
41725         Linux header bug when _XOPEN_SOURCE is defined to 500.
41726
41727 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41728
41729         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
41730         deficiency.
41731
41732 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41733
41734         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
41735         Include xalloc.h.
41736         Don't include <stdlib.h>.  Don't declare malloc, realloc.
41737
41738 2000-06-24  Jim Meyering  <meyering@lucent.com>
41739
41740         * m4/strerror_r.m4: Revive this file -- to try out an experimental
41741         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
41742         for which strerror does return char*, but which lacks a conveniently
41743         accessible declaration of the function.  If the compile-test says
41744         strerror_r doesn't work, then resort to a `run'-test that works on
41745         BeOS and segfaults on DEC Unix.
41746
41747 2000-06-24  Jim Meyering  <meyering@lucent.com>
41748
41749         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
41750
41751 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41752
41753         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
41754         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
41755
41756 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41757
41758         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
41759         (mbrtowc, mbstate_t): Define substitutes if
41760         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
41761         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
41762         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
41763
41764 2000-06-23  Jim Meyering  <meyering@lucent.com>
41765
41766         * m4/afs.m4: Add missing AC_MSG_RESULT.
41767         Reported by Bruno Haible.
41768
41769         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
41770         Suggestion from Bruno Haible.
41771
41772 2000-06-23  Jim Meyering  <meyering@lucent.com>
41773
41774         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
41775
41776 2000-06-21  Jim Meyering  <meyering@lucent.com>
41777
41778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
41779
41780 2000-06-21  Jim Meyering  <meyering@lucent.com>
41781
41782         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
41783         (noinst_HEADERS): Add getstr.h.
41784
41785         * lib/getline.c (getstr): Move into a separate file.
41786         * lib/getstr.c (getstr): New file, extracted from getline.c, with
41787         the following changes: new parameter, delim2; both delim[12]
41788         parameters have type `int', not `char'.  The latter would lose
41789         with 8-bit delimiters.
41790         * lib/getstr.h: New file.
41791
41792 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41793
41794         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
41795         than 1024, return a memory chunk of least possible size, instead
41796         of size PATH_MAX + 2. In the loop, increment the size proportionally.
41797         Use free/xmalloc instead of xrealloc to avoid copying for very long
41798         paths.
41799
41800 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41801
41802         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
41803         the empty string.
41804
41805 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41806
41807         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
41808         address, not strdup.  Include <stdlib.h> and don't declare free().
41809
41810 2000-06-19  Jim Meyering  <meyering@lucent.com>
41811
41812         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
41813
41814 2000-06-18  Jim Meyering  <meyering@lucent.com>
41815
41816         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
41817
41818         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
41819         `checking whether...' message to be consistent with that of the
41820         lstat test.
41821
41822 2000-06-18  Jim Meyering  <meyering@lucent.com>
41823
41824         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
41825         Besides, these days every porting target provides a mkdir function.
41826
41827         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
41828         needed. (this snippet comes from src/system.h).
41829
41830 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41831
41832         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41833
41834 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41835
41836         * lib/human.c (adjust_value): New function.
41837         (human_readable_inexact): Apply rounding style even when
41838         printing approximate values.
41839
41840 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41841
41842         * lib/human.c (human_readable_inexact): Allow an input block
41843         size that is not a multiple of the output block size, and vice versa.
41844         Reported by Piergiorgio Sartor.
41845
41846 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41847
41848         * lib/getdate.y (get_date): Apply relative times after time
41849         zone indicator, not before.  Reported by Todd A. Jacobs.
41850
41851 2000-06-13  Jim Meyering  <meyering@lucent.com>
41852
41853         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
41854
41855         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
41856
41857 2000-06-12  Paul Eggert  <eggert@twinsun.com>
41858
41859         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
41860
41861 2000-06-12  Jim Meyering  <meyering@lucent.com>
41862
41863         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
41864         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
41865         optional argument.
41866         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
41867         the optional argument, `lib'.
41868
41869 2000-06-08  Jim Meyering  <meyering@lucent.com>
41870
41871         * m4/largefile.m4: Remove file (now that it's part of autoconf).
41872
41873 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41874
41875         Rewrite largefile configuration so that we don't need to run
41876         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
41877         AC_CANONICAL_HOST in configure.in -- jmm]
41878
41879         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
41880         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
41881         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
41882         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
41883         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
41884         All uses changed.
41885         Instead of inspecting the output of getconf, try to compile the
41886         test program without and with the macro definition.
41887         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
41888         for getconf.  Instead, check for the needed flags by compiling
41889         test programs.
41890
41891 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41892
41893         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
41894
41895 2000-06-04  Jim Meyering  <meyering@lucent.com>
41896
41897         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
41898         SunOS 4.1.4 for which gid_t is an unsigned type.
41899
41900 2000-06-03  Jim Meyering  <meyering@lucent.com>
41901
41902         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
41903         now that autoconf requires that.
41904
41905         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
41906         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
41907         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
41908
41909 2000-06-03  Jim Meyering  <meyering@lucent.com>
41910
41911         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
41912
41913 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41914
41915         * m4/glibc21.m4: New file.
41916         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
41917
41918 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41919
41920         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
41921         newer, don't install charset.alias.
41922         * lib/config.charset: Change the Linux/glibc rules so they become empty
41923         on glibc-2.1 or newer.
41924
41925 2000-06-02  Jim Meyering  <meyering@lucent.com>
41926
41927         * lib/mountlist.c: Back out last change.  Instead, do this...
41928         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
41929         me_dummy member using the same `ignore'-testing code.
41930         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
41931         fs_type strings.
41932         From Mark D. Roth.
41933
41934 2000-05-29  Jim Meyering  <meyering@lucent.com>
41935
41936         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
41937         mounts with the `ignore' attribute.  Based on a patch from
41938         Mark D. Roth.
41939
41940 2000-05-28  Jim Meyering  <meyering@lucent.com>
41941
41942         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
41943         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41944         * m4/stat.m4: Likewise.
41945         * m4/lstat.m4: Likewise.
41946         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
41947
41948         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
41949         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
41950
41951 2000-05-26  Jim Meyering  <meyering@lucent.com>
41952
41953         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
41954
41955 2000-05-24  Jim Meyering  <meyering@lucent.com>
41956
41957         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
41958         autoconf requires that.
41959         * m4/lib-check.m4: Likewise.
41960         * m4/jm-macros.m4: Likewise.
41961         * m4/strftime.m4: Likewise.
41962
41963         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
41964         AC_CHECK_DECLS, now that autoconf requires that.
41965
41966 2000-05-22  Jim Meyering  <meyering@lucent.com>
41967
41968         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41969         * m4/lstat.m4: Likewise.
41970
41971 2000-05-22  Jim Meyering  <meyering@lucent.com>
41972
41973         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
41974
41975 2000-05-20  Jim Meyering  <meyering@lucent.com>
41976
41977         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
41978         (jm_PREREQ): Use it.
41979
41980 2000-05-18  Jim Meyering  <meyering@lucent.com>
41981
41982         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
41983         back, too, since it may have been modified by allocate_entry.
41984         (hash_delete): Rewrite to use neither the assignment operator
41985         nor the comma operator in an if-expression.
41986
41987 2000-05-15  Paul Eggert  <eggert@twinsun.com>
41988
41989         * lib/closeout.c:
41990         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
41991         Remove; no longer needed.
41992         "quotearg.h": Add include.
41993         (file_name): Do not bother to explicitly initialize to NULL; it's less
41994         efficient on some hosts.
41995         (close_stdout_status): Remove test as to whether stdout was already
41996         closed; it breaks for the case "echo x | sort >&-".
41997         Quote file name colons.
41998         Do not assume that _("write error") lacks format strings.
41999
42000 2000-05-15  Jim Meyering  <meyering@lucent.com>
42001
42002         * lib/version-etc.c (version_etc_copyright): Update the copyright
42003         string used in all --version output.
42004
42005 2000-05-14  Jim Meyering  <meyering@lucent.com>
42006
42007         * lib/closeout.c (close_stdout_set_file_name): New function.
42008         (close_stdout_status): Use new file-scoped global.
42009         Return right away if fstat says the stdout file descriptor is invalid.
42010         * lib/closeout.h (close_stdout_set_file_name): Declare.
42011
42012 2000-05-10  Jim Meyering  <meyering@lucent.com>
42013
42014         * lib/closeout.c [default_exit_status]: New file-scoped variable.
42015         (close_stdout_set_status): New function.
42016         * lib/closeout.h (close_stdout_set_status): Declare.
42017
42018 2000-05-09  Jim Meyering  <meyering@lucent.com>
42019
42020         * m4/gettext.m4: Rename this...
42021         * m4/libintl.m4: ...to this.
42022
42023 2000-05-08  Jim Meyering  <meyering@lucent.com>
42024
42025         * lib/long-options.c: Don't include closeout.h.
42026         (parse_long_options): Don't call close_stdout for --version.
42027
42028 2000-05-06  Paul Eggert  <eggert@twinsun.com>
42029
42030         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
42031         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
42032         2.1.3 bug.  This avoids a clash when files like regex.c define
42033         _GNU_SOURCE.
42034
42035 2000-05-06  Jim Meyering  <meyering@lucent.com>
42036
42037         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
42038         (AC_REPLACE_FUNCS): Add strnlen.
42039
42040         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
42041         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
42042
42043         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
42044         AC_SEARCH_LIBS call for nanosleep.
42045         (LIB_NANOSLEEP): Set and AC_SUBST.
42046
42047 2000-05-06  Jim Meyering  <meyering@lucent.com>
42048
42049         * lib/strnlen.c: Undefine __strnlen and strnlen.
42050         [!weak_alias]: Define __strnlen to strnlen.
42051
42052         * lib/atexit.c: New file, from libiberty.
42053
42054 2000-05-06  Jim Meyering  <meyering@lucent.com>
42055
42056         * lib/closeout.c (close_stdout_status): Also check for errors on the
42057         stderr stream.
42058
42059 2000-05-05  Jim Meyering  <meyering@lucent.com>
42060
42061         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
42062         AC_SEARCH_LIBS call for clock_gettime.
42063         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
42064
42065         * m4/search-libs.m4: Update from autoconf.
42066
42067         su doesn't work on Solaris 2.6.
42068         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
42069         <shadow.h>.  Reported by Dragos Harabor.
42070
42071 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
42072
42073         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
42074         memcpy instead of xmalloc, xrealloc, path_concat.
42075         (locale_charset): Treat empty environment variables as absent.
42076         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
42077
42078 2000-05-04  Jim Meyering  <meyering@lucent.com>
42079
42080         * lib/getopt.c: Update from glibc.
42081         * lib/obstack.c: Likewise.
42082         * lib/obstack.h: Likewise.
42083         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
42084         file
42085
42086         * lib/regex.h: Likewise.
42087         * lib/strndup.c: Likewise.
42088         * lib/strnlen.c: New file, from glibc.
42089
42090 2000-05-03  Jim Meyering  <meyering@lucent.com>
42091
42092         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
42093
42094 2000-05-02  Paul Eggert  <eggert@twinsun.com>
42095
42096         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
42097         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
42098         compile-time test, rather than inspecting host and OS, to
42099         decide whether to define _LARGEFILE_SOURCE.
42100
42101 2000-05-01  Jim Meyering  <meyering@lucent.com>
42102
42103         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
42104
42105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
42106         Based on a patch from Bruno Haible.
42107
42108 2000-05-01  Jim Meyering  <meyering@lucent.com>
42109
42110         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
42111
42112 2000-04-29  Jim Meyering  <meyering@lucent.com>
42113
42114         * lib/path-concat.c: Declare strdup only if it's not defined.
42115         * lib/canon-host.c: Likewise.
42116
42117 2000-04-28  Jim Meyering  <meyering@lucent.com>
42118
42119         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
42120         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
42121         is included first, then limits.h is included by locale.h by libintl.h.
42122         From John David Anglin.
42123
42124 2000-04-25  Jim Meyering  <meyering@lucent.com>
42125
42126         * lib/makepath.c (S_IRWXUGO): Define.
42127         (make_path): Always perform explicit chmod if MODE specifies any
42128         of the `special' permission bits.  Prompted by a bug report against
42129         install from Mate Wierdl and Joost van Baal.
42130
42131 2000-04-18  Jim Meyering  <meyering@lucent.com>
42132
42133         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
42134         (jm_PREREQ): Use it.
42135
42136 2000-04-18  Jim Meyering  <meyering@lucent.com>
42137
42138         * lib/README: New file.
42139
42140         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
42141         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
42142
42143 2000-04-17  Jim Meyering  <meyering@lucent.com>
42144
42145         Get it right :-)
42146         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
42147         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
42148         Suggestion from Akim Demaille.
42149
42150 2000-04-17  Jim Meyering  <meyering@lucent.com>
42151
42152         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
42153         the definition of it to rpl_strftime also defined-away the system's
42154         declaration.
42155
42156 2000-04-15  Jim Meyering  <meyering@lucent.com>
42157
42158         Use `C' to denote so-called `contiguous' files, the same way
42159         that tar does.
42160         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
42161         (ftypelet): Use S_ISCTG.
42162         From Michael Deutschmann.
42163
42164 2000-04-14  Jim Meyering  <meyering@lucent.com>
42165
42166         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
42167         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
42168         clobbered.
42169
42170 2000-04-14  Jim Meyering  <meyering@lucent.com>
42171
42172         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
42173
42174 2000-04-13  Jim Meyering  <meyering@lucent.com>
42175
42176         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
42177         AH_VERBATIM to insert required #ifndef into config.h.in.
42178         Suggestion from Akim Demaille.
42179
42180 2000-04-12  Jim Meyering  <meyering@lucent.com>
42181
42182         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
42183         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
42184         Christian Krackowizer.
42185
42186         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
42187         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
42188         (AC_SYS_LARGEFILE): Require.
42189         (AM_C_PROTOTYPES): Require.
42190
42191 2000-04-08  Jim Meyering  <meyering@lucent.com>
42192
42193         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
42194         names don't conflict.  Reported by Eli Zaretskii.
42195
42196 2000-04-07  Jim Meyering  <meyering@lucent.com>
42197
42198         * lib/putenv.c: Move inclusion of errno.h so it follows that of
42199         sys/types.h, to work around system header problems on AIX 3.2.5.
42200         From Bruno Haible.
42201
42202 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
42203
42204         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
42205         bug.  Deal with the different error behavior of Irix iconv.
42206
42207 2000-04-05  Paul Eggert  <eggert@twinsun.com>
42208
42209         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
42210         IRIX if the installer said otherwise.
42211
42212 2000-04-05  Jim Meyering  <meyering@lucent.com>
42213
42214         Portability tweaks required for ultrix4.3.
42215         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
42216         (jm_CHECK_DECLS): Add getutent to the list of functions.
42217         (_jm_DECL_HEADERS): Add utmpx.h.
42218         From John David Anglin.
42219
42220         * m4/strftime.m4: Back out the 2000-04-02 change.
42221         Instead of that change, simply undefine putenv in the test program.
42222
42223 2000-04-05  Jim Meyering  <meyering@lucent.com>
42224
42225         Portability tweaks required for ultrix4.3.
42226         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
42227         getutent.
42228         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
42229         * lib/canon-host.c: Declare strdup.
42230         * lib/path-concat.c: Likewise.
42231         From John David Anglin.
42232
42233 2000-04-04  Jim Meyering  <meyering@lucent.com>
42234
42235         Be more DOS 8.3-friendly.
42236         * lib/ref-add.sin: Renamed from ref-add.sed.in.
42237         * lib/ref-del.sin: Renamed from ref-del.sed.in.
42238         * lib/Makefile.am: Reflect renaming.
42239         Reported by Eli Zaretskii.
42240
42241         Use a temporary file name that won't clash with `charset.alias'
42242         in the DOS 8.3 name space.
42243         * lib/Makefile.am (charset_tmp): Define.
42244         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
42245         (uninstall-local): Likewise.
42246         Reported by Eli Zaretskii.
42247
42248 2000-04-03  Jim Meyering  <meyering@lucent.com>
42249
42250         * m4/gettext.m4: Fix typo in comment.
42251
42252         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
42253         textutils/configure.in).  Suggestion from Paul Eggert.
42254         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
42255
42256 2000-04-02  Paul Eggert  <eggert@twinsun.com>
42257
42258         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
42259         variable in the shell rather than using putenv, which isn't
42260         portable.  This avoids the configure-time inter-test dependency
42261         on the potentially-renamed putenv function.
42262
42263 2000-03-30  Paul Eggert  <eggert@twinsun.com>
42264
42265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
42266         before checking struct stat.st_blksize, so that
42267         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
42268
42269 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42270
42271         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
42272         since strftime.c uses HAVE_STRFTIME to decide whether to use
42273         the underlying strftime.
42274
42275 2000-03-29  Paul Eggert  <eggert@twinsun.com>
42276
42277         * lib/time/strftime.c (my_strftime): Make sure we call the system
42278         strftime, not ourselves, when invoking the underlying strftime.
42279
42280 2000-03-24  Jim Meyering  <meyering@lucent.com>
42281
42282         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
42283         (charset_alias): Define.
42284         (install-exec-local): Factor out common code.
42285         (uninstall-local): Split lines longer than 80.
42286         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
42287         (SUFFIXES): Define.
42288         (.sed.in.sed): New rule.  Don't redirect directly to $@.
42289         (CLEANFILES): Add ref-add.sed and ref-del.sed.
42290
42291 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
42292
42293         * lib/config.charset: Output a line containing "Packages using this
42294         file".
42295         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
42296         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
42297         ref-del.sed): New rules.
42298
42299 2000-03-17  Jim Meyering  <meyering@lucent.com>
42300
42301         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
42302         Otherwise, include <strings.h>
42303
42304 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
42305
42306         * lib/unicodeio.c (utf8_wctomb): New function.
42307         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
42308         format instead of in UCS-4 with platform dependent endianness.
42309
42310 2000-03-10  Jim Meyering  <meyering@lucent.com>
42311
42312         * m4/lib-check.m4: Look for getspnam in -lgen, too.
42313         From Marco Franzen.
42314
42315 2000-03-07  Paul Eggert  <eggert@twinsun.com>
42316
42317         * lib/savedir.c (savedir): Work even if directory size is
42318         negative; this can happen with some screwy NFS configurations.
42319
42320 2000-03-06  Jim Meyering  <meyering@lucent.com>
42321
42322         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
42323         if it's NULL (because we ran out of memory).  From Bruno Haible.
42324
42325 2000-03-05  Jim Meyering  <meyering@lucent.com>
42326
42327         * lib/localcharset.c ("path-concat.h"): Include.
42328         (get_charset_aliases): Use path_concat instead of ANSI string
42329         concatenation.
42330
42331         * lib/unicodeio.h (PARAMS): Define.
42332         Use it to guard prototype.
42333
42334 2000-03-04  Jim Meyering  <meyering@lucent.com>
42335
42336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
42337         for lib/localcharset.c.
42338
42339 2000-03-04  Jim Meyering  <meyering@lucent.com>
42340
42341         * lib/Makefile.am (install-exec-local): Create $(libdir) before
42342         installing into it.
42343         (uninstall-local): Uncomment this rule so `make distcheck' works
42344         once again.
42345
42346         * lib/unicodeio.c (<errno.h>): Include it.
42347         (errno): Declare if not defined.
42348
42349         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
42350
42351         * lib/config.charset: New version, incorporating remarks from a linux
42352         i18n mailing list.  From Bruno Haible.
42353
42354 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
42355
42356         * m4/codeset.m4: New file.
42357         * m4/iconv.m4: New file.
42358         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
42359
42360 2000-03-03  Jim Meyering  <meyering@lucent.com>
42361
42362         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
42363
42364 2000-03-02  Jim Meyering  <meyering@lucent.com>
42365
42366         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
42367         the messages come out on separate lines.
42368
42369         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
42370         rather than jm_CHECK_DECLARATIONS.
42371         * m4/decl.m4: Remove now-unused file.
42372
42373         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
42374         geteuid.
42375
42376 2000-03-02  Jim Meyering  <meyering@lucent.com>
42377
42378         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
42379
42380 2000-03-01  Jim Meyering  <meyering@lucent.com>
42381
42382         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
42383         * lib/unicodeio.c: Likewise.
42384
42385 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
42386
42387         * lib/config.charset: New file.
42388         * lib/localcharset.c: New file.
42389         * lib/unicodeio.h, lib/unicodeio.c: New files.
42390         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
42391         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
42392         (noinst_HEADERS): Add unicodeio.h.
42393         (all-local, install-exec-local, charset.alias): New targets.
42394
42395 2000-02-28  Paul Eggert  <eggert@twinsun.com>
42396
42397         * lib/quotearg.c (ALERT_CHAR): New macro.
42398         (quotearg_buffer_restyled): Use it.
42399
42400 2000-02-27  Jim Meyering  <meyering@lucent.com>
42401
42402         * m4/check-decl.m4: Add getenv to the list.
42403
42404 2000-02-27  Jim Meyering  <meyering@lucent.com>
42405
42406         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
42407         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
42408
42409         * lib/backupfile.c: Guard inclusion of stdlib.h with
42410         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
42411         Declare malloc if needed.
42412
42413         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
42414         `#ifndef HAVE_DECL..'
42415         now that autoconf always defines the HAVE_DECL_ symbols.
42416         * lib/human.c: Likewise.
42417         * lib/same.c: Likewise.
42418         * lib/strtoumax.c: Likewise.
42419
42420         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42421         declaration check was not run.
42422         * lib/hash.c: Likewise.
42423         * lib/human.c: Likewise.
42424         * lib/same.c: Likewise.
42425         * lib/strtoumax.c: Likewise.
42426
42427         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42428         `.', then first look up the entire `.'-containing string as a login
42429         name.
42430
42431 2000-02-23  Jim Meyering  <meyering@lucent.com>
42432
42433         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42434         in place of my hack.
42435
42436 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42437
42438         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42439         (textint): New typedef.
42440         (parser_control): Member year changed from int to textint.
42441         All uses changed.
42442         (YYSTYPE): Removed; replaced by %union with int and textint members.
42443         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42444         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42445         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42446         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42447         (date, number, to_year): Use width of number in digits, not its value,
42448         to determine whether it's a 2-digit year, or a 2-digit time.
42449         (yylex): Store number of digits of numeric tokens.
42450         Reported by John Kendall.
42451
42452         (parser_control): Changed from struct parser_control to typedef (for
42453         consistency).  All uses changed.
42454
42455         (tID): Removed; not used.
42456         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42457
42458 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42459
42460         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42461         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42462
42463 2000-02-12  Jim Meyering  <meyering@lucent.com>
42464
42465         * lib/userspec.c (ISDIGIT): Define it.
42466         (isdigit): Remove definition.
42467         (is_number): Use ISDIGIT, not isdigit.
42468         <libintl.h>: Include.
42469         (_ and N_): Define.
42470         (parse_user_spec): Mark translatable strings.
42471
42472 2000-02-10  Jim Meyering  <meyering@lucent.com>
42473
42474         With these changes, nanosleep.[ch] are finally enough like the other
42475         lib/* replacement files to compile on a few more losing systems.
42476
42477         * lib/nanosleep.h: Don't include config.h.
42478         Remove prototype from declaration of nanosleep.
42479         (PARAMS): Remove now-unneeded definition.
42480         * lib/nanosleep.c: #undef nanosleep.
42481         (rpl_nanosleep): Rename from nanosleep.
42482
42483 2000-02-10  Jim Meyering  <meyering@lucent.com>
42484
42485         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42486         gnu_nanosleep to rpl_nanosleep.
42487
42488 2000-02-09  Jim Meyering  <meyering@lucent.com>
42489
42490         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42491         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42492
42493 2000-02-08  Akim Demaille  <akim@epita.fr>
42494
42495         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42496         `[' and `]' and remove uses of `changequote'.
42497         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42498         (AC_SYS_LARGEFILE): Likewise.
42499         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42500         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42501         of changequote.
42502         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42503         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42504         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42505         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42506
42507 2000-02-05  Jim Meyering  <meyering@lucent.com>
42508
42509         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42510         Remove explicit use of AC_HEADER_TIME.  It is required by
42511         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42512         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42513         in autoconf whereby the expansion of the latter ended up preceding
42514         the expansion of its prerequisite, AC_HEADER_TIME.
42515         Reported by Volker Borchert.
42516
42517 2000-02-03  Jim Meyering  <meyering@lucent.com>
42518
42519         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
42520
42521 2000-02-03  Jim Meyering  <meyering@lucent.com>
42522
42523         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
42524         rather than with `#if HAVE_UTMPNAME'.
42525
42526 2000-02-02  Jim Meyering  <meyering@lucent.com>
42527
42528         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
42529         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
42530         Reported by Eli Zaretskii.
42531
42532 2000-02-01  Jim Meyering  <meyering@lucent.com>
42533
42534         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
42535
42536 2000-01-31  Jim Meyering  <meyering@lucent.com>
42537
42538         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42539         functions.  Add the time.h and sys/time.h headers along with the
42540         AC_REQUIRE'ment of AC_HEADER_TIME.
42541
42542 2000-01-31  Jim Meyering  <meyering@lucent.com>
42543
42544         * lib/nanosleep.h (nanosleep): Guard declaration with
42545         `#if ! HAVE_DECL_NANOSLEEP'.
42546         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42547         the declaration in that vendor's sys/timers.h.
42548         Reported by Christian Krackowizer.
42549
42550         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42551         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42552         (ISPRINT): Likewise.
42553         Reported by Tom Tromey.
42554
42555 2000-01-30  Jim Meyering  <meyering@lucent.com>
42556
42557         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
42558
42559         * m4/prereq.m4 (utmp_includes): Define.
42560         Check for ut_user and ut_name members in both struct utmpx
42561         and struct utmp.
42562
42563 2000-01-30  Jim Meyering  <meyering@lucent.com>
42564
42565         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
42566         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
42567         header files where only utmpx.ut_user is declared.
42568
42569         * lib/readutmp.h (UT_USER): Define.
42570
42571 2000-01-29  Jim Meyering  <meyering@lucent.com>
42572
42573         * m4/lib-check.m4: New file containing library-related checks from
42574         fileutils and sh-utils (textutils had none).
42575
42576 2000-01-28  Jim Meyering  <meyering@lucent.com>
42577
42578         * m4/perl.m4: Change format of warning message to look more like that
42579         from the missing script.  Suggestion from François Pinard.
42580
42581 2000-01-25  Jim Meyering  <meyering@lucent.com>
42582
42583         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
42584         well as time.h in the compile check.
42585         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
42586         Fix typo in cross-compiling case: s/yes/no/.
42587
42588 2000-01-23  Jim Meyering  <meyering@lucent.com>
42589
42590         * m4/jm-macros.m4: Move df-related tests here from
42591         fileutils/configure.in
42592
42593         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
42594         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
42595
42596         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
42597         s/space/ac_fsusage_space/.
42598         (jm_FILE_SYSTEM_USAGE): Take two parameters.
42599
42600         * m4/ftruncate.m4: New file (derived from part of
42601         fileutils/configure.in).
42602         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
42603         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
42604
42605         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
42606         AC_SUBST these here, rather than just in sh-util/configure.in, so
42607         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
42608         all the same.
42609         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
42610         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
42611         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
42612         (AC_SUBST(POW_LIBM)): Likewise.
42613         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
42614
42615 2000-01-23  Jim Meyering  <meyering@lucent.com>
42616
42617         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
42618         obstack.c.
42619
42620 2000-01-22  Jim Meyering  <meyering@lucent.com>
42621
42622         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
42623
42624         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
42625
42626         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
42627         configure.in
42628         (AC_CHECK_HEADERS): Likewise for sh-utils.
42629         (AC_CHECK_HEADERS): Likewise for textutils.
42630         Merge the three lists of headers.
42631
42632         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
42633         from fileutils' configure.in.
42634
42635         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
42636         code. Moved tests into their own function (_jm_DECL_HEADERS) in
42637         check-decl.m4.
42638
42639         * m4/check-decl.m4: Use #if rather than #ifdef.
42640         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
42641         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
42642         (_jm_DECL_HEADERS): Define new function.
42643         (jm_CHECK_DECLARATIONS): Require it.
42644
42645 2000-01-22  Jim Meyering  <meyering@lucent.com>
42646
42647         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
42648         [! HAVE_DECL_STRTOULL]: Declare strtoull.
42649         Required for some AIX systems.  Reported by Christian Krackowizer.
42650         [TESTING] (main): New function.
42651
42652         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
42653         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
42654         letters.
42655
42656         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
42657         iswprint.
42658
42659         * lib/strverscmp.c (ISDIGIT): Define.
42660         (strverscmp): Use ISDIGIT, not isdigit.
42661
42662 2000-01-19  Jim Meyering  <meyering@lucent.com>
42663
42664         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
42665         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
42666         defines `struct timespec' in <sys/time.h>
42667
42668         * m4/c-bs-a.m4: Remove uses of changequote altogether.
42669         Thanks to Akim for explaining.
42670
42671 2000-01-17  Paul Eggert  <eggert@twinsun.com>
42672
42673         * lib/nanosleep.c (nanosleep):
42674         Don't use SA_INTERRUPT to decide whether to call sigaction, as
42675         POSIX.1 doesn't require SA_INTERRUPT and some systems
42676         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
42677         it's been part of POSIX.1 since day 1 (in 1988).
42678
42679 2000-01-17  Jim Meyering  <meyering@lucent.com>
42680
42681         * lib/interlock: Remove unused file.  Reported by François Pinard.
42682
42683 2000-01-16  Paul Eggert  <eggert@twinsun.com>
42684
42685         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
42686         alert, backslash, formfeed, and vertical tab unnecessarily in
42687         shell quoting style.
42688
42689 2000-01-16  Jim Meyering  <meyering@lucent.com>
42690
42691         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
42692         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
42693         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
42694         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
42695
42696 2000-01-16  Jim Meyering  <meyering@lucent.com>
42697
42698         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
42699         because the latter didn't work.
42700
42701 2000-01-15  Jim Meyering  <meyering@lucent.com>
42702
42703         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
42704         (AC_REPLACE_FUNCS): Add memcpy and memset.
42705         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
42706         Add strpbrk.
42707         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
42708
42709 2000-01-12  Jim Meyering  <meyering@lucent.com>
42710
42711         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
42712         (jm_PREREQ): Use it.
42713         (jm_PREREQ_READUTMP): New macro.
42714         (jm_PREREQ): Use it.
42715
42716 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42717
42718         Quote multibyte characters correctly.
42719         * m4/c-bs-a.m4: New file.
42720         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
42721         (jm_PREREQ): Use it.
42722
42723 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42724
42725         * m4/uintmax_t.m4: Port to autoconf 2.13.
42726
42727 2000-01-08  Jim Meyering  <meyering@ascend.com>
42728
42729         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
42730         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
42731
42732 2000-01-04  Jim Meyering  <meyering@ascend.com>
42733
42734         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
42735         jm_STRUCT_DIRENT_D_TYPE.
42736         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
42737         jm_STRUCT_DIRENT_D_INO.
42738         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
42739         jm_STRUCT_UTIMBUF.
42740         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
42741         renamings.
42742         * m4/utime.m4: Likewise.
42743
42744         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
42745         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
42746
42747 2000-01-03  Paul Eggert  <eggert@twinsun.com>
42748
42749         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
42750         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
42751
42752 2000-01-02  Jim Meyering  <meyering@ascend.com>
42753
42754         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
42755         remember if this is necessary.
42756
42757 1999-12-26  Jim Meyering  <meyering@ascend.com>
42758
42759         * m4/jm-macros.m4: Use it here.
42760         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
42761
42762 1999-12-23  Jim Meyering  <meyering@ascend.com>
42763
42764         * m4/jm-macros.m4: Check for clock_gettime (moved from
42765         fileutils/configure.in)
42766         Check for gettimeofday.
42767
42768 1999-12-20  Jim Meyering  <meyering@ascend.com>
42769
42770         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
42771         autoconf-2.14a-1999-12-20.
42772
42773 1999-12-19  Jim Meyering  <meyering@ascend.com>
42774
42775         * m4/lstat-slash.m4: New file.
42776         * m4/jm-macros.m4: Use the new macro:
42777         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42778
42779 1999-12-07  Jim Meyering  <meyering@ascend.com>
42780
42781         * m4/perl.m4: Require that File::Compare be available, too.
42782         Too many systems seem to lack it.
42783
42784         * m4/strftime.m4: Add checks for most of the cpp macros tested in
42785         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
42786
42787 1999-11-18  Paul Eggert  <eggert@twinsun.com>
42788
42789         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
42790         problem with the QNX 4.25 shell, which doesn't propagate exit
42791         status of failed commands inside shell assignments.
42792
42793 1999-11-17  Jim Meyering  <meyering@ascend.com>
42794
42795         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
42796
42797 1999-11-07  Jim Meyering  <meyering@ascend.com>
42798
42799         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
42800
42801 1999-11-06  Jim Meyering  <meyering@ascend.com>
42802
42803         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
42804         * m4/jm-macros.m4 (jm_MACROS): Use it here.
42805
42806 1999-11-05  Jim Meyering  <meyering@ascend.com>
42807
42808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
42809         configure.in of textutils, fileutils, and sh-utils into this one
42810         (shared between those packages) file.
42811         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
42812         AC_STRUCT_ST_BLKSIZE.
42813
42814 1999-11-03  Jim Meyering  <meyering@ascend.com>
42815
42816         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
42817         of AC_CHECK_TYPE checks includes unistd.h.
42818         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
42819         Suggestion from Akim Demaille.
42820
42821 1999-10-30  Jim Meyering  <meyering@ascend.com>
42822
42823         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
42824         m4-quoted string.
42825         * m4/ls-mntd-fs.m4: Likewise.
42826         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
42827         * m4/jm-winsz1.m4: Likewise.
42828
42829         * m4/const.m4: Remove file, since the fix made it into the experimental
42830         version of autoconf.
42831         * m4/mktime.m4: Likewise.
42832
42833         * m4/check-type.m4: Remove file, now that the latest version of
42834         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42835
42836         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42837         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42838         AC_CHECK_TYPE.
42839
42840 1999-10-04  Jim Meyering  <meyering@ascend.com>
42841
42842         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42843
42844 1999-09-22  Paul Eggert  <eggert@twinsun.com>
42845
42846         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
42847         2.95.1 bug with HP-UX 10.20.
42848
42849 1999-09-17  Jim Meyering  <meyering@ascend.com>
42850
42851         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
42852         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
42853         due to missing strdup (against sh-utils-2.0).
42854
42855 1999-08-29  Jim Meyering  <meyering@ascend.com>
42856
42857         * m4/jm-macros.m4: Require jm_BISON.
42858         * m4/bison.m4: New file.
42859
42860 1999-08-17  Paul Eggert  <eggert@twinsun.com>
42861
42862         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
42863         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
42864
42865 1999-08-05  Jim Meyering  <meyering@ascend.com>
42866
42867         * m4/getline.m4: Rename test file from conftestdata to conftest.data
42868         to avoid conflicts with `conftest' on 8+3 filesystems.
42869         Suggestion from Eli Zaretskii.
42870
42871 1999-08-04  Jim Meyering  <meyering@ascend.com>
42872
42873         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
42874         fileutils and sh-utils (textutils's getline test was inadequate).
42875         (AM_FUNC_GETLINE): Run this test.
42876         (AC_CHECK_FUNCS): Check for getdelim.
42877         Reported by Bob Proulx.
42878
42879 1999-08-02  Jim Meyering  <meyering@ascend.com>
42880
42881         * m4/jm-macros.m4: Add a comment.
42882
42883 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42884
42885         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
42886         <inttypes.h> defines strtoumax as a macro (and not as a
42887         function).
42888
42889 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42890
42891         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
42892         that we can shift, multiply and divide unsigned long long
42893         values; Ultrix cc can't do it.
42894
42895 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42896
42897         * m4/mktime.m4: New file, which is a preview of what should appear
42898         in the next public autoconf release.
42899
42900 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42901
42902         * m4/lfs.m4: Remove this file.
42903         * m4/largefile.m4: New file.  It contains the old contents of
42904         lfs.m4, except that all names with prefix AC_LFS have been
42905         changed to use the prefix AC_SYS_LARGEFILE instead, to be
42906         compatible with future autoconf versions.  Also, some minor m4
42907         quoting problems have been fixed.
42908
42909 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42910
42911         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
42912         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
42913         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
42914         and simplify the shell code.
42915
42916 1999-08-01  Jim Meyering  <meyering@ascend.com>
42917
42918         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
42919         m4.
42920
42921 1999-07-20  Jim Meyering  <meyering@ascend.com>
42922
42923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
42924
42925 1999-07-15  Jim Meyering  <meyering@ascend.com>
42926
42927         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
42928
42929 1999-05-22  Jim Meyering  <meyering@ascend.com>
42930
42931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
42932
42933 1999-05-20  Jim Meyering  <meyering@ascend.com>
42934
42935         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
42936         Add a colon after each `then' in case $4 is empty.
42937
42938 1999-05-16  Jim Meyering  <meyering@ascend.com>
42939
42940         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
42941
42942 1999-05-10  Jim Meyering  <meyering@ascend.com>
42943
42944         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
42945
42946         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
42947         AC_FUNC_MKTIME.
42948
42949 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
42950
42951         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
42952
42953 1999-05-04  Paul Eggert  <eggert@twinsun.com>
42954
42955         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
42956         not CPPFLAGS, so that linking works correctly in IRIX.
42957
42958 1999-04-30  Paul Eggert  <eggert@twinsun.com>
42959
42960         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
42961
42962 1999-04-20  Paul Eggert  <eggert@twinsun.com>
42963
42964         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
42965         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
42966         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
42967         jm_AC_TYPE_UNSIGNED_LONG_LONG.
42968         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
42969
42970         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
42971
42972 1999-04-20  Jim Meyering  <meyering@ascend.com>
42973
42974         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
42975         AC_REPLACE xstroull if necessary.  From Paul Eggert.
42976         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
42977
42978 1999-04-18  Jim Meyering  <meyering@ascend.com>
42979
42980         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
42981         * m4/jm-macros.m4: Use it.
42982
42983 1999-04-06  Jim Meyering  <meyering@ascend.com>
42984
42985         * m4/strftime.m4: Remove test for %f.
42986
42987 1999-03-29  Jim Meyering  <meyering@ascend.com>
42988
42989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
42990         superset of the AC_TYPE_* checks in the textutils, fileutils,
42991         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
42992         AC_TYPE_PID_T.
42993
42994 1999-03-28  Jim Meyering  <meyering@ascend.com>
42995
42996         * m4/jm-macros.m4: Define GNU_PACKAGE here.
42997         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
42998         replaced e.g., in the *.sh files of the sh-utils.
42999
43000 1999-03-20  Jim Meyering  <meyering@ascend.com>
43001
43002         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
43003         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
43004         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
43005
43006 1999-03-19  Jim Meyering  <meyering@ascend.com>
43007
43008         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
43009
43010 1999-03-12  Jim Meyering  <meyering@ascend.com>
43011
43012         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
43013
43014 1999-03-07  Jim Meyering  <meyering@ascend.com>
43015
43016         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
43017         declared.
43018
43019 1999-02-17  Jim Meyering  <meyering@ascend.com>
43020
43021         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
43022         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
43023
43024 1999-02-07  Jim Meyering  <meyering@ascend.com>
43025
43026         * m4/group-member.m4: New file -- extracted from sh-utils'
43027         configure.in.
43028
43029         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
43030         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
43031
43032 1999-02-06  Jim Meyering  <meyering@ascend.com>
43033
43034         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
43035         * m4/fnmatch.m4: Likewise.
43036         * m4/getgroups.m4: Likewise.
43037         * m4/lstat.m4: Likewise.
43038         * m4/malloc.m4: Likewise.
43039         * m4/putenv.m4: Likewise.
43040         * m4/realloc.m4: Likewise.
43041         * m4/regex.m4: Likewise.
43042         * m4/stat.m4: Likewise.
43043         * m4/strftime.m4: Likewise.
43044         Suggestion from Alain Magloire.
43045
43046         * m4/chown.m4: Use `.$ac_objext', not `.o'.
43047         * m4/fnmatch.m4: Likewise.
43048         * m4/getgroups.m4: Likewise.
43049         * m4/getline.m4: Likewise.
43050         * m4/lstat.m4: Likewise.
43051         * m4/malloc.m4: Likewise.
43052         * m4/memcmp.m4: Likewise.
43053         * m4/putenv.m4: Likewise.
43054         * m4/realloc.m4: Likewise.
43055         * m4/regex.m4: Likewise.
43056         * m4/stat.m4: Likewise.
43057         * m4/strftime.m4: Likewise.
43058         Suggestion from Alain Magloire.
43059
43060         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
43061         an argument.
43062
43063         * m4/regex.m4: Add a run-time Test for proper operation of
43064         re_compile_pattern.
43065
43066 1999-01-31  Jim Meyering  <meyering@ascend.com>
43067
43068         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
43069
43070 1999-01-30  Jim Meyering  <meyering@ascend.com>
43071
43072         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
43073
43074         * m4/jm-mktime.m4: Make this a wrapper around the official
43075         AM_FUNC_MKTIME rather than my private copy, now that the official one
43076         is up to date.
43077         * m4/mktime.m4: Remove file.
43078
43079         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
43080         * m4/uptime.m4: Likewise.
43081         * m4/uintmax_t.m4: Likewise.
43082
43083 1999-01-28  Jim Meyering  <meyering@ascend.com>
43084
43085         * m4/jm-macros.m4: Use jm_AFS.
43086         * m4/afs.m4: New file (from fileutils' configure.in).
43087
43088         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
43089         * m4/chown.m4: Likewise.
43090         * m4/d-ino.m4: Likewise.
43091         * m4/d-type.m4: Likewise.
43092         * m4/fnmatch.m4: Likewise.
43093         * m4/getgroups.m4: Likewise.
43094         * m4/gettext.m4: Likewise.
43095         * m4/jm-mktime.m4: Likewise.
43096         * m4/jm-winsz2.m4: Likewise.
43097         * m4/lcmessage.m4: Likewise.
43098         * m4/ls-mntd-fs.m4: Likewise.
43099         * m4/malloc.m4: Likewise.
43100         * m4/memcmp.m4: Likewise.
43101         * m4/putenv.m4: Likewise.
43102         * m4/realloc.m4: Likewise.
43103         * m4/st_mtim.m4: Likewise.
43104         * m4/strftime.m4: Likewise.
43105
43106 1999-01-16  Jim Meyering  <meyering@ascend.com>
43107
43108         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
43109         (ARGMATCH_DIE_DECL): Define.
43110
43111 1999-01-12  Jim Meyering  <meyering@ascend.com>
43112
43113         * m4/Makefile.am.in: Rewrite to avoid using fmt.
43114         Reported by Lars Hecking.
43115
43116 1999-01-10  Jim Meyering  <meyering@ascend.com>
43117
43118         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
43119         gross kludge.
43120         * m4/inttypes_h.m4: Likewise.
43121         * m4/lstat.m4: Likewise.
43122         * m4/malloc.m4: Likewise.
43123         * m4/readdir.m4: Likewise.
43124         * m4/realloc.m4: Likewise.
43125         * m4/st_dm_mode.m4: Likewise.
43126         * m4/stat.m4: Likewise.
43127         * m4/utimbuf.m4: Likewise.
43128         * m4/utimes.m4: Likewise.
43129
43130         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
43131         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
43132         comments in config.h.in are meaningful.
43133
43134         * m4/jm-macros.m4: Require autoconf-2.13 here.
43135
43136         * m4/regex.m4: By default, don't use the included regex.c on systems
43137         with glibc 2.  Suggestion from Uli Drepper.
43138
43139 1999-01-02  Jim Meyering  <meyering@ascend.com>
43140
43141         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
43142
43143 1998-12-18  Jim Meyering  <meyering@ascend.com>
43144
43145         * m4/Makefile.am.in (Makefile.am): Simplify rule.
43146         Based on a suggestion from Lars Hecking.
43147
43148 1998-11-16  Paul Eggert  <eggert@twinsun.com>
43149
43150         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
43151
43152 1998-11-16  Jim Meyering  <meyering@ascend.com>
43153
43154         * m4/lfs.m4: Double-quote the `uname...` expression.
43155
43156 1998-11-14  Jim Meyering  <meyering@ascend.com>
43157
43158         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
43159         * m4/stat.m4: Likewise.
43160
43161 1998-11-03  Jim Meyering  <meyering@ascend.com>
43162
43163         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
43164         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
43165
43166 1998-10-18  Jim Meyering  <meyering@ascend.com>
43167
43168         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
43169
43170 1998-10-17  Jim Meyering  <meyering@ascend.com>
43171
43172         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
43173         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
43174         calls for those previously hard-coded headers.  Instead, take a new
43175         parameter.
43176         (jm_CHECK_DECLARATIONS): Reflect interface change.
43177         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
43178         (jm_CHECK_DECL_LOCALTIME_R): New macro.
43179
43180         * m4/mktime.m4: Test for spring-forward gap before long-running test.
43181
43182 1998-10-14  Jim Meyering  <meyering@ascend.com>
43183
43184         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
43185         instead of "TZ=America/Vancouver".  From Paul Eggert.
43186
43187 1998-10-11  Jim Meyering  <meyering@ascend.com>
43188
43189         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
43190         This adds a test for a recently added compatibility fix for mktime.c.
43191         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
43192
43193 1998-09-27  Jim Meyering  <meyering@ascend.com>
43194
43195         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
43196
43197         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
43198         ../configure.in, including a change from Gordon Matzigkeit to allow
43199         cross-compiling for the Hurd.
43200
43201         * m4/glibc.m4: New file/macro to test for the GNU C Library
43202         versions 1 and 2.  From Gordon Matzigkeit.
43203         Indent.
43204
43205 1998-09-21  Jim Meyering  <meyering@ascend.com>
43206
43207         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
43208
43209 1998-08-18  Paul Eggert  <eggert@twinsun.com>
43210
43211         Port nanosecond-resolution times to UnixWare 2.1.2 and
43212         pedantic Solaris 2.6.
43213
43214         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
43215         AC_STRUCT_ST_MTIM.
43216         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
43217         Generate name of ns member, instead of just 1 or undef.
43218         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
43219
43220 1998-08-15  Jim Meyering  <meyering@ascend.com>
43221
43222         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
43223         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
43224         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
43225         instead of jm_TYPE_SSIZE_T.
43226
43227 1998-08-12  Jim Meyering  <meyering@ascend.com>
43228
43229         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
43230
43231 1998-08-02  Jim Meyering  <meyering@ascend.com>
43232
43233         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
43234         in acconfig.h manually.
43235
43236 1998-07-31  Paul Eggert  <eggert@twinsun.com>
43237
43238         * m4/st_mtim.m4: New file.
43239
43240 1998-07-28  Jim Meyering  <meyering@ascend.com>
43241
43242         * m4/utimes.m4: Undef stat.
43243
43244 1998-07-25  Jim Meyering  <meyering@ascend.com>
43245
43246         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
43247         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
43248
43249 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
43250
43251         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
43252         uid and gid actually remain unchanged.
43253
43254 1998-07-07  Jim Meyering  <meyering@ascend.com>
43255
43256         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
43257
43258 1998-07-04  Jim Meyering  <meyering@ascend.com>
43259
43260         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
43261         to prove that this macro can be used in packages without regex.c.
43262
43263 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
43264
43265         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
43266         is to be used.
43267
43268 1998-07-03  Jim Meyering  <meyering@ascend.com>
43269
43270         * m4/gettext.m4: Add -lintl if it's found to be necessary.
43271
43272         * m4/gettext.m4: New file -- from gettext-0.10.35.
43273         * m4/lcmessage.m4: Likewise.
43274         * m4/progtest.m4: Likewise.
43275
43276         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
43277         * m4/jm-macros.m4: Require the new macro.
43278
43279 1998-06-29  Jim Meyering  <meyering@ascend.com>
43280
43281         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
43282         for the definition of NGROUPS (used in a system header included
43283         by sys/mount.h).
43284
43285 1998-06-28  Jim Meyering  <meyering@ascend.com>
43286
43287         * m4/ls-mntd-fs.m4: New file.
43288         * m4/fstypename.m4: New file.
43289
43290         * m4/jm-macros.m4: Require the new macro.
43291         * m4/jm-glibc-io.m4: New file.
43292
43293 1998-05-19  Jim Meyering  <meyering@ascend.com>
43294
43295         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
43296         * m4/lchown.m4: New file.
43297
43298         * m4/Makefile.am.in: New file.
43299         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
43300
43301 1998-05-14  Jim Meyering  <meyering@ascend.com>
43302
43303         * m4/Makefile.am (EXTRA_DIST): Add them.
43304         * m4/jm-macros.m4: New file.
43305         * m4/utimbuf.m4: New file.
43306
43307 1998-05-12  Jim Meyering  <meyering@ascend.com>
43308
43309         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
43310
43311 1998-05-11  Jim Meyering  <meyering@ascend.com>
43312
43313         * m4/isc-posix.m4: New file.
43314
43315 1998-05-10  Jim Meyering  <meyering@ascend.com>
43316
43317         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
43318
43319 1998-05-09  Jim Meyering  <meyering@ascend.com>
43320
43321         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
43322         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
43323         with automake.
43324
43325         * m4/ssize_t.m4: New file.
43326         * m4/mktime.m4: Remove file -- the new automake has this now.
43327
43328 1998-04-26  Jim Meyering  <meyering@ascend.com>
43329
43330         * m4/assert.m4: New file.
43331         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
43332
43333 1998-04-05  Jim Meyering  <meyering@ascend.com>
43334
43335         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
43336         (jm_PREREQ): Use it here.
43337
43338 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
43339
43340         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
43341         in acconfig.h.
43342
43343 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
43344
43345         * m4/prereq.m4: New file.
43346         * m4/error.m4: New file.
43347         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
43348
43349 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
43350
43351         * m4/getline.m4: Don't set am_cv_func_working_getline before the
43352         cache-check for the same variable -- that defeated the purpose of
43353         the test; the test program was never run.  This was a problem only
43354         on systems with losing getline functions -- HP-UX 10.20 is one.
43355         Reported by Bjorn Helgaas.
43356
43357 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
43358
43359         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
43360
43361 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
43362
43363         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
43364
43365         * m4/const.m4: New file.  Use an initializer in this declaration
43366         typedef int charset[2]; const charset x;
43367         Reported by Bob Glickstein.
43368
43369 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
43370
43371         * m4/chown.m4: Fix reversed types on -1 args to chown.
43372         From Kaveh Ghazi.
43373
43374 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
43375
43376         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
43377         Add lseek and memchr.
43378
43379         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
43380         T.E.Dickey <dickey@clark.net> said that some older preprocessors
43381         have a 20-character limit on names.
43382
43383 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
43384
43385         * m4/inttypes_h.m4: New file.
43386         * m4/uintmax_t.m4: New file.
43387         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
43388
43389
43390         -----
43391
43392         Local Variables:
43393         coding: utf-8
43394         End:
43395
43396         Copyright (C) 1997-2008 Free Software Foundation, Inc.
43397
43398         Copying and distribution of this file, with or without
43399         modification, are permitted provided the copyright notice
43400         and this notice are preserved.